/* Website funnel v2 — the stage-and-sheet grammar. Brand kit A2: midnight stage with an
   indigo glow, pearl sheet, EB Garamond questions, Inter rows, one gradient per screen (CTA). */
:root{
  --sky:#5BA9FF; --indigo:#776AFF; --violet:#9C5EFF; --midnight:#0D1638; --ground:#0F1017;
  --pearl:#F7F9FC; --white:#fff; --ink:#0D1638; --muted:#68728E; --line:#E4EAF3;
  --action:linear-gradient(96deg,#4A6BD2 0%,#6848E8 100%);
  --foil:linear-gradient(135deg,#5BA9FF 0%,#776AFF 50%,#9C5EFF 100%);
  --display:"EB Garamond",Georgia,serif; --body:"Inter",system-ui,sans-serif;
  --r-sheet:36px; --r-row:18px;
}
*{box-sizing:border-box;margin:0}
[hidden]{display:none!important}
html,body{min-height:100%;background:var(--ground)}
body{font-family:var(--body);color:var(--ink);line-height:1.5;-webkit-font-smoothing:antialiased;
  background:radial-gradient(90% 40% at 50% 0%,rgba(119,106,255,.28),transparent 70%),
             radial-gradient(120% 60% at 50% 110%,rgba(91,169,255,.14),transparent 60%),var(--midnight)}
.funnel{min-height:100dvh;max-width:560px;margin:0 auto;display:flex;flex-direction:column;padding:0 0 18px}

/* ── stage bar ── */
.stage-bar{position:relative;display:flex;align-items:center;justify-content:center;height:64px;padding:0 16px;color:#F2F4FB}
.back{position:absolute;left:10px;top:50%;transform:translateY(-50%);width:40px;height:40px;border-radius:50%;border:0;
  background:rgba(255,255,255,.08);color:#F2F4FB;cursor:pointer;display:grid;place-items:center}
.back svg{width:20px;height:20px}
.brand{display:inline-flex;align-items:center;gap:8px;text-decoration:none;color:#F2F4FB}
.brand span{font-family:var(--display);font-weight:600;font-size:1.15rem}
.counter{position:absolute;right:16px;top:50%;transform:translateY(-50%);font:600 .72rem var(--body);color:#9AA3C0;letter-spacing:.06em}
.segments{display:flex;gap:8px;padding:2px 20px 14px}
.segments i{flex:1;height:4px;border-radius:4px;background:rgba(255,255,255,.14);overflow:hidden}
.segments i b{display:block;height:100%;width:0;background:var(--foil);border-radius:4px;transition:width .35s ease}

/* ── the sheet ── */
.sheet{flex:1;background:var(--white);border-radius:var(--r-sheet) var(--r-sheet) 0 0;margin-top:10px;
  padding:30px 22px 26px;display:flex;flex-direction:column;box-shadow:0 -20px 60px -30px rgba(0,0,0,.6)}
.sheet-in{flex:1;display:flex;flex-direction:column;gap:14px;animation:slide-in .32s cubic-bezier(.2,.8,.2,1)}
.sheet-in.out{animation:slide-out .2s ease forwards}
@keyframes slide-in{from{opacity:0;transform:translateX(28px)}to{opacity:1;transform:none}}
@keyframes slide-out{to{opacity:0;transform:translateX(-22px)}}
.q{font-family:var(--display);font-weight:600;font-size:clamp(1.65rem,7vw,2.15rem);line-height:1.1;letter-spacing:-.01em;text-wrap:balance}
.eyebrow{font:600 .7rem var(--body);letter-spacing:.14em;text-transform:uppercase;color:var(--indigo)}
.muted{color:var(--muted)}
.hint{font-size:.86rem;color:var(--muted)}
.fine{font-size:.76rem;color:var(--muted)}

/* rows — pastel icon circle · label · radio */
.rows{display:flex;flex-direction:column;gap:6px;margin-top:4px}
.row{display:grid;grid-template-columns:52px 1fr 24px;align-items:center;gap:14px;padding:9px 10px 9px 8px;border-radius:var(--r-row);
  border:1.5px solid transparent;background:var(--white);cursor:pointer;text-align:left;color:var(--ink);
  font:600 1rem/1.3 var(--body);transition:background .16s ease,border-color .16s ease,transform .16s ease}
.row:hover{background:var(--pearl)}
.row:active{transform:scale(.985)}
.row .ic{width:52px;height:52px;border-radius:50%;background:var(--tint,#EAF2FF);display:grid;place-items:center;overflow:hidden;flex:none}
.row .ic img{width:38px;height:38px;object-fit:contain;filter:drop-shadow(0 3px 5px rgba(13,22,56,.16))}
.row .ic svg{width:20px;height:20px;color:var(--indigo);opacity:.7}
.ic .ph{width:14px;height:14px;border-radius:50%;background:var(--foil);opacity:.55}
.row .lab{display:flex;flex-direction:column;gap:2px}
.row .sub{font-weight:400;font-size:.8rem;color:var(--muted)}
.row .radio{width:22px;height:22px;border-radius:50%;border:2px solid #C9D2E4;display:grid;place-items:center;transition:all .16s ease}
.row .radio.sq{border-radius:7px}
.row.on{background:#F3F1FF;border-color:var(--indigo)}
.row.on .radio{border-color:var(--indigo);background:var(--indigo)}
.row.on .radio::after{content:"";width:8px;height:8px;border-radius:50%;background:#fff}
.row.on .radio.sq::after{width:10px;height:6px;border-radius:0;border:2.5px solid #fff;border-top:0;border-right:0;transform:rotate(-45deg) translate(1px,-1px);background:none}

/* two-column icon cards (NOW → WANT) */
.cards{display:grid;grid-template-columns:repeat(2,1fr);gap:8px}
.card{display:flex;align-items:center;gap:10px;padding:9px 10px;border-radius:14px;border:1.5px solid var(--line);
  background:var(--white);cursor:pointer;color:var(--ink);font:600 .86rem/1.2 var(--body);text-align:left;transition:all .16s ease}
.card .ic{width:40px;height:40px;border-radius:50%;background:var(--tint,#EAF2FF);display:grid;place-items:center;flex:none;overflow:hidden}
.card .ic img{width:30px;height:30px;object-fit:contain}
.card.on{border-color:var(--indigo);background:#F3F1FF}
.card.want.on{background:linear-gradient(135deg,rgba(91,169,255,.16),rgba(156,94,255,.16))}
.band{font:700 .68rem var(--body);letter-spacing:.14em;color:var(--muted);margin-top:4px}
.band.arrow{text-align:center;color:var(--indigo);font-size:.78rem}

/* image grids (deck · energy) + colour worlds */
.deck{display:grid;grid-template-columns:repeat(2,1fr);gap:10px}
.tile{padding:0;border:2.5px solid transparent;border-radius:16px;overflow:hidden;background:var(--pearl);cursor:pointer;aspect-ratio:2/3;position:relative;transition:transform .16s ease,border-color .16s ease}
.tile img{width:100%;height:100%;object-fit:cover;display:block}
.tile.on{border-color:var(--indigo);transform:scale(.97)}
.tile.on::after{content:"";position:absolute;right:10px;top:10px;width:24px;height:24px;border-radius:50%;background:var(--indigo);
  box-shadow:0 2px 8px rgba(13,22,56,.3);background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5 9-10'/%3E%3C/svg%3E");background-size:14px;background-position:center;background-repeat:no-repeat}
.worlds{display:grid;grid-template-columns:repeat(2,1fr);gap:10px}
.world{border:1.5px solid var(--line);border-radius:16px;background:var(--white);color:var(--ink);padding:10px;display:flex;flex-direction:column;gap:9px;
  font:600 .86rem var(--body);cursor:pointer;text-align:left;transition:all .16s ease}
.world.on{border-color:var(--indigo);background:#F3F1FF}
.swatches{display:flex;border-radius:10px;overflow:hidden;height:52px}
.swatches i{flex:1}

/* buttons */
.btn{font:700 1rem var(--body);border:0;border-radius:999px;padding:16px 26px;cursor:pointer;text-decoration:none;display:inline-flex;
  align-items:center;justify-content:center;transition:transform .15s ease,opacity .15s ease;width:100%;margin-top:auto}
.btn.primary{background:var(--action);color:#fff;box-shadow:0 14px 34px -14px rgba(104,72,232,.7)}
.btn.primary:hover{transform:translateY(-1px)}
.btn[disabled]{opacity:.4;cursor:not-allowed;transform:none}
.btn.ghost{background:transparent;color:#F2F4FB;border:1px solid rgba(255,255,255,.28);margin-top:0}

/* hook */
.hero-card{position:relative;border-radius:22px;overflow:hidden;aspect-ratio:4/3;background:var(--pearl)}
.hero-card img{width:100%;height:100%;object-fit:cover;object-position:50% 18%;display:block}
.hero-card::after{content:"";position:absolute;inset:0;background:linear-gradient(180deg,transparent 45%,rgba(13,22,56,.55))}
.hero-card .chip{position:absolute;left:12px;bottom:12px;font:600 .7rem var(--body);letter-spacing:.06em;color:#fff;
  padding:6px 11px;border-radius:999px;background:rgba(13,22,56,.55);border:1px solid rgba(157,180,255,.4);backdrop-filter:blur(6px)}
.trust{display:flex;gap:8px;flex-wrap:wrap}
.trust span{font:600 .72rem var(--body);color:var(--ink);padding:7px 11px;border-radius:999px;background:var(--pearl);border:1px solid var(--line)}
.hook .q{font-size:clamp(2rem,9vw,2.6rem)}

/* ── theatre: interstitials · loader · reveal (full midnight) ── */
.theatre{flex:1;display:flex;flex-direction:column;gap:16px;padding:14px 22px 26px;color:#F0F8FC;animation:slide-in .32s cubic-bezier(.2,.8,.2,1)}
.theatre .q{color:#fff}
.theatre .eyebrow{color:#9DB4FF}
.theatre .muted{color:#C9D6FF}
.glass{border:1px solid rgba(157,180,255,.28);border-radius:20px;background:rgba(21,31,66,.62);padding:18px 18px;display:flex;flex-direction:column;gap:12px;
  backdrop-filter:blur(8px);-webkit-backdrop-filter:blur(8px)}
.obs{display:flex;gap:12px;align-items:flex-start;font-family:var(--display);font-size:1.12rem;font-style:italic;color:#fff;animation:slide-in .4s ease both}
.obs:nth-child(2){animation-delay:.35s}.obs:nth-child(3){animation-delay:.7s}
.obs i{flex:none;width:22px;height:22px;border-radius:50%;background:var(--foil);margin-top:2px;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5 9-10'/%3E%3C/svg%3E");background-size:13px;background-position:center;background-repeat:no-repeat}
.ring{position:relative;width:150px;height:150px;margin:8px auto 0}
.ring svg{width:100%;height:100%;transform:rotate(-90deg)}
.ring circle{fill:none;stroke-width:9;stroke-linecap:round}
.ring .track{stroke:rgba(255,255,255,.12)}
.ring .bar{stroke:url(#foil);stroke-dasharray:408;stroke-dashoffset:408;transition:stroke-dashoffset .9s linear}
.ring .pct{position:absolute;inset:0;display:grid;place-items:center;font-family:var(--display);font-size:2rem;color:#fff}
.loader-lines{list-style:none;padding:0;margin:0;display:flex;flex-direction:column;gap:11px;text-align:center}
.loader-lines li{font:500 .94rem var(--body);color:#C9D6FF;animation:slide-in .4s ease}
.loader-lines li[data-obs="true"]{font-family:var(--display);font-size:1.12rem;font-style:italic;color:#fff}
.wordmark.glow{font-family:var(--display);font-weight:600;font-size:1.35rem;text-align:center;background:var(--foil);
  -webkit-background-clip:text;background-clip:text;color:transparent;filter:drop-shadow(0 0 18px rgba(119,106,255,.55))}

/* reveal */
.board{position:relative;border-radius:22px;overflow:hidden;aspect-ratio:3/2;border:1px solid rgba(157,180,255,.35);
  box-shadow:0 30px 70px -30px rgba(0,0,0,.8),0 0 0 6px rgba(119,106,255,.12)}
.board img{width:100%;height:100%;object-fit:cover;display:block}
.board::after{content:"";position:absolute;inset:0;background:linear-gradient(180deg,transparent 55%,rgba(13,22,56,.7))}
.board .tag{position:absolute;left:14px;bottom:12px;font:600 .68rem var(--body);letter-spacing:.14em;text-transform:uppercase;color:#9DB4FF}
.reveal-name{font-family:var(--display);font-weight:600;font-size:clamp(2.2rem,10vw,3rem);line-height:1;text-align:center;color:#fff}
.traits{font:500 .92rem var(--body);color:#C9D6FF;letter-spacing:.04em;text-align:center}
.insights{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:10px}
.insights li{font-family:var(--display);font-size:1.08rem;font-style:italic;color:#F0F8FC;text-align:center}
.locks{display:flex;flex-direction:column;gap:10px}
.lock{display:grid;grid-template-columns:54px 1fr 18px;gap:12px;align-items:center;font-size:.86rem;color:#C9D6FF}
.lock .thumb{width:54px;height:54px;border-radius:12px;overflow:hidden;position:relative}
.lock .thumb img{width:100%;height:100%;object-fit:cover;filter:blur(7px) saturate(1.2);transform:scale(1.3)}
.lock .thumb::after{content:"";position:absolute;inset:0;background:rgba(13,22,56,.35)}
.lock .key{width:16px;height:16px;background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239db4ff' stroke-width='2.2'%3E%3Crect x='5' y='11' width='14' height='10' rx='2'/%3E%3Cpath d='M8 11V7a4 4 0 0 1 8 0v4'/%3E%3C/svg%3E") center/contain no-repeat}
.theatre .btn.primary{box-shadow:0 14px 44px -12px rgba(104,72,232,.95)}

.foot{font-size:.7rem;color:#9AA3C0;text-align:center;padding:14px 20px 0}
.foot a{color:inherit}
:focus-visible{outline:2px solid var(--indigo);outline-offset:3px;border-radius:8px}
@media (prefers-reduced-motion:reduce){.sheet-in,.theatre,.obs,.loader-lines li{animation:none}.ring .bar,.segments i b{transition:none}}

/* reveal v2: the Persona card */
.persona-card{border-radius:24px;padding:22px 20px 18px;background:linear-gradient(160deg,#1A2358 0%,#2A2C7A 55%,#3E2A8C 100%);
  border:1px solid rgba(157,180,255,.35);box-shadow:0 30px 70px -30px rgba(0,0,0,.8),0 0 0 6px rgba(119,106,255,.10);display:flex;flex-direction:column;gap:10px;text-align:center}
.persona-card .eyebrow{color:#C9D6FF}
.persona-card .reveal-name{font-size:clamp(2rem,9vw,2.6rem)}
.persona-card .desc{color:#E4EAFF;font-size:.95rem;line-height:1.45}
.chips-label{font:600 .68rem var(--body);letter-spacing:.14em;text-transform:uppercase;color:#9DB4FF;margin-top:6px}
.chips{display:flex;flex-wrap:wrap;gap:8px;justify-content:center}
.chips span{font:600 .8rem var(--body);color:#F2F4FB;padding:7px 12px;border-radius:999px;background:rgba(255,255,255,.10);border:1px solid rgba(157,180,255,.35)}
.outfits{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:8px}
.outfits figure{margin:0;border-radius:16px;overflow:hidden;background:#fff;aspect-ratio:3/4;position:relative}
.outfits img{width:100%;height:100%;object-fit:cover;display:block}
.outfits figcaption{position:absolute;left:0;right:0;bottom:0;padding:8px 10px;font:600 .72rem var(--body);color:#fff;background:linear-gradient(transparent,rgba(13,22,56,.75));text-align:left}
/* photo explainer */
.scan-guide{display:grid;grid-template-columns:120px 1fr;gap:18px;align-items:center;margin-top:6px}
.phone{position:relative;width:120px;height:230px;border-radius:26px;background:#fff;border:6px solid #1A2358;box-shadow:0 20px 40px -20px rgba(0,0,0,.7);overflow:hidden}
.silhouette{position:absolute;left:50%;bottom:14px;width:52px;height:160px;transform:translateX(-50%);opacity:.85;
  background:radial-gradient(circle at 50% 12%,#0D1638 0 13px,transparent 14px),linear-gradient(#0D1638,#0D1638) 50% 40px/38px 62px no-repeat,
  linear-gradient(#0D1638,#0D1638) 32% 102px/13px 58px no-repeat,linear-gradient(#0D1638,#0D1638) 68% 102px/13px 58px no-repeat}
.frame{position:absolute;inset:14px 12px 10px;border:2px dashed rgba(119,106,255,.75);border-radius:14px}
.tips{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:10px;font:500 .9rem var(--body);color:#E4EAFF}
.tips li{display:flex;gap:10px;align-items:center}
.tips i{flex:none;width:18px;height:18px;border-radius:50%;background:var(--foil);
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5 9-10'/%3E%3C/svg%3E");background-size:11px;background-position:center;background-repeat:no-repeat}

/* curated flat-lays (assembled from the garment bank) — selectors outrank the generic .outfits img rule */
.outfits.curated{grid-template-columns:1fr 1fr}
.outfits .flatlay{margin:0;border-radius:16px;overflow:hidden;background:#fff;display:flex;flex-direction:column;aspect-ratio:auto}
.outfits .fl-stage{position:relative;aspect-ratio:3/4;background:linear-gradient(180deg,#FFFFFF,#F4F6FA)}
.outfits .fl-stage img.fl{position:absolute;width:auto;height:auto;object-fit:contain;filter:drop-shadow(0 6px 10px rgba(13,22,56,.14))}
.outfits .fl-stage img.fl-outer{left:2%;top:3%;width:54%;height:52%;transform:rotate(-7deg)}
.outfits .fl-stage img.fl-top{right:3%;top:2%;width:40%;height:36%}
.outfits .fl-stage img.fl-bottom{left:27%;top:30%;width:44%;height:52%}
.outfits .fl-stage img.fl-acc{right:2%;top:40%;width:26%;height:24%}
.outfits .fl-stage img.fl-shoes{right:6%;bottom:3%;width:36%;height:24%}
.outfits .flatlay figcaption{position:static;background:none;padding:8px 10px 10px;display:flex;flex-direction:column;gap:2px;text-align:left}
.outfits .flatlay b{font:600 .8rem var(--body);color:var(--ink)}
.outfits .flatlay span{font:500 .68rem var(--body);color:var(--muted);text-transform:capitalize}

/* where + budget */
.where-card{display:grid;grid-template-columns:52px 1fr;gap:14px;align-items:center;padding:12px;border-radius:18px;border:1.5px solid var(--indigo);background:#F3F1FF}
.where-card .ic{width:52px;height:52px;border-radius:50%;background:var(--tint);display:grid;place-items:center;overflow:hidden}
.where-card .ic img{width:38px;height:38px;object-fit:contain}
.where-card b{display:block;font:600 1rem var(--body);color:var(--ink)}
.where-card span:last-child{font:400 .8rem var(--body);color:var(--muted)}
.where-pick{display:flex;align-items:center;gap:10px;font:500 .86rem var(--body);color:var(--muted)}
.where-pick select{flex:1;font:600 .9rem var(--body);color:var(--ink);padding:12px 14px;border-radius:14px;border:1.5px solid var(--line);background:#fff}
/* the scan preview — wireframe figure in brand light, rings, six reads */
.scan{display:grid;grid-template-columns:1fr 1fr;gap:14px;align-items:center}
.scan-figure{position:relative;aspect-ratio:3/4;display:grid;place-items:center;overflow:visible}
.scan-figure img{width:92%;height:100%;object-fit:contain;filter:drop-shadow(0 0 22px rgba(119,106,255,.55))}
.ring{position:absolute;left:50%;top:50%;border-radius:50%;border:1.5px solid rgba(157,180,255,.55);box-shadow:0 0 12px rgba(119,106,255,.35);
  transform:translate(-50%,-50%) rotateX(72deg);animation:ring-spin 6s linear infinite;pointer-events:none}
.ring.r1{width:115%;height:115%;top:38%}
.ring.r2{width:130%;height:130%;top:58%;animation-duration:8s;animation-direction:reverse}
.ring.r3{width:100%;height:100%;top:78%;animation-duration:7s}
@keyframes ring-spin{to{transform:translate(-50%,-50%) rotateX(72deg) rotate(360deg)}}
.scan-reads{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:9px}
.scan-reads li{display:flex;align-items:center;gap:9px;font:600 .82rem var(--body);color:#E4EAFF}
.scan-reads li::before{content:"";width:9px;height:9px;border-radius:50%;background:var(--foil);box-shadow:0 0 10px rgba(119,106,255,.7);flex:none}
@media (prefers-reduced-motion:reduce){.ring{animation:none}}

/* presentation — three image tiles, labelled (this one is a choice, not a mystery) */
.pres{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}
.pres-tile{position:relative;padding:0;border:2.5px solid transparent;border-radius:16px;overflow:hidden;background:var(--pearl);cursor:pointer;aspect-ratio:2/3;transition:transform .16s ease,border-color .16s ease}
.pres-tile img{width:100%;height:100%;object-fit:cover;object-position:50% 12%;display:block}
.pres-tile span{position:absolute;left:0;right:0;bottom:0;padding:26px 8px 10px;font:700 .82rem var(--body);color:#fff;text-align:center;background:linear-gradient(transparent,rgba(13,22,56,.85))}
.pres-tile.on{border-color:var(--indigo);transform:scale(.97)}
.pres-tile.on::after{content:"";position:absolute;right:8px;top:8px;width:22px;height:22px;border-radius:50%;background:var(--indigo);
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5 9-10'/%3E%3C/svg%3E");background-size:12px;background-position:center;background-repeat:no-repeat}

/* where — GPS first */
.where-ask{display:grid;grid-template-columns:52px 1fr;gap:14px;align-items:center;padding:12px;border-radius:18px;border:1.5px solid var(--line);background:var(--pearl)}
.where-ask .ic{width:52px;height:52px;border-radius:50%;background:var(--tint);display:grid;place-items:center;overflow:hidden}
.where-ask .ic img{width:38px;height:38px;object-fit:contain}
.where-ask b{display:block;font:600 1rem var(--body);color:var(--ink)}
.where-ask span:last-child{font:400 .8rem var(--body);color:var(--muted)}
.where-card.guess{border-color:#F2B36B;background:#FFF7EE}
.btn.ghost-light{background:transparent;color:var(--ink);border:1.5px solid var(--line);margin-top:8px}
