:root {
  --bg: #f3efe6;
  --ink: #1c1914;
  --muted: #5c564c;
  --card: #fffdf8;
  --line: #d9d0c0;
  --accent: #0f6b5c;
  --accent-2: #c45c26;
  --shadow: 0 18px 50px rgba(28, 25, 20, 0.08);
  --font: "DM Sans", system-ui, sans-serif;
  --display: "Fraunces", Georgia, serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background:
    radial-gradient(1200px 600px at 10% -10%, #ffe7c8 0%, transparent 55%),
    radial-gradient(900px 500px at 100% 0%, #cfe8e2 0%, transparent 50%),
    var(--bg);
  line-height: 1.55;
}

a { color: var(--accent); }
.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 6vw;
  position: sticky;
  top: 0;
  backdrop-filter: blur(10px);
  background: rgba(243, 239, 230, 0.86);
  border-bottom: 1px solid transparent;
  z-index: 10;
}
.brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  line-height: 0;
}
.brand img {
  display: block;
  height: 42px;
  width: auto;
}
.nav nav { display: flex; gap: 1.1rem; align-items: center; flex-wrap: wrap; }
.nav a { text-decoration: none; color: var(--muted); font-size: 0.95rem; }
.nav a:not(.btn):hover { color: var(--ink); }
.nav a[aria-current="page"] { color: var(--ink); font-weight: 600; }
/* .nav a is more specific than .btn — force white label on teal CTA */
.nav a.btn,
.nav a.nav-cta {
  color: #fff;
  background-color: var(--accent);
  text-decoration: none;
}
.nav a.btn:hover,
.nav a.nav-cta:hover {
  color: #fff;
  filter: brightness(1.05);
}

.hero, section { padding: 4.5rem 6vw; max-width: 1100px; margin: 0 auto; }
.hero { padding-top: 5.5rem; }
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent);
  margin: 0 0 1rem;
}
h1, h2, h3 { font-family: var(--display); line-height: 1.15; margin: 0 0 1rem; }
h1 { font-size: clamp(2.4rem, 6vw, 4.2rem); max-width: 14ch; }
h2 { font-size: clamp(1.8rem, 3vw, 2.5rem); }
.lede { font-size: 1.15rem; max-width: 42rem; color: var(--muted); }
.fine { font-size: 0.9rem; color: var(--muted); }
.muted { color: var(--muted); }

.cta-row { display: flex; gap: 0.75rem; flex-wrap: wrap; margin: 1.75rem 0 0.75rem; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  border: 0;
  border-radius: 999px;
  padding: 0.85rem 1.35rem;
  font-weight: 600;
  cursor: pointer;
}
.btn:hover { filter: brightness(1.05); }
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line);
}
.btn-sm { padding: 0.55rem 0.95rem; font-size: 0.9rem; }

.grid3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}
.grid3 article, .panel, .calc, .lead-form {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 1.35rem;
  box-shadow: var(--shadow);
}
.strip { max-width: 1100px; }
.pricing article.featured {
  border-color: var(--accent);
  transform: translateY(-4px);
}
.price { font-family: var(--display); font-size: 1.6rem; margin: 0.5rem 0 1rem; }
.price span { font-size: 1rem; color: var(--muted); font-family: var(--font); }
.pricing ul { padding-left: 1.1rem; color: var(--muted); }
.checks { padding-left: 1.1rem; }

.calc {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 1.25rem;
}
.calc label { display: flex; flex-direction: column; gap: 0.35rem; font-size: 0.92rem; }
.calc input, .lead-form input, .lead-form textarea {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.7rem 0.8rem;
  font: inherit;
  background: #fff;
}
.calc-out {
  grid-column: 1 / -1;
  background: #e7f3ef;
  border-radius: 14px;
  padding: 1rem 1.2rem;
}
.big { font-family: var(--display); font-size: 2.4rem; margin: 0.2rem 0; }

.lead-form { display: grid; gap: 0.75rem; max-width: 32rem; margin-top: 1.25rem; }
.end { padding-bottom: 5rem; }

.section-lede {
  margin: -0.35rem 0 1.5rem;
  max-width: 40rem;
  color: var(--muted);
  font-size: 1.05rem;
}

.outcome-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
}
.outcome-list li {
  display: grid;
  gap: 0.35rem;
  padding: 1.35rem 0;
  border-bottom: 1px solid var(--line);
  animation: confirmIn 0.55s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.outcome-list li:nth-child(2) { animation-delay: 0.05s; }
.outcome-list li:nth-child(3) { animation-delay: 0.1s; }
.outcome-list li:nth-child(4) { animation-delay: 0.15s; }
.outcome-list strong {
  font-family: var(--display);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--ink);
}
.outcome-list span {
  color: var(--muted);
  max-width: 48rem;
}

.fit-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-top: 0.5rem;
}
.fit-col {
  padding: 1.5rem 1.4rem;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: var(--card);
}
.fit-yes { border-top: 3px solid var(--accent); }
.fit-no { border-top: 3px solid var(--line); }
.fit-col h3 {
  font-size: 1.25rem;
  margin-bottom: 0.85rem;
}
.fit-col .checks { margin: 0; color: var(--muted); }
.fit-note { margin: 1rem 0 0; }

.path-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1.25rem;
}
.path-steps li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  align-items: start;
}
.path-num {
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: var(--display);
  font-weight: 700;
  color: var(--accent);
  background: #e7f3ef;
  border: 1px solid rgba(15, 107, 92, 0.22);
}
.path-steps h3 {
  font-size: 1.2rem;
  margin: 0.15rem 0 0.35rem;
}
.path-steps p {
  margin: 0;
  color: var(--muted);
  max-width: 40rem;
}

.faq-list {
  display: grid;
  gap: 0.65rem;
  margin-top: 0.5rem;
}
.faq-list details {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--card);
  padding: 0.15rem 1.1rem;
  transition: border-color 0.2s ease;
}
.faq-list details[open] {
  border-color: rgba(15, 107, 92, 0.35);
}
.faq-list summary {
  cursor: pointer;
  list-style: none;
  font-weight: 600;
  padding: 1rem 0;
  color: var(--ink);
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: "+";
  float: right;
  color: var(--accent);
  font-weight: 700;
}
.faq-list details[open] summary::after { content: "–"; }
.faq-list details p {
  margin: 0 0 1.1rem;
  color: var(--muted);
  max-width: 48rem;
  line-height: 1.55;
}

.demo-hero { padding-bottom: 1.5rem; }
.demo-hero h1 { max-width: 16ch; }
.demo-why {
  margin: 1.5rem 0 0;
  padding-left: 1.15rem;
  color: var(--muted);
  max-width: 40rem;
}
.demo-why li { margin: 0.4rem 0; }
.demo-stage {
  padding-top: 0;
  max-width: 1100px;
  margin: 0 auto;
  padding-left: 6vw;
  padding-right: 6vw;
  padding-bottom: 2rem;
}
.demo-wrap {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 1.25rem;
}
.demo-card { margin: 0; }
.demo-card-title {
  font-size: 1.35rem;
  margin-top: 0;
}
.doc-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--line);
  gap: 0.75rem;
}
.badge {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 0.25rem 0.5rem;
  border-radius: 999px;
}
.ok { background: #d8f3e7; color: #0f6b5c; }
.miss { background: #fde8dc; color: #9a3f12; }
.log {
  font-family: ui-monospace, Consolas, monospace;
  font-size: 0.82rem;
  color: var(--muted);
  max-height: 220px;
  overflow: auto;
}
.bar {
  height: 10px;
  background: #ebe4d8;
  border-radius: 999px;
  overflow: hidden;
  margin: 0.75rem 0 0.25rem;
}
.bar > span {
  display: block;
  height: 100%;
  background: var(--accent);
  width: 0%;
  transition: width 0.4s ease;
}
.demo-prod-note { margin-top: 1rem; }
.production-checks { margin: 0.5rem 0 1.25rem; color: var(--muted); }

.convert-band {
  max-width: 1100px;
  margin: 1rem auto 3rem;
  padding: 2.75rem 6vw;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(15, 107, 92, 0.06) 0%, transparent 70%);
}
.convert-band h2 { max-width: 14ch; }
.convert-band .lede { margin-bottom: 0.25rem; }

.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.55s cubic-bezier(0.22, 1, 0.36, 1), transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .outcome-list li { animation: none; }
  .form-confirm, .form-confirm-mark { animation: none; }
}

.form-confirm {
  position: relative;
  max-width: 34rem;
  margin-top: 1.25rem;
  padding: 2.15rem 2rem 1.9rem 2.15rem;
  border-radius: 4px 18px 18px 4px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  background:
    radial-gradient(420px 180px at 100% 0%, rgba(15, 107, 92, 0.1) 0%, transparent 60%),
    linear-gradient(165deg, rgba(255, 253, 248, 0.96) 0%, var(--card) 55%),
    var(--card);
  box-shadow: var(--shadow);
  animation: confirmIn 0.6s cubic-bezier(0.22, 1, 0.36, 1) both;
  overflow: hidden;
}
.form-confirm[hidden] { display: none; }
.form-confirm-brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 1.25rem;
}
.form-confirm-mark {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  background: #e7f3ef;
  color: var(--accent);
  border: 1px solid rgba(15, 107, 92, 0.22);
  animation: markPop 0.55s cubic-bezier(0.22, 1, 0.36, 1) 0.12s both;
}
.form-confirm-mark svg {
  width: 1.15rem;
  height: 1.15rem;
  stroke: currentColor;
  fill: none;
  stroke-width: 2.25;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.form-confirm-brand-text {
  display: grid;
  gap: 0.12rem;
}
.form-confirm-brand-text strong {
  font-family: var(--display);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.form-confirm-eyebrow {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.11em;
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--accent);
}
.form-confirm h3 {
  font-family: var(--display);
  font-size: clamp(1.55rem, 3.2vw, 2rem);
  margin: 0 0 0.75rem;
  letter-spacing: -0.02em;
  max-width: 16ch;
  line-height: 1.15;
}
.form-confirm > p {
  margin: 0;
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 36ch;
  line-height: 1.55;
}
.form-confirm-next {
  margin: 1.35rem 0 0;
  padding-top: 1.1rem;
  border-top: 1px solid var(--line);
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.45;
}
.form-confirm-next strong {
  color: var(--ink);
  font-weight: 600;
}
.form-confirm.is-error {
  border-left-color: #9b1c2e;
  background:
    radial-gradient(420px 180px at 100% 0%, rgba(155, 28, 46, 0.08) 0%, transparent 60%),
    var(--card);
}
.form-confirm.is-error .form-confirm-mark {
  background: #f8e8ea;
  color: #9b1c2e;
  border-color: rgba(155, 28, 46, 0.2);
}
.form-confirm.is-error .form-confirm-eyebrow { color: #9b1c2e; }
@keyframes confirmIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes markPop {
  from { opacity: 0; transform: scale(0.7); }
  to { opacity: 1; transform: scale(1); }
}

footer {
  padding: 2rem 6vw 3rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  text-align: center;
}

@media (max-width: 900px) {
  .demo-wrap { grid-template-columns: 1fr; }
  .fit-split { grid-template-columns: 1fr; }
}

@media (max-width: 860px) {
  .grid3, .calc { grid-template-columns: 1fr; }
  .nav nav a:not(.nav-cta) { display: none; }
  h1 { max-width: none; }
  .demo-hero h1 { max-width: none; }
}
