/* style.css — Citation North Design System */

/* ============================================
   DESIGN TOKENS
   ============================================ */
:root {
  /* Primary */
  --navy:     #0B1628;
  --navy2:    #121F35;
  --navy3:    #1A2B47;
  --gold:     #C8922A;
  --gold2:    #E8B04A;
  --cream:    #F5F0E8;
  --offwhite: #FAF8F4;
  
  /* Text Hierarchy */
  --text:     #E8E4DC;
  --text2:    #B8C4D4;
  --muted:    #8B9CB5;
  
  /* Borders & Dividers */
  --border:   rgba(200, 146, 42, 0.25);
  
  /* Status / Scoring */
  --green:    #4CAF80;
  --green-bg: rgba(76, 175, 128, 0.12);
  --amber:    #D4862A;
  --amber-bg: rgba(212, 134, 42, 0.12);
  --red:      #E05555;
  --red-bg:   rgba(224, 85, 85, 0.12);
  
  /* Query Tier Accents */
  --tier-list:    #B090E8;
  --tier-sit:     #8099E0;
  --tier-comp:    #60A8A8;
  --tier-auth:    #D4B060;

  /* Fonts */
  --font-display: 'DM Serif Display', Georgia, serif;
  --font-body: 'DM Sans', 'Helvetica Neue', Arial, sans-serif;
  --font-brand: 'Syne', 'DM Sans', sans-serif;
  
  /* Spacing */
  --space-1:  0.25rem;
  --space-2:  0.5rem;
  --space-3:  0.75rem;
  --space-4:  1rem;
  --space-5:  1.25rem;
  --space-6:  1.5rem;
  --space-8:  2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;
  --space-32: 8rem;

  /* Content widths */
  --content-narrow: 720px;
  --content-default: 960px;
  --content-wide: 1200px;
}

/* ============================================
   LIGHT MODE OVERRIDES
   ============================================ */
[data-theme="light"] {
  /* Primary */
  --navy:     #FAF8F4;
  --navy2:    #FFFFFF;
  --navy3:    #F0EDE6;

  /* Gold stays warm but darker for contrast on white */
  --gold:     #9A6F1C;
  --gold2:    #7D5A15;

  --cream:    #1A1A1A;
  --offwhite: #FFFFFF;

  /* Text Hierarchy */
  --text:     #3D3D3D;
  --text2:    #5A5A5A;
  --muted:    #8A8A8A;

  /* Borders */
  --border:   rgba(0, 0, 0, 0.1);

  /* Status / Scoring — slightly deeper for white bg */
  --green:    #2E8B57;
  --green-bg: rgba(46, 139, 87, 0.08);
  --amber:    #B8700D;
  --amber-bg: rgba(184, 112, 13, 0.08);
  --red:      #C0392B;
  --red-bg:   rgba(192, 57, 43, 0.08);

  /* Query Tier Accents — deeper for light bg */
  --tier-list:    #7B5EC2;
  --tier-sit:     #4A6BB5;
  --tier-comp:    #3A7F7F;
  --tier-auth:    #9A7D30;
}

/* Light-mode specific overrides for elements using hardcoded colours */
[data-theme="light"] .site-header {
  background: rgba(250, 248, 244, 0.92);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06);
}
[data-theme="light"] .site-header--scrolled {
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
}
[data-theme="light"] .mobile-toggle span {
  background: var(--cream);
}
[data-theme="light"] .mobile-nav {
  background: var(--navy);
}
[data-theme="light"] .btn-primary {
  background: linear-gradient(135deg, #8A5E14, #9A6F1C);
  color: #FFFFFF;
}
[data-theme="light"] .btn-primary:hover {
  background: linear-gradient(135deg, #9A6F1C, #B8860B);
  color: #FFFFFF;
}
[data-theme="light"] .btn-ghost {
  border-color: rgba(154, 111, 28, 0.35);
  color: var(--gold);
}
[data-theme="light"] .btn-ghost:hover {
  border-color: var(--gold);
  background: rgba(154, 111, 28, 0.06);
}
[data-theme="light"] .nav-dropdown-menu {
  background: #FFFFFF;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
  border-color: rgba(0, 0, 0, 0.08);
}
[data-theme="light"] .nav-dropdown-menu a:hover {
  background: rgba(154, 111, 28, 0.05);
}
[data-theme="light"] .case-card-banner {
  background: linear-gradient(135deg, #F0EDE6, #E8E4DC);
}
[data-theme="light"] .case-card-banner::before {
  background: repeating-linear-gradient(
    45deg,
    transparent,
    transparent 20px,
    rgba(154, 111, 28, 0.04) 20px,
    rgba(154, 111, 28, 0.04) 21px
  );
}
[data-theme="light"] .insight-card-image {
  background: linear-gradient(135deg, #F0EDE6, #E8E4DC);
}
[data-theme="light"] .insight-card-image::before {
  background: repeating-linear-gradient(
    45deg, transparent, transparent 30px,
    rgba(154, 111, 28, 0.03) 30px, rgba(154, 111, 28, 0.03) 31px
  );
}
[data-theme="light"] .form-group input,
[data-theme="light"] .form-group textarea,
[data-theme="light"] .form-group select {
  background: #FFFFFF;
  border-color: rgba(0, 0, 0, 0.15);
}
[data-theme="light"] .form-group option {
  background: #FFFFFF;
}
[data-theme="light"] .geo-pattern::before {
  background:
    radial-gradient(ellipse at 20% 50%, rgba(154, 111, 28, 0.04) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 50%, rgba(240, 237, 230, 0.6) 0%, transparent 50%);
}
[data-theme="light"] .step-number {
  background: rgba(154, 111, 28, 0.08);
  border-color: rgba(154, 111, 28, 0.2);
}
[data-theme="light"] .trust-logo-placeholder {
  border-color: rgba(0, 0, 0, 0.12);
}
[data-theme="light"] .deliverables-list li::before {
  background: rgba(154, 111, 28, 0.06);
  border-color: rgba(154, 111, 28, 0.2);
}
[data-theme="light"] .tier-badge--list { background: rgba(123, 94, 194, 0.08); }
[data-theme="light"] .tier-badge--situational { background: rgba(74, 107, 181, 0.08); }
[data-theme="light"] .tier-badge--comparison { background: rgba(58, 127, 127, 0.08); }
[data-theme="light"] .tier-badge--authority { background: rgba(154, 125, 48, 0.08); }
[data-theme="light"] .offer-flow-badge {
  background: #FFFFFF;
}
[data-theme="light"] .cookie-banner {
  background: #FFFFFF;
  box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.06);
}
[data-theme="light"] .pricing-highlight::before {
  background: var(--gold);
  color: #FFFFFF;
}
[data-theme="light"] .skip-link {
  color: #FFFFFF;
}
[data-theme="light"] .gold-line {
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}
[data-theme="light"] .comparison-table td {
  border-bottom-color: rgba(0, 0, 0, 0.06);
}
[data-theme="light"] .comparison-table th {
  border-bottom-color: rgba(0, 0, 0, 0.12);
}
[data-theme="light"] .mobile-nav-links a {
  border-bottom-color: rgba(0, 0, 0, 0.06);
}

/* ============================================
   THEME TOGGLE
   ============================================ */
.theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 2px;
  background: transparent;
  border: 1px solid var(--border);
  cursor: pointer;
  color: var(--muted);
  transition: color 180ms ease, border-color 180ms ease, background 180ms ease;
  flex-shrink: 0;
}
.theme-toggle:hover {
  color: var(--gold);
  border-color: var(--gold);
  background: rgba(200, 146, 42, 0.06);
}
.theme-toggle svg {
  width: 18px;
  height: 18px;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.theme-toggle:hover svg {
  transform: rotate(15deg);
}
/* Show correct icon */
.theme-toggle .icon-sun { display: none; }
.theme-toggle .icon-moon { display: block; }
[data-theme="light"] .theme-toggle .icon-sun { display: block; }
[data-theme="light"] .theme-toggle .icon-moon { display: none; }

/* ============================================
   TYPOGRAPHY
   ============================================ */
h1, h2, h3 {
  font-family: var(--font-display);
  color: var(--cream);
  font-weight: 400;
}

h1 { font-size: clamp(2rem, 1.2rem + 2.5vw, 3rem); }
h2 { font-size: clamp(1.5rem, 1rem + 1.5vw, 2.25rem); }
h3 { font-size: clamp(1.25rem, 1rem + 0.75vw, 1.375rem); }

p { color: var(--text); line-height: 1.7; }
a { color: var(--gold2); text-decoration: none; }
a:hover { color: var(--gold); }

/* ============================================
   BRAND WORDMARK
   ============================================ */
.wordmark {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  line-height: 0;
}
.wordmark-img {
  display: block;
  width: auto;
  height:  40px;
  max-width: 100%;
}
.wordmark--footer .wordmark-img { height:  60px; }
[data-theme="light"] .wordmark-img { filter: brightness(0.85) saturate(1.05); }
@media (max-width: 480px) {
  .wordmark--nav .wordmark-img { height:  36px; }
}
/* Legacy text-fallback colours (used if img fails) */
.wordmark__primary { color: var(--gold); }
.wordmark__secondary { color: var(--muted); margin-left: 0.4em; }
[data-theme="light"] .wordmark__secondary { color: #0B1628; }

/* ============================================
   BUTTONS
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 12px 28px;
  border-radius: 2px;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  gap: 8px;
  line-height: 1.2;
}

.btn-primary {
  background: linear-gradient(135deg, #A06820, #C8922A);
  color: #0B1628;
  border: none;
}
.btn-primary:hover {
  background: linear-gradient(135deg, #C8922A, #E8B04A);
  color: #0B1628;
}

.btn-ghost {
  background: transparent;
  border: 1px solid rgba(200, 146, 42, 0.4);
  color: var(--gold);
}
.btn-ghost:hover {
  border-color: var(--gold);
  background: rgba(200, 146, 42, 0.08);
  color: var(--gold2);
}

.btn-lg {
  padding: 14px 36px;
  font-size: 13px;
}

/* ============================================
   CARDS
   ============================================ */
.card {
  background: var(--navy2);
  border: 1px solid var(--border);
  border-radius: 3px;
  padding: 24px;
}

.card:hover {
  border-color: rgba(200, 146, 42, 0.4);
}

/* ============================================
   LAYOUT
   ============================================ */
.container {
  width: 100%;
  max-width: var(--content-wide);
  margin: 0 auto;
  padding-left: var(--space-6);
  padding-right: var(--space-6);
}

.container--narrow {
  max-width: var(--content-narrow);
}

.container--default {
  max-width: var(--content-default);
}

section {
  padding-block: clamp(var(--space-12), 6vw, var(--space-24));
}

/* ============================================
   HEADER / NAVIGATION
   ============================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(11, 22, 40, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.site-header--hidden { transform: translateY(-100%); }
.site-header--scrolled { box-shadow: 0 4px 24px rgba(0,0,0,0.3); }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  max-width: var(--content-wide);
  margin: 0 auto;
  padding: 0 var(--space-6);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-6);
  list-style: none;
}

.nav-links a {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  color: var(--text2);
  text-decoration: none;
  letter-spacing: 0.01em;
}
.nav-links a:hover { color: var(--cream); }

/* Dropdown */
.nav-dropdown {
  position: relative;
}
.nav-dropdown-trigger {
  display: flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  color: var(--text2);
  background: none;
  border: none;
  padding: 0;
  /* Pad vertically so the trigger's hover-zone meets the dropdown
     bridge (no dead-space between the two). */
  padding-block: 6px;
  margin-block: -6px;
}
.nav-dropdown-trigger:hover { color: var(--cream); }
.nav-dropdown-trigger svg { width: 12px; height: 12px; transition: transform 0.2s; }

.nav-dropdown-menu {
  display: none;
  position: absolute;
  /* Anchored just below the trigger — visual gap is created by margin-top
     instead of `top:` so the ::before bridge can cover it for hover. */
  top: 100%;
  left: 0;
  margin-top: 12px;
  background: var(--navy2);
  border: 1px solid var(--border);
  border-radius: 3px;
  padding: var(--space-2) 0;
  min-width: 240px;
  /* Never wider than the viewport; clamps so it can't be cut off horizontally */
  max-width: min(360px, calc(100vw - 2rem));
  box-shadow: 0 12px 32px rgba(0,0,0,0.4);
  /* Above the sticky header (z 100) and any mid-page elements */
  z-index: 110;
}
/* Invisible bridge above the menu — keeps cursor in the hover region while
   traveling from trigger to menu items. Without this the menu closes the
   moment the cursor crosses the visual gap. */
.nav-dropdown-menu::before {
  content: '';
  position: absolute;
  top: -14px;
  left: 0;
  right: 0;
  height: 14px;
}
.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu,
.nav-dropdown.is-open .nav-dropdown-menu {
  display: block;
}
.nav-dropdown:hover .nav-dropdown-trigger svg,
.nav-dropdown:focus-within .nav-dropdown-trigger svg { transform: rotate(180deg); }

/* Right-anchored variant — for dropdowns near the right edge of the nav,
   so the menu opens leftward and never overflows the viewport. */
.nav-dropdown--right .nav-dropdown-menu {
  left: auto;
  right: 0;
}

.nav-dropdown-menu a {
  display: block;
  padding: 10px 20px;
  font-size: 13px;
  font-weight: 400;
  color: var(--text2);
  white-space: nowrap;
}
.nav-dropdown-menu a:hover,
.nav-dropdown-menu a:focus-visible {
  background: rgba(200, 146, 42, 0.06);
  color: var(--cream);
  outline: none;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

/* Mobile nav */
.mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  background: none;
  border: none;
}
.mobile-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--cream);
  transition: all 0.3s;
}

.mobile-nav {
  display: none;
  position: fixed;
  inset: 0;
  top: 64px;
  background: var(--navy);
  z-index: 99;
  padding: var(--space-6);
  overflow-y: auto;
}
.mobile-nav.is-open { display: block; }

.mobile-nav-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}
.mobile-nav-links a {
  display: block;
  padding: 12px 0;
  font-size: 16px;
  font-weight: 500;
  color: var(--text2);
  text-decoration: none;
  border-bottom: 1px solid rgba(200,146,42,0.1);
}
.mobile-nav-links a:hover { color: var(--cream); }

.mobile-nav-group-title {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  padding-top: var(--space-4);
  padding-bottom: var(--space-2);
}
.mobile-nav-sub a {
  padding-left: var(--space-4);
  font-size: 15px;
}
.mobile-nav-actions {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  padding-top: var(--space-6);
}

@media (max-width: 1024px) {
  .nav-links, .nav-actions { display: none; }
  .mobile-toggle { display: flex; }
  .header-mobile-actions {
    display: flex;
    align-items: center;
    gap: var(--space-3);
  }
}
@media (min-width: 1025px) {
  .header-mobile-actions { display: none; }
}

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
  background: var(--navy2);
  border-top: 1px solid var(--border);
  padding-top: clamp(var(--space-12), 6vw, var(--space-16));
  padding-bottom: var(--space-8);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: var(--space-8);
  max-width: var(--content-wide);
  margin: 0 auto;
  padding: 0 var(--space-6);
}

.footer-brand p {
  font-size: 14px;
  color: var(--text2);
  margin-top: var(--space-2);
  line-height: 1.6;
}

.footer-col h4 {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--cream);
  margin-bottom: var(--space-4);
}

.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: var(--space-2); }
.footer-col a {
  font-size: 14px;
  color: var(--text2);
  text-decoration: none;
}
.footer-col a:hover { color: var(--gold2); }

.footer-bottom {
  max-width: var(--content-wide);
  margin: 0 auto;
  padding: var(--space-6) var(--space-6) 0;
  margin-top: var(--space-8);
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-bottom p {
  font-size: 13px;
  color: var(--muted);
}

@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-6);
  }
  .footer-brand { grid-column: 1 / -1; }
  .footer-bottom {
    flex-direction: column;
    gap: var(--space-2);
    text-align: center;
  }
}

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

/* ============================================
   DECORATIVE ELEMENTS
   ============================================ */
.gold-line {
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  height: 1px;
  width: 200px;
  margin: 0 auto;
}

.gold-line--left {
  background: linear-gradient(90deg, var(--gold), transparent);
  margin: 0;
}

.section-label {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--gold);
  margin-bottom: var(--space-4);
  max-width: none;
}

/* ============================================
   HERO SECTIONS
   ============================================ */
.hero {
  padding: clamp(var(--space-16), 10vw, var(--space-32)) 0 clamp(var(--space-12), 8vw, var(--space-24));
  text-align: center;
  position: relative;
}

.hero h1 {
  font-size: clamp(2.25rem, 1.5rem + 3vw, 3rem);
  max-width: 800px;
  margin: 0 auto var(--space-4);
}

.hero-sub {
  font-size: clamp(1rem, 0.9rem + 0.3vw, 1.125rem);
  color: var(--text2);
  max-width: 640px;
  margin: 0 auto var(--space-8);
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-4);
  flex-wrap: wrap;
}

.hero-note {
  font-size: 13px;
  color: var(--muted);
  margin-top: var(--space-4);
}

/* ============================================
   GRID UTILITIES
   ============================================ */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-6);
}
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
}
.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-6);
}

@media (max-width: 768px) {
  .grid-2, .grid-3, .grid-4 {
    grid-template-columns: 1fr;
  }
}
@media (min-width: 769px) and (max-width: 1024px) {
  .grid-3, .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ============================================
   METRIC NUMBERS
   ============================================ */
.metric {
  font-family: var(--font-body);
  font-weight: 800;
}
.metric--hero { font-size: clamp(3rem, 2rem + 3vw, 4rem); }
.metric--card { font-size: 28px; }
.metric--case { font-size: 36px; }

/* ============================================
   FAQ ACCORDION
   ============================================ */
.faq-item {
  border-bottom: 1px solid var(--border);
}
.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: var(--space-5) 0;
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 600;
  color: var(--cream);
  text-align: left;
  cursor: pointer;
  background: none;
  border: none;
  gap: var(--space-4);
}
.faq-question:hover { color: var(--gold2); }
.faq-question svg {
  flex-shrink: 0;
  width: 20px;
  height:  40px;
  color: var(--gold);
  transition: transform 0.3s;
}
.faq-item.is-open .faq-question svg { transform: rotate(45deg); }

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.faq-answer-inner {
  padding-bottom: var(--space-5);
  font-size: 15px;
  color: var(--text2);
  line-height: 1.7;
}
.faq-item.is-open .faq-answer {
  max-height: 500px;
}

/* ============================================
   TRUST BAR
   ============================================ */
.trust-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-8);
  flex-wrap: wrap;
  padding: var(--space-6) 0;
}

.trust-logo-placeholder {
  width: 120px;
  height: 48px;
  border: 1px dashed rgba(200, 146, 42, 0.2);
  border-radius: 3px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.4;
}

/* ============================================
   COMPARISON TABLE
   ============================================ */
.comparison-table {
  width: 100%;
  border-collapse: collapse;
}
.comparison-table th {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gold);
  padding: var(--space-3) var(--space-4);
  text-align: left;
  border-bottom: 2px solid var(--border);
}
.comparison-table td {
  padding: var(--space-3) var(--space-4);
  font-size: 15px;
  color: var(--text2);
  border-bottom: 1px solid rgba(200, 146, 42, 0.1);
  vertical-align: top;
}
.comparison-table tr:last-child td { border-bottom: none; }

/* ============================================
   STEPS / PROCESS
   ============================================ */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-6);
  counter-reset: step;
}
.step {
  counter-increment: step;
  position: relative;
  padding: var(--space-6);
  background: var(--navy2);
  border: 1px solid var(--border);
  border-radius: 3px;
}
.step-number {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 2px;
  background: rgba(200, 146, 42, 0.1);
  border: 1px solid rgba(200, 146, 42, 0.3);
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 800;
  color: var(--gold);
  margin-bottom: var(--space-4);
}
.step h3 {
  font-family: var(--font-display);
  font-size: 18px;
  color: var(--cream);
  margin-bottom: var(--space-2);
}
.step p {
  font-size: 14px;
  color: var(--text2);
  line-height: 1.6;
}

@media (max-width: 768px) {
  .steps { grid-template-columns: 1fr; }
}
@media (min-width: 769px) and (max-width: 1024px) {
  .steps { grid-template-columns: repeat(2, 1fr); }
}

/* ============================================
   CASE STUDY / TESTIMONIAL
   ============================================ */
.testimonial-block {
  position: relative;
  padding: var(--space-8);
  background: var(--navy2);
  border: 1px solid var(--border);
  border-radius: 3px;
  border-left: 3px solid var(--gold);
}
.testimonial-block blockquote {
  font-family: var(--font-display);
  font-size: clamp(1.125rem, 1rem + 0.5vw, 1.375rem);
  color: var(--cream);
  font-style: italic;
  line-height: 1.6;
  margin-bottom: var(--space-4);
}
.testimonial-block cite {
  font-family: var(--font-body);
  font-size: 14px;
  font-style: normal;
  color: var(--muted);
}

/* ============================================
   CASE STUDY CARD
   ============================================ */
.case-card {
  background: var(--navy2);
  border: 1px solid var(--border);
  border-radius: 3px;
  overflow: hidden;
}
.case-card-banner {
  height: 200px;
  background: linear-gradient(135deg, var(--navy3), var(--navy2));
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.case-card-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    45deg,
    transparent,
    transparent 20px,
    rgba(200, 146, 42, 0.03) 20px,
    rgba(200, 146, 42, 0.03) 21px
  );
}
.case-card-body {
  padding: var(--space-6);
}
.case-card-metrics {
  display: flex;
  gap: var(--space-6);
  margin-bottom: var(--space-4);
  flex-wrap: wrap;
}
.case-metric {
  text-align: center;
}
.case-metric .metric {
  color: var(--gold);
  font-size: 28px;
  font-weight: 800;
  line-height: 1;
}
.case-metric span {
  display: block;
  font-size: 12px;
  color: var(--muted);
  margin-top: 4px;
}

/* ============================================
   FORM STYLES
   ============================================ */
.form-group {
  margin-bottom: var(--space-5);
}
.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--cream);
  margin-bottom: var(--space-2);
  letter-spacing: 0.02em;
}
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px 16px;
  background: var(--navy);
  border: 1px solid var(--border);
  border-radius: 2px;
  color: var(--text);
  font-size: 15px;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(200, 146, 42, 0.15);
}
.form-group textarea { min-height: 120px; resize: vertical; }
.form-group select { cursor: pointer; }
.form-group option { background: var(--navy2); }

/* Honeypot */
.ohnohoney { position: absolute; left: -9999px; }

/* ============================================
   SCORE INDICATOR
   ============================================ */
.score-low { color: var(--red); background: var(--red-bg); }
.score-medium { color: var(--amber); background: var(--amber-bg); }
.score-high { color: var(--green); background: var(--green-bg); }

/* ============================================
   TIER BADGES
   ============================================ */
.tier-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 2px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.tier-badge--list { background: rgba(176, 144, 232, 0.12); color: var(--tier-list); }
.tier-badge--situational { background: rgba(128, 153, 224, 0.12); color: var(--tier-sit); }
.tier-badge--comparison { background: rgba(96, 168, 168, 0.12); color: var(--tier-comp); }
.tier-badge--authority { background: rgba(212, 176, 96, 0.12); color: var(--tier-auth); }

/* ============================================
   COOKIE CONSENT
   ============================================ */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--navy2);
  border-top: 1px solid var(--border);
  padding: var(--space-4) var(--space-6);
  z-index: 200;
  display: none;
}
.cookie-banner.is-visible { display: flex; }
.cookie-banner-inner {
  max-width: var(--content-wide);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  flex-wrap: wrap;
}
.cookie-banner p {
  font-size: 13px;
  color: var(--text2);
  margin: 0;
}
.cookie-banner-actions {
  display: flex;
  gap: var(--space-3);
}

/* ============================================
   SCROLL ANIMATIONS
   ============================================ */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger children */
.reveal-stagger > * {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal-stagger.is-visible > * { opacity: 1; transform: translateY(0); }
.reveal-stagger.is-visible > *:nth-child(1) { transition-delay: 0ms; }
.reveal-stagger.is-visible > *:nth-child(2) { transition-delay: 80ms; }
.reveal-stagger.is-visible > *:nth-child(3) { transition-delay: 160ms; }
.reveal-stagger.is-visible > *:nth-child(4) { transition-delay: 240ms; }
.reveal-stagger.is-visible > *:nth-child(5) { transition-delay: 320ms; }
.reveal-stagger.is-visible > *:nth-child(6) { transition-delay: 400ms; }

/* ============================================
   MISC UTILITIES
   ============================================ */
.text-center { text-align: center; }
.text-gold { color: var(--gold); }
.text-gold2 { color: var(--gold2); }
.text-cream { color: var(--cream); }
.text-muted { color: var(--muted); }
.mt-2 { margin-top: var(--space-2); }
.mt-4 { margin-top: var(--space-4); }
.mt-6 { margin-top: var(--space-6); }
.mt-8 { margin-top: var(--space-8); }
.mb-2 { margin-bottom: var(--space-2); }
.mb-4 { margin-bottom: var(--space-4); }
.mb-6 { margin-bottom: var(--space-6); }
.mb-8 { margin-bottom: var(--space-8); }

.bg-navy2 { background: var(--navy2); }
.border-top { border-top: 1px solid var(--border); }
.border-bottom { border-bottom: 1px solid var(--border); }

/* Subtle geometric background */
.geo-pattern {
  position: relative;
}
.geo-pattern::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(200, 146, 42, 0.04) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 50%, rgba(26, 43, 71, 0.6) 0%, transparent 50%);
  pointer-events: none;
}

/* Skip to content */
.skip-link {
  position: absolute;
  top: -100%;
  left: var(--space-4);
  padding: var(--space-2) var(--space-4);
  background: var(--gold);
  color: var(--navy);
  font-weight: 700;
  font-size: 14px;
  border-radius: 2px;
  z-index: 999;
  text-decoration: none;
}
.skip-link:focus { top: var(--space-2); }

/* Blog grid */
.insights-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: var(--space-6);
}

.insight-card {
  background: var(--navy2);
  border: 1px solid var(--border);
  border-radius: 3px;
  overflow: hidden;
  text-decoration: none;
  display: block;
}
.insight-card:hover { border-color: rgba(200, 146, 42, 0.4); }
.insight-card-image {
  height: 180px;
  background: linear-gradient(135deg, var(--navy3), var(--navy2));
  position: relative;
  overflow: hidden;
}
.insight-card-image::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    45deg, transparent, transparent 30px,
    rgba(200, 146, 42, 0.02) 30px, rgba(200, 146, 42, 0.02) 31px
  );
}
.insight-card-body {
  padding: var(--space-5);
}
.insight-card-category {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gold);
  margin-bottom: var(--space-2);
}
.insight-card-title {
  font-family: var(--font-display);
  font-size: 18px;
  color: var(--cream);
  line-height: 1.35;
  margin-bottom: var(--space-3);
}
.insight-card-excerpt {
  font-size: 14px;
  color: var(--text2);
  line-height: 1.6;
}
.insight-card-meta {
  font-size: 12px;
  color: var(--muted);
  margin-top: var(--space-3);
}

/* Pricing card highlight */
.pricing-highlight {
  border-color: var(--gold);
  box-shadow: 0 0 6px rgba(200, 146, 42, 0.3);
  position: relative;
}
.pricing-highlight::before {
  content: 'Most Popular';
  position: absolute;
  top: 0;
  right: var(--space-4);
  background: var(--gold);
  color: var(--navy);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 4px 12px;
  border-radius: 0 0 2px 2px;
}

/* Progress / offer flow */
.offer-flow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-3);
  flex-wrap: wrap;
  padding: var(--space-6) 0;
}
.offer-flow-step {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}
.offer-flow-badge {
  padding: 8px 16px;
  background: var(--navy2);
  border: 1px solid var(--border);
  border-radius: 2px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text2);
  white-space: nowrap;
}
.offer-flow-arrow {
  color: var(--gold);
  font-size: 14px;
}

/* Deliverables list */
.deliverables-list {
  list-style: none;
  padding: 0;
}
.deliverables-list li {
  padding: var(--space-2) 0;
  padding-left: var(--space-6);
  position: relative;
  font-size: 15px;
  color: var(--text2);
  line-height: 1.6;
}
.deliverables-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 14px;
  width: 16px;
  height: 16px;
  border-radius: 2px;
  background: rgba(200, 146, 42, 0.1);
  border: 1px solid rgba(200, 146, 42, 0.3);
}
.deliverables-list li::after {
  content: '✓';
  position: absolute;
  left: 3px;
  top: 13px;
  font-size: 11px;
  color: var(--gold);
  font-weight: 700;
}

/* ============================================
   PREMIUM POLISH — additive layer
   All effects honor prefers-reduced-motion at the bottom of this file.
   ============================================ */

/* ---- Card hover lift + soft gold-tinted shadow ---- */
.card,
.case-card,
.insight-card,
.offer-card {
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.3s ease,
              box-shadow 0.45s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform;
}
.card:hover,
.case-card:hover,
.insight-card:hover,
.offer-card:hover {
  transform: translateY(-3px);
  box-shadow:
    0 14px 36px -14px rgba(0, 0, 0, 0.55),
    0 0 0 1px rgba(200, 146, 42, 0.18),
    0 10px 28px -10px rgba(200, 146, 42, 0.20) !important;
  border-color: rgba(200, 146, 42, 0.45);
}
[data-theme="light"] .card:hover,
[data-theme="light"] .case-card:hover,
[data-theme="light"] .insight-card:hover,
[data-theme="light"] .offer-card:hover {
  box-shadow:
    0 14px 36px -14px rgba(0, 0, 0, 0.18),
    0 0 0 1px rgba(154, 111, 28, 0.22),
    0 10px 28px -10px rgba(154, 111, 28, 0.18) !important;
  border-color: rgba(154, 111, 28, 0.45);
}

/* ---- Keyboard focus rings on cards (premium accessibility) ---- */
.card:focus-within,
.case-card:focus-within,
.insight-card:focus-within,
.offer-card:focus-within {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(200, 146, 42, 0.22);
}
[data-theme="light"] .card:focus-within,
[data-theme="light"] .case-card:focus-within,
[data-theme="light"] .insight-card:focus-within,
[data-theme="light"] .offer-card:focus-within {
  box-shadow: 0 0 0 3px rgba(154, 111, 28, 0.22);
}

/* ---- Cursor-following glare on feature cards ---- */
.case-card,
.insight-card {
  --glare-x: 50%;
  --glare-y: 50%;
  --glare-opacity: 0;
  position: relative;
  isolation: isolate;
}
.case-card::after,
.insight-card::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(
    520px circle at var(--glare-x) var(--glare-y),
    rgba(232, 176, 74, 0.22),
    transparent 45%
  );
  opacity: var(--glare-opacity);
  transition: opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  mix-blend-mode: soft-light;
  z-index: 3;
  border-radius: inherit;
}
[data-theme="light"] .case-card::after,
[data-theme="light"] .insight-card::after {
  background: radial-gradient(
    520px circle at var(--glare-x) var(--glare-y),
    rgba(154, 111, 28, 0.18),
    transparent 45%
  );
  mix-blend-mode: multiply;
}

/* ---- Primary button shimmer sweep ---- */
.btn-primary {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.btn-primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    transparent 38%,
    rgba(255, 255, 255, 0.32) 50%,
    transparent 62%
  );
  transform: translateX(-110%);
  transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
  mix-blend-mode: overlay;
}
.btn-primary:hover::before {
  transform: translateX(110%);
}

/* ---- Animated underline on top-level nav links + footer links ---- */
.nav-links > li > a,
.footer-col a {
  position: relative;
}
.nav-links > li > a::after,
.footer-col a::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -3px;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
}
.nav-links > li > a:hover::after,
.footer-col a:hover::after,
.nav-links > li > a:focus-visible::after,
.footer-col a:focus-visible::after {
  transform: scaleX(1);
}

/* ---- Hero cursor-aware spotlight ---- */
.hero {
  --spotlight-x: 50%;
  --spotlight-y: 35%;
  --spotlight-opacity: 0;
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: '';
  position: absolute;
  inset: -10%;
  pointer-events: none;
  background: radial-gradient(
    640px circle at var(--spotlight-x) var(--spotlight-y),
    rgba(200, 146, 42, 0.10),
    transparent 55%
  );
  opacity: var(--spotlight-opacity);
  transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 0;
}
[data-theme="light"] .hero::after {
  background: radial-gradient(
    640px circle at var(--spotlight-x) var(--spotlight-y),
    rgba(154, 111, 28, 0.07),
    transparent 55%
  );
}
.hero > * { position: relative; z-index: 1; }

/* ---- Body grain overlay (atmosphere) ---- */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9000;
  opacity: 0.045;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='240' height='240'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 0.55 0'/></filter><rect width='240' height='240' filter='url(%23n)'/></svg>");
  background-size: 240px 240px;
}
[data-theme="light"] body::before {
  opacity: 0.025;
  mix-blend-mode: multiply;
}

/* ---- Chat mockup pulse on highlighted row ---- */
[data-pulse] {
  animation: cn-pulse 3.4s ease-in-out infinite;
}
@keyframes cn-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(200, 146, 42, 0.0); }
  50%      { box-shadow: 0 0 0 4px rgba(200, 146, 42, 0.18); }
}

/* ---- Trust bar marquee ---- */
.trust-bar.is-marquee {
  overflow: hidden;
  position: relative;
  padding: var(--space-6) 0;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  display: block;
}
.trust-marquee-track {
  display: flex;
  align-items: center;
  gap: var(--space-8);
  width: max-content;
  animation: cn-marquee 48s linear infinite;
}
.trust-bar.is-marquee:hover .trust-marquee-track {
  animation-play-state: paused;
}
@keyframes cn-marquee {
  to { transform: translateX(-50%); }
}

/* ---- Reading progress bar (auto-injected on long pages) ---- */
.reading-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  z-index: 105;
  pointer-events: none;
  background: rgba(200, 146, 42, 0.08);
}
.reading-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--gold), var(--gold2));
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.08s linear;
  box-shadow: 0 0 10px rgba(200, 146, 42, 0.45);
}

/* ---- Dropdown menu entrance animation (preserves original display:none/block hover bridge) ---- */
@keyframes cn-dropdown-in {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}
.nav-dropdown:hover > .nav-dropdown-menu,
.nav-dropdown:focus-within > .nav-dropdown-menu,
.nav-dropdown.is-open > .nav-dropdown-menu {
  animation: cn-dropdown-in 0.22s cubic-bezier(0.16, 1, 0.3, 1) both;
}

/* ---- FAQ inner fade for smoother reveal ---- */
.faq-answer-inner {
  opacity: 0;
  transform: translateY(-3px);
  transition: opacity 0.32s cubic-bezier(0.16, 1, 0.3, 1) 0.08s,
              transform 0.32s cubic-bezier(0.16, 1, 0.3, 1) 0.08s;
}
.faq-item.is-open .faq-answer-inner {
  opacity: 1;
  transform: translateY(0);
}

/* ---- Reduced-motion: short-circuit every additive effect ---- */
@media (prefers-reduced-motion: reduce) {
  .card,
  .case-card,
  .insight-card,
  .offer-card { transition: none; }
  .card:hover,
  .case-card:hover,
  .insight-card:hover,
  .offer-card:hover { transform: none; }
  .case-card::after,
  .insight-card::after { display: none; }
  .btn-primary::before { display: none; }
  .nav-links > li > a::after,
  .footer-col a::after { transition: none; }
  .hero::after { display: none; }
  body::before { display: none; }
  [data-pulse] { animation: none; }
  .trust-marquee-track { animation: none; }
  .reading-progress-fill { transition: none; }
  .nav-dropdown:hover > .nav-dropdown-menu,
  .nav-dropdown:focus-within > .nav-dropdown-menu,
  .nav-dropdown.is-open > .nav-dropdown-menu { animation: none; }
  .faq-answer-inner { transition: none; opacity: 1; transform: none; }
}
