:root {
  --bg: #fbf7f1;
  --surface: #ffffff;
  --text: #2a1c17;
  --muted: #6d5d55;
  --brand: #b3121f;
  --brand-dark: #8c0d17;
  --accent: #1f6b45;
  --border: #eadfd4;
  --night: #1c0e0a;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(60, 20, 10, 0.12);
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--text);
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); line-height: 1.55; }
body.modal-open { overflow: hidden; }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; }
h1 { font-size: clamp(2rem, 5vw, 3.2rem); }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.1rem); text-align: center; }
a { color: var(--brand); }

.btn {
  display: inline-block; border: 0; border-radius: 999px; cursor: pointer;
  background: var(--brand); color: #fff; font: inherit; font-weight: 700;
  padding: .8em 1.6em; text-decoration: none; transition: background .15s;
}
.btn:hover { background: var(--brand-dark); }
.btn:disabled { opacity: .6; cursor: wait; }
.btn-large { font-size: 1.15rem; padding: .95em 2em; }
.btn-small { font-size: .9rem; padding: .55em 1.1em; }
.btn-ghost { background: transparent; color: var(--brand); border: 2px solid var(--brand); }
.btn-ghost:hover { background: #fdecec; }
.btn-block { width: 100%; }
.link-btn { background: none; border: 0; color: var(--brand); font: inherit; cursor: pointer; padding: 0; text-decoration: underline; }

.site-header, .site-footer {
  display: flex; justify-content: space-between; align-items: center;
  max-width: 1100px; margin: 0 auto; padding: 16px;
}
.logo { font-weight: 800; font-size: 1.15rem; color: var(--text); text-decoration: none; }
.site-footer { color: var(--muted); font-size: .9rem; flex-wrap: wrap; gap: 8px; }

main > section, .badges { max-width: 1100px; margin: 0 auto; padding: 48px 16px; }
.hero { display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: center; }
.eyebrow { color: var(--accent); font-weight: 700; text-transform: uppercase; letter-spacing: .08em; margin: 0 0 .5em; }
.lead { font-size: 1.2rem; color: var(--muted); }
.fine { color: var(--muted); font-size: .9rem; }
.hero-card {
  aspect-ratio: 16 / 10; border-radius: 24px; background: radial-gradient(circle at 30% 80%, #ff9a3c55, transparent 60%), linear-gradient(#3a1d14, var(--night));
  display: grid; place-items: center; font-size: 7rem; box-shadow: var(--shadow);
}

.badges { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; padding-top: 0; }
.badges li { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; display: flex; flex-direction: column; }
.badges span { color: var(--muted); font-size: .95rem; }

.steps { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.steps li { background: var(--surface); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.num { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--accent); color: #fff; font-weight: 800; margin-bottom: 10px; }

.pricing { text-align: center; }
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin: 24px 0 32px; }
.plan { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px 20px; position: relative; }
.plan-featured { border: 2px solid var(--brand); box-shadow: var(--shadow); }
.plan .tag { position: absolute; top: -13px; left: 50%; transform: translateX(-50%); background: var(--brand); color: #fff; font-size: .8rem; font-weight: 700; padding: 2px 12px; border-radius: 999px; margin: 0; }
.price { font-size: 2.2rem; font-weight: 800; margin: 0 0 .3em; }

.faq { max-width: 760px !important; }
.faq details { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px 18px; margin-bottom: 10px; }
.faq summary { font-weight: 700; cursor: pointer; }

/* Funnel modal */
.modal { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; padding: 16px; }
.modal[hidden] { display: none; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(20, 8, 4, .65); }
.modal-panel {
  position: relative; background: var(--surface); border-radius: 20px; width: min(640px, 100%);
  max-height: calc(100vh - 32px); overflow-y: auto; padding: 28px 24px 24px; box-shadow: var(--shadow);
}
.modal-close { position: absolute; top: 10px; right: 14px; background: none; border: 0; font-size: 1.8rem; cursor: pointer; color: var(--muted); }
.progress { list-style: none; display: flex; gap: 6px; padding: 0; margin: 0 32px 20px 0; font-size: .8rem; color: var(--muted); }
.progress li { flex: 1; border-top: 4px solid var(--border); padding-top: 4px; }
.progress li.done, .progress li.active { border-color: var(--brand); color: var(--text); font-weight: 700; }

.field { margin-bottom: 16px; }
.field label { display: block; font-weight: 700; margin-bottom: 6px; }
.field input, .field textarea {
  width: 100%; font: inherit; padding: 12px 14px; border: 1.5px solid var(--border); border-radius: 10px; background: #fff; color: var(--text);
}
.field input:focus, .field textarea:focus { outline: 2px solid var(--brand); border-color: transparent; }
.field textarea { min-height: 120px; resize: vertical; }
.hint { color: var(--muted); font-size: .85rem; display: flex; justify-content: space-between; gap: 12px; margin-top: 4px; }
.error { color: var(--brand); font-size: .9rem; font-weight: 600; margin: 4px 0 0; }
.notice { background: #fff6e5; border: 1px solid #f1d9a8; border-radius: 10px; padding: 10px 14px; font-size: .9rem; }

/* Player */
.player-stage { position: relative; border-radius: 14px; overflow: hidden; background: var(--night); aspect-ratio: 16 / 9; }
.player-stage canvas, .player-stage video { width: 100%; height: 100%; display: block; object-fit: cover; filter: blur(var(--preview-blur, 0px)); transform: scale(1.03); }
.player-caption {
  position: absolute; left: 0; right: 0; bottom: 14px; text-align: center; color: #fff; font-weight: 700;
  font-size: clamp(1rem, 2.6vw, 1.3rem); text-shadow: 0 2px 6px #000; padding: 0 12px; filter: blur(var(--preview-blur, 0px));
}
.player-progress { position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: rgba(255,255,255,.2); }
.player-progress span { display: block; height: 100%; width: 0; background: var(--brand); }
.player-overlay {
  position: absolute; inset: 0; display: grid; place-items: center; text-align: center; color: #fff; padding: 16px;
  background: rgba(20, 8, 4, .35);
}
.player-overlay h3 { font-size: clamp(1.2rem, 3.5vw, 1.7rem); text-shadow: 0 2px 8px #000; }
.player-wrap { position: relative; }
.pill { display: inline-block; font-size: .8rem; font-weight: 700; padding: 2px 10px; border-radius: 999px; background: #e7f3ec; color: var(--accent); }
.pill-muted { background: #f1ece8; color: var(--muted); }

/* Cart & status */
.cart-item { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; border: 1px solid var(--border); border-radius: 12px; padding: 12px 14px; margin-bottom: 10px; }
.cart-item p { margin: 2px 0 0; color: var(--muted); font-size: .9rem; overflow-wrap: anywhere; }
.cart-actions { display: flex; gap: 12px; flex-shrink: 0; }
.summary { border-top: 1px solid var(--border); margin-top: 16px; padding-top: 12px; }
.summary-row { display: flex; justify-content: space-between; margin: 4px 0; }
.summary-row.total { font-weight: 800; font-size: 1.15rem; }
.summary-row.save { color: var(--accent); }
.promo { display: flex; gap: 8px; margin: 14px 0; }
.promo input { flex: 1; font: inherit; padding: 10px 12px; border: 1.5px solid var(--border); border-radius: 10px; text-transform: uppercase; }
.stack { display: grid; gap: 10px; margin-top: 18px; }
.status-list { list-style: none; padding: 0; }
.status-list li { display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid var(--border); }
.spinner { display: inline-block; width: 16px; height: 16px; border: 3px solid var(--border); border-top-color: var(--brand); border-radius: 50%; animation: spin 1s linear infinite; vertical-align: middle; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Legal pages */
.legal { max-width: 760px; margin: 0 auto; padding: 24px 16px 64px; }
.legal h1 { font-size: clamp(1.8rem, 4vw, 2.4rem); }
.legal h2 { text-align: left; font-size: 1.25rem; margin-top: 1.6em; }
.legal li { margin-bottom: .4em; }
.legal table { width: 100%; border-collapse: collapse; margin: .8em 0 1.2em; font-size: .95rem; }
.legal th, .legal td { text-align: left; vertical-align: top; padding: 8px 10px; border-bottom: 1px solid rgba(127, 127, 127, .3); }

/* Watch page */
.watch { max-width: 860px; margin: 0 auto; padding: 24px 16px 64px; }
.watch-video { margin-bottom: 40px; }

@media (max-width: 760px) {
  .hero, .badges, .steps, .plans { grid-template-columns: 1fr; }
  .hero-visual { order: -1; }
  .hero-card { font-size: 5rem; }
  main > section, .badges { padding: 32px 16px; }
  .modal { padding: 0; place-items: end stretch; }
  .modal-panel { border-radius: 20px 20px 0 0; max-height: 94vh; padding: 24px 16px 20px; }
}

/* ---------- Christmas dressing (landing page) ---------- */
h1, h2, .price, .logo { font-family: "Fraunces", Georgia, serif; }
h1 em { font-style: italic; color: #ffd27a; }

.night {
  position: relative; overflow: hidden; color: #fff;
  background:
    radial-gradient(ellipse 60% 50% at 80% 70%, rgba(255, 140, 60, .22), transparent 70%),
    linear-gradient(180deg, #0c1a30 0%, #1d1a35 45%, #3b1520 100%);
}
.night .site-header, .night .hero { position: relative; z-index: 2; }
.night .logo { color: #fff; }
.night .eyebrow { color: #ffd27a; }
.night .lead { color: #e9dcd4; }
.night .fine { color: #c9b9b0; }
.night .hero { max-width: 1100px; margin: 0 auto; padding: 32px 16px 88px; }

/* String lights along the top edge. */
.lights {
  position: relative; z-index: 3; display: flex; height: 34px;
  overflow: hidden;
  background: radial-gradient(ellipse 30px 14px at 28px -6px, transparent 13px, #2c3a2a 14px, #2c3a2a 15px, transparent 16px) 0 0 / 56px 34px repeat-x;
}
.lights i {
  flex: none; width: 10px; height: 16px; margin: 12px 23px 0; border-radius: 50% 50% 45% 45%;
  background: var(--c, #ff4d4d); box-shadow: 0 2px 12px 2px var(--c, #ff4d4d); position: relative;
  animation: twinkle 2.4s ease-in-out infinite; animation-delay: calc(var(--d, 0) * -0.6s);
}
.lights i::before { content: ""; position: absolute; top: -4px; left: 2px; width: 6px; height: 5px; background: #4a4a3a; border-radius: 2px; }
.lights i:nth-child(4n+1) { --c: #ff4d4d; --d: 1; }
.lights i:nth-child(4n+2) { --c: #ffd24d; --d: 3; }
.lights i:nth-child(4n+3) { --c: #4dd88a; --d: 2; }
.lights i:nth-child(4n+4) { --c: #5ab8ff; --d: 4; }
@keyframes twinkle { 50% { opacity: .35; box-shadow: 0 2px 4px 0 var(--c, #ff4d4d); } }

/* Falling snow: two tiled dot layers drifting at different speeds. */
.snow, .snow::after {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background-image:
    radial-gradient(2px 2px at 20px 30px, #fff, transparent),
    radial-gradient(2px 2px at 90px 120px, #fff, transparent),
    radial-gradient(1.5px 1.5px at 160px 60px, #fffc, transparent),
    radial-gradient(2.5px 2.5px at 230px 170px, #fff, transparent),
    radial-gradient(1.5px 1.5px at 280px 20px, #fffa, transparent);
  background-size: 300px 200px;
  animation: snowfall 14s linear infinite; opacity: .8;
}
.snow::after { content: ""; inset: 0; background-size: 220px 260px; animation: snowfall2 22s linear infinite; opacity: .55; }
@keyframes snowfall { to { background-position: 0 200px; } }
@keyframes snowfall2 { to { background-position: 0 260px; } }

.snowbank { position: absolute; left: 0; right: 0; bottom: -1px; width: 100%; height: 60px; z-index: 2; fill: var(--bg); }

.btn-glow { box-shadow: 0 0 0 0 rgba(255, 90, 90, .6); animation: glow 2.6s ease-in-out infinite; }
@keyframes glow { 50% { box-shadow: 0 0 0 10px rgba(255, 90, 90, 0); } }

.hero-card {
  position: relative; overflow: hidden; aspect-ratio: 16 / 9; padding: 0;
  border: 6px solid #f4ead9; border-radius: 20px; box-shadow: 0 20px 50px rgba(0, 0, 0, .45), 0 0 0 1px #0003;
}
.hero-card canvas { display: block; width: 100%; height: 100%; }
.hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .6s; }
.has-video .hero-video { opacity: 1; }
.hero-sound {
  position: absolute; top: 12px; right: 12px; border: 0; border-radius: 999px; padding: 4px 12px;
  background: rgba(0, 0, 0, .55); color: #fff; font: inherit; font-size: .78rem; font-weight: 700; cursor: pointer;
}
.hero-sound:focus-visible { outline: 3px solid #ffd27a; outline-offset: 3px; }
.hero-tag {
  position: absolute; top: 12px; left: 12px; margin: 0; padding: 3px 10px; border-radius: 999px;
  background: rgba(0, 0, 0, .55); font-size: .78rem; font-weight: 700; letter-spacing: .03em;
}
.hero-tag .dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #ff4d4d; margin-right: 6px; animation: twinkle 1.6s infinite; --c: #ff4d4d; }
.hero-play {
  position: absolute; left: 14px; bottom: 14px; display: flex; align-items: center; gap: 8px; border: 0; border-radius: 999px;
  background: rgba(179, 18, 31, .95); color: #fff; font: inherit; font-weight: 700; font-size: .95rem; padding: 8px 16px 8px 10px; cursor: pointer;
  box-shadow: 0 6px 24px rgba(0, 0, 0, .45); transition: transform .15s;
}
.hero-play .icon { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: #fff; color: var(--brand); font-size: .8rem; padding-left: 2px; }
.hero-play:hover { transform: scale(1.05); }
.hero-play:focus-visible, .night .btn:focus-visible { outline: 3px solid #ffd27a; outline-offset: 3px; }

.badges { margin-top: 8px !important; }
.badges .badge-icon { font-size: 1.6rem; color: inherit; line-height: 1; margin-bottom: 8px; }

/* Step numbers as baubles. */
.num { position: relative; width: 40px; height: 40px; margin-top: 8px; background: radial-gradient(circle at 35% 30%, #ff8a8a, var(--brand) 60%); box-shadow: inset -3px -4px 6px #0003; }
.num::before { content: ""; position: absolute; top: -7px; left: 50%; translate: -50% 0; width: 12px; height: 7px; border-radius: 2px; background: #d8b45a; }
.steps li:nth-child(2) .num { background: radial-gradient(circle at 35% 30%, #7fe0a8, var(--accent) 60%); }
.steps li:nth-child(3) .num { background: radial-gradient(circle at 35% 30%, #ffe08a, #c08a1e 60%); }

/* Candy-cane trim on the featured plan. */
.plan-featured { border: 0; padding-top: 34px; overflow: visible; }
.plan-featured::before {
  content: ""; position: absolute; inset: 0; border-radius: var(--radius); padding: 4px; pointer-events: none;
  background: repeating-linear-gradient(-45deg, var(--brand) 0 10px, #fff 10px 20px);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
}
.plan .tag { z-index: 1; }

.faq summary::marker { color: var(--accent); }

.site-footer { max-width: none; justify-content: center; text-align: center; background: #173d2a; color: #cfe3d6; padding: 28px 16px; }
.site-footer a { color: #fff; }

@media (max-width: 760px) {
  .night .hero { padding: 16px 16px 72px; gap: 24px; }
  .hero-play { font-size: .85rem; left: 10px; bottom: 10px; }
  .logo, .site-header .btn-small { white-space: nowrap; }
  .logo { font-size: 1rem; }
}
@media (prefers-reduced-motion: reduce) {
  .snow, .snow::after, .lights i, .btn-glow, .hero-tag .dot { animation: none; }
}

.check { display: flex; gap: 8px; align-items: flex-start; font-size: .88rem; color: var(--muted); margin-top: 10px; cursor: pointer; }
.check input { margin-top: 3px; accent-color: var(--brand); width: 16px; height: 16px; flex: none; }

/* Christmas countdown page */
.countdown-hero { grid-template-columns: 1fr; text-align: center; }
.countdown-hero h1 { font-size: clamp(2.2rem, 6vw, 3.6rem); }
.countdown-answer { font-size: clamp(1.2rem, 3vw, 1.6rem); font-weight: 700; color: #ffd27a; margin: 0 0 24px; }
.clock { display: grid; grid-template-columns: repeat(4, minmax(0, 120px)); justify-content: center; gap: 12px; margin: 0 auto 16px; }
.clock div { background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .18); border-radius: 16px; padding: 14px 6px; }
.clock strong { display: block; font-family: "Fraunces", Georgia, serif; font-size: clamp(2rem, 7vw, 3.4rem); line-height: 1; font-variant-numeric: tabular-nums; }
.clock span { font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: #e9dcd4; }
.cta-card { display: flex; align-items: center; justify-content: space-between; gap: 24px; background: var(--surface); border: 2px solid var(--brand); border-radius: 20px; padding: 28px; box-shadow: var(--shadow); }
.cta-card h2 { text-align: left; }
.cta-card p { margin: 0; color: var(--muted); }
.countdown-remind { text-align: center; max-width: 640px !important; }
.remind { display: flex; gap: 8px; margin: 16px 0 8px; }
.remind input { flex: 1; min-width: 0; font: inherit; padding: 12px 14px; border: 1.5px solid var(--border); border-radius: 999px; }
.key-dates table { width: 100%; max-width: 560px; margin: 0 auto; border-collapse: collapse; background: var(--surface); border-radius: var(--radius); overflow: hidden; }
.key-dates th, .key-dates td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--border); }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

@media (max-width: 760px) {
  .clock { gap: 6px; }
  .clock div { padding: 10px 2px; border-radius: 12px; }
  .cta-card { flex-direction: column; text-align: center; }
  .cta-card h2 { text-align: center; }
  .remind { flex-direction: column; }
}
