/* TeleCloud showcase — same tokens, badges, buttons and motion as the app */
:root {
  color-scheme: dark;
  --bg: #0b0b0d;
  --bg-app: #121214;
  --surface: #1a1a1d;
  --surface-2: #222226;
  --surface-hover: #2a2a2f;
  --border: rgba(255, 255, 255, .06);
  --border-2: rgba(255, 255, 255, .1);
  --text: #f2f2f3;
  --text-2: #a4a4ab;
  --text-3: #6c6c74;
  --accent: #ff6a3d;
  --accent-2: #ff8a5c;
  --accent-soft: rgba(255, 106, 61, .14);
  --ok: #3fcf8e;
  --ok-soft: rgba(63, 207, 142, .14);
  --info: #6aa8ff;
  --info-soft: rgba(106, 168, 255, .14);
  --warn: #f5b942;
  --warn-soft: rgba(245, 185, 66, .14);
  --danger: #ff5c5c;
  --brand: linear-gradient(135deg, #FF8A3D, #FF5A4E 55%, #F0306E);
  --shadow: 0 30px 80px rgba(0, 0, 0, .55);
  --font: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, Consolas, monospace;
  --spring: cubic-bezier(.34, 1.56, .64, 1);
  --ease-out: cubic-bezier(.25, .8, .3, 1);
  --wrap: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 500 16px/1.6 var(--font); -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; border: 0; background: none; color: inherit; cursor: pointer; }
h1, h2, h3 { margin: 0; letter-spacing: -.02em; line-height: 1.1; }
h2 { font-size: clamp(30px, 4.2vw, 48px); font-weight: 800; }
h3 { font-size: 19px; font-weight: 700; }
p { margin: 0; }
code, kbd, .mono { font-family: var(--mono); }
kbd { font-size: 12px; padding: 2px 7px; border-radius: 6px; background: var(--surface-2); border: 1px solid var(--border-2); color: var(--text); }
.muted { color: var(--text-3); }
.grad { white-space: nowrap; background: var(--brand); -webkit-background-clip: text; background-clip: text; color: transparent; }
::selection { background: var(--accent-soft); color: var(--text); }
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, .14); border-radius: 8px; border: 2px solid var(--bg); }

/* ===== App components ===== */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; }
.badge {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 10.5px; font-weight: 700; letter-spacing: .3px; line-height: 1.4;
  padding: 3px 7px; border-radius: 6px; white-space: nowrap; font-family: var(--mono);
}
.b-hires { background: var(--accent-soft); color: var(--accent); }
.b-lossless, .b-ok { background: var(--ok-soft); color: var(--ok); }
.b-local { background: var(--surface-2); color: var(--text-2); }
.b-cloud { background: var(--info-soft); color: var(--info); }
.b-cached { background: var(--warn-soft); color: var(--warn); }
.btn-primary {
  background: var(--accent); color: #fff;
  padding: 12px 24px; border-radius: 999px; font-weight: 700; font-size: 15px;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  box-shadow: 0 8px 20px var(--accent-soft);
  transition: background .15s, transform .35s var(--spring);
}
.btn-primary:hover:not(:disabled) { background: var(--accent-2); transform: translateY(-1px); }
.btn-primary:active:not(:disabled) { transform: scale(.97); }
.btn-primary.sm { padding: 8px 18px; font-size: 13px; }
.btn-outline {
  border: 1.5px solid var(--accent); color: var(--accent);
  padding: 11px 24px; border-radius: 999px; font-weight: 700; font-size: 15px;
  display: inline-flex; align-items: center; justify-content: center;
}
.btn-primary:disabled, .btn-outline:disabled { opacity: .5; cursor: not-allowed; box-shadow: none; }
.toggle { width: 38px; height: 22px; border-radius: 99px; background: var(--surface-hover); position: relative; flex-shrink: 0; }
.toggle i { position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: var(--text-2); transition: transform .35s var(--spring), background .2s; }
.toggle.on { background: var(--accent); }
.toggle.on i { transform: translateX(16px); background: #fff; }
.eyebrow { font-size: 12px; font-weight: 700; letter-spacing: 1.4px; text-transform: uppercase; color: var(--accent); margin-bottom: 14px; }
.lead { font-size: clamp(16px, 1.6vw, 19px); color: var(--text-2); max-width: 640px; }
.ticks { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 10px; color: var(--text-2); }
.ticks li { position: relative; padding-left: 28px; }
.ticks li::before {
  content: ''; position: absolute; left: 0; top: 4px; width: 18px; height: 18px; border-radius: 50%;
  background: var(--ok-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%233fcf8e' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6L9 17l-5-5'/%3E%3C/svg%3E") center / 11px no-repeat;
}

/* ===== Reveal (the app's riseIn) ===== */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease-out), transform .8s var(--ease-out); }
.reveal.in { opacity: 1; transform: none; }

/* ===== Scroll progress + nav ===== */
.scroll-bar { position: fixed; inset: 0 0 auto; height: 2px; z-index: 60; background: var(--brand); transform-origin: 0 50%; transform: scaleX(var(--page, 0)); }
.nav {
  position: fixed; z-index: 50; top: 12px; left: 50%; transform: translateX(-50%);
  width: min(var(--wrap), calc(100% - 2 * var(--gutter)));
  display: flex; align-items: center; gap: 24px; padding: 8px 8px 8px 16px;
  background: rgba(18, 18, 20, .72); backdrop-filter: blur(18px) saturate(1.4); -webkit-backdrop-filter: blur(18px) saturate(1.4);
  border: 1px solid var(--border-2); border-radius: 999px;
  transition: box-shadow .3s;
}
.nav.scrolled { box-shadow: 0 10px 30px rgba(0, 0, 0, .35); }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 17px; }
.brand img { border-radius: 8px; }
.nav-links { display: flex; gap: 4px; margin-left: auto; }
.nav-links a { padding: 7px 14px; border-radius: 999px; font-size: 14px; font-weight: 600; color: var(--text-2); transition: color .15s, background .15s; }
.nav-links a:hover, .nav-links a.on { color: var(--text); background: var(--surface-2); }

/* ===== Hero ===== */
.hero { position: relative; padding: 150px var(--gutter) 60px; text-align: center; display: flex; flex-direction: column; align-items: center; }
.hero h1 { font-size: clamp(32px, 7vw, 84px); font-weight: 800; letter-spacing: -.035em; line-height: 1.02; margin-bottom: 22px; }
.hero .lead { margin: 0 auto; }
.hero-glow {
  position: absolute; inset: -10% 0 auto; height: 900px; z-index: -1; pointer-events: none;
  background:
    radial-gradient(40% 35% at 50% 30%, rgba(255, 106, 61, .22), transparent 70%),
    radial-gradient(30% 30% at 70% 45%, rgba(240, 48, 110, .14), transparent 70%),
    radial-gradient(30% 30% at 30% 50%, rgba(255, 138, 61, .10), transparent 70%);
}
.hero-badges { display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; margin-top: 26px; }
.hero-badges .badge { font-size: 12px; padding: 5px 10px; }
.hero-badges .b-local { margin-left: 10px; }
.hero-shot { width: min(1180px, 100%); margin-top: 64px; perspective: 1600px; }
.window {
  border-radius: 14px; overflow: hidden; border: 1px solid var(--border-2); background: var(--bg-app);
  box-shadow: var(--shadow), 0 0 120px rgba(255, 106, 61, .14);
  transform: rotateX(calc((1 - var(--p, 0)) * 16deg)) scale(calc(.92 + var(--p, 0) * .08));
  transform-origin: 50% 0; will-change: transform;
}
.window-bar { height: 34px; display: flex; align-items: center; gap: 0; padding: 0 0 0 14px; background: #0f0f11; border-bottom: 1px solid var(--border); }
.window-bar .wt { font-size: 12px; color: var(--text-3); margin-right: auto; }
.window-bar i { width: 46px; height: 100%; display: grid; place-items: center; }
.window-bar i::before { content: ''; width: 10px; height: 1.5px; background: var(--text-3); }
.window-bar i:nth-child(3)::before { height: 10px; width: 10px; background: none; border: 1.5px solid var(--text-3); }
.window-bar i:nth-child(4)::before { content: '×'; width: auto; height: auto; background: none; color: var(--text-3); font-size: 16px; line-height: 1; }
.scroll-cue { margin-top: 36px; width: 26px; height: 40px; border: 2px solid var(--text-3); border-radius: 14px; display: grid; justify-items: center; padding-top: 7px; }
.scroll-cue span { width: 4px; height: 8px; border-radius: 4px; background: var(--accent); animation: cue 1.8s var(--ease-out) infinite; }
@keyframes cue { 0% { transform: translateY(0); opacity: 1; } 70% { transform: translateY(12px); opacity: 0; } 100% { opacity: 0; } }

/* ===== Pillars ===== */
.pillars { width: min(var(--wrap), calc(100% - 2 * var(--gutter))); margin: 80px auto 40px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.pillar { padding: 28px; border-radius: 18px; background: var(--surface); border: 1px solid var(--border); transition: transform .45s var(--spring), border-color .2s, opacity .7s var(--ease-out); }
.pillar:hover { transform: translateY(-4px); border-color: var(--border-2); }
.pillar:nth-child(2) { transition-delay: .08s; }
.pillar:nth-child(3) { transition-delay: .16s; }
.pillar p { color: var(--text-2); margin-top: 10px; font-size: 15px; }
.p-ico { width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; background: var(--brand); margin-bottom: 20px; box-shadow: 0 10px 24px rgba(255, 90, 78, .25); }
.p-ico svg { width: 24px; height: 24px; fill: none; stroke: #fff; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }

/* ===== Scroll stories (sticky) ===== */
.story { position: relative; height: 260vh; }
.story.tall { height: 360vh; }
.story-sticky {
  position: sticky; top: 0; height: 100vh; display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 64px;
  width: min(var(--wrap), calc(100% - 2 * var(--gutter))); margin: 0 auto;
}
.story-copy p { color: var(--text-2); margin-top: 18px; }
.story-copy h2 + p { max-width: 520px; }
.story-visual { display: flex; justify-content: center; }

/* signal path card */
.sp-card { width: min(440px, 100%); padding: 22px 24px; box-shadow: var(--shadow); }
.sp-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; font-size: 17px; }
.sp-badge { font-size: 12px; padding: 5px 10px; opacity: 0; transform: scale(.6); transition: opacity .3s, transform .5s var(--spring); }
.story[data-step="4"] .sp-badge, .story[data-step="5"] .sp-badge { opacity: 1; transform: none; }
.sp-steps { list-style: none; margin: 0; padding: 0; }
.sp-steps li { position: relative; display: grid; grid-template-columns: 14px 1fr auto; align-items: center; gap: 14px; padding: 11px 0; font-size: 16px; color: var(--text-3); transition: color .35s; }
.sp-steps li i { width: 11px; height: 11px; border-radius: 50%; background: var(--surface-hover); transition: background .35s, box-shadow .35s, transform .45s var(--spring); }
.sp-steps li:not(:last-child)::after { content: ''; position: absolute; left: 4.5px; top: 30px; height: 22px; width: 2px; background: var(--surface-2); }
.sp-steps li code { font-size: 14px; color: var(--text-3); transition: color .35s; }
.sp-steps li.lit { color: var(--text); }
.sp-steps li.lit i { background: var(--ok); box-shadow: 0 0 0 5px var(--ok-soft); transform: scale(1.1); }
.sp-steps li.lit code { color: var(--text-2); }
.sp-wave { display: flex; gap: 4px; align-items: center; height: 54px; margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--border); }
.sp-wave span { flex: 1; border-radius: 3px; background: var(--brand); height: 10%; opacity: .35; transition: opacity .4s; }
.story[data-step="4"] .sp-wave span, .story[data-step="5"] .sp-wave span { opacity: 1; animation: eqbar 1.1s ease-in-out infinite alternate; }
.sp-wave span:nth-child(3n) { animation-duration: .8s; } .sp-wave span:nth-child(4n) { animation-duration: 1.4s; } .sp-wave span:nth-child(5n+1) { animation-delay: -.4s; }
@keyframes eqbar { from { height: 15%; } to { height: 100%; } }

/* cloud story */
.steps-copy { position: relative; min-height: 270px; }
.sc { position: absolute; inset: 0; opacity: 0; transform: translateY(16px); transition: opacity .5s var(--ease-out), transform .6s var(--ease-out); pointer-events: none; }
.story[data-step="0"] .sc[data-s="0"], .story[data-step="1"] .sc[data-s="1"], .story[data-step="2"] .sc[data-s="2"], .story[data-step="3"] .sc[data-s="3"], .story[data-step="4"] .sc[data-s="3"] { opacity: 1; transform: none; pointer-events: auto; }
.dots { display: flex; gap: 8px; margin-top: 28px; }
.dots i { width: 8px; height: 8px; border-radius: 99px; background: var(--surface-hover); transition: width .4s var(--spring), background .3s; }
.story[data-step="0"] .dots i:nth-child(1), .story[data-step="1"] .dots i:nth-child(2), .story[data-step="2"] .dots i:nth-child(3), .story[data-step="3"] .dots i:nth-child(4), .story[data-step="4"] .dots i:nth-child(4) { width: 28px; background: var(--accent); }

.tl-card { width: min(520px, 100%); padding: 18px; box-shadow: var(--shadow); }
.tl-head { display: flex; align-items: center; justify-content: space-between; padding: 2px 6px 14px; font-size: 17px; }
.tl-status { font-size: 12px; font-weight: 700; color: var(--text-2); font-family: var(--mono); }
.tl-status::after { content: 'Backing up · 2 of 4'; }
.story[data-step="1"] .tl-status::after { content: 'AES-256 · only your key opens it'; color: var(--ok); }
.story[data-step="2"] .tl-status::after { content: 'Streaming · 3.1 MB/s'; color: var(--info); }
.story[data-step="3"] .tl-status::after, .story[data-step="4"] .tl-status::after { content: 'Cached · plays offline'; color: var(--warn); }
.tl-rows { display: grid; gap: 4px; }
.tl-row { position: relative; display: grid; grid-template-columns: 40px 1fr auto 128px; align-items: center; gap: 12px; padding: 8px; border-radius: 10px; transition: background .3s; overflow: hidden; }
.tl-row .cv { width: 40px; height: 40px; border-radius: 8px; background: radial-gradient(60% 60% at 30% 30%, rgba(255, 255, 255, .35), transparent 60%), linear-gradient(135deg, var(--c1), var(--c2)); }
.tl-row .tt { min-width: 0; }
.tl-row .tt b { display: block; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tl-row .tt small { font-size: 12px; color: var(--text-3); }
.tl-row .src { display: flex; gap: 4px; align-items: center; }
.tl-row .src .badge { transition: opacity .3s, transform .45s var(--spring), max-width .4s var(--ease-out), padding .4s; max-width: 60px; overflow: hidden; }
.tl-row .src .b-cloud, .tl-row .src .b-cached { opacity: 0; transform: scale(.5); max-width: 0; padding: 3px 0; }
.tl-row .lock { width: 14px; height: 14px; opacity: 0; transform: scale(.4); transition: opacity .3s, transform .45s var(--spring);
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%233fcf8e' stroke-width='2.4' stroke-linecap='round'%3E%3Crect x='5' y='11' width='14' height='10' rx='2'/%3E%3Cpath d='M8 11V8a4 4 0 0 1 8 0v3'/%3E%3C/svg%3E") center / contain no-repeat; }
.tl-row .up { position: absolute; left: 60px; right: 8px; bottom: 3px; height: 2px; border-radius: 2px; background: var(--surface-2); opacity: 1; transition: opacity .4s; }
.tl-row .up span { display: block; height: 100%; width: 0; border-radius: 2px; background: var(--accent); transition: width 1.2s var(--ease-out); }
/* step 0: uploading — rows fill one after another */
.story[data-step="0"] .tl-row:nth-child(1) .up span { width: 100%; }
.story[data-step="0"] .tl-row:nth-child(2) .up span { width: 64%; }
.story[data-step="0"] .tl-row:nth-child(1) .src .b-cloud,
.story:not([data-step="0"]) .tl-row .src .b-cloud { opacity: 1; transform: none; max-width: 60px; padding: 3px 7px; }
.story:not([data-step="0"]) .tl-row .up { opacity: 0; }
.story:not([data-step="0"]) .tl-row .up span { width: 100%; }
.story[data-step="1"] .tl-row .lock { opacity: 1; transform: none; }
/* step 2+: one track exists only in the cloud and streams */
.story[data-step="2"] .tl-row.stream, .story[data-step="3"] .tl-row.stream, .story[data-step="4"] .tl-row.stream { background: var(--accent-soft); }
.story[data-step="2"] .tl-row.stream .b-local, .story[data-step="3"] .tl-row.stream .b-local, .story[data-step="4"] .tl-row.stream .b-local { opacity: 0; transform: scale(.5); max-width: 0; padding: 3px 0; }
.story[data-step="2"] .tl-row.stream .tt b, .story[data-step="3"] .tl-row.stream .tt b, .story[data-step="4"] .tl-row.stream .tt b { color: var(--accent); }
.story[data-step="2"] .tl-row.stream .up { opacity: 1; background: transparent; }
.story[data-step="2"] .tl-row.stream .up span { background: var(--info); animation: stream 1.6s linear infinite; width: 40%; }
@keyframes stream { from { transform: translateX(-100%); } to { transform: translateX(250%); } }
.story[data-step="3"] .tl-row.stream .b-cached, .story[data-step="4"] .tl-row.stream .b-cached { opacity: 1; transform: none; max-width: 60px; padding: 3px 7px; }
.tl-foot { margin-top: 12px; padding: 12px 8px 2px; border-top: 1px solid var(--border); }
.cap { font-size: 12px; color: var(--text-3); opacity: .35; transition: opacity .4s, color .4s; }
.story[data-step="1"] .cap { opacity: 1; color: var(--ok); }

/* ===== Split sections ===== */
.split {
  width: min(var(--wrap), calc(100% - 2 * var(--gutter))); margin: 140px auto;
  display: grid; grid-template-columns: 5fr 7fr; gap: 64px; align-items: center;
}
.split.rev { grid-template-columns: 7fr 5fr; }
.split.rev .split-copy { order: 2; }
.split-copy p:not(.eyebrow) { color: var(--text-2); margin-top: 18px; }
.split-copy .hint { color: var(--accent); font-weight: 700; font-size: 14px; margin-top: 22px; }
.split-shot { position: relative; }
.split-shot > img { border-radius: 14px; border: 1px solid var(--border-2); box-shadow: var(--shadow); }
.chips { position: absolute; left: -24px; bottom: -22px; display: flex; gap: 6px; flex-wrap: wrap; padding: 10px; border-radius: 14px; background: rgba(26, 26, 29, .9); backdrop-filter: blur(12px); border: 1px solid var(--border-2); box-shadow: var(--shadow); }
.chip { display: inline-flex; align-items: center; gap: 7px; padding: 6px 12px; border-radius: 999px; background: var(--surface-2); font-size: 13px; font-weight: 600; color: var(--text-2); }
.chip i { width: 12px; height: 9px; border: 1.6px solid currentColor; border-radius: 6px 6px 3px 3px; }
.chip b { font-family: var(--mono); font-size: 11px; color: var(--text-3); }
.chip.on { background: var(--accent-soft); color: var(--accent); }
.chip.on b { color: var(--accent); }
.float { animation: float 6s ease-in-out infinite; }
@keyframes float { 50% { transform: translateY(-8px); } }

/* EQ card */
.eq-card { padding: 18px 18px 10px; box-shadow: var(--shadow); }
.eq-top { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; font-size: 16px; }
.eq-top .mono { font-size: 12px; margin-left: auto; }
#eq-svg { width: 100%; height: auto; display: block; touch-action: none; user-select: none; }
.eq-grid line { stroke: rgba(255, 255, 255, .05); }
.eq-grid text { fill: var(--text-3); font: 10px var(--mono); }
.eq-grid .zero { stroke: rgba(255, 255, 255, .12); }
.eq-line { fill: none; stroke: var(--accent); stroke-width: 2.5; stroke-linejoin: round; }
.eq-fill { fill: url(#eqfill); }
.eq-dots circle { fill: #fff; stroke: var(--accent); stroke-width: 2.5; cursor: grab; transition: r .2s var(--spring); }
.eq-dots circle:hover, .eq-dots circle.drag { r: 8; }
.eq-dots circle.drag { cursor: grabbing; }

/* ===== Gallery (horizontal, scroll-linked) ===== */
.gallery { position: relative; height: 340vh; }
.gallery-sticky { position: sticky; top: 0; height: 100vh; overflow: hidden; display: flex; flex-direction: column; justify-content: center; }
.gallery-head { width: min(var(--wrap), calc(100% - 2 * var(--gutter))); margin: 0 auto 40px; }
.gallery-track { display: flex; gap: 28px; padding: 0 var(--gutter); width: max-content; transform: translateX(calc(var(--p, 0) * var(--shift, 0px) * -1)); will-change: transform; }
.gallery figure { margin: 0; width: min(760px, 78vw); flex-shrink: 0; }
.gallery figure img { border-radius: 14px; border: 1px solid var(--border-2); box-shadow: 0 20px 50px rgba(0, 0, 0, .45); }
.gallery figcaption { margin-top: 14px; color: var(--text-2); font-size: 15px; }

/* ===== Compare ===== */
.compare { width: min(980px, calc(100% - 2 * var(--gutter))); margin: 140px auto; }
.center { text-align: center; margin-bottom: 40px; }
.table-card { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 15px; min-width: 640px; }
th, td { padding: 16px 18px; text-align: left; border-bottom: 1px solid var(--border); }
tr:last-child td { border-bottom: 0; }
th { font-size: 13px; color: var(--text-3); font-weight: 700; }
th.us { color: var(--text); font-size: 15px; }
th.us img { display: inline-block; vertical-align: -5px; margin-right: 8px; border-radius: 6px; }
td:first-child { color: var(--text); font-weight: 600; }
td.us { background: var(--accent-soft); }
th.us { background: var(--accent-soft); border-radius: 12px 12px 0 0; }
td.y { color: var(--ok); font-weight: 700; }
td.n { color: var(--text-3); }
td.m { color: var(--warn); }
td.us.y { color: var(--accent); }

/* ===== Download ===== */
.download { position: relative; text-align: center; padding: 140px var(--gutter) 120px; display: flex; flex-direction: column; align-items: center; overflow: hidden; }
.dl-glow { position: absolute; inset: 0; z-index: -1; background: radial-gradient(45% 50% at 50% 35%, rgba(255, 106, 61, .18), transparent 70%); }
.dl-icon { border-radius: 24px; box-shadow: 0 24px 60px rgba(255, 90, 78, .35); margin-bottom: 28px; }
.download h2 { font-size: clamp(36px, 5vw, 60px); }
.download .lead { margin-top: 14px; }
.dl-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 320px)); gap: 18px; margin-top: 44px; }
.dl-card { padding: 28px; text-align: left; display: flex; flex-direction: column; gap: 12px; transition: transform .45s var(--spring), opacity .7s var(--ease-out); }
.dl-card:hover { transform: translateY(-4px); }
.dl-card:nth-child(2) { transition-delay: .08s; }
.dl-card .badge { align-self: flex-start; font-size: 11px; }
.dl-card p { color: var(--text-2); font-size: 15px; flex: 1; }
.dl-btn { margin-top: 8px; }
.dl-btn[aria-disabled="true"] { opacity: .5; cursor: not-allowed; box-shadow: none; pointer-events: none; }
.dl-meta { min-height: 18px; font-size: 12.5px; color: var(--text-3); font-family: var(--mono); }
.dl-meta a { color: var(--text-2); text-decoration: underline; text-underline-offset: 2px; }
.dl-meta a:hover { color: var(--accent); }

/* ===== Footer ===== */
.foot { border-top: 1px solid var(--border); padding: 36px var(--gutter) 48px; display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; font-size: 14px; color: var(--text-2); }
.foot .brand { margin-bottom: 6px; color: var(--text); }
.foot a { color: var(--accent); }

/* ===== Small screens: stories stack, nothing sticky ===== */
@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav .btn-primary { margin-left: auto; }
  .hero { padding-top: 120px; }
  .pillars { grid-template-columns: 1fr; margin-top: 40px; }
  .story, .story.tall { height: auto; padding: 60px 0; }
  .story-sticky { position: static; height: auto; grid-template-columns: 1fr; gap: 36px; }
  .split, .split.rev { grid-template-columns: 1fr; gap: 40px; margin: 90px auto; }
  .split.rev .split-copy { order: 0; }
  .chips { position: static; margin-top: 14px; }
  .gallery { height: auto; padding: 60px 0; }
  .gallery-sticky { position: static; height: auto; }
  .gallery-track { transform: none; width: auto; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 12px; }
  .gallery figure { scroll-snap-align: center; width: 84vw; }
  .dl-cards { grid-template-columns: 1fr; width: 100%; max-width: 420px; }
  .tl-row { grid-template-columns: 36px 1fr auto; }
  .tl-row > .badge { display: none; }
  table { min-width: 560px; font-size: 14px; }
  th, td { padding: 12px 12px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
  .window { transform: none; }
}
