/* clir.ai/start: the web onboarding. The app's onboarding look
   (clirVoice OnboardingView/OnboardingScreens.swift): black, mint for the main
   action and progress, Iris and the Aurora gradient for anything Ultra, tiles
   with check circles, capsule buttons. One column of 520 px, as in the app;
   the buttons sit at the bottom of the screen on phones. */

@font-face {
  font-family: "Inter";
  src: url("/redesign/fonts/Inter-Latin.woff2") format("woff2");
  /* What the Latin-only copy covers. A character outside it (the rating's
     stars) then doesn't make the browser download Inter to look for it. */
  unicode-range: U+0020-007E, U+00A0-017F, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2190-2199, U+2212, U+2215, U+FFFD;
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --bg: #000;
  --mint: #22D3A0;
  --on-mint: #04140E;
  --text: #fff;
  --text-2: #A1A1A6;
  --text-3: #8E8E93;
  --tile: rgba(255, 255, 255, 0.06);
  --tile-on: rgba(34, 211, 160, 0.10);
  --line: rgba(255, 255, 255, 0.10);
  --glass: rgba(255, 255, 255, 0.08);
  --glass-line: rgba(255, 255, 255, 0.12);
  --iris: #A78BFA;
  --iris-light: #C4B5FD;
  --on-iris: #140B2E;
  --aurora-green: #5EEAD4;
  --aurora-blue: #8FB4FF;
  --aurora-violet: #B79CFF;
  --aurora: linear-gradient(115deg, var(--aurora-green) 0%, var(--aurora-blue) 42%, var(--iris) 74%, var(--aurora-violet) 100%);
  --warning: #FF9F0A;
  --card: #0E0F10;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "Inter", system-ui, sans-serif;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--text); }
/* The flow has its own Back button: a sideways trackpad swipe mustn't leave it (2026-11-20). */
html, body { overscroll-behavior-x: none; }
body {
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}
a { color: inherit; }
button { font: inherit; color: inherit; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 2px solid var(--mint); outline-offset: 3px; }
h1:focus { outline: none; }

.start { flex: 1; display: flex; flex-direction: column; width: 100%; position: relative; }

/* ---- Top bar: back, progress ---- */
.topbar {
  position: sticky; top: 0; z-index: 5;
  display: grid; grid-template-columns: 36px 1fr 36px; align-items: center; gap: 12px;
  width: 100%; max-width: 564px; margin: 0 auto;
  padding: max(12px, env(safe-area-inset-top)) 16px 8px;
  background: linear-gradient(#000 70%, rgba(0, 0, 0, 0));
}
.circle-btn {
  width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--glass-line);
  background: var(--glass); display: grid; place-items: center; cursor: pointer; padding: 0;
  transition: transform 0.15s var(--ease), background 0.15s;
}
.circle-btn:hover { background: rgba(255, 255, 255, 0.12); }
.circle-btn:active { transform: scale(0.94); }
.circle-btn .icon { width: 18px; height: 18px; }
.progress { display: flex; gap: 6px; }
/* One part per chapter (content.js CHAPTERS), filled to --fill (0 to 1). */
.progress span { position: relative; overflow: hidden; flex: 1; height: 4px; border-radius: 2px; background: rgba(255, 255, 255, 0.14); }
.progress span::after { content: ''; position: absolute; inset: 0 auto 0 0; width: calc(var(--fill, 0) * 100%); border-radius: inherit; background: var(--mint); transition: width 0.45s var(--ease); }
@media (prefers-reduced-motion: reduce) { .progress span::after { transition: none; } }

/* ---- A step ---- */
.page {
  flex: 1; display: flex; flex-direction: column;
  width: 100%; max-width: 564px; margin: 0 auto; padding: 16px 22px 0;
}
.start.is-entering .page { animation: rise 0.45s var(--ease) both; }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.page__content { flex: 1; }
.title { font-size: 32px; line-height: 1.12; font-weight: 800; letter-spacing: -0.025em; margin: 4px 0 0; }
.subtitle { font-size: 16px; color: var(--text-2); margin: 10px 0 0; }
.page__body { margin-top: 22px; }
.eyebrow { font-size: 13px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; color: var(--mint); margin: 0 0 8px; }
.eyebrow--ultra { color: var(--iris-light); }

.actions {
  position: sticky; bottom: 0; z-index: 4;
  display: flex; flex-direction: column; gap: 4px;
  padding: 18px 0 max(14px, env(safe-area-inset-bottom));
  margin-top: 20px;
  background: linear-gradient(rgba(0, 0, 0, 0), #000 28%);
}

/* ---- Buttons ---- */
.btn {
  position: relative; width: 100%; min-height: 56px; border-radius: 999px; border: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px;
  padding: 8px 18px; cursor: pointer; font-weight: 800; font-size: 17px; text-align: center;
  transition: transform 0.15s var(--ease), opacity 0.2s, background 0.2s, box-shadow 0.2s;
}
.btn:active:not(:disabled) { transform: scale(0.97); }
.btn:disabled { cursor: default; opacity: 0.35; }
/* The demo's button while a mode plays: a status, not a dead button. */
.btn[data-kind="wait"]:disabled { opacity: 1; color: var(--text-2); font-variant-numeric: tabular-nums; }
.btn__title { line-height: 1.2; }
.btn__sub { font-size: 12.5px; font-weight: 600; opacity: 0.8; }
.btn--mint { background: var(--mint); color: var(--on-mint); }
.btn--aurora { background: var(--aurora); color: var(--on-iris); box-shadow: 0 6px 22px rgba(167, 139, 250, 0.35); }
.btn--white { background: #fff; color: #000; }
.btn--glass { background: var(--glass); color: #fff; box-shadow: inset 0 0 0 1px var(--glass-line); }
.btn__logo { position: absolute; left: 20px; top: 50%; width: 20px; height: 20px; transform: translateY(-50%); }
.btn__logo svg { width: 20px; height: 20px; display: block; }
.btn.is-busy .btn__title, .btn.is-busy .btn__sub, .btn.is-busy .btn__logo { opacity: 0; }
.btn.is-busy::after {
  content: ""; position: absolute; width: 20px; height: 20px; border-radius: 50%;
  border: 2.5px solid currentColor; border-right-color: transparent; animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.link {
  background: none; border: 0; min-height: 44px; width: 100%; cursor: pointer;
  color: var(--text-2); font-size: 15px; font-weight: 600;
}
.link:hover { color: #fff; }

.icon { display: inline-grid; width: 22px; height: 22px; }
.icon svg { width: 100%; height: 100%; }

/* ---- Check circles and boxes ---- */
.check {
  flex: none; width: 22px; height: 22px; border-radius: 50%;
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.22); color: transparent;
  display: grid; place-items: center; transition: background 0.2s, box-shadow 0.2s, color 0.2s, transform 0.25s var(--ease);
}
.check svg { width: 18px; height: 18px; }
.check.is-on { background: var(--mint); box-shadow: none; color: var(--on-mint); transform: scale(1.04); }
.check--square { border-radius: 7px; }

/* ---- Tiles: "What do you record?" ---- */
.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.tile {
  min-height: 112px; padding: 14px; border-radius: 20px; border: 0; cursor: pointer; text-align: left;
  background: var(--tile); box-shadow: inset 0 0 0 1.5px transparent;
  display: flex; flex-direction: column; justify-content: space-between; gap: 12px;
  transition: background 0.2s, box-shadow 0.2s, transform 0.15s var(--ease);
}
.tile:active { transform: scale(0.97); }
.tile.is-on { background: var(--tile-on); box-shadow: inset 0 0 0 1.5px var(--mint); }
.tile__top { display: flex; justify-content: space-between; align-items: flex-start; }
.tile__icon { width: 26px; height: 26px; color: var(--mint); }
/* What people in their job often record: a "For you" tag beside the circle and a
   slow glow until it's chosen (owner, 2026-11-20). */
.tile__marks { display: flex; align-items: center; gap: 8px; }
.tile__tag { font-size: 10.5px; font-weight: 800; letter-spacing: 0.05em; text-transform: uppercase; white-space: nowrap; padding: 3px 7px; border-radius: 7px; background: rgba(34, 211, 160, 0.16); color: var(--mint); }
.tile.is-for-you:not(.is-on) { animation: for-you 2.4s ease-in-out infinite; }
@keyframes for-you {
  0%, 100% { box-shadow: inset 0 0 0 1.5px rgba(34, 211, 160, 0.25), 0 0 0 rgba(34, 211, 160, 0); }
  50% { box-shadow: inset 0 0 0 1.5px rgba(34, 211, 160, 0.65), 0 0 22px rgba(34, 211, 160, 0.3); }
}
@media (prefers-reduced-motion: reduce) {
  .tile.is-for-you:not(.is-on) { animation: none; box-shadow: inset 0 0 0 1.5px rgba(34, 211, 160, 0.45); }
}
.tile__title { font-size: 15.5px; font-weight: 700; line-height: 1.25; }

/* ---- Options: one question per screen ---- */
.options { display: flex; flex-direction: column; gap: 8px; }
.option {
  display: flex; align-items: center; gap: 14px; width: 100%; min-height: 56px; padding: 14px 16px;
  border-radius: 16px; border: 0; background: var(--tile); box-shadow: inset 0 0 0 1.5px transparent;
  cursor: pointer; text-align: left; font-size: 16px; font-weight: 600;
  transition: background 0.2s, box-shadow 0.2s, transform 0.15s var(--ease);
}
.option:active { transform: scale(0.985); }
.option.is-on { background: var(--tile-on); box-shadow: inset 0 0 0 1.5px var(--mint); }
.option__label { flex: 1; }
.options--compact .option { min-height: 50px; padding: 12px 16px; }

.field {
  width: 100%; height: 54px; border-radius: 14px; border: 0; padding: 0 16px;
  background: var(--tile); color: #fff; font: inherit; font-size: 17px;
  box-shadow: inset 0 0 0 1.5px transparent; transition: box-shadow 0.2s;
}
.field::placeholder { color: var(--text-3); }
.field:focus { outline: none; box-shadow: inset 0 0 0 1.5px var(--mint); }

/* ---- Welcome ---- */
.welcome { flex: 1; position: relative; display: flex; align-items: flex-end; overflow: hidden; }
.aurora {
  position: absolute; inset: 0 0 auto; height: 70vh; pointer-events: none;
  background:
    radial-gradient(60% 55% at 18% 8%, rgba(94, 234, 212, 0.38), transparent 70%),
    radial-gradient(55% 50% at 62% 0%, rgba(143, 180, 255, 0.34), transparent 70%),
    radial-gradient(50% 50% at 95% 14%, rgba(167, 139, 250, 0.36), transparent 70%);
  filter: blur(8px);
  animation: sky 1.6s var(--ease) both;
  mask-image: linear-gradient(#000 35%, transparent);
  -webkit-mask-image: linear-gradient(#000 35%, transparent);
}
.aurora--soft { opacity: 0.55; height: 50vh; }
@keyframes sky { from { opacity: 0; } to { opacity: 1; } }
.welcome__inner {
  position: relative; width: 100%; max-width: 564px; margin: 0 auto;
  padding: 24px 22px max(18px, env(safe-area-inset-bottom));
}
.start.is-entering .welcome__inner { animation: rise 0.6s 0.2s var(--ease) both; }
.welcome__title { font-size: clamp(40px, 9vw, 52px); line-height: 1.04; font-weight: 800; letter-spacing: -0.03em; margin: 0; }
.welcome__text { font-size: 17px; color: var(--text-2); margin: 12px 0 0; max-width: 30em; }
.welcome__actions { margin-top: 34px; display: flex; flex-direction: column; gap: 10px; }
@media (min-height: 760px) and (min-width: 700px) { .welcome { align-items: center; } }

.wave { display: flex; align-items: center; gap: 4px; height: 64px; margin-bottom: 26px; }
.wave__bar {
  width: 5px; border-radius: 3px; height: calc(var(--h) * 100%); min-height: 10px;
  animation: breathe 2.6s ease-in-out infinite; animation-delay: calc(var(--d) * -1);
}
.wave__bar--green { background: var(--aurora-green); }
.wave__bar--blue { background: var(--aurora-blue); }
.wave__bar--iris { background: var(--iris-light); }
@keyframes breathe { 0%, 100% { transform: scaleY(0.72); } 50% { transform: scaleY(1); } }

.rating { margin: 6px 0 0; text-align: center; font-size: 13.5px; font-weight: 600; color: var(--text-2); }
.rating--left { text-align: left; margin: 0 0 14px; }
.rating__stars { color: #FFD60A; letter-spacing: 1px; }
.fineprint { margin: 8px 0 0; text-align: center; font-size: 12px; line-height: 1.45; color: var(--text-3); }
.fineprint a { color: var(--text-2); }
.fineprint--icon { display: flex; align-items: center; justify-content: center; gap: 6px; margin: 0 0 8px; }
.fineprint__icon { width: 13px; height: 13px; }

/* ---- Demo ---- */
.demo { display: flex; flex-direction: column; gap: 14px; }
.chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin: 0 -22px; padding: 0 22px; }
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex: none; height: 34px; padding: 0 14px; border-radius: 17px; border: 0; cursor: pointer;
  background: var(--glass); color: var(--text-2); font-size: 14px; font-weight: 700;
}
.chip[aria-pressed="true"] { background: #fff; color: #000; }
.demo__card {
  position: relative; border-radius: 22px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line);
  padding: 16px 16px 18px; display: grid; grid-template-columns: 1fr 56px; grid-template-rows: auto 74px auto; gap: 10px 14px;
  transition: box-shadow 0.4s;
}
.demo__card[data-mode="ultra"] { box-shadow: inset 0 0 0 1px rgba(167, 139, 250, 0.45), 0 10px 40px rgba(167, 139, 250, 0.12); }
.demo__head { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: center; }
.demo__scene { font-size: 14px; font-weight: 700; }
.demo__badge { font-size: 11px; font-weight: 800; letter-spacing: 0.05em; text-transform: uppercase; color: var(--text-3); }
.demo__wave { grid-column: 1; width: 100%; height: 74px; display: block; }
.play {
  grid-column: 2; grid-row: 2; align-self: center; width: 56px; height: 56px; border-radius: 50%; border: 0;
  background: var(--mint); cursor: pointer; display: grid; place-items: center;
  transition: transform 0.15s var(--ease), background 0.3s; box-shadow: 0 0 0 0 rgba(34, 211, 160, 0.5);
}
.demo__card[data-mode="ultra"] .play { background: var(--aurora); }
.play:active { transform: scale(0.94); }
.play__icon { width: 0; height: 0; border-style: solid; border-width: 10px 0 10px 16px; border-color: transparent transparent transparent var(--on-mint); margin-left: 4px; }
.play[data-playing="true"] .play__icon { width: 16px; height: 18px; border: 0; margin: 0; border-left: 5px solid var(--on-mint); border-right: 5px solid var(--on-mint); }
.play[data-playing="false"] { animation: pulse 2.2s ease-out infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(34, 211, 160, 0.45); } 70%, 100% { box-shadow: 0 0 0 14px rgba(34, 211, 160, 0); } }
.demo__words { grid-column: 1 / -1; margin: 0; font-size: 17px; line-height: 1.45; font-weight: 600; min-height: 3em; }
.demo__words span { color: rgba(255, 255, 255, 0.32); transition: color 0.15s; }
.demo__words span + span::before { content: " "; }
.demo__words span[data-state="past"] { color: #fff; }
.demo__words span[data-state="now"] { color: var(--mint); }
.demo__card[data-mode="ultra"] .demo__words span[data-state="now"] { color: var(--iris-light); }

.modes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; padding: 4px; border-radius: 18px; background: var(--glass); }
.mode {
  position: relative; border: 0; border-radius: 14px; background: transparent; cursor: pointer;
  padding: 10px 6px 10px; display: flex; flex-direction: column; align-items: center; gap: 8px;
  transition: background 0.25s, color 0.25s, opacity 0.25s, transform 0.15s var(--ease);
}
.mode:active { transform: scale(0.97); }
.mode__label { font-size: 15px; font-weight: 800; }
.mode[aria-pressed="true"] { background: rgba(255, 255, 255, 0.12); }
.mode--strong[aria-pressed="true"] { background: var(--mint); color: var(--on-mint); }
.mode--ultra[aria-pressed="true"] { background: var(--aurora); color: var(--on-iris); }
.mode[data-locked="true"] { opacity: 0.38; cursor: not-allowed; }
.mode__lock { display: none; position: absolute; top: 8px; right: 8px; }
.mode[data-locked="true"] .mode__lock { display: block; }
.mode__lock-icon { width: 13px; height: 13px; }
.ring { width: 22px; height: 22px; }
.ring svg { width: 22px; height: 22px; transform: rotate(-90deg); overflow: visible; }
.ring__track { fill: none; stroke: currentColor; stroke-opacity: 0.25; stroke-width: 2; }
.ring__fill { fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; transition: stroke-dashoffset 0.2s linear; }
.ring__check { fill: none; stroke: transparent; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; transform: rotate(90deg); transform-origin: 11px 11px; }
.mode .ring { color: var(--mint); }
.mode--ultra .ring { color: var(--iris-light); }
.mode[aria-pressed="true"].mode--strong .ring, .mode[aria-pressed="true"].mode--ultra .ring { color: currentColor; }
.mode[data-done="true"] .ring__fill { stroke-dashoffset: 0 !important; }
.mode[data-done="true"] .ring__track { fill: currentColor; fill-opacity: 1; stroke-opacity: 1; }
.mode[data-done="true"] .ring__check { stroke: #000; }
.mode[data-done="true"][aria-pressed="true"].mode--strong .ring__check { stroke: var(--mint); }
.mode[data-done="true"][aria-pressed="true"].mode--ultra .ring__check { stroke: #c9b8ff; }
.mode.shake { animation: shake 0.4s; }
@keyframes shake { 20%, 60% { transform: translateX(-4px); } 40%, 80% { transform: translateX(4px); } }
.demo__summary { margin: 0; text-align: center; font-size: 13.5px; color: var(--text-2); min-height: 2.9em; }

/* ---- Building ---- */
.page--center { justify-content: center; }
.page--center .page__content { flex: none; margin: auto 0; padding: 40px 0; }
.build__percent { font-size: 64px; font-weight: 800; letter-spacing: -0.03em; margin: 18px 0 8px; font-variant-numeric: tabular-nums; }
.build__bar { height: 8px; border-radius: 4px; background: rgba(255, 255, 255, 0.12); overflow: hidden; }
.build__bar span { display: block; height: 100%; width: 0; border-radius: 4px; background: var(--aurora); }
.checklist { list-style: none; padding: 0; margin: 28px 0 0; display: flex; flex-direction: column; gap: 14px; }
.checklist li { display: flex; align-items: center; gap: 12px; font-size: 16px; font-weight: 600; }

/* ---- Features ---- */
.feature { display: flex; flex-direction: column; align-items: center; gap: 18px; }
.phone {
  width: min(64vw, 250px); aspect-ratio: 1320 / 2868; border-radius: 34px; overflow: hidden;
  box-shadow: 0 0 0 7px #1c1c1e, 0 0 0 8px #333, 0 30px 60px rgba(0, 0, 0, 0.6);
  background: #111;
}
.phone img { width: 100%; height: 100%; display: block; object-fit: cover; }
.feature-art {
  width: min(64vw, 250px); aspect-ratio: 1; border-radius: 40px; display: grid; place-items: center;
  background: radial-gradient(circle at 30% 20%, rgba(34, 211, 160, 0.35), rgba(34, 211, 160, 0.06) 60%), var(--card);
  box-shadow: inset 0 0 0 1px var(--line); color: var(--mint);
}
.feature-art--ultra { background: radial-gradient(circle at 30% 20%, rgba(167, 139, 250, 0.4), rgba(143, 180, 255, 0.08) 60%), var(--card); color: var(--iris-light); }
.feature-art__icon { width: 96px; height: 96px; }
.dots { display: flex; gap: 6px; }
.dots span { width: 7px; height: 7px; border-radius: 50%; background: rgba(255, 255, 255, 0.25); transition: background 0.3s, width 0.3s; }
.dots span.is-on { background: #fff; width: 20px; border-radius: 4px; }

/* ---- Your clir ---- */
.yours { display: flex; flex-direction: column; gap: 16px; }
.yours__rows { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.yours__row { padding: 14px 16px; border-radius: 16px; background: var(--tile); display: flex; flex-direction: column; gap: 2px; }
.yours__problem { font-size: 13px; font-weight: 700; color: var(--text-3); text-decoration: line-through; text-decoration-color: rgba(255, 255, 255, 0.3); }
.yours__fix { font-size: 16px; font-weight: 700; }
.yours__lines { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.yours__lines li { display: flex; gap: 12px; align-items: center; font-size: 15.5px; font-weight: 600; }
.suggest { padding: 16px 18px; border-radius: 20px; background: var(--card); box-shadow: inset 0 0 0 1.5px var(--mint); }
.suggest--ultra { box-shadow: none; position: relative; }
.suggest--ultra::before {
  content: ""; position: absolute; inset: 0; border-radius: 20px; padding: 1.5px; background: var(--aurora);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
}
.suggest__label { margin: 0; font-size: 12px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-3); }
.suggest__plan { margin: 4px 0 2px; font-size: 22px; font-weight: 800; }
.suggest--ultra .suggest__plan { color: var(--iris-light); }
.suggest__reason { margin: 0; color: var(--text-2); font-size: 15px; }

/* ---- Account ---- */
.account { display: flex; flex-direction: column; gap: 12px; }
.account__providers { display: flex; flex-direction: column; gap: 10px; }
.divider { display: flex; align-items: center; gap: 12px; color: var(--text-3); font-size: 13px; font-weight: 600; margin: 6px 0; }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.form { display: flex; flex-direction: column; gap: 10px; }
.form .btn { margin-top: 4px; }
.error { margin: 0; min-height: 0; color: var(--warning); font-size: 14px; font-weight: 600; }
.error:empty { display: none; }
.notice { margin: 14px 0 0; padding: 12px 14px; border-radius: 14px; background: rgba(255, 159, 10, 0.12); color: var(--warning); font-size: 14px; font-weight: 600; }
.box { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; color: var(--text-2); cursor: pointer; margin-top: 4px; }
.box input { position: absolute; opacity: 0; pointer-events: none; }
.box__mark {
  flex: none; width: 22px; height: 22px; border-radius: 7px; box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.25);
  display: grid; place-items: center; transition: background 0.2s, box-shadow 0.2s;
}
.box input:checked + .box__mark { background: var(--mint); box-shadow: none; }
.box input:checked + .box__mark::after { content: ""; width: 10px; height: 5px; border: solid var(--on-mint); border-width: 0 0 2.4px 2.4px; transform: rotate(-45deg) translate(1px, -1px); }
.box input:focus-visible + .box__mark { outline: 2px solid var(--mint); outline-offset: 2px; }

/* ---- Plans ---- */
.plans { display: flex; flex-direction: column; gap: 12px; }
.period { display: grid; grid-template-columns: 1fr 1fr; padding: 3px; border-radius: 14px; background: var(--glass); }
.period__option {
  height: 40px; border: 0; border-radius: 11px; background: transparent; cursor: pointer;
  font-size: 15px; font-weight: 700; color: var(--text-2); display: flex; align-items: center; justify-content: center; gap: 8px;
}
.period__option.is-on { background: rgba(255, 255, 255, 0.14); color: #fff; }
.period__save { font-size: 11px; font-weight: 800; padding: 3px 7px; border-radius: 7px; background: rgba(167, 139, 250, 0.18); color: var(--iris-light); text-transform: uppercase; letter-spacing: 0.04em; }
.plan-list { display: flex; flex-direction: column; gap: 10px; }
.plan {
  position: relative; display: flex; flex-direction: column; gap: 6px; width: 100%; padding: 14px 16px; border-radius: 20px; border: 0;
  background: var(--tile); box-shadow: inset 0 0 0 1.5px var(--line); text-align: left; cursor: pointer;
  transition: box-shadow 0.2s, transform 0.15s var(--ease), background 0.2s;
}
.plan:active { transform: scale(0.985); }
.plan.is-on { box-shadow: inset 0 0 0 1.5px var(--mint); }
.plan--ultra { background: #141217; }
.plan--ultra.is-on { box-shadow: 0 8px 30px rgba(167, 139, 250, 0.18); }
.plan--ultra.is-on::before {
  content: ""; position: absolute; inset: 0; border-radius: 20px; padding: 1.5px; background: var(--aurora); pointer-events: none;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
}
.plan__head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.plan__name { font-size: 18px; font-weight: 800; display: flex; align-items: center; gap: 8px; }
.plan--ultra .plan__name { color: var(--iris-light); }
.plan__badge { font-size: 10.5px; font-weight: 800; letter-spacing: 0.05em; text-transform: uppercase; padding: 3px 7px; border-radius: 7px; background: rgba(34, 211, 160, 0.16); color: var(--mint); }
.plan--ultra .plan__badge { background: rgba(167, 139, 250, 0.16); color: var(--iris-light); }
.plan__price { white-space: nowrap; }
.plan__price strong { font-size: 17px; font-weight: 800; font-variant-numeric: tabular-nums; }
.plan__price span { font-size: 13px; font-weight: 600; color: var(--text-2); }
.plan__permonth { font-size: 12.5px; color: var(--text-3); margin-top: -4px; text-align: right; }
.plan__lines { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 3px; font-size: 13.5px; color: var(--text-2); }
.plan__lines li { display: flex; gap: 8px; align-items: baseline; }
.plan__lines li::before { content: ""; flex: none; width: 5px; height: 5px; border-radius: 50%; background: var(--mint); transform: translateY(-2px); }
.plan--ultra .plan__lines li::before { background: var(--iris); }

/* ---- Download ---- */
/* The welcome after payment spans the window: the sky across the whole width,
   the content in a wider column, the three steps side by side on a computer. */
.page--download { position: relative; overflow: hidden; max-width: none; padding-left: 0; padding-right: 0; }
.page--download .page__content { position: relative; width: 100%; max-width: 1120px; margin: 0 auto; padding: 40px 22px 32px; }
.page--download .aurora { height: 75vh; }
@media (min-width: 900px) {
  .page--download .page__content { padding-top: 12vh; }
  .page--download .appicon { width: 96px; height: 96px; border-radius: 22px; }
  .page--download .title { font-size: clamp(44px, 5vw, 64px); letter-spacing: -0.03em; }
  .page--download .subtitle { font-size: 19px; }
  /* The heading on the left, the QR code (what a computer can do) on the right. */
  .page--download .page__content {
    display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 48px; align-items: start;
    grid-template-areas: "icon qr" "title qr" "subtitle qr" "notice notice" "steps steps" "fine fine";
  }
  .page--download .appicon { grid-area: icon; }
  .page--download .title { grid-area: title; }
  .page--download .subtitle { grid-area: subtitle; }
  .page--download .notice { grid-area: notice; }
  .page--download .steps { grid-area: steps; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 44px; }
  .page--download .steps li { padding: 22px 22px 22px 66px; min-height: 150px; }
  .page--download .steps li::before { left: 22px; top: 22px; }
  .page--download .steps strong { font-size: 17px; }
  .page--download .qr { grid-area: qr; align-self: end; flex-direction: column; text-align: center; gap: 12px; margin: 0; padding: 20px 22px 18px; width: 220px; }
  .page--download .qr img { width: 164px; height: 164px; border-radius: 12px; padding: 8px; }
  .page--download .qr p { font-size: 13.5px; }
  .page--download .fineprint { grid-area: fine; text-align: left; margin-top: 18px; }
  .start[data-step="download"] + .start-footer { max-width: 1120px; }
}
.appicon { width: 84px; height: 84px; border-radius: 19px; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5); margin-bottom: 20px; }
.is-ultra .title { background: var(--aurora); -webkit-background-clip: text; background-clip: text; color: transparent; }
.steps { list-style: none; counter-reset: step; padding: 0; margin: 28px 0 0; display: flex; flex-direction: column; gap: 14px; }
.steps li { counter-increment: step; position: relative; padding: 14px 16px 14px 56px; border-radius: 18px; background: var(--tile); display: flex; flex-direction: column; gap: 4px; }
.steps li::before {
  content: counter(step); position: absolute; left: 16px; top: 14px; width: 26px; height: 26px; border-radius: 50%;
  background: var(--mint); color: var(--on-mint); font-weight: 800; font-size: 14px; display: grid; place-items: center;
}
.steps strong { font-size: 16px; }
.steps span { color: var(--text-2); font-size: 14.5px; }
.store-badge { display: inline-block; margin-top: 8px; }
.store-badge img { display: block; height: 48px; width: auto; }
.qr { display: none; align-items: center; gap: 16px; margin-top: 18px; padding: 14px; border-radius: 18px; background: var(--tile); }
.qr img { width: 112px; height: 112px; border-radius: 10px; background: #fff; padding: 6px; }
.qr p { margin: 0; color: var(--text-2); font-size: 14.5px; font-weight: 600; }
@media (hover: hover) and (pointer: fine) and (min-width: 700px) { .qr { display: flex; } }
.spinner { width: 34px; height: 34px; border-radius: 50%; border: 3px solid rgba(255, 255, 255, 0.2); border-top-color: var(--mint); animation: spin 0.9s linear infinite; }

/* ---- Footer ---- */
.start-footer { width: 100%; max-width: 564px; margin: 0 auto; padding: 4px 22px max(16px, env(safe-area-inset-bottom)); }
.start-footer nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 16px; font-size: 12px; color: var(--text-3); }
.start-footer a, .start-footer .clir-consent-link { color: var(--text-3); text-decoration: none; font-size: 12px; }
.start-footer a:hover, .start-footer .clir-consent-link:hover { color: var(--text-2); }
.start[data-step="welcome"] ~ .start-footer, .start[data-step="building"] ~ .start-footer { display: none; }

/* Wider screens: the same column, with more air. */
@media (min-width: 700px) {
  .page { padding-top: 28px; }
  .title { font-size: 36px; }
  .page__content { flex: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

/* ---- Transcription and AI actions (js/start/features-demo.js; the app's designs of 2026-11-19) ---- */
.title__accent { color: var(--mint); }
.fdemo-page { display: flex; flex-direction: column; gap: 14px; margin-top: 6px; }
.fdemo { border-radius: 28px; background: linear-gradient(#1a1c1c, #121313); border: 1px solid rgba(255, 255, 255, 0.08); overflow: hidden; }
.fdemo__head { display: flex; align-items: center; gap: 10px; height: 58px; padding: 0 18px; border-bottom: 1px solid rgba(255, 255, 255, 0.07); }
.fdemo__dot { width: 9px; height: 9px; border-radius: 50%; background: #ff6b6b; flex: none; }
.fdemo__clock { color: #ff6b6b; font-weight: 700; font-variant-numeric: tabular-nums; flex: none; }
.fdemo__wave { display: flex; align-items: center; justify-content: space-between; gap: 2px; flex: 1; min-width: 0; overflow: hidden; height: 24px; }
.fdemo__bar { width: 3px; height: calc(22px * var(--h)); border-radius: 2px; background: rgba(255, 255, 255, 0.22); flex: none; }
.fdemo__bar.is-played { background: #ff6b6b; }
.fdemo__live { font-size: 12px; font-weight: 800; padding: 0 10px; height: 26px; line-height: 26px; border-radius: 13px; background: rgba(255, 255, 255, 0.1); flex: none; }
.fdemo-slot { min-height: 330px; }
.fdemo__body { min-height: 168px; padding: 18px 20px 6px; }
.fdemo__scene { margin: 0 0 14px; color: #8e8e93; font-size: 13px; font-weight: 600; }
.fdemo__lines { display: flex; flex-direction: column; gap: 20px; }
.fdemo__who { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.fdemo__speaker { font-size: 14px; font-weight: 700; transition: background 0.3s, color 0.3s, padding 0.3s; border-radius: 10px; }
.fdemo__speaker--0 { color: #5bb6f2; }
.fdemo__speaker--1 { color: #ffad5a; }
.fdemo__speaker.is-named { color: #04140e; padding: 1px 7px; }
.fdemo__speaker--0.is-named { background: #5bb6f2; }
.fdemo__speaker--1.is-named { background: #ffad5a; }
.fdemo__speaker.is-named::after { content: ' ✓'; }
.fdemo__badge { font-size: 11px; font-weight: 800; color: #e5e5ea; padding: 0 8px; height: 20px; line-height: 20px; border-radius: 10px; background: rgba(255, 255, 255, 0.1); }
.fdemo__text { position: relative; margin: 0; font-size: 18px; font-weight: 500; line-height: 1.35; }
.fdemo__text mark { background: rgba(34, 211, 160, 0.28); color: inherit; border-radius: 4px; padding: 0 2px; }
.fdemo__caret { color: var(--mint); animation: fdemo-blink 1s steps(1) infinite; }
@keyframes fdemo-blink { 50% { opacity: 0; } }
.fdemo__bubble { position: absolute; right: 0; top: -40px; display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 14px 0 5px; border-radius: 17px; background: var(--mint); color: #04140e; font-weight: 800; font-size: 15px; box-shadow: 0 0 18px rgba(34, 211, 160, 0.4); }
.fdemo__play { width: 24px; height: 24px; border-radius: 50%; background: #fff; position: relative; }
.fdemo__play::after { content: ''; position: absolute; left: 9px; top: 7px; border-left: 8px solid #000; border-top: 5px solid transparent; border-bottom: 5px solid transparent; }
.fdemo__chips { display: flex; flex-wrap: wrap; gap: 8px; padding: 10px 16px 16px; }
.fdemo__chip { font-size: 14px; font-weight: 600; color: var(--text-2); padding: 0 14px; height: 34px; line-height: 34px; border-radius: 17px; background: rgba(255, 255, 255, 0.06); transition: background 0.3s, color 0.3s; }
.fdemo__chip.is-on { color: var(--mint); background: rgba(34, 211, 160, 0.12); }
.fdemo-info { display: flex; align-items: center; gap: 12px; margin: 0; padding: 14px 16px; border-radius: 18px; background: rgba(255, 255, 255, 0.05); color: var(--text-2); font-size: 14.5px; }
.fdemo-info__icon { width: 22px; height: 22px; color: var(--mint); flex: none; }
.fdemo-ai { display: flex; flex-direction: column; gap: 14px; }
.fdemo__actions { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin: 0 -16px; padding: 0 16px; }
.fdemo__actions::-webkit-scrollbar { display: none; }
.fdemo__action { flex: none; font: inherit; font-size: 15px; font-weight: 700; color: #fff; height: 40px; padding: 0 16px; border: 0; border-radius: 20px; background: rgba(255, 255, 255, 0.08); cursor: pointer; }
.fdemo__action span { color: var(--mint); }
.fdemo__action.is-on { background: var(--mint); color: #04140e; }
.fdemo__action.is-on span { color: #04140e; }
.fdemo--ai { padding: 20px; }
.fdemo__result-head { display: flex; align-items: center; gap: 8px; }
.fdemo__spark { color: var(--mint); }
.fdemo__result-title { font-size: 18px; font-weight: 700; white-space: nowrap; }
/* The title keeps one line, so the card never jumps. */
.fdemo__result-head { min-width: 0; }
.fdemo__result-title { overflow: hidden; text-overflow: ellipsis; }
.fdemo__recording { margin: 3px 0 0; color: #8e8e93; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fdemo__meta { margin-left: auto; color: #8e8e93; font-size: 13px; white-space: nowrap; }
.fdemo__result { min-height: 248px; margin: 12px 0 14px; display: flex; flex-direction: column; gap: 10px; font-size: 15.5px; }
.fdemo__result p { margin: 0; }
.fdemo__result .fdemo__meta { margin-left: 0; }
.fdemo__label { font-size: 11.5px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; color: #8e8e93; }
.fdemo__time { color: var(--mint); font-variant-numeric: tabular-nums; }
.fdemo__todo { display: flex; align-items: center; gap: 12px; font-size: 16px; }
.fdemo__box { width: 24px; height: 24px; border-radius: 7px; border: 1.5px solid rgba(255, 255, 255, 0.35); flex: none; position: relative; transition: background 0.3s; }
.fdemo__todo.is-done .fdemo__box { background: var(--mint); border-color: var(--mint); }
.fdemo__todo.is-done .fdemo__box::after { content: '✓'; position: absolute; inset: 0; text-align: center; line-height: 21px; color: #04140e; font-weight: 900; font-size: 13px; }
.fdemo__task { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fdemo__todo.is-done .fdemo__task { text-decoration: line-through; color: #8e8e93; }
.fdemo__who-at { color: #8e8e93; font-size: 14px; white-space: nowrap; }
.fdemo__quote { margin: 0; padding-left: 12px; border-left: 3px solid var(--mint); }
.fdemo__quote p:first-child { font-weight: 600; font-size: 16px; }
.fdemo__chapter { display: grid; grid-template-columns: 44px 1fr; }
.fdemo__points { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 6px; }
.fdemo__points li { position: relative; padding-left: 16px; }
.fdemo__points li::before { content: '•'; position: absolute; left: 0; color: var(--mint); }
.fdemo__answer { font-size: 16px; line-height: 1.45; }
.fdemo__buttons { display: flex; gap: 8px; }
.fdemo__buttons span { font-size: 14px; font-weight: 700; padding: 0 14px; height: 34px; line-height: 34px; border-radius: 17px; background: rgba(255, 255, 255, 0.08); }
.fdemo__ask { display: flex; align-items: center; gap: 12px; height: 56px; padding: 0 7px 0 20px; border-radius: 28px; background: linear-gradient(90deg, rgba(34, 211, 160, 0.22), rgba(255, 255, 255, 0.05)); border: 1px solid rgba(255, 255, 255, 0.08); font-size: 17px; }
.fdemo__ask-text { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; }
.fdemo__placeholder { color: #8e8e93; }
.fdemo__send { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, 0.1); color: #8e8e93; font-weight: 800; transition: background 0.3s; }
.fdemo__send.is-ready { background: var(--mint); color: #04140e; }
@media (prefers-reduced-motion: reduce) {
  .fdemo__caret { animation: none; }
}

/* ---- What others say (reviews) ---- */
.reviews { display: flex; flex-direction: column; gap: 14px; margin-top: 6px; }
.reviews__score { display: flex; align-items: center; gap: 16px; padding: 18px 20px; border-radius: 24px; background: rgba(255, 255, 255, 0.05); }
.reviews__average { margin: 0; font-size: 56px; font-weight: 800; line-height: 1; letter-spacing: -0.02em; }
.reviews__big-stars { margin: 0; color: #ffcc4d; font-size: 22px; letter-spacing: 2px; }
.reviews__count { margin: 4px 0 0; color: var(--text-2); font-size: 14.5px; }
.reviews__list { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 12px; }
.review { padding: 18px 20px; border-radius: 22px; background: linear-gradient(#1a1c1c, #121313); border: 1px solid rgba(255, 255, 255, 0.08); }
.review__head { display: flex; align-items: center; gap: 10px; }
.reviews__stars { color: #ffcc4d; font-size: 15px; letter-spacing: 1px; flex: none; }
.review__title { font-weight: 700; font-size: 16px; }
.review__text { margin: 8px 0 0; font-size: 16px; line-height: 1.45; }
.review__by { margin: 8px 0 0; color: #8e8e93; font-size: 13.5px; }

/* ---- The plans page's second half (owner, 2026-11-20): "What clir does for you"
   and one card with tabs, Ratings & Reviews first. ---- */
.proof { display: flex; flex-direction: column; gap: 16px; margin-top: 52px; }
.proof__title { margin: 0; font-size: 30px; font-weight: 800; letter-spacing: -0.025em; line-height: 1.12; color: var(--text); }
.proof-card { border-radius: 28px; background: #0f1111; border: 1px solid rgba(255, 255, 255, 0.1); padding: 14px 14px 18px; }
.proof-card__tabs { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; margin: 0 -14px 16px; padding: 0 14px; }
.proof-card__tabs::-webkit-scrollbar { display: none; }
.proof-tab { flex: none; font: inherit; font-size: 14.5px; font-weight: 700; color: var(--text-2); height: 38px; padding: 0 16px; border: 0; border-radius: 19px; background: rgba(255, 255, 255, 0.07); cursor: pointer; transition: background 0.2s, color 0.2s; }
.proof-tab:hover { color: var(--text); }
.proof-tab.is-on { background: var(--mint); color: var(--on-mint); }
/* The four panels side by side: swipe or scroll sideways, they snap; the card
   keeps its tallest panel's height (min-height set by app.js). */
.proof-track {
  display: flex; align-items: flex-start; gap: 28px;
  overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; overscroll-behavior-x: contain;
  scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
.proof-track::-webkit-scrollbar { display: none; }
.proof-slide { flex: 0 0 100%; min-width: 0; display: flex; flex-direction: column; scroll-snap-align: start; scroll-snap-stop: always; }
.proof__text { margin: 0 2px 14px; color: var(--text-2); font-size: 15.5px; line-height: 1.4; }
/* The player again, every mode open: no circles or locks. */
.demo--replay .ring, .demo--replay .mode__lock { display: none; }
