/* AGEO Agency site styles
   Type: Inter Tight (display), Inter (body), JetBrains Mono (labels)
   Color: ink #14130f, paper #f4f0e8, signal lime #c4ff4d (one accent)
   All type sizes in rem. The root size scales with the viewport. */

@font-face { font-family: "Inter Tight"; src: url("/assets/fonts/inter-tight.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Inter"; src: url("/assets/fonts/inter.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url("/assets/fonts/jetbrains-mono-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }

:root {
  --ink: #14130f;
  --ink-2: #24231e;
  --paper: #f4f0e8;
  --paper-2: #ebe5d8;
  --lime: #c4ff4d;
  --lime-press: #b2f02f;
  --text: #14130f;
  --muted: #55524a;
  --line: rgba(20, 19, 15, 0.14);
  --on-ink: #f4f0e8;
  --on-ink-muted: #b8b3a6;
  --line-ink: rgba(244, 240, 232, 0.16);
  --radius: 6px;
  --display: "Inter Tight", "Inter", system-ui, sans-serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  --s1: 0.25rem; --s2: 0.5rem; --s3: 1rem; --s4: 1.5rem; --s5: 2rem; --s6: 3rem; --s7: 4.5rem; --s8: 6.5rem;
}

/* Root size: 16px on phones, up to 18px on wide screens. Everything else is rem. */
html { font-size: clamp(100%, 93.75% + 0.25vw, 112.5%); -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--text); font-family: var(--body); font-size: 1rem; line-height: 1.6; text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased; }
img, svg { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
h1, h2, h3 { font-family: var(--display); font-weight: 800; line-height: 1.08; letter-spacing: -0.02em; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(2.375rem, 1.6rem + 3.4vw, 4.25rem); letter-spacing: -0.015em; }
h2 { font-size: clamp(1.75rem, 1.35rem + 1.7vw, 2.75rem); }
h3 { font-size: 1.25rem; letter-spacing: -0.01em; line-height: 1.2; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; }
.mono { font-family: var(--mono); font-size: 0.75rem; letter-spacing: 0.02em; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 0; background: var(--lime); color: var(--ink); padding: var(--s2) var(--s3); z-index: 100; }
.skip:focus { left: var(--s3); }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.section--ink :focus-visible, .hero :focus-visible, .site-foot :focus-visible, .cta-band :focus-visible { outline-color: var(--lime); }

.wrap { width: 100%; max-width: 74rem; margin-inline: auto; padding-inline: 1rem; }
@media (min-width: 48em) { .wrap { padding-inline: 2rem; } }
.wrap--text { max-width: 44rem; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: var(--s2); min-height: 3rem; padding: 0.75rem 1.25rem; border-radius: var(--radius); border: 1px solid transparent; font-family: var(--body); font-weight: 600; font-size: 1rem; line-height: 1.2; text-decoration: none; cursor: pointer; transition: background-color 150ms ease, border-color 150ms ease, color 150ms ease; }
.btn--sm { min-height: 2.5rem; padding: 0.5rem 1rem; font-size: 0.9375rem; }
.btn--block { width: 100%; }
.btn--accent { background: var(--lime); color: var(--ink); }
.btn--accent:hover { background: var(--lime-press); }
.btn--ink { background: var(--ink); color: var(--paper); }
.btn--ink:hover { background: var(--ink-2); }
.btn--ghost-dark { border-color: var(--line-ink); color: var(--on-ink); }
.btn--ghost-dark:hover { border-color: var(--on-ink); }
.link { font-weight: 600; text-decoration: underline; }
.link:hover { text-decoration-thickness: 2px; }

/* Header */
.site-head { position: sticky; top: 0; z-index: 50; background: var(--ink); color: var(--on-ink); border-bottom: 1px solid var(--line-ink); }
.site-head__in { display: flex; align-items: center; justify-content: space-between; gap: var(--s3); min-height: 4rem; }
.brand { display: inline-flex; align-items: baseline; gap: 0.375rem; text-decoration: none; color: var(--on-ink); }
.brand__mark { font-family: var(--display); font-weight: 800; font-size: 1.5rem; letter-spacing: -0.03em; line-height: 1; }
.brand__mark::after { content: ""; display: inline-block; width: 0.42em; height: 0.42em; margin-left: 0.12em; background: var(--lime); border-radius: 1px; }
.brand__word { font-size: 0.9375rem; font-weight: 500; color: var(--on-ink-muted); }
.nav-toggle { display: none; background: none; border: 1px solid var(--line-ink); color: var(--on-ink); border-radius: var(--radius); font: 600 0.9375rem var(--body); padding: 0.5rem 0.875rem; min-height: 2.75rem; cursor: pointer; }
.site-nav { display: flex; align-items: center; gap: var(--s4); }
.site-nav ul { display: flex; gap: var(--s4); list-style: none; }
.site-nav ul a { text-decoration: none; font-size: 0.9375rem; color: var(--on-ink-muted); transition: color 150ms ease; }
.site-nav ul a:hover, .site-nav ul a[aria-current="page"] { color: var(--on-ink); }
.site-nav ul a[aria-current="page"] { text-decoration: underline; text-decoration-color: var(--lime); text-decoration-thickness: 2px; text-underline-offset: 0.4em; }
@media (max-width: 60em) {
  .nav-toggle { display: inline-flex; align-items: center; }
  .js .site-nav { display: none; }
  .site-nav { position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: var(--s4); padding: var(--s4) 1rem var(--s5); background: var(--ink); border-bottom: 1px solid var(--line-ink); }
  .js .site-nav.is-open { display: flex; }
  .site-nav ul { flex-direction: column; gap: 0; }
  .site-nav ul a { display: block; padding: 0.75rem 0; font-size: 1.125rem; color: var(--on-ink); border-bottom: 1px solid var(--line-ink); }
  .site-nav .btn { width: 100%; }
}
@media (min-width: 60.0625em) { .site-head__in { min-height: 4.5rem; } }

/* Hero */
.hero { background: var(--ink); color: var(--on-ink); padding-block: var(--s6) var(--s7); }
.hero__in { display: grid; gap: var(--s6); align-items: center; }
@media (min-width: 60em) { .hero { padding-block: var(--s7) var(--s8); } .hero__in { grid-template-columns: 1.1fr 1fr; gap: var(--s7); } }
.hero h1 { max-width: 13ch; }
.hero__lede { margin-top: var(--s4); font-size: 1.1875rem; line-height: 1.55; color: var(--on-ink-muted); max-width: 36rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: var(--s3); margin-top: var(--s5); }
.hero__note { margin-top: var(--s3); font-size: 0.875rem; color: var(--on-ink-muted); }
@media (max-width: 30em) { .hero__actions .btn { width: 100%; } }

/* Example AI answer */
.answer { margin: 0; background: var(--paper); color: var(--text); border-radius: var(--radius); overflow: hidden; }
.answer__bar { display: flex; justify-content: space-between; align-items: center; padding: 0.75rem 1.25rem; border-bottom: 1px solid var(--line); color: var(--muted); }
.answer__flag { border: 1px solid var(--line); border-radius: 3px; padding: 0.125rem 0.5rem; }
.answer__q { margin: 1.25rem 1.25rem 0; margin-left: auto; padding: 0.75rem 1rem; max-width: 85%; width: fit-content; background: var(--ink); color: var(--on-ink); border-radius: var(--radius); font-size: 0.9375rem; margin-right: 1.25rem; }
.answer__a { padding: 1.25rem; font-size: 0.9375rem; }
.answer__a ol { margin-top: 0.75rem; padding-left: 1.25rem; display: grid; gap: 0.625rem; }
.answer__you { padding: 0.75rem; margin-left: -0.75rem; background: var(--lime); border-radius: 4px; list-style-position: inside; padding-left: 0.75rem; }
.answer__a ol { list-style-position: inside; padding-left: 0; }
.answer__other { color: var(--muted); padding-left: 0.75rem; margin-left: -0.75rem; }
.answer__src { margin-top: 1rem; padding-top: 0.75rem; border-top: 1px solid var(--line); color: var(--muted); }

/* Sections */
.section { padding-block: var(--s7); }
@media (min-width: 60em) { .section { padding-block: var(--s8); } }
.section--tight { padding-block: var(--s5) var(--s7); }
.section--paper2 { background: var(--paper-2); }
.section--ink { background: var(--ink); color: var(--on-ink); }
.section__title { max-width: 22ch; margin-bottom: var(--s5); }
.section__head { max-width: 46rem; margin-bottom: var(--s6); }
.section__head .lead { margin-top: var(--s3); }
.section__row { display: flex; justify-content: space-between; align-items: baseline; gap: var(--s3); margin-bottom: var(--s5); }
.section__row .section__title { margin-bottom: 0; }
.section__close { margin-top: var(--s6); max-width: 44rem; font-family: var(--display); font-weight: 700; font-size: 1.375rem; line-height: 1.35; }
.lead { font-size: 1.125rem; line-height: 1.6; color: var(--muted); }
.section--ink .lead { color: var(--on-ink-muted); }
.fine { font-size: 0.875rem; color: var(--muted); }
.section--ink .fine { color: var(--on-ink-muted); }

.split { display: grid; gap: var(--s5); }
@media (min-width: 60em) { .split { grid-template-columns: 0.9fr 1.1fr; gap: var(--s7); align-items: start; } .split__head { position: sticky; top: 7rem; } }
.split__head .lead { margin-top: var(--s3); }
.split__head .btn { margin-top: var(--s4); }

/* Organic lead story (ordered) */
.story { list-style: none; counter-reset: story; display: grid; gap: 0; border-top: 1px solid var(--line); }
.story li { counter-increment: story; display: grid; grid-template-columns: 2.5rem 1fr; column-gap: var(--s3); padding-block: var(--s4); border-bottom: 1px solid var(--line); }
.story li::before { content: counter(story); grid-row: span 2; font-family: var(--display); font-weight: 800; font-size: 1.25rem; line-height: 1.2; color: var(--muted); }
.story h3 { margin-bottom: var(--s1); }
.story p { color: var(--muted); }
.story__note { margin-top: var(--s4); font-weight: 600; }

/* Facts */
.facts { display: grid; gap: var(--s5); border-top: 1px solid var(--line-ink); padding-top: var(--s5); }
@media (min-width: 48em) { .facts { grid-template-columns: 1fr 1fr; gap: var(--s6); } }
.fact__num { font-family: var(--display); font-weight: 800; font-size: clamp(3.5rem, 2.5rem + 4vw, 5.5rem); line-height: 1; letter-spacing: -0.03em; color: var(--lime); margin-bottom: var(--s3); }
.fact p:not(.fact__num) { font-size: 1.125rem; max-width: 30rem; }
.fact .fact__src { margin-top: var(--s3); font-size: 0.75rem; color: var(--on-ink-muted); }
.fact__src a { color: var(--on-ink-muted); }

/* Blockers */
.blockers { display: grid; gap: 0; margin: 0; border-top: 1px solid var(--line); }
@media (min-width: 48em) { .blockers { grid-template-columns: 1fr 1fr; column-gap: var(--s6); border-top: 0; } }
.blocker { padding-block: var(--s4); border-bottom: 1px solid var(--line); }
@media (min-width: 48em) { .blocker:nth-child(-n+2) { border-top: 1px solid var(--line); } }
.blocker dt { font-family: var(--display); font-weight: 800; font-size: 1.25rem; line-height: 1.25; margin-bottom: var(--s2); }
.blocker dd { margin: 0; color: var(--muted); }
#blockers .fine { margin-top: var(--s4); }

/* Checklist */
.checklist { list-style: none; display: grid; gap: 0; border-top: 1px solid var(--line); }
.checklist li { position: relative; padding: var(--s3) 0 var(--s3) 2rem; border-bottom: 1px solid var(--line); color: var(--muted); }
.checklist li strong { color: var(--text); }
.checklist li::before { content: ""; position: absolute; left: 0; top: 1.45rem; width: 0.875rem; height: 0.5rem; border-left: 2px solid var(--ink); border-bottom: 2px solid var(--ink); transform: rotate(-45deg); }
.checklist--tight li { padding-block: 0.625rem; }
.checklist--tight li::before { top: 1.05rem; }

/* Steps (ordered process) */
.steps { list-style: none; display: grid; gap: var(--s5); }
@media (min-width: 48em) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 64em) { .steps { grid-template-columns: repeat(4, 1fr); gap: var(--s4); } }
.step { border-top: 2px solid var(--ink); padding-top: var(--s3); }
.step__n { display: block; color: var(--muted); margin-bottom: var(--s3); }
.step h3 { font-size: 1.5rem; margin-bottom: var(--s2); }
.step p { color: var(--muted); }

/* Who / three columns */
.who { display: grid; gap: var(--s5); }
@media (min-width: 56em) { .who { grid-template-columns: repeat(3, 1fr); gap: var(--s5); } }
.who__item { padding-top: var(--s3); border-top: 1px solid var(--ink); display: flex; flex-direction: column; gap: var(--s2); }
.who__item p { color: var(--muted); flex: 1; }
.who__item .link { margin-top: var(--s2); }

/* Service list */
.service-list { list-style: none; border-top: 1px solid var(--line); }
.service-list a { display: flex; justify-content: space-between; align-items: center; gap: var(--s3); padding: 1.125rem 0; border-bottom: 1px solid var(--line); text-decoration: none; font-family: var(--display); font-weight: 700; font-size: 1.25rem; transition: color 150ms ease; }
.service-list a:hover { color: var(--muted); }

/* Services page */
.page-head { padding-block: var(--s6) var(--s6); border-bottom: 1px solid var(--line); }
@media (min-width: 60em) { .page-head { padding-block: var(--s7); } }
.page-head h1 { max-width: 18ch; }
.page-head .lead { margin-top: var(--s4); max-width: 44rem; }
.page-head .btn { margin-top: var(--s5); }
.svc { display: grid; gap: var(--s4); padding-block: var(--s5); border-top: 1px solid var(--line); scroll-margin-top: 6rem; }
@media (min-width: 56em) { .svc { grid-template-columns: 1fr 1fr; gap: var(--s6); } }
.svc__head h3 { font-size: 1.625rem; margin-bottom: var(--s3); }
.svc__head p { color: var(--muted); }
.svc__list { list-style: none; display: grid; gap: var(--s2); }
.svc__list li { padding-left: 1.25rem; position: relative; }
.svc__list li::before { content: ""; position: absolute; left: 0; top: 0.7em; width: 0.5rem; height: 2px; background: var(--ink); }

/* FAQ */
.faq { border-top: 1px solid var(--line); }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__item summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: var(--s3); padding: 1.125rem 0; }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary h3 { font-size: 1.125rem; line-height: 1.35; }
.faq__item summary::after { content: "+"; font-size: 1.375rem; font-weight: 400; color: var(--muted); flex-shrink: 0; }
.faq__item[open] summary::after { content: "−"; }
.faq__item p { padding-bottom: 1.25rem; color: var(--muted); max-width: 42rem; }

/* Insight cards (same fields as socient.net/insights) */
.post-grid { display: grid; gap: var(--s4); }
@media (min-width: 48em) { .post-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 64em) { .post-grid { grid-template-columns: repeat(3, 1fr); } }
.post-card { position: relative; display: flex; flex-direction: column; gap: var(--s3); padding: var(--s4); background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; transition: border-color 150ms ease; }
.section--paper2 .post-card { background: var(--paper); }
.post-card:hover { border-color: var(--ink); }
.post-card[hidden] { display: none; }
.post-tag { align-self: flex-start; font-family: var(--mono); font-size: 0.75rem; letter-spacing: 0.02em; padding: 0.125rem 0.5rem; border: 1px solid var(--line); border-radius: 3px; color: var(--muted); }
.post-tag--head { display: inline-block; margin-bottom: var(--s3); }
.post-card__title { font-size: 1.375rem; line-height: 1.2; }
.post-card__excerpt { color: var(--muted); font-size: 0.9375rem; flex: 1; }
.post-card__meta { font-size: 0.8125rem; color: var(--muted); padding-right: 2rem; }
.post-card__arrow { position: absolute; right: var(--s4); bottom: var(--s4); font-size: 1.125rem; }
.insights-tools { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: var(--s3); margin-bottom: var(--s5); }
.topic-tabs { display: flex; flex-wrap: wrap; gap: var(--s2); }
.topic-tab { font: 500 0.875rem var(--body); padding: 0.5rem 0.875rem; min-height: 2.5rem; border: 1px solid var(--line); border-radius: var(--radius); background: transparent; color: var(--text); cursor: pointer; transition: background-color 150ms ease, color 150ms ease; }
.topic-tab[aria-pressed="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.search input { font: 1rem var(--body); padding: 0.625rem 0.875rem; min-height: 2.75rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); width: min(18rem, 100%); }
.search { width: 100%; }
@media (min-width: 48em) { .search { width: auto; } }
.search input { width: 100%; }
@media (min-width: 48em) { .search input { width: 18rem; } }
.empty { padding: var(--s5) 0; color: var(--muted); }

/* Article */
.post__head { padding-block: var(--s6) var(--s5); }
.post__back { display: block; width: fit-content; margin-bottom: var(--s4); font-size: 0.9375rem; color: var(--muted); text-decoration: none; }
.post__back:hover { color: var(--text); }
.post__head .post-tag { display: inline-block; margin-bottom: var(--s3); }
.post__head h1 { font-size: clamp(2rem, 1.5rem + 2.4vw, 3.25rem); }
.post__dek { margin-top: var(--s4); font-size: 1.1875rem; color: var(--muted); }
.post__meta { margin-top: var(--s4); font-size: 0.875rem; color: var(--muted); padding-top: var(--s3); border-top: 1px solid var(--line); }
.post__body { padding-bottom: var(--s7); font-size: 1.0625rem; line-height: 1.7; }
.post__body > * + * { margin-top: 1.1em; }
.post__body h2 { font-size: 1.75rem; margin-top: 2.2em; }
.post__body ul, .post__body ol { padding-left: 1.25rem; display: grid; gap: 0.5em; }
.post__body a { text-decoration: underline; }
.post__body .faq { margin-top: var(--s3); }
.post__body .faq ul { padding: 0; }
.tldr { padding: var(--s4); background: var(--ink); color: var(--on-ink); border-radius: var(--radius); }
.tldr h2 { font-size: 1.125rem; margin: 0 0 var(--s2); color: var(--lime); }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 0.9375rem; }
th, td { text-align: left; padding: 0.75rem 0.75rem 0.75rem 0; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-weight: 600; font-size: 0.875rem; color: var(--muted); }
.related { background: var(--paper-2); padding-block: var(--s7); }
.related h2 { margin-bottom: var(--s5); }

/* Prose pages */
.prose h2 { font-size: 1.5rem; margin-top: var(--s5); margin-bottom: var(--s2); }
.prose h2:first-child { margin-top: 0; }
.prose p { color: var(--muted); }

/* Contact */
.page-head--form { border-bottom: 0; }
.contact { display: grid; gap: var(--s6); }
@media (min-width: 60em) { .contact { grid-template-columns: 1fr 1fr; gap: var(--s7); align-items: start; } }
.contact__sub { font-size: 1.125rem; margin: var(--s5) 0 var(--s3); }
.contact .fine { margin-top: var(--s4); }
.form { display: grid; gap: var(--s4); padding: var(--s5) var(--s4); background: var(--paper-2); border-radius: var(--radius); }
@media (min-width: 48em) { .form { padding: var(--s5); } }
.field { display: grid; gap: var(--s2); }
.field label { font-weight: 600; font-size: 0.9375rem; }
.opt { font-weight: 400; color: var(--muted); }
.field input, .field select, .field textarea { font: 1rem var(--body); color: var(--text); width: 100%; min-height: 3rem; padding: 0.75rem 0.875rem; background: var(--paper); border: 1px solid rgba(20, 19, 15, 0.28); border-radius: var(--radius); }
.field textarea { resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--ink); outline-offset: 1px; }
.field [aria-invalid="true"] { border-color: #8a1c0b; }
.hp { position: absolute; left: -9999px; }
.form__status { font-weight: 600; min-height: 1.5em; }
.form .fine { margin-top: 0; }

/* CTA band */
.cta-band { background: var(--ink); color: var(--on-ink); padding-block: var(--s7); }
.cta-band__in { display: grid; gap: var(--s5); align-items: end; }
@media (min-width: 60em) { .cta-band__in { grid-template-columns: 1.4fr 1fr; gap: var(--s7); } }
.cta-band h2 { max-width: 18ch; }
.cta-band p { margin-top: var(--s3); color: var(--on-ink-muted); max-width: 40rem; font-size: 1.125rem; }
.cta-band__actions { display: flex; flex-wrap: wrap; gap: var(--s3); }
@media (max-width: 30em) { .cta-band__actions .btn { width: 100%; } }

/* Footer */
.site-foot { background: var(--ink); color: var(--on-ink-muted); border-top: 1px solid var(--line-ink); padding-top: var(--s6); font-size: 0.9375rem; }
.site-foot__grid { display: grid; gap: var(--s5); }
@media (min-width: 48em) { .site-foot__grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 64em) { .site-foot__grid { grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: var(--s6); } }
.site-foot h2 { font-family: var(--body); font-weight: 600; font-size: 0.9375rem; color: var(--on-ink); margin-bottom: var(--s3); }
.site-foot ul { list-style: none; display: grid; gap: var(--s2); }
.site-foot a { text-decoration: none; }
.site-foot a:hover { color: var(--on-ink); text-decoration: underline; }
.site-foot__brand p { margin-top: var(--s3); max-width: 24rem; }
.site-foot .btn { margin-top: var(--s3); color: var(--ink); }
.site-foot .btn:hover { text-decoration: none; color: var(--ink); }
.site-foot__base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--s2); margin-top: var(--s6); padding-block: var(--s4); border-top: 1px solid var(--line-ink); font-size: 0.8125rem; }

/* Right side panel for the lead form */
.btn--ghost { border-color: var(--line); color: var(--text); }
.btn--ghost:hover { border-color: var(--ink); }
.drawer-open { overflow: hidden; }
.drawer { position: fixed; inset: 0 0 0 auto; margin: 0; padding: 0; border: 0; width: min(30rem, 100vw); max-width: 100vw; height: 100dvh; max-height: 100dvh; background: var(--paper); color: var(--text); transform: translateX(100%); transition: transform 200ms ease; }
.drawer.is-open { transform: translateX(0); }
.drawer::backdrop { background: rgba(20, 19, 15, 0); transition: background-color 200ms ease; }
.drawer.is-open::backdrop { background: rgba(20, 19, 15, 0.6); }
@media (prefers-reduced-motion: reduce) { .drawer, .drawer::backdrop { transition: none; } }
.drawer__panel { height: 100%; overflow-y: auto; overscroll-behavior: contain; padding: 0 1rem var(--s5); }
@media (min-width: 30em) { .drawer__panel { padding: 0 var(--s5) var(--s5); } }
.drawer__head { position: sticky; top: 0; z-index: 1; display: flex; justify-content: space-between; align-items: center; gap: var(--s3); padding-block: var(--s4) var(--s3); background: var(--paper); border-bottom: 1px solid var(--line); }
.drawer__head h2 { font-size: 1.375rem; }
.drawer__close { flex-shrink: 0; min-height: 2.75rem; padding: 0.5rem 0.875rem; border: 1px solid var(--line); border-radius: var(--radius); background: transparent; font: 600 0.9375rem var(--body); color: var(--text); cursor: pointer; transition: border-color 150ms ease; }
.drawer__close:hover { border-color: var(--ink); }
.drawer__lead { margin-block: var(--s3) var(--s4); color: var(--muted); }
.drawer .form { padding: 0; background: transparent; gap: var(--s3); }
.drawer__done-close { margin-top: var(--s4); }
.splitforms-attribution { margin-top: calc(var(--s2) * -1); font-size: 0.6875rem; color: #6f6b62; text-align: right; }
.splitforms-attribution a { color: inherit; text-decoration: none; }
.splitforms-attribution a:hover { text-decoration: underline; }
.form-done { padding-top: var(--s4); outline: none; }
.contact__form .form-done { padding: var(--s5); background: var(--paper-2); border-radius: var(--radius); }
.form-done__title { font-size: 1.75rem; }
.form-done__lead { margin-top: var(--s3); font-size: 1.125rem; }
.form-done h3 { font-size: 1.0625rem; margin-top: var(--s4); }
.form-done__steps { margin-top: var(--s2); padding-left: 1.25rem; display: grid; gap: var(--s2); color: var(--muted); }
.form-done .fine { margin-top: var(--s4); }
.page-head .form-done__steps { margin-bottom: var(--s5); }
.lead-form[hidden], .form-done[hidden], [data-close][hidden] { display: none; }
.form__status:empty { display: none; }

/* ---------- AI Search Visibility Audit ---------- */
.audit-hero { background: var(--ink); color: var(--on-ink); padding-block: var(--s6); }
@media (min-width: 60em) { .audit-hero { padding-block: var(--s7); } }
.audit-hero__in { display: grid; gap: var(--s5); align-items: end; }
@media (min-width: 60em) { .audit-hero__in { grid-template-columns: 1.3fr 1fr; gap: var(--s7); } }
.audit-hero__tag, .audit-cta__tag { color: var(--lime); margin-bottom: var(--s3); }
.audit-promo .audit-cta__tag { display: block; }
.audit-hero h1 { max-width: 14ch; }
.audit-hero__facts { list-style: none; display: grid; gap: 0; border-top: 1px solid var(--line-ink); }
.audit-hero__facts li { padding: var(--s3) 0; border-bottom: 1px solid var(--line-ink); color: var(--on-ink-muted); }
.audit-hero__facts strong { color: var(--on-ink); }

.audit { display: grid; gap: var(--s5); padding-block: var(--s6) var(--s7); }
@media (min-width: 64em) { .audit { grid-template-columns: minmax(0, 1fr) 21rem; gap: var(--s6); align-items: start; } }
.audit__how { padding-bottom: var(--s5); border-bottom: 1px solid var(--line); }
.audit__how h2 { font-size: 1.375rem; margin-bottom: var(--s3); }
.audit__how ol { padding-left: 1.25rem; display: grid; gap: var(--s2); color: var(--muted); }
.link-btn { margin-top: var(--s3); background: none; border: 0; padding: 0; font: 600 0.9375rem var(--body); color: var(--text); text-decoration: underline; cursor: pointer; min-height: 2.75rem; }

.audit-phase { padding-top: var(--s6); scroll-margin-top: 5rem; }
.audit-phase__tag { color: var(--muted); margin-bottom: var(--s2); }
.audit-phase__head h2 { font-size: clamp(1.75rem, 1.4rem + 1.4vw, 2.5rem); }
.audit-phase__head > p:not(.audit-phase__tag) { margin-top: var(--s2); color: var(--muted); max-width: 40rem; }
.audit-phase__meta { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--s3); margin: var(--s4) 0 var(--s3); }
@media (min-width: 40em) { .audit-phase__meta { grid-template-columns: repeat(4, 1fr); } }
.audit-phase__meta div { border-top: 2px solid var(--ink); padding-top: var(--s2); }
.audit-phase__meta dt { font-size: 0.8125rem; color: var(--muted); }
.audit-phase__meta dd { margin: 0; font-weight: 700; }

.audit-list { list-style: none; border-top: 1px solid var(--line); }
.check { border-bottom: 1px solid var(--line); scroll-margin-top: 5rem; }
.check__main { display: grid; grid-template-columns: 2rem 1fr; gap: var(--s2) var(--s3); padding-top: var(--s4); }
@media (min-width: 40em) { .check__main { grid-template-columns: 2.25rem 1fr auto; align-items: start; } }
.check__n { color: var(--muted); padding-top: 0.25rem; }
.check.is-answered .check__n { color: var(--text); font-weight: 700; }
.check__t { font-size: 1.125rem; line-height: 1.3; }
.check__d { margin-top: var(--s1); color: var(--muted); }
.check__est { margin-top: var(--s2); color: var(--muted); }
.answer-set { grid-column: 2; display: inline-flex; border: 1px solid rgba(20, 19, 15, 0.28); border-radius: var(--radius); padding: 0; margin: var(--s2) 0 0; min-width: 0; width: fit-content; }
@media (min-width: 40em) { .answer-set { grid-column: 3; margin-top: 0; } }
.answer-set label { position: relative; }
.answer-set input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.answer-set span { display: inline-flex; align-items: center; justify-content: center; min-width: 4.25rem; min-height: 2.75rem; padding: 0 0.75rem; font-weight: 600; font-size: 0.9375rem; border-right: 1px solid rgba(20, 19, 15, 0.28); transition: background-color 150ms ease, color 150ms ease; }
.answer-set label:last-child span { border-right: 0; }
.answer-set label:first-child span { border-radius: 5px 0 0 5px; }
.answer-set label:last-child span { border-radius: 0 5px 5px 0; }
.answer-set input:checked + span { background: var(--ink); color: var(--paper); }
.answer-set input[value="2"]:checked + span { background: var(--lime); color: var(--ink); }
.answer-set input:focus-visible + span { outline: 2px solid var(--ink); outline-offset: 2px; }
.check__help { margin: var(--s3) 0 var(--s4) 2.75rem; }
@media (min-width: 40em) { .check__help { margin-left: 3.25rem; } }
.check__help summary { cursor: pointer; font-weight: 600; font-size: 0.9375rem; width: fit-content; min-height: 2.75rem; display: inline-flex; align-items: center; text-decoration: underline; text-underline-offset: 0.2em; }
.check__help summary::-webkit-details-marker { display: none; }
.check__help summary::after { content: " +"; white-space: pre; }
.check__help[open] summary::after { content: " −"; }
.check__help-body { padding: var(--s4); background: var(--paper-2); border-radius: var(--radius); }
.check__help-body h4 { font-family: var(--display); font-weight: 800; font-size: 0.9375rem; margin: var(--s3) 0 var(--s1); }
.check__help-body h4:first-child { margin-top: 0; }
.check__help-body p, .check__help-body ol { color: var(--muted); font-size: 0.9375rem; }
.check__steps { padding-left: 1.25rem; display: grid; gap: var(--s1); }

.score { position: relative; }
@media (min-width: 64em) { .score { position: sticky; top: 5.5rem; max-height: calc(100vh - 6.5rem); overflow-y: auto; } }
.score__card { background: var(--ink); color: var(--on-ink); border-radius: var(--radius); padding: var(--s4); display: grid; gap: var(--s2); }
.score__label { color: var(--on-ink-muted); }
.score__num { font-family: var(--display); font-weight: 800; font-size: 4rem; line-height: 1; letter-spacing: -0.03em; }
.score__of { font-size: 1.125rem; font-weight: 500; color: var(--on-ink-muted); margin-left: 0.375rem; letter-spacing: 0; }
.score__grade { font-family: var(--display); font-weight: 800; font-size: 1.5rem; color: var(--lime); }
.score__sub { color: var(--on-ink-muted); font-size: 0.9375rem; }
.score__count { color: var(--on-ink-muted); }
.score__phases { list-style: none; display: grid; gap: var(--s2); padding: var(--s3) 0; border-block: 1px solid var(--line-ink); }
.score__phases li { display: grid; grid-template-columns: 4.25rem 1fr 3rem; align-items: center; gap: var(--s2); font-size: 0.875rem; }
.score__phases b { text-align: right; font-weight: 600; }
.bar { height: 0.5rem; background: rgba(244, 240, 232, 0.14); border-radius: 2px; overflow: hidden; }
.bar i { display: block; height: 100%; width: 0; background: var(--lime); transition: width 200ms ease; }
.score__next h2 { font-size: 1.125rem; margin: var(--s2) 0; }
.score__next ol { list-style: none; display: grid; gap: var(--s2); }
.score__next li a { color: var(--on-ink); text-decoration: none; font-weight: 600; font-size: 0.9375rem; line-height: 1.35; display: block; }
.score__next li a:hover { text-decoration: underline; }
.score__next li .mono { color: var(--lime); margin-right: 0.25rem; }
.score__next small { display: block; color: var(--on-ink-muted); font-size: 0.8125rem; }
.score__empty { color: var(--on-ink-muted); font-size: 0.875rem; }
.score__card .btn { margin-top: var(--s2); }
.score-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; display: flex; justify-content: space-between; align-items: center; gap: var(--s3); padding: 0.625rem 1rem; background: var(--ink); color: var(--on-ink); border-top: 1px solid var(--line-ink); transform: translateY(100%); transition: transform 200ms ease; }
.score-bar b { color: var(--lime); font-family: var(--display); font-size: 1.25rem; }
.score-bar.is-on { transform: translateY(0); }
@media (min-width: 64em) { .score-bar { display: none; } }

.gate { scroll-margin-top: 4.5rem; }
.gate__in { display: grid; gap: var(--s5); }
@media (min-width: 60em) { .gate__in { grid-template-columns: 1fr 1fr; gap: var(--s7); align-items: start; } }
.gate__copy .lead { margin-top: var(--s3); }
.gate__copy .checklist { margin-top: var(--s4); }
.gate__copy .fine { margin-top: var(--s4); }
.gate__copy .fine a { color: var(--on-ink); }
.checklist--dark { border-color: var(--line-ink); }
.checklist--dark li { color: var(--on-ink); border-color: var(--line-ink); }
.checklist--dark li::before { border-color: var(--lime); }
.gate__box { background: var(--paper); color: var(--text); border-radius: var(--radius); padding: var(--s5) var(--s4); }
@media (min-width: 48em) { .gate__box { padding: var(--s5); } }
.gate__box .form { padding: 0; background: transparent; }
.gate__box .form-done { padding-top: 0; }
.gate__actions { display: grid; gap: var(--s2); margin-top: var(--s4); }
.gate__upsell { margin-top: var(--s5); padding-top: var(--s4); border-top: 1px solid var(--line); }
.gate__upsell h4 { font-family: var(--display); font-weight: 800; font-size: 1.125rem; }
.gate__upsell p { margin: var(--s2) 0 var(--s3); color: var(--muted); }
.credit { margin-top: var(--s4); }

/* Promo on the home page */
.promo-phases { list-style: none; display: grid; gap: 0; border-top: 1px solid var(--line-ink); }
.promo-phases li { display: grid; grid-template-columns: 1fr auto; gap: var(--s1) var(--s3); padding: var(--s3) 0; border-bottom: 1px solid var(--line-ink); }
.promo-phases span { grid-column: 1 / -1; color: var(--on-ink-muted); }
.promo-phases b { font-family: var(--display); font-weight: 800; font-size: 1.25rem; }
.promo-phases em { font-style: normal; color: var(--on-ink-muted); align-self: center; }
.audit-promo .lead { color: var(--on-ink-muted); }

/* Audit CTA under insights, credit box, sources */
.audit-cta { margin-top: var(--s6); padding: var(--s5) var(--s4); background: var(--ink); color: var(--on-ink); border-radius: var(--radius); }
@media (min-width: 48em) { .audit-cta { padding: var(--s5); } }
.post__body .audit-cta h2 { margin-top: 0; font-size: 1.75rem; }
.audit-cta p:not(.audit-cta__tag) { color: var(--on-ink-muted); margin: var(--s3) 0 var(--s4); }
.post__body .audit-cta a.btn { text-decoration: none; }
.credit-box { padding: var(--s3) var(--s4); border: 1px solid var(--line); border-radius: var(--radius); font-size: 0.9375rem; color: var(--muted); }
.sources { font-size: 0.9375rem; }
@media (max-width: 63.99em) { .score { order: -1; } .audit { padding-top: var(--s4); } .score__next ol li:nth-child(n+4) { display: none; } }
