/* Drive DTC – site.css
   The one stylesheet for the public website (drivedtc.com). Light theme, fixed. The app's own palettes, 4px grid,
   no gradients, no web fonts, colour only where it means something. Dark tokens exist for the frames that hold
   app screenshots, the final call-to-action band and the footer (wrap any block in .dark to switch its tokens).
   See docs/DESIGN-SYSTEM.md for how to add a page.

   CLASS INDEX (short names, one job each)
   Layout      .container (.wrap = alias)  .section  .section.tight  .section-head  .grid .c2 .c3 .c4  .split  .flip
               .stack  .row (.center-row)  .center  .dark  .skip  .mt-12/16/20/24/32
   Type        h1–h4  .lead  .eyebrow  .muted  .small  .mono  .prose  .kicker
   Header      .site-head  .bar  .brand  .nav  .nav-item  .nav-link  .menu  .head-actions  .menu-btn
               .sheet  .sheet-bar  .sheet-close  .sheet-group  .sheet-foot  body.no-scroll
   Buttons     .btn  .primary  .secondary (default)  .ghost  .danger  .sm  .lg  .link  .store-badge
   Cards       .card  .card.pad-lg  .card-icon  .feature  .feature-row  .flow  .flow-step  .flow-arrow  .step  .step-num
   Frames      .frame  .frame-bar  .frame-body      (an app screenshot in a window)
   Switcher    .switcher  .switch-tabs  .switch-tab  .switch-stage  .switch-panel (.on)
   Chips       .chip  .chip.ok .warn .bad .accent .pro .new
   Lists       .checks  .list .list.yes .list.no  .ic
   Tables      .table  .table-wrap
   Forms       .field  .input  .select (.select-wrap)  .textarea  .hint  .error  .is-invalid  .hp  .form-row  .form-msg  .notify
   Callouts    .callout  .callout.info .ok .warn .bad
   Accordion   .acc  details/summary
   Tabs        .tabs  .tab
   Pricing     .plans  .plan  .plan.featured  .plan-price  .plan-note  .plan-list  .packs  .pack  .soon
   FAQ         .faq (= .acc)
   Footer      .site-foot  .foot-grid  .foot-legal  .foot-slim
   Motion      .reveal (.in)  .enter  .stagger  [prefers-reduced-motion]
   Legacy      header.nav / footer.site (only until the old pages are rebuilt)
*/

/* 1. Tokens ------------------------------------------------------------------------------------------------ */
:root {
  --bg: #F3F5F7; --surface: #FFFFFF; --surface-2: #F1F3F6; --surface-3: #E4E8ED; --line: #DCE1E8;
  --text: #14181D; --muted: #5C6875;
  --accent: #0B62D6; --accent-deep: #094FAD; --on-accent: #FFFFFF; --accent-soft: rgba(11,98,214,.10);
  --ok: #17743A; --ok-soft: rgba(23,116,58,.10); --warn: #8F6100; --warn-soft: rgba(143,97,0,.10);
  --bad: #C61F2B; --bad-soft: rgba(198,31,43,.10); --pro: #54677F; --pro-soft: rgba(84,103,127,.10);

  --d-bg: #0B0D10; --d-surface: #131720; --d-surface-2: #1B2029; --d-surface-3: #252B35; --d-line: #2A313B;
  --d-text: #EDF1F6; --d-muted: #8C96A4; --d-accent: #3E8BFF; --d-accent-deep: #2E6FE0; --d-on-accent: #05101F;
  --d-ok: #42C367; --d-warn: #E9A93A; --d-bad: #FA5D54; --d-pro: #9FB2C9;

  --sans: "Segoe UI Variable Display", "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --mono: "Cascadia Mono", Consolas, "SF Mono", Menlo, monospace;

  --r-ctl: 6px; --r-card: 10px; --r-frame: 14px; --r-chip: 4px;
  --shadow: 0 1px 2px rgba(20,24,29,.06), 0 12px 32px rgba(20,24,29,.08);
  --container: 1200px; --gutter: 24px; --head-h: 64px;
  --ease: cubic-bezier(.2, .7, .2, 1); --t-fast: 160ms; --t-base: 240ms; --t-reveal: 420ms;
  color-scheme: light;
}
/* Dark scope: the same component rules, the app's dark palette. */
.dark {
  --bg: var(--d-bg); --surface: var(--d-surface); --surface-2: var(--d-surface-2); --surface-3: var(--d-surface-3);
  --line: var(--d-line); --text: var(--d-text); --muted: var(--d-muted);
  --accent: var(--d-accent); --accent-deep: var(--d-accent-deep); --on-accent: var(--d-on-accent); --accent-soft: rgba(62,139,255,.14);
  --ok: var(--d-ok); --ok-soft: rgba(66,195,103,.13); --warn: var(--d-warn); --warn-soft: rgba(233,169,58,.13);
  --bad: var(--d-bad); --bad-soft: rgba(250,93,84,.13); --pro: var(--d-pro); --pro-soft: rgba(159,178,201,.16);
  background: var(--bg); color: var(--text); color-scheme: dark;
}

/* 2. Base -------------------------------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { background: var(--bg); -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--head-h) + 16px); }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.6 var(--sans); overflow-wrap: anywhere; }
img, svg, video { display: block; max-width: 100%; }
[hidden] { display: none !important; }
img { height: auto; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 2px; }
button, input, select, textarea { font: inherit; color: inherit; }
hr { border: 0; border-top: 1px solid var(--line); margin: 32px 0; }
code, kbd, .mono { font-family: var(--mono); font-variant-numeric: tabular-nums; font-size: .94em; }
code { background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--r-chip); padding: 1px 5px; }
::selection { background: var(--accent-soft); }

/* 3. Type ---------------------------------------------------------------------------------------------------- */
h1, h2, h3, h4 { margin: 0; font-weight: 650; letter-spacing: -.02em; line-height: 1.1; text-wrap: balance; }
h1 { font-size: clamp(38px, 5vw, 60px); line-height: 1.05; font-weight: 700; }
h2 { font-size: clamp(30px, 3.4vw, 38px); }
h3 { font-size: 20px; letter-spacing: -.01em; line-height: 1.25; }
h4 { font-size: 16px; letter-spacing: 0; line-height: 1.35; }
.lead { font-size: 20px; line-height: 1.5; color: var(--muted); text-wrap: pretty; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--accent); margin-bottom: 16px; }
.kicker { font-size: 13px; font-weight: 600; color: var(--muted); letter-spacing: .04em; text-transform: uppercase; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.prose { max-width: 68ch; }
.prose h2 { font-size: 24px; margin: 40px 0 12px; }
.prose h3 { font-size: 18px; margin: 28px 0 8px; }
.prose ul, .prose ol { padding-left: 22px; margin: 0 0 1em; }
.prose li { margin: 4px 0; }
.ic { width: 20px; height: 20px; flex: none; }

/* 4. Layout ------------------------------------------------------------------------------------------------- */
.container, .wrap { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: 96px 0; }
.section + .section { padding-top: 0; }
.section.tight { padding: 64px 0; }
.section-head { max-width: 760px; margin-bottom: 48px; }
.section-head .lead { margin-top: 12px; max-width: 68ch; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.grid { display: grid; gap: 24px; }
.grid.c2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid.c3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid.c4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 48px; align-items: center; }
.split.even { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.split.flip > :first-child { order: 2; }
.stack { display: grid; gap: 12px; }
.row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.center { text-align: center; }
.center .row, .center .checks, .row.center-row { justify-content: center; }
.skip { position: absolute; left: 16px; top: -64px; z-index: 100; padding: 10px 14px; background: var(--accent); color: var(--on-accent); border-radius: var(--r-ctl); font-weight: 600; }
.skip:focus { top: 12px; outline-offset: 0; text-decoration: none; }

/* 5. Header ------------------------------------------------------------------------------------------------- */
.site-head { position: sticky; top: 0; z-index: 50; background: rgba(243,245,247,.86); backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid var(--line); }
.site-head .bar { display: flex; align-items: center; gap: 8px; height: var(--head-h); }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); font-weight: 700; font-size: 17px; letter-spacing: -.01em; white-space: nowrap; }
.brand:hover { text-decoration: none; }
.brand img { width: 28px; height: 28px; border-radius: 7px; }
.brand .brand-tag { color: var(--muted); font-weight: 500; padding-left: 10px; border-left: 1px solid var(--line); margin-left: 2px; }
.nav { display: flex; align-items: center; gap: 2px; margin-left: 20px; }
.nav-item { position: relative; }
.nav-link { display: inline-flex; align-items: center; gap: 4px; height: 36px; padding: 0 12px; border: 0; border-radius: var(--r-ctl); background: none; color: var(--text); font-size: 15px; font-weight: 500; cursor: pointer; white-space: nowrap; transition: background var(--t-fast) var(--ease); }
.nav-link:hover, .nav-item.open > .nav-link { background: var(--surface-3); text-decoration: none; }
.nav-link[aria-current="page"], .nav-link.is-active { color: var(--accent); }
.nav-link .ic { width: 16px; height: 16px; margin-right: -4px; color: var(--muted); transition: transform var(--t-fast) var(--ease); }
.nav-item.open > .nav-link .ic { transform: rotate(180deg); }
.menu { position: absolute; top: calc(100% + 6px); left: 0; min-width: 300px; padding: 8px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); box-shadow: var(--shadow); opacity: 0; visibility: hidden; transform: translateY(-4px); transition: opacity var(--t-fast) var(--ease), transform var(--t-fast) var(--ease), visibility 0s linear var(--t-fast); }
.menu.wide { min-width: 520px; display: grid; grid-template-columns: 1fr 1fr; }
.menu a { display: block; padding: 10px 12px; border-radius: var(--r-ctl); color: var(--text); }
.menu a:hover { background: var(--surface-2); text-decoration: none; }
.menu a b { display: block; font-weight: 600; font-size: 15px; }
.menu a span { display: block; font-size: 13px; color: var(--muted); line-height: 1.45; }
.menu a[aria-current="page"] b { color: var(--accent); }
.nav-item.open > .menu,
html:not(.js) .nav-item:hover > .menu,
html:not(.js) .nav-item:focus-within > .menu { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.head-actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.btn.menu-btn { display: none; }

/* Mobile sheet */
.sheet { position: fixed; inset: 0; z-index: 60; display: flex; flex-direction: column; background: var(--bg); overflow-y: auto; opacity: 0; transform: translateY(8px); transition: opacity var(--t-base) var(--ease), transform var(--t-base) var(--ease); }
.sheet.open { opacity: 1; transform: none; }
.sheet[hidden] { display: none; }
.sheet-bar { display: flex; align-items: center; justify-content: space-between; height: var(--head-h); padding: 0 var(--gutter); border-bottom: 1px solid var(--line); flex: none; }
.sheet-close { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: var(--r-ctl); background: var(--surface); cursor: pointer; }
.sheet-group { padding: 8px var(--gutter) 0; }
.sheet-group b { display: block; padding: 20px 12px 6px; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.sheet-group a { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 48px; padding: 8px 12px; border-radius: var(--r-ctl); color: var(--text); font-size: 17px; font-weight: 500; }
.sheet-group a:hover { background: var(--surface-3); text-decoration: none; }
.sheet-group a small { font-size: 13px; color: var(--muted); font-weight: 400; }
.sheet-group a .ic { color: var(--muted); width: 18px; height: 18px; }
.sheet-foot { margin-top: auto; padding: 20px var(--gutter) 28px; border-top: 1px solid var(--line); display: grid; gap: 10px; }
.sheet-foot .btn { width: 100%; height: 48px; }
body.no-scroll { overflow: hidden; }

/* 6. Buttons ------------------------------------------------------------------------------------------------ */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 40px; padding: 0 16px; border-radius: var(--r-ctl); border: 1px solid var(--line); background: var(--surface); color: var(--text); font-size: 15px; font-weight: 600; line-height: 1; white-space: nowrap; cursor: pointer; text-decoration: none; transition: background var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease), color var(--t-fast) var(--ease), transform var(--t-fast) var(--ease); }
.btn:hover { background: var(--surface-2); border-color: #CFD6DE; text-decoration: none; }
.btn:active { transform: translateY(1px); background: var(--surface-3); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.btn.primary:hover { background: var(--accent-deep); border-color: var(--accent-deep); }
.btn.primary:active { background: #07408C; }
.btn.ghost { background: transparent; border-color: transparent; }
.btn.ghost:hover { background: var(--surface-3); border-color: transparent; }
.btn.danger { background: var(--surface); border-color: var(--bad); color: var(--bad); }
.btn.danger:hover { background: var(--bad); border-color: var(--bad); color: #fff; }
.btn.sm { height: 36px; padding: 0 12px; font-size: 14px; }
.btn.lg { height: 48px; padding: 0 22px; font-size: 16px; }
.btn[disabled], .btn.disabled, .btn[aria-disabled="true"] { opacity: .45; pointer-events: none; }
.btn .ic { width: 18px; height: 18px; margin: 0 -2px; }
.dark .btn:hover { border-color: var(--surface-3); }
.link { display: inline-flex; align-items: center; gap: 4px; font-weight: 600; }
.link .ic { width: 16px; height: 16px; transition: transform var(--t-fast) var(--ease); }
.link:hover .ic { transform: translateX(2px); }
.store-badge img { width: 200px; height: 55px; }
.store-badge:hover { text-decoration: none; opacity: .92; }
.dark .store-badge img { border-radius: 5px; box-shadow: 0 0 0 1px var(--d-line); }

/* 7. Cards and feature blocks ------------------------------------------------------------------------------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); padding: 24px; }
.card.pad-lg { padding: 32px; }
.card > :last-child { margin-bottom: 0; }
.card h3 + p, .card h4 + p { margin-top: 6px; }
.card p { color: var(--muted); font-size: 15px; }
.card .eyebrow { color: var(--accent); font-size: 13px; }
.card .lead { font-size: 18px; }
.card-icon { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 8px; background: var(--accent-soft); color: var(--accent); margin-bottom: 16px; }
.card-icon .ic { width: 22px; height: 22px; }
.feature { display: flex; flex-direction: column; }
.feature h3 { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.feature-row { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 56px; align-items: center; }
.feature-row.flip > :first-child { order: 2; }
.feature-row h2 { font-size: clamp(26px, 2.6vw, 32px); }
.feature-row .lead { font-size: 18px; margin-top: 12px; }
.feature-row .list { margin-top: 24px; }
/* The product flow: cards joined by arrows (a diagram, not a chart). */
.flow { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr auto 1fr; gap: 12px; align-items: stretch; }
.flow-step { display: flex; flex-direction: column; gap: 8px; padding: 20px; min-width: 0; }
.flow-step .card-icon { margin-bottom: 4px; }
.flow-step h3 { font-size: 17px; }
.flow-step p { font-size: 14px; }
.flow-step .chip { align-self: flex-start; margin-top: auto; }
.flow-arrow { display: flex; align-items: center; color: var(--muted); }
.flow-arrow .ic { width: 20px; height: 20px; }
.step { position: relative; }
.step-num { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 50%; background: var(--text); color: var(--bg); font-family: var(--mono); font-size: 14px; font-weight: 600; margin-bottom: 16px; }

/* 8. Window frame for screenshots --------------------------------------------------------------------------- */
.frame { background: var(--d-surface); border: 1px solid var(--d-line); border-radius: var(--r-frame); box-shadow: var(--shadow); overflow: hidden; color-scheme: dark; }
.frame-bar { display: flex; align-items: center; gap: 6px; height: 32px; padding: 0 14px; background: var(--d-surface-2); border-bottom: 1px solid var(--d-line); }
.frame-bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--d-surface-3); }
.frame-bar span { margin-left: auto; font-family: var(--mono); font-size: 12px; color: var(--d-muted); letter-spacing: 0; }
.frame img { width: 100%; height: auto; }
.frame-body { padding: 16px; color: var(--d-text); }

/* 9. Product switcher ---------------------------------------------------------------------------------------- */
.switcher { display: grid; gap: 20px; }
.switch-tabs { display: flex; gap: 4px; padding: 4px; margin: 0 auto; max-width: 100%; overflow-x: auto; background: var(--surface-3); border-radius: 8px; scrollbar-width: none; }
.switch-tabs::-webkit-scrollbar { display: none; }
.switch-tab { flex: none; height: 36px; padding: 0 14px; border: 0; border-radius: var(--r-ctl); background: transparent; color: var(--muted); font-size: 14px; font-weight: 600; cursor: pointer; transition: background var(--t-fast) var(--ease), color var(--t-fast) var(--ease); }
.switch-tab:hover { color: var(--text); }
.switch-tab[aria-selected="true"] { background: var(--surface); color: var(--text); box-shadow: 0 1px 2px rgba(20,24,29,.08); }
.switch-stage { display: grid; }
.switch-panel { grid-area: 1 / 1; opacity: 0; visibility: hidden; transition: opacity var(--t-base) var(--ease), visibility 0s linear var(--t-base); }
.switch-panel.on { opacity: 1; visibility: visible; transition-delay: 0s; z-index: 1; }
.switch-panel[hidden] { display: none; }
html:not(.js) .switch-panel:first-child { opacity: 1; visibility: visible; }

/* 10. Chips ------------------------------------------------------------------------------------------------- */
.chip { display: inline-flex; align-items: center; gap: 6px; height: 22px; padding: 0 8px; border-radius: var(--r-chip); background: var(--surface-3); color: var(--muted); font-size: 12px; font-weight: 700; letter-spacing: .02em; white-space: nowrap; vertical-align: middle; }
.chip.ok { background: var(--ok-soft); color: var(--ok); }
.chip.warn { background: var(--warn-soft); color: var(--warn); }
.chip.bad { background: var(--bad-soft); color: var(--bad); }
.chip.accent, .chip.new { background: var(--accent-soft); color: var(--accent); }
.chip.pro { background: var(--pro-soft); color: var(--pro); }
.chip .ic { width: 14px; height: 14px; }

/* 11. Lists ------------------------------------------------------------------------------------------------- */
.checks { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 24px; color: var(--muted); font-size: 15px; }
.checks li { display: inline-flex; align-items: center; gap: 8px; }
.checks .ic { width: 18px; height: 18px; color: var(--ok); }
.list { list-style: none; margin: 0; padding: 0; }
.list li { display: flex; gap: 12px; align-items: flex-start; padding: 10px 0; border-top: 1px solid var(--line); font-size: 15px; line-height: 1.5; }
.list li:first-child { border-top: 0; padding-top: 0; }
.list li:last-child { padding-bottom: 0; }
.list .ic { width: 20px; height: 20px; margin-top: 2px; color: var(--muted); }
.list.yes .ic { color: var(--ok); }
.list.no .ic { color: var(--bad); }
.list.plain li { border: 0; padding: 4px 0; }
.list b { font-weight: 600; }

/* 12. Tables ------------------------------------------------------------------------------------------------ */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-card); background: var(--surface); }
.table { width: 100%; border-collapse: collapse; font-size: 15px; }
.table th, .table td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
.table thead th { font-size: 12px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); background: var(--surface-2); }
.table tbody tr:last-child td { border-bottom: 0; }
.table .num { font-family: var(--mono); font-variant-numeric: tabular-nums; text-align: right; }
.table .ic { display: inline-block; vertical-align: -4px; }
.table .yes { color: var(--ok); } .table .no { color: var(--bad); }

/* 13. Forms ------------------------------------------------------------------------------------------------- */
.field { display: grid; gap: 6px; }
.field > label, .label { font-size: 14px; font-weight: 600; color: var(--text); }
.input, .select, .textarea,
input:not([type=checkbox]):not([type=radio]):not([type=submit]):not([type=button]):not([type=file]), select, textarea {
  width: 100%; min-height: 40px; padding: 8px 12px; border: 1px solid var(--line); border-radius: var(--r-ctl); background: var(--surface); color: var(--text); font-size: 15px; line-height: 1.4; transition: border-color var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease); }
textarea, .textarea { min-height: 120px; resize: vertical; }
/* Wrap a <select> in .select-wrap to get the chevron (drawn with borders, so no image and no data: URI in the CSP). */
select, .select { appearance: none; padding-right: 36px; }
.select-wrap { position: relative; }
.select-wrap::after { content: ""; position: absolute; right: 14px; top: 50%; width: 8px; height: 8px; border-right: 1.75px solid var(--muted); border-bottom: 1.75px solid var(--muted); transform: translateY(-70%) rotate(45deg); pointer-events: none; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
input::placeholder, textarea::placeholder { color: #8A94A0; }
input[disabled], select[disabled], textarea[disabled] { opacity: .55; background: var(--surface-2); }
.is-invalid, input[aria-invalid="true"], textarea[aria-invalid="true"], select[aria-invalid="true"] { border-color: var(--bad); }
.is-invalid:focus, [aria-invalid="true"]:focus { box-shadow: 0 0 0 3px var(--bad-soft); }
.hint { font-size: 13px; color: var(--muted); }
.error { font-size: 13px; color: var(--bad); }
.form-row { display: flex; gap: 8px; }
.form-row input { flex: 1; min-width: 0; }
.form-msg { margin: 8px 0 0; font-size: 14px; color: var(--muted); min-height: 1.4em; }
.form-msg.ok { color: var(--ok); }
.form-msg.bad { color: var(--bad); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
input[type=checkbox], input[type=radio] { width: 18px; height: 18px; accent-color: var(--accent); margin: 0 8px 0 0; vertical-align: -3px; }
.notify { margin-top: 20px; max-width: 520px; text-align: left; }
.notify-label { display: block; font-size: 15px; font-weight: 600; margin-bottom: 8px; }
.notify-fine { margin: 6px 0 0; font-size: 13px; color: var(--muted); }

/* 14. Callouts ---------------------------------------------------------------------------------------------- */
.callout { display: flex; gap: 12px; padding: 16px; border: 1px solid var(--line); border-left-width: 3px; border-radius: var(--r-card); background: var(--surface); font-size: 15px; }
.callout .ic { margin-top: 2px; color: var(--muted); }
.callout.info { border-left-color: var(--accent); } .callout.info .ic { color: var(--accent); }
.callout.ok { border-left-color: var(--ok); } .callout.ok .ic { color: var(--ok); }
.callout.warn { border-left-color: var(--warn); } .callout.warn .ic { color: var(--warn); }
.callout.bad { border-left-color: var(--bad); } .callout.bad .ic { color: var(--bad); }
.callout b { font-weight: 600; }

/* 15. Accordion / FAQ -------------------------------------------------------------------------------------- */
.acc details, .faq details { border-top: 1px solid var(--line); }
.acc details:last-child, .faq details:last-child { border-bottom: 1px solid var(--line); }
.acc summary, .faq summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 0; font-size: 17px; font-weight: 600; cursor: pointer; list-style: none; }
.acc summary::-webkit-details-marker, .faq summary::-webkit-details-marker { display: none; }
.acc summary .ic, .faq summary .ic { color: var(--muted); transition: transform var(--t-fast) var(--ease); }
.acc details[open] summary .ic, .faq details[open] summary .ic { transform: rotate(180deg); }
.acc details > :not(summary), .faq details > :not(summary) { max-width: 68ch; padding: 0 0 20px; color: var(--muted); font-size: 16px; }

/* 16. Tabs (generic, in-page) ------------------------------------------------------------------------------- */
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); overflow-x: auto; }
.tab { height: 44px; padding: 0 14px; border: 0; border-bottom: 2px solid transparent; margin-bottom: -1px; background: none; color: var(--muted); font-size: 15px; font-weight: 600; cursor: pointer; white-space: nowrap; }
.tab:hover { color: var(--text); }
.tab[aria-selected="true"] { color: var(--text); border-bottom-color: var(--accent); }

/* 17. Pricing ----------------------------------------------------------------------------------------------- */
.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; align-items: stretch; }
.plan { display: flex; flex-direction: column; padding: 28px; }
.plan.featured { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
.plan-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.plan h3 { font-size: 22px; }
.plan .tagline { margin: 6px 0 0; color: var(--muted); font-size: 15px; }
.plan .plan-price { margin: 20px 0 0; font-size: 34px; font-weight: 700; letter-spacing: -.02em; line-height: 1.1; color: var(--text); }
.plan .plan-note { margin: 4px 0 0; font-size: 14px; color: var(--muted); }
/* Side by side, the tagline holds two lines so the price rows of the three cards sit on one baseline. */
.plan .tagline { min-height: 3.2em; }
.plan-list { list-style: none; margin: 24px 0; padding: 0; display: grid; gap: 10px; flex: 1; align-content: start; }
.plan-list li { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; line-height: 1.45; }
.plan-list .ic { width: 18px; height: 18px; margin-top: 3px; color: var(--ok); }
.plan .btn, .plan .store-badge { align-self: flex-start; }
/* One row at the bottom of every card: the button, then an optional inline link. */
.plan-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-top: auto; }
.packs { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.pack { padding: 16px; display: flex; flex-direction: column; gap: 4px; }
.pack b { font-size: 16px; font-weight: 650; }
.pack span { font-size: 13px; color: var(--muted); }
.pack .soon { margin-top: 10px; }
.pack.all { border-color: var(--pro); }
.soon { display: inline-flex; align-items: center; height: 22px; padding: 0 8px; border-radius: var(--r-chip); background: var(--surface-3); color: var(--muted); font-size: 12px; font-weight: 700; font-style: normal; width: max-content; }

/* 18. Footer ------------------------------------------------------------------------------------------------ */
.site-foot { padding: 64px 0 32px; font-size: 14px; border-top: 1px solid var(--line); } /* a hairline keeps it apart from a dark band above */
.foot-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr 1fr; gap: 32px; }
.foot-brand p { margin: 14px 0 20px; max-width: 34ch; color: var(--muted); }
.foot-grid h4 { font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; }
.foot-grid ul { list-style: none; margin: 0; padding: 0; }
.foot-grid li a { display: inline-block; padding: 5px 0; color: var(--text); }
.foot-grid li a:hover { color: var(--accent); text-decoration: none; }
.foot-legal { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); font-size: 13px; line-height: 1.6; color: var(--muted); }
.foot-slim { padding: 32px 0; font-size: 13px; color: var(--muted); border-top: 1px solid var(--line); }
.foot-slim p { max-width: 68ch; }

/* 19. Motion ------------------------------------------------------------------------------------------------ */
/* .reveal fades up once it scrolls into view (site.js adds .in; js.js sets html.js before the first paint, so
   nothing paints and then vanishes). .enter is the load entrance for what is on screen from the start – the hero –
   a plain CSS animation that needs no script at all. .stagger on the parent delays either kind 60ms per child. */
html.js .reveal { opacity: 0; transform: translateY(12px); transition: opacity var(--t-reveal) var(--ease), transform var(--t-reveal) var(--ease); }
html.js .reveal.in { opacity: 1; transform: none; }
@keyframes enter { from { opacity: 0; transform: translateY(12px); } }
.enter { animation: enter var(--t-reveal) var(--ease) both; }
.stagger > .reveal:nth-child(2), .stagger > .enter:nth-child(2) { transition-delay: 60ms; animation-delay: 60ms; }
.stagger > .reveal:nth-child(3), .stagger > .enter:nth-child(3) { transition-delay: 120ms; animation-delay: 120ms; }
.stagger > .reveal:nth-child(4), .stagger > .enter:nth-child(4) { transition-delay: 180ms; animation-delay: 180ms; }
.stagger > .reveal:nth-child(5), .stagger > .enter:nth-child(5) { transition-delay: 240ms; animation-delay: 240ms; }
.stagger > .reveal:nth-child(6), .stagger > .enter:nth-child(6) { transition-delay: 300ms; animation-delay: 300ms; }
.stagger > .reveal:nth-child(7), .stagger > .enter:nth-child(7) { transition-delay: 360ms; animation-delay: 360ms; }
.stagger > .reveal:nth-child(8), .stagger > .enter:nth-child(8) { transition-delay: 420ms; animation-delay: 420ms; }
.stagger > .reveal:nth-child(9), .stagger > .enter:nth-child(9) { transition-delay: 480ms; animation-delay: 480ms; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0s !important; transition-delay: 0s !important; animation: none !important; }
  html.js .reveal { opacity: 1; transform: none; }
  .btn:active { transform: none; }
  .sheet { transform: none; }
}

/* 20. Legacy names (pages not yet rebuilt still use these; remove when they are) ----------------------------- */
header.nav { position: sticky; top: 0; z-index: 50; background: rgba(243,245,247,.86); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
header.nav .wrap { display: flex; align-items: center; gap: 20px; height: var(--head-h); }
header.nav nav { display: flex; gap: 4px; }
header.nav nav a { color: var(--text); font-size: 15px; font-weight: 500; padding: 8px 10px; border-radius: var(--r-ctl); }
header.nav nav a:hover { background: var(--surface-3); text-decoration: none; }
header.nav .cta, header.nav .label, header.nav .right { margin-left: auto; }
header.nav .label { color: var(--muted); font-size: 14px; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); padding: 24px; }
.head { max-width: 68ch; margin-bottom: 32px; }
.head p { color: var(--muted); font-size: 17px; margin: 8px 0 0; }
.note { color: var(--muted); font-size: 14px; }
.grid2 { display: grid; gap: 24px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid3 { display: grid; gap: 24px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid4 { display: grid; gap: 24px; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.two { display: grid; gap: 24px; grid-template-columns: 1fr 1fr; }
.tag { display: inline-block; padding: 2px 7px; border-radius: var(--r-chip); font-size: 11px; font-weight: 700; background: var(--surface-3); color: var(--muted); vertical-align: middle; }
.tag.pro { background: var(--pro-soft); color: var(--pro); } .tag.new { background: var(--accent-soft); color: var(--accent); }
.pill { display: inline-block; padding: 2px 8px; border-radius: var(--r-chip); font-size: 12px; font-weight: 700; background: var(--surface-3); color: var(--muted); }
.pill.ok { background: var(--ok-soft); color: var(--ok); } .pill.warn { background: var(--warn-soft); color: var(--warn); } .pill.bad { background: var(--bad-soft); color: var(--bad); }
.list.yes li::before, .list.no li::before { content: none; }
footer.site { margin-top: 64px; padding: 48px 0 32px; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }
footer.site .cols { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 24px; }
footer.site .cols b { display: block; color: var(--muted); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; margin-bottom: 8px; }
footer.site .cols a { display: block; color: var(--text); padding: 4px 0; }
footer.site .cols p { margin: 8px 0 0; max-width: 34ch; }
footer.site .legal { margin: 32px 0 0; padding-top: 20px; border-top: 1px solid var(--line); font-size: 13px; line-height: 1.6; }
.shot { background: var(--d-surface); border: 1px solid var(--d-line); border-radius: var(--r-frame); box-shadow: var(--shadow); overflow: hidden; }
.shot .bar { display: flex; gap: 6px; padding: 11px 14px; background: var(--d-surface-2); border-bottom: 1px solid var(--d-line); }
.shot .bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--d-surface-3); }

/* 21. Responsive -------------------------------------------------------------------------------------------- */
@media (max-width: 1080px) {
  /* Tablet landscape: the flow stays one row, just tighter – five cards read as a sequence at this width. */
  .flow { gap: 8px; }
  .flow-step { padding: 16px 14px; gap: 6px; }
  .flow-step h3 { font-size: 16px; }
  .flow-step p { font-size: 13px; line-height: 1.5; }
  .flow-arrow .ic { width: 16px; height: 16px; }
  .foot-grid { grid-template-columns: 1fr 1fr 1fr; }
  .foot-brand { grid-column: 1 / -1; }
  .packs { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 960px) {
  .grid.c4, .grid4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid.c3, .grid3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .split, .feature-row { grid-template-columns: 1fr; gap: 32px; }
  .split.flip > :first-child, .feature-row.flip > :first-child { order: 0; }
  .plans { grid-template-columns: 1fr; max-width: 520px; }
  .plan .tagline { min-height: 0; } /* stacked cards need no shared baseline */
}
@media (max-width: 899px) {
  :root { --head-h: 60px; }
  .nav, .head-actions .ghost { display: none; }
  .btn.menu-btn { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; padding: 0; }
  .head-actions .btn.primary { height: 40px; padding: 0 12px; font-size: 14px; }
  .section { padding: 64px 0; }
  .section.tight { padding: 48px 0; }
  .section-head { margin-bottom: 32px; }
  header.nav nav { display: none; }
  /* The flow turns vertical: each step becomes one compact row, arrows point down. */
  .flow { grid-template-columns: 1fr; gap: 6px; }
  .flow-step { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; grid-template-areas: "icon title chip" "icon text chip"; column-gap: 16px; row-gap: 2px; align-items: center; padding: 16px 20px; }
  .flow-step .card-icon { grid-area: icon; margin: 0; }
  .flow-step h3 { grid-area: title; font-size: 17px; }
  .flow-step p { grid-area: text; font-size: 14px; }
  .flow-step .chip { grid-area: chip; margin: 0; }
  .flow-arrow { justify-content: center; }
  .flow-arrow .ic { width: 20px; height: 20px; transform: rotate(90deg); }
}
@media (max-width: 640px) {
  :root { --gutter: 16px; }
  body { font-size: 16px; }
  h1 { font-size: clamp(32px, 9vw, 40px); }
  h2 { font-size: 28px; }
  .lead { font-size: 18px; }
  .grid.c2, .grid.c3, .grid.c4, .grid2, .grid3, .grid4, .two, .packs { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
  footer.site .cols { grid-template-columns: 1fr; }
  .form-row { flex-direction: column; }
  .form-row .btn { height: 44px; }
  /* Touch targets: 44px for everything a thumb lands on. */
  .btn { min-height: 44px; }
  .btn.sm { min-height: 40px; }
  .head-actions .btn.primary { height: 44px; min-height: 44px; padding: 0 14px; }
  .link { min-height: 44px; }
  .foot-grid li a { display: inline-flex; align-items: center; min-height: 44px; padding: 0; }
  .acc details a:not(.btn), .faq details a:not(.btn) { display: inline-block; padding: 10px 0; margin: -10px 0; } /* a taller hit area, no change to the line */
  .switch-tabs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); width: 100%; }
  .switch-tab { height: 44px; padding: 0 8px; }
  .card { padding: 20px; }
  .plan { padding: 24px; }
  .store-badge img { width: 176px; height: 48px; }
  .frame-bar { height: 28px; padding: 0 12px; }
  .frame-bar i { width: 8px; height: 8px; }
  .frame-bar span { display: none; }
  .table th, .table td { padding: 10px 12px; }
  .acc summary, .faq summary { font-size: 16px; }
  .flow-step { grid-template-columns: 40px minmax(0, 1fr); grid-template-areas: "icon title" "icon text" "icon chip"; row-gap: 6px; align-items: start; }
  .flow-step .chip { justify-self: start; }
}

/* 22. Utilities (last, so they win over component defaults) --------------------------------------------- */
.mt-12 { margin-top: 12px; } .mt-16 { margin-top: 16px; } .mt-20 { margin-top: 20px; } .mt-24 { margin-top: 24px; } .mt-32 { margin-top: 32px; }
