/* Palette taken from the clinic logo: the linen background of the logo card,
   fine gilt line work, bronze for headings, espresso for reading text. */
:root {
  color-scheme: light;
  --linen: #ebe3d9;
  --porcelain: #faf7f2;
  --skin: #fdfbf8;
  --gilt: #a9824a;
  --gilt-deep: #86652f;
  --bronze: #6e5330;
  --ink: #2f2721;
  --muted: #574b40;
  --hair-ink: #4a3826;
  --hair: rgba(169, 130, 74, 0.38);
  --hair-soft: rgba(169, 130, 74, 0.2);
  --glow-core: rgba(214, 172, 102, 0.75);
  --glow-edge: rgba(190, 150, 86, 0.32);
  --display: "Bellefair", "Cormorant Garamond", Georgia, serif;
  --radius: 22px;
  --radius-sm: 14px;
  --text: "Assistant", "Rubik", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }

/* Text scales with the screen: 22px on phones up to 26px on large screens */
html { font-size: clamp(22px, 1vw + 9px, 26px); }

body {
  margin: 0;
  background: var(--linen);
  color: var(--ink);
  font-family: var(--text);
  font-weight: 400;
  font-size: 1.05rem;
  line-height: 1.6;
  -webkit-text-size-adjust: 100%;
}

h1, h2, h3 { font-family: var(--display); font-weight: 400; color: var(--bronze); margin: 0; line-height: 1.2; }
h2:focus { outline: none; }

button { font: inherit; color: inherit; }
button:focus-visible, a:focus-visible, input:focus-visible { outline: 2px solid var(--gilt-deep); outline-offset: 3px; }

.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.probe { position: absolute; width: 0; height: 0; overflow: hidden; visibility: hidden; }

/* ---------- Header ---------- */
.hero { position: relative; text-align: center; padding: 44px 16px 4px; }
.lang { position: absolute; top: 14px; inset-inline-end: 12px; display: flex; gap: 2px; }
.lang button {
  background: none; border: 0; padding: 6px 8px; cursor: pointer;
  color: var(--muted); font-size: 0.92rem; border-bottom: 1px solid transparent;
}
.lang button[aria-pressed="true"] { color: var(--bronze); border-bottom-color: var(--gilt); }
.back {
  position: absolute; top: 10px; inset-inline-start: 8px;
  width: 44px; height: 44px; border: 0; background: none; cursor: pointer;
  font-family: var(--display); font-size: 2rem; line-height: 1; color: var(--bronze);
}
[dir="ltr"] .back span[aria-hidden] { display: inline-block; transform: scaleX(-1); }
/* The logo sits in a round porcelain medallion with a fine double gilt ring. */
.logo-wrap {
  width: 216px; aspect-ratio: 1; margin: 0 auto 10px; border-radius: 50%;
  display: grid; place-items: center;
  background: radial-gradient(circle at 50% 38%, #fffefb 0%, var(--porcelain) 55%, #f2ebe1 100%);
  box-shadow: 0 0 0 1px var(--hair), 0 0 0 6px rgba(250, 247, 242, 0.6), 0 0 0 7px var(--hair-soft),
    0 20px 40px -22px rgba(110, 83, 48, 0.45);
  transition: width 0.3s ease;
}
.logo { width: 84%; height: auto; display: block; }
.hero h1 { font-size: clamp(2rem, 5.6vw, 2.9rem); max-width: 24ch; margin: 0 auto; text-wrap: balance; }
.hero .sub { margin: 10px auto 0; color: var(--muted); max-width: 40ch; }

/* After the first step the header shrinks to a small logo. */
/* After the first step the header is a slim row: back arrow and a small logo in the corner. */
body:not([data-step="intro"]) .hero { padding: 0; height: 60px; }
body:not([data-step="intro"]) .logo-wrap {
  position: absolute; top: 8px; inset-inline-start: 52px; width: 44px; margin: 0;
  box-shadow: 0 0 0 1px var(--hair), 0 6px 14px -10px rgba(110, 83, 48, 0.45);
}
body:not([data-step="intro"]) .hero h1,
body:not([data-step="intro"]) .hero .sub { display: none; }

/* ---------- Layout ---------- */
main { max-width: 720px; margin: 0 auto; padding: 20px 16px 120px; }
.screen h2 { font-size: 1.9rem; text-align: center; }
.lead { text-align: center; color: var(--muted); margin: 8px auto 26px; max-width: 42ch; }
.field-label { font-family: var(--display); font-size: 1.25rem; color: var(--bronze); margin: 0 0 10px; text-align: center; }
.note { font-size: 0.9rem; color: var(--muted); margin: 10px 0 0; }
.note-box {
  border: 1px solid var(--hair); border-radius: var(--radius); background: var(--porcelain);
  padding: 12px 16px; margin: 0 0 18px; font-size: 0.95rem; text-align: center;
}

/* ---------- Step 1 ---------- */
.gender-options { display: flex; justify-content: center; gap: 36px; margin-bottom: 26px; }
.gender-card {
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  background: none; border: 0; padding: 4px 0; cursor: pointer; font: inherit;
}
/* Each figure sits in a round medallion, like the logo. */
.gender-card svg {
  width: 136px; height: 136px; padding: 10px 14px 0; border-radius: 50%;
  background: radial-gradient(circle at 50% 38%, #fffefb 0%, var(--porcelain) 55%, #f2ebe1 100%);
  box-shadow: 0 0 0 1px var(--hair), 0 0 0 5px rgba(250, 247, 242, 0.6), 0 0 0 6px var(--hair-soft),
    0 16px 30px -20px rgba(110, 83, 48, 0.45);
  transition: box-shadow 0.25s ease;
}
.gender-card:hover svg { box-shadow: 0 0 0 1px var(--gilt), 0 0 0 5px rgba(250, 247, 242, 0.6), 0 0 0 6px var(--hair), 0 16px 30px -20px rgba(110, 83, 48, 0.45); }
.gender-card span { font-family: var(--display); font-size: 1.35rem; color: var(--bronze); }
.gender-card[aria-pressed="true"] svg {
  box-shadow: 0 0 0 1.5px var(--gilt-deep), 0 0 0 5px rgba(250, 247, 242, 0.85), 0 0 0 6.5px var(--gilt),
    0 0 26px 4px rgba(214, 172, 102, 0.35);
}
.gender-card[aria-pressed="true"] span { color: var(--gilt-deep); }
.gender-card[aria-pressed="true"] .fig-fill path { fill: #fbf1df; }
.gender-card:focus-visible { outline: none; }
.gender-card:focus-visible svg { outline: 2px solid var(--gilt-deep); outline-offset: 8px; }

.age { display: block; text-align: center; margin-bottom: 24px; }
.age input {
  display: block; margin: 0 auto; width: 120px; text-align: center;
  font-family: var(--display); font-size: 2.2rem; color: var(--bronze);
  margin-top: 8px; background: var(--porcelain); border: 1px solid var(--gilt); border-radius: 999px;
  padding: 2px 0 4px; line-height: 1.2; -moz-appearance: textfield;
  box-shadow: 0 8px 18px -14px rgba(110, 83, 48, 0.45);
}
.age input::-webkit-outer-spin-button, .age input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

/* ---------- Step 2 ---------- */
.privacy-note {
  display: flex; align-items: center; gap: 14px; margin: 14px 0 6px;
  padding: 16px 20px; border-radius: var(--radius);
  background: #f6eedf; border: 1px solid var(--gilt);
  color: var(--bronze); font-size: 1.08rem; font-weight: 600; line-height: 1.5;
}
.privacy-note svg {
  flex: none; width: 30px; height: 30px;
  fill: none; stroke: var(--gilt-deep); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round;
}
.health-list { display: grid; gap: 10px; margin: 0 0 22px; }
.health-list ul { list-style: none; margin: 0; padding: 0 20px 8px; }
.health-group {
  background: var(--porcelain); border: 1px solid var(--hair); border-radius: var(--radius);
  transition: box-shadow 0.25s ease, border-color 0.25s ease;
}
.health-group[open] { border-color: var(--gilt); box-shadow: 0 14px 30px -24px rgba(110, 83, 48, 0.55); }
.health-group summary, .doctor-box summary {
  display: flex; align-items: center; gap: 10px; cursor: pointer; list-style: none;
  min-height: 56px; padding: 10px 20px; border-radius: var(--radius);
  font-family: var(--display); font-size: 1.22rem; color: var(--bronze);
}
.health-group summary::-webkit-details-marker, .doctor-box summary::-webkit-details-marker { display: none; }
.health-group summary:focus-visible, .doctor-box summary:focus-visible { outline: 2px solid var(--gilt-deep); outline-offset: 2px; }
.g-title { flex: 1; }
.g-count {
  flex: none; display: inline-grid; place-items: center; min-width: 26px; height: 26px; padding: 0 7px;
  border-radius: 13px; border: 1px solid var(--hair); color: var(--muted);
  font-family: var(--text); font-size: 0.82rem; font-weight: 600;
}
.chev {
  flex: none; width: 10px; height: 10px; margin-inline-start: 4px;
  border-right: 1.5px solid var(--gilt); border-bottom: 1.5px solid var(--gilt);
  transform: translateY(-3px) rotate(45deg); transition: transform 0.25s ease;
}
details[open] > summary .chev { transform: translateY(2px) rotate(-135deg); }
.health-list li { position: relative; padding: 10px 0; padding-inline-start: 20px; border-top: 1px solid var(--hair-soft); }
.health-list li::before { content: ""; position: absolute; inset-inline-start: 2px; top: 1.15em; width: 6px; height: 6px; border-radius: 50%; background: var(--gilt); opacity: 0.7; }
.declare { display: flex; gap: 12px; align-items: flex-start; cursor: pointer; font-weight: 600; margin-bottom: 6px; }
.declare input { flex: none; width: 22px; height: 22px; margin: 2px 0 0; accent-color: var(--gilt-deep); }
.doctor-box {
  margin: 20px 0 24px; font-size: 0.95rem;
  border: 1px dashed var(--gilt); border-radius: var(--radius); background: var(--porcelain);
}
.doctor-box summary { font-size: 1.12rem; }
.doctor-list { margin: 0 0 10px; padding: 0 20px; padding-inline-start: 38px; color: var(--muted); columns: 2 14ch; column-gap: 28px; }
.doctor-list li { break-inside: avoid; padding: 2px 0; }
.doctor-box > p { margin: 0; padding: 0 20px 16px; }

/* ---------- Step 3: tabs and stage ---------- */
.tabs { display: grid; grid-template-columns: repeat(3, 1fr); border-bottom: 1px solid var(--hair); margin-bottom: 10px; }
.tab {
  position: relative; background: none; border: 0; cursor: pointer;
  padding: 10px 4px 12px; min-height: 48px; color: var(--muted);
  font-family: var(--display); font-size: 1.12rem; line-height: 1.2;
}
.tab[aria-current="step"] { color: var(--bronze); }
.tab[aria-current="step"]::after { content: ""; position: absolute; left: 12%; right: 12%; bottom: -1px; height: 3px; border-radius: 3px; background: var(--gilt); }
.tab .count {
  display: inline-grid; place-items: center; min-width: 20px; height: 20px; margin-inline-start: 6px;
  border-radius: 10px; background: var(--gilt-deep); color: #fff;
  font-family: var(--text); font-size: 0.75rem; font-weight: 600; vertical-align: 2px;
}

.stage { position: relative; }
.view-toggle {
  position: absolute; top: 4px; inset-inline-end: 0; z-index: 2;
  display: flex; flex-direction: column; gap: 2px;
}
.view-toggle button {
  background: none; border: 0; cursor: pointer; padding: 6px 4px;
  color: var(--muted); font-family: var(--display); font-size: 1.05rem;
  border-inline-end: 1px solid transparent; text-align: end;
}
.view-toggle button[aria-pressed="true"] { color: var(--bronze); border-inline-end-color: var(--gilt); padding-inline-end: 8px; }
#fig { display: block; overflow: hidden; width: 100%; height: min(54vh, 500px); min-height: 300px; transition: transform 0.22s ease-in, opacity 0.22s ease-in; }
#fig {
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 7%, #000 88%, transparent);
  mask-image: linear-gradient(to bottom, transparent, #000 7%, #000 88%, transparent);
}
#fig.turning { transform: scaleX(0.04); opacity: 0.3; }
.hint { text-align: center; color: var(--muted); font-size: 0.95rem; margin: 6px 0 4px; }

/* ---------- Figures ---------- */
.fig { overflow: visible; }
/* Thick stroke under a fill = one clean outline around the merged shapes. */
.fig-line path { fill: none; stroke: var(--gilt); stroke-width: 2.4; stroke-linejoin: round; }
.fig-fill path { fill: var(--skin); stroke: none; }

.region {
  fill: transparent;
  stroke: var(--gilt); stroke-width: 0.7; stroke-linecap: round; stroke-dasharray: 0.1 2.6;
  cursor: pointer;
  transition: fill 0.5s ease 0.2s;
}
.region:hover { fill: rgba(169, 130, 74, 0.12); }
.region.on { fill: var(--glow); }
/* Only the body part on screen is clickable and marked. */
.fig[data-section="0"] .region:not([data-section="0"]),
.fig[data-section="1"] .region:not([data-section="1"]),
.fig[data-section="2"] .region:not([data-section="2"]) { pointer-events: none; stroke: none; }
#map-front .region, #map-back .region, #map-face .region { stroke: none; cursor: default; }
.glow-core { stop-color: var(--glow-core); }
.glow-edge { stop-color: var(--glow-edge); }

.hairs path {
  fill: none; stroke: var(--hair-ink); stroke-linecap: round; pointer-events: none;
  vector-effect: non-scaling-stroke; /* hairline at every zoom level */
  transition: opacity 0.28s ease, transform 0.28s ease;
}
.hairs-f path { stroke-width: 0.95px; opacity: 0.8; }
.hairs-m path { stroke-width: 1.1px; opacity: 0.9; }
/* Women's facial hair: finer and lighter, so it reads as fuzz, not a beard. */
.hairs-f.hairs-face path { stroke: #8f6f4a; stroke-width: 0.8px; opacity: 0.7; }
.fig[data-section="0"] .hairs:not([data-section="0"]),
.fig[data-section="1"] .hairs:not([data-section="1"]),
.fig[data-section="2"] .hairs:not([data-section="2"]) { display: none; }
.hairs.gone path { opacity: 0; transform: translateY(-1.2px); }
.beam { pointer-events: none; }
.beam-core { stop-color: #fff8e6; stop-opacity: 1; }
.beam-edge { stop-color: #f3d9a4; stop-opacity: 0; }

/* Fine lines stay hairline-thin at every zoom (face features are tiny). */
.detail { fill: none; stroke: var(--gilt); stroke-width: 1.3px; vector-effect: non-scaling-stroke; stroke-linecap: round; stroke-linejoin: round; opacity: 0.85; pointer-events: none; }
.ear { fill: var(--skin); stroke: var(--gilt); stroke-width: 1.4px; vector-effect: non-scaling-stroke; stroke-linejoin: round; }
.head-hair { fill: #e4d2b2; stroke: var(--gilt); stroke-width: 1.1; stroke-linejoin: round; pointer-events: none; }

/* The figure draws itself once, like the logo's line work. */
@media (prefers-reduced-motion: no-preference) {
  .draw-in .fig-line path, .draw-in .detail, .draw-in .head-hair { stroke-dasharray: 1.05 1.05; stroke-dashoffset: 1.05; animation: draw 2.2s cubic-bezier(.6, .1, .3, 1) forwards; }
  .draw-in .detail { animation-delay: 1s; animation-duration: 1.3s; }
  .draw-in .region, .draw-in .hairs { animation: appear 0.9s ease 1.6s both; }
}
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes appear { from { opacity: 0; } }

/* ---------- Area list (price-list style) ---------- */
.list { margin-top: 8px; }
.chip {
  display: flex; align-items: baseline; gap: 10px; width: 100%;
  background: none; border: 0; border-bottom: 1px solid var(--hair-soft); border-radius: 0;
  padding: 12px 4px; min-height: 50px; cursor: pointer; text-align: start;
  transition: background-color 0.4s ease;
}
.chip .mark {
  flex: none; width: 14px; height: 14px; border-radius: 50%;
  border: 1px solid var(--gilt); align-self: center;
  transition: background-color 0.2s ease, box-shadow 0.2s ease;
}
.chip .label { flex: none; max-width: 70%; }
.chip .leader { flex: 1; min-width: 16px; border-bottom: 1px dotted var(--gilt); opacity: 0.55; transform: translateY(-5px); }
.chip .price { flex: none; color: var(--muted); font-variant-numeric: tabular-nums; }
.chip:hover .label { color: var(--bronze); }
.chip[aria-pressed="true"] .mark { background: var(--gilt); box-shadow: inset 0 0 0 2.5px var(--linen); }
.chip[aria-pressed="true"] .label, .chip[aria-pressed="true"] .price { color: var(--bronze); font-weight: 600; }
.chip.flash { background: rgba(169, 130, 74, 0.14); }

/* ---------- Quote ---------- */
#s-summary {
  background: var(--porcelain);
  border: 1px solid var(--hair);
  outline: 1px solid var(--hair-soft); outline-offset: -9px;
  border-radius: var(--radius);
  padding: 32px 28px 28px;
}
#s-summary h2 { margin-bottom: 10px; }
.map { display: flex; justify-content: center; gap: 18px; margin: 0 auto 18px; }
.map { align-items: center; }
.map svg { width: 104px; height: 326px; }
.map #map-face { overflow: hidden; clip-path: ellipse(50% 50%); width: 150px; height: 196px; border: 1px solid var(--gilt); border-radius: 50%; background: #fffdf9; }
@media (max-width: 400px) { .map { gap: 10px; } .map svg { width: 86px; height: 270px; } .map #map-face { width: 112px; height: 146px; } }
.empty { color: var(--muted); text-align: center; margin: 0 0 8px; }
.lines { list-style: none; padding: 0; margin: 0 0 18px; }
.lines li { display: flex; justify-content: space-between; gap: 14px; padding: 9px 0; border-bottom: 1px solid var(--hair-soft); }
.lines li span:last-child { font-variant-numeric: tabular-nums; white-space: nowrap; }
.lines li.pkg { color: var(--bronze); }
.total { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.total span { font-size: 1.05rem; }
.total strong { font-family: var(--display); font-weight: 400; font-size: 2.5rem; line-height: 1; color: var(--bronze); white-space: nowrap; }

/* The series offer: a soft gold card that carries the strongest emphasis on the page */
.series {
  position: relative; margin: 28px 0 18px; padding: 22px 20px 20px;
  border: 1px solid var(--gilt); border-radius: var(--radius);
  background: radial-gradient(120% 90% at 100% 0%, #fffaf1 0%, #f6ecdc 55%, #efe0c6 100%);
  box-shadow: 0 14px 34px -22px rgba(110, 83, 48, 0.6), inset 0 0 0 4px rgba(255, 250, 241, 0.7);
}
.series h3 { font-size: 1.3rem; margin-bottom: 14px; }
.series .prices { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 18px; }
.series .prices s {
  position: relative; text-decoration: none; font-family: var(--display); font-size: 1.6rem;
  color: var(--muted); white-space: nowrap; font-variant-numeric: tabular-nums;
}
.series .prices s::after {
  content: ""; position: absolute; inset-inline: -4px; top: 50%; height: 2px;
  background: var(--gilt-deep); border-radius: 2px; transform: rotate(-8deg);
}
.series .big {
  /* shrinks on narrow phones so the price line never overflows */
  font-family: var(--display); font-size: clamp(1.7rem, 7.6vw, 2.6rem); line-height: 1.05;
  color: var(--bronze); white-space: nowrap; font-variant-numeric: tabular-nums;
}
.series .in-series { margin: 10px 0 0; color: var(--muted); }
.series .in-series strong { color: var(--ink); font-weight: 600; font-variant-numeric: tabular-nums; }
.series .save {
  display: inline-block; margin-top: 14px; padding: 6px 16px; border-radius: 999px;
  background: var(--gilt-deep); color: #fffaf1; font-weight: 600; font-size: 1rem;
}
.series ul { margin: 14px 0 0; padding-inline-start: 18px; font-size: 0.95rem; color: var(--muted); }
.series li::marker { color: var(--gilt); }

.consult { margin: 22px 0 16px; padding: 14px 18px 12px; border: 1.5px solid var(--gilt); border-radius: var(--radius); background: #fffaf1; }
.consult-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 12px; margin-bottom: 6px; }
.consult-head strong { font-family: var(--display); font-size: 1.2rem; font-weight: 700; color: var(--bronze); }
.consult .fee { padding: 4px 14px; border-radius: 999px; background: var(--gilt-deep); color: #fffaf1; font-weight: 700; font-size: 0.95rem; }
.consult p { margin: 0; font-size: 0.92rem; color: var(--muted); }

.btn {
  display: flex; align-items: center; justify-content: center; width: 100%;
  background: var(--gilt-deep); color: #fff; text-decoration: none; border: 1px solid var(--gilt-deep);
  border-radius: 999px; padding: 14px 20px; min-height: 52px; cursor: pointer;
  font-size: 1.02rem; font-weight: 600; letter-spacing: 0.01em; text-align: center;
  transition: background-color 0.2s ease, opacity 0.2s ease;
}
.btn:hover { background: var(--bronze); border-color: var(--bronze); }
.btn:disabled { opacity: 0.38; cursor: not-allowed; background: var(--gilt-deep); }
.btn + .btn { margin-top: 10px; }
.btn.outline { background: transparent; color: var(--bronze); border-color: var(--gilt); }
.btn.outline:hover { background: rgba(169, 130, 74, 0.1); }
/* Deal banner: gold-framed, bold, glows a few times when it appears (under 5 s, so no pause control is needed) */
.promo {
  position: relative; overflow: hidden;
  font-family: var(--display); font-size: 1.15rem; font-weight: 700; color: var(--bronze); text-align: center; line-height: 1.45;
  margin: 20px 0 0; padding: 12px 18px;
  border: 1.5px solid var(--gilt); border-radius: var(--radius);
  background: linear-gradient(135deg, #fbf3e4, #f1e2c6 50%, #fbf3e4);
  box-shadow: 0 0 0 0 rgba(169, 130, 74, 0);
  animation: promo-glow 1.5s ease-in-out 3;
}
.promo-main { display: block; }
.promo-main::before { content: "✦ "; color: var(--gilt); }
.promo-main::after { content: " ✦"; color: var(--gilt); }
.promo-note { display: block; margin-top: 2px; font-family: var(--text); font-size: 0.82em; font-weight: 500; }
@keyframes promo-glow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(169, 130, 74, 0); transform: scale(1); }
  50% { box-shadow: 0 0 18px 4px rgba(169, 130, 74, 0.55); transform: scale(1.025); }
}
.text-btn {
  display: block; margin: 22px auto 0; background: none; border: 0; cursor: pointer;
  color: var(--bronze); text-decoration: underline; text-decoration-color: var(--gilt); text-underline-offset: 4px;
  min-height: 44px;
}

/* ---------- Choice sheet ---------- */
.sheet-backdrop { position: fixed; inset: 0; background: rgba(47, 39, 33, 0.38); z-index: 20; }
.sheet {
  position: fixed; z-index: 21; left: 50%; bottom: 0; transform: translateX(-50%);
  width: min(460px, 100%); background: var(--porcelain);
  border-radius: 28px 28px 0 0; border-top: 1px solid var(--hair);
  padding: 24px 20px calc(20px + env(safe-area-inset-bottom));
}
.sheet h3 { font-size: 1.5rem; margin-bottom: 8px; }
.sheet .chip[aria-pressed="true"] .mark { box-shadow: inset 0 0 0 2.5px var(--porcelain); }
.btn-ghost {
  width: 100%; margin-top: 14px; min-height: 48px; cursor: pointer;
  background: var(--gilt-deep); color: #fff; border: 0; border-radius: 999px; font-weight: 600;
}

/* ---------- Bottom bar (step 3) ---------- */
.bar {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 10;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  background: var(--porcelain); border-top: 1px solid var(--hair);
  border-radius: var(--radius) var(--radius) 0 0; box-shadow: 0 -10px 30px -20px rgba(110, 83, 48, 0.35);
  padding: 10px max(16px, calc((100% - 568px) / 2)) calc(10px + env(safe-area-inset-bottom));
}
.bar span { font-family: var(--display); font-size: 1.25rem; color: var(--bronze); }
.btn-small {
  background: var(--gilt-deep); color: #fff; border: 0; cursor: pointer;
  border-radius: 999px; padding: 10px 24px; min-height: 44px; font-weight: 600;
  margin-inline-start: auto;
}

footer { text-align: center; color: var(--muted); font-size: 0.85rem; padding: 0 16px 96px; max-width: 70ch; margin: 0 auto; }
footer p { margin: 4px 0; }
footer a { color: var(--bronze); text-underline-offset: 3px; }
footer .legal-links { margin-top: 10px; }

/* ---------- Legal pages (accessibility, privacy) ---------- */
.legal { max-width: 720px; margin: 0 auto; padding: 20px 20px 64px; }
.legal-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.legal-head a { color: var(--bronze); }
.legal-head img { width: 56px; height: 56px; border-radius: 50%; background: var(--porcelain); box-shadow: 0 0 0 1px var(--hair); padding: 4px; }
.legal h1 { font-size: clamp(1.8rem, 5vw, 2.4rem); margin: 6px 0 4px; }
.legal .updated { color: var(--muted); margin: 0 0 22px; font-size: 0.92rem; }
.legal h2 { font-size: 1.45rem; margin: 28px 0 8px; color: var(--bronze); font-weight: 400; }
.legal a { color: var(--bronze); text-underline-offset: 3px; }
.legal p, .legal li { line-height: 1.7; }
.legal ul { padding-inline-start: 22px; }
.legal .draft { border: 1px dashed var(--gilt-deep); border-radius: var(--radius); background: #f6e6c8; padding: 12px 16px; font-weight: 600; }
.legal .todo { background: #f6e6c8; color: var(--bronze); padding: 0 6px; border-radius: 6px; font-weight: 600; }

@media (max-width: 480px) {
  body { font-size: 1rem; }
  #s-summary { padding: 26px 12px 22px; }
  .tab { font-size: 1.02rem; }
  body[data-step="intro"] .logo-wrap { width: 168px; }
  .gender-options { gap: 22px; }
  .gender-card svg { width: 124px; height: 124px; }
  /* Front/back becomes a small pill switch above the drawing */
  .view-toggle {
    position: static; flex-direction: row; justify-content: center; gap: 0;
    width: max-content; margin: 0 auto 6px; padding: 3px;
    border: 1px solid var(--hair); border-radius: 999px; background: var(--porcelain);
  }
  .view-toggle button { border: 0; border-radius: 999px; padding: 5px 18px; font-size: 1rem; text-align: center; }
  .view-toggle button[aria-pressed="true"] { background: var(--gilt-deep); color: #fff; padding-inline-end: 18px; }
}

/* A missed field shakes and flashes gold */
.note-box.warn { border-color: var(--gilt-deep); color: var(--bronze); }
.nudge { animation: nudge-shake 0.5s ease, nudge-flash 1.2s ease; }
.age input.nudge { animation: nudge-shake 0.5s ease, nudge-line 1.2s ease; }
@keyframes nudge-shake {
  0%, 100% { transform: translateX(0); }
  20%, 60% { transform: translateX(-8px); }
  40%, 80% { transform: translateX(8px); }
}
@keyframes nudge-flash {
  0%, 50%, 100% { box-shadow: 0 0 0 0 rgba(169, 130, 74, 0); }
  25%, 75% { box-shadow: 0 0 0 6px rgba(169, 130, 74, 0.35); border-radius: var(--radius); }
}
@keyframes nudge-line {
  0%, 50%, 100% { border-color: var(--gilt); background: var(--porcelain); }
  25%, 75% { border-color: var(--gilt-deep); background: #f6e6c8; box-shadow: 0 0 0 5px rgba(169, 130, 74, 0.25); }
}

@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }

/* ---------- Areas screen: drawing and list fit one screen where possible ---------- */
body[data-step="areas"] main { padding-top: 0; padding-bottom: 0; }
body[data-step="areas"] footer { padding-top: 96px; }
#s-areas:not([hidden]) {
  display: flex; flex-direction: column;
  min-height: calc(100vh - 60px - 72px);
  min-height: calc(100svh - 60px - 72px);
}
#s-areas .tabs { margin-bottom: 6px; }
#s-areas .tab { font-size: 1.02rem; min-height: 38px; padding: 5px 4px 8px; }
#s-areas .stage { flex: 1 0 auto; display: flex; flex-direction: column; }
#s-areas #fig { flex: 1 0 186px; height: auto; min-height: 186px; }
#s-areas .hint { font-size: 0.88rem; margin: 2px 0; }
#s-areas .chip { padding: 6px 4px; min-height: 36px; font-size: 0.97rem; }
/* On the areas screen the banner sits above the list and glows only when app.js adds .glow */
#s-areas .promo { font-size: 1.05rem; margin: 2px 0 10px; padding: 9px 14px; animation: none; }
#s-areas .promo.glow { animation: promo-glow 1.5s ease-in-out 3; }

/* Wide screens: the drawing beside the list */
@media (min-width: 860px) {
  body[data-step="areas"] main { max-width: 1120px; }
  #s-areas:not([hidden]) {
    display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 40px;
    grid-template-rows: auto auto 1fr; align-content: start;
  }
  #s-areas .tabs { grid-column: 1 / -1; }
  #s-areas .stage { grid-column: 1; grid-row: 2 / 4; height: calc(100vh - 60px - 72px - 64px); min-height: 380px; }
  #s-areas .hint { grid-column: 2; grid-row: 2; margin-top: 10px; }
  #s-areas .list { grid-column: 2; grid-row: 3; }
  body[data-step="areas"] .bar { padding-inline: max(16px, calc((100% - 1088px) / 2)); }
}
/* Phones: the front/back switch sits in the empty top corner of the drawing */
@media (max-width: 859px) {
  #s-areas .view-toggle { position: absolute; top: 2px; inset-inline-end: 0; margin: 0; }
  #s-areas .view-toggle button { padding: 4px 12px; font-size: 0.9rem; }
  #s-areas .view-toggle button[aria-pressed="true"] { padding-inline-end: 12px; }
  /* Room for the deal banner above the list, so the list still fits on one phone screen */
  #s-areas .promo { font-size: 0.98rem; line-height: 1.3; margin: 2px 0 6px; padding: 6px 12px; }
  #s-areas .chip { min-height: 33px; padding-block: 4px; }
  /* Larger text needs the room: the drawing gives up a little height on phones */
  #s-areas #fig { flex-basis: 128px; min-height: 128px; }
}

/* ---------- Accessibility button and panel (a11y.js) ---------- */
.a11y-btn {
  position: fixed; z-index: 30; bottom: 16px; inset-inline-end: 14px;
  width: 50px; height: 50px; padding: 0; border: 0; border-radius: 50%; cursor: pointer;
  display: grid; place-items: center;
  background: radial-gradient(circle at 50% 38%, #fffefb 0%, var(--porcelain) 55%, #f2ebe1 100%);
  box-shadow: 0 0 0 1px var(--gilt), 0 0 0 4px rgba(250, 247, 242, 0.85), 0 0 0 5px var(--hair),
    0 12px 24px -12px rgba(110, 83, 48, 0.55);
  transition: bottom 0.25s ease, box-shadow 0.2s ease;
}
.a11y-btn svg { width: 28px; height: 28px; fill: none; stroke: var(--gilt-deep); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.a11y-btn svg circle { fill: var(--gilt-deep); stroke: none; }
.a11y-btn:hover, .a11y-btn[aria-expanded="true"] {
  box-shadow: 0 0 0 1.5px var(--gilt-deep), 0 0 0 4px rgba(250, 247, 242, 0.9), 0 0 0 5.5px var(--gilt),
    0 0 20px 2px rgba(214, 172, 102, 0.35);
}
.a11y-btn:focus-visible { outline: 2px solid var(--gilt-deep); outline-offset: 6px; }

.a11y-panel {
  position: fixed; z-index: 31; bottom: 78px; inset-inline-end: 14px;
  width: min(360px, calc(100vw - 28px));
  background: var(--porcelain); color: var(--ink);
  border: 1px solid var(--gilt); border-radius: var(--radius);
  outline: 1px solid var(--hair-soft); outline-offset: -7px;
  box-shadow: 0 22px 44px -22px rgba(110, 83, 48, 0.6);
  padding: 14px 18px 12px; font-size: 1rem;
}
.a11y-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; }
.a11y-head h2 { font-size: 1.45rem; }
.a11y-x {
  width: 40px; height: 40px; margin-inline-end: -8px; border: 0; background: none; cursor: pointer;
  font-size: 1.7rem; line-height: 1; color: var(--bronze); border-radius: 50%;
}
.a11y-size { padding: 6px 0 12px; border-bottom: 1px solid var(--hair-soft); }
.a11y-size p { margin: 0 0 8px; }
.a11y-size div { display: flex; gap: 8px; }
.a11y-size button {
  flex: 1; height: 46px; cursor: pointer; border-radius: 999px;
  border: 1px solid var(--hair); background: none; color: var(--bronze);
  font-family: var(--display); line-height: 1;
}
.a11y-size button[aria-pressed="true"] { background: var(--gilt-deep); border-color: var(--gilt-deep); color: #fff; }
.a11y-row {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%;
  min-height: 52px; padding: 6px 0; border: 0; border-bottom: 1px solid var(--hair-soft);
  background: none; cursor: pointer; text-align: start;
}
.a11y-switch {
  flex: none; position: relative; width: 44px; height: 26px; border-radius: 999px;
  border: 1px solid var(--hair); background: var(--porcelain); transition: background-color 0.2s ease;
}
.a11y-switch::after {
  content: ""; position: absolute; top: 3px; inset-inline-start: 3px; width: 18px; height: 18px;
  border-radius: 50%; background: #c9b79c; transition: inset-inline-start 0.2s ease, background-color 0.2s ease;
}
.a11y-row[aria-checked="true"] .a11y-switch { background: var(--gilt-deep); border-color: var(--gilt-deep); }
.a11y-row[aria-checked="true"] .a11y-switch::after { inset-inline-start: 21px; background: #fff; }
.a11y-row[aria-checked="true"] > span:first-child { color: var(--bronze); font-weight: 600; }
.a11y-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-top: 8px; }
.a11y-foot button {
  min-height: 40px; border: 0; background: none; cursor: pointer; padding: 0;
  color: var(--muted); text-decoration: underline; text-decoration-color: var(--hair); text-underline-offset: 4px;
}
.a11y-foot a { color: var(--bronze); text-underline-offset: 4px; min-height: 40px; display: inline-flex; align-items: center; }
.a11y-panel button:focus-visible, .a11y-panel a:focus-visible { outline: 2px solid var(--gilt-deep); outline-offset: 2px; }

/* Settings applied to the whole page */
html.a11y-text-1 { font-size: calc(clamp(22px, 1vw + 9px, 26px) * 1.15); }
html.a11y-text-2 { font-size: calc(clamp(22px, 1vw + 9px, 26px) * 1.3); }

html.a11y-contrast {
  --linen: #ffffff; --porcelain: #ffffff; --skin: #ffffff;
  --gilt: #6e5330; --gilt-deep: #4f3a1f; --bronze: #3e2d17;
  --ink: #000000; --muted: #2f2721;
  --hair: rgba(62, 45, 23, 0.75); --hair-soft: rgba(62, 45, 23, 0.45);
}
html.a11y-contrast body { background: #fff; }
html.a11y-contrast .privacy-note, html.a11y-contrast .series { background: #fff; }
html.a11y-contrast .chip .leader { opacity: 1; }

html.a11y-links a { text-decoration: underline !important; text-decoration-thickness: 2px !important; text-underline-offset: 4px; font-weight: 600; }
html.a11y-links .btn, html.a11y-links .text-btn { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; }

html.a11y-still *, html.a11y-still *::before, html.a11y-still *::after { transition: none !important; animation: none !important; }
/* Without its animation the line drawing must show at once */
html.a11y-still .draw-in .fig-line path, html.a11y-still .draw-in .detail, html.a11y-still .draw-in .head-hair { stroke-dasharray: none; stroke-dashoffset: 0; }
/* On the areas screen the list fills the view, so the button moves up into the slim header, beside the small logo */
body[data-step="areas"] .a11y-btn {
  position: absolute; top: 8px; bottom: auto; inset-inline-end: auto; inset-inline-start: 108px;
  width: 44px; height: 44px;
}
body[data-step="areas"] .a11y-btn svg { width: 24px; height: 24px; }
body[data-step="areas"] .a11y-panel { position: absolute; top: 62px; bottom: auto; inset-inline-end: auto; inset-inline-start: 12px; }
footer .credit { margin-top: 14px; font-size: 0.8rem; opacity: 0.85; }
.series a { color: var(--bronze); text-decoration-color: var(--gilt); text-underline-offset: 3px; }

/* Quote split by body part */
#s-summary .group-title {
  display: flex; justify-content: space-between; align-items: baseline; gap: 12px;
  font-size: 1.25rem; margin: 18px 0 2px; padding-bottom: 4px;
  border-bottom: 1px solid var(--gilt);
}
.lines li.subtotal { border-bottom: 0; padding-top: 7px; font-weight: 600; color: var(--bronze); }
/* Body part with free areas: full price, gifts struck through, saving, price after it */
.lines li.sum-full { padding-top: 10px; padding-bottom: 4px; border-bottom: 0; font-weight: 600; }
.lines li.sum-gift { padding-block: 2px; border-bottom: 0; font-size: 0.93rem; color: var(--muted); }
.lines li.sum-gift s { text-decoration-color: var(--gilt); text-decoration-thickness: 1.5px; }
.lines li.sum-save { padding-block: 4px 6px; font-size: 0.93rem; font-weight: 600; color: var(--gilt-deep); }
#s-summary .deal-hint {
  margin: 4px 0 16px; padding: 12px 16px; border: 1px dashed var(--gilt); border-radius: var(--radius);
  color: var(--bronze); font-size: 0.95rem; line-height: 1.5;
}
#s-summary .deal-hint p { margin: 0 0 6px; }
#s-summary .deal-hint .link {
  background: none; border: 0; padding: 0; font: inherit; font-weight: 600; color: var(--bronze); cursor: pointer;
  text-decoration: underline; text-decoration-color: var(--gilt); text-underline-offset: 3px;
}
#s-summary .total { border-top: 1px solid var(--gilt); padding-top: 14px; }
#s-summary .group-title + .lines { margin-bottom: 6px; }
#s-summary .lines:last-of-type { margin-bottom: 18px; }

/* Deal terms: the line the banner's asterisk points to */
.promo .star { font-size: 0.75em; color: var(--gilt-deep); margin-inline-start: 1px; }
.deal-terms { margin: 8px 2px 4px; font-size: 0.8rem; line-height: 1.55; color: var(--muted); }
.deal-terms a { font-weight: 700; color: var(--bronze); text-decoration: underline; text-decoration-color: var(--gilt); text-underline-offset: 3px; }

/* Series card under a body part's summary on the areas screen */
.sec-series {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 14px;
  margin: 6px 0 10px; padding: 10px 16px;
  border: 1px solid var(--gilt); border-radius: var(--radius);
  background: radial-gradient(120% 120% at 100% 0%, #fffaf1 0%, #f6ecdc 55%, #efe0c6 100%);
  box-shadow: 0 10px 24px -18px rgba(110, 83, 48, 0.6), inset 0 0 0 3px rgba(255, 250, 241, 0.7);
}
.sec-series .label { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; font-weight: 600; color: var(--bronze); }
.sec-series .pill {
  padding: 2px 12px; border-radius: 999px; background: var(--gilt-deep); color: #fffaf1;
  font-size: 0.85rem; font-weight: 600; white-space: nowrap;
}
.sec-series .note { font-size: 0.82rem; font-weight: 500; color: var(--muted); }
.sec-series .price { display: flex; align-items: baseline; gap: 10px; white-space: nowrap; }
.sec-series .price s {
  position: relative; text-decoration: none; font-family: var(--display); font-size: 1.15rem; color: var(--muted); font-variant-numeric: tabular-nums;
}
.sec-series .price s::after {
  content: ""; position: absolute; inset-inline: -3px; top: 50%; height: 1.5px;
  background: var(--gilt-deep); border-radius: 2px; transform: rotate(-8deg);
}
.sec-series .price strong { font-family: var(--display); font-weight: 400; font-size: 1.55rem; line-height: 1.1; color: var(--bronze); font-variant-numeric: tabular-nums; }

/* Section summary under the list on the areas screen */
#s-areas .sec-sum { margin: 4px 0 8px; padding-top: 2px; border-top: 1px solid var(--gilt); }
#s-areas .sec-sum li { font-size: 0.95rem; }

/* Deal note that pops up above the bottom bar on the areas screen */
.deal-toast {
  position: fixed; z-index: 25; inset-inline: 16px; bottom: 92px; margin-inline: auto; max-width: 460px;
  display: flex; align-items: center; gap: 12px; padding: 12px 14px 12px 18px;
  border: 1.5px solid var(--gilt); border-radius: var(--radius);
  background: linear-gradient(135deg, #fbf3e4, #f1e2c6 50%, #fbf3e4); color: var(--bronze);
  box-shadow: 0 16px 36px -14px rgba(110, 83, 48, 0.65), 0 0 18px 2px rgba(169, 130, 74, 0.35);
  opacity: 0; transform: translateY(14px) scale(0.98); transition: opacity 0.3s ease, transform 0.3s ease;
}
.deal-toast.on { opacity: 1; transform: none; }
.deal-toast > div { flex: 1; display: flex; flex-direction: column; gap: 2px; text-align: center; }
.deal-toast strong { font-family: var(--display); font-size: 1.1rem; font-weight: 700; }
.deal-toast strong::before { content: "✦ "; color: var(--gilt); }
.deal-toast span { font-size: 0.85rem; }
.deal-toast button {
  flex: none; width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--gilt);
  background: rgba(255, 250, 241, 0.8); color: var(--bronze); font-size: 1.2rem; line-height: 1; cursor: pointer;
}
body:not([data-step="areas"]) .deal-toast { display: none; }
@media (max-width: 480px) { .deal-toast strong { font-size: 1rem; } .deal-toast span { font-size: 0.8rem; } }

/* ---------- Quote table on the summary: full price, single treatment, series ---------- */
.quote-wrap { margin: 18px 0 6px; border: 1px solid var(--gilt); border-radius: var(--radius); overflow: hidden; background: #fffdf9; }
.quote { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.quote th, .quote td { padding: 9px 10px; text-align: start; font-weight: 400; vertical-align: middle; }
.quote td { text-align: center; white-space: nowrap; }
.quote thead th { font-size: 0.8rem; line-height: 1.25; color: var(--muted); border-bottom: 1px solid var(--gilt); vertical-align: bottom; }
.quote thead th:not(:first-child) { text-align: center; }
.quote tbody tr:not(.grp) + tr:not(.grp) > * { border-top: 1px solid var(--hair-soft); }
.quote tr.grp th { padding: 14px 10px 4px; font-family: var(--display); font-size: 1.08rem; color: var(--bronze); }
.quote tr.sub > * { font-weight: 600; color: var(--bronze); }
.quote .c-full { color: var(--muted); }
.quote td.c-full { text-decoration: none; }
.quote td.off { color: var(--bronze); font-weight: 600; }
.quote .gift { display: inline-block; padding: 1px 9px; border-radius: 999px; background: var(--gilt-deep); color: #fffaf1; font-size: 0.78rem; font-weight: 600; }
/* the series column: the best deal, in gold */
.quote .c-series { background: linear-gradient(180deg, #f7ecd8, #f1e0c2); }
.quote td.c-series { color: var(--bronze); font-weight: 700; }
.quote thead .c-series { color: var(--bronze); font-weight: 700; padding-top: 6px; }
.quote .best { display: block; width: max-content; margin: 0 auto 4px; padding: 1px 8px; border-radius: 999px; background: var(--gilt-deep); color: #fffaf1; font-size: 0.68rem; font-weight: 600; }
.quote tfoot tr > * { border-top: 1.5px solid var(--gilt); padding-block: 12px; font-weight: 700; }
.quote tfoot th { color: var(--bronze); }
.quote tfoot td.c-series { font-family: var(--display); font-size: 1.35rem; font-weight: 400; }
.saves { display: grid; gap: 8px; margin: 12px 0 4px; }
.saves p { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin: 0; padding: 9px 16px; border-radius: 999px; border: 1px solid var(--gilt); color: var(--bronze); font-size: 0.95rem; }
.saves strong { font-variant-numeric: tabular-nums; white-space: nowrap; }
.saves p.hi { background: var(--gilt-deep); border-color: var(--gilt-deep); color: #fffaf1; font-weight: 600; }
.saves p.hi strong { font-size: 1.1rem; }
@media (max-width: 480px) {
  .quote th, .quote td { padding: 8px 4px; font-size: 0.86rem; }
  .quote tr.sub .sub-deal { font-size: 0.72rem; font-weight: 400; line-height: 1.3; }
  .quote thead th { font-size: 0.72rem; }
  .quote tr.grp th { font-size: 1rem; }
  .quote tfoot td.c-series { font-size: 1.15rem; }
  .quote .gift { padding: 1px 6px; font-size: 0.7rem; }
  .quote .best { font-size: 0.62rem; padding: 1px 6px; }
  .quote th[scope="row"] { hyphens: auto; }
}

/* Totals stand out: each body part's subtotal and the treatment total */
.quote tr.grp th { background: rgba(169, 130, 74, 0.1); border-top: 1px solid var(--gilt); padding-block: 10px 8px; font-weight: 700; }
.quote tbody tr.grp:first-child th { border-top: 0; }
.quote tr.sub > * { background: rgba(169, 130, 74, 0.16); font-weight: 700; font-size: 1rem; border-top: 1px solid var(--gilt) !important; }
.quote tr.sub td.c-series { background: #e9d4ad; }
.quote tfoot tr > * { background: var(--gilt-deep); color: #fffaf1 !important; border-top: 0; font-size: 1.05rem; }
.quote tfoot th { color: #fffaf1; }
.quote tfoot td.c-full { color: #ead9bb !important; }
.quote tfoot td.c-series { background: #5e4422; font-family: var(--display); font-size: 1.5rem; font-weight: 400; }
@media (max-width: 480px) {
  .quote tr.sub > * { font-size: 0.9rem; }
  .quote tfoot tr > * { font-size: 0.92rem; }
  .quote tfoot td.c-series { font-size: 1.2rem; }
}

/* ---------- Quote date, and the quote saved as PDF (print) ---------- */
.quote-date { margin: -4px 0 6px; text-align: center; font-size: 0.88rem; color: var(--muted); }
.print-head { display: none; }
@media print {
  @page { margin: 12mm; }
  * { -webkit-print-color-adjust: exact; print-color-adjust: exact; box-shadow: none !important; animation: none !important; }
  html, body { background: #fff !important; }
  html { font-size: 16px !important; }
  .hero, .bar, .a11y-btn, .a11y-panel, .sheet, .sheet-backdrop, .deal-toast, #edit,
  #summary-body .btn, .deal-hint, footer #t-privacy, footer .legal-links, footer .credit, #s-summary > h2 { display: none !important; }
  main { max-width: none; padding: 0; }
  #s-summary { border: 0 !important; background: none !important; padding: 0 !important; }
  .print-head { display: flex; align-items: center; gap: 14px; padding-bottom: 10px; margin-bottom: 8px; border-bottom: 1.5px solid var(--gilt); }
  .print-head img { width: 64px; height: 64px; border-radius: 50%; object-fit: contain; }
  .print-head div { display: flex; flex-direction: column; gap: 2px; }
  .print-head strong { font-family: var(--display); font-size: 1.4rem; color: var(--bronze); }
  .print-head span { font-size: 0.9rem; color: var(--muted); }
  .quote-date { text-align: start; margin: 0 0 4px; color: var(--ink); font-weight: 600; }
  .quote-wrap, .saves, .series, .consult, .map { break-inside: avoid; }
  /* the chosen areas on the figure, front and back, kept small */
  #s-summary .map { margin: 4px 0 6px; }
  #s-summary .map svg { height: 230px !important; width: 74px !important; }
  #s-summary .map #map-face { height: 160px !important; width: 122px !important; }
  footer { padding: 10px 0 0 !important; margin: 0; }
}
.quote .sub-deal { display: block; margin-top: 2px; font-size: 0.78rem; font-weight: 600; color: var(--gilt-deep); }
/* A part where the 2+1 single price beats the series: the single cell is the highlight */
/* The cheaper option in each total row: framed */
.quote tr.sub td.best-cell { background: #e9d4ad; color: var(--bronze); font-weight: 700; box-shadow: inset 0 0 0 2px var(--gilt-deep); }
.quote tr.sub td:not(.best-cell):not(.c-full) { color: var(--muted); font-weight: 400; }
.quote tr.sub td.c-series:not(.best-cell) { background: rgba(169, 130, 74, 0.08); }
.quote tfoot td.best-cell { box-shadow: inset 0 0 0 2px #f3e3c3; }
.quote thead .c-single .best { margin-bottom: 4px; }
.series li.deal-best { color: var(--bronze); font-weight: 600; }
