/* /see-dr-deb ad landing: Dr. Deb, proof, who comes in, her own words, a patient story,
   the first step, then the shared booking. Built from /dr-deb, the homepage and /testimonials.
   Hand-drawn orange accents are inline SVG paths, at most one per screen. */

.sdd { background: var(--cream); }
.sdd-main { overflow: clip; }
.sdd h2 { text-wrap: balance; }
.sdd-eyebrow { margin: 0 0 14px; font: 600 12px/1.3 var(--kicker); letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-soft); }
.sdd-cite { margin: 12px 0 0; font: 400 14px/1.4 var(--body); color: var(--ink-soft); }
.sdd-cite a { color: inherit; text-underline-offset: 3px; }
.sdd-btn { display: flex; align-items: center; justify-content: center; width: 100%; min-height: 56px; padding: 14px 24px; border-radius: 999px; font: 500 17px/1.2 var(--body); letter-spacing: -0.01em; color: var(--ink); }
.sdd-act { padding: 28px 24px 0; }

/* Hand-drawn marks: a tapered underline and a loose circle */
.sdd-under, .sdd-mark { position: relative; display: inline-block; white-space: nowrap; }
.sdd-under svg { position: absolute; left: -2%; bottom: -0.16em; width: 104%; height: 0.34em; overflow: visible; pointer-events: none; }
.sdd-under path { fill: var(--accent); }
.sdd-circle { position: absolute; left: -10%; top: -20%; width: 120%; height: 140%; overflow: visible; pointer-events: none; }
.sdd-circle path { fill: none; stroke: var(--accent); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }

/* ---- 1. Hero: the headline passes behind Dr. Deb, the offer sits on the bed ---- */
.sdd-hero { position: relative; background: var(--ink); }
.sdd-brand { position: absolute; z-index: 4; left: 6%; top: 18px; display: flex; align-items: center; gap: 10px; margin: 0; font: 500 16px/1.2 var(--display); letter-spacing: -0.01em; color: var(--ink); }
.sdd-brand img { display: block; width: 22px; height: 22px; }
.sdd-shot { position: relative; container-type: inline-size; aspect-ratio: 9 / 16; max-height: 100svh; min-height: 620px; overflow: hidden; }
.sdd-shot img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 30% 0; }
.sdd-shot-photo { z-index: 0; }
.sdd-shot-cut { z-index: 2; pointer-events: none; }
.sdd-title { position: absolute; z-index: 1; left: 5.5%; top: 8.5%; margin: 0; font: 600 16.6cqw/0.9 var(--display); letter-spacing: -0.055em; color: var(--ink); }
.sdd-title span { display: block; }
.sdd-hero-foot { position: absolute; z-index: 3; left: 0; right: 0; bottom: 0; padding: 72px 6% max(22px, env(safe-area-inset-bottom)); background: linear-gradient(to top, rgba(10, 10, 10, 0.8), rgba(10, 10, 10, 0.55) 62%, rgba(10, 10, 10, 0)); color: var(--white); }
.sdd-id { margin: 0; }
.sdd-id .sdd-under { font: 600 28px/1.1 var(--display); letter-spacing: -0.03em; }
.sdd-name { display: block; margin-top: 10px; font: 500 16px/1.3 var(--body); }
.sdd-facts { display: flex; flex-wrap: wrap; margin: 6px 0 18px; font: 400 14px/1.4 var(--body); color: rgba(255, 255, 255, 0.82); }
.sdd-facts span + span::before { content: "\00b7"; margin: 0 8px; }

/* ---- 2. Google reviews: windows on the photo's edges, never on a face ---- */
.sdd-reviews { position: relative; padding: 56px 24px 112px; }
.sdd-reviews-head { position: relative; z-index: 3; }
.sdd-reviews h2 { margin: 0; font: 300 clamp(30px, 8.2vw, 44px)/1.08 var(--display); letter-spacing: -0.035em; color: var(--ink); }
.sdd-rating { display: inline-flex; align-items: center; flex-wrap: wrap; gap: 6px 10px; margin-top: 14px; min-height: 44px; color: var(--ink); text-decoration: none; font: 400 15px/1.3 var(--body); }
.sdd-rating b { font: 400 22px/1 var(--display); letter-spacing: -0.03em; }
.sdd-rating .rstars svg { width: 15px; height: 15px; }
.sdd-rating-link { text-decoration: underline 1px; text-underline-offset: 4px; }
.sdd-rating:hover .sdd-rating-link { color: var(--accent); }
.sdd-stage { position: relative; margin-top: 22px; }
.sdd-stage-photo { position: relative; z-index: 1; width: 80%; margin: 0; aspect-ratio: 2 / 3; border-radius: 4px; overflow: hidden; }
.sdd-stage-photo img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 0; }
.sdd .sdd-window { position: absolute; z-index: 2; border: 0; border-radius: 14px; box-shadow: 0 1px 2px rgba(10, 10, 10, 0.06), 0 18px 40px -16px rgba(10, 10, 10, 0.32); }
.sdd .sdd-window p { color: var(--ink); text-wrap: pretty; }
.sdd .sdd-window p:last-child { margin-bottom: 0; }
.sdd-window-main { left: 9%; right: 0; bottom: -72px; padding: 16px 18px; }
.sdd .sdd-window-main p { font-size: 16px; line-height: 1.42; letter-spacing: -0.01em; margin: 0 0 8px; }
.sdd-window-small { right: 0; top: 50%; width: min(40%, 190px); padding: 12px 14px; }
.sdd .sdd-window-small p { font-size: 14px; line-height: 1.38; letter-spacing: -0.005em; }
.sdd .sdd-window .rhead { margin-bottom: 8px; }
.sdd .sdd-window-small .rhead { gap: 8px; }
.sdd .sdd-window-small .ravatar { width: 26px; height: 26px; line-height: 26px; font-size: 11px; }
.sdd .sdd-window-small .gmark { width: 16px; height: 16px; }
.sdd .sdd-window .rmeta { display: grid; gap: 2px; }
.sdd .sdd-window .who { font-size: 13px; color: var(--ink); }
.sdd .sdd-window .rlink { font-size: 13px; color: #1a73e8; }

/* ---- 3. What brings people in: the homepage figures on the treatment room floor ---- */
.sdd-why { padding: 24px 0 64px; }
.sdd-why-head { padding: 0 24px 24px; }
.sdd-why h2 { margin: 0; max-width: 11em; font: 300 clamp(30px, 8.2vw, 44px)/1.08 var(--display); letter-spacing: -0.035em; color: var(--ink); }
.sdd-why h2 strong { font-weight: 400; color: var(--accent); }
.sdd-room { position: relative; margin: 0; aspect-ratio: 4 / 5; overflow: hidden; }
.sdd-room img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 42% 50%; }
.sdd-room figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 96px 24px 24px; background: linear-gradient(to top, rgba(10, 10, 10, 0.72), rgba(10, 10, 10, 0)); }
.sdd-figs { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 20px; margin: 0; padding: 0; list-style: none; font: 400 14px/1.3 var(--body); color: var(--white); }
.sdd-figs b { display: block; width: max-content; margin-bottom: 4px; font: 300 44px/1 var(--display); letter-spacing: -0.04em; }

/* ---- 4. Dr. Deb in her own words, with the credentials as a ledger ---- */
.sdd-deb { padding: 0 0 64px; background: var(--white); }
.sdd-deb-photo { margin: 0; aspect-ratio: 3 / 2; overflow: hidden; }
.sdd-deb-photo img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.sdd-deb-copy { padding: 36px 24px 0; }
.sdd-deb h2 { margin: 0; font: 300 clamp(28px, 7.6vw, 40px)/1.14 var(--display); letter-spacing: -0.03em; color: var(--ink); }
.sdd-ledger { margin: 32px 0 0; }
.sdd-ledger div { display: grid; grid-template-columns: 7.2em minmax(0, 1fr); gap: 12px; padding: 14px 0; border-top: 1px solid var(--border); }
.sdd-ledger dt { font: 600 11px/1.6 var(--kicker); letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-soft); }
.sdd-ledger dd { margin: 0; font: 400 15px/1.45 var(--body); color: var(--ink); }
.sdd-deb-gym { display: grid; grid-template-columns: 42% minmax(0, 1fr); gap: 18px; align-items: end; margin: 28px 24px 0; }
.sdd-deb-gym img { display: block; width: 100%; aspect-ratio: 3 / 4; object-fit: cover; object-position: 50% 15%; border-radius: 4px; }
.sdd-deb-gym figcaption { font: italic 400 18px/1.4 var(--serif); color: var(--ink); text-wrap: pretty; }

/* ---- 5. Patient stories, on ink ---- */
.sdd-story { padding: 64px 24px; background: var(--ink); color: var(--white); }
.sdd-story a { color: inherit; text-decoration: none; }
.sdd-story h2 { margin: 0; color: var(--white); font: 300 clamp(28px, 7.6vw, 40px)/1.14 var(--display); letter-spacing: -0.03em; }
.sdd-story .sdd-cite { display: inline-block; color: rgba(255, 255, 255, 0.7); text-decoration: underline 1px; text-underline-offset: 4px; }
.sdd-video { margin: 32px 0 0; }
.sdd-video-box { position: relative; aspect-ratio: 16 / 9; border-radius: 4px; overflow: hidden; background: #151515; }
.sdd-video-box iframe { position: absolute; z-index: 1; inset: 0; width: 100%; height: 100%; border: 0; pointer-events: none; }
.sdd-mute { position: absolute; z-index: 2; left: 12px; bottom: 12px; display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 12px; border: 0; border-radius: 999px; background: rgba(10, 10, 10, 0.6); color: var(--white); font: 500 13px/1 var(--body); cursor: pointer; }
.sdd-mute svg { width: 18px; height: 18px; }
.sdd-video figcaption { margin-top: 10px; font: 400 14px/1.4 var(--body); color: rgba(255, 255, 255, 0.7); }
.sdd-story-small { display: block; margin-top: 36px; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, 0.16); }
.sdd-story-small p { margin: 0; font: italic 400 20px/1.42 var(--serif); text-wrap: pretty; }

/* ---- 6. The first step and the questions people ask before it ---- */
.sdd-first { padding: 64px 24px 24px; }
.sdd-first h2 { margin: 0; font: 300 clamp(34px, 9.4vw, 52px)/1.02 var(--display); letter-spacing: -0.04em; color: var(--ink); }
.sdd-first-head p { margin: 16px 0 0; font: 400 17px/1.5 var(--body); color: var(--ink); max-width: 34em; }
.sdd-first-photo { margin: 28px 0 0; aspect-ratio: 4 / 3; border-radius: 4px; overflow: hidden; }
.sdd-first-photo img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 100% 25%; }
.sdd-qa { margin: 28px 0 0; }
.sdd-qa div { padding: 16px 0; border-top: 1px solid var(--border); }
.sdd-qa dt { font: 500 17px/1.35 var(--body); color: var(--ink); }
.sdd-qa dd { margin: 6px 0 0; font: 400 15px/1.5 var(--body); color: var(--ink-soft); }

/* ---- Booking: the free consultation only, so no other service or price is offered here ---- */
.sdd #free-consult .book-svc-head.is-chooser { padding-right: 16px; }
.sdd #free-consult .book-svc-head select,
.sdd #free-consult .book-svc-head.is-chooser::after { display: none; }
.sdd #free-consult .book-doc-zh { display: none; }

/* ---- A single contact line in place of the site footer ---- */
.sdd-foot { padding: 28px 24px calc(28px + env(safe-area-inset-bottom)); background: var(--cream); border-top: 1px solid var(--border); }
.sdd-foot p { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 8px; max-width: 1200px; margin: 0 auto; font: 400 13px/1.5 var(--body); color: var(--ink-soft); }
.sdd-foot img { display: block; width: 18px; height: 18px; }
.sdd-foot span { white-space: nowrap; }
.sdd-foot a { color: var(--ink); text-underline-offset: 3px; }

/* ---- Desktop ---- */
@media (min-width: 900px) {
  .sdd { --gutter: max(40px, calc(50vw - 600px)); }
  .sdd-act { padding: 40px 0 0; }
  .sdd-act .sdd-btn, .sdd-hero .sdd-btn { display: inline-flex; width: auto; min-width: 340px; }

  .sdd-hero { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 64px; align-items: center; padding: 40px var(--gutter); background: var(--cream); }
  .sdd-brand { left: var(--gutter); top: 40px; }
  .sdd-shot { grid-column: 2; grid-row: 1; width: min(560px, calc((100svh - 80px) * 0.75)); aspect-ratio: 3 / 4; min-height: 0; max-height: none; border-radius: 4px; }
  .sdd-shot img { object-position: 50% 0; }
  .sdd-title { left: 6%; top: 7.1%; font-size: 12.5cqw; }
  .sdd-hero-foot { position: static; grid-column: 1; grid-row: 1; padding: 48px 0 0; background: none; color: var(--ink); }
  .sdd-id .sdd-under { font-size: clamp(44px, 4.6vw, 64px); letter-spacing: -0.04em; }
  .sdd-name { margin-top: 18px; font-size: 20px; }
  .sdd-facts { margin: 8px 0 32px; font-size: 16px; color: var(--ink-soft); }

  .sdd-reviews { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 56px; align-items: center; padding: 104px var(--gutter); }
  .sdd-reviews h2 { font-size: clamp(36px, 3.6vw, 52px); }
  .sdd-stage { margin-top: 0; }
  .sdd-stage-photo { width: min(62%, 400px); margin-left: 16%; }
  .sdd-window-main { left: 0; right: auto; bottom: -64px; width: min(58%, 380px); padding: 20px 22px; }
  .sdd .sdd-window-main p { font-size: 17px; }
  .sdd-window-small { top: 46%; right: 2%; width: 210px; }

  .sdd-why { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: 56px; align-items: end; padding: 40px var(--gutter) 104px; }
  .sdd-why-head { padding: 0 0 8px; }
  .sdd-why h2 { font-size: clamp(36px, 3.6vw, 52px); }
  .sdd-room { grid-column: 2; grid-row: 1 / 3; aspect-ratio: 3 / 2; border-radius: 4px; }
  .sdd-room figcaption { padding: 120px 32px 28px; }
  .sdd-figs { grid-template-columns: repeat(4, minmax(0, 1fr)); font-size: 14px; }
  .sdd-figs b { font-size: 52px; }
  .sdd-why .sdd-act { grid-column: 1; grid-row: 2; align-self: start; padding-top: 32px; }

  .sdd-deb { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 32px 64px; padding: 104px var(--gutter); }
  .sdd-deb-photo { grid-column: 1; grid-row: 1; border-radius: 4px; }
  .sdd-deb-copy { grid-column: 2; grid-row: 1 / 3; padding: 0; }
  .sdd-deb h2 { font-size: clamp(30px, 2.7vw, 40px); }
  .sdd-deb-gym { grid-column: 1; grid-row: 2; grid-template-columns: 34% minmax(0, 1fr); margin: 0; }
  .sdd-deb-gym figcaption { font-size: 21px; }
  .sdd-deb .sdd-act { grid-column: 2; grid-row: 3; padding-top: 8px; }

  .sdd-story { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 0 64px; align-items: start; padding: 104px var(--gutter); }
  .sdd-story-quote { grid-column: 1; grid-row: 1; }
  .sdd-story h2 { font-size: clamp(30px, 2.8vw, 42px); }
  .sdd-video { grid-column: 2; grid-row: 1 / 3; margin: 0; }
  .sdd-story-small { grid-column: 1; grid-row: 2; }

  .sdd-first { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 0 64px; padding: 104px var(--gutter) 40px; }
  .sdd-first-head, .sdd-qa { grid-column: 1; }
  .sdd-first-photo { grid-column: 2; grid-row: 1 / 3; margin: 0; aspect-ratio: 4 / 5; }
  .sdd-first h2 { font-size: clamp(44px, 4.4vw, 64px); }
}

/* The sticky consultation pill matches this page's buttons, so it stays visible over the ink story section. */
.sdd .floaters a[data-analytics-cta-key="free_consult"] { background: var(--accent); color: var(--ink); }
/* The hand-drawn underline sits behind the letters, not over the descenders. */
.sdd-under { z-index: 0; }
.sdd-under svg { z-index: -1; }
.sdd-more { margin: 22px 0 0; } .sdd-more a { color: var(--ink); font-weight: 500; text-decoration: underline 1px; text-underline-offset: 4px; }
/* Credentials: an orange label above the institution, as on /migraine-consult. */
.sdd-cred-lab { display: block; margin-bottom: 4px; font: 600 11.5px/1.3 var(--body); letter-spacing: 0.11em; text-transform: uppercase; color: var(--accent); }
.sdd-cred-name { display: block; font: 500 17px/1.35 var(--display); letter-spacing: -0.01em; color: var(--ink); }

/* Tablets need flexible columns and a full-width portrait hero. */
@media (min-width: 600px) and (max-width: 1199px) {
  .sdd { --gutter: 40px; }
  .sdd-act .sdd-btn, .sdd-hero .sdd-btn { width: 100%; min-width: 0; }
  .sdd-why, .sdd-deb, .sdd-story, .sdd-first { column-gap: 32px; }
  .sdd-room { aspect-ratio: 4 / 5; }
  .sdd-figs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sdd-room figcaption { padding: 96px 24px 24px; }
}
@media (min-width: 600px) and (max-width: 1199px) and (orientation: portrait) {
  .sdd-hero { display: block; padding: 0; background: var(--ink); }
  .sdd-brand { left: 6%; top: 28px; }
  .sdd-shot { width: 100%; height: clamp(760px, 100svh, 1100px); min-height: 0; max-height: none; aspect-ratio: auto; border-radius: 0; }
  .sdd-shot img { object-position: 30% 0; }
  .sdd-title { left: 5.5%; top: 8.5%; font-size: 12.5cqw; }
  .sdd-hero-foot { position: absolute; padding: 72px 6% max(28px, env(safe-area-inset-bottom)); background: linear-gradient(to top, rgba(10, 10, 10, 0.8), rgba(10, 10, 10, 0.55) 62%, transparent); color: var(--white); }
  .sdd-id .sdd-under { font-size: 36px; }
  .sdd-name { margin-top: 12px; font-size: 18px; }
  .sdd-facts { margin: 8px 0 22px; font-size: 16px; color: rgba(255, 255, 255, 0.82); }
  .sdd-hero .sdd-book { max-width: 560px; }
}
@media (min-width: 900px) and (max-width: 1199px) and (orientation: landscape) {
  .sdd-hero { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px; }
  .sdd-shot { width: 100%; }
}

/* Reviews over the photo (restored from before 2026-11-07, commit 0b23e6fac): the windows sit on the photo and never
   on a face (Dr. Deb upper left, the patient centre). Positions only; the photo is untouched. */
.sdd .sdd-window-small .rmeta .who { white-space: normal; overflow: visible; text-overflow: clip; }
@media (max-width: 599px) {
  .sdd-window-small { top: 34%; }
}
@media (max-width: 399px) {
  .sdd-window-small { top: 24%; }
  .sdd-window-main { bottom: -92px; }
}
@media (min-width: 900px) and (max-width: 1199px) {
  .sdd-reviews { padding-bottom: 168px; }
  .sdd-window-main { top: 70%; bottom: auto; }
  .sdd-window-small { top: -9%; right: -1%; }
}
@media (min-width: 1200px) and (max-width: 1279px) {
  .sdd-window-small { right: -3%; }
}

/* Hero name and credentials links to the Dr. Deb page */
.sdd-id-link { color: inherit; text-decoration: none; }
.sdd-id-link .sdd-name { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.sdd-id-link:focus-visible { outline: 3px solid var(--action); outline-offset: 4px; border-radius: 4px; }
.sdd-btn-quiet { margin-top: 12px; background: transparent; border-color: var(--ink); color: var(--ink); }
.sdd-btn-quiet:hover { background: var(--ink); color: var(--white); opacity: 1; }
@media (min-width: 900px) {
  .sdd-act .sdd-btn-quiet { display: flex; width: max-content; min-width: 340px; }
}

@media(max-width:800px){
  .sdd-shot{height:100svh;min-height:0;aspect-ratio:auto}
  .sdd-hero-foot{padding-top:40px}
  .sdd-hero .sdd-btn{font-size:16px;min-height:52px}
}

/* Without JavaScript the shared navigation stays in document flow (70px plus border). */
@media(max-width:800px){html:not(.js) .sdd-shot{height:calc(100svh - 71px)}}
