/* ASC Round S4 - look & motion layer. Source of truth: docs/design-rules.md
   Loaded on every public page except legal pages. Never changes content. */
@font-face {
  font-family: 'Bricolage Grotesque';
  font-style: normal;
  font-weight: 600 800;
  font-display: swap;
  src: url(/fonts/bricolage-grotesque-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* Metric-matched fallback so the display face swaps in without reflow jumps */
@font-face {
  font-family: 'Bricolage Fallback';
  src: local('Arial');
  size-adjust: 98%;
  ascent-override: 92%;
  descent-override: 26%;
}

:root {
  --s4-navy: #0a1f44;
  --s4-navy-deep: #061533;
  --s4-teal: #00b4d8;
  --s4-teal-ink: #0086a3;
  --s4-teal-light: #80e0ff;
  --s4-cta: #ffd60a;
  --s4-cta-hover: #ffe066;
  --s4-cta-ink: #0a1f44;
  --s4-text: #1a2332;
  --s4-muted: #5b6b85;
  --s4-line: #e2e8f0;
  --s4-surface: #ffffff;
  --s4-canvas: #fafbfc;
  --s4-font-display: 'Bricolage Grotesque', 'Bricolage Fallback', 'Inter', system-ui, sans-serif;
  --s4-font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --s4-r-sm: 10px; --s4-r-md: 16px; --s4-r-lg: 22px; --s4-r-pill: 999px;
  --s4-sh-1: 0 1px 2px rgba(10,31,68,.06), 0 2px 8px rgba(10,31,68,.06);
  --s4-sh-2: 0 12px 28px -12px rgba(10,31,68,.28), 0 4px 10px rgba(10,31,68,.06);
  --s4-ease: cubic-bezier(.22,.61,.36,1);
  --s4-dur-fast: 150ms; --s4-dur: 200ms; --s4-dur-reveal: 500ms;
}

/* ---------------- Type ---------------- */
html:not(#s4) body { font-size: 17px; }
html:not(#s4) :is(h1,h2,h3) {
  font-family: var(--s4-font-display);
  font-optical-sizing: auto;
  text-wrap: balance;
}
html:not(#s4) h1 {
  font-size: clamp(38px, 5.2vw, 64px);
  line-height: 1.04;
  font-weight: 800;
  letter-spacing: -0.025em;
}
html:not(#s4) h2 {
  font-size: clamp(28px, 3.3vw, 42px);
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: -0.02em;
}
html:not(#s4) h3 {
  font-size: max(19px, 1em);
  line-height: 1.25;
  font-weight: 700;
  letter-spacing: -0.01em;
}
/* Key phrase of every H1: same treatment the Home hero already uses */
html:not(#s4) h1 .s4-hl {
  background: linear-gradient(120deg, var(--s4-teal-light) 0%, var(--s4-cta) 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: var(--s4-teal-light);
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
}
/* Guides: title stands out in display size */
html:not(#s4) .shop-hero-slim h1 { font-size: clamp(38px, 5vw, 60px); }

/* Eyebrows: teal with a short rule */
html:not(#s4) :is(.si-eyebrow, .section-eyebrow, .shop-crumb) {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 15px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
}
html:not(#s4) :is(.si-eyebrow, .section-eyebrow) { color: var(--s4-teal-ink); }
html:not(#s4) :is(.si-eyebrow, .section-eyebrow, .shop-crumb)::before {
  content: ""; width: 24px; height: 2px; border-radius: 2px; background: var(--s4-teal); flex: none;
}
html:not(#s4) .shop-crumb { color: var(--s4-teal-light); text-transform: none; letter-spacing: 0; }
/* dark sections keep the light teal */
html:not(#s4) :is(.hero, .shop-hero, [class*="dark"], .cta-band) :is(.si-eyebrow, .section-eyebrow) { color: var(--s4-teal-light); }

/* Section title accent underline: drawn on reveal (static when no JS) */
html:not(#s4) h2.s4-rule { position: relative; }
html:not(#s4) h2.s4-rule::after {
  content: ""; position: absolute; left: 0; bottom: -9px; width: 56px; height: 3px; border-radius: 3px;
  background: linear-gradient(90deg, var(--s4-teal), var(--s4-teal-light));
  transform-origin: left center;
}
html:not(#s4) h2.s4-rule.s4-center::after { left: calc(50% - 28px); transform-origin: center; }
html.s4-js:not(#s4) h2.s4-rule:not(.s4-drawn)::after { transform: scaleX(0); }
html.s4-js:not(#s4) h2.s4-rule::after { transition: transform 600ms var(--s4-ease) 150ms; }

/* ---------------- Buttons (one shared style) ---------------- */
html:not(#s4) :is(.s4-ui-btn) {
  transition: transform var(--s4-dur-fast) var(--s4-ease), box-shadow var(--s4-dur) var(--s4-ease), background-color var(--s4-dur) var(--s4-ease), filter var(--s4-dur);
  -webkit-tap-highlight-color: transparent;
}
/* Yellow = the one call-to-action colour */
html:not(#s4) :is(.btn-primary, .si-btn-primary, .shop-btn-primary, .shop-btn-gold, .topbar-cta, .s4-btn-cta):not(.asc-video-player *, .asc-video-play-disc, .asc-video-toggle) {
  background: var(--s4-cta) !important;
  color: var(--s4-cta-ink) !important;
  border-color: transparent !important;
  box-shadow: 0 8px 22px -10px rgba(255,214,10,.75), 0 1px 0 rgba(10,31,68,.08) inset;
}
html:not(#s4) :is(.s4-ui-btn):hover {
  transform: translateY(-2px);
}
html:not(#s4) :is(.btn-primary, .si-btn-primary, .shop-btn-primary, .shop-btn-gold, .topbar-cta, .s4-btn-cta):not(.asc-video-player *, .asc-video-play-disc, .asc-video-toggle):hover {
  background: var(--s4-cta-hover) !important;
  box-shadow: 0 14px 28px -12px rgba(255,214,10,.85);
}
html:not(#s4) :is(.l3-actions a:not(:first-child), .l3-contact-links a, .prod-cta:not(.outline), .tier-cta, .bw-confirm.ready) {
  background: var(--s4-cta); color: var(--s4-cta-ink); border-color: transparent;
}
html:not(#s4) :is(.s4-ui-btn):active { transform: translateY(0) scale(.98); transition-duration: 80ms; }
/* Long contact labels remain readable inside narrow 360px content columns. */
html:not(#s4) :is(.btn, .si-btn, .shop-btn, .s4-btn, .l3-actions a, .l3-contact-links a, .prod-cta, .tier-cta) {
  max-width: 100%; min-width: 0; white-space: normal; overflow-wrap: anywhere;
}
html:not(#s4) :is(.s4-ui-btn, .tab-btn, .catalog-tab, summary, .s4-acc-trigger):focus-visible {
  outline: 3px solid var(--s4-teal); outline-offset: 3px;
}
html:not(#s4) .shop-btn:disabled { transform: none; }

/* ---------------- Cards (one shared style) ---------------- */
html:not(#s4) :is(.s4-ui-card, .prodgrid-card, .ind-card, .shop-card, .shop-opt, .si-fee, .ai-card, .lib-card, .sarah-intro-card) {
  transition: transform 250ms var(--s4-ease), box-shadow 250ms var(--s4-ease), border-color 250ms;
}
@media (hover: hover) {
  html:not(#s4) :is(.s4-ui-card):hover {
    transform: translateY(-4px);
    box-shadow: var(--s4-sh-2);
  }
}

/* ---------------- Header ---------------- */
/* Keep all desktop navigation labels visible at the larger accessible type size. */
@media (min-width: 1101px) {
  html:not(#s4) .mainbar-in { gap: 16px; }
  html:not(#s4) .tab-nav .tab-btn { padding-inline: 5px; }
}
@media (max-width: 860px) {
  html.s4-ready:not(#s4) .mainbar-in:has(.s4-menu-btn:not([hidden])) .tab-nav { display: none; }
}
html:not(#s4) .sitehdr { transition: background-color 250ms var(--s4-ease), box-shadow 250ms var(--s4-ease); }
html:not(#s4) .sitehdr .mainbar, html:not(#s4) .sitehdr .topbar { transition: background-color 250ms var(--s4-ease); }
html:not(#s4) .sitehdr .mainbar-in { transition: padding-block 200ms var(--s4-ease); }
html:not(#s4) .sitehdr.s4-scrolled .mainbar-in { padding-block: 8px; }
html:not(#s4) .sitehdr .logo { transform-origin: left center; transition: transform 250ms var(--s4-ease); }
html:not(#s4) .sitehdr.s4-scrolled {
  background: rgba(255,255,255,.78);
  -webkit-backdrop-filter: saturate(160%) blur(14px); backdrop-filter: saturate(160%) blur(14px);
  box-shadow: 0 8px 28px -14px rgba(10,31,68,.35);
}
html:not(#s4) .sitehdr.s4-scrolled :is(.mainbar, .topbar) { background: transparent; }
html:not(#s4) .sitehdr.s4-scrolled .logo { transform: scale(.88); }
/* Animated nav underline */
html:not(#s4) .tab-nav .tab-btn { position: relative; border-bottom-color: transparent !important; font-size: 15px; }
html:not(#s4) .tab-nav .tab-btn::after {
  content: ""; position: absolute; left: 10px; right: 10px; bottom: -1px; height: 3px; border-radius: 3px;
  background: var(--s4-teal); transform: scaleX(0); transform-origin: left center;
  transition: transform 250ms var(--s4-ease);
}
html:not(#s4) .tab-nav .tab-btn:hover::after, html:not(#s4) .tab-nav .tab-btn.active::after { transform: scaleX(1); }

/* Mobile menu trigger (unhidden by JS only) */
.s4-menu-btn { display: none; }
@media (max-width: 860px) {
  html:not(#s4) .mainbar-in { position: relative; }
  html:not(#s4) .s4-menu-btn:not([hidden]) {
    display: inline-flex; align-items: center; gap: 8px;
    position: absolute; right: 12px; top: 10px; z-index: 3;
    font: 700 15px/1 var(--s4-font-body); color: var(--s4-navy);
    background: var(--s4-surface); border: 1.5px solid var(--s4-line); border-radius: var(--s4-r-pill);
    padding: 9px 14px; cursor: pointer; box-shadow: -18px 0 18px -4px #fff;
    transition: transform var(--s4-dur-fast) var(--s4-ease), border-color var(--s4-dur);
  }
  html:not(#s4) .s4-menu-btn:hover { border-color: var(--s4-teal); }
  html:not(#s4) .s4-menu-btn:active { transform: scale(.96); }
}
.s4-burger { display: inline-grid; gap: 3px; }
.s4-burger i { display: block; width: 16px; height: 2px; border-radius: 2px; background: currentColor; }

.s4-sheet-overlay { position: fixed; inset: 0; z-index: 3000; background: rgba(6,21,51,.48); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }
.s4-sheet {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 3001; width: min(88vw, 380px);
  background: var(--s4-canvas); box-shadow: -24px 0 60px -20px rgba(6,21,51,.45);
  display: flex; flex-direction: column; font-family: var(--s4-font-body); color: var(--s4-text);
  overflow-y: auto; overscroll-behavior: contain;
}
.s4-sheet-head { display: flex; align-items: center; justify-content: space-between; padding: 18px 20px; border-bottom: 1px solid var(--s4-line); }
.s4-sheet-title { font: 800 22px/1.1 var(--s4-font-display); color: var(--s4-navy); margin: 0; }
.s4-sheet-close { width: 42px; height: 42px; border-radius: 50%; border: 1.5px solid var(--s4-line); background: #fff; color: var(--s4-navy); cursor: pointer; display: grid; place-items: center; }
.s4-sheet-close:focus-visible { outline: 3px solid var(--s4-teal); outline-offset: 2px; }
.s4-sheet-nav { padding: 8px 12px 24px; display: grid; gap: 2px; }
.s4-sheet-item { border-radius: 14px; padding: 6px 8px; }
.s4-sheet-link { display: flex; align-items: center; justify-content: space-between; padding: 10px 8px; font: 700 18px/1.2 var(--s4-font-display); color: var(--s4-navy); text-decoration: none; border-radius: 10px; }
.s4-sheet-link[aria-current="page"] { color: var(--s4-teal-ink); }
.s4-sheet-link:hover, .s4-sheet-link:focus-visible { background: rgba(0,180,216,.08); outline: none; }
.s4-sheet-sub { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 8px 8px; }
.s4-sheet-sub a { font-size: 15px; font-weight: 600; color: var(--s4-teal-ink); text-decoration: none; padding: 6px 12px; border-radius: var(--s4-r-pill); background: rgba(0,180,216,.08); }
.s4-sheet-foot { margin-top: auto; padding: 18px 20px 26px; border-top: 1px solid var(--s4-line); display: grid; gap: 10px; }

/* ---------------- Shared Button / Card / Badge (React islands) ---------------- */
.s4-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: 700 16px/1.2 var(--s4-font-body); padding: 13px 22px; border-radius: var(--s4-r-pill);
  border: 1.5px solid transparent; cursor: pointer; text-decoration: none; white-space: nowrap;
}
.s4-btn-cta { background: var(--s4-cta); color: var(--s4-cta-ink); }
.s4-btn-ghost { background: #fff; color: var(--s4-navy); border-color: var(--s4-line); }
.s4-btn-ghost:hover { border-color: var(--s4-teal); }
.s4-ui-card.s4-card { background: var(--s4-surface); border: 1px solid var(--s4-line); border-radius: var(--s4-r-md); box-shadow: var(--s4-sh-1); }
.s4-badge {
  display: inline-flex; align-items: center; gap: 6px; font: 700 15px/1 var(--s4-font-body);
  padding: 6px 11px; border-radius: var(--s4-r-pill); background: rgba(0,180,216,.12); color: var(--s4-teal-ink);
}
.s4-badge-navy { background: var(--s4-navy); color: #fff; }

/* ---------------- Checkout progress ---------------- */
.s4-steps { margin: 0 0 26px; font-family: var(--s4-font-body); }
.s4-steps ol { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 8px; }
.s4-steps li { display: flex; align-items: center; gap: 10px; min-width: 0; color: var(--s4-muted); font-size: 15px; font-weight: 600; }
.s4-step-n { flex: none; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; font: 800 15px/1 var(--s4-font-display); border: 2px solid var(--s4-line); background: #fff; color: var(--s4-muted); }
.s4-step-l { overflow: hidden; text-overflow: ellipsis; line-height: 1.2; }
.s4-steps li.is-current { color: var(--s4-navy); }
.s4-steps li.is-current .s4-step-n { background: var(--s4-navy); border-color: var(--s4-navy); color: var(--s4-cta); box-shadow: 0 0 0 5px rgba(0,180,216,.18); }
.s4-steps-track { position: relative; height: 4px; margin-top: 12px; border-radius: 4px; background: var(--s4-line); overflow: hidden; }
.s4-steps-track span { position: absolute; inset: 0; transform-origin: left; transform: scaleX(.22); background: linear-gradient(90deg, var(--s4-teal), var(--s4-teal-light)); border-radius: 4px; }
.s4-steps [data-s4-tip] { cursor: help; text-decoration: underline dotted rgba(91,107,133,.6); text-underline-offset: 3px; }
   .s4-steps .s4-step-badge { display: none; }
@media (min-width: 640px) { .s4-steps .s4-step-badge { display: inline-flex; padding: 5px 9px; } }
@media (max-width: 420px) { .s4-steps li { flex-direction: column; align-items: flex-start; gap: 6px; } }

/* ---------------- Tooltip ---------------- */
.s4-tip {
  z-index: 3100; max-width: 260px; padding: 9px 12px; border-radius: 10px;
  background: var(--s4-navy); color: #fff; font: 600 15px/1.35 var(--s4-font-body);
  box-shadow: 0 12px 30px -12px rgba(6,21,51,.6);
}
.s4-tip-arrow { fill: var(--s4-navy); }

/* ---------------- Sticky mobile buy bar ---------------- */
.s4-buybar { display: none; }
@media (max-width: 768px) {
  .s4-buybar {
    display: flex; align-items: center; gap: 12px;
    position: fixed; left: 10px; right: 10px; bottom: calc(10px + env(safe-area-inset-bottom)); z-index: 2000;
    padding: 10px 10px 10px 16px; border-radius: 18px;
    background: rgba(10,31,68,.94); color: #fff; -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
    box-shadow: 0 18px 40px -14px rgba(6,21,51,.7); font-family: var(--s4-font-body);
  }
  .s4-buybar.s4-card { background: rgba(10,31,68,.94); color: #fff; }
  .s4-buybar-txt { min-width: 0; flex: 1; display: grid; gap: 3px; }
  .s4-buybar-name { font: 700 15px/1.2 var(--s4-font-display); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .s4-buybar-price { font-size: 15px; font-weight: 700; color: var(--s4-cta); }
  .s4-buybar .s4-btn { padding: 12px 18px; }
}

/* ---------------- Accordion (Radix) ---------------- */
.s4-acc { display: grid; gap: 10px; }
.s4-acc-item { background: #fff; border: 1px solid var(--s4-line); border-radius: 14px; overflow: hidden; transition: border-color 200ms, box-shadow 200ms; }
.s4-acc-item[data-state="open"] { border-color: rgba(0,180,216,.45); box-shadow: var(--s4-sh-1); }
.s4-acc-h { margin: 0; font: inherit; }
.s4-acc-trigger {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; text-align: left;
  padding: 16px 18px; background: none; border: 0; cursor: pointer;
  font: 700 17px/1.35 var(--s4-font-body); color: var(--s4-navy);
}
.s4-acc-icon { flex: none; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: rgba(0,180,216,.1); color: var(--s4-teal-ink); transition: transform 300ms var(--s4-ease), background 200ms; }
.s4-acc-item[data-state="open"] .s4-acc-icon { transform: rotate(45deg); background: var(--s4-teal); color: #fff; }
.s4-acc-body { padding: 0 18px 16px; color: var(--s4-text); font-size: 17px; line-height: 1.6; }
.s4-acc-body > :first-child { margin-top: 0; }
.s4-acc-body > :last-child { margin-bottom: 0; }

/* Native <details> fallback polish (no-JS, translated FAQs) */
html:not(#s4) details > summary { cursor: pointer; }

/* ---------------- Booking widget: reserve hydrated geometry (no logic change) ---------------- */
/* The text must not re-centre as the neighbouring booking form hydrates. */
html:not(#s4) .hero-grid > .hero-left { align-self: start; }
html:not(#s4) .book-widget .bw-days { min-height: 58px; }
html:not(#s4) .book-widget .bw-sub { min-width: 0; overflow-wrap: anywhere; }
html:not(#s4) .book-widget:not(:has(input)) .bw-times { padding-bottom: 340px; }
@media (max-width: 600px) { html:not(#s4) .book-widget:not(:has(input)) .bw-times { padding-bottom: 420px; } }

/* ---------------- Motion ---------------- */
/* Retire the mirror's old decorative status-dot loops; status text stays intact. */
html:not(#s4) :is(.audit-pulse, .hero-badge .pulse, .log-dot) { animation: none !important; }
/* Hero: ONE entrance on the H1 container only (transform-led, never hidden for LCP) */
@keyframes s4-hero-in { from { opacity: .01; transform: translateY(16px); } to { opacity: 1; transform: none; } }
html:not(#s4) :is(.hero, .shop-hero, .si-hero, [class$="-hero"]) :has(> h1) { animation: s4-hero-in 600ms var(--s4-ease) both; }

/* Page fade between routes (cross-document view transitions; zero JS, never delays navigation) */
@view-transition { navigation: auto; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: 200ms; animation-timing-function: ease-out; }

@media (prefers-reduced-motion: reduce) {
  html:not(#s4) *, html:not(#s4) *::before, html:not(#s4) *::after {
    animation-duration: 1ms !important; animation-iteration-count: 1 !important;
    transition-duration: 1ms !important; scroll-behavior: auto !important;
  }
  html:not(#s4) :is(.s4-ui-btn, .s4-ui-card):hover { transform: none; }
  html.s4-js:not(#s4) h2.s4-rule:not(.s4-drawn)::after { transform: none; }
  ::view-transition-old(root), ::view-transition-new(root) { animation: none; }
}
