/* ==========================================================================
   The scene layer, part two: the CSS devices and widgets the segment, app,
   creator and how-to pages are built from. Sits on top of scrolly.css (which
   owns the scroll engine, the lock-screen phone and the watch). Everything
   here is state-driven: [data-step] on a scene wrapper, --p on a progress
   wrapper, or a .sel class the small script toggles. No screenshots, no
   images, and every state has a readable static fallback.
   ========================================================================== */

/* ── hero with a device beside the copy ─────────────────────────────────── */
.hero-duo { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; }
.hero-duo .devcol { display: flex; justify-content: center; }
.hero-duo .devcol .aphone, .hero-duo .devcol .desk { animation: floaty 7s ease-in-out infinite; }
@keyframes floaty { 0%,100% { transform: translateY(0) rotate(-1deg); } 50% { transform: translateY(-10px) rotate(-1deg); } }
@media (max-width: 900px) {
  .hero-duo { grid-template-columns: 1fr; }
  .hero-duo .devcol { order: -1; transform: scale(.78); margin: -60px 0 -40px; }
}

/* ── the app phone (the client and coach apps, dark instrument) ─────────── */
.aphone {
  width: 300px; height: 610px; border-radius: 46px; position: relative;
  background: #0b0d16; border: 10px solid #10131f;
  box-shadow: 0 40px 90px rgba(15,18,41,.45), inset 0 0 0 2px #1c2033;
  overflow: hidden; color: #eef0f7; font-family: var(--font-body); font-size: 13px;
}
.aphone .notch { position: absolute; top: 10px; left: 50%; transform: translateX(-50%); width: 106px; height: 26px; background: #10131f; border-radius: 999px; z-index: 6; }
.ascreen {
  position: absolute; inset: 0; padding: 54px 16px 18px;
  background: radial-gradient(90% 42% at 50% 0%, #1d2440 0%, #0b0d16 62%);
  opacity: 0; transform: translateY(14px) scale(.985);
  transition: opacity .45s ease, transform .45s cubic-bezier(.2,.8,.3,1);
}
.ascreen.on { opacity: 1; transform: none; }
[data-step="0"] .as-0, [data-step="1"] .as-1, [data-step="2"] .as-2, [data-step="3"] .as-3,
[data-step="4"] .as-4, [data-step="5"] .as-5, [data-step="6"] .as-6, [data-step="7"] .as-7 { opacity: 1; transform: none; }

/* hero phones cycle three screens on their own */
.hero-ap .ascreen { animation: cyc3 12s ease-in-out infinite; opacity: 0; }
.hero-ap .as-1 { animation-delay: -4s; } .hero-ap .as-2 { animation-delay: -8s; }
.hero-ap .dscreen, .hero-ap .dscreen.on { animation: cyc3 12s ease-in-out infinite; opacity: 0; }
.hero-ap .ds-1 { animation-delay: -4s; } .hero-ap .ds-2 { animation-delay: -8s; }
.hero-ap .ds-3, .hero-ap .ds-4, .hero-ap .ds-5 { animation: none; opacity: 0; }
@keyframes cyc3 { 0% { opacity: 0; transform: translateY(14px) scale(.985); } 5%, 30% { opacity: 1; transform: none; } 35%, 100% { opacity: 0; } }

.ascreen .ak { font: 700 10px var(--font-body); letter-spacing: .18em; color: #8f96b5; text-transform: uppercase; }
.ascreen .ag { font-family: var(--font-display); font-weight: 500; font-size: 23px; letter-spacing: -.01em; margin: 6px 0 14px; color: #f4f2ef; }
.ascreen .ag em { font-style: italic; color: var(--accent); }
.arow { display: flex; align-items: center; gap: 10px; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.06); border-radius: 14px; padding: 12px 12px; margin-bottom: 8px; font-size: 13.5px; }
.arow .am { width: 30px; height: 30px; border-radius: 9px; flex: none; background: linear-gradient(135deg, #2e3a4a, #161c24); display: flex; align-items: center; justify-content: center; font-size: 14px; }
.arow .tick { width: 22px; height: 22px; border-radius: 50%; border: 2px solid #6b7089; flex: none; position: relative; transition: all .35s ease; margin-left: auto; }
.arow.done .tick { border-color: var(--secondary); background: var(--secondary); }
.arow.done .tick::after { content: "✓"; position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 800; color: #10131f; }
.arow.done .al { color: #8f96b5; }
.arow .al small { display: block; font-size: 10.5px; color: #8f96b5; }
.arow .streak { font: 700 11px var(--font-body); color: var(--accent); margin-left: 2px; }
.aarc { margin: 4px 0 12px; }
.aarc svg { display: block; width: 100%; height: 64px; overflow: visible; }
.afoot { position: absolute; left: 16px; right: 16px; bottom: 16px; display: flex; justify-content: space-around; font-size: 9.5px; color: #6b7089; letter-spacing: .08em; text-transform: uppercase; }
.afoot b { color: var(--accent); }

/* check-in sheet */
.acheck .aq { font-size: 14px; color: #dfe3f0; margin: 14px 0 8px; }
.adots { display: flex; gap: 9px; margin-bottom: 6px; }
.adots i { width: 36px; height: 36px; border-radius: 50%; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.1); display: flex; align-items: center; justify-content: center; font: 700 12px var(--font-body); color: #9aa1bd; font-style: normal; }
.adots i.sel { background: var(--secondary); color: #10131f; border-color: var(--secondary); box-shadow: 0 0 18px rgba(212,160,57,.5); }
.achips { display: flex; flex-wrap: wrap; gap: 7px; margin: 4px 0 10px; }
.achips span { font: 600 11.5px var(--font-body); padding: 7px 11px; border-radius: 999px; border: 1px solid rgba(255,255,255,.14); color: #c8cddf; }
.achips span.sel { background: rgba(232,200,122,.16); border-color: var(--accent); color: var(--accent); }
.anote { background: rgba(255,255,255,.06); border-radius: 12px; padding: 10px 12px; font-size: 12.5px; color: #c8cddf; font-style: italic; }
.abtn { display: flex; align-items: center; justify-content: center; gap: 8px; background: var(--secondary); color: #10131f; border-radius: 12px; padding: 12px 0; font-weight: 700; font-size: 14px; margin-top: 12px; }
.abtn.ghost { background: rgba(255,255,255,.08); color: #dfe3f0; }
.asub { text-align: center; font-size: 11px; color: #8f96b5; margin-top: 9px; }

/* reading */
.aread { text-align: center; padding-top: 10px; }
.aread .big { font-size: 56px; font-weight: 300; letter-spacing: -.03em; line-height: 1; }
.aread .unit { font-size: 11px; color: #8f96b5; letter-spacing: .14em; margin-top: 4px; }
.aspark { display: flex; align-items: flex-end; gap: 6px; height: 70px; margin: 22px 8px 6px; }
.aspark i { flex: 1; border-radius: 4px 4px 2px 2px; background: linear-gradient(180deg, var(--accent), rgba(212,160,57,.35)); opacity: .85; }
.aspark i:last-child { background: linear-gradient(180deg, #fff, var(--accent)); opacity: 1; box-shadow: 0 0 14px rgba(232,200,122,.6); }
.atrend { font-size: 12.5px; color: #7fd6a4; }

/* coach message inside the app */
.amsg { background: rgba(28,32,54,.95); border: 1px solid rgba(255,255,255,.12); border-radius: 20px; padding: 14px; margin-top: 10px; }
.amsg .nh { display: flex; align-items: center; gap: 9px; margin-bottom: 8px; }
.face { width: 34px; height: 34px; border-radius: 50%; flex: none; background: linear-gradient(135deg, var(--secondary), #a2762a); display: flex; align-items: center; justify-content: center; font: 700 13px var(--font-body); color: #10131f; box-shadow: 0 0 0 2px rgba(212,160,57,.4); }
.amsg .who b { display: block; font-size: 13.5px; } .amsg .who span { font-size: 11px; color: #9aa1bd; }
.amsg .msg { font-size: 14.5px; line-height: 1.45; color: #e6e9f5; margin: 0 0 12px; }
.amsg .abtn { margin-top: 0; }

/* companion chat */
.achat { display: grid; gap: 9px; margin-top: 8px; }
.achat .b { max-width: 88%; padding: 10px 13px; border-radius: 16px; font-size: 13px; line-height: 1.45; }
.achat .b.me { background: rgba(255,255,255,.1); justify-self: end; border-bottom-right-radius: 5px; }
.achat .b.ai { background: rgba(212,160,57,.14); border: 1px solid rgba(212,160,57,.3); border-bottom-left-radius: 5px; color: #f1e7cf; }
.achat .b.ai .from { display: block; font: 700 9.5px var(--font-body); letter-spacing: .16em; color: var(--accent); margin-bottom: 4px; }
.achat .hand { font-size: 11px; color: #8f96b5; text-align: center; margin-top: 4px; }

/* milestone */
.amile { text-align: center; padding-top: 28px; }
.amile .star { position: static; display: inline-block; transform: none; animation: sbrea 2.4s ease-in-out infinite; }
.amile .ring { width: 118px; height: 118px; margin: 0 auto 14px; position: relative; }
.amile .ring svg { transform: rotate(-90deg); overflow: visible; }
.amile .ring circle { fill: none; stroke-width: 8; stroke-linecap: round; }
.amile .ring .bg { stroke: rgba(255,255,255,.12); }
.amile .ring .fg { stroke: var(--secondary); stroke-dasharray: 314; stroke-dashoffset: 314; transition: stroke-dashoffset 1.1s cubic-bezier(.3,.8,.3,1) .25s; filter: drop-shadow(0 0 8px rgba(212,160,57,.7)); }
.on .amile .ring .fg, [data-step] .ascreen .amile .ring .fg { stroke-dashoffset: var(--off, 20); }
.amile .ring .day { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.amile .ring .day b { font-size: 34px; } .amile .ring .day span { font-size: 10px; letter-spacing: .14em; color: #9aa1bd; }
.amile h4 { margin: 0 0 4px; font-family: var(--font-display); font-weight: 500; font-size: 20px; }
.amile p { margin: 0; font-size: 12.5px; color: #9aa1bd; }

/* offer page, live card, session card, score */
.aoffer .cover { height: 110px; border-radius: 16px; background: radial-gradient(80% 90% at 20% 10%, #3a2f6a, #16172b 70%); position: relative; overflow: hidden; margin-bottom: 12px; }
.aoffer .cover::after { content: ""; position: absolute; inset: auto -20% -60% 40%; height: 140%; border-radius: 50%; border: 2px solid rgba(232,200,122,.5); }
.aoffer h4 { margin: 0 0 4px; font-family: var(--font-display); font-weight: 500; font-size: 20px; }
.aoffer .by { display: flex; align-items: center; gap: 8px; font-size: 12px; color: #9aa1bd; margin-bottom: 10px; }
.aoffer .by .face { width: 22px; height: 22px; font-size: 10px; }
.aoffer .price { font-size: 26px; font-weight: 600; } .aoffer .price small { font-size: 12px; color: #9aa1bd; font-weight: 400; }
.aoffer .inc { font-size: 12px; color: #c8cddf; margin: 8px 0 0; padding-left: 0; list-style: none; display: grid; gap: 4px; }
.aoffer .inc li::before { content: "✓ "; color: var(--accent); font-weight: 800; }
.alive .lv { display: inline-flex; align-items: center; gap: 6px; font: 700 10px var(--font-body); letter-spacing: .16em; color: #ff6b6b; }
.alive .lv i { width: 8px; height: 8px; border-radius: 50%; background: #ff4d4d; box-shadow: 0 0 10px #ff4d4d; animation: blink 1.2s steps(1) infinite; }
.alive .thumb { height: 130px; border-radius: 16px; background: linear-gradient(160deg, #1f2a44, #0b0d16); margin: 10px 0; display: flex; align-items: center; justify-content: center; }
.alive .thumb .face { width: 54px; height: 54px; font-size: 20px; }
.asess { background: rgba(255,255,255,.07); border-radius: 16px; padding: 14px; margin-top: 10px; }
.asess .d { font: 700 10px var(--font-body); letter-spacing: .16em; color: var(--accent); }
.asess h4 { margin: 4px 0 6px; font-size: 16px; font-weight: 600; }
.asess p { margin: 0; font-size: 12.5px; color: #9aa1bd; }
.ascore { display: flex; align-items: center; gap: 14px; background: rgba(255,255,255,.07); border-radius: 16px; padding: 12px; margin-bottom: 8px; }
.ascore .sc { width: 46px; height: 46px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font: 700 14px var(--font-body); flex: none; }
.ascore .sc.g { background: rgba(47,158,99,.25); color: #7fd6a4; } .ascore .sc.a { background: rgba(212,160,57,.25); color: var(--accent); } .ascore .sc.r { background: rgba(224,104,92,.25); color: #f0a396; }
.ascore b { display: block; font-size: 13.5px; } .ascore span { font-size: 11.5px; color: #9aa1bd; }
.ascore .go { margin-left: auto; font: 700 11px var(--font-body); color: var(--accent); white-space: nowrap; }
.acode { text-align: center; padding-top: 26px; }
.acode .code { font: 600 30px ui-monospace, Menlo, monospace; letter-spacing: .22em; background: rgba(255,255,255,.07); border: 1px dashed rgba(232,200,122,.5); border-radius: 14px; padding: 16px 0; margin: 14px 0; color: var(--accent); }
.acode p { font-size: 12.5px; color: #9aa1bd; margin: 0; }
.adraft { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1); border-radius: 16px; padding: 12px; margin-bottom: 9px; }
.adraft .to { font: 700 10px var(--font-body); letter-spacing: .14em; color: #8f96b5; margin-bottom: 5px; }
.adraft .to b { color: var(--accent); }
.adraft p { margin: 0 0 9px; font-size: 13px; line-height: 1.45; color: #e6e9f5; }
.adraft .acts { display: flex; gap: 7px; }
.adraft .acts span { flex: 1; text-align: center; border-radius: 9px; padding: 7px 0; font: 700 11.5px var(--font-body); background: rgba(255,255,255,.08); color: #dfe3f0; }
.adraft .acts span.ok { background: var(--secondary); color: #10131f; }

/* ── the coach desk (browser window, light UI) ──────────────────────────── */
.desk {
  width: 100%; max-width: 460px; height: 380px; border-radius: 16px; position: relative;
  background: #f6f4ef; border: 1px solid var(--line); overflow: hidden;
  box-shadow: 0 40px 90px rgba(26,31,60,.22); font-family: var(--font-body); color: var(--text); font-size: 12.5px;
}
.desk .dbar { height: 32px; background: #e9e6df; display: flex; gap: 6px; align-items: center; padding: 0 12px; border-bottom: 1px solid var(--line); }
.desk .dbar i { width: 10px; height: 10px; border-radius: 50%; background: #d3cdbf; }
.desk .dbar span { margin-left: 10px; font-size: 11px; color: var(--faint); background: #fff; border-radius: 6px; padding: 3px 10px; flex: 1; }
.dscreen { position: absolute; top: 32px; left: 0; right: 0; bottom: 0; background: #f6f4ef; display: grid; grid-template-columns: 118px 1fr; opacity: 0; transform: translateY(10px); transition: opacity .45s ease, transform .45s ease; }
.dscreen.on, [data-step="0"] .ds-0, [data-step="1"] .ds-1, [data-step="2"] .ds-2, [data-step="3"] .ds-3, [data-step="4"] .ds-4, [data-step="5"] .ds-5 { opacity: 1; transform: none; }
.dside { background: var(--primary); color: #b9bed2; padding: 14px 10px; font-size: 11px; }
.dside b { display: flex; align-items: center; gap: 6px; color: #fff; margin-bottom: 12px; font-family: var(--font-display); font-size: 13.5px; font-weight: 600; }
.dside b i { width: 14px; height: 14px; border-radius: 50%; background: var(--secondary); display: inline-block; }
.dside span { display: block; padding: 6px 8px; border-radius: 7px; margin-bottom: 2px; }
.dside span.sel { background: rgba(255,255,255,.12); color: #fff; font-weight: 600; }
.dmain { padding: 14px 14px 10px; overflow: hidden; }
.dmain .dk { font: 700 10px var(--font-body); letter-spacing: .14em; color: var(--faint); text-transform: uppercase; margin-bottom: 6px; }
.dmain .dh { font-family: var(--font-display); font-weight: 600; font-size: 17px; color: var(--primary); margin: 0 0 10px; letter-spacing: -.01em; }
.drow { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 9px 11px; display: flex; gap: 10px; align-items: center; margin-bottom: 7px; font-size: 12px; }
.drow .dot { width: 9px; height: 9px; border-radius: 50%; flex: none; }
.drow .ini { width: 28px; height: 28px; border-radius: 50%; background: var(--wash-gold); color: var(--primary); display: flex; align-items: center; justify-content: center; font: 700 10.5px var(--font-body); flex: none; }
.drow b { color: var(--primary); display: block; font-size: 12.5px; }
.drow small { display: block; color: var(--muted); font-size: 11px; }
.drow .r { margin-left: auto; font: 700 10.5px var(--font-body); color: var(--secondary); white-space: nowrap; }
.drow .r.rose { color: #e0685c; } .drow .r.good { color: var(--good); }
.dstats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 10px; }
.dstats div { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 9px 10px; }
.dstats b { display: block; font: 600 20px var(--font-display); color: var(--primary); line-height: 1.1; }
.dstats span { font-size: 10.5px; color: var(--muted); }
.dbrief { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; }
.dbrief li { font-size: 12px; color: var(--text); margin: 0 0 6px 0; list-style: none; padding-left: 16px; position: relative; }
.dbrief li::before { content: ""; position: absolute; left: 0; top: 7px; width: 7px; height: 7px; border-radius: 50%; background: var(--secondary); }
.dbrief ul { margin: 0; padding: 0; }
.dphases { display: flex; gap: 6px; margin-bottom: 10px; }
.dphases span { flex: 1; text-align: center; font: 700 10px var(--font-body); letter-spacing: .06em; padding: 8px 4px; border-radius: 9px; background: #fff; border: 1px solid var(--line); color: var(--muted); }
.dphases span.sel { background: var(--primary); color: #fff; border-color: var(--primary); }
.dbars { display: grid; gap: 7px; }
.dbars div { display: grid; grid-template-columns: 92px 1fr 44px; gap: 8px; align-items: center; font-size: 11.5px; color: var(--text); }
.dbars i { height: 9px; border-radius: 999px; background: linear-gradient(90deg, var(--secondary), var(--accent)); display: block; }
.dbars span:last-child { text-align: right; font-weight: 700; color: var(--primary); font-size: 11px; }
.dapprove { display: flex; gap: 6px; margin-top: 8px; }
.dapprove span { flex: 1; text-align: center; border-radius: 8px; padding: 6px 0; font: 700 10.5px var(--font-body); border: 1px solid var(--line); color: var(--muted); }
.dapprove span.ok { background: var(--secondary); border-color: var(--secondary); color: var(--primary-dark); }
.dquote { background: var(--wash-gold); border-left: 3px solid var(--secondary); border-radius: 0 10px 10px 0; padding: 8px 10px; font-size: 12px; color: var(--primary); font-style: italic; margin: 8px 0; }
.dseat { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.dseat i { width: 30px; height: 30px; border-radius: 50%; background: var(--wash-gold); border: 1px solid var(--accent); display: flex; align-items: center; justify-content: center; font: 700 10px var(--font-body); color: var(--primary); font-style: normal; }
.dseat i.empty { background: #fff; border-style: dashed; color: var(--faint); }
.dmeter { margin: 6px 0 10px; }
.dmeter .lab { display: flex; justify-content: space-between; font-size: 11px; color: var(--muted); margin-bottom: 4px; }
.dmeter .bar { height: 8px; border-radius: 999px; background: #fff; border: 1px solid var(--line); overflow: hidden; }
.dmeter .bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--secondary), var(--accent)); }
@media (max-width: 900px) { .desk { height: 330px; } }

/* ── the behavioural loop ring ──────────────────────────────────────────── */
.loop-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
@media (max-width: 860px) { .loop-wrap { grid-template-columns: 1fr; } }
.loop svg { width: 100%; max-width: 420px; display: block; margin: 0 auto; overflow: visible; }
.loop .track { stroke: #e7e5df; }
.loop .draw { stroke: var(--secondary); stroke-dasharray: 880; stroke-dashoffset: calc(880 - var(--p, 0) * 880); transition: stroke-dashoffset .2s linear; }
.loop .node { opacity: .28; transition: opacity .3s ease; }
.loop .n1 { opacity: calc(.28 + (var(--p, 0) - .02) * 6); } .loop .n2 { opacity: calc(.28 + (var(--p, 0) - .27) * 6); }
.loop .n3 { opacity: calc(.28 + (var(--p, 0) - .52) * 6); } .loop .n4 { opacity: calc(.28 + (var(--p, 0) - .77) * 6); }
.loop .node circle.c { fill: #fff; stroke: var(--secondary); stroke-width: 3; }
.loop .node text { font-family: Inter, sans-serif; font-weight: 700; font-size: 12px; fill: var(--primary); }
.loop .node .s { font-weight: 500; font-size: 11px; fill: var(--muted); }
.loop .mid { font-family: Fraunces, Georgia, serif; font-size: 20px; fill: var(--primary); }
.loop .mids { font-family: Inter, sans-serif; font-size: 11px; letter-spacing: .12em; fill: var(--secondary); font-weight: 700; }
.loop-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.loop-list li { display: grid; grid-template-columns: 38px 1fr; gap: 14px; align-items: start; }
.loop-list li i { width: 38px; height: 38px; border-radius: 50%; background: var(--wash-gold); border: 1.5px solid var(--accent); display: flex; align-items: center; justify-content: center; font: 700 14px var(--font-display); color: var(--primary); font-style: normal; }
.loop-list li b { display: block; color: var(--primary); font-size: 16px; }
.loop-list li span { color: var(--muted); font-size: 14.5px; }

/* ── use cases: tabs that auto-turn until touched ───────────────────────── */
.uc { background: #fff; border: 1px solid var(--line); border-radius: 22px; overflow: hidden; box-shadow: 0 24px 60px rgba(26,31,60,.08); }
.uc-tabs { display: flex; flex-wrap: wrap; gap: 0; border-bottom: 1px solid var(--line); background: var(--wash); }
.uc-tabs button { flex: 1 1 160px; border: 0; background: none; padding: 18px 16px 15px; font: 600 14px var(--font-body); color: var(--muted); cursor: pointer; border-bottom: 3px solid transparent; transition: .2s; text-align: left; }
.uc-tabs button small { display: block; font: 500 12px var(--font-body); color: var(--faint); margin-top: 2px; }
.uc-tabs button:hover { color: var(--primary); }
.uc-tabs button.sel { color: var(--primary); border-bottom-color: var(--secondary); background: #fff; }
.uc-panel { display: none; padding: 30px 30px 26px; }
.uc-panel.sel { display: block; animation: ucin .45s ease both; }
@keyframes ucin { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.uc-panel h3 { margin: 0 0 18px; font-family: var(--font-display); font-weight: 600; font-size: 26px; color: var(--primary); letter-spacing: -.01em; }
.uc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }
@media (max-width: 760px) { .uc-grid { grid-template-columns: 1fr; } .uc-panel { padding: 22px 20px; } }
.uc-grid .k { display: block; font: 700 11px var(--font-body); letter-spacing: .14em; color: var(--secondary); text-transform: uppercase; margin-bottom: 8px; }
.uc-grid p { margin: 0; color: var(--muted); font-size: 15px; }
.uc-grid p b { color: var(--text); }
.uc-built { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.uc-built a { font: 600 12.5px var(--font-body); color: var(--primary); text-decoration: none; background: var(--wash-gold); border: 1px solid var(--accent); border-radius: 999px; padding: 6px 12px; }
.uc-built a:hover { background: var(--accent); }
.uc-plan { margin-top: 22px; padding-top: 16px; border-top: 1px solid var(--line); display: flex; gap: 14px; align-items: center; flex-wrap: wrap; font-size: 14px; color: var(--muted); }
.uc-plan b { color: var(--primary); }
.uc-plan .btn { padding: 9px 16px; font-size: 13.5px; }

/* ── integrations strip ─────────────────────────────────────────────────── */
.integ { overflow: hidden; position: relative; padding: 8px 0; mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.integ .track { display: flex; gap: 12px; width: max-content; animation: slide 36s linear infinite; }
.integ:hover .track { animation-play-state: paused; }
@keyframes slide { to { transform: translateX(-50%); } }
.integ .pill { display: inline-flex; align-items: center; gap: 9px; background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 9px 16px 9px 10px; font: 600 13.5px var(--font-body); color: var(--primary); white-space: nowrap; }
.integ .pill i { width: 26px; height: 26px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font: 800 10px var(--font-body); color: #fff; font-style: normal; }
.integ .pill small { color: var(--faint); font-weight: 500; }

/* ── plan fit ───────────────────────────────────────────────────────────── */
.fit { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; background: var(--primary); border-radius: 24px; padding: 40px; color: #e8eaf2; }
@media (max-width: 860px) { .fit { grid-template-columns: 1fr; padding: 28px 22px; } }
.fit h3 { margin: 0 0 10px; font-family: var(--font-display); font-weight: 600; font-size: 28px; color: #fff; letter-spacing: -.01em; }
.fit p { margin: 0 0 16px; color: #b9bed2; font-size: 15.5px; }
.fit .price { font: 600 44px var(--font-display); color: #fff; letter-spacing: -.02em; line-height: 1; }
.fit .price small { font: 500 14px var(--font-body); color: #b9bed2; margin-left: 6px; }
.fit .pcard { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); border-radius: 18px; padding: 22px; }
.fit .pcard .pn { font: 700 11px var(--font-body); letter-spacing: .16em; color: var(--accent); text-transform: uppercase; margin-bottom: 8px; }
.fit .pcard ul { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 7px; }
.fit .pcard li { font-size: 13.5px; color: #dfe3f0; padding-left: 20px; position: relative; }
.fit .pcard li::before { content: "✓"; position: absolute; left: 0; color: var(--accent); font-weight: 800; }
.fit .found { font-size: 12.5px; color: #8f96b5; margin-top: 12px; }
.fit .found b { color: var(--accent); }

/* ── counters, timeline, checklist, calculators ─────────────────────────── */
.cnt { font-variant-numeric: tabular-nums; }
.tl { position: relative; padding: 30px 0 10px; }
.tl .line { position: absolute; left: 4%; right: 4%; top: 44px; height: 4px; background: var(--line); border-radius: 999px; }
.tl .line i { display: block; height: 100%; width: calc(var(--p, 0) * 100%); background: linear-gradient(90deg, var(--secondary), var(--accent)); border-radius: 999px; }
.tl .days { display: grid; grid-template-columns: repeat(var(--n, 7), 1fr); gap: 6px; position: relative; }
.tl .day { text-align: center; }
.tl .day i { display: block; width: 14px; height: 14px; border-radius: 50%; background: #fff; border: 3px solid var(--line); margin: 6px auto 10px; transition: .3s; }
.tl .day.hit i { border-color: var(--secondary); background: var(--secondary); box-shadow: 0 0 0 5px var(--wash-gold); }
.tl .day b { display: block; font: 700 11px var(--font-body); letter-spacing: .1em; color: var(--faint); text-transform: uppercase; }
.tl .day span { display: block; font-size: 13px; color: var(--text); max-width: 14ch; margin: 4px auto 0; line-height: 1.35; }
.tl .day.hit b { color: var(--secondary); }
@media (max-width: 700px) { .tl .day span { font-size: 11.5px; } }

.check { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 24px 26px; box-shadow: 0 24px 60px rgba(26,31,60,.08); }
.check .top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.check .top b { font-family: var(--font-display); font-weight: 600; font-size: 20px; color: var(--primary); }
.check .top span { font: 600 13px var(--font-body); color: var(--muted); }
.check .bar { height: 8px; border-radius: 999px; background: var(--wash); border: 1px solid var(--line); overflow: hidden; margin-bottom: 16px; }
.check .bar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--secondary), var(--accent)); transition: width .4s ease; }
.check label { display: grid; grid-template-columns: 22px 1fr auto; gap: 12px; align-items: start; padding: 11px 0; border-top: 1px solid var(--line); cursor: pointer; }
.check label:first-of-type { border-top: 0; }
.check input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--secondary); }
.check label b { display: block; color: var(--primary); font-size: 15px; }
.check label span { color: var(--muted); font-size: 13.5px; }
.check label .m { font: 600 12px var(--font-body); color: var(--secondary); white-space: nowrap; margin-top: 3px; }
.check input:checked ~ b { text-decoration: line-through; color: var(--faint); }

.calc { background: var(--primary); border-radius: 22px; padding: 30px; color: #e8eaf2; box-shadow: 0 30px 70px rgba(26,31,60,.3); }
.calc .clabel { font: 700 11px var(--font-body); letter-spacing: .14em; color: #8f96b5; text-transform: uppercase; margin-bottom: 10px; }
.calc .big { font: 600 40px var(--font-display); color: #fff; letter-spacing: -.02em; line-height: 1; margin-bottom: 14px; }
.calc input[type=range] { width: 100%; accent-color: var(--secondary); margin: 6px 0 18px; }
.calc .outs { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
@media (max-width: 500px) { .calc .outs { grid-template-columns: 1fr; } }
.calc .out { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); border-radius: 14px; padding: 14px; }
.calc .out.gold { border-color: rgba(212,160,57,.6); background: rgba(212,160,57,.12); }
.calc .out .k { font: 700 10.5px var(--font-body); letter-spacing: .12em; color: #8f96b5; text-transform: uppercase; }
.calc .out .v { font: 600 26px var(--font-display); color: #fff; margin: 4px 0 2px; }
.calc .out.gold .v { color: var(--accent); }
.calc .out small { font-size: 12px; color: #9aa1bd; }
.calc .note { font-size: 12.5px; color: #8f96b5; margin: 14px 0 0; }
.calc .note b { color: #dfe3f0; }

/* stopwatch */
.stopwatch { display: inline-flex; align-items: center; gap: 14px; background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 10px 22px 10px 12px; box-shadow: 0 18px 50px rgba(26,31,60,.1); }
.stopwatch .dial { width: 44px; height: 44px; border-radius: 50%; border: 3px solid var(--primary); position: relative; }
.stopwatch .dial::after { content: ""; position: absolute; left: 50%; top: 50%; width: 2px; height: 16px; margin: -16px 0 0 -1px; background: var(--secondary); transform-origin: bottom; animation: hand 4s linear infinite; }
@keyframes hand { to { transform: rotate(360deg); } }
.stopwatch b { font: 600 30px var(--font-display); color: var(--primary); letter-spacing: -.02em; }
.stopwatch span { font-size: 13px; color: var(--muted); }

/* the segment picker strip on hub pages */
.segs { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 12px; }
.segs a { text-decoration: none; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 18px 18px 16px; transition: .2s; display: block; }
.segs a:hover { border-color: var(--secondary); transform: translateY(-2px); box-shadow: 0 16px 40px rgba(26,31,60,.09); }
.segs a b { display: block; color: var(--primary); font-size: 15.5px; margin-bottom: 4px; }
.segs a span { color: var(--muted); font-size: 13px; }

@media (prefers-reduced-motion: reduce) {
  .hero-duo .devcol .aphone, .hero-duo .devcol .desk, .integ .track, .stopwatch .dial::after, .alive .lv i, .amile .star { animation: none; }
  .hero-ap .ascreen, .hero-ap .dscreen { animation: none; opacity: 0; } .hero-ap .as-0, .hero-ap .ds-0 { opacity: 1; }
  .ascreen, .dscreen, .loop .draw, .check .bar i, .arow .tick { transition: none; }
  .uc-panel.sel { animation: none; }
  .integ { mask-image: none; } .integ .track { flex-wrap: wrap; width: auto; }
}

/* ══════════════════════════ WHATSAPP SCREENS ══════════════════════════ */
.ascreen.wa { padding: 0; background: #e5ddd5; color: #111; display: flex; flex-direction: column; }
.ascreen.wa::before { content: ""; position: absolute; inset: 0; opacity: .5; pointer-events: none;
  background-image: radial-gradient(circle at 20% 30%, rgba(0,0,0,.035) 0 2px, transparent 3px), radial-gradient(circle at 70% 60%, rgba(0,0,0,.03) 0 1.5px, transparent 2.5px), radial-gradient(circle at 40% 85%, rgba(0,0,0,.03) 0 2px, transparent 3px);
  background-size: 64px 64px, 48px 48px, 80px 80px; }
.wa-head { position: relative; z-index: 2; background: #075e54; color: #fff; padding: 46px 12px 10px; display: flex; align-items: center; gap: 10px; }
.wa-head .back { font-size: 18px; opacity: .9; }
.wa-head .av { width: 34px; height: 34px; border-radius: 50%; background: linear-gradient(135deg, var(--secondary), #a2762a); display: flex; align-items: center; justify-content: center; font: 700 13px var(--font-body); color: #10131f; flex: none; }
.wa-head .who b { display: block; font-size: 14px; line-height: 1.15; } .wa-head .who span { font-size: 10.5px; opacity: .8; }
.wa-body { position: relative; z-index: 1; flex: 1; overflow: hidden; padding: 10px 10px 0; display: flex; flex-direction: column; gap: 6px; justify-content: flex-end; -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 22px); mask-image: linear-gradient(180deg, transparent 0, #000 22px); }
.wa-body.top { justify-content: flex-start; -webkit-mask-image: linear-gradient(180deg, #000 82%, transparent); mask-image: linear-gradient(180deg, #000 82%, transparent); }
.wa-day { align-self: center; font-size: 10px; background: rgba(255,255,255,.85); color: #555; border-radius: 8px; padding: 3px 9px; margin: 2px 0 4px; }
.bub { max-width: 88%; background: #fff; border-radius: 10px; padding: 6px 8px 5px; font-size: 12.3px; line-height: 1.38; box-shadow: 0 1px 1px rgba(0,0,0,.08); position: relative; white-space: pre-line; word-wrap: break-word; }
.bub.in { align-self: flex-start; border-top-left-radius: 3px; }
.bub.out { align-self: flex-end; background: #d9fdd3; border-top-right-radius: 3px; }
.bub b { font-weight: 700; } .bub i { font-style: italic; color: #333; }
.bub .lnk { color: #027eb5; text-decoration: none; word-break: break-all; font-size: 11.3px; }
.bub .t { display: block; text-align: right; font-size: 9.5px; color: #8a8a8a; margin-top: 2px; }
.bub .t .tk { color: #53bdeb; margin-left: 3px; letter-spacing: -2px; }
.bub.typing { padding: 9px 12px; } .bub.typing i { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: #9a9a9a; margin-right: 3px; animation: dot 1.2s ease-in-out infinite; }
.bub.typing i:nth-child(2) { animation-delay: .2s; } .bub.typing i:nth-child(3) { animation-delay: .4s; margin-right: 0; }
@keyframes dot { 0%,80%,100% { transform: translateY(0); opacity: .5; } 40% { transform: translateY(-3px); opacity: 1; } }
.wa-bar { position: relative; z-index: 2; background: #f0f0f0; padding: 8px 10px 14px; display: flex; gap: 8px; align-items: center; }
.wa-bar .inp { flex: 1; background: #fff; border-radius: 999px; padding: 8px 12px; font-size: 12.5px; color: #333; min-height: 32px; display: flex; align-items: center; }
.wa-bar .inp .caret { display: inline-block; width: 1.5px; height: 14px; background: #075e54; margin-left: 2px; animation: blink 1s steps(1) infinite; }
.wa-bar .send { width: 32px; height: 32px; border-radius: 50%; background: #00a884; color: #fff; display: flex; align-items: center; justify-content: center; font-size: 14px; flex: none; }
/* bubbles pop in, in order, whenever their screen becomes the active one */
.ascreen.on .bub, [data-step="0"] .as-0 .bub, [data-step="1"] .as-1 .bub, [data-step="2"] .as-2 .bub, [data-step="3"] .as-3 .bub, [data-step="4"] .as-4 .bub, [data-step="5"] .as-5 .bub, [data-step="6"] .as-6 .bub, .hero-ap .bub { animation: pop .38s cubic-bezier(.2,1.1,.3,1) both; animation-delay: calc(var(--i, 0) * .32s + .1s); }
@keyframes pop { from { opacity: 0; transform: translateY(10px) scale(.96); } to { opacity: 1; transform: none; } }
.hero-ap .as-0 .bub { animation-delay: calc(var(--i, 0) * .32s + .6s); }

/* a WhatsApp message at full width, annotated (the brief's anatomy) */
.brief { display: grid; grid-template-columns: minmax(280px, 420px) 1fr; gap: 34px; align-items: start; }
@media (max-width: 860px) { .brief { grid-template-columns: 1fr; } }
.brief .msg-wrap { background: #e5ddd5; border-radius: 22px; padding: 18px 14px; position: relative; }
.brief .bub { max-width: 100%; font-size: 13.2px; }
.brief .bub .mark { display: inline-flex; align-items: center; justify-content: center; width: 18px; height: 18px; border-radius: 50%; background: var(--primary); color: #fff; font: 700 10px var(--font-body); margin-left: 6px; vertical-align: 1px; white-space: normal; }
.notes { display: grid; gap: 12px; }
.notes div { display: grid; grid-template-columns: 26px 1fr; gap: 12px; align-items: start; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; }
.notes div i { width: 26px; height: 26px; border-radius: 50%; background: var(--primary); color: #fff; display: flex; align-items: center; justify-content: center; font: 700 12px var(--font-body); font-style: normal; }
.notes div b { display: block; color: var(--primary); font-size: 14.5px; } .notes div span { color: var(--muted); font-size: 13.5px; }

/* the map of everything it can do */
.fchips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 22px; }
.fchips button { font: 600 13px var(--font-body); color: var(--primary); background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 8px 14px; cursor: pointer; transition: .18s; }
.fchips button small { color: var(--faint); font-weight: 500; margin-left: 4px; }
.fchips button:hover { border-color: var(--secondary); }
.fchips button.sel { background: var(--primary); color: #fff; border-color: var(--primary); } .fchips button.sel small { color: #b9bed2; }
.fgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 12px; }
.fn { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 16px 16px 14px; transition: box-shadow .2s ease, transform .2s ease; }
.fn:hover { box-shadow: 0 16px 40px rgba(26,31,60,.09); transform: translateY(-2px); }
.fn .say { display: block; font-size: 14.5px; color: var(--primary); font-weight: 600; margin-bottom: 6px; }
.fn .say::before { content: "“"; color: var(--secondary); } .fn .say::after { content: "”"; color: var(--secondary); }
.fn p { margin: 0; font-size: 13px; color: var(--muted); }
.fn .kind { display: inline-block; margin-top: 10px; font: 700 10px var(--font-body); letter-spacing: .1em; text-transform: uppercase; border-radius: 999px; padding: 3px 9px; }
.fn .kind.read { background: var(--wash); color: var(--muted); } .fn .kind.prop { background: var(--wash-gold); color: #8a6512; } .fn .kind.client { background: rgba(224,104,92,.12); color: #b4483d; }
.fn[hidden] { display: none; }

/* guardrails */
.rules { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 14px; }
.rule { background: var(--primary); color: #e8eaf2; border-radius: 18px; padding: 22px; position: relative; overflow: hidden; }
.rule::after { content: ""; position: absolute; right: -30px; top: -30px; width: 110px; height: 110px; border-radius: 50%; background: rgba(212,160,57,.12); }
.rule .k { font: 700 10.5px var(--font-body); letter-spacing: .14em; color: var(--accent); text-transform: uppercase; }
.rule h3 { margin: 8px 0 6px; font: 650 17px var(--font-body); color: #fff; }
.rule p { margin: 0; font-size: 13.5px; color: #b9bed2; }
.rule .q { margin-top: 12px; background: rgba(255,255,255,.07); border-left: 3px solid var(--secondary); border-radius: 0 10px 10px 0; padding: 8px 10px; font-size: 12.5px; color: #f1e7cf; font-style: italic; }

/* the phrase rotator */
.rotator { background: #fff; border: 1px solid var(--line); border-radius: 22px; box-shadow: 0 24px 60px rgba(26,31,60,.1); padding: 22px 24px; }
.rotator .lbl { font: 700 11px var(--font-body); letter-spacing: .14em; color: var(--faint); text-transform: uppercase; margin-bottom: 12px; }
.rotator .line { display: flex; align-items: center; gap: 10px; background: #f0f0f0; border-radius: 999px; padding: 10px 14px; }
.rotator .line .txt { flex: 1; font: 500 16px var(--font-body); color: var(--primary); min-height: 22px; }
.rotator .line .txt .caret { display: inline-block; width: 2px; height: 18px; background: #075e54; vertical-align: -3px; margin-left: 1px; animation: blink 1s steps(1) infinite; }
.rotator .line .send { width: 36px; height: 36px; border-radius: 50%; background: #00a884; color: #fff; display: flex; align-items: center; justify-content: center; }
.rotator .hint { margin: 12px 0 0; font-size: 13px; color: var(--muted); }
@media (prefers-reduced-motion: reduce) { .bub, .hero-ap .bub { animation: none; } .bub.typing i { animation: none; } .rotator .line .txt .caret, .wa-bar .inp .caret { animation: none; } }

/* On a phone the pinned device took two thirds of the viewport and the step
   cards scrolled under it half-visible at its sides. The pin keeps a full-width
   white lane of fixed height; only the device inside it is scaled, so cards
   passing underneath are hidden by the lane rather than peeking around the
   phone. Desks and watches are shallower and shrink less. */
@media (max-width: 900px) {
  .scene .device-pin { height: 392px; transform: none; padding: 6px 0 0; align-items: flex-start; background: linear-gradient(180deg, #fff 88%, rgba(255,255,255,0)); }
  .tint .scene .device-pin, .scene.tint .device-pin { background: linear-gradient(180deg, var(--wash) 88%, rgba(250,248,244,0)); }
  .scene .device-pin > * { transform: scale(.6); transform-origin: top center; }
  .scene .device-pin:has(.desk) { height: 272px; }
  .scene .device-pin:has(.desk) > * { transform: scale(.78); }
  .scene .device-pin:has(.wwrap) { height: 310px; }
  .scene .device-pin:has(.wwrap) > * { transform: scale(.66); }
  .scene .steps { padding-top: 3vh; gap: 28vh; }
  .scene .stepb { padding: 20px 20px; }
  .scene .stepb h3 { font-size: 21px; }
}
