/* Wickling. Colours, type and controls come from the app: Theme.swift (the hollow's
   night and day palettes, Ink.glow), rounded system type for every control, and the serif
   headlines of the App Store screenshots. */

:root {
  --page: #141a2c;
  --page-2: #182237;
  --cream: #f6e7cb;
  --text: #eaf2ef;
  --soft: #9fb6b8;
  --line: rgba(234, 242, 239, 0.14);
  --glow: #ffc57a;
  --amber: #b5650a;
  --moss: #3e8c63;
  --coral: #d9603f;
  --serif: ui-serif, "New York", "Iowan Old Style", Georgia, serif;
  --round: ui-rounded, "SF Pro Rounded", -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  --safe-b: env(safe-area-inset-bottom, 0px);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--page);
  color: var(--text);
  font: 17px/1.5 var(--round);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: var(--glow); }
button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid var(--glow); outline-offset: 3px; border-radius: 12px; }
[hidden] { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
svg { width: 1em; height: 1em; flex: none; }

/* ───────── Hero: the hollow fills the phone ───────── */

.hero { position: relative; }

.hero-copy {
  position: absolute;
  inset: 0 0 auto 0;
  z-index: 3;
  padding: max(12px, env(safe-area-inset-top)) 16px 0;
  pointer-events: none;
  color: var(--cream);
}
.hero-copy a { pointer-events: auto; }
.brand-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.brand { display: flex; align-items: center; gap: 10px; color: inherit; text-decoration: none; font-weight: 600; font-size: 17px; min-height: 44px; }
.brand img { border-radius: 9px; box-shadow: 0 1px 6px rgba(0, 0, 0, 0.35); }
.badge { display: inline-block; border-radius: 9px; }
.badge img { height: 40px; width: auto; }
.hero h1 {
  font: 500 clamp(30px, 8.4vw, 36px)/1.06 var(--serif);
  letter-spacing: -0.01em;
  margin: 14px 0 6px;
  text-wrap: balance;
  text-shadow: 0 1px 18px rgba(10, 14, 30, 0.45);
}
.lede { margin: 0; font-size: 15px; line-height: 1.4; color: rgba(246, 231, 203, 0.86); max-width: 30em; }
.lede-more, .lede-try, .hero-copy .facts { display: none; }

.hero:has(.stage[data-palette="day"]) .hero-copy { color: #18292f; }
.hero:has(.stage[data-palette="day"]) .hero-copy h1 { text-shadow: 0 1px 14px rgba(255, 255, 255, 0.35); }
.hero:has(.stage[data-palette="day"]) .lede { color: rgba(24, 41, 47, 0.78); }

.device { position: relative; }

.stage {
  --s-text: #eaf2ef;
  --s-soft: #9fb6b8;
  --s-glass: rgba(23, 48, 58, 0.48);
  --s-glass-line: rgba(234, 242, 239, 0.16);
  --s-card: #17303a;
  --s-accent: var(--glow);
  --bar-top: calc(max(12px, env(safe-area-inset-top)) + 180px);
  position: relative;
  height: 100vh;
  height: 100svh;
  min-height: 600px;
  max-height: 940px;
  overflow: hidden;
  background: #0e1d25 linear-gradient(#2f3b72, #3e6090 40%, #2a3d55 66%, #1d1c29 77%, #131a25);
  color: var(--s-text);
  isolation: isolate;
}
.stage[data-palette="day"] {
  --s-text: #18292f;
  --s-soft: #56696c;
  --s-glass: rgba(255, 249, 238, 0.62);
  --s-glass-line: rgba(255, 255, 255, 0.75);
  --s-card: #fffaf2;
  --s-accent: var(--amber);
  background: #dce8dd linear-gradient(#b3d6d6, #ece9dc 40%, #c4d8cc 66%, #ead7b1 78%, #ecdcc0);
}

/* Until the first frame is drawn, the stage shows only the hollow's own colours, then the
   wickling fades in: no stand-in picture that could disagree with the scene. */
#hollow {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.7s ease;
}
.stage.live #hollow { opacity: 1; }
/* Without WebGL: a still of the resting wickling, framed where the live one would be. */
.stage > .poster {
  position: absolute;
  left: 50%;
  top: var(--poster-top, 30%);
  height: var(--poster-h, 50%);
  width: auto;
  max-width: none;
  transform: translateX(-50%);
  -webkit-mask-image: radial-gradient(closest-side, #000 72%, transparent);
  mask-image: radial-gradient(closest-side, #000 72%, transparent);
  pointer-events: none;
}
.stage::after {
  /* The caption scrim, as in HollowView: clear over the wickling, deepening under the words. */
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 46%;
  background: linear-gradient(to bottom, rgba(14, 24, 34, 0), rgba(14, 24, 34, 0.55) 46%, rgba(14, 24, 34, 0.82));
  pointer-events: none;
  z-index: 1;
}
.stage[data-palette="day"]::after {
  background: linear-gradient(to bottom, rgba(240, 226, 196, 0), rgba(240, 226, 196, 0.6) 46%, rgba(238, 225, 199, 0.9));
}

.stage-bar {
  position: absolute;
  z-index: 4;
  left: 16px;
  right: 16px;
  top: var(--bar-top);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}
.pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 36px;
  padding: 0 13px;
  border-radius: 999px;
  border: 1px solid var(--s-glass-line);
  background: var(--s-glass);
  -webkit-backdrop-filter: blur(14px) saturate(1.3);
  backdrop-filter: blur(14px) saturate(1.3);
  color: var(--s-text);
  font-size: 13px;
  font-weight: 550;
  white-space: nowrap;
}
.preview-pill { min-height: 44px; min-width: 0; overflow: hidden; }
.preview-pill .short { display: none; }
.preview-pill svg { color: var(--s-accent); font-size: 15px; }
.count-pill { min-height: 44px; min-width: 64px; font-size: 16px; font-weight: 650; font-variant-numeric: tabular-nums; justify-content: center; }
.count-pill:disabled { cursor: default; }
.count-pill.bump { animation: bump 0.5s cubic-bezier(.3,1.6,.5,1); }
@keyframes bump { 40% { transform: scale(1.15); } }

.wickling-hit {
  position: absolute;
  z-index: 2;
  left: 50%;
  top: 34%;
  width: min(64vw, 280px);
  height: 40%;
  transform: translateX(-50%);
  border: 0;
  background: transparent;
  border-radius: 45%;
  -webkit-tap-highlight-color: transparent;
}

/* Keepsake beads, hanging in a loose arc upper left (BeadShelf in HollowView). */
.shelf {
  list-style: none;
  margin: 0;
  padding: 0;
  position: absolute;
  z-index: 4;
  left: 10px;
  top: calc(var(--bar-top) + 34px);
  height: 64px;
  width: 240px;
  pointer-events: none;
}
.shelf li { position: absolute; left: 0; top: 0; pointer-events: auto; }
.bead {
  --c: #ffb36b;
  position: relative;
  width: 44px;
  height: 44px;
  border: 0;
  padding: 0;
  background: transparent;
  border-radius: 50%;
  display: grid;
  place-items: center;
  -webkit-tap-highlight-color: transparent;
  animation: bead-drift 5s ease-in-out infinite;
  animation-delay: calc(var(--i) * -1.7s);
}
.bead::before { content: ""; position: absolute; width: 28px; height: 28px; border-radius: 50%; background: var(--c); opacity: 0.42; filter: blur(7px); }
.bead::after { content: ""; width: 11px; height: 11px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, rgba(255,255,255,0.85) 0 18%, var(--c) 30%); box-shadow: 0 0 10px var(--c); }
.bead.new { animation: bead-arrive 1.1s cubic-bezier(.2,.9,.3,1.2) both, bead-drift 5s ease-in-out 1.1s infinite; }
.bead.new::before { animation: bead-halo 1.6s ease-out 2; }
.bead.calling::before { animation: bead-halo 1.6s ease-out infinite; }
@keyframes bead-drift { 50% { transform: translateY(-3px); } }
@keyframes bead-arrive {
  0% { transform: translate(var(--fx), var(--fy)) scale(0.2); opacity: 0; }
  30% { opacity: 1; }
  100% { transform: none; }
}
@keyframes bead-halo { 0% { transform: scale(1); opacity: 0.9; } 100% { transform: scale(2.6); opacity: 0; } }

.bead-hint {
  position: absolute;
  z-index: 5;
  left: 62px;
  top: calc(var(--bar-top) + 59px);
  white-space: nowrap;
  margin: 0;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  color: #221703;
  background: var(--glow);
  box-shadow: 0 4px 18px rgba(255, 197, 122, 0.35);
  pointer-events: none;
  animation: hint-in 0.5s ease both;
}
.bead-hint::before { content: ""; position: absolute; left: -4px; top: calc(50% - 5px); width: 10px; height: 10px; background: inherit; transform: rotate(45deg); }
@keyframes hint-in { from { opacity: 0; transform: translateY(6px); } }

/* Bottom dock: caption, offer, starters, composer. */
.dock {
  position: absolute;
  z-index: 3;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 0 16px calc(12px + var(--safe-b));
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 10px;
}
.caption { min-height: 96px; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 9px; text-align: center; }
.cue {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin: 0;
  padding: 4px 11px;
  border-radius: 999px;
  background: var(--s-glass);
  border: 1px solid var(--s-glass-line);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  color: var(--s-soft);
  font-size: 12.5px;
  font-weight: 650;
}
.cue i { width: 6px; height: 6px; border-radius: 50%; background: var(--s-accent); }
.stage[data-phase="thinking"] .cue i { animation: cue-pulse 0.9s ease-in-out infinite; }
@keyframes cue-pulse { 50% { opacity: 0.3; } }
.said {
  margin: 0;
  font-size: 21px;
  line-height: 1.3;
  font-weight: 600;
  letter-spacing: -0.005em;
  max-width: 22em;
  text-wrap: balance;
  transition: opacity 0.35s ease;
}
.said.heard { font-weight: 500; color: var(--s-soft); }
.said.dim { opacity: 0.55; }
.said.hint { font-size: 15px; font-weight: 550; color: var(--s-soft); }
.said .w { opacity: 0; animation: word-in 0.32s ease forwards; }
@keyframes word-in { to { opacity: 1; } }
.said.crisis { font-size: 17px; font-weight: 600; text-wrap: pretty; }
.helpline { display: block; margin-top: 8px; font-size: 15px; color: var(--s-accent); }

.offer {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 8px 7px 16px;
  border-radius: 999px;
  background: var(--s-glass);
  border: 1px solid var(--s-glass-line);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  animation: hint-in 0.4s ease both;
}
.offer p { margin: 0; flex: 1; font-size: 14.5px; font-weight: 550; line-height: 1.25; }
.offer div { display: flex; gap: 4px; }
.ghost { border: 0; background: transparent; color: var(--s-soft); min-height: 44px; padding: 0 12px; border-radius: 999px; font-size: 14.5px; }
.lit { border: 0; background: var(--glow); color: #221703; font-weight: 700; min-height: 40px; padding: 0 18px; border-radius: 999px; font-size: 14.5px; }

.dock:has(.offer:not([hidden])) .chips, .dock:has(.offer:not([hidden])) .nudge { display: none; }
.nudge { margin: 0 2px -2px; font-size: 13px; font-weight: 600; color: var(--s-soft); }

.chips {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  margin: 0 -16px;
  padding: 2px 16px;
  scrollbar-width: none;
  scroll-snap-type: x proximity;
}
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 44px;
  padding: 0 15px;
  border-radius: 999px;
  border: 1px solid var(--s-glass-line);
  background: var(--s-glass);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  color: var(--s-text);
  font-size: 15px;
  font-weight: 550;
  scroll-snap-align: start;
  transition: transform 0.15s ease;
}
.chip svg { color: var(--s-soft); font-size: 14px; }
.chip.kept svg, .chip.plan svg { color: var(--s-accent); }
.chip:active { transform: scale(0.96); }
.chip:disabled { opacity: 0.5; }

.composer {
  display: flex;
  align-items: center;
  gap: 6px;
  min-height: 54px;
  padding: 5px 6px 5px 14px;
  border-radius: 999px;
  background: var(--s-glass);
  border: 1px solid var(--s-glass-line);
  -webkit-backdrop-filter: blur(18px) saturate(1.2);
  backdrop-filter: blur(18px) saturate(1.2);
}
.quiet { display: grid; place-items: center; color: var(--s-accent); font-size: 19px; }
.composer input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  font-size: 17px;
  padding: 8px 4px;
  outline: none;
  caret-color: var(--s-accent);
}
.composer input::placeholder { color: var(--s-soft); opacity: 0.85; }
.composer:focus-within { border-color: color-mix(in srgb, var(--s-accent) 60%, transparent); }
.send {
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--glow);
  color: #3a2406;
  font-size: 19px;
  transition: opacity 0.2s ease, transform 0.15s ease;
}
.send:disabled { opacity: 0.38; cursor: default; }
.send:not(:disabled):active { transform: scale(0.92); }
.fine { margin: 0; text-align: center; font-size: 12px; line-height: 1.35; color: var(--s-soft); }
.fine a { color: inherit; text-underline-offset: 2px; }

/* Sheets inside the hollow. */
.sheet {
  position: absolute;
  z-index: 8;
  left: 8px;
  right: 8px;
  bottom: calc(8px + var(--safe-b));
  max-height: calc(100% - 96px);
  overflow: auto;
  border-radius: 28px;
  background: var(--s-card);
  background: color-mix(in srgb, var(--s-card) 92%, transparent);
  -webkit-backdrop-filter: blur(24px);
  backdrop-filter: blur(24px);
  border: 1px solid var(--s-glass-line);
  box-shadow: 0 -12px 50px rgba(0, 0, 0, 0.35);
  color: var(--s-text);
  animation: sheet-up 0.42s cubic-bezier(.2,.9,.25,1) both;
}
.sheet[hidden] { display: none; }
@keyframes sheet-up { from { transform: translateY(40px); opacity: 0; } }
.sheet header { display: flex; align-items: center; justify-content: space-between; padding: 10px 10px 4px 20px; }
.sheet h2 { margin: 0; font-size: 20px; color: var(--s-text); }
.done { border: 0; background: var(--s-glass); border: 1px solid var(--s-glass-line); min-height: 44px; padding: 0 18px; border-radius: 999px; font-weight: 650; }
.sheet-body { padding: 4px 20px 20px; }
.sheet-body > p { margin: 0 0 12px; font-size: 15.5px; line-height: 1.45; }
.ks-kind { display: flex; align-items: center; gap: 9px; font-size: 14px !important; font-weight: 650; color: var(--s-soft); margin-bottom: 14px !important; }
.ks-kind i { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--c); color: #221703; box-shadow: 0 0 14px var(--c); font-size: 13px; }
.group-label { display: block; margin: 0 0 6px; font-size: 12.5px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--s-soft); }
#ks-text {
  width: 100%;
  resize: none;
  border-radius: 14px;
  border: 1px solid var(--s-glass-line);
  background: rgba(127, 127, 127, 0.08);
  padding: 11px 13px;
  font-size: 17px;
  line-height: 1.35;
  margin-bottom: 12px;
}
.ks-checkin { border-radius: 14px; background: rgba(127, 127, 127, 0.08); padding: 4px 13px; margin-bottom: 16px; }
.ks-checkin[hidden] { display: none; }
.toggle { display: flex; align-items: center; justify-content: space-between; min-height: 46px; font-size: 16px; cursor: pointer; }
.toggle + .ks-when, .ks-when + .toggle { border-top: 1px solid var(--s-glass-line); }
.toggle input { appearance: none; -webkit-appearance: none; width: 50px; height: 30px; border-radius: 999px; background: rgba(127,127,127,0.35); position: relative; transition: background 0.2s ease; order: 2; margin: 0; }
.toggle input::after { content: ""; position: absolute; top: 2px; left: 2px; width: 26px; height: 26px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,0.3); transition: transform 0.2s ease; }
.toggle input:checked { background: var(--moss); }
.toggle input:checked::after { transform: translateX(20px); }
.ks-when { display: flex; align-items: center; gap: 8px; margin: 0; min-height: 40px; color: var(--s-accent); font-weight: 600; font-size: 15px; }
.ks-when[hidden] { display: none; }
.ks-source { border-radius: 14px; background: rgba(127, 127, 127, 0.08); padding: 4px 13px; margin-bottom: 12px; }
.ks-source p { margin: 0; display: flex; justify-content: space-between; gap: 14px; padding: 10px 0; font-size: 15px; }
.ks-source p + p { border-top: 1px solid var(--s-glass-line); }
.ks-source span { color: var(--s-soft); flex: none; }
.ks-source q { text-align: right; }
.ks-source q::before { content: "\201C"; } .ks-source q::after { content: "\201D"; }
.ks-rows { list-style: none; margin: 0 0 10px; padding: 4px 0; border-radius: 16px; background: rgba(127, 127, 127, 0.08); }
.ks-rows li + li button { border-top: 1px solid var(--s-glass-line); }
.ks-rows button { width: 100%; display: flex; gap: 12px; align-items: flex-start; text-align: left; border: 0; background: transparent; padding: 12px 14px; min-height: 56px; }
.ks-rows i { flex: none; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--c); color: #221703; box-shadow: 0 0 14px var(--c); font-size: 14px; }
.ks-rows span { display: flex; flex-direction: column; gap: 2px; }
.ks-rows b { font-weight: 550; font-size: 16px; line-height: 1.3; }
.ks-rows small { font-size: 13px; color: var(--s-soft); }
.ks-rows em { font-style: normal; font-size: 13.5px; font-weight: 600; color: var(--s-accent); }
.ks-foot { font-size: 13px !important; color: var(--s-soft); }
.ks-note { font-size: 13px !important; color: var(--s-soft); }
.forget { width: 100%; min-height: 46px; border-radius: 14px; border: 0; background: rgba(217, 96, 63, 0.14); color: var(--coral); font-weight: 650; }

/* The conversion moment. */
.promise { padding: 18px 18px 14px; text-align: center; }
.notif {
  display: flex;
  gap: 11px;
  align-items: flex-start;
  text-align: left;
  padding: 11px 13px;
  border-radius: 22px;
  background: rgba(245, 245, 247, 0.16);
  border: 1px solid var(--s-glass-line);
  margin-bottom: 16px;
  animation: notif-in 0.7s cubic-bezier(.2,.9,.25,1.1) 0.15s both;
}
.stage[data-palette="day"] .notif { background: rgba(255, 255, 255, 0.7); }
.notif[hidden] { display: none; }
.notif img { border-radius: 9px; }
.notif div { flex: 1; min-width: 0; }
.notif p { margin: 0; font-size: 15px; line-height: 1.3; }
.notif-head { display: flex; flex-wrap: wrap; justify-content: space-between; column-gap: 8px; }
.notif-head b { white-space: nowrap; }
.notif-head time { color: var(--s-soft); font-size: 13px; white-space: nowrap; }
@keyframes notif-in { from { transform: translateY(-14px) scale(0.96); opacity: 0; } }
.callback { margin: 0 0 14px; padding: 12px 14px; border-radius: 18px; background: rgba(127,127,127,0.1); font-size: 16px; font-weight: 600; line-height: 1.35; }
.callback[hidden] { display: none; }
.callback small { display: block; font-size: 12.5px; font-weight: 600; color: var(--s-soft); margin-bottom: 4px; }
.promise h2 { font: 500 25px/1.12 var(--serif); color: var(--s-text); margin: 0 0 8px; text-wrap: balance; }
.promise > p { margin: 0 auto 14px; max-width: 26em; font-size: 15px; line-height: 1.4; color: var(--s-soft); }
.promise .badge { margin: 2px auto 8px; }
.promise .badge img { height: 50px; }
.promise .promise-fine { font-size: 12px; margin-bottom: 2px; }
.keep { margin-top: 2px; }

/* ───────── Below the hero ───────── */

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 680px; }
.band, .feature, .finale { padding: 64px 0; }
h2 { font: 500 clamp(28px, 7.4vw, 44px)/1.08 var(--serif); color: var(--cream); margin: 0 0 16px; letter-spacing: -0.01em; text-wrap: balance; }
.feature p, .band p, .finale p { color: #c9d3d6; margin: 0 0 14px; max-width: 34em; }
.preview-note { background: linear-gradient(var(--page), var(--page-2)); padding-top: 56px; }
.preview-note h2 { font-size: clamp(24px, 6vw, 32px); }
.preview-note em { font-style: normal; color: var(--glow); }

.split { display: grid; gap: 28px; }
.phone {
  margin: 0 auto;
  width: min(78vw, 320px);
  border-radius: 44px;
  padding: 7px;
  background: linear-gradient(160deg, #4a5268, #22283a 40%, #3a4155);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(255,255,255,0.08) inset;
}
.phone img { width: 100%; height: auto; border-radius: 38px; }
.aside { color: var(--glow) !important; font-weight: 600; }

.promise-band { background: radial-gradient(90% 60% at 50% 45%, #1f2b45, var(--page) 75%); }
.tag { display: inline-flex !important; align-items: center; gap: 8px; padding: 7px 14px; border-radius: 999px; border: 1px solid var(--line); color: var(--cream) !important; font-size: 14px; font-weight: 600; }
.tag svg { color: var(--glow); }
.points { list-style: none; padding: 0; margin: 8px 0 0; display: grid; gap: 14px; }
.points li { position: relative; padding-left: 26px; color: #c9d3d6; }
.points li::before { content: ""; position: absolute; left: 4px; top: 0.55em; width: 9px; height: 9px; border-radius: 50%; background: var(--glow); box-shadow: 0 0 10px var(--glow); }

.portrait-wrap {
  position: relative;
  margin: 0 auto;
  width: min(86vw, 380px);
  aspect-ratio: 4 / 5;
  border-radius: 32px;
  overflow: hidden;
  background: #0e1d25;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.4);
}
.portrait-wrap { background: #0e1d25 linear-gradient(#2f3b72, #3e6090 45%, #1d2a3c); }
.portrait-wrap canvas, .portrait-wrap .poster { position: absolute; inset: 0; width: 100%; height: 100%; }
.portrait-wrap canvas { opacity: 0; transition: opacity 0.7s ease; }
.portrait-wrap.live canvas { opacity: 1; }
.portrait-wrap .poster { object-fit: cover; }
.look-name { position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%); margin: 0; padding: 8px 18px 9px; border-radius: 18px; text-align: center; color: #fff; white-space: nowrap; background: rgba(14, 24, 34, 0.5); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.look-name b { display: block; font: 500 21px/1.15 var(--serif); }
.look-name span { font-size: 13.5px; opacity: 0.85; }
.looks .copy { order: -1; }
.looks-stage { display: flex; flex-direction: column; align-items: center; }
.swatches { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 20px 0 14px; }
.swatch {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 2px solid transparent;
  background: radial-gradient(circle at 50% 30%, #fff 0 5%, var(--w) 9% 15%, transparent 30%), var(--b);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.25) inset;
  outline-offset: 3px;
}
.swatch[aria-checked="true"] { border-color: var(--page); box-shadow: 0 0 0 2px var(--glow), 0 0 18px rgba(255, 197, 122, 0.45); }
.daynight { display: inline-flex; padding: 4px; border-radius: 999px; background: rgba(255,255,255,0.06); border: 1px solid var(--line); }
.daynight button { display: inline-flex; align-items: center; gap: 7px; min-height: 44px; padding: 0 16px; border: 0; border-radius: 999px; background: transparent; color: var(--soft); font-weight: 600; font-size: 15px; }
.daynight button[aria-checked="true"] { background: var(--glow); color: #221703; }

/* Questions: quiet rows between hairlines, each opened by a small flame-coloured mark. */
.faq { padding-top: 24px; }
.faq h2 { font-size: clamp(24px, 6vw, 32px); margin-bottom: 10px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-of-type { border-top: 1px solid var(--line); }
.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 56px;
  padding: 12px 2px;
  list-style: none;
  cursor: pointer;
  font: 500 19px/1.3 var(--serif);
  color: var(--cream);
  -webkit-tap-highlight-color: transparent;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  flex: none;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background:
    linear-gradient(var(--glow), var(--glow)) center / 11px 2px no-repeat,
    linear-gradient(var(--glow), var(--glow)) center / 2px 11px no-repeat;
  transition: transform 0.25s ease, background-color 0.25s ease;
}
.faq details[open] summary::after { transform: rotate(45deg); background-color: rgba(255, 197, 122, 0.12); }
.faq summary:focus-visible { outline-offset: 2px; }
.faq .faq-a { padding: 0 2px 10px; }
.faq .faq-a p { color: #c9d3d6; margin: 0 0 14px; max-width: 34em; }
@media (prefers-reduced-motion: reduce) {
  .faq summary::after { transition: none; }
}

.finale { text-align: center; padding-bottom: 80px; background: radial-gradient(80% 60% at 50% 30%, rgba(255, 179, 71, 0.12), transparent 70%); }
.finale .narrow { display: flex; flex-direction: column; align-items: center; }
.finale-icon { border-radius: 20px; box-shadow: 0 10px 40px rgba(255, 179, 71, 0.25); margin-bottom: 22px; }
.finale p { margin-left: auto; margin-right: auto; }
.finale .badge { margin: 8px 0 14px; }
.finale .badge img { height: 55px; }
.facts { font-size: 14px; color: var(--soft) !important; }

.foot { border-top: 1px solid var(--line); padding: 28px 0 calc(32px + var(--safe-b)); font-size: 13px; color: var(--soft); }
.foot nav { display: flex; gap: 22px; margin-bottom: 10px; }
.foot nav a { color: var(--cream); text-decoration: none; font-size: 15px; min-height: 44px; display: inline-flex; align-items: center; }
.foot p { margin: 0; max-width: 60em; }
.foot .more { display: block; margin: 4px 0 18px; }
.foot .more h2 { font: 600 13px/1.4 var(--round); letter-spacing: 0.02em; color: var(--soft); margin: 0; }
.foot .more ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; column-gap: 20px; }
.foot .more a { color: var(--soft); text-decoration: none; font-size: 14px; min-height: 44px; display: inline-flex; align-items: center; }
.foot .more a:hover { color: var(--cream); }

/* Small phones. */
@media (max-width: 359px) {
  .hero h1 { font-size: 27px; }
  .lede { font-size: 14px; }
  .badge-hero img { height: 40px; }
  .brand span { display: none; }
  .said { font-size: 19px; }
  .chip { font-size: 14px; padding: 0 12px; }
  .preview-pill .long { display: none; }
  .preview-pill .short { display: inline; }
  .lede { display: none; }
  .stage { --bar-top: calc(max(12px, env(safe-area-inset-top)) + 136px); }
}

/* Short phones: tighten so the starters and composer still fit. */
@media (max-height: 700px) and (max-width: 959px) {
  .lede { display: none; }
  .stage { --bar-top: calc(max(12px, env(safe-area-inset-top)) + 140px); }
  .caption { min-height: 76px; }
  .said { font-size: 19px; }
}

/* ───────── Desktop: copy beside a phone ───────── */
@media (min-width: 960px) {
  body { font-size: 18px; }
  main { background: radial-gradient(900px 700px at 74% 30%, rgba(255, 179, 71, 0.09), transparent 70%) no-repeat; }
  .hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 410px;
    gap: 72px;
    align-items: center;
    max-width: 1120px;
    margin: 0 auto;
    padding: 40px 40px;
    min-height: min(100vh, 980px);
  }
  .hero-copy { position: static; padding: 0; pointer-events: auto; color: var(--cream) !important; }
  .hero:has(.stage[data-palette="day"]) .hero-copy h1 { text-shadow: none; }
  .hero:has(.stage[data-palette="day"]) .lede { color: rgba(246, 231, 203, 0.86); }
  .hero h1 { font-size: 64px; margin: 0 0 22px; text-shadow: none; }
  .lede { font-size: 21px; line-height: 1.45; max-width: 24em; }
  .lede-more { display: inline; }
  .lede-try { display: block; margin: 18px 0 30px; color: var(--glow); font-weight: 600; font-size: 17px; }
  .hero-copy .facts { display: block; margin-top: 16px; }
  .hero-copy { display: flex; flex-direction: column; align-items: flex-start; }
  .brand-row { display: contents; }
  .brand { order: 0; margin-bottom: 40px; }
  .hero h1 { order: 1; }
  .lede { order: 2; }
  .lede-try { order: 3; }
  .badge-hero { order: 4; }
  .badge-hero img { height: 55px; }
  .hero-copy .facts { order: 5; }
  .device {
    width: 410px;
    border-radius: 58px;
    padding: 10px;
    background: linear-gradient(160deg, #4a5268, #1f2536 40%, #3a4155);
    box-shadow: 0 50px 120px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(255,255,255,0.08) inset;
  }
  .stage { height: clamp(640px, calc(100vh - 110px), 800px); min-height: 0; border-radius: 48px; }
  .stage { --bar-top: 18px; }
  .split { grid-template-columns: 1fr 1fr; align-items: center; gap: 72px; }
  .flip .split > :first-child { order: 2; }
  .looks .copy { order: 0; }
  .band, .feature, .finale { padding: 96px 0; }
  .phone { width: 340px; }
}
