/* Del Toro Orthopedics — shared styles for index.html (US) and canada.html.
 *
 * The page markup keeps the design file's inline styles as-is; this sheet adds what the design
 * file did not cover:
 *   1. the live quote form (.qf), drawn from the same values as the original mock-up form
 *   2. tablet and phone layouts — the design is a 1440px desktop board, so the overrides below
 *      need !important to win over inline styles. Selectors key on the hook classes the build
 *      adds (.hdr, .hero, .trust, .ptable, .timeline) or on a distinctive inline declaration.
 */

:root {
  --ink: #1D2B2A;
  --ink-hover: #2E4240;
  --paper: #F2ECE2;
  --card: #FBF8F3;
  --field: #FFFFFF;
  --line: #A8987C;
  --line-soft: #C9BBA3;
  --muted: #4A5654;
  --body: #3A4745;
  --accent: #8A6128;
  --accent-soft: #EBCB9E;
  --error: #9B3A22;
  --error-bg: #F7E6DF;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
}

html { -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
section[id] { scroll-margin-top: 16px; }
select { appearance: auto; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* Primary buttons: a tactile press, a slightly lifted hover. */
a[href="#quote"], .qf-submit, .qf-back, .qf-tile {
  transition: background-color 200ms ease, border-color 200ms ease, transform 160ms var(--ease-out);
}
a[href="#quote"]:active, .qf-submit:active:not(:disabled), .qf-back:active { transform: scale(0.97); }
.qf-tile:active { transform: scale(0.98); }
a[href="#quote"] svg { transition: transform 200ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) {
  /* Primary CTAs (Get my price / See open dates, header + hero) and the form's submit. */
  a[href="#quote"][style*="background: #1D2B2A"]:hover, .qf-submit:hover:not(:disabled) { background: var(--ink-hover) !important; color: var(--paper) !important; }
  /* The hero arrow nudges toward where the click goes. */
  a[href="#quote"][style*="background: #1D2B2A"]:hover svg { transform: translateX(3px); }
  /* Secondary CTA (Talk to a coordinator): a faint ink wash instead of a fill swap. */
  a[href="#quote"][style*="border: 1.5px solid #1D2B2A"]:hover, .qf-back:hover { background: rgba(29, 43, 42, 0.06) !important; }
}

/* ── Motion ─────────────────────────────────────────────────────────────────
 * Hero: settles in once on load. Lower blocks: fade up once as they scroll into view
 * (js/quote-form.js adds .reveal / .is-in). Form states fade in instead of popping. */
@keyframes rise { from { opacity: 0; transform: translateY(12px); } }
@keyframes fade { from { opacity: 0; } }
.hero > div:first-child > *, .hero-art { animation: rise 600ms var(--ease-out) both; }
.hero > div:first-child > :nth-child(2) { animation-delay: 60ms; }
.hero > div:first-child > :nth-child(3) { animation-delay: 120ms; }
.hero > div:first-child > :nth-child(4) { animation-delay: 180ms; }
.hero-art { animation-delay: 160ms; }

.reveal { opacity: 0; transform: translateY(16px); transition: opacity 600ms var(--ease-out), transform 600ms var(--ease-out); }
.reveal.is-in { opacity: 1; transform: none; }
.reveal .timeline > div { opacity: 0; transform: translateY(12px); transition: opacity 500ms var(--ease-out), transform 500ms var(--ease-out); }
.reveal.is-in .timeline > div { opacity: 1; transform: none; }
.timeline > div:nth-child(2) { transition-delay: 60ms; }
.timeline > div:nth-child(3) { transition-delay: 120ms; }
.timeline > div:nth-child(4) { transition-delay: 180ms; }
.timeline > div:nth-child(5) { transition-delay: 240ms; }
.timeline > div:nth-child(6) { transition-delay: 300ms; }

.qf form, .qf-done, .qf-err, .qf-form-error, .qf-files li {
  transition: opacity 250ms var(--ease-out), transform 250ms var(--ease-out);
  @starting-style { opacity: 0; transform: translateY(-4px); }
}
.qf-done { @starting-style { transform: translateY(8px); } }

@media (prefers-reduced-motion: reduce) {
  .hero > div:first-child > *, .hero-art { animation-name: fade; }
  .reveal, .reveal .timeline > div, .qf form, .qf-done, .qf-err, .qf-form-error, .qf-files li { transform: none !important; }
  a[href="#quote"]:active, .qf-submit:active, .qf-back:active, .qf-tile:active, a[href="#quote"] svg { transform: none !important; }
}

/* Approximate USD/CAD under an MXN price (js/quote-form.js). */
.fx-approx { margin-left: 6px; font-family: 'Instrument Sans', system-ui, sans-serif; font-size: 14px; font-weight: 400; color: var(--muted); }
.ptable .fx-approx { display: block; margin: 4px 0 0; }

/* ── Polish ──────────────────────────────────────────────────────────────── */
body { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility; }
h1, h2, h3 { text-wrap: balance; }
p { text-wrap: pretty; }
::selection { background: var(--accent-soft); color: var(--ink); }
a { transition: color 150ms ease, text-decoration-color 150ms ease; }

/* Press and hover for the controls that had none, on the site's shared timings:
 * press = scale 160ms --ease-out; hover = color/background 200ms ease, pointer devices only.
 * Text links get color only (a link that shrinks inside a sentence reads as a glitch). */
.hdr-country > a, a[href^="https://wa.me"][style*="border: 1.5px solid #1D2B2A"] {
  transition: background-color 200ms ease, border-color 200ms ease, color 200ms ease, transform 160ms var(--ease-out);
}
.hdr-country > a:active, a[href^="https://wa.me"][style*="border: 1.5px solid #1D2B2A"]:active { transform: scale(0.97); }
.qf-drop:active { transform: scale(0.99); } /* a large target: a smaller press reads the same */
@media (hover: hover) and (pointer: fine) {
  .hdr-country > a:hover, a[href^="https://wa.me"][style*="border: 1.5px solid #1D2B2A"]:hover { background: rgba(29, 43, 42, 0.06) !important; }
  .hdr-nav a:hover { color: var(--accent) !important; }
  footer a:hover { color: var(--paper) !important; }
}
@media (prefers-reduced-motion: reduce) {
  .hdr-country > a:active, a[href^="https://wa.me"]:active, .qf-drop:active { transform: none; }
}

/* Header: sticks on desktop, frosted so the page reads through it (solid where blur is unsupported). */
@media (min-width: 761px) {
  .site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    background: rgba(242, 236, 226, 0.97);
  }
  @supports (backdrop-filter: blur(1px)) {
    .site-header { background: rgba(242, 236, 226, 0.82); backdrop-filter: blur(14px) saturate(140%); -webkit-backdrop-filter: blur(14px) saturate(140%); }
  }
  section[id] { scroll-margin-top: 96px; }
}

/* Logo (img/logo-*.png, transparent): drawn as masks so each place sets its own colour. */
.brand { display: flex; align-items: center; gap: 12px; color: var(--ink) !important; text-decoration: none; }
.logo-mark, .logo-full { display: block; flex-shrink: 0; background: currentColor; -webkit-mask: var(--logo) center / contain no-repeat; mask: var(--logo) center / contain no-repeat; }
.logo-mark { --logo: url("../img/logo-mark-sm.png"); width: 50px; height: 40px; }
.logo-full { --logo: url("../img/logo-full-sm.png"); width: 280px; height: 94px; color: var(--paper); }

/* Icons: Simple Icons / Tabler glyphs used as masks, so they take the text color. */
.ico { display: inline-block; flex-shrink: 0; width: 20px; height: 20px; background: currentColor; -webkit-mask: var(--ico) center / contain no-repeat; mask: var(--ico) center / contain no-repeat; }
.ico-wa { --ico: url("https://cdn.jsdelivr.net/npm/simple-icons@13/icons/whatsapp.svg"); }
.ico-phone { --ico: url("https://cdn.jsdelivr.net/npm/@tabler/icons@3/icons/outline/phone.svg"); }
.ico-link { display: inline-flex; align-items: center; gap: 8px; }
.ico-link .ico { width: 16px; height: 16px; }

/* Contact buttons (quote section and the phone action bar). Pill shape, like the page's other CTAs. */
.contact-btns { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
.btn {
  height: 52px;
  padding: 0 22px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  box-sizing: border-box;
  transition: background-color 200ms ease, border-color 200ms ease, color 200ms ease, transform 160ms var(--ease-out);
}
.btn:active { transform: scale(0.97); }
.btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.btn-wa { background: var(--ink); color: var(--paper) !important; }
.btn-wa .ico { color: #25D366; }
.btn-call { border: 1.5px solid var(--ink); color: var(--ink) !important; background: transparent; }
@media (hover: hover) and (pointer: fine) {
  .btn-wa:hover { background: var(--ink-hover); }
  .btn-call:hover { background: rgba(29, 43, 42, 0.06); }
}

/* Floating WhatsApp button (desktop and tablet). */
.wa-float {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 10;
  width: 58px;
  height: 58px;
  border-radius: 999px;
  background: #25D366;
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 12px 28px rgba(29, 43, 42, 0.22), 0 2px 6px rgba(29, 43, 42, 0.12);
  transition: transform 200ms var(--ease-out), box-shadow 200ms ease;
  @starting-style { transform: scale(0.9); opacity: 0; }
}
.wa-float .ico { width: 30px; height: 30px; }
.wa-float:active { transform: scale(0.95); }
.wa-float:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
@media (hover: hover) and (pointer: fine) { .wa-float:hover { transform: translateY(-2px); box-shadow: 0 16px 32px rgba(29, 43, 42, 0.26), 0 2px 6px rgba(29, 43, 42, 0.12); } }

/* Phone action bar: Call and WhatsApp always one thumb away. Replaces the floating button on phones. */
.action-bar { display: none; }
@media (max-width: 760px) {
  .wa-float { display: none; }
  .action-bar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 20;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
    background: rgba(242, 236, 226, 0.97);
    border-top: 1px solid #D9CFBF;
    transition: transform 300ms var(--ease-out);
    @starting-style { transform: translateY(100%); }
  }
  @supports (backdrop-filter: blur(1px)) {
    .action-bar { background: rgba(242, 236, 226, 0.85); backdrop-filter: blur(14px) saturate(140%); -webkit-backdrop-filter: blur(14px) saturate(140%); }
  }
  .action-bar .btn { height: 50px; padding: 0 12px; font-size: 16px; }
  .contact-btns { display: grid; grid-template-columns: minmax(0, 1fr); }
  body { padding-bottom: calc(72px + env(safe-area-inset-bottom)); }
}
@media (prefers-reduced-motion: reduce) {
  .wa-float, .wa-float:hover, .wa-float:active, .btn:active, .action-bar { transform: none; transition-property: background-color, border-color, color, box-shadow; }
}

/* Cookie consent (js/ads.js): bottom left on desktop, clear of the WhatsApp button; above the action bar on phones. */
.consent {
  position: fixed;
  left: 24px;
  bottom: 24px;
  z-index: 30;
  max-width: 420px;
  box-sizing: border-box;
  padding: 18px 20px;
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  background: var(--card);
  color: var(--body);
  font: 15px/1.5 'Instrument Sans', system-ui, sans-serif;
  box-shadow: 0 12px 28px rgba(29, 43, 42, 0.18);
}
.consent p { margin: 0 0 14px; }
.consent a { color: var(--accent); }
.consent-btns { display: flex; gap: 10px; justify-content: flex-end; }
.consent button {
  height: 44px;
  padding: 0 20px;
  border: 1.5px solid var(--ink);
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  font: 600 15px 'Instrument Sans', system-ui, sans-serif;
  cursor: pointer;
}
.consent button.consent-ok { background: var(--ink); color: var(--paper); }
.consent button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
@media (max-width: 760px) {
  .consent { left: 12px; right: 12px; max-width: none; bottom: calc(80px + env(safe-area-inset-bottom)); }
  .consent-btns button { flex: 1; }
}

/* Surgeon photo: fills the 440 × 560 slot; the crop keeps the faces (upper part of the frame). */
.surgeon-photo { display: block; object-fit: cover; object-position: 50% 22%; background: #E4DACB; }

/* Google reviews strip (built from reviews.json). With 3+ reviews the track holds the list twice
 * and slides by half its width, so the loop is seamless; hovering or focusing it pauses. */
.reviews {
  border-radius: 6px;
  background: #E4DACB;
  padding: 36px 0 28px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  overflow: hidden;
  min-width: 0;
  contain: inline-size; /* the looping track is wider than the column; don't let it size the grid */
}
.reviews-track { display: flex; padding: 0 36px; }
.review-card {
  margin: 0 20px 0 0;
  flex: 0 0 320px;
  box-sizing: border-box;
  padding: 28px;
  background: var(--card);
  border-radius: 6px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.review-stars { color: var(--accent); font-size: 17px; letter-spacing: .12em; }
.review-card blockquote {
  margin: 0;
  font-family: 'Gloock', Georgia, serif;
  font-size: 21px;
  line-height: 1.35;
  color: var(--ink);
  display: -webkit-box;
  -webkit-line-clamp: 6;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.review-card figcaption { margin-top: auto; display: flex; flex-direction: column; gap: 2px; font-size: 15px; font-weight: 600; color: var(--ink); }
.review-card figcaption span { font-size: 13px; font-weight: 400; color: var(--muted); }
/* "See on Google": each quote links to the reviewer's Google profile, where the review is published. */
.review-proof { color: var(--accent) !important; font-weight: 600; white-space: nowrap; text-decoration: underline; text-underline-offset: 3px; }
@media (hover: hover) and (pointer: fine) { .review-proof:hover { color: #5E4118 !important; } }
.reviews.is-few .review-card { flex: 1 1 280px; margin: 0; }
.reviews.is-few .review-card blockquote { font-size: 26px; line-height: 1.3; }
.reviews.is-marquee .reviews-track {
  width: max-content;
  padding: 0;
  animation: reviews-scroll calc(var(--n) * 9s) linear infinite;
}
.reviews.is-marquee { mask-image: linear-gradient(90deg, transparent, #000 40px, #000 calc(100% - 40px), transparent); }
.reviews.is-marquee:hover .reviews-track, .reviews.is-marquee:focus-within .reviews-track { animation-play-state: paused; }
@keyframes reviews-scroll { to { transform: translateX(-50%); } }
.reviews-link {
  align-self: flex-start;
  margin: 0 36px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink) !important;
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-color: var(--line);
}
@media (hover: hover) and (pointer: fine) { .reviews-link:hover { text-decoration-color: var(--ink); } }
@media (prefers-reduced-motion: reduce) {
  .reviews.is-marquee { mask-image: none; }
  .reviews.is-marquee .reviews-track { animation: none; width: auto; overflow-x: auto; scroll-snap-type: x mandatory; padding: 0 36px; }
  .reviews.is-marquee .review-card { scroll-snap-align: start; }
  .reviews.is-marquee .review-card[aria-hidden] { display: none; }
}

/* ── 1. Live quote form ─────────────────────────────────────────────────────── */

.qf {
  flex: 1 1 0;
  min-width: 0;
  padding: 40px;
  background: var(--card);
  border-radius: 6px;
  box-shadow: 0 24px 48px rgba(29, 43, 42, 0.1);
  box-sizing: border-box;
}
.qf form { display: flex; flex-direction: column; gap: 22px; margin: 0; }
.qf-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.qf-full { grid-column: 1 / -1; }

.qf-field { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.qf-label { font-weight: 600; font-size: 15px; color: var(--ink); }
.qf-req { color: var(--accent); font-weight: 600; }
.qf-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.qf-help { font-size: 14px; line-height: 1.45; color: var(--muted); margin: 0; }

.qf input[type="text"], .qf input[type="email"], .qf input[type="tel"], .qf input[type="url"],
.qf input[type="number"], .qf input[type="date"], .qf input[type="time"], .qf input[type="datetime-local"],
.qf input[type="password"], .qf select, .qf textarea {
  height: 52px;
  padding: 0 16px;
  border: 1.5px solid var(--line);
  border-radius: 6px;
  font: inherit;
  font-size: 16px;
  font-weight: 400;
  background: var(--field);
  color: var(--ink);
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
}
.qf select { padding: 0 12px; }
.qf textarea { height: auto; min-height: 120px; padding: 14px 16px; line-height: 1.5; resize: vertical; }
.qf input::placeholder, .qf textarea::placeholder { color: #6B7472; }
.qf input:focus-visible, .qf select:focus-visible, .qf textarea:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
  border-color: var(--ink);
}
.qf [aria-invalid="true"] { border-color: var(--error) !important; }
.qf-err { margin: 0; font-size: 14px; line-height: 1.4; color: var(--error); }
.qf-err:empty { display: none; }

/* Choice tiles: the design's segmented joint picker, used for every single-choice radio field. */
.qf fieldset { border: 0; padding: 0; margin: 0; min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.qf legend { padding: 0; margin-bottom: 10px; }
.qf-tiles { display: grid; grid-template-columns: repeat(var(--cols, 3), minmax(0, 1fr)); gap: 12px; }
.qf-tile {
  min-height: 52px;
  padding: 8px 12px;
  border: 1.5px solid var(--line);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 16px;
  background: var(--field);
  color: var(--ink);
  cursor: pointer;
  box-sizing: border-box;
  text-align: center;
}
.qf-tile:hover { border-color: var(--ink); }
.qf-tile.is-on { background: var(--ink); border-color: var(--ink); color: var(--paper); font-weight: 600; }
.qf-tile input { accent-color: var(--accent-soft); margin: 0; }
.qf-tile:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }
.qf-group[aria-invalid="true"] .qf-tile { border-color: var(--error); }

.qf-checks { display: flex; flex-direction: column; gap: 10px; }
.qf-check { display: flex; gap: 10px; align-items: flex-start; font-size: 16px; line-height: 1.4; cursor: pointer; }
.qf-check input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--ink); flex-shrink: 0; }

/* File drop zone. */
.qf-drop {
  position: relative;
  min-height: 64px;
  padding: 12px 16px;
  border: 1.5px dashed var(--line);
  border-radius: 6px;
  background: var(--field);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-weight: 400;
  color: var(--muted);
  cursor: pointer;
  box-sizing: border-box;
  text-align: center;
  transition: background-color 200ms ease, border-color 200ms ease, transform 160ms var(--ease-out);
}
.qf-drop:hover, .qf-drop.is-over { border-color: var(--accent); background: var(--paper); }
.qf-drop:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }
.qf-drop input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.qf-drop svg { flex-shrink: 0; }
.qf-files { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.qf-files li { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 14px; color: var(--body); padding: 8px 12px; background: var(--paper); border-radius: 6px; }
.qf-files span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.qf-files button { border: 0; background: none; padding: 4px; font: inherit; font-size: 14px; font-weight: 600; color: var(--accent); cursor: pointer; flex-shrink: 0; }
.qf-files button:hover { color: #5E4118; }

.qf-form-error { margin: 0; padding: 12px 16px; border-radius: 6px; background: var(--error-bg); color: var(--error); font-size: 15px; line-height: 1.45; }
.qf-form-error:empty { display: none; }

.qf-actions { display: flex; gap: 12px; margin-top: 4px; }
.qf-submit, .qf-back {
  height: 62px;
  border-radius: 999px;
  font: inherit;
  font-size: 18px;
  font-weight: 600;
  cursor: pointer;
  padding: 0 28px;
}
.qf-submit { flex: 1 1 auto; border: 0; background: var(--ink); color: var(--paper); }
.qf-submit:disabled { opacity: .72; cursor: progress; }
.qf-back { flex: 0 0 auto; border: 1.5px solid var(--ink); background: transparent; color: var(--ink); }
.qf-note { font-size: 13px; line-height: 1.5; color: var(--muted); text-align: center; margin: 0; }
.qf-step { font-family: 'IBM Plex Mono', monospace; font-size: 12px; letter-spacing: .12em; color: var(--muted); margin: 0; }

/* States: loading skeleton, message, thank-you. */
.qf-skeleton { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 18px; }
.qf-skeleton .sk { display: block; height: 78px; border-radius: 6px; background: #ECE5D9; }
.qf-skeleton .sk-full { grid-column: 1 / -1; }
.qf-skeleton .sk-tall { height: 92px; }
.qf-skeleton .sk-btn { height: 62px; border-radius: 999px; background: #E3DACB; }
@media (prefers-reduced-motion: no-preference) {
  .qf-skeleton .sk { animation: qf-pulse 1.4s ease-in-out infinite; }
  @keyframes qf-pulse { 50% { opacity: .55; } }
}
.qf-msg { margin: 0; font-size: 17px; line-height: 1.55; color: var(--body); }
.qf-done { display: flex; flex-direction: column; gap: 16px; padding: 8px 0; }
.qf-done h3 { margin: 0; font-family: 'Gloock', Georgia, serif; font-weight: 400; font-size: 34px; line-height: 1.12; color: var(--ink); }
.qf-done p { margin: 0; font-size: 17px; line-height: 1.55; color: var(--body); }
.qf-done .qf-back { align-self: flex-start; height: 52px; font-size: 16px; }
.qf-done:focus { outline: none; }

/* ── 2. Tablet (≤ 1100px) ───────────────────────────────────────────────────── */

@media (max-width: 1100px) {
  .hdr { gap: 24px !important; }
  .hdr-nav { display: none !important; }

  .hero { flex-direction: column !important; align-items: stretch !important; gap: 48px !important; }
  .hero > div:first-child { flex: none !important; }
  .hero-art { align-self: center; flex: none !important; width: 500px; }

  [style*="padding: 112px 24px"] { padding-top: 88px !important; padding-bottom: 88px !important; }
  /* Two-column sections (surgeon, aftercare, quote) stack. */
  [style*="padding: 112px 24px; display: flex; gap"] { flex-direction: column !important; gap: 40px !important; }
  [style*="flex: 0 0 440px"], [style*="flex: 0 0 500px"]:not(.hero-art) { flex: none !important; width: 100% !important; }
  [style*="flex: 0 0 440px; height: 560px"] { height: 420px !important; }
  .surgeon-photo { max-width: 440px; height: auto !important; aspect-ratio: 4 / 5; }
  .qf { width: 100%; flex: none; }
  .ptable > div { padding-left: 24px !important; padding-right: 24px !important; column-gap: 12px; }
  .ptable [style*="font-family: 'Gloock'"]:not(:first-child) { font-size: 28px !important; }

  .timeline { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; row-gap: 40px !important; }
  .timeline-line { display: none; }

  footer [style*="justify-content: space-between; gap: 64px"] { flex-wrap: wrap !important; gap: 32px 48px !important; }
}

/* ── 3. Phone (≤ 760px) ─────────────────────────────────────────────────────── */

@media (max-width: 760px) {
  [style*="max-width: 1280px"] { padding-left: 20px !important; padding-right: 20px !important; }
  [style*="padding: 112px 24px"] { padding-top: 56px !important; padding-bottom: 56px !important; gap: 32px !important; }

  /* Header: logo and CTA on one row, the country switch full width below (as in the mobile design). */
  .hdr { height: auto !important; flex-wrap: wrap !important; gap: 12px !important; padding-top: 10px !important; padding-bottom: 12px !important; }
  .brand > div > span:first-child { font-size: 22px !important; }
  .brand > div > span:last-child { font-size: 9px !important; letter-spacing: .14em !important; }
  .brand { gap: 10px; }
  .logo-mark { width: 40px; height: 32px; }
  .hdr > a[href="#quote"] { margin-left: auto; height: 44px !important; padding: 0 18px !important; font-size: 14px !important; }
  .hdr-country { order: 3; width: 100%; display: grid !important; grid-template-columns: repeat(2, minmax(0, 1fr)); box-sizing: border-box; }
  .hdr-country > * { justify-content: center; height: 42px !important; }

  /* Hero */
  .hero { padding-top: 28px !important; padding-bottom: 40px !important; gap: 32px !important; }
  .hero > div:first-child { gap: 18px !important; }
  .hero > div:first-child > span:first-child { font-size: 11px !important; letter-spacing: .14em !important; }
  .hero h1 { font-size: 36px !important; line-height: 1.1 !important; }
  .hero p { font-size: 17px !important; }
  .hero [style*="flex-wrap: wrap"] { flex-direction: column !important; align-items: stretch !important; gap: 12px !important; }
  .hero [style*="flex-wrap: wrap"] > a { justify-content: center; height: 56px !important; padding: 0 20px !important; font-size: 17px !important; }

  /* Type scale */
  h2 { font-size: 32px !important; line-height: 1.12 !important; }
  h3 { font-size: 24px !important; }
  section p { font-size: 17px !important; }
  [style*="font-family: 'Gloock', Georgia, serif; font-size: 36px"] { font-size: 28px !important; }
  [style*="font-family: 'Gloock', Georgia, serif; font-size: 34px"] { font-size: 26px !important; }
  [style*="font-family: 'Gloock', Georgia, serif; font-size: 30px"] { font-size: 24px !important; }

  /* Trust strip: 2 × 2 */
  .trust { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; border-bottom: 0 !important; }
  .trust > div { padding: 18px 12px 18px 0 !important; border-right: 0 !important; border-bottom: 1px solid var(--line-soft); gap: 4px !important; }
  .trust > div:nth-child(even) { padding-left: 16px !important; padding-right: 0 !important; }
  .trust > div:nth-child(odd) { border-right: 1px solid var(--line-soft) !important; }
  .trust > div > span:last-child { font-size: 13px !important; }

  /* Surgeon photo slot */
  [style*="flex: 0 0 440px; height: 560px"]:not(.surgeon-photo) { height: 340px !important; }
  .surgeon-photo { max-width: none; }

  /* Every multi-column grid becomes one column. */
  [style*="grid-template-columns: repeat(2, minmax(0, 1fr))"]:not(.trust):not(.hdr-country),
  [style*="grid-template-columns: repeat(3, minmax(0, 1fr))"],
  [style*="grid-template-columns: 2fr 1fr"] { grid-template-columns: minmax(0, 1fr) !important; gap: 28px !important; }
  [style*="grid-template-columns: 2fr 1fr"] [style*="height: 460px"] { height: 300px !important; }

  /* Comparison table: one card per row, each value under its column heading. */
  .ptable > div:first-child { display: none !important; }
  .ptable > div + div { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 14px 16px !important; padding: 20px !important; align-items: start !important; }
  .ptable > div + div > :first-child { grid-column: 1 / -1; font-size: 22px !important; }
  .ptable > div + div > :not(:first-child) { display: flex !important; flex-direction: column; gap: 2px; font-size: 17px !important; }
  .ptable > div + div > :not(:first-child)::before { font-family: 'Instrument Sans', system-ui, sans-serif; font-size: 12px; font-weight: 600; color: var(--muted); margin-bottom: 2px; }
  .ptable > div + div > :not(:first-child), .ptable [style*="font-size: 20px"] { font-size: 16px !important; }
  .ptable [style*="font-family: 'Gloock'"]:not(:first-child) { font-size: 24px !important; }
  .ptable > div + div > :not(:first-child) { min-width: 0; overflow-wrap: anywhere; }

  /* Callout boxes ("Why does it cost so much less?", "Already spending the winter…") */
  [style*="padding: 32px 36px"] { flex-direction: column !important; align-items: flex-start !important; gap: 12px !important; padding: 24px !important; }
  [style*="flex: 0 0 300px"], [style*="flex: 0 0 360px"] { flex: none !important; }

  .timeline { grid-template-columns: minmax(0, 1fr) !important; row-gap: 28px !important; }

  footer [style*="justify-content: space-between; gap: 64px"] { flex-direction: column !important; gap: 28px !important; }

  /* Form */
  .reviews { padding: 24px 0 20px; gap: 18px; }
  .reviews-track, .reviews.is-marquee .reviews-track { padding-left: 20px; padding-right: 20px; }
  .reviews.is-marquee .reviews-track { padding: 0; }
  .review-card { flex-basis: 260px; padding: 22px; }
  .reviews.is-few .review-card blockquote { font-size: 22px; }
  .reviews-link { margin: 0 20px; }
  .qf { padding: 24px 20px; }
  .qf-grid, .qf-skeleton { grid-template-columns: minmax(0, 1fr); }
  .qf-tiles { gap: 8px; }
  .qf-tile { font-size: 15px; padding: 8px 6px; }
  .qf-submit { height: 58px; }
  .qf-done h3 { font-size: 28px; }
}

/* ── Hero art on narrow phones: scale the poster to the column. ── */
@media (max-width: 560px) { .hero-art { zoom: .66; } }
@media (max-width: 360px) { .hero-art { zoom: .56; } }

/* Narrow phones: the tree mark carries the brand, so the mono subtitle makes room for the CTA. */
@media (max-width: 420px) {
  .brand > div > span:last-child { display: none; }
}
