/* Public site. System: website/DESIGN.md (lilac page, violet ink, violet wash, yellow for the action). */
*, *::before, *::after { box-sizing: border-box; }
:root {
  /* names kept from the first build: n950 page, n900 panel, n800 raised, n700 line, haze secondary text, moon text, tungsten = action */
  --n950: #f8f6fd; --n900: #ffffff; --n800: #efebfa; --n700: #dfd8f3;
  --haze: #645a85; --moon: #1d1433;
  --tungsten: #ffd23f; --tungsten-deep: #f2bf1d; --on-tungsten: #1d1433; --live: #1a9d5c;
  --w1: #7c5cff; --w2: #b9a6ff; --w3: #4a2fbf; --wash: .9;
  --chip: rgba(255, 255, 255, .72); --chip-line: rgba(40, 20, 110, .15); --edge: #b5abd6; --shadow: rgba(40, 20, 110, .28);
  --sans: "Host Grotesk", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --phone: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --out: cubic-bezier(.16, 1, .3, 1);
  --gutter: clamp(20px, 5vw, 72px);
  color-scheme: light;
}
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--n950); color: var(--moon); font: 400 1.0625rem/1.6 var(--sans); -webkit-font-smoothing: antialiased; }
h1, h2, h3, p, dl, dd, fieldset, legend { margin: 0; padding: 0; }
fieldset { border: 0; min-width: 0; }
button, input, textarea { font: inherit; color: inherit; }
[hidden] { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 50; background: var(--tungsten); color: var(--on-tungsten); padding: 10px 14px; border-radius: 10px; text-decoration: none; font-weight: 500; }
.skip:focus { top: 12px; }
:focus-visible { outline: 2px solid var(--moon); outline-offset: 3px; }

/* ── Bar ─────────────────────────────────────────────────────────── */
.bar { position: fixed; inset: 0 0 auto 0; z-index: 20; display: flex; align-items: center; justify-content: space-between;
  padding: max(18px, env(safe-area-inset-top)) var(--gutter) 18px; transition: background-color .4s var(--out), border-color .4s var(--out);
  border-bottom: 1px solid transparent; }
.bar.solid { background: var(--n950); border-bottom-color: var(--n700); }
.mark { font: 600 1.25rem/1 var(--sans); letter-spacing: -.02em; color: var(--moon); text-decoration: none; padding: 8px 0; }
.bar-nav { display: flex; align-items: center; gap: 18px; }
.nav-link { font: 500 .9375rem/1 var(--sans); color: var(--haze); text-decoration: none; transition: color .2s var(--out); }
.nav-link:hover { color: var(--moon); }

/* ── Buttons: sharp, outside the phone ───────────────────────────── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 22px; border-radius: 10px;
  border: 1px solid transparent; font: 500 1rem/1 var(--sans); text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background-color .2s var(--out), border-color .2s var(--out), color .2s var(--out), transform .2s var(--out); }
.btn svg { transition: transform .25s var(--out); }
.btn:hover svg { transform: translateX(3px); }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--tungsten); color: var(--on-tungsten); }
.btn-primary:hover { background: var(--tungsten-deep); }
.btn-quiet { border-color: var(--n700); color: var(--moon); background: var(--n900); }
.btn-quiet:hover { border-color: var(--moon); }
.btn-small { min-height: 40px; padding: 0 18px; font-size: .9375rem; }
.btn[disabled] { opacity: .5; cursor: default; }

/* ── Hero: one centered column, the message box is the action ───── */
.hero { position: relative; isolation: isolate; min-height: 100svh; display: grid; place-items: center; padding: 104px 16px 56px; overflow: clip; }
/* The only decoration on the page: a soft dusk wash that rises from the bottom of the first screen. */
.hero::before { content: ""; position: absolute; inset: 34% -10% 0 -10%; z-index: -1; pointer-events: none; filter: blur(60px);
  background:
    radial-gradient(ellipse 46% 60% at 22% 78%, var(--w1) 0%, transparent 70%),
    radial-gradient(ellipse 50% 62% at 78% 80%, var(--w2) 0%, transparent 70%),
    radial-gradient(ellipse 60% 70% at 50% 58%, var(--w3) 0%, transparent 72%);
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 38%, #000 78%, transparent 100%);
          mask-image: linear-gradient(180deg, transparent 0%, #000 38%, #000 78%, transparent 100%);
  opacity: var(--wash); }
.hero-inner { width: 100%; max-width: 620px; display: grid; grid-template-columns: minmax(0, 1fr); justify-items: center; text-align: center; }
h1 { max-width: 22ch; font: 500 clamp(2rem, 3.8vw, 3rem)/1.08 var(--sans); letter-spacing: -.03em; text-wrap: balance; animation: rise 1.1s var(--out) both;
  transition: font-size .7s var(--out), letter-spacing .7s var(--out); }
.lede { margin-top: 20px; max-width: 36ch; max-height: 8em; font-size: clamp(1.0625rem, 1.5vw, 1.25rem); line-height: 1.45; text-wrap: pretty;
  color: var(--haze); animation: rise 1.1s .12s var(--out) both;
  transition: max-height .7s var(--out), opacity .4s var(--out), margin-top .7s var(--out); }
.hero.talking h1 { font-size: 1.375rem; letter-spacing: -.01em; }
.hero.talking .lede { max-height: 0; opacity: 0; margin-top: 0; overflow: hidden; }

@keyframes rise { from { opacity: 0; transform: translateY(14px); filter: blur(6px); } to { opacity: 1; transform: none; filter: none; } }

/* ── Chat: soft, inside the phone ────────────────────────────────── */
.chat { width: 100%; margin-top: 34px; display: flex; flex-direction: column; overflow: hidden; text-align: left;
  background: var(--n900); border: 1px solid var(--n700); border-radius: 24px; box-shadow: 0 1px 2px rgba(22, 20, 29, .05), 0 18px 48px -18px var(--shadow);
  font-family: var(--phone); animation: rise 1.2s .24s var(--out) both; scroll-margin-top: 84px; transition: margin-top .7s var(--out), border-color .3s var(--out); }
.chat:focus-within { border-color: var(--edge); }
.hero.talking .chat { margin-top: 18px; }
.chat-head { display: flex; align-items: center; gap: 12px; padding: 12px 16px; }
.avatar { flex: none; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--moon); color: var(--n900); font: 500 1rem/1 var(--sans); }
.who { display: grid; gap: 1px; min-width: 0; }
.who strong { font-weight: 600; font-size: 1rem; line-height: 1.2; }
.status { display: inline-flex; align-items: center; gap: 6px; font-size: .8125rem; color: var(--haze); line-height: 1.2; }
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--live); animation: breathe 2.8s ease-in-out infinite; }
@keyframes breathe { 50% { opacity: .35; } }
.tag { margin-left: auto; font-size: .75rem; color: var(--haze); border: 1px solid var(--n700); border-radius: 999px; padding: 4px 10px; white-space: nowrap; }
.chat-reset { flex: none; width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--n700); background: var(--n900); color: var(--haze); display: grid; place-items: center; cursor: pointer; padding: 0; transition: color .2s var(--out), border-color .2s var(--out), transform .25s var(--out); }
.chat-reset:hover { color: var(--moon); border-color: var(--moon); transform: rotate(-35deg); }
.chat-reset:active { transform: rotate(-90deg) scale(.94); }

.thread { height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 0 14px; display: flex; flex-direction: column; gap: 3px;
  scrollbar-width: thin; scrollbar-color: var(--n700) transparent; border-top: 1px solid transparent;
  transition: height .7s var(--out), padding .7s var(--out), border-color .7s var(--out); }
.hero.greeted .thread { height: auto; max-height: 240px; padding: 14px 14px 6px; border-top-color: var(--n700); }
.hero.talking .thread { max-height: none; height: min(46svh, 440px); padding: 16px 14px 8px; border-top-color: var(--n700); }
.thread > :first-child { margin-top: auto; }
.msg { max-width: 82%; padding: 9px 14px; font-size: 1rem; line-height: 1.35; overflow-wrap: anywhere; white-space: pre-wrap; animation: pop .42s var(--out) both; }
.msg.her { align-self: flex-start; background: var(--n800); color: var(--moon); border-radius: 20px 20px 20px 6px; transform-origin: 0 100%; }
.msg.her.has-ppv { display: grid; gap: 10px; padding: 10px; max-width: min(86%, 340px); }
.msg.her.has-ppv .msg-text { padding: 0 4px 2px; }
.ppv-card { background: var(--n900); border: 1px solid var(--n700); border-radius: 14px; padding: 12px; display: grid; gap: 8px; white-space: normal; }
.ppv-card.unlocked { background: #f3faf6; border-color: #b7dfc8; }
.ppv-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: .8125rem; font-weight: 600; }
.ppv-badge { color: var(--moon); }
.ppv-card.unlocked .ppv-badge { color: var(--live); }
.ppv-price { background: var(--n800); color: var(--moon); padding: 2px 8px; border-radius: 999px; font-variant-numeric: tabular-nums; }
.ppv-price s { color: var(--haze); font-weight: 400; margin-right: 2px; }
.ppv-preview { font-size: .8125rem; line-height: 1.4; color: var(--haze); background: var(--n950); border-radius: 10px; padding: 10px 12px; border: 1px dashed var(--n700); }
.ppv-card.unlocked .ppv-preview { background: #ffffff; border-style: solid; border-color: #cfeadb; color: var(--moon); }
.ppv-buy { width: 100%; min-height: 38px; border-radius: 10px; border: 0; background: var(--tungsten); color: var(--on-tungsten); font: 600 .875rem/1 var(--sans); cursor: pointer; transition: background-color .2s var(--out), transform .15s var(--out); }
.ppv-buy:hover:not([disabled]) { background: var(--tungsten-deep); }
.ppv-buy:active:not([disabled]) { transform: scale(.98); }
.ppv-buy[disabled] { opacity: .6; cursor: default; }
.msg.me { align-self: flex-end; background: var(--tungsten); color: var(--on-tungsten); border-radius: 20px 20px 6px 20px; transform-origin: 100% 100%; }
.msg.her + .msg.me, .msg.me + .msg.her, .note + .msg, .msg + .note { margin-top: 10px; }
@keyframes pop { from { opacity: 0; transform: translateY(8px) scale(.9); } to { opacity: 1; transform: none; } }
.typing { flex: none; align-self: flex-start; display: inline-flex; gap: 5px; padding: 14px 16px; background: var(--n800); border-radius: 20px 20px 20px 6px; margin-top: 3px; animation: pop .3s var(--out) both; }
.msg.me + .typing { margin-top: 10px; }
.typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--haze); animation: bob 1.1s ease-in-out infinite; }
.typing i:nth-child(2) { animation-delay: .15s; } .typing i:nth-child(3) { animation-delay: .3s; }
@keyframes bob { 0%, 60%, 100% { transform: none; opacity: .5; } 30% { transform: translateY(-4px); opacity: 1; } }
.msg, .note { flex: none; }
.note { align-self: center; text-align: center; max-width: 32ch; font-size: .8125rem; line-height: 1.4; color: var(--haze); padding: 6px 0; }
.note a { color: var(--moon); font-weight: 600; text-underline-offset: 3px; }

.composer { display: flex; align-items: flex-end; gap: 8px; padding: 4px 12px 12px; }
.composer textarea { flex: 1; min-width: 0; resize: none; max-height: 120px; background: var(--n800); border: 1px solid transparent; border-radius: 24px; padding: 13px 18px; font: 1.0625rem/1.35 var(--phone); color: var(--moon); outline: none; }
.composer textarea::placeholder { color: var(--haze); }
.send { flex: none; width: 48px; height: 48px; border-radius: 50%; border: 0; background: var(--tungsten); color: var(--on-tungsten); display: grid; place-items: center; cursor: pointer; transition: background-color .2s var(--out), transform .2s var(--out), color .2s var(--out); }
.send:hover:not([disabled]) { background: var(--tungsten-deep); }
.send:active:not([disabled]) { transform: scale(.94); }
.send[disabled] { background: var(--n700); color: var(--haze); cursor: default; }

@keyframes fade { from { opacity: 0; } to { opacity: 1; } }

.starters { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 16px; font-family: var(--phone); animation: rise 1.2s .36s var(--out) both; }
.starters button { background: var(--chip); border: 1px solid var(--chip-line); color: var(--moon); border-radius: 999px; padding: 9px 15px; font-size: .9375rem; line-height: 1.2; cursor: pointer; transition: border-color .2s var(--out), background-color .2s var(--out); }
.starters button:hover { border-color: var(--moon); background: var(--n900); }
.chat-foot { margin-top: 16px; font-size: .8125rem; color: var(--moon); opacity: .78; line-height: 1.4; animation: rise 1.2s .44s var(--out) both; }
.chat-foot a { color: var(--moon); font-weight: 600; text-underline-offset: 3px; }
.platforms { margin-top: 28px; display: inline-flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 36px; color: var(--moon); animation: rise 1.2s .52s var(--out) both; }
.platform-badge { display: inline-flex; align-items: center; gap: 7px; color: var(--moon); opacity: .62; }
.platform-mark { display: block; flex: none; }
.of-mark { width: 20px; height: 20px; }
.of-word { height: 18px; width: auto; display: block; transform: translateY(1px); }
.fv-mark { width: 19px; height: 19px; }
.fv-word { height: 16px; width: auto; display: block; }

/* ── Q&A and Ask box ─────────────────────────────────────────────── */
.what { padding: 104px var(--gutter) 40px; display: grid; gap: 40px; max-width: 1240px; margin: 0 auto; }
.what h2, .apply h2 { font: 500 clamp(1.75rem, 3.2vw, 2.75rem)/1.08 var(--sans); letter-spacing: -.03em; text-wrap: balance; }
.what-lead p { margin-top: 18px; color: var(--haze); max-width: 46ch; text-wrap: pretty; }
.what-body { display: grid; gap: 28px; }
.qa { border-top: 1px solid var(--n700); }
.qa-item { border-bottom: 1px solid var(--n700); }
.qa-item summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 0; font-weight: 500; cursor: pointer; user-select: none; }
.qa-item summary::-webkit-details-marker { display: none; }
.qa-item summary::after { content: "+"; flex: none; font: 400 1.25rem/1 var(--sans); color: var(--haze); transition: transform .2s var(--out), color .2s var(--out); }
.qa-item[open] summary::after { content: "−"; color: var(--moon); }
.qa-item p { padding: 0 0 20px; color: var(--haze); max-width: 56ch; text-wrap: pretty; }
.ask { background: var(--n900); border: 1px solid var(--n700); border-radius: 16px; padding: 18px 20px; display: grid; gap: 12px; transition: border-color .2s var(--out); }
.ask:focus-within { border-color: var(--edge); }
.ask-label { font-size: .875rem; font-weight: 500; color: var(--haze); }
.ask-row { display: flex; align-items: center; gap: 10px; }
.ask-row input { flex: 1; min-width: 0; background: var(--n800); border: 1px solid transparent; border-radius: 10px; padding: 10px 14px; font-size: 1rem; color: var(--moon); outline: none; }
.ask-row input::placeholder { color: var(--haze); }
.ask-reply { padding-top: 4px; color: var(--moon); font-size: .9688rem; line-height: 1.55; max-width: 58ch; text-wrap: pretty; animation: fade .25s var(--out) both; }
.ask-reply.muted { color: var(--haze); }
.ask-reply a { color: var(--moon); font-weight: 600; text-underline-offset: 3px; }

/* ── Apply ───────────────────────────────────────────────────────── */
.apply { padding: 80px var(--gutter) 120px; max-width: 1240px; margin: 0 auto; display: grid; gap: 40px; scroll-margin-top: 40px; }
.apply-head p { margin-top: 12px; color: var(--haze); }
.funnel, .done { max-width: 640px; width: 100%; }
.progress { height: 2px; background: var(--n700); overflow: hidden; }
.progress i { display: block; height: 100%; background: var(--tungsten); transform: scaleX(0); transform-origin: 0 50%; transition: transform .5s var(--out); }
.count { margin-top: 14px; font-size: .875rem; color: var(--haze); font-variant-numeric: tabular-nums; }
.step { margin-top: 28px; animation: step .5s var(--out) both; }
@keyframes step { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
.step legend { font: 400 clamp(1.5rem, 2.8vw, 2.25rem)/1.15 var(--sans); letter-spacing: -.015em; text-wrap: balance; }
.options { display: grid; gap: 8px; margin-top: 26px; max-width: 440px; }
.options label { position: relative; display: flex; align-items: center; gap: 14px; min-height: 54px; padding: 8px 16px 8px 10px; border: 1px solid var(--n700); border-radius: 10px; background: var(--n900); cursor: pointer; transition: border-color .2s var(--out), background-color .2s var(--out); }
.options label:hover { border-color: var(--haze); }
.options input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.options kbd { flex: none; width: 30px; height: 30px; display: grid; place-items: center; border: 1px solid var(--n700); border-radius: 10px; font: 500 .8125rem/1 var(--sans); color: var(--haze); transition: background-color .2s var(--out), color .2s var(--out), border-color .2s var(--out); }
.options label:has(input:checked) { border-color: var(--moon); background: var(--n800); }
.options label:has(input:checked) kbd { background: var(--tungsten); border-color: var(--tungsten); color: var(--on-tungsten); }
.options label:has(input:focus-visible) { outline: 2px solid var(--moon); outline-offset: 3px; }
.fields { display: grid; gap: 26px; margin-top: 30px; }
.fields label { display: grid; gap: 6px; }
.fields label > span { font-size: .875rem; color: var(--haze); }
.fields em { font-style: normal; opacity: .8; }
.fields em::before { content: "· "; }
.fields input { background: none; border: 0; border-bottom: 1px solid var(--edge); border-radius: 0; padding: 8px 0 10px; font-size: clamp(1.25rem, 2.2vw, 1.5rem); color: var(--moon); outline: none; transition: border-color .2s var(--out); width: 100%; }
.fields input::placeholder { color: var(--edge); }
.fields input:focus { border-bottom-color: var(--moon); box-shadow: 0 1px 0 var(--moon); }
.error { margin-top: 18px; color: #b3261e; font-size: .9375rem; }
.nav { display: flex; align-items: center; gap: 16px; margin-top: 34px; flex-wrap: wrap; }
.enter { font-size: .875rem; color: var(--haze); }
.back { margin-left: auto; background: none; border: 0; color: var(--haze); cursor: pointer; padding: 12px 4px; text-decoration: underline; text-underline-offset: 4px; }
.back:hover { color: var(--moon); }
.done { animation: step .6s var(--out) both; outline: none; }
.done h3 { font: 500 clamp(1.75rem, 3.2vw, 2.75rem)/1.08 var(--sans); letter-spacing: -.03em; }
.done p { margin-top: 16px; color: var(--haze); max-width: 44ch; }
.done strong { color: var(--moon); font-weight: 500; overflow-wrap: anywhere; }

/* ── Foot ────────────────────────────────────────────────────────── */
.foot { border-top: 1px solid var(--n700); padding: 32px var(--gutter) max(40px, env(safe-area-inset-bottom)); display: flex; flex-wrap: wrap; gap: 12px 32px; align-items: center; justify-content: space-between; }
.foot p { font-size: .875rem; color: var(--haze); }

/* ── Wide: chat docks on the right of the photograph ─────────────── */
@media (min-width: 960px) {
  .hero { padding-inline: var(--gutter); }
  .what { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 72px; padding-top: 128px; align-items: start; }
  .what-lead { position: sticky; top: 120px; }
  .apply { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 72px; padding-top: 128px; align-items: start; min-height: 92svh; }
}
@media (max-width: 959px) {
  .enter { display: none; }
  .starters { flex-wrap: nowrap; justify-content: flex-start; justify-self: stretch; margin-inline: -16px; padding-inline: 16px; overflow-x: auto; scrollbar-width: none; scroll-snap-type: x proximity; }
  .starters::-webkit-scrollbar { display: none; }
  .starters button { flex: none; scroll-snap-align: center; }
  .hero.talking { place-items: start center; padding-top: 84px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0s !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
