/* Flipora — shared styles. Light theme only, matches the iOS app tokens. */
:root {
  color-scheme: light;
  --paper: #F7F5F0;
  --surface: #FFFFFF;
  --ink: #111111;
  --ink-2: #6B6863;
  --ink-3: #9E9B94;
  --line: #E3E0D9;
  --money: #1F7A4D;
  --money-soft: #E6F2EB;
  --negative: #B84033;
  --radius-lg: 24px;
  --radius-md: 16px;
  --gutter: 20px;
  --max: 1100px;
  --font: "Inter", -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-wrap: break-word;
}

img, svg { max-width: 100%; height: auto; display: block; }

a { color: var(--ink); text-decoration-color: var(--line); text-underline-offset: 3px; }
a:hover { text-decoration-color: var(--ink); }

:focus-visible { outline: 3px solid var(--money); outline-offset: 3px; border-radius: 6px; }

h1, h2, h3 { line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 0.5em; }
p { margin: 0 0 1em; }

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 10;
  background: var(--ink); color: var(--paper); padding: 10px 16px; border-radius: 12px;
  font-size: 15px; font-weight: 600; text-decoration: none;
}
.skip-link:focus { top: 12px; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.container--narrow { max-width: calc(720px + 2 * var(--gutter)); }

/* Header */
.site-header { border-bottom: 1px solid var(--line); background: var(--paper); }
.site-header .container { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 700; font-size: 20px; letter-spacing: -0.02em; }
.brand img { width: 32px; height: 32px; border-radius: 8px; }
.nav { display: flex; gap: 4px; flex-wrap: wrap; justify-content: flex-end; }
.nav a { font-size: 15px; color: var(--ink-2); text-decoration: none; padding: 8px 10px; border-radius: 10px; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); background: var(--surface); }

/* Type helpers */
.eyebrow { font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink-2); margin-bottom: 12px; }
.display { font-size: clamp(34px, 7vw, 56px); font-weight: 700; letter-spacing: -0.035em; line-height: 1.05; }
.title { font-size: 26px; font-weight: 700; }
.headline { font-size: 20px; font-weight: 600; letter-spacing: -0.01em; }
.lead { font-size: 19px; color: var(--ink-2); max-width: 34em; }
.callout { font-size: 15px; }
.caption { font-size: 13px; color: var(--ink-2); }
.muted { color: var(--ink-2); }
.money { color: var(--money); }

/* Sections */
.section { padding: 72px 0; }
.section + .section { border-top: 1px solid var(--line); }
.section-head { max-width: 640px; margin-bottom: 40px; }
.section-head h2 { font-size: clamp(28px, 4.5vw, 40px); font-weight: 700; }

/* Hero */
.hero { padding: 56px 0 72px; }
.hero-grid { display: grid; gap: 48px; align-items: center; }
.hero h1 { margin-bottom: 20px; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 28px; }
.pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 20px; border-radius: 999px;
  border: 1px dashed var(--ink-3); color: var(--ink-2);
  font-size: 15px; font-weight: 600; cursor: default; user-select: none;
}
.pill svg { width: 18px; height: 18px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 12px 20px; border-radius: 999px; background: var(--ink); color: var(--paper);
  font-size: 15px; font-weight: 600; text-decoration: none;
}
.btn:hover { background: #2a2a2a; }
.btn--ghost { background: transparent; color: var(--ink); border: 1px solid var(--line); }
.btn--ghost:hover { background: var(--surface); }
.hero-meta { margin-top: 16px; }

/* Phone mockup (illustrative) */
.phone-wrap { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.phone {
  width: 300px; max-width: 100%;
  background: var(--ink); border-radius: 48px; padding: 12px;
}
.phone-screen { background: var(--paper); border-radius: 38px; padding: 18px 16px 22px; min-height: 560px; display: flex; flex-direction: column; gap: 12px; }
.phone-notch { width: 96px; height: 26px; background: var(--ink); border-radius: 999px; margin: 0 auto 6px; }
.photo-tile {
  height: 132px; border-radius: 18px; background: var(--line);
  display: flex; align-items: center; justify-content: center;
}
.watch { width: 76px; height: 76px; border-radius: 50%; border: 8px solid var(--ink-3); background: var(--surface); position: relative; }
.watch::before, .watch::after { content: ""; position: absolute; left: 50%; top: 50%; background: var(--ink); border-radius: 2px; transform-origin: 50% 100%; }
.watch::before { width: 3px; height: 22px; margin: -22px 0 0 -1.5px; transform: rotate(40deg); }
.watch::after { width: 3px; height: 16px; margin: -16px 0 0 -1.5px; transform: rotate(-70deg); }
.mock-card { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 14px; }
.mock-label { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink-2); margin: 0 0 4px; }
.mock-item { font-size: 17px; font-weight: 700; margin: 0; letter-spacing: -0.01em; }
.mock-sub { font-size: 12px; color: var(--ink-2); margin: 0; }
.mock-range { font-size: 34px; font-weight: 700; letter-spacing: -0.03em; color: var(--money); line-height: 1.1; margin: 2px 0 0; }
.mock-points { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin: 0; }
.mock-points div { background: var(--paper); border-radius: 12px; padding: 8px 6px; text-align: center; }
.mock-points dt { font-size: 10px; color: var(--ink-2); line-height: 1.2; }
.mock-points dd { margin: 2px 0 0; font-size: 16px; font-weight: 700; }
.mock-points .is-typical { background: var(--money-soft); }
.mock-points .is-typical dd { color: var(--money); }
.mock-row { display: flex; justify-content: space-between; align-items: baseline; font-size: 13px; margin: 0; }
.mock-row strong { font-size: 15px; }

/* Steps */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 28px; }
.step-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 12px; background: var(--paper);
  font-weight: 700; font-size: 17px; margin-bottom: 18px;
}
.card h3 { font-size: 20px; font-weight: 600; letter-spacing: -0.01em; margin-bottom: 8px; }
.card p { color: var(--ink-2); margin: 0; font-size: 17px; }

/* Benefits */
.benefits { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.benefit-icon {
  width: 44px; height: 44px; border-radius: 12px; background: var(--money-soft); color: var(--money);
  display: flex; align-items: center; justify-content: center; margin-bottom: 18px;
}
.benefit-icon svg { width: 22px; height: 22px; }
.flow { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 32px; padding: 0; list-style: none; }
.flow li { font-size: 15px; font-weight: 600; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 8px 14px; }
.categories { margin-top: 32px; }
.note { margin-top: 24px; font-size: 13px; color: var(--ink-2); max-width: 640px; }

/* Pricing */
.plans { display: grid; gap: 16px; max-width: 820px; }
.plan { position: relative; display: flex; flex-direction: column; }
.plan--featured { border: 2px solid var(--ink); }
.plan-badge {
  position: absolute; top: -13px; left: 28px;
  background: var(--money); color: #FFFFFF; font-size: 13px; font-weight: 600;
  padding: 4px 12px; border-radius: 999px;
}
.plan-name { font-size: 20px; font-weight: 600; margin-bottom: 12px; }
.plan-price { font-size: 48px; font-weight: 700; letter-spacing: -0.035em; line-height: 1; margin: 0 0 6px; }
.plan-price span { font-size: 17px; font-weight: 500; color: var(--ink-2); letter-spacing: 0; }
.plan-sub { font-size: 15px; color: var(--ink-2); margin: 0 0 20px; }
.plan-sub strong { color: var(--money); }
.plan ul { margin: auto 0 0; padding: 20px 0 0; list-style: none; border-top: 1px solid var(--line); font-size: 15px; display: grid; gap: 8px; }
.plan li::before { content: "\2713"; color: var(--money); font-weight: 700; margin-right: 10px; }
.pricing-notes { margin-top: 24px; font-size: 13px; color: var(--ink-2); max-width: 720px; }
.pricing-notes p { margin-bottom: 6px; }

/* FAQ */
.faq { max-width: 760px; display: grid; gap: 12px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-md); padding: 0 20px; }
.faq summary {
  cursor: pointer; list-style: none; padding: 18px 28px 18px 0; position: relative;
  font-size: 17px; font-weight: 600;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0; top: 50%; transform: translateY(-50%); font-size: 22px; font-weight: 400; color: var(--ink-2); }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { color: var(--ink-2); margin: 0 0 18px; font-size: 15px; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 40px 0 48px; font-size: 13px; color: var(--ink-2); }
.footer-grid { display: grid; gap: 20px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 16px; list-style: none; margin: 0; padding: 0; }
.footer-links a { color: var(--ink-2); font-size: 15px; }
.footer-links a:hover { color: var(--ink); }
.site-footer p { margin: 0 0 4px; }
.site-footer address { font-style: normal; }

/* Legal pages */
.legal { padding: 40px 0 72px; }
.back-link { display: inline-flex; align-items: center; gap: 6px; font-size: 15px; color: var(--ink-2); text-decoration: none; margin-bottom: 28px; }
.back-link:hover { color: var(--ink); }
.legal h1 { font-size: clamp(34px, 6vw, 44px); font-weight: 700; letter-spacing: -0.03em; margin-bottom: 8px; }
.legal .updated { font-size: 15px; color: var(--ink-2); margin-bottom: 32px; }
.legal .summary { background: var(--money-soft); border-radius: var(--radius-md); padding: 20px 22px; margin-bottom: 40px; font-size: 15px; }
.legal .summary p:last-child, .legal .summary ul:last-child { margin-bottom: 0; }
.legal .summary ul { padding-left: 20px; margin: 0; }
.legal section { padding-top: 8px; margin-bottom: 36px; scroll-margin-top: 16px; }
.legal h2 { font-size: 26px; font-weight: 700; margin-bottom: 14px; }
.legal h3 { font-size: 20px; font-weight: 600; margin: 24px 0 8px; letter-spacing: -0.01em; }
.legal ul, .legal ol { padding-left: 22px; margin: 0 0 1em; }
.legal li { margin-bottom: 6px; }
.legal .toc { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-md); padding: 20px 22px; margin-bottom: 40px; font-size: 15px; }
.legal .toc h2 { font-size: 17px; margin-bottom: 10px; letter-spacing: 0; }
.legal .toc ol { margin: 0; }
.legal .toc li { margin-bottom: 4px; }
.legal .caps { font-size: 15px; }
.table-wrap { overflow-x: auto; margin: 0 0 1em; }
.legal table { width: 100%; border-collapse: collapse; font-size: 15px; background: var(--surface); border-radius: var(--radius-md); overflow: hidden; }
.legal th, .legal td { text-align: left; vertical-align: top; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.legal th { font-weight: 600; background: var(--paper); }
.legal tr:last-child td { border-bottom: 0; }

/* Responsive */
@media (max-width: 480px) {
  :root { --gutter: 16px; }
  .nav a { padding: 8px 6px; }
  .brand span { font-size: 18px; }
  .card { padding: 22px; }
  .section { padding: 56px 0; }
}
@media (min-width: 720px) {
  .steps { grid-template-columns: repeat(3, 1fr); }
  .benefits { grid-template-columns: repeat(2, 1fr); }
  .plans { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr auto; align-items: start; }
}
@media (min-width: 960px) {
  .hero { padding: 88px 0 96px; }
  .hero-grid { grid-template-columns: 1.15fr 1fr; }
  .benefits { grid-template-columns: repeat(3, 1fr); }
  .section { padding: 96px 0; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
