/* =========================================================
   AROGYA — a dental site that behaves like an app on a phone
   ---------------------------------------------------------
   Written mobile-first. Everything above the 860px breakpoint
   is the phone layout; the desktop rules come last and only
   widen what is already there.

   Rows of cards never become tall stacks on a phone. They
   become horizontal snap rails, so a four-card row stays one
   screen tall instead of four.
   ========================================================= */

/* ---------- 1. Tokens ---------- */
:root {
  --brand:  #0E7C66;
  --ink:    #0A1310;

  --paper:  #FFFFFF;
  --wash:   #F4F7F5;
  --sink:   #071310;

  --muted:  #5C6B66;
  --line:   rgba(10, 19, 16, .10);
  --line-2: rgba(10, 19, 16, .06);

  --gut:    20px;
  --max:    1180px;
  --r:      20px;
  --r-sm:   12px;

  --shadow:    0 1px 2px rgba(10,19,16,.05), 0 8px 24px -12px rgba(10,19,16,.16);
  --shadow-up: 0 2px 6px rgba(10,19,16,.06), 0 20px 44px -20px rgba(10,19,16,.28);

  --ease: cubic-bezier(.22, 1, .36, 1);
  --dock-h: 68px;

  --sans: 'Instrument Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --serif: 'Fraunces', Georgia, 'Times New Roman', serif;
}

/* ---------- 2. Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }

/* Several things here are laid out with flex or grid, and any
   `display` value beats the browser's default rule for [hidden].
   Without this the lightbox and the thank-you panel sit on top of
   the page from the moment it loads, swallowing every click. */
[hidden] { display: none !important; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}
/* Lenis drives the scroll itself; native smooth fights it. */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  overflow-x: hidden;
}

h1, h2, h3 { margin: 0; line-height: 1.1; font-weight: 600; }
p  { margin: 0; }
ul, ol, dl, dd { margin: 0; padding: 0; }
li { list-style: none; }
img { max-width: 100%; display: block; }

a {
  color: inherit;
  text-decoration: none;
  touch-action: manipulation;
}

button, input, select, textarea {
  font: inherit;
  color: inherit;
  touch-action: manipulation;
}

svg { width: 1em; height: 1em; fill: currentColor; flex: none; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---------- 3. Layout ---------- */
.wrap {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--gut);
}
.wrap--narrow { max-width: 760px; }

.sec { padding-block: clamp(52px, 11vw, 96px); }
.sec--tight { padding-block: clamp(26px, 6vw, 40px); }
.sec--alt { background: var(--wash); }

/* clears the sticky app bar when jumping to an anchor */
.sec[id], main[id] { scroll-margin-top: 78px; }

.head { max-width: 620px; margin-bottom: clamp(24px, 5vw, 40px); }

.kicker {
  display: inline-block;
  margin-bottom: 14px;
  padding: 5px 11px;
  border-radius: 100px;
  background: color-mix(in srgb, var(--brand) 10%, transparent);
  color: var(--brand);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.head h2 {
  font-family: var(--serif);
  font-size: clamp(28px, 7.4vw, 44px);
  letter-spacing: -.022em;
  font-weight: 600;
}
.head p {
  margin-top: 14px;
  color: var(--muted);
  font-size: clamp(15px, 3.9vw, 17px);
}

.foot {
  margin-top: 22px;
  padding: 14px 16px;
  border: 1px dashed var(--line);
  border-radius: var(--r-sm);
  color: var(--muted);
  font-size: 14px;
}

/* ---------- 4. Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 50px;
  padding: 0 22px;
  border: 0;
  border-radius: 100px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -.01em;
  cursor: pointer;
  transition: transform .18s var(--ease), background .18s, box-shadow .18s;
}
.btn svg { font-size: 17px; }
.btn:active { transform: scale(.97); }

.btn--go {
  background: var(--brand);
  color: #fff;
  box-shadow: 0 8px 20px -8px color-mix(in srgb, var(--brand) 70%, transparent);
}
.btn--go:hover { background: color-mix(in srgb, var(--brand) 88%, #000); }

.btn--ghost {
  background: transparent;
  color: var(--ink);
  box-shadow: inset 0 0 0 1.5px var(--line);
}
.btn--ghost:hover { background: rgba(10,19,16,.04); }

.btn--wide { width: 100%; }
.btn--sm { min-height: 40px; padding: 0 15px; font-size: 14px; }

/* ---------- 5. App bar ---------- */
.bar {
  position: sticky;
  top: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px var(--gut);
  background: color-mix(in srgb, var(--paper) 86%, transparent);
  backdrop-filter: saturate(1.6) blur(14px);
  -webkit-backdrop-filter: saturate(1.6) blur(14px);
  border-bottom: 1px solid transparent;
  transition: padding .3s var(--ease), border-color .3s, background .3s;
}
.bar.is-stuck {
  padding-block: 8px;
  border-bottom-color: var(--line);
}

.bar__mark { display: flex; align-items: center; gap: 10px; margin-right: auto; min-width: 0; }
.bar__dot {
  width: 30px; height: 30px;
  border-radius: 9px;
  background: var(--brand);
  box-shadow: inset 0 0 0 3.5px color-mix(in srgb, #fff 82%, transparent);
  flex: none;
}
.bar__mark span { display: block; min-width: 0; }
.bar__mark b {
  display: block;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -.02em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.bar__mark i {
  display: block;
  font-style: normal;
  font-size: 11px;
  color: var(--muted);
  letter-spacing: .04em;
  text-transform: uppercase;
}

.bar__nav { display: none; }

.bar__call {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 42px; height: 42px;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  font-size: 17px;
  flex: none;
  transition: transform .18s var(--ease);
}
.bar__call:active { transform: scale(.94); }
.bar__call span { display: none; }

/* ---------- 6. Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(34px, 9vw, 70px) clamp(40px, 10vw, 78px);
  background:
    radial-gradient(120% 90% at 100% 0%, color-mix(in srgb, var(--brand) 12%, transparent) 0%, transparent 58%),
    linear-gradient(180deg, var(--wash) 0%, var(--paper) 100%);
}
.hero__glow {
  position: absolute;
  top: -32%; right: -22%;
  width: 78vw; height: 78vw;
  max-width: 620px; max-height: 620px;
  border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--brand) 24%, transparent) 0%, transparent 68%);
  filter: blur(22px);
  animation: float 15s ease-in-out infinite;
  pointer-events: none;
}
@keyframes float {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  50%      { transform: translate3d(-4%, 5%, 0) scale(1.08); }
}
.hero__in { position: relative; }

/* The hero photograph earns its space on a wide screen and gets in
   the way on a narrow one, so the phone never loads a layout for it. */
.hero__art { display: none; }

.hero__chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 13px;
  border-radius: 100px;
  background: var(--paper);
  box-shadow: inset 0 0 0 1px var(--line), var(--shadow);
  font-size: 12.5px;
  color: var(--muted);
}
.chip b { color: var(--ink); font-weight: 600; }
.chip svg { color: #F5A524; font-size: 14px; }

.chip--live i {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #16A34A;
  box-shadow: 0 0 0 3px rgba(22,163,74,.18);
  animation: pulse 2.4s ease-in-out infinite;
}
.chip--live.is-shut i { background: #B4262A; box-shadow: 0 0 0 3px rgba(180,38,42,.16); animation: none; }
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50%      { opacity: .35; }
}

.hero__h {
  font-family: var(--serif);
  font-size: clamp(36px, 10.6vw, 68px);
  line-height: 1.02;
  letter-spacing: -.032em;
  font-weight: 600;
}
.hero__h em {
  font-style: normal;
  color: var(--brand);
  position: relative;
  white-space: nowrap;
}

.hero__p {
  margin-top: 18px;
  max-width: 30em;
  color: var(--muted);
  font-size: clamp(15.5px, 4.2vw, 18px);
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}
.hero__cta .btn { flex: 1 1 auto; }

/* app-style action tiles */
.tiles {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-top: 26px;
}
.tiles a {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 78px;
  padding: 10px 4px;
  border-radius: 16px;
  background: var(--paper);
  box-shadow: inset 0 0 0 1px var(--line), var(--shadow);
  font-size: 11.5px;
  font-weight: 500;
  color: var(--muted);
  text-align: center;
  transition: transform .18s var(--ease), box-shadow .18s;
}
.tiles a:active { transform: scale(.95); }
.tiles svg {
  font-size: 21px;
  color: var(--brand);
}

/* ---------- 7. Numbers ---------- */
.nums {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--line-2);
  border: 1px solid var(--line-2);
  border-radius: var(--r);
  overflow: hidden;
}
.num {
  padding: 20px 16px;
  background: var(--paper);
  text-align: center;
}
.num dd {
  font-family: var(--serif);
  font-size: clamp(26px, 8vw, 38px);
  font-weight: 600;
  letter-spacing: -.03em;
  font-variant-numeric: tabular-nums;
  color: var(--brand);
}
.num dt {
  margin-top: 4px;
  font-size: 12.5px;
  color: var(--muted);
}

/* ---------- 8. Filter chips ---------- */
.filter {
  display: flex;
  gap: 8px;
  margin-bottom: 18px;
  overflow-x: auto;
  scrollbar-width: none;
  margin-inline: calc(var(--gut) * -1);
  padding-inline: var(--gut);
}
.filter::-webkit-scrollbar { display: none; }
.filter button {
  flex: none;
  min-height: 38px;
  padding: 0 15px;
  border: 0;
  border-radius: 100px;
  background: var(--paper);
  box-shadow: inset 0 0 0 1px var(--line);
  font-size: 13.5px;
  font-weight: 500;
  color: var(--muted);
  cursor: pointer;
  transition: background .18s, color .18s, box-shadow .18s, transform .18s var(--ease);
}
.filter button:active { transform: scale(.95); }
.filter button.is-on {
  background: var(--ink);
  color: #fff;
  box-shadow: none;
}

/* ---------- 9. Rails ---------- */
/* The core mobile idea: a desktop row becomes a swipeable rail
   rather than a tall column. */
.rail {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  margin-inline: calc(var(--gut) * -1);
  padding: 4px var(--gut) 14px;
  scroll-padding-inline: var(--gut);
}
.rail::-webkit-scrollbar { display: none; }
.rail > :not(template) {
  flex: 0 0 var(--card, 78%);
  scroll-snap-align: center;
  min-width: 0;
}
.rail--svc { --card: 74%; }
.rail--doc { --card: 72%; }
.rail--say { --card: 80%; }

/* position dots under a rail */
.pips {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: 2px;
}
.pips i {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--line);
  transition: width .25s var(--ease), background .25s;
}
.pips i.is-on { width: 20px; border-radius: 100px; background: var(--brand); }

/* ---------- 10. Treatment card ---------- */
.svc {
  display: flex;
  flex-direction: column;
  padding: 18px;
  border-radius: var(--r);
  background: var(--paper);
  box-shadow: inset 0 0 0 1px var(--line), var(--shadow);
  transition: transform .25s var(--ease), box-shadow .25s, opacity .25s;
}
.svc.is-hid { display: none; }
.svc__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}
.svc__top h3 {
  font-size: 17px;
  letter-spacing: -.015em;
  font-weight: 600;
}
.svc__price {
  flex: none;
  font-family: var(--serif);
  font-size: 19px;
  font-weight: 600;
  color: var(--brand);
  font-variant-numeric: tabular-nums;
}
.svc__note {
  margin-top: 8px;
  color: var(--muted);
  font-size: 14px;
  flex: 1;
}
.svc__meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  font-size: 12px;
  color: var(--muted);
}
.tag {
  padding: 3px 9px;
  border-radius: 100px;
  background: color-mix(in srgb, var(--brand) 9%, transparent);
  color: var(--brand);
  font-weight: 600;
}
.svc__go {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--line-2);
  font-size: 14px;
  font-weight: 600;
  color: var(--brand);
}
.svc__go svg { transition: transform .25s var(--ease); }
.svc__go:hover svg { transform: translateX(3px); }

/* ---------- 11. Why cards ---------- */
.why { display: grid; gap: 10px; }
.why__card {
  padding: 20px;
  border-radius: var(--r);
  background: var(--paper);
  box-shadow: inset 0 0 0 1px var(--line);
}
.why__ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px; height: 42px;
  margin-bottom: 14px;
  border-radius: 12px;
  background: color-mix(in srgb, var(--brand) 10%, transparent);
  color: var(--brand);
  font-size: 21px;
}
.why__card h3 { font-size: 16.5px; letter-spacing: -.015em; }
.why__card p { margin-top: 7px; color: var(--muted); font-size: 14.5px; }

/* ---------- 12. Doctors ---------- */
.doc {
  overflow: hidden;
  border-radius: var(--r);
  background: var(--paper);
  box-shadow: inset 0 0 0 1px var(--line), var(--shadow);
}
.doc__pic {
  aspect-ratio: 4 / 3.4;
  background: var(--wash);
  overflow: hidden;
}
.doc__pic img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .6s var(--ease);
}
.doc:hover .doc__pic img { transform: scale(1.04); }
.doc__txt { padding: 16px 18px 20px; }
.doc__txt h3 { font-size: 17px; letter-spacing: -.018em; }
.doc__role {
  margin-top: 3px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--brand);
}
.doc__bio { margin-top: 9px; color: var(--muted); font-size: 14px; }

/* ---------- 13. Photos ---------- */
.shots {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}
.shot {
  margin: 0;
  overflow: hidden;
  border-radius: 14px;
  background: var(--wash);
  aspect-ratio: 1 / 1;
  cursor: zoom-in;
}
/* the first real figure, not the <template> that seeds them */
.shots > figure:first-of-type { grid-column: span 2; aspect-ratio: 16 / 10; }
.shot img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .6s var(--ease);
}
.shot:hover img { transform: scale(1.05); }

/* ---------- 14. Reviews ---------- */
.score {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 20px;
  padding: 16px 18px;
  border-radius: var(--r);
  background: var(--paper);
  box-shadow: inset 0 0 0 1px var(--line);
  font-size: 13.5px;
  color: var(--muted);
}
.score b {
  font-family: var(--serif);
  font-size: 30px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -.03em;
}
.score__stars { display: inline-flex; gap: 2px; color: #F5A524; font-size: 15px; }

.say {
  display: flex;
  flex-direction: column;
  margin: 0;
  padding: 20px;
  border-radius: var(--r);
  background: var(--paper);
  box-shadow: inset 0 0 0 1px var(--line), var(--shadow);
}
.say__stars { display: inline-flex; gap: 2px; color: #F5A524; font-size: 14px; }
.say blockquote {
  margin: 12px 0 0;
  flex: 1;
  font-size: 15.5px;
  line-height: 1.55;
  letter-spacing: -.005em;
}
.say figcaption { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line-2); }
.say figcaption b { display: block; font-size: 14.5px; font-weight: 600; }
.say figcaption span { font-size: 12.5px; color: var(--muted); }

/* ---------- 15. Booking ---------- */
.assure {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 20px;
}
.assure li {
  padding: 14px 12px;
  border-radius: var(--r-sm);
  background: var(--paper);
  box-shadow: inset 0 0 0 1px var(--line);
  text-align: center;
}
.assure b {
  display: block;
  font-family: var(--serif);
  font-size: 19px;
  font-weight: 600;
  color: var(--brand);
  letter-spacing: -.02em;
}
.assure span {
  display: block;
  margin-top: 4px;
  font-size: 11.5px;
  line-height: 1.35;
  color: var(--muted);
}

.book { display: grid; gap: 14px; }

.book__form, .mapbox, .vcard {
  border-radius: var(--r);
  background: var(--paper);
  box-shadow: inset 0 0 0 1px var(--line), var(--shadow);
}
.book__form { padding: 20px; }

.form { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; position: relative; }
.f { grid-column: 1 / -1; display: flex; flex-direction: column; gap: 6px; }
.f--half { grid-column: span 1; }

.f label { font-size: 13px; font-weight: 600; }
.f input, .f select {
  width: 100%;
  min-height: 50px;
  padding: 0 14px;
  border: 0;
  border-radius: var(--r-sm);
  background: var(--wash);
  box-shadow: inset 0 0 0 1.5px transparent;
  /* 16px keeps iOS Safari from zooming when a field is focused */
  font-size: 16px;
  transition: box-shadow .2s, background .2s;
  appearance: none;
  -webkit-appearance: none;
}
.f select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%235C6B66'%3E%3Cpath d='M12 15.4 6.6 10 8 8.6l4 4 4-4L17.4 10 12 15.4Z'/%3E%3C/svg%3E");
  background-position: right 12px center;
  background-size: 18px 18px;
  background-repeat: no-repeat;
  padding-right: 40px;
}
.f input:focus, .f select:focus {
  outline: none;
  background: var(--paper);
  box-shadow: inset 0 0 0 1.5px var(--brand);
}
.f em {
  display: none;
  font-style: normal;
  font-size: 12px;
  color: #B4262A;
}
.f.is-bad input, .f.is-bad select { box-shadow: inset 0 0 0 1.5px #B4262A; }
.f.is-bad em { display: block; }

.form .btn { grid-column: 1 / -1; }
.form__fine {
  grid-column: 1 / -1;
  font-size: 12px;
  color: var(--muted);
  text-align: center;
}

.done {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 20px;
  border-radius: var(--r-sm);
  background: var(--paper);
  text-align: center;
  animation: rise .45s var(--ease) both;
}
.done__tick {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px; height: 52px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--brand) 12%, transparent);
  color: var(--brand);
  font-size: 26px;
}
.done h3 { font-family: var(--serif); font-size: 22px; }
.done p { color: var(--muted); font-size: 14.5px; max-width: 30ch; }
.done a { color: var(--brand); font-weight: 600; }
@keyframes rise {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: none; }
}

/* map */
.mapbox { overflow: hidden; }
.mapbox__frame {
  position: relative;
  aspect-ratio: 16 / 11;
  background: var(--wash);
  display: grid;
  place-items: center;
}
.mapbox__frame iframe {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  border: 0;
  opacity: 0;
  transition: opacity .6s var(--ease);
}
.mapbox__frame.is-loaded iframe { opacity: 1; }
.mapbox__frame.is-loaded .mapbox__wait { opacity: 0; }
.mapbox__wait { font-size: 13px; color: var(--muted); transition: opacity .3s; }
.mapbox__bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-top: 1px solid var(--line-2);
}
.mapbox__bar p { min-width: 0; flex: 1; }
.mapbox__bar b { display: block; font-size: 14.5px; font-weight: 600; }
.mapbox__bar span { display: block; font-size: 12.5px; color: var(--muted); }
.mapbox__bar .btn { flex: none; }

/* address card */
.vcard { padding: 20px; }
.vcard h3 { font-family: var(--serif); font-size: 20px; margin-bottom: 14px; }
.vcard__row {
  display: flex;
  gap: 11px;
  padding: 11px 0;
  border-top: 1px solid var(--line-2);
  font-size: 14.5px;
}
.vcard__row:first-of-type { border-top: 0; padding-top: 0; }
.vcard__row svg { color: var(--brand); font-size: 17px; margin-top: 3px; }
.vcard__row a { color: var(--brand); font-weight: 600; }

.hrs { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line-2); }
.hrs div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 5px 0;
  font-size: 14px;
}
.hrs dt { color: var(--muted); }
.hrs dd { font-weight: 600; font-variant-numeric: tabular-nums; }

.vcard__park {
  margin-top: 14px;
  padding: 11px 13px;
  border-radius: var(--r-sm);
  background: var(--wash);
  font-size: 13px;
  color: var(--muted);
}

/* ---------- 16. FAQ ---------- */
.qa { border-top: 1px solid var(--line); }
.qa__item { border-bottom: 1px solid var(--line); }
.qa__q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  padding: 18px 0;
  border: 0;
  background: none;
  text-align: left;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -.012em;
  cursor: pointer;
}
.qa__q svg {
  flex: none;
  font-size: 20px;
  color: var(--brand);
  transition: transform .3s var(--ease);
}
.qa__item.is-on .qa__q svg { transform: rotate(180deg); }
.qa__a { overflow: hidden; }
.qa__a p {
  padding-bottom: 18px;
  max-width: 62ch;
  color: var(--muted);
  font-size: 15px;
}

/* ---------- 17. Footer ---------- */
.foot2 {
  padding-block: clamp(36px, 8vw, 60px);
  padding-bottom: calc(clamp(36px, 8vw, 60px) + var(--dock-h) + env(safe-area-inset-bottom, 0px));
  background: var(--sink);
  color: rgba(255,255,255,.62);
  font-size: 14px;
}
.foot2__top { display: flex; flex-direction: column; gap: 10px; }
.foot2__mark { display: flex; align-items: center; gap: 10px; color: #fff; }
.foot2__mark b { font-size: 17px; font-weight: 600; letter-spacing: -.02em; }
.foot2__top p { line-height: 1.6; }

.foot2__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin-block: 24px;
  padding-block: 22px;
  border-block: 1px solid rgba(255,255,255,.12);
}
.foot2__nav a { transition: color .18s; }
.foot2__nav a:hover { color: #fff; }
.foot2__legal { font-size: 12.5px; color: rgba(255,255,255,.42); }

/* ---------- 18. Bottom dock (the app tab bar) ---------- */
.dock {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 70;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px var(--gut);
  padding-bottom: calc(9px + env(safe-area-inset-bottom, 0px));
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: saturate(1.6) blur(16px);
  -webkit-backdrop-filter: saturate(1.6) blur(16px);
  border-top: 1px solid var(--line);
  transform: translateY(120%);
  transition: transform .38s var(--ease);
}
.dock.is-up { transform: none; }

.dock__act {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  min-width: 56px;
  padding: 4px;
  font-size: 10.5px;
  font-weight: 500;
  color: var(--muted);
  transition: transform .18s var(--ease), color .18s;
}
.dock__act svg { font-size: 21px; color: var(--ink); }
.dock__act:active { transform: scale(.92); }

.dock__book {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex: 1;
  min-height: 50px;
  padding: 0 8px 0 18px;
  border-radius: 100px;
  background: var(--brand);
  color: #fff;
  box-shadow: 0 8px 20px -8px color-mix(in srgb, var(--brand) 75%, transparent);
  transition: transform .18s var(--ease);
}
.dock__book:active { transform: scale(.97); }
.dock__lab b { display: block; font-size: 14.5px; font-weight: 600; }
.dock__lab i {
  display: block;
  font-style: normal;
  font-size: 11px;
  opacity: .8;
}
.dock__book > svg {
  font-size: 18px;
  width: 34px; height: 34px;
  padding: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,.16);
}

/* ---------- 19. Lightbox (created by site.js) ---------- */
.lbox {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(7,19,16,.92);
  backdrop-filter: blur(6px);
  opacity: 0;
  transition: opacity .22s var(--ease);
}
.lbox.is-on { opacity: 1; }
.lbox__stage { margin: 0; max-width: 100%; max-height: 100%; text-align: center; }
.lbox__stage img {
  max-width: 100%;
  max-height: 78vh;
  margin-inline: auto;
  border-radius: 12px;
  object-fit: contain;
}
.lbox__stage figcaption { margin-top: 12px; color: rgba(255,255,255,.66); font-size: 13px; }
.lbox__x, .lbox__nav {
  position: absolute;
  display: grid;
  place-items: center;
  width: 46px; height: 46px;
  border: 0;
  border-radius: 50%;
  background: rgba(255,255,255,.12);
  color: #fff;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  transition: background .18s;
}
.lbox__x:hover, .lbox__nav:hover { background: rgba(255,255,255,.24); }
.lbox__x { top: 16px; right: 16px; }
.lbox__nav--prev { left: 12px; }
.lbox__nav--next { right: 12px; }

/* ---------- 20. Scroll reveal ---------- */
/* Hidden only once main.js has confirmed it is running. If the
   script never executes, every section is simply visible. */
.anim [data-reveal] {
  opacity: 0;
  transform: translate3d(0, 18px, 0);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
  transition-delay: var(--d, 0ms);
  will-change: opacity, transform;
}
.anim [data-reveal].is-in { opacity: 1; transform: none; }


/* =========================================================
   21. DESKTOP — everything above is the phone layout
   ========================================================= */
@media (min-width: 860px) {
  :root { --gut: 40px; }

  .bar { padding: 14px var(--gut); }
  .bar.is-stuck { padding-block: 10px; }
  .bar__nav {
    display: flex;
    gap: 26px;
    margin-inline: auto;
    font-size: 14.5px;
    font-weight: 500;
    color: var(--muted);
  }
  .bar__nav a { transition: color .18s; }
  .bar__nav a:hover { color: var(--ink); }
  .bar__mark { margin-right: 0; }
  .bar__call {
    width: auto; height: 44px;
    padding: 0 18px;
    border-radius: 100px;
    font-size: 14.5px;
    font-weight: 600;
  }
  .bar__call span { display: inline; }

  .hero { padding-block: clamp(56px, 7vw, 96px) clamp(64px, 8vw, 110px); }
  .hero__in {
    display: grid;
    grid-template-columns: minmax(0, 1.02fr) minmax(0, .98fr);
    gap: clamp(32px, 5vw, 60px);
    align-items: center;
  }
  /* With no photograph the headline takes the whole row rather than
     leaving a hole where the picture would have been. */
  .hero__in:not(:has(.hero__art)) { grid-template-columns: minmax(0, 780px); }
  .hero__cta .btn { flex: 0 0 auto; }
  .tiles {
    max-width: 560px;
    gap: 10px;
  }
  .tiles a { min-height: 88px; font-size: 12.5px; }

  .hero__art {
    display: block;
    position: relative;
    margin: 0;
    aspect-ratio: 4 / 4.4;
    border-radius: 28px;
    overflow: hidden;
    background: var(--paper);
    box-shadow: var(--shadow-up);
    animation: settle 1.1s var(--ease) both;
  }
  .hero__art img { width: 100%; height: 100%; object-fit: cover; }
  @keyframes settle {
    from { opacity: 0; transform: translate3d(0, 22px, 0) scale(.97); }
    to   { opacity: 1; transform: none; }
  }

  .hero__badge {
    position: absolute;
    left: 16px; right: 16px; bottom: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 13px 16px;
    border-radius: 18px;
    background: color-mix(in srgb, var(--paper) 95%, transparent);
    backdrop-filter: saturate(1.6) blur(16px);
    -webkit-backdrop-filter: saturate(1.6) blur(16px);
    box-shadow: inset 0 0 0 1px rgba(255,255,255,.6), 0 6px 18px -10px rgba(10,19,16,.4);
  }
  .hero__badge b {
    font-family: var(--serif);
    font-size: 30px;
    font-weight: 600;
    letter-spacing: -.03em;
    line-height: 1;
  }
  .hero__badge-stars { display: flex; gap: 2px; color: #F5A524; font-size: 13px; }
  .hero__badge i {
    display: block;
    margin-top: 2px;
    font-style: normal;
    font-size: 12.5px;
    color: var(--muted);
  }

  .nums { grid-template-columns: repeat(4, 1fr); }
  .num { padding: 28px 20px; }

  /* rails become plain grids once there is room */
  .rail {
    display: grid;
    gap: 16px;
    overflow: visible;
    margin-inline: 0;
    padding: 0;
  }
  .rail > :not(template) { flex: none; }
  .rail--svc { grid-template-columns: repeat(3, 1fr); }
  .rail--doc { grid-template-columns: repeat(4, 1fr); }
  .rail--say { grid-template-columns: repeat(2, 1fr); }
  .pips { display: none; }

  .filter { margin-inline: 0; padding-inline: 0; flex-wrap: wrap; overflow: visible; }

  .svc { padding: 22px; }
  .svc:hover { transform: translateY(-3px); box-shadow: inset 0 0 0 1px var(--line), var(--shadow-up); }

  .why { grid-template-columns: repeat(3, 1fr); gap: 14px; }
  .why__card { padding: 26px; }

  /* Three columns with a 2x2 lead tile tessellates exactly for the six
     photos a Google listing usually yields: 1+2 over two rows, then 3. */
  .shots { grid-template-columns: repeat(3, 1fr); gap: 12px; }
  .shots > figure:first-of-type { grid-column: span 2; grid-row: span 2; aspect-ratio: 1 / 1; }

  .score { font-size: 15px; }
  .score b { font-size: 38px; }

  .assure { gap: 12px; }
  .assure li { padding: 18px 16px; }
  .assure b { font-size: 22px; }
  .assure span { font-size: 12.5px; }

  .book {
    grid-template-columns: 1.05fr .95fr;
    gap: 18px;
    align-items: start;
  }
  .book__form { padding: 28px; }
  .book__side { display: grid; gap: 18px; }

  .qa__q { padding: 22px 0; font-size: 17.5px; }

  .foot2 { padding-bottom: clamp(36px, 8vw, 60px); }
  .foot2__top { flex-direction: row; align-items: center; justify-content: space-between; gap: 24px; }

  /* the phone tab bar has no place on a desktop */
  .dock { display: none; }
}

@media (min-width: 1120px) {
  .hero__h { font-size: 72px; }
  .rail--say { grid-template-columns: repeat(4, 1fr); }
}

/* ---------- 22. Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
  [data-reveal] { opacity: 1; transform: none; }
  .hero__glow { animation: none; }
}
