/* The FlexVivid tour pages (docs/landing/tours.md): flexvivid.com's Signal look around the frame, the client
   portal's own light look inside the screens. Fonts are self-hosted beside this file (SIL Open Font License). */
@font-face { font-family: 'Sora'; font-weight: 100 800; font-display: swap; src: url(fonts/sora-latin-wght-normal.woff2) format('woff2'); }
@font-face { font-family: 'Onest'; font-weight: 100 900; font-display: swap; src: url(fonts/onest-latin-wght-normal.woff2) format('woff2'); }
@font-face { font-family: 'JetBrains Mono'; font-weight: 100 800; font-display: swap; src: url(fonts/jetbrains-mono-latin-wght-normal.woff2) format('woff2'); }

:root {
    --bg: #060908;
    --bg-2: #0b120d;
    --panel: #111a14;
    --line: rgb(196 230 170 / 0.1);
    --line-2: rgb(196 230 170 / 0.18);
    --fg: #e8eee3;
    --muted: #9aa596;
    --faint: #66705f;
    --leaf: #a6d86b;
    --signal: #5fd4e8;
    --warn: #f0b45a;
    --ease: cubic-bezier(0.22, 1, 0.36, 1);
    /* The portal's own colors (resources/css/tokens.css). */
    --p-bg: #f6f8f7;
    --p-fg: #101828;
    --p-card: #ffffff;
    --p-blue: #1d5fd6;
    --p-blue-soft: #eaf2fd;
    --p-blue-ink: #123f8f;
    --p-muted: #5a6474;
    --p-line: #e7e9ee;
    --p-side: #eef2f7;
    --p-green: #15803d;
    --p-green-soft: #e7f6ec;
    --p-amber: #b45309;
    --p-amber-soft: #fdf2e2;
    --p-red: #b91c1c;
    --sans: 'Onest', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
    --display: 'Sora', 'Onest', ui-sans-serif, system-ui, sans-serif;
    --mono: 'JetBrains Mono', ui-monospace, Menlo, monospace;
    color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body {
    background: var(--bg);
    color: var(--fg);
    font: 400 17px/1.55 var(--sans);
    -webkit-font-smoothing: antialiased;
}
a { color: var(--leaf); }
:focus-visible { outline: 2px solid var(--signal); outline-offset: 3px; }

/* ---- page ---- */
.top { display: flex; align-items: center; justify-content: space-between; gap: 16px; max-width: 1240px; margin: 0 auto; padding: 18px 16px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--fg); text-decoration: none; font: 600 18px var(--display); }
.brand img { width: 34px; height: 34px; }
.top nav { display: flex; gap: 18px; flex-wrap: wrap; justify-content: flex-end; }
.top nav a { color: var(--muted); text-decoration: none; font-size: 15px; }
.top nav a:hover, .top nav a[aria-current] { color: var(--fg); }
main { max-width: 1240px; margin: 0 auto; padding: 8px 16px 64px; }
.intro h1 { font: 650 clamp(28px, 4.4vw, 48px)/1.1 var(--display); letter-spacing: -0.02em; margin: 10px 0 10px; }
.intro p { color: var(--muted); max-width: 720px; margin: 0 0 22px; font-size: clamp(16px, 1.8vw, 19px); }
.eyebrow { font: 500 13px var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--leaf); }

/* ---- the frame ---- */
.player { border: 1px solid var(--line-2); border-radius: 20px; overflow: hidden; background: var(--bg-2); box-shadow: 0 40px 90px -40px rgb(0 0 0 / 0.9); }
#frame { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: var(--bg-2); }
#stage {
    position: absolute; left: 0; top: 0; width: 1920px; height: 1080px; transform-origin: 0 0; overflow: hidden;
    background:
        radial-gradient(900px 600px at 82% 12%, rgb(95 212 232 / 0.09), transparent 70%),
        radial-gradient(1000px 700px at 10% 100%, rgb(166 216 107 / 0.09), transparent 70%),
        linear-gradient(var(--bg-2), var(--bg));
    font-family: var(--sans);
    cursor: pointer;
}
#stage::before {
    content: ''; position: absolute; inset: 0; pointer-events: none;
    background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
    background-size: 64px 64px; mask-image: radial-gradient(1200px 800px at 50% 45%, #000 20%, transparent 75%); opacity: 0.55;
}

/* The start and end screens sit over the stage. */
.overlay { position: absolute; inset: 0; display: grid; place-items: center; z-index: 30; background: rgb(6 9 8 / 0.74); backdrop-filter: blur(6px); transition: opacity 0.4s var(--ease), visibility 0.4s; }
.started .overlay.start, :root:not(.ended) .overlay.end { opacity: 0; visibility: hidden; pointer-events: none; }
.overlay .inner { text-align: center; padding: 16px; }
#start { display: inline-flex; flex-direction: column; align-items: center; gap: 14px; background: none; border: 0; color: var(--fg); cursor: pointer; font: inherit; }
#start .disc { width: clamp(64px, 11vw, 120px); aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center; background: var(--leaf); color: #0b130a; box-shadow: 0 0 0 10px rgb(166 216 107 / 0.16), 0 20px 50px -10px rgb(166 216 107 / 0.5); transition: transform 0.3s var(--ease); }
#start:hover .disc { transform: scale(1.06); }
#start .disc svg { width: 40%; height: 40%; margin-left: 6%; }
#start .playlabel { font: 600 clamp(15px, 2.1vw, 22px) var(--display); }
#start .sub { color: var(--muted); font-size: clamp(12px, 1.5vw, 15px); }
.end .inner h2 { font: 650 clamp(18px, 3vw, 34px) var(--display); margin: 0 0 16px; }
.end .actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 11px 18px; border-radius: 999px; border: 1px solid var(--line-2); background: rgb(17 26 20 / 0.85); color: var(--fg); font: 600 15px var(--sans); text-decoration: none; cursor: pointer; }
.btn.primary { background: var(--leaf); color: #0b130a; border-color: transparent; }
.loading #frame::after { content: ''; position: absolute; right: 16px; top: 16px; width: 22px; height: 22px; border-radius: 50%; border: 3px solid var(--line-2); border-top-color: var(--leaf); animation: spin 0.8s linear infinite; z-index: 40; }
@keyframes spin { to { transform: rotate(360deg); } }
.no-audio-note { display: none; color: var(--warn); font-size: 14px; padding: 10px 16px 0; }
.no-audio .no-audio-note { display: block; }

/* ---- captions and controls (outside the stage, so they stay readable on a phone) ---- */
#caption { min-height: 3.4em; padding: 14px 18px 4px; text-align: center; font: 500 clamp(16px, 2vw, 22px)/1.45 var(--sans); color: var(--muted); }
#caption span { transition: color 0.15s; }
#caption span.said { color: var(--fg); }
.no-captions #caption { visibility: hidden; min-height: 0.5em; padding: 6px; }
.controls { display: flex; align-items: center; gap: 12px; padding: 8px 14px 14px; }
.controls button { width: 40px; height: 40px; flex: none; display: grid; place-items: center; border-radius: 10px; border: 1px solid var(--line-2); background: transparent; color: var(--fg); cursor: pointer; }
.controls button svg { width: 18px; height: 18px; }
#toggle .pause, .playing #toggle .play { display: none; }
.playing #toggle .pause { display: block; }
#cc { font: 700 12px var(--mono); width: auto; padding: 0 10px; }
#cc[aria-pressed='false'] { color: var(--faint); }
.seekwrap { position: relative; flex: 1; height: 40px; display: flex; align-items: center; }
#seek { -webkit-appearance: none; appearance: none; width: 100%; height: 6px; border-radius: 6px; background: linear-gradient(90deg, var(--leaf) var(--p, 0%), var(--line-2) var(--p, 0%)); cursor: pointer; margin: 0; }
#seek::-webkit-slider-thumb { -webkit-appearance: none; width: 16px; height: 16px; border-radius: 50%; background: var(--fg); border: 0; }
#seek::-moz-range-thumb { width: 16px; height: 16px; border-radius: 50%; background: var(--fg); border: 0; }
#ticks { position: absolute; inset: 0; pointer-events: none; }
#ticks i { position: absolute; top: 50%; width: 2px; height: 12px; margin-top: -6px; background: var(--bg); }
#time { font: 500 14px var(--mono); color: var(--muted); white-space: nowrap; }

/* ---- under the player ---- */
.below { display: grid; gap: 28px; grid-template-columns: minmax(0, 1fr); margin-top: 32px; }
@media (min-width: 900px) { .below.two { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.card { border: 1px solid var(--line-2); border-radius: 18px; padding: 22px; background: rgb(17 26 20 / 0.55); }
.card h2 { font: 600 20px var(--display); margin: 0 0 12px; }
.chapters ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.chapters button { width: 100%; display: flex; gap: 14px; align-items: baseline; text-align: left; padding: 9px 10px; border-radius: 10px; border: 0; background: transparent; color: var(--fg); font: inherit; cursor: pointer; }
.chapters button:hover { background: rgb(166 216 107 / 0.08); }
.chapters button[aria-current] { background: rgb(166 216 107 / 0.14); color: var(--leaf); }
.chapters button span { font: 500 13px var(--mono); color: var(--muted); min-width: 3.2em; }
details.words summary { cursor: pointer; font: 600 17px var(--display); }
details.words p { color: var(--muted); margin: 12px 0 0; }
.other { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; }
.other p { margin: 0; color: var(--muted); }
footer { max-width: 1240px; margin: 0 auto; padding: 0 16px 40px; color: var(--faint); font-size: 14px; }

/* ======================================================================================================== */
/* ---- inside the stage (1920×1080, never scaled by media queries) ---- */
.scene { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity 0.55s var(--ease), visibility 0.55s; }
.scene.is-on { opacity: 1; visibility: visible; }
.r { opacity: 0; transform: translateY(26px); transition: opacity 0.6s var(--ease), transform 0.7s var(--ease); }
.r.on { opacity: 1; transform: none; }
.r.pop { transform: scale(0.85); }
.r.pop.on { transform: none; }
.r.left { transform: translateX(-40px); }
.r.right { transform: translateX(40px); }
.r.left.on, .r.right.on { transform: none; }
.r.fade { transform: none; }

.kicker { position: absolute; left: 120px; top: 64px; font: 500 22px var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--leaf); }
.headline { position: absolute; left: 120px; top: 104px; width: 1680px; font: 650 58px/1.12 var(--display); letter-spacing: -0.02em; color: var(--fg); margin: 0; }
.headline em { font-style: normal; color: var(--leaf); }
.lede { position: absolute; left: 120px; font: 400 30px/1.4 var(--sans); color: var(--muted); width: 1300px; }

/* Title card */
.title { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; }
.title .mark { width: 168px; height: 168px; margin: 0 auto 36px; }
.title .mark img { width: 100%; height: 100%; display: block; }
.title h1 { font: 700 112px/1 var(--display); letter-spacing: -0.03em; margin: 0; }
.title p { font: 400 38px var(--sans); color: var(--muted); margin: 22px 0 0; }
.title .mark.r { transform: scale(0.6) rotate(-8deg); }
.title .mark.r.on { transform: none; }

/* A window and the client's light screens */
.win { position: absolute; background: var(--p-card); color: var(--p-fg); border-radius: 22px; overflow: hidden; box-shadow: 0 2px 4px rgb(0 0 0 / 0.3), 0 50px 100px -30px rgb(0 0 0 / 0.85); border: 1px solid rgb(255 255 255 / 0.08); }
.win > .bar { height: 54px; display: flex; align-items: center; gap: 10px; padding: 0 22px; background: #eef1f4; border-bottom: 1px solid var(--p-line); }
.win > .bar i { width: 14px; height: 14px; border-radius: 50%; background: #d6dbe1; }
.win > .bar .addr { margin-left: 18px; flex: 1; height: 32px; border-radius: 10px; background: #fff; border: 1px solid var(--p-line); font: 500 17px var(--mono); color: var(--p-muted); display: flex; align-items: center; padding: 0 14px; gap: 10px; }
.win > .bar .tag { font: 700 14px var(--mono); padding: 4px 10px; border-radius: 8px; background: var(--p-amber-soft); color: var(--p-amber); letter-spacing: 0.04em; }
.win .body { position: absolute; inset: 54px 0 0 0; background: var(--p-bg); }

.p-h { font: 650 34px var(--display); letter-spacing: -0.01em; margin: 0 0 6px; color: var(--p-fg); }
.p-sub { font: 400 21px var(--sans); color: var(--p-muted); margin: 0 0 24px; }
.p-card { background: var(--p-card); border: 1px solid var(--p-line); border-radius: 18px; padding: 24px 28px; box-shadow: 0 1px 2px rgb(16 24 40 / 0.04); }
.p-row { display: flex; align-items: center; gap: 16px; padding: 16px 0; border-top: 1px solid var(--p-line); font-size: 22px; }
.p-row:first-child { border-top: 0; }
.p-row .grow { flex: 1; min-width: 0; }
.p-row small { display: block; color: var(--p-muted); font-size: 18px; }
.chip { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px; font: 600 17px var(--sans); background: var(--p-blue-soft); color: var(--p-blue-ink); white-space: nowrap; }
.chip.green { background: var(--p-green-soft); color: var(--p-green); }
.chip.amber { background: var(--p-amber-soft); color: var(--p-amber); }
.chip.gray { background: #f1f3f6; color: var(--p-muted); }
.chip::before { content: ''; width: 9px; height: 9px; border-radius: 50%; background: currentColor; }
.pbtn { display: inline-flex; align-items: center; gap: 10px; padding: 14px 24px; border-radius: 14px; font: 600 21px var(--sans); background: var(--p-blue); color: #fff; border: 0; transition: transform 0.2s, box-shadow 0.3s; }
.pbtn.ghost { background: #fff; color: var(--p-fg); border: 1px solid var(--p-line); }
.pbtn.green { background: var(--p-green); }
.pbtn.on, .pbtn.hl { box-shadow: 0 0 0 6px rgb(29 95 214 / 0.2); }
.pbtn.green.on { box-shadow: 0 0 0 6px rgb(21 128 61 / 0.22); }
.field { border: 1px solid #d6dbe1; border-radius: 12px; background: #fff; padding: 14px 18px; font-size: 22px; color: var(--p-fg); min-height: 56px; }
.field.tall { min-height: 150px; line-height: 1.45; }
.label { font: 600 18px var(--sans); color: var(--p-fg); margin: 18px 0 8px; }
.typing::after, [data-type].on:not(.done)::after { content: ''; display: inline-block; width: 2px; height: 1em; background: var(--p-blue); margin-left: 2px; vertical-align: -0.15em; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.toast { position: absolute; display: flex; align-items: center; gap: 14px; padding: 18px 24px; border-radius: 16px; background: var(--p-fg); color: #fff; font: 600 22px var(--sans); box-shadow: 0 30px 60px -20px rgb(0 0 0 / 0.6); }
.toast b { color: #86efac; }
.icon { width: 1em; height: 1em; flex: none; }

/* The cursor */
.cursor { position: absolute; left: 0; top: 0; width: 40px; height: 40px; z-index: 20; opacity: 0; transition: opacity 0.3s; pointer-events: none; }
.cursor.on { opacity: 1; }
.cursor svg { width: 40px; height: 40px; filter: drop-shadow(0 4px 6px rgb(0 0 0 / 0.35)); }
.cursor::after { content: ''; position: absolute; left: -16px; top: -16px; width: 36px; height: 36px; border-radius: 50%; border: 3px solid var(--p-blue); opacity: 0; transform: scale(0.4); }
.cursor.click::after { animation: ripple 0.45s ease-out; }
@keyframes ripple { 0% { opacity: 0.9; transform: scale(0.4); } 100% { opacity: 0; transform: scale(1.6); } }

/* The portal shell: one window that stays put while its pages change */
.shell { position: absolute; left: 120px; top: 150px; width: 1680px; height: 860px; opacity: 0; visibility: hidden; transition: opacity 0.5s var(--ease), visibility 0.5s; z-index: 1; }
#stage[data-shell='portal'] .shell { opacity: 1; visibility: visible; }
.shell .body { display: flex; }
.side { width: 300px; flex: none; background: var(--p-side); border-right: 1px solid var(--p-line); padding: 26px 18px; }
.side .who { display: flex; align-items: center; gap: 12px; padding: 0 10px 22px; font: 650 22px var(--display); }
.side .who i { width: 40px; height: 40px; border-radius: 12px; background: var(--p-blue); display: grid; place-items: center; color: #fff; font: 700 18px var(--sans); font-style: normal; }
.side a { display: flex; align-items: center; gap: 14px; padding: 12px 14px; border-radius: 12px; font: 500 20px var(--sans); color: #3b4452; text-decoration: none; transition: background 0.3s, color 0.3s; }
.side a .n { margin-left: auto; font: 700 15px var(--sans); background: var(--p-blue); color: #fff; border-radius: 999px; padding: 2px 9px; }
.side svg { width: 22px; height: 22px; }
.shell .main { flex: 1; position: relative; }
.shell .head { height: 76px; display: flex; align-items: center; justify-content: flex-end; gap: 18px; padding: 0 32px; border-bottom: 1px solid var(--p-line); background: #fff; }
.shell .bell { position: relative; width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; color: var(--p-muted); border: 1px solid var(--p-line); }
.shell .bell svg { width: 22px; height: 22px; }
.shell .avatar { width: 44px; height: 44px; border-radius: 50%; background: #c7d7f5; display: grid; place-items: center; font: 700 17px var(--sans); color: var(--p-blue-ink); }
#stage[data-nav='home'] [data-nav-item='home'], #stage[data-nav='messages'] [data-nav-item='messages'], #stage[data-nav='tasks'] [data-nav-item='tasks'],
#stage[data-nav='connections'] [data-nav-item='connections'], #stage[data-nav='issues'] [data-nav-item='issues'], #stage[data-nav='projects'] [data-nav-item='projects'],
#stage[data-nav='timeline'] [data-nav-item='timeline'], #stage[data-nav='documents'] [data-nav-item='documents'], #stage[data-nav='activity'] [data-nav-item='activity'],
#stage[data-nav='billing'] [data-nav-item='billing'], #stage[data-nav='team'] [data-nav-item='team'] { background: #fff; color: var(--p-fg); font-weight: 650; box-shadow: 0 1px 3px rgb(16 24 40 / 0.08); }
/* A page inside the shell: the content box of the shell's main column */
.pane { position: absolute; left: 420px; top: 280px; width: 1380px; height: 730px; padding: 36px 44px; z-index: 2; overflow: hidden; color: var(--p-fg); }
.side a.on, .side a.flash { background: #fff; color: var(--p-blue); box-shadow: 0 0 0 3px rgb(29 95 214 / 0.25); }

/* Counts on home */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-bottom: 26px; }
.stat { background: #fff; border: 1px solid var(--p-line); border-radius: 18px; padding: 22px 26px; }
.stat b { display: block; font: 700 52px var(--display); }
.stat span { color: var(--p-muted); font-size: 20px; }
.stat.warn b { color: var(--p-amber); }
.stat.good b { color: var(--p-green); }

/* The client's own app (a made-up delivery business) with the support panel */
.app .body { display: flex; }
.app .appmain { flex: 1; padding: 34px 40px; }
.app .appnav { display: flex; gap: 26px; font: 600 20px var(--sans); color: var(--p-muted); margin-bottom: 26px; }
.app .appnav b { color: var(--p-fg); border-bottom: 3px solid #0f766e; padding-bottom: 6px; }
.route { display: grid; gap: 12px; }
.stop { display: flex; align-items: center; gap: 18px; background: #fff; border: 1px solid var(--p-line); border-radius: 14px; padding: 16px 20px; font-size: 21px; }
.stop .num { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: #ccfbf1; color: #0f766e; font: 700 18px var(--sans); }
.stop.missing { border-style: dashed; border-color: #f2b8b5; background: #fff7f6; }
.stop.missing .num { background: #fde2e1; color: var(--p-red); }
.stop.fixed { border-color: #86efac; background: #f0fdf4; }
.stop.fixed .num { background: #bbf7d0; color: var(--p-green); }
.support { position: absolute; right: 0; top: 0; bottom: 0; width: 520px; background: #fff; border-left: 1px solid var(--p-line); padding: 28px; transform: translateX(100%); transition: transform 0.7s var(--ease); }
.support.on { transform: none; }
.support h3 { font: 650 26px var(--display); margin: 0 0 18px; }
.launcher { position: absolute; right: 36px; bottom: 34px; padding: 14px 22px; border-radius: 999px; background: #0f766e; color: #fff; font: 600 20px var(--sans); box-shadow: 0 16px 30px -12px rgb(15 118 110 / 0.7); }
.attach { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.attach span { display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border: 1px solid var(--p-line); border-radius: 10px; font: 500 17px var(--sans); color: var(--p-fg); background: #fff; }
.attach span.on { border-color: var(--p-blue); background: var(--p-blue-soft); color: var(--p-blue-ink); }
.thumb { width: 150px; height: 92px; border-radius: 10px; border: 1px solid var(--p-line); background: linear-gradient(135deg, #e6f4f1, #fff 60%), #fff; position: relative; overflow: hidden; }
.thumb::before { content: ''; position: absolute; left: 12px; right: 40px; top: 14px; height: 10px; border-radius: 4px; background: #c9e8e2; box-shadow: 0 20px 0 #e4ecef, 0 40px 0 #e4ecef, 0 60px 0 #f6d4d2; }
.wave { display: flex; align-items: center; gap: 4px; height: 40px; }
.wave i { width: 5px; border-radius: 3px; background: var(--p-blue); animation: wave 1s ease-in-out infinite; }
@keyframes wave { 0%, 100% { height: 8px; } 50% { height: 34px; } }

/* Overnight */
.night { position: absolute; left: 120px; top: 330px; width: 1680px; height: 700px; }
.timeline { position: absolute; left: 0; right: 0; top: 330px; height: 4px; background: var(--line-2); border-radius: 4px; }
.timeline .fill { position: absolute; left: 0; top: 0; bottom: 0; width: 0; background: linear-gradient(90deg, var(--leaf), var(--signal)); border-radius: 4px; transition: width 5s linear; }
.timeline .fill.on { width: 100%; }
.tick { position: absolute; top: 200px; width: 360px; height: 300px; text-align: center; }
.tick .dot { position: absolute; left: 50%; top: 117px; margin-left: -13px; width: 26px; height: 26px; border-radius: 50%; background: var(--bg); border: 4px solid var(--leaf); }
.tick .when { font: 600 26px var(--mono); color: var(--leaf); }
.tick .what { font: 600 30px var(--display); margin-top: 6px; }
.tick .note { position: absolute; top: 175px; left: 0; right: 0; color: var(--muted); font-size: 23px; line-height: 1.4; }
.moon { position: absolute; right: 60px; top: -10px; width: 110px; height: 110px; border-radius: 50%; box-shadow: inset -26px 10px 0 0 #e8eee3; opacity: 0.9; }
.sun { position: absolute; right: 60px; top: -10px; width: 110px; height: 110px; border-radius: 50%; background: radial-gradient(circle, #ffe7a3, #f0b45a 70%); box-shadow: 0 0 80px #f0b45a; }
.trace { position: absolute; font: 400 19px/1.7 var(--mono); color: var(--faint); }
.trace b { color: var(--signal); font-weight: 500; }

/* Fix pane */
.fixpane { border: 2px solid var(--p-blue); border-radius: 20px; background: #fff; padding: 28px 32px; }
.fixpane.live { border-color: var(--p-green); }
.fixpane h4 { font: 650 30px var(--display); margin: 0 0 8px; }
.fixpane p { font-size: 22px; color: var(--p-muted); margin: 0 0 22px; }
.swap { position: relative; }
.swap > * { transition: opacity 0.45s var(--ease), transform 0.45s var(--ease); }
.swap > .b { position: absolute; inset: 0; opacity: 0; transform: translateY(14px); }
.swap.on > .a { opacity: 0; transform: translateY(-14px); }
.swap.on > .b { opacity: 1; transform: none; }

/* Outro */
.three { position: absolute; left: 120px; top: 300px; width: 1680px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 36px; }
.three > div { border: 1px solid var(--line-2); border-radius: 28px; padding: 44px 40px; background: rgb(17 26 20 / 0.7); }
.three .big { font: 700 64px var(--display); color: var(--leaf); }
.three h3 { font: 650 38px var(--display); margin: 14px 0 10px; }
.three p { font-size: 25px; color: var(--muted); margin: 0; }
.cta { position: absolute; left: 120px; top: 760px; display: flex; gap: 26px; align-items: center; font: 600 40px var(--display); }
.cta .pill { padding: 22px 38px; border-radius: 999px; background: var(--leaf); color: #0b130a; }
.cta .phone { color: var(--fg); font-family: var(--mono); font-weight: 500; }

/* Flow (how a project starts) */
.flow { position: absolute; left: 120px; top: 380px; width: 1680px; display: flex; align-items: center; justify-content: space-between; }
.flow .stepc { width: 230px; height: 150px; border: 1px solid var(--line-2); border-radius: 22px; background: rgb(17 26 20 / 0.85); display: grid; place-items: center; text-align: center; font: 600 27px var(--display); position: relative; }
.flow .arrow { flex: 1; height: 3px; background: var(--line-2); margin: 0 10px; }
.leak { position: absolute; left: 50%; top: 178px; transform: translateX(-50%); white-space: nowrap; font: 600 20px var(--sans); color: var(--warn); background: rgb(240 180 90 / 0.12); border: 1px solid rgb(240 180 90 / 0.4); padding: 8px 14px; border-radius: 999px; }
.leak.r { transform: translate(-50%, 20px); }
.leak.r.on { transform: translateX(-50%); }

/* Mail (invitation, replies) */
.mail { position: absolute; background: #fff; color: var(--p-fg); border-radius: 22px; box-shadow: 0 50px 100px -30px rgb(0 0 0 / 0.85); padding: 34px 40px; }
.mail .from { font-size: 19px; color: var(--p-muted); }
.mail h4 { font: 650 32px var(--display); margin: 10px 0 14px; }
.mail p { font-size: 22px; margin: 0 0 20px; color: #344054; }

/* Lists in the guide */
.steps { display: grid; gap: 14px; }
.steps .s { display: flex; align-items: center; gap: 18px; background: #fff; border: 1px solid var(--p-line); border-radius: 14px; padding: 16px 22px; font-size: 21px; }
.steps .s .n { font: 700 18px var(--mono); color: var(--p-blue); width: 32px; }
.steps .s .ask { margin-left: auto; font: 600 17px var(--sans); color: var(--p-blue); border: 1px solid #c9dbf8; border-radius: 10px; padding: 7px 12px; }
.steps .s.hl { border-color: var(--p-blue); box-shadow: 0 0 0 4px rgb(29 95 214 / 0.12); }
.toggle { width: 58px; height: 32px; border-radius: 999px; background: #d6dbe1; position: relative; flex: none; transition: background 0.3s; }
.toggle::after { content: ''; position: absolute; left: 4px; top: 4px; width: 24px; height: 24px; border-radius: 50%; background: #fff; transition: transform 0.3s var(--ease); }
.toggle.on, .toggle.yes { background: var(--p-blue); }
.toggle.on::after, .toggle.yes::after { transform: translateX(26px); }
.doc { position: absolute; background: #fff; color: var(--p-fg); border-radius: 12px; box-shadow: 0 50px 100px -30px rgb(0 0 0 / 0.85); padding: 48px 56px; }
.doc .line { height: 14px; border-radius: 6px; background: #eef1f4; margin: 14px 0; }

@media (prefers-reduced-motion: reduce) {
    .scene, .r, .swap > *, .support, .timeline .fill { transition-duration: 0.01s !important; }
    .wave i, .typing::after { animation: none; }
}
