:root {
  --brand-50: oklch(0.975 0.012 205);
  --brand-100: oklch(0.93 0.026 205);
  --brand-200: oklch(0.87 0.042 205);
  --brand-300: oklch(0.78 0.064 205);
  --brand-500: oklch(0.64 0.096 205);
  --brand-600: oklch(0.52 0.088 205);
  --brand-700: oklch(0.45 0.076 205);
  --brand-800: oklch(0.36 0.06 205);
  --brand-900: oklch(0.28 0.04 205);
  --brand-950: oklch(0.21 0.03 205);
  --warm: oklch(0.8 0.11 70);

  --bg: #fdfdfd;
  --surface: #ffffff;
  --surface-tint: var(--brand-50);
  --text: oklch(0.21 0.03 250);
  --muted: oklch(0.45 0.02 250);
  --border: oklch(0.9 0.01 250);
  --accent: var(--brand-600);
  --accent-strong: var(--brand-700);
  --on-accent: #ffffff;
  --hero-from: var(--brand-50);
  --icon-bg: var(--brand-100);
  --shadow: 0 1px 2px rgb(0 0 0 / .04), 0 12px 32px -12px rgb(16 40 60 / .18);
  --shadow-lg: 0 2px 4px rgb(0 0 0 / .04), 0 30px 60px -20px rgb(16 40 60 / .3);
  --radius: 14px;
  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: oklch(0.17 0.02 220);
    --surface: oklch(0.21 0.025 215);
    --surface-tint: var(--brand-950);
    --text: oklch(0.95 0.01 205);
    --muted: oklch(0.75 0.02 205);
    --border: oklch(0.3 0.03 210);
    --accent: var(--brand-500);
    --accent-strong: var(--brand-200);
    --on-accent: var(--brand-950);
    --hero-from: oklch(0.22 0.035 205);
    --icon-bg: oklch(0.28 0.04 205);
    --shadow: 0 1px 2px rgb(0 0 0 / .3), 0 12px 32px -12px rgb(0 0 0 / .6);
    --shadow-lg: 0 2px 4px rgb(0 0 0 / .3), 0 30px 60px -20px rgb(0 0 0 / .7);
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--accent); }
a:focus-visible, .btn:focus-visible { outline: 3px solid var(--brand-500); outline-offset: 3px; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* Header */
header.site {
  position: sticky; top: 0; z-index: 10;
  background: color-mix(in oklch, var(--bg) 85%, transparent);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--border);
}
header.site .wrap { display: flex; align-items: center; height: 64px; gap: 16px 24px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); font-weight: 700; letter-spacing: -.01em; margin-right: auto; }
.brand img { width: 32px; height: 32px; border-radius: 8px; }
nav.links { display: flex; align-items: center; gap: 24px; }
nav.links a { color: var(--muted); text-decoration: none; font-size: .95rem; white-space: nowrap; }
nav.links a:hover { color: var(--text); }
nav.links a[aria-current="page"] { color: var(--text); font-weight: 600; }
/* Small screens: brand and the app button on the first row, the links on a row of
   their own beneath, so every link stays visible without a script-driven menu. */
@media (max-width: 720px) {
  header.site .wrap { flex-wrap: wrap; height: auto; padding-top: 10px; padding-bottom: 0; row-gap: 6px; }
  nav.links { order: 3; width: 100%; gap: 18px; overflow-x: auto; border-top: 1px solid var(--border); padding: 4px 0; }
  nav.links a { padding: 8px 0; font-size: .9rem; }
  .header-cta { padding: 8px 14px; }
}
/* Very narrow phones: the logo mark alone, so the app button still fits beside it. */
@media (max-width: 380px) {
  .brand-name { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 18px; border-radius: 999px;
  font-weight: 600; font-size: .95rem; text-decoration: none;
  border: 1px solid transparent; transition: background .15s, border-color .15s, transform .15s;
}
.btn-primary { background: var(--accent); color: var(--on-accent); }
.btn-primary:hover { background: var(--accent-strong); }
.btn-ghost { border-color: var(--border); color: var(--text); background: var(--surface); }
.btn-ghost:hover { border-color: var(--accent); }
.btn-lg { padding: 14px 24px; font-size: 1rem; }

/* Type */
.eyebrow {
  display: inline-block; font-size: .8rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  color: var(--accent); background: var(--surface-tint); border: 1px solid var(--border);
  padding: 4px 12px; border-radius: 999px;
}
h1 { font-size: clamp(2.3rem, 5.5vw, 3.6rem); line-height: 1.08; letter-spacing: -.03em; margin: 18px 0 18px; text-wrap: balance; }
h1 em, h2 em { font-style: normal; color: var(--accent); }
h2 { font-size: clamp(1.7rem, 3.5vw, 2.4rem); letter-spacing: -.02em; line-height: 1.15; margin: 12px 0 12px; text-wrap: balance; }
h3 { font-size: 1.15rem; letter-spacing: -.01em; line-height: 1.3; margin: 0 0 6px; }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 34em; margin: 0 0 28px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; }
.fine { font-size: .875rem; color: var(--muted); margin-top: 16px; }

/* Hero */
.hero {
  background: radial-gradient(1200px 500px at 80% -10%, var(--hero-from), transparent 70%),
              linear-gradient(180deg, var(--hero-from), var(--bg));
  padding: 72px 0 96px; overflow: hidden;
}
.hero .wrap { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
@media (max-width: 880px) { .hero .wrap { grid-template-columns: 1fr; gap: 48px; } .hero { padding-top: 48px; } }
.hero-compact { padding: 56px 0 64px; }
.hero-compact .wrap { grid-template-columns: minmax(0, 46em); }
.hero-compact + section { padding-top: 32px; }
.hero-points { list-style: none; padding: 0; margin: 28px 0 0; display: flex; flex-wrap: wrap; gap: 8px 22px; color: var(--muted); font-size: .92rem; }
.hero-points li { display: flex; align-items: center; gap: 8px; }
.hero-points li::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }

/* App screenshots, in a phone-like frame */
.phone {
  justify-self: center; width: min(320px, 100%);
  background: var(--surface); border: 1px solid var(--border); border-radius: 34px;
  box-shadow: var(--shadow-lg); padding: 12px;
}
.screen { display: block; width: 100%; height: auto; border-radius: 24px; background: #fff; border: 1px solid var(--border); }
.phone-pair { position: relative; justify-self: center; width: min(470px, 100%); padding-bottom: 40px; }
.phone-pair .phone { width: 72%; }
.phone-pair .phone + .phone { position: absolute; right: 0; bottom: 0; width: 56%; }
.phone-pair .phone:first-child { transform: rotate(-2deg); }
.phone-pair .phone + .phone { transform: rotate(3deg); }
@media (max-width: 480px) { .phone-pair .phone + .phone { width: 60%; right: -4px; } }

/* Sections */
section { padding: 88px 0; }
.section-head { max-width: 680px; margin-bottom: 40px; }
.section-head p { color: var(--muted); font-size: 1.08rem; margin: 0; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.band { background: var(--surface-tint); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }

/* Use-case cards */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 20px; list-style: none; padding: 0; margin: 0; }
.card {
  display: flex; flex-direction: column; gap: 10px;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 24px; box-shadow: var(--shadow);
}
.card p { margin: 0; color: var(--muted); }
.card .uses { margin-top: auto; padding-top: 8px; display: flex; flex-wrap: wrap; gap: 6px; list-style: none; padding-left: 0; }
.uses li, .tag {
  font-size: .78rem; font-weight: 600; color: var(--accent-strong); background: var(--surface-tint);
  border: 1px solid var(--border); padding: 2px 10px; border-radius: 999px;
}
.tag-paid { color: var(--muted); }
.icon {
  width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center;
  background: var(--icon-bg); color: var(--accent-strong);
}
.icon svg { width: 24px; height: 24px; }

/* Feature rows: text beside a screenshot, alternating */
.feature {
  display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center;
  padding: 56px 0; border-bottom: 1px solid var(--border);
}
.feature:last-child { border-bottom: 0; }
.feature:nth-child(even) .feature-text { order: 2; }
.feature-text h3 { font-size: clamp(1.4rem, 2.6vw, 1.8rem); letter-spacing: -.02em; line-height: 1.2; margin-bottom: 12px; }
.feature-text p { color: var(--muted); font-size: 1.05rem; }
.feature-text ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.feature-text li { position: relative; padding-left: 30px; color: var(--muted); }
.feature-text li strong { color: var(--text); }
.feature-text li::before {
  content: ""; position: absolute; left: 0; top: .2em; width: 20px; height: 20px; border-radius: 50%;
  background: var(--accent);
}
.feature-text li::after {
  content: ""; position: absolute; left: 7px; top: calc(.2em + 4px); width: 6px; height: 10px;
  border: solid var(--on-accent); border-width: 0 2px 2px 0; transform: rotate(45deg);
}
.feature .phone { width: min(300px, 100%); }
@media (max-width: 880px) {
  .feature { grid-template-columns: 1fr; gap: 32px; padding: 40px 0; }
  .feature:nth-child(even) .feature-text { order: 0; }
}

/* Three reasons */
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; list-style: none; padding: 0; margin: 0; }
@media (max-width: 880px) { .pillars { grid-template-columns: 1fr; } }
.pillars li { padding: 24px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); }
.pillars p { margin: 0; color: var(--muted); }
.pillars .icon { margin-bottom: 14px; }

.more { margin-top: 32px; }

/* Use-case page groups */
.group { scroll-margin-top: 80px; }
.group + .group { margin-top: 72px; }
.group .feature { border-bottom: 0; padding-top: 0; }
.cta .cta-link { color: #fff; }
.jump { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }

/* Plans table */
.table-scroll { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); }
.table-scroll:focus-visible { outline: 3px solid var(--brand-500); outline-offset: 3px; }
table.plans { width: 100%; min-width: 600px; border-collapse: collapse; font-size: .95rem; }
table.plans th, table.plans td { padding: 14px 16px; text-align: left; border-bottom: 1px solid var(--border); }
table.plans tbody tr:last-child th, table.plans tbody tr:last-child td { border-bottom: 0; }
table.plans thead th { background: var(--surface-tint); font-weight: 700; }
table.plans tbody th { font-weight: 600; }
table.plans .no { color: var(--muted); }
.plan-notes { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 20px; margin-top: 32px; }
.plan-notes > div { padding: 24px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
.plan-notes p { margin: 0; color: var(--muted); }

/* FAQ */
.faq { max-width: 760px; }
.faq details { border-bottom: 1px solid var(--border); padding: 18px 0; }
.faq summary { cursor: pointer; font-weight: 600; font-size: 1.05rem; }
.faq details p { color: var(--muted); margin: 10px 0 0; }

/* Call to action */
.cta {
  text-align: center; background: var(--brand-900); color: #fff; border-radius: 24px;
  padding: 64px 24px; margin: 0 auto;
}
.cta h2 { color: #fff; margin-top: 0; }
.cta p { color: var(--brand-100); max-width: 520px; margin: 0 auto 28px; font-size: 1.08rem; }
.cta .cta-row { justify-content: center; }
.cta .btn-primary { background: #fff; color: var(--brand-900); }
.cta .btn-primary:hover { background: var(--brand-100); }
.cta .btn-ghost { background: transparent; color: #fff; border-color: rgb(255 255 255 / .35); }
.cta .btn-ghost:hover { border-color: #fff; }
section.cta-section { padding-top: 24px; }

footer.site { border-top: 1px solid var(--border); padding: 32px 0 40px; color: var(--muted); font-size: .9rem; }
footer.site .wrap { display: flex; flex-wrap: wrap; gap: 16px 32px; justify-content: space-between; align-items: center; }
footer.site nav { display: flex; flex-wrap: wrap; gap: 20px; }
footer.site a { color: var(--muted); text-decoration: none; }
footer.site a:hover { color: var(--text); text-decoration: underline; }
footer.site .credit { width: 100%; margin: 0; font-size: .8rem; }
footer.site .credit a { text-decoration: underline; }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
