/* ============================================================
   REDACT landing — the "Command" redesign theme
   ground #0e1014 · accent record-red #ff453a · amber peaks #f5a623
   Type: ui-monospace (the command/label voice) + system SF Pro (prose)
   Squared corners, hairline borders, VU-meter spectrum motif.
   ============================================================ */

:root {
  --bg: #0e1014;
  --sidebar: #15171c;
  --panel: #181b21;
  --panel-hi: #1f232b;
  --border: rgba(255, 255, 255, 0.08);
  --border-hi: rgba(255, 255, 255, 0.16);
  --fg: rgba(255, 255, 255, 0.92);
  --fg2: rgba(255, 255, 255, 0.58);
  --fg3: rgba(255, 255, 255, 0.4);

  --red: #ff453a;
  --red-deep: #e0362c;
  --amber: #f5a623;
  --green: #3ad98a;
  --pink: #ff5fa6;
  --agent: #bf5af2;

  /* The pill widget's own shell tokens, mirrored from the app's pill.css so the
     mocks below read as the real surface and not an illustration of one. */
  --pill-shell: #14161b;
  --pill-shell-border: rgba(255, 255, 255, 0.11);

  --red-bg: color-mix(in srgb, var(--red) 12%, transparent);
  --red-border: color-mix(in srgb, var(--red) 44%, transparent);
  --green-bg: color-mix(in srgb, var(--green) 10%, transparent);
  --green-border: color-mix(in srgb, var(--green) 32%, transparent);

  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", system-ui, "Segoe UI", sans-serif;
  --mono: ui-monospace, "SF Mono", "JetBrains Mono", "Roboto Mono", Menlo, monospace;

  --maxw: 1180px;
  --pad: clamp(20px, 5vw, 56px);
  --r: 10px;

  color-scheme: dark;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
::selection { background: color-mix(in srgb, var(--red) 26%, transparent); color: #fff; }

.skip-link { position: fixed; top: -100px; left: 16px; z-index: 200; background: var(--red); color: #fff; padding: 10px 16px; border-radius: 8px; font-family: var(--mono); font-size: 13px; }
.skip-link:focus { top: 16px; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; border-radius: 3px; }

/* ── WebGL field + grain ─────────────────────────────────── */
#field {
  position: fixed; inset: 0; width: 100vw; height: 100vh;
  z-index: 0; display: block; pointer-events: none;
  opacity: 0; transition: opacity 1.2s ease;
}
#field.ready { opacity: 1; }
/* Fades the spectrum into a glowing floor so the headline sits on clean dark. */
.field-mask {
  position: fixed; inset: 0; z-index: 1; pointer-events: none;
  background:
    linear-gradient(180deg, var(--bg) 0%, color-mix(in srgb, var(--bg) 88%, transparent) 38%, color-mix(in srgb, var(--bg) 30%, transparent) 70%, transparent 100%),
    radial-gradient(140% 80% at 50% 120%, transparent 40%, color-mix(in srgb, var(--bg) 70%, transparent) 100%);
}
.grain {
  position: fixed; inset: 0; z-index: 1; pointer-events: none; opacity: 0.045;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
}
main, .nav, .foot { position: relative; z-index: 2; }

section { max-width: var(--maxw); margin-inline: auto; padding-inline: var(--pad); }

/* ── Mono labels / eyebrows ──────────────────────────────── */
.eyebrow, .section-eyebrow {
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--fg2); font-weight: 600;
}
.section-eyebrow { color: var(--red); margin-bottom: 18px; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; }
.rec-dot {
  width: 8px; height: 8px; border-radius: 50%; background: var(--red);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--red) 22%, transparent);
  animation: pulse 1.8s ease-in-out infinite;
}
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.3; } }

.section-title {
  font-family: var(--sans); font-weight: 700;
  font-size: clamp(27px, 4.2vw, 48px); line-height: 1.06; letter-spacing: -0.025em;
}
.hl { color: var(--red); }

/* ── Buttons (mono, uppercase, squared) ──────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--mono); font-weight: 700; font-size: 12px;
  letter-spacing: 0.12em; text-transform: uppercase;
  border-radius: 8px; border: 1px solid transparent; cursor: pointer; white-space: nowrap;
  transition: transform .25s cubic-bezier(.2,.7,.2,1), background .25s, border-color .25s, box-shadow .25s;
}
.btn:hover { transform: translateY(-2px); }
.btn svg { flex: 0 0 auto; }
.btn--solid {
  background: linear-gradient(180deg, var(--red), var(--red-deep)); color: #fff;
  box-shadow: 0 1px 0 rgba(255,255,255,.18) inset, 0 10px 30px -10px color-mix(in srgb, var(--red) 80%, transparent);
}
.btn--solid:hover { box-shadow: 0 1px 0 rgba(255,255,255,.22) inset, 0 16px 40px -10px color-mix(in srgb, var(--red) 90%, transparent); }
.btn--ghost { background: rgba(255,255,255,.03); color: var(--fg); border-color: var(--border-hi); }
.btn--ghost:hover { background: rgba(255,255,255,.07); border-color: var(--red); }
.btn--sm { padding: 9px 14px; font-size: 11px; }
.btn--lg { padding: 14px 20px; font-size: 12.5px; gap: 11px 10px; flex-wrap: wrap; }
.btn__main { line-height: 1.05; }
.btn__meta { flex-basis: 100%; font-weight: 600; font-size: 10px; letter-spacing: 0.1em; opacity: .72; margin-top: -3px; }
.btn--lg svg { margin-right: 2px; }
.btn__ico { display: block; flex: 0 0 auto; }
/* centered content (icon + label on one row, meta centered beneath) */
.btn--center { justify-content: center; text-align: center; }
.btn--center .btn__meta { text-align: center; }

/* ── Nav ─────────────────────────────────────────────────── */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px var(--pad); max-width: none;
  border-bottom: 1px solid transparent;
  transition: background .3s, border-color .3s, backdrop-filter .3s;
}
.nav.scrolled {
  background: color-mix(in srgb, var(--bg) 74%, transparent);
  backdrop-filter: blur(18px) saturate(1.4); -webkit-backdrop-filter: blur(18px) saturate(1.4);
  border-bottom-color: var(--border);
}
.nav__brand { display: inline-flex; align-items: center; gap: 9px; }
.nav__mark { border-radius: 6px; box-shadow: 0 0 16px -2px color-mix(in srgb, var(--red) 60%, transparent); }
.nav__word { font-family: var(--mono); font-weight: 700; letter-spacing: 0.22em; font-size: 14px; }
.nav__ver {
  font-family: var(--mono); font-size: 9.5px; font-weight: 600; color: var(--fg3);
  border: 1px solid var(--border); border-radius: 4px; padding: 2px 5px; letter-spacing: 0.06em;
}
.nav__links { display: flex; align-items: center; gap: 22px; }
.nav__links > a:not(.btn) {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--fg2); transition: color .2s;
}
.nav__links > a:not(.btn):hover { color: var(--fg); }

/* ── Hero ────────────────────────────────────────────────── */
.hero {
  min-height: 100svh; display: flex; flex-direction: column; justify-content: center;
  padding-top: 116px; padding-bottom: 56px; gap: 22px;
}
.hero__title {
  font-family: var(--mono); font-weight: 700;
  font-size: clamp(32px, 5.4vw, 74px); line-height: 1.0; letter-spacing: -0.03em;
}
.hero__title .line { display: block; }
/* Mono is wide and "follow-up" offers the browser a hyphen to break on, which
   reads as a typo at display size. Wrap before the word, never inside it. */
.nowrap { white-space: nowrap; }
.hero__title .line--accent { color: var(--red); }
.hero__sub { max-width: 60ch; font-size: clamp(16px, 1.55vw, 19px); color: var(--fg2); }
.hero__sub em { font-style: normal; color: var(--fg); border-bottom: 1.5px solid var(--red); padding-bottom: 1px; }
.hero__kicker {
  font-family: var(--mono); font-size: 13px; letter-spacing: 0.04em; color: var(--fg2);
  padding-left: 16px; border-left: 2px solid var(--red);
}
.hero__kicker strong { color: var(--red); font-weight: 700; }

.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; }
.hero__trust {
  list-style: none; display: flex; flex-wrap: wrap; gap: 12px 30px; margin-top: 4px;
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.02em; color: var(--fg2);
}
.hero__trust strong { color: var(--fg); font-weight: 700; }
.hero__trust li { position: relative; padding-left: 16px; }
.hero__trust li::before { content: ""; position: absolute; left: 0; top: 0.5em; width: 6px; height: 6px; background: var(--red); }

.scroll-hint {
  margin-top: 14px; display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--fg3);
}
.scroll-hint span { width: 24px; height: 40px; border: 1px solid var(--border-hi); border-radius: 12px; position: relative; }
.scroll-hint span::after {
  content: ""; position: absolute; left: 50%; top: 7px; transform: translateX(-50%);
  width: 4px; height: 8px; border-radius: 2px; background: var(--red);
  animation: scrolldot 1.8s ease-in-out infinite;
}
@keyframes scrolldot { 0% { opacity: 0; transform: translate(-50%, 0); } 35% { opacity: 1; } 70%,100% { opacity: 0; transform: translate(-50%, 13px); } }

/* ── Pill mock ───────────────────────────────────────────── */
/* A faithful copy of the app's floating pill (see frontend/src/pill.css):
   20px shell, 8px radius, 7px square LED, mono labels. Scaled up slightly here
   because the real thing is sized for a menubar app, not a hero. */
.pillmock { margin-top: 26px; display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.pillmock__shell {
  display: inline-flex; align-items: center; gap: 9px; height: 30px; padding: 0 8px 0 11px;
  border-radius: 9px; background: var(--pill-shell); border: 1px solid var(--pill-shell-border);
  box-shadow: 0 10px 28px rgba(0,0,0,.5), inset 0 1px 0 rgba(255,255,255,.04);
}
.pillmock__led { width: 8px; height: 8px; border-radius: 2px; flex: 0 0 auto; }
.pillmock__led--agent { background: var(--agent); box-shadow: 0 0 10px -1px var(--agent); animation: pulse 1.6s ease-in-out infinite; }
.pillmock__led--dict  { background: var(--pink);  box-shadow: 0 0 10px -1px var(--pink); }
.pillmock__label { font-family: var(--mono); font-size: 11px; font-weight: 700; letter-spacing: 0.08em; }
.pillmock__label--agent { color: rgba(255,255,255,.82); }
.pillmock__label--dict { color: var(--pink); letter-spacing: 0.07em; animation: pulse 1.4s ease-in-out infinite; }
.pillmock__cap { font-family: var(--mono); font-size: 11px; letter-spacing: 0.06em; color: var(--fg3); }
.pillmock__time { font-family: var(--mono); font-size: 11px; font-weight: 600; color: rgba(255,255,255,.82); font-variant-numeric: tabular-nums; }
.pillmock__stop {
  width: 18px; height: 18px; border-radius: 5px; flex: 0 0 auto;
  border: 1px solid rgba(255,255,255,.14); background: rgba(255,255,255,.05);
  display: inline-flex; align-items: center; justify-content: center;
}
.pillmock__stop i { width: 7px; height: 7px; border-radius: 1px; background: #fff; }

/* VU meter — 13 bars on a bell curve, stepped like the real one. */
.vu { display: inline-flex; align-items: flex-end; gap: 1.5px; height: 16px; }
.vu i {
  width: 2px; height: var(--h); background: var(--pink); transform-origin: bottom;
  animation: vu var(--d) steps(6) var(--l) infinite alternate;
}
@keyframes vu { from { transform: scaleY(.24); } to { transform: scaleY(1); } }

/* ── Demo ────────────────────────────────────────────────── */
.demo { padding-top: clamp(48px, 7vh, 96px); padding-bottom: clamp(40px, 6vh, 80px); }
.demo .section-title { max-width: 18ch; margin-bottom: 32px; }
.demo__frame {
  position: relative; aspect-ratio: 1180 / 760;
  border-radius: 16px; overflow: hidden;
  border: 1px solid var(--red-border);
  background: var(--panel);
  box-shadow: 0 1px 0 rgba(255,255,255,.05) inset, 0 40px 90px -40px color-mix(in srgb, var(--red) 55%, transparent), 0 24px 60px -30px rgba(0,0,0,.7);
}
.demo__frame::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 2px; z-index: 2;
  background: var(--red);
}
/* Absolutely fill the frame so the video's intrinsic size can never drive
   layout (otherwise it renders at native size in the corner). */
.demo__video, .demo__video img {
  position: absolute; inset: 0;
  display: block; width: 100%; height: 100%;
  object-fit: cover; background: var(--bg);
}
.demo__cap {
  max-width: 64ch; margin-top: 24px; color: var(--fg2);
  font-size: clamp(15px, 1.5vw, 17px); line-height: 1.55;
}
.demo__cap strong { color: var(--red); font-weight: 700; }
/* Expectation-setter: the video shows the ceiling case, so the everyday one is
   named right underneath it rather than left for first-run to contradict. */
.demo__cap-note { display: block; margin-top: 10px; color: var(--fg3); }

/* ── The shift ───────────────────────────────────────────── */
.shift { padding-top: clamp(80px, 12vh, 160px); padding-bottom: clamp(60px, 9vh, 120px); }
.statement {
  font-family: var(--sans); font-weight: 700;
  font-size: clamp(28px, 4.6vw, 56px); line-height: 1.08; letter-spacing: -0.028em;
  max-width: 22ch; margin: 8px 0 52px;
}
.statement em { font-style: normal; color: var(--red); }
.statement .word { display: inline-block; }

/* Note-taker contrast. The enterprise-assistant comparison lives in .vs — this
   one is about capture, so it sits with the statement it qualifies. */
.callout {
  max-width: 68ch; margin: 30px 0 44px; padding-left: 20px;
  border-left: 2px solid var(--red-border);
  font-size: clamp(15px, 1.5vw, 17.5px); color: var(--fg2); line-height: 1.62;
}
.callout strong { color: var(--fg); font-weight: 700; }
.callout em { font-style: normal; color: var(--red); font-weight: 700; }

.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.compare__col {
  border: 1px solid var(--border); border-radius: var(--r); padding: 26px 24px;
  background: linear-gradient(180deg, rgba(255,255,255,.02), transparent);
}
.compare__col:last-child { border-color: var(--red-border); background: linear-gradient(180deg, var(--red-bg), transparent); }
.compare__tag { font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--red); display: block; margin-bottom: 18px; }
.compare__tag--muted { color: var(--fg3); }
.compare__list { list-style: none; display: flex; flex-direction: column; gap: 13px; counter-reset: c; }
.compare__list li { position: relative; padding-left: 30px; color: var(--fg); font-size: 15.5px; }
.compare__list li::before {
  counter-increment: c; content: counter(c, decimal-leading-zero);
  position: absolute; left: 0; top: 1px; font-family: var(--mono); font-size: 11px; color: var(--fg3);
}
.compare__list--old li { color: var(--fg2); }
.compare__list--new li::before { color: var(--red); }
.compare__list strong { color: var(--red); }

/* ── The loop ────────────────────────────────────────────── */
.loop { padding-block: clamp(60px, 9vh, 120px); }
.loop__head { margin-bottom: 48px; }
.steps { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.step {
  border: 1px solid var(--border); border-radius: var(--r);
  background: linear-gradient(180deg, var(--panel), color-mix(in srgb, var(--panel) 82%, var(--bg)));
  padding: 22px 20px 20px; position: relative; overflow: hidden;
  display: flex; flex-direction: column; gap: 9px; min-height: 250px;
  transition: border-color .3s, transform .3s;
}
.step::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 2px; background: var(--red);
  transform: scaleX(0); transform-origin: left; transition: transform .5s cubic-bezier(.2,.7,.2,1);
}
.step:hover { border-color: var(--border-hi); transform: translateY(-4px); }
.step:hover::before { transform: scaleX(1); }
.step__num { font-family: var(--mono); font-size: 12px; color: var(--red); letter-spacing: 0.1em; }
.step__title { font-family: var(--sans); font-weight: 700; font-size: 21px; letter-spacing: -0.02em; }
.step__body { color: var(--fg2); font-size: 14.5px; flex: 1; }
.step__tag {
  font-family: var(--mono); font-size: 10px; color: var(--fg3); text-transform: uppercase;
  letter-spacing: 0.08em; border-top: 1px solid var(--border); padding-top: 11px;
}

/* ── Universal connector ─────────────────────────────────── */
.connector { padding-block: clamp(60px, 9vh, 120px); }
.connector__lead { max-width: 62ch; margin-top: 20px; color: var(--fg2); font-size: 17px; }
.vs { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 40px; }
.vs > div { border: 1px solid var(--border); border-radius: var(--r); padding: 24px 22px; }
.vs__label { font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; display: block; margin-bottom: 12px; color: var(--fg3); }
.vs > div p { color: var(--fg2); font-size: 15px; }
.vs__us { border-color: var(--red-border) !important; background: linear-gradient(180deg, var(--red-bg), transparent); }
.vs__us .vs__label { color: var(--red); }
.vs__us p { color: var(--fg); }

/* ── Drafts grid ─────────────────────────────────────────── */
.tasks { padding-block: clamp(60px, 9vh, 120px); }
.tasks__head { margin-bottom: 40px; }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.card {
  border: 1px solid var(--border); border-radius: var(--r);
  background: linear-gradient(180deg, rgba(255,255,255,.03), transparent);
  padding: 24px 22px; transition: border-color .3s, background .3s, transform .3s;
  position: relative;
}
.card:hover { border-color: var(--border-hi); transform: translateY(-3px); background: linear-gradient(180deg, rgba(255,255,255,.05), transparent); }
.card--lead { border-color: var(--red-border); background: linear-gradient(180deg, var(--red-bg), transparent); }
.card__kicker {
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--red); display: inline-block; margin-bottom: 10px;
  border: 1px solid var(--red-border); border-radius: 4px; padding: 3px 7px;
}
.card h3 { font-family: var(--sans); font-weight: 700; font-size: 19px; letter-spacing: -0.015em; margin-bottom: 8px; }
.card p { color: var(--fg2); font-size: 14.5px; }

/* ── Dictation ───────────────────────────────────────────── */
.dict {
  padding-block: clamp(60px, 9vh, 120px);
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: clamp(32px, 5vw, 72px); align-items: center;
}
.dict__lead { max-width: 46ch; margin-top: 20px; color: var(--fg2); font-size: 17px; }

/* Faux app window the dictation pill types into. */
.win {
  position: relative; border: 1px solid var(--border); border-radius: var(--r);
  background: linear-gradient(180deg, var(--panel-hi), var(--panel));
  box-shadow: 0 30px 70px -30px rgba(0,0,0,.8);
  overflow: hidden; padding-bottom: 34px;
}
.win__bar { display: flex; align-items: center; gap: 7px; padding: 11px 14px; border-bottom: 1px solid var(--border); background: rgba(0,0,0,.22); }
.win__name { margin-left: 8px; font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--fg3); }
.win__body { padding: 26px 22px 34px; min-height: 132px; }
.win__text { font-size: 16.5px; line-height: 1.55; color: var(--fg); }
.win__caret {
  display: inline-block; width: 1.5px; height: 1.05em; margin-left: 1px; vertical-align: -0.16em;
  background: var(--fg); animation: caret 1.1s steps(1) infinite;
}
/* Ends visible so the reduced-motion rule (which freezes on the last frame)
   leaves the caret drawn rather than blanked. */
@keyframes caret { 0%,49% { opacity: 0; } 50%,100% { opacity: 1; } }
/* The pill floats over the bottom of the window, as it does over the screen. */
.pillmock__shell--dict { position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%); box-shadow: 0 10px 28px rgba(0,0,0,.55), inset 0 1px 0 rgba(255,255,255,.04), 0 0 0 1px var(--pink); }

/* ── Founder note ────────────────────────────────────────── */
/* The page's only first-person voice, and its only proof that a person with the
   problem built this. Set wider and quieter than a section body on purpose. */
.founder { padding-block: clamp(60px, 9vh, 120px); }
.founder__note {
  max-width: 62ch; margin-top: 26px;
  border-left: 2px solid var(--red-border); padding-left: 20px;
  color: var(--fg2); font-size: clamp(16px, 1.7vw, 19px); line-height: 1.62;
}
.founder__note-em { display: block; margin-top: 14px; color: var(--fg); font-weight: 700; }
.founder__sig {
  margin-top: 18px; padding-left: 22px;
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.04em; color: var(--fg3);
}

/* ── Trust ───────────────────────────────────────────────── */
.trust { padding-block: clamp(60px, 9vh, 120px); }
.trust__title { margin-bottom: 44px; }
.trust__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.trust__item {
  border: 1px solid var(--border); border-radius: var(--r); padding: 22px 20px;
  background: linear-gradient(180deg, rgba(255,255,255,.02), transparent);
}
.trust__item h3 { font-family: var(--mono); font-size: 12.5px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--green); margin-bottom: 12px; font-weight: 700; }
.trust__item p { color: var(--fg2); font-size: 14px; }

/* ── Download ────────────────────────────────────────────── */
.download { padding-block: clamp(80px, 13vh, 180px); text-align: center; }
.download__inner {
  border: 1px solid var(--red-border); border-radius: 16px;
  background:
    radial-gradient(120% 140% at 50% -20%, color-mix(in srgb, var(--red) 22%, transparent), transparent 58%),
    linear-gradient(180deg, var(--panel), var(--sidebar));
  padding: clamp(40px, 7vw, 76px) var(--pad);
  display: flex; flex-direction: column; align-items: center; gap: 16px;
  position: relative; overflow: hidden;
}
.download__mark { border-radius: 14px; filter: drop-shadow(0 0 24px color-mix(in srgb, var(--red) 55%, transparent)); }
.download__title { font-family: var(--sans); font-weight: 700; font-size: clamp(28px, 5vw, 52px); letter-spacing: -0.03em; line-height: 1.04; }
.download__sub { color: var(--fg2); max-width: 48ch; }
.download .btn { margin-top: 6px; }
/* Requirements + the price, stated before the click rather than at first run. */
.download__meta {
  font-family: var(--mono); font-size: 12px; line-height: 1.7; letter-spacing: 0.03em;
  color: var(--fg3); max-width: 56ch;
}
.download__alt { font-family: var(--mono); font-size: 12px; letter-spacing: 0.04em; color: var(--fg3); margin-top: 6px; }
.download__alt a { color: var(--red); }
.download__alt a:hover { text-decoration: underline; }

/* ── Download / install page ─────────────────────────────── */
/* This page has no WebGL field — anchor the same red glow with a static wash. */
body.page-download {
  min-height: 100vh;
  background:
    radial-gradient(120% 70% at 50% -10%, color-mix(in srgb, var(--red) 12%, transparent), transparent 60%),
    var(--bg);
}
.nav--static { position: sticky; background: color-mix(in srgb, var(--bg) 86%, transparent); backdrop-filter: blur(18px) saturate(1.4); -webkit-backdrop-filter: blur(18px) saturate(1.4); border-bottom-color: var(--border); }

.dl { padding-top: 96px; }
.dl > section { max-width: var(--maxw); margin-inline: auto; padding-inline: var(--pad); }

/* Status */
.dl__status { text-align: center; padding-top: clamp(24px, 6vh, 56px); display: flex; flex-direction: column; align-items: center; gap: 18px; }
.dl__status .eyebrow { color: var(--red); }
.dl__title { font-family: var(--sans); font-weight: 700; font-size: clamp(30px, 5vw, 56px); letter-spacing: -0.03em; line-height: 1.04; }
.dl__sub { max-width: 54ch; color: var(--fg2); font-size: clamp(15px, 1.5vw, 18px); }
.dl__sub strong, .dl__sub [data-dmg-name] { color: var(--fg); font-weight: 700; }
.dl__sub [data-dmg-name] { font-family: var(--mono); font-size: 0.92em; }
.dl__redo { font-family: var(--mono); font-size: 12px; letter-spacing: 0.04em; color: var(--fg3); display: inline-flex; align-items: center; flex-wrap: wrap; justify-content: center; gap: 6px 10px; }
.dl__redo-link { color: var(--red); border-bottom: 1px solid var(--red-border); padding-bottom: 1px; }
.dl__redo-link:hover { border-bottom-color: var(--red); }
.dl__redo-meta { color: var(--fg3); }

/* Install animation title */
.dl__demo { padding-block: clamp(40px, 7vh, 80px); text-align: center; }
.dl__demo-title { font-family: var(--sans); font-weight: 700; font-size: clamp(22px, 3.2vw, 34px); letter-spacing: -0.025em; margin-bottom: 28px; }

/* The faux .dmg install window */
.dmg {
  max-width: 560px; margin-inline: auto;
  border: 1px solid var(--red-border); border-radius: 16px; overflow: hidden;
  background: linear-gradient(180deg, var(--panel), var(--sidebar));
  box-shadow: 0 1px 0 rgba(255,255,255,.05) inset, 0 40px 90px -40px color-mix(in srgb, var(--red) 45%, transparent), 0 24px 60px -30px rgba(0,0,0,.7);
}
.dmg__bar {
  display: flex; align-items: center; gap: 8px; padding: 11px 16px;
  border-bottom: 1px solid var(--border); background: rgba(255,255,255,.02);
}
.dmg__dot { width: 11px; height: 11px; border-radius: 50%; background: var(--border-hi); }
.dmg__dot:nth-child(1) { background: #ff5f57; }
.dmg__dot:nth-child(2) { background: #febc2e; }
.dmg__dot:nth-child(3) { background: #28c840; }
.dmg__name { margin-left: 10px; font-family: var(--mono); font-size: 11px; color: var(--fg3); letter-spacing: 0.02em; }

.dmg__stage {
  position: relative;
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 12px; padding: 44px clamp(28px, 8%, 60px) 40px;
}
.dmg__slot { display: flex; flex-direction: column; align-items: center; gap: 12px; width: 116px; }
.dmg__icon { width: 96px; height: 96px; display: block; filter: drop-shadow(0 10px 24px rgba(0,0,0,.45)); }
.dmg__icon--app { filter: drop-shadow(0 12px 26px rgba(0,0,0,.5)); }
.dmg__icon--folder svg { border-radius: 12px; }
.dmg__icon img, .dmg__drag img { display: block; width: 100%; height: 100%; object-fit: contain; }
.dmg__label { font-family: var(--mono); font-size: 12px; letter-spacing: 0.06em; color: var(--fg2); }
.dmg__slot--apps .dmg__label { color: var(--fg); }
.dmg__arrow { align-self: center; margin-top: 30px; color: var(--fg3); flex: 0 0 auto; }

/* the icon that flies from REDACT → Applications */
.dmg__drag {
  position: absolute; top: 44px; left: clamp(28px, 8%, 60px);
  width: 96px; height: 96px; display: block; opacity: 0; pointer-events: none;
  --travel: min(60vw, 320px);
  filter: drop-shadow(0 18px 34px rgba(0,0,0,.6));
  animation: dmg-drag 5s cubic-bezier(.5,.1,.3,1) infinite;
}
.dmg__slot--apps .dmg__icon--folder { animation: dmg-folder 5s ease-in-out infinite; }

@keyframes dmg-drag {
  0%,   6%  { transform: translate(0, 0) scale(1); opacity: 0; }
  10%       { transform: translate(0, -10px) scale(1.05); opacity: 1; }
  52%       { transform: translate(var(--travel), -10px) scale(1.05); opacity: 1; }
  62%       { transform: translate(var(--travel), 0) scale(.9); opacity: 1; }
  70%       { transform: translate(var(--travel), 0) scale(.7); opacity: 0; }
  100%      { transform: translate(var(--travel), 0) scale(.7); opacity: 0; }
}
@keyframes dmg-folder {
  0%, 58%, 100% { transform: scale(1); }
  64%           { transform: scale(1.12); }
  72%           { transform: scale(1); }
}

/* Steps */
.dl__steps { padding-bottom: clamp(60px, 10vh, 120px); }
.dl__steps .section-eyebrow { text-align: center; margin-bottom: 28px; }
.steps--install { grid-template-columns: repeat(3, 1fr); }
.steps--install .step { min-height: 210px; }
.mono-inline { font-family: var(--mono); font-size: 0.9em; color: var(--fg); background: rgba(255,255,255,.05); border: 1px solid var(--border); border-radius: 5px; padding: 1px 6px; }
.step__body strong { color: var(--red); font-weight: 700; }
.dl__req { text-align: center; margin-top: 30px; font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--fg3); }

@media (max-width: 720px) {
  .steps--install { grid-template-columns: 1fr; }
  .steps--install .step { min-height: 0; }
  .dmg__stage { padding-inline: 22px; }
  .dmg__slot { width: 96px; }
  .dmg__icon, .dmg__drag { width: 76px; height: 76px; }
  .dmg__drag { left: 22px; --travel: calc(100vw - 44px - 96px); }
}

@media (prefers-reduced-motion: reduce) {
  .dmg__drag { animation: none; opacity: 0; }
  .dmg__slot--apps .dmg__icon--folder { animation: none; }
}

/* ── Footer ──────────────────────────────────────────────── */
.foot {
  max-width: var(--maxw); margin-inline: auto; padding: 38px var(--pad) 52px;
  border-top: 1px solid var(--border);
  display: flex; flex-wrap: wrap; gap: 16px 40px; justify-content: space-between; align-items: center;
}
.foot__row { display: flex; flex-direction: column; gap: 4px; }
.foot__brand { font-family: var(--mono); font-weight: 700; letter-spacing: 0.22em; font-size: 14px; }
.foot__tag { color: var(--fg3); font-size: 14px; }
.foot__links { display: flex; flex-wrap: wrap; gap: 20px; font-family: var(--mono); font-size: 11px; color: var(--fg3); letter-spacing: 0.06em; text-transform: uppercase; }
.foot__links a:hover { color: var(--fg); }

/* ── Reveal base state ───────────────────────────────────── */
[data-reveal] { opacity: 0; transform: translateY(20px); }
.is-ready [data-reveal].in { opacity: 1; transform: none; transition: opacity .8s cubic-bezier(.2,.7,.2,1), transform .8s cubic-bezier(.2,.7,.2,1); }
.no-js [data-reveal] { opacity: 1; transform: none; }

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 980px) {
  .steps { grid-template-columns: repeat(2, 1fr); }
  .grid { grid-template-columns: repeat(2, 1fr); }
  .trust__grid { grid-template-columns: repeat(2, 1fr); }
  .dict { grid-template-columns: 1fr; gap: 40px; }
}
@media (max-width: 720px) {
  body { font-size: 16px; }
  .nav__links { gap: 8px; }
  .nav__links > a:not(.btn) { display: none; }
  .nav__ver { display: none; }
  .compare { grid-template-columns: 1fr; }
  .vs { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .step { min-height: 0; }
  .grid { grid-template-columns: 1fr; }
  .trust__grid { grid-template-columns: 1fr; }
  .hero__cta { flex-direction: column; align-items: stretch; }
  .hero__cta .btn { justify-content: center; }
}

/* ── Reduced motion ──────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  [data-reveal] { opacity: 1 !important; transform: none !important; }
  #field { display: none; }
}
