/* Rowcall marketing site — hand-written CSS on the app's design tokens.
   Static (no build step). Dark mode is class-driven (html.dark) exactly like
   the app: a light/dark/system toggle persisted in localStorage, with system
   resolved by the inline script in each page's <head>. */

:root {
  --surface: oklch(0.985 0.002 247);
  --surface-raised: oklch(1 0 0);
  --surface-sunken: oklch(0.96 0.003 247);
  --ink: oklch(0.21 0.03 257);
  --ink-muted: oklch(0.55 0.02 257);
  --ink-faint: oklch(0.7 0.015 257);
  --edge: oklch(0.91 0.005 247);
  --edge-strong: oklch(0.84 0.008 247);
  --accent: oklch(0.5 0.18 260);
  --accent-fg: oklch(0.99 0 0);
  --accent-soft: oklch(0.94 0.03 260);
  --success: oklch(0.6 0.14 155);
  --success-soft: oklch(0.94 0.05 155);
}

html.dark {
  --surface: oklch(0.19 0.02 257);
  --surface-raised: oklch(0.23 0.02 257);
  --surface-sunken: oklch(0.16 0.02 257);
  --ink: oklch(0.93 0.005 247);
  --ink-muted: oklch(0.68 0.015 257);
  --ink-faint: oklch(0.52 0.015 257);
  --edge: oklch(0.32 0.02 257);
  --edge-strong: oklch(0.42 0.02 257);
  --accent: oklch(0.68 0.15 260);
  --accent-fg: oklch(0.15 0.02 257);
  --accent-soft: oklch(0.3 0.06 260);
  --success: oklch(0.7 0.13 155);
  --success-soft: oklch(0.3 0.05 155);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  background: var(--surface);
  color: var(--ink);
  line-height: 1.6;
}

.container { max-width: 64rem; margin: 0 auto; padding: 0 1.25rem; }

a { color: var(--accent); }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: var(--surface);
  border-bottom: 1px solid var(--edge);
}
.site-header .container {
  display: flex; align-items: center; justify-content: space-between;
  height: 3.5rem; gap: 1rem;
}
.brand { display: flex; align-items: center; gap: 0.5rem; font-weight: 700; font-size: 1.05rem; color: var(--ink); text-decoration: none; }
/* 2rem = the icon's native 32px grid at 1:1 (and 2x on retina) — non-integer
   scales make the crispEdges pixel art render unevenly. */
.brand img { width: 2rem; height: 2rem; }
.site-nav { display: flex; align-items: center; gap: 1.25rem; font-size: 0.9rem; }
/* :not(.btn) — otherwise this outranks .btn-accent and greys out button text */
.site-nav a:not(.btn) { color: var(--ink-muted); text-decoration: none; }
.site-nav a:not(.btn):hover { color: var(--ink); }
/* Narrow screens: drop the in-page section links (Features/Pricing/FAQ),
   keep Log in / Get started / theme toggle. */
@media (max-width: 40rem) {
  .site-nav a[href^="#"] { display: none; }
}

/* Buttons — mirror the app's Button component (md size):
   h-8, px-3, text-sm, font-medium, rounded-md, inline-flex centered,
   leading-none; outline + solid-accent variants. */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.375rem;
  height: 2rem; padding: 0 0.75rem; border-radius: 0.375rem;
  font-size: 0.875rem; font-weight: 500; line-height: 1; text-decoration: none;
  border: 1px solid var(--edge); color: var(--ink); background: var(--surface-raised);
  transition: background-color 0.15s, color 0.15s, opacity 0.15s;
  cursor: pointer; font-family: inherit;
}
.btn:hover { background: var(--surface-sunken); }
.btn-accent { background: var(--accent); border-color: var(--accent); color: var(--accent-fg); }
.btn-accent:hover { opacity: 0.9; background: var(--accent); }
/* Marketing-only larger CTA (the app has no lg size). */
.btn-lg { height: 2.75rem; padding: 0 1.25rem; font-size: 1rem; }
/* Square icon button — mirrors the app's IconButton (h-8 w-8). */
.theme-toggle { width: 2rem; padding: 0; color: var(--ink-muted); }
.theme-toggle:hover { color: var(--ink); }
.theme-toggle svg { display: block; }

/* Hero */
.hero { padding: 4rem 0; text-align: center; }
.hero h1 { font-size: clamp(2rem, 5vw, 3.25rem); line-height: 1.15; letter-spacing: -0.02em; }
.hero p.lead {
  margin: 1rem auto 2rem; max-width: 38rem;
  color: var(--ink-muted); font-size: 1.15rem;
}
.hero .cta-row { display: flex; gap: 0.75rem; justify-content: center; flex-wrap: wrap; }

/* Rows mock */
.mock {
  margin: 2rem auto 0; max-width: 44rem; text-align: left;
  display: grid; gap: 0.75rem;
}
.mock-row {
  display: flex; align-items: center; gap: 0.75rem;
  background: var(--surface-raised); border: 1px solid var(--edge);
  border-radius: 0.5rem; padding: 0.7rem 0.9rem; font-size: 0.85rem;
}
.mock-check {
  width: 1.15rem; height: 1.15rem; border-radius: 0.25rem; flex: none;
  border: 2px solid var(--edge-strong); display: grid; place-items: center;
  font-size: 0.75rem; font-weight: 800; line-height: 1;
  /* interactive (a real <button>) */
  background: transparent; color: inherit; padding: 0;
  cursor: pointer; font-family: inherit;
}
.mock-check:hover { border-color: var(--accent); }
.mock-check:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.mock-check.done { background: var(--success-soft); border-color: var(--success); color: var(--success); }
.mock-check.done:hover { border-color: var(--accent); }
/* The ✓ is a pseudo-element so it can be nudged independently of the box. */
.mock-check.done::before { content: "✓"; transform: translateY(-1px); }
.mock-field { color: var(--ink-muted); }
.mock-field b { color: var(--ink); font-weight: 600; }
.mock-pill {
  margin-left: auto; flex: none; font-size: 0.7rem; font-weight: 700;
  padding: 0.15rem 0.55rem; border-radius: 999px;
  background: var(--surface-sunken); color: var(--ink-muted);
}
.mock-pill.pass { background: var(--success-soft); color: var(--success); }
/* Progress meter — the app's Dashboard card in miniature. */
.mock-meter {
  background: var(--surface-raised); border: 1px solid var(--edge);
  border-radius: 0.5rem; padding: 1rem;
}
.mock-meter-head {
  display: flex; justify-content: space-between; align-items: baseline;
  font-size: 0.85rem; margin-bottom: 0.4rem;
}
.mock-meter-head span:first-child { font-weight: 500; }
.mock-meter-head span:last-child { color: var(--ink-muted); }
.mock-track {
  height: 0.5rem; border-radius: 999px; overflow: hidden;
  background: var(--surface-sunken);
}
.mock-fill {
  height: 100%; border-radius: 999px; background: var(--success);
  transition: width 0.3s;
}

/* Sections */
section { padding: 4rem 0; }
section h2 { font-size: 1.8rem; letter-spacing: -0.01em; margin-bottom: 0.5rem; }
section p.sub { color: var(--ink-muted); margin-bottom: 2rem; max-width: 40rem; }

/* Features */
.features-grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); }
.feature {
  background: var(--surface-raised); border: 1px solid var(--edge);
  border-radius: 0.5rem; padding: 1.25rem;
}
.feature h3 { font-size: 1rem; margin-bottom: 0.35rem; }
.feature p { font-size: 0.9rem; color: var(--ink-muted); }

/* Pricing */
.pricing-grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr)); max-width: 44rem; margin: 0 auto; }
.plan {
  background: var(--surface-raised); border: 1px solid var(--edge);
  border-radius: 0.5rem; padding: 1.5rem; display: flex; flex-direction: column;
}
.plan.featured { border-color: var(--accent); }
.plan h3 { font-size: 1.05rem; }
.plan .price { font-size: 2rem; font-weight: 700; margin: 0.5rem 0 0.25rem; }
.plan .price small { font-size: 0.9rem; font-weight: 400; color: var(--ink-muted); }
.plan .alt-price { font-size: 0.85rem; color: var(--ink-muted); margin-bottom: 1rem; }
.plan ul { list-style: none; margin: 0 0 1.5rem; flex: 1; }
.plan li { font-size: 0.9rem; color: var(--ink-muted); padding: 0.3rem 0 0.3rem 1.4rem; position: relative; }
.plan li::before { content: "✓"; position: absolute; left: 0; color: var(--success); font-weight: 700; }
.plan .btn { text-align: center; }
.badge {
  display: inline-block; font-size: 0.7rem; font-weight: 700; letter-spacing: 0.03em;
  background: var(--accent-soft); color: var(--accent);
  padding: 0.15rem 0.6rem; border-radius: 999px; margin-left: 0.5rem;
}

/* FAQ */
.faq details {
  border: 1px solid var(--edge); border-radius: 0.5rem;
  background: var(--surface-raised); padding: 0.9rem 1.1rem; margin-bottom: 0.75rem;
}
.faq summary { cursor: pointer; font-weight: 600; font-size: 0.95rem; }
.faq details p { margin-top: 0.75rem; font-size: 0.9rem; color: var(--ink-muted); }

/* Footer */
.site-footer { border-top: 1px solid var(--edge); padding: 2rem 0; font-size: 0.85rem; color: var(--ink-muted); }
.site-footer .container { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; align-items: center; }
.site-footer nav { display: flex; gap: 1.25rem; }
.site-footer a { color: var(--ink-muted); text-decoration: none; }
.site-footer a:hover { color: var(--ink); }

/* Legal pages */
.legal { max-width: 44rem; padding: 3rem 1.25rem 4rem; margin: 0 auto; }
.legal h1 { font-size: 1.9rem; margin-bottom: 0.25rem; }
.legal .updated { color: var(--ink-faint); font-size: 0.85rem; margin-bottom: 2rem; }
.legal h2 { font-size: 1.15rem; margin: 1.75rem 0 0.5rem; }
.legal p, .legal li { font-size: 0.95rem; color: var(--ink-muted); margin-bottom: 0.6rem; }
.legal ul { padding-left: 1.25rem; }
