/* ============================================
   LIFE ANCHOR NZ — Design System
   Premium insurance advisory practice
   ============================================ */

:root {
  /* Palette */
  --navy-900: #0A1B36;
  --navy-800: #0F2547;
  --navy-700: #1B3560;
  --navy-600: #2A4A7F;
  --navy-500: #4C6A9B;
  --navy-100: #E4EAF3;
  --navy-50:  #F4F7FB;

  --orange-600: #E85A1F;
  --orange-500: #F26522;
  --orange-400: #F58348;
  --orange-100: #FDE8DC;
  --orange-50:  #FEF5EF;

  --gold-600: #B5934D;
  --gold-500: #C9A961;
  --gold-100: #F0E5C9;

  --ivory:    #FAF7F2;
  --ivory-2:  #F5F0E6;

  --white:    #FFFFFF;
  --ink-900:  #0A1220;
  --ink-700:  #2A3547;
  --ink-500:  #566277;
  --ink-400:  #7A8494;
  --ink-300:  #B4BBC6;
  --ink-200:  #D9DEE6;
  --ink-100:  #EEF1F5;

  /* Type */
  --font-display: 'Instrument Serif', 'Fraunces', ui-serif, Georgia, serif;
  --font-body: 'Inter Tight', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, 'SF Mono', monospace;

  /* Radii */
  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 16px;
  --r-xl: 24px;
  --r-full: 999px;

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(10,27,54,.05), 0 1px 3px rgba(10,27,54,.08);
  --shadow-md: 0 4px 12px rgba(10,27,54,.08), 0 2px 4px rgba(10,27,54,.04);
  --shadow-lg: 0 12px 32px rgba(10,27,54,.12), 0 4px 8px rgba(10,27,54,.06);
  --shadow-xl: 0 24px 60px rgba(10,27,54,.18), 0 8px 16px rgba(10,27,54,.08);

  /* Layout */
  --container: 1240px;
  --gutter: clamp(20px, 4vw, 40px);

  /* Motion */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --dur-fast: 200ms;
  --dur-med: 400ms;
  --dur-slow: 700ms;
}

/* ============================================
   RESET / BASE
   ============================================ */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  text-size-adjust: 100%;
  background: var(--white);
}

body {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink-700);
  background: var(--white);
  overflow-x: hidden;
  font-feature-settings: 'ss01', 'cv11';
}

img, svg { display: block; max-width: 100%; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
a { color: inherit; text-decoration: none; }
input, textarea, select { font: inherit; color: inherit; }

/* Focus */
:focus-visible {
  outline: 2px solid var(--orange-500);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: 12px;
  z-index: 400;
  padding: 10px 16px;
  background: var(--navy-900);
  color: var(--white);
  border-radius: var(--r-sm, 6px);
  transform: translateY(-160%);
}
.skip-link:focus,
.skip-link:focus-visible {
  transform: translateY(0);
}

/* ============================================
   TYPE
   ============================================ */
.display-xl, .display-lg, .display-md, .display-sm,
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 400;
  font-style: normal;
  color: var(--navy-900);
  letter-spacing: -0.01em;
  line-height: 1.05;
  text-wrap: balance;
}

.display-xl {
  font-size: clamp(48px, 7.5vw, 104px);
  line-height: 0.98;
  letter-spacing: -0.025em;
}
.display-lg { font-size: clamp(40px, 5.5vw, 76px); line-height: 1.02; letter-spacing: -0.02em; }
.display-md { font-size: clamp(32px, 4vw, 56px); line-height: 1.05; }
.display-sm { font-size: clamp(26px, 3vw, 40px); line-height: 1.1; }

h1 { font-size: clamp(40px, 5vw, 68px); }
h2 { font-size: clamp(30px, 3.5vw, 48px); }
h3 { font-size: clamp(22px, 2vw, 28px); }
h4 { font-size: clamp(18px, 1.5vw, 22px); }

.eyebrow {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--orange-600);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: '';
  width: 28px;
  height: 1px;
  background: var(--orange-500);
}
.eyebrow.center::before { display: none; }

.lede {
  font-size: clamp(18px, 1.4vw, 22px);
  line-height: 1.55;
  color: var(--ink-500);
  text-wrap: pretty;
  max-width: 60ch;
}

em, i, cite, dfn,
h1 em, h2 em, h3 em, h4 em, h5 em, h6 em,
.display-xl em, .display-lg em, .display-md em, .display-sm em,
.hero-title em, .page-hero em, .cta-band em, .lede em, p em {
  font-family: inherit;
  font-style: normal !important;
  font-synthesis: none;
  font-weight: inherit;
}
.display-xl em, .display-lg em, .display-md em, .display-sm em,
h1 em, h2 em, h3 em, .page-hero em {
  color: var(--orange-500);
}

/* ============================================
   LAYOUT
   ============================================ */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.container-narrow {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.container-wide {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}

section { padding: clamp(64px, 9vw, 128px) 0; }
section.tight { padding: clamp(48px, 6vw, 80px) 0; }

.grid { display: grid; gap: 24px; }
.g-2 { grid-template-columns: repeat(2, 1fr); }
.g-3 { grid-template-columns: repeat(3, 1fr); }
.g-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) {
  .g-2, .g-3, .g-4 { grid-template-columns: 1fr; }
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 26px;
  border-radius: var(--r-full);
  font-weight: 500;
  font-size: 15px;
  letter-spacing: -0.01em;
  transition: all var(--dur-fast) var(--ease-out);
  cursor: pointer;
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: var(--orange-500);
  color: var(--white);
  box-shadow: 0 4px 14px rgba(242, 101, 34, 0.28);
}
.btn-primary:hover {
  background: var(--orange-600);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(242, 101, 34, 0.36);
}

.btn-navy {
  background: var(--navy-900);
  color: var(--white);
}
.btn-navy:hover {
  background: var(--navy-800);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-ghost {
  background: transparent;
  color: var(--navy-900);
  border: 1.5px solid var(--ink-200);
}
.btn-ghost:hover {
  border-color: var(--navy-900);
  background: var(--navy-50);
}

.btn-ghost-light {
  background: transparent;
  color: var(--white);
  border: 1.5px solid rgba(255,255,255,0.3);
}
.btn-ghost-light:hover {
  border-color: var(--white);
  background: rgba(255,255,255,0.08);
}

.btn-link {
  color: var(--navy-900);
  padding: 0;
  border-radius: 0;
  background: none;
  font-weight: 500;
  gap: 8px;
  transition: gap var(--dur-fast) var(--ease-out);
}
.btn-link:hover { gap: 14px; color: var(--orange-500); }
.btn-link .arrow { transition: transform var(--dur-fast); }

.btn .arrow {
  display: inline-block;
  transition: transform var(--dur-fast) var(--ease-out);
}
.btn:hover .arrow { transform: translateX(4px); }

.btn-lg { padding: 18px 32px; font-size: 16px; }

/* ============================================
   NAV
   ============================================ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 18px 0;
  transition: all var(--dur-med) var(--ease-out);
  background: rgba(255,255,255,0);
}
.nav.scrolled {
  background: rgba(255,255,255,0.92);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  padding: 12px 0;
  border-bottom: 1px solid var(--ink-100);
}
.nav.dark-nav:not(.scrolled) { color: var(--white); }
.nav.dark-nav:not(.scrolled) .nav-menu {
  background: rgba(250, 247, 242, 0.88);
  backdrop-filter: blur(12px);
  border-radius: var(--r-full);
  padding: 4px 6px;
}
.nav.dark-nav:not(.scrolled) .nav-link {
  color: var(--navy-800);
  font-weight: 500;
}
.nav.dark-nav:not(.scrolled) .nav-link:hover,
.nav.dark-nav:not(.scrolled) .nav-link.active {
  color: var(--orange-500);
}
.nav.dark-nav:not(.scrolled) .btn-ghost {
  color: var(--navy-800);
  background: rgba(250, 247, 242, 0.88);
  border-color: rgba(10, 27, 54, 0.12);
  backdrop-filter: blur(12px);
}
.nav.dark-nav:not(.scrolled) .btn-ghost:hover {
  background: var(--navy-900);
  color: var(--white);
  border-color: var(--navy-900);
}
.nav.dark-nav:not(.scrolled) .logo-light { display: block; }
.nav.dark-nav:not(.scrolled) .logo-dark { display: none; }
.logo-light { display: none; }

.nav-inner {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 max(var(--gutter), env(safe-area-inset-right));
  padding-left: max(var(--gutter), env(safe-area-inset-left));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-width: 0;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 20px;
  color: var(--navy-900);
  flex-shrink: 0;
}
.logo img { height: 48px; width: auto; background: #fff; border-radius: 8px; padding: 6px 10px; }
.nav.scrolled .logo img { height: 42px; padding: 4px 8px; }

.nav-menu {
  display: flex;
  align-items: center;
  gap: 6px;
  list-style: none;
}
.nav-link {
  padding: 8px 14px;
  font-size: 14.5px;
  color: var(--ink-700);
  border-radius: var(--r-full);
  transition: all var(--dur-fast);
  font-weight: 450;
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.nav-link:hover { color: var(--navy-900); }
.nav-link.active { color: var(--orange-500); }

.nav-dropdown {
  position: relative;
}
.nav-dropdown::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  height: 16px;
}
.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%) translateY(-8px);
  min-width: 320px;
  background: var(--white);
  border: 1px solid var(--ink-100);
  border-radius: var(--r-lg);
  padding: 10px;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  pointer-events: none;
  transition: all var(--dur-fast) var(--ease-out);
}
.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}
.nav-dropdown-item {
  display: block;
  padding: 10px 14px;
  border-radius: var(--r-md);
  color: var(--ink-700);
  font-size: 14.5px;
  transition: background var(--dur-fast);
}
.nav-dropdown-item:hover {
  background: var(--navy-50);
  color: var(--navy-900);
}
.nav-dropdown-item .sub {
  display: block;
  font-size: 12.5px;
  color: var(--ink-400);
  margin-top: 2px;
}

.nav-cta { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  color: #fff;
  background: var(--navy-900);
  border: 0;
  flex: 0 0 44px;
  margin-left: auto;
  cursor: pointer;
  z-index: 2;
  box-shadow: 0 2px 10px rgba(10,27,54,0.25);
}
.nav-toggle svg {
  width: 22px;
  height: 22px;
  max-width: none;
  flex-shrink: 0;
}

@media (max-width: 1080px) {
  .nav-inner { gap: 8px; }
  .nav-menu { display: none !important; }
  .nav-cta {
    display: flex !important;
    flex: 1 1 auto;
    justify-content: flex-end;
    min-width: 0;
    gap: 8px;
  }
  .nav-cta .nav-docs { display: inline-flex !important; }
  .nav-cta .btn-primary {
    padding: 10px 14px;
    font-size: 13px;
  }
  .nav-toggle {
    display: inline-flex !important;
    margin-left: 0;
  }
  .logo img { height: 40px; padding: 4px 8px; }
}
@media (max-width: 520px) {
  .nav-book-full,
  .nav-cta .btn-primary .arrow { display: none; }
  .nav-cta .btn-primary { padding: 10px 12px; }
}

/* Mobile menu */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: var(--navy-900);
  color: var(--white);
  padding: 80px var(--gutter) 40px;
  overflow-y: auto;
  transform: translateY(-100%);
  transition: transform var(--dur-med) var(--ease-in-out);
}
.mobile-menu.open { transform: translateY(0); }
.mobile-menu-close {
  position: absolute;
  top: 20px; right: var(--gutter);
  width: 40px; height: 40px;
  color: var(--white);
}
.mobile-menu ul { list-style: none; }
.mobile-menu a {
  display: block;
  padding: 14px 0;
  font-size: 22px;
  font-family: var(--font-display);
  border-bottom: 1px solid rgba(255,255,255,0.1);
  color: var(--white);
}
.mobile-menu .mm-section { font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--orange-400); margin: 30px 0 10px; }
.mobile-menu .mm-sub a { font-size: 17px; padding: 10px 0; padding-left: 16px; }

/* ============================================
   HERO
   ============================================ */
.hero {
  position: relative;
  min-height: 100svh;
  min-height: 100vh;
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  padding-top: 112px;
  padding-bottom: 48px;
  color: var(--white);
  overflow: hidden;
  background: var(--navy-900);
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}
.hero-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(10,27,54,0.55) 0%, rgba(10,27,54,0.22) 36%, rgba(10,27,54,0) 62%),
    linear-gradient(180deg, rgba(10,27,54,0.06) 0%, rgba(10,27,54,0.08) 42%, rgba(10,27,54,0.5) 100%);
}
.hero-bg::after {
  /* subtle grain */
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.06 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
  opacity: 0.18;
  pointer-events: none;
}

.hero-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 92% 18%;
  opacity: 0;
  transform: scale(1.06);
  filter: brightness(1.08) contrast(1.12) saturate(1.08);
  transition: opacity 1.1s ease, transform 5.5s ease;
}
.hero-photo.is-active {
  opacity: 1;
  transform: scale(1);
  z-index: 0;
}
.hero-carousel-ui {
  position: static;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.hero-carousel-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.35);
  background: rgba(10,27,54,0.35);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(8px);
}
.hero-carousel-btn:hover { border-color: #fff; background: rgba(10,27,54,0.55); }
.hero-dots { display: flex; gap: 7px; padding: 0 6px; }
.hero-dots button {
  width: 8px;
  height: 8px;
  padding: 0;
  border-radius: 50%;
  background: rgba(255,255,255,0.35);
  border: 0;
}
.hero-dots button.is-active { background: var(--orange-400); width: 22px; border-radius: 99px; }

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 1100px;
  margin: 0;
  text-align: left;
}

.hero-eyebrow,
.hero .hero-eyebrow.eyebrow {
  color: var(--orange-500);
  margin-bottom: 24px;
  font-size: 13px;
  letter-spacing: 0.18em;
  text-shadow: 0 1px 0 rgba(255,255,255,0.75), 0 1px 10px rgba(10,27,54,0.45);
}
.hero-eyebrow::before,
.hero .hero-eyebrow.eyebrow::before {
  background: var(--orange-500);
  box-shadow: 0 0 0 1px rgba(255,255,255,0.35);
}

.hero-title {
  font-family: "Fraunces", var(--font-display);
  font-weight: 350;
  font-optical-sizing: auto;
  font-size: clamp(46px, 8.2vw, 108px);
  line-height: 0.94;
  letter-spacing: -0.04em;
  color: var(--white);
  margin-bottom: 28px;
  text-align: left;
  text-wrap: balance;
  text-shadow: 0 2px 18px rgba(10,27,54,0.55);
}
.hero-title em {
  color: var(--white);
  font-style: normal;
  font-weight: 350;
  font-family: inherit;
  text-shadow: 0 2px 18px rgba(10,27,54,0.55);
}

.hero-lede {
  color: var(--gold-100);
  font-size: clamp(18px, 1.6vw, 23px);
  font-weight: 500;
  line-height: 1.55;
  max-width: 40em;
  margin-bottom: 40px;
  text-shadow: 0 1px 2px rgba(10,27,54,0.75), 0 4px 16px rgba(10,27,54,0.55);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}
.hero-cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 28px;
}
@media (min-width: 901px) {
  .hero-cta-row {
    flex-wrap: nowrap;
  }
}
@media (min-width: 901px) and (max-height: 900px) {
  .hero-title {
    font-size: clamp(40px, 8vh, 72px);
    margin-bottom: 16px;
  }
  .hero-lede { margin-bottom: 22px; font-size: 18px; }
  .hero-eyebrow, .hero .hero-eyebrow.eyebrow { margin-bottom: 14px; }
}
@media (min-width: 901px) and (max-height: 760px) {
  .hero {
    min-height: 0;
    padding-bottom: 32px;
  }
  .hero-title {
    font-size: clamp(34px, 7vh, 56px);
  }
}

@media (max-width: 900px) {
  .hero {
    align-items: flex-end;
    padding-top: 104px;
    padding-bottom: 40px;
  }
  .hero-content {
    width: auto;
    max-width: 100%;
    margin-top: 0;
  }
  .hero-photo {
    object-position: 85% 10%;
  }
  .hero-bg::before {
    background:
      linear-gradient(90deg, rgba(10,27,54,0.5) 0%, rgba(10,27,54,0.18) 40%, rgba(10,27,54,0) 70%),
      linear-gradient(180deg, rgba(10,27,54,0.08) 0%, rgba(10,27,54,0.1) 40%, rgba(10,27,54,0.55) 100%);
  }
}

.hero-scroll,
.hero-scroll-line {
  display: none !important;
}

/* ============================================
   TRUST BAR
   ============================================ */
.trust-strip {
  background: var(--navy-900);
  color: var(--white);
  padding: 0;
  position: relative;
  z-index: 2;
}
.trust-strip-inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  padding: 40px 0;
}
.trust-item {
  padding: 8px 32px;
  border-right: 1px solid rgba(255,255,255,0.1);
  text-align: left;
}
.trust-item:last-child { border-right: none; }
.trust-num {
  font-family: var(--font-display);
  font-size: clamp(36px, 4vw, 56px);
  line-height: 1;
  color: var(--white);
  letter-spacing: -0.02em;
  margin-bottom: 8px;
  display: flex;
  align-items: baseline;
  gap: 4px;
}
.trust-num .plus { color: var(--orange-400); font-size: 0.7em; }
.trust-label {
  font-size: 13px;
  letter-spacing: 0.05em;
  color: rgba(255,255,255,0.7);
  text-transform: uppercase;
}
@media (max-width: 900px) {
  .trust-strip-inner { grid-template-columns: repeat(2, 1fr); }
  .trust-item:nth-child(2) { border-right: none; }
  .trust-item:nth-child(1), .trust-item:nth-child(2) { border-bottom: 1px solid rgba(255,255,255,0.1); }
}

/* ============================================
   CARDS / SERVICES
   ============================================ */
.service-card {
  background: var(--white);
  border: 1px solid var(--ink-100);
  border-radius: var(--r-lg);
  padding: 36px 32px;
  transition: all var(--dur-med) var(--ease-out);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 320px;
}
.service-card:hover {
  border-color: var(--navy-900);
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.service-card::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 3px;
  background: var(--orange-500);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--dur-med) var(--ease-out);
}
.service-card:hover::after { transform: scaleX(1); }

.service-num {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-400);
  letter-spacing: 0.05em;
  margin-bottom: 24px;
}
.service-card h3 {
  margin-bottom: 12px;
  font-size: clamp(22px, 1.8vw, 26px);
}
.service-card p {
  color: var(--ink-500);
  font-size: 15.5px;
  margin-bottom: 24px;
  flex-grow: 1;
}
.service-card .arrow-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--navy-900);
  font-weight: 500;
  font-size: 14px;
  transition: gap var(--dur-fast);
}
.service-card:hover .arrow-btn { gap: 14px; color: var(--orange-500); }

/* ============================================
   SECTION VARIANTS
   ============================================ */
.sec-navy {
  background: var(--navy-900);
  color: var(--white);
}
.sec-navy h1, .sec-navy h2, .sec-navy h3, .sec-navy h4 { color: var(--white); }
.sec-navy .lede { color: rgba(255,255,255,0.75); }
.sec-navy .eyebrow { color: var(--orange-400); }
.sec-navy .eyebrow::before { background: var(--orange-400); }

.sec-ivory { background: var(--ivory); }
.sec-white { background: var(--white); }

.section-header {
  max-width: 780px;
  margin-bottom: 60px;
}
.section-header.center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}
.section-header .eyebrow { margin-bottom: 20px; }
.section-header h2 { margin-bottom: 20px; }

/* ============================================
   IMAGE PLACEHOLDERS
   ============================================ */
.img-placeholder {
  position: relative;
  background: linear-gradient(135deg, var(--navy-50) 0%, var(--ivory-2) 100%);
  border-radius: var(--r-lg);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 300px;
  border: 1px dashed var(--ink-200);
}
.img-placeholder::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 30% 40%, rgba(242,101,34,0.08), transparent 50%),
    radial-gradient(circle at 70% 60%, rgba(10,27,54,0.06), transparent 50%);
}
.img-placeholder .ph-label {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 24px;
  max-width: 80%;
}
.img-placeholder .ph-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--white);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
  box-shadow: var(--shadow-sm);
  font-size: 22px;
}
.img-placeholder .ph-title {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--navy-900);
  margin-bottom: 6px;
}
.img-placeholder .ph-desc {
  font-size: 13.5px;
  color: var(--ink-500);
  line-height: 1.4;
}

.photo-frame {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  min-height: 280px;
  background: var(--navy-50);
}
.photo-frame img {
  width: 100%;
  height: 100%;
  min-height: 280px;
  object-fit: cover;
  object-position: center top;
  display: block;
}

/* Navroop portrait */
.portrait-frame {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  aspect-ratio: 4/5;
  background: var(--navy-50);
}
.portrait-frame img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 30%;
}
.portrait-badge {
  position: absolute;
  bottom: 24px; left: 24px;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(8px);
  padding: 14px 18px;
  border-radius: var(--r-md);
  display: flex;
  align-items: center;
  gap: 12px;
}
.portrait-badge-num {
  font-family: var(--font-display);
  font-size: 32px;
  color: var(--orange-500);
  line-height: 1;
}
.portrait-badge-label {
  font-size: 12px;
  color: var(--ink-500);
  line-height: 1.3;
}

/* ============================================
   TESTIMONIALS
   ============================================ */
.testi-card {
  background: var(--white);
  border-radius: var(--r-lg);
  padding: 36px;
  border: 1px solid var(--ink-100);
  transition: all var(--dur-med);
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.testi-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}
.testi-quote {
  font-family: var(--font-display);
  font-style: normal;
  font-size: 22px;
  line-height: 1.4;
  color: var(--navy-900);
  letter-spacing: -0.01em;
}
.testi-quote::before {
  content: '“';
  display: block;
  font-size: 60px;
  line-height: 0.5;
  color: var(--orange-500);
  margin-bottom: 20px;
}
.testi-person {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: auto;
}
.testi-avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--navy-500), var(--navy-700));
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 500;
  font-size: 15px;
  overflow: hidden;
  flex: none;
}
.testi-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.testi-name { font-weight: 500; color: var(--navy-900); font-size: 15px; }
.testi-role { font-size: 13px; color: var(--ink-400); }

.stars { display: inline-flex; gap: 2px; color: var(--orange-500); }
.stars svg { width: 16px; height: 16px; }

/* ============================================
   BADGE / PILL
   ============================================ */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: var(--r-full);
  background: var(--orange-50);
  color: var(--orange-600);
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0.02em;
}
.badge-navy { background: var(--navy-50); color: var(--navy-900); }
.badge-gold {
  background: var(--gold-100);
  color: var(--gold-600);
  border: 1px solid rgba(181,147,77,0.2);
}
.badge-light { background: rgba(255,255,255,0.14); color: var(--white); }

.badge-row {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

/* MDRT-style credential badge */
.cred-badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 10px 18px 10px 12px;
  background: var(--white);
  border: 1px solid var(--gold-100);
  border-radius: var(--r-full);
  box-shadow: var(--shadow-sm);
}
.cred-badge-icon {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold-500), var(--gold-600));
  color: var(--white);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
}
.cred-badge-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}
.cred-badge-title { font-size: 13px; font-weight: 500; color: var(--navy-900); }
.cred-badge-sub { font-size: 11px; color: var(--ink-400); }

/* ============================================
   ACCORDION / FAQ
   ============================================ */
.faq-item {
  border-bottom: 1px solid var(--ink-100);
}
.faq-question {
  width: 100%;
  padding: 24px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  text-align: left;
  font-family: var(--font-display);
  font-size: clamp(18px, 1.5vw, 22px);
  color: var(--navy-900);
  transition: color var(--dur-fast);
}
.faq-question:hover { color: var(--orange-500); }
.faq-icon {
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 1px solid var(--ink-200);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all var(--dur-fast);
  color: var(--navy-900);
}
.faq-icon::before, .faq-icon::after {
  content: '';
  position: absolute;
  background: currentColor;
  transition: transform var(--dur-med) var(--ease-out);
}
.faq-icon::before { width: 12px; height: 1.5px; }
.faq-icon::after { width: 1.5px; height: 12px; }
.faq-item.open .faq-icon {
  background: var(--orange-500);
  color: var(--white);
  border-color: var(--orange-500);
}
.faq-item.open .faq-icon::after { transform: scaleY(0); }
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--dur-med) var(--ease-out);
}
.faq-answer-inner {
  padding: 0 0 28px 0;
  color: var(--ink-500);
  font-size: 16px;
  max-width: 70ch;
  line-height: 1.65;
}
.faq-item.open .faq-answer { max-height: 600px; }

/* FAQ Groups */
.faq-group { margin-bottom: 40px; }
.faq-group-title {
  font-family: var(--font-body);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--orange-600);
  margin-bottom: 16px;
}

.faq-search {
  position: relative;
  margin-bottom: 40px;
}
.faq-search input {
  width: 100%;
  padding: 18px 20px 18px 54px;
  border: 1px solid var(--ink-200);
  border-radius: var(--r-full);
  background: var(--white);
  font-size: 16px;
  transition: all var(--dur-fast);
}
.faq-search input:focus {
  outline: none;
  border-color: var(--navy-900);
  box-shadow: 0 0 0 4px var(--navy-50);
}
.faq-search svg {
  position: absolute;
  left: 22px; top: 50%;
  transform: translateY(-50%);
  color: var(--ink-400);
  width: 20px; height: 20px;
}

/* ============================================
   FORM
   ============================================ */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 20px;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
@media (max-width: 600px) {
  .form-row { grid-template-columns: 1fr; }
}
.form-label {
  font-size: 13px;
  color: var(--navy-900);
  font-weight: 500;
  letter-spacing: 0.01em;
}
.form-label .req { color: var(--orange-500); }
.form-input, .form-select, .form-textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--ink-200);
  border-radius: var(--r-md);
  background: var(--white);
  font-size: 15.5px;
  color: var(--navy-900);
  transition: all var(--dur-fast);
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
  outline: none;
  border-color: var(--navy-900);
  box-shadow: 0 0 0 3px var(--navy-50);
}
.form-textarea { resize: vertical; min-height: 120px; }

.form-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  color: var(--ink-500);
  line-height: 1.5;
}
.form-check input {
  width: 18px; height: 18px;
  margin-top: 2px;
  accent-color: var(--orange-500);
  flex-shrink: 0;
}

.form-radio-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.form-radio {
  position: relative;
}
.form-radio input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.form-radio label {
  display: inline-flex;
  align-items: center;
  padding: 10px 18px;
  border: 1px solid var(--ink-200);
  border-radius: var(--r-full);
  font-size: 14px;
  cursor: pointer;
  transition: all var(--dur-fast);
  background: var(--white);
  color: var(--ink-700);
}
.form-radio input:checked + label {
  background: var(--navy-900);
  border-color: var(--navy-900);
  color: var(--white);
}
.form-radio label:hover { border-color: var(--navy-900); }

/* Date/time slot picker */
.slot-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
  gap: 8px;
}
.slot {
  padding: 12px 14px;
  border: 1px solid var(--ink-200);
  border-radius: var(--r-md);
  background: var(--white);
  font-size: 14px;
  color: var(--navy-900);
  text-align: center;
  cursor: pointer;
  transition: all var(--dur-fast);
}
.slot:hover { border-color: var(--navy-900); }
.slot.active {
  background: var(--navy-900);
  color: var(--white);
  border-color: var(--navy-900);
}
.slot.disabled {
  color: var(--ink-300);
  background: var(--ink-100);
  cursor: not-allowed;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  background: var(--navy-900);
  color: rgba(255,255,255,0.75);
  padding: 80px 0 max(40px, env(safe-area-inset-bottom));
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 60px;
  margin-bottom: 60px;
}
@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
}
@media (max-width: 600px) {
  .footer-grid { grid-template-columns: 1fr; }
}
.footer-brand h3 {
  color: var(--white);
  font-family: var(--font-display);
  font-size: 32px;
  margin-bottom: 16px;
}
.footer-brand p {
  font-size: 15px;
  line-height: 1.6;
  max-width: 340px;
  margin-bottom: 24px;
}
.footer-col-title {
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--orange-400);
  margin-bottom: 20px;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.footer-col a { font-size: 14.5px; transition: color var(--dur-fast); }
.footer-col a:hover { color: var(--white); }

.footer-contact li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14.5px;
}
.footer-contact svg { width: 16px; height: 16px; flex-shrink: 0; margin-top: 3px; color: var(--orange-400); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  font-size: 13px;
  color: rgba(255,255,255,0.5);
}
.footer-legal { display: flex; gap: 24px; }

.social-links { display: flex; gap: 12px; margin-top: 22px; }
.social-link {
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  transition: transform var(--dur-fast), box-shadow var(--dur-fast);
}
.social-link.social-ig,
.social-ig {
  background: radial-gradient(circle at 30% 110%, #fccc63 0%, #fbad50 20%, #e6683c 40%, #dc2743 60%, #cc2366 75%, #bc1888 100%);
  box-shadow: 0 6px 16px rgba(188, 24, 136, 0.35);
}
.social-link.social-li,
.social-li {
  background: #0A66C2;
  box-shadow: 0 6px 16px rgba(10, 102, 194, 0.35);
}
.social-link:hover,
.social-row a:hover {
  transform: translateY(-3px) scale(1.06);
  color: #fff;
}
.social-link svg { width: 20px; height: 20px; }

/* ============================================
   PAGE HEADER (subpage hero)
   ============================================ */
.page-hero {
  background: var(--navy-900);
  color: var(--white);
  padding: 180px 0 100px;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(600px 400px at 90% 100%, rgba(242,101,34,0.12), transparent 60%),
    radial-gradient(500px 300px at 0% 20%, rgba(76,106,155,0.2), transparent 60%);
}
.page-hero-content { position: relative; z-index: 2; max-width: 820px; }
.page-hero .eyebrow { color: var(--orange-400); margin-bottom: 24px; }
.page-hero .eyebrow::before { background: var(--orange-400); }
.page-hero h1 { color: var(--white); margin-bottom: 24px; }
.page-hero .lede { color: rgba(255,255,255,0.8); }

.breadcrumb {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  font-size: 13px;
  color: rgba(255,255,255,0.6);
  margin-bottom: 30px;
}
.breadcrumb a { color: rgba(255,255,255,0.6); transition: color var(--dur-fast); }
.breadcrumb a:hover { color: var(--orange-400); }
.breadcrumb .sep { color: rgba(255,255,255,0.3); }

/* ============================================
   PILLARS / VALUE PROPS
   ============================================ */
.pillar {
  padding: 32px 0;
  border-top: 1px solid var(--ink-100);
  display: grid;
  grid-template-columns: 60px 1fr auto;
  gap: 32px;
  align-items: start;
  transition: all var(--dur-med);
}
.pillar:hover { padding-left: 12px; }
.pillar:hover .pillar-arrow { color: var(--orange-500); transform: translateX(6px); }
.pillar-num {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--orange-500);
  padding-top: 6px;
}
.pillar h3 {
  font-size: clamp(22px, 2vw, 28px);
  margin-bottom: 10px;
}
.pillar p {
  color: var(--ink-500);
  max-width: 60ch;
}
.pillar-arrow {
  color: var(--ink-300);
  transition: all var(--dur-med) var(--ease-out);
  padding-top: 6px;
}
@media (max-width: 700px) {
  .pillar { grid-template-columns: 40px 1fr; }
  .pillar-arrow { display: none; }
}

/* ============================================
   ARTICLE / BLOG
   ============================================ */
.article-card {
  display: flex;
  flex-direction: column;
  gap: 20px;
  cursor: pointer;
  transition: all var(--dur-med);
}
.article-card:hover { transform: translateY(-4px); }
.article-cover {
  aspect-ratio: 4/3;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--navy-50);
  position: relative;
}
.article-cover .img-placeholder {
  min-height: 100%;
  border-radius: 0;
  border: none;
}
.article-cover .photo-frame,
.article-cover .photo-frame img {
  min-height: 100%;
  height: 100%;
  border-radius: 0;
}
.article-meta {
  display: flex;
  gap: 12px;
  align-items: center;
  font-size: 12px;
  color: var(--ink-400);
  letter-spacing: 0.02em;
}
.article-meta .dot { width: 3px; height: 3px; border-radius: 50%; background: var(--ink-300); }
.article-card h3 {
  font-size: clamp(20px, 1.5vw, 24px);
  transition: color var(--dur-fast);
}
.article-card:hover h3 { color: var(--orange-500); }
.article-card p {
  color: var(--ink-500);
  font-size: 15px;
}

/* ============================================
   CTA BAND
   ============================================ */
.cta-band {
  background: var(--navy-900);
  color: var(--white);
  padding: clamp(64px, 8vw, 100px) 0;
  position: relative;
  overflow: hidden;
}
.cta-band::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(800px 500px at 100% 50%, rgba(242,101,34,0.14), transparent 60%);
}
.cta-band-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 60px;
  align-items: center;
}
@media (max-width: 900px) {
  .cta-band-inner { grid-template-columns: 1fr; gap: 32px; }
}
.cta-band h2 {
  color: var(--white);
  margin-bottom: 16px;
  font-size: clamp(32px, 3.5vw, 48px);
}
.cta-band h2 em {
  color: var(--white);
  font-style: normal;
}
.cta-band p {
  color: rgba(255,255,255,0.75);
  font-size: 18px;
  max-width: 500px;
}
.cta-band-actions { display: flex; gap: 12px; justify-content: flex-end; flex-wrap: wrap; }
@media (max-width: 900px) { .cta-band-actions { justify-content: flex-start; } }

/* ============================================
   REVEAL ANIMATION
   ============================================ */
/* Progressive enhancement: only hide reveals if JS has marked <html class="js"> */
.js .reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out);
}
.js .reveal.in {
  opacity: 1;
  transform: translateY(0);
}
.reveal.delay-1 { transition-delay: 0.1s; }
.reveal.delay-2 { transition-delay: 0.2s; }
.reveal.delay-3 { transition-delay: 0.3s; }
.reveal.delay-4 { transition-delay: 0.4s; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

/* ============================================
   MISC
   ============================================ */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.split.stagger { align-items: start; }
@media (max-width: 900px) {
  .split { grid-template-columns: 1fr; gap: 40px; }
}

.list-check {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.list-check li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  color: var(--ink-700);
  font-size: 16px;
  line-height: 1.55;
}
.list-check li::before {
  content: '';
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--orange-50);
  color: var(--orange-500);
  flex-shrink: 0;
  margin-top: 2px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23F26522' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
}

.divider {
  height: 1px;
  background: var(--ink-100);
  margin: 60px 0;
}

.page-view { display: none; }
.page-view.active { display: block; }

/* Scenario cards */
.scenario {
  background: var(--white);
  border: 1px solid var(--ink-100);
  border-radius: var(--r-lg);
  padding: 32px;
  position: relative;
  transition: all var(--dur-med);
}
.scenario:hover { border-color: var(--orange-500); box-shadow: var(--shadow-md); }
.scenario-num {
  font-family: var(--font-display);
  font-size: 42px;
  color: var(--orange-500);
  line-height: 1;
  margin-bottom: 14px;
}
.scenario h4 { margin-bottom: 8px; font-size: 20px; }
.scenario p { color: var(--ink-500); font-size: 15px; }

/* Reviews */
.rating-block {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px 24px;
  background: var(--white);
  border: 1px solid var(--ink-100);
  border-radius: var(--r-lg);
}
.rating-num {
  font-family: var(--font-display);
  font-size: 42px;
  color: var(--navy-900);
  line-height: 1;
}
.rating-stars svg { width: 20px; height: 20px; color: var(--orange-500); }
.rating-label { font-size: 13px; color: var(--ink-500); }

/* QR block */
.qr-block {
  background: var(--white);
  border-radius: var(--r-lg);
  border: 1px solid var(--ink-100);
  padding: 24px;
  display: flex;
  gap: 20px;
  align-items: center;
}
.qr-code {
  width: 100px; height: 100px;
  background:
    linear-gradient(45deg, var(--navy-900) 25%, transparent 25%),
    linear-gradient(-45deg, var(--navy-900) 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, var(--navy-900) 75%),
    linear-gradient(-45deg, transparent 75%, var(--navy-900) 75%);
  background-size: 20px 20px;
  background-position: 0 0, 0 10px, 10px -10px, -10px 0;
  border: 4px solid var(--white);
  outline: 1px solid var(--ink-200);
  border-radius: 4px;
  flex-shrink: 0;
}

.wa-float {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 360;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #25D366;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.45);
  transition: transform var(--dur-fast), box-shadow var(--dur-fast);
}
.wa-float:hover {
  transform: translateY(-3px) scale(1.04);
  box-shadow: 0 12px 28px rgba(37, 211, 102, 0.55);
  color: #fff;
}
.wa-float svg { width: 30px; height: 30px; }
@media (max-width: 600px) {
  .wa-float { width: 52px; height: 52px; right: 16px; bottom: 16px; }
  .wa-float svg { width: 26px; height: 26px; }
}

/* Toast for form submit */
.toast {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%) translateY(120%);
  background: var(--navy-900);
  color: var(--white);
  padding: 16px 24px;
  border-radius: var(--r-full);
  box-shadow: var(--shadow-xl);
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 500;
  transition: transform var(--dur-med) var(--ease-out);
  font-size: 15px;
  visibility: hidden;
  pointer-events: none;
}
.toast.show {
  transform: translateX(-50%) translateY(0);
  visibility: visible;
  pointer-events: auto;
}
.toast-icon {
  width: 24px; height: 24px;
  border-radius: 50%;
  background: var(--orange-500);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Cookie banner */
.cookie {
  position: fixed;
  bottom: max(20px, env(safe-area-inset-bottom));
  left: 20px;
  right: 20px;
  max-width: 480px;
  background: var(--navy-900);
  color: var(--white);
  padding: 20px 24px;
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-xl);
  z-index: 400;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transform: translateY(140%);
  visibility: hidden;
  pointer-events: none;
  transition: transform var(--dur-med) var(--ease-out), visibility 0s linear var(--dur-med);
}
.cookie.show {
  transform: translateY(0);
  visibility: visible;
  pointer-events: auto;
  transition: transform var(--dur-med) var(--ease-out);
}
.cookie p { font-size: 14px; line-height: 1.5; color: rgba(255,255,255,0.85); }
.cookie-actions { display: flex; gap: 10px; }
.cookie-actions button { flex: 1; padding: 10px; font-size: 13.5px; border-radius: var(--r-md); }
.cookie-accept { background: var(--orange-500); color: var(--white); }
.cookie-decline { background: transparent; color: var(--white); border: 1px solid rgba(255,255,255,0.25); }

/* ============================================
   LEGAL PAGES (terms / privacy)
   ============================================ */
.legal-page .legal-hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}
.legal-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.14);
  color: rgba(255,255,255,0.88);
  font-size: 13px;
  font-weight: 600;
}
.legal-chip span { color: var(--orange-400); font-family: var(--font-mono, ui-monospace, monospace); font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; }
.legal-body {
  background: var(--ivory, #FAF7F2);
  padding: 72px 0 40px;
}
.legal-layout {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 48px;
  align-items: start;
}
.legal-toc {
  position: sticky;
  top: 100px;
  background: var(--white);
  border: 1px solid var(--ink-100, rgba(10,27,54,0.12));
  border-radius: var(--r-lg, 16px);
  padding: 22px 20px;
  box-shadow: var(--shadow-sm, 0 8px 24px -16px rgba(10,27,54,0.2));
}
.legal-toc-label {
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-500, #566277);
  font-weight: 700;
  margin-bottom: 14px;
}
.legal-toc nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.legal-toc a {
  display: block;
  text-decoration: none;
  color: var(--ink-700, #2A3547);
  font-size: 14px;
  font-weight: 600;
  padding: 8px 10px;
  border-radius: 8px;
  line-height: 1.35;
  transition: background 0.15s ease, color 0.15s ease;
}
.legal-toc a:hover { background: var(--orange-50, #FEF5EF); color: var(--orange-500, #F26522); }
.legal-switch {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--ink-100, rgba(10,27,54,0.12));
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.legal-switch a {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--orange-500, #F26522);
  text-decoration: none;
}
.legal-switch a:hover { text-decoration: underline; }
.legal-articles { display: flex; flex-direction: column; gap: 16px; }
.legal-card {
  background: var(--white);
  border: 1px solid var(--ink-100, rgba(10,27,54,0.12));
  border-radius: var(--r-lg, 16px);
  padding: 28px 32px 24px;
  scroll-margin-top: 110px;
}
.legal-card h2 {
  font-size: clamp(1.25rem, 2vw, 1.55rem);
  margin: 0 0 12px;
}
.legal-card p {
  margin: 0;
  max-width: none;
  color: var(--ink-500, #566277);
  font-size: 16.5px;
  line-height: 1.7;
}
.legal-num {
  display: inline-block;
  font-family: var(--font-mono, ui-monospace, monospace);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--orange-500, #F26522);
  font-weight: 600;
  margin-bottom: 8px;
}
.legal-note {
  margin-top: 8px;
  padding: 20px 24px;
  background: var(--navy-900, #0A1B36);
  color: rgba(255,255,255,0.82);
  border-radius: var(--r-lg, 16px);
  font-size: 14px;
  line-height: 1.6;
}
.legal-note strong { color: #fff; }
.legal-cta-wrap { padding: 24px 0 80px; background: var(--ivory, #FAF7F2); }
@media (max-width: 860px) {
  .legal-layout { grid-template-columns: 1fr; gap: 28px; }
  .legal-toc { position: static; }
  .legal-toc nav { flex-direction: row; flex-wrap: wrap; gap: 6px; }
  .legal-toc a { background: var(--ivory, #FAF7F2); }
}
