/* Page-specific layout and interaction refinements, after the imported site chrome. */
:root {
  --site-header-height: 80px;
  --section-nav-height: 53px;
  --mobile-bar-height: 0px;
}
.container { width: min(1232px, calc(100% - 64px)); }
.hero-copy, .safety-grid > *, .faq-section > *, .section-heading > *, .outcome-card, .final-cta-grid > * { min-width: 0; }
.section { padding-block: clamp(52px, 6vw, 80px); }
h2 { font-size: clamp(2.1rem, 3.7vw, 3.55rem); text-wrap: balance; }
.hero h1 { text-wrap: balance; }
main h1, main h2, main h3, main p, .choice-row label > span { overflow-wrap: break-word; }
.mobile-cta.is-text-expanded { display: none; }
.section-heading > p { flex: 0 1 370px; }
.section-heading > div { flex: 1 1 0; }
.eyebrow { font-size: .8125rem; }
.picker-inclusions li, .picker-reassurance, .picker-safety, .selection-summary,
.consultation-included p, .picker-price .saving, .pricing-math, .pricing-disclosure,
.calculator-note, .review-note, .actual-app-demo figcaption, .lifestyle-disclosure { font-size: .875rem; }
.program-total { font-size: .9375rem; font-weight: 400; color: var(--muted); }
.picker-price .price { flex-wrap: wrap; gap: 4px 10px; }
.picker-price .price strong { font-size: clamp(2.8rem, 4.5vw, 3.65rem); }
.picker-inclusions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 16px; }
.choice-row label > span { height: 100%; }
.choice-row small { font-size: .8125rem; }
.program-picker legend { font-size: .875rem; }
.hero-actions { flex-wrap: wrap; }
.hero-actions .text-link { min-height: 44px; display: inline-flex; align-items: center; }
.hero-note { font-size: .875rem; }
.hero-doctor { border-radius: 16px; margin-top: 20px; }
.hero-doctor strong { font-size: .875rem; }
.hero-doctor div > span, .hero-doctor .zocdoc-highlight { font-size: .8125rem; }
.hero-human > img { object-position: center 18%; }
.trust-grid small { font-size: .8125rem; }
.trust-grid strong, .trust-grid > a strong { font-size: .875rem; }
.trust-grid > * { min-width: 0; }

/* One predictable sticky stack, with a separate scrollable mobile site menu. */
.site-chrome-header .navigation-wrapper { padding: 0; }
.site-chrome-header .navigation-main { padding: 0; border: 0; min-height: 80px; overflow: visible; transition: none; }
.site-chrome-header .nav-item-main-nav { width: min(1360px, calc(100% - 64px)); min-height: 80px; margin-inline: auto; padding: 0; gap: 20px; }
.site-chrome-header .icon-brand-full { width: 174px; height: auto; }
.site-chrome-header .nav-menu-wrapper { gap: 20px; }
.site-chrome-header .nav-link-1 { font-size: 14px; }
.site-chrome-header .nav-right { gap: 20px; }
.site-chrome-header .hamburger-wrap { border: 0; color: var(--navy); background: transparent; border-radius: 8px; }
.site-chrome-header .hamburger-wrap[aria-expanded=true] .hamburger-line.top { transform: translateY(9px) rotate(45deg); }
.site-chrome-header .hamburger-wrap[aria-expanded=true] .hamburger-line.bottom { transform: translateY(-9px) rotate(-45deg); }
.site-chrome-header .hamburger-wrap[aria-expanded=true] .hamburger-line_wrap { opacity: 0; }
.site-chrome-header .hamburger-line { transition: transform .15s ease; }
.section-nav { background: #f4f2f4; }
.section-nav > .section-nav-shell { display: flex; align-items: stretch; gap: 0; min-height: 52px; overflow: visible; }
.section-links { display: flex; flex: 1; min-width: 0; overflow-x: auto; scrollbar-width: none; gap: 24px; padding: 0 6px; scroll-padding-inline: 8px; }
.section-links::-webkit-scrollbar { display: none; }
.section-links a:first-child { margin-left: auto; }
.section-links a:last-child { margin-right: auto; }
.section-nav a { min-height: 52px; flex-shrink: 0; padding: 12px 2px 10px; font-size: .875rem; line-height: 1.4; }
.section-nav a[aria-current=location] { color: var(--navy); border-color: var(--navy); font-weight: 600; }
.section-nav a:focus-visible { outline-offset: -4px; border-radius: 3px; }
.section-nav-arrow { flex: 0 0 40px; min-width: 40px; border: 0; background: #f4f2f4; color: var(--navy); cursor: pointer; font: 28px/1 Arial, sans-serif; padding: 0; }
.section-nav-arrow:disabled { color: #c4becf; cursor: default; }
.section-nav-arrow:focus-visible { outline-offset: -5px; }
main [id], #main, #insurance, #choose-plan, #app-demo, #site-footer { scroll-margin-top: calc(var(--site-header-height) + var(--section-nav-height) + 16px); }
main [tabindex="-1"]:focus { outline: none; }
.mobile-price-period { display: none; }

/* Readable expanded care and controls. */
.insurance-details .insurance-section { color: var(--navy); }
.insurance-details .insurance-copy .eyebrow { color: #655080; }
.insurance-details .insurance-copy > p:not(.eyebrow) { color: #5c5870; }
.insurance-details[open] > summary > span:last-child { transform: rotate(45deg); }
.insurance-details .care-timeline { color: white; }
.insurance-details .insurance-fine { font-size: .875rem; }
.faq-list summary, .care-steps summary { min-height: 48px; font-size: 1rem; }
.faq-list details p, .safety-points p { font-size: 1rem; }
.care-steps summary::after { flex-shrink: 0; font-size: 1.3rem; }
.care-steps summary > span { flex-shrink: 0; }
.review-pause, .experience-text-link { min-height: 44px; font-size: .875rem; }
.review-flow-heading { flex-wrap: wrap; }
.review-card figcaption { flex-direction: row; align-items: center; }
.actual-app-demo iframe { height: clamp(360px, calc(100svh - var(--site-header-height) - var(--section-nav-height) - 95px), 700px); }
.app-care-note, .app-experience > p { font-size: .875rem; }
.site-chrome-footer .footer-link { min-height: 36px; display: flex; align-items: center; }

/* Illustrative portraits are kept separate from attributed patient reviews. */
.review-portraits { margin: 0 0 36px; }
.review-portraits-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; max-width: 852px; margin-inline: auto; }
.review-portraits-grid img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 18px; }
.review-portraits-grid:focus-visible { outline: 2px solid var(--navy); outline-offset: 5px; border-radius: 18px; }
.review-portraits > figcaption { display: block; margin-top: 14px; color: var(--muted); font-size: .8125rem; line-height: 1.5; text-align: center; }
.portrait-swipe-hint { display: none; }
@media (max-width: 600px) {
  .review-portraits-grid { display: flex; overflow-x: auto; gap: 12px; padding-bottom: 10px; scroll-snap-type: x mandatory; scrollbar-width: thin; overscroll-behavior-x: contain; }
  .review-portraits-grid img { flex: 0 0 72%; width: 72%; max-width: 240px; scroll-snap-align: start; }
  .review-portraits > figcaption { text-align: left; }
  .portrait-swipe-hint { display: block; margin-top: 3px; }
}

@media (max-width: 1200px) {
  .site-chrome-footer .footer-wrap { flex-direction: column; gap: 40px; }
  .site-chrome-footer .footer-left { width: 100%; flex-direction: row; justify-content: flex-start; gap: 28px; padding: 0; }
  .site-chrome-footer .footer-icon { width: 120px; height: auto; align-self: flex-start; }
  .site-chrome-footer .footer-left-info-wrapper { max-width: 440px; }
  .site-chrome-footer .footer-right { width: 100%; margin: 0; padding: 0; gap: 40px; }
  .site-chrome-footer .footer__link-wrapper { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 28px; }
  .site-chrome-footer .footer_nav-list { width: auto; min-width: 0; padding: 0; }
  .site-chrome-footer .only-tab { grid-column: 1 / -1; order: 5; }
  .site-chrome-footer .footer-email { flex-wrap: wrap; gap: 4px; }
  .site-chrome-footer .footer-email a { overflow-wrap: anywhere; }
}
@media (max-width: 800px) {
  .site-chrome-footer .footer__link-wrapper { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 480px) {
  .site-chrome-footer .footer__link-wrapper { grid-template-columns: minmax(0,1fr); }
  .site-chrome-footer .footer-left { flex-direction: column; }
}

@media (max-width: 1100px) {
  :root { --site-header-height: 64px; }
  .site-chrome-header .nav-center, .site-chrome-header .nav-item-main-nav > .nav-right { display: none; }
  .site-chrome-header .navigation-main { min-height: 64px; }
  .site-chrome-header .nav-item-main-nav { min-height: 64px; }
  .site-chrome-header .icon-brand-full { width: 150px; }
  .site-chrome-header .hamburger-wrap { display: flex; align-items: center; justify-content: center; padding: 10px; min-width: 44px; min-height: 44px; }
  .site-chrome-header .hamburger-wrapper { display: flex; flex-direction: column; justify-content: space-between; width: 24px; height: 21px; overflow: hidden; }
  .site-chrome-header .hamburger-line_wrap { width: 100%; height: 3px; position: relative; }
  .site-chrome-header .hamburger-line { width: 100%; height: 3px; background: var(--navy); flex-shrink: 0; }
  .site-chrome-header .hamburger-line.abs { display: none; }
  .site-chrome-header .nav-mb-menu { position: absolute; top: 100%; left: 0; width: 100%; height: auto; padding: 12px 24px 24px; background: var(--paper); border-bottom: 1px solid var(--line); box-shadow: 0 18px 25px #20234318; }
  .site-chrome-header .nav-mb-menu.is-open { display: flex; max-height: calc(100dvh - var(--site-header-height)); overflow-y: auto; overscroll-behavior: contain; }
  .site-chrome-header .nav-mb-menu .nav-menu-wrapper { display: flex; flex-direction: column; align-items: stretch; width: 100%; gap: 8px; padding: 0; }
  .site-chrome-header .nav-mb-menu .nav-link-1 { min-height: 44px; width: 100%; display: flex; align-items: center; padding: 10px 0; margin: 0; }
  .site-chrome-header .nav-mb-menu .w-dropdown { display: block; }
  .site-chrome-header .nav-mb-menu .w-dropdown-toggle { width: 100%; }
  .site-chrome-header .nav-mb-menu .w-dropdown-list { position: relative; min-width: 0; width: 100%; padding: 0; }
  .site-chrome-header .nav-dropdown-wrapper { flex-direction: column; }
  .site-chrome-header .nav-dropdown-item { width: 100%; padding: 16px; }
  .site-chrome-header .nav-mb-menu .nav-right { display: flex; flex-wrap: wrap; gap: 12px; }
  .site-chrome-header .nav-mb-menu .nav-right .btn-sc { width: 100%; }
  .site-menu-open .mobile-cta { visibility: hidden; }
  .section-heading { gap: 28px; }
  .trust-grid { grid-template-columns: 1.4fr 1fr 1fr; gap: 16px; }
  .trust-grid > a { flex-direction: column; gap: 5px; }
}

@media (max-width: 960px) {
  .container { width: min(720px, calc(100% - 40px)); }
  .hero { grid-template-columns: 1fr; gap: 32px; padding-top: 28px; }
  .hero-copy { padding-top: 0; }
  .hero h1 { font-size: clamp(2.5rem, 6vw, 3.5rem); }
  .hero h1 br { display: none; }
  .hero h1 .highlight { display: block; }
  .hero-human { height: clamp(200px, 40vw, 330px); }
  .program-picker { padding: 28px; }
  .section-heading { display: block; }
  .section-heading > p { margin-top: 20px; max-width: 620px; }
  .app-grid, .care-grid, .safety-grid, .faq-section { grid-template-columns: 1fr; gap: 32px; }
  .app-copy { display: contents; }
  .app-grid { row-gap: 20px; }
  .app-copy > .eyebrow { order: 0; margin: 0; }
  .app-copy > h2 { order: 1; }
  .app-copy > p:not(.eyebrow) { order: 2; margin: 0; }
  .app-copy > .app-invitation { order: 3; }
  .app-visual { order: 4; padding-block: 4px; }
  .app-copy > .app-experiences { order: 5; max-width: 560px; width: 100%; margin: 10px auto 0; }
  .app-copy > .app-preview-status { order: 6; }
  .app-copy > .app-care-note { order: 7; }
  .actual-app-demo { width: min(420px, 100%); }
  .final-cta-grid { grid-template-columns: 1fr; gap: 32px; }
  .final-cta figure img { height: auto; max-height: 430px; }
  .insurance-details .insurance-grid { grid-template-columns: 1fr; }
}

@media (max-width: 800px) {
  .mobile-cta { display: flex; z-index: 36; padding: 10px 18px calc(10px + env(safe-area-inset-bottom)); gap: 14px; }
  .mobile-plan-summary { min-width: 0; flex: 1; display: flex; flex-direction: column; text-decoration: none; line-height: 1.45; padding-block: 3px; }
  .mobile-plan-summary strong { font-size: .875rem; font-weight: 600; }
  .mobile-plan-summary > span { font-size: .8125rem; color: var(--muted); }
  .mobile-plan-summary b { font-weight: 400; color: var(--ink); }
  .mobile-plan-summary u { text-underline-offset: 3px; }
  .mobile-cta .button { flex-shrink: 0; min-height: 46px; padding: 12px 18px; font-size: .875rem; gap: 12px; }
  .site-chrome-footer { padding-bottom: var(--mobile-bar-height); }
  .trust-grid { grid-template-columns: 1fr 1fr; gap: 20px; }
  .trust-grid > a { grid-column: 1 / -1; flex-direction: row; gap: 16px; }
  .trust-grid > div { padding: 0; border: 0; }
  .section-nav > .section-nav-shell { width: 100%; padding-inline: 8px; }
  .section-links { gap: 22px; }
  .section-nav a { min-height: 48px; }
  .section-nav > .section-nav-shell { min-height: 48px; }
}

@media (max-width: 600px) {
  .container { width: calc(100% - 36px); }
  .hero { padding-block: 24px 36px; }
  .hero h1 { font-size: clamp(2.25rem, 9.5vw, 3.25rem); line-height: 1.08; }
  .hero-description { font-size: 1rem; line-height: 1.6; }
  .hero-actions { gap: 10px 18px; }
  .hero-actions .button { font-size: .9375rem; }
  .hero-doctor { align-items: flex-start; gap: 12px; }
  .hero-doctor > img { width: 52px; height: 52px; }
  .hero-doctor .zocdoc-highlight { padding: 5px 7px; }
  .hero-offer { font-size: .875rem; }
  .program-picker { padding: 22px 18px; }
  .picker-heading { flex-wrap: wrap; align-items: flex-start; gap: 10px; }
  .picker-heading .eyebrow { font-size: .75rem; }
  .picker-heading h2 { font-size: 1.7rem; }
  .picker-inclusions { grid-template-columns: 1fr; }
  .choice-row { gap: 10px; }
  .choice-row label > span { padding: 12px 6px; font-size: .9375rem; }
  .choice-row small { font-size: .75rem; }
  .consultation-included strong { font-size: .9375rem; }
  .trust-grid { grid-template-columns: 1fr; gap: 16px; }
  .trust-grid > a, .trust-grid > div { justify-content: flex-start; gap: 14px; }
  .trust-grid > a { flex-wrap: wrap; }
  .trust-grid small { max-width: none; }
  .trust-icon { font-size: 1.8rem; width: 30px; text-align: center; }
  .section-heading h2 br { display: none; }
  .comparison-tabs button { font-size: .875rem; padding-inline: 12px; }
  .comparison-panel { padding: 22px 16px; }
  .outcome-card { padding: 20px 12px; }
  .outcome-title h3 { font-size: 1rem; }
  .outcome-description, .outcome-example > span { font-size: .8125rem; }
  .outcome-percentage { font-size: clamp(2.2rem, 9vw, 3rem); }
  .outcome-percentage > span { font-size: 1.1rem; }
  .study-label, .study-label > span:last-child { font-size: .875rem; }
  .weight-explorer p { font-size: .875rem; }
  .weight-control input[type=range] { min-height: 44px; }
  .pricing-table, .pricing-table tbody { display: block; }
  .pricing-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .pricing-table tbody tr { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); border-top: 1px solid var(--line); }
  .pricing-table tbody th { display: block; grid-column: 1 / -1; width: auto; padding: 20px; background: #fff; }
  .table-medication { font-size: 1.25rem; overflow-wrap: normal; }
  .table-medication br { display: none; }
  .pricing-table td { display: block; padding: 18px 20px; border-bottom: 0; }
  .pricing-table small, .table-saving { font-size: .875rem; }
  .pricing-table td > strong { font-size: 2rem; }
  .mobile-price-period { display: block; font-size: .875rem; margin-bottom: 8px; }
  .comparison-inclusions { border-top: 1px solid var(--line); }
  .comparison-inclusions > * { flex-basis: 100%; }
  .doctor-profile { padding: 22px; flex-direction: row; align-items: flex-start; }
  .doctor-profile > img { width: 88px; height: 104px; flex-shrink: 0; }
  .doctor-profile h3 { font-size: 1.4rem; }
  .doctor-profile p:not(.eyebrow) { font-size: .875rem; }
  .doctor-profile .eyebrow { font-size: .75rem; }
  .care-steps details > p { padding-left: 0; font-size: 1rem; }
  .care-steps .text-link { margin-left: 0; font-size: .875rem; }
  .app-section, .safety-section { padding-block: 52px; }
  .actual-app-demo iframe { border-width: 4px; border-radius: 20px; }
  .actual-app-demo figcaption { margin-top: 16px; }
  .experience-launch > span { font-size: .875rem; }
  .final-cta h2 { font-size: clamp(2.2rem, 9vw, 3.2rem); }
  .site-chrome-header .nav-item-main-nav { width: calc(100% - 32px); }
  .site-chrome-footer .footer-wrap { padding-inline: 18px; }
}

@media (max-width: 360px) {
  .container { width: calc(100% - 28px); }
  .mobile-cta { padding-inline: 12px; gap: 10px; }
  .mobile-cta .button { padding-inline: 12px; gap: 8px; }
  .outcome-grid { grid-template-columns: 1fr; }
  .outcome-title h3 { font-size: 1.3rem; }
  .outcome-card { padding: 22px; }
  .outcome-percentage { font-size: 3rem; }
  .doctor-profile { flex-direction: column; }
  .app-experiences { grid-template-columns: 1fr; }
  .experience-launch > img { height: 180px; }
}

@media (max-height: 540px) and (orientation: landscape) {
  .site-chrome-header { position: relative; }
  .section-nav { top: 0; }
  .mobile-cta { display: none; }
  main [id], #main, #choose-plan, #insurance, #app-demo { scroll-margin-top: calc(var(--section-nav-height) + 12px); }
}
@media (prefers-reduced-motion: reduce) {
  .site-chrome-header .hamburger-line { transition: none; }
}
