/* ElderlyOS site. Tokens mirror the app's .sunlit palette (see docs/brand.md). */
:root {
  --blue: #1F4FBF;
  --blue-dark: #173B94;
  --yellow: #FFD43B;
  --ink: #12203F;
  --mist: #F5F9FF;
  --sky: #E3EBFD;
  --line: #C9D6F2;
  --white: #FFFFFF;
  --focus: #FF8A00;
  --serif: "New York", "Iowan Old Style", "Source Serif 4", Georgia, serif;
  --sans: -apple-system, "SF Pro Rounded", "Segoe UI", system-ui, Roboto, Helvetica, Arial, sans-serif;
  --radius: 20px;
  --maxw: 1080px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --ink: #EAF0FF;
    --mist: #0E1630;
    --sky: #17224A;
    --line: #2B3A6B;
    --white: #121C3D;
    --blue: #7FA2FF;
    --blue-dark: #A9C0FF;
  }
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--mist); color: var(--ink); font: 400 1.125rem/1.65 var(--sans); }
img, svg { max-width: 100%; height: auto; }
a { color: var(--blue); text-underline-offset: 3px; }
a:hover { color: var(--blue-dark); }
:focus-visible { outline: 4px solid var(--focus); outline-offset: 3px; border-radius: 6px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--yellow); color: #12203F; padding: 12px 18px; border-radius: 12px; font-weight: 700; z-index: 100; }
.skip:focus { left: 8px; }
h1, h2, h3 { font-family: var(--serif); line-height: 1.15; margin: 0 0 .5em; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.2rem, 6vw, 3.6rem); }
h2 { font-size: clamp(1.7rem, 4vw, 2.4rem); }
h3 { font-size: 1.35rem; }
p { margin: 0 0 1em; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
section { padding: 64px 0; }
.alt { background: var(--sky); }

/* Header */
header.site { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--mist) 92%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
header.site .wrap { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 4px 12px; min-height: 68px; padding-top: 6px; padding-bottom: 6px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font: 700 1.5rem var(--serif); color: var(--ink); text-decoration: none; min-height: 48px; }
.brand em { font-style: normal; color: var(--blue); }
.brand img { width: 36px; height: 36px; }
nav.site { display: flex; gap: 6px; flex-wrap: wrap; }
nav.site a { display: inline-flex; align-items: center; min-height: 48px; padding: 0 14px; border-radius: 999px; color: var(--ink); text-decoration: none; font-weight: 600; }
nav.site a:hover, nav.site a[aria-current="page"] { background: var(--sky); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 56px; padding: 0 26px; border-radius: 999px; font: 700 1.1rem var(--sans); text-decoration: none; border: 3px solid transparent; cursor: pointer; }
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-dark); color: #fff; }
.btn-yellow { background: var(--yellow); color: #12203F; }
.btn-yellow:hover { filter: brightness(.95); color: #12203F; }
.btn-line { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .8; cursor: not-allowed; border-style: dashed; border-color: currentColor; }
.cta-row { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 24px; }

/* Hero */
.hero { padding: 72px 0 56px; }
.hero .lede { font-size: 1.35rem; max-width: 40ch; }
.hero-grid { display: grid; gap: 40px; grid-template-columns: 1.2fr .8fr; align-items: center; }
.phone { background: var(--blue); border-radius: 40px; padding: 18px; box-shadow: 0 24px 60px rgba(18,32,63,.25); max-width: 340px; margin: 0 auto; }
.phone .screen { background: var(--mist); border-radius: 26px; padding: 22px 18px; color: var(--ink); }
.phone .name { font: 800 1.3rem var(--sans); color: var(--blue); }
.phone .card { background: var(--sky); border-radius: 18px; padding: 16px; font: 600 1.15rem/1.4 var(--sans); margin: 12px 0; }
.phone .row { display: flex; gap: 8px; }
.phone .b { flex: 1; text-align: center; border-radius: 16px; padding: 14px 6px; font: 700 .95rem var(--sans); }
.phone .b.y { background: var(--yellow); color: #12203F; }
.phone .b.l { background: #FFF1BD; color: #12203F; }
.phone .b.r { background: #D12C3F; color: #fff; }

/* Cards and steps */
.grid3 { display: grid; gap: 20px; grid-template-columns: repeat(3, 1fr); }
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.card .kicker { font: 800 .9rem var(--sans); letter-spacing: .06em; text-transform: uppercase; color: var(--blue); margin-bottom: 8px; }
.pill { display: inline-block; background: var(--yellow); color: #12203F; font: 800 .9rem var(--sans); padding: 6px 14px; border-radius: 999px; margin-bottom: 14px; }
ul.plain { padding-left: 1.2em; margin: 0 0 1em; }
ul.plain li { margin-bottom: .45em; }
.callout { border-left: 8px solid var(--yellow); background: var(--white); padding: 20px 24px; border-radius: 0 var(--radius) var(--radius) 0; }

/* Pricing */
.price-grid { display: grid; gap: 20px; grid-template-columns: repeat(2, 1fr); max-width: 760px; }
.price { font: 800 2.4rem var(--serif); }
.price small { font: 600 1rem var(--sans); opacity: .75; }

/* FAQ */
details { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 14px; }
summary { cursor: pointer; padding: 20px 24px; font: 700 1.2rem var(--sans); min-height: 56px; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; font-size: 1.8rem; line-height: 1; color: var(--blue); }
details[open] summary::after { content: "–"; }
details .answer { padding: 0 24px 20px; }

/* Forms */
form.stack { display: grid; gap: 18px; max-width: 560px; }
label { font-weight: 700; display: block; margin-bottom: 6px; }
input[type="text"], input[type="email"], input[type="password"], textarea, select { width: 100%; min-height: 56px; padding: 12px 16px; border-radius: 14px; border: 2px solid var(--line); background: var(--white); color: var(--ink); font: 1.1rem var(--sans); }
textarea { min-height: 140px; resize: vertical; }
.hint { font-size: .98rem; opacity: .8; }
.notice { background: var(--yellow); color: #12203F; border-radius: var(--radius); padding: 16px 20px; font-weight: 600; }

footer.site { border-top: 1px solid var(--line); padding: 40px 0 56px; font-size: 1rem; }
footer.site .cols { display: flex; flex-wrap: wrap; gap: 24px 48px; justify-content: space-between; }
footer.site a { display: inline-flex; min-height: 44px; align-items: center; }

@media (max-width: 820px) {
  .hero-grid, .grid3, .price-grid { grid-template-columns: 1fr; }
  section { padding: 48px 0; }
  nav.site { width: 100%; justify-content: space-between; }
  nav.site a { padding: 0 8px; font-size: 1rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
}

/* ---------- Animated demo (js/demo.js) ---------- */
.demo { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 40px; align-items: start; }
.demo-side h2 { margin-bottom: .3em; }
.demo-list { list-style: none; margin: 20px 0 0; padding: 0; display: grid; gap: 8px; }
.demo-pick { width: 100%; display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 8px 16px 8px 10px; border-radius: 16px; border: 2px solid transparent; background: var(--white); color: var(--ink); font: 600 1.05rem/1.25 var(--sans); text-align: left; cursor: pointer; }
.demo-pick:hover { border-color: var(--line); }
.demo-pick[aria-pressed="true"] { border-color: var(--blue); box-shadow: 0 6px 18px rgba(31,79,191,.15); }
.demo-pick.done .demo-pick-mode { opacity: .65; }
.demo-pick-mode { flex: none; font: 800 .72rem var(--sans); letter-spacing: .06em; text-transform: uppercase; padding: 5px 9px; border-radius: 999px; }
.demo-pick-mode.talk { background: var(--yellow); color: #12203F; }
.demo-pick-mode.write { background: var(--sky); color: var(--blue); }
.demo-controls { display: flex; align-items: center; gap: 12px; margin-top: 16px; flex-wrap: wrap; }
.demo-pause { min-height: 44px; padding: 0 18px; border-radius: 999px; border: 2px solid var(--line); background: transparent; color: var(--ink); font: 700 1rem var(--sans); cursor: pointer; }
.demo-note { font-size: .95rem; opacity: .8; margin: 0; }

.demo-stage { position: sticky; top: 92px; }
.demo-phone { width: 100%; max-width: 380px; margin: 0 auto; background: #0E1322; border-radius: 52px; padding: 12px; box-shadow: 0 30px 70px rgba(18,32,63,.28); }
.demo-screen { position: relative; height: 680px; border-radius: 42px; overflow: hidden; background: #F7FAFF; color: #12233F; display: flex; flex-direction: column; font-family: var(--sans); }
.demo-island { position: absolute; top: 10px; left: 50%; transform: translateX(-50%); width: 104px; height: 30px; border-radius: 20px; background: #0E1322; z-index: 3; }
.demo-sbar { display: flex; justify-content: space-between; padding: 14px 28px 0; font: 700 .95rem var(--sans); height: 44px; }
.demo-sbar span:last-child { letter-spacing: 2px; font-size: .8rem; }
.demo-head { display: flex; align-items: center; justify-content: space-between; padding: 8px 14px 10px; gap: 8px; border-bottom: 1px solid #E3EAF7; }
.demo-home { font: 700 .85rem var(--sans); color: #1F4FBF; background: #fff; border: 1px solid #D7E1F5; border-radius: 999px; padding: 6px 12px; }
.demo-title { font: 700 1.05rem var(--serif); }
.demo-status { font: 700 .75rem var(--sans); border-radius: 999px; padding: 6px 10px; display: inline-flex; align-items: center; gap: 6px; background: #E3EDFF; color: #1F4FBF; white-space: nowrap; }
.demo-status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.demo-status.talk { background: #FFF1B8; color: #6B5300; }
.demo-status.talk::before { background: #2FA35B; animation: demo-pulse 1.4s infinite; }
.demo-status.call { background: #DDF5E5; color: #1D6B3A; }
.demo-chat { flex: 1; overflow-y: auto; padding: 14px 14px 18px; display: flex; flex-direction: column; gap: 10px; scrollbar-width: none; }
.demo-chat::-webkit-scrollbar { display: none; }
.demo-chat > * { flex-shrink: 0; }
.demo-msg { max-width: 86%; padding: 10px 14px; border-radius: 20px; font: 500 .98rem/1.4 var(--sans); animation: demo-in .3s ease-out; }
.demo-msg.ai { align-self: flex-start; background: #E3EDFF; border-bottom-left-radius: 6px; min-height: 40px; }
.demo-msg.you { align-self: flex-end; background: #1F4FBF; color: #fff; border-bottom-right-radius: 6px; }
.demo-msg.spoken { background: #fff; color: #12233F; border: 1px solid #D7E1F5; }
.demo-said { display: block; font: 800 .66rem var(--sans); letter-spacing: .07em; text-transform: uppercase; color: #1F4FBF; margin-bottom: 2px; }
.demo-dots { display: inline-flex; gap: 4px; padding: 6px 2px; }
.demo-dots i { width: 7px; height: 7px; border-radius: 50%; background: #1F4FBF; opacity: .35; animation: demo-dot 1s infinite; }
.demo-dots i:nth-child(2) { animation-delay: .15s; } .demo-dots i:nth-child(3) { animation-delay: .3s; }

.demo-cam { margin: 0; align-self: stretch; border-radius: 20px; overflow: hidden; background: #0E1322; animation: demo-in .3s ease-out; position: relative; }
.demo-cam-frame svg { display: block; width: 100%; height: auto; }
.demo-mark { fill: none; stroke: #FFD43B; stroke-width: 6; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; opacity: .95; transition: stroke-dashoffset .9s ease-out; }
.demo-cam.marked .demo-mark { stroke-dashoffset: 0; }
.demo-cam-label { position: absolute; left: 10px; bottom: 10px; background: #FFD43B; color: #12203F; font: 800 .8rem var(--sans); padding: 5px 10px; border-radius: 999px; opacity: 0; transform: translateY(6px); transition: all .4s .6s; }
.demo-cam.marked .demo-cam-label { opacity: 1; transform: none; }

.demo-card { background: #fff; border: 1px solid #D7E1F5; border-radius: 20px; padding: 14px; animation: demo-in .35s ease-out; box-shadow: 0 4px 14px rgba(18,35,63,.06); }
.demo-card-title { font: 700 1.08rem/1.25 var(--serif); margin-bottom: 4px; }
.demo-kicker { font: 800 .68rem var(--sans); letter-spacing: .07em; text-transform: uppercase; color: #1F4FBF; margin-bottom: 4px; }
.demo-small { font-size: .82rem; color: #4A5875; line-height: 1.35; }
.demo-when { font: 700 .95rem var(--sans); margin-bottom: 2px; }
.demo-steps { margin: 6px 0 4px; padding-left: 1.3em; font-size: .92rem; line-height: 1.4; }
.demo-steps li { margin-bottom: 4px; }
.demo-quote { margin: 8px 0; padding: 10px 12px; background: #F3F6FD; border-radius: 12px; font-size: .9rem; line-height: 1.4; }
.demo-btn { display: flex; align-items: center; justify-content: center; margin-top: 10px; min-height: 42px; border-radius: 14px; background: #1F4FBF; color: #fff; font: 700 .92rem var(--sans); position: relative; transition: background .3s; }
.demo-btn.ghost { background: #E3EDFF; color: #1F4FBF; margin-top: 8px; }
.demo-btn.yellow { background: #FFD43B; color: #12203F; margin-top: 8px; }
.demo-btn.done { background: #2FA35B; }
.demo-btn.done::before { content: "✓"; margin-right: 6px; }
.demo-btn.tapped::after { content: ""; position: absolute; width: 34px; height: 34px; border-radius: 50%; background: rgba(255,255,255,.55); border: 2px solid rgba(18,35,63,.25); animation: demo-tap .5s ease-out forwards; }
.demo-source { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-top: 1px solid #EDF1FA; opacity: .35; transition: opacity .3s; }
.demo-source:first-of-type { margin-top: 8px; }
.demo-source.on { opacity: 1; }
.demo-check { flex: none; width: 20px; height: 20px; border-radius: 50%; border: 2px solid #C9D6F2; }
.demo-source.on .demo-check { background: #1F4FBF; border-color: #1F4FBF; box-shadow: inset 0 0 0 3px #fff; }
.demo-source-text { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.demo-source-title { font: 600 .86rem/1.3 var(--sans); }
.demo-source-domain { font-size: .74rem; color: #6A7792; }
.demo-badge { flex: none; font: 800 .66rem var(--sans); padding: 4px 8px; border-radius: 999px; }
.demo-badge.exact { background: #DDF5E5; color: #1D6B3A; }
.demo-badge.series { background: #E3EDFF; color: #1F4FBF; }
.demo-badge.similar { background: #FFF1B8; color: #6B5300; }
.demo-search { list-style: none; margin: 6px 0 0; padding: 0; font-size: .88rem; }
.demo-search li { display: flex; align-items: center; gap: 8px; padding: 4px 0; color: #6A7792; }
.demo-search li::before { content: ""; width: 14px; height: 14px; border-radius: 50%; border: 2px solid #C9D6F2; border-top-color: #1F4FBF; animation: demo-spin .8s linear infinite; }
.demo-search li.ok { color: #12233F; }
.demo-search li.ok::before { animation: none; border-color: #2FA35B; background: #2FA35B; }
.demo-timer { width: 92px; height: 92px; margin: 4px auto 8px; border-radius: 50%; border: 8px solid #FFD43B; display: grid; place-items: center; }
.demo-timer-num { font: 800 1.9rem var(--sans); }
.demo-card.timer { text-align: center; }
.demo-card.timer.finished .demo-timer { border-color: #2FA35B; }
.demo-card.safety { border: 2px solid #FFD43B; }
.demo-pill-note { align-self: flex-start; display: flex; flex-direction: column; gap: 2px; background: #FFF1B8; border-radius: 16px; padding: 10px 14px; font: 600 .92rem var(--sans); animation: demo-in .3s ease-out; }
.demo-pill-label { font: 800 .66rem var(--sans); letter-spacing: .07em; text-transform: uppercase; color: #6B5300; }

.demo-page { border: 1px solid #D7E1F5; border-radius: 12px; overflow: hidden; font-size: .78rem; }
.demo-page-url { background: #EEF2F9; padding: 6px 10px; color: #4A5875; font-size: .72rem; }
.demo-page-top { background: #285E8E; color: #fff; padding: 10px; font: 800 .9rem var(--serif); }
.demo-page-nav { display: flex; gap: 10px; padding: 7px 10px; background: #F3F6FB; color: #285E8E; font-weight: 700; }
.demo-page-body { padding: 10px; display: flex; flex-direction: column; gap: 6px; }
.demo-page-line { display: block; height: 7px; border-radius: 4px; background: #E6EBF3; }
.demo-page-line.short { width: 60%; }
.demo-page-links { display: flex; flex-wrap: wrap; gap: 6px 12px; margin: 4px 0; color: #285E8E; font-weight: 700; text-decoration: underline; }
.demo-hl { background-image: linear-gradient(#FFD43B, #FFD43B); background-repeat: no-repeat; background-size: 0% 100%; transition: background-size .8s ease-out; padding: 1px 3px; border-radius: 3px; color: #12203F; }
.demo-hl.on { background-size: 100% 100%; }

.demo-bar { display: flex; align-items: center; gap: 8px; margin: 0 10px 14px; padding: 8px 8px 8px 12px; border-radius: 26px; background: #fff; box-shadow: 0 6px 20px rgba(18,35,63,.12); min-height: 60px; }
.demo-wave { display: inline-flex; align-items: center; gap: 3px; width: 34px; height: 34px; border-radius: 50%; background: #E3EDFF; justify-content: center; flex: none; }
.demo-wave i { width: 3px; height: 8px; border-radius: 2px; background: #1F4FBF; }
.demo-bar.listening .demo-wave i, .demo-bar.talking .demo-wave i { animation: demo-wave .7s ease-in-out infinite; }
.demo-wave i:nth-child(2) { animation-delay: .1s; } .demo-wave i:nth-child(3) { animation-delay: .2s; } .demo-wave i:nth-child(4) { animation-delay: .3s; } .demo-wave i:nth-child(5) { animation-delay: .4s; }
.demo-bar-words { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.2; }
.demo-bar-name { font: 800 .62rem var(--sans); letter-spacing: .08em; color: #1F4FBF; }
.demo-bar-line { font: 500 .92rem var(--sans); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.demo-round { flex: none; width: 42px; height: 42px; border-radius: 50%; position: relative; }
.demo-round.mic { background: #FFF1B8; }
.demo-round.mic::after { content: ""; position: absolute; left: 16px; top: 11px; width: 10px; height: 16px; border-radius: 6px; background: #12233F; }
.demo-bar.listening .demo-round.mic { box-shadow: 0 0 0 0 rgba(255,212,59,.7); animation: demo-ring 1.2s infinite; background: #FFD43B; }
.demo-round.end { background: #D32F3F; }
.demo-round.end::after { content: ""; position: absolute; left: 11px; top: 17px; width: 20px; height: 8px; border-radius: 6px; background: #fff; }
.demo-plus { flex: none; width: 34px; height: 34px; border-radius: 50%; background: #E3EDFF; color: #1F4FBF; display: grid; place-items: center; font: 700 1.3rem var(--sans); }
.demo-input { flex: 1; min-width: 0; min-height: 40px; border: 1px solid #D7E1F5; border-radius: 20px; padding: 9px 14px; font: 500 .92rem/1.3 var(--sans); }
.demo-input:empty::before { content: attr(data-empty); color: #9AA6BE; }
.demo-input.typing::after { content: ""; display: inline-block; width: 2px; height: 1em; background: #1F4FBF; margin-left: 1px; vertical-align: -2px; animation: demo-caret .9s steps(1) infinite; }
.demo-send { flex: none; width: 40px; height: 40px; border-radius: 50%; background: #C9D6F2; position: relative; transition: background .2s, transform .2s; }
.demo-send::after { content: ""; position: absolute; left: 14px; top: 13px; width: 10px; height: 10px; border-left: 3px solid #fff; border-top: 3px solid #fff; transform: rotate(45deg); }
.demo-send.go { background: #1F4FBF; transform: scale(1.1); }
.demo-caption { max-width: 380px; margin: 16px auto 0; text-align: center; font-size: 1rem; min-height: 3.2em; }
.demo.paused .demo-screen * { animation-play-state: paused !important; }

@keyframes demo-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes demo-dot { 0%, 100% { opacity: .3; transform: none; } 50% { opacity: 1; transform: translateY(-3px); } }
@keyframes demo-wave { 0%, 100% { height: 6px; } 50% { height: 20px; } }
@keyframes demo-pulse { 0%, 100% { opacity: 1; } 50% { opacity: .3; } }
@keyframes demo-ring { 0% { box-shadow: 0 0 0 0 rgba(255,212,59,.7); } 100% { box-shadow: 0 0 0 12px rgba(255,212,59,0); } }
@keyframes demo-caret { 50% { opacity: 0; } }
@keyframes demo-spin { to { transform: rotate(360deg); } }
@keyframes demo-tap { from { transform: scale(.4); opacity: 1; } to { transform: scale(2.2); opacity: 0; } }

/* ---------- Real recordings ---------- */
.reel { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin-top: 24px; }
.reel figure { margin: 0; }
.reel video, .reel img { display: block; width: 100%; height: auto; border-radius: 27px; background: #F7FAFF; aspect-ratio: 1206 / 2622; object-fit: cover; }
.reel figcaption { margin-top: 12px; font-size: 1rem; }
.reel figcaption strong { display: block; font-family: var(--serif); font-size: 1.15rem; }

/* ---------- Use cases, work, custom ---------- */
.grid2 { display: grid; gap: 20px; grid-template-columns: repeat(2, 1fr); }
.uses { display: grid; gap: 14px; grid-template-columns: repeat(3, 1fr); margin-top: 20px; }
.uses .card { padding: 20px; }
.uses .card h3 { font-size: 1.15rem; margin-bottom: .3em; }
.uses .card p { margin: 0; font-size: 1.02rem; }
.band { background: #12203F; color: #EAF0FF; }
.band h2, .band h3 { color: #fff; }
.band a:not(.btn) { color: #FFD43B; }
.band .card { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.14); color: #EAF0FF; }
.band .card .kicker { color: #FFD43B; }
.band .btn-line { color: #fff; border-color: #fff; }
.tag { display: inline-block; font: 800 .75rem var(--sans); letter-spacing: .06em; text-transform: uppercase; padding: 4px 10px; border-radius: 999px; margin-bottom: 10px; }
.tag.today { background: #DDF5E5; color: #1D6B3A; }
.tag.build { background: var(--yellow); color: #12203F; }
.steps-row { counter-reset: s; }
.steps-row .card h3::before { counter-increment: s; content: counter(s); display: inline-grid; place-items: center; width: 34px; height: 34px; margin-right: 10px; border-radius: 50%; background: var(--blue); color: #fff; font: 800 1rem var(--sans); vertical-align: 2px; }

@media (max-width: 980px) {
  .demo { grid-template-columns: 1fr; }
  .demo-stage { position: static; order: -1; }
  .demo-side { display: contents; }
  .demo-side > .demo-intro { order: -2; }
  .demo-list { display: flex; overflow-x: auto; gap: 8px; margin: 0 -20px; padding: 4px 20px 10px; scroll-snap-type: x mandatory; scrollbar-width: none; order: -1; }
  .demo-list::-webkit-scrollbar { display: none; }
  .demo-list li { flex: none; scroll-snap-align: start; }
  .demo-pick { width: auto; white-space: nowrap; min-height: 48px; }
  .demo-controls { justify-content: center; }
  .reel { grid-template-columns: repeat(2, 1fr); }
  .uses { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .demo-screen { height: 600px; }
  .reel, .uses, .grid2 { grid-template-columns: 1fr; }
  .reel { max-width: 300px; margin-left: auto; margin-right: auto; }
}

/* Hero clip and helpers */
.hero-clip { margin: 0 auto; max-width: 300px; text-align: center; }
.hero-clip .clip, .reel .clip { background: #0E1322; border-radius: 40px; padding: 9px; box-shadow: 0 24px 60px rgba(18,32,63,.25); }
.hero-clip video { display: block; width: 100%; height: auto; border-radius: 32px; aspect-ratio: 1206 / 2622; background: #F7FAFF; }
.hero-clip figcaption { margin-top: 12px; font-size: .95rem; opacity: .8; }
.space-top { margin-top: 40px; }
.reel .clip { border-radius: 34px; padding: 8px; }
@media (max-width: 980px) { .demo { gap: 18px; } }
@media (max-width: 560px) { header.site { position: static; } nav.site { justify-content: flex-start; } }
