/* =========================================================================
   Traffic that Converts - site styles
   Mobile-first. Layout and type scale modelled on wearetag.co.
   Brand colours are tokens: change them here only.
   ========================================================================= */

:root {
  /* Neutrals */
  --bg: #f5f5f5;
  --surface: #ffffff;
  --surface-2: #fafafa;
  --ink: #1a1a1a;
  --ink-2: #3c3c3c;
  --muted: #555555;
  --line: #e1e1e1;
  --line-strong: #c9c9c9;

  /* Brand accents */
  --accent: #4326d9;          /* text accent, links, focus */
  --accent-ink: #ffffff;
  --brand-1: #1a22a8;         /* cobalt */
  --brand-2: #5a18c4;         /* violet */
  --brand-3: #b8361d;         /* coral (dark enough for white text) */
  --grad: linear-gradient(120deg, var(--brand-1) 0%, var(--brand-2) 52%, var(--brand-3) 100%);
  --grad-text: linear-gradient(100deg, #3b3ff0 0%, #8a3cf0 50%, #f0563a 100%);

  /* Card gradient variants (all pass 4.5:1 with white text) */
  --card-g1: linear-gradient(140deg, #1a22a8 0%, #4a1fc0 100%);
  --card-g2: linear-gradient(140deg, #5a18c4 0%, #9b1474 100%);
  --card-g3: linear-gradient(140deg, #a3301a 0%, #8a4b00 100%);
  --card-g4: linear-gradient(140deg, #075e57 0%, #1a3fa8 100%);

  --danger: #b3261e;
  --success: #116b3a;

  /* Type */
  --font: "Inter", "Inter var", Arial, system-ui, sans-serif;
  --fs-body: 1rem;
  --lh-body: 1.7;
  --fs-h1: clamp(2.75rem, 1.6rem + 5.2vw, 6rem);
  --fs-h2: clamp(2.125rem, 1.45rem + 3.1vw, 4rem);
  --fs-h3-lg: clamp(1.625rem, 1.2rem + 1.9vw, 3rem);
  --fs-h3: clamp(1.375rem, 1.25rem + 0.55vw, 1.75rem);
  --fs-lead: clamp(1.0625rem, 0.98rem + 0.4vw, 1.375rem);
  --fs-statement: clamp(1.375rem, 1.05rem + 1.35vw, 2.375rem);
  --fs-small: 0.875rem;
  --fs-btn: 0.8rem;

  /* Shape and space */
  --radius-sm: 12px;
  --radius: 24px;
  --radius-lg: 32px;
  --pill: 999px;
  --gutter: 16px;
  --section-pad: 64px;
  --container: 1360px;
  --shadow: 0 1px 2px rgba(0,0,0,.04), 0 8px 24px rgba(0,0,0,.06);
  --shadow-lg: 0 2px 4px rgba(0,0,0,.05), 0 18px 48px rgba(0,0,0,.10);
  --header-h: 72px;
}

@media (min-width: 768px)  { :root { --gutter: 24px; --section-pad: 96px; } }
@media (min-width: 1200px) { :root { --gutter: 32px; --section-pad: 120px; } }

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 110px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; height: auto; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure, blockquote { margin: 0; }
ul[role="list"], ol[role="list"] { list-style: none; padding: 0; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
table { border-collapse: collapse; }

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

/* ---------- Utilities ---------- */
.container { width: 100%; max-width: calc(var(--container) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.flow > * + * { margin-top: 1em; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: var(--gutter); top: -100px; z-index: 100;
  background: var(--ink); color: #fff; padding: .75rem 1.25rem; border-radius: var(--pill);
  font-weight: 600; text-decoration: none;
}
.skip-link:focus { top: 12px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
.placeholder { background: #fff3c4; color: #5c4400; padding: 0 .25em; border-radius: 4px; }

/* ---------- Typography ---------- */
h1, h2, h3 { font-weight: 800; color: inherit; text-wrap: balance; }
h1 { font-size: var(--fs-h1); line-height: 1; letter-spacing: -0.03em; }
h2 { font-size: var(--fs-h2); line-height: 1.05; letter-spacing: -0.025em; }
h3 { font-size: var(--fs-h3); line-height: 1.2; letter-spacing: -0.02em; }
p, li { text-wrap: pretty; }
strong { font-weight: 700; }
.text-grad {
  background: var(--grad-text); -webkit-background-clip: text; background-clip: text;
  color: transparent; -webkit-text-fill-color: transparent;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: .5rem;
  font-size: var(--fs-small); font-weight: 700; letter-spacing: 0;
}
.eyebrow::before {
  content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--grad-text);
}
.lead { font-size: var(--fs-lead); line-height: 1.55; }
.note { font-size: var(--fs-small); color: var(--muted); }
.prose a, .split__body a, .item a, .card p a, .faq a, .intro a, .feature-card a:not(.btn) {
  color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 3px;
}
.split__body ul, .split__body ol, .prose ul, .prose ol, .item ul, .item ol { padding-left: 1.25em; }
.split__body li + li, .prose li + li, .item li + li { margin-top: .4em; }
.split__body li::marker, .prose li::marker, .item li::marker { color: var(--accent); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  min-height: 44px; padding: .95em 1.6em; border-radius: var(--pill);
  background: var(--ink); color: #fff; border: 1.5px solid var(--ink);
  font-size: var(--fs-btn); font-weight: 600; line-height: 1; letter-spacing: .01em;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: transform .2s ease, background-color .2s ease, color .2s ease, border-color .2s ease;
}
.btn:hover { background: #000; transform: translateY(-1px); }
.btn--light { background: #fff; color: var(--ink); border-color: #fff; }
.btn--light:hover { background: #ececec; border-color: #ececec; }
.btn--ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.7); }
.btn--ghost:hover { background: rgba(255,255,255,.12); border-color: #fff; }
.btn--outline { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn--outline:hover { background: var(--ink); color: #fff; }
.btn .arrow { transition: transform .2s ease; }
.btn:hover .arrow { transform: translateX(3px); }
.actions { display: flex; flex-wrap: wrap; gap: .75rem; }
* + .actions { margin-top: 1.75rem; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; padding-top: 12px; }
.site-header__bar {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  min-height: 56px; padding: .4rem .4rem .4rem 1.1rem;
  background: rgba(255,255,255,.88);
  -webkit-backdrop-filter: saturate(160%) blur(14px); backdrop-filter: saturate(160%) blur(14px);
  border-radius: var(--pill); box-shadow: var(--shadow);
}
.logo {
  display: inline-flex; align-items: baseline; gap: .28em; flex-shrink: 0;
  font-weight: 800; font-size: 1.05rem; letter-spacing: -0.03em; line-height: 1;
  text-decoration: none; color: var(--ink);
}
.logo__that { font-weight: 500; font-style: italic; }
.logo__converts { background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent; }

.nav-toggle {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  height: 44px; padding: 0 1.1rem; border: 0; border-radius: var(--pill);
  background: var(--ink); color: #fff; font-size: var(--fs-btn); font-weight: 600; cursor: pointer;
}
.nav-toggle__icon, .nav-toggle__icon::before, .nav-toggle__icon::after {
  display: block; width: 16px; height: 2px; background: currentColor; border-radius: 2px;
  transition: transform .2s ease, opacity .2s ease;
}
.nav-toggle__icon { position: relative; }
.nav-toggle__icon::before, .nav-toggle__icon::after { content: ""; position: absolute; left: 0; }
.nav-toggle__icon::before { top: -5px; }
.nav-toggle__icon::after { top: 5px; }
.nav-toggle[aria-expanded="true"] .nav-toggle__icon { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle__icon::before { transform: translateY(5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__icon::after { transform: translateY(-5px) rotate(-45deg); }

/* Mobile drawer */
.site-nav {
  position: fixed; left: var(--gutter); right: var(--gutter); top: 80px;
  max-height: calc(100vh - 96px); max-height: calc(100dvh - 96px); overflow-y: auto;
  background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow-lg);
  padding: .75rem 1.25rem 1.25rem; display: none;
}
.site-nav.is-open { display: block; }
.nav-list { list-style: none; margin: 0; padding: 0; }
.nav-list > li { border-bottom: 1px solid var(--line); }
.nav-list > li:last-child { border-bottom: 0; }
.nav-link, .nav-sub-toggle {
  display: flex; width: 100%; align-items: center; justify-content: space-between;
  padding: .95rem 0; background: none; border: 0; text-align: left;
  font-size: 1.0625rem; font-weight: 600; text-decoration: none; color: var(--ink); cursor: pointer;
}
.nav-link[aria-current="page"] { color: var(--accent); }
.nav-sub-toggle::after {
  content: ""; width: 8px; height: 8px; margin-right: 4px;
  border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-3px); transition: transform .2s ease;
}
.nav-sub-toggle[aria-expanded="true"]::after { transform: rotate(-135deg) translateY(-1px); }
.nav-sub { display: none; padding: 0 0 1rem; }
.nav-sub-toggle[aria-expanded="true"] + .nav-sub { display: grid; gap: 1.25rem; }
.nav-sub__title { font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-bottom: .35rem; }
.nav-sub ul { list-style: none; margin: 0; padding: 0; }
.nav-sub a { display: block; padding: .4rem 0; text-decoration: none; color: var(--ink-2); }
.nav-sub a:hover, .nav-sub a[aria-current="page"] { color: var(--accent); }
.nav-ctas { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1rem; }
.nav-ctas .btn { flex: 1 1 auto; }

@media (min-width: 1100px) {
  .nav-toggle { display: none; }
  .site-nav {
    position: static; display: flex !important; align-items: center; gap: 1.25rem;
    max-height: none; overflow: visible; background: none; box-shadow: none; padding: 0;
  }
  .nav-list { display: flex; align-items: center; gap: .25rem; }
  .nav-list > li { border: 0; position: relative; }
  .nav-link, .nav-sub-toggle { padding: .6rem .8rem; font-size: .875rem; border-radius: var(--pill); }
  .nav-link:hover, .nav-sub-toggle:hover { background: rgba(0,0,0,.05); }
  .nav-sub-toggle { gap: .5rem; }
  .nav-sub-toggle::after { width: 6px; height: 6px; border-width: 1.5px; }
  .nav-sub {
    position: absolute; top: calc(100% + 14px); left: 50%; transform: translateX(-50%);
    display: grid !important; visibility: hidden; opacity: 0; pointer-events: none;
    background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow-lg);
    padding: 1.75rem; min-width: 280px; transition: opacity .15s ease, visibility .15s;
  }
  .nav-sub::before { content: ""; position: absolute; left: 0; right: 0; top: -16px; height: 16px; }
  .nav-sub--mega { grid-template-columns: repeat(4, minmax(180px, 1fr)); gap: 1.5rem 2rem; min-width: 880px; left: 0; transform: translateX(-20%); }
  .nav-sub-toggle[aria-expanded="true"] + .nav-sub,
  .has-sub:hover > .nav-sub { visibility: visible; opacity: 1; pointer-events: auto; }
  .nav-sub a { font-size: .9rem; padding: .3rem 0; }
  .nav-ctas { margin: 0; flex-wrap: nowrap; }
}

/* ---------- Breadcrumbs ---------- */
.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: .35rem; list-style: none; margin: 0; padding: 0; font-size: var(--fs-small); }
.breadcrumbs li + li::before { content: "/"; margin-right: .35rem; opacity: .6; }
.breadcrumbs a { text-decoration: none; }
.breadcrumbs a:hover { text-decoration: underline; }
.breadcrumbs [aria-current] { opacity: .85; }

/* ---------- Hero ---------- */
.hero { padding-top: 16px; }
.hero__card {
  position: relative; isolation: isolate; overflow: hidden;
  display: flex; flex-direction: column; justify-content: flex-end; gap: 1.25rem;
  min-height: 460px; padding: 28px 20px 32px;
  background: var(--grad); color: #fff; border-radius: var(--radius);
}
.hero__media { position: absolute; inset: 0; z-index: -2; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; }
.hero__media img.is-placeholder { opacity: 0; } /* show the pure gradient until a real image is added */
.hero__card::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--grad); opacity: .82;
}
.hero__top { display: flex; flex-direction: column; gap: .9rem; margin-bottom: auto; }
.hero .eyebrow { background: rgba(255,255,255,.14); padding: .45rem .9rem; border-radius: var(--pill); align-self: flex-start; }
.hero .eyebrow::before { background: #fff; }
.hero h1 { max-width: 16ch; }
.hero .lead { max-width: 62ch; color: rgba(255,255,255,.94); }
.hero--home .hero__card { min-height: min(820px, calc(100svh - 100px)); }
.hero--home h1 { max-width: 14ch; }
.hero--compact .hero__card { min-height: 380px; }
.hero--compact h1 { max-width: 20ch; font-size: clamp(2.375rem, 1.5rem + 3.6vw, 4.5rem); }

@media (min-width: 768px) {
  .hero__card { padding: 40px 48px 56px; border-radius: var(--radius-lg); gap: 1.5rem; min-height: 560px; }
}
@media (min-width: 1200px) {
  .hero__card { padding: 48px 64px 72px; min-height: 620px; }
  .hero--compact .hero__card { min-height: 460px; }
}

/* ---------- Sections ---------- */
.section { padding-top: var(--section-pad); }
main > .section:last-child { padding-bottom: var(--section-pad); }
.section-head { display: grid; gap: 1.25rem; margin-bottom: 2.5rem; }
.section-head h2 { max-width: 18ch; }
.section-head__intro { max-width: 62ch; color: var(--ink-2); }
@media (min-width: 1024px) {
  .section-head { grid-template-columns: 7fr 5fr; align-items: end; gap: 4rem; margin-bottom: 3.5rem; }
  .section-head--stack { grid-template-columns: 1fr; }
}

/* Intro statement */
.intro__text { max-width: 34ch; font-size: var(--fs-statement); font-weight: 700; line-height: 1.22; letter-spacing: -0.02em; }
.intro__text p + p { margin-top: .75em; }
.intro__text .note { font-size: var(--fs-small); font-weight: 400; letter-spacing: 0; line-height: 1.6; }
@media (min-width: 1024px) { .intro__text { max-width: 40ch; } }

/* Split: heading left, content right (TAG "How We Help") */
.split { display: grid; gap: 1.5rem 4rem; }
.split__head h2 { max-width: 14ch; }
.split__head .flow { margin-top: 1.25rem; color: var(--ink-2); }
.split__body { min-width: 0; max-width: 72ch; }
@media (min-width: 1024px) {
  .split { grid-template-columns: 5fr 7fr; }
  .split__head { position: sticky; top: 110px; align-self: start; }
}

/* Items grid (TAG "Our Specialties") */
.items { display: grid; gap: 2.5rem 2rem; }
.item { display: grid; align-content: start; gap: .75rem; }
.item__icon {
  display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 50%;
  background: var(--grad); color: #fff; font-size: .75rem; font-weight: 700;
}
.item h3 { color: var(--accent); }
.item .flow { color: var(--ink-2); }
@media (min-width: 640px) { .items { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .items--3 { grid-template-columns: repeat(3, 1fr); gap: 3.5rem 3rem; } .items { gap: 3.5rem 3rem; } }

/* Link cards */
.cards { display: grid; gap: 1rem; }
.card {
  position: relative; display: flex; flex-direction: column; gap: .85rem;
  padding: 28px 24px; background: var(--surface); border-radius: var(--radius);
  transition: transform .25s ease, box-shadow .25s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.card h3 a { text-decoration: none; color: inherit; }
.card h3 a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.card h3 a:focus-visible { outline: none; }
.card:focus-within { outline: 3px solid var(--accent); outline-offset: 3px; }
.card p { color: var(--ink-2); }
.card p a { position: relative; z-index: 1; }
.card__more {
  margin-top: auto; padding-top: .5rem; display: inline-flex; align-items: center; gap: .4rem;
  font-size: var(--fs-small); font-weight: 700;
}
.card__more .arrow { transition: transform .2s ease; }
.card:hover .card__more .arrow { transform: translateX(4px); }
@media (min-width: 640px) { .cards { grid-template-columns: repeat(2, 1fr); gap: 1.25rem; } }
@media (min-width: 1024px) { .cards--3 { grid-template-columns: repeat(3, 1fr); } .card { padding: 36px 32px; } }

/* Gradient feature cards (TAG "Challenges we solve") */
.cards--feature .card { color: #fff; min-height: 300px; padding: 32px 28px; }
.cards--feature .card p { color: rgba(255,255,255,.92); }
.cards--feature .card h3 { font-size: var(--fs-h3-lg); line-height: 1.05; letter-spacing: -0.025em; max-width: 12ch; }
.cards--feature .card:nth-child(4n+1) { background: var(--card-g1); }
.cards--feature .card:nth-child(4n+2) { background: var(--card-g2); }
.cards--feature .card:nth-child(4n+3) { background: var(--card-g3); }
.cards--feature .card:nth-child(4n+4) { background: var(--card-g4); }
.cards--feature .card__more {
  align-self: flex-start; padding: .8em 1.4em; border: 1.5px solid rgba(255,255,255,.75); border-radius: var(--pill);
  font-size: var(--fs-btn); font-weight: 600;
}
@media (min-width: 1024px) { .cards--feature .card { min-height: 420px; padding: 44px 40px; } }

/* Numbered steps */
.steps { list-style: none; margin: 0; padding: 0; counter-reset: step; }
.step { display: grid; grid-template-columns: 48px 1fr; gap: .25rem 1.25rem; padding: 1.75rem 0; border-top: 1px solid var(--line-strong); }
.step:last-child { border-bottom: 1px solid var(--line-strong); }
.step__num {
  grid-row: span 2; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%;
  background: var(--grad); color: #fff; font-weight: 800; font-size: 1rem;
}
.step h3 { align-self: center; }
.step .flow { grid-column: 2; color: var(--ink-2); }
@media (min-width: 768px) { .step { grid-template-columns: 64px 1fr; gap: .4rem 1.75rem; } .step__num { width: 56px; height: 56px; font-size: 1.125rem; } }

/* Feature card with image (TAG "Why work with") */
.feature-card { display: grid; background: var(--surface); border-radius: var(--radius); overflow: hidden; }
.feature-card__body { padding: 32px 24px; }
.feature-card__body h2 { max-width: 14ch; }
.feature-list { list-style: none; margin: 1.75rem 0 0; padding: 0; }
.feature-list li { padding: 1rem 0; border-top: 1px solid var(--line); color: var(--ink-2); }
.feature-list li strong { color: var(--ink); }
.feature-card__media { position: relative; min-height: 280px; }
.feature-card__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
@media (min-width: 1024px) {
  .feature-card { grid-template-columns: 1fr 1fr; border-radius: var(--radius-lg); }
  .feature-card__body { padding: 56px 56px 64px; }
  .feature-card__media { min-height: 100%; margin: 12px; border-radius: var(--radius); overflow: hidden; }
}

/* Definition list (contact details) */
.details-list { display: grid; gap: 1.25rem; margin: 0; }
.details-list div { padding-bottom: 1.25rem; border-bottom: 1px solid var(--line); }
.details-list dt { font-weight: 700; font-size: var(--fs-small); color: var(--muted); }
.details-list dd { font-size: 1.25rem; font-weight: 600; letter-spacing: -0.01em; overflow-wrap: anywhere; }
.details-list a { color: var(--accent); }

/* Tables */
.table-wrap { overflow-x: auto; background: var(--surface); border-radius: var(--radius-sm); -webkit-overflow-scrolling: touch; }
.table-wrap:focus-visible { outline-offset: 2px; }
.table-wrap table { width: 100%; min-width: 480px; font-size: .9375rem; line-height: 1.5; }
.table-wrap th, .table-wrap td { padding: .9rem 1.1rem; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.table-wrap thead th { background: var(--ink); color: #fff; font-weight: 600; font-size: .8125rem; white-space: nowrap; }
.table-wrap tbody tr:last-child > * { border-bottom: 0; }
.table-wrap tbody th { font-weight: 600; }
.table-wrap tbody tr:hover { background: var(--surface-2); }
* + .table-wrap, .table-wrap + * { margin-top: 1.25rem; }

/* FAQ */
.faq-list { border-top: 1px solid var(--line-strong); }
.faq-item { border-bottom: 1px solid var(--line-strong); }
.faq-item summary {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1.25rem 0; cursor: pointer; list-style: none;
  font-weight: 700; font-size: 1.0625rem; line-height: 1.4; letter-spacing: -0.01em;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary h3 { font: inherit; letter-spacing: inherit; }
.faq-item summary::after {
  content: "+"; flex-shrink: 0; display: grid; place-items: center; width: 30px; height: 30px;
  border: 1.5px solid var(--line-strong); border-radius: 50%; font-weight: 500; font-size: 1.125rem; line-height: 1;
  transition: transform .2s ease, background-color .2s ease;
}
.faq-item[open] summary::after { transform: rotate(45deg); background: var(--ink); color: #fff; border-color: var(--ink); }
.faq-item__body { padding: 0 2.75rem 1.5rem 0; color: var(--ink-2); }
@media (min-width: 768px) { .faq-item summary { font-size: 1.1875rem; padding: 1.5rem 0; } }

/* CTA band */
.cta-card {
  position: relative; overflow: hidden; display: grid; justify-items: start; gap: 1.25rem;
  padding: 40px 24px; border-radius: var(--radius); background: var(--grad); color: #fff;
}
.cta-card h2 { max-width: 20ch; }
.cta-card .flow { max-width: 60ch; color: rgba(255,255,255,.92); }
.cta-card .actions { margin-top: .5rem; }
.cta-card a:not(.btn) { color: #fff; }
@media (min-width: 768px) { .cta-card { padding: 72px 56px; border-radius: var(--radius-lg); } }
@media (min-width: 1200px) { .cta-card { padding: 96px 80px; } }

/* Post (guide) cards */
.post-cards { display: grid; gap: 1.5rem; }
.post-card { position: relative; display: grid; gap: .75rem; align-content: start; }
.post-card__media { overflow: hidden; border-radius: var(--radius); aspect-ratio: 16 / 10; background: #e9e9e9; }
.post-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.post-card:hover .post-card__media img { transform: scale(1.03); }
.post-card .eyebrow { margin-top: .5rem; }
.post-card h3 { font-size: clamp(1.25rem, 1.1rem + .6vw, 1.75rem); line-height: 1.2; }
.post-card h3 a { text-decoration: none; }
.post-card h3 a::after { content: ""; position: absolute; inset: 0; }
.post-card p { color: var(--ink-2); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
@media (min-width: 640px) { .post-cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .post-cards { grid-template-columns: repeat(3, 1fr); gap: 2rem; } }

/* ---------- Article ---------- */
.article-media { margin-top: 1rem; }
.article-media img { width: 100%; border-radius: var(--radius); aspect-ratio: 16 / 9; object-fit: cover; }
.article-layout { display: grid; gap: 2.5rem; }
.toc { font-size: var(--fs-small); }
.toc__title { font-weight: 700; margin-bottom: .5rem; }
.toc ol { list-style: none; margin: 0; padding: 0; border-left: 2px solid var(--line-strong); }
.toc a { display: block; padding: .35rem 0 .35rem 1rem; margin-left: -2px; border-left: 2px solid transparent; text-decoration: none; color: var(--ink-2); line-height: 1.4; }
.toc a:hover { color: var(--accent); border-left-color: var(--accent); }
.prose { max-width: 720px; min-width: 0; font-size: 1.0625rem; }
.prose > * + * { margin-top: 1.15em; }
.prose h2 { font-size: clamp(1.75rem, 1.35rem + 1.5vw, 2.5rem); line-height: 1.1; margin-top: 2.25em; }
.prose h3 { font-size: clamp(1.25rem, 1.15rem + .4vw, 1.5rem); margin-top: 1.75em; }
.prose h2 + *, .prose h3 + * { margin-top: .75em; }
.prose > :first-child { margin-top: 0; }
.prose .faq-list { margin-top: 1.5em; }
@media (min-width: 1024px) {
  .article-layout { grid-template-columns: 240px minmax(0, 720px); gap: 5rem; justify-content: start; }
  .toc { position: sticky; top: 110px; align-self: start; max-height: calc(100vh - 140px); overflow-y: auto; }
}
@media (max-width: 1023px) {
  .toc { background: var(--surface); border-radius: var(--radius-sm); padding: 1.25rem; }
}

/* ---------- Forms ---------- */
.form-card { background: var(--surface); border-radius: var(--radius); padding: 24px 20px; box-shadow: var(--shadow); }
@media (min-width: 768px) { .form-card { padding: 40px; } }
.form-grid { display: grid; gap: 1.1rem; }
@media (min-width: 640px) { .form-grid { grid-template-columns: 1fr 1fr; } .field--full, .form-grid fieldset, .form-grid .form-footer { grid-column: 1 / -1; } }
.field { display: grid; gap: .4rem; }
.field label, .form-grid legend { font-weight: 600; font-size: .9375rem; }
.field .req { color: var(--danger); }
.field .optional { color: var(--muted); font-weight: 400; font-size: .8125rem; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 50px; padding: .8rem 1rem; background: #fff;
  border: 1.5px solid var(--line-strong); border-radius: var(--radius-sm); font-size: 1rem; line-height: 1.4;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.field textarea { min-height: 140px; resize: vertical; }
.field select {
  appearance: none; -webkit-appearance: none; padding-right: 2.75rem;
  background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(135deg, var(--ink) 50%, transparent 50%);
  background-position: calc(100% - 22px) 50%, calc(100% - 16px) 50%; background-size: 6px 6px; background-repeat: no-repeat;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(67,38,217,.18); }
.field input:user-invalid, .field select:user-invalid, .field textarea:user-invalid { border-color: var(--danger); }
.form-grid fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.form-grid legend { padding: 0; margin-bottom: .6rem; }
.checks { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: .5rem; }
.check {
  position: relative; display: flex; align-items: center; gap: .6rem; min-height: 46px;
  padding: .55rem .9rem; border: 1.5px solid var(--line-strong); border-radius: var(--radius-sm); cursor: pointer; font-size: .9375rem;
}
.check input { width: 18px; height: 18px; accent-color: var(--accent); flex-shrink: 0; margin: 0; }
.check:has(input:checked) { border-color: var(--accent); background: #f1eefe; }
.check:has(input:focus-visible) { outline: 3px solid var(--accent); outline-offset: 2px; }
.hp-field { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-footer { display: grid; gap: 1rem; justify-items: start; margin-top: .25rem; }
.form-footer .note a { color: var(--accent); }
.form-status { font-weight: 600; }
.form-status:empty { display: none; }
.form-status.is-success { color: var(--success); }
.form-status.is-error { color: var(--danger); }
.btn[disabled] { opacity: .6; cursor: progress; }
.newsletter-form { display: grid; gap: .75rem; max-width: 520px; }
.newsletter-form .newsletter-row { display: grid; gap: .75rem; }
@media (min-width: 640px) {
  .newsletter-form .newsletter-row { display: flex; align-items: flex-end; }
  .newsletter-form .field { flex: 1; }
  .newsletter-form .btn { min-height: 50px; }
}

/* ---------- Footer ---------- */
.site-footer { padding: var(--section-pad) 0 var(--gutter); }
.footer-card { background: var(--ink); color: #ececec; border-radius: var(--radius); padding: 40px 24px 28px; }
.footer-top { display: grid; gap: 1.5rem; padding-bottom: 2.5rem; border-bottom: 1px solid rgba(255,255,255,.14); }
.footer-top .logo { font-size: clamp(1.75rem, 1.2rem + 2.4vw, 3.25rem); color: #fff; }
.footer-top p { max-width: 46ch; color: #c9c9c9; }
.footer-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2rem 1.5rem; padding: 2.5rem 0; }
.footer-col h2 { font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: #a8a8a8; margin-bottom: .9rem; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
.footer-col a { color: #ececec; text-decoration: none; font-size: .9375rem; }
.footer-col a:hover { color: #fff; text-decoration: underline; }
.footer-col p { font-size: .9375rem; color: #c9c9c9; }
.footer-col p + p { margin-top: .5rem; }
.footer-bottom { display: flex; flex-wrap: wrap; gap: .75rem 1.5rem; justify-content: space-between; padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,.14); font-size: .8125rem; color: #a8a8a8; }
.footer-bottom a { color: #c9c9c9; }
.footer-card :focus-visible { outline-color: #fff; }
@media (min-width: 768px) {
  .footer-card { padding: 64px 48px 32px; border-radius: var(--radius-lg); }
  .footer-top { grid-template-columns: 1fr auto; align-items: end; }
  .footer-cols { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 1200px) { .footer-cols { grid-template-columns: 1.2fr 1.2fr 1fr 1fr 1.2fr; } .footer-card { padding: 80px 64px 32px; } }

/* ---------- Simple page (404 / thank you) ---------- */
.simple { padding-top: var(--section-pad); }
.simple .flow { max-width: 60ch; color: var(--ink-2); }

/* ---------- Motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; scroll-behavior: auto !important; }
  .card:hover, .btn:hover { transform: none; }
}

/* ---------- Print ---------- */
@media print {
  .site-header, .site-footer, .toc, .hero__media, form { display: none !important; }
  .hero__card, .cta-card { background: none !important; color: #000 !important; min-height: 0 !important; padding: 0 !important; }
  .hero__card::after { display: none; }
}
.footer-col__sub { margin-top: 1.75rem; }
