/* Wax + Wick Calculator, Candlelier. Built to Sales Page Rules (07-Knowledge):
   light ground only (cream, white, blush), body 20px, nothing below 17px, one isolated button
   color, zero urgency. Same brand system as Scent Throw Secrets. Mobile first, 16px gutters. */

@font-face {
  font-family: "Cormorant Garamond";
  font-style: normal; font-weight: 600; font-display: swap;
  src: url(/fonts/cormorant-600-latin.woff2) format("woff2");
}
@font-face {
  font-family: "Source Serif 4";
  font-style: normal; font-weight: 400 700; font-display: swap;
  src: url(/fonts/sourceserif4-var-latin.woff2) format("woff2");
}

/* Metric-matched fallbacks (Georgia, measured against the web fonts on this page's own text), so
   the swap to the web font does not rewrap lines and CLS stays at 0. */
@font-face { font-family: "Source Serif 4 Fallback"; font-weight: 400; src: local("Georgia"); size-adjust: 100.5%; }
@font-face { font-family: "Source Serif 4 Fallback"; font-weight: 700; src: local("Georgia Bold"), local("Georgia-Bold"); size-adjust: 88.8%; }
@font-face { font-family: "Cormorant Garamond Fallback"; font-weight: 600; src: local("Georgia"); size-adjust: 77.5%; }

:root {
  --cream: #fbf6ee;
  --white: #ffffff;
  --blush: #f8ece6;
  --ink: #2b1e14;          /* 15.0:1 on cream */
  --soft-ink: #5a4636;     /* 8.3:1 on cream */
  --honey: #7a4e10;        /* 6.7:1 on cream */
  --honey-line: #e6d2ad;
  --glow: #f3dfb8;
  /* The button: the one cool saturated color on a warm page (isolation effect). Deep teal,
     white bold label, 7.4:1, WCAG AAA. Buy and download buttons only. */
  --button: #165e66;
  --button-hover: #0f4a51;
  --serif-display: "Cormorant Garamond", "Cormorant Garamond Fallback", Georgia, "Times New Roman", serif;
  --serif-text: "Source Serif 4", "Source Serif 4 Fallback", Georgia, "Times New Roman", serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--serif-text);
  font-size: 20px;
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
p { margin: 0 0 1.05em; }
a { color: var(--button); text-underline-offset: 3px; }
:focus-visible { outline: 3px solid var(--button); outline-offset: 3px; border-radius: 4px; }
.sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.wrap { width: 100%; max-width: 720px; margin: 0 auto; padding: 0 16px; }

.brand {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  padding: 12px 16px 0;
  font-family: var(--serif-display);
  font-size: 22px; font-weight: 600; letter-spacing: .06em;
  color: var(--honey);
}
.brand svg { width: 16px; height: 24px; flex: none; }

/* Hero. On a phone the H1, sub, price and button all sit in the first screen. */
.hero {
  background: radial-gradient(120% 60% at 50% 0%, var(--glow) 0%, rgba(243, 223, 184, 0) 70%), var(--cream);
  text-align: center;
  padding: 0 0 48px;
}
.hero h1 {
  font-family: var(--serif-display);
  font-weight: 600;
  font-size: clamp(34px, 9vw, 68px);
  line-height: 1.04;
  letter-spacing: -.01em;
  margin: 12px auto 12px;
  max-width: 14ch;
  text-wrap: balance;
}
.hero .sub {
  font-size: 19px; line-height: 1.45;
  color: var(--soft-ink);
  max-width: 32em;
  margin: 0 auto 12px;
  text-wrap: pretty;
}

/* The price row: the one bold move on the page. */
.price-row {
  display: flex; align-items: baseline; justify-content: center; gap: 14px;
  margin: 0 0 12px;
  font-family: var(--serif-display); font-weight: 600; line-height: 1;
  font-variant-numeric: lining-nums;
}
.price-row .was {
  font-size: 34px; color: var(--soft-ink);
  text-decoration-thickness: 2px; text-decoration-color: var(--honey);
}
.price-row .now { font-size: 56px; color: var(--ink); }
.under { font-size: 17px; line-height: 1.5; color: var(--soft-ink); margin: 12px auto 0; max-width: 28em; }
.under.order-note + .under { margin-top: 2px; }
.cta .under { margin-top: 12px; }

/* The one button */
.buy { margin: 0; }
.btn {
  -webkit-appearance: none; appearance: none;
  display: inline-flex; align-items: center; justify-content: center;
  width: 100%; max-width: 440px; min-height: 60px;
  padding: 14px 24px;
  border: 0; border-radius: 12px;
  background: var(--button); color: #fff;
  font-family: var(--serif-text);
  font-size: 21px; font-weight: 700; line-height: 1.25;
  text-decoration: none; text-align: center;
  cursor: pointer;
  box-shadow: 0 1px 0 rgba(0, 0, 0, .08), 0 10px 24px rgba(22, 94, 102, .22);
  transition: background-color .15s ease, transform .15s ease;
}
.btn:hover { background: var(--button-hover); }
.btn:active { transform: translateY(1px); }
.btn[disabled] { opacity: .8; cursor: progress; }
.cta { text-align: center; margin: 36px 0 8px; }

/* Sections */
section { padding: 56px 0; }
section.alt { background: var(--white); }
section.blush { background: var(--blush); }
h2 {
  font-family: var(--serif-display);
  font-weight: 600;
  font-size: clamp(32px, 7.4vw, 44px);
  line-height: 1.12;
  margin: 0 0 22px;
  text-wrap: balance;
}
h3 { font-family: var(--serif-text); font-size: 22px; font-weight: 700; line-height: 1.4; margin: 0 0 6px; }
.rule { width: 56px; height: 2px; background: var(--honey-line); border: 0; margin: 0 0 22px; }

/* How it works: a real three-step sequence, so it is numbered. */
ol.steps { list-style: none; counter-reset: s; margin: 8px 0 0; padding: 0; }
ol.steps li {
  counter-increment: s; position: relative;
  padding: 0 0 22px 58px; margin: 0 0 22px;
  border-bottom: 1px solid var(--honey-line);
}
ol.steps li:last-child { border-bottom: 0; margin-bottom: 0; }
ol.steps li::before {
  content: counter(s);
  position: absolute; left: 0; top: -4px;
  width: 42px; height: 42px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--glow); color: var(--honey);
  font-family: var(--serif-display); font-size: 28px; font-weight: 600; line-height: 1;
  font-variant-numeric: lining-nums;
}
ol.steps strong { display: block; }

ul.ticks { list-style: none; margin: 18px 0 0; padding: 0; }
ul.ticks li { position: relative; padding-left: 34px; margin: 0 0 16px; }
ul.ticks li::before {
  content: ""; position: absolute; left: 4px; top: .5em;
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--glow); border: 2px solid var(--honey);
}
ul.ticks.neutral li::before { background: transparent; border-color: #b9a58c; }

.fit { display: grid; gap: 34px; }

/* Screenshots */
figure.shot { margin: 32px 0; }
figure.shot img { border-radius: 12px; box-shadow: 0 16px 40px rgba(43, 30, 20, .10); }
figcaption { font-size: 19px; line-height: 1.55; color: var(--soft-ink); margin-top: 14px; font-style: italic; }
.gallery { display: grid; gap: 8px; }
.hero-shot { margin: 24px auto 0; width: min(66vw, 290px); }
/* The cutout carries its own shadow in the alpha: no frame, radius or box shadow here. */
.hero-shot img { width: 100%; height: auto; }

img.sheet { width: 100%; border: 1px solid var(--honey-line); border-radius: 10px; box-shadow: 0 16px 40px rgba(43, 30, 20, .10); }

/* Image slots, staging only: fixed ratio so swapping in the real image causes no layout shift. */
.img-slot {
  display: grid; place-items: center; text-align: center;
  width: 100%; padding: 16px;
  background: repeating-linear-gradient(135deg, #fff 0 14px, #fbf3e6 14px 28px);
  border: 2px dashed #c9a86a; border-radius: 12px;
  color: var(--honey); font-size: 17px; line-height: 1.45;
}
.r-16-10 { aspect-ratio: 16 / 10; }
.r-4-3 { aspect-ratio: 4 / 3; }

/* Safety and test-burn honesty block */
.safety {
  display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 16px;
  padding: 26px 22px; border: 1px solid var(--honey-line); border-left: 4px solid var(--honey);
  border-radius: 12px; background: var(--cream);
}
.safety svg { width: 22px; height: 33px; margin-top: 6px; }
.safety h2 { font-size: clamp(28px, 6.4vw, 36px); margin-bottom: 14px; }
.safety p:last-child { margin-bottom: 0; }

/* Price block */
.price-card {
  background: var(--white);
  border: 1px solid var(--honey-line); border-radius: 16px;
  padding: 24px 18px 30px;
  box-shadow: 0 18px 44px rgba(43, 30, 20, .08);
}
.price-mock { width: min(56vw, 220px); margin: 0 auto 24px; }
.price-mock img { border-radius: 5px; box-shadow: 0 16px 36px rgba(43, 30, 20, .14); }
.ty-cover { width: min(52vw, 220px); margin: 36px auto 0; }
.ty-cover img { border-radius: 4px; box-shadow: 0 16px 36px rgba(43, 30, 20, .16); }
.price-row.center { margin-bottom: 20px; }
.price-card .cta { margin-top: 24px; }

/* FAQ, every answer open */
.faq dl { margin: 0; }
.faq dt { font-weight: 700; font-size: 21px; line-height: 1.4; margin: 0 0 8px; }
.faq dd { margin: 0 0 30px; padding: 0 0 30px; border-bottom: 1px solid var(--honey-line); }
.faq dd:last-child { border-bottom: 0; margin-bottom: 0; padding-bottom: 0; }
.faq dd p:last-child { margin-bottom: 0; }

footer {
  text-align: center;
  padding: 36px 16px 48px;
  font-size: 17px; color: var(--soft-ink);
  background: var(--cream);
  border-top: 1px solid var(--honey-line);
}

/* Sticky buy bar, phones only. No JS: always on. JS: on only while no page button is in view. */
.buybar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 10;
  display: flex; align-items: center; gap: 12px;
  padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, .97);
  border-top: 1px solid var(--honey-line);
  box-shadow: 0 -8px 24px rgba(43, 30, 20, .08);
  transition: transform .2s ease;
}
.buybar .price-row { flex-direction: column; align-items: center; gap: 2px; margin: 0; flex: none; }
.buybar .was { font-size: 19px; }
.buybar .now { font-size: 34px; }
.buybar .buy { flex: 1; }
.buybar .btn { max-width: none; min-height: 54px; font-size: 18px; padding: 10px 14px; }
.js .buybar { transform: translateY(110%); }
.js .buybar.on { transform: none; }
body { padding-bottom: 86px; }

/* Thank-you page */
.ty-hero { padding-bottom: 48px; }
.ty-copy { text-align: left; }
.ty-copy h1 {
  font-family: var(--serif-display); font-weight: 600;
  font-size: clamp(40px, 9vw, 60px); line-height: 1.08;
  margin: 26px 0 20px; text-align: center; text-wrap: balance;
}
.download { text-align: center; margin: 28px 0 0; }
.btn-download {
  gap: 12px; min-height: 76px; max-width: 520px;
  font-size: 22px; padding: 18px 26px; border-radius: 14px;
  box-shadow: 0 1px 0 rgba(0, 0, 0, .08), 0 14px 30px rgba(22, 94, 102, .28);
}
.btn-download svg { flex: none; }
.dl-secondary { margin: 18px 0 0; font-size: 20px; }
.dl-missing { font-size: 20px; color: var(--honey); }
.ty ol { padding-left: 1.3em; margin: 0 0 1.05em; }
.ty ol li { margin: 0 0 14px; padding-left: 4px; }
.sig { font-family: var(--serif-display); font-size: 28px; font-weight: 600; color: var(--honey); margin-top: -6px; }
.thanks { padding-bottom: 0; }
.notice { padding: 48px 16px 64px; }
.notice h1 { font-family: var(--serif-display); font-size: 40px; line-height: 1.1; }

/* COPY SLOT marking, staging only. Every placeholder element wears a dashed outline. The literal
   word PLACEHOLDER also opens every placeholder sentence. Both go when the real copy lands. */
.ph { outline: 2px dashed rgba(194, 65, 12, .45); outline-offset: 3px; }

@media (min-width: 720px) {
  .hero .sub { font-size: 21px; line-height: 1.55; }
  .wrap { padding: 0 32px; }
  section { padding: 80px 0; }
  .hero { padding-bottom: 72px; }
  .hero h1 { margin-top: 44px; }
  .fit { grid-template-columns: 1fr 1fr; gap: 40px; }
  .price-card { padding: 36px 40px 40px; }
  .gallery { grid-template-columns: 1fr 1fr; gap: 24px; }
  .safety { padding: 32px 32px; }
  .price-mock { width: 240px; }
  .buybar { display: none; }
  body { padding-bottom: 0; }
}
@media (min-width: 960px) {
  .hero-grid {
    max-width: 1120px;
    display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
    gap: 56px; align-items: center; text-align: left;
  }
  .hero-grid h1 { margin-left: 0; max-width: 17ch; font-size: clamp(48px, 4.6vw, 62px); }
  .hero-grid .sub, .hero-grid .under { margin-left: 0; }
  .hero-grid .price-row { justify-content: flex-start; }
  .hero-shot { margin: 44px auto 0; width: 400px; max-width: 100%; }
  .ty-copy h1 { margin-top: 40px; }
}

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

/* Shared legal footer, synced from candlelier-site (footer.md). Floor 17px, tap targets 44px+. */
.site-foot .copyright { margin: 0 0 6px; }
.site-foot .foot-links { list-style: none; margin: 8px auto 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 6px; max-width: 640px; }
.site-foot .foot-links a { display: inline-block; padding: 10px 8px; color: var(--soft-ink); }
.under.guarantee { color: var(--ink); }
@media (min-width: 960px) { .hero-grid .under.guarantee { margin-left: 0; } }
.under.order-note + .under.guarantee { margin-top: 10px; }
