/* Interactive sections for the SophiLoop page (/) (Nov 2026). Everything is readable without JS:
   [data-js] parts only switch into "player" mode once interact.js adds .js to <html>. */

.mock-note { position: relative; z-index: 50; background: var(--amber); color: #2a1d00; font: 600 13px/1.4 var(--font-body); text-align: center; padding: 6px 12px; }

/* Shared segmented switch */
.seg { display: inline-flex; gap: 4px; padding: 4px; border-radius: 999px; background: var(--option-fill); border: 1px solid var(--option-border); flex-wrap: wrap; }
.seg button { font: 600 14px var(--font-body); color: var(--muted); background: none; border: 0; padding: 8px 16px; border-radius: 999px; cursor: pointer; }
.seg button[aria-selected="true"] { background: var(--accent-tint); color: var(--lavender-bright); box-shadow: inset 0 0 0 1px var(--accent-border); }

/* 1 · Privacy: where the thinking happens */
.flow { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 20px; margin: 28px 0 8px; }
.machine { position: relative; border: 1.5px solid var(--accent-border); border-radius: 18px; padding: 18px; background: var(--card); min-height: 190px; }
.machine > b, .cloud > b { display: block; font: 600 13px var(--font-body); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { font-size: 13px; padding: 5px 10px; border-radius: 8px; background: var(--option-fill); border: 1px solid var(--option-border); }
.model { margin-top: 14px; padding: 10px 12px; border-radius: 12px; font-weight: 600; display: flex; gap: 8px; align-items: center; transition: opacity .3s, transform .3s; }
.model::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: currentColor; }
.machine .model { background: rgba(126, 224, 181, .12); color: var(--mint); }
.cloud { border: 1.5px dashed var(--outline); border-radius: 18px; padding: 18px; min-height: 190px; transition: opacity .3s, border-color .3s; }
.cloud .model { background: rgba(245, 194, 107, .12); color: var(--amber); }
.wire { width: 90px; height: 2px; background: repeating-linear-gradient(90deg, var(--amber) 0 8px, transparent 8px 14px); position: relative; transition: opacity .3s; }
.wire::after { content: ""; position: absolute; top: -4px; left: 0; width: 10px; height: 10px; border-radius: 50%; background: var(--amber); animation: packet 1.6s linear infinite; }
@keyframes packet { to { left: calc(100% - 10px); } }
.flow-caption { min-height: 3.2em; color: var(--muted); }
.flow-caption b { color: var(--text); }
html.js [data-mode="local"] .cloud, html.js [data-mode="local"] .wire { opacity: .18; }
html.js [data-mode="local"] .cloud .model, html.js [data-mode="cloud"] .machine .model { opacity: 0; transform: scale(.9); }
html.js [data-mode="local"] .wire::after { animation: none; }
html:not(.js) .flow-pick { display: none; }

/* 2 · A day with SoPhi */
.day { display: grid; grid-template-columns: 260px 1fr; gap: 32px; align-items: start; }
.day-times { list-style: none; margin: 0; padding: 0; position: relative; }
.day-times::before { content: ""; position: absolute; left: 47px; top: 14px; bottom: 14px; width: 2px; background: var(--hairline); }
.day-times button { all: unset; box-sizing: border-box; cursor: pointer; display: grid; grid-template-columns: 40px 16px 1fr; gap: 0 10px; align-items: center; width: 100%; padding: 9px 10px 9px 0; border-radius: 12px; color: var(--muted); }
.day-times button:focus-visible { outline: 2px solid var(--lavender); }
.day-times time { font: 600 13px var(--font-mono); text-align: right; }
.day-times i { width: 12px; height: 12px; border-radius: 50%; background: var(--night); border: 2px solid var(--outline); position: relative; z-index: 1; justify-self: center; transition: all .2s; }
.day-times span { font-weight: 600; }
.day-times button[aria-selected="true"] { color: var(--text); background: var(--option-fill); }
.day-times button[aria-selected="true"] i { background: var(--lavender); border-color: var(--lavender); box-shadow: 0 0 0 5px var(--accent-tint); }
.day > *, .home > * { min-width: 0; }
.day-stage { position: relative; }
.day-stage .win { max-width: none; }
.moment h3 { margin-top: 14px; }
.moment p { color: var(--muted); }
html.js .moment { display: none; }
html.js .moment.on { display: block; animation: rise .35s ease both; }
html:not(.js) .day { grid-template-columns: 1fr; }
html:not(.js) .day-times { display: none; }
html:not(.js) .moment + .moment { margin-top: 48px; }
.day-ctrl { display: flex; align-items: center; gap: 12px; margin-top: 14px; color: var(--muted); font-size: 14px; }
.progress { flex: 1; height: 3px; border-radius: 3px; background: var(--hairline); overflow: hidden; }
.progress span { display: block; height: 100%; width: 0; background: var(--lavender); }
html:not(.js) .day-ctrl { display: none; }
.brief-line { display: flex; gap: 10px; padding: 7px 0; border-bottom: 1px solid var(--hairline); font-size: 14px; }
.brief-line:last-child { border: 0; }
.brief-line .k { color: var(--muted); min-width: 92px; font-size: 13px; }
.who { font: 600 11px var(--font-mono); padding: 2px 6px; border-radius: 6px; margin-right: 6px; }
.who.me { background: var(--accent-tint); color: var(--lavender-bright); }
.who.them { background: rgba(124, 149, 255, .16); color: #b9c6ff; }

/* 3 · Home */
.home { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: start; }
.devices { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.dev { all: unset; box-sizing: border-box; cursor: pointer; padding: 14px; border-radius: 14px; background: var(--card); border: 1px solid var(--card-border); display: grid; gap: 4px; transition: background .2s, border-color .2s; }
.dev b { font-size: 15px; }
.dev small { color: var(--muted); font-size: 13px; }
.dev .state { font: 600 12px var(--font-mono); color: var(--idle); }
.dev[aria-pressed="true"] { background: rgba(245, 194, 107, .10); border-color: rgba(245, 194, 107, .35); }
.dev[aria-pressed="true"] .state { color: var(--amber); }
.dev.locked { cursor: not-allowed; }
.dev.locked .state { color: var(--mint); }
.dev:focus-visible { outline: 2px solid var(--lavender); }
.dev-why { min-height: 1.6em; font-size: 14px; color: var(--muted); margin-top: 10px; }
.learn { padding: 18px; border-radius: 16px; background: var(--card); border: 1px dashed var(--accent-border); }
.learn-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.learn ol { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 8px; }
.learn li { display: flex; gap: 10px; align-items: baseline; color: var(--idle); font-size: 14px; transition: color .25s; }
.learn li::before { content: ""; flex: none; width: 10px; height: 10px; border-radius: 50%; border: 2px solid currentColor; transform: translateY(1px); }
.learn li.done { color: var(--muted); }
.learn li.done::before { background: var(--mint); border-color: var(--mint); }
.learn li.now { color: var(--text); }
.learn li.now::before { border-color: var(--lavender); animation: pulse 1s infinite; }
.learn .result { margin-top: 12px; font-size: 14px; color: var(--mint); min-height: 1.5em; }

/* 4 · Reach it anywhere */
.hold { all: unset; cursor: pointer; user-select: none; -webkit-user-select: none; display: grid; place-items: center; gap: 14px; width: 100%; min-height: 220px; border-radius: 20px; background: var(--card); border: 1px solid var(--card-border); text-align: center; }
.keys { display: flex; gap: 8px; }
.keys kbd { font: 600 18px var(--font-mono); padding: 10px 16px; border-radius: 10px; background: var(--raised); border: 1px solid var(--outline); border-bottom-width: 4px; transition: transform .1s, border-bottom-width .1s; }
.hold.down kbd { transform: translateY(3px); border-bottom-width: 1px; }
.hold .wave { width: 180px; opacity: .25; transition: opacity .2s; }
.hold.down .wave { opacity: 1; }
.hold .heard { min-height: 1.5em; color: var(--muted); font-size: 15px; }
.phone { width: 230px; margin: 0 auto; border-radius: 34px; padding: 12px; background: #0b0a24; border: 1px solid var(--outline); }
.phone-screen { border-radius: 24px; background: var(--night); padding: 14px 12px; min-height: 330px; display: flex; flex-direction: column; gap: 8px; font-size: 13px; }
.bubble { padding: 8px 11px; border-radius: 14px; max-width: 85%; }
.bubble.me { align-self: flex-end; background: var(--accent-tint); }
.bubble.sophi { background: var(--raised); }
.bubble .b { margin-top: 6px; display: inline-block; }
.warn { font-size: 13px; color: var(--amber); }

@media (max-width: 860px) {
  .flow { grid-template-columns: 1fr; }
  .wire { width: 2px; height: 40px; margin: 0 auto; background: repeating-linear-gradient(180deg, var(--amber) 0 8px, transparent 8px 14px); }
  .wire::after { display: none; }
  .day, .home { grid-template-columns: 1fr; }
  .day-times { display: flex; overflow-x: auto; gap: 4px; }
  .day-times::before { display: none; }
  .day-times button { grid-template-columns: auto; justify-items: center; padding: 8px 12px; gap: 4px; white-space: nowrap; }
  .day-times i { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .wire::after, .learn li.now::before { animation: none; }
  html.js .moment.on { animation: none; }
}

/* ── More motion (all off under reduced motion) ── */
/* Hero: typed line */
.hero-type { font-family: var(--font-head); font-size: clamp(20px, 2.6vw, 28px); color: var(--text); margin-bottom: .3em; }
.rotator { color: var(--lavender-bright); background: linear-gradient(90deg, var(--lavender-bright), var(--rim), var(--mint)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
html.js .rotator::after { content: ""; display: inline-block; width: 2px; height: 1em; margin-left: 3px; vertical-align: -0.12em; background: var(--lavender); animation: caret 1s steps(1) infinite; -webkit-text-fill-color: initial; }
@keyframes caret { 50% { opacity: 0; } }

/* Feature ribbons */
.marquee { overflow: hidden; padding: 22px 0; border-block: 1px solid var(--hairline); background: var(--void); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.m-row { list-style: none; margin: 0; padding: 0; display: flex; gap: 10px; width: max-content; }
.m-row + .m-row { margin-top: 10px; }
.m-row li { white-space: nowrap; font: 600 14px var(--font-body); padding: 8px 16px; border-radius: 999px; background: var(--option-fill); border: 1px solid var(--option-border); color: var(--muted); }
.m-row li:nth-child(3n+1) { color: var(--lavender-bright); border-color: var(--accent-border); }
.m-row li:nth-child(4n+2) { color: var(--mint); border-color: rgba(126,224,181,.3); }
html.js .m-row { animation: slide 48s linear infinite; }
html.js .m-row.rev { animation-direction: reverse; animation-duration: 56s; }
.marquee:hover .m-row { animation-play-state: paused; }
@keyframes slide { to { transform: translateX(-50%); } }
html:not(.js) .m-row { flex-wrap: wrap; width: auto; justify-content: center; padding: 0 16px; }

/* Count-up stats */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; padding-top: 64px; padding-bottom: 8px; }
.stat b { display: block; font: 700 clamp(44px, 6vw, 64px)/1 var(--font-head); background: linear-gradient(160deg, var(--lavender-bright), var(--rim)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.stat span { color: var(--muted); font-size: 14px; }

/* Scroll reveal, staggered with --d */
html.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s cubic-bezier(.2,.7,.2,1); transition-delay: calc(var(--d, 0) * 90ms); }
html.js .reveal.in { opacity: 1; transform: none; }

/* Cursor spotlight on cards */
.spot { position: relative; overflow: hidden; }
.spot::after { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .25s; background: radial-gradient(220px circle at var(--mx, 50%) var(--my, 50%), rgba(201,160,232,.16), transparent 70%); }
.spot:hover::after { opacity: 1; }

/* Privacy: the model "thinks" */
.model { background-size: 200% 100% !important; }
.machine .model { background-image: linear-gradient(90deg, rgba(126,224,181,.08), rgba(126,224,181,.24), rgba(126,224,181,.08)); animation: shimmer 2.4s linear infinite; }
.cloud .model { background-image: linear-gradient(90deg, rgba(245,194,107,.08), rgba(245,194,107,.24), rgba(245,194,107,.08)); animation: shimmer 2.4s linear infinite; }
@keyframes shimmer { to { background-position: -200% 0; } }
html.js .chip { animation: chip 4.8s ease-in-out infinite; animation-delay: calc(var(--i, 0) * .8s); }
@keyframes chip { 0%, 80%, 100% { border-color: var(--option-border); } 88% { border-color: var(--mint); color: var(--mint); } }

/* Day: each moment's lines arrive one by one */
html.js .moment.on .win-body > * { animation: rise .45s ease both; }
html.js .moment.on .win-body > :nth-child(2) { animation-delay: .15s; }
html.js .moment.on .win-body > :nth-child(3) { animation-delay: .3s; }
html.js .moment.on .win-body > :nth-child(4) { animation-delay: .45s; }
html.js .moment.on .win-body > :nth-child(5) { animation-delay: .6s; }
html.js .moment.on .win-body > :nth-child(6) { animation-delay: .75s; }
html.js .moment.on .b.pri, html.js .moment.on .b.sec { animation: rise .45s ease .9s both, nudge 1.8s ease-in-out 1.6s infinite; }
@keyframes nudge { 50% { box-shadow: 0 0 0 6px var(--accent-tint); } }

/* Home: lit devices glow */
.dev[aria-pressed="true"] { box-shadow: 0 0 34px -6px rgba(245,194,107,.45); }
.dev .state { transition: color .2s; }
.dev.nope { animation: shake .4s; }
@keyframes shake { 25% { transform: translateX(-5px); } 75% { transform: translateX(5px); } }

@media (max-width: 860px) { .stats { grid-template-columns: repeat(2, 1fr); } .orb-demo { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) {
  html.js .m-row, .machine .model, .cloud .model, html.js .chip, .orb-big img, .orb-big .ring, .orb-big .ring.two, html.js .rotator::after,
  html.js .moment.on .win-body > *, html.js .moment.on .b.pri, html.js .moment.on .b.sec { animation: none !important; }
  html.js .reveal { opacity: 1; transform: none; transition: none; }
}

/* Reach: four live cards around SoPhi */
.reach { display: grid; grid-template-columns: 1fr 200px 1fr; grid-template-areas: "a hub b" "c hub d"; gap: 22px; }
.reach > :nth-child(1) { grid-area: a; } .reach > :nth-child(2) { grid-area: b; } .reach > .hub { grid-area: hub; } .reach > :nth-child(4) { grid-area: c; } .reach > :nth-child(5) { grid-area: d; }
.rc { min-width: 0; padding: 20px; border-radius: 20px; background: var(--card); border: 1px solid var(--card-border); display: flex; flex-direction: column; gap: 14px; }
.rc header h3 { margin: 2px 0 0; }
.rc > p { margin: 0; color: var(--muted); font-size: 14px; }
.where { font: 600 11px var(--font-body); letter-spacing: .08em; text-transform: uppercase; color: var(--mint); }
.where.away { color: var(--amber); }
.rc .hold { min-height: 150px; background: var(--night); }
.hub { position: relative; display: grid; place-items: center; align-content: center; gap: 4px; text-align: center; }
/* Glow painted in the padding, not box-shadow: Safari squares off a shadow on an animated layer */
.hub img { box-sizing: content-box; width: 96px; height: 96px; padding: 40px; margin: -40px; position: relative; z-index: 1; animation: bob 4s ease-in-out infinite;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--lavender) 55%, transparent) 50%, transparent); }
.hub b { font-family: var(--font-head); position: relative; z-index: 1; }
.hub small { color: var(--muted); position: relative; z-index: 1; }
.lane { position: absolute; height: 2px; width: 50%; background: repeating-linear-gradient(90deg, var(--accent-border) 0 6px, transparent 6px 12px); background-size: 24px 2px; }
.lane.l1, .lane.l3 { left: -11px; } .lane.l2, .lane.l4 { right: -11px; }
.lane.l1, .lane.l2 { top: 25%; } .lane.l3, .lane.l4 { top: 75%; }
html.js .lane.l1, html.js .lane.l3 { animation: lane-r 1s linear infinite; }
html.js .lane.l2, html.js .lane.l4 { animation: lane-l 1s linear infinite; }
@keyframes lane-r { to { background-position: 24px 0; } }
@keyframes lane-l { to { background-position: -24px 0; } }
.lane.hit { background: repeating-linear-gradient(90deg, var(--lavender) 0 6px, transparent 6px 12px); background-size: 24px 2px; }
/* Wake word */
.wake { position: relative; height: 110px; display: grid; place-items: center; }
.wake img { width: 64px; height: 64px; border-radius: 50%; position: relative; z-index: 1; }
.ripple { position: absolute; width: 64px; height: 64px; border-radius: 50%; border: 2px solid var(--rim); opacity: 0; }
.rc.awake .ripple { animation: ripple 1.6s ease-out infinite; }
.rc.awake .ripple.r2 { animation-delay: .5s; }
.say { min-height: 48px; display: grid; gap: 4px; font-size: 14px; text-align: center; }
.say .you { color: var(--text); font-weight: 600; } .say .sophi { color: var(--lavender-bright); }
/* Mini phone threads */
.mini-phone { border-radius: 22px; padding: 10px; background: #0b0a24; border: 1px solid var(--outline); }
.mini-phone.dc { border-color: #4b55b8; }
.thread { min-height: 196px; border-radius: 14px; background: var(--night); padding: 10px; display: flex; flex-direction: column; justify-content: flex-end; gap: 6px; font-size: 13px; overflow: hidden; }
.bubble.card { display: grid; gap: 6px; }
.bubble .row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 4px; }
.bubble .row .b { margin: 0; display: flex; align-items: center; justify-content: center; line-height: 1; text-align: center; height: 30px; padding: 0 12px; }
html.js [data-loop="phone"] .bubble, html.js [data-loop="discord"] .bubble { display: none; }
html.js .bubble.shown { display: block; animation: pop .35s cubic-bezier(.3,1.4,.5,1) both; }
html.js .bubble.card.shown { display: grid; }
@keyframes pop { from { opacity: 0; transform: translateY(8px) scale(.96); } }
.bubble .b.tap { box-shadow: 0 0 0 4px var(--accent-tint); transform: scale(.94); }
@media (max-width: 860px) {
  .reach { grid-template-columns: 1fr; grid-template-areas: "hub" "a" "b" "c" "d"; }
  .lane { display: none; }
}
@media (prefers-reduced-motion: reduce) { .hub img, html.js .lane, .rc.awake .ripple { animation: none !important; } html.js .bubble { display: block !important; animation: none !important; } }

/* The orb, live */
.orb-demo { display: grid; grid-template-columns: 1fr 1.1fr; gap: 44px; align-items: center; }
.orb-caption { margin: 20px 0 14px; min-height: 56px; padding: 12px 16px; border-radius: 14px; background: var(--card); border: 1px solid var(--card-border); display: grid; gap: 2px; }
.orb-caption b { font-family: var(--font-head); color: var(--lavender-bright); }
.orb-caption span { color: var(--muted); font-size: 14px; }
.orb-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.orb-chips button { all: unset; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; font: 600 12.5px var(--font-body); padding: 5px 11px; border-radius: 999px; border: 1px solid var(--option-border); color: var(--muted); transition: all .2s; }
.orb-chips button::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--c); }
.orb-chips button:hover { color: var(--text); }
.orb-chips button[aria-selected="true"] { color: var(--text); border-color: var(--c); background: color-mix(in srgb, var(--c) 14%, transparent); }
.orb-chips button:focus-visible { outline: 2px solid var(--lavender); }
.desk { position: relative; height: 400px; border-radius: 20px; overflow: hidden; border: 1px solid var(--outline); background: radial-gradient(120% 90% at 20% 0%, #2a2470, #14144a 55%, #0d0c2a); touch-action: none; }
.dwin { position: absolute; border-radius: 10px; background: rgba(23,22,74,.92); border: 1px solid var(--card-border); box-shadow: 0 20px 50px -20px #000; padding: 26px 16px 16px; display: grid; gap: 9px; align-content: start; }
.dwin i { position: absolute; top: 9px; width: 8px; height: 8px; border-radius: 50%; background: var(--outline); }
.dwin i:nth-child(1) { left: 10px; } .dwin i:nth-child(2) { left: 22px; } .dwin i:nth-child(3) { left: 34px; }
.dwin span { height: 8px; border-radius: 4px; background: var(--option-border); } .dwin span.s { width: 60%; }
.w1 { left: 7%; top: 12%; width: 52%; height: 50%; } .w2 { right: 6%; top: 34%; width: 40%; height: 44%; }
.dock { position: absolute; bottom: 10px; left: 50%; transform: translateX(-50%); display: flex; gap: 8px; padding: 7px 10px; border-radius: 14px; background: rgba(255,255,255,.06); }
.dock i { width: 22px; height: 22px; border-radius: 6px; background: var(--option-border); }
.orb-live { position: absolute; width: 260px; height: 260px; left: calc(var(--x, 64%) - 130px); top: calc(var(--y, 46%) - 130px); cursor: grab; filter: drop-shadow(0 10px 18px rgba(0,0,0,.35)); }
.orb-live.dragging { cursor: grabbing; }
.drag-hint { position: absolute; font: 600 11px var(--font-mono); color: var(--muted); left: calc(var(--x, 64%) - 26px); top: calc(var(--y, 46%) + 82px); pointer-events: none; transition: opacity .4s; }
.desk.moved .drag-hint { opacity: 0; }
@media (max-width: 860px) { .orb-demo { grid-template-columns: 1fr; } .desk { height: 320px; } }

/* ── Polish pass: one rhythm, one button system, aligned edges ── */
:root { --gap-head: 48px; }
.section { padding: 96px 0; }
.section-head { margin-bottom: var(--gap-head); }
.section-head .eyebrow { margin-bottom: 14px; color: var(--lavender); }
.section-head h2 { margin-bottom: 14px; }
.section-head p { margin: 0 auto; max-width: 560px; line-height: 1.6; }

/* Buttons: primary (.btn), small primary (.btn.sm), ghost pill (.btn-ghost), in-window (.b) */
.btn { border: 0; cursor: pointer; font-family: var(--font-body); line-height: 1.2; transition: background .2s, transform .2s; }
.btn:active { transform: translateY(1px); }
.btn.sm { font-size: 14px; padding: 9px 16px; border-radius: 9px; }
.btn:disabled { opacity: .55; cursor: default; }
.btn-ghost { display: inline-flex; align-items: center; gap: 6px; font: 600 14px/1.2 var(--font-body); color: var(--lavender-bright); background: transparent; border: 1px solid var(--ghost-border); border-radius: 999px; padding: 9px 16px; cursor: pointer; transition: border-color .2s, background .2s; }
.btn-ghost:hover { border-color: var(--accent-border); background: var(--accent-tint); }
.btn-ghost.sm { font-size: 13px; padding: 6px 14px; }
.btn-ghost:focus-visible, .btn:focus-visible { outline: 2px solid var(--lavender); outline-offset: 3px; }
.orb-play { margin-top: 18px; }
.day-ctrl { margin-top: 18px; padding-left: 4px; }
.day-ctrl .btn-ghost { flex: none; }

/* Hero */
.hero-copy .hero-type { margin: 0 auto 10px; min-height: 1.5em; }
.hero-copy .lead.sub { font-size: 17px; color: var(--muted); margin: 0 auto 28px; }
.hero-copy .actions { align-items: center; gap: 14px; }

/* Privacy: centred switch and caption under the diagram */
[data-flow] { display: grid; justify-items: center; }
[data-flow] .flow { width: 100%; align-items: stretch; margin: 28px 0 20px; }
[data-flow] .flow > .wire { align-self: center; }
.machine, .cloud { min-height: 0; }
.flow-caption { max-width: 640px; text-align: center; margin: 0; min-height: 3.4em; }

/* Stats: own band, centred, divided */
.stats-band { padding: 64px 0; border-bottom: 1px solid var(--hairline); }
.stats { padding: 0 16px; gap: 0; }
.stat { text-align: center; padding: 0 20px; }
.stat + .stat { border-left: 1px solid var(--hairline); }
.stat b { margin-bottom: 10px; }
.stat span { display: block; max-width: 200px; margin: 0 auto; line-height: 1.45; }

/* Day: rows line up */
.brief-line { align-items: center; min-height: 40px; padding: 8px 0; }
.brief-line .k { min-width: 108px; }
.brief-line .b { margin-left: 6px; }
.day { align-items: stretch; }
.day-stage .win { margin: 0; }
.moment h3 { margin: 22px 0 6px; }
.moment p { margin: 0; max-width: 600px; }

/* Home: equal columns */
.home { align-items: stretch; }
.home > div:first-child { display: flex; flex-direction: column; }
.devices { flex: 1; grid-auto-rows: 1fr; }
.dev { align-content: start; }
.learn { display: flex; flex-direction: column; }
.learn-head { align-items: flex-start; }
.learn > .muted { margin-top: auto !important; padding-top: 14px; border-top: 1px solid var(--hairline); }

/* Reach: equal demo areas, text pinned to the bottom */
.rc { gap: 16px; }
.rc .hold, .rc .wake-box, .rc .mini-phone { flex: none; }
.rc .hold { min-height: 176px; }
.rc > p { margin-top: auto; line-height: 1.55; }
.thread { min-height: 210px; }

/* Orb */
.orb-chips { gap: 8px; }
.orb-caption { margin: 24px 0 16px; }

/* Tiles: 4 by 2, no orphan row */
#more .feature-strip { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 860px) {
  #more .feature-strip { grid-template-columns: repeat(2, 1fr); }
  .stat + .stat { border-left: 0; }
  .stats { row-gap: 32px; }
  .section { padding: 72px 0; }
}

.day, .home, .reach { --tone: var(--lavender); }
.thread { height: 236px; min-height: 0; }
.eyebrow { color: var(--lavender); }
#engine .btn-link:first-child { padding-left: 0; }
/* FAQ: centred head, chevron on the right, text flush with the rule lines */
#faq .faq { max-width: 720px; }
#faq h2 { text-align: center; margin-bottom: var(--gap-head); }
.faq summary { list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; cursor: pointer; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 9px; height: 9px; border-right: 2px solid var(--lavender); border-bottom: 2px solid var(--lavender); transform: rotate(45deg) translateY(-3px); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(-135deg) translateY(-1px); }
.day-stage .win, .day-stage .win:hover { transform: none; }

/* ── Use cases lead: hero demo, trust strip, CTAs ── */
.site-nav { position: sticky; top: 0; background: rgba(14,12,32,.72); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--hairline); }
.site-nav .nav-cta { color: var(--night) !important; font-weight: 700; margin-left: 6px; }
.btn.lg, .btn-ghost.lg { font-size: 16px; padding: 14px 24px; border-radius: 12px; font-weight: 700; }
.btn-ghost.lg { color: var(--text); text-decoration: none; }
.btn-ghost { text-decoration: none; }
.btn.lg { box-shadow: 0 10px 34px -10px rgba(185,160,255,.7); }
.fine { color: var(--muted); font-size: 13px; margin: 14px 0 0; }

.hero-uc { position: relative; padding: 72px 0 48px; overflow: hidden; }
.hero-uc::before { content: ""; position: absolute; inset: -20% -10% auto; height: 760px; background: radial-gradient(50% 50% at 50% 30%, rgba(150,120,255,.28), transparent 70%); pointer-events: none; }
.hero-uc .wrap { position: relative; }
.hero-uc .hero-copy { text-align: center; max-width: 860px; margin: 0 auto; }
.hero-uc h1 { font-size: clamp(40px, 6.2vw, 76px); line-height: 1.04; letter-spacing: -.025em; margin: 14px 0 22px; }
.hero-uc .grad { background: linear-gradient(90deg, var(--lavender-bright), var(--mint)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-uc .lead { font-size: 19px; line-height: 1.55; color: var(--muted); max-width: 640px; margin: 0 auto 30px; }
.hero-uc .actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }

.launch-video { margin: 36px auto 0; scroll-margin-top: 90px; max-width: 1080px; }
.launch-video video { display: block; width: 100%; height: auto; border-radius: 16px; border: 1px solid var(--hairline); background: #0c0b26; box-shadow: 0 40px 120px -40px rgba(0,0,0,.8); }
.launch-video figcaption { margin-top: 10px; text-align: center; color: var(--muted); font-size: 13px; }
.uc-demo { margin: 56px auto 0; max-width: 1080px; padding: 22px; border-radius: 24px; background: linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.01)); border: 1px solid var(--hairline); box-shadow: 0 40px 120px -40px rgba(0,0,0,.8); }
.uc-label { font: 600 12px var(--font-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--lavender); margin: 2px 0 14px 4px; }
.uc-demo .day { grid-template-columns: 250px 1fr; gap: 24px; }
.uc-demo .day-times::before { left: 15px; }
.uc-demo .day-times button { grid-template-columns: 16px 1fr; padding: 11px 12px 11px 8px; }
.uc-demo .day-times span { font-size: 16px; display: grid; gap: 2px; }
.uc-demo .day-times small { font: 500 12px var(--font-body); color: var(--muted); }
.uc-demo .day-times button:hover { color: var(--text); }

.trust { list-style: none; display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; margin: 8px auto 0; padding: 26px 16px 56px; }
.trust li { text-align: center; color: var(--muted); font-size: 13px; line-height: 1.45; padding: 0 12px; }
.trust li + li { border-left: 1px solid var(--hairline); }
.trust b { display: block; color: var(--text); font-size: 15px; margin-bottom: 3px; }

.get-card { text-align: center; max-width: 820px; margin: 0 auto; padding: 56px 32px; border-radius: 28px; background: radial-gradient(80% 120% at 50% 0%, rgba(150,120,255,.22), transparent 70%), var(--raised); border: 1px solid var(--accent-border); }
.get-card img { border-radius: 50%; margin-bottom: 8px; }
.get-card h2 { font-size: clamp(30px, 4vw, 46px); margin: 6px 0 12px; }
.get-card > p:not(.fine) { color: var(--muted); font-size: 17px; margin: 0 0 26px; }
.get-card .actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }

.mobile-cta { display: none; }
@media (max-width: 900px) {
  .uc-demo .day { grid-template-columns: 1fr; }
  .uc-demo .day-times { display: flex; overflow-x: auto; gap: 6px; padding-bottom: 6px; }
  .uc-demo .day-times::before, .uc-demo .day-times i { display: none; }
  .uc-demo .day-times li { flex: none; }
  .uc-demo .day-times button { grid-template-columns: 1fr; border: 1px solid var(--hairline); border-radius: 999px; padding: 8px 14px; }
  .uc-demo .day-times small { display: none; }
  .trust { grid-template-columns: repeat(2, 1fr); row-gap: 18px; }
  .trust li + li { border-left: 0; }
}
@media (max-width: 600px) {
  .site-nav a:not(.brand):not(.nav-cta) { display: none; }
  .hero-uc { padding-top: 40px; }
  .uc-demo { padding: 12px; }
  .mobile-cta { display: block; position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 20; }
  .mobile-cta .btn { display: block; text-align: center; padding: 14px; border-radius: 12px; font-weight: 700; box-shadow: 0 10px 30px rgba(0,0,0,.5); }
  body { padding-bottom: 76px; }
}

/* Orbit behind the headline, rotator under it */
.hero-orbit { position: absolute; left: 0; right: 0; top: -40px; height: 600px; pointer-events: none; -webkit-mask-image: linear-gradient(#000 55%, transparent); mask-image: linear-gradient(#000 55%, transparent); }
.hero-orbit .orbit { height: 600px; --cy: 30%; pointer-events: auto; }
.hero-uc .hero-copy { padding-top: 190px; }
.hero-uc .hero-type { margin: 0 auto 8px; min-height: 1.6em; color: var(--text); font-size: 22px; }
.hero-uc .hero-type + .lead { margin-top: 0; }
.marquee { margin-bottom: 0; }
@media (max-width: 600px) { .hero-orbit, .hero-orbit .orbit { height: 420px; } .hero-uc .hero-copy { padding-top: 190px; } .hero-uc .hero-type { font-size: 19px; } }

/* Prices in the get card: three plans side by side, wrapping on narrow screens (flex, not grid: grid widened the card on phones). */
.plans { list-style: none; display: flex; flex-wrap: wrap; gap: 12px; margin: 0 auto 8px; padding: 0; max-width: 680px; }
.plans li { flex: 1 1 180px; padding: 18px 16px; border-radius: 16px; border: 1px solid var(--hairline); }
.plans b { display: block; font: 700 32px/1.1 var(--font-head); color: var(--text); }
.plans span { display: block; color: var(--text); font-size: 15px; margin-top: 2px; }
.plans small { display: block; color: var(--muted); font-size: 13px; margin-top: 6px; }
.plans + .fine { margin: 10px 0 24px; }
