/*
 * Candid. One conversation, one moment on screen at a time. Each moment is centred in
 * the space under the top bar; anything taller than the screen scrolls normally.
 */

:root {
  --bg: #0d0c0b;
  --text: #ece7e0;
  --text-2: #b2aba2;
  --text-3: #7b746c;
  --ember: #e3b06f;
  --ember-soft: rgba(227, 176, 111, 0.14);
  --hairline: rgba(255, 236, 220, 0.09);
  --surface: rgba(255, 244, 232, 0.045);
  --surface-hover: rgba(255, 244, 232, 0.075);

  --serif: "Fraunces", "Iowan Old Style", Georgia, serif;
  --sans: "Inter Tight", system-ui, -apple-system, "Segoe UI", sans-serif;

  --top-h: 64px;
  --gutter: clamp(20px, 5vw, 40px);
  --column: 680px;
  /* Vertical rhythm shrinks on short screens so a moment still fits without scrolling. */
  --gap: clamp(14px, 2.6vh, 28px);

  --ease-out: cubic-bezier(0.2, 0.7, 0.2, 1);
  --ease-in: cubic-bezier(0.5, 0, 0.75, 0);
  --enter: 560ms;
  --leave: 200ms;
}

* { box-sizing: border-box; }

html {
  background: var(--bg);
  color-scheme: dark;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  background: var(--bg);
  color: var(--text);
  font: 400 16px/1.55 var(--sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

button, textarea, input { font: inherit; color: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }
::selection { background: rgba(227, 176, 111, 0.35); }

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

:focus-visible {
  outline: 2px solid var(--ember);
  outline-offset: 3px;
  border-radius: 8px;
}

/* ---------------------------------------------------------------------------
 * The room: warm light that drifts as the conversation moves.
 */

.ambient {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.ambient::before,
.ambient::after {
  content: "";
  position: absolute;
  inset: 0;
}
/* A whisper of noise, only so the dark gradients don't band. */
.ambient::before {
  z-index: 1;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 200px;
  opacity: 0.035;
}
.ambient::after {
  z-index: 1;
  background: radial-gradient(ellipse 120% 90% at 50% 42%, transparent 50%, rgba(0, 0, 0, 0.5));
}

.glow {
  position: absolute;
  left: 50%;
  top: 50%;
  border-radius: 50%;
  will-change: transform, opacity;
  transition:
    transform 1.8s var(--ease-out),
    opacity 1.4s var(--ease-out);
}

.glow-warm {
  width: 110vmax;
  height: 110vmax;
  margin: -55vmax 0 0 -55vmax;
  background: radial-gradient(circle, rgba(227, 176, 111, 0.22) 0%, rgba(170, 128, 74, 0.09) 32%, rgba(170, 128, 74, 0) 62%);
  transform: translate(-6vw, -34vh) scale(1);
  opacity: 0.85;
}

.glow-deep {
  width: 90vmax;
  height: 90vmax;
  margin: -45vmax 0 0 -45vmax;
  background: radial-gradient(circle, rgba(70, 52, 34, 0.32) 0%, rgba(70, 52, 34, 0) 60%);
  transform: translate(-38vw, 46vh);
  opacity: 0.8;
}

body[data-moment="follow"] .glow-warm { transform: translate(10vw, -30vh) scale(0.95); opacity: 0.75; }
body[data-moment="follow"] .glow-deep { transform: translate(36vw, 44vh); }
body[data-moment="think"] .glow-warm { transform: translate(0, -18vh) scale(0.8); opacity: 0.6; }
body[data-moment="think"] .glow-deep { transform: translate(-20vw, 50vh); opacity: 0.6; }
body[data-moment="verdict"] .glow-warm { transform: translate(-2vw, -22vh) scale(1.12); opacity: 1; }
body[data-moment="verdict"] .glow-deep { transform: translate(-34vw, 40vh) scale(1.1); opacity: 0.95; }
body[data-moment="plan"] .glow-warm { transform: translate(-16vw, -10vh) scale(1.02); opacity: 0.8; }
body[data-moment="plan"] .glow-deep { transform: translate(30vw, 50vh); opacity: 0.85; }

/* While Cee is thinking the light breathes, slowly. */
body[data-moment="think"] .ambient { animation: room-breathe 3.6s ease-in-out infinite; }
@keyframes room-breathe { 50% { opacity: 0.82; } }

/* ---------------------------------------------------------------------------
 * Top bar
 */

.topbar {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 10;
  height: calc(var(--top-h) + env(safe-area-inset-top));
  padding: env(safe-area-inset-top) var(--gutter) 0;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
}
/* Only once something has scrolled under it. */
.topbar::before {
  content: "";
  position: absolute;
  inset: 0 0 -28px 0;
  z-index: -1;
  background: linear-gradient(to bottom, rgba(19, 16, 14, 0.97) calc(100% - 28px), rgba(19, 16, 14, 0));
  opacity: 0;
  transition: opacity 0.3s;
}
body.is-scrolled .topbar::before { opacity: 1; }

.topbar-side { display: flex; align-items: center; min-width: 0; }
.topbar-end { justify-content: flex-end; }

.wordmark {
  padding: 6px 4px;
  border: 0;
  background: none;
  font: 400 24px/1 var(--serif);
  letter-spacing: -0.01em;
  color: var(--text);
}
.wordmark span { color: var(--ember); }

.topbar-note {
  color: var(--text-3);
  font-size: 13px;
  white-space: nowrap;
}

.topbar-back,
.topbar-reset {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 40px;
  padding: 0 10px;
  margin: 0 -10px;
  border: 0;
  border-radius: 999px;
  background: none;
  color: var(--text-3);
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
  transition: color 0.2s, background-color 0.2s;
  animation: fade-in 0.4s var(--ease-out) both;
}
.topbar-back svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.25s var(--ease-out);
}
.topbar-back:hover,
.topbar-reset:hover { color: var(--text); background: var(--surface); }
.topbar-back:hover svg { transform: translateX(-2px); }

body:not([data-moment="ask"]) .topbar-note { display: none; }
.back-short { display: none; }

@keyframes fade-in { from { opacity: 0; } }

/* ---------------------------------------------------------------------------
 * Moments
 */

.stage {
  position: relative;
  z-index: 1;
}

.moment {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  padding:
    calc(var(--top-h) + env(safe-area-inset-top) + clamp(8px, 2vh, 24px))
    var(--gutter)
    calc(clamp(28px, 7vh, 72px) + env(safe-area-inset-bottom));
}

.moment-body {
  /* margin-block:auto centres when there's room and simply starts at the top when there isn't. */
  margin: auto;
  width: 100%;
  max-width: var(--column);
  display: flex;
  flex-direction: column;
}

/* The one leaving fades up and out on top of the one arriving, then is hidden. */
.moment.is-leaving {
  position: absolute;
  inset: 0 0 auto 0;
  pointer-events: none;
  animation: moment-leave var(--leave) var(--ease-in) forwards;
}
@keyframes moment-leave { to { opacity: 0; transform: translateY(-14px); } }

/* The one arriving comes in piece by piece: what you said, who's speaking, the line, then the rest. */
.moment.is-entering .moment-body > * {
  animation: piece-enter var(--enter) var(--ease-out) both;
  animation-delay: calc(140ms + var(--i, 0) * 70ms);
}
.moment.is-entering .moment-body > :nth-child(1) { --i: 0; }
.moment.is-entering .moment-body > :nth-child(2) { --i: 1; }
.moment.is-entering .moment-body > :nth-child(3) { --i: 2; }
.moment.is-entering .moment-body > :nth-child(4) { --i: 3; }
.moment.is-entering .moment-body > :nth-child(5) { --i: 4; }
.moment.is-entering .moment-body > :nth-child(6) { --i: 5; }
.moment.is-entering .moment-body > :nth-child(n + 7) { --i: 6; }
@keyframes piece-enter { from { opacity: 0; transform: translateY(14px); } }

/* What you just said rises into place, as if it had just been sent. */
.moment.is-entering .said { animation-name: said-enter; }
@keyframes said-enter { from { opacity: 0; transform: translateY(26px) scale(0.98); } }

/* ---------------------------------------------------------------------------
 * Who's speaking
 */

.speaker {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 calc(var(--gap) * 0.6);
  color: var(--text-2);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.presence {
  position: relative;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--ember);
  box-shadow: 0 0 0 4px var(--ember-soft), 0 0 18px 2px rgba(227, 176, 111, 0.45);
}

.speaker.is-thinking .presence { animation: presence-breathe 1.6s ease-in-out infinite; }
@keyframes presence-breathe {
  50% { transform: scale(1.35); box-shadow: 0 0 0 8px rgba(227, 176, 111, 0.06), 0 0 26px 6px rgba(227, 176, 111, 0.5); }
}

/* What you said last, kept in view so the next line has something to answer. */
.said {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0 0 calc(var(--gap) * 1.35);
  color: var(--text-3);
}
.said:empty { display: none; }

.said-photo {
  flex: none;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  object-fit: cover;
  box-shadow: 0 0 0 1px var(--hairline), 0 10px 24px -12px rgba(0, 0, 0, 0.8);
}

.said-text {
  margin: 0;
  font-size: 15px;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  overflow-wrap: anywhere;
}

.said-who {
  margin-right: 10px;
  color: var(--text-2);
  font-weight: 600;
}

/* ---------------------------------------------------------------------------
 * Cee's lines
 */

.line {
  margin: 0;
  font-family: var(--serif);
  font-weight: 400;
  color: var(--text);
  font-size: clamp(32px, min(4.6vw, 6.4vh), 52px);
  line-height: 1.06;
  letter-spacing: -0.012em;
  text-wrap: balance;
  overflow-wrap: break-word;
}
.line:focus { outline: none; }
.line:focus-visible { outline-offset: 8px; }

.line-hero {
  font-size: clamp(46px, min(7.2vw, 10.5vh), 92px);
  line-height: 0.98;
  letter-spacing: -0.02em;
}
.line-hero em { color: var(--ember); font-style: italic; }

.line-verdict {
  font-size: clamp(44px, min(7vw, 10vh), 88px);
  line-height: 0.98;
  letter-spacing: -0.02em;
  text-shadow: 0 0 60px rgba(227, 176, 111, 0.18);
}
.line[data-size="long"] { font-size: clamp(30px, min(4vw, 5.6vh), 44px); line-height: 1.08; }
.line-verdict[data-size="long"] { font-size: clamp(38px, min(5.4vw, 8vh), 66px); line-height: 1.02; }
.line[data-size="longer"],
.line-verdict[data-size="longer"] { font-size: clamp(28px, min(3.4vw, 5vh), 40px); line-height: 1.1; }

.line-quiet {
  color: var(--text-2);
  font-size: clamp(30px, min(4vw, 6vh), 44px);
}

.support {
  max-width: 34em;
  margin: var(--gap) 0 calc(var(--gap) * 1.25);
  color: var(--text-2);
  font-size: clamp(16px, 1.3vw + 0.5vh, 18px);
  line-height: 1.6;
}
.support-quiet {
  margin-top: calc(var(--gap) * 0.7);
  color: var(--text-3);
  font-size: 15px;
}

.kicker {
  margin: 0 0 10px;
  color: var(--ember);
  font-size: 14px;
  font-weight: 600;
}

/* ---------------------------------------------------------------------------
 * Composer: the place you answer. A lit surface, not a form field.
 */

.composer {
  position: relative;
  padding: 18px 14px 12px 22px;
  border-radius: 24px;
  background: var(--surface);
  box-shadow:
    inset 0 0 0 1px var(--hairline),
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 40px 80px -48px rgba(0, 0, 0, 0.9);
  transition: background-color 0.3s, box-shadow 0.3s var(--ease-out);
}
.composer:hover { background: rgba(255, 244, 232, 0.055); }
.composer:focus-within {
  background: rgba(255, 244, 232, 0.065);
  box-shadow:
    inset 0 0 0 1px rgba(227, 176, 111, 0.42),
    0 0 0 5px rgba(227, 176, 111, 0.07),
    0 40px 90px -40px rgba(170, 128, 74, 0.35);
}
.composer.is-dropping {
  background: rgba(227, 176, 111, 0.08);
  box-shadow: inset 0 0 0 1.5px rgba(227, 176, 111, 0.6);
}

.composer textarea {
  display: block;
  width: 100%;
  min-height: calc(1.5em * 2);
  max-height: 38vh;
  padding: 0 8px 0 0;
  border: 0;
  outline: 0;
  resize: none;
  background: transparent;
  color: var(--text);
  caret-color: var(--ember);
  font-size: clamp(17px, 1.2vw + 0.6vh, 20px);
  line-height: 1.5;
  overflow-y: auto;
  scrollbar-width: thin;
}
.composer-answer textarea { min-height: 1.5em; }
.composer textarea::placeholder { color: var(--text-3); opacity: 1; }

/* Example questions that take turns in the empty box, sliding out left as the next slides in. */
.ghost {
  position: absolute;
  top: 18px;
  left: 22px;
  right: 22px;
  pointer-events: none;
  overflow: hidden;
  color: var(--text-3);
  font-size: clamp(17px, 1.2vw + 0.6vh, 20px);
  line-height: 1.5;
  transition: opacity 0.15s;
}
.ghost-text { display: block; }
.ghost-text.is-out { animation: ghost-out 0.32s var(--ease-in) forwards; }
.ghost-text.is-in { animation: ghost-in 0.5s var(--ease-out) both; }
@keyframes ghost-out { to { opacity: 0; transform: translateX(-28px); filter: blur(2px); } }
@keyframes ghost-in { from { opacity: 0; transform: translateX(32px); filter: blur(2px); } }
.composer.has-text .ghost { opacity: 0; }

.composer-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 12px;
}

.attach {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 12px;
  margin-left: -10px;
  border-radius: 999px;
  color: var(--text-2);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: color 0.2s, background-color 0.2s;
}
.attach svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linejoin: round; }
.attach:hover { color: var(--text); background: var(--surface-hover); }
.attachment:not([hidden]) + #photo-input + .attach { margin-left: 2px; }
#photo-input:focus-visible + .attach { outline: 2px solid var(--ember); outline-offset: 2px; }

.hint {
  margin-left: auto;
  color: var(--text-3);
  font-size: 12px;
  white-space: nowrap;
  opacity: 0;
  transition: opacity 0.3s;
}
.composer:focus-within .hint { opacity: 1; }

.send {
  flex: none;
  width: 44px;
  height: 44px;
  margin-left: auto;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: var(--text);
  color: var(--bg);
  transition: transform 0.25s var(--ease-out), background-color 0.2s, opacity 0.25s;
}
.hint + .send { margin-left: 0; }
.send svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.send:hover { background: #fff; transform: translateX(2px); }
.send:active { transform: scale(0.94); }
.send[aria-disabled="true"] { opacity: 0.28; transform: none; }

.attachment {
  position: relative;
  flex: none;
  width: 44px;
  height: 44px;
  margin-right: -4px;
  animation: piece-enter 0.4s var(--ease-out) both;
}
.attachment img {
  width: 100%;
  height: 100%;
  border-radius: 11px;
  object-fit: cover;
  box-shadow: 0 0 0 1px var(--hairline), 0 14px 30px -14px rgba(0, 0, 0, 0.9);
}
.attachment-remove {
  position: absolute;
  top: -9px;
  right: -9px;
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--text);
  color: var(--bg);
}
.attachment-remove svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }

.error {
  margin: 12px 4px 0;
  color: #f4a07a;
  font-size: 14px;
  line-height: 1.45;
}
.error:empty { margin: 0; }
.error:not(:empty) { animation: piece-enter 0.35s var(--ease-out) both; }

/* ---------------------------------------------------------------------------
 * Starters
 */

.starters {
  margin-top: calc(var(--gap) * 1.2);
  display: flex;
  align-items: baseline;
  gap: 8px 14px;
}

.starters-label {
  flex: none;
  margin: 0;
  color: var(--text-3);
  font-size: 13px;
}

.starters-row { display: flex; flex-wrap: wrap; gap: 8px; }

.starter {
  padding: 8px 14px;
  border: 0;
  border-radius: 999px;
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--hairline);
  color: var(--text-2);
  font-size: 14px;
  line-height: 1.3;
  white-space: nowrap;
  transition: color 0.2s, background-color 0.2s, transform 0.25s var(--ease-out);
}
.starter:hover { color: var(--text); background: var(--surface-hover); transform: translateY(-1px); }
.starter:active { transform: scale(0.97); }
.starter[aria-pressed="true"] { color: var(--text); background: rgba(227, 176, 111, 0.16); box-shadow: inset 0 0 0 1px rgba(227, 176, 111, 0.6); }

/* ---------------------------------------------------------------------------
 * Verdict and plan
 */

.verdict-body {
  max-width: 32em;
  margin: calc(var(--gap) * 1.1) 0 0;
  color: var(--text-2);
  font-size: clamp(17px, 1.1vw + 0.7vh, 20px);
  line-height: 1.6;
}

.steps {
  margin: calc(var(--gap) * 1.1) 0 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
  display: grid;
  gap: calc(var(--gap) * 0.55);
}
.steps li {
  display: grid;
  grid-template-columns: 96px 1fr;
  align-items: baseline;
  color: var(--text);
  font-size: clamp(16px, 0.9vw + 0.6vh, 18px);
  line-height: 1.5;
  counter-increment: step;
}
.step-number { color: var(--ember); font: italic 400 22px/1 var(--serif); }
.step-area { color: var(--ember); font-size: 14px; font-weight: 600; }

/* The verdict, broken down by area: label, then one line. */
.breakdown {
  margin: calc(var(--gap) * 1.1) 0 0;
  display: grid;
  gap: calc(var(--gap) * 0.45);
  max-width: 34em;
}
.breakdown div { display: grid; grid-template-columns: 96px 1fr; align-items: baseline; }
.breakdown dt { color: var(--ember); font-size: 14px; font-weight: 600; }
.breakdown .level { display: block; margin-top: 2px; color: var(--text); font-size: 12px; font-weight: 600; opacity: 0.55; font-variant-numeric: tabular-nums; }
.breakdown .level-4, .breakdown .level-5 { color: var(--ember); opacity: 1; }
.breakdown dd { margin: 0; color: var(--text); font-size: clamp(16px, 0.9vw + 0.6vh, 18px); line-height: 1.5; }

.notes {
  margin: calc(var(--gap) * 1.2) 0 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px 32px;
}
.notes div { display: grid; grid-template-columns: 58px 1fr; align-items: baseline; }
.notes dt { color: var(--text-3); font-size: 14px; font-weight: 600; }
.notes dd { margin: 0; color: var(--text-2); font-size: 15px; line-height: 1.5; }

.actions {
  margin-top: calc(var(--gap) * 1.5);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 24px;
}

.primary {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 54px;
  padding: 0 24px 0 28px;
  border: 0;
  border-radius: 999px;
  background: var(--text);
  color: var(--bg);
  font-size: 16px;
  font-weight: 600;
  box-shadow: 0 18px 40px -20px rgba(227, 176, 111, 0.6);
  transition: background-color 0.2s, transform 0.25s var(--ease-out), box-shadow 0.3s;
}
.primary svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; transition: transform 0.25s var(--ease-out); }
.primary:hover { background: #fff; }
.primary:hover svg { transform: translateX(3px); }
.primary:active { transform: scale(0.98); }
.primary.is-done { background: var(--ember); color: #1a0f09; cursor: default; }
.primary.is-done svg { transform: none; }

.quiet {
  min-height: 44px;
  padding: 0 4px;
  border: 0;
  background: none;
  color: var(--text-3);
  font-size: 15px;
  font-weight: 500;
  text-decoration: underline;
  text-decoration-color: transparent;
  text-underline-offset: 5px;
  transition: color 0.2s, text-decoration-color 0.2s;
}
.quiet:hover { color: var(--text); text-decoration-color: currentColor; }

.source {
  margin: calc(var(--gap) * 1.2) 0 0;
  color: var(--text-3);
  font-size: 13px;
}
.source:empty { display: none; }

/* His odds with each crowd. */
.stats-list { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.stats-list li {
  display: grid;
  grid-template-columns: minmax(0, 11em) 1fr 3.2em;
  align-items: center;
  gap: 14px;
  font-size: 15px;
}
.stat-name { color: var(--text-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.stat-bar { height: 4px; border-radius: 4px; background: var(--hairline); overflow: hidden; }
.stat-bar i {
  display: block;
  height: 100%;
  width: var(--p, 0%);
  border-radius: inherit;
  background: linear-gradient(to right, rgba(227, 176, 111, 0.5), var(--ember));
  transform-origin: left;
}
.moment.is-entering .stat-bar i { animation: bar-grow 900ms var(--ease-out) 500ms both; }
@keyframes bar-grow { from { transform: scaleX(0); } }
.stat-value { color: var(--text); font-variant-numeric: tabular-nums; text-align: right; font-weight: 600; }
.stat-lever { grid-column: 1 / -1; margin-top: -4px; color: var(--text-3); font-size: 14px; }

/* The odds moment: the readout is the point, so it gets room. */
.odds-list { margin-top: calc(var(--gap) * 1.2); gap: calc(var(--gap) * 0.7); max-width: 34em; }
.odds-list li { font-size: clamp(16px, 0.9vw + 0.6vh, 18px); grid-template-columns: minmax(0, 12em) 1fr auto; }
.odds-list .stat-bar { height: 6px; }
.moment.is-entering .odds-list li:nth-child(2) .stat-bar i { animation-delay: 620ms; }
.moment.is-entering .odds-list li:nth-child(3) .stat-bar i { animation-delay: 740ms; }
.moment.is-entering .odds-list li:nth-child(4) .stat-bar i { animation-delay: 860ms; }
.moment.is-entering .odds-list li:nth-child(n + 5) .stat-bar i { animation-delay: 980ms; }

/* Picks from the book. */
.picks {
  margin: calc(var(--gap) * 1.1) 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: calc(var(--gap) * 0.8);
}
.picks li { padding-left: 16px; box-shadow: inset 2px 0 0 rgba(227, 176, 111, 0.35); }
.pick-head { margin: 0; display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 10px; }
.pick-item { color: var(--text); font-size: clamp(17px, 1vw + 0.7vh, 19px); font-weight: 600; }
.pick-tier {
  padding: 2px 9px;
  border-radius: 999px;
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--hairline);
  color: var(--text-2);
  font-size: 12px;
  font-weight: 600;
}
.tier-invest { color: var(--ember); }
.pick-why { margin: 4px 0 0; color: var(--text-2); font-size: 15px; line-height: 1.5; }
.pick-by { margin: 4px 0 0; color: var(--text-3); font-size: 12px; }

.date-move { margin: calc(var(--gap) * 1.2) 0 0; max-width: 34em; }
.date-move-label { margin: 0 0 6px; color: var(--text-3); font-size: 13px; font-weight: 600; }
.date-move-text { margin: 0; color: var(--text); font: italic 400 clamp(20px, 1.4vw + 0.8vh, 24px)/1.35 var(--serif); }

/* Selfie: phones only, where it opens the front camera. */
.attach-camera { display: none; }
@media (hover: none) and (pointer: coarse) { .attach-camera { display: inline-flex; } }
#camera-input:focus-visible + .attach { outline: 2px solid var(--ember); outline-offset: 2px; }

.share { display: inline-flex; align-items: center; gap: 6px; }
.share svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

.stat-value { white-space: nowrap; }
.stat-change { margin-left: 8px; font-size: 0.8em; font-weight: 600; color: var(--text-3); }
.stat-change.up { color: #9fd88b; }
.stat-change.down { color: #f4a07a; }

/* Save: the link and the reminder, each in a lit row like the composer. */
.composer-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 8px 8px 20px;
  margin-top: 12px;
}
.composer-link input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  background: none;
  color: var(--text);
  font-size: 16px;
}
.composer-link input::placeholder { color: var(--text-3); }
.saved-link { flex: 1; min-width: 0; margin: 0; color: var(--text); font-size: 15px; overflow-wrap: anywhere; }
.send.send-text { width: auto; height: 40px; padding: 0 18px; border-radius: 999px; font-size: 14px; font-weight: 600; }

/* The small print on the first moment, out of the way of the centring. */
#m-ask { position: relative; }
.legal {
  position: absolute;
  left: 0;
  right: 0;
  bottom: calc(12px + env(safe-area-inset-bottom));
  margin: 0;
  text-align: center;
  color: var(--text-3);
  font-size: 12px;
}
.legal a { color: inherit; text-underline-offset: 3px; }
.legal a:hover { color: var(--text); }
body.is-typing .legal { display: none; }

/* Quick answers under Cee's question, and the way out of the rest. */
#follow-options { margin-top: 14px; }
.follow-options:empty { display: none; }
.follow-skip { align-self: flex-start; margin-top: 10px; }
body.is-typing .follow-options { display: none; }

.look-tag {
  margin-left: 10px;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--ember-soft);
  color: var(--text);
  font-size: 12px;
  font-weight: 600;
}

/* Links that act as buttons (the support screen's call and text). */
a.primary, a.quiet { display: inline-flex; align-items: center; text-decoration: none; }
a.quiet:hover { text-decoration: underline; }
.source a { color: var(--text-2); }
.support-back { align-self: flex-start; margin-top: 8px; }
body[data-moment="support"] .glow-warm { transform: translate(0, -24vh) scale(0.9); opacity: 0.55; }

.noscript { position: relative; z-index: 2; padding: 120px var(--gutter); text-align: center; }

/* ---------------------------------------------------------------------------
 * Smaller screens
 */

@media (max-width: 720px) {
  :root { --top-h: 56px; }
  .topbar-note { font-size: 12px; }
  .notes { grid-template-columns: 1fr; gap: 10px; }
  .starters { flex-direction: column; align-items: stretch; }
  .starters-row {
    flex-wrap: nowrap;
    overflow-x: auto;
    margin: 0 calc(var(--gutter) * -1);
    padding: 2px var(--gutter);
    scrollbar-width: none;
    -webkit-mask-image: linear-gradient(to right, transparent, #000 var(--gutter), #000 calc(100% - var(--gutter)), transparent);
            mask-image: linear-gradient(to right, transparent, #000 var(--gutter), #000 calc(100% - var(--gutter)), transparent);
  }
  .starters-row::-webkit-scrollbar { display: none; }
}

@media (max-width: 480px) {
  .steps li, .breakdown div { grid-template-columns: 84px 1fr; }
  .odds-list li { grid-template-columns: minmax(0, 1fr) 64px auto; gap: 10px; }
  .ghost { top: 16px; left: 18px; right: 14px; }
  .topbar-note { display: none; }
  .back-long { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .back-short { display: inline; }
  .composer { padding: 16px 10px 10px 18px; border-radius: 22px; }
  .attach span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .actions { flex-direction: column; align-items: stretch; gap: 4px; }
  .primary { justify-content: space-between; }
}

/* Touch screens: no keyboard hint, and while the keyboard is up the moment moves to the
   top and sheds everything except the line and the box you're typing in. */
@media (hover: none) and (pointer: coarse) {
  .hint { display: none; }
  .hint + .send { margin-left: auto; }
}
body.is-typing .moment-body { margin-top: 0; }
body.is-typing #m-ask .support,
body.is-typing #m-ask .starters,
body.is-typing .support-quiet { display: none; }
body.is-typing .line-hero { font-size: clamp(34px, 9vw, 44px); }
body.is-typing .said { margin-bottom: var(--gap); }
body.is-typing .line + .composer,
body.is-typing .support + .composer { margin-top: calc(var(--gap) * 0.9); }

/* ---------------------------------------------------------------------------
 * Reduced motion: crossfades only, nothing moves, nothing breathes.
 */

@media (prefers-reduced-motion: reduce) {
  :root { --enter: 200ms; --leave: 120ms; }
  .glow { transition: opacity 0.6s linear; }
  body[data-moment] .glow-warm { transform: translate(-6vw, -30vh); }
  body[data-moment] .glow-deep { transform: translate(-36vw, 46vh); }
  body[data-moment="think"] .ambient,
  .speaker.is-thinking .presence { animation: none; }
  .moment.is-entering .moment-body > *,
  .moment.is-entering .said { animation-name: fade-in; animation-delay: 0ms; }
  .moment.is-entering .stat-bar i { animation: none; }
  @keyframes moment-leave { to { opacity: 0; } }
  @keyframes ghost-out { to { opacity: 0; } }
  @keyframes ghost-in { from { opacity: 0; } }
  .starter:hover, .send:hover, .primary:hover svg, .topbar-back:hover svg { transform: none; }
}

/* ---------------------------------------------------------------------------
 * Privacy and terms: a plain reading page in the same room.
 */

.doc .doc-body {
  position: relative;
  z-index: 1;
  max-width: 640px;
  margin: 0 auto;
  padding: 40px var(--gutter) 80px;
}
.doc .wordmark { display: inline-block; margin-bottom: 48px; text-decoration: none; }
.doc h2 { margin: 36px 0 8px; color: var(--text); font-size: 17px; font-weight: 600; }
.doc p { margin: 0 0 12px; color: var(--text-2); line-height: 1.65; }
.doc ul { margin: 0 0 12px; padding-left: 20px; color: var(--text-2); line-height: 1.65; }
.doc b { color: var(--text); font-weight: 600; }
.doc .doc-date { color: var(--text-3); font-size: 14px; margin-top: 12px; }
.doc a { color: var(--ember); }
.doc .doc-back { margin-top: 40px; }

/* Picks as chips inside the plan's text: tap one for why, the tier and where to find it. */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 1px 2px;
  padding: 2px 9px 2px 11px;
  border-radius: 999px;
  background:
    linear-gradient(var(--bg), var(--bg)) padding-box,
    linear-gradient(120deg, rgba(227, 176, 111, 0.9), rgba(255, 214, 170, 0.35) 45%, rgba(227, 176, 111, 0.9)) border-box;
  background-size: 100% 100%, 220% 100%;
  border: 1px solid transparent;
  box-shadow: 0 0 0 0 rgba(227, 176, 111, 0), 0 0 14px -4px rgba(227, 176, 111, 0.55);
  color: var(--text);
  font: 600 0.88em/1.5 var(--sans);
  letter-spacing: 0.01em;
  vertical-align: baseline;
  cursor: pointer;
  animation: chip-sheen 4.5s linear infinite;
  transition: box-shadow 180ms var(--ease-out), transform 180ms var(--ease-out);
}
.chip svg {
  width: 10px;
  height: 10px;
  fill: none;
  stroke: var(--ember);
  stroke-width: 1.8;
  stroke-linecap: round;
  transition: transform 220ms var(--ease-out);
}
.chip:hover { box-shadow: 0 0 0 3px var(--ember-soft), 0 0 20px -2px rgba(227, 176, 111, 0.7); transform: translateY(-1px); }
.chip:focus-visible { outline: 2px solid var(--ember); outline-offset: 2px; }
.chip[aria-expanded="true"] {
  background:
    linear-gradient(#2a2219, #2a2219) padding-box,
    linear-gradient(120deg, rgba(227, 176, 111, 1), rgba(255, 214, 170, 0.6) 45%, rgba(227, 176, 111, 1)) border-box;
}
.chip[aria-expanded="true"] svg { transform: rotate(45deg); }
@keyframes chip-sheen { to { background-position: 0 0, -220% 0; } }
/* In the big serif line the chip stays body-sized so the sentence still reads. */
.line .chip { font-size: clamp(16px, 0.5em, 20px); vertical-align: 0.35em; }
.chip-row { display: flex; flex-wrap: wrap; gap: 6px; }

.pick-card {
  margin: calc(var(--gap) * 0.9) 0 0;
  padding: 14px 16px;
  max-width: 34em;
  border-radius: 14px;
  background: linear-gradient(160deg, rgba(227, 176, 111, 0.1), var(--surface) 60%);
  box-shadow: inset 0 0 0 1px rgba(227, 176, 111, 0.3), 0 10px 30px -18px rgba(227, 176, 111, 0.6);
  animation: pick-in 260ms var(--ease-out);
}
.pick-find {
  display: inline-block;
  margin-top: 10px;
  color: var(--ember);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}
.pick-find:hover { text-decoration: underline; }
@keyframes pick-in { from { opacity: 0; transform: translateY(-4px); } }

@media (prefers-reduced-motion: reduce) {
  .chip, .pick-card { animation: none; }
}

/* His rank on the verdict, and the button that names it. */
.rank-pill {
  align-self: flex-start;
  margin: 0 0 12px;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(227, 176, 111, 0.12);
  box-shadow: inset 0 0 0 1px rgba(227, 176, 111, 0.4);
  color: var(--text-2);
  font-size: 13px;
  font-weight: 600;
}
.rank-pill strong { color: var(--ember); font-weight: 800; }
.cta-label { display: flex; flex-direction: column; align-items: flex-start; gap: 1px; padding: 8px 0; text-align: left; }
.cta-label b { font-size: 17px; font-weight: 800; }
.cta-label small { font-size: 13px; font-weight: 600; opacity: 0.7; }

/* The gate. */

/* The basics, at the top of every plan. */
.basics {
  margin: 0 0 calc(var(--gap) * 1.2);
  padding: 14px 16px;
  max-width: 34em;
  border-radius: 16px;
  background: linear-gradient(160deg, rgba(227, 176, 111, 0.1), var(--surface) 60%);
  box-shadow: inset 0 0 0 1px rgba(227, 176, 111, 0.28);
}
.basics-title { margin: 0; color: var(--ember); font-size: 13px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; }
.basics-text { margin: 6px 0 0; color: var(--text); font-size: 15px; line-height: 1.5; }
.basics-chips { margin: 10px 0 0; display: flex; flex-wrap: wrap; gap: 6px; }
.basics-chips span { padding: 3px 10px; border-radius: 999px; background: rgba(255, 244, 232, 0.07); color: var(--text-2); font-size: 12.5px; font-weight: 700; }

/* Where he stands, right above the way out of it. */
.rank-callout {
  margin: calc(var(--gap) * 1.2) 0 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.rank-callout[hidden] { display: none; }
.rank-callout strong { color: var(--text); font: 400 clamp(26px, 3vw + 1vh, 34px)/1.1 var(--serif); }
.rank-callout span { color: var(--ember); font-size: 15px; font-weight: 700; }

/* ── Intro, onboarding and the ladder ─────────────────────────────────────── */

.ladder { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-top: calc(var(--gap) * 1.2); }
.ladder-step {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--text-3);
  font-size: 12px;
  font-weight: 700;
  text-align: center;
  line-height: 1.2;
}
.ladder-step i {
  width: 100%;
  height: 10px;
  border-radius: 6px;
  background: rgba(255, 236, 220, 0.08);
}
.ladder-step:nth-child(1) i { background: rgba(255, 236, 220, 0.12); }
.ladder-step:nth-child(2) i { background: rgba(227, 176, 111, 0.3); }
.ladder-step:nth-child(3) i { background: rgba(227, 176, 111, 0.6); }
.ladder-step.is-top i { background: linear-gradient(90deg, var(--ember), #f5c04a); box-shadow: 0 0 14px rgba(245, 192, 74, 0.5); }
.ladder-step.is-top { color: #f5c04a; }
.ladder-step.is-past { color: var(--text-3); opacity: 0.6; }
.ladder-step.is-you { color: var(--text); }
.ladder-step.is-you::before {
  content: "You";
  position: absolute;
  top: -26px;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--text);
  color: var(--bg);
  font-size: 11px;
  font-weight: 800;
}
.ladder-step.is-you i { outline: 2px solid var(--text); outline-offset: 2px; }
.ladder-tall .ladder-step i { height: 28px; }
.ladder-tall .ladder-step:nth-child(1) i { height: 16px; }
.ladder-tall .ladder-step:nth-child(2) i { height: 26px; }
.ladder-tall .ladder-step:nth-child(3) i { height: 38px; }
.ladder-tall .ladder-step:nth-child(4) i { height: 52px; }
.ladder-tall { align-items: end; }
.ladder-tall .ladder-step { justify-content: flex-end; }
.intro-ladder { max-width: 30em; margin-top: 8px; }

.onboard { min-height: 60vh; }
.onboard-dots { display: flex; gap: 6px; margin-bottom: calc(var(--gap) * 1.4); }
.onboard-dots i { flex: 1; height: 3px; border-radius: 3px; background: rgba(255, 236, 220, 0.1); transition: background-color 0.3s; }
.onboard-dots i.is-on { background: var(--ember); }
.slide[hidden] { display: none; }
.slide-in .slide { animation: slide-in 420ms var(--ease-out); }
@keyframes slide-in { from { opacity: 0; transform: translateX(14px); } }
.slide-big { font-size: clamp(44px, 9vw, 72px); }
.slide-punch { margin: 16px 0 0; color: var(--ember); font: italic 400 clamp(26px, 5vw, 38px)/1.15 var(--serif); }
.slide-note { margin: 18px 0 0; max-width: 30em; color: var(--text-2); font-size: 16px; line-height: 1.55; }

.chart { margin-top: calc(var(--gap) * 1.2); padding: 16px; border-radius: 18px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--hairline); display: grid; gap: 12px; }
.chart-row { display: grid; grid-template-columns: 74px 1fr 48px; align-items: center; gap: 10px; font-size: 14px; color: var(--text-2); font-weight: 600; }
.chart-bar { position: relative; height: 10px; border-radius: 6px; background: rgba(255, 236, 220, 0.06); overflow: hidden; }
.chart-bar i { position: absolute; inset: 0 auto 0 0; border-radius: inherit; }
.chart-bar .after { background: linear-gradient(90deg, rgba(227, 176, 111, 0.5), var(--ember)); animation: grow 1.1s 0.3s var(--ease-out) both; }
.chart-bar .before { background: rgba(255, 236, 220, 0.35); z-index: 1; }
.chart-bar .w40 { width: 40%; }
.chart-bar .w60 { width: 60%; }
.chart-bar .w80 { width: 80%; }
@keyframes grow { from { transform: scaleX(0.4); transform-origin: left; } }
.chart-val { text-align: right; color: var(--text); font-variant-numeric: tabular-nums; }
.chart-legend { margin: 4px 0 0; display: flex; align-items: center; gap: 6px; color: var(--text-3); font-size: 12px; }
.chart-legend .key { width: 10px; height: 10px; border-radius: 3px; }
.chart-legend .key.before { background: rgba(255, 236, 220, 0.35); }
.chart-legend .key.after { background: var(--ember); margin-left: 8px; }

.mini-quest { margin-top: 18px; display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px; background: var(--surface); box-shadow: inset 0 0 0 1px rgba(227, 176, 111, 0.35); color: var(--text); font-weight: 600; max-width: 26em; }
.mini-tick { width: 24px; height: 24px; border-radius: 7px; background: var(--ember); flex: none; }
.mini-quest b { margin-left: auto; color: var(--ember); }

/* ── The gate ─────────────────────────────────────────────────────────────── */

.gate { padding-bottom: 120px; }
.gate-card { margin-top: calc(var(--gap) * 1.1); padding: 18px 16px 16px; border-radius: 18px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--hairline); }
.climb .ladder { margin-top: 26px; }
.climb-line { margin: 14px 0 0; color: var(--text); font-size: 15px; font-weight: 700; }
.plan-peek { position: relative; overflow: hidden; }
.peek-label { margin: 0; color: var(--ember); font-size: 12px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; }
.peek-first { margin: 6px 0 0; color: var(--text); font-size: 17px; font-weight: 700; line-height: 1.4; }
.peek-steps { margin: 14px 0 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.peek-steps li { display: grid; grid-template-columns: 80px 1fr; gap: 10px; align-items: baseline; }
.peek-area { color: var(--ember); font-size: 13px; font-weight: 700; }
.peek-blur { overflow: hidden; color: var(--text); white-space: nowrap; filter: blur(6px); user-select: none; pointer-events: none; }
.peek-lock {
  margin: 14px -16px -16px;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(180deg, rgba(227, 176, 111, 0.1), rgba(227, 176, 111, 0.18));
  color: var(--text);
  font-size: 14px;
  font-weight: 700;
}
.peek-lock svg, .gate-features svg { width: 20px; height: 20px; flex: none; fill: none; stroke: var(--ember); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.gate-features { margin: calc(var(--gap) * 1.2) 0 0; padding: 0; list-style: none; display: grid; gap: 14px; }
.gate-features li { display: flex; gap: 12px; align-items: flex-start; }
.gate-features span { display: flex; flex-direction: column; color: var(--text-3); font-size: 14px; line-height: 1.4; }
.gate-features b { color: var(--text); font-size: 16px; }
.gate-features svg { padding: 6px; width: 32px; height: 32px; border-radius: 10px; background: rgba(227, 176, 111, 0.12); }

/* Always in reach: price per day and the button, pinned to the bottom. */
.gate-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 15;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px var(--gutter) calc(14px + env(safe-area-inset-bottom));
  background: linear-gradient(180deg, rgba(19, 16, 14, 0), rgba(19, 16, 14, 0.94) 30%);
  backdrop-filter: blur(8px);
}
.moment[hidden] .gate-bar { display: none; }
.gate-price { display: flex; flex-wrap: wrap; align-items: baseline; column-gap: 2px; }
.gate-price b { color: var(--text); font: 800 28px/1 var(--sans); letter-spacing: -0.02em; }
.gate-price span { color: var(--text-2); font-size: 15px; font-weight: 700; }
.gate-price small { flex-basis: 100%; margin-top: 4px; color: var(--text-3); font-size: 12px; }
.gate-bar .primary { flex: none; }
@media (prefers-reduced-motion: reduce) { .slide-in .slide, .chart-bar .after { animation: none; } }

/* ── Onboarding v2: visual on top, card underneath ────────────────────────── */

.onboard { min-height: calc(100dvh - var(--top-h) - 40px); justify-content: space-between; }
.onboard-visual { flex: 1; display: grid; place-items: center; min-height: 36vh; padding: 8px 0 18px; }
.onboard-visual > [hidden] { display: none !important; }
.slide-in .onboard-visual > *, .slide-in .onboard-card > div { animation: slide-in 420ms var(--ease-out); }
.visual-text .v-big { margin: 0; font: 400 clamp(46px, 11vw, 76px)/1.02 var(--serif); color: var(--text); letter-spacing: -0.02em; }

.visual-faces { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; width: 100%; max-width: 420px; }
.visual-faces svg { width: 100%; height: auto; overflow: visible; }
.face path { fill: none; stroke: var(--text); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.face .halo { stroke: #f5c04a; stroke-width: 3; filter: drop-shadow(0 0 6px rgba(245, 192, 74, 0.8)); }
.face.rough path { stroke: var(--text-3); }
.face.rough .cloud { stroke: #7c726a; fill: rgba(255, 255, 255, 0.04); }
.face.rough .stubble { stroke-width: 3; }

.visual-lives { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; width: 100%; max-width: 440px; }
.life { display: flex; flex-direction: column; gap: 8px; padding: 14px 12px; border-radius: 18px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--hairline); min-height: 190px; }
.life-tag { margin: 0 0 4px; color: var(--text-3); font-size: 12px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; }
.life-tag.good { color: var(--ember); }
.bubble-in, .bubble-out { margin: 0; padding: 8px 12px; border-radius: 16px; font-size: 14px; max-width: 90%; }
.bubble-in { align-self: flex-start; background: rgba(255, 244, 232, 0.12); color: var(--text); border-bottom-left-radius: 5px; }
.bubble-out { align-self: flex-end; background: #3a6df0; color: #fff; border-bottom-right-radius: 5px; }
.life-seen { margin: 0; align-self: flex-end; color: var(--text-3); font-size: 11px; }

.visual-ladder { width: 100%; max-width: 440px; }
.visual-ladder .ladder-tall .ladder-step i { height: 40px; }
.visual-ladder .ladder-tall .ladder-step:nth-child(1) i { height: 26px; }
.visual-ladder .ladder-tall .ladder-step:nth-child(2) i { height: 52px; }
.visual-ladder .ladder-tall .ladder-step:nth-child(3) i { height: 80px; }
.visual-ladder .ladder-tall .ladder-step:nth-child(4) i { height: 118px; }
.onboard-visual .chart { width: 100%; max-width: 440px; margin: 0; }
.visual-quests { display: grid; gap: 10px; width: 100%; max-width: 420px; }
.visual-quests .mini-quest { margin: 0; max-width: none; }
.mini-tick.off { background: none; box-shadow: inset 0 0 0 2px rgba(227, 176, 111, 0.6); }

.onboard-card {
  padding: 22px 20px 12px;
  border-radius: 26px;
  background: linear-gradient(180deg, rgba(255, 244, 232, 0.07), rgba(255, 244, 232, 0.035));
  box-shadow: inset 0 0 0 1px rgba(255, 236, 220, 0.14), 0 -20px 60px -30px rgba(0, 0, 0, 0.8);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.onboard-card > div[hidden] { display: none; }
.onboard-card h2 { margin: 0; color: var(--text); font: 800 clamp(24px, 6vw, 30px)/1.15 var(--sans); letter-spacing: -0.02em; }
.onboard-card p { margin: 10px 0 0; color: var(--text-2); font-size: 16px; line-height: 1.5; max-width: 26em; }
.onboard-card .card-kicker { margin: 0 0 6px; color: var(--ember); font-size: 12px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; }
.onboard-next { margin-top: 20px; width: 100%; justify-content: center; }
.onboard-card .quiet { margin-top: 2px; }

/* ── Intro with Jessica ───────────────────────────────────────────────────── */

#m-intro { padding-top: 0; }
.intro-hero {
  position: relative;
  margin: calc(-1 * (var(--top-h) + env(safe-area-inset-top))) calc(-1 * var(--gutter)) 0;
  height: 56vh;
  min-height: 340px;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(180deg, #000 55%, transparent 100%);
  mask-image: linear-gradient(180deg, #000 55%, transparent 100%);
}
.intro-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 30%;
  animation: intro-drift 14s ease-in-out infinite alternate;
}
.intro-photo[hidden] { display: none; }
@keyframes intro-drift { from { transform: scale(1.04) translateY(0); } to { transform: scale(1.12) translateY(-2%); } }
.intro-says {
  position: absolute;
  left: var(--gutter);
  right: var(--gutter);
  bottom: 26%;
  margin: 0;
  padding: 10px 14px;
  max-width: 22em;
  border-radius: 16px 16px 16px 4px;
  background: rgba(19, 16, 14, 0.72);
  backdrop-filter: blur(8px);
  color: var(--text);
  font: italic 400 19px/1.3 var(--serif);
  box-shadow: inset 0 0 0 1px rgba(255, 236, 220, 0.12);
  animation: says-in 700ms 500ms var(--ease-out) both;
}
@keyframes says-in { from { opacity: 0; transform: translateY(8px); } }
.intro-body { margin-top: -8vh; position: relative; }
@media (min-width: 900px) {
  .intro-hero { height: 60vh; max-width: 560px; margin-left: auto; margin-right: auto; border-radius: 0 0 28px 28px; }
}
@media (prefers-reduced-motion: reduce) { .intro-photo, .intro-says { animation: none; } }

/* ── Jessica's chat ───────────────────────────────────────────────────────── */

.chat-moment { padding: 0 !important; }
.chat {
  width: 100%;
  max-width: 560px;
  height: 100dvh;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  background: #000;
  color: #f2f2f2;
  font: 400 15.5px/1.35 -apple-system, "SF Pro Text", system-ui, var(--sans);
}
body[data-moment="chat"] .topbar { display: none; }
body[data-moment="chat"] .ambient { opacity: 0; }
.chat-head {
  flex: none;
  padding: calc(14px + env(safe-area-inset-top)) 12px 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  background: rgba(22, 22, 24, 0.94);
  border-bottom: 1px solid #1c1c1e;
}
.chat-head img { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; }
.chat-head b { font-size: 14px; font-weight: 600; }
.chat-head small { color: #8e8e93; font-size: 12px; }
.chat-thread { flex: 1; overflow-y: auto; padding: 14px 12px 8px; display: flex; flex-direction: column; gap: 4px; }
.msg { margin: 0; max-width: 78%; padding: 8px 13px; border-radius: 19px; animation: msg-in 260ms var(--ease-out); overflow-wrap: anywhere; }
.msg.her { align-self: flex-start; background: #262629; border-bottom-left-radius: 6px; }
.msg.me { align-self: flex-end; background: #2f6df6; color: #fff; border-bottom-right-radius: 6px; margin-top: 6px; }
.msg.her + .msg.me, .msg.me + .msg.her { margin-top: 8px; }
.msg.photo { padding: 0; width: 46%; max-width: 220px; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 18px; }
.msg.her.photo { border-bottom-left-radius: 6px; }
.msg.typing { display: flex; gap: 4px; padding: 12px 14px; }
.msg.typing i { width: 7px; height: 7px; border-radius: 50%; background: #8e8e93; animation: dot 1.2s infinite; }
.msg.typing i:nth-child(2) { animation-delay: 0.2s; }
.msg.typing i:nth-child(3) { animation-delay: 0.4s; }
@keyframes dot { 50% { opacity: 0.25; } }
@keyframes msg-in { from { opacity: 0; transform: translateY(6px) scale(0.98); } }
.msg.rating { width: 82%; max-width: 340px; padding: 12px 14px; background: #161618; box-shadow: inset 0 0 0 1px #2c2c30; display: grid; gap: 9px; }
.rate-row { display: grid; grid-template-columns: 72px 1fr 38px; align-items: center; gap: 10px; font-size: 13.5px; color: #c7c7cc; }
.rate-row b { color: #f2f2f2; font-size: 12.5px; text-align: right; font-variant-numeric: tabular-nums; }
.rate-bar { height: 6px; border-radius: 4px; background: #2c2c30; overflow: hidden; }
.rate-bar i { display: block; height: 100%; width: var(--p, 0%); background: #f2f2f2; border-radius: inherit; }
.rate-rank { display: flex; justify-content: space-between; align-items: baseline; padding-top: 8px; border-top: 1px solid #2c2c30; }
.rate-rank b { font: 500 20px/1 var(--serif); }
.rate-rank small { color: #8e8e93; font-size: 12px; }
.chat-replies { flex: none; display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; padding: 4px 12px 8px; }
.chat-replies:empty { display: none; }
.reply { padding: 9px 15px; border: 0; border-radius: 18px; background: none; box-shadow: inset 0 0 0 1px #3a3a3e; color: #f2f2f2; font: 500 14.5px/1.2 -apple-system, system-ui, var(--sans); }
.reply.primary { background: #f2f2f2; color: #000; box-shadow: none; font-weight: 600; }
.reply:active { transform: scale(0.97); }
.chat-bar { flex: none; display: flex; align-items: center; gap: 8px; padding: 6px 10px calc(10px + env(safe-area-inset-bottom)); }
.chat-photo { flex: none; width: 36px; height: 36px; border-radius: 50%; background: #1c1c1e; display: grid; place-items: center; cursor: pointer; }
.chat-photo svg { width: 20px; height: 20px; fill: none; stroke: #c7c7cc; stroke-width: 1.6; stroke-linejoin: round; }
#chat-input { flex: 1; min-width: 0; padding: 9px 14px; border: 0; border-radius: 19px; background: none; box-shadow: inset 0 0 0 1px #3a3a3e; color: #f2f2f2; font: 400 16px/1.2 -apple-system, system-ui, var(--sans); outline: 0; }
#chat-input::placeholder { color: #6e6e73; }
.chat-send { flex: none; width: 34px; height: 34px; border: 0; border-radius: 50%; background: #2f6df6; color: #fff; display: grid; place-items: center; }
.chat-send svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
@media (prefers-reduced-motion: reduce) { .msg, .msg.typing i { animation: none; } }

/* ── Desktop: Jessica on the left, the pitch on the right; her chat as a phone-sized card ── */

@media (min-width: 900px) {
  #m-intro:not([hidden]) {
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: clamp(32px, 5vw, 72px);
    padding-inline: clamp(32px, 6vw, 96px);
  }
  #m-intro .intro-hero {
    flex: 0 0 auto;
    width: min(440px, 38vw);
    height: min(78vh, 720px);
    margin: 0;
    border-radius: 28px;
    -webkit-mask-image: none;
    mask-image: none;
    box-shadow: 0 40px 80px -40px rgba(0, 0, 0, 0.9);
  }
  #m-intro .intro-says { bottom: 22px; }
  #m-intro .intro-body { flex: 0 1 560px; margin: 0; }
  #m-intro .line-hero { font-size: clamp(44px, 4.4vw, 68px); }

  .chat-moment:not([hidden]) { justify-content: center; align-items: center; }
  .chat {
    height: min(860px, 92vh);
    max-width: 420px;
    border-radius: 34px;
    overflow: hidden;
    box-shadow: 0 50px 100px -40px rgba(0, 0, 0, 0.9), 0 0 0 1px rgba(255, 255, 255, 0.06);
  }
  .chat-head { padding-top: 16px; }
}

/* Jessica's face beside her name wherever she "speaks" */
.speaker-face { width: 22px; height: 22px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 1.5px rgba(227, 176, 111, 0.6); }

/* The four things she helps with, under the landing pitch */
.themes { margin: 14px 0 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.themes li { padding: 5px 12px; border-radius: 999px; background: rgba(227, 176, 111, 0.1); box-shadow: inset 0 0 0 1px rgba(227, 176, 111, 0.35); color: var(--text); font-size: 13.5px; font-weight: 600; }

/* Phones: a slightly shorter photo so "Send her a selfie" is on the first screen */
@media (max-width: 899px) {
  #m-intro .intro-hero { height: 46vh; min-height: 320px; }
  #m-intro .intro-photo { object-position: 50% 6%; }
  #m-intro .intro-says { bottom: 16%; font-size: 16.5px; padding: 8px 12px; }
  #m-intro .intro-body { margin-top: -3vh; }
  #m-intro .line-hero { font-size: clamp(34px, 9vw, 44px); }
  #m-intro .themes { margin-top: 10px; }
}
