/*
 * Page CSS, linked after the kit (taste-skill: "keep this :root after the links").
 * The palette is the client's own logo blues, through `start.mjs brand --page service --type red-hat --radius soft`.
 */
/* the two families, self-hosted (Latin subset, variable weight; downloaded from Google Fonts, SIL Open Font License) */
@font-face { font-family: "Red Hat Display"; font-style: normal; font-weight: 400 700; font-display: swap; src: url(/fonts/red-hat-display-latin.woff2) format("woff2"); }
@font-face { font-family: "Red Hat Text"; font-style: normal; font-weight: 400 600; font-display: swap; src: url(/fonts/red-hat-text-latin.woff2) format("woff2"); }
:root {
  --p-bg: #f6f5f2; --p-surface: #eaeaea; --p-ink: #1e2b5c; --p-muted: #566388;
  --p-accent: #1a4594; --p-accent-ink: #f6f5f2; --p-action: #1a4594; --p-action-ink: #f6f5f2;
  --p-inv-bg: #1e2b5c; --p-inv-surface: #2a3866; --p-inv-ink: #f6f5f2; --p-inv-muted: #a3aabd;
  --p-inv-accent: #f6f5f2; --p-inv-accent-ink: #1e2b5c; --p-inv-action: #f6f5f2; --p-inv-action-ink: #1e2b5c;
  --font-display: "Red Hat Display", system-ui, sans-serif;
  --font-text: "Red Hat Text", system-ui, sans-serif;
  --display-weight: 400;
  --display-tracking: -0.025em;
  --display-tracking-xl: -0.035em;
}

/* the client's tooth mark beside the name (in place of a dealt mark) */
.nav__logo { display: inline-flex; align-items: center; gap: var(--s-3); }
.nav__logo .brand-mark { width: auto; height: 28px; flex: none; }

/* text people read stays in the ink (7:1): the offer line over the h1 and the offer's terms */
.hero__kicker, .promo-terms { color: var(--ink); }
.promo-terms { margin-top: var(--s-5); }


/* #technology: one panel height for the two cards (one screen at every width; two on a phone) */
#technology .panel { --p-h: 300px; }
@media (min-width: 1024px) and (max-width: 1279px) { #technology .panel { --p-h: 260px; } }
@media (min-width: 640px) and (max-width: 1023px) { #technology .panel { --p-h: 440px; } }
@media (max-width: 639px) { #technology { --hm: 2; } #technology .panel { --p-h: 440px; } }

/* picture-develops: the doctor's photograph on the split's right column, as tall as the text beside it */
.develop { margin: 0; border-radius: var(--r-lg); overflow: hidden; height: min(620px, var(--ly-fit, 620px)); }
.develop > img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 88% 30%; }
@media (max-width: 1023px) { .develop { height: auto; aspect-ratio: 4 / 3; margin-top: var(--s-7); } }
@media (max-width: 1023px) { .develop { aspect-ratio: 16 / 10; } }

/* #results: the pair at the scans' own ratio, the whole arch shown on the scans' background */
#results .frame { --ratio: 58%; background: #eef1f6; }
#results .frame__img { object-fit: contain; }
@media (min-width: 640px) and (max-width: 1023px) { #results .frame { --ratio: 45%; } }

/* #visit: the district set across the wrap (the page's type moment), the street under it */
.visit-district { margin: var(--s-6) 0 var(--s-7); font: var(--display-weight) clamp(56px, 8.4vw, 132px) / 0.95 var(--font-display); letter-spacing: var(--display-tracking-xl); color: var(--ink); }
@media (min-width: 640px) and (max-width: 1023px) { .visit-district { font-size: 15vw; } }
@media (max-width: 639px) { .visit-district { margin: var(--s-4) 0 var(--s-5); font-size: 48px; } }
.visit-address { font: 400 var(--t-lead) / 1.5 var(--font-text); font-style: normal; }

/* a phone stacks the offer past one screen: two there */
@media (max-width: 639px) { #promo { --hm: 2; } }
/* #faq: the questions under the heading, tighter than the kit's default so four fit beside the photograph */
#faq .faq { margin-top: var(--s-6); }
#faq .faq > .faq__item { padding-block: var(--s-4); }

/* #process (pinned-chapters) at rest, below 1024: the kit sizes the section to its steps; these keep it on the
   screen grid: one screen on a tablet (shorter rest visuals), two on a phone */
@media (min-width: 640px) and (max-width: 1023px) {
  main > #process[data-moment]:not(.is-live) .mo-pc__visual > img { max-height: 16svh; }
}
@media (max-width: 639px) {
  main > #process[data-moment]:not(.is-live) { min-height: calc(2 * 100lvh); }
  /* the phone's still: each step's photograph taller, so the steps fill the two screens */
  main > #process[data-moment]:not(.is-live) .mo-pc__visual > img { height: 300px; max-height: none; aspect-ratio: auto; object-fit: cover; }
}

/* #visit on a phone: each row keeps its label and value on one line (the stacked rows left half the width empty) */
@media (max-width: 639px) {
  #visit .visit__rows > li { flex-direction: row; align-items: center; justify-content: space-between; gap: var(--s-4); }
  #visit .visit__rows > li > :last-child { text-align: right; }
}

/* on a phone the list and its photograph take two screens (the photograph fills what the words leave; the sizes
   hint asks for the width the cover crop really shows) */
@media (max-width: 639px) { #treatments, #faq { --hm: 2; } }

/* the footer on a phone: the name and lede are already in the nav and the hero, so the close and the links fit one screen */
@media (max-width: 639px) { footer#contact .footer__brand { display: none; } }

/* #promo: the photograph square beside the price list (not run down to the section's foot like the treatments and
   the questions); on a phone, under the list, it takes what the two screens leave */
#promo .promo-photo { --ratio: 100%; }
@media (max-width: 1023px) {
  #promo .grid.fill { display: flex; flex-direction: column; gap: var(--s-6); }
  #promo .grid.fill > .promo-photo { flex: 1 1 0; height: auto; min-height: 200px; }
}
/* #faq on a phone: the guide photograph no taller than its file holds sharp */
@media (max-width: 639px) { #faq .grid.fill > .frame--fill { max-height: 640px; } }

/* taps: no double-tap zoom delay on links and buttons; the kit's own press state is the feedback */
a, button, [tabindex] { touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
/* the hours and numbers line up */
#visit .visit__rows { font-variant-numeric: tabular-nums; }
