:root {
  --white: #F7F6F3;
  --surface: #EFEEEA;
  --dark: #0F1416;
  --text: #141414;
  --text-muted: #6E6E6A;
  --text-light: #A3A39E;
  --petrol: #2A4A57;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --pad: clamp(28px, 6.5vw, 48px);
  --inset-l: max(var(--pad), env(safe-area-inset-left, 0px));
  --inset-r: max(var(--pad), env(safe-area-inset-right, 0px));
  --nav-h: 56px;
  --max: 1320px;
  --touch: 48px;
  --section-y: 72px;
  --mobile-bar: 68px;
  --spring: cubic-bezier(0.32, 0.72, 0, 1);
}

@media (min-width: 768px) {
  :root {
    --nav-h: 64px;
    --section-y: clamp(64px, 10vh, 120px);
    --mobile-bar: 0px;
  }
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: calc(var(--nav-h) + env(safe-area-inset-top, 0px) + 12px);
}
body {
  font-family: Inter, -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  padding-bottom: calc(var(--mobile-bar) + env(safe-area-inset-bottom, 0px));
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
.wrap {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-left: var(--inset-l);
  padding-right: var(--inset-r);
}
:focus-visible { outline: 2px solid var(--petrol); outline-offset: 3px; }
::selection { background: var(--petrol); color: var(--white); }

.skip-link {
  position: absolute;
  top: -100%;
  left: var(--inset-l);
  z-index: 500;
  padding: 12px 20px;
  background: var(--text);
  color: var(--white);
  font-size: 0.8125rem;
  font-weight: 500;
  border-radius: 0 0 8px 8px;
}
.skip-link:focus { top: 0; }

.eyebrow {
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-light);
}
.heading {
  font-size: clamp(1.625rem, 6.5vw, 2.75rem);
  font-weight: 400;
  letter-spacing: -0.03em;
  line-height: 1.1;
  text-wrap: balance;
}
.body-lg {
  font-size: clamp(1rem, 1.5vw, 1.125rem);
  line-height: 1.65;
  color: var(--text-muted);
}
.display {
  font-size: clamp(2.125rem, 9.5vw, 4.25rem);
  font-weight: 300;
  letter-spacing: -0.035em;
  line-height: 1.02;
  text-wrap: balance;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: var(--touch);
  padding: 0 28px;
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: var(--text);
  color: var(--white);
  border: none;
  cursor: pointer;
  transition: background 0.3s var(--ease);
  -webkit-tap-highlight-color: transparent;
}
@media (hover: hover) {
  .btn:hover { background: var(--petrol); }
}
.btn-light {
  background: var(--white);
  color: var(--dark);
}
.link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9375rem;
  font-weight: 500;
}

body > header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 300;
  height: var(--nav-h);
  padding-top: env(safe-area-inset-top, 0);
  background: rgba(247, 246, 243, 0.86);
  backdrop-filter: blur(18px) saturate(1.25);
  -webkit-backdrop-filter: blur(18px) saturate(1.25);
  border-bottom: 1px solid rgba(255, 255, 255, 0.35);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.4) inset, 0 4px 20px rgba(15, 20, 22, 0.04);
}
nav.wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  gap: 12px;
}
.wordmark {
  flex-shrink: 0;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.nav-links { display: none; }
.nav-cta {
  display: none;
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 10px 20px;
  border-radius: 100px;
  background: var(--text);
  color: var(--white);
}
.burger {
  display: flex;
  align-items: center;
  justify-content: center;
  width: var(--touch);
  height: var(--touch);
  margin-left: auto;
  background: none;
  border: none;
  cursor: pointer;
  position: relative;
  border-radius: 50%;
}
.burger span {
  position: absolute;
  width: 22px;
  height: 1px;
  background: var(--text);
  transition: transform 0.3s var(--ease), opacity 0.3s;
}
.burger span:nth-child(1) { transform: translateY(-5px); }
.burger span:nth-child(3) { transform: translateY(5px); }
.burger.open span:nth-child(1) { transform: rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: rotate(-45deg); }

.mobile-nav {
  position: fixed;
  inset: 0;
  z-index: 400;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  transform: translateY(100%);
  visibility: hidden;
  pointer-events: none;
  transition: transform 0.55s var(--spring), visibility 0s linear 0.55s;
}
.mobile-nav.open {
  transform: translateY(0);
  visibility: visible;
  pointer-events: auto;
  transition: transform 0.55s var(--spring), visibility 0s linear 0s;
}
.mobile-nav-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 20, 22, 0.45);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.mobile-nav-panel {
  position: relative;
  z-index: 1;
  width: 100%;
  max-height: min(85svh, 640px);
  overflow-y: auto;
  background: rgba(247, 246, 243, 0.96);
  border-radius: 20px 20px 0 0;
  padding: 8px var(--inset-l) max(24px, env(safe-area-inset-bottom)) var(--inset-r);
}
.mobile-nav-handle {
  width: 36px;
  height: 4px;
  background: rgba(20,20,20,0.12);
  border-radius: 2px;
  margin: 0 auto 24px;
}
.mobile-nav a {
  font-size: clamp(1.375rem, 5.5vw, 1.75rem);
  font-weight: 400;
  letter-spacing: -0.02em;
  padding: 16px 0;
  border-bottom: 1px solid rgba(20,20,20,0.06);
  display: block;
}
.mobile-nav .nav-cta-mobile {
  display: inline-flex;
  margin-top: 24px;
  justify-content: center;
  width: 100%;
  border-bottom: none;
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0;
  min-height: var(--touch);
}
body.menu-open { overflow: hidden; }

.crumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 0.75rem;
  color: var(--text-light);
  margin-bottom: 24px;
}
.crumbs a { color: var(--text-muted); }
.crumbs a:hover { color: var(--text); }
.crumbs span { color: var(--text-light); }

.page-hero {
  padding: calc(var(--nav-h) + env(safe-area-inset-top, 0px) + 48px) 0 40px;
}
.page-hero .heading,
.page-hero h1 {
  font-size: clamp(2rem, 7vw, 3.5rem);
  font-weight: 400;
  letter-spacing: -0.035em;
  line-height: 1.05;
  max-width: 18ch;
  margin: 0 0 20px;
  text-wrap: balance;
}
.page-hero .lead {
  max-width: 42ch;
  font-size: clamp(1.0625rem, 2vw, 1.2rem);
  line-height: 1.6;
  color: var(--text-muted);
}

.prose {
  max-width: 68ch;
  padding-bottom: var(--section-y);
}
.prose h2 {
  font-size: clamp(1.375rem, 3vw, 1.75rem);
  font-weight: 500;
  letter-spacing: -0.025em;
  margin: 2.25em 0 0.7em;
  line-height: 1.2;
}
.prose h3 {
  font-size: 1.0625rem;
  font-weight: 600;
  margin: 1.75em 0 0.5em;
}
.prose p,
.prose li {
  color: var(--text-muted);
  font-size: 1.0625rem;
  line-height: 1.7;
}
.prose p + p { margin-top: 1em; }
.prose ul, .prose ol {
  margin: 1em 0 1.25em 1.15em;
  display: grid;
  gap: 0.55em;
}
.prose a {
  color: var(--petrol);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.prose strong { color: var(--text); font-weight: 600; }

.card-grid {
  display: grid;
  gap: 16px;
  padding: 0 0 var(--section-y);
}
.card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 28px;
  background: rgba(255, 255, 255, 0.62);
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 16px;
  box-shadow: 0 4px 24px rgba(15, 20, 22, 0.04);
  transition: transform 0.35s var(--ease), box-shadow 0.35s;
}
@media (hover: hover) {
  a.card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 36px rgba(15, 20, 22, 0.08);
  }
}
.card h2, .card h3 {
  font-size: 1.25rem;
  font-weight: 500;
  letter-spacing: -0.02em;
}
.card p { color: var(--text-muted); font-size: 0.9375rem; line-height: 1.6; }
.card-kicker {
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-light);
}

.faq {
  padding: var(--section-y) 0;
  background: var(--white);
  border-top: 1px solid rgba(20,20,20,0.06);
}
.faq .heading { margin-bottom: 28px; }
.faq-list { max-width: 720px; }
.faq-item { border-bottom: 1px solid rgba(20,20,20,0.08); }
.faq-item:first-child { border-top: 1px solid rgba(20,20,20,0.08); }
.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 22px 0;
  font-size: clamp(1rem, 2vw, 1.125rem);
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+';
  font-size: 1.25rem;
  font-weight: 300;
  color: var(--text-light);
  flex-shrink: 0;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p {
  padding: 0 0 22px;
  font-size: 0.9375rem;
  line-height: 1.65;
  color: var(--text-muted);
  max-width: 58ch;
}

.cta-final {
  background: var(--dark);
  color: #fff;
  padding: var(--section-y) 0;
  text-align: left;
}
.cta-final .display {
  color: #fff;
  max-width: 16ch;
  margin: 0 0 16px;
}
.cta-final .body-lg {
  color: rgba(255,255,255,0.6);
  max-width: 36ch;
  margin: 0 0 28px;
}
.cta-final .btn {
  width: 100%;
  margin-bottom: 16px;
  background: var(--white);
  color: var(--dark);
}
.cta-final .link { color: rgba(255,255,255,0.5); font-size: 0.8125rem; }

footer {
  padding: clamp(40px, 6vh, 56px) 0 max(32px, env(safe-area-inset-bottom, 0px));
  border-top: 1px solid rgba(20,20,20,0.06);
}
footer .wrap {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.footer-brand .wordmark { margin-bottom: 6px; display: block; }
.footer-brand p,
.footer-nap,
.footer-links a,
.footer-copy {
  font-size: 0.8125rem;
  color: var(--text-muted);
  line-height: 1.65;
}
.footer-nap { font-style: normal; }
.footer-nap a { text-decoration: underline; text-underline-offset: 3px; }
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 28px;
}
.footer-copy {
  font-size: 0.6875rem;
  color: var(--text-light);
}

.mobile-cta {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 280;
  padding: 12px var(--inset-l) max(12px, env(safe-area-inset-bottom, 0px)) var(--inset-r);
  background: rgba(247, 246, 243, 0.92);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-top: 1px solid rgba(255,255,255,0.5);
}
.mobile-cta .btn { width: 100%; min-height: 52px; border-radius: 12px; }

.wa-fab {
  position: fixed;
  bottom: calc(var(--mobile-bar) + 80px);
  right: var(--inset-r);
  z-index: 270;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #25D366;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(37,211,102,0.35);
}
.wa-fab svg { width: 26px; height: 26px; fill: currentColor; }

.related {
  padding: 0 0 var(--section-y);
}
.related .eyebrow { margin-bottom: 16px; }

@media (min-width: 768px) {
  body { padding-bottom: 0; }
  .card-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
  .cta-final { text-align: center; padding: clamp(80px, 14vh, 140px) 0; }
  .cta-final .display { margin: 0 auto 16px; }
  .cta-final .body-lg { margin: 0 auto 36px; }
  .cta-final .btn { width: auto; border-radius: 100px; padding-inline: 36px; }
  footer .wrap {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-end;
  }
  .mobile-cta, .wa-fab { display: none; }
  .page-hero { padding-top: calc(var(--nav-h) + 80px); padding-bottom: 56px; }
}

@media (min-width: 900px) {
  .nav-links {
    display: flex;
    gap: 36px;
    font-size: 0.8125rem;
    color: var(--text-muted);
  }
  .nav-link { padding: 6px 0; }
  .nav-link:hover, .nav-link.is-current { color: var(--text); }
  .nav-cta { display: inline-flex; align-items: center; }
  .burger, .mobile-nav { display: none !important; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
