/* Solutions page: a scroll tour of every Overcut app. The left column is page
   copy (translated); the right column is a stage, drawn at a fixed 1120x700
   design size and scaled to fit (tour.js sets --s), that shows a live replica
   of the app each caption describes. Same mechanics as oat/tour/. */

.st { position: relative; padding: calc(var(--header-height) + 1rem) 0 2rem; }
.st-grid {
    max-width: 1640px; margin: 0 auto; padding: 0 2.5rem;
    display: grid; grid-template-columns: minmax(300px, 0.55fr) minmax(0, 1fr); column-gap: 4rem;
    grid-template-areas: "hero stage" "steps stage";
}
.st-hero { grid-area: hero; min-height: calc(100vh - var(--header-height) - 1rem); display: flex; flex-direction: column; justify-content: center; padding-bottom: 6vh; }
.st-steps { grid-area: steps; }
.st-stage {
    grid-area: stage; align-self: start; position: sticky;
    top: calc(var(--header-height) + max(1rem, (100vh - var(--header-height) - var(--win-h, 600px)) / 2));
}

.st-kicker { font-size: 0.8rem; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: #00d4ff; margin-bottom: 1rem; }
.st-hero h1 { font-size: clamp(2.3rem, 4.4vw, 3.9rem); font-weight: 900; line-height: 1.02; letter-spacing: -0.02em; margin-bottom: 1.25rem; max-width: 13ch; }
.st-hero p { font-size: 1.15rem; color: var(--color-text-secondary); line-height: 1.6; max-width: 34rem; margin-bottom: 2rem; }
.st-hero .st-note { font-size: 0.9rem; color: var(--color-text-muted); margin: 1.25rem 0 0; }

.st-btn { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.85rem 1.6rem; border-radius: 8px; font-weight: 700; text-decoration: none; transition: background var(--transition-fast), border-color var(--transition-fast); }
.st-btn-primary { background: var(--color-accent-blue); color: #fff; }
.st-btn-primary:hover { background: var(--color-accent-blue-hover); }
.st-btn-ghost { border: 1px solid var(--color-gray-light); color: var(--color-text-primary); }
.st-btn-ghost:hover { background: var(--color-bg-tertiary); }
.st-btn-gold { background: linear-gradient(#f3c76b, #e5b041 45%, #b5812a); color: #1a1205; }
.st-btn-gold:hover { filter: brightness(1.08); }
.st-members { display: inline-flex; align-items: center; gap: 0.55rem; margin-top: 1.25rem; font-weight: 700; color: #e5b041; }
.st-cta { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.5rem; }

.st-group { font-size: 0.95rem; font-weight: 700; color: #00d4ff; padding-top: 18vh; }
.st-group + .st-step { padding-top: 6vh; }
.st-step {
    min-height: 86vh; display: flex; flex-direction: column; justify-content: center;
    opacity: 0.35; transition: opacity 0.35s ease;
}
.st-step.is-active { opacity: 1; }
.st-step:last-child { min-height: 90vh; }
.st-step h3 { font-size: clamp(1.5rem, 2.4vw, 2.1rem); font-weight: 800; line-height: 1.15; margin-bottom: 0.9rem; max-width: 20ch; }
.st-step p { color: var(--color-text-secondary); line-height: 1.65; font-size: 1.05rem; max-width: 33rem; }
.st-step p + p { margin-top: 0.8rem; }
.st-step .st-fine { font-size: 0.95rem; color: var(--color-text-muted); }

/* Product line: real app icon, name, status, platform */
.st-id { display: flex; align-items: center; flex-wrap: wrap; gap: 0.6rem; margin-bottom: 1.1rem; }
.st-id img { width: 40px; height: 40px; border-radius: 10px; object-fit: contain; }
.st-id .st-name { font-weight: 800; font-size: 1.05rem; margin-right: 0.15rem; }
.st-pill { display: inline-flex; align-items: center; gap: 0.4rem; font-size: 0.75rem; font-weight: 700; border-radius: 999px; padding: 0.22rem 0.7rem; border: 1px solid var(--color-gray-light); color: var(--color-text-secondary); white-space: nowrap; }
.st-pill.live { color: #22c55e; border-color: rgba(34, 197, 94, 0.45); }
.st-pill.live::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 8px rgba(34, 197, 94, 0.8); }
.st-pill.gold { color: #e5b041; border-color: rgba(229, 176, 65, 0.5); }
.st-pill.gold::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #e5b041; box-shadow: 0 0 8px rgba(229, 176, 65, 0.8); }
.st-pill.free { color: #00d4ff; border-color: rgba(0, 212, 255, 0.45); }

/* Closing band */
.st-close { text-align: center; padding: 5rem 0 6rem; border-top: 1px solid var(--color-gray-light); }
.st-close h2 { font-size: clamp(1.6rem, 4vw, 2.4rem); font-weight: 800; margin-bottom: 0.75rem; }
.st-close p { color: var(--color-text-secondary); max-width: 40rem; margin: 0 auto 2rem; line-height: 1.6; }
.st-close .st-cta { justify-content: center; }

/* ── The stage ──────────────────────────────────────────────────────────── */
.st-frame { width: 100%; height: var(--win-h, 600px); position: relative; }
.sv-root {
    --mono: 'JetBrains Mono', ui-monospace, monospace;
    --cyan: #00d4ff; --green: #22c55e; --red: #e05555; --orange: #f5a352; --gold: #e5b041;
    position: absolute; left: 0; top: 0; width: 1120px; height: 700px;
    transform: scale(var(--s, 1)); transform-origin: 0 0;
    font-family: 'DM Sans', system-ui, sans-serif; font-size: 12px; line-height: 1.35; color: #e8e8ee;
    user-select: none;
}
.sv-root * { box-sizing: border-box; }
.sv-root .mono { font-family: var(--mono); }
.sv { position: absolute; inset: 0; opacity: 0; visibility: hidden; transform: scale(0.97); transition: opacity 0.4s ease, transform 0.5s cubic-bezier(0.22, 1, 0.36, 1), visibility 0s linear 0.4s; }
.sv.on { opacity: 1; visibility: visible; transform: none; transition: opacity 0.4s ease, transform 0.5s cubic-bezier(0.22, 1, 0.36, 1); }
.sv-rise { animation: sv-rise 0.5s cubic-bezier(0.22, 1, 0.36, 1) both; }
@keyframes sv-rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* Device shells */
.sv-win { position: absolute; border-radius: 12px; overflow: hidden; display: flex; flex-direction: column; background: #0a0a0c;
    box-shadow: 0 0 0 1px #26262e, 0 30px 80px -20px rgba(0, 0, 0, 0.9), 0 0 120px -40px var(--glow, rgba(0, 212, 255, 0.25)); }
.sv-title { height: 32px; flex: none; display: flex; align-items: center; gap: 8px; padding: 0 12px; background: #0d0d10; border-bottom: 1px solid #20202a; font-size: 11.5px; color: #a1a1aa; }
.sv-title img { width: 16px; height: 16px; object-fit: contain; }
.sv-ctl { margin-left: auto; display: flex; gap: 16px; color: #6b6b76; font-size: 12px; }
.sv-browser { height: 40px; flex: none; display: flex; align-items: center; gap: 12px; padding: 0 14px; background: #141418; border-bottom: 1px solid #22222a; }
.sv-dots { display: flex; gap: 6px; }
.sv-dots i { width: 10px; height: 10px; border-radius: 50%; background: #3a3a44; }
.sv-url { flex: 1; max-width: 520px; margin: 0 auto; height: 24px; border-radius: 6px; background: #0b0b0e; border: 1px solid #26262e; display: flex; align-items: center; justify-content: center; gap: 6px; font-family: var(--mono); font-size: 10.5px; color: #a1a1aa; }
.sv-url b { color: #e8e8ee; font-weight: 500; }
.sv-body { position: relative; flex: 1; min-height: 0; overflow: hidden; }
.sv-phone { position: absolute; width: 300px; height: 630px; border-radius: 46px; padding: 12px; background: #050506;
    box-shadow: 0 0 0 2px #2c2c34, 0 0 0 5px #0e0e12, 0 40px 90px -20px rgba(0, 0, 0, 0.95), 0 0 120px -30px var(--glow, rgba(0, 212, 255, 0.25)); }
.sv-phone-screen { position: relative; width: 100%; height: 100%; border-radius: 35px; overflow: hidden; background: #0a0a0b; }
.sv-island { position: absolute; top: 9px; left: 50%; width: 92px; height: 26px; margin-left: -46px; border-radius: 14px; background: #000; z-index: 5; }
.sv-phone.buzz { animation: sv-buzz 0.36s linear; }
@keyframes sv-buzz { 0%, 100% { transform: translateX(0); } 20% { transform: translateX(-3px) rotate(-0.4deg); } 40% { transform: translateX(3px) rotate(0.4deg); } 60% { transform: translateX(-2px); } 80% { transform: translateX(2px); } }

.sv-eyebrow { font-family: var(--mono); font-size: 9.5px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: #8b8b96; }
.sv-chip { display: inline-flex; align-items: center; gap: 6px; border: 1px solid #2a2a33; border-radius: 6px; padding: 4px 9px; font-size: 11px; color: #c4c4cc; background: #121216; white-space: nowrap; }
.sv-chip i { width: 8px; height: 8px; border-radius: 50%; }
.sv-plot svg, .sv-map svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.sv-axis { font-family: var(--mono); font-size: 9px; fill: #75757f; }
.sv-gridl { stroke: #1c1c24; stroke-width: 1; }
.sv-trace { fill: none; stroke-width: 1.6; stroke-linejoin: round; }
.sv-draw { stroke-dasharray: var(--len); stroke-dashoffset: var(--len); }
.sv.on .sv-draw.go { transition: stroke-dashoffset var(--dur, 1.6s) cubic-bezier(0.4, 0, 0.2, 1); stroke-dashoffset: 0; }
.sv-badge { font-family: var(--mono); font-size: 8.5px; font-weight: 700; fill: #fff; text-anchor: middle; dominant-baseline: central; }
.sv-prog { width: 100%; height: 6px; background: #1e1e26; border-radius: 3px; overflow: hidden; }
.sv-prog i { display: block; height: 100%; width: 0; background: var(--cyan); transition: width 0.9s cubic-bezier(0.4, 0, 0.2, 1); }

/* ── Line-up (hero): one block per app ── */
.lu { position: absolute; inset: 14px 0 0; }
.lu-head { display: flex; align-items: baseline; justify-content: space-between; padding: 0 4px 16px; }
.lu-brand { font-size: 22px; font-weight: 700; }
.lu-grid { display: grid; grid-template-columns: repeat(3, 1fr); grid-template-rows: repeat(2, 1fr); gap: 18px; height: 620px; }
.lu-card { position: relative; display: flex; flex-direction: column; padding: 24px 24px 22px; border-radius: 16px; background: linear-gradient(160deg, #121217 0%, #0c0c10 70%);
    border: 1px solid #22222a; overflow: hidden; cursor: pointer; transition: border-color 0.25s, transform 0.25s, box-shadow 0.25s; }
.lu-card::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: var(--ac); opacity: 0.85; }
.lu-card::after { content: ""; position: absolute; right: -60px; top: -60px; width: 200px; height: 200px; border-radius: 50%; background: radial-gradient(circle, var(--ac) 0%, transparent 70%); opacity: 0.12; }
.lu-card:hover { border-color: color-mix(in srgb, var(--ac) 55%, #22222a); transform: translateY(-3px); box-shadow: 0 20px 50px -20px color-mix(in srgb, var(--ac) 45%, transparent); }
.lu-top { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 18px; }
.lu-top img { width: 76px; height: 76px; object-fit: contain; border-radius: 16px; }
.lu-top .st-pill { font-size: 12px; position: relative; z-index: 1; }
.lu-card .nm { font-size: 26px; font-weight: 800; letter-spacing: -0.01em; }
.lu-card .ho { font-family: var(--mono); font-size: 11.5px; color: #8b8b96; margin-top: 4px; min-height: 15px; }
.lu-card .ds { margin-top: auto; font-size: 17px; line-height: 1.4; color: #c4c4cc; padding-right: 26px; }
.lu-card .go { position: absolute; right: 22px; bottom: 22px; font-size: 18px; color: var(--ac); opacity: 0.6; transition: opacity 0.2s, transform 0.2s; }
.lu-card:hover .go { opacity: 1; transform: translateX(3px); }

/* ── OAT: Telemetry, fed by every dash ── */
.oat-tabs { display: flex; gap: 2px; padding: 0 10px; height: 36px; align-items: center; border-bottom: 1px solid #20202a; }
.oat-tabs span { padding: 5px 9px; border-radius: 6px; font-size: 11.5px; color: #a1a1aa; }
.oat-tabs span.on { color: var(--cyan); background: rgba(0, 212, 255, 0.13); }
.oat-tabs .sep { width: 1px; height: 16px; background: #26262e; padding: 0; margin: 0 6px; }
.oat-tel { display: grid; grid-template-columns: 154px 1fr 210px; height: calc(100% - 36px); }
.oat-files { border-right: 1px solid #20202a; padding: 8px 0; overflow: hidden; }
.oat-files .open { margin: 0 8px 8px; text-align: center; border: 1px solid var(--cyan); color: var(--cyan); border-radius: 6px; padding: 5px; font-family: var(--mono); font-size: 10px; }
.oat-file { display: flex; align-items: center; gap: 5px; padding: 4px 8px; font-size: 10px; color: #a1a1aa; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.oat-file .tg { flex: none; font-family: var(--mono); font-size: 7.5px; font-weight: 700; border: 1px solid; border-radius: 3px; padding: 0 3px; }
.oat-file.in { animation: oat-in 1.4s ease both; color: #e8e8ee; }
@keyframes oat-in { 0% { opacity: 0; transform: translateX(-10px); background: rgba(0, 212, 255, 0.22); } 25% { opacity: 1; transform: none; } 100% { background: transparent; } }
.oat-charts { display: flex; flex-direction: column; min-width: 0; }
.oat-sess { display: flex; align-items: center; gap: 9px; padding: 5px 10px; border-bottom: 1px solid #20202a; font-size: 11px; }
.oat-sess i { width: 8px; height: 8px; border-radius: 50%; }
.oat-sess .mono { font-size: 9.5px; color: #8b8b96; }
.oat-sess .best { margin-left: auto; font-family: var(--mono); color: var(--green); font-size: 10.5px; }
.oat-sess .lap { font-family: var(--mono); font-size: 9.5px; border: 1px solid #2a2a33; border-radius: 4px; padding: 1px 6px; color: #a1a1aa; }
.oat-tools { display: flex; align-items: center; gap: 5px; padding: 6px 10px; border-bottom: 1px solid #20202a; }
.oat-tools .sv-chip { font-family: var(--mono); font-size: 9px; padding: 3px 6px; }
.oat-tools .sv-chip.on { border-color: var(--cyan); color: var(--cyan); background: rgba(0, 212, 255, 0.1); }
.oat-tools .read { margin-left: auto; font-size: 9.5px; color: #a1a1aa; white-space: nowrap; }
.oat-mappane { border-left: 1px solid #20202a; display: flex; flex-direction: column; }
.oat-maptabs { display: flex; gap: 4px; padding: 6px 8px; border-bottom: 1px solid #20202a; }
.oat-maptabs .sv-chip { font-size: 9.5px; padding: 3px 7px; }
.oat-maptabs .sv-chip.on { border-color: var(--cyan); color: var(--cyan); }
.oat-map { background: radial-gradient(ellipse at 50% 45%, #13161c 0%, #0b0c0f 70%); }
.oat-foot { padding: 6px 10px; font-size: 9px; color: #8b8b96; border-top: 1px solid #20202a; }
.oat-feeds { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible; }
.oat-flow { fill: none; stroke-width: 1.6; stroke-opacity: 0.55; stroke-dasharray: 3 6; animation: oat-flow 0.7s linear infinite; }
@keyframes oat-flow { to { stroke-dashoffset: -9; } }
.oat-dash { position: absolute; left: 0; width: 224px; height: 120px; display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 14px; border: 1px solid #22222a; background: #0e0e12;
    box-shadow: 0 20px 50px -25px rgba(0, 0, 0, 0.9); transition: border-color 0.25s, box-shadow 0.25s; }
.oat-dash.tx { border-color: color-mix(in srgb, var(--dc) 60%, #22222a); box-shadow: 0 0 40px -12px var(--dc); }
.oat-dash .scr { width: 98px; height: 82px; flex: none; border-radius: 10px; background: #050607; border: 3px solid #1c1d22; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; }
.oat-dash .leds { display: flex; gap: 3px; }
.oat-dash .leds i { width: 6px; height: 6px; border-radius: 50%; background: #22c55e; opacity: 0.85; }
.oat-dash .leds i:nth-child(n+4) { background: #f5b942; }
.oat-dash .leds i:nth-child(n+6) { background: #e05555; }
.oat-dash .scr b { font-size: 14px; color: #e8e8ee; }
.oat-dash .scr small { font-family: var(--mono); font-size: 8px; color: #8b8b96; letter-spacing: 0.1em; }
.oat-dash .nm b { display: block; font-size: 16px; }
.oat-dash .nm span { display: block; font-size: 10px; color: #8b8b96; margin-top: 3px; }
.oat-dash .nm em { display: block; font-style: normal; font-size: 9.5px; color: var(--dc); margin-top: 8px; opacity: 0; transition: opacity 0.2s; }
.oat-dash.tx .nm em { opacity: 1; }

/* ── F1 ── */
.f1-head { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-bottom: 1px solid #1e1e26; background: #0b0b0e; }
.f1-head img { height: 22px; }
.f1-head .ttl { font-weight: 700; font-size: 13px; margin-right: 8px; }
.f1-drv { margin-left: auto; display: flex; gap: 8px; }
.f1-drv .sv-chip b { font-family: var(--mono); }
.f1-body { display: grid; grid-template-columns: 1fr 320px; gap: 10px; padding: 10px; height: calc(100% - 47px); }
.f1-plots { display: grid; grid-template-rows: 1fr 0.55fr 0.42fr; gap: 10px; min-height: 0; }
.f1-card { position: relative; border: 1px solid #1e1e26; border-radius: 10px; background: #0c0c0f; overflow: hidden; }
.f1-card > .sv-eyebrow { position: absolute; left: 12px; top: 9px; z-index: 1; }
.f1-side { display: grid; grid-template-rows: 1fr auto; gap: 10px; min-height: 0; }
.f1-read { padding: 12px 14px; font-family: var(--mono); font-size: 11px; }
.f1-read .r { display: flex; justify-content: space-between; padding: 4px 0; border-bottom: 1px solid #17171d; }
.f1-read .r span:first-child { color: #8b8b96; }

/* ── DAD (matches the real app: cyan header, green new rows, device panel) ── */
.dad-top { height: 58px; flex: none; display: flex; align-items: center; gap: 12px; padding: 0 18px; border-bottom: 1px solid #1e2228; background: #0b0e12; }
.dad-top img { width: 30px; height: 30px; object-fit: contain; }
.dad-top .ttl { font-size: 19px; font-weight: 800; color: #1ec8e8; letter-spacing: 0.01em; }
.dad-top .ver { font-size: 10.5px; color: #6b7680; }
.dad-auto { margin-left: auto; display: flex; align-items: center; gap: 7px; font-size: 12px; color: #1ec8e8; }
.dad-auto i { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 8px rgba(34, 197, 94, 0.8); }
.dad-tool { display: flex; align-items: center; gap: 6px; padding: 8px 14px; border-bottom: 1px solid #1a1e24; font-size: 10.5px; }
.dad-tool .lbl { color: #8b96a0; font-family: var(--mono); font-size: 9.5px; letter-spacing: 0.08em; margin-right: 4px; }
.dad-tool .f { border: 1px solid #2a3038; background: #12161b; border-radius: 4px; padding: 4px 10px; color: #e8e8ee; min-width: 120px; }
.dad-tool .b { border: 1px solid #2a3038; background: #151a20; border-radius: 4px; padding: 4px 9px; color: #c4ccd4; }
.dad-tool .b.on { background: #13b5d6; border-color: #13b5d6; color: #001218; font-weight: 600; }
.dad-tool .path { color: #1ec8e8; margin-left: 6px; font-family: var(--mono); font-size: 10px; }
.dad-main { display: grid; grid-template-columns: 1fr 230px; flex: 1; min-height: 0; }
.dad-tbl { border-right: 1px solid #1a1e24; overflow: hidden; }
.dad-tbl table { width: 100%; border-collapse: collapse; font-size: 10.5px; table-layout: fixed; }
.dad-tbl th { color: #1ec8e8; font-weight: 600; text-align: left; padding: 7px 8px; border-bottom: 1px solid #23303a; background: #0d1116; }
.dad-tbl td { padding: 0 8px; height: 26px; border-bottom: 1px solid #131820; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: #d0d6dc; }
.dad-tbl tr.new td { color: #22c55e; }
.dad-tbl tr.in td { animation: dad-in 0.45s ease both; }
@keyframes dad-in { from { opacity: 0; background: rgba(30, 200, 232, 0.18); } to { opacity: 1; background: transparent; } }
.dad-tbl .sv-prog { height: 8px; border-radius: 1px; }
.dad-tbl .sv-prog i { background: #1ec8e8; transition: width 1.1s linear; }
.dad-tbl tr.new .sv-prog i { background: #22c55e; }
.dad-tbl tr.old .sv-prog i { background: #e8e8ee; width: 100%; }
.dad-dev { padding: 10px; overflow: hidden; }
.dad-dev .hd { display: flex; gap: 10px; font-family: var(--mono); font-size: 9.5px; color: #8b96a0; letter-spacing: 0.08em; margin-bottom: 8px; }
.dad-dev .hd b { color: #1ec8e8; font-weight: 500; }
.dad-d { display: flex; align-items: center; justify-content: space-between; padding: 8px 10px; border: 1px solid #1c2228; border-radius: 4px; margin-bottom: 6px; background: #0f1317; }
.dad-d b { display: block; font-size: 11px; color: #9aa4ae; font-weight: 600; transition: color 0.3s; }
.dad-d span { font-family: var(--mono); font-size: 9px; color: #5d6670; }
.dad-d em { font-style: normal; font-size: 9px; padding: 2px 7px; border-radius: 3px; background: #1a2026; color: #6b7680; transition: all 0.3s; }
.dad-d.on b { color: #fff; }
.dad-d.on em { background: rgba(34, 197, 94, 0.15); color: #22c55e; }
.dad-foot { height: 32px; flex: none; display: flex; align-items: center; gap: 12px; padding: 0 14px; border-top: 1px solid #1a1e24; font-size: 10.5px; color: #8b96a0; background: #0b0e12; }
.dad-foot .cnt { margin-left: auto; font-family: var(--mono); }
.dad-foot .pw { color: #1ec8e8; font-weight: 600; }

/* ── BestLap (matches the real app) ── */
.bl { padding: 44px 0 0; height: 100%; display: flex; flex-direction: column; background: #0b0b0c; }
.bl-top { display: flex; align-items: flex-start; justify-content: space-between; padding: 0 14px 10px; border-bottom: 1px solid #1d1d20; }
.bl-top img { height: 22px; }
.bl-pro { font-size: 8px; font-weight: 800; color: #fff; background: #d64545; border-radius: 4px; padding: 2px 5px; margin-left: 4px; letter-spacing: 0.1em; vertical-align: 5px; }
.bl-best { text-align: right; font-family: var(--mono); }
.bl-best small { display: block; font-size: 7px; letter-spacing: 0.14em; color: #a974ff; font-weight: 700; }
.bl-best b { font-size: 13px; color: #a974ff; }
.bl-best span span { display: inline; }
.bl-best span { display: block; white-space: nowrap; font-size: 7px; color: #8b8b96; letter-spacing: 0.1em; margin-top: 2px; }
.bl-grid { flex: 1; display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: repeat(4, 1fr); }
.bl-c { position: relative; padding: 9px 10px 6px; border-bottom: 1px solid #1d1d20; border-right: 1px solid #141416; background: #131315; display: flex; flex-direction: column; transition: background 0.3s, box-shadow 0.3s; }
.bl-c .h { display: flex; justify-content: space-between; font-size: 10px; font-weight: 700; }
.bl-c .h small { display: block; font-size: 7px; color: #8b8b96; letter-spacing: 0.12em; font-weight: 600; margin-top: 1px; }
.bl-c .last { text-align: right; font-family: var(--mono); font-size: 9.5px; font-weight: 700; }
.bl-c .last small { font-family: 'DM Sans', sans-serif; text-align: right; }
.bl-c .last.pb { color: #22c55e; }
.bl-c .last.sb { color: #a974ff; }
.bl-c .t { flex: 1; display: grid; place-items: center; font-size: 30px; font-weight: 700; font-variant-numeric: tabular-nums; letter-spacing: -0.01em; }
.bl-c .lap { text-align: center; font-size: 11px; font-weight: 900; font-style: italic; letter-spacing: 0.2em; color: #d64545; }
.bl-c.approach { background: #1a1424; box-shadow: inset 0 0 0 2px rgba(169, 116, 255, 0.9); animation: bl-pulse 0.5s ease-in-out infinite alternate; }
@keyframes bl-pulse { to { box-shadow: inset 0 0 0 2px rgba(169, 116, 255, 0.25); } }
.bl-c.cross { background: #12201a; }
.bl-side { position: absolute; left: 520px; top: 150px; width: 470px; border: 1px solid #22222a; border-radius: 14px; background: #0d0d10; padding: 16px 18px; box-shadow: 0 30px 70px -20px rgba(0, 0, 0, 0.9); }
.bl-side h5 { margin: 4px 0 12px; font-size: 15px; }
.bl-side table { width: 100%; border-collapse: collapse; font-size: 11.5px; }
.bl-side th { font-family: var(--mono); font-size: 9px; color: #8b8b96; letter-spacing: 0.08em; text-align: right; font-weight: 600; padding: 5px 6px; border-bottom: 1px solid #20202a; }
.bl-side th:first-child, .bl-side td:first-child { text-align: left; }
.bl-side td { font-family: var(--mono); text-align: right; padding: 6px; border-bottom: 1px solid #17171d; transition: background 0.4s; }
.bl-side td:first-child { font-family: 'DM Sans', sans-serif; font-weight: 600; }
.bl-side .sb { color: #a974ff; }
.bl-side tr.flash td { background: rgba(169, 116, 255, 0.12); }
.bl-alarm { position: absolute; left: 520px; top: 82px; display: flex; align-items: center; gap: 10px; border: 1px solid rgba(169, 116, 255, 0.6); background: rgba(169, 116, 255, 0.1); border-radius: 10px; padding: 9px 14px; font-size: 12px; opacity: 0; transform: translateY(6px); transition: opacity 0.3s, transform 0.3s; }
.bl-alarm.in { opacity: 1; transform: none; }
.bl-alarm b { color: #c4a1ff; }

/* ── Setup Manager ── */
.su-dash { padding: 16px 18px; }
.su-dash .top { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.su-dash .top img { width: 28px; height: 28px; border-radius: 6px; }
.su-dash .top h5 { margin: 0; font-size: 15px; }
.su-dash .top .sub { font-size: 10.5px; color: #8b8b96; }
.su-filters { display: flex; gap: 7px; margin-bottom: 12px; }
.su-search { width: 200px; border: 1px solid #2a2a33; border-radius: 6px; padding: 5px 9px; font-size: 11px; background: #121216; color: #8b8b96; }
.su-dash table { width: 100%; border-collapse: collapse; font-size: 11px; }
.su-dash th { font-family: var(--mono); font-size: 9px; color: #8b8b96; letter-spacing: 0.08em; text-align: left; padding: 6px 8px; border-bottom: 1px solid #22222a; font-weight: 600; }
.su-dash td { padding: 8px; border-bottom: 1px solid #17171d; white-space: nowrap; }
.su-dash td.num { font-family: var(--mono); }
.su-dash tr.fresh td { animation: su-fresh 2.4s ease both; }
@keyframes su-fresh { 0% { opacity: 0; background: rgba(227, 24, 55, 0.25); } 15% { opacity: 1; } 100% { background: transparent; } }
.su-pdf { font-family: var(--mono); font-size: 9px; color: #e31837; border: 1px solid rgba(227, 24, 55, 0.5); border-radius: 4px; padding: 1px 5px; }
.su-toast { position: absolute; right: 16px; bottom: 16px; width: 270px; border: 1px solid #2a2a33; border-left: 3px solid #e31837; border-radius: 8px; background: #141418; padding: 10px 12px; font-size: 11px; color: #c4c4cc; opacity: 0; transform: translateY(10px); transition: opacity 0.35s, transform 0.35s; }
.su-toast b { display: block; color: #fff; margin-bottom: 2px; }
.su-toast.in { opacity: 1; transform: none; }
.su-form { padding: 46px 16px 16px; height: 100%; display: flex; flex-direction: column; background: #0c0c0e; }
.su-form .brand { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 13px; margin-bottom: 12px; }
.su-form .brand img { width: 24px; height: 24px; border-radius: 5px; }
.su-steps { display: flex; gap: 4px; margin-bottom: 6px; }
.su-steps i { flex: 1; height: 3px; border-radius: 2px; background: #26262e; }
.su-steps i.on { background: #e31837; }
.su-form .stp { font-family: var(--mono); font-size: 9px; color: #8b8b96; letter-spacing: 0.1em; margin-bottom: 12px; }
.su-same { display: flex; align-items: center; gap: 9px; border: 1px solid #2a2a33; border-radius: 9px; padding: 10px; margin-bottom: 12px; font-size: 11.5px; transition: border-color 0.3s, background 0.3s; }
.su-box { width: 18px; height: 18px; border-radius: 5px; border: 1.5px solid #55555f; display: grid; place-items: center; flex: none; transition: all 0.25s; color: transparent; font-size: 11px; font-weight: 900; }
.su-same.on { border-color: rgba(227, 24, 55, 0.6); background: rgba(227, 24, 55, 0.07); }
.su-same.on .su-box { background: #e31837; border-color: #e31837; color: #fff; }
.su-f { margin-bottom: 9px; }
.su-f label { display: block; font-size: 9.5px; color: #8b8b96; margin-bottom: 3px; }
.su-f .in { border: 1px solid #2a2a33; background: #141418; border-radius: 7px; padding: 7px 9px; font-size: 12px; font-family: var(--mono); display: flex; justify-content: space-between; transition: border-color 0.3s, opacity 0.3s; }
.su-f .in small { font-family: 'DM Sans', sans-serif; font-size: 8.5px; color: #6b6b76; }
.su-f.dim .in { opacity: 0.45; }
.su-f.edit .in { border-color: #e31837; opacity: 1; }
.su-f .in.typing::after { content: ""; display: inline-block; width: 1px; height: 12px; background: #e31837; margin-left: 1px; animation: su-blink 0.8s steps(1) infinite; }
@keyframes su-blink { 50% { opacity: 0; } }
.su-two { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.su-send { margin-top: auto; text-align: center; padding: 11px; border-radius: 10px; background: #e31837; color: #fff; font-weight: 700; font-size: 13px; transition: transform 0.15s, background 0.3s; }
.su-send.press { transform: scale(0.96); }
.su-send.done { background: #1f7a3d; }

/* ── Vault (matches the real app: near-black, gold accents, Outfit) ── */
.va { --vg: #e5b041; font-family: 'Outfit', 'DM Sans', sans-serif; background: #0a0a0f; }
.va-top { height: 50px; display: flex; align-items: center; justify-content: center; position: relative; border-bottom: 1px solid #1c1c24; background: #0e0e14; }
.va-top img { height: 24px; margin-right: 10px; }
.va-top .w { letter-spacing: 0.4em; font-size: 11px; color: #a1a1aa; }
.va-top .u { position: absolute; right: 16px; display: flex; align-items: center; gap: 8px; font-size: 11.5px; }
.va-top .u em { font-style: normal; font-size: 8.5px; font-weight: 700; color: var(--vg); border: 1px solid var(--vg); border-radius: 4px; padding: 1px 6px; letter-spacing: 0.06em; }
.va-main { display: grid; grid-template-columns: 190px 1fr; height: calc(100% - 50px); }
.va-side { border-right: 1px solid #1c1c24; padding: 14px 10px; }
.va-side div { padding: 8px 12px; border-radius: 7px; font-size: 12.5px; color: #a1a1aa; margin-bottom: 2px; }
.va-side div.on { background: #16161e; color: var(--vg); }
.va-side .sec { font-size: 9.5px; letter-spacing: 0.12em; color: #66666f; padding: 16px 12px 6px; background: none; }
.va-pane { position: relative; padding: 18px 22px; overflow: hidden; }
.va-crumbs { display: flex; align-items: center; gap: 7px; font-size: 12.5px; color: #a1a1aa; margin-bottom: 18px; min-height: 22px; flex-wrap: nowrap; white-space: nowrap; }
.va-crumbs span { animation: sv-rise 0.35s ease both; }
.va-crumbs span.cur { color: #fff; font-weight: 600; }
.va-crumbs .sl { color: #44444d; }
.va-lbl { font-size: 10px; letter-spacing: 0.12em; color: #8b8b96; font-weight: 600; margin-bottom: 10px; }
.va-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.va-card { border: 1px solid #22222c; border-radius: 12px; padding: 14px; background: #101017; animation: sv-rise 0.4s cubic-bezier(0.22, 1, 0.36, 1) both; transition: border-color 0.25s, background 0.25s, transform 0.2s; }
.va-card .ic { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.va-card .ic svg { width: 22px; height: 22px; }
.va-card .ic small { font-size: 9px; letter-spacing: 0.1em; color: #77777f; font-weight: 600; }
.va-card b { display: block; font-size: 13.5px; margin-bottom: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.va-card .m { font-size: 10.5px; color: #77777f; font-family: var(--mono); }
.va-card .tags { display: flex; gap: 5px; margin-top: 9px; flex-wrap: wrap; }
.va-card .tags span { font-size: 9.5px; border: 1px solid #2a2a34; border-radius: 999px; padding: 2px 8px; color: #b4b4bc; }
.va-card .tags span.oat { color: var(--cyan); border-color: rgba(0, 212, 255, 0.4); }
.va-card.hot { border-color: rgba(229, 176, 65, 0.7); background: #15130e; transform: translateY(-2px); }
.va-share { position: absolute; top: 0; right: 0; bottom: 0; width: 330px; background: #0d0d13; border-left: 1px solid #26262e; padding: 20px 20px; transform: translateX(105%); transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1); box-shadow: -30px 0 60px rgba(0, 0, 0, 0.6); }
.va-share.open { transform: none; }
.va-share h6 { margin: 0 0 4px; font-size: 16px; }
.va-share .m { font-size: 11px; color: #77777f; margin-bottom: 16px; }
.va-opt { border: 1px solid #26262e; border-radius: 10px; padding: 11px 12px; margin-bottom: 8px; font-size: 12px; transition: border-color 0.3s, background 0.3s; }
.va-opt small { display: block; color: #77777f; font-size: 10.5px; margin-top: 2px; }
.va-opt.on { border-color: rgba(229, 176, 65, 0.7); background: rgba(229, 176, 65, 0.06); }
.va-days { display: flex; gap: 6px; margin: 12px 0 16px; }
.va-days span { flex: 1; text-align: center; border: 1px solid #26262e; border-radius: 7px; padding: 6px 0; font-size: 11.5px; color: #a1a1aa; transition: all 0.25s; }
.va-days span.on { border-color: var(--vg); color: var(--vg); background: rgba(229, 176, 65, 0.08); }
.va-copy { text-align: center; padding: 10px; border-radius: 9px; background: linear-gradient(#f3c76b, #e5b041 45%, #b5812a); color: #1a1205; font-weight: 700; letter-spacing: 0.12em; font-size: 11px; transition: transform 0.15s; }
.va-copy.press { transform: scale(0.96); }
.va-link { margin-top: 12px; font-family: var(--mono); font-size: 10px; color: #8b8b96; border: 1px dashed #2a2a34; border-radius: 7px; padding: 8px; opacity: 0; transition: opacity 0.4s; }
.va-link.in { opacity: 1; }

/* Phone line-up: real HTML blocks, not the scaled stage, so they stay readable. */
.st-apps { display: none; }

/* ── Phones and small tablets: one full-screen chapter per app ──
   The stage pins over the whole screen with the stage centred; tour-chapters.js
   adds the dots and the caption under it. The captions themselves become
   invisible one-screen spacers that drive the tour as you scroll past them. */
@media (max-width: 960px) {
    .st { padding: var(--header-height) 0 0; }
    .st-grid { display: block; padding: 0; }
    .st-hero { min-height: auto; padding: 2.25rem 1rem 2.5rem; text-align: center; align-items: center; }
    .st-hero h1 { font-size: 2.4rem; margin-left: auto; margin-right: auto; }
    .st-hero p { margin-left: auto; margin-right: auto; }
    .st-hero .st-cta { justify-content: center; }
    .st-stage { position: sticky; top: 0; z-index: 2; height: 100vh; height: 100svh; display: flex; flex-direction: column; justify-content: center; align-items: center;
        padding: calc(var(--header-height) + 8px) 12px 16px; background: var(--color-bg-primary); }
    .st-steps { position: relative; margin-top: -100vh; margin-top: -100svh; }
    .st-group { display: none; }
    .st-step, .st-step:last-child, .st-group + .st-step { height: 100vh; height: 100svh; min-height: 0; padding: 0; visibility: hidden; scroll-snap-align: start; }
    .st-close { padding: 3.5rem 1rem 4rem; }
    /* The big glows repaint with every animation frame; phones get a plain edge. */
    .sv-win { box-shadow: 0 0 0 1px #26262e, 0 14px 30px -14px rgba(0, 0, 0, 0.9); }
    .sv-phone { box-shadow: 0 0 0 2px #2c2c34, 0 0 0 5px #0e0e12; }
    .tc-cap .st-id { margin-bottom: 0.7rem; }
    .tc-cap .st-id img { width: 34px; height: 34px; }
    .tc-cap .st-cta { margin-top: 1rem; }
    .tc-cap .st-btn { padding: 0.7rem 1.2rem; font-size: 0.95rem; }
    .tc-cap .st-members { margin-top: 0.8rem; }

    .st-apps { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 2rem; }
    .st-app { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 0.45rem; padding: 16px 12px 14px; border-radius: 14px; overflow: hidden; text-decoration: none; color: inherit;
        background: linear-gradient(160deg, #121217 0%, #0c0c10 75%); border: 1px solid #22222a; }
    .st-app::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: var(--ac); }
    .st-app .top { display: flex; flex-direction: column-reverse; align-items: center; gap: 10px; }
    .st-app img { width: 48px; height: 48px; object-fit: contain; border-radius: 11px; }
    .st-app .st-pill { font-size: 0.62rem; padding: 0.15rem 0.5rem; }
    .st-app .nm { font-size: 1.05rem; font-weight: 800; }
    .st-app .ds { font-size: 0.82rem; line-height: 1.4; color: var(--color-text-secondary); }
}

@media (prefers-reduced-motion: reduce) {
    .st-step, .sv, .va-share, .oat-loss .bar i, .sv-prog i, .va-card, .oat-coach { transition: none !important; animation: none !important; }
    .sv-rise, .va-crumbs span, .dad-tbl tr.in td, .su-dash tr.fresh td, .bl-c.approach, .sv-phone.buzz { animation: none !important; }
}
