:root {
  --paper: #f4f0e7;
  --paper-2: #fffdf8;
  --ink: #1c1712;
  --muted: #5e564c;
  --line: #ddd4c6;
  --teal: #0e6b62;
  --teal-deep: #0a4e48;
  --coral: #d4532b;
  --kept: #1d6b45;
  --shadow: 0 18px 50px rgba(28, 23, 18, 0.08);
  --radius: 22px;
  --max: 1120px;
  --font: "Outfit", "Avenir Next", "Segoe UI", sans-serif;
  --display: "Fraunces", "Iowan Old Style", Georgia, serif;
}

* { box-sizing: border-box; }

[hidden] { display: none !important; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(900px 420px at 100% -10%, rgba(14, 107, 98, 0.12), transparent 60%),
    radial-gradient(700px 380px at -10% 20%, rgba(212, 83, 43, 0.1), transparent 55%),
    var(--paper);
  font-family: var(--font);
  font-size: 1.05rem;
  line-height: 1.55;
}

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

a { color: var(--teal-deep); }

a:hover { color: var(--coral); }

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  background: var(--ink);
  color: white;
  padding: 0.5rem 0.8rem;
  z-index: 10;
}

.skip:focus { top: 0.6rem; }

.wrap {
  width: min(var(--max), calc(100% - 2.4rem));
  margin: 0 auto;
}

header.site {
  position: sticky;
  top: 0;
  z-index: 5;
  backdrop-filter: blur(16px);
  background: rgba(244, 240, 231, 0.86);
  border-bottom: 1px solid rgba(28, 23, 18, 0.06);
}

.bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4.4rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--ink);
  text-decoration: none;
  font-weight: 650;
  letter-spacing: -0.02em;
}

.brand small {
  display: block;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.68rem;
}

.mark {
  width: 2.3rem;
  height: 2.3rem;
}

nav {
  display: flex;
  align-items: center;
  gap: 1.1rem;
}

nav a {
  color: var(--ink);
  text-decoration: none;
  font-weight: 560;
}

nav a[aria-current="page"] { color: var(--teal-deep); }

.button, button.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  border: 0;
  border-radius: 999px;
  padding: 0.72rem 1.15rem;
  background: var(--ink);
  color: #f7f3eb;
  text-decoration: none;
  font: inherit;
  font-weight: 620;
  cursor: pointer;
}

.button.secondary {
  background: transparent;
  color: var(--ink);
  box-shadow: inset 0 0 0 1.5px var(--ink);
}

.button.teal { background: var(--teal); color: white; }

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

.button:disabled, button.button:disabled {
  opacity: 0.55;
  cursor: progress;
  transform: none;
}

.banner {
  background: #fde7df;
  color: #9a3412;
  border-radius: 12px;
  padding: 0.7rem 0.85rem;
  margin: 0 0 0.8rem;
}

.button:focus-visible, a:focus-visible, input:focus-visible, button:focus-visible {
  outline: 3px solid var(--coral);
  outline-offset: 3px;
}

.hero {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 2.5rem;
  align-items: center;
  padding: 3.2rem 0 2rem;
}

.kicker {
  margin: 0 0 0.7rem;
  color: var(--teal-deep);
  font-weight: 680;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.78rem;
}

h1, h2, h3 { font-family: var(--display); font-weight: 560; letter-spacing: -0.03em; line-height: 1.08; }

h1 { font-size: clamp(2.7rem, 5vw, 4.6rem); margin: 0 0 1rem; }

h2 { font-size: clamp(2rem, 3.5vw, 3.1rem); margin: 0 0 0.7rem; }

h3 { font-size: 1.35rem; margin: 0.4rem 0; }

.lede { font-size: 1.16rem; color: var(--muted); margin: 0 0 1.4rem; max-width: 38rem; }

.actions { display: flex; flex-wrap: wrap; gap: 0.7rem; }

.panel {
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1rem;
}

.section { padding: 3.4rem 0; }

.section header.block { max-width: 40rem; margin-bottom: 1.6rem; }

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

.pipeline li {
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 1rem 1rem 1.1rem;
  min-height: 100%;
}

.pipeline .step {
  display: inline-grid;
  place-items: center;
  width: 1.7rem;
  height: 1.7rem;
  border-radius: 50%;
  background: var(--ink);
  color: white;
  font-size: 0.82rem;
  font-weight: 700;
}

.icon { width: 4.4rem; height: 4.4rem; margin: 0.7rem 0 0.2rem; }

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.stack {
  border-radius: var(--radius);
  padding: 1.2rem;
  border: 1px solid var(--line);
  background: var(--paper-2);
}

.stack.kept { box-shadow: inset 4px 0 0 var(--kept); }

.stack.renamed { box-shadow: inset 4px 0 0 var(--coral); }

.file {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 0.7rem;
  align-items: center;
  padding: 0.7rem 0;
  border-top: 1px solid var(--line);
}

.file:first-of-type { border-top: 0; }

.pill {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-radius: 999px;
  padding: 0.2rem 0.5rem;
}

.pill.keep { background: #e5f4ec; color: var(--kept); }

.pill.go { background: #fde7df; color: #9a3412; }

code, .mono {
  font-family: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.92em;
}

.preserve {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 1.2rem;
  align-items: center;
}

.note {
  color: var(--muted);
  font-size: 0.95rem;
}

.price-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 1rem;
  align-items: stretch;
}

.columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.4rem;
  align-items: start;
}

.price {
  font-family: var(--display);
  font-size: clamp(3.4rem, 6vw, 5.2rem);
  letter-spacing: -0.04em;
  margin: 0.2rem 0;
}

.price span { font-family: var(--font); font-size: 1.1rem; color: var(--muted); letter-spacing: 0; }

.checklist { margin: 0; padding: 0; list-style: none; }

.checklist li {
  padding: 0.55rem 0 0.55rem 1.6rem;
  position: relative;
}

.checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.85rem;
  width: 0.7rem;
  height: 0.4rem;
  border-left: 2px solid var(--teal);
  border-bottom: 2px solid var(--teal);
  transform: rotate(-45deg);
}

.year {
  display: grid;
  place-items: center;
  text-align: center;
  background: var(--ink);
  color: #f6f1e8;
  border-radius: var(--radius);
  padding: 1.4rem;
}

.year p { color: #d9d0c3; }

form, .card {
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.3rem;
}

label { display: block; font-weight: 640; margin: 0.85rem 0 0.3rem; }

input[type="text"], input[type="email"] {
  width: 100%;
  border: 1.5px solid var(--line);
  background: white;
  border-radius: 12px;
  padding: 0.75rem 0.8rem;
  font: inherit;
  color: var(--ink);
}

.check {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
  font-weight: 500;
  margin: 1rem 0;
}

.check input { margin-top: 0.3rem; }

.error { color: #9a3412; min-height: 1.2rem; margin: 0; }

.summary {
  display: grid;
  gap: 0.4rem;
  margin: 0 0 1rem;
}

.summary div {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.55rem 0;
  border-bottom: 1px solid var(--line);
}

.confirm-mark {
  width: 4.5rem;
  height: 4.5rem;
}

.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.9rem;
  margin-bottom: 1.4rem;
}

.feature {
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 0.85rem 0.85rem 1.1rem;
}

.feature svg { margin-bottom: 0.4rem; }

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

.doc {
  display: grid;
  gap: 1rem;
  max-width: 46rem;
  margin-top: 1.6rem;
}

.doc section {
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.2rem 1.3rem 1.35rem;
}

.doc h2 { font-size: clamp(1.6rem, 2.4vw, 2.1rem); }

.doc h3 { margin-top: 1.1rem; }

.doc p:last-child, .doc ul:last-child { margin-bottom: 0; }

.doc ul { margin: 0.4rem 0 0.8rem; padding-left: 1.15rem; }

.doc li { margin: 0.25rem 0; }

pre {
  margin: 0.6rem 0 0.2rem;
  padding: 0.85rem 1rem;
  overflow-x: auto;
  background: var(--ink);
  color: #f6f1e8;
  border-radius: 14px;
  font-family: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.86rem;
  line-height: 1.5;
}

.packages {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.8rem;
}

.package {
  display: block;
  text-decoration: none;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 0.9rem 1rem;
  background: #fff;
}

.package:hover { border-color: var(--teal); color: var(--ink); }

.package strong { display: block; font-family: var(--display); font-size: 1.25rem; font-weight: 560; }

.package span { color: var(--muted); font-size: 0.92rem; }

footer.site {
  border-top: 1px solid var(--line);
  padding: 1.6rem 0 2.4rem;
  color: var(--muted);
}

.foot {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

@media (max-width: 860px) {
  .hero, .split, .preserve, .price-grid, .pipeline, .columns, .features, .packages { grid-template-columns: 1fr; }
  nav .hide-sm { display: none; }
  h1 { font-size: 2.5rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .button:hover { transform: none; }
}
