/* Avanti public site. One stylesheet for every page.
   Colours and type come from the phone app (app/src/theme/tokens.ts). */

:root {
  --ink: #12143A;
  --ink-soft: #4A4C6E;
  --ink-mute: #8587A0;
  --page: #F5F4F8;
  --card: #FFFFFF;
  --line: #E2E0EC;
  --track: #DDDBE7;
  --tab: #ECEBF2;
  --accent: #FFD400;
  --accent-deep: #DDB600;
  --accent-tint: #FFF7CC;
  --accent-wash: #FFFBEA;
  --on-ink: #FFF6E3;
  --good: #1F7A55;
  --danger: #B3261E;
  --focus: #3A3FA8;
  --font: "Lexend", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --gutter: 16px;
  --col: 430px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font: 400 16px/1.5 var(--font);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
h1, h2, h3, h4, p, ul, ol, figure, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.on-ink :focus-visible, .on-ink:focus-visible { outline-color: var(--accent); }

.sr-only {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* A highlighted run of words: a sunflower marker stroke on light pages, sunflower type on ink. */
.mark {
  background: linear-gradient(transparent 56%, var(--accent) 56%, var(--accent) 94%, transparent 94%);
  padding: 0 .06em;
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
}
.on-ink .mark { background: none; padding: 0; color: var(--accent); }

.brand {
  display: inline-flex; align-items: center; gap: 9px;
  font-weight: 800; font-size: 20px; line-height: 1; letter-spacing: -.01em;
  color: var(--ink); text-decoration: none;
}
.brand img { width: 32px; height: 32px; border-radius: 9px; }
.on-ink .brand { color: var(--on-ink); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 56px; padding: 0 28px;
  border: 0; border-radius: 28px;
  font: 700 17px/22px var(--font); letter-spacing: 0;
  text-decoration: none; text-align: center;
  background: var(--ink); color: var(--on-ink);
  box-shadow: 0 4px 0 #05061F;
  transition: transform .12s ease, box-shadow .12s ease, background-color .15s ease;
  -webkit-tap-highlight-color: transparent;
}
.btn:hover { background: #1C1F52; }
.btn:active { transform: translateY(3px); box-shadow: 0 1px 0 #05061F; }
.btn-accent { background: var(--accent); color: var(--ink); box-shadow: 0 4px 0 var(--accent-deep); }
.btn-accent:hover { background: #FFDC2E; }
.btn-accent:active { box-shadow: 0 1px 0 var(--accent-deep); }
.btn-quiet {
  background: var(--card); color: var(--ink);
  box-shadow: inset 0 0 0 1.5px var(--line);
}
.btn-quiet:hover { background: var(--tab); }
.btn-quiet:active { box-shadow: inset 0 0 0 1.5px var(--line); transform: translateY(1px); }
.btn-block { display: flex; width: 100%; }
.btn-small { min-height: 40px; padding: 0 18px; border-radius: 20px; font-size: 14px; line-height: 18px; box-shadow: 0 3px 0 #05061F; }
.btn-small.btn-accent { box-shadow: 0 3px 0 var(--accent-deep); }
.btn[disabled], .btn[aria-disabled="true"] {
  background: var(--track); color: var(--ink-mute); box-shadow: none; cursor: not-allowed; transform: none;
}
.btn .spinner { width: 18px; height: 18px; }

.spinner {
  display: inline-block; width: 28px; height: 28px; border-radius: 50%;
  border: 3px solid var(--track); border-top-color: var(--ink);
  animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.link { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1.5px; }
.link:hover { text-decoration-color: var(--accent-deep); }

.notice {
  border-radius: 14px; padding: 12px 14px; font-size: 14px; line-height: 1.45;
  background: #FDECEA; color: #7A1712; border: 1px solid #F3C4BF;
}
.notice-plain { background: var(--tab); color: var(--ink); border-color: var(--line); }
.owner-slot {
  border: 2px dashed var(--ink-mute); border-radius: 16px; padding: 18px 16px;
  background: repeating-linear-gradient(135deg, #fff, #fff 10px, #FAF9FD 10px, #FAF9FD 20px);
  color: var(--ink-soft); font-size: 15px;
}
.owner-slot b { display: block; font: 700 13px/1.3 ui-monospace, "SF Mono", Menlo, monospace; color: var(--ink); margin-bottom: 6px; }
.standin-note { margin: 16px auto 0; max-width: 60ch; padding: 0 16px; text-align: center; font-size: 12px; color: var(--ink-mute); }

/* =====================================================================
   HOME
   ===================================================================== */
.home-header {
  position: fixed; z-index: 30; top: 12px; left: 50%; transform: translateX(-50%);
  width: min(100% - 32px, 760px);
  display: flex; align-items: center; justify-content: space-between;
  padding: 7px 8px 7px 18px;
  background: rgba(255, 255, 255, .92);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border: 1px solid var(--line); border-radius: 999px;
  box-shadow: 0 8px 28px rgba(18, 20, 58, .09);
}
.wrap { width: min(100% - 32px, 1120px); margin-inline: auto; }

.hero {
  position: relative; text-align: center;
  padding: 148px 0 76px;
  background:
    radial-gradient(70% 46% at 50% 0%, rgba(255, 212, 0, .22), rgba(255, 212, 0, 0) 70%),
    linear-gradient(var(--line) 1px, transparent 1px) 0 0 / 100% 44px,
    linear-gradient(90deg, var(--line) 1px, transparent 1px) 0 0 / 44px 100%,
    var(--page);
}
.hero::after { /* fades the grid out toward the foot of the hero */
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(rgba(245, 244, 248, .55), var(--page) 82%);
  pointer-events: none;
}
.hero > * { position: relative; z-index: 1; }
.hero-title { font-weight: 800; letter-spacing: -.02em; line-height: 1.1; }
.hero-small { display: block; font-size: clamp(28px, 7.6vw, 44px); }
.hero-big { display: block; margin: 10px 0 12px; font-weight: 900; font-size: clamp(46px, 13vw, 96px); line-height: 1.02; letter-spacing: -.03em; }
.hero-big span {
  display: inline-block; padding: .04em .22em .06em; margin: .05em 0;
  background: var(--accent); border-radius: .2em;
  box-shadow: 0 .07em 0 var(--accent-deep);
  transform: rotate(-1.6deg);
}
.hero-big span + span { transform: rotate(1.2deg); }
.hero-big br { display: block; }
.hero-text { margin: 22px auto 0; max-width: 34ch; font-size: clamp(17px, 2.2vw, 20px); line-height: 1.55; color: var(--ink-soft); }
.hero .btn { margin-top: 30px; min-height: 60px; border-radius: 30px; }
.hero-cta { width: min(100%, 420px); margin-inline: auto; }

.section { padding: 76px 0; }
.section-head { text-align: center; margin-bottom: 36px; }
.section-title { font-size: clamp(32px, 5vw, 48px); font-weight: 800; line-height: 1.12; letter-spacing: -.025em; text-wrap: balance; }
.section-sub { margin-top: 14px; font-size: 18px; color: var(--ink-soft); text-wrap: balance; }

.features { display: grid; gap: 16px; }
.feature {
  display: flex; flex-direction: column;
  background: var(--card); border: 1px solid var(--line); border-radius: 24px;
  padding: 28px 24px 0; overflow: hidden;
}
.feature-label { display: flex; align-items: center; gap: 10px; font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-mute); }
.feature-num { display: inline-grid; place-items: center; min-width: 30px; height: 24px; padding: 0 6px; border-radius: 8px; background: var(--accent-tint); color: var(--ink); letter-spacing: .04em; }
.feature h3 { margin-top: 22px; font-size: 22px; font-weight: 700; letter-spacing: -.01em; }
.feature p { margin-top: 12px; font-size: 15px; line-height: 1.6; color: var(--ink-soft); max-width: 34ch; }
.feature img { height: 176px; width: auto; margin: 22px auto 0; }

.proof { padding-top: 40px; }
.marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.marquee-track { display: flex; gap: 16px; width: max-content; padding: 4px 8px; animation: marquee 36s linear infinite; }
.marquee:hover .marquee-track, .marquee:focus-within .marquee-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(calc(-50% - 8px)); } }
.how-card {
  width: 288px; flex: none;
  background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 18px;
}
.how-card-top { display: flex; align-items: center; gap: 12px; }
.how-num { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--ink); color: var(--on-ink); font-weight: 700; flex: none; }
.how-name { font-weight: 700; font-size: 17px; }
.how-kicker { display: block; font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-mute); }
.how-card p { margin-top: 12px; font-size: 15px; line-height: 1.55; color: var(--ink-soft); }

.stats { display: grid; gap: 44px; text-align: center; padding: 28px 0 84px; }
.stat-num { font-size: 68px; font-weight: 900; line-height: 1; letter-spacing: -.03em; }
.stat-num span { display: inline-block; min-width: 1.4em; padding: 0 .14em; background: var(--accent); border-radius: .16em; box-shadow: 0 .06em 0 var(--accent-deep); }
.stat-label { margin-top: 16px; font-size: 12px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-soft); }

.closing { background: var(--ink); color: var(--on-ink); text-align: center; padding: 84px 0 0; }
.closing-title { font-size: clamp(34px, 5.4vw, 56px); font-weight: 800; line-height: 1.12; letter-spacing: -.025em; }
.closing-title s { text-decoration-thickness: .09em; color: rgba(255, 246, 227, .78); }
.closing-text { margin: 20px auto 0; max-width: 32ch; font-size: 18px; line-height: 1.55; color: rgba(255, 246, 227, .86); }
.closing .btn { margin-top: 30px; min-width: 220px; }

.site-foot { margin-top: 76px; padding: 28px 0 36px; border-top: 1px solid rgba(255, 246, 227, .14); text-align: center; }
.site-foot .brand { font-size: 18px; }
.site-foot .brand img { width: 28px; height: 28px; border-radius: 8px; }
.foot-legal { margin-top: 12px; font-size: 12px; letter-spacing: .04em; color: rgba(255, 246, 227, .7); }
.foot-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 6px; margin-top: 18px; }
.foot-links a {
  display: inline-flex; align-items: center; min-height: 40px; padding: 0 10px;
  font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  color: rgba(255, 246, 227, .86); text-decoration: none; border-radius: 8px;
}
.foot-links a:hover { color: var(--accent); }
.site-foot.is-light { margin-top: 0; border-top: 1px solid var(--line); }
.site-foot.is-light .foot-legal { color: var(--ink-soft); }
.site-foot.is-light .foot-links a { color: var(--ink-soft); }
.site-foot.is-light .foot-links a:hover { color: var(--ink); text-decoration: underline; }

@media (min-width: 860px) {
  .home-header { top: 18px; padding: 9px 10px 9px 22px; }
  .hero { padding: 196px 0 104px; }
  .hero-text { max-width: 46ch; }
  .section { padding: 104px 0; }
  .features { grid-template-columns: repeat(3, 1fr); gap: 20px; }
  .feature { padding: 32px 28px 0; }
  .feature img { height: 208px; margin-top: auto; padding-top: 24px; }
  .how-card { width: 340px; }
  .stats { grid-template-columns: repeat(3, 1fr); gap: 24px; padding: 40px 0 120px; }
  .closing { padding-top: 120px; }
  .site-foot { margin-top: 110px; }
}

/* =====================================================================
   QUIZ (/start/)
   ===================================================================== */
.quiz { background: var(--page); }
.q-app { position: relative; width: min(100%, var(--col)); min-height: 100vh; min-height: 100dvh; margin-inline: auto; display: flex; flex-direction: column; }
.q-top { position: relative; height: 64px; flex: none; display: flex; align-items: center; justify-content: center; padding: 8px var(--gutter) 0; }
.q-back {
  position: absolute; left: var(--gutter); top: 18px;
  display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 12px 0 9px;
  background: var(--tab); border: 0; border-radius: 10px;
  font-weight: 600; font-size: 14px; color: var(--ink);
}
.q-back:hover { background: var(--track); }
.q-back svg { width: 16px; height: 16px; }
.q-top .brand { font-size: 18px; }
.q-top .brand img { width: 28px; height: 28px; border-radius: 8px; }

.q-progress { flex: none; padding: 0 var(--gutter); }
.q-bar { display: flex; align-items: center; gap: 5px; height: 14px; }
.q-seg { flex: 1; height: 3px; border-radius: 2px; background: var(--track); overflow: hidden; }
.q-seg i { display: block; height: 100%; width: 0; background: var(--ink); border-radius: 2px; transition: width .45s cubic-bezier(.2, .7, .2, 1); }
.q-dot { flex: none; width: 10px; height: 10px; border-radius: 50%; border: 2px solid var(--track); background: var(--page); display: grid; place-items: center; transition: border-color .3s, background-color .3s; }
.q-dot.is-start { width: 8px; height: 8px; border: 0; background: var(--ink); }
.q-dot.is-now { border-color: var(--ink); background: var(--accent); }
.q-dot.is-done { width: 14px; height: 14px; border: 0; background: var(--accent); }
.q-dot svg { width: 9px; height: 9px; display: none; }
.q-dot.is-done svg { display: block; }
.q-phase { margin-top: 8px; text-align: center; font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-soft); }

.q-main { flex: 1; display: flex; flex-direction: column; padding: 22px var(--gutter) 28px; outline: 0; }
.q-app.has-foot .q-main { padding-bottom: 124px; }
.q-step { flex: 1; display: flex; flex-direction: column; animation: step-in .32s cubic-bezier(.2, .7, .2, 1) both; }
@keyframes step-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

.q-head { text-align: center; }
.q-title { font-size: 23px; font-weight: 700; line-height: 1.28; letter-spacing: -.012em; text-wrap: balance; }
.q-sub { margin-top: 8px; font-size: 16px; line-height: 1.5; color: var(--ink-soft); text-wrap: pretty; }
.q-body { flex: 1; display: flex; flex-direction: column; justify-content: center; padding-top: 16px; }
.q-body.is-bottom { justify-content: flex-end; }
.q-body.is-top { justify-content: flex-start; }
.q-prompt { margin-bottom: 12px; text-align: center; font-size: 13px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-mute); }

.q-foot {
  position: fixed; z-index: 20; left: 50%; bottom: 0; transform: translateX(-50%);
  width: min(100%, var(--col)); padding: 36px var(--gutter) calc(22px + env(safe-area-inset-bottom));
  background: linear-gradient(rgba(245, 244, 248, 0), var(--page) 34%);
  pointer-events: none;
}
.q-foot > * { pointer-events: auto; }

/* Answer rows */
.opts { display: grid; gap: 8px; }
.opt {
  display: flex; align-items: center; gap: 12px; width: 100%; min-height: 54px;
  padding: 11px 16px; text-align: left;
  background: var(--card); border: 1.5px solid var(--line); border-radius: 16px;
  font-weight: 500; font-size: 16px; line-height: 1.35; color: var(--ink);
  transition: border-color .15s, background-color .15s, transform .1s;
  -webkit-tap-highlight-color: transparent;
}
.opt:hover { border-color: var(--ink-mute); }
.opt:active { transform: scale(.985); }
.opt-emoji { flex: none; width: 26px; font-size: 21px; line-height: 1; text-align: center; }
.opt-label { flex: 1; text-wrap: pretty; }
.opt-detail { flex: none; font-weight: 400; color: var(--ink-mute); white-space: nowrap; }
.opt.is-on { border-color: var(--accent-deep); background: var(--accent-tint); box-shadow: inset 0 0 0 1px var(--accent-deep); }
.opt-box { flex: none; width: 26px; height: 26px; border-radius: 7px; border: 1.5px solid var(--track); background: #fff; display: grid; place-items: center; }
.opt-box svg { width: 15px; height: 15px; opacity: 0; }
.opt.is-on .opt-box { background: var(--accent); border-color: var(--accent-deep); }
.opt.is-on .opt-box svg { opacity: 1; }

/* 2 x 2 picture tiles */
.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.tile { display: block; padding: 8px 8px 0; background: var(--card); border: 1.5px solid var(--line); border-radius: 18px; text-align: left; transition: border-color .15s, transform .1s; }
.tile:hover { border-color: var(--ink-mute); }
.tile:active { transform: scale(.98); }
.tile.is-on { border-color: var(--accent-deep); box-shadow: inset 0 0 0 1px var(--accent-deep); }
.tile-pic { display: grid; place-items: center; aspect-ratio: 1 / 1; border-radius: 12px; }
.tile-pic img { width: 62%; filter: drop-shadow(0 10px 14px rgba(18, 20, 58, .22)); }
.tile-row { display: flex; align-items: center; justify-content: space-between; min-height: 46px; padding: 0 4px; font-weight: 600; font-size: 16px; }
.tile-go { width: 20px; height: 20px; border-radius: 50%; background: var(--accent-tint); display: grid; place-items: center; }
.tile-go svg { width: 10px; height: 10px; }

/* Guide interlude */
.inter { flex: 1; display: flex; flex-direction: column; align-items: center; text-align: center; }
.inter img { height: 282px; width: auto; margin-top: 2px; filter: drop-shadow(0 14px 18px rgba(18, 20, 58, .12)); }
.inter .q-title { margin-top: 30px; }
.inter .q-sub { max-width: 34ch; }

/* Response card (slides in above the answers) */
.resp {
  margin-bottom: 20px; padding: 20px 18px;
  background: var(--accent-wash); border: 1.5px solid var(--accent-deep); border-radius: 16px;
  animation: resp-in .34s cubic-bezier(.2, .7, .2, 1) both;
}
@keyframes resp-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.resp-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.resp-title { font-size: 16px; font-weight: 700; line-height: 1.3; }
.resp-emoji { font-size: 28px; line-height: 1; }
.resp p { margin-top: 12px; font-size: 14.5px; line-height: 1.5; color: var(--ink); }

/* Five face tiles */
.faces { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.face { display: block; padding: 0; background: none; border: 0; text-align: center; }
.face-tile { display: grid; place-items: center; aspect-ratio: 1 / 1; background: var(--card); border: 1.5px solid var(--line); border-radius: 12px; font-size: 30px; transition: border-color .15s, background-color .15s, transform .1s; }
.face:hover .face-tile { border-color: var(--ink-mute); }
.face:active .face-tile { transform: scale(.96); }
.face-name { display: block; margin-top: 8px; font-size: 13px; color: var(--ink-soft); }
.face.is-on .face-tile { background: var(--accent-tint); border-color: var(--accent-deep); box-shadow: inset 0 0 0 1px var(--accent-deep); }
.face.is-on .face-name { color: var(--ink); font-weight: 600; }

/* 3 x 3 circles (several can be picked) */
.circles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px 6px; }
.circle { position: relative; display: block; padding: 0; background: none; border: 0; text-align: center; }
.circle-pic { display: grid; place-items: center; width: min(100%, 100px); aspect-ratio: 1 / 1; margin-inline: auto; border-radius: 50%; background: var(--card); border: 2px solid var(--line); font-size: 40px; transition: border-color .15s, background-color .15s, transform .1s; }
.circle:active .circle-pic { transform: scale(.96); }
.circle-name { display: block; margin-top: 7px; font-size: 13px; font-weight: 500; }
.circle.is-on .circle-pic { background: var(--accent-tint); border-color: var(--accent-deep); box-shadow: 0 0 0 1px var(--accent-deep); }
.circle.is-on .circle-name { font-weight: 700; }
.circle-tick { position: absolute; top: 0; right: calc(50% - 50px); width: 24px; height: 24px; border-radius: 50%; background: var(--ink); display: none; place-items: center; }
.circle-tick svg { width: 12px; height: 12px; }
.circle.is-on .circle-tick { display: grid; }

/* Case brief */
.case-head { display: flex; align-items: center; gap: 12px; text-align: left; }
.case-icon { flex: none; width: 50px; height: 50px; border-radius: 50%; background: var(--accent); display: grid; place-items: center; }
.case-icon svg { width: 26px; height: 26px; }
.case-kicker { display: block; font-size: 16px; font-weight: 500; line-height: 1.3; color: var(--ink-mute); }
.case-lead { display: block; margin-top: 2px; font-size: 22px; font-weight: 700; line-height: 1.3; }
.case-name { display: block; font-size: 22px; font-weight: 700; line-height: 1.4; }
.case-fig { margin: 18px auto 0; }
.case-fig img { height: 250px; width: auto; filter: drop-shadow(0 14px 18px rgba(18, 20, 58, .12)); }
.case-fig.is-photo img { height: auto; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 18px; filter: none; }
.case-card { margin-top: 22px; padding: 16px; background: var(--card); border: 1.5px solid var(--line); border-radius: 20px; text-align: center; }
.case-pill { padding: 9px 14px; border-radius: 999px; background: var(--accent); font-weight: 700; font-size: 16px; }
.case-card p { margin-top: 14px; font-size: 16px; line-height: 1.5; }
.case-quote { margin-top: 18px; padding: 16px 12px; border: 1.5px dashed var(--accent-deep); border-radius: 12px; background: var(--accent-wash); }
.case-quote small { display: block; font-size: 15px; }
.case-quote b { display: block; margin-top: 4px; font-size: 18px; line-height: 1.4; }
.q-head.is-left { text-align: left; }
.q-head.is-left .q-title { text-align: left; }

/* Case outcome: a sheet of paper under a paperclip */
.paper { position: relative; margin-top: 6px; }
.paper::before { content: ""; position: absolute; inset: -6px 10px auto 4px; height: 60px; background: var(--card); border: 1.5px solid var(--line); border-radius: 18px 18px 0 0; transform: rotate(-1.1deg); }
.paper-sheet { position: relative; padding: 46px 14px 16px; background: var(--card); border: 1.5px solid var(--line); border-radius: 18px; }
.paper-clip { position: absolute; top: -14px; left: 12px; width: 26px; height: 56px; transform: rotate(-24deg); }
.paper-kicker { text-align: center; font-size: 14px; font-weight: 600; color: var(--ink-mute); }
.paper-title { margin-top: 6px; text-align: center; font-size: 22px; font-weight: 700; line-height: 1.3; text-wrap: balance; }
.paper-box { margin-top: 22px; padding: 18px 16px; border: 1.5px dashed var(--accent-deep); border-radius: 14px; }
.paper-box h3 { font-size: 18px; font-weight: 700; color: var(--ink-mute); }
.paper-box h3 + ul, .paper-box h3 + p { margin-top: 12px; }
.paper-box li { display: flex; gap: 10px; font-size: 16px; line-height: 1.5; }
.paper-box li + li { margin-top: 10px; }
.paper-box li > span:first-child { flex: none; width: 22px; text-align: center; }
.paper-box ul + h3 { margin-top: 22px; }
.paper-note { position: relative; margin-top: 16px; padding: 22px 16px 20px; border: 1.5px solid var(--line); border-radius: 14px; text-align: center; }
.paper-note h3 { font-size: 18px; font-weight: 700; }
.paper-note p { margin-top: 10px; font-size: 16px; line-height: 1.55; }
.paper-note.is-you { background: var(--accent-wash); border-color: var(--accent-deep); }
.paper-badge { position: absolute; top: 14px; right: 14px; width: 30px; height: 30px; border-radius: 50%; background: var(--tab); display: grid; place-items: center; }
.paper-badge svg { width: 15px; height: 15px; }

/* Long cards (plan, reveal, pitch) */
.sheet-card { background: var(--card); border: 1.5px solid var(--line); border-radius: 22px; padding: 26px 16px 24px; }
.sheet-card .q-title { font-size: 23px; }
.rule { display: flex; align-items: center; gap: 10px; margin: 26px 0 22px; color: var(--track); }
.rule::before, .rule::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.rule svg { width: 14px; height: 14px; }
.sheet-h { text-align: center; font-size: 21px; font-weight: 700; letter-spacing: -.01em; }

.chart { margin-top: 20px; }
.chart svg { width: 100%; height: auto; }
.chart-note { margin-top: 6px; text-align: center; font-size: 13px; color: var(--ink-soft); }

.week { margin-top: 20px; }
.week-row { display: flex; align-items: center; gap: 8px; }
.week-n { flex: none; padding: 6px 13px; border: 1.5px solid var(--line); border-radius: 999px; font-size: 13px; font-weight: 700; color: var(--ink-soft); }
.week-dash { flex: 1; min-width: 12px; border-top: 1.5px dashed var(--track); }
.week-dot { flex: none; width: 10px; height: 10px; border-radius: 50%; }
.week-name { flex: none; padding: 7px 14px; border-radius: 999px; font-size: 13.5px; font-weight: 700; }
.week p { margin-top: 10px; font-size: 15.5px; line-height: 1.5; color: var(--ink-soft); }

.traits { width: 100%; border-collapse: collapse; margin-top: 14px; font-size: 14px; }
.traits th { padding: 6px 0; font-weight: 700; text-align: center; font-size: 14px; }
.traits th:first-child, .traits td:first-child { text-align: left; }
.traits td { padding: 7px 0; text-align: center; }
.traits td:first-child { font-weight: 500; white-space: nowrap; }
.traits td + td { width: 1%; padding-left: 5px; }
.traits td:first-child { font-size: 13.5px; }
.trait-gem { display: inline-block; width: 20px; height: 20px; margin-right: 5px; vertical-align: -5px; }
.pill { display: inline-block; min-width: 88px; padding: 5px 6px; white-space: nowrap; border-radius: 999px; background: var(--tab); color: var(--ink-soft); font-size: 12.5px; font-weight: 600; }
.pill.is-lean { background: var(--accent); color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--accent-deep); }
.sheet-small { margin-top: 12px; text-align: center; font-size: 12.5px; line-height: 1.5; color: var(--ink-mute); }
.sheet-big { text-align: center; font-size: 22px; font-weight: 700; line-height: 1.35; text-wrap: balance; }
.sheet-big em { font-style: normal; display: block; font-size: 30px; font-weight: 800; letter-spacing: -.02em; }

/* Loader */
.load-title { margin-top: 4px; text-align: center; font-size: 28px; font-weight: 700; line-height: 1.3; letter-spacing: -.015em; }
.load-list { margin-top: 30px; }
.load-row { padding: 12px 0; border-bottom: 1px solid var(--line); }
.load-line { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 17px; font-weight: 700; }
.load-pct { font-weight: 400; color: var(--ink-mute); font-variant-numeric: tabular-nums; }
.load-bar { margin-top: 8px; height: 6px; border-radius: 3px; background: var(--track); overflow: hidden; }
.load-bar i { display: block; width: 0; height: 100%; background: var(--accent-deep); border-radius: 3px; }
.load-tick { flex: none; width: 22px; height: 22px; border-radius: 50%; background: var(--accent); display: grid; place-items: center; }
.load-tick svg { width: 12px; height: 12px; }
.load-under { margin-top: auto; padding-top: 28px; }
.load-under h2 { text-align: center; font-size: 21px; font-weight: 700; }
.load-card { margin-top: 16px; min-height: 152px; padding: 18px; background: var(--card); border: 1.5px solid var(--line); border-radius: 16px; }
.load-card-top { display: flex; align-items: center; gap: 10px; font-weight: 700; }
.load-card-top span { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--accent); font-size: 14px; }
.load-card p { margin-top: 10px; font-size: 14.5px; line-height: 1.5; color: var(--ink-soft); }
.load-card.is-swap { animation: resp-in .4s ease both; }

.scrim { position: fixed; inset: 0; z-index: 40; background: rgba(10, 11, 34, .55); display: grid; place-items: center; padding: 20px; animation: fade-in .2s ease both; }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
.popup { width: min(100%, 360px); padding: 22px 12px 12px; background: var(--page); border-radius: 12px; text-align: center; }
.popup-lead { font-size: 16px; }
.popup-q { margin-top: 6px; font-size: 18px; font-weight: 700; line-height: 1.45; text-wrap: balance; }
.popup-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 18px; }
.popup-btns button { min-height: 54px; background: #fff; border: 1.5px solid var(--line); border-radius: 8px; font-size: 18px; font-weight: 500; }
.popup-btns button:hover { border-color: var(--accent-deep); background: var(--accent-wash); }

/* Email step */
.field {
  width: 100%; min-height: 54px; padding: 0 16px;
  background: #fff; border: 1.5px solid var(--track); border-radius: 16px;
  font-size: 17px; color: var(--ink);
}
.field::placeholder { color: var(--ink-mute); }
.field:focus { outline: 0; border-color: var(--accent-deep); box-shadow: 0 0 0 3px rgba(255, 212, 0, .45); }
.field[aria-invalid="true"] { border-color: var(--danger); }
.field-err { margin-top: 8px; font-size: 14px; color: var(--danger); }
.email-form { margin-top: 26px; }
.email-lock { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 18px; font-size: 14px; color: var(--ink-soft); }
.email-lock svg { width: 18px; height: 18px; flex: none; }
.email-go { margin-top: auto; padding-top: 24px; }
.email-legal { margin-top: 16px; text-align: center; font-size: 12.5px; line-height: 1.6; color: var(--ink-mute); }
.is-typing .q-sub, .is-typing .email-legal { display: none; }
.is-typing .email-go { margin-top: 0; padding-top: 20px; }

.sheet-scrim { align-items: end; padding: 0; }
.bsheet { width: min(100%, var(--col)); padding: 22px var(--gutter) calc(22px + env(safe-area-inset-bottom)); background: #fff; border-radius: 18px 18px 0 0; animation: sheet-up .28s cubic-bezier(.2, .7, .2, 1) both; }
@keyframes sheet-up { from { transform: translateY(40px); opacity: 0; } to { transform: none; opacity: 1; } }
.bsheet-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.bsheet h2 { font-size: 20px; font-weight: 700; line-height: 1.25; }
.bsheet-edit { flex: none; min-height: 36px; padding: 0 16px; background: var(--tab); border: 0; border-radius: 8px; font-weight: 700; font-size: 14px; }
.bsheet p { margin-top: 14px; font-size: 15px; line-height: 1.5; }
.bsheet .btn { margin-top: 20px; flex-direction: column; gap: 2px; padding: 10px 16px; min-height: 64px; border-radius: 18px; }
.bsheet .btn small { font-weight: 500; font-size: 14px; word-break: break-all; }

/* Step 28: told versus asked, and the one-row ticker */
.versus { display: grid; grid-template-columns: 1fr 1fr; margin: 22px -16px 0; overflow: hidden; }
.versus > div { position: relative; padding: 16px 8px 0; text-align: center; }
.versus-a { background: var(--tab); }
.versus-b { background: var(--accent); clip-path: polygon(14% 0, 100% 0, 100% 100%, 0 100%); margin-left: -14%; padding-left: 14% !important; }
.versus span { display: block; font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.versus-a span { color: var(--ink-mute); }
.versus img { height: 190px; width: auto; margin: 10px auto 0; }
.versus-a img { filter: grayscale(1) opacity(.7); }
.tick-h { margin-top: 22px; text-align: center; font-size: 16px; color: var(--ink-soft); }
.ticker { margin-top: 12px; height: 46px; overflow: hidden; border: 1.5px solid var(--line); border-radius: 12px; }
.ticker ul { animation: ticker 12.5s cubic-bezier(.7, 0, .3, 1) infinite; }
.ticker li { display: flex; align-items: center; justify-content: space-between; gap: 12px; height: 46px; padding: 0 14px; font-size: 15.5px; }
.ticker li b { font-weight: 700; }
@keyframes ticker {
  0%, 16% { transform: translateY(0); }
  20%, 36% { transform: translateY(-46px); }
  40%, 56% { transform: translateY(-92px); }
  60%, 76% { transform: translateY(-138px); }
  80%, 96% { transform: translateY(-184px); }
  100% { transform: translateY(-230px); }
}

/* Step 29: profile reveal */
.radar-card { margin-top: 20px; border: 1.5px solid var(--line); border-radius: 16px; overflow: hidden; }
.radar-card svg { width: 100%; height: auto; padding: 8px 0 0; }
.radar-keys { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; padding: 12px; border-top: 1.5px solid var(--line); }
.radar-key { padding: 8px 14px; border-radius: 999px; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.radar-key.is-mine { background: var(--accent); }
.radar-key.is-mid { border: 1.5px dashed var(--ink-mute); color: var(--ink-soft); }
.insight { position: relative; margin-top: 16px; padding: 24px 18px 22px; border: 1.5px solid var(--line); border-radius: 16px; text-align: center; }
.insight h3 { font-size: 20px; font-weight: 700; }
.insight p { margin-top: 12px; font-size: 16px; line-height: 1.55; color: var(--ink-soft); }
.gives { margin-top: 14px; display: grid; gap: 12px; }
.gives li { display: flex; align-items: center; gap: 14px; font-size: 16px; line-height: 1.4; }
.gives li span { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; border: 1.5px solid var(--line); font-size: 18px; }

/* Step 30: closing screen */
.fan { position: relative; height: 300px; margin: 6px -16px 0; overflow: hidden; }
.fan img { position: absolute; left: 50%; bottom: 26px; width: 150px; aspect-ratio: 344 / 482; object-fit: cover; border-radius: 14px; border: 3px solid #fff; box-shadow: 0 14px 30px rgba(18, 20, 58, .22); transform-origin: 50% 130%; }
.fan img:nth-child(1) { transform: translateX(-50%) rotate(-24deg); }
.fan img:nth-child(2) { transform: translateX(-50%) rotate(-12deg); }
.fan img:nth-child(3) { transform: translateX(-50%) rotate(12deg); }
.fan img:nth-child(4) { transform: translateX(-50%) rotate(24deg); }
.fan img:nth-child(5) { transform: translateX(-50%); z-index: 2; }
.chips { margin: 0 -16px; overflow: hidden; }
.chips-track { display: flex; gap: 10px; width: max-content; padding: 4px 0; animation: marquee 30s linear infinite; }
.chip { flex: none; display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; background: var(--card); border: 1.5px solid var(--line); border-radius: 999px; font-size: 15px; white-space: nowrap; }
.close-title { margin-top: 56px; text-align: center; font-size: 19px; font-weight: 700; line-height: 1.3; }
.close-title em { display: block; font-style: normal; font-size: 32px; font-weight: 800; letter-spacing: -.02em; line-height: 1.2; margin-bottom: 4px; }
.close-text { margin: 12px auto 0; max-width: 33ch; text-align: center; font-size: 16px; line-height: 1.55; color: var(--ink-soft); }

/* Landing screen (before step 0) */
.is-landing .q-top { height: 76px; }
.is-landing .q-top .brand { font-size: 24px; }
.is-landing .q-top .brand img { width: 36px; height: 36px; border-radius: 10px; }
.land { flex: 1; display: flex; flex-direction: column; margin: 0 calc(var(--gutter) * -1); }
.q-app.is-landing .q-main { padding-bottom: 0; }
.land-head { padding: 0 var(--gutter); text-align: center; }
.land-title { font-size: 27px; font-weight: 800; line-height: 1.22; letter-spacing: -.02em; text-wrap: balance; }
.land-sub { margin: 10px auto 0; max-width: 30ch; font-size: 16.5px; line-height: 1.5; }
.land-badges { display: flex; justify-content: center; gap: 10px; margin-top: 16px; }
.land-badge { display: flex; align-items: center; gap: 8px; padding: 8px 14px 8px 8px; background: var(--card); border: 1.5px solid var(--line); border-radius: 999px; font-size: 12.5px; font-weight: 700; line-height: 1.2; text-align: left; }
.land-badge img { width: 28px; height: 28px; }
.land-stage {
  flex: 1; position: relative; min-height: 400px; margin-top: 18px; padding-bottom: 124px; overflow: hidden;
  display: flex; align-items: flex-start; justify-content: center;
  background: linear-gradient(var(--page), #B9BAD9 9%, #3A3D7A 30%, var(--ink) 58%);
}
.land-stage::before { content: ""; position: absolute; left: calc(50% + 60px); top: 150px; width: 340px; height: 340px; transform: translate(-50%, -50%); background: radial-gradient(closest-side, rgba(255, 212, 0, .42), rgba(255, 212, 0, 0)); }
.land-stage img { position: relative; height: 320px; width: auto; margin-top: 26px; }
.is-landing .q-foot { background: linear-gradient(rgba(18, 20, 58, 0), var(--ink) 34%); }

@media (min-height: 900px) { .inter img { height: 300px; } }
@media (max-width: 359px) {
  .q-title { font-size: 21px; }
  .opt { font-size: 15px; padding: 10px 12px; }
  .faces { gap: 5px; }
  .face-name { font-size: 11.5px; }
  .week-name { font-size: 12.5px; padding: 7px 10px; }
}

/* =====================================================================
   PAYWALL (/plan/ and /o/<slug>)
   ===================================================================== */
.pay { background: var(--page); }
.pay-col { width: min(100% - 32px, 460px); margin-inline: auto; }
.pay-top { padding: 26px 0 14px; }
.pay-load { display: grid; place-items: center; gap: 14px; min-height: 60vh; text-align: center; color: var(--ink-soft); }

.ticket {
  position: relative; padding: 18px 20px 16px; border-radius: 16px;
  background: var(--accent); border: 2px solid var(--accent-deep);
  -webkit-mask: radial-gradient(circle 15px at 0 55%, transparent 97%, #000) 0 0 / 51% 100% no-repeat, radial-gradient(circle 15px at 100% 55%, transparent 97%, #000) 100% 0 / 51% 100% no-repeat;
  mask: radial-gradient(circle 15px at 0 55%, transparent 97%, #000) 0 0 / 51% 100% no-repeat, radial-gradient(circle 15px at 100% 55%, transparent 97%, #000) 100% 0 / 51% 100% no-repeat;
}
.ticket-top { display: flex; align-items: center; justify-content: center; gap: 14px; padding-bottom: 14px; }
.ticket-top svg { flex: none; width: 34px; height: 34px; }
.ticket-top p { font-size: 20px; font-weight: 800; line-height: 1.15; letter-spacing: -.01em; max-width: 11em; }
.ticket-cut { border-top: 2px dashed rgba(18, 20, 58, .35); margin: 0 4px; }
.ticket-bottom { display: flex; align-items: stretch; justify-content: center; gap: 12px; padding-top: 14px; }
.code-chip { display: flex; align-items: center; gap: 8px; min-width: 0; padding: 8px 16px 8px 10px; border-radius: 12px; background: var(--ink); color: var(--on-ink); font-weight: 700; font-size: 16px; }
.code-chip svg { flex: none; width: 20px; height: 20px; }
.code-chip span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.clock { flex: none; padding: 5px 12px 6px; border-radius: 12px; background: var(--ink); color: var(--on-ink); text-align: center; font-variant-numeric: tabular-nums; }
.clock b { display: block; font-size: 17px; font-weight: 700; line-height: 1.2; letter-spacing: .02em; }
.clock small { display: block; font-size: 11px; line-height: 1.1; word-spacing: 9px; opacity: .85; }

.pinbar {
  position: fixed; z-index: 30; top: 0; left: 0; right: 0;
  background: var(--accent); border-bottom: 2px solid var(--accent-deep);
  transform: translateY(-110%); transition: transform .28s cubic-bezier(.2, .7, .2, 1);
}
.pinbar.is-on { transform: none; }
.pinbar-in { width: min(100% - 32px, 460px); margin-inline: auto; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 9px 0; }
.pinbar .btn { min-height: 42px; padding: 0 26px; border-radius: 21px; font-size: 15px; box-shadow: 0 3px 0 #05061F; }
.pinbar-note { font-weight: 700; font-size: 15px; }

.pay-h { margin: 30px 0 18px; text-align: center; font-size: 22px; font-weight: 700; letter-spacing: -.01em; }
.plans { display: grid; gap: 10px; }
.plan { position: relative; display: block; background: var(--card); border: 1.5px solid var(--line); border-radius: 18px; cursor: pointer; overflow: hidden; transition: border-color .15s, background-color .15s; }
.plan:hover { border-color: var(--ink-mute); }
.plan:has(input:focus-visible) { outline: 3px solid var(--focus); outline-offset: 3px; }
.plan.is-on { border-color: var(--accent-deep); background: var(--accent-wash); box-shadow: inset 0 0 0 1px var(--accent-deep); }
.plan-flag { display: block; padding: 6px 12px; background: var(--accent); text-align: center; font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.plan-in { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px; padding: 16px 16px 16px 14px; }
.plan-radio { width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--track); background: #fff; display: grid; place-items: center; }
.plan.is-on .plan-radio { border-color: var(--ink); }
.plan.is-on .plan-radio::after { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--ink); }
.plan-name { font-size: 18px; font-weight: 500; }
.plan-save { display: inline-block; margin-top: 6px; padding: 3px 11px; border-radius: 6px; background: var(--tab); color: var(--ink-soft); font-size: 13px; font-weight: 600; letter-spacing: .04em; }
.plan.is-on .plan-save { background: var(--accent); color: var(--ink); }
.plan-prices { margin-top: 6px; font-size: 14px; color: var(--ink-soft); }
.plan-prices s { color: var(--ink-mute); margin-right: 4px; }
.plan-day { display: flex; align-items: flex-start; gap: 8px; color: var(--ink-mute); }
.plan.is-on .plan-day { color: var(--ink); }
.plan-day s { margin-top: 12px; font-size: 13px; color: var(--ink-mute); text-decoration-color: var(--danger); }
.plan-day-now { display: flex; align-items: flex-start; }
.plan-cur { margin-top: 10px; font-size: 14px; font-weight: 600; }
.plan-int { font-size: 54px; font-weight: 600; line-height: .95; letter-spacing: -.04em; padding: 0 3px 0 2px; }
.plan-day-side { display: flex; flex-direction: column; margin-top: 9px; }
.plan-dec { font-size: 14px; font-weight: 600; line-height: 1.2; }
.plan-per { margin-top: 12px; font-size: 9.5px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; }
.plan-int.is-long { font-size: 40px; line-height: 1.2; }

.paybox { margin-top: 26px; padding: 18px 16px 16px; background: var(--card); border: 1.5px solid var(--line); border-radius: 18px; }
.paybox h2 { font-size: 18px; font-weight: 700; }
.ticks { margin-top: 12px; display: grid; gap: 8px; }
.ticks li { display: flex; gap: 10px; font-size: 14.5px; line-height: 1.45; color: var(--ink-soft); }
.ticks svg { flex: none; width: 16px; height: 16px; margin-top: 3px; color: var(--good); }
.paybox .btn { margin-top: 16px; }
.pay-by { margin-top: 12px; text-align: center; font-size: 12.5px; color: var(--ink-mute); }
.paybox .notice { margin-top: 14px; }
.smallprint { margin-top: 14px; text-align: center; font-size: 12.5px; line-height: 1.55; color: var(--ink-soft); }

.guarantee { position: relative; margin-top: 22px; padding: 20px 16px; background: var(--card); border: 1.5px solid var(--line); border-radius: 18px; }
.guarantee h2 { font-size: 20px; font-weight: 700; line-height: 1.25; max-width: 11em; }
.guarantee p { margin-top: 12px; font-size: 14.5px; line-height: 1.55; }
.guarantee > svg { position: absolute; top: 18px; right: 16px; width: 38px; height: 38px; }

.panel { margin-top: 30px; padding: 24px 16px 20px; border-radius: 20px; border: 1.5px solid var(--line); background: var(--card); }
.panel h2 { text-align: center; font-size: 21px; font-weight: 700; line-height: 1.25; text-wrap: balance; }
.panel.is-get { background: #EEF8F2; border-color: #BFE3CF; }
.panel.is-get .ticks { margin-top: 18px; gap: 11px; }
.panel.is-get .ticks li { color: var(--ink); font-size: 15px; }
.panel.is-faq { background: var(--accent-wash); border-color: var(--accent-deep); }
.panel.is-inside { background: #EEF3FB; border-color: #C9D8EF; }

.qa { margin-top: 18px; display: grid; gap: 10px; }
.qa details { background: #fff; border: 1.5px solid var(--line); border-radius: 12px; }
.qa summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 54px; padding: 10px 14px; font-size: 15px; font-weight: 500; cursor: pointer; list-style: none; border-radius: 12px; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary svg { flex: none; width: 16px; height: 16px; transition: transform .2s; }
.qa details[open] summary svg { transform: rotate(180deg); }
.qa details p { padding: 0 14px 14px; font-size: 14.5px; line-height: 1.55; color: var(--ink-soft); }

.inside-card { margin-top: 14px; padding: 16px; background: #fff; border: 1.5px solid var(--line); border-radius: 14px; }
.inside-card h3 { font-size: 16px; font-weight: 700; }
.inside-card p { margin-top: 8px; font-size: 14.5px; line-height: 1.55; color: var(--ink-soft); }
.gem-row { display: flex; justify-content: space-between; gap: 4px; margin-top: 14px; }
.gem-row img { width: 15%; }
.slider { margin-top: 16px; }
.slider-top { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 15px; }
.slider-top img { width: 28px; height: 28px; }
.slider-rail { position: relative; height: 8px; margin-top: 12px; border-radius: 4px; background: linear-gradient(90deg, #FFD4D2, #FF9294); }
.slider-rail i { position: absolute; top: 50%; left: 68%; width: 18px; height: 18px; margin: -9px 0 0 -9px; border-radius: 50%; background: #fff; border: 3px solid var(--ink); }
.slider-ends { display: flex; justify-content: space-between; margin-top: 8px; font-size: 12px; font-weight: 600; color: var(--ink-soft); }
.poster-row { display: flex; gap: 10px; margin: 14px -16px 0; padding: 0 16px 4px; overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: none; }
.poster-row::-webkit-scrollbar { display: none; }
.poster-row img { flex: none; width: 112px; aspect-ratio: 344 / 482; object-fit: cover; border-radius: 10px; scroll-snap-align: start; }

.pay-dark { margin-top: 34px; padding: 6px 14px 22px; border-radius: 22px; background: var(--ink); color: var(--on-ink); }
.pay-dark .pay-h { color: var(--on-ink); }
.pay-dark .plan { background: #1B1E4B; border-color: #34376B; color: var(--on-ink); }
.pay-dark .plan.is-on { background: #262A12; border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
.pay-dark .plan-flag { color: var(--ink); }
.pay-dark .plan-radio { background: transparent; border-color: #5A5D8C; }
.pay-dark .plan.is-on .plan-radio { border-color: var(--accent); }
.pay-dark .plan.is-on .plan-radio::after { background: var(--accent); }
.pay-dark .plan-save { background: #34376B; color: #C9CAE3; }
.pay-dark .plan.is-on .plan-save { background: var(--accent); color: var(--ink); }
.pay-dark .plan-prices { color: #C9CAE3; }
.pay-dark .plan-prices s, .pay-dark .plan-day s { color: #9A9CC2; }
.pay-dark .plan-day { color: #9A9CC2; }
.pay-dark .plan.is-on .plan-day { color: var(--on-ink); }
.pay-dark .paybox, .pay-dark .guarantee { background: #1B1E4B; border-color: #34376B; color: var(--on-ink); }
.pay-dark .ticks li { color: #D8D9EC; }
.pay-dark .ticks svg { color: var(--accent); }
.pay-dark .pay-by { color: #9A9CC2; }
.pay-dark .smallprint { color: #C9CAE3; }
.pay-dark .link { color: var(--on-ink); }
.pay-links { display: flex; justify-content: center; gap: 22px; padding: 26px 0 40px; font-size: 13px; }

.pay-missing { min-height: 70vh; display: grid; place-content: center; gap: 14px; text-align: center; }
.pay-missing h1 { font-size: 26px; font-weight: 800; letter-spacing: -.02em; }
.pay-missing p { color: var(--ink-soft); max-width: 32ch; margin-inline: auto; }
.pay-missing .btn { margin-top: 10px; }

.bsheet label { display: block; margin-top: 16px; font-size: 14px; font-weight: 600; }
.bsheet .field { margin-top: 8px; }
.bsheet .btn.is-row { flex-direction: row; min-height: 56px; border-radius: 28px; }

@media (min-width: 900px) {
  .pay-col { width: min(100% - 48px, 520px); }
  .pay-top { padding-top: 40px; }
}

/* =====================================================================
   AFTER PAYMENT (/welcome/)
   ===================================================================== */
.wel { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; }
.wel-top { padding: 24px 16px 0; display: flex; justify-content: center; }
.wel-main { flex: 1; width: min(100% - 32px, 1040px); margin-inline: auto; padding: 18px 0 40px; }
.wel-state { min-height: 62vh; display: grid; place-content: center; justify-items: center; gap: 14px; text-align: center; }
.wel-state h1 { font-size: 26px; font-weight: 800; letter-spacing: -.02em; text-wrap: balance; }
.wel-state p { max-width: 36ch; color: var(--ink-soft); }
.wel-state .btn { margin-top: 8px; }
.wel-grid { display: flex; flex-direction: column; align-items: center; text-align: center; }
.wel-title { font-size: 30px; font-weight: 800; line-height: 1.15; letter-spacing: -.02em; }
.wel-lead { margin-top: 10px; font-size: 17px; color: var(--ink-soft); }
.wel-qr { display: none; }
.wel-card { width: min(100%, 400px); margin-top: 22px; padding: 18px 16px; background: var(--card); border: 1.5px solid var(--line); border-radius: 20px; }
.wel-card p { font-size: 15px; color: var(--ink-soft); }
.wel-card .btn { margin-top: 12px; }
.wel-stores { display: grid; gap: 10px; }
.store-btn { justify-content: flex-start; gap: 12px; padding: 0 22px; text-align: left; }
.store-btn svg { flex: none; width: 24px; height: 24px; }
.store-btn span { display: flex; flex-direction: column; line-height: 1.15; }
.store-btn small { font-size: 11px; font-weight: 500; opacity: .85; }
.wel-or { display: flex; align-items: center; gap: 12px; width: min(100%, 400px); margin-top: 18px; font-size: 14px; color: var(--ink-mute); }
.wel-or::before, .wel-or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.wel-mail { width: min(100%, 400px); margin-top: 18px; padding: 16px; border: 1.5px dashed var(--ink-mute); border-radius: 16px; font-size: 15px; line-height: 1.5; }
.wel-mail b { overflow-wrap: anywhere; white-space: nowrap; }
.wel-title .mark { white-space: nowrap; }
.wel-help { margin-top: 24px; font-size: 14px; color: var(--ink-soft); }

.phone { position: relative; width: 250px; aspect-ratio: 250 / 510; flex: none; padding: 9px; border-radius: 40px; background: #0A0B22; box-shadow: 0 30px 60px rgba(18, 20, 58, .25), inset 0 0 0 2px #3A3D6B; }
.phone::before { content: ""; position: absolute; z-index: 3; top: 16px; left: 50%; width: 70px; height: 18px; margin-left: -35px; border-radius: 10px; background: #0A0B22; }
.phone-screen { position: relative; height: 100%; border-radius: 32px; background: var(--page); overflow: hidden; color: var(--ink); text-align: left; }
.phone-bar { display: flex; align-items: center; gap: 6px; padding: 36px 14px 9px; background: #fff; font-weight: 800; font-size: 13px; }
.phone-bar img { width: 18px; height: 18px; border-radius: 5px; }
.phone-label { margin: 14px 14px 0; font-size: 6.5px; font-weight: 700; letter-spacing: .1em; color: var(--ink-mute); }
.phone-h { margin: 4px 14px 0; width: 44%; height: 8px; border-radius: 4px; background: var(--ink); }
.phone-sub { margin: 5px 14px 0; width: 58%; height: 5px; border-radius: 3px; background: var(--track); }
.phone-shelf { display: flex; gap: 8px; margin: 10px 0 0 14px; }
.phone-shelf img { flex: none; width: 88px; aspect-ratio: 172 / 241; object-fit: cover; border-radius: 7px; }
.phone-feature { position: relative; margin: 14px 14px 0; border-radius: 12px; overflow: hidden; aspect-ratio: 5 / 4; }
.phone-feature img { width: 100%; height: 100%; object-fit: cover; object-position: 12% 50%; }
.phone-feature::after { content: ""; position: absolute; inset: 0 0 50%; background: linear-gradient(rgba(10, 11, 34, .8), transparent); }
.phone-feature i { position: absolute; z-index: 1; left: 10px; top: 12px; width: 56%; height: 8px; border-radius: 4px; background: rgba(255, 246, 227, .95); }
.phone-tabs { position: absolute; z-index: 2; left: 12px; right: 12px; bottom: 12px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; padding: 3px; border-radius: 18px; background: #fff; box-shadow: 0 6px 18px rgba(18, 20, 58, .16); color: var(--ink); font-size: 7.5px; font-weight: 600; text-align: center; }
.phone-tabs span { padding: 8px 0; border-radius: 15px; }
.phone-tabs span:first-child { background: var(--tab); }
.wel-phone { margin-top: 4px; margin-bottom: 22px; height: 300px; overflow: hidden; -webkit-mask-image: linear-gradient(#000 78%, transparent); mask-image: linear-gradient(#000 78%, transparent); }

@media (min-width: 860px) {
  .wel-top { justify-content: flex-start; padding: 32px 48px 0; }
  .wel-main { display: grid; align-items: center; }
  .wel-grid { flex-direction: row-reverse; justify-content: space-between; align-items: center; gap: 56px; text-align: left; }
  .wel-copy { max-width: 520px; }
  .wel-title { font-size: 46px; }
  .wel-lead { font-size: 19px; }
  .wel-qr { display: flex; align-items: center; gap: 22px; margin-top: 28px; }
  .wel-qr-box { position: relative; flex: none; width: 196px; height: 196px; padding: 12px; background: #fff; border: 1.5px solid var(--line); border-radius: 20px; }
  .wel-qr-box svg { width: 100%; height: 100%; }
  .wel-qr-box img { position: absolute; top: 50%; left: 50%; width: 36px; height: 36px; margin: -18px 0 0 -18px; border-radius: 9px; border: 3px solid #fff; background: #fff; }
  .wel-qr p { font-size: 18px; line-height: 1.45; max-width: 15em; }
  .wel-card:not(.is-always), .wel-or { display: none; }
  .wel-card.is-always { margin-top: 26px; }
  .wel-mail { width: 100%; margin-top: 26px; }
  .wel-phone { height: auto; margin: 0; overflow: visible; -webkit-mask-image: none; mask-image: none; }
  .phone { width: 300px; }
  .phone-bar { font-size: 15px; padding-top: 42px; }
  .phone-bar img { width: 21px; height: 21px; }
  .phone-shelf img { width: 106px; }
  .phone-label { font-size: 7.5px; }
  .phone-tabs { font-size: 9px; }
}

/* =====================================================================
   ACCOUNT (/account/)
   ===================================================================== */
.acct { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; }
.acct-top { display: flex; justify-content: center; padding: 26px 16px 0; }
.acct-main { flex: 1; width: min(100% - 32px, 440px); margin-inline: auto; padding: 34px 0 40px; }
.acct-title { font-size: 28px; font-weight: 800; letter-spacing: -.02em; line-height: 1.2; }
.acct-lead { margin-top: 10px; font-size: 16px; color: var(--ink-soft); }
.acct-form { margin-top: 24px; }
.acct-form label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 8px; }
.acct-form .btn { margin-top: 16px; }
.code-field { text-align: center; font-size: 28px; font-weight: 700; letter-spacing: .32em; padding-left: calc(16px + .32em); font-variant-numeric: tabular-nums; }
.acct-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 20px; margin-top: 18px; }
.text-btn { min-height: 40px; padding: 0 4px; background: none; border: 0; font-size: 14px; font-weight: 600; color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.text-btn[disabled] { color: var(--ink-mute); text-decoration: none; cursor: default; }
.acct-card { margin-top: 24px; padding: 22px 18px; background: var(--card); border: 1.5px solid var(--line); border-radius: 20px; }
.acct-chip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 999px; background: var(--accent); font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.acct-chip.is-off { background: var(--tab); color: var(--ink-soft); }
.acct-plan { margin-top: 14px; font-size: 24px; font-weight: 800; letter-spacing: -.015em; }
.acct-rows { margin-top: 16px; border-top: 1px solid var(--line); }
.acct-rows div { display: flex; justify-content: space-between; gap: 16px; padding: 13px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.acct-rows dt { color: var(--ink-soft); }
.acct-rows dd { font-weight: 600; text-align: right; word-break: break-word; }
.acct-card .btn { margin-top: 18px; }
.acct-card .notice { margin-top: 14px; }
.acct-foot { margin-top: 22px; text-align: center; font-size: 14px; color: var(--ink-soft); }
.acct-state { min-height: 40vh; display: grid; place-content: center; justify-items: center; gap: 12px; color: var(--ink-soft); }

/* =====================================================================
   DOCUMENT PAGES (terms, privacy, subscription policy, FAQ, support)
   ===================================================================== */
.doc-top { position: sticky; top: 0; z-index: 10; background: rgba(245, 244, 248, .94); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.doc-top-in { width: min(100% - 32px, 760px); margin-inline: auto; display: flex; align-items: center; justify-content: space-between; min-height: 60px; }
.doc-nav { display: none; gap: 2px; }
.doc-nav a { display: inline-flex; align-items: center; min-height: 40px; padding: 0 10px; border-radius: 8px; font-size: 14px; font-weight: 500; color: var(--ink-soft); text-decoration: none; }
.doc-nav a:hover { color: var(--ink); background: var(--tab); }
.doc-nav a[aria-current="page"] { color: var(--ink); font-weight: 700; }
.doc { width: min(100% - 32px, 720px); margin-inline: auto; padding: 36px 0 72px; font-size: 16.5px; line-height: 1.68; }
.doc h1 { font-size: clamp(30px, 6vw, 42px); font-weight: 800; line-height: 1.15; letter-spacing: -.025em; }
.doc h2 { margin-top: 44px; font-size: 22px; font-weight: 700; line-height: 1.3; letter-spacing: -.01em; scroll-margin-top: 80px; }
.doc h3 { margin-top: 28px; font-size: 18px; font-weight: 700; line-height: 1.35; }
.doc p { margin-top: 14px; }
.doc h1 + p { margin-top: 12px; font-size: 14px; color: var(--ink-soft); }
.doc ul, .doc ol { margin-top: 14px; padding-left: 24px; }
.doc ul { list-style: disc; }
.doc ol { list-style: decimal; }
.doc li { margin-top: 7px; }
.doc li::marker { color: var(--ink-mute); }
.doc a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1.5px; text-decoration-color: var(--accent-deep); }
.doc a:hover { background: var(--accent-tint); }
.doc code { padding: 1px 6px; border-radius: 6px; background: var(--tab); font: 500 .9em ui-monospace, "SF Mono", Menlo, monospace; }
.doc-table { margin-top: 16px; overflow-x: auto; border: 1px solid var(--line); border-radius: 14px; background: var(--card); }
.doc table { width: 100%; min-width: 520px; border-collapse: collapse; font-size: 15px; line-height: 1.55; }
.doc th, .doc td { padding: 11px 14px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.doc th { background: var(--tab); font-weight: 700; }
.doc tr:last-child td { border-bottom: 0; }
.confirm { background: #FFE98A; color: #3D2E00; font-weight: 600; padding: 2px 6px; border-radius: 6px; box-shadow: inset 0 0 0 1.5px #C99700; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.doc-draft { margin-top: 20px; padding: 14px 16px; border-radius: 14px; background: #FFF3BF; border: 1.5px solid #C99700; font-size: 14.5px; line-height: 1.5; color: #3D2E00; }
.doc-toc { margin-top: 24px; padding: 16px 18px; background: var(--card); border: 1px solid var(--line); border-radius: 16px; }
.doc-toc summary { font-weight: 700; cursor: pointer; }
.doc-toc ol { margin-top: 10px; padding-left: 0; list-style: none; columns: 2 220px; column-gap: 28px; font-size: 14.5px; }
.doc-toc li { margin-top: 5px; break-inside: avoid; }
.doc-faq details { margin-top: 10px; background: var(--card); border: 1.5px solid var(--line); border-radius: 14px; }
.doc-faq summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 56px; padding: 12px 16px; font-weight: 600; font-size: 16px; line-height: 1.4; cursor: pointer; list-style: none; border-radius: 14px; }
.doc-faq summary::-webkit-details-marker { display: none; }
.doc-faq summary::after { content: ""; flex: none; width: 9px; height: 9px; margin-right: 4px; border-right: 2px solid var(--ink); border-bottom: 2px solid var(--ink); transform: rotate(45deg) translate(-2px, -2px); transition: transform .2s; }
.doc-faq details[open] summary::after { transform: rotate(-135deg) translate(-2px, -2px); }
.doc-faq .answer { padding: 0 16px 16px; }
.doc-faq .answer > :first-child { margin-top: 0; }
@media (min-width: 760px) { .doc-nav { display: flex; } .doc { padding-top: 56px; } }

/* ---------- Motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .marquee { overflow-x: auto; -webkit-mask-image: none; mask-image: none; }
  .marquee-track, .chips-track { animation: none; }
  .chips { overflow-x: auto; }
  .ticker { height: auto; }
  .ticker ul { animation: none; }
  .ticker li[aria-hidden="true"] { display: none; }
  .spinner { animation-duration: 1.2s !important; animation-iteration-count: infinite !important; }
}

/* ---------- Quiz: later additions ---------- */
.paper-box p { margin-top: 12px; font-size: 16px; line-height: 1.5; }
.chart-box { position: relative; }
.chart-gem { position: absolute; width: 11%; transform: translate(-50%, -50%); filter: drop-shadow(0 4px 6px rgba(18, 20, 58, .2)); }
.chart-week { position: absolute; font-size: 9.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-mute); }
.chart-week.is-start { left: 3%; top: 55%; }
.chart-week.is-end { right: 5%; top: 0; color: var(--ink); }
.chart-tag { position: absolute; padding: 4px 9px; border-radius: 7px; font-size: 11px; font-weight: 600; line-height: 1.3; text-align: center; }
.chart-tag.is-start { left: 3%; top: 62%; background: var(--ink-mute); color: #fff; }
.chart-tag.is-end { right: 3%; top: 8%; max-width: 46%; background: var(--ink); color: var(--on-ink); }
.email-form { flex: 1; display: flex; flex-direction: column; }
.sheet-big.is-last { font-size: 20px; }
.proof { padding-bottom: 36px; }
.foot-links a { padding: 0 8px; letter-spacing: .1em; min-height: 36px; }
@media (min-width: 860px) { .stats { padding-top: 72px; } }
h1[tabindex="-1"]:focus { outline: 0; }
.pay-dark .btn { background: var(--accent); color: var(--ink); box-shadow: 0 4px 0 var(--accent-deep); }
.pay-dark .btn:hover { background: #FFDC2E; }
.pay-dark .btn[disabled] { background: #34376B; color: #9A9CC2; box-shadow: none; }
.pay-dark .spinner { border-color: rgba(18, 20, 58, .25); border-top-color: var(--ink); }
.pay-dark .notice { background: #3A1512; color: #FFD9D4; border-color: #7A2A22; }
.bsheet .email-legal { font-size: 12.5px; margin-top: 14px; }
.plan-save { white-space: nowrap; }
@media (max-width: 359px) {
  .ticket { padding: 16px 12px 14px; }
  .ticket-top p { font-size: 18px; }
  .code-chip { font-size: 13.5px; padding: 8px 10px 8px 8px; gap: 6px; }
  .clock { padding: 5px 8px 6px; }
  .plan-in { gap: 8px; padding: 14px 10px; }
  .plan-save { font-size: 12px; padding: 3px 8px; }
  .plan-int { font-size: 44px; }
  .plan-day { gap: 5px; }
}
@media (min-width: 700px) { .is-landing .land-stage { border-radius: 28px 28px 0 0; } }

/* The countdown, once it has run out: the discount is still applied, and the ticket says so. */
.clock.is-held b { font-size: 0.95rem; letter-spacing: 0.02em; white-space: nowrap; }
