/* CrashPulse product site. Static, no build step, system fonts only. */

:root {
  color-scheme: light dark;
  --paper: #f4f6f9;
  --surface: #ffffff;
  --ink: #1b2333;
  --graphite: #576173;
  --faint: #7c8696;
  --rule: #dce1e8;
  --grid: rgba(35, 50, 77, 0.07);
  --signal: #d70015;
  --span: rgba(255, 59, 48, 0.08);
  --idle: #9aa3b2;
  --total: rgba(87, 97, 115, 0.45);
  --focus: #0a62d0;
  --shadow: 0 24px 60px -28px rgba(27, 35, 51, 0.35);

  --serif: ui-serif, "New York", "Iowan Old Style", Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", "PingFang SC", sans-serif;

  --measure: 34em;
  --page: 1120px;
  --gutter: clamp(20px, 5vw, 48px);
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #151b26;
    --surface: #1d2431;
    --ink: #e9edf3;
    --graphite: #a4adbb;
    --faint: #7f8999;
    --rule: #2b3443;
    --grid: rgba(233, 237, 243, 0.06);
    --signal: #ff6961;
    --span: rgba(255, 105, 97, 0.10);
    --idle: #6f7a8b;
    --total: rgba(164, 173, 187, 0.4);
    --focus: #6aa8ff;
    --shadow: 0 24px 60px -28px rgba(0, 0, 0, 0.7);
  }
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 17px/1.55 var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { color: var(--graphite); }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 4px; }

.wrap { max-width: var(--page); margin-inline: auto; padding-inline: var(--gutter); }

/* Header */

.site-header { padding-block: 22px; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; font-size: 17px; text-decoration: none; }
.brand img { width: 30px; height: 30px; }
.site-nav { display: flex; gap: 26px; font-size: 15px; }
.site-nav a { text-decoration: none; color: var(--graphite); }
.site-nav a:hover { color: var(--ink); }

/* Hero */

.hero { padding-block: clamp(36px, 6vw, 72px) 0; }
.hero h1 {
  font: 600 clamp(42px, 6.4vw, 80px)/1.02 var(--serif);
  letter-spacing: -0.012em;
  margin: 0;
  max-width: 10.5em;
  text-wrap: balance;
}
.lede {
  font-size: clamp(18px, 1.7vw, 21px);
  line-height: 1.5;
  color: var(--graphite);
  max-width: 28em;
  margin: 24px 0 0;
  text-wrap: pretty;
}
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 26px; margin-top: 34px; }
.button {
  display: inline-block;
  background: var(--ink);
  color: var(--paper);
  font-weight: 600;
  font-size: 16px;
  text-decoration: none;
  padding: 12px 20px;
  border-radius: 10px;
}
.button:hover { color: var(--paper); opacity: 0.88; }
.fine { font-size: 15px; color: var(--faint); }

/* The trace: one event in a calm day */

.recorder { position: relative; margin: clamp(40px, 5vw, 64px) 0 0; }
.recorder .stop-idle { stop-color: var(--idle); }
.recorder svg { display: block; width: 100%; height: clamp(170px, 22vw, 260px); overflow: visible; }
.recorder .grid line { stroke: var(--grid); stroke-width: 1; vector-effect: non-scaling-stroke; }
.recorder .span { fill: var(--span); }
.recorder .total { fill: none; stroke: var(--total); stroke-width: 1; vector-effect: non-scaling-stroke; }
.recorder .app {
  fill: none;
  stroke: url(#trace);
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}
.note {
  position: absolute;
  top: 2%;
  right: 45.8%;
  max-width: 19em;
  text-align: right;
  border-right: 1px solid var(--signal);
  padding-right: 14px;
}
.note-label { display: block; color: var(--signal); font-size: 13px; font-weight: 600; }
.note p { margin: 2px 0 0; font-size: 15px; line-height: 1.45; }
.note small { display: block; margin-top: 4px; font-size: 13px; color: var(--faint); }

@media (prefers-reduced-motion: no-preference) {
  .recorder .ink {
    clip-path: inset(0 100% 0 0);
    animation: draw 2.4s cubic-bezier(.45, .05, .25, 1) 0.2s forwards;
  }
  .recorder .span, .note { opacity: 0; animation: appear 0.6s ease-out 1.7s forwards; }
}
@keyframes draw { to { clip-path: inset(0 0 0 0); } }
@keyframes appear { to { opacity: 1; } }

/* Sections */

section { padding-block: clamp(72px, 10vw, 128px) 0; }
section > .wrap > h2, .section-head h2 {
  font: 600 clamp(30px, 3.6vw, 44px)/1.1 var(--serif);
  letter-spacing: -0.008em;
  margin: 0;
  max-width: 18ch;
}
.section-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 12px 40px; }
.section-head p { margin: 0; color: var(--faint); font-size: 15px; }
h3 { font-size: 20px; line-height: 1.3; font-weight: 600; margin: 0 0 10px; letter-spacing: -0.005em; }
p { margin: 0 0 1em; }
.prose { max-width: var(--measure); color: var(--graphite); }
.prose strong { color: var(--ink); font-weight: 600; }

/* Feature rows: words on the left, the real panel on the right */

.feature {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: clamp(32px, 7vw, 120px);
  align-items: start;
  padding-block: clamp(48px, 6vw, 72px);
  border-top: 1px solid var(--rule);
}
.feature:first-of-type { margin-top: clamp(32px, 4vw, 48px); }
.feature .text { padding-top: 8px; position: sticky; top: 32px; }
.panel { margin: 0; }
.panel img {
  width: 360px;
  border-radius: 12px;
  border: 1px solid var(--rule);
  box-shadow: var(--shadow);
  background: var(--surface);
}
.panel figcaption { margin-top: 14px; font-size: 13px; color: var(--faint); }

/* How it measures */

.facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 40px clamp(32px, 5vw, 64px);
  margin: clamp(36px, 5vw, 56px) 0 0;
}
.facts div { border-top: 1px solid var(--rule); padding-top: 18px; }
.facts dt { font-weight: 600; margin-bottom: 6px; }
.facts dd { margin: 0; color: var(--graphite); }
.caveat { margin-top: 40px; font-size: 15px; color: var(--faint); max-width: 44em; }

/* Requirements */

.specs { margin: clamp(32px, 4vw, 48px) 0 0; max-width: 760px; }
.specs div {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 24px;
  padding-block: 14px;
  border-top: 1px solid var(--rule);
}
.specs div:last-child { border-bottom: 1px solid var(--rule); }
.specs dt { color: var(--graphite); }
.specs dd { margin: 0; }

/* Install */

.steps { list-style: none; counter-reset: step; padding: 0; margin: clamp(32px, 4vw, 48px) 0 0; max-width: 760px; }
.steps li {
  counter-increment: step;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  padding-block: 16px;
  border-top: 1px solid var(--rule);
}
.steps li::before {
  content: counter(step);
  font: 600 22px/1.2 var(--serif);
  color: var(--faint);
  font-variant-numeric: lining-nums;
}
.steps p { margin: 0; }
.steps p + p { color: var(--graphite); margin-top: 4px; }
.after-steps { margin-top: 28px; max-width: 760px; color: var(--graphite); font-size: 15px; }
code { font: 0.92em ui-monospace, "SF Mono", Menlo, monospace; }

/* Availability */

.availability { padding-bottom: clamp(72px, 10vw, 128px); }
.availability .status { font-size: 20px; font-weight: 600; margin: 28px 0 8px; }
.availability .price { font: 600 40px/1.1 var(--serif); margin: 28px 0 8px; font-variant-numeric: lining-nums; }
.availability .button { margin-top: 12px; }

/* Footer */

.site-footer { border-top: 1px solid var(--rule); padding-block: 36px 48px; font-size: 14px; color: var(--faint); }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px 40px; }
.site-footer nav { display: flex; gap: 22px; }
.site-footer a { color: var(--graphite); }
.trademarks { flex-basis: 100%; margin: 0; font-size: 13px; }

/* Legal page */

.legal { padding-block: clamp(40px, 7vw, 88px) clamp(72px, 9vw, 112px); }
.legal h1 { font: 600 clamp(36px, 5vw, 56px)/1.05 var(--serif); letter-spacing: -0.02em; margin: 0 0 12px; }
.legal h2 { font: 600 24px/1.25 var(--serif); margin: 48px 0 12px; color: var(--ink); }
.legal .prose p, .legal .prose li { color: var(--graphite); }
.legal ul { padding-left: 1.2em; }
.legal li { margin-bottom: 0.5em; }

/* Narrow screens */

@media (max-width: 860px) {
  .site-nav a:not(.keep) { display: none; }
  .feature { grid-template-columns: minmax(0, 1fr); }
  .feature .text { position: static; }
  .panel img { width: min(360px, 100%); }
  .specs div { grid-template-columns: minmax(0, 1fr); gap: 2px; }
}

@media (max-width: 1100px) {
  .recorder { display: flex; flex-direction: column-reverse; }
  .note {
    position: static;
    max-width: 21em;
    text-align: left;
    border-right: 0;
    border-left: 1px solid var(--signal);
    padding: 0 0 0 14px;
    margin: 18px var(--gutter) 0 54.2%;
  }
}

@media (max-width: 700px) {
  .note { margin-left: var(--gutter); }
  