/* SOTA Dental phone homepage (loaded last, phones only).
   One section = one phone screen. Sections lock (snap) one at a time, alternating full-screen
   patient films with website sections, like the original WordPress mobile site.
   Films are never cropped; buttons come from the Command Center Button Directory (Satin PNGs). */

html.mobile-sections:has(body.sota-home) {
  --mobile-top: calc(62px + var(--mobile-topbar, 26px) + env(safe-area-inset-top, 0px));
  --mobile-bottom: calc(80px + env(safe-area-inset-bottom, 0px));
  --mobile-panel: calc(100svh - var(--mobile-top) - var(--mobile-bottom));
  --aqua: #8ff4f0;
  scroll-snap-type: y mandatory;
  scroll-padding: var(--mobile-top) 0 var(--mobile-bottom);
  scroll-behavior: smooth;
  overscroll-behavior-y: none;
}
html.mobile-sections:has(dialog[open]), html.mobile-sections:has(.mm[open]), html.mobile-sections:has(#site-navigation.open) { scroll-snap-type: none; }
.phone-only { display: revert; }

/* ---------- masthead ---------- */
html body.sota-home[data-mobile-review] .homepage-navigation { height: var(--mobile-top); align-items: flex-start; background: linear-gradient(180deg,#0a2d3d,#061f2c); border-bottom: 0; box-shadow: 0 1px 0 #7fe3ea55, 0 8px 18px #00101c66; }
html body.sota-home[data-mobile-review] .site-masthead .site-header { height: 61px; gap: 4px; }
html body.sota-home[data-mobile-review] .site-header .site-brand { max-width: 190px; }

/* ---------- every panel ---------- */
html body.sota-home #main > .section, html body.sota-home .planning-band > .section,
html body.sota-home #main > .hero, html body.sota-home #main > .mobile-stories {
  position: relative; box-sizing: border-box; width: 100%; max-width: none; margin: 0;
  min-height: var(--mobile-panel); height: auto;
  display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 16px;
  padding: 26px 20px 22px; text-align: center; border: 0; border-radius: 0; overflow: visible;
  scroll-snap-align: start; scroll-snap-stop: always; transform: none;
  background: radial-gradient(ellipse at 50% -10%, #1f5768 0%, #0b3142 48%, #071f2d 100%);
}
html body.sota-home [data-mobile-tall] { justify-content: flex-start; }
html body.sota-home #main .planning-band { display: contents; }
/* display:contents leaves the band's own glow.css overlay (absolute, inset:0, optical-lines art) with no box to
   sit in, so it painted a slanted line across the film panel. Each panel already draws its own lines. */
html body.sota-home #main .planning-band::before, html body.sota-home #main .planning-band::after { content: none; background: none; }
/* Desktop line effects, carried over: a glowing hairline with travelling light at the top of each panel,
   and a soft optical-line wash at the bottom. */
html body.sota-home #main > .section::before, html body.sota-home .planning-band > .section::before,
html body.sota-home #main > .hero::before, html body.sota-home #main > .mobile-stories::before {
  content: ''; position: absolute; left: 6%; right: 6%; top: 0; height: 1px; pointer-events: none; z-index: 1;
  background: linear-gradient(90deg,transparent,#8fe6ec99 20%,#8fe6ec99 80%,transparent);
}
html body.sota-home #main > .section::after, html body.sota-home .planning-band > .section::after,
html body.sota-home #main > .hero::after, html body.sota-home #main > .mobile-stories::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 120px; pointer-events: none; z-index: 0;
  background: url('/art/optical-lines.svg') center bottom / 160% 100% no-repeat; opacity: .35;
  animation: light-drift 12s ease-in-out infinite alternate; inset: auto 0 0;
}
html body.sota-home #main > :is(.section,.hero,.mobile-stories) > *, html body.sota-home .planning-band > .section > * { position: relative; z-index: 2; }
html body.sota-home .section h2 { font-size: clamp(26px, 7.2vw, 31px); line-height: 1.15; margin: 0; text-wrap: balance; }
html body.sota-home .section-intro { margin: 0; }
html body.sota-home .section-intro p { margin: 10px auto 0; font-size: 16px; line-height: 1.45; color: #c7e6ea; max-width: 34ch; }
html body.sota-home .eyebrow { margin: 0 0 8px; font-size: 13px; letter-spacing: .14em; color: var(--aqua); }
/* Satin artwork is drawn on a 3:1 transparent canvas; show the button itself edge to edge so the
   size we set is the size you see. */
html body.sota-home .satin-button { display: block !important; aspect-ratio: 2030 / 410; overflow: hidden; border-radius: 14px; }
html body.sota-home .satin-button > img.satin-art { width: 107.1% !important; max-width: none !important; aspect-ratio: 3 / 1; margin: -8.2% 0 0 -3.5% !important; }
html body.sota-home .satin-button { filter: drop-shadow(0 3px 4px #00101c88); transition: transform .15s, filter .2s; }
html body.sota-home .satin-button:active { transform: scale(.96); }
html body.sota-home .light-ribbon, html body.sota-home #main > .section-connector, html body.sota-home .team .section-connector { display: none; }

/* ---------- full-screen films: never cropped ---------- */
html body.sota-home #main > .mobile-film {
  display: block; position: relative; width: 100%; height: var(--mobile-panel); min-height: 300px; margin: 0; padding: 0;
  overflow: hidden; scroll-snap-align: start; scroll-snap-stop: always; background: #041722; container-type: size; isolation: isolate;
}
.sota-home .mobile-film-backdrop { position: absolute; inset: -8%; width: 116%; height: 116%; object-fit: cover; filter: blur(22px) brightness(.45) saturate(1.2); z-index: -1; }
.sota-home .mobile-film .mobile-film-poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.sota-home .mobile-film .mobile-film-frame { position: absolute; inset: 0; overflow: hidden; }
.sota-home .mobile-film .mobile-film-frame iframe {
  top: 50%; left: 50%; width: min(100cqw, 56.25cqh); height: min(100cqh, 177.7778cqw); transform: translate(-50%, -50%);
}
/* Play/pause and sound: small, quiet, tucked in the bottom corners. */
.sota-home .mobile-film .mobile-film-controls { inset: auto 10px 10px 10px; top: auto; display: flex; justify-content: flex-start; gap: 10px; pointer-events: none; }
.sota-home .mobile-film .film-ctl {
  pointer-events: auto; display: grid; place-items: center; width: 34px; height: 34px; min-height: 0; padding: 0;
  border-radius: 50%; border: 1px solid #ffffff38; background: #04172266; color: #fff; opacity: .55;
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); transition: opacity .2s;
}
.sota-home .mobile-film .film-ctl:active, .sota-home .mobile-film .film-ctl:focus-visible { opacity: 1; }
.sota-home .mobile-film .film-ctl::before { content: ''; position: absolute; inset: -6px; }
.sota-home .film-ctl svg { width: 16px; height: 16px; fill: currentColor; stroke: none; }
.sota-home .film-ctl svg .ln { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.sota-home .film-ctl .i-pause, .sota-home .mobile-film[data-playing="true"] .film-ctl .i-play { display: none; }
.sota-home .mobile-film[data-playing="true"] .film-ctl .i-pause { display: block; }
.sota-home .film-audio .i-sound, .sota-home .film-audio[aria-pressed="true"] .i-muted { display: none; }
.sota-home .film-audio[aria-pressed="true"] .i-sound { display: block; }
html body.sota-home .mobile-film .mobile-film-next {
  bottom: 12px; min-height: 34px; padding: 6px 14px; gap: 8px; flex-direction: row; font-size: 12px; font-weight: 700;
  background: #04172280; border-color: #ffffff30; backdrop-filter: blur(6px); max-width: calc(100% - 110px);
}
html body.sota-home .mobile-film .mobile-film-next span:last-child { font-size: 16px; }
.sota-home .mobile-film .mobile-film-status { bottom: 56px; }

/* ---------- 2: intro / price ---------- */
html body.sota-home #mobile-introduction { gap: 12px; }
.sota-home #mobile-introduction .hero-content { display: flex; flex-direction: column; align-items: center; gap: 0; }
html body.sota-home #mobile-introduction h1 { font-size: clamp(33px, 9.4vw, 40px); line-height: 1.06; margin: 0 0 12px; text-wrap: balance; }
html body.sota-home #mobile-introduction .hero-price { font-size: clamp(18px, 5vw, 21px); line-height: 1.4; margin: 0 0 12px; max-width: none; }
html body.sota-home #mobile-introduction .trust { font-size: 15px; gap: 6px 10px; margin: 0 0 18px; }
html body.sota-home #mobile-introduction .trust b { font-size: 22px; }
html body.sota-home #mobile-introduction .stars { font-size: 20px; }
html body.sota-home #main #mobile-introduction .hero-proof { order: 1; width: 100%; max-width: 360px; height: clamp(96px, 17svh, 170px); margin: 0 auto; }
html body.sota-home #main #mobile-introduction .hero-proof .denture-art { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 12px 18px #00101c99); }
/* Lead buttons: stacked, one size, big enough to tap without aiming. */
html body.sota-home :is(#mobile-introduction, .final-cta) .actions {
  display: flex; flex-direction: column; align-items: center; gap: 10px; width: 100%; max-width: 330px; margin: 0 auto;
}
html body.sota-home :is(#mobile-introduction, .final-cta) .actions > .satin-button { --satin-width: min(76vw, 290px); width: var(--satin-width) !important; grid-column: auto; }

/* ---------- 4: video series ---------- */
html body.sota-home #process { gap: 14px; }
.sota-home #process .process-feature { display: flex; flex-direction: column; align-items: center; gap: 14px; width: 100%; padding: 0; }
.sota-home #process .center-video { width: 100%; border-radius: 12px; }
.sota-home #process .center-video .video-base { display: none; }
.sota-home #process .process-copy { display: flex; flex-direction: column; align-items: center; gap: 12px; }
html body.sota-home #process .process-copy h2 { font-size: clamp(22px, 6.2vw, 26px); line-height: 1.2; }
html body.sota-home #process .process-copy h2 br { display: none; }
.sota-home #process .doctor-signature { width: 100%; max-height: none; height: auto; margin: 2px 0 0; }
.sota-home #process .text-link { display: none; }
html body.sota-home #process .desk-copy { display: none; }
html body.sota-home .series-button { --satin-width: min(90vw, 360px); }

/* ---------- 5: how to start (natural photo shapes) ---------- */
html body.sota-home .start.section { gap: 18px; }
html body.sota-home .start.section > div { width: 100%; }
html body.sota-home .start h2 { text-align: center; }
html body.sota-home #main .steps { display: flex; flex-direction: column; gap: 12px !important; width: 100%; max-width: 380px; margin: 0 auto; padding: 0; }
html body.sota-home #main .steps li { list-style: none; }
html body.sota-home #main .steps .step-panel {
  display: grid; grid-template-columns: 132px minmax(0, 1fr); align-items: center; gap: 14px; padding: 9px; text-align: left;
  border: 1px solid #7fd8df55; border-radius: 16px; background: linear-gradient(120deg, #17485acc, #0b2e3fcc);
  box-shadow: inset 0 1px #d6ffff2e, 0 8px 18px #00101c55;
}
html body.sota-home #main .steps .step-panel > img { width: 132px; height: auto; max-height: none; object-fit: contain; border-radius: 10px; }
html body.sota-home #main .steps .step-panel > span { display: flex; flex-direction: column; gap: 2px; padding: 0; }
html body.sota-home #main .steps .step-panel small { font-size: 13px; letter-spacing: .1em; color: var(--aqua); }
html body.sota-home #main .steps .step-panel h3 { font-size: 19px; line-height: 1.22; margin: 0; }
html body.sota-home #main .steps .step-panel { position: relative; }
html body.sota-home #main .steps .step-panel::after {
  content: ''; position: absolute; right: 12px; top: 50%; width: 10px; height: 10px;
  border: solid #8fe6ec; border-width: 0 3px 3px 0; border-radius: 1px; pointer-events: none;
  transform: translateY(-50%) rotate(-45deg); filter: drop-shadow(0 0 4px #8fe6ecaa);
}
html body.sota-home #main .steps .step-panel:active { transform: scale(.985); border-color: #bff6fa; }

/* ---------- 7: price list ---------- */
html body.sota-home #main #pricing { gap: 16px; padding: 26px 20px 22px; }
html body.sota-home #main #pricing .home-price-sheet { width: min(100%, 380px) !important; }
html body.sota-home #pricing h2 { font-size: clamp(28px, 8vw, 34px); }
html body.sota-home #pricing .home-price-sheet img { border-radius: 10px; box-shadow: 0 0 0 4px #1b4a5c88, 0 14px 30px #00101c99; }
html body.sota-home #pricing .home-price-action { min-height: 54px; padding: 10px 30px; font-size: 18px; border-radius: 12px; }
html body.sota-home #pricing .home-price-clinics { font-size: 14px; }

/* ---------- 8: written reviews, one at a time ---------- */
html body.sota-home #reviews { gap: 12px; }
html body.sota-home #reviews h2 { font-size: clamp(24px, 6.6vw, 28px); }
html body.sota-home #reviews .section-intro p { font-size: 15px; margin-top: 6px; }
html body.sota-home #reviews .review-player { display: none; }
.sota-home .review-slider { display: flex; flex-direction: column; gap: 12px; width: 100%; max-width: 390px; }
.sota-home .review-slide {
  margin: 0; padding: 20px 20px 18px; text-align: left; border-radius: 18px; border: 1px solid #8ee3e966;
  background: linear-gradient(150deg, #1d5568f2, #0c3243f2); box-shadow: inset 0 1px #e1ffff38, 0 14px 30px #00101c88;
  animation: hp-in .35s ease;
}
.sota-home .review-slide[hidden] { display: none; }
.sota-home .review-slide .stars { display: block; font-size: 18px; letter-spacing: 3px; color: #f7d66d; }
.sota-home .review-slide h3 { margin: 6px 0 8px; font-size: 20px; line-height: 1.25; }
.sota-home .review-slide p { margin: 0 0 10px; font-size: 15.5px !important; line-height: 1.5 !important; color: #def3f5;
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 7; overflow: hidden; }
.sota-home .review-slide strong { font-size: 15px; color: var(--aqua); }
.sota-home .review-slider-nav { display: flex; align-items: center; justify-content: center; gap: 16px; }
.sota-home .review-slider-nav button, .sota-home #mobile-stories .story-control {
  display: grid; place-items: center; width: 46px; height: 46px; padding: 0; border-radius: 50%; cursor: pointer;
  border: 1px solid #7fdde4; background: linear-gradient(180deg, #298b9a, #086071 55%, #03404e);
  box-shadow: inset 0 2px 2px #b7faff55, 0 3px 0 #001d29, 0 6px 14px #001b2966; color: #fff;
}
.sota-home .review-slider-nav svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.sota-home .review-slider-nav button:active, .sota-home #mobile-stories .story-control:active { transform: translateY(2px); }
.sota-home .review-dots { display: flex; gap: 6px; }
.sota-home .review-dots i { width: 7px; height: 7px; border-radius: 50%; background: #8fe6ec44; transition: width .25s, background .25s; }
.sota-home .review-dots i.on { width: 20px; border-radius: 4px; background: var(--aqua); }
html body.sota-home #reviews .review-footer { display: flex; flex-direction: column; align-items: center; gap: 6px; margin: 0; padding: 0; border: 0; font-size: 15px; }
html body.sota-home #reviews .review-footer .satin-button { --satin-width: min(70vw, 260px); }

/* ---------- 9: patient stories (videos first, controls under them) ---------- */
html body.sota-home #mobile-stories { gap: 14px; border: 0; }
html body.sota-home #mobile-stories h2 { margin: 0; font-size: clamp(26px, 7.2vw, 31px); }
html body.sota-home #mobile-stories .patient-track {
  display: flex; gap: 14px; width: calc(100% + 40px); margin: 0 -20px; padding: 4px 20% 6px; box-sizing: border-box;
  overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; border: 0; background: none;
}
html body.sota-home #mobile-stories .patient-track::-webkit-scrollbar { display: none; }
html body.sota-home #mobile-stories .patient-card { flex: 0 0 60%; min-width: 0; scroll-snap-align: center; text-align: left; border: 0; background: none; }
html body.sota-home #mobile-stories .patient-card .video-poster { aspect-ratio: 9 / 16; width: 100%; max-height: calc(var(--mobile-panel) - 230px); border-radius: 14px; box-shadow: 0 0 0 3px #1b4a5c99, 0 12px 26px #00101c99; }
html body.sota-home #mobile-stories .patient-card .video-poster img { width: 100%; height: 100%; max-height: none; object-fit: contain; }
html body.sota-home #mobile-stories .patient-card h3 { margin: 8px 0 0; font-size: 19px; }
html body.sota-home #mobile-stories .patient-card p { margin: 0; font-size: 14px; color: #b8d7dc; }
html body.sota-home #mobile-stories .story-toolbar { display: flex; justify-content: center; gap: 18px; margin: 0; padding: 0; border: 0; background: none; }
html body.sota-home #mobile-stories .story-control { width: 46px; height: 46px; gap: 0; }
html body.sota-home #mobile-stories .story-control span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
html body.sota-home #mobile-stories .story-control .icon { width: 22px; height: 22px; }
html body.sota-home #mobile-stories .story-prev .icon { transform: rotate(180deg); }

/* ---------- 10: whole team, no scrolling ---------- */
html body.sota-home #main #team { margin: 0; color: #0b3349; background: radial-gradient(ellipse at 50% 30%, #e1f1f5, #9cc9d6 70%, #5b95ab); gap: 14px; }
html body.sota-home #team::after { opacity: .15; }
html body.sota-home #team h2 { color: #0b3349; font-weight: 500; }
html body.sota-home #team .team-line {
  display: flex; flex-wrap: wrap; justify-content: center; align-items: flex-end; gap: 4px 2px; width: 100%; max-width: 380px;
  margin: 0 auto; padding: 0; overflow: visible; transform: none; translate: none; grid-template-rows: none;
}
html body.sota-home #team .team-line a { flex: 0 0 calc((100% - 10px) / 5); width: auto; margin: 0; }
html body.sota-home #team .team-line img { width: 100%; height: clamp(62px, 10.5svh, 86px); object-fit: contain; object-position: bottom; }
html body.sota-home #team > .satin-button { --satin-width: min(60vw, 230px); }

/* ---------- 11: videos ---------- */
html body.sota-home .expertise.section { gap: 12px; }
html body.sota-home .expertise h2 { font-size: clamp(24px, 6.6vw, 28px); }
html body.sota-home .expertise h2 > span { font-size: .86em; }
html body.sota-home .expertise .video-pair { display: grid; grid-template-columns: 1fr; gap: 12px; width: 100%; }
html body.sota-home .expertise .more-videos-button { --satin-width: min(66vw, 250px); margin: 0; }

/* ---------- 13 / 14: before & after, technicians ---------- */
html body.sota-home #results { gap: 18px; }
html body.sota-home #results > div { display: flex; flex-direction: column; align-items: center; gap: 14px; }
html body.sota-home #results h2 { margin: 0; }
html body.sota-home #results .satin-button { --satin-width: min(78vw, 290px); }
html body.sota-home #results .result-image { width: 100%; max-height: none; transform: none; translate: none; }
html body.sota-home #results .result-image img { width: 100%; height: auto; max-height: 34svh; object-fit: contain; }
html body.sota-home .craft.section { gap: 16px; }
html body.sota-home .craft .craft-text { display: contents; }
html body.sota-home .craft .eyebrow { order: 1; margin: 0; }
html body.sota-home .craft h2 { order: 2; }
html body.sota-home .craft > :not(.craft-text) { order: 3; width: 100%; }
/* More Videos always sits below the video it belongs with. */
html body.sota-home .craft .more-videos-button { order: 4; --satin-width: min(66vw, 250px); margin: 0; }

/* ---------- 15: final call to action ---------- */
html body.sota-home .final-cta.section { gap: 22px; background: radial-gradient(ellipse at 50% 120%, #2d7486, #0b3142 55%, #071f2d); }
html body.sota-home .final-cta h2 { font-size: clamp(30px, 8.4vw, 36px); }
html body.sota-home .final-cta .actions { max-width: 390px; gap: 8px 10px; }
html body.sota-home .final-cta p { margin: 0; font-size: 15px; color: #b6d3da; }

/* ---------- 16: footer ---------- */
html body.sota-home footer.sota-footer {
  display: grid !important; grid-template-columns: 1fr 1fr; gap: 12px !important; padding: 26px 18px 22px !important;
  min-height: var(--mobile-panel); box-sizing: border-box; align-content: center; scroll-snap-align: start; scroll-snap-stop: always;
  background: radial-gradient(ellipse at 50% 0%, #174556, #061c28 60%, #041520); position: relative; text-align: left;
}
html body.sota-home footer.sota-footer::before { content: ''; position: absolute; left: 6%; right: 6%; top: 0; height: 1px; background: linear-gradient(90deg,transparent,#8fe6ec99 20%,#8fe6ec99 80%,transparent); }
html body.sota-home footer.sota-footer > div { grid-column: 1 / -1 !important; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; width: auto; }
html body.sota-home footer.sota-footer h2 { grid-column: 1 / -1; margin: 6px 0 0; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--aqua); }
html body.sota-home footer .footer-brand { justify-items: center; text-align: center; gap: 4px; padding-bottom: 6px; }
html body.sota-home footer .footer-brand > * { grid-column: 1 / -1; }
html body.sota-home footer .footer-brand img { width: 220px; height: auto; }
html body.sota-home footer .footer-brand p { margin: 0; font-size: 14px; color: #b6d3da; }
html body.sota-home footer .footer-brand a[href^="mailto"] { font-size: 15px; color: #e9ffff; }
html body.sota-home footer a[href^="tel:"] {
  display: block; padding: 10px 12px; border-radius: 14px; border: 1px solid #7fd8df55; font-size: 12px; line-height: 1.35; color: #b9dde2;
  background: linear-gradient(150deg, #17485a, #0b2e3f); box-shadow: inset 0 1px #d6ffff2e, 0 6px 14px #00101c66; white-space: normal !important;
}
html body.sota-home footer a[href^="tel:"] strong { display: block; font-size: 16px; color: #fff; white-space: nowrap; }
html body.sota-home footer a.facebook-message { grid-column: 1 / -1; justify-self: center; align-self: center; font-size: 15px; padding: 10px 16px; }
html body.sota-home footer > div:nth-child(3) > a {
  display: flex; align-items: center; min-height: 42px; padding: 6px 12px; border-radius: 12px; font-size: 14px; line-height: 1.25; color: #e9ffff;
  border: 1px solid #7fd8df33; background: #0e3446aa;
}
html body.sota-home footer .footer-legal { display: flex !important; flex-wrap: wrap; justify-content: center; gap: 6px 16px; padding-top: 10px; border-top: 1px solid #8fe6ec22; font-size: 12px; color: #8fb3bb; }
html body.sota-home footer .footer-legal a { font-size: 12px; color: #b6d3da; }
html.mobile-sections .facebook-contact { bottom: calc(var(--mobile-bottom) + 12px); }

/* ---------- typical phones (viewport under ~800px tall) ---------- */
@media (max-height: 820px) {
  html body.sota-home #main > .section, html body.sota-home .planning-band > .section, html body.sota-home #main > .hero, html body.sota-home #main > .mobile-stories { padding-top: 18px; padding-bottom: 16px; }
  html body.sota-home #main #mobile-introduction .hero-proof { height: clamp(80px, 13svh, 140px); }
  html body.sota-home #mobile-introduction h1 { margin-bottom: 8px; }
  html body.sota-home #mobile-introduction .hero-price, html body.sota-home #mobile-introduction .trust { margin-bottom: 10px; }
  html body.sota-home :is(#mobile-introduction, .final-cta) .actions { gap: 8px; }
  html body.sota-home :is(#mobile-introduction, .final-cta) .actions > .satin-button { --satin-width: min(70vw, 270px); }
  .sota-home .review-slide { padding: 16px 18px 14px; }
  .sota-home .review-slide p { -webkit-line-clamp: 6; }
  html body.sota-home .expertise .video-pair { width: 90%; }
  html body.sota-home footer.sota-footer { gap: 8px !important; padding-top: 18px !important; padding-bottom: 14px !important; }
  html body.sota-home footer .footer-brand img { width: 190px; }
  html body.sota-home footer > div:nth-child(3) > a { min-height: 38px; }
}

/* ---------- short screens ---------- */
@media (max-height: 700px) {
  html body.sota-home #main > .section, html body.sota-home .planning-band > .section, html body.sota-home #main > .hero, html body.sota-home #main > .mobile-stories { padding-top: 16px; padding-bottom: 14px; gap: 10px; }
  html body.sota-home #main .steps .step-panel { grid-template-columns: 104px minmax(0, 1fr); }
  html body.sota-home #main .steps .step-panel > img { width: 104px; }
  html body.sota-home #mobile-introduction .trust { margin-bottom: 10px; }
  html body.sota-home #process .doctor-signature { display: none; }
  .sota-home .review-slide p { -webkit-line-clamp: 5; }
  html body.sota-home #reviews .section-intro p { display: none; }
  html body.sota-home .expertise .video-pair { width: 78%; }
  html body.sota-home #mobile-introduction .trust > span:last-child { display: none; }
  html body.sota-home footer.sota-footer h2 { display: none; }
}

@keyframes hp-rail { 0% { background-position: -30% 0; } 100% { background-position: 130% 0; } }
@keyframes hp-in { from { opacity: 0; transform: translateX(14px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  html.mobile-sections:has(body.sota-home) { scroll-behavior: auto; scroll-snap-type: y proximity; }
  html body.sota-home *::after, .sota-home .review-slide { animation: none !important; }
}

/* ===================================================================================
   Exact-fit snap pages (Trip, Nov 20 2026).
   Every page — film or website section — is exactly one screen between the header and the dock.
   The page scrolls inside <body>, so the browser's address bar never collapses mid-scroll and
   every page keeps the same height; each snap lines up exactly. Content that would not fit is
   scaled down as a whole by phone-panels.js (buttons, text and photos together), never clipped.
   Films fill the whole page; when the screen shape forces a crop, only the bottom is cropped.
   =================================================================================== */
html.mobile-sections:has(body.sota-home) {
  height: 100%; overflow: hidden; scroll-snap-type: none; scroll-behavior: auto;
  --mobile-panel: calc(100dvh - var(--mobile-top) - var(--mobile-bottom));
}
html.mobile-sections body.sota-home {
  position: fixed; inset: 0; width: 100%; height: auto; box-sizing: border-box; overflow-x: hidden; overflow-y: auto; scrollbar-width: none;
  scroll-snap-type: y mandatory; scroll-padding: var(--mobile-top) 0 var(--mobile-bottom);
  scroll-behavior: auto; overscroll-behavior-y: none; -webkit-overflow-scrolling: touch;
}
html.mobile-sections body.sota-home::-webkit-scrollbar { display: none; }
html.mobile-sections:has(dialog[open]) body.sota-home, html.mobile-sections:has(.mm[open]) body.sota-home,
html.mobile-sections:has(#site-navigation.open) body.sota-home { scroll-snap-type: none; }

html body.sota-home :is(#main, .planning-band) > :is(.section, .hero, .mobile-stories, .mobile-film),
html body.sota-home footer.sota-footer {
  height: var(--mobile-panel) !important; min-height: 0 !important; max-height: none !important;
  margin: 0 !important; overflow: hidden !important;
  scroll-snap-align: start !important; scroll-snap-stop: always !important;
}
html body.sota-home [data-mobile-tall] { justify-content: center; }

/* Films: cover the page edge to edge; anchored to the top so only the bottom can be cropped. */
html body.sota-home :is(#main, .planning-band) > .mobile-film { display: block; padding: 0; container-type: size; background: #041722; }
html body.sota-home .mobile-film .mobile-film-backdrop { display: none; }
html body.sota-home .mobile-film .mobile-film-poster { object-fit: cover; object-position: center top; }
html body.sota-home .mobile-film .mobile-film-frame iframe {
  position: absolute !important; top: 0 !important; left: 50% !important; bottom: auto !important;
  width: max(100cqw, 56.25cqh) !important; height: max(100cqh, 177.7778cqw) !important;
  max-width: none !important; max-height: none !important; transform: translateX(-50%) !important;
}

/* The dock stays put on the homepage: hiding it would change the size of every page. */
html body.sota-home .mobile-dock.mobile-dock.is-hidden { transform: none; opacity: 1; visibility: visible; pointer-events: auto; }
html.mobile-sections body.sota-home { padding-bottom: var(--mobile-bottom) !important; }

/* Intro page order: headline, price, stars, teeth, then the lead buttons (Trip, Nov 20). */
html body.sota-home #mobile-introduction .hero-content { display: contents; }
html body.sota-home #mobile-introduction h1 { order: 1; margin: 0; }
html body.sota-home #mobile-introduction .hero-price { order: 2; margin: 0; }
html body.sota-home #mobile-introduction .trust { order: 3; margin: 0; }
html body.sota-home #main #mobile-introduction .hero-proof { order: 4; height: clamp(84px, 15svh, 150px); }
html body.sota-home #mobile-introduction .actions { order: 5; }

/* Lead buttons as a 2×2 grid inside a glowing glass card, with a light that runs around the rim. */
html body.sota-home :is(#mobile-introduction, .final-cta) .actions.actions-grid {
  position: relative; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 10px;
  width: 100%; max-width: 380px; margin: 0 auto; padding: 14px 12px; box-sizing: border-box; border-radius: 20px;
  background: linear-gradient(160deg, #1e5f71cc, #0a2c3ccc 60%, #0d3747cc);
  box-shadow: inset 0 1px #d6ffff40, inset 0 -1px #00101c88, 0 0 0 1px #7fe3ea55, 0 14px 30px #00101c99, 0 0 26px #3fd3e033;
  isolation: isolate;
}
html body.sota-home :is(#mobile-introduction, .final-cta) .actions.actions-grid::before {
  content: ''; position: absolute; inset: -1px; z-index: -1; border-radius: 21px; padding: 1.5px; pointer-events: none;
  background: conic-gradient(from var(--rim, 0deg), transparent 0 70%, #9ffcff 80%, #ff6b7d 86%, transparent 92%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
  animation: hp-rim 5s linear infinite;
}
html body.sota-home :is(#mobile-introduction, .final-cta) .actions.actions-grid > .satin-button {
  --satin-width: 100%; width: 100% !important; max-width: none !important; justify-self: stretch; position: relative;
}
html body.sota-home :is(#mobile-introduction, .final-cta) .actions.actions-grid > .satin-button::after {
  content: ''; position: absolute; inset: -5px 0; } /* finger-sized tap area */
/* Talk Now pulses softly so the live chat stands out. */
html body.sota-home .actions.actions-grid > .red { animation: hp-pulse 2.8s ease-in-out infinite; }
@property --rim { syntax: '<angle>'; inherits: false; initial-value: 0deg; }
@keyframes hp-rim { to { --rim: 360deg; } }
@keyframes hp-pulse { 0%, 100% { filter: drop-shadow(0 3px 4px #00101c88); } 50% { filter: drop-shadow(0 3px 4px #00101c88) drop-shadow(0 0 10px #ff4d6488); } }
@media (prefers-reduced-motion: reduce) { html body.sota-home .actions.actions-grid::before, html body.sota-home .actions.actions-grid > .red { animation: none; } }
/* Before & After: photo first, gallery button under it (standing rule: never buttons before images). */
html body.sota-home #results > div { display: contents; }
html body.sota-home #results .eyebrow { order: 1; margin: 0; }
html body.sota-home #results h2 { order: 2; }
html body.sota-home #results .result-image { order: 3; }
html body.sota-home #results .satin-button, html body.sota-home #results .glow { order: 4; }
html body.sota-home .actions.actions-grid > .satin-button { min-height: 0 !important; padding: 0 !important; }
html body.sota-home :is(#mobile-introduction, .final-cta) .actions.actions-grid { gap: 12px 10px; padding: 14px 12px; }
/* Short phones: the two expertise videos sit side by side so the page still fits at a readable size. */
@media (max-height: 700px) { html body.sota-home .expertise .video-pair { grid-template-columns: 1fr 1fr; width: 100%; } }
/* One button style: price list, review and story Previous/Next use the same satin art and pair size as the hero buttons. */
html body.sota-home #pricing .home-price-action.satin-button { --satin-width:260px; min-height:0; padding:0!important; margin-inline:auto; }
html body.sota-home .review-slider-nav { flex-wrap:wrap; gap:8px 12px; }
html body.sota-home .review-slider-nav .review-dots { order:-1; flex:0 0 100%; justify-content:center; }
html body.sota-home :is(#reviews .review-slider-nav button, #mobile-stories .story-control).satin-button { --satin-width:156px!important; width:156px!important; height:auto!important; min-height:0!important; padding:0!important; border:0!important; border-radius:0!important; background:none!important; box-shadow:none!important; }
html body.sota-home #mobile-stories .story-toolbar { gap:12px; }

