/**
 * Digital Roadmap — scoped styles.
 *
 * Two scopes let the roadmap blocks be used on ANY page without leaking into
 * (or being clobbered by) the main Tailwind theme:
 *
 *   .roadmap-scope     wraps every roadmap block's <section> (added in each
 *                      block template). All block styling lives here, so it
 *                      travels with the block onto normal pages.
 *   body.roadmap-page  set by header-roadmap.php on the standalone landing page
 *                      only. Page chrome (header/footer/sticky/consent) and the
 *                      page-level dark reset live here, so they never fire on a
 *                      normal page.
 *
 * Utilities used in BOTH contexts (.wrap, .btn, resets) are prefixed with
 * :is(.roadmap-scope, body.roadmap-page) so they resolve either way.
 *
 * Enqueued on template-digital-roadmap.php AND on any page that contains a
 * roadmap block — see awdd_enqueue_roadmap_assets() in functions.php.
 * Originally ported from digital-roadmap/digital-roadmap-assessment.html.
 */
:root {
  /* Tokens mirror tailwind.config.js / src/styles/main.css on the main site */
  --awd-ink: #000000; --awd-ink-deep: #0a0a0a; --awd-ink-soft: #1d1d1f; --awd-mid: #111111;
  --awd-paper: #ffffff; --awd-paper-soft: #f5f5f7;
  --awd-accent: #de4d44; --awd-accent-dark: #c43d34; --awd-accent-light: #fdf0ef; --awd-muted: #86868b;
  --awd-rule: rgba(255,255,255,0.08); --awd-rule-strong: rgba(255,255,255,0.14); --awd-rule-ink: rgba(0,0,0,0.08);
  --awd-f-display: 'Urbanist', system-ui, -apple-system, sans-serif;
  --awd-f-body: 'Figtree', system-ui, -apple-system, sans-serif;
  --awd-gutter: 24px;
  --awd-radius-sm: 0.75rem; --awd-radius-md: 0.875rem; --awd-radius-lg: 1rem;
  --awd-section-y: clamp(72px, 10vh, 144px);
}

/* Box-sizing + shared element resets — apply in both scopes. */
:is(.roadmap-scope, body.roadmap-page),
:is(.roadmap-scope, body.roadmap-page) *,
:is(.roadmap-scope, body.roadmap-page) *::before,
:is(.roadmap-scope, body.roadmap-page) *::after { box-sizing: border-box; }
:is(.roadmap-scope, body.roadmap-page) h1,
:is(.roadmap-scope, body.roadmap-page) h2,
:is(.roadmap-scope, body.roadmap-page) h3 { font-family: var(--awd-f-display); margin: 0; }
:is(.roadmap-scope, body.roadmap-page) p { margin: 0; }
:is(.roadmap-scope, body.roadmap-page) a { color: inherit; }
:is(.roadmap-scope, body.roadmap-page) img { max-width: 100%; display: block; }

/* Page-level reset — standalone landing page only. */
html:has(body.roadmap-page) { scroll-behavior: smooth; }
body.roadmap-page { margin: 0; font-family: var(--awd-f-body); font-weight: 400; font-size: 16px; line-height: 1.55; color: var(--awd-paper); background: var(--awd-ink); -webkit-font-smoothing: antialiased; }
@media (min-width: 1280px) { body.roadmap-page { font-size: 17px; } }
@media (min-width: 1920px) { body.roadmap-page { font-size: 18px; } }

/* Block scope base — a self-contained dark surface wherever a block is dropped.
   Individual sections paint their own background over this. */
.roadmap-scope { font-family: var(--awd-f-body); font-weight: 400; font-size: 16px; line-height: 1.55; color: var(--awd-paper); background: var(--awd-ink); -webkit-font-smoothing: antialiased; }
@media (min-width: 1280px) { .roadmap-scope { font-size: 17px; } }
@media (min-width: 1920px) { .roadmap-scope { font-size: 18px; } }

@media (prefers-reduced-motion: reduce) {
  html:has(body.roadmap-page) { scroll-behavior: auto; }
  :is(.roadmap-scope, body.roadmap-page) * { animation: none !important; transition: none !important; }
}

/* Container, mirrors max-w-[1400px] xl:max-w-[1600px] 2xl:max-w-[1800px] px-6 lg:px-10 xl:px-14 */
:is(.roadmap-scope, body.roadmap-page) .wrap { width: 100%; max-width: 1400px; margin: 0 auto; padding-left: var(--awd-gutter); padding-right: var(--awd-gutter); }
@media (min-width: 1024px) { :root { --awd-gutter: 40px; } }
@media (min-width: 1280px) { :root { --awd-gutter: 56px; } :is(.roadmap-scope, body.roadmap-page) .wrap { max-width: 1600px; } }
@media (min-width: 1536px) { :is(.roadmap-scope, body.roadmap-page) .wrap { max-width: 1800px; } }
.roadmap-scope .mono { font-weight: 700; text-transform: uppercase; letter-spacing: 0.12em; font-size: 12px; color: var(--awd-muted); }
.roadmap-scope .section-head .mono, .roadmap-scope .assess-head .mono { color: var(--awd-accent); letter-spacing: 0.25em; }

body.roadmap-page .skip-link { position: absolute; left: -9999px; top: 0; background: var(--awd-accent); color: #fff; padding: 12px 18px; z-index: 1000; border-radius: 999px; font-size: 13px; font-weight: 600; }
body.roadmap-page .skip-link:focus { left: 12px; top: 12px; }
:is(.roadmap-scope, body.roadmap-page) :focus-visible { outline: 2px solid var(--awd-accent); outline-offset: 3px; }
:is(.roadmap-scope, body.roadmap-page) ::selection { background: rgba(222,77,68,0.18); color: inherit; }

/* Noise texture, same asset as .noise in src/styles/main.css (hero + final CTA only) */
.roadmap-scope .noise { position: relative; isolation: isolate; }
/* Cancel the main theme's heavier .noise::before when a roadmap hero sits on a
   normal page (the theme's app.css defines its own .noise::before). */
.roadmap-scope .noise::before { content: none; }
.roadmap-scope .noise::after { content: ""; position: absolute; inset: 0; z-index: 10; pointer-events: none; opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-repeat: repeat; background-size: 180px 180px; }

body.roadmap-page .awd-logo { display: inline-flex; color: var(--awd-paper); }
body.roadmap-page .awd-logo svg { height: 26px; width: auto; display: block; }
@media (max-width: 768px) { body.roadmap-page .awd-logo svg { height: 21px; } }

/* Nav mirrors #mainNav on the main site: transparent over the hero, dark blur
   once scrolled (.nav-scrolled), hidden on scroll down / shown on scroll up (.nav-hidden) */
body.roadmap-page .site-header { position: fixed; top: 0; left: 0; right: 0; z-index: 100; background: transparent; transition: transform 500ms cubic-bezier(0.25,0.1,0.25,1), background 300ms ease, box-shadow 300ms ease; }
body.roadmap-page .site-header.nav-scrolled { background: rgba(0,0,0,0.82); -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px); box-shadow: 0 1px 0 rgba(255,255,255,0.06); }
body.roadmap-page .site-header.nav-hidden { transform: translateY(-100%); }
body.roadmap-page .site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 72px; }
/* Nav CTA is btn-sm: text-sm px-5 py-2.5 */
body.roadmap-page .header-cta { display: inline-flex; align-items: center; gap: 8px; padding: 0.625rem 1.25rem; background: var(--awd-accent); color: #fff; font-family: var(--awd-f-body); font-weight: 500; font-size: 0.875rem; text-decoration: none; border-radius: 999px; transition: background 200ms ease; white-space: nowrap; }
body.roadmap-page .header-cta:hover { background: var(--awd-accent-dark); }
@media (max-width: 560px) { body.roadmap-page .header-cta { padding: 0.5rem 1rem; font-size: 13px; } }

/* Section-level CTAs are btn-lg: text-[0.9375rem] px-8 py-[0.9375rem] sm:text-base sm:px-10 sm:py-[1.0625rem].
   Base .btn is shared (the consent banner in the page chrome also uses it). */
:is(.roadmap-scope, body.roadmap-page) .btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 0.9375rem 2rem; font-family: var(--awd-f-body); font-weight: 500; font-size: 0.9375rem; border-radius: 999px; text-decoration: none; border: 0; cursor: pointer; transition: background 200ms ease, color 200ms ease; white-space: nowrap; }
@media (min-width: 640px) { :is(.roadmap-scope, body.roadmap-page) .btn { font-size: 1rem; padding: 1.0625rem 2.5rem; } }
.roadmap-scope .btn-primary { background: var(--awd-accent); color: #fff; }
.roadmap-scope .btn-primary:hover { background: var(--awd-accent-dark); }
/* Ghost, matches .btn-ghost-light on the main site: minimal surface, no border */
.roadmap-scope .btn-secondary { background: rgba(255,255,255,0.08); color: #fff; }
.roadmap-scope .btn-secondary:hover { background: rgba(255,255,255,0.13); }
.roadmap-scope .btn-arrow { flex: 0 0 auto; }

/* Hero */
.roadmap-scope .hero { position: relative; overflow: hidden; background: var(--awd-ink-deep); padding-top: calc(72px + clamp(48px, 8vh, 92px)); padding-bottom: 0; border-bottom: 1px solid var(--awd-rule); }
/* Hero photo with a dark overlay, same treatment as .section-bg on the main site.
   Swap the img src for a brand photo (team / office shot) any time. */
.roadmap-scope .hero-bg { position: absolute; inset: 0; z-index: 0; overflow: hidden; background-color: var(--awd-ink-soft); pointer-events: none; }
.roadmap-scope .hero-bg img { width: 100%; height: 100%; object-fit: cover; object-position: center; filter: grayscale(1); }
.roadmap-scope .hero-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0.78) 0%, rgba(0,0,0,0.86) 55%, rgba(0,0,0,0.92) 100%); }
.roadmap-scope .hero > .wrap { position: relative; z-index: 1; }
.roadmap-scope .hero-grid { display: block; text-align: center; padding-bottom: clamp(40px, 6vw, 64px); }
.roadmap-scope .hero-eyebrow { display: block; color: var(--awd-accent); letter-spacing: 0.25em; margin-bottom: 24px; }
/* Hero h1 mirrors text-[clamp(2.25rem,4.5vw,5rem)] xl:text-[clamp(3.5rem,5.5vw,7rem)] leading-[0.95] tracking-tight */
.roadmap-scope .hero h1 { font-weight: 700; letter-spacing: -0.025em; line-height: 0.95; font-size: clamp(2.25rem, 4.5vw, 5rem); max-width: 22ch; margin-left: auto; margin-right: auto; }
@media (min-width: 1280px) { .roadmap-scope .hero h1 { font-size: clamp(3.5rem, 5.5vw, 7rem); } }
.roadmap-scope .hero h1 em { font-style: normal; color: var(--awd-accent); }
.roadmap-scope .hero h1 .h1-line { display: block; color: #fff; }
.roadmap-scope .hero-sub { font-size: clamp(0.9rem, 1.5vw, 1.0625rem); line-height: 1.7; color: rgba(255,255,255,0.65); max-width: 36rem; margin-top: 22px; margin-left: auto; margin-right: auto; }
.roadmap-scope .hero-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 14px; margin-top: 30px; }
.roadmap-scope .hero-microcopy { font-size: 0.75rem; color: var(--awd-muted); margin-top: 16px; }

/* Above-fold social proof */
.roadmap-scope .proof-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 14px 26px; margin-top: 32px; }
.roadmap-scope .rating { display: inline-flex; align-items: center; gap: 10px; }
.roadmap-scope .rating .g-icon { flex: 0 0 auto; }
/* Layered stars: dim base row, amber overlay clipped to the rating (4.5/5 = 90%) */
.roadmap-scope .stars { position: relative; display: inline-block; color: rgba(255,255,255,0.25); font-size: 16px; letter-spacing: 1px; line-height: 1; }
.roadmap-scope .stars .stars-fill { position: absolute; left: 0; top: 0; width: 90%; overflow: hidden; white-space: nowrap; color: #fbbf24; }
.roadmap-scope .rating .rtext { font-size: 0.875rem; color: rgba(255,255,255,0.65); }
.roadmap-scope .rating .rtext strong { color: #fff; font-weight: 700; }
/* Client logos scrolling across the bottom of the hero */
.roadmap-scope .logo-marquee { position: relative; z-index: 1; border-top: 1px solid var(--awd-rule); padding: 22px 0 26px; overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 7%, #000 93%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0, #000 7%, #000 93%, transparent 100%); }
.roadmap-scope .logo-marquee .marquee-label { display: block; text-align: center; font-size: 11px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--awd-muted); margin-bottom: 18px; }
/* No gap on the track: each item carries its own margin so the duplicated set is
   exactly 50% of the track width and the -50% loop restarts seamlessly */
.roadmap-scope .logo-track { display: flex; align-items: center; width: max-content; animation: logo-scroll 38s linear infinite; }
.roadmap-scope .logo-track > * { margin-right: 56px; }
.roadmap-scope .logo-marquee:hover .logo-track, .roadmap-scope .logo-marquee:focus-within .logo-track { animation-play-state: paused; }
/* brightness(0) flattens any brand colour to black, invert(1) flips it to white:
   every logo renders as uniform white-on-dark regardless of its source colours.
   min-width 6rem with object-fit keeps every mark at a consistent, undistorted
   size; height scales responsively with the viewport */
.roadmap-scope .logo-track .client-logo { min-width: 6rem; width: auto; height: clamp(24px, 2.2vw, 36px); object-fit: contain; filter: brightness(0) invert(1); opacity: 0.72; }
@keyframes logo-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  .roadmap-scope .logo-track { animation: none; width: auto; flex-wrap: wrap; justify-content: center; gap: 22px 40px; }
  .roadmap-scope .logo-track > * { margin-right: 0; }
}

/* Repeated section CTA */
.roadmap-scope .section-cta { text-align: center; margin-top: clamp(40px, 5vw, 56px); }

.roadmap-scope > section { padding-top: var(--awd-section-y); padding-bottom: var(--awd-section-y); }
.roadmap-scope .section-head { max-width: 60ch; margin-bottom: clamp(36px, 5vw, 56px); }
.roadmap-scope .section-head .mono { margin-bottom: 14px; display: block; }
/* Section h2 mirrors text-4xl lg:text-5xl leading-[1.05] tracking-tight */
.roadmap-scope .section-head h2 { font-weight: 700; letter-spacing: -0.025em; line-height: 1.05; font-size: 2.25rem; }
@media (min-width: 1024px) { .roadmap-scope .section-head h2 { font-size: 3rem; } }
.roadmap-scope .section-head p { color: rgba(255,255,255,0.65); font-size: 1rem; line-height: 1.625; margin-top: 18px; max-width: 56ch; }

.roadmap-scope .section-problem { background: var(--awd-ink); }
.roadmap-scope .problem-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.roadmap-scope .problem-card { background: var(--awd-ink-soft); border: 1px solid var(--awd-rule); border-radius: var(--awd-radius-lg); padding: 32px; }
.roadmap-scope .problem-card h3 { font-size: 1.25rem; font-weight: 600; line-height: 1.375; }
.roadmap-scope .problem-card p { color: rgba(255,255,255,0.6); font-size: 0.875rem; line-height: 1.625; margin-top: 12px; }
.roadmap-scope .problem-foot { margin-top: 36px; font-size: 1rem; line-height: 1.625; color: var(--awd-paper); max-width: 58ch; }
.roadmap-scope .problem-foot strong { color: var(--awd-accent); font-weight: 700; }

.roadmap-scope .section-get { background: var(--awd-paper); color: var(--awd-ink); }
.roadmap-scope .section-get .section-head h2 { color: var(--awd-ink); }
.roadmap-scope .section-get .section-head p { color: #4a4a4d; }
.roadmap-scope .section-get .mono { color: var(--awd-accent); }
.roadmap-scope .get-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.roadmap-scope .get-card { background: var(--awd-paper-soft); border: 1px solid var(--awd-rule-ink); border-radius: var(--awd-radius-lg); padding: 30px; display: flex; gap: 18px; align-items: flex-start; }
.roadmap-scope .get-num { font-family: var(--awd-f-display); font-weight: 700; font-size: 15px; color: var(--awd-accent); padding-top: 3px; }
.roadmap-scope .get-card h3 { font-size: 1.25rem; font-weight: 600; line-height: 1.375; color: var(--awd-ink); }
.roadmap-scope .get-card p { color: rgba(0,0,0,0.7); font-size: 0.875rem; line-height: 1.625; margin-top: 8px; }

.roadmap-scope .section-how { background: var(--awd-ink); }
.roadmap-scope .how-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.roadmap-scope .how-step { padding: 30px; border: 1px solid var(--awd-rule); border-radius: var(--awd-radius-lg); background: var(--awd-ink-soft); }
.roadmap-scope .how-step .step-no { font-family: var(--awd-f-display); font-weight: 700; font-size: 13px; letter-spacing: 0.12em; color: var(--awd-accent); }
.roadmap-scope .how-step h3 { font-size: 1.25rem; font-weight: 600; line-height: 1.375; margin-top: 14px; }
.roadmap-scope .how-step p { color: rgba(255,255,255,0.6); font-size: 0.875rem; line-height: 1.625; margin-top: 10px; }

.roadmap-scope .section-trust { background: var(--awd-ink-deep); }
.roadmap-scope .stat-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-bottom: 48px; }
.roadmap-scope .stat { border: 1px solid var(--awd-rule); border-radius: var(--awd-radius-lg); padding: 28px; background: var(--awd-mid); }
.roadmap-scope .stat .num { font-family: var(--awd-f-display); font-weight: 700; font-size: 2.5rem; letter-spacing: -0.02em; line-height: 1; }
.roadmap-scope .stat .num.accent { color: var(--awd-accent); }
.roadmap-scope .stat .label { font-size: 11px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--awd-muted); margin-top: 12px; }
.roadmap-scope .quote-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.roadmap-scope .quote-card { border: 1px solid var(--awd-rule); border-radius: var(--awd-radius-lg); padding: 30px; background: var(--awd-ink-soft); }
.roadmap-scope .quote-card .stars { font-size: 14px; margin-bottom: 14px; }
.roadmap-scope .quote-card blockquote { margin: 0; font-size: 1rem; font-style: italic; line-height: 1.625; color: rgba(255,255,255,0.9); }
.roadmap-scope .quote-card cite { display: block; margin-top: 18px; font-style: normal; font-size: 12px; font-weight: 600; letter-spacing: 0.06em; color: var(--awd-muted); text-transform: uppercase; }

/* Assessment */
.roadmap-scope .section-assess { background: var(--awd-paper); color: var(--awd-ink); }
.roadmap-scope .assess-shell { max-width: 720px; margin: 0 auto; }
.roadmap-scope .assess-head { text-align: center; margin-bottom: 30px; }
.roadmap-scope .assess-head .mono { display: block; margin-bottom: 12px; }
.roadmap-scope .assess-head h2 { color: var(--awd-ink); font-weight: 700; letter-spacing: -0.025em; line-height: 1.05; font-size: 2.25rem; }
@media (min-width: 1024px) { .roadmap-scope .assess-head h2 { font-size: 3rem; } }
.roadmap-scope .assess-head p { color: rgba(0,0,0,0.7); font-size: 1rem; line-height: 1.625; margin-top: 12px; }
.roadmap-scope .assess-card { background: var(--awd-paper); border: 1px solid var(--awd-rule-ink); border-radius: var(--awd-radius-lg); padding: clamp(24px, 4vw, 44px); box-shadow: 0 1px 0 rgba(0,0,0,0.03); }

.roadmap-scope .progress { margin-bottom: 28px; }
.roadmap-scope .progress-meta { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.roadmap-scope .progress-meta .mono { color: var(--awd-ink-soft); }
.roadmap-scope .progress-track { height: 6px; background: var(--awd-paper-soft); border-radius: 999px; overflow: hidden; }
.roadmap-scope .progress-bar { height: 100%; width: 25%; background: var(--awd-accent); border-radius: 999px; transition: width 400ms cubic-bezier(0.16,1,0.3,1); }

.roadmap-scope .step { display: none; }
.roadmap-scope .step.active { display: block; animation: fadeIn 400ms cubic-bezier(0.16,1,0.3,1); }
@keyframes fadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* Question headings mirror the homepage quiz: text-xl lg:text-2xl font-semibold leading-snug */
.roadmap-scope .step legend, .roadmap-scope .step .q { font-family: var(--awd-f-display); font-weight: 600; font-size: 1.25rem; color: var(--awd-ink); line-height: 1.375; border: 0; padding: 0; }
@media (min-width: 1024px) { .roadmap-scope .step legend, .roadmap-scope .step .q { font-size: 1.5rem; } }
/* Headings receive programmatic focus on step change (for screen readers); no visible ring */
.roadmap-scope .step legend:focus, .roadmap-scope .step .q:focus, .roadmap-scope .result:focus { outline: none; }
.roadmap-scope .step .q-help { color: rgba(0,0,0,0.55); font-size: 0.875rem; line-height: 1.625; margin-top: 8px; }
.roadmap-scope .step fieldset { border: 0; padding: 0; margin: 0; }

.roadmap-scope .options { display: grid; gap: 12px; margin-top: 24px; }
.roadmap-scope .opt { display: flex; align-items: center; gap: 14px; border: 1px solid var(--awd-rule-ink); border-radius: var(--awd-radius-md); padding: 14px 16px; cursor: pointer; min-height: 60px; transition: border-color 200ms, background 200ms; background: var(--awd-paper); position: relative; }
.roadmap-scope .opt:hover { border-color: #c9c9cc; background: var(--awd-paper-soft); }
.roadmap-scope .opt input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.roadmap-scope .opt .ico { width: 40px; height: 40px; flex: 0 0 40px; border-radius: var(--awd-radius-sm); background: var(--awd-paper-soft); display: flex; align-items: center; justify-content: center; color: var(--awd-ink); }
.roadmap-scope .opt .ico svg { width: 21px; height: 21px; }
.roadmap-scope .opt .opt-label { font-size: 16px; color: var(--awd-ink); font-weight: 500; flex: 1; }
.roadmap-scope .opt .box { width: 22px; height: 22px; flex: 0 0 22px; border: 2px solid #c2c2c6; border-radius: 50%; position: relative; transition: border-color 200ms; }
.roadmap-scope .opt input[type="checkbox"] + .ico + .box { border-radius: 6px; }
.roadmap-scope .opt .box::after { content: ""; position: absolute; inset: 4px; border-radius: inherit; background: var(--awd-accent); transform: scale(0); transition: transform 200ms cubic-bezier(0.16,1,0.3,1); }
.roadmap-scope .opt input:checked ~ .box { border-color: var(--awd-accent); }
.roadmap-scope .opt input:checked ~ .box::after { transform: scale(1); }
.roadmap-scope .opt input:focus-visible ~ .box { outline: 2px solid var(--awd-accent); outline-offset: 2px; }
.roadmap-scope .opt:has(input:checked) { border-color: var(--awd-accent); background: var(--awd-accent-light); }
.roadmap-scope .opt:has(input:checked) .ico { background: var(--awd-accent); color: #fff; }

.roadmap-scope .field { margin-top: 20px; }
.roadmap-scope .field label { font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: rgba(0,0,0,0.55); display: block; margin-bottom: 8px; }
.roadmap-scope .field input { width: 100%; min-height: 52px; padding: 0 16px; font-family: var(--awd-f-body); font-size: 16px; border: 1px solid var(--awd-rule-ink); border-radius: var(--awd-radius-md); color: var(--awd-ink); background: var(--awd-paper); }
.roadmap-scope .field input:focus { outline: 2px solid var(--awd-accent); outline-offset: 0; border-color: var(--awd-accent); }
.roadmap-scope .field .error-msg { color: var(--awd-accent); font-size: 13px; margin-top: 6px; display: none; }
.roadmap-scope .field.invalid .error-msg { display: block; }
.roadmap-scope .field.invalid input { border-color: var(--awd-accent); }

.roadmap-scope .privacy-note { margin-top: 22px; padding: 14px 16px; background: var(--awd-paper-soft); border-radius: var(--awd-radius-md); font-size: 13.5px; color: #4a4a4d; line-height: 1.45; }

.roadmap-scope .step-actions { display: flex; align-items: center; justify-content: space-between; margin-top: 30px; gap: 12px; }
/* In-card form buttons are btn-base: text-[0.9375rem] px-6 py-3 */
.roadmap-scope .assess-card .btn { font-size: 0.9375rem; padding: 0.75rem 1.5rem; }
.roadmap-scope .btn-back { background: rgba(0,0,0,0.05); color: rgba(0,0,0,0.6); }
.roadmap-scope .btn-back:hover { background: rgba(0,0,0,0.09); color: var(--awd-ink); }
.roadmap-scope .btn-back[hidden] { visibility: hidden; }
.roadmap-scope .assess-foot { text-align: center; margin-top: 18px; font-size: 13px; color: var(--awd-muted); }

/* Instant result */
.roadmap-scope .result { display: none; }
.roadmap-scope .result.active { display: block; animation: fadeIn 400ms cubic-bezier(0.16,1,0.3,1); }
.roadmap-scope .result .res-badge { display: block; font-weight: 700; font-size: 12px; letter-spacing: 0.25em; text-transform: uppercase; color: var(--awd-accent); margin-bottom: 18px; }
.roadmap-scope .result h3 { font-size: 1.875rem; font-weight: 700; letter-spacing: -0.025em; color: var(--awd-ink); line-height: 1.1; }
@media (min-width: 1024px) { .roadmap-scope .result h3 { font-size: 2.25rem; } }
.roadmap-scope .result .res-lede { color: rgba(0,0,0,0.7); font-size: 1rem; line-height: 1.625; margin-top: 14px; }
.roadmap-scope .res-priority { margin-top: 24px; border: 1px solid var(--awd-rule-ink); border-radius: var(--awd-radius-md); padding: 20px 22px; background: var(--awd-paper-soft); }
.roadmap-scope .res-priority .mono { color: var(--awd-accent); display: block; margin-bottom: 8px; }
.roadmap-scope .res-priority p { color: var(--awd-ink); font-size: 16px; font-weight: 500; }
.roadmap-scope .res-covers { margin-top: 20px; }
.roadmap-scope .res-covers .mono { color: var(--awd-ink-soft); display: block; margin-bottom: 12px; }
.roadmap-scope .res-covers ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.roadmap-scope .res-covers li { display: flex; gap: 10px; align-items: center; font-size: 0.875rem; color: var(--awd-ink); }
.roadmap-scope .res-covers li .tick { color: var(--awd-accent); font-weight: 700; }
.roadmap-scope .res-email { margin-top: 24px; padding: 16px; border-radius: var(--awd-radius-md); background: var(--awd-accent-light); font-size: 14.5px; color: var(--awd-ink); }
.roadmap-scope .res-book { margin-top: 26px; text-align: center; }
.roadmap-scope .res-book h4 { font-family: var(--awd-f-display); font-weight: 600; font-size: 1.25rem; line-height: 1.375; color: var(--awd-ink); }
.roadmap-scope .res-book p { color: rgba(0,0,0,0.55); font-size: 0.875rem; line-height: 1.625; margin-top: 8px; }
.roadmap-scope .res-book .booking-embed { margin-top: 18px; border: 1px dashed var(--awd-rule-ink); border-radius: var(--awd-radius-md); padding: 28px; color: var(--awd-muted); font-size: 12px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; }

.roadmap-scope .section-final { background: var(--awd-accent); color: #fff; text-align: center; }
/* Final CTA h2 mirrors text-[clamp(2.8rem,7.5vw,7.5rem)] leading-[0.92] tracking-tight */
.roadmap-scope .section-final h2 { font-weight: 700; letter-spacing: -0.025em; font-size: clamp(2.8rem, 7.5vw, 7.5rem); line-height: 0.92; max-width: 18ch; margin: 0 auto; }
.roadmap-scope .section-final p { margin: 18px auto 0; max-width: 36rem; font-size: 1rem; line-height: 1.625; color: rgba(255,255,255,0.92); }
.roadmap-scope .section-final .btn { margin-top: 30px; background: var(--awd-ink); color: #fff; }
.roadmap-scope .section-final .btn:hover { background: var(--awd-ink-deep); }
.roadmap-scope .section-final .microcopy { font-size: 0.75rem; color: rgba(255,255,255,0.6); margin-top: 16px; }

/* FAQ */
.roadmap-scope .section-faq { background: var(--awd-ink); }
.roadmap-scope .section-faq .section-head { margin-left: auto; margin-right: auto; text-align: center; }
.roadmap-scope .faq-list { max-width: 760px; margin: 0 auto; }
.roadmap-scope .faq-item { border-bottom: 1px solid var(--awd-rule); }
.roadmap-scope .faq-item summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 24px 0; font-family: var(--awd-f-display); font-weight: 600; font-size: 1.125rem; line-height: 1.375; color: var(--awd-paper); }
@media (min-width: 1024px) { .roadmap-scope .faq-item summary { font-size: 1.25rem; } }
.roadmap-scope .faq-item summary::-webkit-details-marker { display: none; }
.roadmap-scope .faq-item summary .pm { flex: 0 0 auto; width: 22px; height: 22px; position: relative; }
.roadmap-scope .faq-item summary .pm::before, .roadmap-scope .faq-item summary .pm::after { content: ""; position: absolute; background: var(--awd-accent); border-radius: 2px; transition: transform 200ms; }
.roadmap-scope .faq-item summary .pm::before { top: 10px; left: 0; width: 22px; height: 2px; }
.roadmap-scope .faq-item summary .pm::after { top: 0; left: 10px; width: 2px; height: 22px; }
.roadmap-scope .faq-item[open] summary .pm::after { transform: scaleY(0); }
.roadmap-scope .faq-item p { color: rgba(255,255,255,0.6); font-size: 0.875rem; line-height: 1.625; padding-bottom: 24px; max-width: 68ch; }
.roadmap-scope .faq-item[open] p { animation: faqFade 320ms cubic-bezier(0.25,0.1,0.25,1) both; }
@keyframes faqFade { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }

body.roadmap-page .site-footer { background: var(--awd-ink-deep); border-top: 1px solid var(--awd-rule); padding: 48px 0; }
body.roadmap-page .site-footer .wrap { display: flex; flex-wrap: wrap; gap: 20px; align-items: center; justify-content: space-between; }
body.roadmap-page .site-footer p { color: var(--awd-muted); font-size: 13.5px; }
body.roadmap-page .site-footer a { color: rgba(255,255,255,0.6); text-decoration: none; font-size: 13.5px; }
body.roadmap-page .site-footer a:hover { color: #fff; text-decoration: underline; }
body.roadmap-page .footer-links { display: flex; gap: 22px; flex-wrap: wrap; }

/* Sticky mobile CTA (chrome) */
body.roadmap-page .sticky-cta { position: fixed; left: 0; right: 0; bottom: 0; z-index: 200; display: none; padding: 12px var(--awd-gutter); background: rgba(0,0,0,0.9); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); border-top: 1px solid var(--awd-rule); }
body.roadmap-page .sticky-cta a { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 50px; background: var(--awd-accent); color: #fff; font-family: var(--awd-f-body); font-weight: 500; font-size: 16px; text-decoration: none; border-radius: 999px; }
body.roadmap-page .sticky-cta a:hover { background: var(--awd-accent-dark); }
@media (max-width: 768px) { body.roadmap-page .sticky-cta.show { display: block; } body.roadmap-page { padding-bottom: 74px; } }

/* Cookie consent (chrome) */
body.roadmap-page .consent { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 500; max-width: 540px; margin: 0 auto; background: var(--awd-ink-soft); border: 1px solid var(--awd-rule-strong); border-radius: var(--awd-radius-lg); padding: 22px; box-shadow: 0 10px 40px rgba(0,0,0,0.4); }
body.roadmap-page .consent[hidden] { display: none; }
body.roadmap-page .consent h2 { font-family: var(--awd-f-display); font-weight: 700; font-size: 17px; letter-spacing: -0.01em; }
body.roadmap-page .consent p { color: rgba(255,255,255,0.65); font-size: 13.5px; line-height: 1.5; margin-top: 8px; }
body.roadmap-page .consent p a { color: #fff; text-decoration: underline; }
body.roadmap-page .consent-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
body.roadmap-page .consent .btn { padding: 0.625rem 1.25rem; font-size: 0.875rem; }
body.roadmap-page .consent .btn-decline { background: rgba(255,255,255,0.08); color: var(--awd-paper); }
body.roadmap-page .consent .btn-decline:hover { background: rgba(255,255,255,0.13); }
@media (max-width: 768px) { body.roadmap-page .consent { bottom: 84px; } }

:is(.roadmap-scope, body.roadmap-page) .visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
@media (max-width: 1024px) { .roadmap-scope .problem-grid, .roadmap-scope .how-grid, .roadmap-scope .stat-row { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 768px) { .roadmap-scope .problem-grid, .roadmap-scope .get-grid, .roadmap-scope .how-grid, .roadmap-scope .stat-row, .roadmap-scope .quote-grid { grid-template-columns: 1fr; } }

/* ============================================================
   Gravity Forms — the rendered multi-page assessment.
   The choice fields are re-rendered as .opt icon cards by the
   gform_field_content filter (functions.php), so the .opt / .options
   rules above are reused. These rules restyle GF's own wrappers
   (form, inputs, buttons, progress bar) to match. !important is used
   where GF's theme-framework CSS loads after this file and would
   otherwise win (see project note on GF ungated rules).
   ============================================================ */
.roadmap-scope .section-assess .gform_wrapper { margin: 0; }
.roadmap-scope .section-assess .gform_wrapper form { margin: 0; }
.roadmap-scope .section-assess .gform_wrapper .gform_fields { display: block; grid-template-columns: none; }
.roadmap-scope .section-assess .gform_wrapper .gfield { margin: 20px 0 0; padding: 0; }
.roadmap-scope .section-assess .gform_wrapper .gform_page_fields > .gform_fields > .gfield:first-child { margin-top: 0; }
.roadmap-scope .section-assess .gform_wrapper fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.roadmap-scope .section-assess .gform_wrapper .gfield_radio,
.roadmap-scope .section-assess .gform_wrapper .gfield_checkbox { display: block !important; margin: 0 !important; padding: 0 !important; border: 0 !important; }
.roadmap-scope .section-assess .gform_wrapper .ginput_container { margin-top: 0; }
.roadmap-scope .section-assess .gform_wrapper .ginput_container.ginput_container_radio,
.roadmap-scope .section-assess .gform_wrapper .ginput_container.ginput_container_checkbox { margin-top: 24px; }

/* Question heading + help (was scoped to .step, which no longer exists). */
.roadmap-scope .section-assess .gform_wrapper .q { font-family: var(--awd-f-display); font-weight: 600; font-size: 1.25rem; color: var(--awd-ink); line-height: 1.375; border: 0; padding: 0; }
@media (min-width: 1024px) { .roadmap-scope .section-assess .gform_wrapper .q { font-size: 1.5rem; } }
.roadmap-scope .section-assess .gform_wrapper .q-help { color: rgba(0,0,0,0.55); font-size: 0.875rem; line-height: 1.625; margin: 8px 0 0; }

/* Icon-card options — re-declared with higher specificity + !important so GF's
   own label/choice CSS (loaded after this file) doesn't flatten them. */
.roadmap-scope .section-assess .gform_wrapper .options { display: grid !important; gap: 12px; margin-top: 24px; }
.roadmap-scope .section-assess .gform_wrapper .opt { display: flex !important; align-items: center; gap: 14px; width: 100%; border: 1px solid var(--awd-rule-ink) !important; border-radius: var(--awd-radius-md); padding: 14px 16px; cursor: pointer; min-height: 60px; background: var(--awd-paper); position: relative; margin: 0; }
.roadmap-scope .section-assess .gform_wrapper .opt:hover { border-color: #c9c9cc !important; background: var(--awd-paper-soft); }
.roadmap-scope .section-assess .gform_wrapper .opt .ico { width: 40px; height: 40px; flex: 0 0 40px; border-radius: var(--awd-radius-sm); background: var(--awd-paper-soft); display: flex; align-items: center; justify-content: center; color: var(--awd-ink); }
.roadmap-scope .section-assess .gform_wrapper .opt .ico svg { width: 21px; height: 21px; }
.roadmap-scope .section-assess .gform_wrapper .opt .opt-label { font-size: 16px; color: var(--awd-ink); font-weight: 500; flex: 1; }
.roadmap-scope .section-assess .gform_wrapper .opt .box { width: 22px; height: 22px; flex: 0 0 22px; border: 2px solid #c2c2c6; border-radius: 50%; position: relative; transition: border-color 200ms; }
.roadmap-scope .section-assess .gform_wrapper .opt .box::after { content: ""; position: absolute; inset: 4px; border-radius: inherit; background: var(--awd-accent); transform: scale(0); transition: transform 200ms cubic-bezier(0.16,1,0.3,1); }
.roadmap-scope .section-assess .gform_wrapper .opt input:checked ~ .box { border-color: var(--awd-accent); }
.roadmap-scope .section-assess .gform_wrapper .opt input:checked ~ .box::after { transform: scale(1); }
.roadmap-scope .section-assess .gform_wrapper .opt:has(input:checked) { border-color: var(--awd-accent) !important; background: var(--awd-accent-light); }
.roadmap-scope .section-assess .gform_wrapper .opt:has(input:checked) .ico { background: var(--awd-accent); color: #fff; }

/* Native radio/checkbox inputs are visually hidden — the .box renders state. */
.roadmap-scope .section-assess .gform_wrapper .opt input { position: absolute !important; opacity: 0 !important; width: 1px !important; height: 1px !important; margin: 0 !important; }

/* Contact text fields */
.roadmap-scope .section-assess .gform_wrapper .gfield_label { font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: rgba(0,0,0,0.55); display: block; margin-bottom: 8px; }
.roadmap-scope .section-assess .gform_wrapper .gfield_required { display: none; }
.roadmap-scope .section-assess .gform_wrapper input[type="text"],
.roadmap-scope .section-assess .gform_wrapper input[type="email"],
.roadmap-scope .section-assess .gform_wrapper input[type="tel"],
.roadmap-scope .section-assess .gform_wrapper input[type="url"] { width: 100%; min-height: 52px; padding: 0 16px; font-family: var(--awd-f-body); font-size: 16px; border: 1px solid var(--awd-rule-ink) !important; border-radius: var(--awd-radius-md); color: var(--awd-ink); background: var(--awd-paper); box-shadow: none !important; }
.roadmap-scope .section-assess .gform_wrapper input[type="text"]::placeholder,
.roadmap-scope .section-assess .gform_wrapper input[type="email"]::placeholder,
.roadmap-scope .section-assess .gform_wrapper input[type="tel"]::placeholder,
.roadmap-scope .section-assess .gform_wrapper input[type="url"]::placeholder { color: rgba(0,0,0,0.55); opacity: 1; }
.roadmap-scope .section-assess .gform_wrapper input[type="text"]:focus,
.roadmap-scope .section-assess .gform_wrapper input[type="email"]:focus,
.roadmap-scope .section-assess .gform_wrapper input[type="tel"]:focus,
.roadmap-scope .section-assess .gform_wrapper input[type="url"]:focus { outline: 2px solid var(--awd-accent); outline-offset: 0; border-color: var(--awd-accent) !important; }

/* Validation */
.roadmap-scope .section-assess .gform_wrapper .gform_validation_errors { display: none; }
.roadmap-scope .section-assess .gform_wrapper .gfield_error input { border-color: var(--awd-accent) !important; }
.roadmap-scope .section-assess .gform_wrapper .gfield_validation_message,
.roadmap-scope .section-assess .gform_wrapper .validation_message { color: var(--awd-accent); font-size: 13px; margin-top: 6px; padding: 0; background: none; border: 0; }

/* Page footer / buttons — mirror .step-actions. position:relative so the AJAX
   spinner can be absolutely positioned within it (see below). */
.roadmap-scope .section-assess .gform_wrapper .gform_page_footer,
.roadmap-scope .section-assess .gform_wrapper .gform_footer { position: relative; display: flex; align-items: center; justify-content: flex-start; gap: 12px; margin: 30px 0 0; padding: 0; border: 0; }

/* Next / Submit → brand-red pill. GF orbital theme loads after this file and
   out-specifies plain .btn, so force the look with !important. */
.roadmap-scope .section-assess .gform_wrapper .gform_next_button.btn,
.roadmap-scope .section-assess .gform_wrapper .gform_submit_button.btn,
.roadmap-scope .section-assess .gform_wrapper .gform_page_footer button.btn-primary,
.roadmap-scope .section-assess .gform_wrapper .gform_footer button.btn-primary {
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	gap: 8px;
	background: var(--awd-accent) !important;
	color: #fff !important;
	border: 0 !important;
	border-radius: 999px !important;
	padding: 14px 24px !important;
	font-family: var(--awd-f-body);
	font-weight: 500;
	font-size: 15px !important;
	line-height: 1;
	cursor: pointer;
}
.roadmap-scope .section-assess .gform_wrapper .gform_next_button.btn:hover,
.roadmap-scope .section-assess .gform_wrapper .gform_submit_button.btn:hover,
.roadmap-scope .section-assess .gform_wrapper .gform_page_footer button.btn-primary:hover,
.roadmap-scope .section-assess .gform_wrapper .gform_footer button.btn-primary:hover { background: var(--awd-accent-dark) !important; }

/* Back → light-grey ghost pill (mirrors static .btn-back). */
.roadmap-scope .section-assess .gform_wrapper .gform_previous_button.btn,
.roadmap-scope .section-assess .gform_wrapper .gform_previous_button.btn-back {
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	gap: 8px;
	background: rgba(0, 0, 0, 0.05) !important;
	color: rgba(0, 0, 0, 0.6) !important;
	border: 0 !important;
	border-radius: 999px !important;
	padding: 14px 24px !important;
	font-family: var(--awd-f-body);
	font-weight: 500;
	font-size: 15px !important;
	line-height: 1;
	cursor: pointer;
}
.roadmap-scope .section-assess .gform_wrapper .gform_previous_button.btn:hover,
.roadmap-scope .section-assess .gform_wrapper .gform_previous_button.btn-back:hover { background: rgba(0, 0, 0, 0.09) !important; }

/* Next/Submit hug the right; Back (when present) stays left. */
.roadmap-scope .section-assess .gform_wrapper .gform_next_button.btn,
.roadmap-scope .section-assess .gform_wrapper .gform_submit_button.btn,
.roadmap-scope .section-assess .gform_wrapper .gform_page_footer button.btn-primary,
.roadmap-scope .section-assess .gform_wrapper .gform_footer button.btn-primary { margin-left: auto !important; }

/* The AJAX spinner is injected after the submit button on submit. Pull it out of
   the flex flow (absolute) so it never becomes a second flex item — otherwise the
   free space gets split between it and the button's margin-left:auto, dropping the
   button to the centre. Centred in the footer's empty middle zone (Back sits left,
   Submit stays pinned right) so it never overlaps either button. */
.roadmap-scope .section-assess .gform_wrapper .gform_ajax_spinner {
	position: absolute;
	left: 50%;
	top: 50%;
	transform: translate(-50%, -50%);
	margin: 0 !important;
}

/* Progress bar → thin red track. Title rewritten (see gform_progress_bar filter)
   into the static's two-column meta row: "Question N of M" left, "~3 min" right. */
.roadmap-scope .section-assess .gform_wrapper .gf_progressbar_wrapper { padding: 0; margin: 0 0 28px; }
.roadmap-scope .section-assess .gform_wrapper .gf_progressbar_title { display: flex; align-items: center; justify-content: space-between; font-family: var(--awd-f-body); font-weight: 700; text-transform: uppercase; letter-spacing: 0.12em; font-size: 12px; color: var(--awd-ink-soft); margin: 0 0 10px; }
.roadmap-scope .section-assess .gform_wrapper .gf_progressbar { height: 6px; background: var(--awd-paper-soft); border-radius: 999px; overflow: hidden; padding: 0; box-shadow: none; }
.roadmap-scope .section-assess .gform_wrapper .gf_progressbar_percentage { height: 6px; background: var(--awd-accent) !important; border-radius: 999px; transition: width 400ms cubic-bezier(0.16,1,0.3,1); }
.roadmap-scope .section-assess .gform_wrapper .gf_progressbar_percentage span { display: none; }

/* The confirmation panel (.result) is injected in place of the form on submit. */
.roadmap-scope .section-assess .gform_confirmation_wrapper .result,
.roadmap-scope .section-assess .result { display: block; }
