:root {
  --bg: #eef1ed;
  --surface: #fbfaf5;
  --surface-strong: #ffffff;
  --ink: #111a1d;
  --text: #182428;
  --muted: #58676b;
  --border: rgba(24, 36, 40, 0.14);
  --rule: rgba(24, 36, 40, 0.22);
  --accent: #a4644a;
  --accent-strong: #743d2b;
  --accent-soft: rgba(164, 100, 74, 0.13);
  --accent-on-dark: #d9a184;
  --signal: #507e7c;
  --dark: #111a1f;
  --on-dark: #f7f5ee;
  --on-dark-muted: rgba(247, 245, 238, 0.72);
  --on-dark-border: rgba(247, 245, 238, 0.14);
  --radius: 0.5rem;
  --font: "Instrument Sans", "Aptos", "Segoe UI", system-ui, sans-serif;
  --mono: "IBM Plex Mono", "Cascadia Mono", Consolas, monospace;
  --container: 1200px;
  color-scheme: light;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 80px; }

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background:
    linear-gradient(90deg, rgba(24, 36, 40, 0.035) 1px, transparent 1px),
    linear-gradient(180deg, rgba(24, 36, 40, 0.035) 1px, transparent 1px),
    var(--bg);
  background-size: 42px 42px;
  -webkit-font-smoothing: antialiased;
}

main { flex: 1; }

h1, h2, h3, p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
a { color: inherit; }
img { display: block; max-width: 100%; }

code, .mono { font-family: var(--mono); }
code { font-size: 0.88em; padding: 0.1em 0.35em; border-radius: 4px; background: var(--accent-soft); color: var(--accent-strong); }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 16px;
}

@media (min-width: 720px) {
  .container { padding: 0 32px; }
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* Eyebrow labels */
.eyebrow {
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--accent-strong);
}

.eyebrow--on-dark { color: var(--accent-on-dark); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.8rem 1.15rem;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: transform 160ms ease, background-color 160ms ease, border-color 160ms ease;
}

.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(1px); }

.btn--sm { min-height: 2.5rem; padding: 0.5rem 0.95rem; font-size: 0.92rem; }

.btn--dark { background: var(--ink); color: var(--on-dark); }
.btn--dark:hover { background: #000; }

.btn--light { background: var(--on-dark); color: var(--ink); box-shadow: 0 18px 50px rgba(0, 0, 0, 0.28); }

.btn--ghost { color: var(--on-dark); border-color: rgba(247, 245, 238, 0.28); }
.btn--ghost:hover { border-color: var(--on-dark); }

/* Top bar */
.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(238, 241, 237, 0.88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.topbar__inner {
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: 64px;
}

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

.brand img { border-radius: 4px; }

.topbar__nav {
  display: none;
  gap: 28px;
  margin-left: auto;
  font-size: 0.94rem;
  font-weight: 500;
  color: var(--muted);
}

.topbar__nav a { text-decoration: none; }
.topbar__nav a:hover { color: var(--ink); }

.topbar .btn { margin-left: auto; }

@media (min-width: 860px) {
  .topbar__nav { display: flex; }
  .topbar .btn { margin-left: 8px; }
}

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  color: var(--on-dark);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0 1px, transparent 1px 18px),
    linear-gradient(180deg, #10191d 0%, #17242a 55%, #223036 100%);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(247, 245, 238, 0.045) 1px, transparent 1px),
    linear-gradient(180deg, rgba(247, 245, 238, 0.045) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 18%, #000 82%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0%, #000 18%, #000 82%, transparent 100%);
  pointer-events: none;
}

.hero__symbol {
  position: absolute;
  right: -10rem;
  top: 2rem;
  width: min(44rem, 70vw);
  opacity: 0.05;
  pointer-events: none;
  filter: grayscale(1) brightness(2);
}

.hero__grid {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 48px;
  padding-top: 64px;
  padding-bottom: 64px;
}

@media (min-width: 1000px) {
  .hero__grid {
    grid-template-columns: 1.1fr 0.9fr;
    gap: 64px;
    align-items: center;
    padding-top: 104px;
    padding-bottom: 104px;
  }
}

.hero__copy { display: grid; gap: 24px; min-width: 0; }

.hero h1 {
  max-width: 12ch;
  font-size: clamp(2.6rem, 6.4vw, 5.2rem);
  font-weight: 800;
  line-height: 0.95;
  text-wrap: balance;
}

.hero__lead {
  max-width: 36rem;
  font-size: clamp(1rem, 1.6vw, 1.15rem);
  line-height: 1.75;
  color: var(--on-dark-muted);
}

.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }

.countdown {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 12px;
  padding-top: 20px;
  border-top: 1px solid var(--on-dark-border);
  font-family: var(--mono);
  text-transform: uppercase;
}

.countdown__days { font-size: 1.5rem; font-weight: 600; color: var(--accent-on-dark); }
.countdown__label { font-size: 0.78rem; color: var(--on-dark-muted); }

/* Pull request card */
.pr-card {
  margin: 0;
  padding: 24px;
  border: 1px solid var(--on-dark-border);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(247, 245, 238, 0.08), rgba(247, 245, 238, 0.03));
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
  min-width: 0;
}

.pr-card__head {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.8rem;
  color: var(--on-dark-muted);
}

.pr-card__badge {
  padding: 2px 10px;
  border-radius: 999px;
  background: rgba(80, 126, 124, 0.35);
  color: #cfe5e3;
  font-size: 0.75rem;
  font-weight: 600;
}

.pr-card__title { margin: 14px 0 18px; font-size: 1.25rem; font-weight: 700; }

.diff {
  border: 1px solid var(--on-dark-border);
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.25);
  font-size: 0.82rem;
}

.diff__file {
  padding: 8px 12px;
  border-bottom: 1px solid var(--on-dark-border);
  color: var(--on-dark-muted);
}

.diff__line { display: grid; grid-template-columns: 1.4em 1fr; padding: 4px 12px; overflow-wrap: anywhere; }
.diff__line span:first-child { opacity: 0.7; }
.diff__line--del { background: rgba(163, 94, 90, 0.22); color: #f1c9c5; }
.diff__line--add { background: rgba(80, 126, 124, 0.28); color: #cfe9e5; }

.checks { display: grid; gap: 10px; margin-top: 20px; }

.checks li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.95rem;
}

.checks li::before {
  flex: none;
  width: 20px;
  height: 20px;
  border-radius: 999px;
  content: "";
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.5 10.5l3 3 6-7' fill='none' stroke='%23cfe9e5' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 20px no-repeat,
    rgba(80, 126, 124, 0.45);
}

.pr-card__foot {
  margin-top: 20px;
  padding-top: 14px;
  border-top: 1px solid var(--on-dark-border);
  font-size: 0.75rem;
  text-transform: uppercase;
  color: var(--on-dark-muted);
}

/* Facts strip */
.facts { background: var(--surface); border-bottom: 1px solid var(--border); }

.facts__grid { display: grid; grid-template-columns: 1fr 1fr; }

@media (min-width: 860px) {
  .facts__grid { grid-template-columns: repeat(4, 1fr); }
}

.fact {
  display: grid;
  gap: 2px;
  padding: 22px 16px;
  border-left: 1px solid var(--border);
}

.fact:nth-child(odd) { border-left: 0; padding-left: 0; }

@media (min-width: 860px) {
  .fact { padding: 28px 24px; }
  .fact:nth-child(odd) { border-left: 1px solid var(--border); padding-left: 24px; }
  .fact:first-child { border-left: 0; padding-left: 0; }
}

.fact__value { font-size: clamp(1.35rem, 2.6vw, 1.85rem); font-weight: 800; color: var(--ink); }
.fact__label { font-family: var(--mono); font-size: 0.74rem; text-transform: uppercase; color: var(--muted); }

/* Split sections */
.section { padding: 72px 0; }
.section + .section .split { border-top: 1px solid var(--rule); padding-top: 72px; }
.section + .section { padding-top: 0; }

@media (min-width: 860px) {
  .section { padding: 104px 0; }
  .section + .section .split { padding-top: 104px; }
}

.split { display: grid; gap: 16px; }

@media (min-width: 860px) {
  .split { grid-template-columns: 220px 1fr; gap: 48px; }
  .split__label { padding-top: 12px; }
}

.split__body { min-width: 0; }

.split h2 {
  max-width: 22ch;
  font-size: clamp(1.9rem, 4vw, 3rem);
  font-weight: 800;
  line-height: 1.02;
  color: var(--ink);
  text-wrap: balance;
}

.intro { margin-top: 16px; max-width: 54ch; color: var(--muted); font-size: 1.05rem; }

.source { margin-top: 28px; font-size: 0.88rem; color: var(--muted); }
.source a { color: var(--accent-strong); text-underline-offset: 3px; }

/* Reasons */
.reasons { display: grid; gap: 0; margin-top: 40px; counter-reset: reason; }

@media (min-width: 860px) {
  .reasons { grid-template-columns: repeat(3, 1fr); gap: 32px; }
}

.reasons li {
  counter-increment: reason;
  padding: 24px 0;
  border-top: 1px solid var(--rule);
}

.reasons li::before {
  display: block;
  margin-bottom: 14px;
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--accent-strong);
  content: "0" counter(reason);
}

.reasons h3 { font-size: 1.15rem; font-weight: 700; color: var(--ink); margin-bottom: 8px; }
.reasons p { color: var(--muted); }

/* Scope panels */
.scope { display: grid; gap: 16px; margin-top: 36px; }

@media (min-width: 860px) {
  .scope { grid-template-columns: 1.15fr 0.85fr; gap: 20px; }
}

.panel {
  padding: 28px 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface-strong);
  box-shadow: 0 24px 70px rgba(17, 26, 29, 0.06);
}

@media (min-width: 720px) {
  .panel { padding: 32px; }
}

.panel--quiet { background: transparent; box-shadow: none; }

.panel__title {
  margin-bottom: 18px;
  font-family: var(--mono);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--muted);
}

.ticks li, .dashes li {
  position: relative;
  padding: 12px 0 12px 32px;
  border-top: 1px solid var(--border);
}

.ticks li:first-child, .dashes li:first-child { border-top: 0; padding-top: 0; }

.ticks li::before {
  position: absolute;
  left: 0;
  top: 14px;
  width: 20px;
  height: 20px;
  border-radius: 999px;
  content: "";
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.5 10.5l3 3 6-7' fill='none' stroke='%23743d2b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 20px no-repeat,
    var(--accent-soft);
}

.ticks li:first-child::before { top: 2px; }

.dashes li { color: var(--muted); }

.dashes li::before {
  position: absolute;
  left: 4px;
  top: 24px;
  width: 12px;
  height: 2px;
  content: "";
  background: var(--rule);
}

.dashes li:first-child::before { top: 12px; }

/* Process rail */
.rail { display: grid; gap: 0; margin-top: 40px; }

@media (min-width: 1000px) {
  .rail { grid-template-columns: repeat(4, 1fr); }
}

.rail li {
  position: relative;
  padding: 0 0 32px 32px;
  border-left: 1px solid var(--rule);
}

.rail li:last-child { padding-bottom: 0; }

.rail li::before {
  position: absolute;
  left: -6px;
  top: 4px;
  width: 11px;
  height: 11px;
  border-radius: 999px;
  content: "";
  background: var(--accent);
  box-shadow: 0 0 0 4px var(--bg);
}

@media (min-width: 1000px) {
  .rail li {
    padding: 32px 24px 0 0;
    border-left: 0;
    border-top: 1px solid var(--rule);
  }
  .rail li::before { left: 0; top: -6px; }
}

.rail__tag {
  display: block;
  margin-bottom: 8px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--accent-strong);
}

.rail h3 { margin-bottom: 8px; font-size: 1.15rem; font-weight: 700; color: var(--ink); }
.rail p { color: var(--muted); }

/* Pricing */
.pricing { display: grid; gap: 16px; margin-top: 36px; }

@media (min-width: 860px) {
  .pricing { grid-template-columns: 1fr 1fr; gap: 20px; }
}

.price-card {
  display: grid;
  align-content: start;
  gap: 16px;
  padding: 32px 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface-strong);
}

@media (min-width: 720px) {
  .price-card { padding: 36px; }
}

.price-card p:not(.eyebrow):not(.price) { color: var(--muted); }

.price-card--dark {
  border-color: transparent;
  background: linear-gradient(180deg, #10191d 0%, #1b2a30 100%);
  color: var(--on-dark);
  box-shadow: 0 24px 70px rgba(17, 26, 29, 0.18);
}

.price-card--dark p:not(.eyebrow):not(.price) { color: var(--on-dark-muted); }
.price-card .btn { justify-self: start; margin-top: 8px; }

.price { display: flex; align-items: baseline; gap: 10px; }
.price__amount { font-size: clamp(2.6rem, 5vw, 3.4rem); font-weight: 800; line-height: 1; }
.price__per { font-family: var(--mono); font-size: 0.8rem; text-transform: uppercase; opacity: 0.75; }

/* FAQ */
.faq { margin-top: 32px; max-width: 760px; border-bottom: 1px solid var(--rule); }

.faq details { border-top: 1px solid var(--rule); }

.faq summary {
  position: relative;
  padding: 20px 40px 20px 0;
  font-size: 1.08rem;
  font-weight: 700;
  color: var(--ink);
  list-style: none;
  cursor: pointer;
}

.faq summary::-webkit-details-marker { display: none; }

.faq summary::after {
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--mono);
  font-size: 1.3rem;
  font-weight: 500;
  color: var(--accent-strong);
  content: "+";
}

.faq details[open] summary::after { content: "−"; }

.faq details p { padding: 0 0 22px; max-width: 62ch; color: var(--muted); }

/* CTA + form */
.cta {
  position: relative;
  color: var(--on-dark);
  background: linear-gradient(180deg, #10191d 0%, #17242a 100%);
  padding: 72px 0;
}

@media (min-width: 860px) {
  .cta { padding: 104px 0; }
}

.cta__grid { display: grid; gap: 40px; }

@media (min-width: 1000px) {
  .cta__grid { grid-template-columns: 0.8fr 1.2fr; gap: 64px; align-items: start; }
}

.cta__copy { display: grid; gap: 18px; }

.cta h2 {
  font-size: clamp(2rem, 4.4vw, 3.4rem);
  font-weight: 800;
  line-height: 1;
  text-wrap: balance;
}

.cta__lead { color: var(--on-dark-muted); font-size: 1.05rem; }

.next { display: grid; gap: 14px; margin-top: 12px; counter-reset: next; }

.next li {
  counter-increment: next;
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 8px;
  padding-top: 14px;
  border-top: 1px solid var(--on-dark-border);
  color: var(--on-dark-muted);
}

.next li::before {
  font-family: var(--mono);
  font-size: 0.8rem;
  font-weight: 600;
  line-height: 1.9;
  color: var(--accent-on-dark);
  content: "0" counter(next);
}

.form {
  display: grid;
  gap: 18px;
  padding: 24px;
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--text);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
}

@media (min-width: 720px) {
  .form { grid-template-columns: 1fr 1fr; padding: 36px; }
  .field--full { grid-column: 1 / -1; }
}

.field label {
  display: block;
  margin-bottom: 6px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ink);
}

.hint { font-weight: 400; color: var(--muted); }

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 46px;
  padding: 10px 14px;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  background: var(--surface-strong);
  color: var(--text);
  font: inherit;
}

.field textarea { resize: vertical; }

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: 2px solid var(--accent);
  outline-offset: 0;
  border-color: var(--accent);
}

.form__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.form__note { font-size: 0.9rem; color: var(--muted); }
.form__privacy { font-size: 0.8rem; color: var(--muted); }

/* Footer */
.footer {
  padding: 36px 0;
  border-top: 1px solid var(--border);
  background: var(--surface);
  font-size: 0.88rem;
  color: var(--muted);
}

.footer__grid { display: grid; gap: 20px; align-items: center; }

@media (min-width: 860px) {
  .footer__grid { grid-template-columns: auto 1fr auto; gap: 40px; }
}

.footer__links { display: flex; gap: 20px; }
.footer__links a { color: var(--ink); font-weight: 600; text-underline-offset: 3px; }

/* Thank-you page */
.thanks {
  display: flex;
  align-items: center;
  min-height: 70vh;
  color: var(--on-dark);
  background: linear-gradient(180deg, #10191d 0%, #17242a 55%, #223036 100%);
}

.thanks__inner { display: grid; gap: 24px; padding-top: 80px; padding-bottom: 80px; }

.thanks h1 {
  max-width: 14ch;
  font-size: clamp(2.4rem, 6vw, 4.4rem);
  font-weight: 800;
  line-height: 0.98;
}

.thanks .btn { justify-self: start; }
