/* Mobile Therapeutics LLC — design system
   Type: Gambetta (serif headings, Fontshare) + Switzer (sans body, Fontshare)
   Built for a 60+ primary audience: 19px body floor, AA/AAA contrast, 48px targets. */

:root {
  --ground: #F7F4EE;
  --surface: #FFFDF8;
  --ink: #14211F;
  --body: #2E3A38;
  --muted: #54605E;
  --teal: #0A5C61;
  --teal-deep: #06424A;
  --teal-tint: #E6EFEE;
  --teal-glow: #8ECDD0;
  --border: #DCD5C9;
  --border-strong: #BFB6A6;
  --amber: #8A5A16;

  --serif: 'Gambetta', 'Iowan Old Style', Georgia, serif;
  --sans: 'Switzer', 'Segoe UI', system-ui, -apple-system, sans-serif;

  --measure: 66ch;
  --wrap: 1180px;
  --radius: 6px;
  --shadow: 0 1px 2px rgba(20, 33, 31, .06), 0 8px 24px rgba(20, 33, 31, .06);

  --step: clamp(2.4rem, 5vw, 4.5rem);
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

body {
  margin: 0;
  background: var(--ground);
  color: var(--body);
  font-family: var(--sans);
  font-size: 1.1875rem;      /* 19px */
  line-height: 1.65;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  padding-bottom: 0;
}

/* ---------- Typography ---------- */
h1, h2, h3, h4 {
  font-family: var(--serif);
  color: var(--ink);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -.005em;
  margin: 0 0 .6em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.15rem, 4.6vw, 3.4rem); }
h2 { font-size: clamp(1.7rem, 3vw, 2.35rem); }
h3 { font-size: clamp(1.3rem, 2vw, 1.55rem); line-height: 1.25; }
h4 { font-size: 1.15rem; font-family: var(--sans); font-weight: 600; letter-spacing: 0; }

p, li { max-width: var(--measure); }
p { margin: 0 0 1.15em; }
.lead { font-size: clamp(1.25rem, 2.1vw, 1.4rem); line-height: 1.55; color: var(--body); }
.eyebrow {
  font-family: var(--sans);
  font-size: 1rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  color: var(--teal); margin: 0 0 1rem; max-width: none;
}
.eyebrow--onDark { color: var(--teal-glow); }
strong { font-weight: 600; color: var(--ink); }
small, .fine { font-size: 1rem; line-height: 1.55; color: var(--muted); }
.fine a { color: var(--teal); }

a { color: var(--teal); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--teal-deep); }

:focus-visible {
  outline: 3px solid var(--teal);
  outline-offset: 3px;
  border-radius: 3px;
}
.onDark :focus-visible, .site-footer :focus-visible { outline-color: var(--teal-glow); }

ul, ol { padding-left: 1.25em; }
li { margin-bottom: .5em; }
ul.ticks { list-style: none; padding-left: 0; }
ul.ticks li {
  position: relative; padding-left: 2rem; margin-bottom: .75em;
}
ul.ticks li::before {
  content: ""; position: absolute; left: 0; top: .55em;
  width: 1.05rem; height: .55rem;
  border-left: 3px solid var(--teal); border-bottom: 3px solid var(--teal);
  transform: rotate(-45deg);
}

/* ---------- Layout ---------- */
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 1.35rem; }
.section { padding: var(--step) 0; }
.section--tint { background: var(--teal-tint); }
.section--surface { background: var(--surface); border-block: 1px solid var(--border); }
.section--ink { background: var(--ink); color: #EFEDE7; }
.section--ink h2, .section--ink h3 { color: #FFFDF8; }
.section--ink a:not(.btn) { color: var(--teal-glow); }
.section--ink .btn--onInk { color: #0A2321; }
.section--ink .btn--onInkGhost { color: #FFFDF8; }
.section-head { max-width: 46rem; margin-bottom: 2.25rem; }
.grid { display: grid; gap: 1.5rem; }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.split { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(1.75rem, 4vw, 3.5rem); align-items: center; }
.prose > *:first-child { margin-top: 0; }
.prose h2 { margin-top: 2.25em; }
.prose h3 { margin-top: 1.8em; }
.prose > h2:first-of-type { margin-top: 0; }

@media (max-width: 860px) {
  .grid--2, .grid--3, .split { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- Skip link ---------- */
.skip {
  position: absolute; left: 1rem; top: -100px; z-index: 200;
  background: var(--ink); color: #fff; padding: .85rem 1.25rem; border-radius: var(--radius);
  font-weight: 600; text-decoration: none;
}
.skip:focus { top: 1rem; color: #fff; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(247, 244, 238, .97);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.header-bar { display: flex; align-items: center; gap: 1rem; min-height: 84px; }
.brand { display: inline-flex; align-items: center; gap: .7rem; text-decoration: none; color: var(--ink); flex: 0 0 auto; padding: .35rem 0; }
.brand svg, .brand-mark { width: 40px; height: auto; flex: 0 0 auto; }
.brand-mark { display: block; }
.brand-name { font-family: var(--serif); font-size: 1.3rem; font-weight: 600; line-height: 1.1; letter-spacing: -.01em; }
.brand-tag { display: block; font-family: var(--sans); font-size: .8125rem; letter-spacing: .04em; text-transform: none; color: var(--teal); font-weight: 600; margin-top: .15rem; }
.header-actions { margin-left: auto; display: flex; align-items: center; gap: .6rem; }

.tel-btn {
  display: inline-flex; align-items: center; gap: .55rem;
  min-height: 52px; padding: .6rem 1.15rem;
  background: var(--teal); color: #fff; border-radius: var(--radius);
  font-weight: 600; font-size: 1.0625rem; text-decoration: none; white-space: nowrap;
}
.tel-btn:hover { background: var(--teal-deep); color: #fff; }
.tel-btn svg { width: 20px; height: 20px; flex: 0 0 auto; }
.tel-btn .tel-label { display: none; }
@media (min-width: 1200px) { .tel-btn .tel-label { display: inline; font-weight: 500; } }
@media (min-width: 1150px) and (max-width: 1199px) { .brand-tag { display: none; } .brand svg, .brand-mark { width: 40px; height: auto; } }

.nav-toggle {
  display: none; align-items: center; gap: .5rem;
  min-height: 52px; min-width: 52px; padding: .5rem .9rem;
  background: var(--surface); color: var(--ink);
  border: 1px solid var(--border-strong); border-radius: var(--radius);
  font: inherit; font-size: 1rem; font-weight: 600; cursor: pointer;
}
.nav-toggle svg { width: 22px; height: 22px; }

.site-nav { margin-left: auto; }
.site-nav ul { display: flex; flex-wrap: nowrap; gap: .05rem; list-style: none; margin: 0; padding: 0; }
.site-nav li { margin: 0; max-width: none; }
.site-nav a {
  display: flex; align-items: center; min-height: 48px; padding: .35rem .55rem;
  color: var(--body); text-decoration: none; font-size: 1rem; font-weight: 500; border-radius: var(--radius);
  white-space: nowrap;
}
.site-nav a:hover { background: var(--teal-tint); color: var(--teal-deep); }
.site-nav a[aria-current="page"] { color: var(--teal-deep); box-shadow: inset 0 -3px 0 var(--teal); border-radius: 0; }

@media (max-width: 1149px) {
  .nav-toggle { display: inline-flex; }
  .site-nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    background: var(--surface); border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow); max-height: 72vh; overflow-y: auto;
  }
  .site-nav.is-open { display: block; }
  .site-nav ul { display: block; padding: .6rem 1.35rem 1.25rem; }
  .site-nav a { min-height: 52px; padding: .6rem .5rem; font-size: 1.125rem; border-bottom: 1px solid var(--border); border-radius: 0; }
  .site-nav a[aria-current="page"] { box-shadow: none; font-weight: 700; }
  .header-bar { min-height: 76px; }
}

/* Narrow phones: stack the header so the full phone number always fits. */
@media (max-width: 700px) {
  .header-bar { flex-wrap: wrap; row-gap: .5rem; padding-top: .6rem; padding-bottom: .6rem; min-height: 0; }
  .brand svg { width: 40px; height: 40px; }
  .brand-name { font-size: 1.15rem; }
  .brand-tag { font-size: .75rem; }
  .header-actions { order: 3; flex: 1 0 100%; margin-left: 0; }
  .header-actions .tel-btn { width: 100%; justify-content: center; }
  .header-actions .tel-btn .tel-label { display: inline; }
  .site-nav { top: 100%; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 52px; padding: .8rem 1.5rem;
  border-radius: var(--radius); font-weight: 600; font-size: 1.0625rem;
  text-decoration: none; border: 2px solid transparent; cursor: pointer;
  transition: background-color .18s ease, color .18s ease;
}
.btn svg { width: 20px; height: 20px; flex: 0 0 auto; }
.btn--primary { background: var(--teal); color: #fff; }
.btn--primary:hover { background: var(--teal-deep); color: #fff; }
.btn--ghost { background: transparent; color: var(--teal-deep); border-color: var(--teal); }
.btn--ghost:hover { background: var(--teal-tint); color: var(--teal-deep); }
.btn--onInk { background: var(--teal-glow); color: #0A2321; }
.btn--onInk:hover { background: #B4E1E3; color: #0A2321; }
.btn--onInkGhost { background: transparent; color: #FFFDF8; border-color: rgba(255, 253, 248, .5); }
.btn--onInkGhost:hover { background: rgba(255, 253, 248, .12); color: #fff; }
.btn-row { display: flex; flex-wrap: wrap; gap: .85rem; margin: 1.75rem 0 0; }

/* ---------- Hero ---------- */
.hero { background: var(--ink); color: #EFEDE7; overflow: hidden; }
.hero .wrap { padding-block: clamp(2.5rem, 5vw, 4rem); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.02fr) minmax(0, .98fr); gap: clamp(1.75rem, 4vw, 3.25rem); align-items: center; }
.hero h1 { color: #FFFDF8; }
.hero .lead { color: #DDE3E1; }
.hero-figure { margin: 0; }
.hero-figure img { width: 100%; height: auto; display: block; border-radius: var(--radius); }
.hero-figure figcaption { font-size: .9375rem; color: #A9B3B1; margin-top: .6rem; }
.hero-tagline {
  font-family: var(--serif); font-size: clamp(1.3rem, 2.4vw, 1.65rem); letter-spacing: .01em;
  font-style: italic; text-transform: none; color: var(--teal-glow); margin: 0 0 1.1rem; max-width: none;
}
@media (max-width: 900px) { .hero-grid { grid-template-columns: minmax(0, 1fr); } }

.pagehead { background: var(--ink); color: #EFEDE7; }
.pagehead .wrap { padding-block: clamp(2rem, 4vw, 3.25rem); }
.pagehead h1 { color: #FFFDF8; margin-bottom: .35rem; }
.pagehead .lead { color: #DDE3E1; margin-bottom: 0; max-width: 52ch; }

/* ---------- Breadcrumbs ---------- */
.crumbs { background: var(--surface); border-bottom: 1px solid var(--border); font-size: 1rem; }
.crumbs ol { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; list-style: none; margin: 0; padding: .35rem 0; }
.crumbs li { margin: 0; color: var(--muted); max-width: none; }
.crumbs li + li::before { content: "›"; margin-right: .4rem; color: var(--border-strong); }
.crumbs a { color: var(--teal); display: inline-flex; align-items: center; min-height: 44px; }

/* ---------- Cards ---------- */
.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1.6rem 1.5rem; box-shadow: 0 1px 2px rgba(20, 33, 31, .04);
}
.card h3 { margin-bottom: .5rem; }
.card p:last-child, .card ul:last-child { margin-bottom: 0; }
.card--link { display: block; text-decoration: none; color: var(--body); transition: border-color .18s ease, transform .18s ease; }
.card--link:hover { border-color: var(--teal); color: var(--body); }
.card--link .card-more { display: inline-block; margin-top: .9rem; color: var(--teal-deep); font-weight: 600; }
.card--link:hover .card-more { text-decoration: underline; }
.card-img { width: 100%; height: 190px; object-fit: cover; border-radius: var(--radius) var(--radius) 0 0; display: block; }
.card--photo { padding: 0; overflow: hidden; }
.card--photo .card-body { padding: 1.4rem 1.5rem 1.6rem; }

.steps { list-style: none; padding: 0; counter-reset: step; display: grid; gap: 1.25rem; }
.steps li { counter-increment: step; position: relative; padding-left: 4rem; max-width: 40rem; margin: 0; }
.steps li::before {
  content: counter(step); position: absolute; left: 0; top: 0;
  width: 3rem; height: 3rem; border-radius: 50%;
  background: var(--teal-tint); color: var(--teal-deep);
  border: 2px solid var(--teal);
  display: grid; place-items: center; font-family: var(--serif); font-size: 1.35rem; font-weight: 600;
}
.steps h3 { margin-bottom: .3rem; font-size: 1.35rem; }
.steps p:last-child { margin-bottom: 0; }

figure.photo { margin: 2rem 0; }
figure.photo img { width: 100%; height: auto; display: block; border-radius: var(--radius); border: 1px solid var(--border); }
figure.photo figcaption { font-size: .9375rem; color: var(--muted); margin-top: .55rem; max-width: var(--measure); }

.callout {
  border-left: 5px solid var(--teal); background: var(--teal-tint);
  padding: 1.35rem 1.5rem; border-radius: 0 var(--radius) var(--radius) 0; margin: 2rem 0;
}
.callout h3 { font-size: 1.25rem; margin-bottom: .4rem; }
.callout p:last-child { margin-bottom: 0; }
.callout--warm { border-left-color: var(--amber); background: #FAF3E6; }

/* ---------- Rating ---------- */
.rating { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; }
.rating-score { font-family: var(--serif); font-size: 3rem; line-height: 1; color: var(--ink); }
.section--ink .rating-score { color: #FFFDF8; }
.stars { display: inline-flex; gap: .2rem; }
.stars svg { width: 24px; height: 24px; color: var(--amber); }
.section--ink .stars svg { color: #F0C46A; }

/* ---------- FAQ ---------- */
.faq { border-top: 1px solid var(--border); max-width: 52rem; }
.faq details { border-bottom: 1px solid var(--border); }
.faq summary {
  cursor: pointer; padding: 1.15rem 2.5rem 1.15rem 0; position: relative;
  font-family: var(--serif); font-size: 1.3rem; font-weight: 500; color: var(--ink);
  min-height: 48px; list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: .35rem; top: 50%; transform: translateY(-50%);
  font-family: var(--sans); font-size: 1.75rem; font-weight: 400; color: var(--teal); line-height: 1;
}
.faq details[open] summary::after { content: "–"; }
.faq .faq-body { padding: 0 0 1.35rem; }
.faq .faq-body > *:last-child { margin-bottom: 0; }

/* ---------- Tables / definition rows ---------- */
.deflist { display: grid; gap: 0; margin: 1.75rem 0; border-top: 1px solid var(--border); max-width: 46rem; }
.deflist > div { display: grid; grid-template-columns: 15rem minmax(0, 1fr); gap: 1rem; padding: 1.05rem 0; border-bottom: 1px solid var(--border); }
.deflist dt { font-weight: 600; color: var(--ink); margin: 0; }
.deflist dd { margin: 0; }
@media (max-width: 700px) { .deflist > div { grid-template-columns: minmax(0, 1fr); gap: .25rem; } }

.chiplist { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: .55rem; }
.chiplist li {
  margin: 0; max-width: none; background: var(--surface); border: 1px solid var(--border);
  border-radius: 100px; padding: .45rem 1rem; font-size: 1.0625rem; color: var(--body);
}

/* ---------- CTA band ---------- */
.cta-band { background: var(--teal-deep); color: #fff; }
.cta-band .wrap { padding-block: clamp(2.25rem, 4vw, 3.25rem); }
.cta-band h2 { color: #fff; }
.cta-band p { color: #DCE9E9; }
.cta-band .cta-inner { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 2rem; align-items: center; }
.cta-band .btn-row { margin-top: 0; }
@media (max-width: 860px) { .cta-band .cta-inner { grid-template-columns: minmax(0, 1fr); } }
.cta-phone { font-family: var(--serif); font-size: clamp(1.75rem, 3.4vw, 2.35rem); color: #fff; text-decoration: none; display: inline-block; }
.cta-phone:hover { color: var(--teal-glow); text-decoration: underline; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #C8CFCD; padding: clamp(2.5rem, 4vw, 3.5rem) 0 2rem; }
.site-footer a { color: #DCE9E9; }
.site-footer a:hover { color: var(--teal-glow); }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) repeat(3, minmax(0, 1fr)); gap: 2rem; }
.site-footer h2 { font-size: 1.05rem; font-family: var(--sans); font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: #FFFDF8; margin-bottom: .9rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: .15rem; font-size: 1.0625rem; }
.site-footer li a, .footer-legal a { display: inline-block; padding: .55rem 0; min-height: 44px; }
.footer-brand svg { width: 44px; height: 44px; color: var(--teal-glow); }
.footer-brand img { width: 168px; height: auto; display: block; }
@media (max-width: 640px) { .footer-brand img { width: 140px; } }
.footer-phone { font-family: var(--serif); font-size: 1.6rem; color: #FFFDF8 !important; text-decoration: none; display: inline-block; min-height: 48px; }
.footer-phone:hover { color: var(--teal-glow) !important; }
.footer-legal { border-top: 1px solid #2C3A38; margin-top: 2.5rem; padding-top: 1.5rem; font-size: 1rem; color: #AEB7B5; }
.footer-legal p { max-width: 80ch; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Mobile persistent call bar ---------- */
.callbar { display: none; }
@media (max-width: 767px) {
  body { padding-bottom: 78px; }
  .callbar {
    display: flex; gap: .6rem; position: fixed; bottom: 0; left: 0; right: 0; z-index: 110;
    background: rgba(247, 244, 238, .98); border-top: 1px solid var(--border-strong);
    padding: .65rem .8rem; box-shadow: 0 -4px 16px rgba(20, 33, 31, .1);
  }
  .callbar a { flex: 1 1 0; min-height: 56px; font-size: 1.0625rem; padding-inline: .5rem; }
  .callbar .tel-label { display: inline; }
}

/* ---------- Reveal (restrained) ---------- */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } }

/* ---------- Utilities ---------- */
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.narrow { max-width: 46rem; }
.center { text-align: center; margin-inline: auto; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* Trademark symbol — small, raised, never scaled to full glyph size */
.tm { font-size: .55em; line-height: 1; vertical-align: super; letter-spacing: 0; margin-left: .12em; font-weight: 500; }
.hero-tagline .tm { font-size: .42em; font-style: normal; }

/* ---------- Single-column reading measure ---------- */
.measure { max-width: 68ch; }

/* ---------- Product photography on white (manufacturer device shots) ---------- */
.photo--product img {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  max-height: 26rem;
  width: 100%;
  object-fit: contain;
  padding: 1.25rem;
  box-sizing: border-box;
}

/* ---------- Clinician portrait ---------- */
.split--portrait { grid-template-columns: minmax(0, .68fr) minmax(0, 1fr); align-items: start; }
.photo--portrait { margin: 0; }
.photo--portrait img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: 50% 12%;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  display: block;
}
@media (max-width: 860px) {
  .split--portrait { grid-template-columns: minmax(0, 1fr); }
  .photo--portrait img { max-width: 22rem; }
}

/* ---- Self-pay price display ---- */
.price { display:flex; align-items:baseline; gap:.55rem; flex-wrap:wrap; margin:0 0 .7rem; }
.price__amount {
  font-family: var(--serif);
  font-size: clamp(2.5rem, 5.2vw, 3.5rem);
  line-height: 1;
  font-weight: 500;
  color: var(--teal);
  letter-spacing: -.015em;
  font-variant-numeric: tabular-nums lining-nums;
}
.price__unit { font-size: 1.05rem; color: var(--muted); font-weight: 500; line-height:1.3; }
