/* =========================================================================
   Canadian Money Help — Beautiful Refresh Layer
   Loaded last. Modernizes typography, color, depth, and interaction
   without breaking the existing layout grid.
   ========================================================================= */

:root {
  /* Refined trust palette — deeper navy, warmer paper, richer amber */
  --navy-900: #0B2540;
  --navy-800: #102E4F;
  --navy-700: #1A3D62;
  --navy-500: #34669B;
  --navy-300: #92AECB;
  --navy-100: #E1E9F2;

  --paper:    #FBFAF6;
  --paper-2:  #F4F1EA;
  --paper-3:  #ECE7DB;

  --ink-900:  #0E1726;
  --ink-700:  #2E3A52;
  --ink-500:  #5C6B85;
  --ink-300:  #95A1B7;
  --hairline: #E4DFD2;

  --amber-600: #A6750A;
  --amber-500: #C99731;
  --amber-300: #ECC97D;
  --amber-100: #F8EBC7;

  --emerald-700: #1E5C4B;
  --emerald-500: #2F7B65;
  --emerald-300: #76B68F;

  --mist:     #EBF0F7;
  --mist-2:   #DDE5F0;

  --bg-elev:  #FFFFFF;
  --link:     var(--navy-700);

  /* Softer, more diffused shadows */
  --shadow-xs: 0 1px 0 rgba(11, 37, 64, 0.04);
  --shadow-sm: 0 1px 2px rgba(11, 37, 64, 0.06), 0 1px 3px rgba(11, 37, 64, 0.04);
  --shadow-md: 0 4px 12px -2px rgba(11, 37, 64, 0.08), 0 2px 4px -1px rgba(11, 37, 64, 0.04);
  --shadow-lg: 0 18px 40px -16px rgba(11, 37, 64, 0.22), 0 8px 16px -8px rgba(11, 37, 64, 0.08);
  --shadow-xl: 0 28px 56px -20px rgba(11, 37, 64, 0.28), 0 12px 24px -10px rgba(11, 37, 64, 0.10);

  /* Slightly faster, snappier motion */
  --ease: cubic-bezier(0.32, 0.72, 0, 1);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --dur-1: 140ms;
  --dur-2: 220ms;
  --dur-3: 360ms;

  /* Larger container for breathing room on wide screens */
  --cw-max: 1200px;
}

html {
  scroll-behavior: smooth;
  text-size-adjust: 100%;
  -webkit-text-size-adjust: 100%;
}

body {
  font-feature-settings: "ss01", "cv11", "kern";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background: var(--paper);
  color: var(--ink-900);
}

::selection {
  background: var(--amber-100);
  color: var(--ink-900);
}

a { transition: color var(--dur-1) var(--ease); }

/* Focus ring — accessible + on-brand */
*:focus-visible {
  outline: 2px solid var(--navy-500);
  outline-offset: 3px;
  border-radius: 4px;
}

/* =========================================================================
   Container
   ========================================================================= */
.cw-container {
  max-width: var(--cw-max);
  padding-left: clamp(1rem, 4vw, 2rem);
  padding-right: clamp(1rem, 4vw, 2rem);
}

/* =========================================================================
   Header — refreshed sticky nav with subtle blur
   ========================================================================= */
.cw-site-header {
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid rgba(11, 37, 64, 0.08);
  box-shadow: 0 1px 0 rgba(11, 37, 64, 0.02);
  transition: box-shadow var(--dur-2) var(--ease), background var(--dur-2) var(--ease);
}

.cw-site-header__inner {
  min-height: 76px;
  gap: 2rem;
}

.cw-logo {
  align-items: center;
  gap: 0.6rem;
  font-weight: 700;
  font-family: var(--font-display);
  font-size: 1.18rem;
  letter-spacing: -0.015em;
  color: var(--ink-900);
}

.cw-logo:hover { color: var(--navy-700); }

.cw-logo__mark {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
}

.cw-logo__mark svg {
  width: 36px;
  height: 36px;
  display: block;
}

.cw-logo__mark svg rect {
  fill: var(--navy-900);
  stroke: none;
}

.cw-logo__mark svg path,
.cw-logo__mark svg circle {
  fill: none;
  stroke: var(--amber-300);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.cw-logo__mark svg circle {
  fill: var(--amber-500);
  stroke: var(--amber-500);
}

.cw-logo__word { font-family: var(--font-display); }

.cw-logo__dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-left: 2px;
  border-radius: 999px;
  background: var(--amber-500);
  vertical-align: 2px;
}

/* Nav links — clean underline-on-hover */
.cw-primary-nav__list { gap: 1.6rem; align-items: center; }

.cw-primary-nav__list a {
  position: relative;
  color: var(--ink-700);
  font-size: 0.95rem;
  font-weight: 500;
  padding: 0.4rem 0;
  border-bottom: 0;
  letter-spacing: -0.005em;
}

.cw-primary-nav__list a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 2px;
  background: var(--amber-500);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--dur-2) var(--ease-out);
}

.cw-primary-nav__list a:hover {
  color: var(--ink-900);
  border-bottom: 0;
}

.cw-primary-nav__list a:hover::after {
  transform: scaleX(1);
}

.cw-primary-nav__lang a {
  display: inline-grid;
  place-items: center;
  min-width: 36px;
  height: 28px;
  padding: 0 0.6rem !important;
  border: 1px solid var(--hairline);
  border-radius: 999px;
  font-size: 0.8rem !important;
  font-weight: 700 !important;
  color: var(--navy-700) !important;
}

.cw-primary-nav__lang a::after { display: none; }

.cw-primary-nav__lang a:hover {
  background: var(--navy-900);
  color: #fff !important;
  border-color: var(--navy-900);
}

/* Search — pill input with focus glow */
.cw-search__input {
  height: 40px;
  min-width: 240px;
  padding: 0 0.9rem 0 2.4rem;
  border: 1px solid var(--hairline);
  background: var(--paper);
  font-size: 0.92rem;
  color: var(--ink-900);
  transition: border-color var(--dur-1) var(--ease), background var(--dur-1) var(--ease), box-shadow var(--dur-1) var(--ease), width var(--dur-2) var(--ease);
}

.cw-search__input::placeholder { color: var(--ink-500); }

.cw-search__input:focus {
  border-color: var(--navy-500);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(52, 102, 155, 0.12);
}

.cw-search__icon { left: 0.85rem; color: var(--ink-500); }

/* =========================================================================
   Hero — softer gradient, bigger type, calmer side panel
   ========================================================================= */
.cw-funnel-hero {
  position: relative;
  background:
    radial-gradient(1200px 500px at 12% 0%, rgba(201, 151, 49, 0.10), transparent 60%),
    radial-gradient(900px 480px at 95% 8%, rgba(52, 102, 155, 0.14), transparent 65%),
    linear-gradient(180deg, #FBFAF6 0%, #F4F1EA 100%);
  padding: clamp(56px, 8vw, 96px) 0 clamp(64px, 9vw, 104px);
  overflow: hidden;
}

.cw-funnel-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(11, 37, 64, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(11, 37, 64, 0.025) 1px, transparent 1px);
  background-size: 48px 48px;
  background-position: -1px -1px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, #000 35%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, #000 35%, transparent 75%);
  pointer-events: none;
}

.cw-funnel-hero__grid {
  position: relative;
  gap: clamp(32px, 5vw, 64px);
}

.cw-hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(11, 37, 64, 0.10);
  color: var(--navy-700);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  box-shadow: var(--shadow-xs);
}

.cw-hero__eyebrow::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--emerald-500);
  box-shadow: 0 0 0 3px rgba(47, 123, 101, 0.18);
}

.cw-funnel-hero__title {
  font-size: clamp(40px, 6vw, 80px) !important;
  line-height: 0.98 !important;
  letter-spacing: -0.025em !important;
  font-weight: 500;
  color: var(--ink-900);
}

.cw-funnel-hero__lede {
  font-size: clamp(17px, 1.4vw, 20px) !important;
  line-height: 1.6 !important;
  color: var(--ink-700);
}

/* Hero answer strip — premium chiclets */
.cw-hero-answer-strip {
  margin-top: clamp(28px, 4vw, 40px);
  gap: 12px;
}

.cw-hero-answer-strip__item {
  position: relative;
  min-height: 108px;
  padding: 16px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(11, 37, 64, 0.08);
  border-top-width: 4px;
  box-shadow: 0 1px 2px rgba(11, 37, 64, 0.04), 0 6px 16px -8px rgba(11, 37, 64, 0.10);
  overflow: hidden;
  transition: transform var(--dur-2) var(--ease-out), box-shadow var(--dur-2) var(--ease-out), border-color var(--dur-1) var(--ease);
}

.cw-hero-answer-strip__item::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 0;
  background: linear-gradient(180deg, transparent, rgba(11, 37, 64, 0.04));
  transition: height var(--dur-2) var(--ease-out);
}

.cw-hero-answer-strip__item:hover,
.cw-hero-answer-strip__item:focus-visible {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(11, 37, 64, 0.14);
}

.cw-hero-answer-strip__item:hover::after { height: 60%; }

.cw-hero-answer-strip__item span {
  font-size: 10px;
  letter-spacing: 0.1em;
  color: var(--navy-700);
}

.cw-hero-answer-strip__item strong {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.01em;
  position: relative;
  z-index: 1;
}

/* Map card — depth + glow */
.cw-funnel-map {
  padding: 26px;
  border-radius: 16px;
  border: 1px solid rgba(11, 37, 64, 0.08);
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.96), rgba(244, 241, 234, 0.92));
  box-shadow: var(--shadow-xl);
}

.cw-funnel-map::before {
  height: 4px;
  background: linear-gradient(90deg, var(--amber-500) 0%, var(--emerald-500) 50%, var(--navy-500) 100%);
}

.cw-funnel-map__route {
  border-radius: 12px;
  padding: 14px;
  background: #fff;
  transition: transform var(--dur-1) var(--ease), box-shadow var(--dur-1) var(--ease);
}

.cw-funnel-map__route:hover {
  transform: translateX(2px);
  box-shadow: var(--shadow-sm);
}

.cw-funnel-map__route i {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--paper-2), var(--paper));
  border: 1px solid var(--hairline);
}

.cw-funnel-map__calculator {
  border-radius: 14px;
  padding: 18px;
  background: linear-gradient(135deg, var(--navy-900), var(--navy-700));
  position: relative;
  overflow: hidden;
}

.cw-funnel-map__calculator::before {
  content: "";
  position: absolute;
  top: -40px;
  right: -40px;
  width: 160px;
  height: 160px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(236, 201, 125, 0.18), transparent 70%);
}

.cw-funnel-map__meter span {
  background: linear-gradient(90deg, var(--amber-500), var(--emerald-300));
  box-shadow: 0 0 12px rgba(236, 201, 125, 0.35);
}

/* Finder form — premium feel */
.cw-funnel-finder {
  padding: 28px;
  border-radius: 16px;
  border: 1px solid rgba(11, 37, 64, 0.08);
  background: #fff;
  box-shadow: var(--shadow-xl);
}

.cw-funnel-finder::before {
  height: 4px;
  border-radius: 16px 16px 0 0;
  background: linear-gradient(90deg, var(--amber-500) 0%, var(--emerald-500) 50%, var(--navy-500) 100%);
}

.cw-funnel-finder label {
  font-family: var(--font-display);
  font-size: 17px;
  letter-spacing: -0.015em;
  color: var(--ink-900);
}

.cw-funnel-finder input {
  height: 56px;
  padding: 0 18px;
  border-radius: 12px;
  border: 1.5px solid var(--hairline);
  font-size: 15px;
  transition: border-color var(--dur-1) var(--ease), box-shadow var(--dur-1) var(--ease);
}

.cw-funnel-finder input:focus {
  outline: none;
  border-color: var(--navy-500);
  box-shadow: 0 0 0 4px rgba(52, 102, 155, 0.12);
}

.cw-funnel-finder__row button {
  padding: 0 22px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--navy-900), var(--navy-700));
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.005em;
  box-shadow: 0 4px 12px -2px rgba(11, 37, 64, 0.30);
  transition: transform var(--dur-1) var(--ease), box-shadow var(--dur-1) var(--ease);
}

.cw-funnel-finder__row button:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 20px -4px rgba(11, 37, 64, 0.40);
}

.cw-funnel-finder__prompts button {
  padding: 8px 14px;
  border: 1px solid var(--hairline);
  border-radius: 999px;
  background: var(--paper);
  font-size: 13px;
  color: var(--ink-700);
  font-weight: 500;
  cursor: pointer;
  transition: all var(--dur-1) var(--ease);
}

.cw-funnel-finder__prompts button:hover {
  background: var(--navy-900);
  color: #fff;
  border-color: var(--navy-900);
  transform: translateY(-1px);
}

/* =========================================================================
   Trust strip
   ========================================================================= */
.cw-trust-strip {
  background: #fff;
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
  padding: 18px 0;
}

.cw-trust-strip__inner {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 28px;
  justify-content: center;
}

.cw-trust-strip__label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-500);
  position: relative;
  padding-right: 8px;
}

.cw-trust-strip__item {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-700);
  letter-spacing: -0.005em;
  position: relative;
  padding-left: 28px;
}

.cw-trust-strip__item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  border-radius: 999px;
  background:
    radial-gradient(circle at 35% 35%, var(--amber-300), var(--amber-500));
  box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.08);
}

/* =========================================================================
   Sections — typography, eyebrow, dek
   ========================================================================= */
.cw-funnel-section,
.cw-funnel-tools,
.cw-answer-lab {
  padding: clamp(64px, 9vw, 100px) 0;
}

.cw-section-head__eyebrow,
.cw-funnel-section__head .cw-section-head__eyebrow {
  display: inline-block;
  margin-bottom: 14px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--navy-700);
  position: relative;
  padding-left: 28px;
}

.cw-section-head__eyebrow::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 20px;
  height: 1px;
  background: var(--navy-700);
}

.cw-funnel-section__head .cw-section-head__title,
.cw-section-head__title {
  font-size: clamp(30px, 4.2vw, 52px) !important;
  line-height: 1.04 !important;
  letter-spacing: -0.025em !important;
  font-weight: 500;
  color: var(--ink-900);
}

.cw-funnel-section__dek {
  max-width: 620px;
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink-700);
}

/* =========================================================================
   Cards — answer cards, path cards, question cards, tool cards
   ========================================================================= */
.cw-answer-card {
  padding: 22px;
  border-radius: 14px;
  border: 1px solid var(--hairline);
  border-left-width: 4px;
  background: #fff;
  box-shadow: var(--shadow-xs);
  min-height: 116px;
  transition: transform var(--dur-2) var(--ease-out), box-shadow var(--dur-2) var(--ease-out), border-color var(--dur-1) var(--ease);
}

.cw-answer-card:hover,
.cw-answer-card:focus-visible {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(11, 37, 64, 0.14);
}

.cw-answer-card__icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--paper-2), var(--paper));
  border: 1px solid var(--hairline);
  color: var(--navy-700);
}

.cw-answer-card--amber .cw-answer-card__icon {
  background: linear-gradient(135deg, var(--amber-100), #fff7e0);
  border-color: var(--amber-300);
  color: var(--amber-600);
}

.cw-answer-card--green .cw-answer-card__icon {
  background: linear-gradient(135deg, #DFF0E6, #F1F9F4);
  border-color: var(--emerald-300);
  color: var(--emerald-700);
}

.cw-answer-card--navy .cw-answer-card__icon,
.cw-answer-card--blue .cw-answer-card__icon {
  background: linear-gradient(135deg, var(--navy-100), #F0F4FA);
  border-color: var(--navy-300);
  color: var(--navy-700);
}

.cw-answer-card strong {
  font-family: var(--font-display);
  font-size: 22px;
  letter-spacing: -0.02em;
  font-weight: 500;
}

.cw-answer-card__arrow {
  width: 32px;
  height: 32px;
  background: var(--paper-2);
  color: var(--navy-700);
  font-size: 16px;
  transition: background var(--dur-1) var(--ease), color var(--dur-1) var(--ease), transform var(--dur-1) var(--ease);
}

.cw-answer-card:hover .cw-answer-card__arrow {
  background: var(--navy-900);
  color: #fff;
  transform: translateX(3px);
}

/* Path cards */
.cw-funnel-card-grid,
.cw-funnel-question-grid {
  gap: 18px;
}

.cw-funnel-card,
.cw-funnel-question-grid a {
  padding: 26px;
  border-radius: 14px;
  border: 1px solid var(--hairline);
  background: #fff;
  box-shadow: var(--shadow-xs);
  transition: transform var(--dur-2) var(--ease-out), box-shadow var(--dur-2) var(--ease-out), border-color var(--dur-1) var(--ease);
}

.cw-funnel-card:hover,
.cw-funnel-card:focus-visible,
.cw-funnel-question-grid a:hover,
.cw-funnel-question-grid a:focus-visible {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(11, 37, 64, 0.14);
}

.cw-funnel-card--priority {
  border-color: var(--amber-300);
  background: linear-gradient(180deg, #FFF9EC 0%, #fff 60%);
  box-shadow: 0 1px 0 rgba(166, 117, 10, 0.12), var(--shadow-md);
}

.cw-funnel-card--priority::before {
  content: "Most asked";
  position: absolute;
  top: 14px;
  right: 14px;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--amber-500);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.cw-funnel-card { position: relative; }

.cw-funnel-card__icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--paper-2), var(--paper));
  border: 1px solid var(--hairline);
  color: var(--navy-700);
}

.cw-funnel-card--priority .cw-funnel-card__icon {
  background: linear-gradient(135deg, var(--amber-100), #fff7e0);
  border-color: var(--amber-300);
  color: var(--amber-600);
}

.cw-funnel-card__title {
  font-family: var(--font-display);
  font-size: 22px;
  letter-spacing: -0.02em;
  font-weight: 500;
  line-height: 1.2;
}

.cw-funnel-card__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 14px;
  font-weight: 600;
  color: var(--navy-700);
}

.cw-funnel-card__cta::after {
  content: "→";
  transition: transform var(--dur-1) var(--ease);
}

.cw-funnel-card:hover .cw-funnel-card__cta::after { transform: translateX(4px); }

/* Tool list */
.cw-funnel-tool-list a {
  padding: 22px;
  border-radius: 14px;
  border: 1px solid var(--hairline);
  background: #fff;
  box-shadow: var(--shadow-xs);
}

.cw-funnel-tool-list a:hover,
.cw-funnel-tool-list a:focus-visible {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(11, 37, 64, 0.14);
}

.cw-funnel-tool-list span {
  display: inline-block;
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--navy-100);
  color: var(--navy-700);
  font-size: 10px;
  letter-spacing: 0.08em;
  width: fit-content;
}

.cw-funnel-tool-list strong {
  font-family: var(--font-display);
  font-size: 19px;
  letter-spacing: -0.015em;
  font-weight: 500;
}

/* Question grid */
.cw-funnel-question-grid a {
  min-height: 168px;
}

.cw-funnel-question-grid span {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--paper-2);
  color: var(--navy-700);
  font-size: 10px;
  letter-spacing: 0.08em;
  width: fit-content;
  margin-bottom: 12px;
}

.cw-funnel-question-grid strong {
  font-family: var(--font-display);
  font-size: 20px;
  letter-spacing: -0.015em;
  font-weight: 500;
  line-height: 1.3;
  color: var(--ink-900);
}

/* Generic funnel card label chip */
.cw-funnel-card__label {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--navy-100);
  color: var(--navy-700);
  font-size: 10px;
  letter-spacing: 0.08em;
  width: fit-content;
}

.cw-funnel-card--priority .cw-funnel-card__label {
  background: var(--amber-100);
  color: var(--amber-600);
}

/* =========================================================================
   Answer lab background — softer
   ========================================================================= */
.cw-answer-lab {
  background:
    radial-gradient(800px 400px at 80% 20%, rgba(52, 102, 155, 0.06), transparent 60%),
    linear-gradient(180deg, var(--paper) 0%, var(--paper-2) 100%);
}

.cw-funnel-tools {
  background:
    linear-gradient(180deg, var(--paper-2) 0%, var(--paper) 100%);
}

/* =========================================================================
   Proof section — refresh
   ========================================================================= */
.cw-proof--funnel {
  padding: clamp(64px, 9vw, 96px) 0;
  background: linear-gradient(180deg, var(--paper) 0%, #fff 100%);
}

.cw-proof__grid {
  gap: clamp(32px, 5vw, 56px);
}

.cw-proof__card {
  padding: 24px;
  border-radius: 14px;
  border: 1px solid var(--hairline);
  background: #fff;
  box-shadow: var(--shadow-sm);
  transition: transform var(--dur-2) var(--ease-out), box-shadow var(--dur-2) var(--ease-out);
}

.cw-proof__card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.cw-proof__badge {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--navy-900), var(--navy-700));
  color: var(--amber-300);
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 14px;
}

.cw-proof__quote {
  margin: 0;
  font-family: var(--font-display) !important;
  font-size: 18px !important;
  line-height: 1.45;
  letter-spacing: -0.01em;
  color: var(--ink-900);
}

.cw-proof__copy {
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink-700);
}

.cw-proof__link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 1rem;
  color: var(--navy-700);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 2px solid var(--amber-500);
  padding-bottom: 2px;
  transition: color var(--dur-1) var(--ease);
}

.cw-proof__link:hover { color: var(--ink-900); }

/* =========================================================================
   Footer — richer dark with accent edge
   ========================================================================= */
.cw-site-footer {
  position: relative;
  background:
    radial-gradient(900px 400px at 90% 0%, rgba(52, 102, 155, 0.18), transparent 65%),
    linear-gradient(180deg, var(--navy-900) 0%, #08182B 100%);
  color: rgba(255, 255, 255, 0.78);
  padding: clamp(56px, 7vw, 88px) 0 32px;
  margin-top: 0;
}

.cw-site-footer::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: linear-gradient(90deg, var(--amber-500) 0%, var(--emerald-500) 50%, var(--navy-500) 100%);
}

.cw-footer__grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(5, 1fr);
  gap: 32px;
}

.cw-footer__brand-name {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  color: #fff;
  letter-spacing: -0.015em;
}

.cw-logo__mark--footer {
  width: 36px;
  height: 36px;
  display: inline-grid;
  place-items: center;
}

.cw-logo__mark--footer svg { width: 36px; height: 36px; }

.cw-logo__mark--footer svg rect {
  fill: rgba(255, 255, 255, 0.05);
  stroke: rgba(255, 255, 255, 0.18);
  stroke-width: 1;
}

.cw-logo__mark--footer svg path,
.cw-logo__mark--footer svg circle {
  fill: none;
  stroke: var(--amber-300);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.cw-logo__mark--footer svg circle {
  fill: var(--amber-500);
  stroke: var(--amber-500);
}

.cw-footer__brand-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--amber-500);
}

.cw-footer__tagline {
  margin-top: 1rem;
  font-size: 14px;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.62);
  max-width: 32ch;
}

.cw-footer__col-title {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.005em;
  color: #fff;
  margin-bottom: 14px;
  list-style: none;
  cursor: default;
}

.cw-footer__col-title::-webkit-details-marker { display: none; }

.cw-footer__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.cw-footer__list a {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.62);
  text-decoration: none;
  transition: color var(--dur-1) var(--ease);
  display: inline-block;
}

.cw-footer__list a:hover {
  color: var(--amber-300);
  text-decoration: none;
}

.cw-footer__list-meta {
  margin-top: 6px;
  padding-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 12px;
  color: rgba(255, 255, 255, 0.42);
  font-style: italic;
}

.cw-footer__lang {
  margin-top: 1.25rem;
  display: inline-flex;
  gap: 6px;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.04);
  font-size: 12px;
}

.cw-footer__lang a {
  color: rgba(255, 255, 255, 0.62);
  text-decoration: none;
  font-weight: 600;
  letter-spacing: 0.05em;
}

.cw-footer__lang--active { color: #fff !important; }

.cw-footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 56px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.10);
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
}

.cw-footer__copy { color: rgba(255, 255, 255, 0.55); }

.cw-footer__meta a { color: var(--amber-300); text-decoration: none; }

@media (max-width: 980px) {
  .cw-footer__grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }

  .cw-footer__brand { grid-column: 1 / -1; }
}

@media (max-width: 640px) {
  .cw-footer__grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .cw-footer__col-title {
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.10);
  }

  .cw-footer__col-title::after {
    content: "+";
    font-size: 18px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.6);
  }

  details[open] .cw-footer__col-title::after { content: "−"; }
}

/* =========================================================================
   Buttons (reusable)
   ========================================================================= */
.cw-btn,
button.cw-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  height: 48px;
  padding: 0 1.2rem;
  border: 0;
  border-radius: 12px;
  font: inherit;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: -0.005em;
  cursor: pointer;
  text-decoration: none;
  transition: transform var(--dur-1) var(--ease), box-shadow var(--dur-1) var(--ease), background var(--dur-1) var(--ease);
}

.cw-btn--primary {
  background: linear-gradient(135deg, var(--navy-900), var(--navy-700));
  color: #fff;
  box-shadow: 0 4px 12px -2px rgba(11, 37, 64, 0.30);
}

.cw-btn--primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 20px -4px rgba(11, 37, 64, 0.40);
}

.cw-btn--ghost {
  background: transparent;
  color: var(--navy-700);
  border: 1.5px solid var(--hairline);
}

.cw-btn--ghost:hover {
  border-color: var(--navy-700);
  background: var(--paper);
}

/* =========================================================================
   Accessibility & motion preferences
   ========================================================================= */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* =========================================================================
   Page wrapper / main spacing
   ========================================================================= */
.cw-main { padding-bottom: 0; }

/* =========================================================================
   Generic page (page.php) refinements
   ========================================================================= */
.cw-article-content,
.cw-article-body,
.entry-content {
  font-size: 17px;
  line-height: 1.7;
  color: var(--ink-700);
}

.cw-article-content h2,
.entry-content h2 {
  font-family: var(--font-display);
  font-size: clamp(26px, 3vw, 36px);
  letter-spacing: -0.02em;
  font-weight: 500;
  color: var(--ink-900);
  margin-top: 2.4em;
  margin-bottom: 0.6em;
}

.cw-article-content h3,
.entry-content h3 {
  font-family: var(--font-display);
  font-size: clamp(20px, 2vw, 24px);
  letter-spacing: -0.015em;
  font-weight: 500;
  color: var(--ink-900);
  margin-top: 1.8em;
}

.cw-article-content a,
.entry-content a {
  color: var(--navy-700);
  text-decoration: none;
  border-bottom: 1.5px solid var(--amber-300);
  transition: border-color var(--dur-1) var(--ease), color var(--dur-1) var(--ease);
}

.cw-article-content a:hover,
.entry-content a:hover {
  color: var(--ink-900);
  border-bottom-color: var(--amber-500);
}

/* =========================================================================
   Misc — scrollbar, hr, blockquote
   ========================================================================= */
hr {
  border: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--hairline), transparent);
  margin: 3rem 0;
}

blockquote {
  margin: 1.5rem 0;
  padding: 1.25rem 1.5rem;
  border-left: 3px solid var(--amber-500);
  background: var(--paper-2);
  border-radius: 0 12px 12px 0;
  font-family: var(--font-display);
  font-size: 18px;
  line-height: 1.55;
  color: var(--ink-900);
}

::-webkit-scrollbar { width: 12px; height: 12px; }
::-webkit-scrollbar-track { background: var(--paper-2); }
::-webkit-scrollbar-thumb {
  background: var(--ink-300);
  border-radius: 999px;
  border: 3px solid var(--paper-2);
}
::-webkit-scrollbar-thumb:hover { background: var(--ink-500); }

/* =========================================================================
   Subtle entrance animation for cards on scroll-into-view
   (purely CSS, no JS — uses content-visibility prep)
   ========================================================================= */
@keyframes cmh-fade-up {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

.cw-funnel-card-grid > *,
.cw-funnel-question-grid > *,
.cw-answer-stack > *,
.cw-funnel-tool-list > * {
  animation: cmh-fade-up 480ms var(--ease-out) both;
}

.cw-funnel-card-grid > *:nth-child(2),
.cw-funnel-question-grid > *:nth-child(2),
.cw-answer-stack > *:nth-child(2),
.cw-funnel-tool-list > *:nth-child(2) { animation-delay: 60ms; }

.cw-funnel-card-grid > *:nth-child(3),
.cw-funnel-question-grid > *:nth-child(3),
.cw-answer-stack > *:nth-child(3),
.cw-funnel-tool-list > *:nth-child(3) { animation-delay: 120ms; }

.cw-funnel-card-grid > *:nth-child(4),
.cw-funnel-question-grid > *:nth-child(4),
.cw-answer-stack > *:nth-child(4),
.cw-funnel-tool-list > *:nth-child(4) { animation-delay: 180ms; }

.cw-funnel-card-grid > *:nth-child(5),
.cw-answer-stack > *:nth-child(5) { animation-delay: 240ms; }

.cw-funnel-card-grid > *:nth-child(6) { animation-delay: 300ms; }

@media (prefers-reduced-motion: reduce) {
  .cw-funnel-card-grid > *,
  .cw-funnel-question-grid > *,
  .cw-answer-stack > *,
  .cw-funnel-tool-list > * {
    animation: none;
  }
}

/* =========================================================================
   Mobile polish
   ========================================================================= */
@media (max-width: 980px) {
  .cw-hero-answer-strip { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }

  .cw-funnel-card-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  .cw-site-header__inner { min-height: 64px; }

  .cw-funnel-hero {
    padding: 48px 0 56px;
  }

  .cw-hero__eyebrow { font-size: 0.7rem; padding: 0.3rem 0.7rem; }

  .cw-funnel-card,
  .cw-funnel-question-grid a,
  .cw-funnel-tool-list a,
  .cw-answer-card { padding: 18px; }

  .cw-funnel-card-grid,
  .cw-funnel-question-grid {
    grid-template-columns: 1fr;
  }
}

/* =========================================================================
   ============== INNER PAGES — beautified across the site =================
   ========================================================================= */

/* ---- Page hero (used on /tools/, archives, pages, 404) ---- */
.cw-page-hero {
  position: relative;
  padding: clamp(56px, 8vw, 88px) 0 clamp(40px, 6vw, 56px);
  background:
    radial-gradient(900px 460px at 12% 0%, rgba(201, 151, 49, 0.10), transparent 60%),
    radial-gradient(800px 420px at 95% 8%, rgba(52, 102, 155, 0.12), transparent 65%),
    linear-gradient(180deg, #FBFAF6 0%, #F4F1EA 100%);
  overflow: hidden;
}

.cw-page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(11, 37, 64, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(11, 37, 64, 0.025) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 70% 70% at 50% 30%, #000 35%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 70% at 50% 30%, #000 35%, transparent 75%);
  pointer-events: none;
}

.cw-page-hero > .cw-container { position: relative; }

.cw-page-hero__eyebrow {
  display: inline-block;
  margin-bottom: 1rem;
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(11, 37, 64, 0.10);
  color: var(--navy-700);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  box-shadow: var(--shadow-xs);
}

.cw-page-hero__title {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-size: clamp(34px, 5vw, 60px);
  line-height: 1.04;
  letter-spacing: -0.025em;
  font-weight: 500;
  color: var(--ink-900);
  max-width: 22ch;
}

.cw-page-hero__dek {
  margin: 0 0 1.25rem;
  max-width: 60ch;
  font-size: clamp(16px, 1.3vw, 19px);
  line-height: 1.6;
  color: var(--ink-700);
}

/* 404 */
.cw-page-hero--404 .cw-page-hero__title { max-width: 18ch; }
.cw-404-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

/* ---- Breadcrumbs ---- */
.cw-breadcrumbs,
nav.cw-breadcrumbs,
.cw-page-hero .cw-breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0 0 1.25rem;
  font-size: 0.85rem;
  color: var(--ink-500);
  list-style: none;
  padding: 0;
}

.cw-breadcrumbs a {
  color: var(--navy-700);
  text-decoration: none;
  border-bottom: 1px dashed var(--hairline);
  padding-bottom: 1px;
  transition: border-color var(--dur-1) var(--ease);
}

.cw-breadcrumbs a:hover { border-bottom-color: var(--amber-500); }

.cw-breadcrumbs__sep,
.cw-breadcrumbs li + li::before {
  color: var(--ink-300);
  margin-right: 0.4rem;
  content: "/";
}

/* ---- Byline ---- */
.cw-byline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.85rem;
  margin: 0.5rem 0 0;
  padding: 0.85rem 1rem;
  border: 1px solid var(--hairline);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.9);
  font-size: 0.85rem;
  color: var(--ink-700);
  box-shadow: var(--shadow-xs);
  width: fit-content;
  max-width: 100%;
}

.cw-byline__item { display: inline-flex; align-items: center; gap: 0.35rem; }

.cw-byline__label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-500);
}

.cw-byline__value { color: var(--ink-900); font-weight: 600; }

.cw-byline__value a {
  color: var(--navy-700);
  text-decoration: none;
  border-bottom: 1.5px solid var(--amber-300);
  padding-bottom: 1px;
  transition: border-color var(--dur-1) var(--ease);
}

.cw-byline__value a:hover { border-bottom-color: var(--amber-500); }

.cw-byline__sep { color: var(--ink-300); }

.cw-byline__live-dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--emerald-500);
  box-shadow: 0 0 0 3px rgba(47, 123, 101, 0.18);
  display: inline-block;
}

/* ---- Page layout (single page with optional TOC) ---- */
.cw-page-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 2.5rem;
  padding: clamp(40px, 6vw, 64px) 0 clamp(48px, 6vw, 72px);
  max-width: var(--cw-max);
}

.cw-page-layout--with-toc {
  grid-template-columns: 240px minmax(0, 1fr);
  align-items: start;
}

.cw-page-toc {
  position: sticky;
  top: 100px;
  padding: 1.25rem;
  border: 1px solid var(--hairline);
  border-radius: 14px;
  background: #fff;
  box-shadow: var(--shadow-sm);
  font-size: 0.92rem;
}

.cw-page-toc__title {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  letter-spacing: -0.01em;
  color: var(--ink-900);
  list-style: none;
  cursor: pointer;
}

.cw-page-toc__title::-webkit-details-marker { display: none; }

.cw-page-toc__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.5rem;
  counter-reset: toc;
}

.cw-page-toc__list li {
  counter-increment: toc;
  font-size: 0.86rem;
  line-height: 1.45;
}

.cw-page-toc__list li::before {
  content: counter(toc, decimal-leading-zero);
  display: inline-block;
  margin-right: 0.5rem;
  width: 1.6rem;
  font-family: var(--font-mono);
  color: var(--ink-500);
}

.cw-page-toc__list a {
  color: var(--ink-700);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  padding-bottom: 1px;
  transition: color var(--dur-1) var(--ease), border-color var(--dur-1) var(--ease);
}

.cw-page-toc__list a:hover {
  color: var(--navy-700);
  border-bottom-color: var(--amber-300);
}

@media (max-width: 900px) {
  .cw-page-layout--with-toc { grid-template-columns: 1fr; }
  .cw-page-toc { position: static; }
}

/* ---- Article body / generic editor content ---- */
.cw-article-body,
.cw-page-article .cw-article-body,
.entry-content {
  max-width: 72ch;
  font-size: 17px;
  line-height: 1.75;
  color: var(--ink-700);
}

.cw-article-body p,
.entry-content p { margin: 0 0 1.2em; }

.cw-article-body h2,
.entry-content h2 {
  font-family: var(--font-display);
  font-size: clamp(26px, 3vw, 34px);
  letter-spacing: -0.02em;
  font-weight: 500;
  color: var(--ink-900);
  margin-top: 2.4em;
  margin-bottom: 0.5em;
  line-height: 1.15;
  position: relative;
  padding-left: 1.1rem;
}

.cw-article-body h2::before,
.entry-content h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.4em;
  bottom: 0.4em;
  width: 3px;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--amber-500), var(--amber-300));
}

.cw-article-body h3,
.entry-content h3 {
  font-family: var(--font-display);
  font-size: clamp(20px, 2vw, 24px);
  letter-spacing: -0.015em;
  font-weight: 500;
  color: var(--ink-900);
  margin-top: 2em;
  margin-bottom: 0.4em;
}

.cw-article-body ul,
.cw-article-body ol,
.entry-content ul,
.entry-content ol { padding-left: 1.4em; margin: 0 0 1.2em; }

.cw-article-body li,
.entry-content li { margin-bottom: 0.4em; }

.cw-article-body strong,
.entry-content strong { color: var(--ink-900); }

.cw-article-body a,
.entry-content a {
  color: var(--navy-700);
  text-decoration: none;
  border-bottom: 1.5px solid var(--amber-300);
  padding-bottom: 1px;
  transition: border-color var(--dur-1) var(--ease), color var(--dur-1) var(--ease);
}

.cw-article-body a:hover,
.entry-content a:hover {
  color: var(--ink-900);
  border-bottom-color: var(--amber-500);
}

/* Big article H1 head */
.cw-article-head {
  margin-bottom: 2rem;
}

.cw-article-head__title {
  font-family: var(--font-display);
  font-size: clamp(32px, 4.5vw, 56px);
  line-height: 1.04;
  letter-spacing: -0.025em;
  font-weight: 500;
  color: var(--ink-900);
  margin: 0.4rem 0 0.8rem;
  max-width: 26ch;
}

.cw-article-head__dek {
  font-size: clamp(17px, 1.4vw, 20px);
  line-height: 1.6;
  color: var(--ink-700);
  margin: 0 0 1.25rem;
  max-width: 60ch;
}

/* Article layout (single-article + single-glossary) */
.cw-article-layout,
.cw-glossary-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  max-width: 760px;
  padding: clamp(40px, 6vw, 64px) clamp(1rem, 4vw, 2rem) clamp(48px, 6vw, 72px);
  margin: 0 auto;
}

.cw-glossary-shortdef {
  margin: 0 0 2rem;
  padding: 1.25rem 1.5rem;
  border-left: 4px solid var(--amber-500);
  background: linear-gradient(90deg, var(--amber-100), transparent 70%);
  border-radius: 0 12px 12px 0;
  font-family: var(--font-display);
  font-size: 19px;
  line-height: 1.5;
  color: var(--ink-900);
  letter-spacing: -0.005em;
}

/* Article CTA */
.cw-article-cta {
  margin: 2.5rem 0;
  padding: 2rem 2.25rem;
  border-radius: 16px;
  background:
    radial-gradient(700px 240px at 80% 0%, rgba(236, 201, 125, 0.18), transparent 65%),
    linear-gradient(135deg, var(--navy-900), var(--navy-700));
  color: #fff;
  position: relative;
  overflow: hidden;
}

.cw-article-cta::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: linear-gradient(90deg, var(--amber-500) 0%, var(--emerald-500) 50%, var(--navy-500) 100%);
}

.cw-article-cta__title {
  font-family: var(--font-display);
  font-size: clamp(22px, 2.5vw, 28px);
  letter-spacing: -0.015em;
  font-weight: 500;
  color: #fff;
  margin: 0 0 0.5rem;
}

.cw-article-cta__lede {
  margin: 0 0 1.25rem;
  color: rgba(255, 255, 255, 0.78);
  font-size: 16px;
  line-height: 1.6;
  max-width: 60ch;
}

.cw-article-cta__link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.75rem 1.2rem;
  border-radius: 999px;
  background: var(--amber-500);
  color: var(--navy-900);
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  transition: background var(--dur-1) var(--ease), transform var(--dur-1) var(--ease);
}

.cw-article-cta__link:hover {
  background: var(--amber-300);
  transform: translateY(-1px);
}

/* ---- Calculator layout ---- */
.cw-calc-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 2.5rem;
  padding: clamp(40px, 6vw, 64px) clamp(1rem, 4vw, 2rem) clamp(48px, 6vw, 72px);
  align-items: start;
}

.cw-calc-layout__sidebar {
  position: sticky;
  top: 100px;
  display: grid;
  gap: 1rem;
}

@media (max-width: 980px) {
  .cw-calc-layout { grid-template-columns: 1fr; }
  .cw-calc-layout__sidebar { position: static; }
}

/* Calculator engine surface */
.cw-calc,
.cw-calculator,
.cw-calc-surface {
  margin: 1.5rem 0 2rem;
  padding: clamp(20px, 3vw, 32px);
  border: 1px solid var(--hairline);
  border-radius: 16px;
  background: #fff;
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
}

.cw-calc::before,
.cw-calculator::before,
.cw-calc-surface::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: linear-gradient(90deg, var(--amber-500) 0%, var(--emerald-500) 50%, var(--navy-500) 100%);
}

/* Calculator inputs */
.cw-calc input[type="number"],
.cw-calc input[type="text"],
.cw-calc select,
.cw-calculator input[type="number"],
.cw-calculator input[type="text"],
.cw-calculator select {
  height: 48px;
  padding: 0 14px;
  border: 1.5px solid var(--hairline);
  border-radius: 10px;
  background: var(--paper);
  font: inherit;
  font-size: 15px;
  color: var(--ink-900);
  transition: border-color var(--dur-1) var(--ease), box-shadow var(--dur-1) var(--ease);
}

.cw-calc input:focus,
.cw-calculator input:focus,
.cw-calc select:focus,
.cw-calculator select:focus {
  outline: none;
  border-color: var(--navy-500);
  box-shadow: 0 0 0 4px rgba(52, 102, 155, 0.12);
}

.cw-calc__field,
.cw-calc-field,
.cw-field {
  display: grid;
  gap: 0.4rem;
  margin-bottom: 1rem;
}

.cw-calc__field label,
.cw-calc-field label,
.cw-field label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink-700);
  letter-spacing: -0.005em;
}

.cw-calc__result,
.cw-calc-result,
.cw-result {
  margin-top: 1.5rem;
  padding: 1.5rem;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--navy-900), var(--navy-700));
  color: #fff;
  position: relative;
  overflow: hidden;
}

.cw-calc__result::before,
.cw-calc-result::before,
.cw-result::before {
  content: "";
  position: absolute;
  top: -40px;
  right: -40px;
  width: 160px;
  height: 160px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(236, 201, 125, 0.18), transparent 70%);
}

.cw-calc__result-value,
.cw-calc-result__value,
.cw-result__value {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.05;
  color: #fff;
}

.cw-calc__result-label,
.cw-calc-result__label,
.cw-result__label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--amber-700, #8C5E10);
  margin-bottom: 0.5rem;
}

/* Source panel */
.cw-source-panel,
.cw-sources {
  margin: 2rem 0;
  padding: 1.25rem 1.5rem;
  border: 1px solid var(--hairline);
  border-radius: 12px;
  background: var(--paper-2);
  font-size: 0.9rem;
}

.cw-source-panel__title,
.cw-sources__title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0 0 0.5rem;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  color: var(--ink-900);
  letter-spacing: -0.005em;
}

.cw-source-panel__title::before {
  content: "";
  width: 18px;
  height: 18px;
  border-radius: 999px;
  background: radial-gradient(circle at 35% 35%, var(--amber-300), var(--amber-500));
}

/* FAQ */
.cw-faq {
  margin: 2rem 0;
  display: grid;
  gap: 0.75rem;
}

.cw-faq details {
  padding: 1rem 1.25rem;
  border: 1px solid var(--hairline);
  border-radius: 12px;
  background: #fff;
  transition: box-shadow var(--dur-1) var(--ease);
}

.cw-faq details:hover { box-shadow: var(--shadow-sm); }
.cw-faq details[open] {
  border-color: rgba(11, 37, 64, 0.14);
  box-shadow: var(--shadow-sm);
}

.cw-faq summary {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 500;
  color: var(--ink-900);
  letter-spacing: -0.01em;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.cw-faq summary::-webkit-details-marker { display: none; }

.cw-faq summary::after {
  content: "+";
  font-size: 22px;
  font-weight: 300;
  color: var(--navy-700);
  transition: transform var(--dur-2) var(--ease);
}

.cw-faq details[open] summary::after { content: "−"; }

.cw-faq__answer,
.cw-faq details > p {
  margin: 0.75rem 0 0;
  color: var(--ink-700);
  line-height: 1.7;
}

/* Related calculators sidebar */
.cw-related,
.cw-calc-related-articles {
  padding: 1.5rem;
  border: 1px solid var(--hairline);
  border-radius: 14px;
  background: #fff;
  box-shadow: var(--shadow-xs);
}

.cw-related__title,
.cw-calc-related-articles__title {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  color: var(--ink-900);
  letter-spacing: -0.005em;
  margin: 0 0 1rem;
  padding-bottom: 0.6rem;
  border-bottom: 1px solid var(--hairline);
}

.cw-related__list,
.cw-calc-related-articles__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.85rem;
}

.cw-related__list a,
.cw-calc-related-articles__list a {
  color: var(--ink-900);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  display: block;
  line-height: 1.35;
  transition: color var(--dur-1) var(--ease);
}

.cw-related__list a:hover,
.cw-calc-related-articles__list a:hover { color: var(--navy-700); }

.cw-calc-related-articles__dek {
  display: block;
  margin-top: 0.25rem;
  font-size: 0.85rem;
  font-weight: 400;
  color: var(--ink-500);
  line-height: 1.45;
}

/* Methodology section */
.cw-methodology {
  margin: 3rem 0 2rem;
  padding: 1.5rem 1.75rem;
  border-radius: 14px;
  border: 1px solid var(--hairline);
  background: linear-gradient(135deg, #fff, var(--paper-2));
}

.cw-methodology h2 {
  margin-top: 0 !important;
  padding-left: 0 !important;
}

.cw-methodology h2::before { display: none !important; }

/* ---- Stat strip (dark navy band — used on archive pillar) ---- */
.cw-stat-strip {
  background: linear-gradient(135deg, var(--navy-900) 0%, #08182B 100%);
  color: rgba(255, 255, 255, 0.78);
  position: relative;
}

.cw-stat-strip::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 2px;
  background: linear-gradient(90deg, var(--amber-500) 0%, var(--emerald-500) 50%, var(--navy-500) 100%);
}

.cw-stat-strip__inner {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1.5rem;
  padding: 28px 0;
}

.cw-stat-strip__inner .cw-stat {
  padding-left: 22px;
  border-left: 1px solid rgba(255, 255, 255, 0.10);
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.cw-stat-strip__inner .cw-stat:first-child {
  padding-left: 0;
  border-left: 0;
}

.cw-stat-strip__inner .cw-stat__value {
  font-family: var(--font-display);
  font-variant-numeric: tabular-nums;
  font-size: clamp(24px, 2.6vw, 32px);
  font-weight: 500;
  letter-spacing: -0.02em;
  color: #fff;
  line-height: 1;
}

.cw-stat-strip__inner .cw-stat__label {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.62);
  margin-top: 6px;
  display: block;
  line-height: 1.35;
}

@media (max-width: 900px) {
  .cw-stat-strip__inner {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
    padding: 22px 0;
  }
  .cw-stat-strip__inner .cw-stat {
    padding-left: 0;
    border-left: 0;
  }
}

@media (max-width: 480px) {
  .cw-stat-strip__inner { grid-template-columns: 1fr; }
}

/* ---- Archive (calculator + article + glossary) ---- */
.cw-archive-body {
  padding: clamp(40px, 6vw, 64px) clamp(1rem, 4vw, 2rem) clamp(48px, 6vw, 72px);
  display: grid;
  gap: 2.5rem;
}

.cw-archive-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 0;
}

.cw-archive-filter__chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.55rem 0.95rem;
  border: 1px solid var(--hairline);
  border-radius: 999px;
  background: #fff;
  color: var(--ink-700);
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  transition: all var(--dur-1) var(--ease);
}

.cw-archive-filter__chip:hover {
  border-color: var(--navy-300);
  color: var(--ink-900);
  transform: translateY(-1px);
}

.cw-archive-filter__chip.is-active {
  background: var(--navy-900);
  color: #fff;
  border-color: var(--navy-900);
}

.cw-archive-filter__count {
  display: inline-grid;
  place-items: center;
  min-width: 22px;
  height: 22px;
  padding: 0 0.35rem;
  border-radius: 999px;
  background: var(--paper-2);
  color: var(--navy-700);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 600;
}

.cw-archive-filter__chip.is-active .cw-archive-filter__count {
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
}

/* Grouped archive sections */
.cw-archive-section { padding: 0; }

.cw-archive-group__head {
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  align-items: center;
  gap: 1rem;
  padding: 1rem 0;
  margin-bottom: 1.25rem;
  border-bottom: 1px solid var(--hairline);
  cursor: pointer;
  list-style: none;
}

.cw-archive-group__head::-webkit-details-marker { display: none; }

.cw-archive-group__num {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--ink-500);
  letter-spacing: 0.05em;
}

.cw-archive-group__title {
  font-family: var(--font-display);
  font-size: clamp(22px, 2.4vw, 28px);
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--ink-900);
}

.cw-archive-group__count {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-500);
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  background: var(--paper-2);
}

.cw-archive-group__rule { display: none; }

.cw-archive-group__link {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--navy-700);
  text-decoration: none;
  transition: color var(--dur-1) var(--ease);
}

.cw-archive-group__link:hover { color: var(--ink-900); }

/* Tile grid */
.cw-popular-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}

.cw-popular-grid--three { grid-template-columns: repeat(3, minmax(0, 1fr)); }

@media (max-width: 980px) { .cw-popular-grid--three { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .cw-popular-grid--three { grid-template-columns: 1fr; } }

.cw-popular-tile {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 1.25rem;
  border: 1px solid var(--hairline);
  border-radius: 14px;
  background: #fff;
  color: inherit;
  text-decoration: none;
  box-shadow: var(--shadow-xs);
  transition: transform var(--dur-2) var(--ease-out), box-shadow var(--dur-2) var(--ease-out), border-color var(--dur-1) var(--ease);
}

.cw-popular-tile:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(11, 37, 64, 0.14);
}

.cw-popular-tile__title {
  font-family: var(--font-display);
  font-size: 19px;
  letter-spacing: -0.015em;
  font-weight: 500;
  color: var(--ink-900);
  line-height: 1.25;
}

.cw-popular-tile__excerpt {
  font-size: 0.92rem;
  line-height: 1.55;
  color: var(--ink-700);
}

.cw-popular-tile__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 0.6rem;
  border-top: 1px solid var(--hairline);
  font-size: 0.82rem;
  color: var(--ink-500);
}

.cw-popular-tile__cta {
  color: var(--navy-700);
  font-weight: 600;
  transition: transform var(--dur-1) var(--ease);
}

.cw-popular-tile:hover .cw-popular-tile__cta {
  transform: translateX(3px);
  color: var(--ink-900);
}

/* Archive empty / pagination */
.cw-archive-empty {
  padding: 2rem;
  text-align: center;
  border: 1px dashed var(--hairline);
  border-radius: 14px;
  background: var(--paper-2);
  color: var(--ink-700);
}

.cw-archive-pagination,
.cw-search-pagination {
  margin-top: 2rem;
  display: flex;
  gap: 0.5rem;
  justify-content: center;
}

.cw-archive-pagination .page-numbers,
.cw-search-pagination .page-numbers {
  display: inline-grid;
  place-items: center;
  min-width: 44px;
  height: 44px;
  padding: 0 0.85rem;
  border: 1px solid var(--hairline);
  border-radius: 10px;
  background: #fff;
  color: var(--ink-700);
  font-weight: 600;
  text-decoration: none;
  transition: all var(--dur-1) var(--ease);
}

.cw-archive-pagination .page-numbers:hover,
.cw-search-pagination .page-numbers:hover {
  border-color: var(--navy-300);
  color: var(--ink-900);
}

.cw-archive-pagination .page-numbers.current,
.cw-search-pagination .page-numbers.current {
  background: var(--navy-900);
  color: #fff;
  border-color: var(--navy-900);
}

/* ---- Search page ---- */
.cw-search-page {
  padding: clamp(40px, 6vw, 64px) clamp(1rem, 4vw, 2rem);
  display: grid;
  gap: 2.5rem;
}

.cw-search-head {
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--hairline);
  display: grid;
  gap: 0.75rem;
}

.cw-search-head__title {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 44px);
  letter-spacing: -0.025em;
  font-weight: 500;
  color: var(--ink-900);
  margin: 0.4rem 0 0;
}

.cw-search-head__meta {
  margin: 0;
  color: var(--ink-500);
  font-size: 0.95rem;
}

.cw-search-refine {
  display: flex;
  gap: 0.5rem;
  max-width: 560px;
}

.cw-search-refine input[type="search"] {
  flex: 1;
  height: 48px;
  padding: 0 1rem;
  border: 1.5px solid var(--hairline);
  border-radius: 10px;
  background: #fff;
  font: inherit;
  font-size: 15px;
  color: var(--ink-900);
}

.cw-search-refine input[type="search"]:focus {
  outline: none;
  border-color: var(--navy-500);
  box-shadow: 0 0 0 4px rgba(52, 102, 155, 0.12);
}

.cw-search-section {
  display: grid;
  gap: 1.25rem;
}

.cw-search-section__title {
  font-family: var(--font-display);
  font-size: clamp(22px, 2.4vw, 28px);
  letter-spacing: -0.02em;
  font-weight: 500;
  color: var(--ink-900);
  margin: 0;
  padding-bottom: 0.6rem;
  border-bottom: 1px solid var(--hairline);
}

.cw-search-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}

.cw-search-card {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 1.25rem;
  border: 1px solid var(--hairline);
  border-radius: 14px;
  background: #fff;
  text-decoration: none;
  color: inherit;
  box-shadow: var(--shadow-xs);
  transition: transform var(--dur-2) var(--ease-out), box-shadow var(--dur-2) var(--ease-out), border-color var(--dur-1) var(--ease);
}

.cw-search-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(11, 37, 64, 0.14);
}

.cw-search-card__tag {
  display: inline-block;
  width: fit-content;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--navy-100);
  color: var(--navy-700);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.cw-search-card__title {
  margin: 0.35rem 0 0;
  font-family: var(--font-display);
  font-size: 19px;
  letter-spacing: -0.015em;
  font-weight: 500;
  color: var(--ink-900);
  line-height: 1.25;
}

.cw-search-card__excerpt {
  font-size: 0.92rem;
  line-height: 1.55;
  color: var(--ink-700);
  margin: 0;
}

.cw-search-card__footer {
  display: flex;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 0.6rem;
  border-top: 1px solid var(--hairline);
  font-size: 0.82rem;
  color: var(--ink-500);
}

.cw-search-card__cta {
  color: var(--navy-700);
  font-weight: 600;
}

.cw-search-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.5rem;
}

.cw-search-list__item {
  border: 1px solid var(--hairline);
  border-radius: 12px;
  background: #fff;
  transition: transform var(--dur-1) var(--ease), box-shadow var(--dur-1) var(--ease), border-color var(--dur-1) var(--ease);
}

.cw-search-list__item:hover {
  transform: translateX(2px);
  box-shadow: var(--shadow-sm);
  border-color: rgba(11, 37, 64, 0.14);
}

.cw-search-list__link {
  display: block;
  padding: 1rem 1.25rem;
  text-decoration: none;
  color: inherit;
}

.cw-search-list__title {
  margin: 0 0 0.35rem;
  font-family: var(--font-display);
  font-size: 18px;
  letter-spacing: -0.015em;
  font-weight: 500;
  color: var(--ink-900);
  line-height: 1.3;
}

.cw-search-list__excerpt {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.5;
  color: var(--ink-700);
}

.cw-search-empty {
  padding: 2rem;
  border: 1px dashed var(--hairline);
  border-radius: 14px;
  background: var(--paper-2);
}

.cw-search-empty h2 {
  margin: 0 0 0.5rem;
  font-family: var(--font-display);
  font-size: 22px;
  letter-spacing: -0.015em;
  font-weight: 500;
  color: var(--ink-900);
}

.cw-search-suggest {
  padding: 1.25rem 1.5rem;
  background: var(--paper-2);
  border-radius: 12px;
  font-size: 0.95rem;
  color: var(--ink-700);
}

.cw-eyebrow {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--navy-700);
  margin: 0;
}

/* ---- Journey / hub generic polish (lighter touch — these use heavy CSS already) ---- */
.cw-journey-hero,
.cw-hub-hero {
  /* Inherit page-hero gradient feel */
  background:
    radial-gradient(900px 460px at 12% 0%, rgba(201, 151, 49, 0.10), transparent 60%),
    radial-gradient(800px 420px at 95% 8%, rgba(52, 102, 155, 0.12), transparent 65%),
    linear-gradient(180deg, #FBFAF6 0%, #F4F1EA 100%);
}

/* Mobile polish for byline */
@media (max-width: 640px) {
  .cw-byline {
    padding: 0.7rem 0.85rem;
    font-size: 0.78rem;
    gap: 0.4rem 0.7rem;
  }
  .cw-byline__sep { display: none; }
  .cw-page-hero { padding: 48px 0 32px; }
  .cw-page-hero__title { font-size: 30px; line-height: 1.06; }
}

/* =========================================================================
   Priority map — make routes + calculator preview act like cards
   ========================================================================= */
.cw-funnel-map__route {
  text-decoration: none;
  color: inherit;
  transition: transform var(--dur-1) var(--ease), box-shadow var(--dur-1) var(--ease), border-color var(--dur-1) var(--ease);
  position: relative;
}

.cw-funnel-map__route:hover,
.cw-funnel-map__route:focus-visible {
  transform: translateX(3px);
  box-shadow: var(--shadow-md);
  border-color: rgba(11, 37, 64, 0.18);
}

.cw-funnel-map__route::after {
  content: "→";
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--ink-300);
  font-size: 16px;
  opacity: 0;
  transition: opacity var(--dur-1) var(--ease), transform var(--dur-1) var(--ease), color var(--dur-1) var(--ease);
}

.cw-funnel-map__route:hover::after {
  opacity: 1;
  transform: translateY(-50%) translateX(3px);
  color: var(--navy-700);
}

a.cw-funnel-map__calculator {
  display: grid;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  transition: transform var(--dur-1) var(--ease), box-shadow var(--dur-1) var(--ease);
}

a.cw-funnel-map__calculator:hover,
a.cw-funnel-map__calculator:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px -8px rgba(11, 37, 64, 0.32);
}

a.cw-funnel-map__calculator strong {
  color: #fff;
  transition: color var(--dur-1) var(--ease);
}

a.cw-funnel-map__calculator:hover strong {
  color: var(--amber-300);
}

/* =========================================================================
   v2.2 — Centered hero with finder as primary action
   ========================================================================= */

.cw-funnel-hero--centered {
  padding: clamp(56px, 7vw, 88px) 0 clamp(48px, 6vw, 72px);
}

.cw-funnel-hero__centered-inner {
  max-width: 820px;
  margin: 0 auto;
  text-align: center;
  display: grid;
  gap: 1.25rem;
  position: relative;
}

.cw-funnel-hero--centered .cw-hero__eyebrow {
  margin: 0 auto;
}

.cw-funnel-hero--centered .cw-funnel-hero__title {
  font-size: clamp(36px, 5.5vw, 68px) !important;
  line-height: 1.04 !important;
  letter-spacing: -0.025em !important;
  margin: 0;
  max-width: 18ch;
  margin-left: auto;
  margin-right: auto;
}

.cw-funnel-hero--centered .cw-funnel-hero__lede {
  font-size: clamp(16px, 1.3vw, 19px) !important;
  margin: 0 auto 0.5rem;
  max-width: 56ch;
}

/* Finder card — promoted to primary action */
.cw-funnel-finder--hero {
  margin: 0.5rem auto 0;
  width: 100%;
  max-width: 720px;
  padding: 28px 28px 22px;
  border-radius: 18px;
  text-align: left;
  box-shadow: 0 24px 56px -20px rgba(11, 37, 64, 0.30), 0 8px 16px -8px rgba(11, 37, 64, 0.10);
  border: 1px solid rgba(11, 37, 64, 0.08);
}

.cw-funnel-finder--hero label {
  display: block;
  margin-bottom: 12px;
  font-family: var(--font-display);
  font-size: 18px;
  letter-spacing: -0.015em;
  color: var(--ink-900);
}

.cw-funnel-finder--hero input {
  height: 60px;
  padding: 0 20px;
  border-radius: 14px;
  border: 1.5px solid var(--hairline);
  font-size: 16px;
}

.cw-funnel-finder--hero .cw-funnel-finder__row button {
  height: 60px;
  padding: 0 26px;
  border-radius: 14px;
  font-size: 15px;
}

.cw-funnel-finder--hero .cw-funnel-finder__prompts {
  margin-top: 16px;
}

.cw-funnel-finder--hero .cw-funnel-finder__note {
  margin-top: 14px;
  font-size: 13px;
}

/* "Or jump straight to" secondary shortcuts */
.cw-hero-shortcuts {
  margin-top: 1.25rem;
  display: grid;
  gap: 12px;
  text-align: center;
}

.cw-hero-shortcuts__label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-500);
  position: relative;
  display: inline-block;
  padding: 0 14px;
}

.cw-hero-shortcuts__label::before,
.cw-hero-shortcuts__label::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 60px;
  height: 1px;
  background: var(--hairline);
}

.cw-hero-shortcuts__label::before { right: 100%; }
.cw-hero-shortcuts__label::after  { left: 100%; }

.cw-hero-shortcuts .cw-hero-answer-strip {
  margin-top: 0;
  max-width: none;
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

/* Tone the secondary chiclets down — they were primary, now they're secondary */
.cw-hero-shortcuts .cw-hero-answer-strip__item {
  min-height: 84px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.7);
  box-shadow: var(--shadow-xs);
}

.cw-hero-shortcuts .cw-hero-answer-strip__item strong {
  font-size: 13px;
}

/* "Most searched" flag on path cards */
.cw-funnel-card { position: relative; }

.cw-funnel-card__flag {
  position: absolute;
  top: 14px;
  right: 14px;
  padding: 4px 11px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--amber-500), var(--amber-300));
  color: var(--navy-900);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  z-index: 2;
  box-shadow: 0 2px 6px -1px rgba(166, 117, 10, 0.35);
}

/* Override the priority-card "::before badge" — we now use __flag */
.cw-funnel-card--priority::before { content: none; }

/* Logo dot — removed in markup; hide if it lingers in cached pages */
.cw-logo__dot,
.cw-footer__brand-dot { display: none !important; }

/* =========================================================================
   Mobile — slimmer hero, smaller H1, single-column finder
   ========================================================================= */
@media (max-width: 720px) {
  .cw-funnel-hero--centered {
    padding: 36px 0 36px;
  }

  .cw-funnel-hero__centered-inner { gap: 0.85rem; }

  .cw-funnel-hero--centered .cw-funnel-hero__title {
    font-size: clamp(26px, 7vw, 34px) !important;
    line-height: 1.06 !important;
    max-width: none;
  }

  .cw-funnel-hero--centered .cw-funnel-hero__lede {
    font-size: 15px !important;
    line-height: 1.5 !important;
  }

  .cw-funnel-finder--hero {
    padding: 18px 18px 16px;
    border-radius: 14px;
    box-shadow: 0 12px 24px -10px rgba(11, 37, 64, 0.22);
  }

  .cw-funnel-finder--hero label {
    font-size: 15px;
    margin-bottom: 8px;
  }

  .cw-funnel-finder--hero .cw-funnel-finder__row {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .cw-funnel-finder--hero input,
  .cw-funnel-finder--hero .cw-funnel-finder__row button {
    height: 52px;
    font-size: 15px;
  }

  .cw-funnel-finder--hero .cw-funnel-finder__note {
    font-size: 12px;
    line-height: 1.45;
  }

  .cw-hero-shortcuts { margin-top: 0.75rem; }
  .cw-hero-shortcuts .cw-hero-answer-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
  .cw-hero-shortcuts__label::before,
  .cw-hero-shortcuts__label::after { display: none; }

  .cw-funnel-card__flag {
    top: 10px;
    right: 10px;
    padding: 3px 8px;
    font-size: 9px;
  }
}

@media (max-width: 480px) {
  .cw-hero-shortcuts .cw-hero-answer-strip__item {
    min-height: 72px;
    padding: 10px;
  }
}

/* =========================================================================
   v3 — Two-column hero with Trending rail, brighter color, depth
   ========================================================================= */

.cw-funnel-hero--v3 {
  position: relative;
  padding: clamp(48px, 6vw, 84px) 0 clamp(48px, 6vw, 72px);
  background:
    linear-gradient(180deg, #FBFAF6 0%, #F4F1EA 100%);
  overflow: hidden;
  isolation: isolate;
}

/* Diffused color blobs for depth */
.cw-hero-blobs {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: -1;
}

.cw-hero-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.55;
}

.cw-hero-blob--amber {
  width: 480px;
  height: 480px;
  top: -120px;
  left: -80px;
  background: radial-gradient(circle, rgba(201, 151, 49, 0.55), transparent 70%);
}

.cw-hero-blob--emerald {
  width: 420px;
  height: 420px;
  top: 30%;
  right: 20%;
  background: radial-gradient(circle, rgba(47, 123, 101, 0.40), transparent 70%);
}

.cw-hero-blob--navy {
  width: 540px;
  height: 540px;
  top: -60px;
  right: -160px;
  background: radial-gradient(circle, rgba(52, 102, 155, 0.45), transparent 70%);
}

.cw-funnel-hero--v3::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(11, 37, 64, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(11, 37, 64, 0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 90% 80% at 50% 30%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 90% 80% at 50% 30%, #000 30%, transparent 75%);
  pointer-events: none;
  z-index: -1;
}

/* Two-column hero grid: primary 1.6fr · trending rail 1fr */
.cw-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
  gap: clamp(28px, 4vw, 56px);
  align-items: start;
}

.cw-hero-grid__primary { display: grid; gap: 1.1rem; }

/* Status pill — top of hero */
.cw-hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  width: fit-content;
  padding: 0.45rem 0.95rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(11, 37, 64, 0.10);
  color: var(--ink-700);
  font-size: 0.78rem;
  letter-spacing: -0.005em;
  box-shadow: 0 2px 8px -2px rgba(11, 37, 64, 0.08);
}

.cw-hero-pill strong {
  color: var(--navy-900);
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  font-size: 0.72rem;
}

.cw-hero-pill__dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--emerald-500);
  box-shadow: 0 0 0 4px rgba(47, 123, 101, 0.20), 0 0 16px rgba(47, 123, 101, 0.55);
  animation: cmh-pulse 2.4s var(--ease) infinite;
}

@keyframes cmh-pulse {
  0%, 100% { box-shadow: 0 0 0 4px rgba(47, 123, 101, 0.20), 0 0 16px rgba(47, 123, 101, 0.55); }
  50%      { box-shadow: 0 0 0 8px rgba(47, 123, 101, 0.05), 0 0 24px rgba(47, 123, 101, 0.85); }
}

@media (prefers-reduced-motion: reduce) {
  .cw-hero-pill__dot { animation: none; }
}

/* Headline with accent word */
.cw-hero-headline {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(34px, 5vw, 64px);
  line-height: 1.02;
  letter-spacing: -0.025em;
  font-weight: 500;
  color: var(--ink-900);
  max-width: 16ch;
}

.cw-hero-headline__accent {
  position: relative;
  display: inline-block;
  color: var(--navy-900);
  font-style: italic;
  background-image: linear-gradient(transparent 70%, rgba(201, 151, 49, 0.45) 70%);
  background-repeat: no-repeat;
  background-size: 100% 100%;
  padding: 0 0.06em;
}

.cw-hero-lede {
  margin: 0;
  font-size: clamp(16px, 1.25vw, 19px);
  line-height: 1.6;
  color: var(--ink-700);
  max-width: 56ch;
}

/* Finder card v3 — input with leading icon */
.cw-hero-finder {
  margin-top: 0.5rem;
  padding: 22px 22px 18px;
  border-radius: 18px;
  background: #fff;
  border: 1px solid rgba(11, 37, 64, 0.08);
  box-shadow:
    0 1px 0 rgba(11, 37, 64, 0.03),
    0 24px 56px -20px rgba(11, 37, 64, 0.28);
  position: relative;
  overflow: hidden;
}

.cw-hero-finder::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 4px;
  background: linear-gradient(90deg, var(--amber-500) 0%, var(--emerald-500) 50%, var(--navy-500) 100%);
}

.cw-hero-finder label {
  display: block;
  margin-bottom: 10px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--navy-700);
}

.cw-hero-finder__row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  position: relative;
}

.cw-hero-finder__icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  color: var(--ink-500);
  pointer-events: none;
  z-index: 1;
}

.cw-hero-finder__icon svg { width: 18px; height: 18px; display: block; }

.cw-hero-finder input[type="search"] {
  height: 56px;
  padding: 0 16px 0 46px;
  border: 1.5px solid var(--hairline);
  border-radius: 12px;
  background: var(--paper);
  font: inherit;
  font-size: 15px;
  color: var(--ink-900);
  min-width: 0;
  width: 100%;
  transition: border-color var(--dur-1) var(--ease), background var(--dur-1) var(--ease), box-shadow var(--dur-1) var(--ease);
}

.cw-hero-finder input[type="search"]:focus {
  outline: none;
  background: #fff;
  border-color: var(--navy-500);
  box-shadow: 0 0 0 4px rgba(52, 102, 155, 0.12);
}

.cw-hero-finder button[type="submit"] {
  height: 56px;
  padding: 0 22px;
  border: 0;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--navy-900), var(--navy-700));
  color: #fff;
  font: inherit;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: -0.005em;
  cursor: pointer;
  box-shadow: 0 4px 12px -2px rgba(11, 37, 64, 0.30);
  transition: transform var(--dur-1) var(--ease), box-shadow var(--dur-1) var(--ease);
  white-space: nowrap;
}

.cw-hero-finder button[type="submit"]:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 20px -4px rgba(11, 37, 64, 0.40);
}

.cw-hero-chips {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 14px;
}

.cw-hero-chips__label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-500);
  margin-right: 4px;
}

.cw-hero-chips button {
  padding: 6px 12px;
  border: 1px solid var(--hairline);
  border-radius: 999px;
  background: var(--paper);
  color: var(--ink-700);
  font: inherit;
  font-size: 12.5px;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--dur-1) var(--ease);
}

.cw-hero-chips button:hover,
.cw-hero-chips button:focus-visible {
  background: var(--navy-900);
  color: #fff;
  border-color: var(--navy-900);
  transform: translateY(-1px);
}

.cw-hero-microcopy {
  margin: 0;
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--ink-500);
}

/* ----------------------- Trending rail (right column) ----------------------- */
.cw-hero-rail {
  padding: 22px 22px 18px;
  border-radius: 18px;
  background:
    radial-gradient(600px 200px at 50% -10%, rgba(236, 201, 125, 0.12), transparent 70%),
    linear-gradient(160deg, #fff 0%, #FAF8F2 100%);
  border: 1px solid rgba(11, 37, 64, 0.08);
  box-shadow:
    0 1px 0 rgba(11, 37, 64, 0.03),
    0 18px 36px -16px rgba(11, 37, 64, 0.18);
  position: relative;
  display: grid;
  gap: 1rem;
}

.cw-hero-rail::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 4px;
  background: linear-gradient(90deg, var(--emerald-500) 0%, var(--amber-500) 100%);
  border-radius: 18px 18px 0 0;
}

.cw-hero-rail__head { display: grid; gap: 0.4rem; }

.cw-hero-rail__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  width: fit-content;
  padding: 4px 10px 4px 8px;
  border-radius: 999px;
  background: rgba(47, 123, 101, 0.10);
  color: var(--emerald-700);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.cw-hero-rail__pulse {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--emerald-500);
  box-shadow: 0 0 0 3px rgba(47, 123, 101, 0.18);
  animation: cmh-pulse 2.4s var(--ease) infinite;
}

.cw-hero-rail__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 18px;
  letter-spacing: -0.015em;
  font-weight: 500;
  line-height: 1.25;
  color: var(--ink-900);
}

.cw-hero-rail__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
  counter-reset: trend;
}

.cw-hero-rail__item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  padding: 10px 10px 10px 8px;
  border: 1px solid var(--hairline);
  border-left-width: 3px;
  border-radius: 10px;
  background: #fff;
  transition: transform var(--dur-1) var(--ease), box-shadow var(--dur-1) var(--ease), border-color var(--dur-1) var(--ease);
}

.cw-hero-rail__item--estate     { border-left-color: var(--amber-500); }
.cw-hero-rail__item--tfsa       { border-left-color: var(--emerald-500); }
.cw-hero-rail__item--business   { border-left-color: var(--navy-500); }
.cw-hero-rail__item--retirement { border-left-color: #8B5CF6; }

.cw-hero-rail__item:hover {
  transform: translateX(2px);
  box-shadow: var(--shadow-sm);
  border-color: rgba(11, 37, 64, 0.18);
}

.cw-hero-rail__rank {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  color: var(--ink-500);
  padding-top: 2px;
}

.cw-hero-rail__link {
  display: grid;
  gap: 4px;
  text-decoration: none;
  color: inherit;
  min-width: 0;
}

.cw-hero-rail__link strong {
  font-family: var(--font-display);
  font-size: 14px;
  letter-spacing: -0.01em;
  font-weight: 500;
  line-height: 1.25;
  color: var(--ink-900);
}

.cw-hero-rail__meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
}

.cw-hero-rail__trend {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 1px 7px;
  border-radius: 999px;
  background: rgba(47, 123, 101, 0.12);
  color: var(--emerald-700);
  font-family: var(--font-mono);
  font-weight: 600;
  letter-spacing: -0.01em;
}

.cw-hero-rail__cat {
  color: var(--ink-500);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 10px;
}

.cw-hero-rail__more {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 13px;
  font-weight: 600;
  color: var(--navy-700);
  text-decoration: none;
  border-bottom: 1.5px solid var(--amber-300);
  padding-bottom: 1px;
  width: fit-content;
  margin-top: 0.25rem;
  transition: border-color var(--dur-1) var(--ease);
}

.cw-hero-rail__more:hover { border-bottom-color: var(--amber-500); }

/* ----------------------- Shortcuts row (v3) — colored icon tiles ----------------------- */
.cw-hero-shortcuts--v3 {
  margin-top: clamp(40px, 5vw, 64px);
  display: grid;
  gap: 14px;
}

.cw-hero-shortcuts--v3 .cw-hero-shortcuts__label {
  text-align: center;
}

.cw-hero-shortcuts--v3 .cw-hero-answer-strip {
  margin: 0;
  max-width: none;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}

/* Override the older small chiclet styling — give them more presence + color */
.cw-hero-shortcuts--v3 .cw-hero-answer-strip__item {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  padding: 14px;
  min-height: 0;
  background: #fff;
  border: 1px solid var(--hairline);
  border-top: 1px solid var(--hairline);
  border-left-width: 3px;
  border-radius: 12px;
  box-shadow: var(--shadow-xs);
  text-align: left;
}

.cw-hero-shortcuts--v3 .cw-hero-answer-strip__item--amber  { border-left-color: var(--amber-500); }
.cw-hero-shortcuts--v3 .cw-hero-answer-strip__item--navy   { border-left-color: var(--navy-700); }
.cw-hero-shortcuts--v3 .cw-hero-answer-strip__item--green  { border-left-color: var(--emerald-500); }
.cw-hero-shortcuts--v3 .cw-hero-answer-strip__item--blue   { border-left-color: var(--navy-500); }
.cw-hero-shortcuts--v3 .cw-hero-answer-strip__item--slate  { border-left-color: var(--ink-500); }

.cw-hero-shortcuts--v3 .cw-hero-answer-strip__icon {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--paper-2);
  color: var(--navy-700);
}

.cw-hero-shortcuts--v3 .cw-hero-answer-strip__item--amber  .cw-hero-answer-strip__icon { background: var(--amber-100); color: var(--amber-600); }
.cw-hero-shortcuts--v3 .cw-hero-answer-strip__item--green  .cw-hero-answer-strip__icon { background: rgba(47, 123, 101, 0.12); color: var(--emerald-700); }
.cw-hero-shortcuts--v3 .cw-hero-answer-strip__item--navy   .cw-hero-answer-strip__icon { background: var(--navy-100); color: var(--navy-700); }
.cw-hero-shortcuts--v3 .cw-hero-answer-strip__item--blue   .cw-hero-answer-strip__icon { background: var(--navy-100); color: var(--navy-500); }
.cw-hero-shortcuts--v3 .cw-hero-answer-strip__item--slate  .cw-hero-answer-strip__icon { background: var(--paper-2); color: var(--ink-700); }

.cw-hero-shortcuts--v3 .cw-hero-answer-strip__icon svg {
  width: 18px;
  height: 18px;
}

.cw-hero-shortcuts--v3 .cw-hero-answer-strip__body {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.cw-hero-shortcuts--v3 .cw-hero-answer-strip__body span {
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--navy-700);
}

.cw-hero-shortcuts--v3 .cw-hero-answer-strip__body strong {
  font-size: 13px;
  line-height: 1.2;
  color: var(--ink-900);
  font-weight: 600;
  letter-spacing: -0.005em;
  text-transform: none;
}

.cw-hero-shortcuts--v3 .cw-hero-shortcuts__label {
  display: inline-block;
  text-align: center;
  margin: 0 auto;
  position: relative;
  padding: 0 14px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-500);
}

/* Responsive */
@media (max-width: 1080px) {
  .cw-hero-grid { grid-template-columns: 1fr; gap: 32px; }
}

@media (max-width: 720px) {
  .cw-funnel-hero--v3 { padding: 32px 0 36px; }

  .cw-hero-grid { gap: 24px; }

  .cw-hero-pill {
    font-size: 0.7rem;
    padding: 0.35rem 0.75rem 0.35rem 0.65rem;
  }

  .cw-hero-pill strong { font-size: 0.62rem; }

  .cw-hero-headline {
    font-size: clamp(25px, 6.6vw, 30px);
    line-height: 1.05;
    max-width: none;
  }

  .cw-hero-headline__accent { background-position: 0 0.05em; }

  .cw-hero-lede {
    font-size: 14.5px;
    line-height: 1.5;
  }

  .cw-hero-finder { padding: 16px 16px 14px; border-radius: 14px; }

  .cw-hero-finder__row {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  /* Pin icon to the center of the 50px input on mobile (row becomes vertical) */
  .cw-hero-finder__icon {
    top: 25px;
    transform: translateY(-50%);
  }

  .cw-hero-finder input[type="search"],
  .cw-hero-finder button[type="submit"] {
    height: 50px;
    font-size: 15px;
  }

  .cw-hero-finder input[type="search"] { padding-left: 42px; }

  .cw-hero-rail { padding: 16px; }

  .cw-hero-shortcuts--v3 .cw-hero-answer-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cw-hero-shortcuts--v3 .cw-hero-answer-strip__item {
    padding: 12px;
  }

  /* Soften the blobs on mobile so backgrounds don't overwhelm */
  .cw-hero-blob { opacity: 0.35; filter: blur(60px); }
  .cw-hero-blob--amber  { width: 320px; height: 320px; }
  .cw-hero-blob--emerald { display: none; }
  .cw-hero-blob--navy   { width: 320px; height: 320px; right: -120px; }
}

@media (max-width: 480px) {
  .cw-hero-shortcuts--v3 .cw-hero-answer-strip {
    grid-template-columns: 1fr;
  }
}

/* =========================================================================
   v3.1 — Codex round 2: tighter mobile hero, prominent finder,
   smaller icons, no duplicate answer-cards
   ========================================================================= */

/* Shrink path-card icons ~30% (44 → 32px) */
.cw-funnel-card__icon {
  width: 32px;
  height: 32px;
  border-radius: 9px;
}
.cw-funnel-card__icon svg { width: 16px; height: 16px; }

/* Shrink hero shortcut icons ~30% (36 → 26px) */
.cw-hero-shortcuts--v3 .cw-hero-answer-strip__item {
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 9px;
  padding: 12px 14px;
}
.cw-hero-shortcuts--v3 .cw-hero-answer-strip__icon {
  width: 28px;
  height: 28px;
  border-radius: 8px;
}
.cw-hero-shortcuts--v3 .cw-hero-answer-strip__icon svg {
  width: 14px;
  height: 14px;
}

/* Make the finder INPUT the focal point of the hero. Slightly larger,
   subtle pulse-glow on the border on hover, bigger placeholder so the
   visitor sees what to do without reading the label. */
.cw-hero-finder {
  padding: 18px 22px 18px;
}
.cw-hero-finder label {
  margin-bottom: 8px;
  font-size: 0.74rem;
}
.cw-hero-finder input[type="search"] {
  height: 60px;
  font-size: 16px;
  font-weight: 500;
  border-width: 2px;
}
.cw-hero-finder input[type="search"]::placeholder {
  color: var(--ink-500);
  font-weight: 400;
}
.cw-hero-finder button[type="submit"] {
  height: 60px;
  padding: 0 24px;
  font-size: 15px;
}

/* Soft attention-pulse on the finder card outline (very subtle, calms
   after a few seconds via animation-iteration-count, accessible). */
@keyframes cmh-finder-attention {
  0%, 100% { box-shadow: 0 1px 0 rgba(11, 37, 64, 0.03), 0 24px 56px -20px rgba(11, 37, 64, 0.28), 0 0 0 0 rgba(52, 102, 155, 0); }
  35%      { box-shadow: 0 1px 0 rgba(11, 37, 64, 0.03), 0 24px 56px -20px rgba(11, 37, 64, 0.28), 0 0 0 6px rgba(52, 102, 155, 0.10); }
  70%      { box-shadow: 0 1px 0 rgba(11, 37, 64, 0.03), 0 24px 56px -20px rgba(11, 37, 64, 0.28), 0 0 0 12px rgba(52, 102, 155, 0); }
}
.cw-hero-finder {
  animation: cmh-finder-attention 3.6s var(--ease-out) 1.5s 2;
}
@media (prefers-reduced-motion: reduce) {
  .cw-hero-finder { animation: none; }
}

/* ===== MOBILE: tighter hero, no secondary chiclet row, horizontal chip scroll ===== */
@media (max-width: 720px) {
  .cw-funnel-hero--v3 { padding: 24px 0 28px; }

  .cw-hero-grid { gap: 18px; }

  .cw-hero-grid__primary { gap: 0.85rem; }

  .cw-hero-pill {
    font-size: 0.65rem;
    padding: 0.3rem 0.65rem 0.3rem 0.55rem;
  }
  .cw-hero-pill strong { font-size: 0.6rem; }

  .cw-hero-headline {
    font-size: clamp(23px, 6.5vw, 28px);
    line-height: 1.05;
  }

  .cw-hero-lede {
    font-size: 14px;
    line-height: 1.45;
  }

  .cw-hero-finder {
    padding: 14px 14px 12px;
    border-radius: 12px;
  }
  .cw-hero-finder label {
    font-size: 0.68rem;
    margin-bottom: 6px;
  }
  .cw-hero-finder input[type="search"],
  .cw-hero-finder button[type="submit"] {
    height: 52px;
    font-size: 16px;  /* prevents iOS zoom on focus */
  }

  /* Stack all chips on mobile so every option is visible above the fold.
     Previous horizontal-scroll caused chips 3-4 to be silently cut off. */
  .cw-hero-chips {
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
  }
  .cw-hero-chips__label {
    flex-basis: 100%;
    margin-right: 0;
    margin-bottom: 2px;
  }
  .cw-hero-chips button {
    flex: 1 1 calc(50% - 8px);
    min-width: 0;
    white-space: normal;
    text-align: center;
    padding: 8px 10px;
    font-size: 12.5px;
    line-height: 1.25;
  }

  .cw-hero-microcopy { font-size: 11.5px; line-height: 1.45; }

  .cw-hero-rail { padding: 14px 14px 12px; }
  .cw-hero-rail__title { font-size: 16px; }
  .cw-hero-rail__item { padding: 9px 9px 9px 7px; }
  .cw-hero-rail__link strong { font-size: 13.5px; }

  /* Hide the secondary "Or jump straight to" chiclet row on mobile —
     it was the duplicate Codex flagged. The trending rail and finder
     chips already cover the same intent on mobile. */
  .cw-hero-shortcuts--v3 { display: none; }
}

/* =========================================================================
   v3.2 — Codex round 3: smaller H1, restrained trending title,
   shorter placeholder, microcopy moved to trust strip below hero
   ========================================================================= */

/* H1 trimmed ~9% so the search module breathes. Desktop only — the
   @media (max-width: 720px) rules above govern mobile sizing. */
@media (min-width: 721px) {
  .cw-hero-headline {
    font-size: clamp(32px, 4.5vw, 58px);
    line-height: 1.04;
  }
}

/* Trending rail title: shrink + tighten so the queries dominate */
.cw-hero-rail__title {
  font-size: 15px;
  line-height: 1.3;
  color: var(--ink-700);
  font-weight: 500;
  letter-spacing: -0.01em;
}

/* Bump the queries up so they own the rail */
.cw-hero-rail__link strong {
  font-size: 15px;
  line-height: 1.3;
}

/* Hide the legacy in-finder microcopy — trust strip below the hero serves
   the same role and is more visible there. */
.cw-hero-microcopy { display: none; }

/* Make the trust strip below the hero feel intentional + connected */
.cw-trust-strip--funnel {
  border-top: 0;
  background: linear-gradient(180deg, var(--paper-2) 0%, var(--paper) 100%);
  padding: 22px 0;
}

.cw-trust-strip--funnel .cw-trust-strip__inner {
  position: relative;
  padding-top: 6px;
}

.cw-trust-strip--funnel .cw-trust-strip__label::before {
  content: "Educational routing only — every answer links to its official source. ";
  display: block;
  width: 100%;
  margin-bottom: 12px;
  text-align: center;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
  color: var(--ink-500);
  font-style: italic;
}

@media (max-width: 720px) {
  .cw-trust-strip--funnel .cw-trust-strip__label::before {
    font-size: 11px;
    margin-bottom: 8px;
  }
  .cw-hero-rail__title { font-size: 14px; }
}

/* =========================================================================
   v3.8 mobile reliability fixes
   ========================================================================= */

/* 1. Prevent any rogue wide element from causing horizontal page scroll. */
html, body { overflow-x: clip; max-width: 100%; }

/* 2. Guarantee a minimum gutter on mobile no matter which container variant
      a section uses. Uses safe-area-inset for iOS notch devices. */
@media (max-width: 720px) {
  .cw-container,
  .cw-site-header__inner,
  .cw-site-footer__inner,
  .cw-article,
  .cw-calc,
  .cw-hub {
    padding-left: max(16px, env(safe-area-inset-left, 16px));
    padding-right: max(16px, env(safe-area-inset-right, 16px));
    box-sizing: border-box;
  }
}

/* 3. Wide content (tables, code, images) must contain itself, not push the
      viewport. Tables get a horizontal scroll inside their container. */
.cw-article table,
.cw-calc table,
.cw-calc-layout__main table,
.cw-hub table {
  display: block;
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.cw-article img,
.cw-calc img,
.cw-calc-layout__main img,
.cw-hub img,
.cw-article pre,
.cw-calc pre,
.cw-calc-layout__main pre,
.cw-hub pre {
  max-width: 100%;
  height: auto;
}

/* 3a. Calculator layout grid: force columns to actually shrink instead of
       sizing to content. Without min-width:0 on the main column AND
       minmax(0, 1fr) on the template, a wide table or long word inside
       __main expands the column past the viewport. */
.cw-calc-layout {
  grid-template-columns: minmax(0, 1fr) 320px;
}
.cw-calc-layout__main { min-width: 0; }
@media (max-width: 980px) {
  .cw-calc-layout { grid-template-columns: minmax(0, 1fr); }
}

/* 4. Calculator inline-row result values: undo the white-on-cream / monospace
      treatment that the legacy "big result card" rule (around line 1862) was
      stamping onto every .cw-calc__result-value. The inline-row layout in
      calculator.css uses cream backgrounds with navy text. */
.cw-calc__result-row .cw-calc__result-value {
  color: var(--cw-brand, var(--navy-900));
  font-family: var(--cw-font-serif, "Source Serif 4", Georgia, serif);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1.35;
  text-align: right;
  max-width: 60%;
  word-break: break-word;
}
.cw-calc__result-row .cw-calc__result-value--primary {
  color: var(--cw-brand, var(--navy-900));
  font-size: 1.15rem;
}
@media (max-width: 720px) {
  .cw-calc__result-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }
  .cw-calc__result-row .cw-calc__result-value,
  .cw-calc__result-row .cw-calc__result-value--primary {
    text-align: left;
    max-width: 100%;
    font-size: 1rem;
  }
}

/* 5. WP admin-bar offset. WP renders #wpadminbar at 32px desktop / 46px mobile.
      Without this, sticky headers underlap the bar. Body has class .admin-bar
      when logged in. */
.admin-bar .cw-site-header { top: 32px; }
.admin-bar .cw-site-header__right {
  top: 32px;
  /* Match the new max height to the WP admin bar offset so the drawer
     stops above it instead of sliding behind. */
  max-height: calc(100vh - 32px);
}
@media (max-width: 782px) {
  .admin-bar .cw-site-header { top: 46px; }
  .admin-bar .cw-site-header__right {
    top: 46px;
    max-height: calc(100vh - 46px);
  }
}

/* 6. Footer accordion: tighter padding, default-collapsed on mobile. We can't
      remove the `open` HTML attr from CSS, but we can flip it off-by-default
      on narrow viewports via the JS in site-nav.js (collapses on first paint)
      and tighten spacing here. */
@media (max-width: 640px) {
  .cw-footer__col-title {
    padding: 12px 4px;
    font-size: 0.78rem;
  }
  details.cw-footer__col[open] > *:not(.cw-footer__col-title) {
    padding: 4px 4px 14px;
  }
  .cw-footer__col-title::after {
    font-size: 22px;
    line-height: 1;
  }
}

/* 7. Form fields and CTAs: never wider than viewport. Full-width below 430px
      so the calculator inputs and primary CTAs don't clip. */
input, select, textarea, button { max-width: 100%; box-sizing: border-box; }
@media (max-width: 430px) {
  .cw-calc input,
  .cw-calc select,
  .cw-calc button[type="submit"],
  .cw-hero-finder input,
  .cw-hero-finder button,
  form .cw-btn--primary {
    width: 100%;
  }
}

/* 8. Grid/flex children clipping fix. Without min-width:0 a flex/grid child
      with long text refuses to shrink below its content width and pushes the
      parent past the viewport. Belt for the most common offenders. */
.cw-funnel-card,
.cw-funnel-tools__item,
.cw-hero-rail__item,
.cw-hero-grid__primary,
.cw-hero-grid__secondary,
.cw-hub__card,
.cw-article__body > * {
  min-width: 0;
}

/* 9. Long words / URLs / source citations: wrap instead of overflowing. */
.cw-article__body,
.cw-article__body p,
.cw-article__body li,
.cw-article__body a,
.cw-calc__source,
.cw-context__source {
  overflow-wrap: anywhere;
  word-break: break-word;
}

/* 10. Mobile-specific: hide the old "Or jump straight to" answer-strip below
       720px (already done elsewhere) and ensure the hero finder __row stays
       in column on narrow widths even if a parent style overrides it. */
@media (max-width: 480px) {
  .cw-hero-finder__row { grid-template-columns: 1fr !important; gap: 8px; }
}

/* =========================================================================
   v4.2 — Quick-answer + Next-steps engagement blocks
   ========================================================================= */
.cw-quick-answer {
  margin: 0 0 24px;
  padding: 18px 22px;
  background: #fffbe9;
  border-left: 4px solid #d4a23e;
  border-radius: 10px;
}
.cw-quick-answer p { margin: 0 0 8px; line-height: 1.55; font-size: 1rem; }
.cw-quick-answer p:last-child { margin-bottom: 0; }
.cw-quick-answer__tag { color: #b88a26; font-weight: 700; letter-spacing: .02em; }
.cw-quick-answer__cta { color: #0F2A44; font-weight: 600; text-decoration: underline; margin-left: 4px; white-space: nowrap; }
.cw-quick-answer__cta:hover { color: #b88a26; }

.cw-next-steps { margin: 36px 0 16px; }
.cw-next-steps__heading { font-size: 1.1rem; font-weight: 700; margin: 0 0 14px; color: #0F2A44; letter-spacing: -0.01em; }
.cw-next-steps__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}
.cw-next-steps__card {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 8px 14px;
  padding: 16px 18px;
  background: #fff;
  border: 1px solid #e6e0d3;
  border-left: 4px solid #d4a23e;
  border-radius: 10px;
  text-decoration: none;
  color: inherit;
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.cw-next-steps__card:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 14px -8px rgba(11, 37, 64, 0.18);
  border-left-color: #b88a26;
}
.cw-next-steps__card--rule    { border-left-color: #2F7B65; }
.cw-next-steps__card--compare { border-left-color: #34669B; }
.cw-next-steps__card--mistake { border-left-color: #B23B3B; }
.cw-next-steps__label {
  grid-column: 1 / -1;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #667085;
}
.cw-next-steps__card--rule .cw-next-steps__label    { color: #2F7B65; }
.cw-next-steps__card--compare .cw-next-steps__label { color: #34669B; }
.cw-next-steps__card--mistake .cw-next-steps__label { color: #B23B3B; }
.cw-next-steps__title { font-size: 0.97rem; line-height: 1.35; color: #0F2A44; font-weight: 600; }
.cw-next-steps__arrow { font-size: 1.1rem; color: #b88a26; align-self: end; justify-self: end; transition: transform .15s ease; }
.cw-next-steps__card:hover .cw-next-steps__arrow { transform: translateX(2px); }
@media (max-width: 480px) {
  .cw-next-steps__grid { grid-template-columns: 1fr; }
}

/* =========================================================================
   v4.7 — Cluster blocks (related-cluster aside + 6-factor self-check)
   ========================================================================= */
.cw-related-cluster {
  margin: 28px 0;
  padding: 18px 22px;
  background: #f6f8fb;
  border-radius: 10px;
  border-left: 4px solid #34669B;
}
.cw-related-cluster__heading {
  margin: 0 0 12px;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: #0F2A44;
}
.cw-related-cluster__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.cw-related-cluster__list li { margin: 0; }
.cw-related-cluster__list a {
  display: block;
  padding: 10px 14px;
  background: #fff;
  border: 1px solid #e6e9f0;
  border-radius: 8px;
  text-decoration: none;
  color: #0F2A44;
  transition: border-color .15s ease, transform .15s ease;
}
.cw-related-cluster__list a:hover {
  border-color: #34669B;
  transform: translateX(2px);
}
.cw-related-cluster__list strong { font-size: 0.95rem; line-height: 1.35; display: block; }
.cw-related-cluster__copy { display: block; margin-top: 4px; font-size: 0.85rem; color: #475467; line-height: 1.45; font-weight: 400; }

.cw-self-check {
  margin: 36px 0;
  padding: 24px 22px;
  background: #fff;
  border: 1px solid #e6e0d3;
  border-left: 4px solid #8C5E10;
  border-radius: 12px;
}
.cw-self-check__heading {
  margin: 0 0 8px;
  font-size: 1.25rem;
  letter-spacing: -0.01em;
  color: #0F2A44;
}
.cw-self-check__lede { margin: 0 0 16px; line-height: 1.5; color: #475467; font-size: 0.95rem; }
.cw-self-check__scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.cw-self-check__table {
  width: 100%;
  min-width: 540px;
  border-collapse: collapse;
  margin: 0;
  font-size: 0.9rem;
}
.cw-self-check__table th,
.cw-self-check__table td {
  padding: 10px 12px;
  border-bottom: 1px solid #e6e9f0;
  vertical-align: top;
  text-align: left;
}
.cw-self-check__table thead th {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #8C5E10;
  background: #fffbe9;
}
.cw-self-check__table tbody th[scope="row"] {
  font-weight: 600;
  color: #0F2A44;
  width: 28%;
}
.cw-self-check__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #8C5E10;
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  margin-right: 6px;
  vertical-align: middle;
}
.cw-self-check__label {
  display: inline-block;
  padding: 1px 8px;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-right: 6px;
  vertical-align: middle;
}
.cw-self-check__label--low  { background: #e3f1e9; color: #2F7B65; }
.cw-self-check__label--high { background: #fde7e7; color: #B23B3B; }
.cw-self-check__note { margin: 14px 0 0; font-size: 0.85rem; color: #667085; line-height: 1.5; }

@media (max-width: 640px) {
  .cw-self-check { padding: 18px 16px; }
  .cw-self-check__table { font-size: 0.85rem; }
  .cw-self-check__table th, .cw-self-check__table td { padding: 9px 10px; }
}

/* Decision-path module — 4 stage cards */
.cw-decision-path { margin: 36px 0; }
.cw-decision-path__heading {
  margin: 0 0 6px;
  font-size: 1.25rem;
  letter-spacing: -0.01em;
  color: #0F2A44;
}
.cw-decision-path__lede { margin: 0 0 16px; color: #475467; font-size: 0.95rem; }
.cw-decision-path__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}
.cw-decision-path__card {
  display: flex;
  flex-direction: column;
  padding: 18px 18px 16px;
  background: #fff;
  border: 1px solid #e6e9f0;
  border-radius: 12px;
  border-top: 4px solid #34669B;
  gap: 6px;
}
.cw-decision-path__card:nth-child(1) { border-top-color: #2F7B65; }
.cw-decision-path__card:nth-child(2) { border-top-color: #34669B; }
.cw-decision-path__card:nth-child(3) { border-top-color: #8C5E10; }
.cw-decision-path__card:nth-child(4) { border-top-color: #5B3F8B; }
.cw-decision-path__label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #667085;
}
.cw-decision-path__title {
  font-size: 1rem;
  line-height: 1.3;
  color: #0F2A44;
  font-weight: 700;
}
.cw-decision-path__body {
  margin: 4px 0 8px;
  font-size: 0.92rem;
  line-height: 1.5;
  color: #475467;
}
.cw-decision-path__cta {
  margin-top: auto;
  font-size: 0.9rem;
  font-weight: 600;
  color: #0F2A44;
  text-decoration: none;
}
.cw-decision-path__cta:hover { color: #b88a26; text-decoration: underline; }
@media (max-width: 480px) {
  .cw-decision-path__grid { grid-template-columns: 1fr; }
}
