/* Ayuluxir microneedling LP (2026-11-20). Brand tokens: see build-report.md "Brand tokens".
   Accent = Ayuluxir gold #c5ad7d (ayuluxir.co.uk --primary-color). On light surfaces the resolver's
   4.5:1 version #8a713e carries buttons with white text; on dark surfaces the original gold carries
   buttons with chocolate text. Base = chocolate from the site's --secondary-color #573a29. */
:root {
  --ink: #1a110c;
  --ink-2: #241812;
  --brown: #573a29;
  --cream: #f5ecdf;
  --paper: #fbf7f0;
  --text: #2a1c14;
  --muted: #6b5747;
  --on-dark: #f3e9d8;
  --on-dark-muted: #cbbba6;
  --gold: #c5ad7d;
  --accent: #8a713e;
  --accent-dark: #604e2b;
  --line-dark: rgba(197, 173, 125, 0.28);
  --line-light: rgba(87, 58, 41, 0.16);
  --glow: #ff3b1f;
  --radius: 4px;
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Jost", "Helvetica Neue", Arial, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--text);
  font-family: var(--sans); font-size: 17px; line-height: 1.6;
  font-variant-numeric: lining-nums; -webkit-font-smoothing: antialiased;
}
img, video { display: block; max-width: 100%; }
img { height: auto; }
[hidden] { display: none !important; }
.picker-status:empty, .days:empty, .slots:empty { display: none; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1.08; margin: 0; letter-spacing: -0.01em; font-variant-numeric: lining-nums; }
h2 { font-size: clamp(34px, 5.4vw, 54px); }
h3 { font-size: 26px; }
p { margin: 0 0 1em; }
button, input { font: inherit; font-variant-numeric: lining-nums; }
.wrap { width: min(1160px, 100% - 40px); margin: 0 auto; }
.eyebrow { font-size: 13px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold); font-weight: 500; margin: 0 0 14px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.spark { display: inline-block; width: 0.7em; height: 0.7em; vertical-align: 0.05em; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 14px 28px; border: 0; border-radius: var(--radius);
  background: var(--accent); color: #fff; font-weight: 500; font-size: 17px; letter-spacing: 0.02em;
  cursor: pointer; text-decoration: none; transition: background 0.2s;
}
.btn:hover { background: var(--accent-dark); }
.btn-gold { background: var(--gold); color: var(--ink); }
.btn-gold:hover { background: #d6c194; }
.btn[disabled] { opacity: 0.6; cursor: wait; }

/* ---------- Top bar ---------- */
.topbar { background: var(--brown); color: var(--on-dark); font-size: 14px; text-align: center; padding: 9px 16px; }
.topbar strong { color: var(--gold); font-weight: 500; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden; color: var(--on-dark);
  background:
    radial-gradient(60% 50% at 78% 38%, rgba(255, 59, 31, 0.16), transparent 70%),
    radial-gradient(50% 60% at 10% 0%, rgba(197, 173, 125, 0.14), transparent 70%),
    var(--ink);
  padding: 22px 0 64px;
}
.hero-nav { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.hero-nav img { width: 104px; height: auto; }
.hero-nav .rating { font-size: 14px; color: var(--on-dark-muted); text-align: right; }
.hero-nav .rating b { color: var(--gold); font-weight: 500; }
.hero-grid { display: grid; grid-template-columns: 1fr; gap: 22px; margin-top: 22px; align-items: start; }
.hero h1 { font-size: clamp(42px, 7.4vw, 76px); color: #fff8ec; }
.hero h1 em { font-style: italic; color: var(--gold); }
.hero .lede { color: var(--on-dark-muted); font-size: 18px; margin: 18px 0 0; max-width: 34em; }
.price-row { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 16px; margin: 26px 0 6px; }
.price-now { font-family: var(--serif); font-size: 88px; line-height: 0.9; color: var(--gold); font-weight: 500; font-variant-numeric: lining-nums; }
.price-was { font-size: 20px; color: var(--on-dark-muted); white-space: nowrap; }
.price-was s { text-decoration-thickness: 1px; }
.price-save { font-size: 15px; color: var(--ink); background: var(--gold); padding: 3px 10px; border-radius: 2px; white-space: nowrap; }
.bonus { display: flex; align-items: center; gap: 12px; margin: 16px 0 0; padding: 14px 16px; border: 1px solid var(--line-dark); border-radius: var(--radius); max-width: 30em; }
.bonus .dot { flex: 0 0 auto; width: 12px; height: 12px; border-radius: 50%; background: var(--glow); box-shadow: 0 0 14px 4px rgba(255, 59, 31, 0.6); }
.bonus p { margin: 0; font-size: 16px; }
.bonus b { color: #fff8ec; font-weight: 500; }

.hero-media { position: relative; }
.arch {
  position: relative; aspect-ratio: 4 / 5; border-radius: 999px 999px var(--radius) var(--radius); overflow: hidden;
  border: 1px solid var(--line-dark); background: var(--ink-2);
}
.arch video, .arch img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 35%; }
.arch-tag {
  position: absolute; left: 50%; bottom: 16px; transform: translateX(-50%);
  background: rgba(26, 17, 12, 0.86); color: var(--on-dark); font-size: 14px; padding: 7px 14px; border-radius: 999px; white-space: nowrap;
  border: 1px solid var(--line-dark);
}

.form-card { background: var(--paper); color: var(--text); border-radius: var(--radius); padding: 26px 22px 22px; box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35); scroll-margin-top: 18px; }
.form-card h2 { font-size: 30px; }
.form-card .sub { color: var(--muted); font-size: 16px; margin: 6px 0 16px; }
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.fields .full { grid-column: 1 / -1; }
.field label { display: block; font-size: 14px; font-weight: 500; margin: 0 0 4px; color: var(--text); }
.field input {
  width: 100%; min-height: 50px; padding: 12px 14px; border: 1px solid #d8cbb8; border-radius: var(--radius);
  background: #fff; color: var(--text); font-size: 17px;
}
.field input:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: var(--accent); }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-card .btn { width: 100%; margin-top: 16px; }
.form-error { color: #a12a14; font-size: 15px; min-height: 0; margin: 10px 0 0; }
.form-error:empty { display: none; }
.consent { font-size: 13px; color: var(--muted); margin: 12px 0 0; line-height: 1.5; }
.consent a { color: var(--accent-dark); }
.scarcity { display: flex; gap: 8px; align-items: flex-start; font-size: 14px; color: var(--muted); margin: 12px 0 0; }
.scarcity svg { flex: 0 0 auto; margin-top: 3px; }

/* ---------- Marquee ---------- */
.marquee { background: var(--brown); color: var(--gold); overflow: hidden; border-top: 1px solid var(--line-dark); }
.marquee-track { display: flex; width: max-content; animation: marquee 38s linear infinite; }
.marquee span { font-family: var(--serif); font-size: 24px; letter-spacing: 0.14em; padding: 12px 22px; white-space: nowrap; }

/* ---------- Offer receipt ---------- */
.section { padding: 84px 0; }
.section-cream { background: var(--cream); }
.section-paper { background: var(--paper); }
.section-dark { background: var(--ink); color: var(--on-dark); }
.section-dark h2 { color: #fff8ec; }
.lead-text { font-size: 19px; color: var(--muted); max-width: 36em; }
.section-dark .lead-text { color: var(--on-dark-muted); }

.receipt-grid { display: grid; grid-template-columns: 1fr; gap: 36px; align-items: center; }
.receipt { background: #fff; border: 1px solid var(--line-light); border-radius: var(--radius); padding: 28px 24px; position: relative; }
.receipt::before { content: ""; position: absolute; inset: 8px; border: 1px solid var(--line-light); border-radius: 2px; pointer-events: none; }
.receipt h3 { font-size: 24px; margin-bottom: 14px; }
.r-line { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 14px 0; border-bottom: 1px dashed var(--line-light); }
.r-line .what b { display: block; font-weight: 500; }
.r-line .what span { font-size: 15px; color: var(--muted); }
.r-line .amt { text-align: right; white-space: nowrap; }
.r-line .amt s { color: var(--muted); font-size: 15px; margin-right: 6px; }
.r-free { color: var(--accent-dark); font-weight: 500; }
.r-total { display: flex; justify-content: space-between; align-items: baseline; padding-top: 16px; }
.r-total .big { font-family: var(--serif); font-size: 50px; color: var(--accent-dark); line-height: 1; }
.receipt .note { font-size: 14px; color: var(--muted); margin: 14px 0 0; }

/* ---------- Ritual steps ---------- */
.steps { display: grid; grid-template-columns: 1fr; gap: 22px; margin-top: 40px; counter-reset: step; }
.step { background: var(--paper); border: 1px solid var(--line-light); border-radius: var(--radius); overflow: hidden; }
.step img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; filter: saturate(0.94); }
.step .body { padding: 20px 20px 22px; }
.step .num { font-family: var(--serif); font-size: 18px; color: var(--accent); }
.step h3 { margin: 4px 0 8px; }
.step p { margin: 0; color: var(--muted); font-size: 16px; }

/* ---------- Light (signature) ---------- */
.light { position: relative; overflow: hidden; background: var(--ink); color: var(--on-dark); padding: 84px 0; transition: background 1.2s ease; }
.light::before {
  content: ""; position: absolute; inset: -20%; pointer-events: none; opacity: 0; transition: opacity 1.4s ease;
  background: radial-gradient(42% 42% at 50% 46%, rgba(255, 59, 31, 0.42), rgba(255, 59, 31, 0.12) 45%, transparent 70%);
}
.light.lit::before { opacity: 1; }
.light-grid { position: relative; display: grid; grid-template-columns: 1fr; gap: 40px; align-items: center; }
.emblem-wrap { width: min(78vw, 400px); aspect-ratio: 1; margin: 18px auto; position: relative; }
.emblem {
  position: absolute; inset: 14%; transform: rotate(45deg); border-radius: 30%; overflow: hidden;
  border: 2px solid var(--gold); box-shadow: 0 0 0 rgba(255, 59, 31, 0); transition: box-shadow 1.4s ease, border-color 1.4s ease;
}
.light.lit .emblem { border-color: #ffb199; box-shadow: 0 0 60px 6px rgba(255, 59, 31, 0.45); }
.emblem video {
  position: absolute; left: 50%; top: 50%; width: 142%; height: 142%; max-width: none; object-fit: cover;
  transform: translate(-50%, -50%) rotate(-45deg); filter: grayscale(1) brightness(0.45); transition: filter 1.4s ease;
}
.light.lit .emblem video { filter: none; }
.light h2 em { font-style: italic; color: var(--gold); }
.switch {
  display: inline-flex; align-items: center; gap: 14px; min-height: 52px; padding: 10px 20px 10px 10px; margin-top: 22px;
  background: transparent; color: var(--on-dark); border: 1px solid var(--line-dark); border-radius: 999px; cursor: pointer; font-size: 16px;
}
.switch .knob { width: 54px; height: 30px; border-radius: 999px; background: #3a2a20; position: relative; transition: background 0.4s; }
.switch .knob::after { content: ""; position: absolute; top: 4px; left: 4px; width: 22px; height: 22px; border-radius: 50%; background: var(--on-dark-muted); transition: transform 0.4s, background 0.4s; }
.light.lit .switch .knob { background: #7a1f10; }
.light.lit .switch .knob::after { transform: translateX(24px); background: var(--glow); box-shadow: 0 0 12px 3px rgba(255, 59, 31, 0.7); }
.light .free-tag { display: inline-block; margin-top: 18px; font-size: 15px; color: var(--ink); background: var(--gold); padding: 4px 12px; border-radius: 2px; }
.light .lead-text { color: var(--on-dark-muted); }
.light ul { padding: 0; margin: 18px 0 0; list-style: none; }
.light li { padding: 8px 0 8px 26px; position: relative; color: var(--on-dark-muted); }
.light li::before { content: ""; position: absolute; left: 4px; top: 17px; width: 9px; height: 9px; transform: rotate(45deg); border: 1px solid var(--gold); }

/* ---------- Concerns ---------- */
.concerns { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 30px; }
.concern { background: #fff; border: 1px solid var(--line-light); border-radius: var(--radius); padding: 18px 16px; font-size: 16px; }
.concern b { display: block; font-family: var(--serif); font-size: 22px; font-weight: 500; margin-bottom: 4px; }
.concern span { color: var(--muted); font-size: 15px; }
.split { display: grid; grid-template-columns: 1fr; gap: 36px; align-items: center; }
.split > img { border-radius: var(--radius); width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }

/* ---------- Reviews ---------- */
.rating-big { display: flex; align-items: center; gap: 16px; margin: 18px 0 30px; flex-wrap: wrap; }
.rating-big .score { font-family: var(--serif); font-size: 64px; line-height: 1; color: var(--accent-dark); }
.stars { color: var(--accent); letter-spacing: 3px; font-size: 20px; }
.reviews { display: grid; grid-template-columns: 1fr; gap: 16px; }
.review { background: #fff; border: 1px solid var(--line-light); border-radius: var(--radius); padding: 22px; margin: 0; }
.review blockquote { margin: 10px 0 14px; font-family: var(--serif); font-size: 22px; line-height: 1.35; }
.review figcaption { font-size: 15px; color: var(--muted); }
.review figcaption b { color: var(--text); font-weight: 500; }
.source-link { display: inline-block; margin-top: 22px; font-size: 16px; color: var(--accent-dark); }

/* ---------- Clinic ---------- */
.clinic-card { border: 1px solid var(--line-dark); border-radius: var(--radius); padding: 28px 24px; }
.clinic-card img { width: 150px; height: auto; margin-bottom: 18px; }
.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 18px; margin: 20px 0 0; padding: 0; list-style: none; font-size: 15px; color: var(--on-dark-muted); }
.facts li::before { content: "\2726"; color: var(--gold); margin-right: 8px; }

/* ---------- Suitability + FAQ ---------- */
.suit { background: #fff; border-left: 3px solid var(--accent); border-radius: var(--radius); padding: 20px 22px; margin-top: 28px; }
.suit h3 { font-size: 24px; margin-bottom: 8px; }
.suit ul { margin: 0; padding-left: 20px; color: var(--muted); }
.faq { margin-top: 34px; border-top: 1px solid var(--line-light); }
.faq details { border-bottom: 1px solid var(--line-light); }
.faq summary { cursor: pointer; list-style: none; padding: 18px 36px 18px 0; position: relative; font-weight: 500; min-height: 44px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 12px; font-size: 26px; color: var(--accent); font-weight: 400; }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { color: var(--muted); padding: 0 0 18px; margin: 0; }

/* ---------- Visit ---------- */
.visit-grid { display: grid; grid-template-columns: 1fr; gap: 28px; }
.map { width: 100%; aspect-ratio: 4 / 3; border: 0; border-radius: var(--radius); filter: sepia(0.15) saturate(0.9); }
.hours { width: 100%; border-collapse: collapse; font-size: 16px; margin-top: 12px; }
.hours td { padding: 7px 0; border-bottom: 1px solid var(--line-light); }
.hours td:last-child { text-align: right; }
.visit-grid address { font-style: normal; font-size: 18px; margin: 10px 0 14px; }

/* ---------- Final CTA + footer ---------- */
.final { text-align: center; }
.final .price-row { justify-content: center; }
.footer { background: var(--ink); color: var(--on-dark-muted); font-size: 14px; padding: 40px 0 110px; border-top: 1px solid var(--line-dark); }
.footer img { width: 92px; margin-bottom: 14px; }
.footer a { color: var(--on-dark); }
.footer p { margin: 0 0 6px; }

/* ---------- Sticky mobile CTA ---------- */
.sticky {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: var(--ink); border-top: 1px solid var(--line-dark); color: var(--on-dark);
  transform: translateY(110%); transition: transform 0.35s ease;
}
.sticky.show { transform: none; }
.sticky .p { font-size: 15px; line-height: 1.3; }
.sticky .p b { font-family: var(--serif); font-size: 26px; color: var(--gold); font-weight: 500; }
.sticky .btn { min-height: 46px; padding: 10px 18px; font-size: 16px; }

/* ---------- Calendar + thanks pages ---------- */
.page-head { background: var(--ink); color: var(--on-dark); padding: 22px 0 40px; }
.page-head img { width: 96px; }
.page-head h1 { font-size: clamp(36px, 6vw, 56px); color: #fff8ec; margin-top: 26px; }
.page-head p { color: var(--on-dark-muted); margin: 12px 0 0; max-width: 36em; }
.steps-bar { display: flex; gap: 8px; font-size: 14px; color: var(--on-dark-muted); margin-top: 18px; flex-wrap: wrap; }
.steps-bar span { padding: 4px 10px; border: 1px solid var(--line-dark); border-radius: 999px; }
.steps-bar .on { background: var(--gold); color: var(--ink); border-color: var(--gold); }
.picker { background: #fff; border: 1px solid var(--line-light); border-radius: var(--radius); padding: 22px; margin: -24px auto 0; position: relative; max-width: 760px; }
.picker-status { font-weight: 500; margin: 0 0 14px; }
.days { display: grid; grid-template-columns: repeat(auto-fill, minmax(86px, 1fr)); gap: 8px; }
.day, .slot { min-height: 52px; border: 1px solid #d8cbb8; background: var(--paper); border-radius: var(--radius); cursor: pointer; color: var(--text); }
.day span { display: block; font-size: 13px; color: var(--muted); }
.day strong { font-weight: 500; }
.day[aria-pressed="true"], .slot[aria-pressed="true"] { background: var(--accent); color: #fff; border-color: var(--accent); }
.day[aria-pressed="true"] span { color: #f3e9d8; }
.slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 8px; margin-top: 16px; }
.picker .btn { width: 100%; margin-top: 18px; }
.fallback { background: var(--cream); border-radius: var(--radius); padding: 18px; margin-top: 4px; }
.fallback p { margin: 0 0 8px; }
.fallback a { color: var(--accent-dark); font-weight: 500; }
.lead-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 16px; }
.summary-card { background: #fff; border: 1px solid var(--line-light); border-radius: var(--radius); padding: 24px; margin: -24px auto 0; position: relative; max-width: 760px; }
.summary-card .when { font-family: var(--serif); font-size: 30px; color: var(--accent-dark); line-height: 1.2; }
.legal { max-width: 760px; margin: 0 auto; }
.legal h2 { font-size: 30px; margin: 34px 0 10px; }
.legal table { width: 100%; border-collapse: collapse; font-size: 15px; }
.legal td, .legal th { border-bottom: 1px solid var(--line-light); padding: 8px 6px; text-align: left; vertical-align: top; }

/* ---------- Motion ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.9s ease, transform 0.9s ease; }
.reveal.in { opacity: 1; transform: none; }
@keyframes marquee { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .marquee-track { animation: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .light, .light::before, .emblem, .emblem video, .sticky { transition: none; }
}

/* ---------- Desktop ---------- */
@media (min-width: 900px) {
  .hero { padding: 26px 0 90px; }
  .hero-grid { grid-template-columns: 1.08fr 0.92fr; gap: 0 56px; margin-top: 40px; }
  .hero-copy { grid-column: 1; grid-row: 1; }
  .hero-offer { grid-column: 1; grid-row: 2; }
  .form-wrap { grid-column: 1; grid-row: 3; margin-top: 34px; }
  .hero-media { grid-column: 2; grid-row: 1 / span 3; position: sticky; top: 24px; }
  .receipt-grid { grid-template-columns: 1fr 1fr; gap: 64px; }
  .steps { grid-template-columns: repeat(4, 1fr); }
  .light-grid { grid-template-columns: 1fr 1fr; gap: 64px; }
  .concerns { grid-template-columns: repeat(3, 1fr); }
  .split { grid-template-columns: 0.9fr 1.1fr; gap: 64px; }
  .reviews { grid-template-columns: repeat(3, 1fr); }
  .visit-grid { grid-template-columns: 1fr 1.2fr; gap: 48px; }
  .sticky { display: none; }
  .footer { padding-bottom: 40px; }
}
@media (max-width: 899px) {
  .hero { padding: 16px 0 44px; }
  .hero-nav img { width: 82px; }
  .hero h1 { font-size: clamp(40px, 11vw, 56px); }
  .hero .lede { display: none; }
  .hero-media { width: 100%; }
  .arch { aspect-ratio: 16 / 11; border-radius: 180px 180px var(--radius) var(--radius); }
  .arch video { object-position: 50% 0%; }
  .arch-tag { display: none; }
  .price-row { margin-top: 0; }
  .price-now { font-size: 76px; }
  .topbar { font-size: 14px; padding: 8px 12px; }
  .tb-long { display: none; }
}
@media (max-width: 420px) {
  .lead-fields { grid-template-columns: 1fr; }
  .price-now { font-size: 70px; }
  .price-was { font-size: 18px; }
}
