/* ==========================================================================
   One Perfect Day — styles.css
   Mobile-first: base styles target a 390px viewport.
   Breakpoints upward: 768px, 1100px.

   The block between CRITICAL START and CRITICAL END is also inlined in the
   <head> of index.html so the hero renders without waiting for this file.
   If you change anything inside it, paste the same block into index.html.
   ========================================================================== */

/* === CRITICAL START === */
/* Self-hosted fonts (no connection to Google when the page loads) */
@font-face { font-family: "Playfair Display"; font-style: normal; font-weight: 400 900; font-display: swap; src: url("assets/fonts/playfair.woff2") format("woff2"); }
@font-face { font-family: "Playfair Display"; font-style: italic; font-weight: 400; font-display: swap; src: url("assets/fonts/playfair-italic.woff2") format("woff2"); }
@font-face { font-family: "Lato"; font-style: normal; font-weight: 400; font-display: swap; src: url("assets/fonts/lato-400.woff2") format("woff2"); }
@font-face { font-family: "Lato"; font-style: normal; font-weight: 700; font-display: swap; src: url("assets/fonts/lato-700.woff2") format("woff2"); }
@font-face { font-family: "Lato"; font-style: normal; font-weight: 900; font-display: swap; src: url("assets/fonts/lato-900.woff2") format("woff2"); }
@font-face {
  font-family: "Playfair Fallback";
  src: local("Times New Roman"), local("TimesNewRomanPSMT");
  ascent-override: 97%;
  descent-override: 22.5%;
  line-gap-override: 0%;
  size-adjust: 111%;
}
@font-face {
  font-family: "Lato Fallback";
  src: local("Arial"), local("ArialMT");
  ascent-override: 101%;
  descent-override: 22%;
  line-gap-override: 0%;
  size-adjust: 97.5%;
}

:root {
  --wine:      #651F2A;
  --wine-soft: #8A4049;
  --cream:     #F4EFE6;
  --panel:     #EDE4D6;
  --rule:      #D8CCBA;
  --ink:       #28211D;
  --muted:     #6E635C;
  --gold:      #B8912F;
  --white:     #FFFFFF;

  /* derived, for text and hairlines on dark backgrounds */
  --cream-soft: rgba(244, 239, 230, 0.74);
  --gold-line:  rgba(184, 145, 47, 0.45);

  --serif: "Playfair Display", "Playfair Fallback", Georgia, "Times New Roman", serif;
  --sans:  "Lato", "Lato Fallback", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;

  --max: 1100px;
  --gutter: 20px;
  --radius: 4px;
  --section-y: 88px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --shadow-product: 0 30px 60px -24px rgba(20, 14, 11, 0.55), 0 8px 18px -8px rgba(20, 14, 11, 0.35);
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .55 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

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

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; background-color: var(--ink); }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 400;
  color: var(--wine);
  line-height: 1.12;
  margin: 0;
}
h1 em, h2 em { font-style: italic; }

p { margin: 0 0 1em; }
a { color: var(--wine); }

:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

.wrap {
  width: 100%;
  max-width: calc(var(--max) + 2 * var(--gutter));
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.label {
  display: block;
  font-family: var(--sans);
  font-weight: 900;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--wine-soft);
  line-height: 1.4;
}
.dark .label, .label--gold { color: var(--gold); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  padding: 16px 30px;
  border: 1px solid var(--wine);
  border-radius: var(--radius);
  background: var(--wine);
  color: var(--white);
  font-family: var(--sans);
  font-weight: 700;
  font-size: 17px;
  letter-spacing: 0.04em;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}
.btn:hover { background: var(--wine-soft); border-color: var(--wine-soft); }
.btn:active { transform: translateY(1px); }
.btn--light { background: var(--cream); border-color: var(--cream); color: var(--wine); }
.btn--light:hover { background: var(--white); border-color: var(--white); color: var(--wine); }
.btn--block { width: 100%; }

/* Media frames + graceful placeholders when an image file is missing */
.media { position: relative; aspect-ratio: var(--ar, 4 / 3); background: var(--panel); overflow: hidden; }
.media > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.media.is-missing > img { visibility: hidden; }
.media.is-missing::after {
  content: attr(data-label);
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
  text-align: center;
  font: 15px/1.4 var(--serif);
  color: var(--muted);
  border: 1px solid var(--rule);
}

/* Dark sections: ink with a little film grain */
.dark { position: relative; isolation: isolate; background: var(--ink); color: var(--cream); }
.dark::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: var(--grain);
  opacity: 0.07;
  pointer-events: none;
}
.dark h1, .dark h2, .dark h3 { color: var(--cream); }

/* Scroll reveal (only when JS is running) */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
  transition-delay: calc(var(--d, 0) * 110ms);
}
.js [data-reveal].is-in { opacity: 1; transform: none; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  isolation: isolate;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  background: var(--ink);
  color: var(--cream);
  overflow: hidden;
}
.hero__photo {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 80%;
  z-index: -2;
  overflow: hidden;
}
.hero__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 30%;
  transform-origin: 50% 40%;
}
.hero__shade {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(40, 33, 29, 0.6) 0%, rgba(40, 33, 29, 0) 15%, rgba(40, 33, 29, 0.05) 26%, rgba(40, 33, 29, 0.82) 46%, rgba(40, 33, 29, 0.94) 60%, var(--ink) 76%);
}
.hero__frame {
  position: absolute;
  inset: 10px;
  border: 1px solid var(--gold-line);
  pointer-events: none;
}
.hero__inner {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding-top: 26px;
  padding-bottom: calc(36px + env(safe-area-inset-bottom, 0px));
}
.hero__brand {
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  font-family: var(--serif);
  font-size: 15px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--cream);
}
.hero__brand::before, .hero__brand::after { content: ""; width: 28px; height: 1px; background: var(--gold); }
.hero__copy { max-width: 620px; padding-top: 30vh; padding-top: 30svh; }
.hero__copy .label { margin-bottom: 16px; }
.hero h1 {
  color: var(--cream);
  font-size: clamp(41px, 11.4vw, 60px);
  line-height: 1.03;
  letter-spacing: -0.012em;
  margin-bottom: 18px;
}
.hero h1 em { display: block; color: var(--cream); }
.hero__sub { color: var(--cream-soft); margin-bottom: 26px; max-width: 34em; }
.hero__reassure { margin: 14px 0 0; font-size: 15px; color: var(--cream-soft); text-align: center; letter-spacing: 0.01em; }
.hero__cue { display: none; }

/* Offer price + countdown */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.was { text-decoration: line-through; text-decoration-thickness: 2px; text-decoration-color: var(--gold); }
.countdown { font-weight: 700; font-variant-numeric: tabular-nums; letter-spacing: 0.04em; }
.offer-off [data-offer-only] { display: none !important; }
.no-js [data-timer-only] { display: none !important; }
.offer-off:not(.prices-ready) [data-price] { visibility: hidden; }
.offer { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 14px; margin: 0 0 18px; }
.offer__now { font-family: var(--serif); font-size: 46px; line-height: 1; color: var(--cream); }
.offer__was { font-family: var(--serif); font-size: 28px; line-height: 1; color: var(--cream-soft); }
.offer__tag {
  padding: 6px 10px;
  border: 1px solid var(--gold-line);
  border-radius: 2px;
  font-weight: 900;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  line-height: 1.2;
}
.hero__timer { display: block; margin-bottom: 6px; color: var(--cream); }
.hero__timer .countdown { color: var(--gold); }

/* hero entrance */
.js .hero__photo img { animation: heroZoom 2.8s var(--ease) both; }
.js .hero__brand, .js .hero__copy > * { animation: heroUp 1s var(--ease) both; }
.js .hero__copy > :nth-child(1) { animation-delay: 0.15s; }
.js .hero__copy > :nth-child(2) { animation-delay: 0.25s; }
.js .hero__copy > :nth-child(3) { animation-delay: 0.4s; }
.js .hero__copy > :nth-child(4) { animation-delay: 0.5s; }
.js .hero__copy > :nth-child(5) { animation-delay: 0.6s; }
.js .hero__copy > :nth-child(6) { animation-delay: 0.7s; }
@keyframes heroZoom { from { transform: scale(1.14); } to { transform: scale(1); } }
@keyframes heroUp { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }

/* ---------- Sticky buy bar (mobile only) ---------- */
.buybar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom, 0px));
  background: var(--ink);
  border-top: 1px solid var(--gold-line);
  transform: translateY(110%);
  transition: transform 0.35s var(--ease);
}
/* Not rendered at all while hidden: iOS Safari would otherwise tint the area behind its toolbar with it */
.buybar[hidden] { display: none; }
.buybar.is-visible { transform: translateY(0); }
.buybar__price { display: flex; align-items: baseline; gap: 8px; font-family: var(--serif); font-size: 28px; font-weight: 700; color: var(--cream); line-height: 1; }
.buybar__was { font-size: 18px; font-weight: 400; color: var(--cream-soft); text-decoration-color: var(--gold); }
.buybar .countdown { color: var(--gold); }
.offer-on .buybar__alt { display: none; }
.buybar__note { display: block; margin-top: 4px; font-size: 15px; color: var(--cream-soft); line-height: 1.2; }
.buybar .btn { min-height: 48px; padding: 12px 20px; font-size: 16px; flex-shrink: 0; }

@media (min-width: 768px) {
  body { font-size: 18px; }
  :root { --gutter: 40px; --section-y: 120px; }
  .buybar { display: none; }
  .hero__frame { inset: 16px; }
  .hero__inner { padding-top: 40px; padding-bottom: 64px; }
  .hero__copy { padding-top: 28vh; }
  .btn--block { width: auto; }
  .hero__reassure { text-align: left; }
}

@media (min-width: 1100px) {
  :root { --gutter: 56px; --section-y: 150px; }
  .hero { min-height: max(680px, 100vh); }
  .hero__photo { left: auto; width: 50%; height: 100%; }
  .hero__shade {
    background:
      linear-gradient(90deg, var(--ink) 0%, var(--ink) 50%, rgba(40, 33, 29, 0.35) 64%, rgba(40, 33, 29, 0) 80%),
      linear-gradient(0deg, rgba(40, 33, 29, 0.6) 0%, rgba(40, 33, 29, 0) 30%);
  }
  .hero__frame { inset: 22px; }
  .hero__inner { justify-content: center; position: relative; }
  .hero__brand { position: absolute; top: 48px; left: var(--gutter); justify-content: flex-start; }
  .hero__brand::before { display: none; }
  .hero__copy { padding-top: 40px; max-width: 560px; }
  .hero h1 { font-size: 76px; }
  .hero__cue {
    display: block;
    position: absolute;
    left: var(--gutter);
    bottom: 0;
    width: 1px;
    height: 56px;
    background: var(--gold);
    transform-origin: top;
    animation: cue 2.4s var(--ease) infinite;
  }
  @keyframes cue { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); } 100% { transform: scaleY(0); transform-origin: bottom; } }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
}
/* === CRITICAL END === */


/* ==========================================================================
   Below the fold
   ========================================================================== */

.section { padding: var(--section-y) 0; }
.section--panel { background: var(--panel); }

.head { margin-bottom: 44px; max-width: 760px; }
.head .label { margin-bottom: 16px; }
.head h2 {
  font-size: 34px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  line-height: 1.1;
}
.head h2 em { text-transform: none; letter-spacing: 0; color: var(--wine-soft); }
.dark .head h2 em { color: var(--gold); }
.head__intro { margin: 22px 0 0; font-size: 19px; line-height: 1.6; max-width: 36em; }
.dark .head__intro { color: var(--cream-soft); }
.head--center { margin-left: auto; margin-right: auto; text-align: center; }
.head--center .head__intro { margin-left: auto; margin-right: auto; }

.ornament { display: flex; align-items: center; gap: 12px; color: var(--gold); }
.ornament::before, .ornament::after { content: ""; flex: 1; height: 1px; background: var(--gold-line); }

.muted { color: var(--muted); }
.small { font-size: 15px; }

/* ---------- The deck: eight covers fanned ---------- */
.deck { padding: 72px 0 var(--section-y); overflow: hidden; }
.deck__fan {
  --cw: 138px;
  position: relative;
  height: calc(var(--cw) * 1.295 + 70px);
  max-width: 420px;
  margin: 0 auto 48px;
}
.deck__card {
  position: absolute;
  left: 50%;
  top: 34px;
  width: var(--cw);
  margin-left: calc(var(--cw) / -2);
  aspect-ratio: 600 / 777;
  border-radius: 2px;
  box-shadow: var(--shadow-product);
  transform-origin: 50% 190%;
  transform: rotate(calc(var(--o) * 6.5deg));
  z-index: var(--z);
  outline: 1px solid rgba(244, 239, 230, 0.16);
  outline-offset: -1px;
}
.js .deck__card {
  opacity: 0;
  transform: translateY(60px) rotate(0deg);
  transition: transform 1.3s var(--ease), opacity 0.7s ease;
  transition-delay: calc(var(--n) * 70ms);
}
.js .deck__fan.is-in .deck__card { opacity: 1; transform: rotate(calc(var(--o) * 6.5deg)); }
.deck__card--lead,
.js .deck__fan.is-in .deck__card--lead { transform: translateY(-12px) rotate(calc(var(--o) * 6.5deg)) scale(1.06); }

.facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin: 0 auto;
  padding: 0;
  max-width: 760px;
  list-style: none;
  text-align: center;
}
.facts li { padding: 4px 6px; }
.facts li + li { border-left: 1px solid var(--gold-line); }
.facts b {
  display: block;
  font-family: var(--serif);
  font-weight: 400;
  font-size: 52px;
  line-height: 1;
  color: var(--cream);
  font-variant-numeric: lining-nums tabular-nums;
}
.facts span { display: block; margin-top: 10px; font-size: 15px; line-height: 1.35; color: var(--cream-soft); }
.deck__line { margin: 48px auto 0; max-width: 32em; text-align: center; font-family: var(--serif); font-style: italic; font-size: 21px; line-height: 1.5; color: var(--cream-soft); }

/* ---------- Ribbon marquee ---------- */
.ribbon {
  background: var(--wine);
  color: var(--cream);
  overflow: hidden;
  border-top: 1px solid var(--gold-line);
  border-bottom: 1px solid var(--gold-line);
}
.ribbon__track {
  display: flex;
  width: max-content;
  padding: 18px 0;
  animation: ribbon 46s linear infinite;
}
.ribbon__track span {
  display: inline-flex;
  align-items: center;
  font-family: var(--serif);
  font-style: italic;
  font-size: 22px;
  white-space: nowrap;
  line-height: 1.2;
}
.ribbon__track span::after { content: "◆"; font-style: normal; font-size: 9px; color: var(--gold); margin: 0 26px; }
@keyframes ribbon { to { transform: translateX(-50%); } }

/* ---------- Problem ---------- */
.woes { list-style: none; margin: 0; padding: 0; }
.woes li {
  display: grid;
  grid-template-columns: 1fr;
  gap: 6px;
  padding: 30px 0;
  border-top: 1px solid var(--rule);
}
.woes li:last-child { border-bottom: 1px solid var(--rule); }
.woes__n {
  font-family: var(--serif);
  font-style: italic;
  font-size: 64px;
  line-height: 0.9;
  color: transparent;
  -webkit-text-stroke: 1px var(--wine-soft);
}
@supports not (-webkit-text-stroke: 1px black) { .woes__n { color: var(--rule); } }
.woes h3 { font-size: 27px; line-height: 1.18; margin: 10px 0 8px; }
.woes p { margin: 0; max-width: 34em; }
.problem__close {
  margin: 56px auto 0;
  max-width: 22em;
  text-align: center;
  font-family: var(--serif);
  font-size: 27px;
  line-height: 1.35;
  color: var(--ink);
}
.problem__close em { color: var(--wine); }

/* ---------- Photo band with figures ---------- */
.band { position: relative; isolation: isolate; overflow: hidden; color: var(--cream); background: var(--ink); }
.band__photo { position: absolute; inset: 0; z-index: -2; }
.band__photo img { width: 100%; height: 100%; object-fit: cover; }
.band__shade {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(40, 33, 29, 0.92) 0%, rgba(40, 33, 29, 0.72) 45%, rgba(40, 33, 29, 0.94) 100%);
}
.band__inner { padding-top: var(--section-y); padding-bottom: var(--section-y); }
.band .head h2 { color: var(--cream); }
.band .head h2 em { color: var(--gold); }
.figures { list-style: none; margin: 0; padding: 0; }
.figures li { padding: 28px 0; border-top: 1px solid var(--gold-line); }
.figures li:last-child { border-bottom: 1px solid var(--gold-line); }
.figures b {
  display: block;
  font-family: var(--serif);
  font-weight: 400;
  font-size: 66px;
  line-height: 1;
  color: var(--cream);
  font-variant-numeric: lining-nums tabular-nums;
  letter-spacing: -0.01em;
}
.figures span { display: block; margin-top: 10px; color: var(--cream-soft); max-width: 22em; }
.band__source { margin: 22px 0 0; font-size: 15px; color: var(--cream-soft); }

/* ---------- The Lever (guest calculator) ---------- */
.calc {
  max-width: 760px;
  margin: 0 auto;
  background: var(--cream);
  border: 1px solid var(--rule);
  border-top: 2px solid var(--wine);
  border-radius: var(--radius);
  padding: 28px 22px 26px;
}
.calc__row { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.calc__row label, .calc__k { font-weight: 900; font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--wine-soft); }
.calc__guests { font-family: var(--serif); font-size: 64px; line-height: 1; color: var(--wine); font-variant-numeric: lining-nums tabular-nums; }
.calc input[type="range"] {
  --p: 37%;
  -webkit-appearance: none;
  appearance: none;
  display: block;
  width: 100%;
  height: 44px;
  margin: 14px 0 6px;
  background: transparent;
  cursor: pointer;
}
.calc input[type="range"]::-webkit-slider-runnable-track {
  height: 3px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--wine) 0 var(--p), var(--rule) var(--p) 100%);
}
.calc input[type="range"]::-moz-range-track { height: 3px; border-radius: 2px; background: var(--rule); }
.calc input[type="range"]::-moz-range-progress { height: 3px; background: var(--wine); }
.calc input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 30px;
  height: 30px;
  margin-top: -13.5px;
  border-radius: 50%;
  background: var(--wine);
  border: 3px solid var(--cream);
  box-shadow: 0 0 0 1px var(--wine);
}
.calc input[type="range"]::-moz-range-thumb {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--wine);
  border: 3px solid var(--cream);
  box-shadow: 0 0 0 1px var(--wine);
}
.calc__scale { display: flex; justify-content: space-between; font-size: 15px; color: var(--muted); margin-bottom: 24px; }
.calc__total { padding: 22px 0; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.calc__money { display: block; margin-top: 6px; font-family: var(--serif); font-size: 34px; line-height: 1.15; color: var(--ink); font-variant-numeric: lining-nums tabular-nums; }
.calc__bar { display: flex; height: 12px; margin: 22px 0 10px; background: var(--panel); border-radius: 2px; overflow: hidden; }
.calc__bar span { display: block; height: 100%; transition: width 0.35s var(--ease); }
.calc__fixed { background: var(--ink); width: 23%; }
.calc__var { background: var(--wine); width: 36%; }
.calc__legend { display: flex; flex-wrap: wrap; gap: 6px 20px; margin: 0; padding: 0; list-style: none; font-size: 15px; color: var(--muted); }
.calc__legend li::before { content: ""; display: inline-block; width: 10px; height: 10px; margin-right: 8px; border-radius: 1px; background: var(--ink); }
.calc__legend li + li::before { background: var(--wine); }
.calc__punch { margin: 26px 0 0; font-family: var(--serif); font-size: 23px; line-height: 1.4; color: var(--wine); }
.calc__source { margin: 18px auto 0; max-width: 760px; font-size: 15px; color: var(--muted); }

/* ---------- What you get: table of contents ---------- */
.toc-wrap { display: grid; gap: 56px; }
.toc__group + .toc__group { margin-top: 44px; }
.toc__group > .label { margin-bottom: 12px; }
.toc { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--wine); }
.toc li { display: flex; align-items: baseline; gap: 10px; padding: 15px 0; border-bottom: 1px solid var(--rule); }
.toc__name { font-family: var(--serif); font-size: 19px; line-height: 1.3; color: var(--ink); }
.toc__name small { display: block; margin-top: 3px; font-family: var(--sans); font-size: 15px; color: var(--muted); }
.toc__dots { flex: 1; min-width: 18px; border-bottom: 1px dotted var(--muted); transform: translateY(-5px); opacity: 0.6; }
.toc__n { flex-shrink: 0; font-size: 15px; color: var(--muted); white-space: nowrap; font-variant-numeric: tabular-nums; }
.toc__total { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin: 22px 0 0; }
.toc__k { font-weight: 900; font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--wine-soft); }
.toc__price { font-family: var(--serif); font-size: 40px; line-height: 1; color: var(--wine); white-space: nowrap; }
.toc__was { margin-right: 10px; font-size: 24px; color: var(--muted); text-decoration-color: var(--wine-soft); }

.big148 { text-align: center; }
.big148 b {
  display: block;
  font-family: var(--serif);
  font-weight: 400;
  font-size: 150px;
  line-height: 0.85;
  color: var(--wine);
  letter-spacing: -0.03em;
}
.big148 span { display: block; margin-top: 14px; font-family: var(--serif); font-style: italic; font-size: 22px; color: var(--muted); }

/* ---------- Guides shelf ---------- */
.shelf {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 74%;
  gap: 22px;
  margin: 0 calc(-1 * var(--gutter));
  padding: 6px var(--gutter) 36px;
  list-style: none;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding: 0 var(--gutter);
  scrollbar-width: none;
}
.shelf::-webkit-scrollbar { display: none; }
.shelf li { scroll-snap-align: start; }
.book .media { outline: 1px solid rgba(244, 239, 230, 0.12); outline-offset: -1px; --ar: 600 / 777; border-radius: 2px; box-shadow: var(--shadow-product); background: #1f1916; transition: transform 0.5s var(--ease); }
.book .label { margin: 22px 0 8px; }
.book h3 { font-size: 24px; margin-bottom: 8px; }
.book p { margin: 0; font-size: 16px; line-height: 1.55; color: var(--cream-soft); }
.book__pages { display: block; margin-top: 10px; font-size: 15px; color: var(--gold); }
.swipe-hint { display: flex; align-items: center; gap: 10px; margin: 0; font-size: 15px; color: var(--cream-soft); }
.swipe-hint::after { content: ""; width: 40px; height: 1px; background: var(--gold); }
.pages__hint { color: var(--muted); }

/* ---------- Spreadsheets ---------- */
.live {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  margin: 0 0 56px;
  padding: 20px 22px;
  background: var(--panel);
  border-left: 2px solid var(--wine);
}
.live p { margin: 0; }
.live__dot { flex-shrink: 0; width: 10px; height: 10px; margin-top: 9px; border-radius: 50%; background: var(--wine); box-shadow: 0 0 0 4px rgba(101, 31, 42, 0.15); }

.sheet + .sheet { margin-top: 72px; }
.window {
  margin: 0 0 28px;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow-product);
  overflow: hidden;
}
.window .media { --ar: 1890 / 750; background: var(--white); }
.window .media > img { object-fit: contain; }
.zoomable { display: block; }
.tabs {
  display: flex;
  gap: 2px;
  margin: 0;
  padding: 0 10px;
  list-style: none;
  background: var(--panel);
  border-top: 1px solid var(--rule);
  overflow-x: auto;
  scrollbar-width: none;
}
.tabs::-webkit-scrollbar { display: none; }
.tabs li { flex-shrink: 0; padding: 10px 14px; font-size: 15px; color: var(--muted); white-space: nowrap; }
.tabs li.is-on { background: var(--white); color: var(--wine); font-weight: 700; box-shadow: inset 0 2px 0 var(--wine); }

.sheet .label { margin-bottom: 10px; }
.sheet h3 { font-size: 30px; margin-bottom: 12px; }
.defs { margin: 22px 0 0; padding: 0; }
.defs div { padding: 14px 0; border-top: 1px solid var(--rule); }
.defs div:last-child { border-bottom: 1px solid var(--rule); }
.defs dt { font-family: var(--serif); font-weight: 700; font-size: 19px; color: var(--wine); }
.defs dd { margin: 4px 0 0; }

.tl { margin: 0; padding: 0; list-style: none; }
.tl li { display: grid; grid-template-columns: 84px 1fr; gap: 14px; padding: 13px 16px; border-bottom: 1px solid var(--panel); }
.tl li:nth-child(even) { background: #FBF8F3; }
.tl time { font-weight: 900; font-size: 15px; color: var(--wine); font-variant-numeric: tabular-nums; white-space: nowrap; }
.tl b { display: block; font-weight: 700; font-size: 16px; line-height: 1.4; }
.tl i { display: block; margin-top: 3px; font-size: 15px; line-height: 1.45; color: var(--muted); }
.tl__head { padding: 12px 16px; background: var(--wine); color: var(--cream); font-weight: 900; font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; }
.window__caption { margin: -14px 0 28px; font-size: 15px; color: var(--muted); font-style: italic; }
.inputs { margin: 16px 0 18px; padding: 0; list-style: none; }
.inputs li { position: relative; padding: 9px 0 9px 26px; border-bottom: 1px solid var(--rule); }
.inputs li::before { content: ""; position: absolute; left: 2px; top: 22px; width: 12px; height: 1px; background: var(--wine); }

/* ---------- Look inside ---------- */
.pages {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 80%;
  gap: 20px;
  margin: 0 calc(-1 * var(--gutter));
  padding: 10px var(--gutter) 36px;
  list-style: none;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding: 0 var(--gutter);
  scrollbar-width: none;
}
.pages::-webkit-scrollbar { display: none; }
.pages li { scroll-snap-align: start; }
.pages figure { margin: 0; }
.page-link { display: block; text-decoration: none; color: inherit; }
.page-link .media { --ar: 1100 / 1424; border-radius: 2px; box-shadow: var(--shadow-product); transition: transform 0.5s var(--ease); }
.page-link figcaption { margin-top: 18px; font-size: 15px; line-height: 1.45; color: var(--muted); }
.page-link figcaption b { display: block; font-family: var(--serif); font-weight: 400; font-size: 19px; color: var(--ink); margin-bottom: 2px; }
.zoom-chip {
  position: absolute;
  right: 12px;
  bottom: 12px;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 4px 12px;
  border-radius: 2px;
  background: rgba(40, 33, 29, 0.82);
  color: var(--cream);
  font-size: 15px;
  line-height: 1;
}

/* Lightbox */
.lightbox { width: 100%; max-width: 920px; max-height: 100dvh; margin: auto; padding: 12px; border: 0; background: transparent; }
.lightbox::backdrop { background: rgba(28, 23, 20, 0.92); }
.lightbox img { width: auto; max-width: 100%; max-height: calc(100dvh - 92px); margin: 0 auto; border-radius: 2px; }
.lightbox__close {
  display: block;
  min-height: 44px;
  min-width: 44px;
  margin: 0 0 12px auto;
  padding: 10px 18px;
  border: 1px solid var(--gold-line);
  border-radius: var(--radius);
  background: var(--ink);
  color: var(--cream);
  font: 700 15px/1 var(--sans);
  cursor: pointer;
}

/* ---------- What makes it different ---------- */
.diffs { list-style: none; margin: 0; padding: 0; }
.diffs li { padding: 30px 0; border-top: 1px solid var(--gold-line); }
.diffs li:last-child { border-bottom: 1px solid var(--gold-line); }
.diffs__n { display: block; font-family: var(--serif); font-style: italic; font-size: 44px; line-height: 1; color: var(--gold); margin-bottom: 14px; }
.diffs h3 { font-size: 25px; line-height: 1.25; margin-bottom: 8px; }
.diffs p { margin: 0; color: var(--cream-soft); }

/* ---------- Who it's for ---------- */
.fit { display: grid; gap: 24px; }
.fit__col { padding: 30px 24px; border-radius: var(--radius); }
.fit__col--yes { background: var(--panel); border-top: 2px solid var(--wine); }
.fit__col--no { border: 1px solid var(--rule); }
.fit__col h3 { font-size: 26px; margin-bottom: 14px; }
.fit__col--no h3 { color: var(--muted); }
.fit__col ul { list-style: none; margin: 0; padding: 0; }
.fit__col li { position: relative; padding: 13px 0 13px 32px; border-top: 1px solid var(--rule); }
.fit__col li::before { position: absolute; left: 2px; top: 13px; font-weight: 900; }
.fit__col--yes li::before { content: "✓"; color: var(--wine); }
.fit__col--no li::before { content: "✕"; color: var(--muted); font-size: 14px; top: 16px; }

/* ---------- About ---------- */
.about { max-width: 780px; margin: 0 auto; text-align: center; }
.about .ornament { max-width: 220px; margin: 20px auto 32px; font-size: 11px; }
.about blockquote { margin: 0; }
.about blockquote p {
  font-family: var(--serif);
  font-style: italic;
  font-size: 23px;
  line-height: 1.5;
  color: var(--ink);
  margin: 0;
}
.about__sig { margin-top: 28px; }
.about__sig b { display: block; font-family: var(--serif); font-size: 20px; font-weight: 400; color: var(--wine); }
.about__sig span { font-size: 15px; color: var(--muted); }

/* ---------- FAQ ---------- */
.faq { max-width: 820px; border-top: 1px solid var(--wine); }
.faq details { border-bottom: 1px solid var(--rule); }
.faq summary {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 64px;
  padding: 16px 48px 16px 0;
  font-family: var(--serif);
  font-size: 20px;
  line-height: 1.35;
  color: var(--ink);
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  position: absolute;
  right: 8px;
  top: 50%;
  width: 12px;
  height: 12px;
  margin-top: -9px;
  border-right: 1.5px solid var(--wine);
  border-bottom: 1.5px solid var(--wine);
  transform: rotate(45deg);
  transition: transform 0.3s var(--ease);
}
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.faq summary:hover { color: var(--wine); }
.faq__body { padding: 0 0 24px; max-width: 40em; }
.faq__body p:last-child { margin-bottom: 0; }
.faq__body a { padding: 12px 0; }

/* ---------- Final CTA ---------- */
.final { position: relative; isolation: isolate; overflow: hidden; background: var(--ink); color: var(--cream); }
.final__photo { position: absolute; inset: 0; z-index: -2; }
.final__photo img { width: 100%; height: 100%; object-fit: cover; }
.final__shade { position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(40, 33, 29, 0.55) 0%, rgba(40, 33, 29, 0.78) 100%); }
.final__inner { padding-top: 96px; padding-bottom: 96px; }
.card {
  position: relative;
  max-width: 600px;
  margin: 0 auto;
  padding: 52px 26px 44px;
  text-align: center;
  background: rgba(40, 33, 29, 0.84);
  border: 1px solid var(--gold-line);
  outline: 1px solid var(--gold-line);
  outline-offset: 6px;
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
.card h2 { color: var(--cream); font-size: 36px; text-transform: uppercase; letter-spacing: 0.03em; margin: 14px 0 0; line-height: 1.1; }
.card h2 em { display: block; text-transform: none; letter-spacing: 0; color: var(--gold); }
.card .ornament { max-width: 200px; margin: 28px auto 20px; font-size: 9px; }
.card__was { margin: 0 0 6px; font-family: var(--serif); font-size: 32px; line-height: 1; color: var(--cream-soft); }
.card__price { font-family: var(--serif); font-size: 92px; line-height: 1; color: var(--cream); margin: 0 0 22px; letter-spacing: -0.02em; }
.timer { margin: 0 0 26px; }
.timer__k { display: block; margin-bottom: 12px; font-weight: 900; font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold); }
.timer__segs { display: flex; justify-content: center; gap: 10px; }
.timer__segs > span { min-width: 76px; padding: 12px 8px 10px; border: 1px solid var(--gold-line); border-radius: 2px; }
.timer__segs b { display: block; font-family: var(--serif); font-weight: 400; font-size: 36px; line-height: 1; color: var(--cream); font-variant-numeric: lining-nums tabular-nums; }
.timer__segs i { display: block; margin-top: 6px; font-style: normal; font-weight: 900; font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--cream-soft); }
.card__terms { margin: 0 0 30px; font-size: 15px; color: var(--cream-soft); }
.card .btn { width: 100%; }
.card__final { margin: 18px 0 0; font-size: 15px; color: var(--cream-soft); }
.card__final a { color: inherit; text-underline-offset: 3px; }
.card__close { margin: 30px auto 0; max-width: 24em; font-family: var(--serif); font-style: italic; font-size: 20px; line-height: 1.5; color: var(--cream); }

/* ---------- Footer ---------- */
.footer { padding: 56px 0 44px; font-size: 15px; color: var(--cream-soft); }
.footer__brand { font-family: var(--serif); font-size: 15px; letter-spacing: 0.32em; text-transform: uppercase; color: var(--cream); margin-bottom: 22px; }
.footer__links { display: flex; flex-wrap: wrap; gap: 0 26px; margin: 0 0 18px; padding: 0; list-style: none; }
.footer__links a { display: inline-flex; align-items: center; min-height: 44px; color: var(--cream); text-decoration-color: var(--gold-line); text-underline-offset: 4px; }
.footer p { margin: 0 0 8px; }

/* ---------- Legal pages ---------- */
.legal-hero { padding-top: 26px; text-align: center; border-bottom: 1px solid var(--gold-line); }
.brandmark, .done__brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  min-height: 44px;
  margin: 0;
  font-family: var(--serif);
  font-size: 15px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--cream);
  text-decoration: none;
}
.brandmark::before, .brandmark::after { content: ""; width: 28px; height: 1px; background: var(--gold); }
.legal-hero__body { padding: 52px 0 40px; }
.legal-hero .label { margin-bottom: 14px; }
.legal-hero h1 { font-size: clamp(40px, 11vw, 66px); line-height: 1.05; letter-spacing: -0.01em; }
.legal-hero h1 em { color: var(--gold); }
.legal-hero__meta { margin: 16px 0 0; font-size: 15px; color: var(--cream-soft); }
.legal-nav { display: flex; justify-content: center; gap: 2px; }
.legal-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 50px;
  padding: 0 9px;
  border-bottom: 2px solid transparent;
  color: var(--cream-soft);
  font-size: 15px;
  text-decoration: none;
  letter-spacing: 0.02em;
}
.legal-nav a:hover { color: var(--cream); }
.legal-nav a[aria-current="page"] { color: var(--cream); border-bottom-color: var(--gold); font-weight: 700; }

.legal { max-width: 760px; padding-top: 52px; padding-bottom: 88px; }
.legal .lead { font-family: var(--serif); font-size: 21px; line-height: 1.55; color: var(--ink); margin-bottom: 28px; }
.legal h2 {
  font-size: 25px;
  font-weight: 400;
  line-height: 1.25;
  margin: 48px 0 14px;
  padding-top: 28px;
  border-top: 1px solid var(--rule);
}
.legal h2 .num { display: inline-block; min-width: 1.6em; font-style: italic; color: var(--wine-soft); }
.legal ul, .legal ol { margin: 0 0 1em; padding: 0; list-style: none; }
.legal li { position: relative; margin: 0; padding: 7px 0 7px 26px; }
.legal ul > li::before { content: ""; position: absolute; left: 2px; top: 20px; width: 12px; height: 1px; background: var(--wine); }
.legal ol { counter-reset: step; }
.legal ol > li { counter-increment: step; }
.legal ol > li::before { content: counter(step) "."; position: absolute; left: 0; top: 7px; font-family: var(--serif); font-style: italic; color: var(--wine-soft); }
.legal a { text-underline-offset: 3px; }
.legal .callout { margin: 0 0 8px; padding: 22px 24px; background: var(--panel); border-left: 2px solid var(--wine); }
.legal .callout p:last-child { margin: 0; }
.legal .contact { padding: 20px 22px; border: 1px solid var(--rule); border-radius: var(--radius); }
.back-link { display: inline-flex; align-items: center; min-height: 44px; margin-top: 40px; }

/* ==========================================================================
   768px and up
   ========================================================================== */
@media (min-width: 768px) {
  .head { margin-bottom: 64px; }
  .head h2 { font-size: 48px; }
  .head__intro { font-size: 21px; }

  .deck__fan { --cw: 200px; max-width: 760px; margin-bottom: 72px; }
  .facts b { font-size: 84px; }
  .facts span { font-size: 16px; }
  .deck__line { font-size: 24px; }

  .ribbon__track span { font-size: 26px; }

  .woes li { grid-template-columns: 150px 1fr; gap: 24px; padding: 44px 0; align-items: start; }
  .woes__n { font-size: 104px; }
  .woes h3 { font-size: 34px; margin-top: 6px; }
  .problem__close { font-size: 34px; margin-top: 80px; }

  .figures { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 40px; }
  .figures li, .figures li:last-child { border-bottom: 1px solid var(--gold-line); }
  .figures b { font-size: 76px; }

  .calc { padding: 44px 48px 40px; }
  .calc__guests { font-size: 88px; }
  .calc__money { font-size: 46px; }
  .calc__punch { font-size: 26px; }

  .toc__name { font-size: 21px; }

  .shelf {
    grid-auto-flow: row;
    grid-auto-columns: auto;
    grid-template-columns: repeat(2, 1fr);
    gap: 64px 40px;
    margin: 0;
    padding: 0;
    overflow: visible;
  }
  .swipe-hint { display: none; }

  .sheet h3 { font-size: 36px; }

  .pages {
    grid-auto-flow: row;
    grid-auto-columns: auto;
    grid-template-columns: repeat(2, 1fr);
    gap: 56px 40px;
    margin: 0;
    padding: 0;
    overflow: visible;
  }

  .diffs { display: grid; grid-template-columns: 1fr 1fr; column-gap: 64px; }
  .diffs li:nth-last-child(2) { border-bottom: 1px solid var(--gold-line); }

  .fit { grid-template-columns: 1fr 1fr; gap: 32px; }
  .fit__col { padding: 40px 36px; }

  .about blockquote p { font-size: 36px; }

  .final__inner { padding-top: 150px; padding-bottom: 150px; }
  .card { padding: 72px 64px 56px; outline-offset: 8px; }
  .card h2 { font-size: 52px; }
  .card__price { font-size: 128px; }
  .card__was { font-size: 40px; }
  .timer__segs > span { min-width: 92px; }
  .timer__segs b { font-size: 44px; }
  .card .btn { width: auto; min-width: 320px; }

  .legal h2 { font-size: 28px; }
  .legal-hero__body { padding: 72px 0 52px; }
  .legal-nav a { padding: 0 20px; }
}

/* ==========================================================================
   1100px and up
   ========================================================================== */
@media (min-width: 1100px) {
  .head h2 { font-size: 60px; }

  .deck__fan { --cw: 236px; max-width: 980px; height: calc(var(--cw) * 1.295 + 110px); }
  .deck__card { transform-origin: 50% 220%; }

  .toc-wrap { grid-template-columns: 1.5fr 1fr; gap: 96px; align-items: center; }
  .big148 b { font-size: 260px; }

  .shelf { grid-template-columns: repeat(4, 1fr); gap: 72px 36px; }
  .book h3 { font-size: 22px; }
  .book:hover .media { transform: translateY(-8px); }

  .sheet { display: grid; grid-template-columns: 1.45fr 1fr; gap: 72px; align-items: center; }
  .sheet .window { margin-bottom: 0; }
  .sheet--flip > :first-child { order: 2; }
  .sheet + .sheet { margin-top: 120px; }
  .window__caption { margin: 14px 0 0; }

  .pages { grid-template-columns: repeat(4, 1fr); gap: 36px; padding-top: 20px; }
  .pages li:nth-child(1) .media { transform: rotate(-2deg); }
  .pages li:nth-child(2) .media { transform: rotate(1.5deg) translateY(18px); }
  .pages li:nth-child(3) .media { transform: rotate(-1deg); }
  .pages li:nth-child(4) .media { transform: rotate(2deg) translateY(12px); }
  .pages li .page-link:hover .media { transform: rotate(0) translateY(-10px) scale(1.02); }
  .pages figcaption { padding-top: 12px; }
  .pages__hint { display: none; }

  .diffs h3 { font-size: 28px; }
}

/* ==========================================================================
   Thank-you page
   Green is used only here, as a status colour: "payment went through".
   ========================================================================== */
.page-thanks {
  --green: #2F7A52;        /* on light backgrounds */
  --green-light: #74C595;  /* on dark backgrounds */
  --green-soft: rgba(116, 197, 149, 0.14);
}

.done {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: 94vh;
  min-height: 94svh;
  display: flex;
  flex-direction: column;
  background: var(--ink);
  color: var(--cream);
  text-align: center;
}
.done__photo { position: absolute; inset: 0; z-index: -2; }
.done__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 45%; }
.done__shade {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(40, 33, 29, 0.72) 0%, rgba(40, 33, 29, 0.84) 45%, rgba(40, 33, 29, 0.96) 100%);
}
.done__inner { flex: 1; display: flex; flex-direction: column; padding-top: 26px; padding-bottom: 56px; }
.done__brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin: 0;
  font-family: var(--serif);
  font-size: 15px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--cream);
  text-decoration: none;
  min-height: 44px;
}
.done__brand::before, .done__brand::after { content: ""; width: 28px; height: 1px; background: var(--gold); }
.done__body { margin: auto; padding-top: 40px; max-width: 640px; }

.tick { display: block; width: 92px; height: 92px; margin: 0 auto 26px; overflow: visible; }
.tick__ring { fill: var(--green-soft); stroke: var(--green-light); stroke-width: 2; stroke-dasharray: 189; animation: tickRing 0.9s var(--ease) 0.25s both; }
.tick__mark { fill: none; stroke: var(--green-light); stroke-width: 3.5; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 36; animation: tickMark 0.5s var(--ease) 0.95s both; }
.tick__pulse { fill: none; stroke: var(--green-light); stroke-width: 1.5; opacity: 0; transform-box: fill-box; transform-origin: center; animation: tickPulse 1.8s ease-out 1.3s both; }
@keyframes tickRing { from { stroke-dashoffset: 189; } to { stroke-dashoffset: 0; } }
@keyframes tickMark { from { stroke-dashoffset: 36; } to { stroke-dashoffset: 0; } }
@keyframes tickPulse { 0% { opacity: 0.8; transform: scale(1); } 100% { opacity: 0; transform: scale(1.7); } }

.done__status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
  padding: 8px 14px;
  border: 1px solid rgba(116, 197, 149, 0.5);
  border-radius: 2px;
  background: var(--green-soft);
  color: var(--green-light);
  font-weight: 900;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  line-height: 1.2;
}
.done__status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--green-light); }
.done h1 { color: var(--cream); font-size: clamp(42px, 11.5vw, 76px); line-height: 1.04; letter-spacing: -0.01em; margin-bottom: 18px; }
.done h1 em { display: block; }
.done__sub { max-width: 30em; margin: 0 auto 32px; color: var(--cream-soft); }

.mailcard {
  display: flex;
  align-items: center;
  gap: 16px;
  max-width: 470px;
  margin: 0 auto;
  padding: 18px 20px;
  text-align: left;
  background: rgba(40, 33, 29, 0.7);
  border: 1px solid var(--gold-line);
}
.mailcard svg { flex-shrink: 0; width: 34px; height: 34px; stroke: var(--gold); fill: none; stroke-width: 1.4; }
.mailcard p { margin: 0; }
.mailcard b { display: block; font-family: var(--serif); font-weight: 400; font-size: 20px; color: var(--cream); line-height: 1.25; }
.mailcard span { display: block; margin-top: 2px; font-size: 15px; color: var(--cream-soft); line-height: 1.45; }
.done__next { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; margin-top: 30px; color: var(--cream); font-size: 15px; text-decoration: none; letter-spacing: 0.02em; }
.done__next::after { content: ""; width: 1px; height: 22px; background: var(--gold); }

.js .done__body > * { animation: heroUp 1s var(--ease) both; }
.js .done__body > :nth-child(2) { animation-delay: 0.5s; }
.js .done__body > :nth-child(3) { animation-delay: 0.6s; }
.js .done__body > :nth-child(4) { animation-delay: 0.7s; }
.js .done__body > :nth-child(5) { animation-delay: 0.8s; }
.js .done__body > :nth-child(6) { animation-delay: 0.9s; }

/* Next steps */
.steps { list-style: none; margin: 0; padding: 0; }
.steps li { display: grid; grid-template-columns: 60px 1fr; gap: 16px; padding: 28px 0; border-top: 1px solid var(--rule); }
.steps li:last-child { border-bottom: 1px solid var(--rule); }
.steps__n {
  font-family: var(--serif);
  font-style: italic;
  font-size: 48px;
  line-height: 0.9;
  color: transparent;
  -webkit-text-stroke: 1px var(--wine-soft);
}
.steps__ok { display: block; width: 44px; height: 44px; }
.steps__ok circle { fill: rgba(47, 122, 82, 0.12); stroke: var(--green); stroke-width: 1.5; }
.steps__ok path { fill: none; stroke: var(--green); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.steps h3 { font-size: 24px; line-height: 1.25; margin-bottom: 6px; }
.steps .is-done h3 { color: var(--green); }
.steps p { margin: 0; }

/* Help */
.help {
  max-width: 760px;
  margin: 0 auto;
  padding: 32px 24px;
  background: var(--cream);
  border: 1px solid var(--rule);
  border-top: 2px solid var(--wine);
  border-radius: var(--radius);
}
.help h2 { font-size: 28px; text-transform: uppercase; letter-spacing: 0.03em; margin: 10px 0 18px; }
.help ul { margin: 0 0 26px; padding: 0; list-style: none; }
.help li { position: relative; padding: 12px 0 12px 26px; border-top: 1px solid var(--rule); }
.help li::before { content: ""; position: absolute; left: 2px; top: 25px; width: 12px; height: 1px; background: var(--wine); }

@media (min-width: 768px) {
  .done__inner { padding-top: 40px; padding-bottom: 72px; }
  .tick { width: 108px; height: 108px; }
  .steps { display: grid; grid-template-columns: 1fr 1fr; column-gap: 64px; }
  .steps li:nth-last-child(2) { border-bottom: 1px solid var(--rule); }
  .steps li { grid-template-columns: 80px 1fr; }
  .steps li.is-done { grid-column: 1 / -1; }
  .steps__n { font-size: 64px; }
  .steps h3 { font-size: 28px; }
  .help { padding: 48px 52px; }
  .help h2 { font-size: 36px; }
}

/* Thank-you page states (set from Dodo's ?status= in thanks.html) */
[data-state="failed"], [data-state="pending"] { display: none; }
.is-failed [data-state="success"], .is-pending [data-state="success"] { display: none; }
.is-failed .done__body[data-state="failed"], .is-pending .done__body[data-state="pending"] { display: block; }

.page-thanks { --alert: #E6A08F; --alert-soft: rgba(230, 160, 143, 0.14); }
.sign { display: block; width: 92px; height: 92px; margin: 0 auto 26px; }
.sign circle { stroke-width: 2; }
.sign path { fill: none; stroke-width: 3.5; stroke-linecap: round; stroke-linejoin: round; }
.sign--alert circle { fill: var(--alert-soft); stroke: var(--alert); }
.sign--alert path { stroke: var(--alert); }
.sign--alert .sign__dot { fill: var(--alert); stroke: none; }
.sign--wait circle { fill: rgba(184, 145, 47, 0.14); stroke: var(--gold); }
.sign--wait path { stroke: var(--gold); }
.done__status--alert { color: var(--alert); background: var(--alert-soft); border-color: rgba(230, 160, 143, 0.5); }
.done__status--alert::before { background: var(--alert); }
.done__status--wait { color: var(--gold); background: rgba(184, 145, 47, 0.14); border-color: var(--gold-line); }
.done__status--wait::before { background: var(--gold); }
.done__actions { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.done__actions .btn { width: 100%; max-width: 360px; }
.done__link { display: inline-flex; align-items: center; min-height: 44px; color: var(--cream); text-underline-offset: 4px; text-decoration-color: var(--gold-line); }
.done__fine { max-width: 30em; margin: 22px auto 0; font-size: 15px; color: var(--cream-soft); }
.mailcard a { color: var(--cream); }
@media (min-width: 768px) {
  .sign { width: 108px; height: 108px; }
}
.done__eyebrow { margin-bottom: 18px; }

/* Receipt details on the thank-you page */
.receipt {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 32px;
  max-width: 470px;
  margin: -8px auto 26px;
  padding: 14px 0;
  border-top: 1px solid var(--gold-line);
  border-bottom: 1px solid var(--gold-line);
}
.receipt[hidden], .receipt div[hidden] { display: none; }
.receipt dt { font-weight: 900; font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold); }
.receipt dd { margin: 4px 0 0; font-size: 15px; color: var(--cream); word-break: break-all; }
.js .done__body > :nth-child(7) { animation-delay: 1s; }
