/* LokSmith website. Palette follows the desktop app's midnight theme, with a signal-amber accent. */
/* Self-hosted fonts (SIL Open Font License), so pages make no third-party requests. */
@font-face { font-family: "Big Shoulders Display"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/bsd-700.woff2") format("woff2"); }
@font-face { font-family: "Big Shoulders Display"; font-style: normal; font-weight: 800; font-display: swap; src: url("../fonts/bsd-800.woff2") format("woff2"); }
@font-face { font-family: "Public Sans"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/ps-400.woff2") format("woff2"); }
@font-face { font-family: "Public Sans"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/ps-500.woff2") format("woff2"); }
@font-face { font-family: "Public Sans"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/ps-600.woff2") format("woff2"); }
@font-face { font-family: "Public Sans"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/ps-700.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/plex-400.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/plex-500.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/plex-600.woff2") format("woff2"); }
:root {
  color-scheme: dark;
  --ink: #06121f;
  --ink-2: #0a1a2b;
  --panel: #0c2135;
  --panel-2: #10283e;
  --line: #22425a;
  --line-soft: #183349;
  --text: #eef4fa;
  --dim: #b4c8d9;
  --muted: #84a0b6;
  --signal: #f2b544;
  --signal-deep: #c98b1a;
  --blue: #4fb3e8;
  --mint: #6ee7c0;
  --danger: #ff8a7a;

  --display: "Big Shoulders Display", "Arial Narrow", sans-serif;
  --body: "Public Sans", "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;

  --wrap: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
  --radius: 6px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font: 400 17px/1.6 var(--body);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
body > main { flex: 1 0 auto; }
/* Faint survey grid behind everything, like a drafting sheet. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(1200px 600px at 80% -10%, rgba(79, 179, 232, 0.12), transparent 60%),
    radial-gradient(900px 500px at -10% 30%, rgba(242, 181, 68, 0.06), transparent 60%),
    linear-gradient(var(--line-soft) 1px, transparent 1px) 0 0 / 48px 48px,
    linear-gradient(90deg, var(--line-soft) 1px, transparent 1px) 0 0 / 48px 48px;
  opacity: 0.55;
  mask-image: linear-gradient(to bottom, #000 0%, rgba(0, 0, 0, 0.35) 60%, rgba(0, 0, 0, 0.2) 100%);
}

img, svg { display: block; max-width: 100%; }
a { color: var(--blue); text-underline-offset: 3px; }
a:hover { color: var(--text); }
:focus-visible { outline: 2px solid var(--signal); outline-offset: 3px; border-radius: 2px; }
::selection { background: var(--signal); color: var(--ink); }

.wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--signal); color: var(--ink); padding: 8px 14px; }
.skip:focus { left: 8px; }
.skip:hover { color: var(--ink); }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- type ---------- */
h1, h2, h3 { font-family: var(--display); font-weight: 800; line-height: 0.95; letter-spacing: 0.005em; margin: 0; text-transform: uppercase; text-wrap: balance; }
h1 { font-size: clamp(3.2rem, 9vw, 7.4rem); }
h2 { font-size: clamp(2.4rem, 5.6vw, 4.4rem); }
h3 { font-size: 1.6rem; font-weight: 700; line-height: 1.05; }
p { margin: 0 0 1em; }
.lede { font-size: clamp(1.08rem, 1.6vw, 1.3rem); color: var(--dim); max-width: 38em; }
.mono { font-family: var(--mono); }
.amber { color: var(--signal); }

/* ---------- buttons ---------- */
.btn {
  --bg: var(--signal);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 24px;
  border: 0;
  border-radius: var(--radius);
  background: var(--bg);
  color: var(--ink);
  font: 700 0.98rem/1 var(--body);
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.btn:hover { color: var(--ink); background: #ffc85e; transform: translateY(-2px); box-shadow: 0 12px 24px -14px rgba(0, 0, 0, 0.9); }
.btn:active { transform: translateY(0); }
.btn svg { width: 18px; height: 18px; }
.btn.ghost { background: transparent; color: var(--text); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn.ghost:hover { box-shadow: inset 0 0 0 1.5px var(--dim); background: rgba(255, 255, 255, 0.03); }
.btn[disabled] { opacity: 0.55; cursor: progress; transform: none; }

/* ---------- header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(6, 18, 31, 0.78);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line-soft);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 20px; }
.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--text); text-decoration: none; }
.brand img { width: 40px; height: 40px; }
.brand span { font: 800 1.55rem/1 var(--display); letter-spacing: 0.04em; text-transform: uppercase; }
.nav { display: flex; align-items: center; gap: 28px; }
.nav a { color: var(--dim); text-decoration: none; font-weight: 500; font-size: 0.95rem; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--text); }
.nav .btn { padding: 11px 18px; font-size: 0.9rem; color: var(--ink); }
.nav .btn:hover { color: var(--ink); }
.menu-toggle { display: none; background: none; border: 0; color: var(--text); padding: 8px; cursor: pointer; }
.menu-toggle svg { width: 26px; height: 26px; }

@media (max-width: 820px) {
  .menu-toggle { display: block; }
  .nav {
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px var(--gutter) 20px;
    background: var(--ink-2);
    border-bottom: 1px solid var(--line);
    display: none;
  }
  .nav.open { display: flex; }
  .nav a { padding: 14px 0; border-bottom: 1px solid var(--line-soft); font-size: 1.05rem; }
  .nav .btn { margin-top: 16px; justify-content: center; padding: 15px; border: 0; }
}

/* ---------- hero ---------- */
.hero { padding: clamp(56px, 9vw, 120px) 0 clamp(48px, 7vw, 90px); position: relative; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero h1 .line { display: block; }
.hero h1 .outline { color: var(--ink); -webkit-text-stroke: 1.5px var(--dim); }
@supports not (-webkit-text-stroke: 1px black) { .hero h1 .outline { color: var(--dim); } }
.hero .lede { margin: 28px 0 34px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.hero-meta { margin-top: 22px; font-size: 0.95rem; color: var(--muted); }

/* The "scope": an oscilloscope-style panel showing how a horn is cut into parts. */
.scope {
  position: relative;
  margin: 0;
  background: linear-gradient(180deg, var(--panel-2), var(--panel));
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 18px 18px 14px;
  box-shadow: 0 40px 80px -40px rgba(0, 0, 0, 0.9), inset 0 1px 0 rgba(255, 255, 255, 0.04);
}
.scope-head { display: flex; justify-content: space-between; align-items: center; font: 500 0.8rem/1 var(--mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; gap: 12px; }
.scope-head .live { display: inline-flex; align-items: center; gap: 8px; color: var(--mint); }
.scope-head .live::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--mint); }
.scope-status { display: inline-flex; align-items: center; gap: 12px; }
.scope-toggle { display: grid; place-items: center; width: 32px; height: 32px; margin: -8px -6px -8px 0; padding: 0; border: 1px solid var(--line); border-radius: 50%; background: transparent; color: var(--dim); cursor: pointer; transition: color 0.15s ease, border-color 0.15s ease; }
.scope-toggle:hover { color: var(--text); border-color: var(--dim); }
.scope-toggle svg { width: 12px; height: 12px; }
.scope-toggle .i-play, .scope.paused .scope-toggle .i-pause { display: none; }
.scope.paused .scope-toggle .i-play { display: block; }
.scope.paused .playhead, .scope.paused .playhead-glow { animation-play-state: paused; }
.scope svg { width: 100%; height: auto; overflow: visible; }
.scope .bars rect { fill: #5f86a3; }
.scope .seg-loop .bars rect, .scope .bars rect.in-loop { fill: var(--blue); }
.scope .playhead { stroke: var(--mint); stroke-width: 2; animation: play 7s linear infinite; }
.scope .playhead-glow { fill: var(--mint); opacity: 0.16; animation: play 7s linear infinite; }
.scope .seg-label { font: 500 24px var(--mono); letter-spacing: 0.08em; fill: var(--dim); }
.scope .seg-rule { stroke: var(--line); stroke-dasharray: 3 4; }
.scope .loop-arc { fill: none; stroke: var(--signal); stroke-width: 1.6; }
.scope .loop-tip { fill: var(--signal); }
.scope .fast { stroke: var(--signal); stroke-width: 1.5; stroke-dasharray: 2 3; }
.scope .fast-label { font: 500 20px var(--mono); fill: var(--signal); letter-spacing: 0.06em; }
.scope-foot { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line-soft); font-size: 0.82rem; line-height: 1.4; color: var(--muted); }
.scope-foot b { display: block; color: var(--text); font: 500 0.95rem/1.4 var(--mono); }

/* Playhead: through the init, round the loop twice, then out through the exit. */
@keyframes play {
  0% { transform: translateX(0); }
  12% { transform: translateX(150px); }
  36% { transform: translateX(690px); }
  36.01% { transform: translateX(150px); }
  60% { transform: translateX(690px); }
  84% { transform: translateX(1000px); }
  100% { transform: translateX(1000px); }
}

@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .scope-foot { grid-template-columns: repeat(2, 1fr); row-gap: 12px; }
  .scope .seg-label { font-size: 34px; }
  .scope .fast-label { font-size: 28px; }
  .hero-cta .btn { width: 100%; justify-content: center; }
}

/* ---------- sections ---------- */
section { padding: clamp(72px, 10vw, 132px) 0; }
.section-head { display: grid; grid-template-columns: 1fr 1fr; gap: 32px 64px; align-items: end; margin-bottom: clamp(40px, 6vw, 72px); }
.section-head .lede { margin: 0; }
.esux h2 { margin-bottom: 24px; }
@media (max-width: 820px) { .section-head { grid-template-columns: 1fr; } }

/* Steps: a timetable down the page. */
.steps { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); counter-reset: step; }
.step {
  display: grid;
  grid-template-columns: 120px 1fr 1.3fr;
  gap: 24px 48px;
  padding: 34px 0;
  border-bottom: 1px solid var(--line);
  align-items: baseline;
  transition: background 0.25s ease;
}
.step:hover { background: linear-gradient(90deg, rgba(242, 181, 68, 0.05), transparent 70%); }
.step-no { font: 800 3.6rem/0.8 var(--display); color: var(--ink); -webkit-text-stroke: 1.2px var(--signal); }
.step h3 { font-size: 2rem; }
.step p { color: var(--dim); margin: 0; }
.step .tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.tag { font: 500 0.78rem/1 var(--mono); letter-spacing: 0.06em; padding: 6px 9px; border: 1px solid var(--line); border-radius: 3px; color: var(--muted); }
@media (max-width: 820px) {
  .step { grid-template-columns: 64px 1fr; }
  .step-no { font-size: 2.6rem; }
  .step > div:last-child { grid-column: 2; }
}

/* Feature board */
.board { display: grid; grid-template-columns: repeat(12, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.cell { background: var(--ink-2); padding: clamp(24px, 3vw, 36px); position: relative; min-width: 0; }
.cell:hover { background: #0d1f32; }
.cell.w4 { grid-column: span 4; }
.cell.w5 { grid-column: span 5; }
.cell.w6 { grid-column: span 6; }
.cell.w7 { grid-column: span 7; }
.cell.w8 { grid-column: span 8; }
.cell .icon { width: 30px; height: 30px; color: var(--signal); margin-bottom: 22px; }
.cell h3 { margin-bottom: 12px; }
.cell p { color: var(--dim); margin: 0; font-size: 0.98rem; }
.cell .big { font: 800 clamp(3.5rem, 7vw, 5.6rem)/0.85 var(--display); color: var(--signal); display: block; margin-bottom: 12px; }
.cell .note { margin-top: 16px; font-size: 0.9rem; color: var(--muted); }
.cell .plan-note { margin-top: 18px; display: inline-flex; align-items: center; gap: 8px; font-size: 0.88rem; font-weight: 600; color: var(--signal); }
.cell .plan-note::before { content: ""; width: 14px; height: 14px; flex: none; background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M11.562 3.266a.5.5 0 0 1 .876 0L15.39 8.87a1 1 0 0 0 1.516.294L21.183 5.5a.5.5 0 0 1 .798.519l-2.834 10.246a1 1 0 0 1-.956.734H5.81a1 1 0 0 1-.957-.734L2.02 6.02a.5.5 0 0 1 .798-.519l4.276 3.664a1 1 0 0 0 1.516-.294z'/%3E%3Cpath d='M5 21h14'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M11.562 3.266a.5.5 0 0 1 .876 0L15.39 8.87a1 1 0 0 0 1.516.294L21.183 5.5a.5.5 0 0 1 .798.519l-2.834 10.246a1 1 0 0 1-.956.734H5.81a1 1 0 0 1-.957-.734L2.02 6.02a.5.5 0 0 1 .798-.519l4.276 3.664a1 1 0 0 0 1.516-.294z'/%3E%3Cpath d='M5 21h14'/%3E%3C/svg%3E") center / contain no-repeat; }
.rates { width: 100%; margin-top: 18px; border-collapse: collapse; font-size: 0.92rem; }
.rates th, .rates td { padding: 9px 8px; border-bottom: 1px solid var(--line-soft); text-align: center; }
.rates thead th { font: 500 0.78rem/1 var(--mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); padding-top: 0; }
.rates tbody th { text-align: left; font-weight: 500; color: var(--text); padding-left: 0; }
.rates thead th:first-child { text-align: left; padding-left: 0; }
.rates tr:last-child > * { border-bottom: 0; }
.rates .yes, .rates .no { display: inline-block; width: 12px; height: 7px; overflow: hidden; text-indent: 100%; white-space: nowrap; vertical-align: 3px; }
.rates .yes { border-left: 2px solid var(--mint); border-bottom: 2px solid var(--mint); transform: rotate(-45deg); }
.rates .no { width: 10px; height: 2px; background: var(--line); vertical-align: 4px; }
@media (max-width: 960px) {
  .cell.w4, .cell.w5, .cell.w7 { grid-column: span 6; }
  .cell.w8 { grid-column: span 12; }
}
@media (max-width: 640px) {
  .board > .cell { grid-column: span 12; }
}

/* Loop diagram inside a cell */
.mini-loop { margin-top: 22px; height: 54px; }
.mini-loop rect { fill: var(--blue); opacity: 0.85; }
.mini-loop .xfade { fill: var(--signal); opacity: 1; }

/* ---------- ESUX band ---------- */
.esux { background: var(--panel); border-block: 1px solid var(--line); }
.esux-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 88px); align-items: center; }
.checklist { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 14px; }
.checklist li { display: grid; grid-template-columns: 22px 1fr; gap: 12px; color: var(--dim); }
.checklist li::before { content: ""; width: 14px; height: 14px; margin-top: 6px; border: 2px solid var(--mint); border-radius: 2px; box-shadow: inset 0 0 0 2px var(--panel), inset 0 0 0 7px var(--mint); }
.checklist strong { color: var(--text); font-weight: 600; }
.terminal {
  background: #041019;
  border: 1px solid var(--line);
  border-radius: 10px;
  font: 400 0.84rem/1.75 var(--mono);
  color: var(--dim);
  overflow: hidden;
}
.terminal { margin: 0; }
.terminal-bar { padding: 12px 18px; border-bottom: 1px solid var(--line-soft); font: 500 0.78rem/1.2 var(--mono); letter-spacing: 0.06em; color: var(--muted); }
.terminal pre { margin: 0; padding: 18px 20px 22px; white-space: pre; overflow-x: auto; font: inherit; }
@media (max-width: 520px) { .terminal { font-size: 0.74rem; } .terminal pre { padding: 16px 14px 18px; } }
.terminal .ok { color: var(--mint); }
.terminal .hl { color: var(--signal); }
.terminal .dim { color: var(--muted); }
@media (max-width: 900px) { .esux-grid { grid-template-columns: 1fr; } }

/* ---------- pricing ---------- */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: stretch; }
.plan {
  position: relative;
  background: var(--ink-2);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 32px 28px 28px;
  display: flex;
  flex-direction: column;
}
.plan.featured { border-color: var(--signal); background: linear-gradient(180deg, rgba(242, 181, 68, 0.08), var(--ink-2) 40%); }
.plan h3 { font-size: 1.9rem; }
.plan .for { color: var(--muted); font-size: 0.92rem; margin: 6px 0 22px; }
.price { display: flex; align-items: baseline; gap: 8px; margin-bottom: 24px; }
.price b { font: 800 3.6rem/0.9 var(--display); }
.price span { color: var(--muted); font-size: 0.9rem; }
.plan ul { list-style: none; padding: 0; margin: 0 0 28px; display: grid; gap: 11px; flex: 1; align-content: start; }
.plan li { display: grid; grid-template-columns: 18px 1fr; gap: 10px; font-size: 0.95rem; color: var(--dim); }
.plan li::before { content: ""; width: 10px; height: 6px; margin-top: 7px; border-left: 2px solid var(--mint); border-bottom: 2px solid var(--mint); transform: rotate(-45deg); }
.plan li.soon { color: var(--muted); }
.plan li.soon::before { border-color: var(--muted); width: 8px; height: 2px; border-left: 0; transform: none; margin-top: 11px; background: var(--muted); border-bottom: 0; }
.plan li.soon em { font: 600 0.75rem/1 var(--body); letter-spacing: 0.04em; font-style: normal; color: var(--signal); border: 1px solid rgba(242, 181, 68, 0.45); border-radius: 3px; padding: 3px 6px; margin-left: 6px; vertical-align: 1px; white-space: nowrap; }
.plan .btn { justify-content: center; }
.fine { margin-top: 26px; color: var(--muted); font-size: 0.88rem; text-align: center; }
@media (max-width: 900px) { .plans { grid-template-columns: 1fr; max-width: 520px; margin-inline: auto; } }

/* ---------- FAQ ---------- */
.faq { display: grid; grid-template-columns: 1fr 1.6fr; gap: clamp(32px, 6vw, 88px); }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-child { border-top: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 22px 40px 22px 0; position: relative; font-weight: 600; font-size: 1.08rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%); font: 400 1.6rem/1 var(--mono); color: var(--signal); transition: transform 0.2s ease; }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { color: var(--dim); padding-right: 40px; }
.faq-contact { margin-top: 22px; color: var(--dim); }
@media (max-width: 820px) { .faq { grid-template-columns: 1fr; } }

/* ---------- final CTA ---------- */
.cta-band { text-align: center; padding: clamp(80px, 12vw, 150px) 0; position: relative; overflow: hidden; }
.cta-band h2 { font-size: clamp(3rem, 9vw, 7rem); }
.cta-band .lede { margin: 22px auto 34px; }
.cta-band .loco { width: min(300px, 60%); margin: 0 auto 28px; opacity: 0.85; }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 48px 0 40px; color: var(--muted); font-size: 0.9rem; background: var(--ink-2); }
.foot-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 32px; }
.site-footer h4 { font: 500 0.72rem/1 var(--mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--dim); margin: 0 0 14px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.site-footer a { color: var(--muted); text-decoration: none; }
.site-footer a:hover { color: var(--text); }
.legal { margin-top: 40px; padding-top: 22px; border-top: 1px solid var(--line-soft); font-size: 0.8rem; line-height: 1.6; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }
@media (max-width: 820px) { .foot-grid { grid-template-columns: 1fr 1fr; } .foot-grid > :first-child { grid-column: 1 / -1; } }

/* ---------- small pages (auth, billing, legal, download) ---------- */
.page { padding: clamp(56px, 9vw, 110px) 0 clamp(72px, 10vw, 130px); }
.card {
  max-width: 560px;
  margin: 0 auto;
  background: linear-gradient(180deg, var(--panel-2), var(--panel));
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: clamp(28px, 5vw, 48px);
  box-shadow: 0 40px 80px -50px rgba(0, 0, 0, 0.9);
}
.card h1 { font-size: clamp(2.6rem, 7vw, 3.8rem); margin-bottom: 18px; }
.card p { color: var(--dim); }
.card .actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.status-icon { width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; margin-bottom: 26px; border: 1.5px solid var(--mint); color: var(--mint); }
.status-icon svg { width: 26px; height: 26px; }
.status-icon.warn { border-color: var(--signal); color: var(--signal); }
.status-icon.err { border-color: var(--danger); color: var(--danger); }

.field { display: grid; gap: 8px; margin-bottom: 18px; }
.field label { font: 500 0.78rem/1 var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.field input {
  width: 100%;
  padding: 14px 16px;
  font: 400 1rem/1.2 var(--body);
  color: var(--text);
  background: #071728;
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  transition: border-color 0.15s ease;
}
.field input:focus { outline: none; border-color: var(--signal); }
.field .hint { font-size: 0.82rem; color: var(--muted); }
.alert { padding: 12px 14px; border-radius: var(--radius); font-size: 0.92rem; margin-bottom: 18px; border: 1px solid; }
.alert.err { color: #ffd0c8; border-color: rgba(255, 138, 122, 0.5); background: rgba(255, 138, 122, 0.08); }
[hidden] { display: none !important; }

.download-spec { margin: 26px 0 0; display: grid; grid-template-columns: auto 1fr; gap: 10px 20px; font: 400 0.84rem/1.5 var(--mono); }
.download-spec dt { color: var(--muted); }
.download-spec dd { margin: 0; color: var(--text); word-break: break-all; }
.reqs { margin-top: 30px; padding-top: 22px; border-top: 1px solid var(--line-soft); }
.reqs h2 { font-size: 1.5rem; margin-bottom: 12px; }
.reqs ul { margin: 0; padding-left: 20px; color: var(--dim); display: grid; gap: 6px; }

.prose { max-width: 760px; margin: 0 auto; }
.prose h1 { font-size: clamp(2.8rem, 7vw, 4.4rem); margin-bottom: 10px; }
.prose h2 { font-size: 1.9rem; margin: 48px 0 14px; }
.prose p, .prose li { color: var(--dim); max-width: 68ch; }
.prose ul { padding-left: 22px; display: grid; gap: 6px; margin: 0 0 1em; }
.prose .updated { font: 400 0.82rem/1 var(--mono); color: var(--muted); margin-bottom: 36px; }
.prose table { width: 100%; border-collapse: collapse; margin: 0 0 1em; font-size: 0.94rem; }
.prose th, .prose td { text-align: left; padding: 10px 12px 10px 0; border-bottom: 1px solid var(--line-soft); vertical-align: top; color: var(--dim); }
.prose th { color: var(--text); font-weight: 600; }
@media (max-width: 600px) { .prose table, .prose thead, .prose tbody, .prose tr, .prose th, .prose td { display: block; } .prose thead { display: none; } .prose td:first-child { color: var(--text); font-weight: 600; border: 0; padding-bottom: 0; } }

/* ---------- reveal on scroll ---------- */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1); }
.js .reveal.in { opacity: 1; transform: none; }
.hero .rise { animation: rise 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
.hero .rise:nth-child(2) { animation-delay: 0.08s; }
.hero .rise:nth-child(3) { animation-delay: 0.16s; }
.hero .rise:nth-child(4) { animation-delay: 0.24s; }
.hero .rise:nth-child(5) { animation-delay: 0.32s; }
.hero .scope { animation: rise 1.1s 0.25s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
@keyframes rise { from { opacity: 0; transform: translateY(30px); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .js .reveal { opacity: 1; transform: none; }
  .scope .playhead, .scope .playhead-glow { transform: translateX(420px); }
  .scope-toggle { display: none; }
}
.site-footer .brand { color: var(--text); }

/* Download page: card plus "after you download" guide. */
.download { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 64px); align-items: start; }
.download .card { margin: 0; max-width: none; }
.card .device-note { padding: 12px 14px; border-radius: var(--radius); background: rgba(242, 181, 68, 0.1); border: 1px solid rgba(242, 181, 68, 0.35); color: var(--text); }
.after h2 { font-size: 1.9rem; margin-bottom: 18px; }
.after-steps { list-style: none; counter-reset: after; margin: 0; padding: 0; display: grid; gap: 18px; }
.after-steps li { counter-increment: after; display: grid; grid-template-columns: 34px 1fr; gap: 14px; color: var(--dim); }
.after-steps li::before { content: counter(after); display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; border: 1.5px solid var(--signal); color: var(--signal); font: 700 0.95rem/1 var(--body); }
.after-steps strong { color: var(--text); display: block; margin-bottom: 2px; }
.after-steps em { font-style: normal; color: var(--text); font-weight: 600; }
.after .reqs { margin-top: 34px; }
.help-line { margin-top: 26px; color: var(--dim); }
@media (max-width: 900px) { .download { grid-template-columns: 1fr; } }
