/* ── tokens (from bonfires-ai-core globals.css) ───────────────── */
:root{
  --bg:#0d1f26; --bg2:#111c23; --s1:#152530; --s2:#1a2f3a;
  --ember:#f5572a; --ember-2:#ffa552;
  --ember-dim:rgba(245,87,42,.15); --ember-glow:rgba(245,87,42,.07);
  --ember-border:rgba(245,87,42,.32);
  --tx:#f3ffff; --tx2:#afc9d0; --tx3:#8aa6b0; --tx-inv:#0d1f26;
  --b1:rgba(255,255,255,.07); --b2:rgba(255,255,255,.14); --b3:rgba(255,255,255,.28);
  --ok:#22c55e;
  --r:2px; --rl:4px; --rx:8px; --rm:12px;
  --sans:"Montserrat",sans-serif; --body:"DM Sans",sans-serif;
  --mono:"JetBrains Mono",ui-monospace,Menlo,monospace;
  --pad:36px;
}
*{box-sizing:border-box}
html,body{margin:0;padding:0}
html{scroll-behavior:smooth}
body{
  background:var(--bg); color:var(--tx); font-family:var(--body); font-weight:300;
  -webkit-font-smoothing:antialiased; line-height:1.55; overflow-x:hidden;
}
body::before{
  content:""; position:fixed; inset:0; pointer-events:none; z-index:0;
  background:
    radial-gradient(900px 620px at 78% -10%, rgba(245,87,42,.10), transparent 62%),
    radial-gradient(760px 520px at 8% 106%, rgba(26,47,58,.85), transparent 60%);
}
main,header,footer{position:relative; z-index:1}
main{z-index:2}            /* the graph sheet on phones lives in main and must sit over the footer */
h1,h2,h3,b,strong{font-family:var(--sans); font-weight:500; letter-spacing:-.01em}
button,input,textarea{font-family:inherit; font-size:inherit; color:inherit}
button{cursor:pointer}
:focus-visible{outline:2px solid var(--ember); outline-offset:2px}
.ember{color:var(--ember)}
.dim{color:var(--tx2)}
.dimx{color:var(--tx3)}
::-webkit-scrollbar{width:5px;height:5px}
::-webkit-scrollbar-track{background:var(--bg2)}
::-webkit-scrollbar-thumb{background:var(--s2); border-radius:9px}
::-webkit-scrollbar-thumb:hover{background:var(--ember)}

/* ── map / header ─────────────────────────────────────────────── */
.map{
  z-index:40;
  display:flex; align-items:center; gap:28px;
  padding:16px var(--pad);
  background:rgba(13,31,38,.82); backdrop-filter:blur(14px);
  border-bottom:1px solid var(--b1);
}
.brand{display:flex; align-items:center; gap:10px; text-decoration:none; color:inherit; flex:0 0 auto}
.brand-logo{display:block; width:auto; height:24px; opacity:.95; transition:opacity .18s}
.brand:hover .brand-logo{opacity:1}
.map-toggle,.map-bonfire{display:none}                       /* phones only */
.brand-mark{display:none; width:26px; height:26px}      /* the square mark, where the bar has no room for the wordmark */
.brand-text{display:flex; flex-direction:column; line-height:1.1}
.brand-text{font-family:var(--sans); font-weight:600; letter-spacing:.06em; font-size:14px; text-transform:uppercase}
.brand-text em{font-style:normal; font-family:var(--body); font-weight:300; font-size:10.5px; color:var(--tx3); letter-spacing:.14em; text-transform:none}

.flame{
  width:16px;height:22px;display:block;
  background:linear-gradient(to top,var(--ember) 0%,var(--ember-2) 55%,rgba(255,220,150,.95) 100%);
  border-radius:50% 50% 50% 50%/62% 62% 38% 38%;
  transform-origin:50% 100%;
  animation:flick 2.4s ease-in-out infinite;
  filter:drop-shadow(0 0 10px rgba(245,87,42,.6));
}
.flame.small{width:13px;height:18px}
@keyframes flick{
  0%,100%{transform:scaleY(1) scaleX(1) rotate(-1deg)}
  30%{transform:scaleY(1.12) scaleX(.93) rotate(2deg)}
  60%{transform:scaleY(.94) scaleX(1.06) rotate(-2deg)}
}

.oases{position:relative; display:flex; gap:6px; flex:1 1 auto; justify-content:center}
.trail{position:absolute; left:8%; right:8%; top:50%; height:1px; background:var(--b1); overflow:hidden; z-index:0}
.trail i{display:block;height:100%;width:0;background:linear-gradient(90deg,var(--ember),var(--ember-2));transition:width .55s cubic-bezier(.4,0,.2,1)}
.oasis{
  position:relative; z-index:1; display:flex; align-items:center; gap:8px;
  background:var(--bg); border:1px solid var(--b1); border-radius:var(--rm);
  padding:8px 16px 8px 13px; color:var(--tx3); transition:.25s;
}
.oasis b{font-family:var(--mono); font-size:11.5px; font-weight:500; letter-spacing:.06em}
.oasis i{font-style:normal; font-size:13px; letter-spacing:.02em; font-family:var(--body)}
.oasis .dot{width:7px;height:7px;border-radius:99px;background:var(--tx3); transition:.25s}
.oasis:hover{color:var(--tx2); border-color:var(--b2)}
.oasis.is-locked{opacity:.45; cursor:not-allowed}
.oasis.is-locked:hover{color:var(--tx3); border-color:var(--b1)}
.oasis.is-visited{color:var(--tx2)}
.oasis.is-visited .dot{background:var(--ember-border)}
/* the glow is translucent, so it needs the solid background under it or the trail shows through */
.oasis.is-active{color:var(--tx); border-color:var(--ember-border);
  background:linear-gradient(var(--ember-glow),var(--ember-glow)), var(--bg)}
.oasis.is-active .dot{background:var(--ember); box-shadow:0 0 0 4px var(--ember-dim)}

.ghost-btn{
  flex:0 0 auto; background:transparent; border:1px solid var(--b2); color:var(--tx2);
  padding:10px 18px; border-radius:var(--rm); font-size:14px; letter-spacing:.04em; transition:.25s;
}
.ghost-btn:hover{color:var(--tx); border-color:var(--b3)}

/* the header is docked at the bottom of every page: the screen is the content */
.map{position:fixed; top:auto; bottom:0; left:0; right:0; border-bottom:0; border-top:1px solid var(--b1)}
main{padding-bottom:var(--map-h, 63px)}
.sc-wrap{min-height:calc(100vh - var(--map-h, 63px)); min-height:calc(100dvh - var(--map-h, 63px))}
.sc{min-height:0}


/* ── layout ───────────────────────────────────────────────────── */
.station{animation:rise .5s cubic-bezier(.2,.7,.3,1) backwards;   /* not 'both': a held transform would trap the fixed graph bar */
   padding-bottom:20px}
#st-0{padding-bottom:0}      /* the questions fill the screen exactly, so the extra 20px only made it scroll */
@keyframes rise{from{opacity:0;transform:translateY(14px)}to{opacity:1;transform:none}}
.wrap{max-width:1180px; margin:0 auto; padding:72px var(--pad) 0}
.wrap.narrow{max-width:960px}
.eyebrow{font-family:var(--mono); font-size:11px; letter-spacing:.18em; text-transform:uppercase; color:var(--ember); margin:0 0 18px}
.section-kicker{font-family:var(--mono); font-size:10.5px; letter-spacing:.18em; text-transform:uppercase; color:var(--tx3); margin:0 0 10px}
.section-h{font-size:clamp(26px,3vw,38px); line-height:1.15; margin:0 0 14px; font-weight:400}
.section-h.big{font-size:clamp(30px,4vw,50px)}
.section-sub{color:var(--tx2); max-width:62ch; margin:0 0 40px; font-size:15.5px}
.section-sub.wide{max-width:76ch}

/* ── hero ─────────────────────────────────────────────────────── */
@keyframes slide{from{opacity:0;transform:translateX(-14px)}to{opacity:1;transform:none}}
.cta-row{display:flex; gap:12px; flex-wrap:wrap; margin-top:42px}
.cta-row.center{justify-content:center}

.btn{
  background:var(--ember); color:#fff; border:1px solid var(--ember);
  padding:13px 24px; border-radius:var(--rm); font-family:var(--sans); font-weight:500;
  font-size:13.5px; letter-spacing:.02em; box-shadow:0 4px 24px rgba(245,87,42,.2); transition:.25s;
}
.btn:hover{background:#ff6b3d; box-shadow:0 8px 32px rgba(245,87,42,.32); transform:translateY(-1px)}
.btn.ghost{background:transparent; color:var(--tx2); border-color:var(--b2); box-shadow:none}
.btn.ghost:hover{color:var(--tx); border-color:var(--b3); background:rgba(255,255,255,.03); transform:none}
.btn.full{width:100%}

/* the fire */
.fire{position:relative; width:180px; height:240px; display:grid; place-items:end center; transform:scale(1.55); transform-origin:50% 62%}
.fire .l{
  position:absolute; bottom:8px; left:50%;
  border-radius:0 50% 50% 50%;          /* teardrop: sharp corner, then rotated to point up */
  transform-origin:50% 60%; mix-blend-mode:screen;
}
.l1{width:104px;height:104px;margin-left:-52px;background:linear-gradient(135deg,rgba(245,87,42,0) 8%,rgba(245,87,42,.62) 62%);filter:blur(4px);animation:f1 3.1s ease-in-out infinite}
.l2{width:78px;height:78px;margin-left:-39px;background:linear-gradient(135deg,rgba(255,110,45,0) 10%,rgba(255,125,52,.85) 65%);filter:blur(3px);animation:f2 2.5s ease-in-out infinite .2s}
.l3{width:52px;height:52px;margin-left:-26px;background:linear-gradient(135deg,rgba(255,165,82,0) 12%,rgba(255,178,96,.92) 66%);filter:blur(1.5px);animation:f3 2.1s ease-in-out infinite .45s}
.l4{width:28px;height:28px;margin-left:-14px;bottom:10px;background:linear-gradient(135deg,rgba(255,235,190,0) 14%,rgba(255,244,214,.95) 68%);filter:blur(.6px);animation:f4 1.7s ease-in-out infinite .1s}
.l5{
  width:190px;height:70px;margin-left:-95px;bottom:-14px;border-radius:50%;
  background:radial-gradient(ellipse at 50% 60%,rgba(245,87,42,.55),rgba(245,87,42,.12) 55%,transparent 75%);
  filter:blur(16px); transform:none !important; animation:pulse 2.6s ease-in-out infinite;
}
@keyframes f1{
  0%,100%{transform:scale(1.02,1.34) rotate(-45deg)}
  33%{transform:scale(.94,1.46) rotate(-43deg)}
  66%{transform:scale(1.08,1.26) rotate(-47deg)}
}
@keyframes f2{
  0%,100%{transform:scale(1,1.42) rotate(-46deg)}
  40%{transform:scale(1.1,1.28) rotate(-43deg)}
  70%{transform:scale(.92,1.5) rotate(-48deg)}
}
@keyframes f3{
  0%,100%{transform:scale(1,1.5) rotate(-44deg)}
  35%{transform:scale(.9,1.62) rotate(-48deg)}
  65%{transform:scale(1.12,1.36) rotate(-41deg)}
}
@keyframes f4{
  0%,100%{transform:scale(1,1.55) rotate(-45deg)}
  50%{transform:scale(.86,1.75) rotate(-46deg)}
}
@keyframes pulse{0%,100%{opacity:.65}50%{opacity:1}}
.fire .sp{
  position:absolute; bottom:52px; left:50%; width:2.5px; height:2.5px; border-radius:99px;
  background:var(--ember-2); box-shadow:0 0 7px var(--ember-2); opacity:0;
  animation:spark 4.2s linear infinite;
}
.s1{--dy:-210px;animation-delay:0s;animation-duration:4.2s;--dx:-42px;left:46%}
.s2{--dy:-150px;animation-delay:.7s;animation-duration:3.4s;--dx:30px;left:53%}
.s3{--dy:-240px;animation-delay:1.4s;animation-duration:4.9s;--dx:-14px;left:49%}
.s4{--dy:-175px;animation-delay:2.1s;animation-duration:3.8s;--dx:52px;left:52%}
.s5{--dy:-260px;animation-delay:2.8s;animation-duration:5.3s;--dx:-58px;left:47%}
.s6{--dy:-165px;animation-delay:3.5s;animation-duration:4.5s;--dx:12px;left:51%}
@keyframes spark{
  0%{opacity:0;transform:translate(0,0) scale(1)}
  12%{opacity:1}
  100%{opacity:0;transform:translate(var(--dx),var(--dy,-190px)) scale(.3)}
}
@keyframes breathe{0%,100%{transform:scale(1);opacity:.8}50%{transform:scale(1.04);opacity:.4}}

/* ── postcards ────────────────────────────────────────────────── */

.rest-stop{
  max-width:1180px; margin:76px auto 0; padding:34px var(--pad) 60px;
  border-top:1px solid var(--b1); text-align:center;
}
.rest-stop p{color:var(--tx3); font-size:13.5px; margin:0 0 18px}

/* ── chat ─────────────────────────────────────────────────────── */

/* the board: ticking a pain is the diagnosis */

input[type=range]{
  -webkit-appearance:none; appearance:none; width:100%; height:3px; border-radius:99px;
  background:var(--s2); outline:none; margin:0;
}
input[type=range]::-webkit-slider-thumb{
  -webkit-appearance:none; width:4px; height:24px; border-radius:2px;
  background:var(--ember); border:0;
  box-shadow:0 0 12px rgba(245,87,42,.55); cursor:grab;
}
input[type=range]::-moz-range-thumb{
  width:4px; height:24px; border-radius:2px; background:var(--ember); border:0;
  box-shadow:0 0 12px rgba(245,87,42,.55); cursor:grab;
}
.fine{font-size:11.5px; color:var(--tx3); margin:0}

/* ── 01 · the diagnosis chat ─────────────────────────────────────── */

/* ── welcome: full screen, nothing else ─────────────────────────── */
.welcome{position:fixed; inset:0; z-index:100; display:grid; place-items:center; padding:24px;
  background:radial-gradient(900px 620px at 50% 30%, rgba(245,87,42,.10), transparent 62%), var(--bg);
  transition:opacity .45s ease, transform .45s ease}
.welcome[hidden]{display:none}
.welcome.leaving{opacity:0; transform:scale(1.02); pointer-events:none}
body.welcoming{overflow:hidden}
.welcome-inner{max-width:620px; text-align:center; animation:rise .7s cubic-bezier(.2,.7,.3,1) both}
/* the flame's teardrops overshoot their box by ~30px, so leave room under it */
.welcome-fire{display:flex; justify-content:center; align-items:flex-end; margin-bottom:46px}
.welcome-fire .fire{transform:scale(1.1); transform-origin:50% 100%}
.welcome-logo{display:block; width:clamp(150px,15vw,190px); height:auto; margin:0 auto 20px}
.welcome-title{font-family:var(--sans); font-size:clamp(34px,5vw,62px); font-weight:400; letter-spacing:-.03em; line-height:1.05; margin:0 0 6px; text-wrap:balance}

.welcome-lede{font-size:clamp(15px,1.5vw,20px); line-height:1.45; color:var(--tx); margin:0 0 4px}
.welcome-meta{display:flex; align-items:center; justify-content:center; gap:20px; flex-wrap:wrap; margin:22px 0 34px}
.wm-item{display:flex; align-items:center; gap:10px; font-size:14px; color:var(--tx2)}
.wm-item .material-symbols-outlined{font-size:19px; color:var(--ember-2)}
.wm-dots{display:flex; gap:6px}
.wm-dots i{width:6px; height:6px; border-radius:99px; background:var(--ember); box-shadow:0 0 8px rgba(245,87,42,.45); animation:wm-dot .5s cubic-bezier(.2,1.5,.4,1) both}
.wm-dots i:nth-child(2){animation-delay:.04s}.wm-dots i:nth-child(3){animation-delay:.08s}
.wm-dots i:nth-child(4){animation-delay:.12s}.wm-dots i:nth-child(5){animation-delay:.16s}
.wm-dots i:nth-child(6){animation-delay:.2s}.wm-dots i:nth-child(7){animation-delay:.24s}
.wm-dots i:nth-child(8){animation-delay:.28s}.wm-dots i:nth-child(9){animation-delay:.32s}
.wm-dots i:nth-child(10){animation-delay:.36s}.wm-dots i:nth-child(11){animation-delay:.4s}
@keyframes wm-dot{from{opacity:0; transform:scale(.2)}to{opacity:1; transform:none}}
.wm-sep{width:5px; height:5px; border-radius:99px; background:var(--tx3)}

.welcome-go{font-size:16px; padding:16px 44px}

/* ── 01 · the scenes ─────────────────────────────────────────────── */
.sc-wrap{
  max-width:1360px; margin:0 auto; padding:0 var(--pad);
  min-height:calc(100vh - var(--map-h, 63px)); min-height:calc(100dvh - var(--map-h, 63px));
  display:grid; grid-template-columns:minmax(0,1fr);
}
.sc-wrap .sc{max-width:860px; width:100%; margin:0 auto}
.sc{display:flex; flex-direction:column; padding:40px 0 28px; min-width:0;
  min-height:calc(100vh - var(--map-h, 63px)); min-height:calc(100dvh - var(--map-h, 63px))}
.sc-top{display:none}
.sc-count{display:none}
.sc-progress{flex:1; display:flex; gap:20px; order:2}
.sc-group{display:flex; min-width:0}
.sc-bars{display:flex; gap:5px; width:100%}
.sc-progress button{flex:1; padding:10px 0; background:none; border:0; cursor:pointer}
.sc-progress span{display:block; height:4px; border-radius:99px; background:var(--b1); transition:.2s}
.sc-progress button:hover span{background:var(--tx3); transform:scaleY(1.7)}
.sc-progress .done span{background:var(--ember-border)}
.sc-progress .on span{background:var(--ember)}
.sc-stage{flex:1; display:flex; align-items:flex-start; padding-top:8vh}
.sc-foot{display:flex; align-items:center; gap:26px; padding-top:26px}
.sc-link{display:flex; align-items:center; gap:8px; background:none; border:1px solid var(--b2); border-radius:99px;
  color:var(--tx2); font-size:14px; padding:9px 16px 9px 13px; order:4; white-space:nowrap; transition:.18s}
.sc-link .material-symbols-outlined{font-size:18px}
.sc-link:hover{color:var(--tx); border-color:var(--ember-border); background:var(--ember-glow)}
.sc-link[hidden]{display:none}
.sc-link{text-transform:none}

.scene{width:100%; animation:scene-in .45s cubic-bezier(.2,.7,.3,1) both}
@keyframes scene-in{from{opacity:0; transform:translateX(18px)}to{opacity:1; transform:none}}
.scene-kicker{font-family:var(--mono); font-size:12px; letter-spacing:.2em; text-transform:uppercase; color:var(--ember); margin:0 0 16px}
.scene-kicker b{font-weight:400; color:var(--tx3)}
.scene-kicker b::after{content:"·"; color:var(--tx3); margin:0 .9em}
.scene-actions{display:flex; align-items:center; gap:10px; flex-wrap:wrap}
.scene-actions .scene-continue{margin-top:0}
.scene-skip{padding:10px 16px; font-size:13.5px}
.scene-q{font-family:var(--sans); font-size:clamp(28px,3.3vw,44px); font-weight:400; line-height:1.14; letter-spacing:-.025em; margin:0 0 34px; max-width:20ch}
.scene-sub{color:var(--tx2); font-size:17px; margin:-18px 0 28px}
.scene-opts{display:flex; flex-direction:column; gap:10px; max-width:620px}
.scene-opt{
  display:flex; align-items:center; gap:14px; text-align:left; width:100%;
  background:var(--bg2); border:1px solid var(--b1); border-radius:var(--rm);
  padding:16px 20px; font-size:16px; color:var(--tx); transition:background .18s, border-color .18s;
}
.scene-opt .radio{
  flex:0 0 auto; width:19px; height:19px; border-radius:99px; border:1.5px solid var(--b3);
  display:grid; place-items:center; transition:.18s;
}
.scene-opt .radio::after{content:""; width:9px; height:9px; border-radius:99px; background:var(--ember); transform:scale(0); transition:transform .18s}
.scene-opt .opt-label{flex:1 1 auto; min-width:0; line-height:1.35}
.scene-opt .opt-label i{display:block; font-style:normal; font-size:12.5px; color:var(--tx3); margin-top:3px}
.scene-opt .opt-meta{flex:0 0 auto; font-family:var(--mono); font-size:12.5px; color:var(--tx3); transition:color .18s}
.scene-opt:hover{border-color:var(--b3); background:var(--s1)}
.scene-opt:hover .radio{border-color:var(--ember-border)}
.scene-opt.on{border-color:var(--ember); background:var(--ember-glow)}
.scene-opt.on .radio{border-color:var(--ember)}
.scene-opt.on .radio::after{transform:scale(1)}
.scene-opt.on .opt-meta{color:var(--ember-2)}
.scene-opt.apart{margin-top:18px; position:relative}
.scene-opt.apart::before{content:""; position:absolute; left:0; right:0; top:-10px; height:1px; background:var(--b1)}
.scene-hint{color:var(--tx2); font-size:15px; margin:-20px 0 26px}
.scene.compact .scene-kicker{margin-bottom:10px}
.scene.compact .scene-q{font-size:clamp(24px,2.3vw,31px); max-width:none; margin-bottom:20px}
.scene.compact .scene-hint{margin:-10px 0 18px}
.scene.compact .scene-continue{margin-top:18px}
.scene.compact .scene-groups{gap:11px}
.scene.compact .scene-group-name{margin-bottom:6px}
.scene.compact .scene-ticks{grid-template-columns:repeat(auto-fit,minmax(152px,1fr)); gap:7px}
.scene.compact .scene-groups .scene-tick{padding:9px 12px; font-size:14px; gap:10px}

/* slider and number questions: the value is the headline, the control sits under it */
.scene-value{font-family:var(--sans); font-size:clamp(40px,5vw,60px); font-weight:500; color:var(--ember); line-height:1; margin-top:18px}
.scene-slider{width:100%; max-width:620px; display:block}
.scene-ends{display:flex; justify-content:space-between; max-width:620px; margin-top:10px;
  font-family:var(--mono); font-size:11px; color:var(--tx3)}
.scene-box{display:flex; width:fit-content; align-items:center; gap:4px; background:var(--bg2);
  border:1px solid var(--ember-border); border-radius:var(--rm); padding:12px 18px}
.scene-box span{font-family:var(--sans); font-size:26px; color:var(--tx2)}
.scene-box:focus-within{box-shadow:0 0 0 3px var(--ember-dim)}
.scene-number{width:160px; background:transparent; border:0; padding:2px 0;
  font-family:var(--sans); font-size:26px; color:var(--tx); -moz-appearance:textfield}
.scene-number::-webkit-outer-spin-button,.scene-number::-webkit-inner-spin-button{-webkit-appearance:none; margin:0}
.scene-number:focus{outline:none}
.scene-continue{display:block; margin-top:28px}
.scene-actions{margin-top:28px}

/* currency picker: sits above the money box, changes the symbol and nothing else */
.scene-cur{display:flex; gap:7px; margin-bottom:16px}
.scene-cur-btn{display:flex; align-items:center; gap:7px; background:var(--bg2); border:1px solid var(--b2);
  border-radius:99px; padding:7px 14px; font-size:12.5px; color:var(--tx2); transition:.18s}
.scene-cur-btn b{font-family:var(--sans); font-size:15px; color:var(--tx)}
.scene-cur-btn:hover{border-color:var(--ember-border); background:var(--ember-glow)}
.scene-cur-btn.on{border-color:var(--ember); background:var(--ember-dim); color:var(--tx)}

/* two sliders in one question */
.scene-pair{display:flex; flex-direction:column; gap:26px; max-width:620px}
.scene-part-ask{margin:0 0 14px}
.scene-part-ask b{display:block; font-family:var(--sans); font-weight:400; font-size:19px; color:var(--tx); letter-spacing:-.01em}
.scene-part-ask i{display:block; font-style:normal; font-size:13px; color:var(--tx2); margin-top:3px}
.scene-part-value{font-family:var(--sans); font-size:30px; font-weight:500; color:var(--ember); line-height:1; margin-top:14px}

/* the overview: one wide card per section, stacked */
.scene.overview{display:flex; flex-direction:column; justify-content:center; min-height:38vh}
.ov-note{font-family:var(--mono); font-size:11px; letter-spacing:.18em; text-transform:uppercase; color:var(--tx3); margin:0 0 16px}
.ov-cards{display:flex; flex-direction:column; gap:14px; width:100%; max-width:820px}
.ov-card{
  display:flex; align-items:center; gap:24px; text-align:left; width:100%;
  background:var(--bg2); border:1px solid var(--b2); border-radius:var(--rm); padding:28px 28px;
  color:var(--tx); transition:.18s;
}
.ov-card:hover{border-color:var(--ember); background:var(--ember-glow); transform:translateX(3px)}
.ov-n{flex:0 0 auto; font-family:var(--mono); font-size:12px; letter-spacing:.16em; color:var(--ember)}
.ov-body{flex:0 0 auto; min-width:0; display:flex; align-items:center}
/* the names share a width, so the dots line up across rows without drifting right */
.ov-card h3{margin:0; font-size:26px; font-weight:400; letter-spacing:-.015em; min-width:168px}
.ov-dots{flex:0 0 auto; display:flex; gap:7px}
.ov-go{margin-left:auto}
.ov-go{flex:0 0 auto; font-style:normal; font-size:14px; color:var(--ember-2); white-space:nowrap; min-width:112px; text-align:right}
.ov-dots i{width:7px; height:7px; border-radius:99px; background:var(--b2); transition:.18s}
.ov-dots i.on{background:var(--ember); box-shadow:0 0 7px rgba(245,87,42,.45)}
.ov-dots i.more{background:none; border:1px dashed var(--b3)}
.ov-card.done{border-left:2px solid var(--ok)}
@media (max-width:700px){
  .ov-card{flex-wrap:wrap; gap:10px 14px}
  .ov-body{flex:1 1 auto}
  .ov-dots{order:3; flex:1 1 100%}
  .ov-go{order:4; min-width:0; text-align:left}
}

/* tick-all-that-apply */
.scene-groups{display:flex; flex-direction:column; gap:18px; max-width:860px}
.scene-group-name{font-family:var(--mono); font-size:10.5px; letter-spacing:.16em; text-transform:uppercase;
  color:var(--tx3); margin:0 0 8px}
.scene-ticks{display:grid; grid-template-columns:repeat(auto-fit,minmax(190px,1fr)); gap:9px; max-width:860px}
.scene-groups .scene-tick{padding:11px 14px; font-size:14.5px}
.scene-tick{
  display:flex; align-items:center; gap:13px; text-align:left;
  background:var(--bg2); border:1px solid var(--b2); border-radius:var(--rm);
  padding:14px 16px; font-size:15.5px; color:var(--tx); transition:.18s;
}
.scene-tick .box{flex:0 0 auto; width:18px; height:18px; border-radius:5px; border:1.5px solid var(--b3); display:grid; place-items:center; transition:.18s}
.scene-tick:hover{border-color:var(--ember-border); background:var(--ember-glow)}
.scene-tick.on{border-color:var(--ember); background:var(--ember-dim)}
.scene-tick.on .box{background:var(--ember); border-color:var(--ember)}
.scene-tick.on .box::after{content:""; width:8px; height:4.5px; border:2px solid #fff; border-top:0; border-right:0; transform:translateY(-1px) rotate(-45deg)}

.scene-text{display:flex; gap:10px; max-width:620px}
.scene-text input{flex:1; background:var(--bg2); border:1px solid var(--ember-border); border-radius:var(--rm); padding:16px 18px; font-size:16px}
.scene-text input::placeholder{color:var(--tx3)}
.scene-text input:focus{outline:none; box-shadow:0 0 0 3px var(--ember-dim)}
.scene-note{
  display:flex; align-items:center; gap:12px; max-width:620px; margin-top:16px; padding:13px 16px;
  border-left:2px solid var(--ember); background:var(--ember-glow); border-radius:0 var(--rx) var(--rx) 0;
  animation:rise .35s cubic-bezier(.2,.7,.3,1) both;
}
.scene-note p{margin:0; font-size:15px; font-style:italic; color:var(--tx)}
.scene-note[hidden]{display:none}
.scene.final .scene-q{margin-bottom:24px}
.scene-go{font-size:15px; padding:15px 28px}

/* previous / next: the orange buttons, as arrows */
.sc-arrows{display:flex; gap:10px; order:1}
.sc-arrow{
  width:52px; height:52px; display:grid; place-items:center; border-radius:var(--rm);
  background:var(--ember); border:1px solid var(--ember); color:#fff;
  box-shadow:0 4px 24px rgba(245,87,42,.2); transition:.2s;
}
.sc-arrow .material-symbols-outlined{font-size:24px}
.sc-arrow:hover:not(:disabled){background:#ff6b3d; box-shadow:0 8px 32px rgba(245,87,42,.32); transform:translateY(-1px)}
.sc-arrow:disabled{background:transparent; border-color:var(--b2); color:var(--tx3); box-shadow:none; cursor:default}




/* the diagnosis itself */

/* ── the Bonfire graph (after GraphView / NodeInspector / EpisodeDirectory) ── */
.material-symbols-outlined{font-family:'Material Symbols Outlined'; font-weight:400; font-style:normal; line-height:1;
  letter-spacing:normal; text-transform:none; display:inline-block; white-space:nowrap; direction:ltr;
  -webkit-font-smoothing:antialiased; font-size:18px; font-variation-settings:'FILL' 0, 'wght' 400}
.gv{
  position:fixed; z-index:36; top:12px; right:12px; bottom:calc(var(--map-h, 63px) + 12px);
  width:min(720px, calc(100vw - 24px));
  border:1px solid #2c2c33; border-radius:16px; overflow:hidden; background:#1a1a1f;
  box-shadow:0 30px 80px rgba(0,0,0,.55); animation:rise .3s cubic-bezier(.2,.7,.3,1) both;
  transition:width .25s cubic-bezier(.2,.7,.3,1);
}
.gv.big{width:calc(100vw - 24px)}
.gv[hidden]{display:none}
.gv-canvas{position:absolute; inset:0}
.kg-svg{display:block; touch-action:none; user-select:none}
.kg-link{stroke:#cfcfd6; pointer-events:none}
.kg-hit{stroke:transparent; stroke-width:12; cursor:pointer}
.kg-edge-label{fill:#fff; font:9px ui-sans-serif,system-ui; text-anchor:middle; pointer-events:none}
.kg-nodes circle{cursor:pointer}
.kg-label{font:10px ui-sans-serif,system-ui; text-anchor:middle; pointer-events:none}

/* floating cards: bg-surface1 at 95%, surface2 borders, 2xl radius, blurred */
.gv-dir,.gv-insp{
  position:absolute; z-index:2; display:flex; flex-direction:column; overflow:hidden;
  background:rgba(21,37,48,.95); border:1px solid var(--s2); border-radius:16px;
  box-shadow:0 25px 50px -12px rgba(0,0,0,.5); backdrop-filter:blur(12px);
}
.gv-dir{top:14px; left:14px; width:260px; max-width:calc(100% - 28px); height:15rem; max-height:calc(100% - 80px)}
.gv-search{display:flex; align-items:center; gap:8px; padding:10px 12px; border-bottom:1px solid var(--s2); color:var(--tx3)}
.gv-search input{flex:1; min-width:0; background:transparent; border:0; font-size:13.5px; color:var(--tx)}
.gv-search input::placeholder{color:var(--tx3)}
.gv-search input:focus{outline:none}
.gv-search button{background:none; border:0; color:var(--tx2); padding:2px; border-radius:4px; display:grid}
.gv-search button[hidden]{display:none}
.gv-list{flex:1; min-height:0; overflow-y:auto}
.gv-list-head{margin:0; padding:10px 12px 4px; font-size:10px; font-weight:500; letter-spacing:.06em; text-transform:uppercase; color:var(--tx3)}
.gv-list-empty{margin:0; padding:8px 12px; font-size:12px; color:var(--tx3)}
.gv-row{display:flex; align-items:flex-start; gap:10px; width:100%; text-align:left; background:none; border:0; padding:8px 12px; transition:background .15s}
.gv-row:hover{background:rgba(26,47,58,.6)}
.gv-row.on{background:var(--s2)}
.gv-row .dot{flex:0 0 auto; width:10px; height:10px; border-radius:99px; margin-top:4px}
.gv-row .txt{display:flex; flex-direction:column; min-width:0}
.gv-row b{font-size:13px; font-weight:500; color:var(--tx); white-space:nowrap; overflow:hidden; text-overflow:ellipsis}
.gv-row i{font-style:normal; font-size:11px; color:var(--tx3)}
.gv-row code,.gi-meta code{font-family:var(--mono); font-size:10.5px}

.gv-insp{top:14px; right:14px; width:300px; max-width:calc(100% - 28px); max-height:calc(100% - 80px)}
.gv-insp[hidden]{display:none}
.gi-head{display:flex; align-items:flex-start; gap:8px; padding:14px 16px 12px; cursor:pointer; user-select:none}
.gi-head.open{border-bottom:1px solid var(--s2)}
.gi-title{flex:1; min-width:0; display:flex; flex-direction:column; gap:4px}
.gi-title h3{margin:0; font-family:var(--body); font-size:14px; font-weight:600; color:var(--tx); white-space:nowrap; overflow:hidden; text-overflow:ellipsis}
.gi-meta{display:flex; align-items:center; gap:6px; color:var(--tx3); font-size:11px}
.gi-kind{display:inline-flex; align-items:center; gap:6px; background:var(--s2); border-radius:6px; padding:2px 6px;
  font-size:10px; font-weight:600; letter-spacing:.04em; text-transform:uppercase; color:var(--tx2)}
.gi-kind i{width:8px; height:8px; border-radius:99px}
.gi-meta button,.gi-close{background:none; border:0; color:var(--tx2); padding:2px; border-radius:4px; display:grid}
.gi-meta button .material-symbols-outlined{font-size:13px}
.gi-meta button:hover,.gi-close:hover{color:var(--tx); background:var(--s2)}
.gi-body{flex:1; min-height:0; overflow-y:auto; padding:14px 16px; display:flex; flex-direction:column; gap:12px}
.gi-field span{display:block; font-size:10px; font-weight:500; letter-spacing:.06em; text-transform:uppercase; color:var(--tx3); margin-bottom:3px}
.gi-field p{margin:0; font-size:12.5px; line-height:1.55; color:var(--tx); white-space:pre-line; overflow-wrap:anywhere}
.gi-actions{display:flex; flex-direction:column; gap:6px; padding:12px; border-top:1px solid var(--s2)}
.gi-actions button{display:flex; align-items:center; gap:8px; background:none; border:0; border-radius:8px; padding:8px 10px;
  font-size:12px; font-weight:500; color:var(--tx); text-align:left; transition:background .15s}
.gi-actions button .material-symbols-outlined{color:var(--tx2)}
.gi-actions button:hover:not(:disabled){background:var(--s2)}
.gi-actions button:disabled{opacity:.4; cursor:not-allowed}

/* counts, bottom left - plain text over the canvas */
.gv-stats{position:absolute; left:16px; bottom:14px; z-index:2; margin:0; display:flex; gap:14px;
  font-size:12px; color:#9a9aa6; pointer-events:none}
.gv-stats span{display:flex; align-items:center; gap:6px}
.gv-stats i{width:8px; height:8px; border-radius:99px}
.gv-stats .k-ep{background:#f5572a}
.gv-stats .k-en{background:#e8e8e8}

/* expand / minimise, bottom right - labelled, orange */
.gv-controls{position:absolute; right:14px; bottom:12px; z-index:3; display:flex; gap:8px}
.gv-ctl{display:flex; align-items:center; gap:7px; padding:8px 13px 8px 10px; border-radius:10px;
  font-family:var(--sans); font-size:12.5px; font-weight:500; cursor:pointer; transition:.18s;
  background:rgba(245,87,42,.12); border:1px solid var(--ember-border); color:#ffd2c2;
  box-shadow:0 6px 18px rgba(0,0,0,.35); backdrop-filter:blur(8px)}
.gv-ctl .material-symbols-outlined{font-size:18px; color:var(--ember-2)}
.gv-ctl:hover{background:var(--ember); border-color:var(--ember); color:#fff}
.gv-ctl:hover .material-symbols-outlined{color:#fff}
#gv-min{background:var(--ember); border-color:var(--ember); color:#fff}
.gv-ctl[hidden]{display:none}
#gv-min .material-symbols-outlined{color:#fff}
#gv-min:hover{background:#ff6b3d}


/* collapsed: a small card, top right, on every page */
.gv-rail{
  position:fixed; z-index:36; top:16px; right:16px;
  display:flex; align-items:center; gap:9px; padding:6px 10px 6px 6px;
  background:rgba(22,22,26,.92); border:1px solid var(--ember-border); border-radius:12px; backdrop-filter:blur(10px);
  color:var(--tx); cursor:pointer; transition:border-color .2s, box-shadow .2s; box-shadow:0 10px 26px rgba(0,0,0,.35);
}
.gv-rail[hidden]{display:none}
.gv-rail:hover{border-color:var(--ember); box-shadow:0 0 0 3px var(--ember-dim), 0 10px 26px rgba(0,0,0,.35)}
.gv-rail-open{width:28px; height:28px; display:grid; place-items:center; border-radius:8px; background:var(--ember); color:#fff; font-size:17px}
.gv-rail-label{font-family:var(--sans); font-size:12.5px; font-weight:500}
.gv-rail-count{min-width:20px; height:20px; padding:0 6px; display:grid; place-items:center; border-radius:99px;
  background:var(--ember-dim); color:var(--ember-2); font-family:var(--mono); font-size:11px}
.gv-rail.fresh .gv-rail-open{animation:rail-ping 1.6s ease-out infinite}
.gv-rail.bump{animation:rail-bump .5s cubic-bezier(.2,1.6,.4,1)}
@keyframes rail-ping{0%{box-shadow:0 0 0 0 rgba(245,87,42,.6)}100%{box-shadow:0 0 0 12px rgba(245,87,42,0)}}

/* what the last answer added, under the rail, for a few seconds */
.gv-ping{position:fixed; z-index:35; top:60px; right:16px; display:flex; flex-direction:column; align-items:flex-end; gap:5px; pointer-events:none}
.gv-ping span{
  font-family:var(--mono); font-size:11px; letter-spacing:.04em; color:var(--ember-2);
  background:rgba(22,22,26,.82); border:1px solid var(--ember-border); border-radius:8px;
  padding:4px 9px; backdrop-filter:blur(8px); white-space:nowrap;
  animation:ping-line 3.6s cubic-bezier(.2,.7,.3,1) both;
}
@keyframes ping-line{
  0%{opacity:0; transform:translateY(-6px)}
  10%{opacity:1; transform:none}
  70%{opacity:1; transform:none}
  100%{opacity:0; transform:translateY(-4px)}
}
@keyframes rail-bump{0%{transform:scale(1)}40%{transform:scale(1.04)}100%{transform:scale(1)}}

/* ── 02 · the diagnosis ─────────────────────────────────────────── */
.dg-empty{text-align:center; padding:60px 20px; border:1px dashed var(--b2); border-radius:var(--rm)}
.dg-empty p{color:var(--tx2); margin:0 0 18px}
.dg{display:grid; grid-template-columns:minmax(0,.9fr) minmax(0,1.2fr); gap:36px; align-items:start}
.dg-purpose{color:var(--tx3); font-size:13.5px; margin:0 0 10px}
.dg-purpose q{color:var(--tx2); font-style:italic}
.dg-headline{font-size:clamp(21px,2.2vw,27px); font-weight:400; line-height:1.2; letter-spacing:-.02em; margin:0 0 22px}
.dg-score{display:flex; align-items:baseline; gap:10px; padding:14px 18px; margin:0 0 30px;
  background:var(--bg2); border:1px solid var(--b1); border-radius:var(--rm)}
.dg-score b{font-family:var(--sans); font-size:34px; font-weight:500; color:var(--ember); line-height:1}
.dg-score span{color:var(--tx2); font-size:13.5px}
.dg-title{font-family:var(--mono); font-size:10.5px; letter-spacing:.16em; text-transform:uppercase; color:var(--tx3); margin:0 0 12px}
.dg-losses{list-style:none; counter-reset:loss; margin:0 0 28px; padding:0; display:flex; flex-direction:column; gap:8px}
.dg-losses li{
  counter-increment:loss; position:relative; padding:12px 14px 12px 46px;
  background:rgba(239,68,68,.05); border:1px solid rgba(239,68,68,.16); border-radius:var(--rx);
  font-size:14px; color:var(--tx); animation:rise .45s cubic-bezier(.2,.7,.3,1) both;
}
.dg-losses li::before{
  content:counter(loss); position:absolute; left:14px; top:12px;
  font-family:var(--mono); font-size:11.5px; color:#ff8a70;
  width:20px; height:20px; border-radius:99px; border:1px solid rgba(239,68,68,.35); display:grid; place-items:center;
}
.dg-strengths{list-style:none; margin:0; padding:0; display:flex; flex-direction:column; gap:8px}
.dg-strengths li{padding:11px 14px; border:1px solid var(--b1); border-left:2px solid var(--ok); border-radius:var(--rx); font-size:14px; color:var(--tx2)}
.dg-strengths li b{color:var(--tx); font-weight:500; margin-right:4px}
.dg-strengths li.none{border-left-color:var(--b2); font-style:italic}

.dg-chart{margin:0}
.dg-chart figcaption{
  flex:1; display:flex; flex-direction:column; justify-content:center; align-items:center; gap:7px;
  text-align:center; margin-top:10px; padding:18px 20px; min-height:96px;
  border-top:1px solid var(--b1); color:var(--tx2); font-size:16.5px; line-height:1.45;
}
.dg-chart figcaption span{max-width:34ch}
.dg-chart figcaption b{display:block; font-family:var(--sans); font-weight:500; font-size:20px; color:var(--tx)}
.radar-ctx-idle{font-family:var(--mono); font-size:13.5px; letter-spacing:.12em; text-transform:uppercase; color:var(--tx3)}
.radar-pt .dot{transition:r .15s}
.radar-pt.on .dot{r:8}
.radar-label{cursor:default; pointer-events:none}
.radar-label.lit{fill:#fff; font-weight:600}
.radar-hit{fill:transparent; stroke:transparent; pointer-events:all; cursor:default}
.radar-spoke{transition:stroke .15s}
.radar-spoke.lit{stroke:rgba(245,87,42,.55)}
.radar{position:relative}
.radar svg{display:block; width:100%; height:auto; overflow:visible}
.radar-ring{fill:none; stroke:rgba(255,255,255,.07); stroke-width:1}
.radar-ring.outer{stroke:rgba(255,255,255,.16)}
.radar-spoke{stroke:rgba(255,255,255,.07); stroke-width:1}
.radar-tick{fill:var(--tx3); font-family:var(--mono); font-size:9px}
.radar-shape{stroke:var(--ember); stroke-width:2; stroke-linejoin:round}
.radar svg{animation:fade .3s ease both}
.radar-pt .hit{fill:transparent; cursor:default}
.radar-pt .dot{fill:var(--ember-2); stroke:var(--bg); stroke-width:2; transition:r .15s}
.radar-pt.weak .dot{fill:#ff6b57}
.radar-pt:hover .dot{r:7}
@keyframes fade{from{opacity:0}to{opacity:1}}
.radar-label{fill:var(--tx); font-family:var(--body); font-size:13px}
.radar-val{fill:var(--tx3); font-family:var(--mono); font-size:10.5px}
.radar-val.weak{fill:#ff8a70}
.radar-val.strong{fill:#6fd68f}
.radar-val.okay{fill:var(--tx2)}
.radar-tip{
  position:absolute; width:230px; pointer-events:none; z-index:3;
  background:var(--s2); border:1px solid var(--b2); border-radius:var(--rx); padding:10px 12px;
  box-shadow:0 10px 30px rgba(0,0,0,.35); font-size:12.5px; color:var(--tx2);
}
.radar-tip b{display:block; color:var(--tx); font-weight:500; margin-bottom:3px; font-size:13px}
.radar-tip[hidden]{display:none}

/* the loss calculator */
.lc{margin-top:0}
/* the two columns start and finish together */
.lc-grid{display:grid; grid-template-columns:minmax(0,65fr) minmax(0,35fr); gap:20px; align-items:stretch}
.lc-side{display:flex; flex-direction:column; gap:12px; min-width:0}
.lc-scores[open]{flex:1; display:flex; flex-direction:column}
.lc-scores[open] .dg-chart{flex:1; display:flex; flex-direction:column; min-height:0}
.lc-scores[open] .radar{flex:1; display:flex; align-items:center; min-height:0}
.lc-scores .radar svg{max-height:100%}
.lc-adjust,.lc-scores{background:var(--bg2); border:1px solid var(--b1); border-radius:var(--rm); overflow:hidden}
.lc-adjust summary,.lc-scores summary{display:flex; align-items:center; gap:10px; padding:17px 20px; cursor:pointer; list-style:none;
  font-size:15.5px; color:var(--tx2); border-bottom:1px solid transparent;
  transition:color .18s ease, border-bottom-color .18s ease}
.lc-adjust summary::marker,.lc-scores summary::marker{content:""}
.lc-adjust summary .material-symbols-outlined,.lc-scores summary .material-symbols-outlined{font-size:18px; color:var(--ember-2)}
.lc-adjust summary:hover,.lc-scores summary:hover{color:var(--tx)}
.lc-adjust[open] summary,.lc-scores[open] summary{border-bottom-color:var(--b1); color:var(--tx)}
.lc-scores summary b{margin-left:auto; font-family:var(--sans); font-weight:500; font-size:17px; color:var(--ember); white-space:nowrap}
.lc-scores .dg-chart{padding:18px 14px 10px}
/* the chart is in a narrow column now, so its type has to grow with the shrink */
.lc-scores .radar-label{font-size:25px}
.lc-scores .radar-val{font-size:21px}
.lc-scores .radar-tick{display:none}
.lc-scores figcaption{line-height:1.45}
.lc-inputs{padding:16px 20px 0}
.lc-field{margin-bottom:16px}
.lc-top{display:flex; justify-content:space-between; align-items:flex-end; gap:16px; margin-bottom:7px}
.lc-top label{font-size:14px; line-height:1.35; color:var(--tx); max-width:22ch; display:inline-flex; align-items:center; gap:7px}
.lc-why{display:inline-grid; place-items:center; width:20px; height:20px; padding:0; line-height:0; border-radius:99px; flex:0 0 auto;
  background:transparent; border:1px solid var(--b2); color:var(--tx2); transition:.18s}
.lc-why .material-symbols-outlined{display:block; font-size:13px; line-height:1; width:13px; height:13px}
.lc-why:hover,.lc-why.on{border-color:var(--ember); color:var(--ember-2); background:var(--ember-glow)}
.lc-field{position:relative}
.lc-pop{
  position:absolute; z-index:5; left:0; right:0; top:calc(100% - 6px);
  background:var(--s1); border:1px solid var(--b2); border-radius:var(--rm); padding:34px 18px 14px;
  box-shadow:0 24px 50px rgba(0,0,0,.5); animation:rise .22s cubic-bezier(.2,.7,.3,1) both;
}
.lc-pop p{margin:0 0 9px; font-size:13px; color:var(--tx2); line-height:1.5}
.lc-pop p:last-child{margin-bottom:0}
.lc-pop b{color:var(--tx); font-weight:500}
.lc-pop table{width:100%; border-collapse:collapse; margin:0 0 10px; font-size:12.5px}
.lc-pop td{padding:4px 0; border-bottom:1px solid var(--b1); color:var(--tx2)}
.lc-pop td:last-child{text-align:right; font-family:var(--mono); font-size:11.5px; color:var(--tx)}
/* the working floats over the card: nothing underneath it moves */
.lc-pophost{position:absolute; left:24px; right:24px; bottom:74px; z-index:6}
.lc-pophost:empty{display:none}
.lc-pop.inline{position:static; animation-duration:.18s; max-height:min(58vh,420px); overflow:auto}
/* a figure that came from their own answers */
.from-answer{text-decoration:underline; text-decoration-color:var(--ember); text-decoration-thickness:1.5px;
  text-underline-offset:3px; cursor:help; border-radius:2px}
.from-answer:hover,.from-answer:focus-visible{text-decoration-color:var(--ember-2); color:var(--tx); outline:none}
.qtip{position:fixed; z-index:90; pointer-events:none; white-space:nowrap;
  background:var(--bg); border:1px solid var(--ember-border); border-radius:8px; padding:5px 10px;
  font-family:var(--mono); font-size:11.5px; letter-spacing:.04em; color:var(--ember-2);
  box-shadow:0 10px 26px rgba(0,0,0,.5)}
.qtip[hidden]{display:none}
.lc-pop-x{position:absolute; top:7px; right:7px; background:none; border:0; color:var(--tx3); display:grid; place-items:center; padding:4px; line-height:0}
.lc-pop-x:hover{color:var(--tx)}
.lc-top b{font-family:var(--sans); font-weight:500; font-size:20px; color:var(--tx); white-space:nowrap; line-height:1}
.lc-ends{display:flex; justify-content:space-between; font-family:var(--mono); font-size:11px; color:var(--tx3); margin-top:5px}
.lc-reset{display:flex; align-items:center; gap:8px; margin:6px auto 14px; padding:9px 16px 9px 13px;
  background:none; border:1px solid var(--b2); border-radius:99px; color:var(--tx2); font-size:14.5px; transition:.18s}
.lc-reset .material-symbols-outlined{font-size:17px}
.lc-reset:hover{color:var(--tx); border-color:var(--ember-border); background:var(--ember-glow)}
.lc-reset[hidden]{display:none}

.lc-out{
  position:relative; display:flex; flex-direction:column; justify-content:space-between; gap:9px;
  padding:22px 24px 22px; border-radius:var(--rm);
  background:linear-gradient(160deg,#3a1614 0%,#26141a 45%,var(--bg2) 100%); border:1px solid rgba(239,68,68,.28);
}
.lc-period{display:inline-flex; gap:2px; padding:4px; margin:8px auto 0; background:rgba(0,0,0,.28); border:1px solid var(--b1); border-radius:99px; align-self:center}
.lc-period button{background:none; border:0; border-radius:99px; padding:6px 16px; font-size:13.5px; color:var(--tx2); transition:.16s}
.lc-period button.on{background:rgba(255,255,255,.1); color:#fff}
.lc-headline{display:flex; flex-direction:column; align-items:center; gap:8px; margin:0; text-align:center}
.lc-stats{margin:0}
.lc-kicker{font-family:var(--mono); font-size:13.5px; letter-spacing:.16em; text-transform:uppercase; color:#ff8a70; margin:0; white-space:nowrap}
.lc-big{font-family:var(--sans); font-weight:500; font-size:clamp(56px,6.9vw,108px); line-height:1; margin:0; color:#fff; letter-spacing:-.025em}
/* four figures, so a tidy 2 × 2 rather than a row with a hole in it */
.lc-stats{display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; margin-bottom:0}
.lc-stats div{position:relative; display:flex; flex-direction:column; justify-content:center; align-items:center;
  text-align:center; gap:4px; background:rgba(13,31,38,.72); border:1px solid var(--b1);
  border-radius:var(--rx); padding:13px 8px}      /* narrow sides: the longest label has to stay on one line */
.lc-stats .lc-why{position:absolute; top:9px; right:9px}
/* the boxes hug their numbers, and the space goes above and below them */
#st-1 .lc-stats{flex:0 0 auto}
.lc-stats .lc-why{position:absolute; top:11px; right:10px}
.lc-stats b{display:block; font-family:var(--sans); font-weight:500; font-size:34px; color:var(--tx); letter-spacing:-.02em; line-height:1.05}
.lc-stats i{font-style:normal; font-size:15px; color:var(--tx2); display:block; max-width:100%}
/* the breakdown and the two actions under it travel together, low in the card */
.lc-low{display:flex; flex-direction:column; gap:12px}
.lc-incl{margin:0; text-align:center; font-family:var(--mono); font-size:12px; letter-spacing:.16em;
  text-transform:uppercase; color:var(--tx3)}
.lc-acts{display:flex; flex-direction:column; align-items:center; gap:7px; margin:12px 0 0}      /* twice the gap under the boxes, half as much again under the button */
.lc-acts .btn{width:min(100%,420px); font-size:15.5px}
.lc-how{background:none; border:0; padding:8px 4px; font-size:14.5px; color:var(--tx2); text-decoration:underline;
  text-underline-offset:3px; text-decoration-color:var(--b3); white-space:nowrap; transition:.18s}
.lc-how:hover,.lc-how.on{color:var(--ember-2); text-decoration-color:var(--ember-border)}
.lc-method-list{margin:0; padding-left:18px}
.lc-method-list li{font-size:13px; line-height:1.55; color:var(--tx2); margin-bottom:8px}
.lc-method-list li:last-child{margin-bottom:0}
.lc-method-list b{color:var(--tx); font-weight:500}
/* the diagnosis is meant to land in one screen, so it drops the sign-off
   band that would otherwise push it over the fold */
/* the station already carries 20px below it, and main clears the docked bar */
/* a fixed height, not a minimum: nothing inside may stretch the page */
#st-1 .wrap{padding-top:68px; display:flex; flex-direction:column;
  height:calc(100vh - var(--map-h, 74px) - 20px); height:calc(100dvh - var(--map-h, 74px) - 20px)}
#st-1 #dg-body,#st-1 .lc{display:flex; flex-direction:column; flex:1; min-height:0}
#st-1 #dg-body[hidden]{display:none}
#st-1 .lc-grid{flex:1; min-height:0; grid-template-rows:minmax(0,1fr)}
#st-1 .lc-out,#st-1 .lc-side{min-height:0; height:100%}
#st-1 .lc-side{overflow:hidden}
/* Chrome wraps a details' contents in ::details-content, so the panel's own flex
   rules never reached the sliders - which is how the reset button got pushed out. */
#st-1 .lc-adjust[open],#st-1 .lc-scores[open]{display:flex; flex-direction:column; min-height:0; overflow:hidden}
#st-1 .lc-adjust[open]::details-content,#st-1 .lc-scores[open]::details-content{
  display:flex; flex-direction:column; flex:1 1 auto; min-height:0; overflow:hidden}
/* the sliders scroll inside their panel rather than stretching the whole page */
/* the sliders get whatever the panel has left after its heading and the reset button */
#st-1 .lc-inputs{flex:1 1 auto; min-height:0; overflow:auto; scrollbar-gutter:stable;
  scrollbar-width:thin; scrollbar-color:var(--s2) transparent}
#st-1 .lc-reset{flex:0 0 auto}
body[data-station="1"] .foot{display:none}
/* the two ways on sit together, centred, just above the docked bar */
.lc-nav{display:flex; align-items:center; justify-content:center; gap:12px; flex-wrap:wrap;
  flex:0 0 auto; padding:34px 0 30px}
.lc-nav .btn{font-size:15.5px; padding:13px 24px}

/* that is the calculator at its largest; a shorter screen takes the same layout, scaled down */
@media (max-height:860px){
  #st-1 .wrap{padding-top:40px}
  .lc-nav{padding:22px 0 20px}
  .lc-headline{margin:0; gap:6px}
  .lc-big{font-size:clamp(48px,5.8vw,84px)}
  .lc-stats{gap:10px}
  .lc-stats div{padding:14px 12px}
  .lc-stats b{font-size:28px}
  .lc-stats i{font-size:14px}
  .lc-period{margin-top:4px}
  .lc-out{padding:18px 20px 16px}
  .lc-inputs{padding:12px 18px 0}
  .lc-field{margin-bottom:11px}
  .lc-top label{font-size:13px}
  .lc-top b{font-size:18px}
  .lc-ends{font-size:10px; margin-top:4px}
  .lc-reset{margin:4px auto 10px; font-size:13.5px; padding:8px 14px 8px 12px}
}
@media (max-height:760px){
  #st-1 .wrap{padding-top:26px}
  .lc-nav{padding:16px 0 14px}
  .lc-big{font-size:clamp(44px,5.2vw,70px)}
  .lc-stats div{padding:9px 10px}
  .lc-stats b{font-size:24px}
  .lc-stats i{font-size:13px}
  .lc-period{margin-bottom:0}
}

/* ── 03 · contact us: one screen, no scroll, everything on the centre line ── */
#st-2 .wrap{padding-top:96px; display:flex; flex-direction:column;
  height:calc(100vh - var(--map-h, 74px) - 20px); height:calc(100dvh - var(--map-h, 74px) - 20px)}
body[data-station="2"] .foot{display:none}
.rc{flex:1; min-height:0; display:flex; flex-direction:column; align-items:center; justify-content:center;
  text-align:center; gap:clamp(12px,2.4vh,26px); padding-bottom:8px}
.rc-head{max-width:860px}
.rc-title{font-family:var(--sans); font-weight:400; font-size:clamp(32px,4vw,54px); line-height:1.08;
  letter-spacing:-.025em; margin:0 0 14px; text-wrap:balance}
.rc-title b{font-weight:500; color:var(--ember-2); white-space:nowrap}      /* their number */
.rc-sub{margin:0 auto; max-width:56ch; color:var(--tx2); font-size:18px; line-height:1.5}

/* the one thing the page asks for: a single large button, nothing around it */
.rc-call{display:flex; flex-direction:column; align-items:center; width:100%}
.rc-call-btn{font-size:21px; padding:20px 58px; box-shadow:0 14px 50px rgba(245,87,42,.28)}
/* the quieter ask, under the call */
.rc-mail{font-size:14.5px; padding:9px 22px; cursor:pointer; margin-top:-4px}
.rc-mail[hidden]{display:none}
/* the figures come first, straight under the title; the call sits below with room around it */
.rc-call{margin-top:clamp(4px,1.2vh,14px)}
.rc-stage{margin-top:clamp(4px,1.2vh,14px)}
a.btn{display:inline-block; text-decoration:none; text-align:center}

/* their number, and under it the icons that explain what a Bonfire does about each part */
.rc-stage{width:100%; max-width:860px; display:flex; flex-direction:column; align-items:center; gap:18px}
.rc-box{width:100%; height:196px; display:grid; place-items:center; padding:18px 30px;
  background:var(--bg2); border:1px solid var(--b1); border-radius:var(--rm); transition:border-color .2s}
.rc-box.is-info{border-color:var(--ember-border); padding-left:56px; padding-right:56px}      /* the words and the number sit in from the edges */
.rc-box > *{animation:fade .35s ease both}

.rc-info{width:100%; display:grid; grid-template-columns:minmax(0,1fr) auto; align-items:center; gap:34px; text-align:left}
.rc-info.solo{grid-template-columns:minmax(0,1fr)}
.rc-info.wide{grid-template-columns:minmax(0,.9fr) minmax(0,1.1fr)}
.rc-info-side{min-width:0; padding-left:40px; border-left:1px solid var(--b1)}
.rc-info-main{min-width:0}
.rc-info h3{margin:11px 0 9px; font-size:21px; font-weight:500; line-height:1.25; letter-spacing:-.01em}
.rc-info p{margin:0 0 6px; color:var(--tx2); font-size:14.5px; line-height:1.5}
.rc-info .rc-tag{margin:0; color:var(--tx3); font-size:11px; line-height:1.4}
.rc-points{margin:0; padding:0; list-style:none; display:flex; flex-direction:column; gap:5px}
.rc-points li{position:relative; padding-left:16px; color:var(--tx2); font-size:14.5px; line-height:1.45}
.rc-points li::before{content:""; position:absolute; left:0; top:.6em; width:6px; height:6px; border-radius:99px; background:var(--ember)}
.rc-points b{color:var(--tx); font-weight:500}
.rc-info-fig{text-align:right; padding-left:40px; border-left:1px solid var(--b1); max-width:260px}
.rc-info-fig b{display:block; font-family:var(--sans); font-weight:500; font-size:clamp(28px,3vw,40px); line-height:1.05;
  letter-spacing:-.02em; color:#fff; white-space:nowrap}
.rc-info-fig i{display:block; font-style:normal; font-size:13px; color:var(--tx2); margin-top:6px}
.rc-tag{font-family:var(--mono); font-size:11px; letter-spacing:.14em; text-transform:uppercase; color:var(--tx3)}
.rc-tag b{font-weight:500; color:#ff8a70; margin-left:6px; letter-spacing:.04em}
.rc-logos{display:flex; flex-wrap:wrap; gap:7px}
.rc-logos .more{color:var(--tx3); border-style:dashed; padding-left:12px}
.rc-logos span{display:inline-flex; align-items:center; gap:8px; font-size:13px; color:var(--tx);
  background:var(--bg); border:1px solid var(--b2); border-radius:99px; padding:5px 12px 5px 8px; white-space:nowrap}
.rc-logos img{display:block; width:18px; height:18px; object-fit:contain}
.rc-logos .mono{display:grid; place-items:center; width:18px; height:18px; border-radius:5px;
  background:var(--s2); color:var(--tx2); font-family:var(--mono); font-size:10.5px; padding:0; border:0}

/* the icons: one line running through them, nothing but a label until hovered */
.rc-connect{position:relative; display:grid; grid-template-columns:repeat(var(--rc-cols,4),minmax(0,1fr));
  width:100%; max-width:calc(200px * var(--rc-cols,4))}
.rc-connect::before{content:""; position:absolute; top:25px; height:1px; background:var(--ember-border);
  left:calc(50% / var(--rc-cols,4)); right:calc(50% / var(--rc-cols,4))}
.rc-stop{position:relative; display:flex; flex-direction:column; align-items:center; gap:8px;
  background:none; border:0; padding:0 4px; color:inherit; cursor:pointer}
.rc-icon{display:grid; place-items:center; width:50px; height:50px; border-radius:99px;
  background:var(--bg); border:1px solid var(--ember-border); color:var(--ember-2); transition:.18s}
.rc-icon .material-symbols-outlined{font-size:24px}
.rc-stop-tag{font-family:var(--mono); font-size:10.5px; letter-spacing:.14em; text-transform:uppercase; color:var(--tx3); transition:color .18s}
.rc-stop.on .rc-icon,.rc-stop:focus-visible .rc-icon{background:var(--ember); border-color:var(--ember); color:#fff;
  box-shadow:0 0 0 5px var(--ember-dim)}
.rc-stop.on .rc-stop-tag{color:var(--tx)}
/* clicked: stays marked while another icon is being previewed */
.rc-stop.is-pinned .rc-icon{border-color:var(--ember); box-shadow:0 0 0 5px var(--ember-dim)}
.rc-stop.is-pinned .rc-stop-tag{color:var(--tx)}
.rc-stop:focus-visible{outline:none}

@media (max-height:860px){
  #st-2 .wrap{padding-top:66px}
  .rc-title{font-size:clamp(28px,3.2vw,42px); margin-bottom:8px}
  .rc-sub{font-size:16px}
  .rc-call-btn{font-size:19px; padding:17px 50px}
  .rc-stage{gap:14px}
  .rc-box{height:164px; padding:14px 26px}
  .rc-info h3{font-size:18.5px; margin:9px 0 7px}
  .rc-box.is-info{padding-left:48px; padding-right:48px}
  .rc-info p,.rc-points li{font-size:13.5px}
  .rc-logos{gap:6px}
  .rc-logos span{font-size:12px; padding:4px 10px 4px 7px}
  .rc-icon{width:44px; height:44px}
  .rc-connect::before{top:22px}
}
@media (max-height:720px){
  #st-2 .wrap{padding-top:46px}
  .rc{gap:10px; padding-bottom:4px}
  .rc-box{height:158px}
}
/* narrow screens stack, and are allowed to scroll */
@media (max-width:860px){
  #st-2 .wrap{height:auto}
  .rc-box{height:auto; min-height:170px}
  .rc-info,.rc-info.wide{grid-template-columns:minmax(0,1fr)}
  .rc-info-fig,.rc-info-side{text-align:left; padding:10px 0 0; border-left:0; border-top:1px solid var(--b1); max-width:none}
}

.foot{
  max-width:1180px; margin:0 auto; padding:26px var(--pad) calc(var(--map-h, 63px) + 28px);
  display:flex; justify-content:space-between; gap:16px; flex-wrap:wrap;
  border-top:1px solid var(--b1); font-size:12px; color:var(--tx2);
}
.foot em{font-style:normal; color:var(--tx3)}
/* every page is one screen above the docked bar, so the footer stays out of the way */
.foot{display:none}

/* ── contact sheet ─────────────────────────────────────────────── */
.sheet{position:fixed; inset:0; z-index:60; display:grid; place-items:center; padding:24px;
  background:rgba(5,12,16,.72); backdrop-filter:blur(6px); animation:fade .2s both}
.sheet[hidden]{display:none}
.sheet-card{position:relative; width:min(460px,100%); background:var(--s1); border:1px solid var(--b2);
  border-radius:var(--rm); padding:30px 30px 24px; box-shadow:0 40px 90px rgba(0,0,0,.6);
  animation:rise .25s cubic-bezier(.2,.7,.3,1) both}
.sheet-card h2{margin:0 0 10px; font-size:26px; font-weight:400; letter-spacing:-.02em; line-height:1.2}
.sheet-sub{margin:0 0 22px; color:var(--tx2); font-size:15px; line-height:1.5}
.sheet-card .btn.full{display:block; text-align:center; text-decoration:none; font-size:15.5px}
.sheet-card .fine{margin:12px 0 0; text-align:center}
.sheet-x{position:absolute; top:12px; right:12px; display:grid; place-items:center; width:32px; height:32px;
  background:none; border:0; border-radius:99px; color:var(--tx3)}
.sheet-x:hover{color:var(--tx); background:var(--b1)}
body.sheeting{overflow:hidden}

.toast{
  position:fixed; left:50%; bottom:28px; transform:translate(-50%,24px); opacity:0; pointer-events:none;
  background:var(--s2); border:1px solid var(--ember-border); border-radius:var(--rm);
  padding:12px 20px; font-size:13px; z-index:80; transition:.3s;
}
.toast.on{opacity:1; transform:translate(-50%,0)}

/* ── responsive ───────────────────────────────────────────────── */
@media (min-width:1081px) and (max-width:1320px){
  .sc-top{padding-right:170px}
}
@media (max-width:1080px){
  .gv-rail{top:16px; bottom:auto; right:14px}
  .gv-ping{top:58px; right:14px}
  .sc-count{display:none}          /* the progress bar says the same thing */
  .sc{padding-bottom:20px}
  .sc-foot{justify-content:flex-start; gap:18px}
  aside.gv{top:0; left:0; right:0; bottom:calc(var(--map-h, 63px) + 10px); width:auto; border-radius:0 0 14px 14px}
  aside.gv .gv-dir{height:11rem; width:230px}
  #gv-expand{display:none}
  aside.gv .gv-insp{top:auto; bottom:70px; width:calc(100% - 28px)}
  .sc-wrap{grid-template-columns:minmax(0,1fr); max-width:780px; min-height:0}
  .dg,.lc-grid{grid-template-columns:1fr}
}
@media (max-width:860px){
  .scene-ticks{grid-template-columns:1fr}
  .scene-value{font-size:38px}
  .welcome-fire{margin:-40px 0 30px}
  .welcome-meta{flex-direction:column; gap:10px}
  .wm-sep{display:none}   /* the row wraps at this width */
  .welcome-fire .fire{transform:scale(.72)}
  .radar-label{font-size:19px}
  .radar-val{font-size:14px}
  .radar-tick{display:none}
  .steps button{font-size:0; gap:0; padding:9px 4px}
  .steps button b{font-size:10.5px}
  .role-head{display:none}
  .role{grid-template-columns:1fr 1fr; gap:8px}
  .role .role-label{grid-column:1 / -1}
  .role.solo{grid-template-columns:1fr}
  .role:not(.solo) .num::before{content:attr(data-l); font-family:var(--mono); font-size:9.5px; letter-spacing:.1em; text-transform:uppercase; color:var(--tx3); margin-right:8px}
  :root{--pad:20px}
  .map{gap:12px; flex-wrap:wrap; padding:12px 20px}
  .oases{order:3; width:100%; justify-content:space-between; gap:4px}
  .trail{display:none}
  .oasis{padding:6px 9px; flex:1; justify-content:center}
  .oasis i{display:none}
  .ghost-btn{margin-left:auto}
  .out-grid{grid-template-columns:1fr}
}
/* ── stacked: below this width the diagnosis and contact pages scroll instead of fitting one screen ── */
@media (max-width:1080px){
  #st-1 .wrap,#st-2 .wrap{height:auto; padding-top:68px}     /* clears the Your Bonfire button */
  #st-1 .lc-grid{grid-template-rows:none}
  #st-1 .lc-out,#st-1 .lc-side{height:auto}
  #st-1 .lc-side,#st-1 .lc-inputs{overflow:visible}
  #st-1 .lc-adjust[open],#st-1 .lc-scores[open]{overflow:visible}
  /* the chart takes its own height here; sharing the panel with the caption cut its top and bottom off */
  .lc-scores[open] .radar{flex:0 0 auto}
  .lc-scores .radar svg{max-height:360px}
  .lc-scores[open] .dg-chart figcaption{flex:0 0 auto; min-height:88px}
  .rc{justify-content:flex-start}
  .rc-box{height:auto; min-height:170px}
  .radar-hit{cursor:pointer}
}

/* ── phones ───────────────────────────────────────────────────── */
@media (max-width:700px){
  :root{--pad:16px}

  /* the bar folds into one round button, bottom right. Its menu opens upwards out of it:
     the three pages, the graph, the call. Nothing is docked, so the page gets the whole screen */
  .map{left:auto; right:12px; bottom:12px; padding:0; gap:8px; flex-wrap:nowrap;
    flex-direction:column; align-items:flex-end;
    background:none; backdrop-filter:none; border:0; pointer-events:none}
  .map > *{pointer-events:auto}
  .brand{display:none}
  .trail{display:none}
  .map-toggle{display:grid; place-items:center; width:48px; height:48px; border-radius:99px; padding:0;
    background:var(--ember); border:1px solid var(--ember); color:#fff;
    box-shadow:0 8px 28px rgba(0,0,0,.5); transition:background .18s, border-color .18s}
  .map-toggle .material-symbols-outlined{font-size:24px}
  .map.is-open .map-toggle{background:var(--s2); border-color:var(--b3)}
  .oases{order:0; width:auto; flex:0 0 auto; flex-direction:column; align-items:flex-end; gap:8px}
  .oasis,.map .ghost-btn,.map-bonfire{display:flex; align-items:center; gap:9px; flex:0 0 auto; margin:0;
    padding:11px 16px; border-radius:99px; background:var(--s1); border:1px solid var(--b2); color:var(--tx);
    font-family:var(--body); font-size:14.5px; white-space:nowrap; box-shadow:0 8px 24px rgba(0,0,0,.5)}
  .oasis .dot{display:none}
  .oasis i{display:inline; font-size:14.5px}
  .oasis.is-active{border-color:var(--ember); background:linear-gradient(var(--ember-glow),var(--ember-glow)), var(--s1)}
  .oasis.is-locked{opacity:.6}
  .map-bonfire .material-symbols-outlined{font-size:18px; color:var(--ember-2)}
  .map-bonfire b{font-family:var(--mono); font-weight:400; font-size:11px; color:var(--ember-2);
    background:var(--ember-dim); border-radius:99px; padding:2px 7px; margin-left:2px}
  .map .ghost-btn{background:var(--ember); border-color:var(--ember); color:#fff}
  /* folded: only the button; opening, the items grow out of its corner */
  .oases,.map .ghost-btn,.map-bonfire{transform-origin:100% 100%;
    transition:opacity .18s ease, transform .22s cubic-bezier(.2,.7,.3,1), visibility 0s}
  .map:not(.is-open) .oases,.map:not(.is-open) .ghost-btn,.map:not(.is-open) .map-bonfire{
    opacity:0; visibility:hidden; transform:translateY(14px) scale(.9); pointer-events:none;
    transition:opacity .14s ease, transform .14s ease, visibility 0s .14s}

  /* the graph button, and the single line under it */
  /* the graph button is in the menu here; what an answer added shows for a moment above the menu button */
  .gv-rail{display:none}
  .gv-ping{position:fixed; top:auto; bottom:68px; right:12px}
  aside.gv{bottom:72px}

  /* 01 · questions: the first line of the page starts under the graph button */
  .sc{padding:40px 0 14px}
  .sc-stage{padding-top:0}
  .scene-kicker{font-size:11px; letter-spacing:.16em; margin-bottom:12px}
  .scene-q{font-size:26px; margin-bottom:24px; max-width:none}
  .scene.compact .scene-q{font-size:22px; margin-bottom:14px}
  .scene-value{font-size:36px; margin-top:14px}
  .scene-opt{padding:14px 16px; font-size:15.5px}
  .scene-continue,.scene-actions{margin-top:22px}
  .scene-number{width:130px}
  .sc-foot{flex-wrap:wrap; gap:12px 8px; padding-top:16px}
  .sc-progress{order:0; flex:1 1 100%; gap:10px}
  .sc-progress button{padding:8px 0}
  .sc-arrows{order:1; gap:8px; margin-right:auto}
  .sc-arrow{width:42px; height:42px}
  .sc-link{font-size:12.5px; padding:8px 11px 8px 9px; gap:5px}
  .sc-long{display:none}
  #sc-back{text-transform:capitalize}
  #sc-restart{margin-right:58px}                 /* the menu button sits at the end of this row */
  .sc-link .material-symbols-outlined{font-size:16px}

  /* the sections menu: name and action on one line, dots under */
  .scene.overview{min-height:0; justify-content:flex-start}
  .ov-cards{gap:10px}
  .ov-card{padding:16px 16px; gap:8px 12px}
  .ov-card h3{font-size:21px; min-width:0}
  .ov-body{flex:0 1 auto}
  .ov-go{order:2; margin-left:auto; font-size:13px}
  .ov-dots{order:3; flex:1 1 100%; padding-left:2px}
  .ov-card:hover{transform:none}

  /* 02 · diagnosis */
  #st-1 .wrap,#st-2 .wrap{padding-top:22px}
  body[data-station="1"] main,body[data-station="2"] main{padding-bottom:74px}      /* the last thing on the page clears the menu button */
  .lc-grid{gap:12px}
  .lc-out{padding:14px 12px 18px; gap:14px}
  .lc-period{margin-top:0}
  .lc-kicker{font-size:12px}
  .lc-big{font-size:clamp(40px,12.5vw,54px)}
  .lc-stats{grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px; margin-bottom:0}
  .lc-stats div{padding:22px 8px 12px; justify-content:flex-start}
  .lc-stats b{font-size:22px}
  .lc-stats i{font-size:12px; line-height:1.3}
  .lc-stats .lc-why{top:5px; right:5px}
  .lc-pophost{left:8px; right:8px; bottom:auto; top:64px}
  .lc-pop.inline{max-height:60vh}
  .lc-acts .btn{font-size:14.5px}
  .lc-adjust summary,.lc-scores summary{padding:14px 16px}
  .lc-nav{padding:16px 0 22px; gap:10px}
  .lc-nav .btn{flex:1 1 100%; font-size:15px}

  /* 03 · contact us */
  .rc{gap:16px; padding-bottom:22px}
  .rc-title{font-size:29px; margin-bottom:10px}
  .rc-sub{font-size:15.5px}
  .rc-call-btn{font-size:18px; padding:17px 30px}
  /* icons first: the box under them changes height with each one, and the icons must not move under a thumb */
  .rc-stage{gap:16px; flex-direction:column-reverse; margin-top:4px}
  .rc-call{margin:8px 0}
  .rc-box.is-info{padding-left:20px; padding-right:20px}
  .rc-box{padding:18px 16px; min-height:190px}
  .rc-info{gap:12px}
  .rc-info h3{font-size:19px}
  .rc-stop{padding:0 2px}
  .rc-stop-tag{font-size:9.5px; letter-spacing:.1em}

  .toast{bottom:74px; max-width:calc(100vw - 32px); text-align:center}
}
/* the narrowest phones: the two footer links lose their icons so the row still fits beside the menu button */
@media (max-width:395px){
  .sc-link .material-symbols-outlined{display:none}
  .sc-link{padding:8px 11px}
}
@media (prefers-reduced-motion:reduce){
  *{animation-duration:.001s !important; transition-duration:.08s !important}
  html{scroll-behavior:auto}
}
