/* Departd — departd.app
   Dusk theme, matching the shipped app (DesignSystem.swift: violet accent #B49BFF on a
   deep indigo→plum gradient). One stylesheet for every page. Mobile-first: the base rules
   are the phone layout; wider screens add columns in the media queries at the bottom. */

/* ---- Fonts (self-hosted Geist, SIL OFL 1.1 — variable, one file covers all weights) ---- */
@font-face {
  font-family: "Geist"; font-style: normal; font-weight: 300 700; font-display: swap;
  src: url("fonts/geist-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Geist"; font-style: normal; font-weight: 300 700; font-display: swap;
  src: url("fonts/geist-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Geist Mono"; font-style: normal; font-weight: 400 500; font-display: swap;
  src: url("fonts/geistmono-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Geist Mono"; font-style: normal; font-weight: 400 500; font-display: swap;
  src: url("fonts/geistmono-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ---- Tokens ---- */
:root {
  color-scheme: dark;

  --bg: #1b1633;
  --bg-grad: radial-gradient(120% 80% at 80% -10%, #3a2e63 0%, #231c44 42%, #171328 100%);
  --hero-grad: linear-gradient(170deg, #3f3170 0%, #2a2350 45%, #171328 100%);

  --accent: #b49bff;
  --accent-deep: #735ad9;
  --on-accent: #1a1530;
  --accent-soft: rgba(180, 155, 255, 0.14);
  --glow: rgba(128, 94, 255, 0.55);

  --ink-hi: #f6f5fb;     /* headings */
  --ink: #e2e0ec;        /* body */
  --ink-sub: #aeabbf;    /* secondary */
  --ink-faint: #8a879d;  /* labels (≥4.5:1 on panel) */
  --line: #3a3650;
  --line-soft: #2c2941;
  --panel: #221f35;
  --panel-soft: #1d1a2e;

  --good: #5fd9a0;
  --amber: #e6b24a;

  --sans: "Geist", -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  --mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --gutter: 20px;
  --maxw: 1200px;
  --radius: 18px;
}

/* ---- Base ---- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 76px; }
body {
  margin: 0;
  background: var(--bg) var(--bg-grad) no-repeat;
  background-attachment: fixed;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { color: var(--ink-hi); font-weight: 500; margin: 0; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
::selection { background: var(--accent); color: var(--on-accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--accent); color: var(--on-accent); padding: 8px 14px; border-radius: 8px; font-weight: 600; text-decoration: none; }
.skip:focus { left: 8px; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: 72px 0; position: relative; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.04em; color: var(--accent);
}
/* Labels are written in capitals in the HTML, not via text-transform, so "iOS" and "iPhone" survive. */
.eyebrow::before { content: ""; width: 6px; height: 6px; border-radius: 99px; background: var(--accent); box-shadow: 0 0 12px var(--glow); }
.eyebrow.no-dot::before { display: none; }

.h-xl { font-size: clamp(44px, 9.5vw, 84px); letter-spacing: -0.04em; line-height: 0.98; }
.h-lg { font-size: clamp(34px, 6.4vw, 58px); letter-spacing: -0.035em; line-height: 1.03; }
.h-md { font-size: clamp(30px, 5.4vw, 52px); letter-spacing: -0.03em; line-height: 1.05; }
.accent-italic { color: var(--accent); font-style: italic; font-weight: 400; }
.dim { color: var(--ink-faint); }
.lede { font-size: clamp(17px, 2.2vw, 19px); line-height: 1.55; color: var(--ink-sub); }
.mono { font-family: var(--mono); }
.pro-tag, .free-tag {
  display: inline-block; font-family: var(--mono); font-size: 10.5px; font-weight: 500; letter-spacing: 0.05em;
  padding: 2px 8px; border-radius: 99px; vertical-align: middle; white-space: nowrap;
}
.pro-tag { color: var(--accent); border: 1px solid var(--accent); }
.free-tag { color: var(--good); border: 1px solid rgba(95, 217, 160, 0.55); }

/* ---- Buttons / badge ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 10px 18px; border-radius: 11px;
  font-size: 15px; font-weight: 600; text-decoration: none; white-space: nowrap;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}
.btn-accent { background: var(--accent); color: var(--on-accent); box-shadow: 0 8px 26px -10px var(--glow); }
.btn-accent:hover { transform: translateY(-1px); }
.btn-ghost { border: 1px solid var(--line); color: var(--ink-hi); }
.btn-ghost:hover { border-color: var(--ink-faint); }

.appstore {
  display: inline-flex; align-items: center; gap: 12px; height: 54px; padding: 0 20px 0 17px;
  border-radius: 13px; background: #fff; color: #000; text-decoration: none;
  box-shadow: 0 8px 28px -10px rgba(0, 0, 0, 0.55);
  transition: transform 160ms ease;
}
.appstore:hover { transform: translateY(-1px); }
.appstore svg { width: 25px; height: 25px; }
.appstore span { display: block; line-height: 1; }
.appstore .small { font-size: 11px; opacity: 0.72; letter-spacing: 0.01em; }
.appstore .big { font-size: 19px; font-weight: 600; margin-top: 3px; letter-spacing: -0.01em; }
.cta-row { display: flex; flex-wrap: wrap; gap: 14px 18px; align-items: center; }
.cta-note { font-family: var(--mono); font-size: 12px; color: var(--ink-faint); letter-spacing: 0.02em; line-height: 1.5; }

/* ---- Nav ---- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(27, 22, 51, 0.78);
  -webkit-backdrop-filter: blur(16px) saturate(140%); backdrop-filter: blur(16px) saturate(140%);
  border-bottom: 1px solid var(--line-soft);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink-hi); font-weight: 600; font-size: 18px; letter-spacing: -0.01em; }
.brand img { width: 30px; height: 30px; border-radius: 8px; box-shadow: 0 2px 10px rgba(0, 0, 0, 0.4); }
.nav-links { display: none; gap: 28px; align-items: center; }
.nav-links a { text-decoration: none; color: var(--ink-sub); font-size: 14.5px; transition: color 160ms; }
.nav-links a:hover { color: var(--ink-hi); }
.nav-right { display: flex; align-items: center; gap: 8px; }
.nav .btn { min-height: 40px; padding: 8px 15px; font-size: 14.5px; }
.menu-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 10px; border: 1px solid var(--line);
  background: transparent; color: var(--ink-hi); cursor: pointer;
}
.menu-btn svg { width: 20px; height: 20px; }
.mobile-menu { display: none; border-top: 1px solid var(--line-soft); padding: 8px 0 16px; }
.mobile-menu.open { display: block; }
.mobile-menu a { display: block; padding: 12px var(--gutter); text-decoration: none; color: var(--ink); font-size: 17px; }
.mobile-menu a:hover { color: var(--ink-hi); background: var(--accent-soft); }

/* ---- Hero ---- */
/* clip sideways only: `hidden` would also cut the glow off at the section's bottom edge */
.hero { padding: 40px 0 64px; position: relative; overflow-x: clip; }
.hero-grid { display: grid; gap: 48px; align-items: center; }
.hero h1 { margin-top: 20px; }
.hero .lede { margin-top: 22px; max-width: 520px; }
.hero .cta-row { margin-top: 30px; }
.stats {
  margin-top: 44px; padding-top: 24px; border-top: 1px solid var(--line);
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px 18px;
}
.stat-n { font-family: var(--mono); font-size: 18px; font-weight: 500; letter-spacing: -0.02em; color: var(--ink-hi); }
.stat-l { font-size: 13px; color: var(--ink-sub); margin-top: 4px; line-height: 1.4; }

.device-stage { position: relative; display: flex; justify-content: center; }
.glow { position: absolute; top: 46%; left: 50%; transform: translate(-50%, -50%); width: 520px; height: 520px; max-width: 120vw; border-radius: 999px; background: radial-gradient(circle, var(--glow) 0%, transparent 65%); opacity: 0.5; filter: blur(36px); pointer-events: none; }

/* phone mock */
.device {
  position: relative; z-index: 2;
  width: min(300px, 78vw); aspect-ratio: 320 / 648; border-radius: 48px; padding: 7px;
  background: #06060b; box-shadow: 0 60px 110px -30px rgba(0, 0, 0, 0.75), 0 0 0 1px rgba(255, 255, 255, 0.06);
}
.screen { width: 100%; height: 100%; border-radius: 41px; overflow: hidden; position: relative; background: var(--hero-grad); color: #fff; container-type: inline-size; }
.island {
  position: absolute; top: 4%; left: 50%; transform: translateX(-50%); z-index: 3;
  height: 34px; min-width: 124px; padding: 0 14px; border-radius: 20px; background: #000;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--mono); font-size: 10.5px; white-space: nowrap;
}
.dot { width: 7px; height: 7px; border-radius: 99px; background: var(--good); flex-shrink: 0; }
.dot.amber { background: var(--amber); }
.screen-body { padding: 19% 7.5% 0; }
.screen-top { display: flex; justify-content: space-between; align-items: center; font-size: 12.5px; color: rgba(255, 255, 255, 0.82); }
.screen-top .watch { display: inline-flex; gap: 6px; align-items: center; }
.wake-label { font-family: var(--mono); font-size: 11px; color: rgba(255, 255, 255, 0.62); letter-spacing: 0.12em; margin-top: 26px; }
.wake-time { font-size: clamp(64px, 29cqw, 92px); font-weight: 300; letter-spacing: -0.05em; line-height: 0.92; margin-top: 4px; font-variant-numeric: tabular-nums; }
.wake-time small { font-size: 0.28em; font-weight: 400; opacity: 0.65; margin-left: 6px; letter-spacing: 0; }
.chip { display: inline-flex; align-items: center; gap: 7px; margin-top: 12px; padding: 5px 11px; border-radius: 99px; background: rgba(255, 255, 255, 0.1); font-size: 12px; }
.card-glass { margin: 22px 0 0; padding: 14px; border-radius: 17px; background: rgba(255, 255, 255, 0.09); border: 1px solid rgba(255, 255, 255, 0.14); }
.card-glass .k { font-family: var(--mono); font-size: 10px; color: rgba(255, 255, 255, 0.62); letter-spacing: 0.06em; }
.card-glass .t { font-size: 15.5px; font-weight: 600; margin-top: 5px; letter-spacing: -0.01em; }
.card-glass .s { font-family: var(--mono); font-size: 11.5px; color: rgba(255, 255, 255, 0.78); margin-top: 5px; }
.watch-note { margin-top: 10px; padding: 10px 13px; border-radius: 13px; background: rgba(0, 0, 0, 0.26); min-height: 64px; }
.watch-note .k { font-family: var(--mono); font-size: 10px; color: rgba(255, 255, 255, 0.6); letter-spacing: 0.06em; }
.watch-note .n { font-size: 12.5px; line-height: 1.45; margin-top: 3px; }
.progress { position: absolute; bottom: 4%; left: 5%; right: 5%; display: flex; gap: 7px; }
.progress i { flex: 1; height: 3px; border-radius: 99px; background: rgba(255, 255, 255, 0.22); transition: background 400ms; }
.progress i.on { background: #fff; }
.fade { animation: dpFade 420ms ease; }
@keyframes dpFade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

.callout {
  display: none; position: absolute; z-index: 3; width: 220px; right: -4px; top: 46%;
  padding: 13px 15px; border-radius: 14px; background: var(--panel); border: 1px solid var(--line);
  box-shadow: 0 22px 50px -16px rgba(0, 0, 0, 0.6);
}
.callout .k { font-family: var(--mono); font-size: 10.5px; color: var(--accent); letter-spacing: 0.04em; }
.callout p { font-size: 13.5px; line-height: 1.45; color: var(--ink); margin-top: 5px; }
.callout strong { color: var(--ink-hi); }

/* ---- Generic panels / grids ---- */
.section-head { max-width: 780px; margin-bottom: 40px; }
.section-head h2 { margin-top: 14px; }
.section-head .lede { margin-top: 18px; }
.split-head { display: grid; gap: 18px; margin-bottom: 40px; }
.split-head h2 { margin-top: 14px; }

.tiles { display: grid; grid-template-columns: 1fr; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.tile { background: var(--panel-soft); padding: 26px 22px 28px; }
.tile .tag { font-family: var(--mono); font-size: 11px; color: var(--accent); letter-spacing: 0.04em; }
.tile h3 { font-size: 22px; letter-spacing: -0.02em; line-height: 1.2; margin-top: 12px; }
.tile p { font-size: 15px; line-height: 1.6; color: var(--ink-sub); margin-top: 10px; }

.note-bar { margin-top: 18px; padding: 18px 20px; border-radius: 16px; background: var(--accent-soft); border: 1px solid var(--line); display: flex; gap: 14px; align-items: flex-start; }
.note-bar .dot { background: var(--accent); box-shadow: 0 0 14px var(--glow); margin-top: 8px; width: 9px; height: 9px; }
.note-bar p { font-size: 16px; color: var(--ink); }
.note-bar strong { color: var(--ink-hi); }

/* how it works */
.steps { list-style: none; margin: 0; padding: 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--panel-soft); }
.step { display: grid; grid-template-columns: 44px 1fr; gap: 6px 14px; padding: 22px 20px; border-bottom: 1px solid var(--line-soft); }
.step:last-child { border-bottom: 0; }
.step .n { font-family: var(--mono); font-size: 17px; color: var(--accent); grid-row: span 2; }
.step h3 { font-size: 19px; letter-spacing: -0.02em; }
.step p { font-size: 15px; color: var(--ink-sub); }
.step .api { display: none; font-family: var(--mono); font-size: 11px; color: var(--ink-faint); letter-spacing: 0.05em; text-align: right; }

/* features */
.feats { display: grid; grid-template-columns: 1fr; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.feat { background: var(--panel-soft); padding: 18px 20px 20px; }
.feat.hero-feat { background: linear-gradient(0deg, var(--accent-soft), var(--accent-soft)), var(--panel-soft); }
.feat-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.feat .cat { font-family: var(--mono); font-size: 10.5px; color: var(--ink-faint); letter-spacing: 0.05em; }
.feat h3 { font-size: 19px; letter-spacing: -0.015em; margin-top: 10px; }
.feat.wide h3 { font-size: 23px; }
.feat p { font-size: 14.5px; line-height: 1.55; color: var(--ink-sub); margin-top: 8px; }

/* why this time */
.why-grid { display: grid; gap: 40px; align-items: center; }
.why-grid h2 { margin-top: 14px; }
.why-grid .lede { margin-top: 20px; max-width: 480px; }
.why-ways { display: flex; flex-wrap: wrap; gap: 18px 28px; margin-top: 26px; }
.why-ways b { display: block; color: var(--ink-hi); font-size: 16px; font-weight: 600; }
.why-ways span { display: block; font-family: var(--mono); font-size: 12.5px; color: var(--ink-faint); margin-top: 3px; }
.receipt { background: var(--panel); border: 1px solid var(--line); border-radius: 20px; padding: 22px 20px; box-shadow: 0 40px 90px -40px rgba(0, 0, 0, 0.7); }
.receipt-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; font-family: var(--mono); font-size: 11px; letter-spacing: 0.05em; }
.receipt-head .l { color: var(--ink-faint); }
.receipt-head .r { color: var(--accent); }
.receipt dl { margin: 16px 0 0; }
.receipt .row { display: flex; justify-content: space-between; align-items: baseline; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--line-soft); }
.receipt dt { font-size: 14.5px; color: var(--ink-sub); }
.receipt dd { margin: 0; font-family: var(--mono); font-size: 14px; color: var(--ink); white-space: nowrap; }
.receipt .row.hot dt, .receipt .row.hot dd { color: var(--accent); }
.receipt .row.hot dd { font-weight: 500; }
.receipt-total { display: flex; justify-content: space-between; align-items: center; margin-top: 16px; }
.receipt-total span { font-size: 15px; font-weight: 600; color: var(--ink-hi); }
.receipt-total b { font-family: var(--mono); font-size: 30px; font-weight: 500; letter-spacing: -0.03em; color: var(--ink-hi); }
.receipt-total b small { font-size: 16px; opacity: 0.6; margin-left: 4px; }
.receipt-foot { margin-top: 14px; font-size: 12.5px; color: var(--ink-faint); }

/* pricing */
.pricing-head { text-align: center; max-width: 720px; margin: 0 auto 40px; }
.pricing-head h2 { margin-top: 14px; }
.pricing-head .lede { margin-top: 16px; }
.plans { display: grid; gap: 22px; max-width: 800px; margin: 0 auto; }
.plan { position: relative; display: flex; flex-direction: column; background: var(--panel-soft); border: 1px solid var(--line); border-radius: 20px; padding: 30px 24px 26px; }
.plan.featured { background: linear-gradient(0deg, var(--accent-soft), var(--accent-soft)), var(--panel-soft); border-color: var(--accent); box-shadow: 0 30px 70px -34px var(--glow); }
.plan-badge { position: absolute; top: -12px; left: 24px; padding: 4px 11px; border-radius: 99px; background: var(--accent); color: var(--on-accent); font-family: var(--mono); font-size: 10.5px; font-weight: 500; letter-spacing: 0.05em; }
.plan-name { font-family: var(--mono); font-size: 13px; font-weight: 500; letter-spacing: 0.05em; color: var(--ink-faint); }
.plan.featured .plan-name { color: var(--accent); }
.price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 8px; margin-top: 10px; }
.price b { font-size: 46px; font-weight: 500; letter-spacing: -0.035em; color: var(--ink-hi); }
.price span { font-size: 14.5px; color: var(--ink-sub); }
.plan-desc { font-size: 15px; color: var(--ink-sub); margin-top: 10px; }
.plan .btn { margin-top: 20px; width: 100%; }
.plan ul { list-style: none; margin: 22px 0 0; padding: 20px 0 0; border-top: 1px solid var(--line-soft); display: flex; flex-direction: column; gap: 11px; }
.plan li { display: flex; gap: 10px; font-size: 15px; line-height: 1.45; color: var(--ink); }
.plan li::before { content: "✓"; color: var(--accent); flex-shrink: 0; }
.plan li small { display: block; color: var(--ink-faint); font-size: 13px; margin-top: 2px; }
.plan-foot { text-align: center; max-width: 640px; margin: 24px auto 0; font-size: 14px; color: var(--ink-faint); }

/* faq */
.faq-grid { display: grid; gap: 32px; align-items: start; }
.faq-grid h2 { margin-top: 14px; }
.faq-grid .aside p { margin-top: 18px; color: var(--ink-sub); }
.faq-grid .aside a { color: var(--accent); text-decoration: none; }
.faq-grid .aside a:hover { text-decoration: underline; }
.faq { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--panel-soft); }
.faq details { border-bottom: 1px solid var(--line-soft); }
.faq details:last-child { border-bottom: 0; }
.faq summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 20px 20px; font-size: 17px; font-weight: 500; color: var(--ink-hi);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; flex-shrink: 0; width: 28px; height: 28px; border-radius: 99px;
  display: flex; align-items: center; justify-content: center; font-size: 18px; line-height: 1;
  background: var(--accent-soft); color: var(--accent); transition: transform 220ms, background 220ms;
}
.faq details[open] summary::after { transform: rotate(45deg); background: var(--accent); color: var(--on-accent); }
.faq .a { padding: 0 20px 22px; font-size: 15.5px; line-height: 1.65; color: var(--ink-sub); max-width: 680px; }
.faq .a a { color: var(--accent); }

/* download cta */
.cta-card { position: relative; overflow: hidden; border-radius: 26px; padding: 56px 24px; background: var(--hero-grad); border: 1px solid var(--line); }
.cta-card .rings { position: absolute; right: -260px; top: 50%; transform: translateY(-50%); width: 720px; height: 720px; opacity: 0.14; pointer-events: none; }
.cta-card .inner { position: relative; max-width: 720px; }
.cta-card h2 { color: #fff; margin-top: 16px; }
.cta-card .lede { color: rgba(255, 255, 255, 0.82); margin-top: 20px; max-width: 520px; }
.cta-card .cta-row { margin-top: 30px; }
.cta-card .cta-note { color: rgba(255, 255, 255, 0.72); }

/* footer */
.footer { border-top: 1px solid var(--line-soft); padding: 56px 0 32px; margin-top: 24px; }
.foot-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 36px 24px; }
.foot-brand { grid-column: 1 / -1; }
.foot-brand .brand img { width: 36px; height: 36px; border-radius: 9px; }
.foot-brand p { font-size: 14.5px; color: var(--ink-sub); max-width: 340px; margin-top: 14px; }
.foot-brand .appstore { margin-top: 20px; height: 48px; }
.foot-col h4 { margin: 0 0 14px; font-family: var(--mono); font-size: 11.5px; font-weight: 400; letter-spacing: 0.06em; color: var(--ink-faint); text-transform: uppercase; }
.foot-col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.foot-col a { display: inline-block; padding: 6px 0; font-size: 14.5px; color: var(--ink-sub); text-decoration: none; }
.foot-col a:hover { color: var(--ink-hi); }
.foot-base { margin-top: 44px; padding-top: 22px; border-top: 1px solid var(--line-soft); display: flex; flex-direction: column; gap: 8px; font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.03em; color: var(--ink-faint); }

/* legal / document pages */
.doc { max-width: 760px; margin: 0 auto; padding: 48px var(--gutter) 24px; }
.doc h1 { font-size: clamp(36px, 7vw, 52px); letter-spacing: -0.035em; line-height: 1.04; margin-top: 16px; }
.doc .effective { font-family: var(--mono); font-size: 12.5px; color: var(--ink-faint); margin-top: 14px; }
.doc .short { margin-top: 26px; padding: 18px 20px; border-radius: 16px; background: var(--accent-soft); border: 1px solid var(--line); }
.doc .short .k { font-family: var(--mono); font-size: 11px; color: var(--accent); letter-spacing: 0.05em; }
.doc .short p { margin-top: 8px; color: var(--ink); }
.doc h2 { font-size: 24px; font-weight: 600; letter-spacing: -0.02em; margin-top: 44px; }
.doc h3 { font-size: 17px; font-weight: 600; margin-top: 26px; }
.doc p { font-size: 16px; line-height: 1.7; margin-top: 14px; }
.doc strong { color: var(--ink-hi); }
.doc a { color: var(--accent); }
.doc ul { list-style: none; padding: 0; margin: 14px 0 0; display: flex; flex-direction: column; gap: 10px; }
.doc li { display: flex; gap: 12px; font-size: 15.5px; line-height: 1.6; }
.doc li::before { content: "—"; color: var(--accent); flex-shrink: 0; }
.table-scroll { margin-top: 18px; border: 1px solid var(--line); border-radius: 14px; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.doc table { width: 100%; min-width: 560px; border-collapse: collapse; font-size: 14px; }
.doc th { text-align: left; padding: 12px 14px; font-family: var(--mono); font-size: 11px; font-weight: 400; letter-spacing: 0.05em; color: var(--ink-faint); background: var(--panel); border-bottom: 1px solid var(--line); text-transform: uppercase; }
.doc td { padding: 12px 14px; vertical-align: top; color: var(--ink-sub); line-height: 1.5; border-bottom: 1px solid var(--line-soft); }
.doc tr:last-child td { border-bottom: 0; }
.doc td:first-child { color: var(--ink-hi); font-weight: 600; }
/* Phones: each table row becomes a stacked card with its column name as a label. */
@media (max-width: 699px) {
  .table-scroll { overflow: visible; border: 0; }
  .doc table { min-width: 0; }
  .doc thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .doc table, .doc tbody, .doc tr, .doc td { display: block; }
  .doc tr { border: 1px solid var(--line); border-radius: 14px; padding: 6px 0; margin-top: 12px; background: var(--panel-soft); }
  .doc td { border: 0; padding: 8px 16px; }
  .doc td::before { content: attr(data-label); display: block; font-family: var(--mono); font-size: 10.5px; font-weight: 400; letter-spacing: 0.05em; color: var(--ink-faint); text-transform: uppercase; margin-bottom: 2px; }
}
.doc-links { margin-top: 52px; padding-top: 20px; border-top: 1px solid var(--line-soft); display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: 14.5px; }
.doc-links a { text-decoration: none; padding: 6px 0; }

/* ---- Tablet ≥ 700px ---- */
@media (min-width: 700px) {
  :root { --gutter: 32px; }
  .section { padding: 96px 0; }
  .stats { grid-template-columns: repeat(4, 1fr); }
  .tiles { grid-template-columns: repeat(3, 1fr); }
  .tile { padding: 34px 28px 38px; }
  .step { grid-template-columns: 64px 220px 1fr; align-items: center; gap: 24px; padding: 24px 28px; }
  .step .n { grid-row: auto; }
  .feats { grid-template-columns: repeat(2, 1fr); }
  .feat.wide { grid-column: span 2; }
  .plans { grid-template-columns: 1fr 1fr; gap: 18px; }
  .foot-grid { grid-template-columns: 1.6fr 1fr 1fr 1fr; }
  .foot-brand { grid-column: auto; }
  .foot-base { flex-direction: row; justify-content: space-between; flex-wrap: wrap; }
  .cta-card { padding: 80px 48px; }
  .receipt { padding: 28px 30px; }
  .faq summary { padding: 22px 26px; }
  .faq .a { padding: 0 26px 24px; }
}

/* ---- Desktop ≥ 1024px ---- */
@media (min-width: 1024px) {
  .section { padding: 112px 0; }
  .nav-links { display: flex; }
  .menu-btn, .mobile-menu, .mobile-menu.open { display: none; }
  .hero { padding: 48px 0 92px; }
  .hero-grid { grid-template-columns: 1.04fr 0.96fr; gap: 56px; }
  .device { width: 320px; }
  .callout { display: block; }
  .split-head { grid-template-columns: 1fr 1.35fr; gap: 72px; align-items: start; }
  .split-head .lede { margin-top: 30px; }
  .step { grid-template-columns: 80px 240px 1fr 110px; gap: 28px; padding: 26px 34px; }
  .step .api { display: block; }
  .feats { grid-template-columns: repeat(4, 1fr); }
  .feat { padding: 26px 26px 30px; min-height: 180px; }
  .why-grid { grid-template-columns: 1fr 1fr; gap: 72px; }
  .faq-grid { grid-template-columns: 0.8fr 1.2fr; gap: 72px; }
  .faq-grid .aside { position: sticky; top: 96px; }
  .cta-card { padding: 96px 56px; }
  .cta-card .rings { right: -180px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .fade { animation: none; }
  .btn, .appstore { transition: none; }
}
