/* crashfix.io
   The page shows rather than tells: a hero "machine" (crashes in, fixes out) and six short animated scenes.
   Color carries meaning: coral = a crash, mint = fixed, amber = the line CrashFix points at, violet = CrashFix itself. */

:root {
  --bg: #10132A;         /* midnight indigo */
  --surface: #171B38;    /* panels */
  --raised: #1E2346;     /* rows, inputs */
  --rule: #2B3160;
  --text: #F3F1EC;
  --muted: #A4A9C8;
  --dim: #6F7599;
  --violet: #8F7CFF;
  --mint: #3DE6A1;
  --crash: #FF6159;
  --amber: #FFC857;

  --display: "Bricolage Grotesque", ui-sans-serif, -apple-system, "Segoe UI", sans-serif;
  --body: "Geist", ui-sans-serif, -apple-system, "Segoe UI", sans-serif;
  --mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --page: 74rem;
  --gutter: max(1rem, 4vw);
  color-scheme: dark;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 1.0625rem/1.55 var(--body);
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-underline-offset: 0.2em; text-decoration-color: color-mix(in srgb, currentColor 40%, transparent); }
:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; border-radius: 6px; }
img { max-width: 100%; display: block; }
code { font-family: var(--mono); font-size: 0.88em; }
.wrap { width: min(100% - 2 * var(--gutter), var(--page)); margin-inline: auto; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 1rem; top: 1rem; z-index: 10; background: var(--text); color: var(--bg); padding: 0.5rem 0.75rem; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.muted { color: var(--dim); }

/* ---------- header & buttons ---------- */

.top { padding-block: 1.1rem; position: relative; z-index: 2; }
.top .wrap { display: flex; align-items: center; gap: 2rem; }
.brand { display: inline-flex; align-items: center; gap: 0.55rem; text-decoration: none; font: 700 1.15rem/1 var(--display); letter-spacing: -0.01em; }
.brand img { width: 2rem; height: 2rem; }
.top nav { margin-left: auto; display: flex; align-items: center; gap: 1.6rem; font-size: 0.95rem; color: var(--muted); }
.top nav a { text-decoration: none; }
.top nav a:not(.button):hover { color: var(--text); }
@media (max-width: 40rem) { .top nav a:not(.button) { display: none; } }

.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  padding: 0.8rem 1.3rem; border-radius: 999px; border: 1px solid transparent;
  font: 600 1rem/1 var(--body); text-decoration: none; cursor: pointer;
  transition: background-color 0.15s, border-color 0.15s, transform 0.15s;
}
.button:active { transform: translateY(1px); }
.button.primary { background: var(--text); color: var(--bg); }
.button.primary:hover { background: #fff; }
.button.quiet { color: var(--text); border-color: var(--rule); background: transparent; }
.button.quiet:hover { border-color: var(--muted); }
.button.small { padding: 0.55rem 0.95rem; font-size: 0.9rem; }
.button[disabled] { opacity: 0.6; cursor: progress; }

/* ---------- hero ---------- */

.hero { padding-block: clamp(1.5rem, 4vw, 3rem) clamp(3rem, 6vw, 4.5rem); position: relative; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: -20% -10% auto; height: 120%; z-index: -1;
  background:
    radial-gradient(40rem 22rem at 70% 62%, color-mix(in srgb, var(--violet) 22%, transparent), transparent 70%),
    radial-gradient(26rem 16rem at 92% 70%, color-mix(in srgb, var(--mint) 10%, transparent), transparent 70%),
    radial-gradient(26rem 16rem at 40% 70%, color-mix(in srgb, var(--crash) 9%, transparent), transparent 70%);
}
.hero h1 {
  margin: 0 0 1.4rem;
  font: 800 clamp(2.7rem, 6.6vw, 5.4rem)/0.93 var(--display);
  font-variation-settings: "opsz" 96, "wdth" 90;
  letter-spacing: -0.028em;
}
.hero .lede { max-width: 40rem; margin: 0 0 1.8rem; font-size: clamp(1.1rem, 1.6vw, 1.3rem); color: var(--muted); text-wrap: pretty; }
.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.fine { color: var(--dim); font-size: 0.9rem; margin: 1.5rem 0 0; }

/* The machine */
.machine {
  margin-top: clamp(2rem, 4vw, 3rem);
  display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center; gap: clamp(1rem, 3vw, 2.5rem);
  min-height: 15rem;
}
.lane { display: flex; flex-direction: column; gap: 0.6rem; position: relative; min-width: 0; }
.lane.in { align-items: flex-end; }
.lane::after {
  content: ""; position: absolute; top: 50%; height: 2px; width: clamp(1rem, 3vw, 2.5rem);
  background: repeating-linear-gradient(90deg, var(--rule) 0 6px, transparent 6px 12px);
  background-size: 24px 2px; animation: flow 0.8s linear infinite;
}
.lane.in::after { right: calc(-1 * clamp(1rem, 3vw, 2.5rem)); }
.lane.out::after { left: calc(-1 * clamp(1rem, 3vw, 2.5rem)); }
@keyframes flow { to { background-position: 24px 0; } }

.chip {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 0.75rem;
  width: min(100%, 21rem); padding: 0.7rem 0.9rem; border-radius: 14px;
  background: color-mix(in srgb, var(--surface) 88%, transparent); border: 1px solid var(--rule);
  backdrop-filter: blur(8px);
  transition: opacity 0.45s ease, transform 0.45s ease;
}
.chip i { width: 0.6rem; height: 0.6rem; border-radius: 50%; }
.chip.crash i { background: var(--crash); box-shadow: 0 0 0 4px color-mix(in srgb, var(--crash) 22%, transparent); }
.chip.fixed i { background: var(--mint); box-shadow: 0 0 0 4px color-mix(in srgb, var(--mint) 20%, transparent); }
.chip span { display: grid; min-width: 0; }
.chip b { font-weight: 600; font-size: 0.95rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chip em { font: normal 0.8rem/1.3 var(--mono); color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chip small { font-size: 0.82rem; white-space: nowrap; }
.chip.crash small { color: var(--crash); }
.chip.fixed small { color: var(--mint); font-size: 1rem; font-weight: 700; }
.chip.enter { opacity: 0; transform: translateY(10px); }
.lane.in .chip.leave { opacity: 0; transform: translateX(40px) scale(0.92); }
.lane.out .chip.enter { transform: translateX(-40px) scale(0.92); }
.lane.out .chip.leave { opacity: 0; transform: translateY(10px); }

.core { position: relative; width: clamp(9rem, 16vw, 11.5rem); aspect-ratio: 1; display: grid; place-items: center; }
.core img { width: 46%; height: auto; border-radius: 22%; position: relative; z-index: 1; filter: drop-shadow(0 10px 30px rgb(0 0 0 / 0.45)); }
.core .ring {
  position: absolute; inset: 0; border-radius: 50%;
  background: conic-gradient(from 0deg, var(--crash), var(--amber), var(--mint), var(--violet), var(--crash));
  mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 calc(100% - 2px));
  animation: spin 6s linear infinite; opacity: 0.9;
}
.core::before { content: ""; position: absolute; inset: 14%; border-radius: 50%; background: radial-gradient(circle, color-mix(in srgb, var(--violet) 30%, transparent), transparent 70%); }
.core .status {
  position: absolute; top: 100%; left: 50%; transform: translateX(-50%); margin: 0.9rem 0 0;
  font: 500 0.82rem/1.2 var(--mono); color: var(--muted); white-space: nowrap;
}
@keyframes spin { to { transform: rotate(1turn); } }

@media (max-width: 52rem) {
  .machine { grid-template-columns: 1fr; justify-items: center; gap: 2.75rem; }
  .lane, .lane.in { align-items: center; width: 100%; }
  .lane::after { display: none; }
  .chip { width: min(100%, 24rem); }
  .lane.in .chip:nth-child(n+3), .lane.out .chip:nth-child(n+3) { display: none; }
  .lane.in .chip.leave { transform: translateY(30px) scale(0.92); }
  .lane.out .chip.enter { transform: translateY(-30px) scale(0.92); }
}

/* ---------- scenes ---------- */

.scenes { display: grid; gap: clamp(4rem, 10vw, 8rem); padding-block: clamp(4rem, 9vw, 7rem); width: min(100% - 2 * var(--gutter), var(--page)); margin-inline: auto; }
.scene-row { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.scene-row.flip { grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); }
.scene-row.flip .copy { order: 2; }
@media (max-width: 52rem) { .scene-row, .scene-row.flip { grid-template-columns: 1fr; } .scene-row.flip .copy { order: 0; } }
.copy h2, .privacy h2, .pilot h2 {
  margin: 0 0 0.9rem;
  font: 750 clamp(2rem, 4.2vw, 3.1rem)/1 var(--display);
  font-variation-settings: "opsz" 72, "wdth" 94;
  letter-spacing: -0.022em; text-wrap: balance;
}
.copy p { margin: 0; color: var(--muted); font-size: 1.15rem; max-width: 26rem; text-wrap: pretty; }

.scene {
  position: relative; overflow: hidden; min-width: 0;
  background: var(--surface); border: 1px solid var(--rule); border-radius: 18px;
  padding: 1.1rem 1.2rem 1.3rem; min-height: 19rem;
  box-shadow: 0 40px 80px -50px rgb(0 0 0 / 0.8);
}
.panel-head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-bottom: 1rem; font-size: 0.9rem; font-weight: 600; }
.panel-head .muted { font-weight: 400; }

/* Find: rows re-sort by users, a duplicate merges, an address gets its name. */
.find .rows { list-style: none; margin: 0; padding: 0; position: relative; height: calc(5 * 2.9rem); }
.find li {
  position: absolute; inset: 0 0 auto; height: 2.5rem;
  display: grid; grid-template-columns: minmax(0, 11rem) minmax(0, 1fr) 3.5rem; align-items: center; gap: 0.9rem;
  padding: 0 0.8rem; border-radius: 10px; background: var(--raised);
  transform: translateY(calc(var(--a) * 2.9rem));
  transition: transform 0.8s cubic-bezier(.2,.8,.2,1), opacity 0.5s;
}
.find.s1 li { transform: translateY(calc(var(--b) * 2.9rem)); }
.find .sym { font: 0.86rem var(--mono); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.find .bar { height: 6px; border-radius: 3px; background: color-mix(in srgb, var(--crash) 75%, transparent); width: var(--w); }
.find .n { text-align: right; font-size: 0.86rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.find .dup { position: absolute; right: 4.8rem; font-size: 0.72rem; padding: 0.1rem 0.45rem; border-radius: 999px; background: color-mix(in srgb, var(--violet) 25%, transparent); color: #CFC7FF; opacity: 0; transition: opacity 0.4s; }
.find.s2 .dup { opacity: 1; }
.find.s2 .twin { opacity: 0; }
.find .named { display: none; color: var(--amber); }
.find.s3 .raw { display: none; }
.find.s3 .named { display: inline; }
.find .raw { color: var(--dim); }

/* Fix: highlight the line, explain, replace. */
.fix .branch { font: 500 0.78rem var(--mono); color: var(--violet); padding: 0.15rem 0.55rem; border: 1px solid color-mix(in srgb, var(--violet) 45%, transparent); border-radius: 999px; opacity: 0.4; transition: opacity 0.4s; }
.fix.s3 .branch { opacity: 1; }
.code { background: #121530; border-radius: 12px; padding: 0.6rem 0; font: 0.84rem/1.85 var(--mono); overflow-x: auto; }
.code .l { display: flex; align-items: center; padding: 0 0.9rem; white-space: pre; position: relative; transition: background-color 0.4s; }
.code .ln { width: 2.2rem; flex: none; color: var(--dim); }
.code .hit code { transition: color 0.4s; }
.fix.s1 .hit { background: color-mix(in srgb, var(--amber) 16%, transparent); }
.fix.s1 .hit code { color: var(--amber); }
.fix.s3 .hit { background: transparent; }
.fix.s3 .hit code { color: inherit; }
.code .pin { margin-left: auto; font: 600 0.7rem var(--body); color: var(--bg); background: var(--amber); padding: 0.05rem 0.45rem; border-radius: 999px; opacity: 0; transition: opacity 0.3s; }
.fix.s1 .pin { opacity: 1; }
.fix.s3 .pin { opacity: 0; }
.code .add { max-height: 0; overflow: hidden; background: color-mix(in srgb, var(--mint) 13%, transparent); color: #A6F5D3; transition: max-height 0.6s ease; }
.code .add .ln { color: var(--mint); }
.fix.s3 .add { max-height: 2rem; }
.fix .why { margin: 1rem 0 0; font-size: 0.95rem; color: var(--muted); opacity: 0; transform: translateY(6px); transition: opacity 0.5s, transform 0.5s; }
.fix .why b { color: var(--text); font-weight: 600; margin-right: 0.4rem; }
.fix.s2 .why { opacity: 1; transform: none; }

/* Prove: fails without, passes with, stamped. */
.prove .run { display: grid; grid-template-columns: 8.5rem minmax(0, 1fr) 5.5rem; align-items: center; gap: 1rem; padding: 0.85rem 0; border-top: 1px solid var(--rule); font-size: 0.95rem; }
.prove .label { color: var(--muted); }
.prove .track { height: 8px; border-radius: 4px; background: var(--raised); overflow: hidden; }
.prove .track span { display: block; height: 100%; width: 0; border-radius: inherit; transition: width 1s ease-in-out; }
.prove .before .track span { background: var(--crash); }
.prove .after .track span, .prove .suite .track span { background: var(--mint); }
.prove .result { font-weight: 600; text-align: right; opacity: 0; transition: opacity 0.3s; }
.result.bad { color: var(--crash); }
.result.good { color: var(--mint); }
.prove.s1 .before .track span, .prove.s2 .after .track span, .prove.s3 .suite .track span { width: 100%; }
.prove.s2 .before .result, .prove.s3 .after .result, .prove.s4 .suite .result { opacity: 1; }
.stamp {
  position: absolute; right: 1.3rem; bottom: 1.1rem;
  font: 800 1.35rem/1 var(--display); letter-spacing: -0.01em; color: var(--mint);
  border: 3px solid var(--mint); border-radius: 12px; padding: 0.55rem 0.9rem;
  transform: rotate(-6deg) scale(1.6); opacity: 0; transition: transform 0.35s cubic-bezier(.2,1.4,.4,1), opacity 0.2s;
}
.prove.s4 .stamp { transform: rotate(-6deg) scale(1); opacity: 1; }

/* Ship: a pipeline lights up node by node. */
.ship { display: flex; align-items: center; }
.pipe { list-style: none; margin: 0; padding: 0; width: 100%; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); position: relative; --p: 0%; }
.pipe::before, .pipe::after { content: ""; position: absolute; top: 1.05rem; left: 10%; height: 3px; border-radius: 2px; }
.pipe::before { right: 10%; background: var(--raised); }
.pipe::after { width: calc(var(--p) * 0.8); background: var(--mint); transition: width 0.7s ease; }
.ship.s2 .pipe { --p: 25%; } .ship.s3 .pipe { --p: 50%; } .ship.s4 .pipe { --p: 75%; } .ship.s5 .pipe { --p: 100%; }
.pipe li { display: grid; justify-items: center; text-align: center; gap: 0.3rem; position: relative; z-index: 1; padding: 0 0.2rem; }
.pipe .dot { width: 2.3rem; height: 2.3rem; border-radius: 50%; background: var(--raised); border: 2px solid var(--rule); display: grid; place-items: center; transition: background-color 0.3s, border-color 0.3s, transform 0.3s; margin-bottom: 0.5rem; }
.pipe .dot::after { content: "✓"; color: var(--bg); font-weight: 800; opacity: 0; transition: opacity 0.2s; }
.pipe b { font-size: 0.92rem; font-weight: 600; }
.pipe em { font: normal 0.76rem var(--mono); color: var(--muted); opacity: 0; transition: opacity 0.3s; }
.ship.s1 li:nth-child(1) .dot, .ship.s2 li:nth-child(2) .dot, .ship.s3 li:nth-child(3) .dot,
.ship.s4 li:nth-child(4) .dot, .ship.s5 li:nth-child(5) .dot { background: var(--mint); border-color: var(--mint); transform: scale(1.08); }
.ship.s1 li:nth-child(1) .dot::after, .ship.s2 li:nth-child(2) .dot::after, .ship.s3 li:nth-child(3) .dot::after,
.ship.s4 li:nth-child(4) .dot::after, .ship.s5 li:nth-child(5) .dot::after { opacity: 1; }
.ship.s1 li:nth-child(1) em, .ship.s2 li:nth-child(2) em, .ship.s3 li:nth-child(3) em,
.ship.s4 li:nth-child(4) em, .ship.s5 li:nth-child(5) em { opacity: 1; }
@media (max-width: 34rem) {
  .pipe { grid-template-columns: 1fr; gap: 1rem; }
  .pipe::before, .pipe::after { display: none; }
  .pipe li { grid-template-columns: auto auto 1fr; justify-items: start; text-align: left; align-items: center; gap: 0.75rem; }
  .pipe .dot { margin: 0; }
}

/* Watch: the crash drops to zero after the release. */
.watch .ticket { font-size: 0.78rem; padding: 0.15rem 0.6rem; border-radius: 999px; background: color-mix(in srgb, var(--mint) 18%, transparent); color: var(--mint); opacity: 0; transition: opacity 0.4s; }
.watch.s3 .ticket { opacity: 1; }
.chart { height: 10rem; margin-top: 2.2rem; display: flex; align-items: flex-end; gap: 0.35rem; position: relative; border-bottom: 1px solid var(--rule); }
.chart i { flex: 1; height: var(--h); background: var(--crash); border-radius: 4px 4px 1px 1px; opacity: 0.9; }
.chart i.after { height: 72%; transition: height 0.9s cubic-bezier(.4,0,.2,1), background-color 0.6s; }
.watch.s2 i.after { height: max(var(--h), 3px); background: var(--mint); }
.watch.s2 i.after:nth-of-type(9) { transition-delay: 0.1s; } .watch.s2 i.after:nth-of-type(10) { transition-delay: 0.2s; }
.watch.s2 i.after:nth-of-type(11) { transition-delay: 0.3s; } .watch.s2 i.after:nth-of-type(12) { transition-delay: 0.4s; }
.watch.s2 i.after:nth-of-type(13) { transition-delay: 0.5s; } .watch.s2 i.after:nth-of-type(14) { transition-delay: 0.6s; }
.chart .release { width: 0; align-self: stretch; border-left: 2px dashed var(--muted); position: relative; opacity: 0; transition: opacity 0.4s; }
.chart .release span { position: absolute; top: -1.6rem; left: -2.6rem; font: 600 0.78rem var(--body); color: var(--bg); white-space: nowrap; background: var(--text); padding: 0.15rem 0.5rem; border-radius: 999px; }
.watch.s1 .release { opacity: 1; }
.watch .verdict { margin: 1rem 0 0; color: var(--muted); opacity: 0; transition: opacity 0.5s; }
.watch .verdict b { color: var(--mint); font-weight: 650; }
.watch.s3 .verdict { opacity: 1; }

/* Night: 03:00 working, 07:00 digest. */
.night { padding: 0; display: grid; grid-template-rows: auto auto 1fr; }
.sky { height: 7rem; position: relative; background: linear-gradient(#0B0D22, #191C45); transition: background 1s; overflow: hidden; }
.night.s3 .sky { background: linear-gradient(#3A3F8F, #E88B6A); }
.moon, .sun { position: absolute; width: 2.6rem; height: 2.6rem; border-radius: 50%; left: 1.4rem; transition: transform 1s ease, opacity 1s; }
.moon { top: 1.4rem; background: radial-gradient(circle at 35% 35%, #FFF8E0, #D9D3BF); box-shadow: 0 0 30px rgb(255 248 224 / 0.35); }
.sun { top: 1.4rem; background: radial-gradient(circle, #FFE08A, #FFB547); box-shadow: 0 0 40px rgb(255 200 90 / 0.6); transform: translateY(6rem); opacity: 0; }
.night.s3 .moon { transform: translateY(-5rem); opacity: 0; }
.night.s3 .sun { transform: none; opacity: 1; }
.clock { position: absolute; right: 1.2rem; top: 1.2rem; font: 600 1.8rem/1 var(--mono); color: #fff; }
.clock .t7 { display: none; }
.night.s3 .clock .t3 { display: none; }
.night.s3 .clock .t7 { display: inline; }
.working { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 1rem; align-items: center; padding: 1rem 1.2rem; font-size: 0.92rem; color: var(--muted); border-bottom: 1px solid var(--rule); }
.working .track { height: 6px; border-radius: 3px; background: var(--raised); overflow: hidden; }
.working .track span { display: block; height: 100%; width: 0; background: var(--violet); transition: width 1.2s ease; }
.night.s1 .working .track span { width: 55%; }
.night.s2 .working .track span { width: 100%; }
.digest { padding: 1rem 1.2rem 1.2rem; opacity: 0; transform: translateY(14px); transition: opacity 0.5s, transform 0.5s; }
.night.s3 .digest { opacity: 1; transform: none; }
.digest b { display: block; margin-bottom: 0.6rem; font-size: 1.05rem; }
.digest ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.45rem; }
.digest li { display: grid; grid-template-columns: 1.4rem minmax(0, 1fr) auto; font: 0.86rem var(--mono); }
.digest li em { font: normal 0.8rem var(--body); color: var(--muted); }
.digest .good { color: var(--mint); font-weight: 700; }

/* ---------- privacy, works with ---------- */

.privacy { padding-block: clamp(3.5rem, 8vw, 6rem); border-top: 1px solid var(--rule); }
.privacy ul { list-style: none; margin: 2rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem; }
@media (max-width: 52rem) { .privacy ul { grid-template-columns: 1fr; gap: 1.25rem; } }
.privacy li { color: var(--muted); font-size: 1.05rem; }
.privacy li b { display: block; color: var(--text); font: 700 1.3rem/1.2 var(--display); margin-bottom: 0.35rem; }

.works { padding-block: 2rem; border-block: 1px solid var(--rule); overflow: hidden; }
.marquee { mask: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee .track { display: flex; gap: 3rem; width: max-content; animation: slide 45s linear infinite; }
.marquee span { font: 700 1.35rem/1 var(--display); color: var(--dim); white-space: nowrap; }
@keyframes slide { to { transform: translateX(-50%); } }

/* ---------- pilot form ---------- */

.pilot { padding-block: clamp(4rem, 9vw, 7rem); }
.pilot .wrap { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(2rem, 6vw, 5rem); align-items: start; }
@media (max-width: 52rem) { .pilot .wrap { grid-template-columns: 1fr; } }
.pilot-copy p { color: var(--muted); font-size: 1.15rem; max-width: 28rem; margin: 0; }
.pilot-copy .fine { font-size: 0.92rem; margin-top: 1.5rem; }
form.stack { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; background: var(--surface); border: 1px solid var(--rule); border-radius: 18px; padding: clamp(1.1rem, 3vw, 1.6rem); }
form.stack .full { grid-column: 1 / -1; }
@media (max-width: 34rem) { form.stack { grid-template-columns: 1fr; } }
label { display: grid; gap: 0.4rem; font-size: 0.9rem; color: var(--muted); }
label .opt { color: var(--dim); font-size: 0.82rem; margin-left: 0.3rem; }
input, select, textarea {
  font: inherit; font-size: 1rem; color: var(--text); background: var(--raised);
  border: 1px solid var(--rule); border-radius: 10px; padding: 0.75rem 0.85rem; width: 100%;
}
textarea { resize: vertical; min-height: 5rem; }
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--violet); box-shadow: 0 0 0 3px color-mix(in srgb, var(--violet) 30%, transparent); }
.trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.send { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; }
.status { margin: 0; font-size: 0.95rem; }
.status.good { color: var(--mint); }
.status.bad { color: var(--crash); }
.formnote { color: var(--dim); font-size: 0.9rem; margin: 0; }

/* ---------- footer ---------- */

.foot { border-top: 1px solid var(--rule); padding-block: 2.2rem 2.8rem; color: var(--dim); font-size: 0.9rem; }
.foot .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 2rem; }
.foot .brand { font-size: 1rem; color: var(--muted); }
.foot .brand img { width: 1.5rem; height: 1.5rem; }
.foot nav { display: flex; flex-wrap: wrap; gap: 0.5rem 1.4rem; }
.foot nav a { text-decoration: none; }
.foot nav a:hover { color: var(--text); }
.foot .copy { margin-left: auto; }

/* ---------- plain pages (download, buy, license, legal) ---------- */

.page { padding-block: clamp(2.5rem, 7vw, 5rem) clamp(4rem, 9vw, 7rem); }
.page .wrap { max-width: 44rem; }
.page h1 { margin: 0 0 1rem; font: 800 clamp(2.3rem, 5vw, 3.5rem)/1 var(--display); font-variation-settings: "opsz" 72, "wdth" 92; letter-spacing: -0.022em; }
.page h2 { font: 700 1.35rem/1.2 var(--display); margin: 2.5rem 0 0.6rem; }
.page .lede { color: var(--muted); font-size: 1.15rem; margin: 0 0 2.2rem; }
.page p, .page li { color: #D3D1CC; }
.page ul, .page ol { padding-left: 1.2rem; }
.page .updated { color: var(--dim); font-size: 0.9rem; }
.panel { background: var(--surface); border: 1px solid var(--rule); border-radius: 18px; padding: clamp(1.2rem, 4vw, 1.8rem); }
.panel + .panel { margin-top: 1.2rem; }
.keybox { background: var(--raised); border: 1px solid var(--rule); border-radius: 10px; padding: 1rem; font: 0.85rem/1.5 var(--mono); word-break: break-all; margin: 0 0 0.75rem; }
.inline { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.inline input { flex: 1 1 16rem; width: auto; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
