/* Wisprit — cool aluminum ground, ink text, mic-orange for live states only.
   Display: Instrument Serif. Body: the native SF stack (the audience is Macs).
   Transcript/data: ui-monospace. */

:root {
  --bg: #f5f6f8;
  --surface: #ffffff;
  --ink: #191c20;
  --muted: #5a626c;
  --line: #e3e6ea;
  --hot: #f07818;        /* the color macOS shows when the mic is live */
  --hot-deep: #d4650e;
  --studio: #14171b;     /* the dark band */
  --studio-ink: #e8eaed;
  --studio-muted: #9aa3ad;
  --serif: "Instrument Serif", Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Inter, sans-serif;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, monospace;
}

* { box-sizing: border-box; margin: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
:focus-visible { outline: 2px solid var(--hot); outline-offset: 3px; border-radius: 2px; }

h1, h2 { font-family: var(--serif); font-weight: 400; letter-spacing: -0.01em; }
h1 em, h2 em { font-style: italic; }

/* ---------- nav ---------- */
.nav {
  display: flex; justify-content: space-between; align-items: center;
  max-width: 1060px; margin: 0 auto; padding: 22px 24px;
}
.wordmark {
  font-family: var(--serif); font-size: 24px; text-decoration: none;
  display: inline-flex; align-items: center; gap: 9px;
}
.dot {
  width: 9px; height: 9px; border-radius: 50%; background: var(--hot); display: inline-block;
}
.nav nav { display: flex; gap: 26px; align-items: center; }
.nav nav a { text-decoration: none; font-size: 15px; color: var(--muted); }
.nav nav a:hover { color: var(--ink); }
.nav-cta {
  color: var(--ink) !important; border: 1px solid var(--ink);
  padding: 7px 16px; border-radius: 999px;
}
.nav-cta:hover { background: var(--ink); color: var(--bg) !important; }

/* ---------- hero ---------- */
.hero { max-width: 820px; margin: 0 auto; padding: 72px 24px 88px; text-align: center; }
.hero h1 { font-size: clamp(44px, 7.5vw, 76px); line-height: 1.04; }
.hero .sub {
  color: var(--muted); max-width: 560px; margin: 22px auto 0; font-size: 18px;
}

/* the demo */
.demo { margin: 48px auto 0; max-width: 640px; }
.demo-field {
  background: var(--surface); border: 1px solid var(--line); border-radius: 14px;
  min-height: 118px; padding: 26px 28px; text-align: left;
  font-family: var(--mono); font-size: 17px; line-height: 1.7;
  box-shadow: 0 1px 2px rgba(20,23,27,.04), 0 12px 32px -18px rgba(20,23,27,.12);
}
.demo-field .volatile {
  color: var(--muted);
  text-decoration: underline;
  text-decoration-color: var(--hot);
  text-decoration-thickness: 1.5px;
  text-underline-offset: 4px;
}
.caret {
  display: inline-block; width: 1.5px; height: 1.15em; background: var(--ink);
  vertical-align: text-bottom; margin-left: 1px; animation: blink 1.1s step-end infinite;
}
@keyframes blink { 50% { opacity: 0; } }

.demo-hint { display: flex; align-items: center; justify-content: center; gap: 16px; margin-top: 22px; }
.demo-hint p { color: var(--muted); font-size: 14.5px; display: flex; align-items: center; gap: 8px; }
.mic-dot {
  width: 8px; height: 8px; border-radius: 50%; background: #c8ccd2; display: inline-block;
  transition: background .15s, box-shadow .15s;
}
.mic-dot.hot { background: var(--hot); box-shadow: 0 0 0 4px rgba(240,120,24,.18); }

.keycap {
  --depth: 0 3px 0 #c9cdd3, 0 4px 10px rgba(20,23,27,.18);
  width: 74px; height: 74px; border-radius: 16px; border: 1px solid #d4d8dd;
  background: linear-gradient(180deg, #ffffff, #eef0f3);
  box-shadow: var(--depth);
  cursor: pointer; user-select: none; -webkit-user-select: none;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  font-family: var(--sans); color: var(--muted);
  transition: transform .08s, box-shadow .08s;
  touch-action: none;
}
.keycap-glyph { font-size: 20px; }
.keycap-label { font-size: 12px; }
.keycap.held, .keycap:active {
  transform: translateY(3px);
  box-shadow: 0 0 0 #c9cdd3, 0 1px 4px rgba(20,23,27,.2), inset 0 0 0 2px rgba(240,120,24,.55);
}

/* CTAs */
.cta-row { display: flex; gap: 14px; justify-content: center; margin-top: 52px; flex-wrap: wrap; }
.button-primary {
  background: var(--ink); color: var(--bg); text-decoration: none;
  padding: 14px 28px; border-radius: 12px; font-size: 16.5px; font-weight: 600;
  transition: background .15s, transform .15s;
}
.button-primary:hover { background: #000; transform: translateY(-1px); }
.button-quiet {
  text-decoration: none; padding: 14px 22px; border-radius: 12px; font-size: 16.5px;
  border: 1px solid var(--line); color: var(--muted); background: var(--surface);
}
.button-quiet:hover { color: var(--ink); border-color: #c9cdd3; }
.fineprint { color: var(--muted); font-size: 13.5px; margin-top: 16px; }
.fineprint a { color: var(--muted); }

/* ---------- studio band ---------- */
.studio { background: var(--studio); color: var(--studio-ink); }
.studio-inner { max-width: 900px; margin: 0 auto; padding: 84px 24px; }
.studio h2 { font-size: clamp(32px, 4.5vw, 46px); }
.studio-lede { color: var(--studio-muted); max-width: 540px; margin-top: 14px; }

.chain { list-style: none; padding: 0; margin: 48px 0 0; counter-reset: stage; }
.chain li {
  display: grid; grid-template-columns: 190px 1fr; gap: 8px 24px; align-items: baseline;
  padding: 17px 0; border-top: 1px solid #262b31; counter-increment: stage;
}
.chain li:last-child { border-bottom: 1px solid #262b31; }
.chain-stage { font-family: var(--serif); font-size: 22px; }
.chain-stage::before {
  content: counter(stage); font-family: var(--mono); font-size: 12px; color: var(--hot);
  margin-right: 14px; vertical-align: 3px;
}
.chain-note { color: var(--studio-muted); font-size: 15.5px; }

.netlog {
  margin-top: 44px; padding: 20px 24px; border-radius: 12px;
  background: #0c0e11; border: 1px solid #262b31;
  font-family: var(--mono); font-size: 14px; line-height: 1.7;
  color: var(--studio-muted); overflow-x: auto;
}

/* ---------- features ---------- */
.features { max-width: 1060px; margin: 0 auto; padding: 92px 24px; }
.features h2, .compare h2 { font-size: clamp(32px, 4.5vw, 46px); margin-bottom: 44px; }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.grid article {
  background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 26px;
}
.grid h3 { font-size: 18px; font-weight: 650; margin-bottom: 10px; }
.grid p { color: var(--muted); font-size: 15.5px; }
.grid strong { color: var(--ink); font-weight: 600; }

/* ---------- comparison ---------- */
.compare { max-width: 900px; margin: 0 auto; padding: 24px 24px 92px; }
.table-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
table { border-collapse: collapse; width: 100%; min-width: 620px; font-size: 15px; }
th, td { text-align: left; padding: 13px 18px; border-top: 1px solid var(--line); }
thead th { border-top: 0; font-family: var(--serif); font-size: 18px; font-weight: 400; }
tbody th { color: var(--muted); font-weight: 500; width: 220px; }
td.us, th.us { background: #fdf6ef; }
th.us { color: var(--hot-deep); }
.compare-note { color: var(--muted); font-size: 14.5px; margin-top: 18px; max-width: 640px; }

/* ---------- requirements ---------- */
.reqs { max-width: 720px; margin: 0 auto; padding: 0 24px 100px; }
.reqs h2 { font-size: clamp(28px, 4vw, 38px); margin-bottom: 22px; }
.reqs ul { list-style: none; padding: 0; }
.reqs li { padding: 14px 0; border-top: 1px solid var(--line); color: var(--muted); font-size: 16px; }
.reqs li strong { color: var(--ink); }
.reqs code { font-family: var(--mono); font-size: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: 5px; padding: 1px 6px; }

/* ---------- footer ---------- */
footer { border-top: 1px solid var(--line); padding: 36px 24px 48px; text-align: center; }
footer p { font-size: 15px; }
footer .dot { margin-right: 8px; }
.footer-quiet { color: var(--muted); font-size: 13.5px; margin-top: 8px; }

/* ---------- responsive ---------- */
@media (max-width: 780px) {
  .grid { grid-template-columns: 1fr; }
  .chain li { grid-template-columns: 1fr; gap: 2px; }
  .nav nav { gap: 16px; }
  .nav nav a:not(.nav-cta) { display: none; }
  .hero { padding-top: 44px; }
}

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .caret { animation: none; }
  * { transition: none !important; }
}
