/* Shared V0.1 styles. Home-only composition is scoped to .home-page. */
@font-face {
  font-family: Outfit;
  src: url('../fonts/outfit-300.ttf') format('truetype');
  font-style: normal;
  font-weight: 300;
  font-display: swap;
}
@font-face {
  font-family: Outfit;
  src: url('../fonts/outfit-500.ttf') format('truetype');
  font-style: normal;
  font-weight: 500;
  font-display: swap;
}
:root {
  --canvas: #f7f5fc;
  --ink: #2f2943;
  --muted: #60556f;
  --primary: #7054bd;
  --action-hover: #7b60c4;
  --mint: #d7eee9;
  --lilac: #e9e1f7;
  --line: #d9cee9;
  --focus: #503199;
  --focus-clearance: 120px;
}
* { box-sizing: border-box; }
html { scroll-padding-top: var(--focus-clearance); }
body { margin: 0; background: var(--canvas); color: var(--ink); font: 16px/1.65 'Segoe UI', Arial, sans-serif; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
a, button, summary { -webkit-tap-highlight-color: transparent; scroll-margin-top: var(--focus-clearance); }
h1, h2, h3, main, section[id] { scroll-margin-top: var(--focus-clearance); }
h2 { font-family: Outfit, 'Segoe UI', Arial, sans-serif; font-weight: 300; }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 3px solid var(--focus); outline-offset: 5px; }
.phosphor-icon { width: 24px; height: 24px; fill: currentColor; stroke: none; flex-shrink: 0; }
.skip { position: fixed; left: 16px; top: -100px; z-index: 40; padding: 12px; border-radius: 12px; background: white; }
.skip:focus { top: 12px; }
.page:focus { outline: none; }

/* The identity scrolls normally; only the menu is fixed. CSS is the no-script fallback. */
.site-header, .page { width: calc(100% - 80px); max-width: 1240px; margin-inline: auto; }
.site-header { position: relative; display: flex; align-items: center; min-height: 64px; margin-block: 40px; }
.brand { display: inline-flex; align-items: center; gap: 12px; font-size: 25px; font-weight: 600; letter-spacing: -.6px; line-height: 1.15; }
.brand small { display: block; font-size: 14px; font-weight: 400; letter-spacing: .2px; line-height: 1.25; margin-top: 1px; }
.brand-mark { width: 52px; height: 52px; flex-shrink: 0; border-radius: 18px; background: #e7dcf8; display: grid; place-items: center; color: var(--primary); font-size: 38px; }
.main-nav { position: fixed; z-index: 20; top: 40px; left: 50%; transform: translateX(-50%); display: flex; gap: 6px; width: max-content; max-width: calc(100% - 32px); padding: 8px; border-radius: 24px; background: white; }
.main-nav a { display: flex; align-items: center; justify-content: center; gap: 9px; min-width: 120px; min-height: 48px; padding: 12px 20px; border-radius: 16px; color: #534663; font-size: 14px; line-height: 1.3; }
.main-nav .phosphor-icon { width: 20px; height: 20px; }
.main-nav a:hover { background: #eee7f9; color: var(--focus); }
.main-nav a[aria-current] { background: var(--primary); color: white; }
.menu-appointment { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 48px; padding: 10px 14px; border: 0; border-radius: 16px; background: #ffd174; color: #382746; font-size: 13px; white-space: nowrap; cursor: not-allowed; }
.menu-appointment .phosphor-icon { width: 18px; height: 18px; }
.page { padding-bottom: 35px; }

/* Accepted non-Home body layouts, with only approved shared typography/icon/photo changes. */
.hero { padding: 48px; background: linear-gradient(130deg, #cff0e9, #e1e3f7 45%, #c7b3ec); border-radius: 55px; display: grid; gap: 40px; align-items: center; }
.portrait-hero { grid-template-columns: 1.1fr 1fr; }
.text-hero { grid-template-columns: 1fr 130px; }
.hero h1 { font-size: clamp(36px, 4.5vw, 62px); line-height: 1.12; letter-spacing: -2px; font-weight: 400; margin: 0 0 24px; overflow-wrap: break-word; }
.text-hero h1 { font-size: clamp(34px, 3.6vw, 48px); }
.hero p { max-width: 62ch; margin: 16px 0; font-size: 17px; }
.hero-icon { width: 110px; height: 110px; display: grid; place-items: center; border-radius: 40px; background: #ffffff70; color: var(--primary); }
.hero-icon .phosphor-icon { width: 50px; height: 50px; }
.portrait { margin: 0; display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.question { display: flex; align-items: center; gap: 14px; background: white; border-radius: 26px; padding: 18px 20px; width: fit-content; max-width: 100%; box-shadow: 0 12px 28px #37285410; font-size: 15px; }
.question > .phosphor-icon { color: var(--primary); width: 28px; height: 28px; }
.question small { display: block; font-size: 14px; color: var(--muted); margin-top: 3px; }
.photo { border-radius: 20px; overflow: hidden; height: 330px; background: #e4dce8; }
.photo img { display: block; border-radius: 20px; width: 100%; height: 100%; object-fit: cover; object-position: 50% 10%; }
.section { padding: 48px 0 8px; }
.section h2, .appointment-details h2 { font-size: clamp(28px, 3vw, 40px); line-height: 1.2; letter-spacing: -1px; margin: 0 0 24px; }
.section p { max-width: 68ch; margin: 16px 0; color: var(--muted); }
.section h3 { font-size: 19px; line-height: 1.35; font-weight: 600; margin: 30px 0 10px; }
.section ul { max-width: 68ch; padding-left: 24px; }
.section li { padding-left: 5px; margin: 12px 0; }
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-top: 28px; }
.card { border-radius: 36px; padding: 26px; background: white; position: relative; display: block; }
.card:nth-child(2), .card:nth-child(5) { background: var(--lilac); }
.card:nth-child(3), .card:nth-child(6) { background: var(--mint); }
a.card:hover { box-shadow: 0 8px 22px #4c397f15; color: var(--ink); }
a.card:active { box-shadow: inset 0 0 0 2px var(--primary); }
.bubble { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 18px; background: #ffffffa0; color: var(--primary); }
.card h3 { font-size: 20px; margin: 18px 0 10px; }
.card p { font-size: 15px; margin: 0; line-height: 1.6; }
.commercial { background: linear-gradient(115deg, #d5efea, #e4d6f7); padding: 32px; border-radius: 36px; max-width: 900px; }
.commercial .commercial-facts { font-size: 22px; color: var(--ink); line-height: 1.5; margin-top: 0; }
.commercial p { color: var(--ink); max-width: 68ch; }
.action { margin-top: 24px; }
.secondary-button { margin-top: 16px; }
.text-link { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 10px 0; color: #573897; font-weight: 500; }
.text-link:hover { color: #4f328e; }
.related { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 40px; }
.related a { display: inline-flex; align-items: center; background: white; padding: 12px 20px; border-radius: 30px; min-height: 48px; color: #573897; }
.related a:hover { background: var(--lilac); }
.topic-page .section { max-width: 900px; }
.topic-page .section > p, .topic-page .section > ul, .topic-page .hero p { max-width: 65ch; }

/* Shared primary states. Native disabled buttons are never made focusable/clickable. */
.primary-action { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; max-width: 100%; padding: 12px 20px; border: 1px solid var(--primary); border-radius: 14px; background: var(--primary); color: white; font: inherit; line-height: 1.4; text-align: center; white-space: normal; position: relative; isolation: isolate; overflow: visible; transition: transform 180ms ease, background-color 180ms ease; }
.primary-action:disabled { cursor: not-allowed; }
.primary-action::after { content: ''; position: absolute; left: 10%; width: 80%; height: 100%; top: 0; border-radius: inherit; z-index: -1; pointer-events: none; opacity: 0; box-shadow: 0 10px 10px -5px #a36bf5cc, 0 20px 30px -8px #8f57df99, 0 3px 10px #7054bd4d; transition: opacity 180ms ease; }
.primary-action:hover { transform: translateY(-3px); background: var(--action-hover); color: white; }
.primary-action:focus-visible { background: var(--action-hover); color: white; outline: 3px solid var(--focus); outline-offset: 5px; }
.primary-action:hover::after, .primary-action:focus-visible::after { opacity: .72; }
.primary-action:active:not(:disabled) { background: #5d3fa7; }

/* Full-width selected footer band; contents match the main 1240px grid. */
.site-footer { display: flex; justify-content: space-between; align-items: center; gap: 24px; margin-top: 100px; padding: 32px max(40px, calc((100% - 1240px) / 2)); background: linear-gradient(110deg, #e0f1ec, #e7dcf4); font-size: 14px; }
.footer-identity strong { display: block; font: 500 25px/1.2 Outfit, 'Segoe UI', Arial, sans-serif; }
.footer-identity p { font-size: 15px; line-height: 1.35; margin: 4px 0 8px; }
.footer-identity .footer-tagline { font: 300 23px/1.3 Outfit, 'Segoe UI', Arial, sans-serif; color: #503199; margin: 14px 0 8px; max-width: 32ch; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 0; max-width: 100%; padding: 6px; border-radius: 18px; background: #ffffffb8; }
.footer-nav a { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-width: 100px; min-height: 44px; padding: 12px 20px; border-radius: 12px; color: #503199; font-weight: 600; }
.footer-nav a:hover { background: #e9dff6; }
.footer-nav .phosphor-icon { width: 20px; height: 20px; }

/* Selected Home composition only. Non-Home bodies retain the DEV-002 layouts. */
.home-page .hero { padding: 40px; border-radius: 30px; }
.home-page .portrait-hero { grid-template-columns: 1fr 1fr; gap: 40px; }
.home-page .hero h1 { font-family: Outfit, 'Segoe UI', Arial, sans-serif; font-weight: 500; font-size: clamp(40px, 4.2vw, 58px); }
.home-page h1 span { display: block; }
.home-page .hero .primary-action { margin-top: 12px; }
.home-page .hero .primary-action .phosphor-icon { width: 20px; height: 20px; }
.home-page .portrait { position: relative; gap: 0; }
.home-page .photo { height: 490px; }
.home-page .photo img { height: 112%; object-position: 50% 15%; }
.home-page .question { position: absolute; z-index: 2; bottom: 26px; right: 22px; gap: 12px; padding: 16px 22px; font-size: 17px; border-radius: 30px; max-width: calc(100% - 44px); box-shadow: 0 8px 24px #33205015; }
.home-page .question .phosphor-icon { width: 24px; height: 24px; }
.home-page .topic-section { padding-top: 100px; }
.topic-section-intro { padding-inline: 26px; }
.home-page .card { display: flex; flex-direction: column; align-items: flex-start; border: 1px solid transparent; border-radius: 30px; }
.home-page .card p { flex: 1; margin-bottom: 22px; }
.home-page .bubble { border-radius: 16px; }
.home-page .card:nth-child(1) .bubble, .home-page .card:nth-child(4) .bubble { background: #f0e9fb; }
.home-page .card-action { min-height: 44px; padding: 12px 18px; font-size: 14px; border-radius: 14px; }
.home-page .appointment-details { padding-top: 100px; }
.home-page .appointment-details > h2 { margin: 0 200px 24px 232px; }
.home-page .price-module { max-width: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; padding: 32px; margin-inline: 200px; border-radius: 30px; }
.price-module p { margin: 0; }
.price-module .commercial-icon { display: block; margin-bottom: 10px; color: var(--primary); }
.commercial-icon .phosphor-icon { width: 36px; height: 36px; }
.eyebrow, .metric-label { font-size: 13px; letter-spacing: .7px; color: #534767; }
.home-page .eyebrow { margin: 0 0 10px; }
.price-module .price { font-size: 24px; line-height: 1.3; color: var(--ink); font-weight: 500; }
.price-module .price span { display: block; font-size: 15px; font-weight: 400; margin-top: 8px; }
.price-module .duration strong, .price-module .hours strong { display: block; font-size: 24px; line-height: 1.3; font-weight: 500; margin-top: 10px; }
.price-module .hours > p { font-size: 15px; margin-top: 8px; }
.price-module .commercial-bottom { grid-column: 1/-1; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 20px; border-top: 1px solid #c2b8d480; padding-top: 24px; }
.commercial-bottom > p { font-size: 14px; max-width: 60ch; }
.commercial-bottom > button { border: 0; }
.home-page .doctor-teaser { display: grid; grid-template-columns: .8fr 1.2fr; gap: 40px; align-items: center; background: #e9e1f7; border-radius: 30px; padding: 32px; margin-top: 100px; }
.doctor-teaser > img { display: block; width: 100%; height: 370px; object-fit: cover; object-position: 50% 24%; border-radius: 20px; background: #e4dce8; }
.home-closing-pair { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: auto 1fr auto; column-gap: 28px; margin-top: 100px; align-items: stretch; }
.home-closing-pair > section { display: grid; grid-template-rows: subgrid; grid-row: span 3; grid-template-columns: minmax(0, 1fr) 84px; gap: 20px; min-width: 0; padding: 52px 32px 40px; border-radius: 30px; }
.before-appointment { background: #e0efed; }
.closing { background: linear-gradient(125deg, #d1ede7, #ddcef2); }
.home-closing-pair .closing > div:not(.closing-illustration) { display: contents; }
.home-closing-pair h2 { grid-row: 1; grid-column: 1/-1; font-size: clamp(28px, 3vw, 40px); line-height: 1.2; letter-spacing: -1px; margin: 0; }
.home-closing-pair p { grid-row: 2; grid-column: 1/-1; margin: 0; align-self: start; }
.home-closing-pair .primary-action { grid-row: 3; grid-column: 1; justify-self: start; align-self: center; margin: 0; }
.closing-illustration { grid-row: 3; grid-column: 2; justify-self: end; align-self: center; width: 84px; height: 84px; display: grid; place-items: center; border-radius: 22px; background: #e1f2ed; }
.closing-illustration-sheet { display: grid; place-items: center; width: 62px; height: 62px; border-radius: 14px; color: var(--primary); background: white; transform: rotate(-6deg); }
.closing-illustration .phosphor-icon { width: 40px; height: 40px; }

@media (min-width: 761px) and (max-width: 1150px) {
  .brand { font-size: 20px; }
  .brand-mark { width: 42px; height: 42px; font-size: 30px; }
  .main-nav a { min-width: 80px; padding: 12px 10px; }
  .menu-appointment { padding: 10px; font-size: 12px; }
}
/* Reserve separate rows when the centered desktop menu would intersect the identity. */
@media (min-width: 761px) and (max-width: 1000px) {
  .site-header { min-height: 144px; align-items: flex-end; }
}
@media (max-width: 1100px) {
  .page { padding-bottom: 30px; }
  .hero { padding: 32px; gap: 25px; }
  .portrait-hero { grid-template-columns: 1.1fr .9fr; }
  .photo { height: 300px; }
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero h1 { font-size: 44px; }
  .home-page .hero { padding: 32px; gap: 26px; }
  .home-page .portrait-hero { grid-template-columns: 1fr 1fr; }
  .home-page .photo { height: 420px; }
  .home-page .hero h1 { font-size: 40px; }
  .home-page .price-module { margin-inline: 64px; }
  .home-page .appointment-details > h2 { margin-left: 96px; margin-right: 64px; }
  .home-page .doctor-teaser { grid-template-columns: 1fr; gap: 25px; }
  .doctor-teaser > img { height: 360px; }
}
@media (max-width: 760px) {
  :root { --focus-clearance: 190px; }
  .skip:focus { top: 180px; }
  .site-header, .page { width: auto; margin-inline: 24px; }
  .site-header { min-height: 136px; align-items: flex-start; }
  .brand { gap: 8px; font-size: 18px; }
  .brand small { font-size: 11px; }
  .brand-mark { width: 38px; height: 38px; font-size: 26px; }
  .main-nav { top: 104px; gap: 3px; padding: 6px; }
  .main-nav a { min-width: 50px; min-height: 48px; flex-direction: column; gap: 4px; padding: 8px; font-size: 11px; }
  .main-nav .phosphor-icon { width: 18px; height: 18px; }
  .menu-appointment { font-size: 11px; padding: 10px 8px; }
  .menu-appointment .phosphor-icon { width: 15px; height: 15px; }
  .page { padding-bottom: 25px; }
  .hero { padding: 32px 28px; border-radius: 40px; gap: 32px; }
  .portrait-hero, .text-hero { grid-template-columns: 1fr; }
  .hero-icon { display: none; }
  .hero h1, .text-hero h1 { font-size: 40px; letter-spacing: -1.5px; }
  .hero p { font-size: 16px; }
  .portrait { max-width: 430px; width: 100%; margin: auto; }
  .photo { height: 350px; }
  .question { padding: 16px; font-size: 14px; }
  .section { padding-top: 36px; }
  .section h2 { font-size: 30px; }
  .cards { gap: 14px; }
  .card { padding: 22px; border-radius: 28px; }
  .card h3 { font-size: 18px; }
  .commercial { padding: 26px; border-radius: 30px; }
  .commercial .commercial-facts { font-size: 20px; }
  .related { gap: 10px; }
  .related a { max-width: 100%; font-size: 15px; }
  .site-footer { flex-direction: column; align-items: flex-start; padding: 28px 24px; }
  .footer-nav a { min-width: 0; padding: 10px 14px; }
  .footer-identity .footer-tagline { font-size: 21px; }
  .home-page .hero { padding: 28px; gap: 28px; }
  .home-page .portrait-hero { grid-template-columns: 1fr; }
  .home-page .portrait { max-width: none; }
  .home-page .photo { height: 440px; }
  .home-page .question { font-size: 15px; padding: 14px 18px; bottom: 22px; }
  .home-page .cards { gap: 16px; }
  .home-page .price-module { grid-template-columns: 1fr 1fr; padding: 26px; gap: 22px; margin-inline: 0; }
  .home-page .price-module .hours { grid-column: 1/-1; }
  .home-page .appointment-details > h2 { margin-inline: 24px; }
  .commercial-bottom > p { max-width: none; }
  .commercial-bottom > button { width: 100%; }
  .home-page .doctor-teaser { padding: 26px; }
  .home-closing-pair { display: flex; flex-direction: column; gap: 24px; }
  .home-closing-pair > section { grid-template-rows: auto auto auto; grid-template-columns: minmax(0, 1fr) 62px; column-gap: 12px; }
  .closing-illustration { width: 62px; height: 62px; border-radius: 18px; }
  .closing-illustration-sheet { width: 48px; height: 48px; border-radius: 12px; }
  .closing-illustration .phosphor-icon { width: 32px; height: 32px; }
}
@media (max-width: 480px) {
  .site-header, .page { margin-inline: 16px; }
  .brand { font-size: 16px; }
  .brand small { font-size: 10px; }
  .brand-mark { display: none; }
  .main-nav a { min-width: 45px; padding: 7px 5px; font-size: 10px; }
  .menu-appointment { font-size: 10px; padding: 10px 6px; gap: 4px; }
  .hero { padding: 28px 22px; }
  .hero h1 { font-size: 36px; }
  .photo { height: 310px; }
  .cards { grid-template-columns: 1fr; }
  .card { padding: 24px; }
  .card h3 { font-size: 20px; }
  .commercial { padding: 24px; }
  .commercial .commercial-facts { font-size: 19px; }
  .action .primary-action { width: 100%; padding: 14px 16px; }
  .section h2 { font-size: 28px; }
  .home-page .hero { padding: 24px 22px; }
  .home-page .hero h1 { font-size: 36px; }
  .home-page .photo { height: 370px; }
  .home-page .question { bottom: 18px; right: 18px; max-width: calc(100% - 36px); }
  .home-page .hero .primary-action { width: 100%; }
  .home-page .price-module { grid-template-columns: 1fr; }
  .home-page .price-module .hours { grid-column: auto; }
  .home-page .doctor-teaser { padding: 24px; }
  .doctor-teaser > img { height: 320px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto; transition: none; }
  .primary-action, .primary-action::after { transition: none; }
  .primary-action:hover { transform: none; }
}
