/* Shared styles for the three demand-test landing pages.
   One neutral system, one accent per page (set on <html data-page>). */

:root {
  --bg: #F6F6F4;
  --surface: #FFFFFF;
  --surface-2: #ECEDEA;
  --ink: #17191C;
  --muted: #5B6169;
  --line: #D9DCE0;
  --accent: #B9502F;
  --accent-ink: #FFFFFF;
  --accent-soft: #F7E6DF;
  --ok: #2E6B4C;
  --radius: 10px;
  --max: 1100px;
  --gutter: 20px;
  --shadow: 0 10px 30px rgba(23, 25, 28, .08);
}
html[data-page="memorial"] { --accent: #2E5C47; --accent-soft: #E1EBE5; }
html[data-page="storybook"] { --accent: #2846B4; --accent-soft: #E0E5F7; }

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #121316;
    --surface: #1A1C20;
    --surface-2: #22252A;
    --ink: #ECEDEF;
    --muted: #A3A8B0;
    --line: #2C3036;
    --accent: #E07A57;
    --accent-ink: #121316;
    --accent-soft: #2E221D;
    --ok: #7FC39E;
    --shadow: 0 10px 30px rgba(0, 0, 0, .4);
  }
  html[data-page="memorial"] { --accent: #7FC39E; --accent-soft: #1C2B23; }
  html[data-page="storybook"] { --accent: #93A8F0; --accent-soft: #1C2238; }
}

html { box-sizing: border-box; scroll-behavior: smooth; }
*, *::before, *::after { box-sizing: inherit; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button, a.btn { font: inherit; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.display { font-family: "Bricolage Grotesque", system-ui, sans-serif; font-weight: 700; letter-spacing: -.02em; line-height: 1.05; }

/* Header */
.site-head { height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.brand { font-family: "Bricolage Grotesque", system-ui, sans-serif; font-weight: 700; font-size: 18px; text-decoration: none; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--accent); color: var(--accent-ink);
  border: 0; border-radius: var(--radius); padding: 14px 20px;
  font-weight: 700; font-size: 16px; text-decoration: none; white-space: nowrap;
  cursor: pointer; transition: transform .12s ease, opacity .12s ease;
}
.btn:hover { opacity: .92; }
.btn:active { transform: translateY(1px); }
.btn:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.btn.small { padding: 10px 14px; font-size: 14px; }
.btn.is-unconfigured { opacity: .55; cursor: not-allowed; }

/* Hero */
.hero { padding: 28px 0 56px; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 40px; align-items: center; }
.hero h1 { font-size: clamp(36px, 5.2vw, 58px); max-width: 12ch; }
.hero .lede { margin-top: 18px; font-size: 18px; color: var(--muted); max-width: 44ch; }
.hero .cta-row { margin-top: 26px; display: flex; flex-wrap: wrap; gap: 12px 18px; align-items: center; }
.hero .cta-row .reassure { font-size: 14px; color: var(--muted); }
.hero-img { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); aspect-ratio: 3 / 2; background: var(--surface-2); }
.hero-img img { width: 100%; height: 100%; object-fit: cover; }
.hero figcaption { margin-top: 10px; font-size: 13px; color: var(--muted); }

/* Sections */
section { padding: 56px 0; }
section + section { border-top: 1px solid var(--line); }
.sec-title { font-size: clamp(26px, 3.4vw, 36px); max-width: 22ch; }
.sec-intro { margin-top: 10px; color: var(--muted); max-width: 60ch; }

/* Steps */
.steps { margin-top: 32px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.step .num { font-family: "Bricolage Grotesque", system-ui, sans-serif; font-weight: 700; font-size: 44px; line-height: 1; color: var(--accent); }
.step h3 { margin-top: 10px; font-size: 19px; }
.step p { margin-top: 6px; color: var(--muted); font-size: 15px; }

/* Offer band */
.offer { background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 48px 32px; margin: 8px 0; }
section + .offer { border-top: 1px solid var(--line); }
.offer-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 36px; align-items: start; }
.includes { margin-top: 22px; display: grid; gap: 12px; }
.includes li { display: flex; gap: 12px; align-items: flex-start; font-size: 16px; }
.includes li::before { content: ""; flex: 0 0 10px; width: 10px; height: 10px; margin-top: 9px; border-radius: 50%; background: var(--accent); }
.price-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.price-card .price { font-family: "Bricolage Grotesque", system-ui, sans-serif; font-weight: 700; font-size: 44px; line-height: 1; }
.price-card .price small { font-size: 15px; font-weight: 500; color: var(--muted); margin-left: 6px; }
.price-card .meta { margin-top: 10px; color: var(--muted); font-size: 15px; }
.price-card .btn { width: 100%; margin-top: 18px; }
.price-card .guarantee { margin-top: 14px; font-size: 14px; color: var(--muted); display: flex; gap: 8px; align-items: flex-start; }
.price-card .guarantee b { color: var(--ok); }
.upsell { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); }

/* How it's made */
.made { max-width: 64ch; }
.made p + p { margin-top: 14px; }
.made strong { color: var(--ink); }

/* FAQ */
.faq { margin-top: 24px; max-width: 760px; }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; padding: 16px 0; font-weight: 600; font-size: 17px; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--accent); font-weight: 700; font-size: 20px; line-height: 1; }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { padding: 0 0 18px; color: var(--muted); max-width: 62ch; }

/* Final CTA */
.final { text-align: center; }
.final h2 { font-size: clamp(28px, 4vw, 40px); max-width: 20ch; margin: 0 auto; }
.final p { margin: 12px auto 0; color: var(--muted); max-width: 48ch; }
.final .btn { margin-top: 24px; }

/* Footer */
footer { border-top: 1px solid var(--line); padding: 28px 0 40px; font-size: 14px; color: var(--muted); }
.foot-grid { display: flex; flex-wrap: wrap; gap: 10px 28px; justify-content: space-between; align-items: center; }
.foot-links { display: flex; flex-wrap: wrap; gap: 16px; }
.foot-links a { color: var(--muted); }
.disclosure { margin-top: 14px; max-width: 70ch; }

/* Config warning (only shows when a checkout link is missing) */
.cfg-warn { display: none; background: #9E2B25; color: #fff; font-size: 14px; padding: 10px var(--gutter); text-align: center; }
.cfg-warn.show { display: block; }

/* Policies page */
.policy { max-width: 70ch; }
.policy h2 { margin-top: 32px; font-size: 22px; }
.policy p, .policy li { color: var(--muted); margin-top: 10px; }
.policy ul { list-style: disc; padding-left: 20px; }

@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; gap: 24px; }
  .hero-grid > figure { order: -1; }
  .hero h1 { max-width: none; }
  .steps { grid-template-columns: 1fr; gap: 22px; }
  .offer-grid { grid-template-columns: 1fr; }
  section { padding: 44px 0; }
  .offer { padding: 36px 20px; }
}
@media (max-width: 480px) {
  .btn { width: 100%; }
  .site-head .btn { width: auto; }
  .hero .cta-row { flex-direction: column; align-items: stretch; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
}
