/* BrandAvenga.com. Light ground, ink text, one cobalt accent, orange used sparingly. */
:root {
  /* Page colours. These change between the light and dark themes. */
  --bg: #F6F7F9;
  --surface: #FFFFFF;
  --ink: #0D1220;
  --on-ink: #FFFFFF;
  --ink-hover: #333B52;
  --body: #454C5E;
  --muted: #5A6172;
  --line: #DDE0E8;
  --line-strong: #A3A9B8;
  --accent-text: #2740F0;
  --accent-text-hover: #1A2CB8;
  --accent-pale: #E4E8FF;
  --accent-deep-text: #1A2CB8;
  --good-bg: #D9F2E6;
  --good: #0B5A3C;
  --error: #B3261E;
  --tag: #EEF0F5;
  --prose: #232938;
  --placeholder: #6B7283;
  /* Bands that are dark in both themes: results, announcement bar, footer. */
  --deep: #0D1220;
  --deep-2: #161D31;
  --on-deep: #F6F7F9;
  --line-dark: #333B52;
  --on-dark: #A7AEC2;
  /* Brand colours. The same in both themes. */
  --accent: #2740F0;
  --accent-hover: #1A2CB8;
  --on-accent: #E4E8FF;
  --accent-soft: #A9B4FF;
  --orange: #FF6A3D;
  color-scheme: light;
  --display: 'Bricolage Grotesque', Inter, system-ui, sans-serif;
  --text: Inter, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;
}

/* Dark theme. The site opens light; theme.js applies dark only when the visitor has chosen it. */
:root[data-theme="dark"] {
  --bg: #0B0F1A;
  --surface: #141A2B;
  --ink: #F1F3F8;
  --on-ink: #0D1220;
  --ink-hover: #D5D9E6;
  --body: #B4BBCC;
  --muted: #98A0B5;
  --line: #262E45;
  --line-strong: #48516C;
  --deep: #060912;
  --deep-2: #10162A;
  --accent-text: #93A0FF;
  --accent-text-hover: #B9C2FF;
  --accent-pale: #1B2452;
  --accent-deep-text: #C3CBFF;
  --good-bg: #12382B;
  --good: #7FE0B4;
  --error: #FFB4AB;
  --tag: #1E2640;
  --prose: #D6DAE6;
  --placeholder: #7F879C;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.55 var(--text); }
img, svg { max-width: 100%; }
h1, h2, h3, p, ul, ol, dl, dd, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: var(--accent-text); }
a:hover { color: var(--accent-text-hover); }
:focus-visible { outline: 3px solid var(--accent-text); outline-offset: 3px; border-radius: 4px; }
[hidden] { display: none !important; }
section[id] { scroll-margin-top: 24px; }

.wrap { max-width: 1200px; margin-inline: auto; padding-inline: 24px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 20; background: var(--surface); padding: 12px 16px; border-radius: 8px; }

h1, h2, h3 { font-family: var(--display); text-wrap: balance; }
h1 { font-weight: 700; font-size: clamp(40px, 5.4vw, 72px); line-height: 1.02; letter-spacing: -0.035em; }
h2 { font-weight: 700; font-size: clamp(32px, 3.6vw, 48px); line-height: 1.08; letter-spacing: -0.03em; }
h3 { font-weight: 600; font-size: 22px; line-height: 1.2; letter-spacing: -0.01em; }
.h2-small { font-size: clamp(28px, 3vw, 40px); }
.eyebrow, .mono, .meta, .tag-mono { font-family: var(--mono); }
.eyebrow { font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent-text); }
.mono { font-size: 13px; color: var(--muted); }
.meta { font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.lead { font-size: 19px; color: var(--body); max-width: 600px; }
.small { font-size: 14px; color: var(--muted); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 14px 26px; border: 1.5px solid transparent; border-radius: 999px; font: 600 17px/1.2 var(--text); text-decoration: none; cursor: pointer; transition: background-color .15s, color .15s, border-color .15s; }
.btn-small { min-height: 44px; padding: 11px 20px; font-size: 15px; }
.btn-primary { background: var(--accent); color: #FFFFFF; }
.btn-primary:hover { background: var(--accent-hover); color: #FFFFFF; }
.btn-dark { background: var(--ink); color: var(--on-ink); }
.btn-dark:hover { background: var(--ink-hover); color: var(--on-ink); }
.btn-outline { border-color: var(--ink); color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: var(--on-ink); }
.btn-light { background: #FFFFFF; color: var(--deep); }
.btn-light:hover { background: var(--on-accent); color: var(--deep); }
.btn[disabled] { opacity: .65; cursor: progress; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* Header */
.announce { background: var(--deep); color: var(--on-deep); padding: 10px 24px; text-align: center; font-size: 14px; }
.announce a { color: #FFFFFF; font-weight: 600; }
.site-header { border-bottom: 1px solid var(--line); }
.header-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 32px; padding-block: 14px; }
.logo { display: inline-flex; align-items: center; gap: 10px; font: 700 24px/1 var(--display); letter-spacing: -0.02em; color: var(--ink); text-decoration: none; }
.logo:hover { color: var(--ink); }
.logo-word span { color: var(--accent-text); }
.logo-mark { width: 36px; height: 36px; flex: none; }
.site-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 26px; font-size: 15px; font-weight: 500; }
.site-nav a:not(.btn) { color: var(--ink); text-decoration: none; padding: 12px 0; }
.site-nav a:not(.btn):hover, .site-nav a[aria-current] { color: var(--accent-text); }
.theme-toggle { display: none; align-items: center; gap: 8px; min-height: 44px; min-width: 44px; padding: 10px 12px; border: 1.5px solid var(--line-strong); border-radius: 999px; background: none; color: var(--ink); font: 500 14px var(--text); cursor: pointer; }
:root[data-theme] .theme-toggle { display: inline-flex; justify-content: center; }
.theme-toggle:hover { border-color: var(--ink); }
.theme-toggle svg { flex: none; }
:root[data-theme="dark"] .icon-moon, :root[data-theme="light"] .icon-sun { display: none; }
.site-nav .theme-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.site-footer .theme-toggle { color: #FFFFFF; border-color: var(--line-dark); }
.site-footer .theme-toggle:hover { border-color: #FFFFFF; }
.nav-toggle { display: none; min-height: 44px; padding: 10px 18px; border: 1.5px solid var(--ink); border-radius: 999px; background: none; color: var(--ink); font: 600 15px var(--text); cursor: pointer; }
@media (max-width: 1120px) {
  .js .nav-toggle { display: inline-flex; align-items: center; }
  .js .site-nav { display: none; flex-basis: 100%; flex-direction: column; align-items: stretch; gap: 0; padding-bottom: 12px; }
  .js .site-nav.open { display: flex; }
  .js .site-nav a:not(.btn) { padding: 14px 0; border-top: 1px solid var(--line); }
  .js .site-nav .btn { margin-top: 12px; }
  .js .site-nav .theme-toggle { margin-top: 12px; align-self: flex-start; }
  .js .site-nav .theme-label { position: static; width: auto; height: auto; clip-path: none; }
}

/* Sections */
.section { padding-block: 104px; }
.section-tight { padding-block: 24px 104px; }
.section-cta { padding-block: 24px 104px; }
.section-head { display: flex; flex-direction: column; gap: 16px; max-width: 760px; margin-bottom: 48px; }
.section-head.split, .section-head.row-between { flex-direction: row; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 24px; max-width: none; }
.section-head.split h2 { flex: 1 1 480px; min-width: 0; }
.section-head.split p { flex: 1 1 360px; min-width: 0; max-width: 460px; color: var(--body); font-size: 17px; }
.more { font-weight: 600; padding: 12px 0; }

/* Hero */
.hero { display: flex; flex-wrap: wrap; align-items: center; gap: 56px; padding-block: 88px 72px; }
.hero-copy { flex: 1 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.roster-card { flex: 1 1 440px; min-width: 0; display: flex; flex-direction: column; gap: 16px; padding: 24px; background: var(--surface); border: 1px solid var(--line); border-radius: 20px; box-shadow: 0 24px 48px -28px rgba(13, 18, 32, .35); }
.roster-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px; font-family: var(--display); font-size: 18px; }
.tag-mono { font-size: 12px; color: var(--muted); background: var(--tag); padding: 5px 10px; border-radius: 6px; }
.roster-rows { display: flex; flex-direction: column; gap: 10px; }
.roster-rows li { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; padding: 14px; background: var(--bg); border-radius: 12px; }
.avatar { width: 40px; height: 40px; border-radius: 50%; flex: none; }
.avatar-a { background: var(--accent); }
.avatar-b { background: var(--orange); }
.avatar-c { background: var(--muted); }
.avatar-d { background: var(--accent-soft); }
.roster-who { flex: 1 1 160px; min-width: 0; display: flex; flex-direction: column; }
.roster-who span { font-size: 13px; color: var(--muted); }
.fit { font-size: 12px; font-weight: 600; color: var(--good); background: var(--good-bg); padding: 5px 10px; border-radius: 999px; }
.fit-test { color: var(--accent-deep-text); background: var(--accent-pale); }

/* Client names */
.logo-strip { border-block: 1px solid var(--line); }
.logo-row { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 40px; padding-block: 28px; }
.logo-row p { font-size: 14px; color: var(--muted); }
.logo-row ul { flex: 1 1 480px; min-width: 0; display: flex; flex-wrap: wrap; gap: 10px 32px; }
.logo-row li { font: 600 19px/1.2 var(--display); letter-spacing: -0.01em; color: var(--muted); }

/* Services */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 20px; }
.card { display: flex; flex-direction: column; gap: 12px; padding: 28px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; }
.card svg { color: var(--accent-text); }
.card p { color: var(--body); }

a.card-link { color: var(--ink); text-decoration: none; transition: border-color .15s; }
a.card-link:hover { color: var(--ink); border-color: var(--accent-text); }
.card-link .more { margin-top: auto; padding: 4px 0 0; color: var(--accent-text); font-size: 15px; }

/* Inner pages: services, about, work */
.page-head { display: flex; flex-direction: column; gap: 20px; padding-block: 72px 48px; }
.page-head h1 { font-size: clamp(36px, 4.6vw, 60px); max-width: 900px; }
a.chip { display: inline-flex; align-items: center; text-decoration: none; }
a.chip:hover { border-color: var(--ink); color: var(--ink); }
.service-list { display: flex; flex-direction: column; border-top: 1.5px solid var(--ink); }
.service { display: flex; flex-wrap: wrap; gap: 32px 64px; padding-block: 56px; border-bottom: 1px solid var(--line); scroll-margin-top: 24px; }
.service-intro { flex: 1 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.service-intro h2 { font-size: clamp(28px, 3vw, 40px); }
.service-intro > p:not(.lead) { color: var(--body); max-width: 560px; }
.service-icon { color: var(--accent-text); }
.service-scope { flex: 1 1 380px; min-width: 0; display: flex; flex-direction: column; gap: 14px; padding: 28px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; }
.service-scope h3 { font: 500 13px/1.4 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.service-scope h3:not(:first-child) { margin-top: 10px; }
.service-scope p { color: var(--body); }
.ticks-dark svg { color: var(--accent-text); }
.promo-wide { padding: clamp(28px, 5vw, 56px); border-radius: 28px; }
.promo-wide h2 { font-size: clamp(30px, 3.6vw, 48px); }
.btn-ghost { border-color: #FFFFFF; color: #FFFFFF; }
.btn-ghost:hover { background: #FFFFFF; color: var(--deep); }
.routes { display: flex; flex-direction: column; gap: 10px; }
.routes a { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 16px; padding: 16px 18px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; color: var(--ink); text-decoration: none; }
.routes a:hover { border-color: var(--accent-text); color: var(--ink); }
.routes strong { flex: 0 0 90px; font-family: var(--display); font-size: 18px; }
.routes span { color: var(--body); }
.contact-list-wide { margin-top: 32px; }

/* Specification pages: stages, metrics, blog search, article extras */
.stages { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 20px; }
.stages li { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; padding: 24px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; }
.stages h2 { font-size: 26px; letter-spacing: -0.02em; }
.stages p { color: var(--body); }
.stages .mono { color: var(--accent-text); }
.cards-two { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.h3 { font: 600 22px/1.2 var(--display); letter-spacing: -0.01em; }
.quote h3 { font-size: 24px; }
.quote p { color: var(--on-dark); }
.promo.promo-ink { background: var(--deep); border: 1px solid var(--line-dark); }
.promo.promo-ink .eyebrow { color: var(--accent-soft); }
.promo.promo-ink p:not(.eyebrow) { color: var(--on-dark); }
.service-next { display: flex; flex-direction: column; gap: 16px; }
.next-steps { display: flex; flex-direction: column; gap: 12px; padding-left: 24px; list-style: decimal; color: var(--body); }
.next-steps strong { color: var(--ink); }
div.form-card { display: flex; flex-direction: column; gap: 16px; }
.form-note.form-note-start { text-align: left; }
.field-error { font-size: 14px; font-weight: 600; color: var(--error); }
.site-footer .field-error { color: #FFB4AB; }
.site-footer .form-note { color: var(--on-dark); }
.site-footer .form-note a { color: #FFFFFF; text-decoration: underline; }
.blog-search { display: flex; flex-direction: column; gap: 6px; max-width: 460px; padding-top: 8px; }
.link-button { padding: 0; border: none; background: none; color: var(--accent-text); font: inherit; font-weight: 600; text-decoration: underline; cursor: pointer; }
.byline { font-size: 15px; color: var(--muted); }
.toc { padding: 24px 28px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; }
.toc h2 { font: 500 13px/1.4 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; }
.toc ol { display: flex; flex-direction: column; gap: 8px; padding-left: 22px; list-style: decimal; }
.prose h2 { scroll-margin-top: 24px; }
.article-newsletter { color: var(--body); }
.metrics { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; }
.metrics > div { display: flex; flex-direction: column; gap: 6px; padding: 20px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; }
.metrics dt { font: 700 36px/1 var(--display); letter-spacing: -0.02em; }
.metrics dd { color: var(--body); }
.metrics dd span { display: block; margin-top: 6px; font-size: 13px; color: var(--muted); }
.card-metric { font-size: 15px; color: var(--body); }

/* Ruled rows: industries and FAQ */
.rows { border-top: 1.5px solid var(--ink); }
.h2-small + .rows { margin-top: 32px; }
.row { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 32px; padding-block: 24px; border-bottom: 1px solid var(--line); }
.row h3, .row h2 { flex: 0 0 340px; font-size: 26px; font-weight: 600; line-height: 1.2; letter-spacing: -0.02em; }
.row p { flex: 1 1 320px; min-width: 0; color: var(--body); }
.faq { display: flex; flex-wrap: wrap; gap: 40px 64px; }
.faq > h2 { flex: 1 1 300px; min-width: 0; }
.faq > .rows { flex: 2 1 520px; min-width: 0; margin-top: 0; }
.qa { display: flex; flex-direction: column; gap: 8px; padding-block: 24px; border-bottom: 1px solid var(--line); }
.qa h3 { font: 600 18px/1.3 var(--text); letter-spacing: 0; }
.qa p { color: var(--body); }

/* Results */
.dark { background: var(--deep); color: var(--on-deep); }
.dark .eyebrow { color: var(--accent-soft); }
.stats { display: flex; flex-wrap: wrap; gap: 32px 48px; padding-top: 40px; border-top: 1px solid var(--line-dark); }
.stats > div { flex: 1 1 220px; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.stats dt { font: 700 clamp(44px, 5vw, 68px)/1 var(--display); letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.stats dd { color: var(--on-dark); }
.quotes { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; margin-top: 56px; }
.quote { display: flex; flex-direction: column; justify-content: space-between; gap: 24px; padding: 28px; background: var(--deep-2); border: 1px solid var(--line-dark); border-radius: 16px; }
.quote blockquote { font: 500 19px/1.4 var(--display); letter-spacing: -0.01em; }
.quote figcaption { display: flex; flex-direction: column; font-size: 14px; }
.quote figcaption span { color: var(--on-dark); }

/* Process */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 24px; }
.steps li { display: flex; flex-direction: column; gap: 10px; padding-top: 20px; border-top: 3px solid var(--accent-text); }
.steps .mono { color: var(--accent-text); }
.steps p { color: var(--body); }

/* Blog cards */
.band { background: var(--surface); border-block: 1px solid var(--line); }
.band .section { padding-block: 96px; }
.post-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 40px 28px; }
.h2-small + .post-grid { margin-top: 32px; }
.post-card { display: flex; flex-direction: column; gap: 14px; color: var(--ink); text-decoration: none; }
.post-card:hover { color: var(--ink); }
.post-card:hover h3 { color: var(--accent-text); }
.post-card p { color: var(--body); }
.cover { display: flex; align-items: flex-end; aspect-ratio: 16 / 10; padding: 24px; border-radius: 14px; font: 700 40px/1 var(--display); letter-spacing: -0.03em; overflow-wrap: anywhere; }
.cover-wide { aspect-ratio: 16 / 6; font-size: clamp(44px, 7vw, 88px); }
.cover-blue { background: var(--accent); color: #FFFFFF; }
.cover-ink { background: var(--deep); color: #FFFFFF; border: 1px solid var(--line-dark); }
.cover-orange { background: var(--orange); color: var(--deep); }
.cover-pale { background: var(--accent-pale); color: var(--accent-deep-text); }

/* Blog index */
.blog-head { display: flex; flex-direction: column; gap: 20px; padding-block: 72px 40px; }
.blog-head h1 { font-size: clamp(38px, 4.8vw, 64px); max-width: 820px; }
.filters { display: flex; flex-wrap: wrap; gap: 10px; padding-top: 12px; }
.chip { min-height: 44px; padding: 10px 18px; border: 1px solid var(--line-strong); border-radius: 999px; background: var(--surface); color: var(--ink); font: 500 14px var(--text); cursor: pointer; }
.chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--on-ink); font-weight: 600; }
.featured { display: flex; flex-wrap: wrap; margin-bottom: 72px; background: var(--surface); border: 1px solid var(--line); border-radius: 24px; overflow: hidden; color: var(--ink); text-decoration: none; }
.featured:hover { color: var(--ink); }
.featured:hover h2 { color: var(--accent-text); }
.featured-cover { flex: 1 1 440px; min-width: 0; min-height: 320px; display: flex; flex-direction: column; justify-content: space-between; gap: 24px; padding: 40px; }
.featured-cover .mono { color: inherit; letter-spacing: 0.08em; text-transform: uppercase; }
.featured-word { font: 700 clamp(56px, 8vw, 112px)/0.9 var(--display); letter-spacing: -0.04em; overflow-wrap: anywhere; }
.featured-copy { flex: 1 1 440px; min-width: 0; display: flex; flex-direction: column; justify-content: center; gap: 16px; padding: 40px; }
.featured-copy h2 { font-size: clamp(28px, 3vw, 40px); }
.featured-copy p { color: var(--body); font-size: 17px; }
.featured-copy .more { color: var(--accent-text); padding: 0; }
.empty { margin-top: 24px; color: var(--muted); }
.pair { display: flex; flex-wrap: wrap; gap: 24px; padding-bottom: 104px; }
.pair > * { flex: 1 1 420px; min-width: 0; }
.subscribe, .promo { display: flex; flex-direction: column; gap: 16px; padding: 40px; border-radius: 24px; }
.subscribe { background: var(--surface); border: 1px solid var(--line); }
.subscribe h2, .promo h2 { font-size: 30px; }
.subscribe > p:not(.form-status) { color: var(--body); }
.promo { align-items: flex-start; background: var(--accent); color: #FFFFFF; }
.promo p { color: var(--on-accent); }

/* Article and legal pages */
.article { max-width: 792px; display: flex; flex-direction: column; gap: 20px; padding-block: 56px 88px; }
.article h1 { font-size: clamp(34px, 4.4vw, 54px); line-height: 1.06; }
.back { font-weight: 600; text-decoration: none; padding: 12px 0; align-self: flex-start; }
.back::before { content: '\2190\00a0'; }
.prose { display: flex; flex-direction: column; gap: 20px; font-size: 18px; line-height: 1.65; color: var(--prose); padding-top: 12px; }
.prose h2 { font-size: 30px; letter-spacing: -0.02em; margin-top: 20px; color: var(--ink); }
.prose h3 { margin-top: 8px; color: var(--ink); }
.prose ul, .prose ol { display: flex; flex-direction: column; gap: 10px; padding-left: 24px; }
.prose ul { list-style: disc; }
.prose ol { list-style: decimal; }
.prose blockquote { padding-left: 20px; border-left: 3px solid var(--accent-text); font: 500 22px/1.4 var(--display); color: var(--ink); }
.article-cta { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; margin-top: 32px; padding: 36px; border-radius: 20px; background: var(--accent); color: #FFFFFF; }
.article-cta h2 { font-size: 30px; }
.article-cta p { color: var(--on-accent); }

/* Forms */
.form { display: flex; flex-direction: column; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field-pair { display: flex; flex-wrap: wrap; gap: 16px; }
.field-pair .field { flex: 1 1 220px; min-width: 0; }
label { font-size: 14px; font-weight: 600; }
input, select, textarea { width: 100%; min-height: 50px; padding: 13px 16px; border: 1.5px solid var(--line-strong); border-radius: 10px; background: var(--surface); color: var(--ink); font: inherit; }
textarea { resize: vertical; }
input::placeholder, textarea::placeholder { color: var(--placeholder); }
[aria-invalid="true"] { border-color: var(--error); }
.inline-field { display: flex; flex-wrap: wrap; gap: 10px; }
.inline-field input { flex: 1 1 220px; min-width: 0; width: auto; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { font-size: 15px; font-weight: 600; }
.form-status:empty { display: none; }
.form-status.ok { color: var(--good); }
.form-status.bad { color: var(--error); }
.form-note { font-size: 13px; color: var(--muted); text-align: center; }
.form-note a { font-weight: 600; }

/* Closing call to action */
.cta { display: flex; flex-wrap: wrap; align-items: center; gap: 48px; padding: clamp(28px, 5vw, 64px); border-radius: 28px; background: var(--accent); color: #FFFFFF; }
.cta-copy { flex: 1 1 400px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.cta-copy h2 { font-size: clamp(34px, 4vw, 56px); line-height: 1.04; letter-spacing: -0.035em; }
.cta-copy > p { font-size: 18px; color: var(--on-accent); max-width: 480px; }
.ticks { display: flex; flex-direction: column; gap: 10px; }
.ticks li { display: flex; align-items: flex-start; gap: 10px; }
.ticks svg { flex: none; margin-top: 3px; }
.cta .form { flex: 1 1 360px; min-width: 0; padding: 28px; border-radius: 20px; background: var(--surface); color: var(--ink); }

/* Contact page */
.contact { display: flex; flex-wrap: wrap; gap: 48px 64px; padding-block: 72px 104px; }
.contact-copy { flex: 1 1 380px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.contact-copy h1 { font-size: clamp(36px, 4.4vw, 56px); }
.contact-list { display: flex; flex-direction: column; margin-top: 12px; border-top: 1.5px solid var(--ink); }
.contact-list > div { display: flex; flex-wrap: wrap; gap: 4px 24px; padding-block: 16px; border-bottom: 1px solid var(--line); }
.contact-list dt { flex: 0 0 80px; font-family: var(--mono); font-size: 13px; color: var(--muted); padding-top: 3px; }
.contact-list dd { flex: 1 1 220px; min-width: 0; }
.form-card { flex: 1 1 440px; min-width: 0; align-self: flex-start; padding: 32px; background: var(--surface); border: 1px solid var(--line); border-radius: 20px; }

.not-found { display: flex; flex-direction: column; gap: 20px; padding-block: 120px; }

/* Newsletter popup */
.popup { width: min(520px, calc(100vw - 32px)); max-height: calc(100dvh - 32px); overflow-y: auto; padding: 36px; border: none; border-radius: 24px; background: var(--surface); color: var(--ink); box-shadow: 0 32px 64px -24px rgba(13, 18, 32, .5); }
.popup::backdrop { background: rgba(13, 18, 32, .6); }
.popup[open] { display: flex; flex-direction: column; gap: 14px; }
.popup h2 { font-size: 30px; padding-right: 40px; }
.popup > p:not(.eyebrow) { color: var(--body); }
.popup-close { position: absolute; top: 16px; right: 16px; width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; border: none; border-radius: 50%; background: var(--bg); color: var(--ink); cursor: pointer; }
.popup-close:hover { background: var(--line); }

/* Footer */
.footer-newsletter { flex: 1 1 360px; min-width: 0; max-width: 460px; display: flex; flex-direction: column; gap: 12px; }
.footer-newsletter h2 { font-size: 24px; letter-spacing: -0.02em; color: #FFFFFF; }
.footer-newsletter label { color: #FFFFFF; }
.footer-newsletter .btn { align-self: flex-start; }
.footer-newsletter .form-status.ok { color: #7FE0B4; }
.footer-newsletter .form-status.bad { color: #FFB4AB; }
.site-footer { background: var(--deep); color: var(--on-dark); border-top: 1px solid var(--line-dark); padding-block: 64px 40px; }
.site-footer a { color: var(--on-dark); text-decoration: none; }
.site-footer a:hover { color: #FFFFFF; }
.footer-cols { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 40px 64px; }
.footer-brand { flex: 1 1 280px; min-width: 0; max-width: 360px; display: flex; flex-direction: column; gap: 12px; }
.footer-logo { display: flex; align-items: center; gap: 10px; font: 700 24px/1 var(--display); letter-spacing: -0.02em; color: #FFFFFF; }
.footer-cols nav { display: flex; flex-direction: column; }
.footer-cols nav h2 { font: 600 16px/1.4 var(--text); letter-spacing: 0; color: #FFFFFF; margin-bottom: 8px; }
.footer-cols nav a { padding: 8px 0; }
.footer-legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--line-dark); font-size: 14px; }
.footer-legal div:last-child { display: flex; gap: 24px; }
.footer-legal a { text-decoration: underline; padding: 8px 0; }

@media (max-width: 640px) {
  .popup { padding: 28px 24px; }
  .section { padding-block: 72px; }
  .section-tight, .section-cta { padding-block: 8px 72px; }
  .hero { padding-block: 56px; gap: 40px; }
  .row h3, .row h2 { flex-basis: 100%; }
  .subscribe, .promo, .featured-cover, .featured-copy { padding: 28px; }
  .featured-cover { min-height: 220px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
}

/* Repair additions */
.preview-banner { margin: 0; padding: 10px 24px; background: var(--orange); color: #0D1220; font-weight: 600; text-align: center; }
.crumbs { padding-top: 20px; }
.crumbs ol { display: flex; flex-wrap: wrap; gap: 4px 8px; font-size: 14px; color: var(--muted); }
.crumbs li + li::before { content: '/'; margin-right: 8px; color: var(--line-strong); }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--accent-text); }
.notice { padding: 14px 16px; border: 1px dashed var(--line-strong); border-radius: 10px; color: var(--body); }
.site-footer .notice { border-color: var(--line-dark); color: var(--on-dark); }
.footer-tagline { font-size: 17px; color: #FFFFFF; }
.footer-contact { display: flex; flex-direction: column; gap: 10px; }
.footer-contact dt { font: 500 12px/1.4 var(--mono); letter-spacing: 0.06em; text-transform: uppercase; opacity: 0.75; }
.footer-contact dd a { text-decoration: underline; text-underline-offset: 3px; overflow-wrap: anywhere; }
.footer-tech { display: flex; flex-direction: column; gap: 6px; margin-top: 4px; padding-top: 16px; border-top: 1px solid var(--line-dark); font-size: 14px; }
.footer-tech-label { font: 500 12px/1.4 var(--mono); letter-spacing: 0.06em; text-transform: uppercase; opacity: 0.75; }
.footer-tech a { align-self: flex-start; font-weight: 600; color: #FFFFFF; text-decoration: underline; text-underline-offset: 3px; }
.unit { font-size: 0.4em; font-weight: 600; letter-spacing: 0; }
.stats dd span { display: block; margin-top: 6px; font-size: 13px; }
.quotes-light .quote { background: var(--surface); border-color: var(--line); }
.quotes-light .quote figcaption span { color: var(--muted); }
.quote-inline { padding: 24px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; }
.ticks-out svg { color: var(--muted); }
.stage-list { display: flex; flex-wrap: wrap; gap: 8px; counter-reset: stage; }
.stage-list li { counter-increment: stage; padding: 6px 12px; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; font-size: 14px; }
.stage-list li::before { content: counter(stage) '. '; color: var(--muted); }
.service-intro h3 { font: 500 13px/1.4 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin-top: 8px; }
.people { display: flex; flex-direction: column; gap: 32px; margin-top: 32px; }
.person { display: flex; flex-wrap: wrap; gap: 24px; }
.person img { width: 160px; height: 160px; border-radius: 16px; object-fit: cover; flex: none; }
.person > div { flex: 1 1 320px; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.prose-small { font-size: 16px; padding-top: 0; }
.caveats { font-size: 15px; color: var(--body); }
.tags, .result-count { font-size: 14px; color: var(--muted); }
.result-count:empty { display: none; }
.guide-signup { display: flex; flex-direction: column; gap: 12px; padding: 28px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; }
.form-status:focus { outline: none; }
.error-summary { padding: 14px 16px; border: 1.5px solid var(--error); border-radius: 10px; color: var(--error); font-weight: 600; }
.error-summary ul { margin-top: 6px; padding-left: 20px; list-style: disc; font-weight: 500; }
.error-summary a { color: var(--error); }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* Creator-shortlist offer */
.popup-wide { width: min(920px, calc(100vw - 32px)); }
.roster-offer { display: flex; flex-wrap: wrap; gap: 28px; }
.roster-preview { flex: 1 1 260px; min-width: 0; display: flex; flex-direction: column; gap: 12px; align-items: flex-start; padding: 20px; background: var(--bg); border-radius: 16px; }
.roster-preview .roster-rows { align-self: stretch; }
.roster-preview .roster-rows li { background: var(--surface); align-items: flex-start; flex-wrap: nowrap; }
.roster-why { margin-top: 4px; }
.roster-form { flex: 2 1 380px; min-width: 0; display: flex; flex-direction: column; gap: 14px; padding-right: 8px; }
.roster-form h2 { font-size: clamp(24px, 3vw, 32px); padding-right: 40px; }
.roster-form [data-roster-step] { display: flex; flex-direction: column; gap: 14px; }
.roster-form [data-roster-step] > p { color: var(--body); }
.roster-received { padding: 12px 14px; border-radius: 10px; background: var(--good-bg); color: var(--good) !important; font-weight: 600; }
.check { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; font-weight: 400; cursor: pointer; }
.check input { width: 20px; height: 20px; min-height: 0; padding: 0; flex: none; margin: 2px 0 0; accent-color: var(--accent); }
.checks { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 0; padding: 0; border: none; }
.checks legend { padding: 0 0 6px; font-size: 14px; font-weight: 600; }
.footer-link { padding: 8px 0; border: none; background: none; color: var(--on-dark); font: inherit; text-align: left; cursor: pointer; }
.footer-link:hover { color: #FFFFFF; }
@media (max-width: 640px) { .roster-form { order: -1; padding-right: 0; } .popup-wide { padding: 24px 20px; } }

/* Planning tools and comparison tables */
.tools { display: flex; flex-direction: column; border-top: 1.5px solid var(--ink); padding-bottom: 40px; }
.tool { display: flex; flex-wrap: wrap; gap: 24px 64px; padding-block: 48px; border-bottom: 1px solid var(--line); scroll-margin-top: 24px; }
.tool-intro { flex: 1 1 300px; min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.tool-intro h2 { font-size: clamp(26px, 2.8vw, 36px); }
.tool-intro p { color: var(--body); }
.tool-form { flex: 2 1 480px; min-width: 0; padding: 28px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; }
.tool-output { margin: 0; padding: 18px; background: var(--bg); border: 1px solid var(--line); border-radius: 12px; font: 14px/1.6 var(--mono); white-space: pre-wrap; overflow-wrap: anywhere; }
.tool-total { font-size: 18px; }
.tool-total strong { font: 700 28px/1 var(--display); font-variant-numeric: tabular-nums; }
.checks-stack { flex-direction: column; gap: 10px; }
.table-scroll { overflow-x: auto; }
.compare { width: 100%; min-width: 640px; border-collapse: collapse; text-align: left; }
.compare caption { caption-side: top; text-align: left; margin-bottom: 10px; width: max-content; }
.compare th, .compare td { padding: 14px 16px 14px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.compare thead th { border-bottom: 1.5px solid var(--ink); font: 600 16px/1.3 var(--display); }
.compare tbody th { font-weight: 600; width: 22%; }
.compare td { color: var(--body); }

/* Gated foundations: offers, sector and market pages, glossary, research method */
.plain-list { display: flex; flex-direction: column; gap: 8px; padding-left: 20px; list-style: disc; }
.facts { display: grid; gap: 16px; margin: 16px 0 24px; }
.facts > div { padding: 16px 20px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; }
.facts dt { font: 600 15px/1.3 var(--display); margin-bottom: 4px; }
.facts dd { color: var(--body); }
.glossary { display: grid; gap: 20px; max-width: 820px; }
.glossary > div { padding-bottom: 20px; border-bottom: 1px solid var(--line); scroll-margin-top: 96px; }
.glossary dt { font: 600 20px/1.3 var(--display); margin-bottom: 6px; }
.glossary dd { color: var(--body); }
.method, .terms-used { margin: 24px 0; padding: 20px 24px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; }
.method p + p, .terms-used ul { margin-top: 8px; }

.process-list { display: flex; flex-direction: column; gap: 12px; padding-left: 22px; list-style: decimal; }
.process-list .small { display: block; color: var(--muted); }

/* Scenario planner */
.tool-wide { grid-column: 1 / -1; }
.planner-channel { border: 1px solid var(--line); border-radius: 16px; padding: 20px; margin: 0 0 20px; display: grid; gap: 16px; min-width: 0; }
.planner-channel legend { font: 600 16px/1.3 var(--display); padding: 0 8px; }
.planner-table { width: 100%; border-collapse: collapse; min-width: 520px; }
.planner-table th, .planner-table td { padding: 8px; text-align: left; vertical-align: top; }
.planner-table thead th { font-size: 13px; color: var(--muted); }
.planner-table tbody th { font-weight: 500; max-width: 240px; }
.planner-table input { width: 100%; min-width: 96px; }
.planner-hint { display: block; color: var(--muted); font-weight: 400; }
.planner-warning { color: var(--muted); font-size: 13px; margin-top: 4px; }
.planner-results { display: grid; gap: 16px; margin-top: 24px; }
.planner-output caption { text-align: left; font: 600 17px/1.3 var(--display); padding-bottom: 8px; }
.planner-output td { font-variant-numeric: tabular-nums; }
[data-scenario-planner] { flex: 1 1 100%; min-width: 0; }
