:root {
  --brand: #0f6e5a;
  --brand-dark: #0a4f41;
  --brand-tint: #e8f5f1;
  --ink: #15211e;
  --muted: #55625f;
  --line: #dde5e2;
  --bg: #ffffff;
  --bg-alt: #f5f8f7;
  --radius: 12px;
  --max: 1120px;
  --narrow: 760px;
  font-size: 17px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
}
img { max-width: 100%; height: auto; }
a { color: var(--brand); }
a:hover { color: var(--brand-dark); }
h1, h2, h3 { line-height: 1.2; letter-spacing: -0.01em; }
h1 { font-size: clamp(2rem, 4.5vw, 3rem); margin: 0 0 .5em; }
h2 { font-size: clamp(1.4rem, 3vw, 1.85rem); margin: 2em 0 .6em; }
h3 { font-size: 1.1rem; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 16px; }
.wrap.narrow, .narrow { max-width: var(--narrow); }
.center { text-align: center; }
.sub { color: var(--muted); max-width: 640px; margin: 0 auto 2rem; }
.small { font-size: .85rem; color: var(--muted); }

.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; background: #fff; padding: 8px 12px; z-index: 10; }

/* Header */
.site-header { border-bottom: 1px solid var(--line); background: var(--bg); position: sticky; top: 0; z-index: 5; }
.header-inner { display: flex; align-items: center; gap: 24px; height: 64px; }
.logo { display: flex; align-items: center; gap: 8px; font-weight: 700; color: var(--ink); text-decoration: none; }
.site-header nav { margin-left: auto; }
.site-header nav ul { display: flex; gap: 20px; list-style: none; margin: 0; padding: 0; }
.site-header nav a { color: var(--ink); text-decoration: none; font-weight: 500; }
.site-header nav a[aria-current] { color: var(--brand); }
@media (max-width: 760px) {
  .site-header nav { display: none; }
  .site-header .btn-small { margin-left: auto; }
}

/* Buttons */
.btn {
  display: inline-block; background: var(--brand); color: #fff; border: 0; cursor: pointer;
  padding: 12px 22px; border-radius: 999px; font-weight: 600; text-decoration: none; font-size: 1rem;
}
.btn:hover { background: var(--brand-dark); color: #fff; }
.btn-small { padding: 8px 16px; font-size: .9rem; }
.btn-ghost { background: transparent; color: var(--brand); box-shadow: inset 0 0 0 2px var(--brand); }
.btn-ghost:hover { background: var(--brand-tint); color: var(--brand-dark); }
.btn-light { background: #fff; color: var(--brand-dark); }
.btn-light:hover { background: var(--brand-tint); color: var(--brand-dark); }

/* Breadcrumbs */
.breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 16px 16px 0; margin: 0; font-size: .85rem; color: var(--muted); }
.breadcrumbs.wrap ol { padding-left: 0; }
.breadcrumbs li + li::before { content: "›"; margin-right: 6px; }

/* Hero */
.hero { padding: 40px 0 24px; }
.hero-home { padding: 72px 0 32px; text-align: center; background: linear-gradient(180deg, var(--brand-tint), var(--bg)); }
.eyebrow { color: var(--brand); font-weight: 600; text-transform: uppercase; letter-spacing: .06em; font-size: .8rem; margin: 0 0 .75rem; }
.lead { font-size: 1.2rem; color: var(--muted); margin: 0 0 1.5rem; }
.meta { color: var(--muted); font-size: .9rem; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-home .hero-ctas { justify-content: center; }

/* Quick answer box — the passage answer engines quote */
.answer {
  background: var(--bg-alt); border-left: 4px solid var(--brand); border-radius: var(--radius);
  padding: 18px 22px; margin: 8px 0 24px;
}
.answer p { margin: 0; }
.answer .answer-label { font-weight: 700; font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; color: var(--brand); margin-bottom: 6px; }

/* Content */
.content { padding-bottom: 32px; }
.content > section { margin-bottom: 24px; }
.band { background: var(--bg-alt); padding: 8px 0 40px; margin: 40px 0; }
.note { background: #fff8e6; border: 1px solid #f1dfae; border-radius: 8px; padding: 10px 14px; font-size: .9rem; }
.formula { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; background: var(--bg-alt); padding: 12px 16px; border-radius: 8px; font-size: .9rem; }

ul.checks { list-style: none; padding: 0; }
ul.checks li { position: relative; padding-left: 30px; margin: 10px 0; }
ul.checks li::before { content: "✓"; position: absolute; left: 0; top: 0; color: var(--brand); font-weight: 700; }

ol.steps { counter-reset: s; list-style: none; padding: 0; }
ol.steps li { counter-increment: s; position: relative; padding-left: 44px; margin: 16px 0; }
ol.steps li::before {
  content: counter(s); position: absolute; left: 0; top: 0; width: 30px; height: 30px; border-radius: 50%;
  background: var(--brand); color: #fff; font-weight: 700; display: grid; place-items: center; font-size: .9rem;
}

.table-scroll { overflow-x: auto; margin: 1rem 0; }
table { width: 100%; border-collapse: collapse; font-size: .95rem; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { background: var(--bg-alt); }

/* Cards */
.card-grid { list-style: none; padding: 0; margin: 1.5rem 0; display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.card a {
  display: block; height: 100%; padding: 20px; border: 1px solid var(--line); border-radius: var(--radius);
  text-decoration: none; color: var(--ink); background: var(--bg); transition: border-color .15s, box-shadow .15s;
}
.card a:hover { border-color: var(--brand); box-shadow: 0 4px 16px rgba(15,110,90,.08); }
.card strong { display: block; margin-bottom: 6px; color: var(--brand-dark); }
.card span { color: var(--muted); font-size: .92rem; }

/* FAQ */
.faq { padding: 8px 16px 32px; }
.faq details { border-bottom: 1px solid var(--line); padding: 6px 0; }
.faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.4rem; color: var(--brand); }
.faq details[open] summary::after { content: "–"; }
.faq summary h3 { margin: 10px 0; font-size: 1.05rem; }
.faq-a p { margin: 0 0 12px; color: #2b3835; }

.related h2 { font-size: 1.3rem; }

/* Form */
.demo-form { display: grid; gap: 14px; margin: 24px 0; }
.demo-form label { display: grid; gap: 6px; font-weight: 600; font-size: .95rem; }
.demo-form input, .demo-form select, .demo-form textarea {
  font: inherit; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; background: #fff;
}
.demo-form button { justify-self: start; }

/* CTA band */
.cta-band { background: var(--brand); color: #fff; text-align: center; padding: 48px 0; margin-top: 40px; }
.cta-band h2 { margin-top: 0; }
.cta-band p { opacity: .9; }

/* Footer */
.site-footer { background: #0e1a17; color: #c9d3d0; padding: 48px 0 16px; font-size: .92rem; }
.site-footer a { color: #e6eeeb; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.site-footer .logo { color: #fff; }
.footer-grid { display: grid; gap: 32px; grid-template-columns: 1.4fr repeat(3, 1fr); }
.footer-grid h2 { font-size: .95rem; color: #fff; margin: 0 0 12px; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin: 6px 0; }
.footer-base { border-top: 1px solid #22302c; margin-top: 32px; padding-top: 16px; color: #8a9894; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }
