:root {
  --ink: #142a2c;
  --teal: #0b6466;
  --teal-dark: #074d4f;
  --teal-pale: #dceeed;
  --orange: #ec8f48;
  --paper: #f7faf8;
  --white: #fff;
  --line: #dbe4e1;
  --muted: #4c6263;
  --shadow: 0 18px 48px rgba(20, 42, 44, .09);
  --radius: 1.25rem;
  --shell: 73.75rem;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; color-scheme: light; }
body { margin: 0; color: var(--ink); background: var(--white); font-family: Aptos, "Segoe UI", sans-serif; font-size: 1rem; line-height: 1.65; }
body.menu-open { overflow: hidden; }
img, svg { display: block; max-width: 100%; }
a { color: var(--teal-dark); text-underline-offset: .2em; }
a:hover { color: var(--teal); }
button, a { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: .2rem solid var(--orange); outline-offset: .22rem; border-radius: .2rem; }

.skip-link { position: fixed; z-index: 1000; top: .75rem; left: .75rem; padding: .8rem 1rem; color: var(--white); background: var(--ink); transform: translateY(-200%); }
.skip-link:focus { transform: none; }
.shell { width: min(calc(100% - 2rem), var(--shell)); margin-inline: auto; }
.narrow { width: min(calc(100% - 2rem), 50rem); margin-inline: auto; }
.prose { max-width: 72ch; }
.section { padding-block: clamp(3.5rem, 8vw, 7rem); }
.section-tight { padding-block: clamp(2.75rem, 6vw, 5rem); }
.section-paper { background: var(--paper); }
.section-dark { color: var(--white); background: var(--ink); }
.section-dark a:not(.button) { color: var(--teal-pale); }
.eyebrow { margin: 0 0 .8rem; color: var(--teal); font-size: .78rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.section-dark .eyebrow { color: #9ed3d1; }
h1, h2, h3 { margin: 0 0 1rem; font-family: "Aptos Display", Aptos, "Segoe UI", sans-serif; line-height: 1.08; letter-spacing: -.025em; text-wrap: balance; }
h1 { max-width: 13ch; font-size: clamp(2.5rem, 6vw, 5rem); }
h2 { max-width: 22ch; font-size: clamp(1.8rem, 4vw, 2.9rem); }
h3 { font-size: clamp(1.15rem, 2vw, 1.4rem); }
p { margin: 0 0 1.2rem; }
.lead { max-width: 68ch; color: var(--muted); font-size: clamp(1.08rem, 2vw, 1.25rem); }
.section-dark .lead { color: #d5e3e1; }
.muted { color: var(--muted); }
.center { text-align: center; }
.center h1, .center h2, .center .lead { margin-inline: auto; }

.site-header { position: sticky; z-index: 100; top: 0; border-bottom: 1px solid rgba(219, 228, 225, .85); background: rgba(255, 255, 255, .96); backdrop-filter: blur(14px); }
.header-inner { min-height: 4.75rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.brand { display: inline-flex; min-height: 2.75rem; align-items: center; gap: .65rem; color: var(--ink); font-size: 1.18rem; font-weight: 800; text-decoration: none; }
.brand-mark { position: relative; width: 2.15rem; height: 2.15rem; overflow: hidden; border-radius: .7rem; background: var(--teal); }
.brand-mark::before, .brand-mark span { position: absolute; content: ""; border: .16rem solid transparent; border-top-color: var(--white); border-radius: 50%; transform: rotate(-20deg); }
.brand-mark::before { inset: .7rem .38rem -.25rem; }
.brand-mark span { inset: 1rem .25rem -.45rem .85rem; border-top-color: var(--orange); }
.menu-button { min-width: 5.4rem; min-height: 2.75rem; display: inline-flex; align-items: center; justify-content: center; gap: .55rem; border: 1px solid var(--line); border-radius: .7rem; color: var(--ink); background: var(--white); font: inherit; font-weight: 700; }
.menu-icon, .menu-icon::before, .menu-icon::after { width: 1.1rem; height: .12rem; display: block; background: currentColor; transition: transform .16s ease; }
.menu-icon { position: relative; }
.menu-icon::before, .menu-icon::after { position: absolute; content: ""; left: 0; }
.menu-icon::before { top: -.36rem; }
.menu-icon::after { top: .36rem; }
.menu-button[aria-expanded="true"] .menu-icon { background: transparent; }
.menu-button[aria-expanded="true"] .menu-icon::before { top: 0; transform: rotate(45deg); }
.menu-button[aria-expanded="true"] .menu-icon::after { top: 0; transform: rotate(-45deg); }
.public-nav { position: fixed; inset: 4.75rem 0 auto; max-height: calc(100dvh - 4.75rem); overflow-y: auto; display: none; padding: 1rem; border-bottom: 1px solid var(--line); background: var(--white); box-shadow: var(--shadow); }
.menu-open .public-nav { display: grid; }
.public-nav a { min-height: 2.85rem; display: flex; align-items: center; padding: .45rem .6rem; color: var(--ink); font-size: .98rem; font-weight: 650; text-decoration: none; }
.public-nav a[aria-current="page"] { color: var(--teal-dark); text-decoration: underline; text-decoration-thickness: .15rem; }
.public-nav .button { justify-content: center; color: var(--white); }

.button-row { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem; margin-block: 1.75rem; }
.button { min-height: 3rem; display: inline-flex; align-items: center; justify-content: center; padding: .7rem 1.15rem; border: 2px solid var(--teal); border-radius: .75rem; color: var(--white); background: var(--teal); font-weight: 750; text-decoration: none; transition: background-color .16s ease, border-color .16s ease, transform .16s ease; }
.button:hover { color: var(--white); border-color: var(--teal-dark); background: var(--teal-dark); }
.button-secondary { color: var(--teal-dark); background: transparent; }
.button-secondary:hover { color: var(--white); }
.button-light { color: var(--ink); border-color: var(--white); background: var(--white); }
.button-light:hover { color: var(--white); border-color: var(--teal); background: var(--teal); }
.button-small { min-height: 2.65rem; padding: .5rem .85rem; }
.text-link { font-weight: 750; }

.hero { position: relative; overflow: hidden; padding-block: clamp(4rem, 10vw, 8rem); background: var(--paper); }
.hero::before { position: absolute; width: 58rem; height: 31rem; content: ""; right: -22rem; bottom: -13rem; border: 8rem solid var(--teal-pale); border-radius: 50%; transform: rotate(-10deg); }
.hero::after { position: absolute; width: 60rem; height: 20rem; content: ""; right: -28rem; bottom: -8rem; border-top: .75rem solid var(--orange); border-radius: 50%; transform: rotate(-12deg); }
.hero-grid { position: relative; z-index: 1; display: grid; gap: 3rem; align-items: center; }
.trust-line { max-width: 65ch; padding-left: 1rem; border-left: .24rem solid var(--orange); font-weight: 650; }
.demo-card { position: relative; width: 100%; max-width: 32rem; min-width: 0; padding: clamp(1.2rem, 4vw, 2rem); border: 1px solid rgba(11,100,102,.2); border-radius: 1.5rem; background: rgba(255,255,255,.96); box-shadow: var(--shadow); }
.demo-label { display: inline-flex; margin: 0 0 1rem; padding: .34rem .58rem; border-radius: 999px; color: var(--teal-dark); background: var(--teal-pale); font-size: .78rem; font-weight: 800; }
.metric-grid, .card-grid, .truth-grid, .steps-grid, .footer-grid, .feature-grid { display: grid; gap: 1rem; }
.hero-grid > *, .split > *, .metric-grid > *, .card-grid > * { min-width: 0; }
.metric { padding: 1rem; border: 1px solid var(--line); border-radius: .85rem; background: var(--white); }
.metric span { display: block; color: var(--muted); font-size: .82rem; }
.metric strong { display: block; font-size: 1.35rem; line-height: 1.2; }
.source-list { margin: 1rem 0 0; padding: 0; list-style: none; font-size: .9rem; }
.source-list li { padding-block: .35rem; border-top: 1px solid var(--line); }

.truth-strip { border-block: 1px solid var(--line); background: var(--white); }
.truth-grid { padding-block: 2.2rem; }
.truth-item { padding-left: 1rem; border-left: .2rem solid var(--teal); }
.truth-item strong { display: block; }
.truth-item p { margin: .3rem 0 0; color: var(--muted); }
.section-heading { margin-bottom: clamp(2rem, 5vw, 3.5rem); }
.card, .step, .feature-card, .status-card { padding: clamp(1.25rem, 3vw, 1.8rem); border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); box-shadow: 0 10px 28px rgba(20,42,44,.045); }
.step-number { width: 2.4rem; height: 2.4rem; display: grid; place-items: center; margin-bottom: 1rem; border-radius: 50%; color: var(--ink); background: var(--orange); font-weight: 850; }
.card p:last-child, .step p:last-child, .feature-card p:last-child { margin-bottom: 0; }
.split { display: grid; gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.split-top { align-items: start; }
.badge-row, .chip-row { display: flex; flex-wrap: wrap; gap: .55rem; }
.badge, .chip, .status { display: inline-flex; align-items: center; padding: .38rem .65rem; border: 1px solid var(--line); border-radius: 999px; background: var(--paper); font-size: .82rem; font-weight: 800; }
.badge::before { width: .55rem; height: .55rem; margin-right: .4rem; border: 2px solid currentColor; border-radius: 50%; content: ""; }
.badge-measured { color: var(--teal-dark); background: var(--teal-pale); }
.badge-calculated { color: #774016; background: #fff1e5; }
.badge-unavailable { color: #4f5e60; background: #eef2f1; }
.status { margin-bottom: .8rem; color: var(--teal-dark); background: var(--teal-pale); }
.status-limited { color: #774016; background: #fff1e5; }
.status-blocked { color: #62383c; background: #fbeaec; }
.callout { padding: clamp(1.25rem, 3vw, 2rem); border-left: .35rem solid var(--orange); border-radius: 0 var(--radius) var(--radius) 0; background: #fff7ef; }
.callout-teal { border-left-color: var(--teal); background: var(--teal-pale); }
.callout-dark { color: var(--white); border-left-color: var(--orange); background: var(--teal-dark); }
.callout h3 { margin-bottom: .55rem; }
.callout p:last-child { margin-bottom: 0; }
.plain-list { padding-left: 1.2rem; }
.plain-list li { margin-bottom: .65rem; }
.check-list { padding: 0; list-style: none; }
.check-list li { position: relative; margin-bottom: .75rem; padding-left: 1.75rem; }
.check-list li::before { position: absolute; left: 0; top: .15rem; content: "✓"; color: var(--teal); font-weight: 900; }
.flow { display: grid; gap: .65rem; margin-block: 2rem; padding: 1rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); }
.flow-item { padding: 1rem; border-radius: .75rem; background: var(--white); font-weight: 700; text-align: center; }
.flow-arrow { display: grid; place-items: center; color: var(--orange); font-size: 1.4rem; transform: rotate(90deg); }

.chart { margin: 1rem 0 0; padding: 1rem; border: 1px solid var(--line); border-radius: 1rem; background: var(--paper); }
.chart svg { width: 100%; height: auto; }
.chart-caption { margin: .8rem 0; font-weight: 700; }
.table-wrap { max-width: 100%; overflow-x: auto; border: 1px solid var(--line); border-radius: 1rem; }
table { width: 100%; border-collapse: collapse; min-width: 36rem; background: var(--white); }
caption { padding: .85rem 1rem; color: var(--ink); background: var(--paper); font-weight: 800; text-align: left; }
th, td { padding: .85rem 1rem; border-top: 1px solid var(--line); text-align: left; vertical-align: top; }
th { font-weight: 800; }
.comparison-table td:first-child { font-weight: 750; }

.page-hero { padding-block: clamp(3.5rem, 8vw, 7rem); background: var(--paper); }
.page-hero h1 { max-width: 17ch; }
.breadcrumbs { margin-bottom: 1.5rem; font-size: .9rem; }
.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: .5rem; margin: 0; padding: 0; list-style: none; }
.breadcrumbs li:not(:last-child)::after { margin-left: .5rem; content: "/"; color: var(--muted); }
.anchor-nav { display: flex; flex-wrap: wrap; gap: .55rem; margin-block: 1.5rem; }
.anchor-nav a { padding: .4rem .7rem; border: 1px solid var(--line); border-radius: 999px; background: var(--white); font-size: .88rem; font-weight: 700; text-decoration: none; }
.feature-card { scroll-margin-top: 6rem; }
.feature-meta { display: grid; gap: .65rem; margin: 1rem 0 0; }
.feature-meta div { padding-top: .65rem; border-top: 1px solid var(--line); }
.feature-meta dt { font-size: .78rem; font-weight: 850; letter-spacing: .05em; text-transform: uppercase; }
.feature-meta dd { margin: .2rem 0 0; color: var(--muted); }
details { border-top: 1px solid var(--line); }
details:last-child { border-bottom: 1px solid var(--line); }
summary { min-height: 3.5rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .9rem 0; cursor: pointer; font-weight: 800; }
summary::after { content: "+"; color: var(--teal); font-size: 1.4rem; }
details[open] summary::after { content: "−"; }
details p { max-width: 70ch; padding: 0 2rem 1rem 0; }
.legal-gate { padding: 1.2rem; border: 2px solid var(--orange); border-radius: var(--radius); background: #fff7ef; }
.legal-gate strong { display: block; margin-bottom: .35rem; }

.site-footer { padding-block: 3.5rem; color: #d9e6e4; background: var(--ink); }
.footer-grid { gap: 2.2rem; }
.footer-brand { max-width: 28rem; }
.brand-footer { color: var(--white); }
.brand-footer:hover { color: var(--white); }
.footer-note { color: #b8cbc8; font-size: .9rem; }
.site-footer nav { display: flex; flex-direction: column; align-items: flex-start; gap: .5rem; }
.site-footer h2 { margin: 0 0 .4rem; color: var(--white); font-size: .9rem; letter-spacing: .08em; text-transform: uppercase; }
.site-footer a { min-height: 2.2rem; display: inline-flex; align-items: center; color: #d9e6e4; text-decoration: none; }
.site-footer a:hover { color: var(--white); text-decoration: underline; }

@media (min-width: 40rem) {
  .metric-grid { grid-template-columns: repeat(2, 1fr); }
  .truth-grid { grid-template-columns: repeat(3, 1fr); }
  .card-grid, .steps-grid, .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 2fr repeat(2, 1fr); }
  .flow { grid-template-columns: repeat(9, auto); align-items: center; }
  .flow-arrow { transform: none; }
}

@media (min-width: 64rem) {
  .hero-grid, .split { grid-template-columns: minmax(0, 1.05fr) minmax(20rem, .95fr); }
  .card-grid-3, .steps-grid { grid-template-columns: repeat(3, 1fr); }
  .steps-grid-4 { grid-template-columns: repeat(4, 1fr); }
  .footer-grid { grid-template-columns: 2fr repeat(4, 1fr); }
}

@media (min-width: 76rem) {
  body.menu-open { overflow: auto; }
  .menu-button { display: none; }
  .public-nav { position: static; max-height: none; overflow: visible; display: flex; align-items: center; gap: .05rem; padding: 0; border: 0; box-shadow: none; }
  .public-nav a { min-height: 2.75rem; padding: .4rem .48rem; font-size: .82rem; }
  .public-nav .button { margin-left: .2rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}

@media (forced-colors: active) {
  .button, .badge, .status, .demo-label { border: 2px solid currentColor; }
  .brand-mark { border: 1px solid ButtonText; }
}

@media print {
  .site-header, .site-footer, .skip-link, .button-row { display: none; }
  .section, .page-hero { padding-block: 2rem; }
  body { color: #000; background: #fff; }
}

/* ErgCoach Marketing 1.0.0-rc.1 */
