@font-face {
  font-family: "Inter";
  src: url("assets/fonts/inter-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #f5f7fa;
  --surface: #ffffff;
  --surface-2: #eaeff5;
  --text: #16263b;
  --muted: #55657a;
  --line: #d6dee8;
  --ink: #1e3a5f;
  --current: #1f8a5b;
  --current-bg: #e3f3ea;
  --stale: #7d8794;
  --stale-bg: #eceff3;
  --stamp: #c8453a;
  --stamp-bg: #fbe9e7;
  --accent: #1e3a5f;
  --on-accent: #ffffff;
  --focus: #1f8a5b;
  --shadow: 0 1px 2px rgba(22, 38, 59, 0.06), 0 8px 24px rgba(22, 38, 59, 0.06);
  --radius: 16px;
  --gutter: 16px;
  --sans:
    "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial,
    sans-serif;
  --mono: ui-monospace, "Cascadia Code", "SF Mono", Consolas, monospace;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f1722;
    --surface: #16212f;
    --surface-2: #1b2838;
    --text: #e6ecf3;
    --muted: #a5b1c0;
    --line: #2a3a4e;
    --ink: #dce4ee;
    --current: #4cc48e;
    --current-bg: #143326;
    --stale: #a3acb8;
    --stale-bg: #222d3a;
    --stamp: #ef7b70;
    --stamp-bg: #3a1f1e;
    --accent: #dce4ee;
    --on-accent: #0f1722;
    --focus: #4cc48e;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 8px 24px rgba(0, 0, 0, 0.25);
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 72px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img,
svg {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: var(--ink);
  text-underline-offset: 3px;
}

a:focus-visible,
.btn:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: 6px;
}

code {
  font-family: var(--mono);
  font-size: 0.92em;
  background: var(--surface-2);
  padding: 0.1em 0.35em;
  border-radius: 6px;
}

h1,
h2,
h3 {
  line-height: 1.2;
  color: var(--ink);
  margin: 0 0 0.5em;
}

h1 {
  font-size: clamp(2.2rem, 6vw, 3.6rem);
  letter-spacing: -0.02em;
  font-weight: 750;
}

h2 {
  font-size: clamp(1.6rem, 3.5vw, 2.2rem);
  letter-spacing: -0.01em;
  font-weight: 700;
}

h3 {
  font-size: 1.12rem;
  font-weight: 650;
}

.wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.skip {
  position: absolute;
  left: -9999px;
}

.skip:focus {
  left: var(--gutter);
  top: 8px;
  z-index: 10;
  background: var(--surface);
  padding: 8px 12px;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 5;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 60px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.1rem;
  text-decoration: none;
  color: var(--ink);
}

.site-header nav {
  display: flex;
  gap: 18px;
  font-size: 0.95rem;
}

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

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

@media (max-width: 520px) {
  .nav-wide {
    display: none;
  }
  .site-header nav {
    gap: 12px;
    font-size: 0.9rem;
  }
}

/* Hero */
.hero {
  padding: clamp(40px, 8vw, 96px) 0 clamp(32px, 6vw, 72px);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: clamp(24px, 5vw, 64px);
  align-items: center;
}

.eyebrow {
  margin: 0 0 12px;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--current);
}

.lead {
  font-size: 1.15rem;
  color: var(--muted);
  max-width: 38em;
}

.lead strong,
.lead em {
  color: var(--text);
}

.hero-logo {
  display: flex;
  justify-content: center;
}

.hero-logo img {
  width: min(320px, 70vw);
  filter: drop-shadow(0 12px 24px rgba(30, 58, 95, 0.12));
}

@media (prefers-color-scheme: dark) {
  .hero-logo img {
    background: #f3f5f8;
    border-radius: 28px;
    padding: 12px;
  }
}

@media (max-width: 760px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }
  .hero-logo {
    order: -1;
  }
  .hero-logo img {
    width: min(200px, 55vw);
  }
}

.cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.btn {
  display: inline-block;
  padding: 12px 20px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--on-accent);
  font-weight: 600;
  text-decoration: none;
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1.5px solid var(--line);
}

/* Sections */
.section {
  padding: clamp(48px, 8vw, 88px) 0;
}

.section.alt {
  background: var(--surface-2);
}

.section-lead {
  color: var(--muted);
  max-width: 44em;
  font-size: 1.08rem;
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 22px;
}

/* Problem */
.compare {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 24px;
  margin-top: 28px;
  align-items: start;
}

@media (max-width: 760px) {
  .compare {
    grid-template-columns: 1fr;
  }
}

.compare figure {
  margin: 0;
}

.q {
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--ink);
  margin-bottom: 16px;
}

.answers {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

@media (max-width: 420px) {
  .answers {
    grid-template-columns: 1fr;
  }
}

.answer {
  border-radius: 12px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.answer.is-current {
  background: var(--current-bg);
  border: 1.5px solid var(--current);
}

.answer.is-stale {
  background: var(--stale-bg);
  border: 1.5px dashed var(--stale);
}

.answer.is-stale .amount {
  text-decoration: line-through;
  text-decoration-color: var(--stamp);
  text-decoration-thickness: 2px;
  color: var(--muted);
}

.amount {
  font-size: 1.6rem;
  font-weight: 750;
  font-variant-numeric: tabular-nums;
}

.when {
  font-size: 0.9rem;
  color: var(--muted);
}

.tag {
  align-self: flex-start;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 2px 8px;
  border-radius: 999px;
}

.tag-current {
  background: var(--current);
  color: #ffffff;
}

.tag-stale {
  background: var(--stale);
  color: #ffffff;
}

.source {
  margin: 14px 0 0;
  font-size: 0.85rem;
  color: var(--muted);
}

.who {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}

.who li {
  padding: 14px 16px;
  border-left: 4px solid var(--ink);
  background: var(--surface);
  border-radius: 0 12px 12px 0;
}

/* Approach */
.grid4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 24px;
}

.grid3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 24px;
}

@media (max-width: 960px) {
  .grid4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 760px) {
  .grid3 {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .grid4 {
    grid-template-columns: 1fr;
  }
}

.feature p {
  margin: 0;
  color: var(--muted);
}

.sub {
  margin-top: 40px;
}

.outcomes {
  list-style: none;
  padding: 0;
  margin: 12px 0 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

@media (max-width: 760px) {
  .outcomes {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 420px) {
  .outcomes {
    grid-template-columns: 1fr;
  }
}

.outcomes li {
  background: var(--surface);
  border-radius: 12px;
  padding: 14px;
  border-top: 5px solid var(--line);
  color: var(--muted);
  font-size: 0.95rem;
}

.outcomes li strong {
  display: block;
  color: var(--text);
  font-size: 1.05rem;
}

.o-correct {
  border-top-color: var(--current) !important;
}

.o-stale {
  border-top-color: var(--stale) !important;
}

.o-invented {
  border-top-color: var(--stamp) !important;
}

.o-na {
  border-top-color: var(--ink) !important;
}

.steps {
  margin: 12px 0 0;
  padding-left: 1.3em;
  display: grid;
  gap: 8px;
  max-width: 48em;
}

/* Status */
.status-list {
  display: grid;
  gap: 14px;
  margin-top: 24px;
}

.status-row {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 16px;
  align-items: start;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 20px;
}

.status-row h3 {
  margin-bottom: 4px;
}

.status-row p {
  margin: 0;
  color: var(--muted);
}

@media (max-width: 560px) {
  .status-row {
    grid-template-columns: 1fr;
    gap: 8px;
  }
}

.pill {
  justify-self: start;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  white-space: nowrap;
}

.pill-done {
  background: var(--current-bg);
  color: var(--current);
}

.pill-progress {
  background: var(--stale-bg);
  color: var(--ink);
}

.pill-todo {
  background: var(--stamp-bg);
  color: var(--stamp);
}

/* Video */
#video video {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius);
  margin-top: 24px;
}

/* Material */
.link-card {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: var(--text);
  transition:
    transform 0.15s ease,
    border-color 0.15s ease;
}

.link-card p {
  color: var(--muted);
  margin: 0 0 12px;
  flex: 1;
}

.link-card .more {
  font-weight: 600;
  color: var(--ink);
}

a.link-card:hover {
  transform: translateY(-2px);
  border-color: var(--ink);
}

/* Team + footer */
.team-row {
  display: flex;
  align-items: center;
  gap: 20px;
}

.team-row p {
  margin: 0;
  max-width: 40em;
}

@media (max-width: 420px) {
  .team-row {
    flex-direction: column;
    align-items: flex-start;
  }
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 28px 0 40px;
  font-size: 0.88rem;
  color: var(--muted);
}

.site-footer p {
  margin: 0;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .link-card {
    transition: none;
  }
}

/* Contact form */

.contact {
  --contact-error: #a3281d;
}

@media (prefers-color-scheme: dark) {
  .contact {
    --contact-error: #ff9d92;
  }
}

.contact-lead {
  max-width: 40em;
  margin: 0 0 20px;
  color: var(--muted);
}

.contact-form {
  display: grid;
  gap: 18px;
  max-width: 640px;
}

.contact-form[hidden] {
  display: none;
}

.contact-hint {
  margin: 0;
  font-size: 0.92rem;
  color: var(--muted);
}

.contact-field label {
  display: block;
  margin-bottom: 6px;
  font-weight: 600;
}

.contact-field input,
.contact-field textarea {
  display: block;
  width: 100%;
  min-height: 46px;
  padding: 11px 14px;
  font: inherit;
  font-size: 1rem;
  line-height: 1.4;
  color: var(--text);
  background: var(--surface);
  border: 1.5px solid color-mix(in srgb, var(--text) 50%, var(--surface-2));
  border-radius: 10px;
}

.contact-field textarea {
  min-height: 150px;
  resize: vertical;
}

.contact-field input:focus-visible,
.contact-field textarea:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
  border-color: var(--text);
}

.contact-field [aria-invalid="true"] {
  border-color: var(--contact-error);
  border-width: 2px;
}

.contact-hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.contact-form button[type="submit"] {
  min-height: 46px;
  font-family: inherit;
  cursor: pointer;
}

.contact-form button[type="submit"]:disabled {
  opacity: 0.6;
  cursor: progress;
}

.contact-status {
  min-height: 1.6em;
  margin: 0;
  padding-left: 12px;
  border-left: 4px solid transparent;
  font-weight: 600;
  color: var(--text);
}

.contact-status[data-state="error"] {
  color: var(--contact-error);
  border-left-color: var(--contact-error);
}

.contact-status[data-state="success"] {
  border-left-color: var(--current);
}

.contact-status a {
  color: inherit;
}

.contact-nojs {
  max-width: 40em;
  margin: 0 0 20px;
  padding: 12px 16px;
  border: 1.5px solid color-mix(in srgb, var(--text) 50%, var(--surface-2));
  border-radius: 10px;
}

.contact-privacy {
  max-width: 40em;
  margin: 20px 0 0;
  font-size: 0.88rem;
  color: var(--muted);
}
