/* www.home1st.care, from design 2 of 5 "Waitlist up front" (Dr. Munzar picked it 2026-11-27). On a wide screen the
   first view is a split: her card's message on white at the left, the whole waitlist form in a white card with a teal
   top edge on a pale teal field at the right. On a phone the form follows the message, and a bottom bar (Call, Join
   the waitlist) stays in reach until the form is on screen. Below: "Meet your doctor" (her photo and bio), the teal
   service-area band and the footer. Inter. Brief: plans/home1st-website-options-2026-11-26.md. */
:root {
  --teal: #126f91;
  --teal-deep: #0d5873;
  --red: #a1251d;
  --ink: #1f1f1f;
  --muted: #4b5359;
  --tint: #edf5f8;
  --tint-line: #d3e4eb;
  --font: "Inter", "Helvetica Neue", Arial, sans-serif;

  --h1-accent: var(--red);
  --h1-accent-ink: #fff;
  --h1-font: var(--font);
  --h1-radius: 8px;
  --h1-focus: var(--teal);
  --h1-ink: var(--ink);
  --h1-gap: 14px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0; background: #fff; color: var(--ink);
  font: 400 17px/1.55 var(--font); -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
a:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; border-radius: 4px; }
.wrap { width: min(1320px, 100% - 2 * clamp(16px, 4vw, 48px)); margin-inline: auto; }

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 100; padding: 12px 18px; border-radius: 8px;
  background: var(--ink); color: #fff; font-weight: 700; text-decoration: none;
}
.skip:focus { top: 12px; }

/* ---- first screen ---- */
.fold { overflow-x: clip; }
.intro { padding: 28px 16px 30px; }
.logo { width: 212px; height: auto; }
.h1 {
  margin: 30px 0 0; font-size: clamp(38px, 4.2vw, 56px); font-weight: 800; line-height: 1.03; letter-spacing: -.028em;
  text-wrap: balance;
}
.tagline { margin: 12px 0 0; color: var(--teal); font-size: clamp(21px, 2vw, 27px); font-style: italic; font-weight: 500; line-height: 1.25; letter-spacing: -.01em; }
.checks { display: grid; gap: 12px; margin: 26px 0 0; padding: 0; list-style: none; }
.checks li { display: flex; align-items: center; gap: 12px; font-size: clamp(18px, 1.5vw, 20px); font-weight: 600; line-height: 1.3; }
.checks svg { flex: none; color: var(--teal); }

.doc { display: inline-flex; align-items: center; gap: 14px; margin-top: 26px; color: inherit; text-decoration: none; border-radius: 12px; }
.doc:hover .doc-name { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; }
.doc-photo {
  flex: none; width: 72px; height: 72px; border-radius: 50%; object-fit: cover;
  background: var(--tint); box-shadow: 0 0 0 3px #fff, 0 0 0 5px var(--tint-line);
}
.doc-text { display: grid; margin: 0; line-height: 1.3; }
.doc-k { font-size: 14px; font-weight: 600; color: var(--muted); }
.doc-name { font-size: 18px; font-weight: 700; }
.doc-spec { font-size: 15.5px; color: var(--muted); }

.call { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 14px; margin: 26px 0 0; padding-top: 22px; border-top: 1px solid #e4e9ec; }
.call-k { font-size: 16px; font-weight: 600; color: var(--muted); }
.call-n {
  display: inline-flex; align-items: center; gap: 8px; min-height: 48px; color: var(--red); text-decoration: none;
  font-size: clamp(27px, 2.4vw, 32px); font-weight: 800; letter-spacing: -.01em; white-space: nowrap;
}
.call-n:hover span { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 5px; }

/* the form panel */
.signup { background: var(--tint); padding: 24px 16px 36px; border-top: 1px solid var(--tint-line); }
.panel {
  position: relative; width: min(640px, 100%); margin-inline: auto; padding: 24px 20px 22px; scroll-margin-top: 12px;
  background: #fff; border-radius: 12px; border-top: 6px solid var(--teal);
  box-shadow: 0 1px 2px rgba(13, 88, 115, .08), 0 28px 60px -34px rgba(13, 88, 115, .42);
}
.panel:focus { outline: none; }
.panel-h { margin: 0; font-size: clamp(26px, 2.3vw, 30px); font-weight: 800; line-height: 1.15; letter-spacing: -.02em; }
.panel-sub {
  display: inline-block; margin: 10px 0 20px; padding: 5px 13px 5px 12px; border-radius: 999px;
  background: var(--tint); color: var(--teal-deep); font-size: 15px; font-weight: 600; line-height: 1.3;
}
.panel-sub::before { content: ""; display: inline-block; width: 7px; height: 7px; margin: 0 8px 2px 0; border-radius: 50%; background: var(--teal); vertical-align: middle; }
.panel .h1w-label { font-weight: 600; }
.panel .h1w-in .h1w-label { font-weight: 400; }
.nojs { margin: 0; font-size: 18px; }

/* wide: the split */
@media (min-width: 1060px) {
  .fold-in {
    display: grid; grid-template-columns: minmax(0, 1fr) minmax(560px, 700px); align-items: center;
    width: min(1320px, 100% - 96px); margin-inline: auto;
  }
  .intro { padding: 40px 56px 40px 0; }
  .logo { width: 280px; }
  .h1 { margin-top: 40px; }
  .signup {
    position: relative; isolation: isolate; align-self: stretch; display: flex; align-items: center;
    padding: 28px 0 32px 56px; background: none; border: 0;
  }
  /* the pale teal field runs from the column edge to the window edge */
  .signup::before { content: ""; position: absolute; z-index: -1; top: 0; bottom: 0; left: 0; right: -50vw; background: var(--tint); }
  .panel { width: 100%; max-width: 620px; margin: 0; padding: 26px 32px 24px; }
  .panel-sub { margin-bottom: 18px; }
}
@media (min-width: 1060px) and (max-height: 820px) {
  .intro { padding-block: 28px; }
  .h1 { margin-top: 28px; }
}

/* ---- meet your doctor ---- */
.doctor { padding-block: clamp(48px, 6vw, 84px); border-top: 1px solid #e4e9ec; }
.doctor-in { display: grid; gap: 28px; align-items: center; max-width: 1080px; }
.doctor-photo {
  width: min(320px, 78%); height: auto; aspect-ratio: 640 / 798; object-fit: cover; border-radius: 14px;
  background: var(--tint); box-shadow: 0 1px 2px rgba(13, 88, 115, .08), 0 28px 60px -34px rgba(13, 88, 115, .42);
}
.doctor-text { max-width: 640px; }
.doctor-text p { margin: 0 0 16px; font-size: 18px; line-height: 1.65; }
.doctor-k { margin: 0 0 6px !important; color: var(--teal); font-size: 15px !important; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.doctor-h { margin: 0; font-size: clamp(30px, 3vw, 40px); font-weight: 800; line-height: 1.1; letter-spacing: -.02em; }
.doctor-spec { margin: 6px 0 22px !important; color: var(--muted); font-size: 18px; font-weight: 500; }
.doctor-join {
  display: inline-flex; align-items: center; justify-content: center; min-height: 52px; margin-top: 8px; padding: 12px 26px;
  border-radius: 8px; background: var(--red); color: #fff; font-size: 17px; font-weight: 700; text-decoration: none;
}
.doctor-join:hover { filter: brightness(.9); }
.doctor-join:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; }
@media (min-width: 820px) {
  .doctor-in { grid-template-columns: 320px minmax(0, 1fr); gap: 56px; }
  .doctor-photo { width: 320px; }
}

/* ---- below: area and footer ---- */
.area { background: var(--teal); color: #fff; }
.area-in { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 22px; padding-block: clamp(40px, 5vw, 60px); }
.area-mark { width: 58px; height: auto; flex: none; }
.area-h { flex: 1 1 420px; margin: 0; font-size: clamp(26px, 2.8vw, 36px); font-weight: 800; line-height: 1.15; letter-spacing: -.02em; text-wrap: balance; }
.area-call { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 12px; margin: 0; font-size: 17px; font-weight: 600; }
.area-call a {
  display: inline-block; padding: 4px 0; color: #fff; font-size: clamp(26px, 2.4vw, 32px); font-weight: 800;
  letter-spacing: -.01em; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 6px; white-space: nowrap;
}
.area-call a:focus-visible { outline-color: #fff; }
.base { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 40px; padding-block: 34px 40px; color: var(--muted); font-size: 15px; }
.base p { margin: 0; }
.base-logo { width: 170px; }
.base-copy { margin-left: auto !important; }
.powered { display: inline-flex; align-items: center; gap: 7px; min-height: 44px; color: var(--muted); font-size: 14px; text-decoration: none; }
.powered img { width: 18px; height: 18px; }
.powered:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }

/* the phone bar */
.dock { display: none; }
@media (max-width: 1059px) {
  body { padding-bottom: calc(78px + env(safe-area-inset-bottom)); }
  .dock {
    position: fixed; z-index: 50; left: 0; right: 0; bottom: 0;
    display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.7fr); gap: 10px;
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
    background: rgba(255, 255, 255, .97); border-top: 1px solid #dfe6ea; box-shadow: 0 -10px 30px -18px rgba(13, 88, 115, .45);
    transition: transform .22s ease, visibility 0s linear 0s;
  }
  .dock a {
    display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; border-radius: 8px;
    font-size: 17px; font-weight: 700; text-decoration: none;
  }
  .dock-call { color: var(--teal-deep); border: 2px solid var(--teal); background: #fff; }
  .dock-join { color: #fff; background: var(--red); }
  .dock a:focus-visible { outline-offset: 2px; }
  html.form-in-view .dock { transform: translateY(calc(100% + 12px)); visibility: hidden; transition: transform .22s ease, visibility 0s linear .22s; }
  .intro { max-width: 640px; margin-inline: auto; }
  .base { padding-block: 28px 32px; }
  .base-copy { margin-left: 0 !important; }
}
@media (max-width: 600px) {
  .area-in { flex-direction: column; align-items: flex-start; }
  .area-h { flex-basis: auto; }
  .base { flex-direction: column; align-items: flex-start; gap: 10px; }
}
@media (prefers-reduced-motion: reduce) { .dock, html.form-in-view .dock { transition: none; } }
@media print { .dock { display: none !important; } body { padding-bottom: 0; } }

/* ---- 404 ---- */
.nf .nf-in { padding-block: clamp(40px, 8vw, 96px) 40px; }
.nf .logo { width: 212px; }
.nf-h { margin: 36px 0 0; font-size: clamp(32px, 4vw, 48px); font-weight: 800; line-height: 1.1; letter-spacing: -.02em; }
.nf-p { margin: 14px 0 0; font-size: 19px; color: var(--muted); }
.nf-links { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; margin: 28px 0 0; }
.nf-call { display: inline-flex; align-items: center; min-height: 48px; color: var(--red); font-size: 20px; font-weight: 800; text-decoration: none; }
.nf-call:hover { text-decoration: underline; text-underline-offset: 4px; }
.nf .base { border-top: 1px solid #e4e9ec; }
