:root {
  --bg: #fbf8f2;
  --surface: #ffffff;
  --tint: #f1ece1;
  --ink: #14231f;
  --muted: #5b6763;
  --line: #e2dccf;
  --primary: #135c48;
  --primary-dark: #0c4535;
  --primary-pale: #e3f0ea;
  --accent: #f9c65b;
  --accent-dark: #e8ad38;
  --dark: #0c1f1b;
  --radius: 14px;
  --page: min(1160px, calc(100% - 40px));
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { font-family: "Fraunces", Georgia, serif; font-weight: 600; line-height: 1.12; margin: 0 0 .5em; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.4rem, 5.2vw, 4rem); }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.8rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }
a { color: var(--primary); }
.wrap { width: var(--page); margin-inline: auto; }
.muted { color: var(--muted); }
.small { font-size: .9rem; }

.eyebrow {
  display: inline-block;
  font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--primary);
  background: var(--primary-pale);
  padding: .35em .8em; border-radius: 999px; margin-bottom: 1.1rem;
}
.eyebrow-light { color: var(--accent); background: rgba(242,169,59,.12); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .4em;
  font: 700 1rem/1 "Manrope", sans-serif;
  padding: .95em 1.5em; border-radius: 999px; border: 2px solid var(--primary);
  background: var(--primary); color: #fff; text-decoration: none; cursor: pointer;
  transition: background .2s, transform .2s, border-color .2s;
}
.btn:hover { background: var(--primary-dark); border-color: var(--primary-dark); transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--primary); }
.btn-ghost:hover { background: var(--primary-pale); border-color: var(--primary); }
.btn-accent { background: var(--accent); border-color: var(--accent); color: var(--dark); }
.btn-accent:hover { background: var(--accent-dark); border-color: var(--accent-dark); }
.btn-sm { padding: .7em 1.2em; font-size: .9rem; }

/* Nav */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(251,248,242,.85); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: .5rem; font: 700 1.35rem "Manrope", sans-serif; color: var(--ink); text-decoration: none; letter-spacing: -.02em; }
.brand-mark { display: block; width: 36px; height: 36px; }
.brand-mark-sm { width: 28px; height: 28px; }
.brand-small { font-size: 1.15rem; }
.nav-links { display: flex; gap: 1.8rem; }
.nav-links a { color: var(--ink); text-decoration: none; font-weight: 500; font-size: .95rem; }
.nav-links a:hover { color: var(--primary); }

/* Hero */
.hero { padding: clamp(3.5rem, 8vw, 6.5rem) 0; background: radial-gradient(900px 500px at 90% 0%, var(--primary-pale), transparent 70%); }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 3.5rem; align-items: center; }
.lede { font-size: 1.15rem; color: var(--muted); max-width: 36rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin: 1.8rem 0 1.4rem; }
.hero-points { display: flex; flex-wrap: wrap; gap: .5rem 1.4rem; list-style: none; padding: 0; margin: 0; font-size: .92rem; color: var(--muted); font-weight: 600; }
.hero-points li::before { content: "✓"; color: var(--primary); margin-right: .45em; }

.hero-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: 20px;
  padding: 1.4rem; box-shadow: 0 30px 60px -30px rgba(15,92,77,.35);
  transform: rotate(1.2deg);
}
.hc-head { display: flex; align-items: center; gap: .35rem; margin-bottom: 1rem; }
.dot { width: 10px; height: 10px; border-radius: 50%; background: var(--line); }
.hc-title { margin-left: .6rem; font-size: .82rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.hc-row { display: flex; justify-content: space-between; padding: .8rem 0; border-top: 1px dashed var(--line); font-size: .95rem; }
.hc-row b { font-family: "Fraunces", serif; font-weight: 600; }
.hc-foot { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; margin-top: 1rem; }
.hc-foot > div { background: var(--tint); border-radius: 12px; padding: .8rem 1rem; }
.hc-foot small { display: block; color: var(--muted); font-size: .75rem; text-transform: uppercase; letter-spacing: .08em; font-weight: 700; }
.hc-foot strong { font-size: 1.05rem; }
.ok { color: var(--primary); }

/* Sections */
.section { padding: clamp(4rem, 9vw, 7rem) 0; }
.section-head { max-width: 44rem; margin-bottom: 3rem; }
.section-tint { background: var(--tint); }
.section-dark { background: var(--dark); color: #eef3f1; }
.section-dark h2, .section-dark h3 { color: #fff; }

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.8rem; transition: transform .25s, box-shadow .25s; }
.card:hover { transform: translateY(-4px); box-shadow: 0 20px 40px -24px rgba(20,35,31,.3); }
.card p { color: var(--muted); margin: 0; }
.num { display: inline-block; font: 600 .85rem "Manrope", sans-serif; color: var(--accent-dark); margin-bottom: 1rem; letter-spacing: .1em; }

.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; counter-reset: s; }
.steps li { position: relative; padding: 1.8rem 1.5rem; border: 1px solid rgba(255,255,255,.12); border-radius: var(--radius); background: rgba(255,255,255,.03); }
.steps p { color: #a9b8b3; margin: 0; font-size: .95rem; }
.step-n { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--accent); color: var(--dark); font-weight: 800; margin-bottom: 1.2rem; }

/* Eligibility check */
.check-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 3.5rem; align-items: start; }
.checklist { list-style: none; padding: 0; margin: 1.5rem 0 0; display: grid; gap: .7rem; }
.checklist li { padding-left: 1.8rem; position: relative; font-weight: 600; }
.checklist li::before { content: ""; position: absolute; left: 0; top: .45em; width: 1rem; height: 1rem; border-radius: 50%; background: var(--primary-pale); box-shadow: inset 0 0 0 4px var(--primary); }

.check-form { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 2rem; box-shadow: 0 30px 60px -40px rgba(20,35,31,.4); }
.progress { height: 6px; background: var(--tint); border-radius: 999px; overflow: hidden; margin-bottom: 1.8rem; }
.progress span { display: block; height: 100%; width: 25%; background: linear-gradient(90deg, var(--primary), var(--accent)); transition: width .35s ease; }
.q { display: none; border: 0; margin: 0; padding: 0; min-width: 0; }
.q.active { display: block; animation: fade .3s ease; }
.q legend { font: 600 1.35rem "Fraunces", serif; margin-bottom: 1.2rem; padding: 0; }
.q legend small { font: 500 .85rem "Manrope", sans-serif; color: var(--muted); }
.options { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; }
.options label { display: flex; align-items: center; gap: .6rem; padding: .85rem 1rem; border: 1.5px solid var(--line); border-radius: 12px; cursor: pointer; font-weight: 500; transition: border-color .15s, background .15s; }
.options label:hover { border-color: var(--primary); }
.options label:has(input:checked) { border-color: var(--primary); background: var(--primary-pale); }
.options input { accent-color: var(--primary); }
.fields { display: grid; gap: 1rem; }
.fields label { display: grid; gap: .35rem; font-weight: 600; font-size: .9rem; }
.fields input { font: inherit; padding: .8rem 1rem; border: 1.5px solid var(--line); border-radius: 12px; background: var(--bg); }
.fields input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-pale); }
.form-error { color: #b3261e; font-weight: 600; font-size: .9rem; min-height: 1.4em; margin: 1rem 0 0; }
.form-nav { display: flex; justify-content: space-between; gap: .8rem; margin-top: .6rem; }
.form-nav #nextBtn { margin-left: auto; }
@keyframes fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* FAQ */
.faq-wrap { display: grid; grid-template-columns: .7fr 1.3fr; gap: 3rem; align-items: start; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: .8rem; }
.faq summary { list-style: none; cursor: pointer; padding: 1.2rem 1.4rem; font-weight: 700; display: flex; justify-content: space-between; gap: 1rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.4rem; line-height: 1; color: var(--primary); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 1.4rem 1.3rem; margin: 0; color: var(--muted); }

/* Final CTA */
.final-cta { background: var(--primary); color: #fff; padding: clamp(3.5rem, 7vw, 5rem) 0; }
.final-inner { display: flex; align-items: center; justify-content: space-between; gap: 2rem; flex-wrap: wrap; }
.final-inner h2 { color: #fff; margin: 0; max-width: 32rem; }

/* Footer */
.footer { padding: 2.5rem 0; border-top: 1px solid var(--line); }
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 1.5rem; flex-wrap: wrap; }
.footer-inner p { margin: .4rem 0 0; }
.footer-links { display: flex; gap: 1.4rem; align-items: center; }
.footer-links a { color: var(--ink); text-decoration: none; font-weight: 600; font-size: .92rem; }

/* Reveal */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }

/* Responsive */
@media (max-width: 900px) {
  .hero-grid, .check-grid, .faq-wrap { grid-template-columns: 1fr; gap: 2.5rem; }
  .cards { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .nav-links { display: none; }
  .hero-card { transform: none; }
}
@media (max-width: 560px) {
  .steps, .options { grid-template-columns: 1fr; }
  .check-form { padding: 1.4rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* Book a call */
.nav-actions, .final-actions { display: flex; gap: .6rem; flex-wrap: wrap; }
.btn-outline-light { background: transparent; border-color: rgba(255,255,255,.6); color: #fff; }
.btn-outline-light:hover { background: rgba(255,255,255,.12); border-color: #fff; }
@media (max-width: 560px) {
  .nav-actions .btn-ghost { display: none; }
}

/* Honeypot (spam trap) */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Accessibility */
.skip-link { position: absolute; left: 1rem; top: -3rem; z-index: 100; background: var(--ink); color: #fff; padding: .6rem 1rem; border-radius: 8px; font-weight: 700; text-decoration: none; transition: top .15s; }
.skip-link:focus { top: 1rem; }
:focus-visible { outline: 3px solid var(--accent-dark); outline-offset: 3px; border-radius: 4px; }
.btn:focus-visible { outline-offset: 3px; border-radius: 999px; }
.options label:has(input:focus-visible) { outline: 3px solid var(--accent-dark); outline-offset: 2px; }
.options input:focus-visible { outline: none; }
section[id], details[id] { scroll-margin-top: 84px; }

/* Simple document pages (privacy, 404) */
.doc { max-width: 44rem; }
.doc h2 { font-size: 1.4rem; margin-top: 2.2rem; }
.doc ul { padding-left: 1.2rem; }
.doc li { margin-bottom: .4rem; }
.not-found { text-align: center; min-height: 60vh; display: grid; place-content: center; justify-items: center; gap: .6rem; }

/* Industries grid */
.section-flush { padding-top: 0; }
.ind-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.ind-grid li { border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.ind-grid a { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1.2rem 1.4rem; color: var(--ink); text-decoration: none; font-weight: 600; background: var(--surface); transition: background .15s, color .15s; }
.ind-arrow { color: var(--primary); font-size: 1.15rem; transition: transform .15s, color .15s; }
.ind-grid a:hover, .ind-grid a:focus-visible { background: var(--primary); color: #fff; }
.ind-grid a:hover .ind-arrow, .ind-grid a:focus-visible .ind-arrow { color: var(--accent); transform: translate(2px, -2px); }

/* Subpages */
.hero-sub { padding-block: clamp(2.5rem, 6vw, 4.5rem); }
.hero-sub h1 { max-width: 20ch; }
.crumbs { display: flex; flex-wrap: wrap; gap: .5rem; font-size: .88rem; color: var(--muted); margin-bottom: 1.4rem; }
.crumbs a { color: var(--muted); }
.crumbs [aria-current] { color: var(--ink); font-weight: 600; }
.cards-auto { grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); }
.card h3 { font-size: 1.15rem; }
.card-link { color: var(--ink); text-decoration: none; display: flex; flex-direction: column; gap: .4rem; }
.card-link p { flex: 1; }
.card-more { color: var(--primary); font-weight: 700; font-size: .92rem; margin-top: .6rem; }
.hub-other { margin-top: 2rem; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; }
.ticks { list-style: none; padding: 0; margin: 1.2rem 0 0; display: grid; gap: .8rem; }
.ticks li { position: relative; padding-left: 1.8rem; }
.ticks li::before { content: "✓"; position: absolute; left: 0; color: var(--primary); font-weight: 800; }
.ticks-light li { color: #dce6e2; }
.ticks-light li::before { color: var(--accent); }

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