/* cardcrest.app holding page. Colours come from brand/tokens.css (served as
   /css/tokens.css); each section picks its theme with data-theme. The few
   site-only accents (feature tiles, the Business band) are tokens here. */

@font-face { font-family: Inter; src: url("/fonts/inter-var.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Space Grotesk"; src: url("/fonts/space-grotesk-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Space Grotesk"; src: url("/fonts/space-grotesk-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-display: swap; }

:root {
  --site-sans: Inter, -apple-system, system-ui, sans-serif;
  --site-blue: #0A6CD6;
  --site-orange: #B85C00;
  --site-green: #1E7F45;
  --site-purple: #8A3DB8;
  --site-cyan: #1A7A8C;
  --site-gray: #5E5E63;
  --site-biz: #0E5E58;
  --site-biz-ink: #DDF3EF;
  --site-biz-eyebrow: #BDEBE5;
  --site-gutter: clamp(16px, 5vw, 64px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; font-family: var(--site-sans); background: var(--bg); color: var(--ink); line-height: 1.5; }
[data-theme] { background: var(--bg); color: var(--ink); }
h1, h2, h3 { margin: 0; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 6px; }

.wrap { max-width: 1180px; margin: 0 auto; padding-left: var(--site-gutter); padding-right: var(--site-gutter); }
.sr, .hp { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.hp { left: -9999px; }
.skip { position: absolute; left: 12px; top: -60px; padding: 10px 16px; background: var(--action); color: var(--on-action); border-radius: var(--radius-pill); z-index: 10; font-weight: 600; }
.skip:focus { top: 12px; }

/* Nav */
.hero { padding-bottom: 80px; }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 24px; padding-bottom: 24px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; min-height: 44px; }
.brand svg { display: block; }
.mark-c { fill: var(--brand-silver); }
.mark-chip { fill: var(--brand-gold); }
.brand-word { font-family: var(--font-display); font-weight: 600; font-size: 26px; letter-spacing: -0.01em; }
.nav-links { display: flex; align-items: center; gap: 8px 28px; flex-wrap: wrap; font-size: 15px; }
.nav-links a { color: var(--ink-muted); text-decoration: none; min-height: 44px; min-width: 44px; display: inline-flex; align-items: center; justify-content: center; }
.nav-links a:hover { color: var(--ink); }
.nav-links .nav-cta { height: 44px; padding: 0 18px; border-radius: var(--radius-pill); background: var(--ink); color: var(--bg); font-weight: 600; }
.nav-links .nav-cta:hover { color: var(--bg); }
@media (max-width: 640px) { .nav-links a:not(.nav-cta) { display: none; } }

/* Hero */
.hero-body { display: flex; flex-wrap: wrap; align-items: center; gap: 56px; padding-top: 40px; }
.hero-copy { flex: 1 1 460px; min-width: 0; }
.eyebrow { margin: 0 0 18px; font-size: 14px; font-weight: 700; letter-spacing: 0.12em; color: var(--brand-gold); }
h1 { font-size: clamp(44px, 6vw, 76px); font-weight: 800; line-height: 1.02; letter-spacing: -0.035em; }
.lede { margin: 24px 0 0; max-width: 520px; font-size: 20px; color: var(--ink-muted); }
.facts { margin: 18px 0 0; font-size: 14px; color: var(--ink-muted); }

/* Waitlist */
.waitlist { margin-top: 34px; max-width: 560px; }
.waitlist-title { margin: 0 0 12px; font-size: 17px; font-weight: 600; }
.waitlist-row { display: flex; gap: 12px; flex-wrap: wrap; }
.waitlist input[type=email] { flex: 1 1 240px; min-width: 0; height: 56px; padding: 0 22px; border-radius: var(--radius-pill); border: 1px solid var(--hairline); background: var(--surface); color: var(--ink); font: inherit; font-size: 17px; }
.waitlist input[type=email]::placeholder { color: var(--ink-muted); }
.waitlist input[aria-invalid=true] { border-color: var(--danger); }
.waitlist button, .button { flex: none; height: 56px; padding: 0 26px; border: 0; border-radius: var(--radius-pill); background: var(--action); color: var(--on-action); display: inline-flex; align-items: center; justify-content: center; font: inherit; font-size: 17px; font-weight: 600; text-decoration: none; cursor: pointer; }
.waitlist button:disabled { opacity: 0.6; cursor: default; }
.waitlist-status { margin: 12px 0 0; min-height: 1.5em; font-size: 16px; font-weight: 600; }
.waitlist-status[data-state=ok] { color: var(--success); }
.waitlist-status[data-state=error] { color: var(--danger); }
.waitlist-note { margin: 2px 0 0; font-size: 14px; color: var(--ink-muted); }
.waitlist.done .waitlist-row { display: none; }
@media (max-width: 480px) { .waitlist button { width: 100%; } }

/* The phone (decorative) */
.phone { flex: 0 1 300px; margin: 0 auto; width: 300px; height: 610px; border-radius: 52px; background: var(--surface); padding: 12px; box-shadow: 0 40px 100px rgba(201, 164, 92, 0.16); }
.phone-screen { height: 100%; border-radius: 42px; background: var(--brand-ink); padding: 26px 14px 0; overflow: hidden; color: var(--card-ink); }
.phone-top { display: flex; justify-content: space-between; align-items: center; padding: 0 4px 12px; }
.phone-word { font-size: 26px; font-weight: 800; }
.phone-word .c { color: var(--brand-gold); }
.phone-pills { display: flex; gap: 6px; }
.phone-pills i { display: block; width: 32px; height: 32px; border-radius: 16px; background: var(--surface); }
.phone-pills i + i { width: 58px; }
.phone-label { font-size: 10px; font-weight: 700; letter-spacing: 0.06em; color: var(--ink-muted); padding: 0 4px 6px; }
.pass { height: 210px; border-radius: var(--radius-md); background: #0B4F7A; padding: 12px 14px; display: flex; flex-direction: column; }
.pass-row { display: flex; justify-content: space-between; font-size: 13px; }
.pass-air { font-family: var(--font-display); font-weight: 700; font-size: 12px; letter-spacing: 0.08em; }
.pass-big { display: flex; justify-content: space-between; margin-top: 10px; font-size: 26px; font-weight: 300; }
.pass-code { margin-top: auto; height: 64px; border-radius: 8px; background: var(--code-ground); padding: 8px; display: grid; grid-template-columns: repeat(40, minmax(0, 1fr)); grid-template-rows: repeat(6, minmax(0, 1fr)); }
.pass-code i { background: var(--code-ink); }
.pass-code i.off { background: var(--code-ground); }
.stack { margin-top: 16px; }
.stack div { height: 120px; border-radius: 12px; background: var(--c); padding: 12px 14px; box-shadow: var(--shadow-card); font-family: var(--font-display); font-weight: 700; font-size: 12px; letter-spacing: 0.06em; }
.stack div + div { margin-top: -84px; }

/* Body sections */
.body { padding-top: 90px; }
.section { padding-bottom: 90px; }
.section h2 { font-size: clamp(32px, 4vw, 48px); font-weight: 800; letter-spacing: -0.02em; line-height: 1.1; }
.grid { list-style: none; margin: 40px 0 0; padding: 0; display: grid; gap: 20px; }
.steps { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.features { grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); }
.tile { padding: 28px; border-radius: 24px; background: var(--surface); }
.tile h3 { margin: 20px 0 8px; font-size: 22px; font-weight: 700; }
.features .tile h3 { font-size: 20px; margin-top: 18px; }
.tile p { margin: 0; font-size: 16px; line-height: 1.55; color: var(--ink-muted); }
.num { width: 40px; height: 40px; border-radius: 20px; background: var(--action); color: var(--on-action); display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 18px; }
.icon { width: 44px; height: 44px; border-radius: 12px; background: var(--t); color: #FFFFFF; display: flex; align-items: center; justify-content: center; font-size: 20px; font-weight: 800; }

.band, .biz { padding: clamp(28px, 5vw, 48px); border-radius: 32px; display: flex; flex-wrap: wrap; gap: 32px; align-items: center; justify-content: space-between; }
.band-copy { flex: 1 1 420px; }
/* On a dark body the dark band and the Pro plan would match the page; lift them. */
main[data-theme=dark] .band { background: var(--surface); }
main[data-theme=dark] .plan-pro { background: var(--surface-raised); box-shadow: inset 0 0 0 1px var(--brand-gold); }
.band h2, .biz h2 { font-size: clamp(28px, 3.4vw, 40px); }
.band p, .biz p { margin: 14px 0 0; font-size: 18px; color: var(--ink-muted); }

.plans { grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)); }
.plan { padding: 32px; border-radius: 28px; background: var(--surface); }
.plan-pro { background: var(--bg); }
.plan h3 { font-size: 22px; font-weight: 700; }
.price { margin: 6px 0 22px; font-size: 40px; font-weight: 800; }
.plan-pro .price { margin-bottom: 4px; color: var(--brand-gold); }
.price span { font-size: 18px; font-weight: 600; }
.price-alt { margin: 0 0 18px; font-size: 15px; color: var(--ink-muted); }
.plan ul { margin: 0; padding: 0 0 0 20px; font-size: 16px; line-height: 2; }
.invite { margin-top: 20px; padding: 22px 28px; border-radius: 22px; background: var(--surface); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.invite span { font-size: 18px; font-weight: 600; }
.invite a { font-size: 17px; font-weight: 600; text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; }

.biz { background: var(--site-biz); }
.biz-copy { flex: 1 1 380px; }
.biz-eyebrow { color: var(--site-biz-eyebrow); font-size: 15px; letter-spacing: 0.08em; margin: 0; }
.biz h2 { margin: 10px 0 0; }
.biz p { color: var(--site-biz-ink); }
.biz .waitlist { margin-top: 0; flex: 1 1 360px; }
.biz .waitlist button { background: var(--card-ink); color: var(--site-biz); }
.biz .waitlist-note { color: var(--site-biz-ink); }
.biz .waitlist-status[data-state] { color: var(--card-ink); } /* --danger is 2.7:1 on the teal; the words carry the error */

.faq { max-width: 860px; }
.faq h2 { margin-bottom: 24px; }
.faq dl { margin: 0; }
.faq dl > div { padding: 22px 0; border-top: 1px solid var(--hairline); }
.faq dt { margin: 0 0 6px; font-size: 19px; font-weight: 700; }
.faq dd { margin: 0; font-size: 16px; line-height: 1.55; color: var(--ink-muted); }

.foot { border-top: 1px solid var(--hairline); padding: 36px 0; color: var(--ink-muted); font-size: 14px; }
.foot-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; }
.foot-links { display: flex; flex-wrap: wrap; gap: 4px 24px; }
.foot-links a { color: var(--ink); text-underline-offset: 3px; min-height: 44px; min-width: 44px; display: inline-flex; align-items: center; }
.foot-links a[aria-current=page] { text-decoration: none; color: var(--ink-muted); }

/* Privacy and Terms */
.legal-top .nav { padding-bottom: 16px; }
.legal-body { max-width: 760px; padding-top: 56px; padding-bottom: 88px; }
.legal h1 { font-size: clamp(36px, 5vw, 52px); font-weight: 800; letter-spacing: -0.03em; line-height: 1.05; }
.legal-updated { margin: 12px 0 32px; color: var(--ink-muted); font-size: 15px; }
.legal h2 { margin: 40px 0 12px; font-size: 22px; font-weight: 700; letter-spacing: -0.01em; }
.legal p, .legal li { font-size: 17px; line-height: 1.65; }
.legal p { margin: 0 0 14px; }
.legal ul { margin: 0 0 14px; padding-left: 22px; }
.legal li { margin: 0 0 8px; }
.legal a { color: inherit; text-underline-offset: 3px; }
.foot-word { font-family: var(--font-display); font-weight: 700; font-size: 18px; color: var(--ink); }
