:root {
  --paper: #f7f1e6;
  --card: #fffaf2;
  --ink: #2b2420;
  --muted: #6b5f53;
  --line: #e6dccb;
  --wine: #7a1f2b;
  --wine-dark: #5e1620;
  --gold: #b08a3e;
  --violet: #4b2a5e;
  --ok: #2f6b45;
  --err: #a02a2a;
  --radius: 14px;
  --serif: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --sans: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); font-size: 17px; line-height: 1.6; }
img { max-width: 100%; display: block; }
a { color: var(--wine); }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.15; color: var(--ink); margin: 0 0 .5em; }
h1 { font-size: clamp(34px, 7vw, 56px); }
h2 { font-size: clamp(28px, 5vw, 40px); }
h3 { font-size: 24px; }
p { margin: 0 0 1em; }
.wrap { max-width: 1040px; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 680px; margin: 0 auto; padding: 0 16px; }
.eyebrow { font-size: 12px; letter-spacing: .22em; text-transform: uppercase; color: var(--gold); font-weight: 700; margin-bottom: 10px; }
.muted { color: var(--muted); }
.center { text-align: center; }

.topbar { padding: 16px 0; border-bottom: 1px solid var(--line); background: var(--paper); }
.topbar .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.logo { font-family: var(--serif); font-size: 22px; font-weight: 700; color: var(--wine); text-decoration: none; letter-spacing: .02em; white-space: nowrap; }
.logo span { color: var(--gold); }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; background: var(--wine); color: #fffaf2; border: 0; border-radius: 999px; padding: 16px 30px; font: 700 17px/1.2 var(--sans); text-decoration: none; cursor: pointer; transition: background .15s, transform .15s; }
.btn:hover { background: var(--wine-dark); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn-block { width: 100%; }
.btn-small { padding: 9px 18px; font-size: 14px; }
.btn-ghost { background: transparent; color: var(--ink); border: 1px solid var(--line); }
.btn-ghost:hover { background: #efe6d6; }

.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
section { padding: 64px 0; }
section.alt { background: var(--card); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

/* Landing */
.hero { padding: 56px 0 64px; background: radial-gradient(1200px 500px at 50% -10%, #efe1c6 0%, var(--paper) 60%); }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; }
.hero p.lead { font-size: 20px; color: var(--muted); max-width: 34em; }
.price-line { display: flex; align-items: baseline; gap: 12px; margin: 22px 0 18px; flex-wrap: wrap; }
.price-line .price { font-family: var(--serif); font-size: 40px; font-weight: 700; color: var(--wine); }
.price-line .note { color: var(--muted); font-size: 15px; }
.trust { display: flex; gap: 18px; flex-wrap: wrap; margin-top: 16px; color: var(--muted); font-size: 14px; }
.trust span::before { content: '✓ '; color: var(--ok); font-weight: 700; }

.doors { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; padding: 18px; background: var(--violet); border-radius: 18px; box-shadow: 0 20px 40px -20px rgba(75,42,94,.6); }
.door { aspect-ratio: 1 / 1.15; border-radius: 8px; display: flex; align-items: center; justify-content: center; font-family: var(--serif); font-size: 22px; font-weight: 700; color: #f3e6c8; background: rgba(255,255,255,.08); border: 1px solid rgba(243,230,200,.25); }
.door.lit { background: #f3e6c8; color: var(--violet); }

.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.feature .icon { font-size: 28px; margin-bottom: 8px; }
.feature h3 { font-size: 22px; }
.step-num { width: 36px; height: 36px; border-radius: 50%; background: var(--wine); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; margin-bottom: 12px; }

.sample { border-left: 4px solid var(--gold); }
.sample blockquote { font-family: var(--serif); font-size: 24px; font-style: italic; margin: 0 0 6px; }
.sample .ref { font-size: 14px; color: var(--muted); margin-bottom: 16px; }

.faq details { border-bottom: 1px solid var(--line); padding: 16px 0; }
.faq summary { cursor: pointer; font-weight: 700; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; float: right; color: var(--gold); font-size: 22px; line-height: 1; }
.faq details[open] summary::after { content: '−'; }
.faq details p { margin: 10px 0 0; color: var(--muted); }

footer { padding: 32px 0 96px; color: var(--muted); font-size: 14px; text-align: center; }
footer a { color: var(--muted); }

/* Checkout */
.checkout { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; padding: 32px 0 64px; align-items: start; }
.summary-line { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px dashed var(--line); }
.summary-line.total { border-bottom: 0; font-weight: 800; font-size: 20px; }
.bump { display: flex; gap: 14px; align-items: flex-start; margin: 18px 0; padding: 18px; border: 2px dashed var(--gold); border-radius: var(--radius); background: #fff6df; cursor: pointer; }
.bump.on { border-style: solid; background: #fdeec4; }
.bump input { width: 22px; height: 22px; margin-top: 2px; accent-color: var(--wine); flex: none; }
.bump .tag { display: inline-block; background: var(--wine); color: #fff; font-size: 12px; font-weight: 700; padding: 2px 8px; border-radius: 6px; margin-bottom: 6px; }
.bump strong { display: block; font-size: 18px; }
label.field { display: block; font-weight: 700; font-size: 14px; margin: 14px 0 6px; }
input[type=text], input[type=email] { width: 100%; padding: 14px; font: 16px var(--sans); border: 1px solid var(--line); border-radius: 10px; background: #fff; color: var(--ink); }
input:focus { outline: 2px solid var(--gold); outline-offset: 1px; }
#payment-element { margin: 18px 0; min-height: 120px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 13.5px; color: var(--muted); margin: 14px 0; }
.check input { width: 18px; height: 18px; margin-top: 2px; flex: none; accent-color: var(--wine); }
.error { color: var(--err); background: #fbeaea; border-radius: 10px; padding: 10px 12px; font-size: 14px; display: none; margin: 10px 0; }
.error.show { display: block; }
.secure { font-size: 13px; color: var(--muted); text-align: center; margin-top: 10px; }

/* Calendar */
.cal-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; margin: 24px 0; }
.cal-door { position: relative; aspect-ratio: 1 / 1.1; border-radius: 12px; border: 1px solid var(--line); background: var(--card); display: flex; flex-direction: column; align-items: center; justify-content: center; text-decoration: none; color: var(--muted); padding: 6px; text-align: center; }
.cal-door .n { font-family: var(--serif); font-size: 30px; font-weight: 700; line-height: 1; }
.cal-door .t { font-size: 11px; line-height: 1.25; margin-top: 4px; }
.cal-door.open { background: var(--violet); color: #f3e6c8; border-color: var(--violet); }
.cal-door.open:hover { transform: translateY(-2px); }
.cal-door.today { box-shadow: 0 0 0 3px var(--gold); }
.cal-door.done::after { content: '✓'; position: absolute; top: 6px; right: 8px; font-size: 14px; color: var(--gold); }

/* Window */
.window-head { padding: 40px 0 8px; text-align: center; }
.scripture { font-family: var(--serif); font-size: clamp(22px, 4.5vw, 30px); font-style: italic; line-height: 1.35; text-align: center; margin: 24px 0 8px; }
.scripture-ref { text-align: center; color: var(--muted); font-size: 14px; }
.block { margin: 28px 0; }
.block h3 { font-size: 22px; color: var(--wine); }
.prayer { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; font-family: var(--serif); font-size: 21px; line-height: 1.5; }
.task { background: #fff6df; border: 1px solid #ecd9a8; border-radius: var(--radius); padding: 20px; }
.kids { background: #eef5ee; border: 1px solid #cfe1cf; border-radius: var(--radius); padding: 20px; }
audio { width: 100%; margin: 12px 0; }
.nav-days { display: flex; justify-content: space-between; gap: 10px; margin: 36px 0; }

.consent-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; background: var(--ink); color: #f3ece0; padding: 14px 16px; display: flex; gap: 12px 18px; align-items: center; justify-content: center; flex-wrap: wrap; font-size: 13.5px; }
.consent-bar p { margin: 0; max-width: 560px; }
.consent-bar a { color: #e9cf8f; }
.consent-actions { display: flex; gap: 8px; }
.consent-bar .btn-ghost { color: #f3ece0; border-color: rgba(243,236,224,.4); }

.spinner { width: 28px; height: 28px; border: 3px solid var(--line); border-top-color: var(--wine); border-radius: 50%; animation: spin 0.9s linear infinite; margin: 20px auto; }
@keyframes spin { to { transform: rotate(360deg); } }

@media (max-width: 860px) {
  .hero-grid, .checkout { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: 1fr 1fr; }
  .grid-3 { grid-template-columns: 1fr; }
  .checkout .order-col { order: -1; }
}
@media (max-width: 520px) {
  body { font-size: 16px; }
  .logo { font-size: 19px; }
  .topbar .muted { font-size: 12px !important; }
  section { padding: 44px 0; }
  .grid-4 { grid-template-columns: 1fr; }
  .cal-grid, .doors { grid-template-columns: repeat(4, 1fr); }
  .cal-door .t { display: none; }
}
@media print {
  .consent-bar, .topbar, .no-print { display: none !important; }
  body { background: #fff; }
}

/* ================= Festive theme (checkout, gift upsell, thank-you) ================= */
:root { --night: #1a1030; --night-2: #2a1638; --pine: #1d3b2f; --gold-l: #e9c97a; }
.xmas-top { background: var(--night); border-bottom: 1px solid rgba(233,201,122,.18); }
.xmas-top .logo { color: #f6ead0; }
.xmas-top .logo span { color: var(--gold-l); }
.xmas-top .muted { color: rgba(246,234,208,.7) !important; }
.btn-gold { background: linear-gradient(180deg, #e9c97a, #c99a3e); color: #2a1408; box-shadow: 0 10px 30px -10px rgba(201,154,62,.8); }
.btn-gold:hover { background: linear-gradient(180deg, #f1d68f, #d2a54a); }
.btn-gold:disabled { opacity: .55; box-shadow: none; }
.snow { position: relative; overflow: hidden; isolation: isolate; }
.snow::before, .snow::after { content: ''; position: absolute; inset: -100% 0 0 0; z-index: -1; pointer-events: none;
  background-image: radial-gradient(2px 2px at 20px 30px, #fff 50%, transparent 51%), radial-gradient(1.5px 1.5px at 90px 120px, #fff 50%, transparent 51%),
    radial-gradient(2.5px 2.5px at 160px 60px, rgba(255,255,255,.9) 50%, transparent 51%), radial-gradient(1.5px 1.5px at 230px 170px, #fff 50%, transparent 51%),
    radial-gradient(2px 2px at 300px 90px, rgba(255,255,255,.8) 50%, transparent 51%);
  background-size: 320px 220px; opacity: .5; animation: snowfall 18s linear infinite; }
.snow::after { background-size: 460px 300px; opacity: .3; animation-duration: 28s; }
@keyframes snowfall { to { transform: translateY(50%); } }
@media (prefers-reduced-motion: reduce) { .snow::before, .snow::after { animation: none; } }

.x-band { background: radial-gradient(700px 300px at 80% 0%, rgba(255,190,110,.18), transparent 60%), linear-gradient(180deg, var(--night) 0%, var(--night-2) 100%); color: #f6ead0; padding: 26px 0 64px; text-align: center; }
.x-band h1 { color: #fff7e6; font-size: clamp(28px, 6vw, 42px); margin-bottom: 6px; }
.x-band h1 em { color: var(--gold-l); font-weight: 600; }
.x-band p { color: rgba(246,234,208,.8); margin: 0; }
.steps { display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; margin: 0 0 18px; font-size: 12.5px; letter-spacing: .04em; }
.steps span { padding: 5px 12px; border-radius: 999px; border: 1px solid rgba(233,201,122,.3); color: rgba(246,234,208,.65); }
.steps span.on { background: var(--gold-l); color: #2a1408; border-color: var(--gold-l); font-weight: 700; }
.steps span.done { color: var(--gold-l); }
.lift { margin-top: -40px; position: relative; z-index: 2; }
.card.festive { border-top: 4px solid var(--gold); box-shadow: 0 18px 40px -24px rgba(26,16,48,.45); }

/* bump as a gift tag */
.bump.gifty { position: relative; border: 2px dashed var(--gold); background: linear-gradient(180deg, #fffaf0, #fff3d9); padding-top: 26px; }
.bump.gifty::before { content: ''; position: absolute; top: 0; bottom: 0; left: 50%; width: 10px; transform: translateX(-50%); background: rgba(122,31,43,.08); }
.bump.gifty::after { content: '🎀'; position: absolute; top: -16px; left: 50%; transform: translateX(-50%); font-size: 26px; }
.bump.gifty > * { position: relative; }
.bump.gifty.on { border-style: solid; background: linear-gradient(180deg, #fff6df, #fde9b8); }

.trust-row { display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; font-size: 12.5px; color: var(--muted); margin-top: 12px; }

@media (max-width: 520px) {
  .logo { font-size: 17px; }
  .topbar .wrap { gap: 8px; }
  .x-band { padding: 20px 0 56px; }
}

/* Bigger order button in the landing top bar */
.btn-top { padding: 14px 30px; font-size: 17px; font-weight: 800; box-shadow: 0 6px 18px rgba(201,162,74,.45); }
@media (max-width: 520px) { .btn-top { padding: 12px 18px; font-size: 15.5px; } }
.cd-units { display: inline-flex; gap: 6px; vertical-align: middle; margin: 0 4px; }
.cd-units b { display: inline-block; min-width: 46px; padding: 4px 6px; border-radius: 8px; background: rgba(0,0,0,.22); color: var(--gold-l); font-variant-numeric: tabular-nums; line-height: 1.1; }
.cd-units b small { display: block; font-size: 10px; font-weight: 600; color: #f3e6c8; opacity: .8; }
/* Closed calendar door: clickable, gives feedback */
div.cal-door { cursor: pointer; }
.cal-door.shake { animation: kdaShake .4s; }
@keyframes kdaShake { 20%, 60% { transform: translateX(-4px); } 40%, 80% { transform: translateX(4px); } }
.kda-toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: var(--violet); color: #f3e6c8; padding: 14px 20px; border-radius: 12px; font-size: 15px; box-shadow: 0 10px 30px rgba(0,0,0,.25); z-index: 60; max-width: calc(100% - 32px); text-align: center; opacity: 0; transition: opacity .2s; pointer-events: none; }
.kda-toast.show { opacity: 1; }
.top-actions { display: flex; gap: 8px; }
.topbar .btn { white-space: nowrap; flex-shrink: 0; }
@media (max-width: 520px) {
  .topbar .logo { font-size: 15px; white-space: normal; line-height: 1.15; }
  .btn-top { padding: 11px 16px; font-size: 15px; }
}
