/* Tiermap — site styles.
   Design tokens and components from the Claude Design handoff ("Tiermap Landing", style sheet 1e).
   Layout switches at 820px, like the design's narrow/wide breakpoint. Fluid sizes use cqi
   against the .page container, so they track the page width exactly as in the design. */

/* ---------- Tokens ---------- */
:root {
  /* Brand */
  --night: #050736;
  --violet: #5131A3;
  --violet-bright: #6A3DE8;
  --blue: #0A9BFF;
  --green: #5CC83F;
  --tan: #FF9A2A;

  /* Surfaces — light */
  --bg: #F7F7FB;
  --card: #FFFFFF;
  --text: #15142B;
  --muted: #5B5A72;
  --border: #E2E1EC;
  /* The design's #0880E6 is 4.0:1 on white; darkened slightly to pass WCAG AA (5.0:1). */
  --accent: #0670CC;
  --on-accent: #FFFFFF;
  --sub: #EFEEF6;
  --sh: 21, 20, 43;
  --focus: var(--accent);

  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", system-ui, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, monospace;
  --pad-x: clamp(20px, 5cqi, 56px);
  --band-y: clamp(80px, 9cqi, 136px);
  --on-dark-text: #F1F0FA;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0B0B1A;
    --card: #15152A;
    --text: #F1F0FA;
    --muted: #A9A8C2;
    --border: #2A2A45;
    --accent: #0A9BFF;
    --on-accent: #050736;
    --sub: #1C1C38;
    --sh: 0, 0, 0;
    --focus: #0A9BFF;
  }
}

/* Brand colour hooks used by eyebrows, tiers, steps, features and tabs. */
.c-blue { --c: var(--blue); }
.c-green { --c: var(--green); }
.c-tan { --c: var(--tan); }
.c-vio { --c: var(--violet-bright); }
.n-blue { --next: var(--blue); }
.n-green { --next: var(--green); }
.n-tan { --next: var(--tan); }
.n-vio { --next: var(--violet-bright); }

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
body { margin: 0; background: var(--bg); color: var(--text); }
.page {
  container: page / inline-size;
  min-height: 100vh;
  overflow-x: clip;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img { max-width: 100%; }
/* <picture> wrappers are layout-neutral, so the <img> inside is the flex/grid item. */
picture { display: contents; }
source { display: none; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
.text-link, .prose a { text-decoration: underline; text-underline-offset: 0.15em; text-decoration-thickness: 1px; }
.text-link:hover, .prose a:hover { text-decoration-thickness: 2px; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.on-dark, .site-header { --focus: #0A9BFF; }
code { font-family: var(--mono); font-size: 0.88em; padding: 0.1em 0.35em; border-radius: 6px; background: var(--sub); overflow-wrap: anywhere; }
.muted { color: var(--muted); margin: 0; }

.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 12px; top: -100px; z-index: 100;
  padding: 10px 16px; border-radius: 10px;
  background: var(--card); color: var(--text); font: 700 15px/1.2 var(--font);
  box-shadow: 0 8px 24px rgba(0, 0, 0, .3);
}
.skip-link:focus { top: 12px; }

@keyframes tmDrift { 0%, 100% { transform: translate(0, 0) scale(1); } 50% { transform: translate(4%, -5%) scale(1.1); } }
@keyframes tmBob { 0%, 100% { transform: translateY(0) rotate(0deg); } 50% { transform: translateY(-7px) rotate(-2deg); } }
@keyframes tmBreathe { 0%, 100% { transform: translateY(0) scale(1); } 50% { transform: translateY(1px) scale(1.012); } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* ---------- Layout ---------- */
.wrap { box-sizing: content-box; max-width: 1200px; margin-inline: auto; padding-inline: var(--pad-x); }
.band { padding-block: var(--band-y); }
.band--card { background: var(--card); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }

/* ---------- Type ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px; margin: 0;
  font-size: 13px; font-weight: 700; line-height: 1.6; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--muted);
}
.eyebrow::before {
  content: ""; flex: none; width: 8px; height: 8px; border-radius: 50%;
  background: var(--c);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--c) 20%, transparent), 0 0 16px var(--c);
}
.eyebrow--hero { color: #4DB5FF; }
.eyebrow--privacy { color: #8BDB72; }
.section-title {
  margin: 16px 0 18px; max-width: 15em;
  font-size: clamp(34px, 4.4cqi, 58px); line-height: 1.04; font-weight: 800; letter-spacing: -0.035em;
  text-wrap: balance;
}
.section-title--flush { margin-bottom: 0; }
.section-title--light { color: #FFFFFF; max-width: none; }
.section-title--faq { margin: 16px 0 14px; max-width: none; }
.section-title--sm { font-size: clamp(30px, 3.4cqi, 44px); margin-bottom: 0; }
.lead { margin: 0; max-width: 34em; color: var(--muted); text-wrap: pretty; }
.lead--wide { max-width: 36em; }
.lead--light { max-width: 30em; color: rgba(241, 240, 250, .84); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 48px; padding: 0 20px; border-radius: 12px;
  font-size: 16px; font-weight: 700; line-height: 1.2; text-decoration: none; white-space: nowrap;
  transition: transform .2s, box-shadow .2s, background .2s, border-color .2s;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn--primary { background: var(--accent); color: var(--on-accent); font-weight: 750; box-shadow: 0 10px 26px rgba(10, 155, 255, .35); }
.btn--primary:hover { box-shadow: 0 14px 34px rgba(10, 155, 255, .5); }
.btn--lg { height: 52px; padding: 0 24px; font-size: 17px; }
.btn--secondary { border: 1px solid var(--border); background: var(--bg); color: var(--text); }
.btn--secondary:hover { border-color: var(--accent); }
.btn--ghost {
  border: 1px solid rgba(255, 255, 255, .28); background: rgba(255, 255, 255, .07);
  color: #FFFFFF; font-weight: 650;
}
.btn--ghost:hover { background: rgba(255, 255, 255, .14); }
.btn--block { display: flex; width: 100%; }

.badge-link { display: inline-flex; border-radius: 10px; transition: transform .2s; }
.badge-link:hover { transform: translateY(-2px); }
.badge-link img { display: block; height: 48px; width: auto; }

.actions { margin-top: 32px; display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.actions--cta { margin-top: 28px; }

/* ---------- Chips ---------- */
.chips { list-style: none; margin: 32px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.chips--green { margin-top: 28px; --chk: var(--green); }
.chip {
  display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .18); background: rgba(255, 255, 255, .06);
  font-size: 15px; font-weight: 650;
}
.chip-check { color: var(--chk, var(--blue)); font-weight: 800; }

/* ---------- Header / nav ---------- */
.site-header {
  position: relative; overflow: hidden;
  background: linear-gradient(135deg, #050736 0%, #120D57 50%, #5131A3 100%);
  color: var(--on-dark-text);
}
.glow { position: absolute; border-radius: 50%; pointer-events: none; animation: tmDrift 18s ease-in-out infinite; }
.glow--violet { width: 760px; height: 760px; left: -260px; top: -300px; background: radial-gradient(closest-side, rgba(106, 61, 232, .55), rgba(106, 61, 232, 0)); }
.glow--blue { width: 640px; height: 640px; right: 4%; top: 12%; background: radial-gradient(closest-side, rgba(10, 155, 255, .30), rgba(10, 155, 255, 0)); animation-duration: 23s; animation-direction: reverse; }
.glow--tan { width: 560px; height: 560px; right: -160px; bottom: -260px; background: radial-gradient(closest-side, rgba(255, 154, 42, .26), rgba(255, 154, 42, 0)); animation-duration: 27s; }

.nav {
  position: relative; z-index: 5; box-sizing: content-box;
  max-width: 1240px; margin: 0 auto; padding: 18px var(--pad-x);
  display: flex; align-items: center; gap: 28px;
}
.brand {
  display: flex; align-items: center; gap: 10px;
  color: #FFFFFF; font-weight: 800; font-size: 20px; letter-spacing: -0.02em; line-height: 1.6;
}
.brand:hover { text-decoration: none; }
.brand img { display: block; width: 34px; height: 34px; border-radius: 9px; box-shadow: 0 4px 16px rgba(0, 0, 0, .4); }
.nav-links { display: flex; align-items: center; gap: 28px; margin: 0 0 0 auto; padding: 0; list-style: none; }
.nav-links a { color: rgba(241, 240, 250, .86); font-size: 15px; font-weight: 600; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: #FFFFFF; }
.nav-links a[aria-current="page"] { text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 2px; text-decoration-color: rgba(255, 255, 255, .5); }
.nav-cta { height: 40px; padding: 0 18px; border-radius: 10px; font-size: 15px; font-weight: 700; box-shadow: 0 6px 20px rgba(10, 155, 255, .35); }
.nav-cta:hover { transform: translateY(-1px); box-shadow: 0 10px 28px rgba(10, 155, 255, .5); }
.menu-btn {
  display: none; margin-left: auto; align-items: center; justify-content: center; gap: 8px;
  height: 44px; padding: 0 16px; border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, .22); background: rgba(255, 255, 255, .08);
  color: #FFFFFF; font-size: 15px; font-weight: 650; cursor: pointer;
}
.mobile-menu {
  position: relative; z-index: 5; margin: 0 20px; padding: 8px; border-radius: 16px;
  background: rgba(5, 7, 54, .82); border: 1px solid rgba(255, 255, 255, .14);
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  display: flex; flex-direction: column;
}
.mobile-menu[hidden] { display: none; }
.mobile-menu a { padding: 12px 14px; color: #FFFFFF; font-weight: 650; }
.mobile-menu a[aria-current="page"] { text-decoration: underline; text-underline-offset: 5px; }
.mobile-menu .mobile-menu-cta {
  margin-top: 6px; display: flex; align-items: center; justify-content: center; height: 48px;
  border-radius: 12px; background: var(--accent); color: var(--on-accent); font-weight: 700;
}

/* ---------- Home hero ---------- */
.hero {
  position: relative; z-index: 2; box-sizing: content-box;
  max-width: 1240px; margin: 0 auto;
  padding: clamp(36px, 6cqi, 88px) var(--pad-x) clamp(64px, 8cqi, 120px);
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr);
  gap: clamp(48px, 5cqi, 64px); align-items: center;
}
.hero-copy { display: flex; flex-direction: column; align-items: flex-start; }
.hero-title {
  margin: 18px 0 22px; color: #FFFFFF;
  font-size: clamp(44px, 6.2cqi, 86px); line-height: 1; font-weight: 800; letter-spacing: -0.035em;
  text-wrap: balance;
}
.hero-lead {
  margin: 0; max-width: 32em; color: rgba(241, 240, 250, .84);
  font-size: clamp(18px, 1.5cqi, 21px); line-height: 1.55; text-wrap: pretty;
}
.hero-note { margin: 14px 0 0; font-size: 14px; color: rgba(241, 240, 250, .72); }
.hero-visual { position: relative; width: 132%; }

.window { border-radius: 14px; overflow: hidden; background: #FFFFFF; }
.window--hero { box-shadow: 0 50px 100px -24px rgba(0, 0, 0, .6), 0 24px 48px -16px rgba(5, 7, 54, .6), 0 0 0 1px rgba(255, 255, 255, .14); }
.window--shot { box-shadow: 0 50px 100px -30px rgba(5, 7, 54, .5), 0 18px 40px -18px rgba(var(--sh), .35), 0 0 0 1px rgba(var(--sh), .1); }
.window-bar {
  position: relative; height: 38px; display: flex; align-items: center; gap: 8px; padding: 0 14px;
  background: linear-gradient(#F4F4F7, #E9E9EE); border-bottom: 1px solid #D8D8DE;
}
.light { width: 12px; height: 12px; border-radius: 50%; }
.light--r { background: #FF5F57; }
.light--y { background: #FEBC2E; }
.light--g { background: #28C840; }
.window-title {
  position: absolute; left: 60px; right: 60px; text-align: center;
  font-size: 13px; font-weight: 650; line-height: 1.6; color: #3A3A44;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; pointer-events: none;
}
.window--hero .window-title { left: 0; right: 0; }
.hero-shot { height: 560px; overflow: hidden; background: #FFFFFF; }
.hero-shot img { display: block; width: 100%; height: auto; }

.mascot { display: block; height: auto; }
.mascot--wave {
  position: absolute; left: clamp(-72px, -5cqi, -8px); bottom: clamp(-56px, -3cqi, -20px);
  width: clamp(104px, 13cqi, 190px);
  filter: drop-shadow(0 18px 24px rgba(0, 0, 0, .45));
  animation: tmBob 4.8s ease-in-out infinite; transform-origin: 50% 100%;
}

/* ---------- Compact page hero (privacy, support, 404) ---------- */
.page-hero {
  position: relative; z-index: 2; box-sizing: content-box;
  max-width: 1240px; margin: 0 auto;
  padding: clamp(28px, 4cqi, 64px) var(--pad-x) clamp(56px, 6cqi, 96px);
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: clamp(32px, 5cqi, 64px); align-items: center;
}
.page-hero-copy { display: flex; flex-direction: column; align-items: flex-start; }
.page-title {
  margin: 16px 0 18px; color: #FFFFFF;
  font-size: clamp(42px, 5.2cqi, 72px); line-height: 1.02; font-weight: 800; letter-spacing: -0.035em;
  text-wrap: balance;
}
.page-hero .actions { margin-top: 28px; }
.mascot--page {
  width: clamp(120px, 14cqi, 200px); margin-right: clamp(0px, 4cqi, 64px);
  filter: drop-shadow(0 18px 24px rgba(0, 0, 0, .45));
  animation: tmBob 4.8s ease-in-out infinite; transform-origin: 50% 100%;
}

/* ---------- Problem ---------- */
.compare {
  margin-top: clamp(40px, 5cqi, 64px);
  display: grid; grid-template-columns: minmax(0, 1fr) 48px minmax(0, 1.2fr); gap: 20px; align-items: center;
}
.card { border-radius: 16px; background: var(--card); border: 1px solid var(--border); padding: 24px; box-shadow: 0 1px 2px rgba(var(--sh), .05); }
.compare-card--tiered { position: relative; box-shadow: 0 30px 60px -30px rgba(81, 49, 163, .45), 0 1px 2px rgba(var(--sh), .05); }
.compare-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.compare-head h3 { margin: 0; font-size: 18px; font-weight: 750; letter-spacing: -0.01em; }
.mono-tag { font-family: var(--mono); font-size: 13px; color: var(--muted); }
.compare-rows { list-style: none; margin: 18px 0 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.compare-rows li { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid var(--border); }
.cc { font-family: var(--mono); font-size: 12px; color: var(--muted); width: 34px; flex: none; }
.cn { flex: 1; min-width: 0; }
.flat { font-family: var(--mono); font-size: 16px; color: var(--muted); }
.local { font-family: var(--mono); font-size: 17px; font-weight: 700; min-width: 72px; text-align: right; }
.tier {
  display: inline-flex; align-items: center; gap: 6px; padding: 2px 10px; border-radius: 999px;
  background: color-mix(in oklab, var(--c) 18%, transparent); font-size: 13px; font-weight: 600; white-space: nowrap;
}
.tier::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--c); }
.compare-foot { margin: 14px 0 0; font-size: 14px; color: var(--muted); }
.compare-arrow { display: flex; align-items: center; justify-content: center; font-size: 28px; font-weight: 800; color: var(--accent); }
.arrow-d { display: none; }

/* ---------- Steps ---------- */
.steps {
  list-style: none; margin: clamp(40px, 5cqi, 64px) 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 20px;
}
.steps--four { grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); margin-top: clamp(32px, 4cqi, 48px); }
.step {
  display: flex; flex-direction: column; border-radius: 16px; background: var(--bg); border: 1px solid var(--border); padding: 24px;
  transition: transform .25s, box-shadow .25s;
}
.band:not(.band--card) .step { background: var(--card); }
.step:hover { transform: translateY(-4px); box-shadow: 0 24px 48px -28px rgba(var(--sh), .45); }
.step-head { display: flex; align-items: center; gap: 12px; }
.step-num {
  flex: none; width: 44px; height: 44px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--c); color: #050736; font-weight: 800; font-size: 18px;
  box-shadow: 0 0 0 5px color-mix(in oklab, var(--c) 18%, transparent), 0 8px 22px color-mix(in oklab, var(--c) 45%, transparent);
}
.c-vio .step-num, .c-vio.step .step-num { color: #FFFFFF; }
.step-line { flex: 1; height: 2px; border-radius: 2px; background: linear-gradient(90deg, var(--c), var(--next)); opacity: .6; }
.step h3 { margin: 20px 0 8px; font-size: 22px; font-weight: 800; letter-spacing: -0.025em; }
.step p { margin: 0; color: var(--muted); font-size: 16px; text-wrap: pretty; }
.steps--four .step p { margin-top: 18px; color: var(--text); }
.mini-wrap { margin-top: auto; padding-top: 20px; }
.mini { list-style: none; margin: 0; border-radius: 12px; background: var(--card); border: 1px solid var(--border); padding: 6px 14px; }
.mini li { display: flex; align-items: center; gap: 10px; padding: 8px 0; font-size: 14px; }
.mini li::before { content: ""; flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--c); }
.mini-label { flex: 1; min-width: 0; font-weight: 600; }
.mini-value { font-family: var(--mono); font-size: 13px; color: var(--muted); }

/* ---------- Features ---------- */
.features { margin-top: clamp(40px, 5cqi, 64px); display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 20px; }
.feature {
  position: relative; overflow: hidden; border-radius: 16px; background: var(--card); border: 1px solid var(--border); padding: 28px;
  transition: transform .25s, box-shadow .25s, border-color .25s;
}
.feature:hover { transform: translateY(-4px); box-shadow: 0 24px 48px -28px rgba(var(--sh), .5); border-color: var(--c); }
.feature::before {
  content: ""; position: absolute; right: -60px; top: -60px; width: 160px; height: 160px; border-radius: 50%;
  background: radial-gradient(closest-side, color-mix(in oklab, var(--c) 22%, transparent), transparent);
}
.feature::after { content: ""; position: absolute; left: 28px; top: 28px; width: 28px; height: 4px; border-radius: 4px; background: var(--c); }
.feature h3 { position: relative; margin: 24px 0 8px; font-size: 21px; font-weight: 800; letter-spacing: -0.025em; }
.feature p { position: relative; margin: 0; color: var(--muted); font-size: 16px; text-wrap: pretty; }

/* ---------- Screens (tabs) ---------- */
.showcase {
  margin-top: clamp(36px, 4cqi, 56px);
  display: grid; grid-template-columns: 290px minmax(0, 1fr); gap: clamp(20px, 3cqi, 40px); align-items: start;
}
.tabs { display: flex; flex-direction: column; gap: 6px; margin: 0 -4px; padding: 4px; }
.tab {
  flex: none; display: flex; flex-direction: column; gap: 4px; text-align: left;
  padding: 14px 16px; border-radius: 12px; border: 1px solid transparent; background: transparent; cursor: pointer;
  transition: background .2s, border-color .2s;
}
.tab:hover { border-color: var(--border); }
.tab[aria-selected="true"] { background: var(--bg); border-color: var(--border); }
.tab-label { display: flex; align-items: center; gap: 10px; font-size: 16px; font-weight: 700; white-space: nowrap; }
.tab-label::before { content: ""; flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--c); }
.tab-caption { display: none; padding-left: 18px; font-size: 14px; line-height: 1.45; color: var(--muted); }
.tab[aria-selected="true"] .tab-caption { display: block; }
.panel figure { margin: 0; }
.panel[hidden] { display: none; }
.panel:focus-visible { outline-offset: 6px; border-radius: 14px; }
.shot { aspect-ratio: 3 / 2; overflow: hidden; background: #FFFFFF; }
.shot img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: left top; }
.shot--right img { object-position: right top; transform: scale(1.035); transform-origin: right top; }
.shot--contain img { object-fit: contain; object-position: center top; }
/* Wide layout: the caption lives in the selected tab; keep it for screen readers only. */
.panel figcaption {
  position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}

/* ---------- Privacy band ---------- */
.band--night {
  position: relative; overflow: hidden;
  background: linear-gradient(135deg, #050736 0%, #0E0B4A 60%, #2A1C78 100%); color: var(--on-dark-text);
}
.glow--green { width: 620px; height: 620px; left: -200px; bottom: -320px; background: radial-gradient(closest-side, rgba(92, 200, 63, .18), rgba(92, 200, 63, 0)); animation-duration: 24s; }
.privacy-grid { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(48px, 6cqi, 80px); align-items: center; }
.flow-wrap { position: relative; padding-top: clamp(56px, 6cqi, 84px); }
.mascot--sleep {
  position: absolute; right: clamp(8px, 3cqi, 40px); top: 0; width: clamp(150px, 16cqi, 220px);
  filter: drop-shadow(0 14px 18px rgba(0, 0, 0, .45));
  animation: tmBreathe 5s ease-in-out infinite; transform-origin: 50% 100%;
}
.flow {
  position: relative; border-radius: 16px; background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .14); padding: 22px;
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.flow-mac { border-radius: 12px; background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .16); padding: 16px 18px; }
.flow-row { display: flex; justify-content: space-between; gap: 12px; }
.flow-row--head { font-weight: 750; }
.flow-row--key { margin-top: 4px; font-family: var(--mono); font-size: 13px; color: rgba(241, 240, 250, .8); }
.flow-row--head + .flow-row--key { margin-top: 10px; }
.flow-mono { font-family: var(--mono); font-size: 13px; font-weight: 500; color: rgba(241, 240, 250, .72); }
.flow-link { display: grid; grid-template-columns: 1fr 1fr; height: 36px; }
.flow-link span:first-child { border-right: 2px dashed rgba(10, 155, 255, .7); margin-right: -1px; }
.flow-stores { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr)); gap: 12px; }
.flow-store { border-radius: 12px; padding: 12px 14px; font-weight: 700; font-size: 15px; }
.flow-store span { display: block; font-weight: 500; font-size: 13px; color: rgba(241, 240, 250, .72); }
.flow-store--blue { border: 1px solid rgba(10, 155, 255, .5); background: rgba(10, 155, 255, .1); }
.flow-store--green { border: 1px solid rgba(92, 200, 63, .5); background: rgba(92, 200, 63, .1); }
.flow-server {
  margin-top: 12px; border-radius: 12px; border: 1px dashed rgba(255, 255, 255, .28); padding: 12px 14px;
  display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 15px;
}
.flow-server s { color: rgba(241, 240, 250, .72); }

/* ---------- Pricing ---------- */
.pricing { margin-top: clamp(40px, 5cqi, 64px); display: grid; grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr); gap: 20px; align-items: stretch; }
.price-card { display: flex; flex-direction: column; border-radius: 16px; background: var(--card); border: 1px solid var(--border); padding: clamp(24px, 3cqi, 36px); }
.price-card h3 { margin: 0; font-size: 22px; font-weight: 800; letter-spacing: -0.025em; }
.price-amount { margin-top: 14px; display: flex; align-items: baseline; gap: 8px; }
.price-big { font-size: 48px; font-weight: 800; letter-spacing: -0.035em; line-height: 1; }
.price-sub { color: var(--muted); }
.checks { list-style: none; margin: 24px 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.checks li { display: flex; gap: 12px; align-items: baseline; }
.checks li::before { content: "✓"; content: "✓" / ""; color: var(--accent); font-weight: 800; }
.price-card .btn--block { margin-top: auto; }
.price-card--pro {
  position: relative; border: 2px solid var(--accent);
  box-shadow: 0 40px 80px -40px rgba(10, 155, 255, .55), 0 30px 60px -40px rgba(106, 61, 232, .5);
}
.pro-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.pro-plus { font-size: 14px; color: var(--muted); }
.checks--grid { margin: 18px 0 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 10px 24px; }
.plans { margin: 24px 0 0; padding: 0; border: 0; min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.plan {
  position: relative; display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 12px;
  border: 2px solid var(--border); cursor: pointer; transition: border-color .2s, background .2s;
}
.plan:hover { border-color: var(--accent); }
.plan input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; pointer-events: none; }
.plan:has(input:checked) { border-color: var(--accent); background: color-mix(in oklab, #0A9BFF 9%, transparent); }
.plan:has(input:focus-visible) { outline: 3px solid var(--focus); outline-offset: 3px; }
.plan-ring { flex: none; width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--border); display: flex; align-items: center; justify-content: center; }
.plan-ring::after { content: ""; width: 10px; height: 10px; border-radius: 50%; background: transparent; }
.plan input:checked ~ .plan-ring { border-color: var(--accent); }
.plan input:checked ~ .plan-ring::after { background: var(--accent); }
.plan-text { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.plan-name { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-weight: 750; }
.plan-badge { padding: 2px 9px; border-radius: 999px; background: #5CC83F; color: #0B2A05; font-size: 12px; font-weight: 800; letter-spacing: 0.02em; line-height: 1.6; }
.plan-note { font-size: 14px; color: var(--muted); }
.plan-price { text-align: right; white-space: nowrap; }
.plan-amount { font-family: var(--mono); font-size: 18px; font-weight: 700; }
.plan-per { font-size: 14px; color: var(--muted); }
.badge-link--pro { align-self: center; margin-top: 24px; }
.badge-link--pro img { height: 52px; }
.fine { margin: 12px 0 0; font-size: 14px; color: var(--muted); text-align: center; text-wrap: pretty; }
.fine + .fine--plan { margin-top: 4px; }
/* Plan-specific fine print follows the selected plan (CSS only; yearly is the default). */
.fine--plan { display: none; }
.fine--yearly { display: block; }
.price-card--pro:has(#plan-monthly:checked) .fine--yearly,
.price-card--pro:has(#plan-lifetime:checked) .fine--yearly { display: none; }
.price-card--pro:has(#plan-monthly:checked) .fine--monthly,
.price-card--pro:has(#plan-lifetime:checked) .fine--lifetime { display: block; }

/* ---------- FAQ / accordion ---------- */
.faq-grid { display: grid; grid-template-columns: minmax(0, .75fr) minmax(0, 1.5fr); gap: clamp(32px, 5cqi, 72px); align-items: start; }
.faq-intro { display: flex; flex-direction: column; align-items: flex-start; }
.mascot--think { margin-top: 32px; width: clamp(120px, 13cqi, 180px); filter: drop-shadow(0 16px 20px rgba(var(--sh), .25)); }
.accordion { border-top: 1px solid var(--border); }
.acc-item { border-bottom: 1px solid var(--border); }
.acc-item h3 { margin: 0; }
.acc-item button {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 22px 0; background: none; border: 0; text-align: left; cursor: pointer;
  font-size: 18px; font-weight: 700; letter-spacing: -0.01em;
}
.acc-item button:hover { color: var(--accent); }
.acc-icon {
  flex: none; width: 32px; height: 32px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  background: var(--sub); color: var(--text); font-size: 20px; font-weight: 600; line-height: 1;
  transition: transform .25s;
}
.acc-item button[aria-expanded="true"] .acc-icon { background: var(--accent); color: var(--on-accent); transform: rotate(45deg); }
.acc-panel[hidden] { display: none; }
.acc-panel p { margin: -6px 0 0; padding: 0 52px 24px 0; color: var(--muted); text-wrap: pretty; }

/* ---------- Final CTA ---------- */
.cta {
  position: relative; overflow: hidden; border-radius: 28px;
  background: linear-gradient(135deg, #050736 0%, #1A1066 55%, #5131A3 100%); color: var(--on-dark-text);
  padding: clamp(40px, 6cqi, 80px) clamp(24px, 5cqi, 72px);
  display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, .6fr); gap: 32px; align-items: center;
}
.glow--cta-tan { width: 520px; height: 520px; right: -120px; top: -200px; background: radial-gradient(closest-side, rgba(255, 154, 42, .32), rgba(255, 154, 42, 0)); animation-duration: 20s; }
.glow--cta-blue { width: 520px; height: 520px; left: -160px; bottom: -260px; background: radial-gradient(closest-side, rgba(10, 155, 255, .3), rgba(10, 155, 255, 0)); animation-duration: 25s; animation-direction: reverse; }
.cta-copy { position: relative; }
.cta-title {
  margin: 0 0 16px; color: #FFFFFF;
  font-size: clamp(36px, 5cqi, 64px); line-height: 1.02; font-weight: 800; letter-spacing: -0.035em; text-wrap: balance;
}
.cta-copy p { margin: 0; max-width: 30em; color: rgba(241, 240, 250, .86); text-wrap: pretty; }
.mascot--celebrate {
  position: relative; justify-self: center; width: clamp(160px, 20cqi, 280px);
  filter: drop-shadow(0 20px 26px rgba(0, 0, 0, .45));
  animation: tmBob 4s ease-in-out infinite; transform-origin: 50% 100%;
}

/* ---------- Privacy policy prose ---------- */
.prose { max-width: 760px; }
.prose-intro { margin: 0 0 28px; font-size: clamp(18px, 1.5cqi, 20px); line-height: 1.55; text-wrap: pretty; }
.prose h2 { margin: 44px 0 10px; font-size: 24px; font-weight: 800; letter-spacing: -0.025em; line-height: 1.25; }
.prose p { margin: 0 0 12px; text-wrap: pretty; }
.prose ul { margin: 0 0 12px; padding-left: 1.25em; }
.prose li { margin: 8px 0; padding-left: 4px; }
.prose li::marker { color: var(--accent); }
.callout {
  position: relative; border-radius: 16px; background: var(--card); border: 1px solid var(--border);
  padding: 28px; box-shadow: 0 24px 48px -32px rgba(var(--sh), .35);
}
.callout::before { content: ""; display: block; width: 28px; height: 4px; border-radius: 4px; background: var(--c); }
.prose .callout h2 { margin-top: 16px; }
.prose .callout p { margin: 0; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--border); }
.footer-inner { padding-top: 40px; padding-bottom: 48px; display: flex; flex-direction: column; gap: 20px; }
.footer-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 32px; }
.footer-brand { display: flex; align-items: center; gap: 10px; font-weight: 800; letter-spacing: -0.02em; }
.footer-brand img { display: block; width: 28px; height: 28px; border-radius: 7px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 24px; font-size: 15px; font-weight: 600; }
.footer-links a[aria-current="page"] { text-decoration: underline; text-underline-offset: 4px; }
.footer-legal { display: flex; flex-direction: column; gap: 6px; font-size: 13px; line-height: 1.5; color: var(--muted); }

/* ---------- Narrow layout (< 820px), as in the design's 390 boards ---------- */
@media (max-width: 819.98px) {
  .nav-links, .nav-cta { display: none; }
  .menu-btn { display: inline-flex; }

  .hero { grid-template-columns: minmax(0, 1fr); }
  .hero-visual { width: 100%; }
  .hero-shot { height: 260px; }

  .page-hero { grid-template-columns: minmax(0, 1fr); }
  .mascot--page { grid-row: 1; width: 112px; margin: 0; }

  .compare { grid-template-columns: minmax(0, 1fr); }
  .arrow-r { display: none; }
  .arrow-d { display: inline; }

  .showcase { grid-template-columns: minmax(0, 1fr); }
  .tabs { flex-direction: row; overflow-x: auto; scrollbar-width: thin; }
  .tab { padding: 10px 14px; }
  .tab[aria-selected="true"] .tab-caption { display: none; }
  .panel figcaption { position: static; width: auto; height: auto; margin: 14px 0 0; overflow: visible; clip: auto; clip-path: none; white-space: normal; font-size: 15px; color: var(--muted); }

  .privacy-grid { grid-template-columns: minmax(0, 1fr); }
  .pricing { grid-template-columns: minmax(0, 1fr); }
  .faq-grid { grid-template-columns: minmax(0, 1fr); }
  .mascot--think { display: none; }
  .cta { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- Without JavaScript ---------- */
@media (scripting: none) {
  .menu-btn { display: none !important; }
  .tabs { display: none; }
  .panels { display: grid; gap: 40px; }
  .panel[hidden], .acc-panel[hidden] { display: block; }
  .panel figcaption { position: static; width: auto; height: auto; margin: 14px 0 0; overflow: visible; clip: auto; clip-path: none; white-space: normal; font-size: 15px; color: var(--muted); }
  .acc-icon { display: none; }
}
@media (scripting: none) and (max-width: 819.98px) {
  .mobile-menu[hidden] { display: flex; }
}

/* ---------- Forced colours ---------- */
@media (forced-colors: active) {
  .plan:has(input:checked) { outline: 2px solid CanvasText; }
  .plan-ring::after { forced-color-adjust: none; }
}

/* ---------- 404: hero fills the viewport so the footer sits at the bottom ---------- */
.page:has(> .site-header > main) { display: flex; flex-direction: column; }
.site-header:has(> main) { flex: 1 0 auto; display: flex; flex-direction: column; }
.site-header > main { flex: 1; display: flex; align-items: center; }
.site-header > main > .page-hero { flex: 1; }
