/* K §5.7 (5.5-A15) — the public site's one stylesheet. The app's own tokens (C §3.3: slate text, blue-700 actions,
   6 px radius), with a dark variant. System fonts, except Cabin Bold for the brand name (5.5-A27), served from
   /site/brand/; nothing from another origin. */
@font-face {
  font-family: 'Cabin';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('brand/cabin-latin-700-normal.woff2') format('woff2'); /* SIL OFL 1.1: brand/OFL.txt */
}
:root {
  --bg: #ffffff;
  --bg-alt: #f6f7f9;
  --surface: #ffffff;
  --text: #0f172a;
  --muted: #475569;
  --border: #d0d5dd;
  --accent: #1d4ed8;
  --accent-hover: #1e40af;
  --accent-text: #ffffff;
  --accent-soft: #e8efff;
  --focus: #1a56db;
  --radius: 6px;
  --radius-lg: 12px;
  --shadow: 0 1px 2px rgb(15 23 42 / 0.06), 0 8px 24px rgb(15 23 42 / 0.08);
  --wrap: 72rem;
  --sticky-h: 4.5rem;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b1120;
    --bg-alt: #111a2e;
    --surface: #131d33;
    --text: #e5e9f0;
    --muted: #a8b3c7;
    --border: #2a3650;
    --accent: #6d9bff;
    --accent-hover: #93b4ff;
    --accent-text: #0b1120;
    --accent-soft: #1a2747;
    --focus: #93b4ff;
    --shadow: 0 1px 2px rgb(0 0 0 / 0.4), 0 8px 24px rgb(0 0 0 / 0.35);
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 5rem; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.6 system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
main { flex: 1 0 auto; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-underline-offset: 3px; }
a:hover { color: var(--accent-hover); }
h1, h2, h3 { line-height: 1.2; margin: 0 0 0.5em; letter-spacing: -0.01em; }
h1 { font-size: clamp(2rem, 4.5vw + 0.6rem, 3.25rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.6rem, 2vw + 0.9rem, 2.25rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; }
[role='list'] { list-style: none; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 3px; }
main:focus { outline: none; }

.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;
}
.skip {
  position: absolute; left: 1rem; top: 1rem; z-index: 100; transform: translateY(-200%);
  background: var(--surface); color: var(--text); padding: 0.75rem 1rem; border-radius: var(--radius); box-shadow: var(--shadow);
}
.skip:focus { transform: none; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 1.25rem; }
.wrap-narrow { max-width: 48rem; }
.lead { font-size: 1.15rem; color: var(--muted); }
.note { color: var(--muted); font-size: 0.95rem; }

/* --- buttons --- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.4rem;
  min-height: 44px; padding: 0.6rem 1.15rem; border-radius: var(--radius);
  border: 1px solid var(--border); background: var(--surface); color: var(--text);
  font: inherit; font-weight: 600; font-size: 1rem; line-height: 1.2; text-decoration: none; cursor: pointer;
  transition: background-color 0.15s, border-color 0.15s, color 0.15s;
}
.btn:hover { background: var(--bg-alt); color: var(--text); }
.btn-primary { background: var(--accent); border-color: var(--accent); color: var(--accent-text); }
.btn-primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); color: var(--accent-text); }
.btn-quiet { background: transparent; }
.btn-large { min-height: 52px; padding: 0.8rem 1.5rem; font-size: 1.05rem; }
.btn-small { min-height: 44px; padding: 0.45rem 0.9rem; font-size: 0.95rem; }
.btn-block { width: 100%; }
.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin: 1.5rem 0 0; }
.actions-center { justify-content: center; }
.link-arrow { font-weight: 600; display: inline-flex; align-items: center; min-height: 44px; }
.link-arrow::after { content: ' →'; white-space: pre; }

/* --- header: one dark bar over the wave, the brand and the menu (K §5.1, 5.5-A27, DEF-94) --- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: #0a1d4a url('brand/wave.webp') left center / cover no-repeat;
  color: #fff;
}
.header-row { display: flex; align-items: center; gap: 0.5rem; min-height: 4rem; white-space: nowrap; }
.brand { display: inline-flex; align-items: center; color: #fff; text-decoration: none; }
.brand:hover { color: #fff; }
.brand-icon { height: 36px; width: auto; margin-right: 17px; }
.brand-name { font-family: 'Cabin', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif; font-weight: 700; font-size: 31.2px; line-height: 1; }
.brand-tagline { display: none; margin-left: 48px; font-size: 1rem; color: rgb(255 255 255 / 0.95); }
@media (min-width: 1200px) { .brand-tagline { display: inline; } } /* fits from about 1130 px; G row A27-4 */
.nav-wide { margin-left: auto; }
.nav-links { display: flex; align-items: center; gap: 0.25rem; }
.nav-links > li > a, .site-header .menu > summary, .nav-signin {
  display: inline-flex; align-items: center; gap: 0.3rem; min-height: 44px; padding: 0 0.65rem;
  color: #fff; text-decoration: none; font-weight: 500; border-radius: var(--radius); cursor: pointer;
}
.nav-links > li > a:hover, .site-header .menu > summary:hover, .nav-signin:hover { background: rgb(255 255 255 / 0.14); color: #fff; }
.header-actions { display: flex; align-items: center; gap: 0.5rem; }
.site-header .btn-primary { background: #fff; border-color: #fff; color: #0a1d4a; }
.site-header .btn-primary:hover { background: #e2e8f0; border-color: #e2e8f0; color: #0a1d4a; }
.site-header :focus-visible { outline-color: #fff; }
@media (max-width: 479.98px) {
  .brand-icon { height: 28px; margin-right: 12px; }
  .brand-name { font-size: 24px; }
  .header-row .btn-small { padding: 0.45rem 0.7rem; font-size: 0.9rem; }
}

.menu { position: relative; }
.menu > summary { list-style: none; }
.menu > summary::-webkit-details-marker { display: none; }
.chevron { transition: transform 0.15s; }
.menu[open] > summary .chevron { transform: rotate(180deg); }
.menu-panel {
  position: absolute; top: calc(100% + 0.4rem); left: 0; min-width: 14rem; z-index: 60;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow);
  padding: 0.4rem;
}
.menu-panel-end { left: auto; right: 0; }
.menu-panel a { display: flex; align-items: center; min-height: 44px; padding: 0 0.75rem; border-radius: var(--radius); color: var(--text); text-decoration: none; }
.menu-panel a:hover { background: var(--bg-alt); }
.menu-group { display: block; padding: 0.5rem 0.75rem 0.1rem; font-size: 0.85rem; font-weight: 600; color: var(--muted); }
.menu-sub a { padding-left: 1.5rem; }
.menu-narrow { display: none; }

@media (max-width: 759.98px) {
  .nav-wide, .nav-signin { display: none; }
  .menu-narrow { display: block; }
  .header-row { gap: 0.5rem; }
  .header-actions { margin-left: auto; }
}

/* --- hero --- */
.hero { padding: 3.5rem 0 3rem; }
.hero-grid { display: grid; gap: 2.5rem; align-items: center; }
.hero-line { color: var(--muted); margin-top: 1rem; font-size: 0.98rem; }
@media (min-width: 960px) {
  .hero { padding: 5rem 0 4.5rem; }
  .hero-grid { grid-template-columns: 1fr 1fr; gap: 3.5rem; }
}

/* A screenshot framed as a browser window, in CSS. */
.frame { border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; background: var(--surface); box-shadow: var(--shadow); }
.frame-bar { display: flex; gap: 6px; padding: 10px 12px; border-bottom: 1px solid var(--border); background: var(--bg-alt); }
.frame-bar span { width: 10px; height: 10px; border-radius: 50%; background: var(--border); }
.frame img { width: 100%; }

/* --- bands --- */
.band { padding: 4rem 0; }
.band-alt { background: var(--bg-alt); }
.band h2 { text-align: center; margin-bottom: 2rem; }
.page-head { padding: 3.5rem 0 1rem; text-align: center; }

.steps { display: grid; gap: 1.5rem; counter-reset: step; }
.step { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 1.5rem; }
.step-number {
  display: inline-grid; place-items: center; width: 2.25rem; height: 2.25rem; margin-bottom: 0.75rem;
  border-radius: 50%; background: var(--accent-soft); color: var(--accent); font-weight: 700;
}
.step p { margin: 0; color: var(--muted); }
@media (min-width: 760px) { .steps { grid-template-columns: repeat(3, 1fr); } }

.showcase { display: grid; gap: 1.75rem; align-items: center; margin: 0 0 3.5rem; }
.showcase:last-child { margin-bottom: 0; }
.showcase-text p { color: var(--muted); margin: 0; }
.showcase-text h3 { font-size: 1.4rem; }
@media (min-width: 960px) {
  .showcase { grid-template-columns: 2fr 3fr; gap: 3.5rem; }
  .showcase-flip .showcase-text { order: 2; }
}

.grid { display: grid; gap: 1rem; }
.grid-included { grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); }
.grid-cards { grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); }
.item, .card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 1.25rem; }
.item h3, .card h3 { margin-top: 0.5rem; font-size: 1.05rem; }
.item p, .card p { color: var(--muted); margin: 0; font-size: 0.97rem; }
.card h3 { margin-top: 0; }
.icon { color: var(--accent); }

/* --- plans --- */
.plans + .note { margin-top: 1rem; text-align: center; }
.plans { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); align-items: stretch; }
.plan {
  position: relative; display: flex; flex-direction: column; gap: 0.25rem;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 1.75rem 1.5rem 1.5rem;
}
.plan-featured { border: 2px solid var(--accent); box-shadow: var(--shadow); }
.plan-badge {
  position: absolute; top: -0.85rem; left: 1.5rem; margin: 0;
  background: var(--accent); color: var(--accent-text); font-size: 0.8rem; font-weight: 700; padding: 0.2rem 0.65rem; border-radius: 999px;
}
.plan-name { font-size: 1.3rem; margin: 0; }
.plan-tagline { color: var(--muted); margin: 0; font-size: 0.95rem; }
.plan-price { margin: 0.75rem 0; }
.plan-amount { font-size: 2.4rem; font-weight: 800; letter-spacing: -0.02em; }
.plan-per { color: var(--muted); margin-left: 0.2rem; }
/* K §5.3 (5.5-A29, DEF-96): the Coming Soon card: its words in place of the price, and blurred stand-ins for its numbers. */
.plan-soon { font-size: 1.9rem; }
.blurred { filter: blur(5px); user-select: none; }
.plan-list { display: grid; gap: 0.5rem; margin: 0 0 1.5rem; flex: 1; }
.plan-list li { display: flex; gap: 0.5rem; align-items: flex-start; font-size: 0.97rem; }
.tick { flex: none; margin-top: 0.3rem; color: var(--accent); }
.starter-nudge { text-align: center; margin: 2rem 0 0; color: var(--muted); }
.panel { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 2rem; }
.panel-center { text-align: center; }
.panel-text { font-size: 1.2rem; font-weight: 600; }
.counts { list-style: disc; padding-left: 1.25rem; margin: 0 0 1rem; display: grid; gap: 0.4rem; }

/* Tables scroll inside their own container on phones; the page never scrolls sideways. */
.table-scroll { position: relative; overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface); }
table { border-collapse: collapse; width: 100%; font-size: 0.97rem; }
th, td { padding: 0.8rem 1rem; text-align: left; border-bottom: 1px solid var(--border); vertical-align: top; }
tbody tr:last-child > * { border-bottom: 0; }
thead th { font-weight: 700; }
.compare { min-width: 34rem; }
.compare td, .compare thead th { text-align: center; }
.compare tbody th, .compare thead td { position: sticky; left: 0; background: var(--surface); text-align: left; }
.plan-buttons { display: flex; flex-wrap: wrap; gap: 0.75rem; justify-content: center; margin-top: 1.5rem; }

/* --- questions --- */
.faq { display: grid; gap: 0.6rem; }
.faq details { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); }
.faq summary { cursor: pointer; font-weight: 600; padding: 1rem 1.25rem; min-height: 44px; }
.faq details p { padding: 0 1.25rem 1rem; margin: 0; color: var(--muted); }
.closing { text-align: center; }

/* --- legal --- */
.legal { max-width: 46rem; margin: 0 auto; padding: 3rem 1.25rem 4rem; }
.legal-updated { color: var(--muted); }
.legal-body h2 { font-size: 1.4rem; margin-top: 2rem; }
.legal-body h3 { margin-top: 1.5rem; }
.legal-body ul, .legal-body ol { padding-left: 1.5rem; margin: 0 0 1em; }

/* --- footer --- */
.site-footer { border-top: 1px solid var(--border); padding: 3rem 0 2rem; background: var(--bg-alt); font-size: 0.95rem; }
.footer-grid { display: grid; gap: 2rem; grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr)); }
.footer-heading { font-size: 0.95rem; text-align: left; margin: 0 0 0.75rem; }
.site-footer ul { display: grid; gap: 0.15rem; }
.site-footer a { color: var(--text); text-decoration: none; display: inline-flex; align-items: center; min-height: 32px; }
.site-footer a:hover { color: var(--accent); text-decoration: underline; }
.footer-base { margin-top: 2rem; color: var(--muted); }
.footer-base p { margin: 0.25rem 0; }

/* --- the sticky call to action on phones (K §5.1) --- */
.sticky-cta { display: none; }
@media (max-width: 759.98px) {
  body.has-sticky { padding-bottom: var(--sticky-h); }
  .sticky-cta {
    display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; height: var(--sticky-h);
    align-items: center; padding: 0.75rem 1rem; background: var(--bg); border-top: 1px solid var(--border);
    transition: transform 0.2s;
  }
  .sticky-cta.is-hidden { transform: translateY(100%); visibility: hidden; }
}

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