@import url("https://fonts.googleapis.com/css2?family=Lora:ital,wght@0,500;0,600;0,700;1,500&display=swap");

/*
  Azbuka Sna — premium visual layer
  Loaded after styles.css so the existing layout, analytics and interactions remain intact.
*/
:root {
  --font-heading: "Lora", Georgia, "Times New Roman", serif;
  --font-body: "Onest", "Manrope", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-ui: "Onest", "Manrope", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --navy: #14283b;
  --navy-deep: #091d2f;
  --ink: #1b3041;
  --muted: #65727b;
  --gold: #a47e61;
  --gold-light: #d9b690;
  --rose: #b98d82;
  --rose-deep: #8f655e;
  --cream: #f7f1e8;
  --sage-premium: #a9b9aa;
  --paper: rgba(255, 253, 249, .72);
  --paper-strong: rgba(255, 253, 249, .92);
  --line: rgba(20, 40, 59, .10);
  --line-gold: rgba(164, 126, 97, .27);
  --shadow: 0 30px 90px rgba(9, 29, 47, .13);
  --shadow-soft: 0 16px 46px rgba(9, 29, 47, .075);
  --radius-xl: 36px;
  --radius-lg: 25px;
  --radius-md: 17px;
}

html { background: #f7f1e8; }
html { color-scheme: light; scrollbar-gutter: stable; -webkit-text-size-adjust: 100%; }
body {
  color: var(--ink);
  background:
    radial-gradient(circle at 8% 2%, rgba(223, 208, 191, .50), transparent 25%),
    radial-gradient(circle at 92% 8%, rgba(169, 185, 170, .22), transparent 27%),
    linear-gradient(180deg, #fcfaf6 0%, #f7f1e8 55%, #f2e9df 100%) !important;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.background {
  background:
    radial-gradient(circle at 8% 5%, rgba(223, 208, 191, .58), transparent 25%),
    radial-gradient(circle at 91% 8%, rgba(169, 185, 170, .25), transparent 28%),
    radial-gradient(circle at 68% 63%, rgba(196, 178, 168, .13), transparent 30%),
    linear-gradient(180deg, #fcfaf6 0%, #f7f1e8 54%, #f2e9df 100%) !important;
}
.background::before {
  background-image: radial-gradient(circle, rgba(20, 40, 59, .15) 0 1px, transparent 1.5px) !important;
  background-size: 70px 70px !important;
  mask-image: linear-gradient(to bottom, #000, transparent 58%) !important;
  opacity: .10 !important;
}

::selection { background: rgba(164, 126, 97, .22); }
p { color: var(--muted); }
img { height: auto; }
a, button, input, select, textarea { -webkit-tap-highlight-color: transparent; }
a, button { touch-action: manipulation; }
:focus-visible {
  outline: 3px solid rgba(164,126,97,.62) !important;
  outline-offset: 4px !important;
}
h1, h2,
.hero-titleline,
.tariff h3,
.consult-card h3,
.article-content h1,
.article-content h2,
.articles-list-shell h1,
.book-copy h1,
.webinar-copy h1,
.coaching-copy h1,
.legal-shell h1 {
  font-family: var(--font-heading) !important;
  font-weight: 600 !important;
  letter-spacing: -.035em !important;
}
h1, h2 { color: var(--navy-deep) !important; }
h2 { line-height: .98 !important; text-wrap: balance; }
.eyebrow {
  color: var(--gold) !important;
  font-size: 11px !important;
  font-weight: 800 !important;
  letter-spacing: .19em !important;
}
.eyebrow::before { width: 30px !important; opacity: .58 !important; }

/* Header */
.header { top: 12px !important; margin-bottom: -88px !important; }
.header-inner {
  min-height: 72px !important;
  padding: 10px 12px 10px 17px !important;
  border: 1px solid rgba(255, 255, 255, .74) !important;
  background: rgba(252, 250, 246, .76) !important;
  box-shadow: 0 15px 42px rgba(9, 29, 47, .075) !important;
  backdrop-filter: blur(24px) saturate(1.06) !important;
}
.header.is-scrolled .header-inner {
  background: rgba(252, 250, 246, .91) !important;
  box-shadow: 0 18px 52px rgba(9, 29, 47, .11) !important;
}
.brand { width: clamp(205px, 21vw, 286px) !important; }
.nav { gap: 2px !important; font-size: 12px !important; font-weight: 700 !important; }
.nav a { padding: 11px 11px !important; }
.nav a:hover { color: var(--gold) !important; background: rgba(255, 255, 255, .66) !important; }
.nav .nav-cta {
  color: #fff !important;
  background: var(--navy-deep) !important;
  box-shadow: 0 13px 30px rgba(9, 29, 47, .20) !important;
}
.branch-none .nav .nav-cta { display: none !important; }
.nav a[href="/coaching/"],
.nav a[href="/book/"] { display: none !important; }

/* Buttons */
.button {
  position: relative;
  overflow: hidden;
  min-height: 58px !important;
  border-radius: 999px !important;
  font-weight: 700 !important;
  letter-spacing: -.01em;
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease !important;
}
.button::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 25%, rgba(255,255,255,.25) 48%, transparent 72%);
  transform: translateX(-135%);
  transition: transform .58s ease;
  pointer-events: none;
}
.button:hover::before { transform: translateX(135%); }
.button:hover { transform: translateY(-3px) !important; }
.button-primary,
.article-nav-cta,
.article-cta-button,
.articles-all-button,
.book-download-button,
.webinar-button,
.coaching-application-button {
  color: #fff !important;
  background: linear-gradient(135deg, #17344b, var(--navy-deep)) !important;
  box-shadow: 0 17px 42px rgba(9, 29, 47, .20) !important;
}
.button-secondary,
.button-plan {
  color: var(--navy-deep) !important;
  border-color: rgba(20, 40, 59, .11) !important;
  background: rgba(255, 253, 249, .77) !important;
  box-shadow: 0 12px 32px rgba(9, 29, 47, .065) !important;
}
.button-gold {
  color: var(--navy-deep) !important;
  background: linear-gradient(135deg, #f1ddc2, #c99d73) !important;
  box-shadow: 0 17px 42px rgba(164, 126, 97, .22) !important;
}

/* Homepage hero */
.hero { padding: 132px 0 58px !important; }
.hero::after { opacity: .26 !important; }
.hero-grid {
  grid-template-columns: minmax(0, 1.02fr) minmax(350px, .78fr) !important;
  gap: clamp(32px, 5vw, 72px) !important;
  padding: clamp(28px, 4.5vw, 60px) !important;
  border: 1px solid rgba(20, 40, 59, .075);
  border-radius: 38px;
  background:
    radial-gradient(circle at 92% 8%, rgba(169, 185, 170, .20), transparent 31%),
    linear-gradient(145deg, rgba(255, 253, 249, .76), rgba(255, 253, 249, .48));
  box-shadow: 0 28px 84px rgba(9, 29, 47, .085);
  backdrop-filter: blur(18px);
  overflow: hidden;
}
.hero-copy { display: block !important; max-width: 700px; }
body.branch-mode.branch-none .hero-copy { display: block !important; }
html body.branch-mode.branch-none .hero .hero-grid .hero-copy { display: block !important; }
body.branch-mode.branch-none .hero-lead-pain,
body.branch-mode.branch-none .hero-main-actions { order: initial !important; }
.hero h1 {
  max-width: 680px !important;
  font-size: clamp(48px, 5.45vw, 78px) !important;
  line-height: 1.03 !important;
  letter-spacing: -.045em !important;
  text-wrap: balance;
}
.hero-title-row { display: block !important; }
.hero-july-alert {
  width: fit-content !important;
  margin: 22px 0 0 !important;
  padding: 9px 13px !important;
  border-color: rgba(164, 126, 97, .25) !important;
  background: rgba(255, 253, 249, .70) !important;
  box-shadow: 0 10px 28px rgba(9, 29, 47, .055) !important;
}
.hero-july-alert span[aria-hidden="true"] { filter: grayscale(.25); }
.hero-titleline {
  max-width: 680px !important;
  margin-top: 25px !important;
  color: var(--navy) !important;
  font-size: clamp(25px, 2.8vw, 38px) !important;
  line-height: 1.04 !important;
}
.hero-lead {
  max-width: 610px !important;
  margin-top: 24px !important;
  color: rgba(27, 48, 65, .72) !important;
  font-size: 17px !important;
  line-height: 1.62 !important;
}
.hero-main-actions { gap: 11px !important; margin-top: 28px !important; }
.hero-main-actions .button { min-width: min(100%, 270px); }
.hero-quick-links {
  margin-top: 18px !important;
  color: rgba(27, 48, 65, .66) !important;
  font-size: 12px !important;
  font-weight: 650 !important;
}
.hero-quick-links a { text-decoration-color: rgba(164, 126, 97, .45) !important; }
.branch-status {
  margin-top: 17px !important;
  border-color: rgba(20, 40, 59, .08) !important;
  background: rgba(255, 253, 249, .55) !important;
}
.hero-media { min-height: 570px !important; }
.portrait-card { min-height: 560px !important; }
.portrait-card::before {
  inset: 26px 10px 0 !important;
  border-radius: 48% 48% 28px 28px / 39% 39% 28px 28px !important;
  border-color: rgba(255, 255, 255, .78) !important;
  background: linear-gradient(150deg, rgba(255,255,255,.69), rgba(223, 208, 191, .20)) !important;
  box-shadow: inset 0 1px rgba(255,255,255,.9), 0 34px 78px rgba(9,29,47,.11) !important;
}
.portrait-halo { border-color: rgba(164,126,97,.24) !important; }
.hero-photo { width: min(415px, 88%) !important; filter: drop-shadow(0 24px 38px rgba(9,29,47,.15)) !important; }
.float-badge {
  width: 184px !important;
  padding: 14px 15px !important;
  border-radius: 18px !important;
  border-color: rgba(255,255,255,.76) !important;
  background: rgba(255,253,249,.80) !important;
  box-shadow: 0 17px 38px rgba(9,29,47,.09) !important;
}
.float-badge strong { color: var(--gold) !important; font-size: 31px !important; font-weight: 600 !important; }
.float-badge span { color: rgba(27,48,65,.67) !important; font-weight: 650 !important; }

/* Direction cards */
.service-options-after-hero {
  padding-top: 64px !important;
  padding-bottom: 72px !important;
  background: transparent !important;
}
.section-head { max-width: 810px !important; }
.section-head h2 { font-size: clamp(45px, 5.5vw, 70px) !important; }
.section-head p:not(.eyebrow) { color: rgba(27,48,65,.67) !important; line-height: 1.62 !important; }
.hero-options-panel {
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 16px !important;
  margin-top: 28px !important;
}
.service-choice-card {
  min-height: 330px !important;
  padding: 25px !important;
  gap: 10px !important;
  border: 1px solid rgba(20,40,59,.085) !important;
  border-radius: 27px !important;
  background:
    radial-gradient(circle at 100% 0%, rgba(169,185,170,.15), transparent 32%),
    rgba(255,253,249,.72) !important;
  box-shadow: 0 18px 52px rgba(9,29,47,.075) !important;
  backdrop-filter: blur(16px);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease !important;
}
.service-choice-card:hover {
  transform: translateY(-7px) !important;
  border-color: rgba(164,126,97,.31) !important;
  box-shadow: 0 29px 68px rgba(9,29,47,.12) !important;
}
.service-choice-card::after { background: rgba(169,185,170,.13) !important; }
.service-choice-course,
.service-choice-coaching,
.service-choice-special {
  background:
    radial-gradient(circle at 100% 0%, rgba(169,185,170,.15), transparent 32%),
    rgba(255,253,249,.76) !important;
}
.service-choice-call {
  color: #fff !important;
  background:
    radial-gradient(circle at 100% 0%, rgba(217,182,144,.22), transparent 34%),
    linear-gradient(145deg, #18364c, var(--navy-deep)) !important;
  border-color: rgba(255,255,255,.12) !important;
  box-shadow: 0 25px 67px rgba(9,29,47,.22) !important;
}
.service-choice-card strong {
  color: var(--navy-deep) !important;
  font-family: var(--font-heading) !important;
  font-size: 30px !important;
  font-weight: 600 !important;
  line-height: 1 !important;
}
.service-choice-call strong { color: #fff !important; }
.service-choice-card small { color: rgba(27,48,65,.65) !important; font-weight: 500 !important; line-height: 1.52 !important; }
.service-choice-call small { color: rgba(255,255,255,.69) !important; }
.service-choice-card em { margin-top: auto !important; color: var(--gold) !important; font-style: normal !important; font-weight: 750 !important; }
.service-choice-call em, .service-choice-call .service-kicker { color: var(--gold-light) !important; }
.service-icon {
  width: 45px !important;
  height: 45px !important;
  border-radius: 15px !important;
  background: rgba(169,185,170,.18) !important;
  box-shadow: none !important;
}
.service-choice-course .service-icon,
.service-choice-coaching .service-icon,
.service-choice-special .service-icon {
  color: var(--navy) !important;
  background: rgba(169,185,170,.20) !important;
}
.service-choice-course .service-icon svg,
.service-choice-coaching .service-icon svg,
.service-choice-special .service-icon svg {
  fill: none !important;
  stroke: currentColor !important;
}
.service-choice-call .service-icon { background: rgba(255,255,255,.09) !important; }
.course-flow-chip-card {
  color: #755e48 !important;
  background: rgba(217,182,144,.16) !important;
  border-color: rgba(164,126,97,.20) !important;
}

/* Shared sections and cards */
.section { padding-top: clamp(60px, 7vw, 90px) !important; padding-bottom: clamp(60px, 7vw, 90px) !important; }
.section-white { background: rgba(255,253,249,.38) !important; }
.soft-card,
.diagnostic-card,
.problem-card,
.timeline article,
.inside-grid article,
.case-card,
.fit-card,
.afterpay-grid article,
.system-grid article,
.age-grid article,
.credential-list div,
.article-card {
  border-color: rgba(20,40,59,.085) !important;
  background: rgba(255,253,249,.69) !important;
  box-shadow: var(--shadow-soft) !important;
  backdrop-filter: blur(15px);
}
.articles-list-grid .article-card,
.articles-grid-expanded .article-card {
  background: rgba(255,253,249,.80) !important;
}
.articles-list-grid .article-card-main,
.articles-grid-expanded .article-card-main {
  background:
    radial-gradient(circle at 100% 0%, rgba(169,185,170,.19), transparent 34%),
    rgba(255,253,249,.82) !important;
}
.articles-list-shell > .eyebrow {
  width: fit-content;
  padding: 8px 13px !important;
  border: 1px solid rgba(164,126,97,.18) !important;
  border-radius: 999px;
  background: rgba(217,182,144,.13) !important;
}
.timeline article,
.inside-grid article,
.case-card,
.fit-card,
.problem-card,
.article-card { border-radius: 24px !important; }
.timeline h3,
.inside-grid h3,
.case-card h3,
.problem-card h3,
.afterpay-grid h3,
.system-grid h3,
.age-grid h3 {
  font-family: var(--font-heading) !important;
  font-size: 29px !important;
  font-weight: 600 !important;
  line-height: 1.02 !important;
}

/* FirstMed */
.clinic-section { background: transparent !important; }
.clinic-card {
  border-color: rgba(20,40,59,.08) !important;
  border-radius: 34px !important;
  background:
    radial-gradient(circle at 96% 2%, rgba(169,185,170,.23), transparent 34%),
    linear-gradient(135deg, rgba(255,253,249,.78), rgba(239,234,224,.65)) !important;
  box-shadow: 0 27px 80px rgba(9,29,47,.09) !important;
}
.clinic-card::before { opacity: .07 !important; }
.clinic-copy h2 { font-size: clamp(44px, 5.2vw, 70px) !important; font-weight: 600 !important; }
.clinic-eyebrow { color: var(--gold) !important; }
.clinic-points span { background: rgba(255,253,249,.76) !important; font-weight: 650 !important; }
.clinic-action {
  border-color: rgba(20,40,59,.08) !important;
  background: rgba(255,253,249,.84) !important;
  box-shadow: 0 17px 44px rgba(9,29,47,.075) !important;
}
.clinic-badge { color: var(--navy) !important; background: rgba(169,185,170,.25) !important; }
.clinic-action strong { font-family: var(--font-heading) !important; font-size: clamp(31px,3vw,43px) !important; font-weight: 600 !important; }
.clinic-button { background: var(--navy-deep) !important; box-shadow: 0 17px 42px rgba(9,29,47,.19) !important; }

/* Course tariffs */
.tariffs-section {
  background:
    radial-gradient(circle at 8% 4%, rgba(217,182,144,.12), transparent 25%),
    linear-gradient(180deg, var(--navy-deep), #102c42) !important;
}
.tariffs-section .section-head h2 { color: #fff !important; }
.tariffs-section .section-head p:not(.eyebrow) { color: rgba(255,255,255,.65) !important; }
.tariffs { gap: 20px !important; }
.tariff {
  border-color: rgba(255,255,255,.11) !important;
  border-radius: 29px !important;
  background: rgba(255,255,255,.075) !important;
  box-shadow: none !important;
  backdrop-filter: blur(12px);
}
.tariff::before { background: linear-gradient(145deg, rgba(255,255,255,.08), transparent 48%) !important; }
.tariff:not(.tariff-featured) h3,
.tariff:not(.tariff-featured) .price,
.tariff:not(.tariff-featured) .currency,
.tariff:not(.tariff-featured) .support-level strong { color: #fff !important; }
.tariff:not(.tariff-featured) .tariff-desc,
.tariff:not(.tariff-featured) li,
.tariff:not(.tariff-featured) .support-level span { color: rgba(255,255,255,.69) !important; }
.tariff:not(.tariff-featured) ul { border-top-color: rgba(255,255,255,.12) !important; }
.tariff-featured {
  transform: translateY(-12px) !important;
  border-color: rgba(217,182,144,.35) !important;
  background:
    radial-gradient(circle at 94% 0%, rgba(217,182,144,.25), transparent 36%),
    linear-gradient(155deg, #24475c, #10283c) !important;
  box-shadow: 0 31px 78px rgba(0,0,0,.22) !important;
}
.popular { background: linear-gradient(135deg,#f2dfc7,#c99d73) !important; box-shadow: 0 13px 31px rgba(0,0,0,.18) !important; }
.tariff-promo { background: rgba(217,182,144,.13) !important; color: var(--gold-light) !important; }
.tariff .button-stripe { border-color: rgba(255,255,255,.16) !important; background: rgba(255,255,255,.08) !important; color: #fff !important; }

/* Consultations */
.consults-section {
  background:
    radial-gradient(circle at 92% 8%, rgba(169,185,170,.19), transparent 29%),
    linear-gradient(180deg,#f8f3eb,#f1e9df) !important;
}
.consults-section::before,.consults-section::after { opacity: .07 !important; }
.consults-hero {
  border-color: rgba(20,40,59,.08) !important;
  border-radius: 34px !important;
  background: rgba(255,253,249,.72) !important;
  box-shadow: 0 25px 72px rgba(9,29,47,.085) !important;
}
.consults-copy h2 { color: var(--navy-deep) !important; font-size: clamp(45px,5.5vw,72px) !important; }
.consults-panel {
  border-color: rgba(255,255,255,.10) !important;
  background: linear-gradient(145deg,#17384f,var(--navy-deep)) !important;
  box-shadow: 0 24px 64px rgba(9,29,47,.22) !important;
}
.consults-grid { gap: 16px !important; }
.consult-card {
  border-color: rgba(20,40,59,.085) !important;
  border-radius: 26px !important;
  background: rgba(255,253,249,.74) !important;
  box-shadow: 0 18px 50px rgba(9,29,47,.075) !important;
}
.consult-card::before { background: var(--gold) !important; }
.consult-card-gold,.consult-card-emerald { background: rgba(255,253,249,.80) !important; }
.consult-card h3 { color: var(--navy-deep) !important; font-size: 32px !important; }
.consult-format-row span { color: var(--navy) !important; background: rgba(169,185,170,.16) !important; }
.button-consult,.button-consult-gold,.button-consult-emerald,.button-consult-main {
  color: #fff !important;
  background: var(--navy-deep) !important;
  box-shadow: 0 16px 39px rgba(9,29,47,.18) !important;
}

/* Articles and knowledge base */
.article-page,
.articles-list-main {
  background:
    radial-gradient(circle at 90% 6%, rgba(169,185,170,.20), transparent 26%),
    linear-gradient(180deg,#fcfaf6,#f4ede4) !important;
}
.article-header-inner,
.articles-list-shell,
.article-content,
.article-aside {
  border-color: rgba(20,40,59,.08) !important;
  background: rgba(255,253,249,.78) !important;
  box-shadow: 0 18px 52px rgba(9,29,47,.075) !important;
  backdrop-filter: blur(16px);
}
.article-content h1,
.articles-list-shell h1 { color: var(--navy-deep) !important; font-weight: 600 !important; }
.article-content h2 { color: var(--navy-deep) !important; font-weight: 600 !important; }
.article-lead { color: rgba(27,48,65,.72) !important; font-weight: 500 !important; }
.article-content p,.article-content li { color: rgba(27,48,65,.75) !important; }
.article-note,.article-cta {
  border-color: rgba(164,126,97,.20) !important;
  background: linear-gradient(135deg,rgba(255,253,249,.86),rgba(223,208,191,.36)) !important;
}
.article-card {
  border-color: rgba(20,40,59,.08) !important;
  background: rgba(255,253,249,.77) !important;
}
.article-card::before { background: var(--gold) !important; }
.article-card strong { color: var(--navy-deep) !important; font-family: var(--font-heading) !important; font-weight: 600 !important; }
.article-card span,.article-card em,.article-related a span { color: var(--gold) !important; }
.articles-service-options { background: rgba(255,253,249,.67) !important; border-color: rgba(20,40,59,.08) !important; }

/* Standalone book, webinar and coaching pages */
.book-standalone,
.webinar-standalone,
.coaching-standalone,
.legal-page {
  background:
    radial-gradient(circle at 92% 5%, rgba(169,185,170,.22), transparent 27%),
    radial-gradient(circle at 8% 2%, rgba(223,208,191,.50), transparent 25%),
    linear-gradient(180deg,#fcfaf6,#f4ede4) !important;
}
.coaching-section,
.coaching-page-section {
  background:
    radial-gradient(circle at 92% 7%, rgba(169,185,170,.20), transparent 29%),
    radial-gradient(circle at 8% 2%, rgba(223,208,191,.42), transparent 26%),
    linear-gradient(180deg,#fcfaf6,#f3ece2) !important;
}
.webinar-section,
.webinar-page-section {
  background:
    radial-gradient(circle at 88% 8%, rgba(217,182,144,.17), transparent 28%),
    radial-gradient(circle at 6% 3%, rgba(169,185,170,.15), transparent 27%),
    linear-gradient(180deg,#fcfaf6,#f3ece2) !important;
}
.book-hero-section,
.book-inside-section,
.book-for-section {
  background:
    radial-gradient(circle at 90% 6%, rgba(169,185,170,.15), transparent 28%),
    linear-gradient(180deg,rgba(252,250,246,.86),rgba(243,236,226,.86)) !important;
}
.coaching-section::before,
.coaching-section::after,
.webinar-section::before,
.webinar-section::after,
.book-hero-section::before,
.book-inside-section::before,
.book-for-section::before { opacity: .06 !important; }

/* Version 35: sleep diagnostics and the dedicated course page */
.sleep-system-section,
.sleep-redflags-section {
  background:
    radial-gradient(circle at 92% 7%, rgba(169,185,170,.16), transparent 28%),
    linear-gradient(180deg,rgba(252,250,246,.72),rgba(243,236,226,.72)) !important;
}
.sleep-system-shell,
.sleep-redflags-shell {
  border: 1px solid rgba(20,40,59,.08) !important;
  border-radius: 34px !important;
  background: rgba(255,253,249,.76) !important;
  box-shadow: 0 25px 76px rgba(9,29,47,.085) !important;
  backdrop-filter: blur(17px);
}
.sleep-system-copy h2,
.sleep-redflags-copy h2,
.sleep-map-form-column h2 {
  font-family: var(--font-heading) !important;
  font-weight: 600 !important;
  letter-spacing: -.035em !important;
}
.sleep-map-form-column h2 { color: #fff !important; }
.sleep-system-eyebrow { color: var(--gold) !important; }
.sleep-system-button {
  color: #fff !important;
  background: var(--navy-deep) !important;
  box-shadow: 0 16px 40px rgba(9,29,47,.18) !important;
}
.sleep-system-shell article,
.sleep-redflags-list article {
  border-color: rgba(20,40,59,.08) !important;
  border-radius: 21px !important;
  background: rgba(247,241,232,.68) !important;
}
.sleep-map-section,
.sleep-map-combined-section {
  background:
    radial-gradient(circle at 92% 8%, rgba(217,182,144,.14), transparent 29%),
    linear-gradient(180deg,#102d42,var(--navy-deep)) !important;
}
.sleep-map-shell {
  border: 1px solid rgba(255,255,255,.10) !important;
  border-radius: 35px !important;
  background: rgba(255,255,255,.055) !important;
  box-shadow: 0 30px 88px rgba(0,0,0,.21) !important;
}
.sleep-map-form-column {
  border-color: rgba(255,255,255,.09) !important;
  background: rgba(255,255,255,.035) !important;
}
.sleep-map-result {
  border-color: rgba(20,40,59,.08) !important;
  background: rgba(255,253,249,.94) !important;
  box-shadow: 0 19px 52px rgba(0,0,0,.13) !important;
}
.sleep-map-options label,
.sleep-map-support-options label {
  border-color: rgba(255,255,255,.10) !important;
  background: rgba(255,255,255,.055) !important;
}
.sleep-map-options label:has(input:checked),
.sleep-map-support-options label:has(input:checked) {
  border-color: rgba(217,182,144,.42) !important;
  background: rgba(217,182,144,.13) !important;
}
.sleep-map-options input,
.sleep-map-support-options input { accent-color: #d9b690 !important; }
.sleep-map-submit,
.sleep-map-primary {
  color: var(--navy-deep) !important;
  background: linear-gradient(135deg,#f0dcc1,#c99d73) !important;
  box-shadow: 0 17px 42px rgba(0,0,0,.17) !important;
}
.sleep-map-progress b {
  color: var(--navy-deep) !important;
  background: linear-gradient(135deg,#f0dcc1,#d9b690) !important;
}
.sleep-map-plan,
.sleep-map-result-item,
.sleep-map-first-step {
  border-color: rgba(20,40,59,.08) !important;
  background: rgba(247,241,232,.67) !important;
}
.sleep-redflags-eyebrow { color: #9b6b63 !important; }
.sleep-redflags-note {
  border-color: rgba(155,107,99,.18) !important;
  background: rgba(185,141,130,.10) !important;
}
.sleep-redflags-clinic { background: var(--navy-deep) !important; box-shadow: 0 16px 40px rgba(9,29,47,.18) !important; }
.sleep-redflags-online { color: var(--gold) !important; }

.course-standalone {
  background:
    radial-gradient(circle at 90% 6%, rgba(169,185,170,.18), transparent 27%),
    radial-gradient(circle at 8% 2%, rgba(223,208,191,.42), transparent 25%),
    linear-gradient(180deg,#fcfaf6,#f3ece2) !important;
}
.course-page-header { background: transparent !important; }
.course-page-back-card {
  border-color: rgba(20,40,59,.08) !important;
  background: rgba(252,250,246,.86) !important;
  box-shadow: 0 14px 40px rgba(9,29,47,.07) !important;
  backdrop-filter: blur(20px);
}
.course-presentation-section { background: transparent !important; }
.course-practicum-hero,
.course-practicum-routes,
.course-practicum-weeks,
.course-practicum-inside,
.course-practicum-choice,
.course-question-card {
  border-color: rgba(20,40,59,.08) !important;
  background: rgba(255,253,249,.76) !important;
  box-shadow: 0 21px 62px rgba(9,29,47,.08) !important;
  backdrop-filter: blur(16px);
}
.course-practicum-hero { border-radius: 34px !important; }
.course-practicum-copy h2,
.course-section-head h3,
.course-inside-main h3,
.course-practicum-choice h3,
.course-question-card h2 {
  font-family: var(--font-heading) !important;
  font-weight: 600 !important;
  letter-spacing: -.035em !important;
  color: var(--navy-deep) !important;
}
.course-practicum-side {
  border-color: rgba(255,255,255,.10) !important;
  background: linear-gradient(145deg,#17384f,var(--navy-deep)) !important;
  box-shadow: 0 23px 60px rgba(9,29,47,.20) !important;
}
.course-route-grid article,
.course-week-grid article,
.course-inside-list article {
  border-color: rgba(20,40,59,.08) !important;
  background: rgba(247,241,232,.72) !important;
  box-shadow: none !important;
}
.course-route-grid article::before,
.course-week-grid article::before,
.course-inside-list article::before { background: var(--gold) !important; }
.course-side-button,
.course-map-button,
.course-question-button { background: linear-gradient(135deg,#f0dcc1,#c99d73) !important; color: var(--navy-deep) !important; }
.course-tariffs-button { background: var(--navy-deep) !important; color: #fff !important; }

/* Interactive night-feeding assessment */
.night-feeding-test {
  border-color: rgba(255,255,255,.11) !important;
  background:
    radial-gradient(circle at 94% 4%, rgba(217,182,144,.16), transparent 28%),
    linear-gradient(155deg,#17384f,var(--navy-deep)) !important;
  box-shadow: 0 28px 82px rgba(9,29,47,.22) !important;
}
.night-feeding-test::before { opacity: .07 !important; }
.night-feeding-progress b,
.night-test-submit,
.night-plan-primary {
  color: var(--navy-deep) !important;
  background: linear-gradient(135deg,#f0dcc1,#c99d73) !important;
}
.night-test-options label:has(input:checked) {
  background: rgba(217,182,144,.13) !important;
  border-color: rgba(217,182,144,.40) !important;
}
.night-test-options input { accent-color: #d9b690 !important; }
.night-test-result,
.night-result-comparison > div {
  border-color: rgba(20,40,59,.08) !important;
  background: rgba(255,253,249,.95) !important;
}
.night-result-reasons article,
.night-result-steps { background: rgba(217,182,144,.13) !important; border-color: rgba(164,126,97,.16) !important; }
.night-result-recommendation { background: linear-gradient(145deg,#17384f,var(--navy-deep)) !important; }
.article-test-notice {
  border-color: rgba(164,126,97,.18) !important;
  background:
    radial-gradient(circle at 100% 0%, rgba(169,185,170,.17), transparent 32%),
    rgba(255,253,249,.82) !important;
}
.article-test-notice-button {
  color: #fff !important;
  background: var(--navy-deep) !important;
  box-shadow: 0 17px 42px rgba(9,29,47,.18) !important;
  animation: none !important;
}
.article-test-notice-button::before { display: none !important; }

@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .header-inner,
  .service-choice-card,
  .soft-card,
  .tariff,
  .consult-card,
  .article-content,
  .articles-list-shell { background-color: rgba(255,253,249,.97) !important; }
}

@media print {
  .header,.footer,.sticky-cta,.freebie-modal,.webinar-mobile-sticky,.mobile-cta { display: none !important; }
  body { background: #fff !important; color: #000 !important; }
  .section,.article-shell { padding: 20px 0 !important; }
  a { color: inherit !important; text-decoration: underline; }
}
.book-page-header-inner,
.webinar-page-header-inner,
.coaching-page-header-inner {
  border-color: rgba(20,40,59,.08) !important;
  background: rgba(252,250,246,.82) !important;
  box-shadow: 0 14px 42px rgba(9,29,47,.075) !important;
  backdrop-filter: blur(20px);
}
.book-copy h1,
.webinar-copy h1,
.coaching-copy h1 { color: var(--navy-deep) !important; font-size: clamp(52px,7vw,92px) !important; line-height: .90 !important; }
.book-visual-card,
.book-for-card,
.book-topic-list article,
.webinar-photo-card,
.webinar-card,
.webinar-topic-panel,
.webinar-topic-grid article,
.webinar-story-card,
.webinar-result-grid article,
.coaching-hero-photo-card,
.coaching-note-card,
.coaching-option,
.coaching-method-block,
.coaching-bonus-panel,
.coaching-application-card {
  border-color: rgba(20,40,59,.08) !important;
  box-shadow: 0 20px 58px rgba(9,29,47,.08) !important;
  backdrop-filter: blur(15px);
}
.book-visual-card,
.book-for-card,
.book-topic-list article,
.webinar-card,
.webinar-topic-panel,
.webinar-topic-grid article,
.webinar-story-card,
.webinar-result-grid article,
.coaching-note-card,
.coaching-option,
.coaching-method-block,
.coaching-bonus-panel,
.coaching-application-card { background: rgba(255,253,249,.74) !important; }
.webinar-card-link,.coaching-main-link { color: var(--gold) !important; }
.coaching-option h3,.webinar-topic-grid h3,.book-topic-list h3 { font-family: var(--font-heading) !important; font-weight: 600 !important; color: var(--navy-deep) !important; }

/* Footer and fixed conversion UI */
.footer {
  border-top-color: rgba(20,40,59,.08) !important;
  background: rgba(247,241,232,.64) !important;
}
.sticky-cta,
.webinar-mobile-sticky {
  border-color: rgba(255,255,255,.72) !important;
  background: rgba(252,250,246,.88) !important;
  box-shadow: 0 20px 55px rgba(9,29,47,.14) !important;
  backdrop-filter: blur(20px) !important;
}
.freebie-modal-card {
  border-color: rgba(20,40,59,.09) !important;
  background: rgba(252,250,246,.96) !important;
  box-shadow: 0 35px 110px rgba(9,29,47,.24) !important;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto !important; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

@media (max-width: 1179px) {
  .hero-options-panel { grid-template-columns: repeat(2,minmax(0,1fr)) !important; }
  .header-inner { background: rgba(252,250,246,.90) !important; }
  .nav { background: rgba(252,250,246,.98) !important; }
  .tariff-featured { transform: none !important; }
}

@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr !important; padding: 32px !important; }
  .hero-copy { max-width: 760px; }
  .hero-media { min-height: 510px !important; }
  .service-choice-card { min-height: 290px !important; }
}

@media (max-width: 767px) {
  :root { --radius-xl: 27px; --radius-lg: 21px; }
  .container { width: min(100% - 24px,var(--container)) !important; }
  .header { top: 7px !important; margin-bottom: -70px !important; }
  .header-inner { min-height: 60px !important; padding: 8px 9px 8px 12px !important; }
  .brand { width: min(225px,calc(100vw - 92px)) !important; }
  .hero { padding: 93px 0 32px !important; }
  .hero-grid { padding: 22px 18px 18px !important; border-radius: 27px !important; }
  .hero h1 { font-size: clamp(39px,10.8vw,51px) !important; line-height: 1.06 !important; letter-spacing: -.04em !important; }
  .hero-titleline { font-size: 23px !important; line-height: 1.2 !important; }
  .hero-lead { margin-top: 18px !important; font-size: 15px !important; line-height: 1.6 !important; }
  .hero-july-alert { margin-top: 16px !important; }
  .hero-main-actions { display: grid !important; grid-template-columns: 1fr !important; }
  .hero-main-actions .button { width: 100% !important; }
  .hero-quick-links { gap: 8px !important; }
  .hero-quick-links > span { display: none !important; }
  .branch-status { padding: 11px !important; font-size: 11.5px !important; }
  .mobile-hero-mini-photo { border-color: rgba(20,40,59,.08) !important; background: rgba(223,208,191,.30) !important; }
  .section { padding-top: 48px !important; padding-bottom: 48px !important; }
  .section-head h2 { font-size: 38px !important; line-height: 1.1 !important; }
  .section-head p:not(.eyebrow) { font-size: 14px !important; }
  .hero-options-panel { grid-template-columns: 1fr !important; gap: 11px !important; }
  .service-choice-card { min-height: 0 !important; padding: 21px !important; border-radius: 22px !important; }
  .service-choice-card strong { font-size: 28px !important; }
  .clinic-card { padding: 19px !important; border-radius: 25px !important; }
  .clinic-copy h2 { font-size: 41px !important; }
  .tariff,.consult-card { border-radius: 24px !important; }
  .tariff-featured { transform: none !important; }
  .book-copy h1,.webinar-copy h1,.coaching-copy h1 { font-size: 50px !important; }
  .article-content h1,.articles-list-shell h1 { font-size: 40px !important; }
  .article-content h2 { font-size: 27px !important; }
}

/* Ambient nursery objects: decorative, non-interactive and deliberately quiet. */
body { isolation: isolate; }
body > main,
body > footer { position: relative; z-index: 1; }

.ambient-toys {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  user-select: none;
  contain: strict;
}
.ambient-toy {
  --toy-size: 86px;
  --toy-opacity: .105;
  position: absolute;
  width: var(--toy-size);
  aspect-ratio: 1;
  color: #a27758;
  opacity: var(--toy-opacity);
  background: currentColor;
  -webkit-mask: var(--toy-icon) center / contain no-repeat;
  mask: var(--toy-icon) center / contain no-repeat;
  filter: drop-shadow(0 12px 18px rgba(20,40,59,.08));
  animation: toy-drift 18s ease-in-out infinite alternate;
  will-change: transform;
}
.toy-bike {
  --toy-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64' fill='none' stroke='black' stroke-width='2.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='15' cy='44' r='10'/%3E%3Ccircle cx='49' cy='44' r='10'/%3E%3Cpath d='M15 44 28 27l8 17H15Zm13-17h9m-13-5h10m9 22-7-26h8m-2 5h8'/%3E%3C/svg%3E");
}
.toy-pacifier {
  --toy-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64' fill='none' stroke='black' stroke-width='2.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cellipse cx='32' cy='44' rx='12' ry='10'/%3E%3Cellipse cx='32' cy='44' rx='5' ry='4'/%3E%3Cpath d='M15 27c3-7 9-11 17-11s14 4 17 11c-3 8-9 12-17 12S18 35 15 27Z'/%3E%3Cpath d='M26 16c0-6 2-10 6-10s6 4 6 10'/%3E%3C/svg%3E");
}
.toy-stroller {
  --toy-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64' fill='none' stroke='black' stroke-width='2.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='25' cy='51' r='5'/%3E%3Ccircle cx='47' cy='51' r='5'/%3E%3Cpath d='M14 17h8l7 27h19M27 23h24c0 12-7 21-22 21'/%3E%3Cpath d='M31 23c2-8 8-12 18-12v12'/%3E%3C/svg%3E");
}
.ambient-toy:nth-child(1) { top: 12%; left: 2%; --toy-size: 92px; transform: rotate(-12deg); animation-duration: 20s; }
.ambient-toy:nth-child(2) { top: 28%; right: 3%; --toy-size: 68px; transform: rotate(11deg); animation-duration: 16s; animation-delay: -5s; }
.ambient-toy:nth-child(3) { top: 49%; left: 4%; --toy-size: 78px; transform: rotate(7deg); animation-duration: 22s; animation-delay: -11s; }
.ambient-toy:nth-child(4) { top: 68%; right: 2%; --toy-size: 102px; transform: rotate(-8deg); animation-duration: 19s; animation-delay: -8s; }
.ambient-toy:nth-child(5) { top: 84%; left: 6%; --toy-size: 63px; transform: rotate(13deg); animation-duration: 17s; animation-delay: -3s; }
.ambient-toy:nth-child(6) { top: 6%; right: 18%; --toy-size: 58px; --toy-opacity: .075; animation-duration: 23s; animation-delay: -14s; }
.ambient-toy:nth-child(7) { top: 39%; right: 17%; --toy-size: 54px; --toy-opacity: .065; animation-duration: 18s; animation-delay: -6s; }
.ambient-toy:nth-child(8) { top: 61%; left: 17%; --toy-size: 61px; --toy-opacity: .07; animation-duration: 21s; animation-delay: -12s; }
.ambient-toy:nth-child(9) { top: 91%; right: 20%; --toy-size: 72px; --toy-opacity: .07; animation-duration: 24s; animation-delay: -10s; }

@keyframes toy-drift {
  0% { translate: 0 -8px; rotate: -3deg; }
  50% { translate: 10px 8px; rotate: 2deg; }
  100% { translate: -6px 18px; rotate: 5deg; }
}

/* Contrast contract: ink on light editorial surfaces. */
.article-page .article-content,
.article-page .article-aside,
.article-page .articles-list-shell,
.article-page .articles-service-options,
.article-page .article-note,
.article-page .article-cta,
.article-page .article-card,
.article-page .article-related a {
  color: var(--navy-deep) !important;
}
.article-page .article-content :where(h1,h2,h3,h4,h5,strong,summary,a:not(.button)),
.article-page .article-aside :where(h2,h3,h4,strong,a:not(.button)),
.article-page .articles-list-shell :where(h1,h2,h3,h4,strong,a:not(.button)),
.article-page .article-card strong,
.article-page .article-related a {
  color: var(--navy-deep) !important;
}
.article-page .article-content :where(p,li,small,blockquote),
.article-page .article-aside :where(p,li,small),
.article-page .articles-list-shell :where(p,li,small),
.article-page .article-card p {
  color: rgba(27,48,65,.78) !important;
}
.article-page .article-card :where(span,em),
.article-page .article-content .eyebrow,
.article-page .articles-list-shell .eyebrow { color: var(--gold) !important; }
.article-page :where(.button-primary,.article-cta-button,.article-nav-cta,.articles-all-button) { color: #fff !important; }

/* Contrast contract: light type on every dark service surface. */
.tariffs-section .tariff,
.consults-panel,
.course-practicum-side,
.night-feeding-test,
.guide-panel,
.medical-alert,
.service-choice-call {
  color: #fff !important;
}
.tariffs-section .tariff :where(h3,h4,strong,.price),
.consults-panel :where(h2,h3,h4,strong),
.course-practicum-side :where(h2,h3,h4,strong),
.night-feeding-test :where(h2,h3,h4,strong,label,legend),
.guide-panel :where(h2,h3,h4,strong),
.service-choice-call strong {
  color: #fff !important;
}
.tariffs-section .tariff :where(p,li,small,.tariff-desc,.support-level span),
.consults-panel :where(p,li,small),
.course-practicum-side :where(p,li,small),
.night-feeding-test :where(p,li,small),
.guide-panel :where(p,li,small),
.service-choice-call small {
  color: rgba(255,255,255,.76) !important;
}
.tariffs-section .tariff :where(.currency,.tariff-kicker,.tariff-label,.tariff-promo),
.consults-panel .eyebrow,
.course-practicum-side .eyebrow,
.night-feeding-test .eyebrow,
.service-choice-call :where(em,.service-kicker) { color: var(--gold-light) !important; }
.tariffs-section .tariff :where(.button-gold,.tariff-buy:not(.button-stripe)),
.course-practicum-side :where(.button-gold,.course-side-button),
.night-feeding-test :where(.night-test-submit,.night-plan-primary) { color: var(--navy-deep) !important; }

/* Light result cards nested inside dark tools must switch back to ink. */
.sleep-map-result,
.night-test-result { color: var(--navy-deep) !important; }
.sleep-map-result :where(h2,h3,h4,strong,label),
.night-test-result :where(h2,h3,h4,strong,label) { color: var(--navy-deep) !important; }
.sleep-map-result :where(p,li,small,span),
.night-test-result :where(p,li,small,span) { color: rgba(27,48,65,.78) !important; }

.sleep-map-form-column { color: #fff !important; }
.sleep-map-form-column :where(h2,h3,h4,strong,label,legend) { color: #fff !important; }
.sleep-map-form-column :where(p,li,small) { color: rgba(255,255,255,.76) !important; }
.sleep-map-form-column :where(input,select,option,textarea) { color: var(--navy-deep) !important; }

@media (max-width: 767px) {
  .ambient-toy { --toy-opacity: .075; --toy-size: 62px; }
  .ambient-toy:nth-child(n+6) { display: none; }
  .ambient-toy:nth-child(1) { left: -16px; }
  .ambient-toy:nth-child(2) { right: -14px; }
  .ambient-toy:nth-child(3) { left: -12px; }
  .ambient-toy:nth-child(4) { right: -22px; }
}

@media (prefers-reduced-motion: reduce) {
  .ambient-toy { animation: none !important; }
}

/* The interactive test lives inside the light article shell, so it needs the
   stronger dark-surface scope to win over editorial typography rules. */
.article-page .article-content .night-feeding-test :where(h2,h3,h4,strong,label,legend) {
  color: #fff !important;
}
.article-page .article-content .night-feeding-test :where(p:not(.eyebrow),li,small) {
  color: rgba(255,255,255,.78) !important;
}
.article-page .article-content .night-feeding-test .eyebrow {
  color: var(--gold-light) !important;
}
.article-page .article-content .night-test-result :where(h2,h3,h4,strong,label) {
  color: var(--navy-deep) !important;
}
.article-page .article-content .night-test-result :where(p,li,small,span) {
  color: rgba(27,48,65,.78) !important;
}

/* Coaching methodology is a light glass card in the premium theme. */
.coaching-standalone .coaching-method-block {
  color: var(--navy-deep) !important;
}
.coaching-standalone .coaching-method-block::after {
  color: rgba(9,29,47,.045) !important;
}
.coaching-standalone .coaching-method-eyebrow {
  color: var(--gold) !important;
}
.coaching-standalone .coaching-method-copy h3,
.coaching-standalone .coaching-method-copy > p,
.coaching-standalone .coaching-method-copy > p strong {
  color: var(--navy-deep) !important;
}
.coaching-standalone .coaching-method-points article {
  border-color: rgba(20,40,59,.09) !important;
  background: rgba(255,255,255,.58) !important;
}
.coaching-standalone .coaching-method-points span {
  color: var(--gold) !important;
}
.coaching-standalone .coaching-method-points strong {
  color: var(--navy-deep) !important;
}
.coaching-standalone .coaching-method-points p {
  color: rgba(27,48,65,.76) !important;
}
