/* ==========================================================================
   ClubText — static rebuild
   Token system → base → layout → components → sections → responsive
   Brand tokens sourced from bhi-design-system/brands/bhi-internal-clubtext/tokens.json
   ========================================================================== */

/* ---------- Design tokens ---------- */
:root {
  /* Color */
  --navy:        #00356B;
  --navy-deep:   #002247;
  --gold:        #B8860B;
  --gold-deep:   #9a7209;
  --charcoal:    #1D231C;
  --cream:       #f8f7f5;
  --cream-2:     #E1DFD9;
  --white:       #ffffff;
  --text:        #1D231C;
  --text-muted:  #6B7280;
  --border:      #E1DFD9;

  /* Surfaces */
  --bg:          var(--cream);
  --surface:     var(--white);

  /* Type */
  --font-body: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-head: var(--font-body);

  /* Type scale */
  --fs-hero:  clamp(2.2rem, 4.5vw, 3.4rem);
  --fs-h2:    clamp(1.75rem, 3vw, 2.5rem);
  --fs-h3:    1.3rem;
  --fs-lead:  clamp(1.05rem, 1.5vw, 1.2rem);
  --fs-body:  1rem;
  --fs-small: 0.875rem;

  /* Spacing */
  --sp-1: 0.5rem;
  --sp-2: 1rem;
  --sp-3: 1.5rem;
  --sp-4: 2rem;
  --sp-5: 3rem;
  --sp-6: 4rem;
  --sp-7: 6rem;

  /* Layout */
  --maxw: 1200px;
  --maxw-wide: 1400px;
  --radius:   10px;
  --radius-lg: 20px;
  --radius-pill: 999px;

  /* Elevation */
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 14px rgba(0,53,107,0.12);
  --shadow-lg: 0 25px 50px rgba(0,0,0,0.15);

  /* Motion */
  --dur: 0.3s;
  --ease: cubic-bezier(0.4, 0, 0.2, 1);

  /* Chrome */
  --header-h: 72px;
  --promo-banner-h: 0px; /* set at runtime by assets/promo-banner.js */
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
html, body { overflow-x: hidden; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.15; color: var(--navy); margin: 0 0 var(--sp-2); font-weight: 700; }
h1 { font-size: var(--fs-hero); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); }
p  { margin: 0 0 var(--sp-2); }
a  { color: var(--navy); text-decoration: none; }
img { max-width: 100%; display: block; }
ul { margin: 0; padding: 0; list-style: none; }

/* ---------- Layout helpers ---------- */
.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--sp-3); }
.section { padding-block: var(--sp-7); }
.section--cream { background: var(--cream); }
.section--white { background: var(--white); }
.section-head { text-align: center; max-width: 720px; margin: 0 auto var(--sp-5); }
.section-head p { color: var(--text-muted); font-size: var(--fs-lead); margin: 0; }
.eyebrow {
  display: inline-block; font-size: var(--fs-small); font-weight: 700; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--gold); margin-bottom: var(--sp-1);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  padding: 0.9rem 1.6rem; border-radius: var(--radius); font-weight: 600; font-size: var(--fs-body);
  cursor: pointer; border: 2px solid transparent; transition: all var(--dur) var(--ease); white-space: nowrap;
}
.btn--primary { background: var(--navy); color: var(--white); box-shadow: var(--shadow-md); }
.btn--primary:hover { background: var(--charcoal); transform: translateY(-2px); }
.btn--gold { background: var(--gold); color: var(--white); box-shadow: 0 4px 14px rgba(184,134,11,0.25); }
.btn--gold:hover { background: var(--gold-deep); transform: translateY(-2px); }
.btn--ghost { background: transparent; color: var(--navy); border-color: var(--cream-2); }
.btn--ghost:hover { border-color: var(--navy); background: var(--white); }
.btn__arrow { transition: transform var(--dur) var(--ease); }
.btn:hover .btn__arrow { transform: translateX(4px); }

/* ==========================================================================
   MODAL / FORM (pricing-request modal)
   ========================================================================== */
.modal-overlay {
  position: fixed; inset: 0; z-index: 1000;
  display: flex; align-items: center; justify-content: center;
  padding: var(--sp-3);
  background: rgba(29,35,28,0.55);
  opacity: 0; transition: opacity var(--dur) var(--ease);
}
.modal-overlay[hidden] { display: none; }
.modal-overlay.is-open { opacity: 1; }
.modal-panel {
  position: relative; width: 100%; max-width: 480px; max-height: calc(100vh - 2 * var(--sp-3));
  overflow-y: auto;
  background: var(--surface); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
  padding: var(--sp-5) var(--sp-4) var(--sp-4);
  transform: translateY(12px) scale(0.98); opacity: 0; transition: transform var(--dur) var(--ease), opacity var(--dur) var(--ease);
}
.modal-overlay.is-open .modal-panel { transform: translateY(0) scale(1); opacity: 1; }
.modal-panel h2 { margin: 0 0 var(--sp-1); font-size: var(--fs-h3); }
#pricingModalTitle { text-align: center; }
.modal-lead { color: var(--text-muted); margin: 0 0 var(--sp-4); }
.required-mark { color: var(--gold); margin-left: 0.15rem; }
.modal-close {
  position: absolute; top: var(--sp-2); right: var(--sp-2);
  width: 32px; height: 32px; display: flex; align-items: center; justify-content: center;
  background: transparent; border: none; border-radius: var(--radius-pill); color: var(--text-muted);
  font-size: 1rem; line-height: 1; cursor: pointer; transition: background var(--dur) var(--ease), color var(--dur) var(--ease);
}
.modal-close:hover { background: var(--cream); color: var(--text); }

.form-group { margin-bottom: var(--sp-3); }
.form-group label { display: block; font-weight: 600; font-size: var(--fs-small); margin-bottom: 0.4rem; color: var(--text); }
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%; font: inherit; color: var(--text); background: var(--white);
  border: 1px solid var(--border); border-radius: var(--radius); padding: 0.7rem 0.9rem;
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.form-group textarea { resize: vertical; min-height: 5.5rem; }
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none; border-color: var(--navy); box-shadow: 0 0 0 3px rgba(0,53,107,0.12);
}
#pricingForm .btn { width: 100%; margin-top: var(--sp-1); }

@media (max-width: 560px) {
  .modal-panel { padding: var(--sp-4) var(--sp-3) var(--sp-3); }
}

/* ==========================================================================
   HEADER / NAV
   ========================================================================== */
.site-header {
  position: fixed; top: var(--promo-banner-h, 0px); left: 0; right: 0; z-index: 100; height: var(--header-h);
  display: flex; align-items: center;
  background: var(--white); transition: box-shadow var(--dur) var(--ease);
}
.site-header.is-scrolled { box-shadow: var(--shadow-sm); }
.site-header .container { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-3); max-width: var(--maxw-wide); }
.brand { display: flex; align-items: center; }
.brand img { height: 38px; width: auto; }
.nav { display: flex; align-items: center; gap: var(--sp-3); }
.nav a { color: var(--charcoal); font-weight: 500; font-size: 0.95rem; }
.nav a:hover { color: var(--navy); }
.nav a.btn--primary { color: var(--white); }
.nav a.btn--primary:hover { color: var(--white); }
.nav__cta { display: flex; align-items: center; gap: var(--sp-2); }
.nav__login { font-weight: 600; }
/* Header CTA links as small navy buttons (specificity wins over blue-header nav-color rules) */
.site-header .nav .nav__cta a { padding: 0.5rem 1rem; border-radius: var(--radius); font-size: 0.85rem; font-weight: 600; line-height: 1; background: var(--navy); color: #fff; transition: background var(--dur) var(--ease); }
.site-header .nav .nav__cta a:hover { background: var(--charcoal); color: #fff; }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--charcoal); margin: 5px 0; transition: var(--dur); }

/* ==========================================================================
   HERO
   ========================================================================== */
.hero { padding-top: calc(var(--header-h) + var(--promo-banner-h, 0px) + var(--sp-5)); padding-bottom: var(--sp-6); background: var(--white); }
.hero .container {
  max-width: var(--maxw-wide);
  display: grid; grid-template-columns: 1fr 1.3fr; gap: var(--sp-4); align-items: start;
}
/* Text pulled toward center (justify-self:end) and demo column widened (1.3fr) so both sides
   sit closer to the middle and the demo reads larger. Mobile override below resets to 1 column. */
.hero__text { max-width: 440px; padding-left: 0; justify-self: end; }
.hero__text h1 { margin-bottom: var(--sp-3); }
.changing-text { color: var(--gold); transition: opacity 0.4s var(--ease); display: inline-block; }
.hero__lead { font-size: var(--fs-lead); color: var(--charcoal); opacity: 0.85; margin-bottom: var(--sp-4); }
.hero__buttons { display: flex; gap: var(--sp-2); flex-wrap: wrap; }
.hero__trust { margin-top: var(--sp-4); display: flex; align-items: center; flex-wrap: wrap; gap: var(--sp-2); color: var(--text-muted); font-size: 1rem; }
.hero__trust strong { color: var(--navy); }

/* macOS browser frame + Navattic demo */
.hero__demo { justify-self: end; width: 100%; }
.device-frame { background: var(--charcoal); border-radius: 12px; overflow: hidden; box-shadow: var(--shadow-lg); }
.device-frame__bar { background: #2a2f2a; padding: 8px 12px; display: flex; gap: 6px; }
.frame-dot { width: 10px; height: 10px; border-radius: 50%; }
.frame-dot:nth-child(1) { background: #ff5f57; }
.frame-dot:nth-child(2) { background: #febc2e; }
.frame-dot:nth-child(3) { background: #28c840; }
.navattic-wrapper { background: var(--white); aspect-ratio: 16 / 10; width: 100%; position: relative; overflow: hidden; }
/* Live Navattic demo rendered at the capture's native 1440x900 (full desktop dashboard) inside
   .navattic-scaler, centered and scaled to the column (scale = colWidth/1440) so the whole
   dashboard shows — vibrant, interactive, edge-to-edge. Downscaling from 1440 (2880 device px on
   Retina) keeps it crisp. Change 1440 in the hero script + here together if the ratio ever changes. */
.navattic-scaler { position: absolute; top: 50%; left: 50%; width: 1440px; height: 900px; }
.navattic-wrapper iframe { width: 100%; height: 100%; border: 0; display: block; }

/* ==========================================================================
   READ-TIME BANNER
   ========================================================================== */
.read-banner { background: var(--white); text-align: center; padding: var(--sp-5) var(--sp-3) var(--sp-4); }
.read-banner__copy { font-family: var(--font-head); font-style: italic; font-weight: 700; font-size: var(--fs-h2); color: var(--navy); margin: 0; line-height: 1.2; }

/* ==========================================================================
   LOGO MARQUEE
   ========================================================================== */
.marquee { background: var(--white); border-block: 1px solid var(--border); padding-block: var(--sp-4); overflow: hidden; }
.marquee__label { text-align: center; color: var(--text-muted); font-size: var(--fs-small); font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase; margin-bottom: var(--sp-3); }
.marquee__viewport { position: relative; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee__track { display: flex; align-items: center; gap: 80px; width: max-content; animation: marquee 40s linear infinite; }
.marquee__track img { height: 52px; width: auto; object-fit: contain; filter: grayscale(1); opacity: 0.6; transition: filter var(--dur) var(--ease), opacity var(--dur) var(--ease); }
.marquee__track img:hover { filter: grayscale(0); opacity: 1; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ==========================================================================
   FEATURE / STAT GRID
   ========================================================================== */
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-3); }
.feature-card {
  background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: var(--sp-4); transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.feature-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.feature-card__visual { font-size: 2.4rem; font-weight: 800; color: var(--navy); line-height: 1; margin-bottom: var(--sp-2); }
.feature-card__title { font-size: var(--fs-h3); color: var(--navy); margin-bottom: var(--sp-1); }
.feature-card__body { color: var(--text-muted); font-size: 0.95rem; margin: 0; }
.feature-card--highlight { background: linear-gradient(150deg, var(--navy) 0%, var(--navy-deep) 100%); border-color: var(--navy); }
.feature-card--highlight .feature-card__visual { color: var(--gold); font-size: 3rem; }
.feature-card--highlight .feature-card__title,
.feature-card--highlight .feature-card__body { color: var(--white); }
.feature-card--highlight .feature-card__body { opacity: 0.85; }

/* ==========================================================================
   USE-CASE CARD FAN
   ========================================================================== */
.usecases .container { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: var(--sp-5); align-items: center; }
.card-fan { position: relative; height: 460px; display: flex; align-items: center; justify-content: center; }
.card-fan__card {
  position: absolute; width: 210px; border-radius: 28px; overflow: hidden;
  box-shadow: var(--shadow-lg); cursor: pointer; opacity: 0.95;
  transition: transform 0.45s var(--ease), opacity var(--dur) var(--ease), filter var(--dur) var(--ease);
  transform-origin: bottom center; filter: brightness(0.94);
}
.card-fan__card img { width: 100%; display: block; }
.card-fan__card.is-active { z-index: 5; opacity: 1; filter: brightness(1); }
.usecase-panel { }
.usecase-panel__title { font-size: var(--fs-h2); }
.usecase-panel__body { color: var(--text-muted); font-size: var(--fs-lead); min-height: 5.5rem; }
.usecase-panel__dots { display: flex; gap: 10px; margin-block: var(--sp-3); }
.usecase-panel__dots button { width: 10px; height: 10px; border-radius: 50%; border: 0; background: var(--cream-2); cursor: pointer; padding: 0; transition: background var(--dur), transform var(--dur); }
.usecase-panel__dots button.is-active { background: var(--gold); transform: scale(1.3); }

/* ==========================================================================
   SWITCH CTA
   ========================================================================== */
.switch-cta { background: linear-gradient(135deg, var(--cream) 0%, var(--cream-2) 100%); border-radius: var(--radius-lg); margin-inline: var(--sp-3); padding: var(--sp-7) var(--sp-4); position: relative; overflow: hidden; }
.switch-cta::before { content:''; position:absolute; top:-30%; right:-5%; width:400px; height:400px; background: radial-gradient(circle, rgba(0,53,107,0.08) 0%, transparent 70%); pointer-events:none; }
.switch-cta__inner { max-width: var(--maxw); margin-inline: auto; display: flex; align-items: center; justify-content: center; gap: var(--sp-7); position: relative; z-index: 1; flex-wrap: wrap; }
.switch-cta__content { max-width: 460px; }
.switch-cta__headline span { color: var(--navy); display: block; }
.switch-benefits { display: flex; flex-direction: column; gap: var(--sp-2); margin-top: var(--sp-3); }
.switch-benefit { display: flex; align-items: center; gap: 12px; }
.switch-benefit .ico { font-size: 1.2em; }
.switch-visual { display: flex; flex-direction: column; align-items: center; gap: var(--sp-4); }
.phone-switch { display: flex; align-items: center; justify-content: center; gap: 20px; }

/* Reusable realistic iPhone frame + iMessage mock (no image assets) */
.iphone { width: 188px; flex: none; border-radius: 42px; padding: 6px;
  background: linear-gradient(150deg,#e2e2e6 0%,#a9a9ae 30%,#d9d9dd 55%,#b3b3b8 100%);
  box-shadow: var(--shadow-lg); }
.iphone__screen { position: relative; background: var(--white); border-radius: 36px; overflow: hidden;
  aspect-ratio: 9 / 19.3; display: flex; flex-direction: column; }
.iphone__island { position: absolute; top: 9px; left: 50%; transform: translateX(-50%);
  width: 58px; height: 17px; background: #000; border-radius: 10px; z-index: 3; }
.iphone__statusbar { display: flex; justify-content: space-between; align-items: center;
  padding: 8px 16px 3px; font-size: 10px; font-weight: 700; color: var(--charcoal); }
.iphone__statusbar .sb-r { display: inline-flex; align-items: center; gap: 4px; }
.iphone__statusbar .bat { display: inline-block; width: 16px; height: 8px; border: 1px solid var(--charcoal);
  border-radius: 2px; position: relative; }
.iphone__statusbar .bat::after { content: ''; position: absolute; inset: 1px; width: 70%; background: var(--charcoal); border-radius: 1px; }
.iphone__statusbar .bat::before { content: ''; position: absolute; right: -3px; top: 2px; width: 2px; height: 4px; background: var(--charcoal); border-radius: 0 1px 1px 0; }
.iphone__msg-head { text-align: center; padding: 4px 8px 8px; border-bottom: 1px solid var(--border); }
.iphone__msg-head .who { font-size: 12px; font-weight: 700; color: var(--charcoal); line-height: 1.2; }
.iphone__msg-head .sub { font-size: 8.5px; color: var(--text-muted); }
.imsg { flex: 1; padding: 10px 9px; display: flex; flex-direction: column; gap: 6px; }
.imsg__time { text-align: center; font-size: 8px; color: var(--text-muted); margin: 2px 0; }
.imsg__bubble { max-width: 82%; padding: 7px 11px; border-radius: 16px; font-size: 10.5px; line-height: 1.32; }
.imsg__bubble--in { align-self: flex-start; background: #E9E9EB; color: #000; border-bottom-left-radius: 5px; }
.imsg__bubble--out { align-self: flex-end; background: var(--navy); color: #fff; border-bottom-right-radius: 5px; }
/* "before" phone: impersonal short code — desaturated + gray outbound */
.iphone--before { filter: saturate(0.55); }
.iphone--before .imsg__bubble--in { background: #dcdcdc; }

.switch-arrows { display: flex; gap: 5px; color: var(--gold); font-size: 1.5em; font-weight: bold; }
.switch-arrows span:nth-child(1) { animation: arrowMove 1.5s ease-in-out infinite 0s; }
.switch-arrows span:nth-child(2) { animation: arrowMove 1.5s ease-in-out infinite 0.2s; }
.switch-arrows span:nth-child(3) { animation: arrowMove 1.5s ease-in-out infinite 0.4s; }
@keyframes arrowMove { 0%,100%{opacity:0.3;transform:translateX(0);} 50%{opacity:1;transform:translateX(5px);} }
.switch-cta__buttons { display: flex; flex-direction: column; gap: 12px; width: 100%; max-width: 420px; }

/* ==========================================================================
   TESTIMONIALS
   ========================================================================== */
.testimonials__grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-3); }
.tcard { border-radius: var(--radius-lg); padding: var(--sp-4); border: 1px solid var(--border); display: flex; flex-direction: column; gap: var(--sp-3); }
.tcard--light { background: var(--white); }
.tcard--dark { background: linear-gradient(150deg, var(--navy) 0%, var(--navy-deep) 100%); border-color: var(--navy); color: var(--white); }
.tcard__quote { font-size: 1.05rem; line-height: 1.6; margin: 0; }
.tcard--dark .tcard__quote { color: var(--white); }
.tcard__foot { display: flex; align-items: center; gap: var(--sp-2); margin-top: auto; }
.tcard__logo { height: 44px; width: auto; background: var(--white); border-radius: 8px; padding: 4px 8px; }
.tcard__who { font-size: var(--fs-small); }
.tcard__who b { display: block; font-size: 0.95rem; }
.tcard--light .tcard__who span { color: var(--text-muted); }
.tcard--dark .tcard__who span { color: rgba(255,255,255,0.75); }

/* ==========================================================================
   FAQ
   ========================================================================== */
.faq { max-width: 780px; margin-inline: auto; }
.faq__item { border-bottom: 1px solid var(--border); }
.faq__q { width: 100%; text-align: left; background: none; border: 0; cursor: pointer; padding: var(--sp-3) 0; font-size: 1.1rem; font-weight: 600; color: var(--navy); display: flex; justify-content: space-between; align-items: center; gap: var(--sp-2); }
.faq__q .faq__icon { flex-shrink: 0; transition: transform var(--dur) var(--ease); font-weight: 400; color: var(--gold); }
.faq__item.is-open .faq__icon { transform: rotate(45deg); }
.faq__a { max-height: 0; overflow: hidden; transition: max-height var(--dur) var(--ease); color: var(--text-muted); }
.faq__a-inner { padding-bottom: var(--sp-3); }

/* ==========================================================================
   FINAL CTA STRIP
   ========================================================================== */
.cta-strip { background: linear-gradient(150deg, var(--navy) 0%, var(--navy-deep) 100%); color: var(--white); text-align: center; }
.cta-strip h2 { color: var(--white); }
.cta-strip p { color: rgba(255,255,255,0.85); font-size: var(--fs-lead); max-width: 560px; margin: 0 auto var(--sp-4); }
.cta-strip .btn--ghost { color: var(--white); border-color: rgba(255,255,255,0.4); }
.cta-strip .btn--ghost:hover { background: rgba(255,255,255,0.1); border-color: var(--white); }

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer { background: var(--charcoal); color: rgba(255,255,255,0.75); padding-block: var(--sp-6) var(--sp-4); }
.site-footer .container { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: var(--sp-5); }
.site-footer img.foot-logo { height: 30px; margin-bottom: var(--sp-2); }
.site-footer h4 { color: var(--white); font-size: var(--fs-small); text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: var(--sp-2); }
.site-footer a { color: rgba(255,255,255,0.75); display: block; padding: 4px 0; font-size: 0.95rem; }
.site-footer a:hover { color: var(--white); }
.footer-contact a { display: inline; }
.footer-legal { max-width: var(--maxw); margin: var(--sp-5) auto 0; padding: var(--sp-3) var(--sp-3) 0; border-top: 1px solid rgba(255,255,255,0.12); font-size: 0.8rem; color: rgba(255,255,255,0.55); line-height: 1.7; }

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 1000px) {
  .hero .container { grid-template-columns: 1fr; text-align: center; }
  .hero__text { max-width: 640px; margin-inline: auto; padding-left: 0; justify-self: center; }
  .hero__buttons, .hero__trust { justify-content: center; }
  .hero__trust { font-size: 0.95rem; }
  .hero__demo { justify-self: center; max-width: 640px; }
  .usecases .container { grid-template-columns: 1fr; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .demo-book { grid-template-columns: 1fr; }
  .demo-book__info { order: -1; }
}
@media (max-width: 768px) {
  .nav { display: none; position: absolute; top: calc(var(--header-h) + var(--promo-banner-h, 0px)); left: 0; right: 0; flex-direction: column; background: var(--white); padding: var(--sp-3); box-shadow: var(--shadow-sm); gap: var(--sp-2); }
  .nav.is-open { display: flex; }
  .nav-toggle { display: block; }
  .site-header:not(.is-scrolled) { background: var(--white); }
  /* /demo: gold header bar; the open white dropdown still needs dark links */
  .blue-header .site-header:not(.is-scrolled) { background: var(--gold); }
  .blue-header .nav a, .blue-header .nav__login { color: var(--charcoal); }
  .feature-grid { grid-template-columns: 1fr; }
  .testimonials__grid { grid-template-columns: 1fr; }
  .site-footer .container { grid-template-columns: 1fr; gap: var(--sp-4); }
  .hero__demo { display: none; }  /* interactive demo hidden on small screens */
  .switch-cta__inner { flex-direction: column; gap: var(--sp-5); }
}
@media (max-width: 560px) {
  .card-fan { height: 380px; }
  .card-fan__card { width: 150px; }
  .phone-switch { gap: 8px; }
  .iphone { width: 138px; }
  .switch-arrows { font-size: 1.1em; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
  .marquee__track { animation: none; }
}

/* ==========================================================================
   SUBPAGE / INNER-PAGE COMPONENTS (Phase 2)
   ========================================================================== */

/* Compact page hero */
.page-hero { padding-top: calc(var(--header-h) + var(--promo-banner-h, 0px) + var(--sp-6)); padding-bottom: var(--sp-5); background: linear-gradient(160deg, var(--navy) 0%, var(--navy-deep) 100%); color: var(--white); text-align: center; }
.page-hero h1 { color: var(--white); max-width: 800px; margin-inline: auto; }
.page-hero p { color: rgba(255,255,255,0.85); font-size: var(--fs-lead); max-width: 640px; margin: var(--sp-2) auto 0; }
.page-hero .eyebrow { color: var(--gold); }
.page-hero__cta { margin-top: var(--sp-4); display: flex; gap: var(--sp-2); justify-content: center; flex-wrap: wrap; }
.page-hero .btn--ghost { color: var(--white); border-color: rgba(255,255,255,0.4); }
.page-hero .btn--ghost:hover { background: rgba(255,255,255,0.1); border-color: var(--white); }

/* Breadcrumb */
.crumbs { font-size: var(--fs-small); color: rgba(255,255,255,0.7); margin-bottom: var(--sp-2); }
.crumbs a { color: rgba(255,255,255,0.7); text-decoration: underline; }
.crumbs a:hover { color: var(--white); }

/* Prose for text-heavy pages (privacy, 10dlc detail) */
.prose { max-width: 760px; margin-inline: auto; }
.prose h2 { margin-top: var(--sp-5); font-size: 1.5rem; }
.prose h3 { margin-top: var(--sp-4); }
.prose p, .prose li { color: var(--charcoal); }
.prose ul { list-style: disc; padding-left: 1.4em; margin-bottom: var(--sp-2); }
.prose li { margin-bottom: 0.4em; }
.prose a { color: var(--navy); text-decoration: underline; }
.prose .meta { color: var(--text-muted); font-size: var(--fs-small); }

/* Two-column split (value prop / image) */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-5); align-items: center; }
.split--reverse .split__media { order: -1; }
.split__media img { border-radius: var(--radius-lg); box-shadow: var(--shadow-md); }
.check-list { display: flex; flex-direction: column; gap: var(--sp-2); margin-top: var(--sp-3); }
.check-list li { display: flex; gap: 12px; align-items: flex-start; }
.check-list .tick { color: var(--gold); font-weight: 800; flex-shrink: 0; }

/* Simple 3-up value cards */
.value-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-3); }
.value-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: var(--sp-4); }
.value-card .ico { font-size: 2rem; margin-bottom: var(--sp-2); }
/* Material Symbols (Outlined) tile icons (replacing emoji) — single-color, inherit navy heading color */
.ico-svg { fill: currentColor; }
.value-card .ico { color: var(--navy); line-height: 0; }
.value-card .ico .ico-svg { width: 30px; height: 30px; display: block; }
.feature-card__visual .ico-svg { width: 34px; height: 34px; display: block; }
.switch-benefit .ico { color: var(--navy); display: inline-flex; }
.switch-benefit .ico .ico-svg { width: 20px; height: 20px; display: block; }
.value-card h3 { font-size: 1.15rem; }
.value-card p { color: var(--text-muted); font-size: 0.95rem; margin: 0; }

/* Booking embed (Calendly inline) */
.booking { max-width: 900px; margin-inline: auto; }
.calendly-inline-widget { min-width: 320px; height: 720px; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--border); background: var(--white); }
.booking__fallback { text-align: center; padding: var(--sp-5); border: 1px dashed var(--cream-2); border-radius: var(--radius-lg); background: var(--white); }

/* Demo page: Calendly (left) + "What you'll walk away with" (right, 2x2 tiles) */
.demo-book { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-5); align-items: start; }
.demo-book__info h1 { margin-bottom: var(--sp-4); text-align: center; }
.demo-book__info .value-grid { grid-template-columns: 1fr 1fr; }
/* Hover highlight on the walk-away tiles */
.demo-book__info .value-card { transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), border-color var(--dur) var(--ease), background var(--dur) var(--ease); }
.demo-book__info .value-card:hover { transform: translateY(-4px); border-color: var(--gold); box-shadow: 0 10px 28px rgba(184,134,11,0.18); background: #fffdf7; }

/* Centered, equal-width booking fallback buttons */
.booking__actions { display: flex; flex-direction: column; align-items: center; gap: var(--sp-2); max-width: 300px; margin: var(--sp-3) auto 0; }
.booking__actions .btn { width: 100%; text-align: center; }

/* Clear the fixed header when a page opens straight into a content section */
.demo-top { padding-top: calc(var(--header-h) + var(--promo-banner-h, 0px) + var(--sp-5)); }

/* Blue brand-description band (centered, italic, white) */
.demo-desc { background: linear-gradient(160deg, var(--navy) 0%, var(--navy-deep) 100%); text-align: center; }
.demo-desc p { color: #fff; font-style: italic; font-size: calc(var(--fs-lead) * 1.5); max-width: 820px; margin: 0 auto; line-height: 1.6; }

/* /demo only: gold header with white logo + white nav links (matches the site promo banner) */
.blue-header .site-header,
.blue-header .site-header:not(.is-scrolled) { background: var(--gold); }
.blue-header .nav-toggle span { background: #fff; }
/* White nav links only on desktop; the mobile @media block keeps them dark for
   the open white dropdown (scoped by min-width so source order can't flip it). */
@media (min-width: 769px) {
  .blue-header .nav a, .blue-header .nav__login { color: #fff; }
  .blue-header .nav a:hover { color: rgba(255,255,255,0.85); }
}

/* ---- Make the Switch: trust meter ---- */
.trustmeter { max-width: 900px; margin-inline: auto; }
.tm-options { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-bottom: var(--sp-4); }
.tm-option { padding: 12px 18px; border: 2px solid var(--cream-2); background: var(--white); border-radius: var(--radius); cursor: pointer; font-weight: 600; color: var(--navy); transition: all var(--dur) var(--ease); text-align: left; }
.tm-option small { display: block; font-weight: 400; color: var(--text-muted); font-size: 0.8rem; margin-top: 2px; }
.tm-option:hover { border-color: var(--navy); }
.tm-option.is-active { background: var(--navy); color: var(--white); border-color: var(--navy); }
.tm-option.is-active small { color: rgba(255,255,255,0.8); }
.tm-result { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: var(--sp-4); }
.tm-gauge { height: 14px; border-radius: 999px; background: var(--cream-2); overflow: hidden; margin: var(--sp-2) 0 var(--sp-1); }
.tm-gauge__fill { height: 100%; width: 0; border-radius: 999px; background: linear-gradient(90deg, #c0392b, var(--gold) 60%, #2E7D32); transition: width 0.5s var(--ease); }
.tm-gauge__labels { display: flex; justify-content: space-between; font-size: 0.75rem; color: var(--text-muted); }
.tm-cols { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-4); margin-top: var(--sp-4); }
.tm-cols h4 { color: var(--navy); margin-bottom: var(--sp-1); }
.tm-cols ul { display: flex; flex-direction: column; gap: 8px; }
.tm-cols .challenges li { display: flex; gap: 10px; } .tm-cols .challenges .x { color: #c0392b; font-weight: 800; }
.tm-steps { display: flex; gap: 10px; flex-wrap: wrap; margin-top: var(--sp-2); }
.tm-step { background: var(--cream); border-radius: var(--radius); padding: 8px 14px; font-size: 0.9rem; font-weight: 600; color: var(--navy); }

/* ---- QR page ---- */
.qr-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: var(--sp-5); text-align: center; max-width: 380px; margin-inline: auto; }
.qr-card svg, .qr-card img { width: 220px; height: 220px; margin-inline: auto; }

@media (max-width: 900px) {
  .split { grid-template-columns: 1fr; }
  .split--reverse .split__media { order: 0; }
  .value-grid { grid-template-columns: 1fr; }
  .tm-cols { grid-template-columns: 1fr; }
}
