@font-face {
  font-family: 'Libre Franklin';
  src: url('/fonts/libre-franklin.woff2') format('woff2');
  font-weight: 100 900;
  font-display: swap;
}

@font-face {
  font-family: 'JetBrains Mono';
  src: url('/fonts/jetbrains-mono.woff2') format('woff2');
  font-weight: 100 800;
  font-display: swap;
}

:root {
  color-scheme: light dark;
  scroll-padding-top: 5.5rem;
  --bg: #f7f7f8;
  --panel: #ffffff;
  --panel-2: #f3f4f6;
  --line: #e1e4e8;
  --line-soft: #eceef1;
  --ink: #0f1115;
  --muted: #515966;
  --dim: #5c6470;
  --accent: #2563d6;
  --glow: rgb(37 99 214 / 0.16);
  --critical: #b42318;
  --serious: #93470f;
  --review: #1e4fb8;
  --good: #1e6b44;
  --focus: #1e4fb8;
  --header-bg: rgb(247 247 248 / 0.82);
  --btn-bg: linear-gradient(#262b36, #0f1115);
  --btn-hover: #000000;
  --btn-ink: #ffffff;
  --pill-bg: rgb(255 255 255 / 0.85);
  --h1-from: #0f1115;
  --h1-to: #4b5563;
  --shot-shadow: 0 -20px 80px -24px rgb(37 99 214 / 0.28);
  --bar: #d3dae6;
  --term-bg: #0f1115;
  --term-ink: #d7dde5;
  --term-ok: #7ed6a2;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0a0b0d;
    --panel: #111317;
    --panel-2: #16191e;
    --line: #23272e;
    --line-soft: #1b1e24;
    --ink: #f2f3f5;
    --muted: #9aa1ad;
    --dim: #8a929e;
    --accent: #6ea4ff;
    --glow: rgb(37 99 214 / 0.42);
    --critical: #ff8a80;
    --serious: #f5b276;
    --review: #8fb8ff;
    --good: #7ed6a2;
    --focus: #a6d8ee;
    --header-bg: rgb(10 11 13 / 0.78);
    --btn-bg: linear-gradient(#f4f6f8, #cfd5dc);
    --btn-hover: #ffffff;
    --btn-ink: #0a0b0d;
    --pill-bg: rgb(17 19 23 / 0.7);
    --h1-from: #ffffff;
    --h1-to: #9aa6b5;
    --shot-shadow: 0 -20px 80px -20px rgb(37 99 214 / 0.4);
    --bar: #2a3a48;
    --term-bg: #0a0b0d;
    --term-ink: #d7dde5;
  }
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: 'Libre Franklin', system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

:where(a, button):focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: 8px;
}

.skip-link {
  position: absolute;
  left: 8px;
  top: -100px;
  padding: 10px 14px;
  background: var(--ink);
  color: var(--bg);
  border-radius: 8px;
  z-index: 10;
}

.skip-link:focus {
  top: 8px;
}

.wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Header */

.top {
  position: sticky;
  top: 0;
  z-index: 5;
  background: var(--header-bg);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line-soft);
}

.top .wrap {
  display: flex;
  align-items: center;
  gap: 32px;
  height: 64px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 19px;
  text-decoration: none;
}

.top nav {
  display: flex;
  gap: 26px;
  font-size: 15px;
  font-weight: 500;
}

.top nav a {
  text-decoration: none;
  color: var(--muted);
}

.top nav a:hover {
  color: var(--ink);
}

.top .right {
  margin-left: auto;
  display: flex;
  gap: 10px;
}

.star {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  overflow: hidden;
}

.star span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 11px;
}

.star span + span {
  border-left: 1px solid var(--line);
  color: var(--muted);
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 18px;
  min-height: 44px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
}

.btn-light {
  background: var(--btn-bg);
  color: var(--btn-ink);
}

.btn-light:hover {
  background: var(--btn-hover);
}

.btn-dark {
  border: 1px solid var(--line);
  color: var(--ink);
  background: var(--panel);
}

.btn-dark:hover {
  background: var(--panel-2);
}

.top .btn {
  min-height: 36px;
  font-size: 14px;
}

/* Hero */

.hero {
  position: relative;
  padding: 112px 0 0;
  text-align: center;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 340px;
  width: 1100px;
  height: 700px;
  transform: translateX(-50%);
  background: radial-gradient(closest-side, var(--glow), transparent);
  pointer-events: none;
}

.pill {
  position: relative;
  display: inline-flex;
  gap: 10px;
  align-items: center;
  padding: 5px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 13px;
  text-decoration: none;
  background: var(--pill-bg);
}

.pill b {
  font-weight: 600;
}

.pill .tag {
  color: var(--muted);
}

h1 {
  position: relative;
  margin: 28px auto 0;
  max-width: 14em;
  font-size: clamp(44px, 7vw, 76px);
  line-height: 1.04;
  font-weight: 650;
  letter-spacing: -0.035em;
  background: linear-gradient(180deg, var(--h1-from) 30%, var(--h1-to));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.lede {
  position: relative;
  max-width: 36em;
  margin: 26px auto 34px;
  color: var(--muted);
  font-size: 20px;
}

.hero .actions {
  position: relative;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
}

/* App mock */

.shot {
  position: relative;
  margin: 72px auto 0;
  max-width: 1100px;
  border: 1px solid var(--line);
  border-bottom: 0;
  border-radius: 16px 16px 0 0;
  background: var(--panel);
  text-align: left;
  overflow: hidden;
  box-shadow: var(--shot-shadow);
}

.shot::after {
  content: '';
  position: absolute;
  inset: auto 0 0;
  height: 45%;
  background: linear-gradient(transparent, var(--bg));
}

.shot-bar {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 20px;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
  color: var(--muted);
}

.shot-bar b {
  color: var(--ink);
  font-weight: 600;
}

.shot-body {
  padding: 24px;
}

.shot-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 16px;
  margin-bottom: 18px;
}

.shot h2 {
  margin: 0;
  font-size: 26px;
  letter-spacing: -0.02em;
}

.shot-next {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--panel-2);
  font-size: 13px;
  color: var(--muted);
}

.shot-next .dot {
  width: 8px;
  height: 8px;
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.stat {
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel-2);
}

.stat strong {
  display: block;
  font-size: 28px;
  line-height: 1.1;
}

.stat span {
  font-size: 13px;
  color: var(--muted);
}

.c-critical {
  color: var(--critical);
}

.c-review {
  color: var(--review);
}

.rows {
  margin-top: 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
}

.row {
  display: grid;
  grid-template-columns: 130px 1fr 170px 70px;
  gap: 12px;
  align-items: center;
  padding: 13px 16px;
  border-bottom: 1px solid var(--line-soft);
  font-size: 14px;
}

.row code {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12.5px;
  color: var(--dim);
}

.badge {
  justify-self: start;
  padding: 2px 8px;
  border: 1px solid currentcolor;
  border-radius: 5px;
  font-size: 12px;
  font-weight: 600;
}

/* Sections */

section {
  padding: 120px 0 0;
}

.section-head {
  text-align: center;
  max-width: 40em;
  margin: 0 auto 48px;
}

h2.big {
  margin: 0;
  font-size: clamp(34px, 4.6vw, 52px);
  line-height: 1.08;
  font-weight: 650;
  letter-spacing: -0.03em;
}

.section-head p {
  margin: 16px 0 0;
  font-size: 19px;
  color: var(--muted);
}

.bento {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.card {
  display: flex;
  flex-direction: column;
  min-height: 380px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: linear-gradient(180deg, var(--panel-2), var(--panel));
  overflow: hidden;
}

.card h3 {
  margin: 0 0 8px;
  font-size: 21px;
  letter-spacing: -0.01em;
}

.card p {
  margin: 0 0 24px;
  color: var(--muted);
  font-size: 16px;
}

.card .art {
  margin-top: auto;
}

.mini {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--bg);
  font-size: 13px;
}

.mini-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--line-soft);
}

.mini-row:last-child {
  border-bottom: 0;
}

.mini-row span:last-child {
  color: var(--muted);
  white-space: nowrap;
}

.bars {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  height: 120px;
  padding: 16px;
}

.bars i {
  flex: 1;
  border-radius: 6px 6px 2px 2px;
  background: var(--bar);
}

.bars i:last-child {
  background: var(--good);
}

.term {
  padding: 16px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  line-height: 1.8;
  background: var(--term-bg);
  color: var(--term-ink);
}

.term .ok {
  color: var(--term-ok);
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chips span {
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--bg);
  font-weight: 600;
}

.chips span:first-child {
  border-color: var(--accent);
  color: var(--accent);
}

.checks .mini-row span:first-child {
  display: flex;
  gap: 10px;
  align-items: center;
}

.card.wide {
  grid-column: 1 / -1;
  min-height: 0;
}

.walk {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: 16px;
}

.stops {
  display: flex;
  flex-wrap: wrap;
  align-content: flex-start;
  gap: 12px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--bg);
}

.stops span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px 6px 6px;
  border: 1.5px dashed var(--accent);
  border-radius: 8px;
  font-size: 13px;
}

.stops b {
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--bg);
  font-size: 12px;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
}

/* Honest band */

.honest {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.fact {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--panel);
}

.fact strong {
  display: block;
  font-size: 44px;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.fact p {
  margin: 10px 0 0;
  color: var(--muted);
}

.sources {
  margin-top: 16px;
  text-align: center;
  font-size: 14px;
  color: var(--dim);
}

/* FAQ */

.faq {
  max-width: 760px;
  margin: 0 auto;
}

.faq details {
  border-bottom: 1px solid var(--line);
  padding: 20px 4px;
}

.faq summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 18px;
}

.faq p {
  margin: 12px 0 0;
  color: var(--muted);
}

/* Closing */

.closing {
  position: relative;
  margin: 120px 0 0;
  padding: 96px 24px;
  text-align: center;
  border-top: 1px solid var(--line-soft);
  overflow: hidden;
}

.closing::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 100%;
  width: 900px;
  height: 600px;
  transform: translate(-50%, -50%);
  background: radial-gradient(closest-side, var(--glow), transparent);
}

.closing > * {
  position: relative;
}

.closing p {
  color: var(--muted);
  font-size: 19px;
  margin: 16px auto 32px;
  max-width: 34em;
}

footer {
  border-top: 1px solid var(--line-soft);
  padding: 32px 0 48px;
  font-size: 14px;
  color: var(--dim);
}

footer .wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
}

footer a {
  color: var(--muted);
}

@media (max-width: 900px) {
  .bento,
  .honest,
  .walk {
    grid-template-columns: minmax(0, 1fr);
  }

  .stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .row {
    grid-template-columns: 1fr auto;
  }

  .row code,
  .row .pages {
    display: none;
  }

  .top nav {
    display: none;
  }
}

@media (max-width: 520px) {
  .star span + span,
  .top .btn {
    display: none;
  }
}

/* Utilities used by the page */

.c-serious {
  color: var(--serious);
}

.dot-review {
  background: var(--review);
}

.dot-good {
  background: var(--good);
}

.dot-critical {
  background: var(--critical);
}

.dot-serious {
  background: var(--serious);
}

.bars .h90 {
  height: 90%;
}

.bars .h84 {
  height: 84%;
}

.bars .h86 {
  height: 86%;
}

.bars .h70 {
  height: 70%;
}

.bars .h62 {
  height: 62%;
}

.bars .h55 {
  height: 55%;
}

.bars .h44 {
  height: 44%;
}

.bars .h36 {
  height: 36%;
}

.closing-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
}

/* Recorded keyboard example */
.hero { padding-top: 80px; }
.hero-demo { position: relative; margin: 48px auto 0; max-width: 960px; border: 1px solid var(--line); border-radius: 16px; background: var(--panel); overflow: hidden; box-shadow: var(--shot-shadow); }
.hero-demo a { display: block; }
.hero-demo img { display: block; width: 100%; height: auto; }
.hero-demo figcaption { padding: 16px 20px; font-size: 14px; color: var(--muted); }
.hero-demo figcaption a { display: inline; color: var(--accent); font-weight: 600; }
@media (max-width: 520px) { .hero { padding-top: 48px; } .hero-demo { margin-top: 32px; } }
