/* Content components used by every page, plus the Etavrian motion-library recipes.
   A page is only a list of these components; nothing here is page-specific. */

body[data-accent="purple"] { --accent: var(--purple); }
body[data-accent="blue"] { --accent: var(--blue); }

/* ---------- headings ---------- */
/* room for descenders while a line sits behind its mask ("growth", "pages") */
.sl-mask { padding: 0.12em 0.04em 0.22em; margin: -0.12em -0.04em -0.22em; }
.title em, .display em, .prose h2 em { background: linear-gradient(currentColor, currentColor) no-repeat 0 97% / 0% 0.055em; transition: background-size 0.55s var(--e-in-out) 0.1s; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.is-annotated em, .prose h2.is-annotated em { background-size: 100% 0.055em; }
html.still :is(.title, .display, .prose h2) em { transition: none; } /* reduced motion: the accent is simply there */

/* ---------- page hero ---------- */
.page-hero { padding-top: clamp(124px, 16vh, 176px); padding-bottom: clamp(36px, 5vw, 72px); }
.page-hero__grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr); gap: clamp(32px, 6vw, 96px); align-items: end; }
.page-hero__copy { display: grid; justify-items: start; gap: clamp(20px, 2.4vw, 30px); }
.page-hero .display { font-size: clamp(38px, 4.7vw, 70px); }
.page-hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; }
.page-hero__aside { display: grid; gap: 26px; padding-top: 26px; border-top: 1px solid var(--line); }
.page-hero__aside .review blockquote { font-size: clamp(17px, 1.4vw, 20px); }
.page-hero--plain .page-hero__grid { grid-template-columns: 1fr; }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; color: var(--ink-3); font-size: 14px; font-weight: 600; }
.crumbs a:hover { color: var(--ink); }
@media (max-width: 900px) { .page-hero__grid { grid-template-columns: 1fr; } }

/* ---------- sections ---------- */
.tint { background: var(--paper-2); }
.stack { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(26px, 3.4vw, 48px); }
.stack > *, .tabs__panel > *, .tabs__panels, .tabs { min-width: 0; }
.prose-block, .prose, .card, .defs dd, .checks > li, .steps__body { overflow-wrap: anywhere; }
.stack > .prose-block { max-width: 70ch; }
.prose-block { display: grid; gap: 14px; }
.prose-block strong { color: var(--ink); }
.prose-block a, .prose a, .card a:not(.more), .defs a, .checks a, .faq a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 2px; text-underline-offset: 4px; }

/* cards */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 270px), 1fr)); gap: 18px; }
.cards--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.card { display: flex; flex-direction: column; gap: 12px; padding: clamp(22px, 2.4vw, 32px); border: 1px solid var(--line); border-radius: 14px; background: var(--paper); transition: border-color 0.3s; }
.card:hover { border-color: color-mix(in srgb, var(--accent) 50%, var(--line)); }
.card > svg { width: 30px; height: 30px; color: var(--accent); }
.card h3 { font-size: clamp(19px, 1.6vw, 23px); }
.card p, .card li { font-size: 16px; }
.card ul { display: grid; gap: 6px; padding-left: 18px; list-style: disc; }
.card .card__meta { color: var(--ink-3); font-size: 14px; font-weight: 600; }
.card .card__price { color: var(--ink); font-family: var(--font-display); font-weight: var(--display-weight); font-size: clamp(26px, 2.6vw, 38px); letter-spacing: -0.03em; line-height: 1.1; }
.card .more, .card .btn { margin-top: auto; align-self: flex-start; }
.card .more { padding-top: 12px; }
@media (max-width: 700px) { .cards--2 { grid-template-columns: 1fr; } }

/* ordered steps and workstreams */
.steps { border-top: 1px solid var(--line); counter-reset: step; }
.steps > li { display: grid; grid-template-columns: 44px minmax(0, 0.85fr) minmax(0, 1.15fr); gap: clamp(14px, 3vw, 48px); padding: clamp(22px, 2.8vw, 36px) 0; border-bottom: 1px solid var(--line); counter-increment: step; }
.steps > li::before { content: counter(step); display: grid; place-items: center; width: 34px; height: 34px; border: 1.5px solid var(--line); border-radius: 50%; color: var(--ink); font-size: 14px; font-weight: 700; }
.steps h3 { font-size: clamp(20px, 2vw, 28px); letter-spacing: -0.02em; }
.steps__body { display: grid; gap: 10px; }
.steps__body small, .steps__body .is-detail { color: var(--ink-3); font-size: 14.5px; font-weight: 600; }
.steps__body ul { display: grid; gap: 6px; padding-left: 18px; list-style: disc; }
@media (max-width: 760px) { .steps > li { grid-template-columns: 44px 1fr; } .steps__body { grid-column: 2; } }

/* check lists */
.checks { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 0 clamp(24px, 4vw, 56px); max-width: 1000px; }
.checks > li { position: relative; padding: 14px 0 14px 34px; border-top: 1px solid var(--line-2); color: var(--ink); font-size: 16.5px; }
.checks > li::before { content: ""; position: absolute; left: 2px; top: 22px; width: 15px; height: 8px; border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent); rotate: -45deg; }
.checks > li strong { font-weight: 700; }

/* definition rows */
.defs { display: grid; max-width: 980px; }
.defs > div { display: grid; grid-template-columns: minmax(140px, 220px) 1fr; gap: clamp(14px, 3vw, 32px); padding: 18px 0; border-top: 1px solid var(--line); }
.defs dt { color: var(--ink); font-weight: 700; }
@media (max-width: 640px) { .defs > div { grid-template-columns: 1fr; gap: 4px; } }

/* tables */
.table { overflow-x: auto; border: 1px solid var(--line); border-radius: 14px; }
.table table { width: 100%; min-width: 520px; border-collapse: collapse; font-size: 15.5px; }
.table th, .table td { padding: 14px 18px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.table tr:last-child > * { border-bottom: 0; }
.table thead th, .table tr:first-child > th { background: var(--paper-2); color: var(--ink); font-size: 13.5px; font-weight: 700; }
.table td:first-child, .table tbody th { color: var(--ink); font-weight: 600; }

/* tabs */
.tabs { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(22px, 3vw, 38px); }
.tabs__panel[hidden] { display: none; }
.tabs__panel { display: grid; grid-template-columns: minmax(0, 1fr); gap: 22px; }
.tabs__panel > h3 { max-width: 28ch; font-size: clamp(24px, 2.8vw, 40px); line-height: 1.1; letter-spacing: -0.03em; font-weight: 600; }

/* quote */
.quote { display: grid; gap: 14px; max-width: 880px; padding-left: clamp(18px, 2.4vw, 32px); }
.quote blockquote { color: var(--ink); font-size: clamp(20px, 2.1vw, 30px); line-height: 1.35; font-weight: 500; letter-spacing: -0.018em; }
.quote figcaption { color: var(--ink-3); font-size: 14.5px; font-weight: 600; }

.figure img { width: 100%; height: auto; border: 1px solid var(--line); border-radius: 14px; }
.figure figcaption { margin-top: 10px; color: var(--ink-3); font-size: 14px; }

/* closing call to action */
.cta-band { padding-top: clamp(48px, 6vw, 96px); }
.cta-band .display { max-width: 20ch; margin-bottom: 18px; font-size: clamp(34px, 4.6vw, 68px); }
.cta-band .lede { margin-bottom: 30px; }

/* ---------- case study and article pages ---------- */
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tags > * { padding: 6px 13px; border: 1px solid var(--line); border-radius: 999px; color: var(--ink); font-size: 13px; font-weight: 700; }
.byline { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 18px; color: var(--ink-3); font-size: 14.5px; font-weight: 600; }
.byline a { color: var(--ink); }
.case-hero { padding-top: clamp(118px, 15vh, 164px); padding-bottom: clamp(32px, 4vw, 56px); }
.case-hero__grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: clamp(28px, 5vw, 80px); align-items: center; }
.case-hero__copy { display: grid; justify-items: start; gap: 20px; }
.case-hero .display { font-size: clamp(34px, 4.2vw, 62px); }
.case-hero__result { display: grid; gap: 10px; padding: clamp(22px, 2.8vw, 38px); border-radius: 18px; background: var(--paper-2); }
.case-hero__result .case__value { font-size: clamp(64px, 8vw, 128px); }
.case-hero__media img { width: 100%; height: auto; border-radius: 18px; border: 1px solid var(--line); }
.metrics { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 0 28px; }
.metrics > div { padding: 16px 0; border-top: 1px solid var(--line); }
.metrics dt { color: var(--ink-3); font-size: 13.5px; font-weight: 700; }
.metrics dd { color: var(--ink); font-size: clamp(20px, 1.9vw, 26px); font-weight: 600; letter-spacing: -0.02em; }
@media (max-width: 900px) { .case-hero__grid { grid-template-columns: 1fr; } }

.article { display: grid; grid-template-columns: 240px minmax(0, 760px); gap: clamp(28px, 5vw, 80px); align-items: start; padding-block: clamp(32px, 4vw, 64px) clamp(56px, 7vw, 110px); }
.toc { position: sticky; top: 104px; display: grid; gap: 4px; max-height: calc(100vh - 140px); overflow: auto; scrollbar-width: none; padding-left: 16px; }
.toc::before, .toc > i { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 2px; border-radius: 2px; background: var(--line); }
.toc > i { background: var(--accent); transform-origin: top; transform: scaleY(var(--p, 0)); }
.toc p { margin-bottom: 8px; color: var(--ink); font-size: 14px; font-weight: 700; }
.toc a { padding: 6px 0; color: var(--ink-3); font-size: 14.5px; font-weight: 600; line-height: 1.35; transition: color 0.25s; }
.toc a:hover, .toc a.is-active { color: var(--ink); }
.prose { display: grid; gap: 18px; font-size: 18px; line-height: 1.68; }
.prose > * { min-width: 0; }
.prose h2 { margin-top: 28px; color: var(--ink); font-size: clamp(26px, 2.6vw, 36px); line-height: 1.15; font-weight: 600; letter-spacing: -0.028em; scroll-margin-top: 100px; }
.prose h3 { margin-top: 14px; font-size: clamp(20px, 1.8vw, 24px); }
.prose h4 { color: var(--ink); font-size: 18px; font-weight: 700; }
.prose ul, .prose ol { display: grid; gap: 8px; padding-left: 24px; }
.prose ul { list-style: disc; }
.prose ol { list-style: decimal; }
.prose li::marker { color: var(--accent); font-weight: 700; }
.prose strong { color: var(--ink); }
.prose img { width: 100%; height: auto; border: 1px solid var(--line); border-radius: 12px; background: var(--paper-2); }
.prose figure { display: grid; gap: 8px; }
.prose figcaption { color: var(--ink-3); font-size: 14px; }
.prose blockquote { padding-left: 20px; border-left: 0; color: var(--ink); font-size: 21px; font-weight: 500; }
.prose .table { margin-block: 6px; font-size: 15.5px; }
.prose pre { overflow-x: auto; padding: 16px; border-radius: 12px; background: var(--paper-2); font-size: 14px; }
@media (max-width: 960px) { .article { grid-template-columns: 1fr; } .toc { display: none; } .prose { font-size: 17px; } }

/* listings */
.post-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 18px; }
.post-card { display: flex; flex-direction: column; gap: 12px; border: 1px solid var(--line); border-radius: 14px; background: var(--paper); overflow: hidden; transition: border-color 0.3s; }
.post-card:hover { border-color: color-mix(in srgb, var(--accent) 50%, var(--line)); }
.post-card__img { aspect-ratio: 16 / 9; background: var(--paper-2); overflow: hidden; }
.post-card__img img { width: 100%; height: 100%; object-fit: cover; }
.post-card__body { display: flex; flex: 1; flex-direction: column; gap: 10px; padding: 6px clamp(18px, 2vw, 26px) clamp(18px, 2vw, 26px); }
.post-card h3 { font-size: clamp(19px, 1.5vw, 22px); }
.post-card p { font-size: 15.5px; }
.post-card .card__meta { color: var(--ink-3); font-size: 13px; font-weight: 700; }
.post-card .more { margin-top: auto; padding-top: 10px; }
.case-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 380px), 1fr)); gap: 18px; }

/* ---------- logo wall with case popups ---------- */
.logos__grid { position: relative; grid-template-columns: repeat(6, 1fr); }
.logos__item { position: relative; width: 100%; cursor: default; }
.logos__item.has-case { cursor: pointer; }
.logos__item.is-dark { background: var(--navy); }
.logos__item.is-dark img { filter: none; opacity: 0.9; }
.logos__flag { position: absolute; top: 8px; right: 8px; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--paper-2); color: var(--ink-3); transition: background 0.3s, color 0.3s; }
.logos__flag svg { width: 11px; height: 11px; }
.logos__item.has-case:hover .logos__flag, .logos__item.is-open .logos__flag, .logos__item.has-case:focus-visible .logos__flag { background: var(--accent); color: #fff; }
.logos__item.has-case:hover img, .logos__item.is-open img { filter: none; opacity: 1; }
.logo-pop { position: absolute; z-index: 30; left: 0; top: 0; display: grid; gap: 12px; width: min(380px, calc(100vw - 32px)); padding: 22px; border: 1px solid var(--line); border-radius: 16px; background: #fff; box-shadow: 0 24px 60px rgba(16, 34, 53, 0.16); opacity: 0; visibility: hidden; translate: 0 8px; transition: opacity 0.22s ease, translate 0.35s var(--ease), visibility 0.22s; }
.logo-pop.is-open { opacity: 1; visibility: visible; translate: 0 0; }
.logo-pop__client { color: var(--ink-3); font-size: 13px; font-weight: 700; }
.logo-pop h3 { font-size: 19px; line-height: 1.25; }
.logo-pop ul { display: flex; flex-wrap: wrap; gap: 6px; }
.logo-pop li { padding: 5px 11px; border-radius: 999px; background: var(--accent-tint); color: var(--ink); font-size: 13px; font-weight: 700; }
.logo-pop p { font-size: 14.5px; line-height: 1.5; }
.logo-pop .more { font-size: 14.5px; }
@media (max-width: 900px) { .logos__grid { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 560px) { .logos__grid { grid-template-columns: repeat(3, 1fr); } }

/* ---------- footer ---------- */
.site-footer--full .wrap { display: grid; grid-template-columns: 1.2fr repeat(3, 1fr); align-items: start; gap: 32px; }
.site-footer--full nav { display: grid; gap: 10px; }
.site-footer--full nav b { color: var(--ink); font-size: 14px; }
.site-footer__base { grid-column: 1 / -1; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-top: 22px; border-top: 1px solid var(--line); }
@media (max-width: 760px) { .site-footer--full .wrap { grid-template-columns: 1fr 1fr; } }

/* ---------- Etavrian Motion Library on the web ---------- */
/* The library (core/motion.js, references/motion-recipes.md) defines the moves and when to use them:
   R01 rise for text and labels, R02 pop for pills, badges, icons and buttons, R03 slide for cards
   and rows entering a list, R04 mask reveal for display lines, R05 draw-on for lines and ticks,
   R09 count-up, R10 pulse, R12 highlight sweep, R14 state change, R20 stagger; plus its easing
   curves and springs. The spring curves below are sampled from the library's closed-form spring.
   motion.js gives an element its recipe by role (ROLES) and plays it once when it scrolls into view.
   Adapted for a page rather than a video: nothing is timed to speech, so text moves are a little
   longer and travel is shorter, and an element waits unseen for its turn instead of showing first. */
:root {
  --e-out: cubic-bezier(0.215, 0.61, 0.355, 1);
  --e-out-quart: cubic-bezier(0.165, 0.84, 0.44, 1);
  --e-out-expo: cubic-bezier(0.19, 1, 0.22, 1);
  --e-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --spring-soft: linear(0, 0.033, 0.114, 0.223, 0.344, 0.465, 0.579, 0.682, 0.77, 0.843, 0.902, 0.947, 0.981, 1.005, 1.02, 1.029, 1.034, 1.035, 1.033, 1.03, 1.026, 1.022, 1.018, 1.014, 1); /* 0.6s */
  --spring-base: linear(0, 0.061, 0.209, 0.397, 0.589, 0.762, 0.904, 1.007, 1.075, 1.111, 1.121, 1.115, 1.097, 1.074, 1.051, 1.03, 1.012, 1, 0.991, 0.987, 0.985, 0.986, 0.988, 0.991, 1); /* 0.62s */
  --spring-pop: linear(0, 0.119, 0.393, 0.708, 0.981, 1.165, 1.25, 1.25, 1.195, 1.115, 1.037, 0.977, 0.943, 0.933, 0.941, 0.96, 0.981, 0.999, 1.011, 1.017, 1.017, 1.013, 1.008, 1.002, 1); /* 0.8s */
  --spring-snappy: linear(0, 0.043, 0.145, 0.275, 0.41, 0.538, 0.651, 0.746, 0.824, 0.884, 0.929, 0.962, 0.985, 0.999, 1.008, 1.013, 1.015, 1.015, 1.013, 1.011, 1.009, 1.008, 1.006, 1.004, 1); /* 0.36s */
  --motion-decelerate: cubic-bezier(0.16, 0.8, 0.22, 1);
}
@media screen and (prefers-reduced-motion: no-preference) {
  /* R20 stagger: 0.11 s between sibling cards, 0.07 s between the parts of one object (--i is set by motion.js) */
  [data-motion-recipe] { --i: 0; --entry-delay: calc(var(--i) * 110ms); --part: calc(var(--i) * 70ms); }
  /* an element waits for its turn unseen, so it never shows, vanishes and then animates */
  html.js:not(.still) [data-motion-recipe]:not([data-motion-playing], [data-motion-recipe="L02"], [data-motion-recipe="H05"], [data-motion-recipe="N04"]) { opacity: 0; }
  html.js:not(.still) [data-motion-recipe="H05"]:not([data-motion-playing]) :is(img, span:not(.logos__flag)) { opacity: 0; }

  /* R01 rise: text, labels, rows of facts */
  [data-motion-playing]:is([data-motion-recipe="R01"], [data-motion-recipe="B04"], [data-motion-recipe="B07"], [data-motion-recipe="C01"]) { animation: m-rise 0.5s var(--part) var(--e-out) backwards; }
  [data-motion-playing][data-motion-recipe="B07"] > dd { animation: m-rise 0.5s calc(var(--part) + 70ms) var(--e-out) backwards; }
  [data-motion-playing][data-motion-recipe="F03"] { animation: m-fade 0.4s var(--part) linear backwards; }
  [data-motion-playing][data-motion-recipe="J03"] { animation: m-fade 0.3s linear backwards; }
  [data-motion-playing][data-motion-recipe="J03"] > :is(div, strong, span, p) { animation: m-rise 0.5s 160ms var(--e-out) backwards; }

  /* R02 pop: pills, badges, logos, buttons land with the library's "pop" spring; opacity never rides the overshoot */
  [data-motion-playing]:is([data-motion-recipe="R02"], [data-motion-recipe="H03"], [data-motion-recipe="N01"]) { animation: m-pop 0.8s var(--part) var(--spring-pop) backwards, m-fade 0.14s var(--part) linear backwards; }
  [data-motion-playing][data-motion-recipe="H05"] :is(img, span:not(.logos__flag)) { animation: m-pop 0.8s var(--part) var(--spring-pop) backwards, m-fade 0.14s var(--part) linear backwards; }
  [data-motion-playing][data-motion-recipe="A03"]::before, [data-motion-playing][data-motion-recipe="F05"] .tier__price { animation: m-pop 0.8s calc(var(--entry-delay) + 140ms) var(--spring-pop) backwards; }
  [data-motion-playing][data-motion-recipe="F03"] .mark { animation: m-pop 0.8s calc(var(--part) + 80ms) var(--spring-pop) backwards; }

  /* R03 slide: cards and rows enter the list on the "base" spring, in the direction the list grows */
  [data-motion-playing]:is([data-motion-recipe="B02"], [data-motion-recipe="B03"], [data-motion-recipe="B05"], [data-motion-recipe="F05"]) { animation: m-slide 0.62s var(--entry-delay) var(--spring-base) backwards, m-fade 0.22s var(--entry-delay) linear backwards; }
  [data-motion-playing][data-motion-recipe="A03"] { animation: m-side 0.62s var(--entry-delay) var(--spring-base) backwards, m-fade 0.22s var(--entry-delay) linear backwards; }
  [data-motion-recipe="L02"].is-shown { animation: m-side 0.6s var(--spring-soft) backwards, m-fade 0.2s linear backwards; }

  /* R05 draw-on: ticks, rules, portraits opening */
  [data-motion-playing][data-motion-recipe="B04"]::before { animation: et-check-mark 420ms calc(var(--part) + 160ms) var(--e-in-out) backwards; }
  [data-motion-playing][data-motion-recipe="F03"] > :is(th, td):last-child { animation: et-table-read 750ms var(--part) ease-out; }
  [data-motion-playing][data-motion-recipe="J03"] > img { animation: et-credit-iris 600ms var(--e-out-expo) backwards; }

  /* R10 pulse, R14 state change: confirming something already on screen */
  [data-motion-playing][data-motion-recipe="N04"] svg { animation: et-link-forward 720ms var(--part) ease-out; }
  .faq details[open] > summary i { animation: et-equalize 460ms ease-out; }
  .faq details[open] > p, .faq details[open] > div { animation: et-answer-wipe 380ms var(--motion-decelerate); }
  .chip input:checked + span, .seg button[aria-selected="true"] { animation: et-choice-press 330ms var(--motion-decelerate); }
}
@keyframes m-rise { from { opacity: 0; translate: 0 18px; } }
@keyframes m-pop { from { scale: 0.8; } }
@keyframes m-slide { from { translate: 0 30px; } }
@keyframes m-side { from { translate: 34px 0; } }
@keyframes m-fade { from { opacity: 0; } }
@keyframes et-symbol-land { from { scale: 0.8; } }
@keyframes et-check-mark { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(-2px); } }
@keyframes et-table-read { 0% { box-shadow: inset 0 -2px 0 transparent; } 45% { box-shadow: inset 0 -2px 0 var(--accent); } }
@keyframes et-credit-iris { from { clip-path: circle(8%); } to { clip-path: circle(75%); } }
@keyframes et-link-forward { 0%, 100% { translate: 0; } 45% { translate: 4px 0; } }
@keyframes et-equalize { from { rotate: -42deg; } }
@keyframes et-answer-wipe { from { clip-path: inset(0 0 70%); opacity: 0.56; } to { clip-path: inset(-3px); } }
@keyframes et-choice-press { 35% { scale: 0.965; } }

/* price lines inside cards, tabs and prose */
.price { color: var(--ink); font-family: var(--font-display); font-weight: var(--display-weight); font-size: clamp(30px, 3.2vw, 46px); line-height: 1.05; letter-spacing: -0.035em; }
.logos-section { padding-block: clamp(32px, 4vw, 56px); }
.logos-section .logos { padding-block: 0; }
.faq-section .faq { max-width: 920px; }

/* figures with a label and a note (sourced numbers count up) */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 0 clamp(20px, 3vw, 44px); }
.stat { display: grid; align-content: start; gap: 6px; padding: 20px 0 22px; border-top: 1px solid var(--line); }
.stat__label { color: var(--ink-3); font-size: 14px; font-weight: 700; }
.stat__value { color: var(--accent); font-family: var(--font-display); font-weight: var(--display-weight); font-size: clamp(34px, 3.8vw, 56px); line-height: 1; letter-spacing: -0.04em; font-variant-numeric: tabular-nums; }
.stat p { font-size: 15.5px; }

/* one-line strip of facts under a hero */
.strip-section { padding-block: clamp(20px, 2.6vw, 36px); }
.strip { display: flex; flex-wrap: wrap; gap: 10px; }
.strip li { padding: 9px 16px; border: 1px solid var(--line); border-radius: 999px; color: var(--ink); font-size: 14.5px; font-weight: 600; }

.card h3 a, .steps h3 a, .post-card h3 a { color: inherit; text-decoration: none; }
.card h3 a:hover, .steps h3 a:hover, .post-card h3 a:hover { text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 2px; text-underline-offset: 4px; }

/* ---------- designed text ---------- */
/* text-only section: heading on the left, reading column on the right */
.split { display: grid; grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr); gap: clamp(28px, 6vw, 104px); align-items: start; }
.split > .section-head { position: sticky; top: 108px; margin-bottom: 0; }
.split > .stack { padding-top: 6px; }
.split .checks { grid-template-columns: minmax(0, 1fr); }
.split-section + .split-section { padding-top: 0; }
.split-section + .split-section > .wrap { padding-top: clamp(56px, 7vw, 104px); border-top: 1px solid var(--line); }
@media (max-width: 900px) {
  .split { grid-template-columns: minmax(0, 1fr); gap: 22px; }
  .split > .section-head { position: static; }
}

.text { display: grid; gap: 16px; max-width: 68ch; font-size: clamp(17px, 1.25vw, 19px); line-height: 1.64; overflow-wrap: anywhere; }
.text strong { color: var(--ink); }
.text a, .points a, .callout a, .note a:not(.more) { color: var(--ink); text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 2px; text-underline-offset: 4px; }
.text--lead > p:first-child { color: var(--ink); font-size: clamp(20px, 1.9vw, 27px); line-height: 1.38; font-weight: 500; letter-spacing: -0.016em; }

/* a run of short statements */
.points { display: grid; max-width: 900px; border-top: 1px solid var(--line); }
.points > li { position: relative; padding: 17px 0 17px 34px; border-bottom: 1px solid var(--line); color: var(--ink); font-size: clamp(17px, 1.4vw, 20px); line-height: 1.45; font-weight: 500; letter-spacing: -0.01em; overflow-wrap: anywhere; }
.points > li::before { content: ""; position: absolute; left: 2px; top: 1.62em; width: 16px; height: 2px; border-radius: 2px; background: var(--accent); }

/* the one line a section wants you to keep */
.callout { max-width: 900px; padding: clamp(20px, 2.6vw, 34px); border-radius: 16px; background: var(--accent-tint); color: var(--ink); font-size: clamp(19px, 1.9vw, 27px); line-height: 1.34; font-weight: 600; letter-spacing: -0.02em; text-wrap: balance; }

/* a titled aside */
.note { display: grid; gap: 10px; align-content: start; max-width: 900px; padding: clamp(20px, 2.4vw, 32px); border-radius: 14px; background: var(--paper-2); overflow-wrap: anywhere; }
.tint .note, .gm-section .note { background: #fff; }
.note h3 { font-size: clamp(19px, 1.6vw, 23px); }
.note ul { display: grid; gap: 6px; padding-left: 18px; list-style: disc; }
.note .more { justify-self: start; padding-top: 6px; }

/* a row of destinations */
.links { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; }
.links .more { padding: 12px 20px; border: 1.5px solid var(--line); border-radius: 999px; background: var(--paper); transition: border-color 0.3s, background 0.3s; }
.links .more:hover { border-color: var(--ink); }
.subhead { margin-top: 10px; padding-top: 28px; border-top: 1px solid var(--line); color: var(--ink); font-size: clamp(22px, 2.2vw, 30px); line-height: 1.15; font-weight: 600; letter-spacing: -0.025em; }
.fit ul { display: grid; }
.fit p { margin-top: 12px; }


/* definition rows inside narrow containers stack instead of squeezing the text */
.card .defs > div, .note .defs > div, .steps__body .defs > div, .card .metrics, .note .metrics { grid-template-columns: minmax(0, 1fr); gap: 2px; padding: 12px 0; }
.card .defs dt, .note .defs dt, .steps__body .defs dt { color: var(--ink-3); font-size: 13.5px; }
.card .defs, .note .defs { max-width: none; }
.tint .card, .tint .post-card, .gm-section .card { background: #fff; }
.tint .faq details { background: #fff; }
.cta-band .links { margin-top: 6px; }
.cta-band .lede + .links { margin-top: 30px; }
.cta-band .lede { margin-bottom: 0; }
.cta-band .lede + .lede { margin-top: 10px; }

/* ---------- pricing plans ---------- */
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 18px; align-items: stretch; }
.plan { position: relative; display: flex; flex-direction: column; gap: 14px; padding: clamp(22px, 2.4vw, 32px); border: 1px solid var(--line); border-radius: 16px; background: var(--paper); overflow-wrap: anywhere; }
.plan.is-featured { border: 2px solid var(--accent); }
.plan__tag { align-self: flex-start; padding: 5px 12px; border-radius: 999px; background: var(--accent); color: #fff; font-size: 12.5px; font-weight: 700; }
.plan h3 { font-size: clamp(19px, 1.6vw, 23px); }
.plan__price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.plan__price s { flex-basis: 100%; color: var(--ink-3); font-size: 14.5px; font-weight: 600; }
.plan__price strong { color: var(--ink); font-family: var(--font-display); font-weight: var(--display-weight); font-size: clamp(34px, 3.6vw, 52px); line-height: 1; letter-spacing: -0.04em; }
.plan__price strong.is-long { font-size: clamp(20px, 1.9vw, 26px); line-height: 1.2; letter-spacing: -0.02em; }
.plan__price span { color: var(--ink-3); font-size: 14.5px; font-weight: 600; }
.plan > p { font-size: 16px; }
.plan__group { display: grid; gap: 4px; }
.plan__group > p { color: var(--ink); font-size: 15px; }
.plan .checks { grid-template-columns: minmax(0, 1fr); max-width: none; }
.plan .checks > li { padding: 10px 0 10px 30px; font-size: 15.5px; }
.plan .checks > li::before { top: 17px; }
.plan .btn { margin-top: auto; align-self: flex-start; }
.tint .plan { background: #fff; }

/* ---------- comparison table with marks ---------- */
.table--compare td, .table--compare thead th:not(:first-child) { text-align: center; }
.table--compare tbody th { font-weight: 600; }
.table--compare thead th:nth-child(2) { color: var(--accent); }
.mark { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; font-size: 14px; font-weight: 800; line-height: 1; vertical-align: middle; }
.mark--yes { background: var(--accent); }
.mark--yes::after { content: ""; width: 10px; height: 5px; margin-top: -2px; border-left: 2px solid #fff; border-bottom: 2px solid #fff; rotate: -45deg; }
.mark--no { background: rgba(16, 34, 53, 0.08); }
.mark--no::after { content: ""; width: 10px; height: 2px; border-radius: 2px; background: var(--ink-3); }
.mark--maybe { border: 1.5px solid var(--line); color: var(--ink-3); }

/* ---------- problem beside its solution ---------- */
.fit--solve > div:first-child { background: var(--paper-2); }
.fit--solve > div + div { background: var(--accent-tint); }
.fit--solve li { padding-left: 34px; }
.fit--solve li strong { display: block; color: var(--ink); font-size: 17px; }
.fit--solve > div:first-child li::before { top: 26px; width: 16px; height: 0; border-left: 0; border-bottom: 2px solid var(--ink-3); rotate: 0deg; }
.fit--solve > div + div li { color: var(--ink-2); }
.fit--solve > div + div li::before { top: 22px; width: 16px; height: 9px; border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent); rotate: -45deg; }

.video { max-width: 760px; }
.video video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; border-radius: 16px; background: var(--navy); }

/* a call to action in the middle of a page */
.cta-band--mid { padding-block: clamp(24px, 3vw, 44px); }
.cta-band--mid .wrap { padding: clamp(28px, 4.4vw, 64px); border-radius: 24px; background: var(--accent-tint); }
.cta-band--mid .display { margin-bottom: 14px; font-size: clamp(28px, 3.4vw, 50px); }
.page-hero__aside .note { max-width: none; }
.page-hero__aside .checks { grid-template-columns: minmax(0, 1fr); }

.table--compare thead small { display: block; margin-top: 2px; color: var(--ink-3); font-size: 12.5px; font-weight: 600; }
.table--compare table { min-width: 620px; }
/* the column that is ours is marked, and the marks land one by one as a row is read */
.table--compare :is(th, td):nth-child(2) { background: var(--accent-tint); }
.table--compare thead th:nth-child(2) { color: var(--ink); box-shadow: inset 0 3px 0 var(--accent); }

/* ---------- hero scenes ---------- */
.scene__status { min-height: 1.6em; margin-bottom: 10px; color: var(--ink); font-size: clamp(15px, 1.3vw, 19px); font-weight: 700; letter-spacing: -0.01em; transition: opacity 0.22s; }

/* one small looping scene per kind of service (shared/js/scenes.js) */
.scene { position: relative; margin-top: clamp(20px, 2.8vw, 36px); }
.scene[data-scene]:empty { min-height: clamp(330px, 30vw, 400px); }
.scene__stage { position: relative; isolation: isolate; display: grid; align-items: center; gap: clamp(14px, 2.2vw, 28px); min-height: clamp(280px, 26vw, 340px); padding: clamp(16px, 2.6vw, 36px); border: 1px solid var(--line-2); border-radius: 22px; background: var(--paper-2); color: var(--ink); overflow: hidden; }
.scene__stage::before { content: ""; position: absolute; inset: 0; z-index: -1; background-image: radial-gradient(rgba(16, 34, 53, 0.11) 1px, transparent 1.5px); background-size: 22px 22px; mask-image: linear-gradient(115deg, #000, transparent 58%); }
.scene__stage b { font-weight: 700; }
.sc-caret, .scene .qs__caret { flex: none; width: 2px; height: 20px; margin-left: -8px; background: var(--accent); animation: sc-caret 1s steps(2) infinite; }
@keyframes sc-caret { 50% { opacity: 0; } }
.sc-search, .scene .qs__bar { display: flex; align-items: center; gap: 12px; height: 54px; padding: 0 20px; border: 1.5px solid var(--line); border-radius: 999px; background: #fff; font-size: 16px; font-weight: 600; white-space: nowrap; overflow: hidden; }
.sc-search svg, .scene .qs__bar svg { flex: none; width: 19px; height: 19px; color: var(--ink-3); }
/* small labels */
.sc-flags em, .sc-chips em, .sc-doc em { padding: 5px 11px; border-radius: 999px; background: rgba(16, 34, 53, 0.08); color: var(--ink-2); font-size: 12.5px; font-style: normal; font-weight: 700; white-space: nowrap; }
.sc-flags em:not(:first-child), .sc-chips em.is-you, .sc-doc em { background: var(--accent-tint); box-shadow: inset 0 0 0 1.5px var(--accent); color: var(--ink); }
/* rows that get ticked (or flagged) while the scene plays: --done and --miss run from 0 to 1 */
:is(.sc-page, .sc-brief, .sc-rules) > b { font-size: 13.5px; font-weight: 800; }
:is(.sc-page, .sc-brief, .sc-rules) li { --done: 0; --miss: 0; position: relative; padding: 9px 0 9px 32px; border-top: 1px solid var(--line-2); font-size: 14.5px; font-weight: 600; line-height: 1.3; }
:is(.sc-page, .sc-brief, .sc-rules) li::before { content: ""; position: absolute; left: 0; top: 8px; width: 20px; height: 20px; border: 1.5px solid color-mix(in srgb, var(--accent) clamp(0%, calc(var(--done) * 100%), 100%), color-mix(in srgb, var(--ink) clamp(0%, calc(var(--miss) * 100%), 100%), var(--line))); border-radius: 50%; background: linear-gradient(#fff, #fff) center / calc(var(--miss) * 9px) 2px no-repeat, color-mix(in srgb, var(--accent) clamp(0%, calc(var(--done) * 100%), 100%), color-mix(in srgb, var(--ink) clamp(0%, calc(var(--miss) * 100%), 100%), #fff)); }
:is(.sc-page, .sc-brief, .sc-rules) li::after { content: ""; position: absolute; left: 6px; top: 14px; width: 9px; height: 5px; border-left: 2px solid #fff; border-bottom: 2px solid #fff; rotate: -45deg; scale: var(--done); }

/* SEO: the page climbs the results */
.sc-rank { --row: 54px; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
.sc-serp { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 0 10px; }
.sc-slots li { display: grid; place-items: center; height: var(--row); color: var(--ink-3); font-size: 13px; font-weight: 800; }
.sc-rows li { position: relative; isolation: isolate; display: flex; flex-direction: column; justify-content: center; gap: 7px; height: var(--row); padding: 0 16px; }
.sc-rows li::before { content: ""; position: absolute; inset: 4px 0; z-index: -1; border: 1px solid var(--line-2); border-radius: 12px; background: #fff; }
.sc-rows li > i { display: block; width: 44%; height: 8px; border-radius: 4px; background: rgba(16, 34, 53, 0.14); }
.sc-rows li > i + i { width: 74%; height: 6px; background: rgba(16, 34, 53, 0.07); }
.sc-rows li:nth-child(2) > i { width: 53%; }
.sc-rows li:nth-child(2) > i + i { width: 62%; }
.sc-rows li:nth-child(3) > i { width: 37%; }
.sc-rows li:nth-child(4) > i + i { width: 81%; }
.sc-rows .is-you { --on: 0; z-index: 1; flex-direction: row; align-items: center; justify-content: space-between; gap: 10px; font-size: 14.5px; }
.sc-rows .is-you::before { border: 1.5px solid color-mix(in srgb, var(--accent) clamp(0%, calc(var(--on) * 100%), 100%), var(--line)); background: color-mix(in srgb, var(--accent) clamp(0%, calc(var(--on) * 9%), 9%), #fff); box-shadow: 0 10px 24px rgba(16, 34, 53, calc(var(--on) * 0.1)); }
.sc-flags { display: grid; justify-items: end; }
.sc-flags em { grid-area: 1 / 1; }

/* AI SEO: the answer names what it can read */
.sc-answer { grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); }
.sc-chat { display: grid; gap: 12px; }
.sc-bubble { justify-self: end; max-width: 92%; min-height: 46px; padding: 12px 16px; border-radius: 16px 16px 4px 16px; background: var(--ink); color: #fff; font-size: 15px; font-weight: 600; line-height: 1.4; }
.sc-reply { display: grid; gap: 9px; padding: 16px; border: 1px solid var(--line-2); border-radius: 16px 16px 16px 4px; background: #fff; }
.sc-reply > i, .sc-doc > i { display: block; height: 8px; border-radius: 4px; background: rgba(16, 34, 53, 0.12); transform-origin: left; }
.sc-reply > i:nth-child(1) { width: 92%; }
.sc-reply > i:nth-child(2) { width: 78%; }
.sc-reply > i:nth-child(3) { width: 54%; }
.sc-chips { display: flex; flex-wrap: wrap; gap: 6px; min-height: 30px; margin-top: 4px; }
.sc-page { --lift: 0; display: grid; gap: 10px; padding: 18px; border: 1.5px solid color-mix(in srgb, var(--accent) clamp(0%, calc(var(--lift) * 100%), 100%), var(--line)); border-radius: 16px; background: #fff; }

/* Meta Ads: three reasons to buy, one budget */
.sc-ads { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(8px, 1.4vw, 16px); }
.sc-ad { --win: 0; display: grid; align-content: start; gap: 10px; padding: clamp(8px, 1.1vw, 12px); border: 1.5px solid color-mix(in srgb, var(--accent) clamp(0%, calc(var(--win) * 100%), 100%), var(--line-2)); border-radius: 14px; background: #fff; font-size: clamp(12px, 1.1vw, 14.5px); line-height: 1.25; }
@media (max-width: 380px) { .scene__stage.sc-creative { padding-inline: 8px; } .sc-ads { gap: 4px; } } /* the 3 ads keep a readable width on a 360 px phone */
.sc-ad__img { aspect-ratio: 16 / 9; border-radius: 9px; background: var(--paper-2) center / auto 92% no-repeat; }
.sc-meter { display: block; height: 8px; border-radius: 4px; background: rgba(16, 34, 53, 0.08); overflow: hidden; }
.sc-meter i { display: block; height: 100%; border-radius: 4px; background: var(--accent); transform-origin: left; }
.sc-budget { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 14px; font-size: 13.5px; font-weight: 800; }
.sc-split { display: flex; gap: 4px; height: 14px; }
.sc-split i { flex: 1 1 0; border-radius: 4px; background: rgba(16, 34, 53, 0.16); }
.sc-split i:first-child { background: var(--accent); }

/* Content: brief, draft with sources, a person checks it */
.sc-draft { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); align-items: stretch; }
.sc-brief { display: grid; align-content: center; gap: 10px; padding: 18px; border: 1px solid var(--line-2); border-radius: 16px; background: #fff; }
.sc-doc { position: relative; display: grid; align-content: start; gap: 10px; padding: clamp(18px, 2.2vw, 28px); border: 1px solid var(--line-2); border-radius: 16px; background: #fff; }
.sc-doc > i.is-title { width: 56%; height: 14px; margin-bottom: 6px; background: rgba(16, 34, 53, 0.24); }
.sc-doc > i.is-short { width: 46%; }
.sc-doc em { justify-self: start; padding: 3px 9px; border-radius: 6px; box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 50%, transparent); font-size: 12px; }
.sc-stamp { position: absolute; right: 16px; bottom: 14px; padding: 8px 14px; border: 2px solid var(--accent); border-radius: 10px; background: #fff; font-size: 13px; font-weight: 800; }

/* AI automation: rules first, then routing */
.sc-route { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr) minmax(0, 1fr); }
.sc-route::after { content: ""; position: absolute; left: 12%; right: 12%; top: 50%; z-index: -1; border-top: 1.5px dashed var(--line); }
.sc-col { display: grid; gap: 10px; }
.sc-card { display: grid; gap: 2px; padding: 12px 14px; border: 1px solid var(--line-2); border-radius: 12px; background: #fff; font-size: 14px; line-height: 1.3; }
.sc-card span { color: var(--ink-3); font-size: 12.5px; font-weight: 600; }
.sc-rules { padding: 16px; border: 1.5px solid var(--line); border-radius: 16px; background: #fff; }
.sc-owner { --on: 0; padding: 13px 14px; border: 1.5px solid color-mix(in srgb, var(--accent) clamp(0%, calc(var(--on) * 100%), 100%), var(--line-2)); border-radius: 12px; background: color-mix(in srgb, var(--accent) clamp(0%, calc(var(--on) * 12%), 12%), #fff); font-size: 13.5px; font-weight: 700; text-align: center; }

/* Google Ads: search terms are sorted into "buy" and "exclude" (shared/js/ads.js) */
.scene .qs { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: center; gap: clamp(14px, 2.2vw, 28px); }
.scene .qs__cols { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.scene .qs__col { min-height: 208px; padding: 14px; border: 1px solid var(--line-2); border-radius: 14px; background: #fff; overflow: hidden; }
.scene .qs__col p { margin-bottom: 10px; font-size: 13.5px; font-weight: 800; }
.scene .qs__col li { height: 44px; margin-bottom: 8px; }
.scene .qs__col li span { display: block; align-content: center; height: 44px; padding: 6px 12px; border-radius: 9px; background: var(--accent-tint); font-size: 13.5px; font-weight: 600; line-height: 1.2; }
.scene .qs__col.is-out li span { background: rgba(16, 34, 53, 0.06); color: var(--ink-3); }
.scene .qs__col.is-out li.is-in span { text-decoration: line-through; text-decoration-color: var(--ink); }

@media (max-width: 760px) {
  .sc-rank, .sc-answer, .sc-draft, .scene .qs { grid-template-columns: minmax(0, 1fr); }
  .sc-rank { --row: 48px; }
  .sc-bubble { min-height: 66px; }
  .sc-route { grid-template-columns: minmax(0, 1fr); }
  .sc-route::after { left: 50%; right: auto; top: 12%; bottom: 12%; border-top: 0; border-left: 1.5px dashed var(--line); }
  .sc-in, .sc-out { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 420px) {
  .scene .qs__col li span { padding-inline: 8px; font-size: 12px; }
  .sc-flags em { padding-inline: 8px; font-size: 11.5px; }
}

/* ---------- illustrations ---------- */
/* Line drawings, generated once (tools/art.mjs) and traced into layered SVG (tools/art-svg.mjs).
   motion.js inlines the file, so the accent parts take the page accent and every layer can move:
   the drawing rises from its base, the accent parts land one by one, then it floats. */
.art { margin: 0; aspect-ratio: 1; }
.art__in, .art svg { display: block; width: 100%; height: 100%; }
.art svg { overflow: visible; }
.art .ln { fill: var(--ink); }
.art .ac { fill: var(--accent); transform-box: fill-box; transform-origin: center; }
.art .sh { fill: var(--ink); fill-opacity: 0.08; }
.art--hero { align-self: center; justify-self: end; width: min(100%, 400px); }
.art--side { width: min(100%, 290px); margin-left: -10px; }
.art--cta { width: clamp(190px, 26vw, 360px); }
@media screen and (prefers-reduced-motion: no-preference) {
  html.js:not(.still) .art:not(.is-drawn) svg { opacity: 0; }
  /* The finished drawing is uncovered from its base upwards, as if it were being built.
     (An earlier version traced the outlines first: on filled shapes that showed as a double hairline.) */
  html:not(.still) .art.is-drawn svg { animation: art-rise 1.15s cubic-bezier(0.22, 1, 0.36, 1) both; }
  html:not(.still) .art.is-drawn.is-live svg { animation: art-rise 1.15s cubic-bezier(0.22, 1, 0.36, 1) both, art-float 7s ease-in-out 1.2s infinite; }
  html:not(.still) .art.is-drawn .ac { animation: art-pop 0.7s calc(0.85s + var(--i) * 110ms) var(--motion-decelerate) both; }
  html:not(.still) .art.is-drawn.is-live .ac { animation: art-pop 0.7s calc(0.85s + var(--i) * 110ms) var(--motion-decelerate) both, art-pulse 3.8s calc(2.6s + var(--i) * 280ms) ease-in-out infinite; }
}
@keyframes art-rise { from { clip-path: inset(100% -4% -4% -4%); opacity: 0.35; } to { clip-path: inset(-4%); opacity: 1; } }
@keyframes art-fade { from { opacity: 0; } }
@keyframes art-pop { from { opacity: 0; scale: 0.4; } 70% { opacity: 1; scale: 1.07; } }
@keyframes art-pulse { 50% { opacity: 0.58; } }
@keyframes art-float { 50% { translate: 0 -9px; } }
.page-hero--art .page-hero__grid { align-items: center; }
@media (max-width: 900px) {
  .art--hero { justify-self: start; width: min(62vw, 250px); }
  .art--side { order: -1; width: 150px; margin-left: -6px; }
}

/* text-only section: the heading and its drawing stay in view while the text scrolls */
.split__side { position: sticky; top: 108px; display: grid; gap: clamp(18px, 2.6vw, 32px); }
.split__side > .section-head { margin-bottom: 0; }
@media (max-width: 900px) { .split__side { position: static; gap: 14px; } }

/* closing call to action: a tinted panel with the Growth Map drawing */
.cta-band { padding-top: clamp(24px, 3vw, 44px); }
.cta-band > .wrap { display: grid; grid-template-columns: minmax(0, 1fr); align-items: center; gap: clamp(20px, 4vw, 64px); padding: clamp(28px, 4.6vw, 72px); border-radius: 28px; background: var(--accent-tint); }
.cta-band > .wrap:has(> .art) { grid-template-columns: minmax(0, 1fr) auto; }
.cta-band__copy { display: grid; justify-items: start; }
@media (max-width: 760px) {
  .cta-band > .wrap:has(> .art) { grid-template-columns: minmax(0, 1fr); }
  .art--cta { order: -1; width: 170px; margin: -8px 0 -6px -8px; }
}

/* ---------- line icons ---------- */
/* Every stroke has pathLength 1, so one keyframe draws any icon. The accent stroke redraws on hover. */
.ico { flex: none; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.ico > * { stroke-dasharray: 1.04; }
.ico .a { stroke: var(--accent); stroke-width: 1.9; }
.card > .ico { width: 42px; height: 42px; margin-bottom: 4px; color: var(--ink); }
@media screen and (prefers-reduced-motion: no-preference) {
  [data-motion-playing] > .ico > * { animation: ico-draw 950ms calc(var(--entry-delay) + 140ms) var(--motion-decelerate) backwards; }
  [data-motion-playing] > .ico > :nth-child(2) { animation-delay: calc(var(--entry-delay) + 260ms); }
  [data-motion-playing] > .ico > :nth-child(n + 3) { animation-delay: calc(var(--entry-delay) + 380ms); }
}
@keyframes ico-draw { from { stroke-dashoffset: 1.04; } }
@keyframes ico-redraw { from { stroke-dashoffset: 1.04; } }

/* cards: the tint opens from the icon */
.card { position: relative; isolation: isolate; overflow: hidden; }
.card::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--accent-tint); clip-path: circle(0 at 46px 48px); transition: clip-path 0.75s var(--ease); }
.card:hover::before, .card:focus-within::before { clip-path: circle(150% at 46px 48px); }

/* ---------- steps: a rail that fills as you read down ---------- */
.steps { position: relative; --p: 0; }
.steps::before, .steps::after { content: ""; position: absolute; left: 16.25px; top: 0; bottom: 0; width: 1.5px; background: var(--line); pointer-events: none; }
.steps::after { background: var(--accent); transform-origin: top; scale: 1 var(--p); }
.steps > li::before { position: relative; z-index: 1; background: var(--bg, #fff); transition: background 0.45s, border-color 0.45s, color 0.45s; }
.steps > li.is-on::before { border-color: var(--accent); background: var(--accent); color: #fff; }
.tint { --bg: var(--paper-2); }
.tint .card .steps, .tint .note .steps { --bg: #fff; }

/* ---------- figures and call-outs draw their accent line when they come into view ---------- */
.stat { position: relative; padding-top: 24px; border-top: 0; }
.stat::before, .stat::after { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px; border-radius: 2px; background: var(--line); }
.stat::after { background: var(--accent); transform-origin: left; transition: scale 1.3s var(--ease) 0.15s; }
.callout { position: relative; padding-left: clamp(26px, 3.2vw, 46px); overflow: hidden; }
.callout::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 5px; background: var(--accent); transform-origin: top; transition: scale 0.9s var(--ease) 0.2s; }
@media screen and (prefers-reduced-motion: no-preference) {
  html.js:not(.still) .stat:not([data-motion-playing])::after { scale: 0 1; }
  html.js:not(.still) .callout:not([data-motion-playing])::before { scale: 1 0; }
}

/* tinted bands carry a faint drafting grid in one corner */
.tint::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(16, 34, 53, 0.1) 1px, transparent 1.5px); background-size: 24px 24px; mask-image: radial-gradient(ellipse 62% 88% at 100% 0%, #000, transparent 72%); pointer-events: none; }
.tint > .wrap { position: relative; }

/* route rail: where you are on the page */
.route { position: fixed; z-index: 40; left: 18px; top: 50%; translate: 0 -50%; display: none; gap: 20px; padding: 14px 8px; border-radius: 999px; background: rgba(255, 255, 255, 0.92); }
.route::before, .route > i { content: ""; position: absolute; left: 12px; top: 19px; bottom: 19px; width: 1px; background: var(--line); }
.route > i { background: var(--ink); transform-origin: top; scale: 1 var(--p, 0); }
.route a { position: relative; display: flex; align-items: center; gap: 12px; height: 10px; }
.route a::before { content: ""; flex: none; width: 9px; height: 9px; border: 1.5px solid var(--ink-3); border-radius: 50%; background: #fff; transition: background 0.3s, border-color 0.3s, scale 0.4s var(--ease); }
.route a.is-active::before { background: var(--accent); border-color: var(--accent); scale: 1.35; }
.route a span { position: absolute; left: 22px; top: 50%; margin-top: -13px; padding: 5px 10px; border-radius: 8px; background: var(--ink); color: #fff; font-size: 12px; font-weight: 700; white-space: nowrap; opacity: 0; translate: -6px 0; transition: opacity 0.25s, translate 0.35s var(--ease); pointer-events: none; }
.route a:hover span, .route a:focus-visible span { opacity: 1; translate: 0 0; }
@media (min-width: 1500px) { .route { display: grid; left: calc((100vw - 1240px) / 2 - 84px); } }

/* ---------- card grids come in three looks, used in turn down a page ---------- */
/* 1. a lead card with a drawing, the rest beside or under it */
.cards--bento { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.cards--bento > .card { grid-column: span 2; }
.cards--bento.is-3 > .card { grid-column: span 3; }
.cards--bento > .card--lead, .cards--bento.is-3 > .card--lead { grid-column: 1 / -1; }
.cards--bento.is-5 > .card--lead { grid-column: span 4; }
.card.card--lead { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: clamp(16px, 3vw, 44px); border-color: transparent; background: var(--accent-tint); }
.card--lead::before { display: none; }
.card--lead > div { display: flex; flex-direction: column; gap: 12px; }
.card--lead h3 { max-width: 22ch; font-size: clamp(24px, 2.6vw, 36px); line-height: 1.12; letter-spacing: -0.03em; }
.card--lead p, .card--lead li { max-width: 56ch; font-size: 17px; }
.art--card { width: clamp(150px, 19vw, 240px); margin-block: -6px; }
@media (max-width: 900px) {
  .cards--bento { grid-template-columns: minmax(0, 1fr); }
  .cards--bento > .card, .cards--bento.is-3 > .card, .cards--bento.is-5 > .card--lead { grid-column: auto; }
  .card.card--lead { grid-template-columns: minmax(0, 1fr); }
  .art--card { order: -1; width: 140px; margin: -4px 0 -4px -8px; }
}

/* 2. rows: icon, title, text; the tint rises from the bottom edge on hover */
.rows { border-top: 1px solid var(--line); }
.row { position: relative; isolation: isolate; display: grid; grid-template-columns: 48px minmax(0, 0.8fr) minmax(0, 1.2fr); align-items: start; gap: clamp(14px, 3vw, 44px); padding: clamp(22px, 2.8vw, 36px) clamp(0px, 1.2vw, 16px); border-bottom: 1px solid var(--line); overflow-wrap: anywhere; }
.row::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--accent-tint); transform-origin: bottom; scale: 1 0; transition: scale 0.55s var(--ease); }
.row:hover::before, .row:focus-within::before { scale: 1 1; }
.tint .row::before { background: #fff; }
.row > .ico { width: 40px; height: 40px; color: var(--ink); }
.row h3 { font-size: clamp(20px, 2vw, 27px); letter-spacing: -0.02em; }
.row h3 a { color: inherit; }
.row__body { display: grid; gap: 10px; font-size: 16px; }
.row__body ul { display: grid; gap: 6px; padding-left: 18px; list-style: disc; }
.row__body a:not(.more) { color: var(--ink); text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 2px; text-underline-offset: 4px; }
.row__body .more { justify-self: start; padding-top: 4px; }
@media (max-width: 760px) {
  .row { grid-template-columns: 40px minmax(0, 1fr); }
  .row > .ico { width: 32px; height: 32px; }
  .row__body { grid-column: 2; }
}
@media screen and (prefers-reduced-motion: no-preference) {
}

/* titled asides carry a small icon */
.note > .ico { width: 30px; height: 30px; margin-bottom: 2px; color: var(--ink); }

/* ---------- pictures ---------- */
/* Studio photos of paper models of the same motifs (tools/art.mjs --photo), one file per accent. */
.card { --pad: clamp(22px, 2.4vw, 32px); padding: var(--pad); }
.shot { margin: 0; overflow: hidden; background: #e3e5e7; }
.shot img { display: block; width: 100%; height: 100%; object-fit: cover; transition: scale 1.2s var(--ease); }
.card > .shot { aspect-ratio: 3 / 2; margin: calc(var(--pad) * -1) calc(var(--pad) * -1) 8px; }
.card:hover > .shot img, .channel:hover > .shot img { scale: 1.045; }
.card--media::before { clip-path: circle(0 at 50% 100%); }
.card--media:hover::before, .card--media:focus-within::before { clip-path: circle(150% at 50% 100%); }
/* the lead card of a grid: text on one side, the picture fills the other */
.card.card--lead { grid-template-columns: minmax(0, 1fr) minmax(0, 0.92fr); align-items: stretch; gap: 0; padding: 0; }
.card--lead > div { justify-content: center; padding: var(--pad) clamp(22px, 3vw, 44px); }
.card--lead > .shot { min-height: clamp(220px, 22vw, 300px); margin: 0; aspect-ratio: auto; }
@media (max-width: 900px) {
  .card.card--lead { grid-template-columns: minmax(0, 1fr); }
  .card--lead > .shot { order: -1; min-height: 0; aspect-ratio: 3 / 2; }
}
@media screen and (prefers-reduced-motion: no-preference) {
  [data-motion-playing] > .shot { animation: shot-wipe 950ms var(--entry-delay) var(--motion-decelerate) backwards; }
  [data-motion-playing] > .shot img { animation: shot-settle 1300ms var(--entry-delay) var(--motion-decelerate) backwards; }
}
@keyframes shot-wipe { from { clip-path: inset(0 0 100% 0); } to { clip-path: inset(0); } }
@keyframes shot-settle { from { scale: 1.16; } }

/* ---------- line icons: no flash before the draw, no second draw when the pointer leaves ---------- */
@media screen and (prefers-reduced-motion: no-preference) {
  /* an icon waits undrawn until its card plays (it used to show, vanish, then draw) */
  html.js:not(.still) [data-motion-recipe]:not([data-motion-playing]) > .ico > * { stroke-dashoffset: 1.04; }
  /* the icon is drawn, it does not also spin into place */
  [data-motion-playing][data-motion-recipe] > svg.ico { animation: none; }
  /* hover adds a redraw to the list instead of replacing the entrance, so nothing restarts on leave */
  :is(.card, .row, .note):hover > .ico > .a { animation-name: ico-draw, ico-redraw; animation-duration: 950ms, 700ms; animation-delay: 0ms, 0ms; animation-timing-function: var(--motion-decelerate); animation-fill-mode: backwards, none; }
}

/* ---------- widths: a block fills the column it stands in ---------- */
/* Nothing in a section is narrower than the section without a reason: the generator pairs narrow
   blocks into two columns (.pair), turns a closing remark into a band (.outro) and sets long text
   in two columns (.text--cols). Line length is kept readable inside the block instead. */
.checks, .defs, .points, .callout, .note, .quote, .faq-section .faq { max-width: none; }
.defs dd { max-width: 78ch; }
.note > p, .note > ul { max-width: 86ch; }
.wrap:not(.split) > .stack > .points { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: clamp(28px, 5vw, 72px); }
.pair { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; gap: clamp(24px, 4vw, 64px); }
.pair > .stack { gap: clamp(16px, 2.2vw, 26px); }
.pair .checks, .pair .points { grid-template-columns: minmax(0, 1fr); }
.pair .text { max-width: none; }
.pair--media { align-items: stretch; }
.pair--media > .stack > .note { height: 100%; align-content: center; }
.pair--media > .stack > .shot { height: 100%; min-height: 240px; border-radius: 16px; }
.outro { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px clamp(24px, 4vw, 56px); padding: clamp(20px, 2.6vw, 34px) clamp(22px, 3vw, 40px); border-radius: 16px; background: var(--paper-2); }
.tint .outro, .gm-section .outro { background: #fff; }
.outro .text { flex: 1 1 420px; min-width: 0; max-width: 86ch; }
.outro .links { flex: 0 1 auto; min-width: 0; max-width: 100%; }
.links .more { min-width: 0; text-align: left; }
.text--cols { display: block; max-width: none; columns: 2 340px; column-gap: clamp(32px, 5vw, 72px); }
.text--cols > p { margin-bottom: 16px; break-inside: avoid; }
@media (max-width: 900px) {
  .pair { grid-template-columns: minmax(0, 1fr); }
  .pair--media > .stack > .shot { height: auto; min-height: 0; aspect-ratio: 3 / 2; }
}
@media (max-width: 760px) { .wrap:not(.split) > .stack > .points { grid-template-columns: minmax(0, 1fr); } }
@media screen and (prefers-reduced-motion: no-preference) {
  [data-motion-playing][data-motion-recipe="S01"] { animation: shot-wipe 950ms var(--motion-decelerate) backwards; }
  [data-motion-playing][data-motion-recipe="S01"] img { animation: shot-settle 1300ms var(--motion-decelerate) backwards; }
}

/* ---------- vertical rhythm, every page ---------- */
/* One distance (--gap) everywhere: between the content of two sections on the same background,
   and between content and the edge of a tinted band. Two plain sections in a row used to add
   their paddings together, which left twice the space. */
main { --gap: clamp(56px, 7.4vw, 108px); }
main > section { padding-block: var(--gap); }
main > :is(.hero, .page-hero, .case-hero) { padding-top: clamp(104px, 12.5vh, 136px); padding-bottom: clamp(28px, 3.6vw, 52px); } /* the header takes 78px; the rest is air above the headline */
main > .logos-section { padding-block: clamp(32px, 4vw, 56px); }
main > .cta-band, main > .cta-band--mid { padding-block: var(--gap); } /* the closing panel keeps the same distance as any section */
main > .strip-section { padding-block: clamp(20px, 2.6vw, 36px); }
main > section:not(.tint, .gm-section, .hero, .page-hero, .case-hero, .proofband, .logos-section, .strip-section) + section:not(.tint, .gm-section, .proofband, .logos-section, .strip-section) { padding-top: 0; }
main > :is(.hero, .page-hero, .case-hero, .proofband, .logos-section, .strip-section) + section:not(.tint, .gm-section, .proofband, .logos-section, .strip-section) { padding-top: clamp(24px, 3.2vw, 46px); }
/* consecutive text sections keep their hairline, with half the distance on each side of it */
main > .split-section + .split-section > .wrap { padding-top: 0; border-top: 0; }
main > .split-section:not(.tint):has(+ .split-section:not(.tint)) { padding-bottom: calc(var(--gap) * 0.55); }
main > .split-section:not(.tint) + .split-section:not(.tint) > .wrap { padding-top: calc(var(--gap) * 0.55); border-top: 1px solid var(--line); }
/* a tinted text section is a band like any other: a full gap on both sides of its edges */
main > .tint + .split-section, main > .split-section + .split-section.tint { padding-top: var(--gap); }
main > .article { padding-block: clamp(24px, 3.2vw, 46px) var(--gap); }

/* a list of questions fills its column too */
.stack > .faq, .faq { max-width: none; }

/* a lone aside in a pair is as tall as the column beside it, so no hole is left under it */
.pair { align-items: stretch; }
.pair > .stack { align-content: start; }
.pair > .stack > .note:only-child { height: 100%; }

/* ---------- heading accents ---------- */
/* <em>: the page colour with an underline that draws itself (see "headings" at the top).
   <em class="hl">: the words stay ink and a marker stroke is drawn behind them. */
.title em.hl, .display em.hl, .prose h2 em.hl { color: inherit; background: linear-gradient(var(--marker), var(--marker)) no-repeat 0 86% / 0% 0.36em; --marker: color-mix(in srgb, var(--accent) 34%, #fff); transition: background-size 0.45s var(--e-in-out) 0.1s; }
.is-annotated em.hl, .prose h2.is-annotated em.hl { background-size: 100% 0.36em; }

/* ---------- founder block with the introduction video ---------- */
.founder--video { grid-template-columns: auto minmax(0, 1fr) minmax(0, 0.92fr); align-items: center; max-width: none; }
.founder__video { position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; padding: 0; border: 0; border-radius: 18px; background: var(--navy); overflow: hidden; cursor: pointer; box-shadow: 0 26px 60px rgba(16, 34, 53, 0.18); }
.founder .founder__video img { width: 100%; height: 100%; aspect-ratio: auto; border-radius: 0; object-fit: cover; object-position: 50% 50%; transition: scale 1.2s var(--ease), opacity 0.4s; }
.founder__video::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(12, 26, 41, 0.62), rgba(12, 26, 41, 0) 46%); pointer-events: none; }
.founder__play { position: absolute; left: 50%; top: 50%; z-index: 1; display: grid; place-items: center; width: clamp(60px, 6vw, 84px); aspect-ratio: 1; translate: -50% -50%; border-radius: 50%; background: var(--accent); color: #fff; box-shadow: 0 14px 34px color-mix(in srgb, var(--accent) 45%, transparent); transition: scale 0.45s var(--ease); }
.founder__play svg { width: 42%; height: 42%; translate: 6% 0; }
.founder__play::before { content: ""; position: absolute; inset: -9px; border: 1.5px solid rgba(255, 255, 255, 0.6); border-radius: 50%; }
.founder__cap { position: absolute; left: 20px; bottom: 16px; z-index: 1; color: #fff; font-size: 15px; font-weight: 700; letter-spacing: -0.01em; }
.founder__video:hover img { scale: 1.04; }
.founder__video:hover .founder__play { scale: 1.08; }
.founder__video--playing { box-shadow: 0 26px 60px rgba(16, 34, 53, 0.18); }
@media screen and (prefers-reduced-motion: no-preference) {
  html:not(.still) .founder__play::before { animation: play-ring 2.6s ease-out infinite; }
}
@keyframes play-ring { from { scale: 0.86; opacity: 0.9; } to { scale: 1.32; opacity: 0; } }
@media (max-width: 980px) {
  .founder--video { grid-template-columns: auto minmax(0, 1fr); }
  .founder--video .founder__video { grid-column: 1 / -1; }
}
@media (max-width: 560px) { .founder--video { grid-template-columns: minmax(0, 1fr); } }

/* ---------- tools of the live site: booking calendar, contact brief, fee bands and ROAS calculator, SEO audit ---------- */
.booking { display: grid; gap: 14px; }
.booking__bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 24px; padding: 16px 20px; border: 1px solid var(--line); border-radius: 14px; background: var(--paper); color: var(--ink-2); font-size: 15px; }
.booking__bar b { color: var(--ink); }
.booking__frame { display: block; width: 100%; height: clamp(700px, 90vh, 880px); border: 1px solid var(--line); border-radius: 16px; background: #fff; }
@media (max-width: 620px) { .booking__frame { height: 1040px; } }

.mail-form__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 16px; margin-bottom: 18px; }
.mail-form .field { display: grid; gap: 7px; align-content: start; }
.mail-form .field--wide { grid-column: 1 / -1; }
.mail-form label { color: var(--ink); font-size: 14px; font-weight: 700; }
.mail-form label small { margin-left: 6px; color: var(--ink-3); font-size: 12.5px; font-weight: 600; }
.mail-form :is(input, select, textarea) { width: 100%; min-width: 0; padding: 13px 15px; border: 1.5px solid var(--line); border-radius: 12px; background: #fff; color: var(--ink); font: inherit; font-size: 16px; font-weight: 500; transition: border-color 0.2s; }
.mail-form textarea { min-height: 112px; resize: vertical; }
.mail-form :is(input, select, textarea):focus { outline: 0; border-color: var(--ink); }
.mail-form [aria-invalid="true"] { border-color: #b42318; }
.field__hint { color: var(--ink-3); font-size: 13px; line-height: 1.4; }
@media (max-width: 620px) { .mail-form__grid { grid-template-columns: minmax(0, 1fr); } }

.fee-disclosure { border: 1px solid var(--line); border-radius: 16px; background: var(--paper); }
.fee-disclosure summary { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 20px 24px; cursor: pointer; list-style: none; }
.fee-disclosure summary::-webkit-details-marker { display: none; }
.fee-disclosure summary b { display: block; color: var(--ink); font-size: clamp(18px, 1.5vw, 21px); font-weight: 700; }
.fee-disclosure summary small { display: block; margin-top: 4px; color: var(--ink-3); font-size: 14px; }
.fee-disclosure summary i { position: relative; flex: none; width: 38px; height: 38px; border: 1.5px solid var(--line); border-radius: 50%; }
.fee-disclosure summary i::before, .fee-disclosure summary i::after { content: ""; position: absolute; left: 50%; top: 50%; width: 13px; height: 2px; margin: -1px 0 0 -6.5px; border-radius: 2px; background: var(--ink); transition: rotate 0.3s var(--ease); }
.fee-disclosure summary i::after { rotate: 90deg; }
.fee-disclosure[open] summary i::after { rotate: 0deg; }
.fee-disclosure summary:focus-visible { outline: 2px solid var(--ink); outline-offset: -4px; border-radius: 16px; }
.fee-disclosure__body { display: grid; gap: 26px; padding: 0 24px 24px; }
.fee-bands { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.fee-band { display: grid; gap: 6px; align-content: start; padding: 18px; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.fee-band span { color: var(--ink-3); font-size: 13px; font-weight: 700; }
.fee-band b { color: var(--ink); font-size: clamp(22px, 2vw, 28px); font-weight: 700; letter-spacing: -0.02em; }
.fee-band p { font-size: 14.5px; line-height: 1.5; }
@media (max-width: 960px) { .fee-bands { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .fee-bands { grid-template-columns: minmax(0, 1fr); } .fee-disclosure summary, .fee-disclosure__body { padding-inline: 16px; } }

.roas { display: grid; gap: 20px; }
.roas__head h3 { font-size: clamp(22px, 2vw, 28px); }
.roas__head p { max-width: 62ch; margin-top: 8px; }
.roas__inputs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.roas__group { display: grid; gap: 14px; align-content: start; min-width: 0; padding: 18px; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.roas__group legend { float: left; width: 100%; color: var(--ink); font-size: 14.5px; font-weight: 800; }
.roas__field { display: grid; gap: 6px; }
.roas__field label { color: var(--ink-2); font-size: 13.5px; font-weight: 700; }
.roas__control { display: grid; grid-template-columns: 42px minmax(0, 1fr) 42px; border: 1.5px solid var(--line); border-radius: 12px; overflow: hidden; background: #fff; transition: border-color 0.2s; }
.roas__control:focus-within { border-color: var(--ink); }
.roas__control input { min-width: 0; padding: 11px 4px; border: 0; background: none; color: var(--ink); font: inherit; font-size: 16px; font-weight: 700; text-align: center; -moz-appearance: textfield; appearance: textfield; }
.roas__control input:focus { outline: 0; }
.roas__control input::-webkit-inner-spin-button, .roas__control input::-webkit-outer-spin-button { margin: 0; -webkit-appearance: none; }
.roas__step { background: var(--paper-2); color: var(--ink); font-size: 18px; font-weight: 700; transition: background 0.2s; }
.roas__step:hover { background: var(--accent-tint); }
.roas__step:focus-visible { outline: 2px solid var(--ink); outline-offset: -2px; }
.roas__result { display: flex; justify-content: space-between; gap: 12px; padding-top: 12px; border-top: 1px solid var(--line); color: var(--ink-2); font-size: 14px; }
.roas__result b { color: var(--ink); }
.roas__decision { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 16px; padding: clamp(18px, 2.4vw, 28px); border-radius: 16px; background: var(--accent-tint); }
.roas__verdict { display: grid; gap: 12px; align-content: start; justify-items: start; }
.roas__band { padding: 5px 12px; border-radius: 999px; background: var(--ink); color: #fff; font-size: 13px; font-weight: 700; }
.roas__hero b { display: block; color: var(--ink); font-size: clamp(34px, 4vw, 52px); font-weight: 700; line-height: 1.05; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.roas__hero small { color: var(--ink-3); font-size: 13.5px; font-weight: 600; }
.roas__deltas { display: flex; flex-wrap: wrap; gap: 8px; }
.roas__delta { display: inline-flex; align-items: center; gap: 7px; padding: 5px 11px; border-radius: 999px; background: #fff; color: var(--ink-2); font-size: 13px; font-weight: 700; }
.roas__delta i { width: 0; height: 0; border-inline: 5px solid transparent; }
.roas__delta[data-direction="up"] i { border-bottom: 7px solid currentColor; }
.roas__delta[data-direction="down"] i { border-top: 7px solid currentColor; }
.roas__delta[data-direction="flat"] i { width: 9px; height: 2px; border: 0; background: currentColor; }
.roas__delta[data-tone="positive"] i { color: var(--green); }
.roas__delta[data-tone="negative"] i { color: #b42318; }
.roas__delta[data-tone="neutral"] i { color: var(--ink-3); }
.roas__reason { color: var(--ink-2); font-size: 15px; }
.roas__fee-breakdown { color: var(--ink); font-size: 14.5px; font-weight: 700; }
.roas__fees { display: grid; gap: 10px; align-content: start; }
.roas__fees > div, .roas__metrics > div { display: grid; gap: 3px; align-content: start; padding: 14px 16px; border-radius: 12px; background: #fff; }
.roas__metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.roas__metrics > div { border: 1px solid var(--line); }
.roas dt { color: var(--ink-3); font-size: 13px; font-weight: 700; }
.roas dd { color: var(--ink); font-size: 22px; font-weight: 700; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.roas small { color: var(--ink-3); font-size: 13px; }
.roas__metrics .roas__delta, .roas__fees .roas__delta { justify-self: start; padding: 0; background: none; }
.roas__note { color: var(--ink-3); font-size: 13.5px; }
@media (max-width: 960px) { .roas__inputs, .roas__decision { grid-template-columns: minmax(0, 1fr); } .roas__metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .roas__metrics { grid-template-columns: minmax(0, 1fr); } }

.audit { display: grid; gap: 18px; }
.audit-form { display: grid; gap: 10px; padding: clamp(20px, 2.6vw, 32px); border: 1px solid var(--line); border-radius: 18px; background: var(--paper); }
.audit-form label { color: var(--ink); font-size: 14px; font-weight: 700; }
.audit-form__row { display: flex; flex-wrap: wrap; gap: 12px; }
.audit-form__row input { flex: 1 1 260px; min-width: 0; padding: 15px 16px; border: 1.5px solid var(--line); border-radius: 12px; background: #fff; color: var(--ink); font: inherit; font-size: 17px; font-weight: 600; transition: border-color 0.2s; }
.audit-form__row input:focus { outline: 0; border-color: var(--ink); }
.audit-form__row input[aria-invalid="true"] { border-color: #b42318; }
.audit-form__hint { color: var(--ink-3); font-size: 13.5px; }
.audit-status:empty, .audit-out:empty { display: none; }
.audit-status__error { color: #b42318; font-weight: 600; }
.audit-status__partial { padding: 14px 16px; border-radius: 12px; background: var(--accent-tint); color: var(--ink); }
.audit-status__partial ul { margin-top: 6px; padding-left: 18px; list-style: disc; }
.audit-skeleton { display: grid; gap: 10px; }
.audit-skeleton span { height: 14px; border-radius: 7px; background: linear-gradient(90deg, var(--paper-2), var(--line), var(--paper-2)); background-size: 200% 100%; animation: audit-shimmer 1.2s linear infinite; }
.audit-skeleton span:nth-child(2) { width: 80%; }
.audit-skeleton span:nth-child(3) { width: 58%; }
@keyframes audit-shimmer { to { background-position: -200% 0; } }
html.still .audit-skeleton span { animation: none; }
.audit-report { display: grid; gap: 18px; scroll-margin-top: 96px; }
.audit-report:focus { outline: 0; }
.audit-report__hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 20px; padding: clamp(20px, 2.6vw, 32px); border: 1px solid var(--line); border-radius: 18px; background: #fff; }
.audit-report__hero > div:first-child { display: grid; gap: 8px; align-content: start; }
.audit-report__hero h3 { font-size: clamp(24px, 2.4vw, 34px); overflow-wrap: anywhere; }
.audit-report__hero a { color: var(--ink); font-size: 14px; text-decoration: underline; text-underline-offset: 3px; overflow-wrap: anywhere; }
.audit-report__status, .audit-section__kind { color: var(--ink-3); font-size: 13px; font-weight: 700; }
.audit-report__partial { color: var(--ink); font-weight: 700; }
.audit-metrics { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; align-content: start; }
.audit-metric { display: grid; gap: 6px; align-content: start; padding: 14px; border-radius: 12px; background: var(--paper-2); }
.audit-metric b { color: var(--ink); font-size: 22px; letter-spacing: -0.02em; }
.audit-metric p { font-size: 13px; line-height: 1.45; }
.audit-chip { justify-self: start; display: inline-flex; padding: 3px 10px; border-radius: 999px; background: #fff; box-shadow: inset 0 0 0 1px var(--line); color: var(--ink-2); font-size: 12px; font-weight: 700; }
.audit-chip--high { background: #fdeceb; box-shadow: none; color: #8f1d14; }
.audit-chip--medium { background: #fff3d6; box-shadow: none; color: #6f4600; }
.audit-chip--low { background: #eaf2ff; box-shadow: none; color: #1d4f91; }
.audit-chip--good { background: var(--accent-tint); box-shadow: none; color: var(--ink); }
.audit-report__body { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 20px; align-items: start; }
.audit-report__rail { position: sticky; top: 96px; display: grid; gap: 12px; padding: 18px; border: 1px solid var(--line); border-radius: 16px; background: #fff; }
.audit-report__rail nav { display: grid; }
.audit-report__rail nav a { padding: 6px 0; color: var(--ink-2); font-size: 14px; font-weight: 600; line-height: 1.35; }
.audit-report__rail nav a:hover { color: var(--ink); }
.audit-report__ctas { display: grid; gap: 12px; justify-items: start; padding-top: 6px; }
.audit-report__stream { display: grid; gap: 18px; min-width: 0; }
.audit-layer { display: grid; gap: 18px; padding: clamp(20px, 2.6vw, 30px); border: 1px solid var(--line); border-radius: 18px; background: #fff; }
.audit-layer header { display: grid; gap: 6px; }
.audit-layer header h3 { font-size: clamp(22px, 2vw, 28px); }
.audit-section { display: grid; gap: 12px; padding-top: 18px; border-top: 1px solid var(--line); scroll-margin-top: 96px; }
.audit-section h4 { color: var(--ink); font-size: 19px; font-weight: 700; }
.audit-findings { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 10px; }
.audit-finding { display: grid; gap: 8px; align-content: start; padding: 14px; border-radius: 12px; background: var(--paper-2); }
.audit-finding p { font-size: 14.5px; line-height: 1.5; }
.audit-table { overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; }
.audit-table__title { padding: 10px 14px; border-bottom: 1px solid var(--line); color: var(--ink); font-size: 14px; font-weight: 700; }
.audit-table table { width: 100%; border-collapse: collapse; font-size: 14px; }
.audit-table :is(th, td) { padding: 9px 14px; border-bottom: 1px solid var(--line-2); text-align: left; vertical-align: top; }
.audit-table th { color: var(--ink); font-weight: 700; white-space: nowrap; }
.audit-actions { display: grid; gap: 12px; padding: 0; list-style: none; counter-reset: step; }
.audit-actions li { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 2px 12px; counter-increment: step; }
.audit-actions li::before { content: counter(step, decimal-leading-zero); grid-row: span 2; color: var(--ink-3); font-weight: 800; }
.audit-actions b { color: var(--ink); }
.audit-empty { color: var(--ink-3); }
@media (max-width: 960px) { .audit-report__hero, .audit-report__body { grid-template-columns: minmax(0, 1fr); } .audit-report__rail { position: static; } }
