/* Hello Santa Claus — order pages.
   One idea carries the page: each child is an entry written into Santa's
   Nice List (parchment, gold rule, the name in an old book face). Everything
   around it stays quiet. Gold #C9A24B is the same gold the video uses for the
   border round each child's photo. */

:root {
  --night: #0e1830;
  --night-2: #172650;
  --moon: #efe6d2;
  --moon-dim: #b9b3a6;
  --parchment: #f3e5c5;
  --parchment-edge: #e2cc9a;
  --ink: #3b2714;
  --ink-soft: #6e5436;
  --gold: #c9a24b;
  --red: #b3212f;
  --red-dark: #8e1824;
  --fell: "IM Fell English", Georgia, "Times New Roman", serif;
  --plain: "Atkinson Hyperlegible", system-ui, -apple-system, "Segoe UI", sans-serif;
  --paybar-h: 76px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%;
  /* anything scrolled or tabbed to stops ABOVE the pay bar, never under it */
  scroll-padding-top: 16px;
  scroll-padding-bottom: calc(var(--paybar-h) + 24px); }
body {
  margin: 0;
  background:
    radial-gradient(1px 1px at 12% 18%, #fff8 50%, transparent 51%),
    radial-gradient(1px 1px at 78% 9%, #fff6 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 64% 32%, #fff5 50%, transparent 51%),
    radial-gradient(1px 1px at 33% 61%, #fff4 50%, transparent 51%),
    radial-gradient(1px 1px at 88% 74%, #fff5 50%, transparent 51%),
    linear-gradient(180deg, var(--night) 0%, var(--night-2) 100%);
  background-size: 420px 420px, 380px 380px, 520px 520px, 460px 460px, 400px 400px, 100% 100%;
  color: var(--moon);
  font: 18px/1.55 var(--plain);
}
a { color: inherit; text-underline-offset: 3px; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }

.page { max-width: 640px; margin: 0 auto; padding: 32px 20px calc(var(--paybar-h) + 48px); }

/* ── hero ─────────────────────────────────────────── */
.hero { padding: 8px 0 28px; }
.brand { font-family: var(--fell); color: var(--gold); font-size: 1.15rem; margin: 0 0 18px; }
.hero h1 {
  font-family: var(--fell); font-weight: 400;
  font-size: clamp(2rem, 7vw, 2.8rem); line-height: 1.12; margin: 0 0 16px;
}
.tagline { font-family: var(--fell); font-style: italic; color: var(--gold); font-size: 1.3rem; line-height: 1.3; margin: -4px 0 16px; }
.lede { color: var(--moon); margin: 0 0 14px; max-width: 34em; }
.price-line { color: var(--moon-dim); margin: 0; }
.sample-wrap { margin: 26px 0 0; }
.sample-title { font-family: var(--fell); font-weight: 400; font-size: 1.6rem; margin: 0 0 6px; color: var(--gold); }
.sample-intro { color: var(--moon-dim); margin: 0 0 12px; font-size: .95rem; }
.sample { width: auto; max-width: 100%; max-height: 78vh; margin: 0 auto; border-radius: 6px; border: 1px solid #ffffff22; background: #000; display: block; }
.sample-wrap figcaption { color: var(--moon-dim); font-size: .88rem; margin-top: 6px; text-align: center; }
.todo { background: #fff3cd; color: #5c4400; padding: 0 4px; border-radius: 3px; font-weight: 700; }
.prose .draft { background: #fff3cd; color: #5c4400; border-radius: 6px; padding: 10px 14px; }

h2 { font-family: var(--fell); font-weight: 400; font-size: 1.6rem; margin: 40px 0 14px; }

/* ── a Nice List entry ────────────────────────────── */
.entries { display: grid; gap: 18px; }
.entry {
  margin: 0; padding: 22px 20px 20px;
  background: var(--parchment) linear-gradient(180deg, #fff3 0%, transparent 40%);
  color: var(--ink);
  border: 0; border-top: 3px solid var(--gold);
  border-radius: 3px 3px 8px 8px;
  box-shadow: 0 1px 0 var(--parchment-edge), 0 14px 30px -18px #000c;
}
.entry-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px;
  border-bottom: 1px solid var(--parchment-edge); padding-bottom: 10px; margin-bottom: 14px; }
.entry-name { font-family: var(--fell); font-size: 1.9rem; line-height: 1.1; margin: 0;
  overflow-wrap: anywhere; }
.remove { background: none; border: 0; color: var(--ink-soft); font: inherit; font-size: .9rem;
  text-decoration: underline; cursor: pointer; padding: 4px; }

.field { display: block; margin: 0 0 16px; }
.label { display: block; font-weight: 700; margin-bottom: 4px; }
.opt { font-weight: 400; color: var(--ink-soft); font-size: .88em; }
.hint { display: block; font-size: .88rem; color: var(--ink-soft); margin-top: 5px; line-height: 1.4; }

input[type=text], input:not([type]), input[type=email], select, textarea {
  width: 100%; font: inherit; color: inherit;
  padding: 10px 12px; border-radius: 6px;
  border: 1px solid #b89b62; background: #fffaf0;
}
.entry input:not([type=file]):not([type=checkbox]) {
  /* writing on a line in the book */
  border: 0; border-bottom: 2px solid #a8864a; border-radius: 0;
  background: transparent; padding: 6px 2px; font-size: 1.1rem;
}
.entry input::placeholder { color: #a08a68; }
.entry input:focus { outline: none; border-bottom-color: var(--red); }
.entry input:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

.sentence .santa { display: block; font-family: var(--fell); font-style: italic;
  font-size: 1.35rem; color: var(--ink); margin-bottom: 2px; }

.sayas { margin: -6px 0 14px; }
.sayas summary { cursor: pointer; color: var(--ink-soft); font-size: .95rem; }
.sayas[open] summary { margin-bottom: 10px; }

.photo .file { display: inline-block; position: relative; }
.photo input[type=file] { position: absolute; inset: 0; opacity: 0; width: 100%; cursor: pointer; }
.file-button { display: inline-block; padding: 10px 16px; border: 1.5px solid #a8864a;
  border-radius: 6px; background: #fffaf0; color: var(--ink); font-size: .95rem;
  max-width: 100%; overflow-wrap: anywhere; }
.file:focus-within .file-button { outline: 3px solid var(--gold); outline-offset: 2px; }
.file-button.chosen { border-color: var(--gold); background: #fff3d6; }
.kept { margin: 0 0 8px; }
.kept label { margin-left: 8px; font-size: .92rem; }

.add {
  margin-top: 16px; width: 100%; padding: 14px; font: inherit; cursor: pointer;
  color: var(--moon); background: transparent;
  border: 1px dashed #c9a24b99; border-radius: 8px;
}
.add span { color: var(--gold); margin-left: 6px; }
.add:hover { border-style: solid; }

/* ── your details ─────────────────────────────────── */
.you .field .label { color: var(--moon); }
.you .hint, .you .opt { color: var(--moon-dim); }
.you input, .you select { background: #0b1428; color: var(--moon); border-color: #ffffff33; }
.check { display: flex; gap: 12px; align-items: flex-start; margin: 18px 0; font-size: .95rem; }
.check input { width: 22px; height: 22px; margin-top: 2px; flex: none; accent-color: var(--red); }

/* ── errors ───────────────────────────────────────── */
.errors { background: #fbe9e9; color: #5a0f16; border-left: 5px solid var(--red);
  border-radius: 6px; padding: 14px 18px; margin: 10px 0 8px; }
.errors p { margin: 0 0 6px; font-weight: 700; }
.errors ul { margin: 0; padding-left: 20px; }
.errors .small { font-weight: 400; margin-top: 8px; font-size: .9rem; }

/* ── pay bar: always in reach on a phone ──────────── */
.paybar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 10;
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding: 12px max(20px, env(safe-area-inset-right)) calc(12px + env(safe-area-inset-bottom)) max(20px, env(safe-area-inset-left));
  background: #0a1226f2; border-top: 1px solid #c9a24b55;
  transition: transform .18s ease-out;
}
/* Phones: while the keyboard is up for typing, the bar steps aside so it can
   never sit on top of the field being filled in. It returns on the next tap. */
@media (max-width: 719px) {
  body.typing .paybar { transform: translateY(110%); }
}
@media (max-width: 420px) {
  .paybar { padding-top: 10px; padding-bottom: calc(10px + env(safe-area-inset-bottom)); gap: 10px; }
  .total { font-size: 1.25rem; }
  .total .for { font-size: .8rem; }
  .pay { padding: 12px 14px; font-size: 1rem; }
}
@media (max-width: 340px) {
  .paybar { padding-left: max(14px, env(safe-area-inset-left)); padding-right: max(14px, env(safe-area-inset-right)); }
  .total { font-size: 1.1rem; }
  .pay { padding: 11px 12px; font-size: .95rem; }
}
.total { margin: 0; font-size: 1.5rem; font-weight: 700; flex: none; }
.total .for { display: block; font-size: .85rem; font-weight: 400; color: var(--moon-dim); }
.pay {
  font: inherit; font-weight: 700; color: #fff; cursor: pointer;
  background: var(--red); border: 0; border-radius: 8px; padding: 14px 20px;
  box-shadow: inset 0 -3px 0 var(--red-dark);
  min-width: 0; flex: 0 1 auto;
}
.pay:hover { background: #c22535; }
.pay:disabled { opacity: .7; cursor: progress; }
.after { color: var(--moon-dim); font-size: .92rem; margin-top: 28px; }

.closed { background: var(--parchment); color: var(--ink); border-left: 4px solid var(--gold);
  border-radius: 6px; padding: 12px 16px; margin: 0 0 24px; }
.closed p { margin: 0; }
.closed.preview { border-left-color: var(--red); }

/* ── questions (FAQ) ──────────────────────────────── */
.how { margin: 40px 0 0; }
.how ol { margin: 0; padding-left: 1.3em; color: var(--moon-dim); max-width: 36em; }
.how li { margin: 0 0 10px; }
.how strong { color: var(--moon); }
.faq { margin: 40px 0 0; }
.faq details { border-top: 1px solid #c9a24b44; padding: 12px 0; }
.faq details:last-child { border-bottom: 1px solid #c9a24b44; }
.faq summary { cursor: pointer; font-weight: 700; color: var(--moon); }
.faq details[open] summary { margin-bottom: 8px; }
.faq p { color: var(--moon-dim); margin: 0 0 4px; max-width: 36em; }
.faq a { color: var(--gold); }

@media (min-width: 720px) {
  .paybar { left: 50%; right: auto; width: 640px; transform: translateX(-50%);
    border: 1px solid #c9a24b55; border-bottom: 0; border-radius: 10px 10px 0 0; }
}

/* ── simple pages ─────────────────────────────────── */
.card { background: var(--parchment); color: var(--ink); border-top: 3px solid var(--gold);
  border-radius: 3px 3px 8px 8px; padding: 26px 22px; }
.card h1 { font-family: var(--fell); font-weight: 400; font-size: 2rem; line-height: 1.15; margin: 0 0 12px; }
.card p { margin: 0 0 12px; }
.card .status { font-weight: 700; }
.prose h1 { font-family: var(--fell); font-weight: 400; font-size: 2.2rem; }
.prose h2 { font-size: 1.35rem; margin-top: 28px; }
.prose p, .prose li { color: var(--moon); max-width: 36em; }
.button { display: inline-block; background: var(--red); color: #fff; text-decoration: none;
  padding: 12px 18px; border-radius: 8px; font-weight: 700; border: 0; font: inherit; cursor: pointer; }
.testmode { background: #fff3cd; color: #5c4400; border-radius: 6px; padding: 10px 14px;
  font-size: .95rem; margin-bottom: 16px; }

.foot { text-align: center; color: var(--moon-dim); font-size: .9rem;
  padding: 26px 20px calc(var(--paybar-h) + 30px); border-top: 1px solid #c9a24b33; max-width: 640px; margin: 0 auto; }
.foot p { margin: 8px 0; }
.foot a { color: var(--moon); text-decoration: none; }
.foot a:hover, .foot a:focus-visible { color: var(--gold); text-decoration: underline; }
.foot-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 14px; margin: 0 0 10px; font-size: .86rem; }
.foot-social { display: flex; justify-content: center; gap: 18px; }
.foot-email a { color: var(--gold); font-weight: 700; font-size: 1rem; }
.foot-legal { font-size: .8rem; }

/* ── trust + contact ──────────────────────────────── */
.trust-line { color: var(--moon-dim); font-size: .92rem; margin: 10px 0 0; }
.trust-line a { color: var(--gold); }
.trust { margin: 40px 0 0; padding: 20px 20px 8px; border: 1px solid #c9a24b66; border-radius: 10px;
  background: #0a1226aa; }
.trust h2 { margin-top: 0; }
.trust p, .prose .promise li { max-width: 36em; }
.trust a, .talk a:not(.cbtn) { color: var(--gold); }
.promise { padding-left: 1.2em; margin: 0 0 14px; color: var(--moon-dim); }
.promise li { margin: 0 0 8px; }
.promise strong, .trust strong { color: var(--moon); }
.talk { margin: 40px 0 120px; }
.talk > p { color: var(--moon-dim); }
.contact-buttons { display: grid; gap: 10px; margin: 16px 0; }
@media (min-width: 560px) { .contact-buttons { grid-template-columns: 1fr 1fr; } }
.cbtn { display: block; padding: 14px 16px; border-radius: 10px; text-decoration: none;
  border: 1px solid #c9a24b66; background: #ffffff0d; color: var(--moon); }
.cbtn:hover, .cbtn:focus-visible { border-color: var(--gold); background: #ffffff17; }
.cbtn-label { display: block; font-weight: 700; }
.cbtn-detail { display: block; color: var(--moon-dim); font-size: .9rem; overflow-wrap: anywhere; }
.cbtn-email { background: var(--red); border-color: var(--red); color: #fff; grid-column: 1 / -1; }
.cbtn-email .cbtn-detail { color: #fff; font-size: 1.05rem; font-weight: 700; }
.cbtn-email:hover, .cbtn-email:focus-visible { background: var(--red); filter: brightness(1.1); }
.social { display: flex; flex-wrap: wrap; gap: 10px; }
.social-big a { display: inline-block; padding: 10px 16px; border: 1px solid #c9a24b66; border-radius: 999px;
  color: var(--moon); text-decoration: none; font-weight: 700; }
.social-big a:hover, .social-big a:focus-visible { border-color: var(--gold); color: var(--gold); }
.follow { margin: 18px 0 6px; color: var(--moon-dim); }
.contact-page .brand a { color: var(--gold); text-decoration: none; }
.contact-form { margin: 8px 0 10px; }
.contact-form textarea { resize: vertical; min-height: 140px; }
.contact-form .hint a { color: inherit; }
.prose .contact-form p.hint { font-size: .85rem; margin: 12px 0 0; color: var(--ink-soft); }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; } }

/* ── siblings offer + sample page ─────────────────── */
.hero h2.tagline { font-weight: 400; }

.siblings p { color: var(--moon-dim); max-width: 36em; }
.price-table { border-collapse: collapse; margin: 14px 0 0; min-width: 240px; }
.price-table caption { text-align: left; color: var(--moon-dim); font-size: .9rem; padding-bottom: 6px; }
.price-table th, .price-table td { text-align: left; padding: 6px 22px 6px 0; border-bottom: 1px solid #c9a24b33; }
.price-table th { color: var(--gold); font-weight: 700; }
.sample-wrap figcaption a { color: var(--gold); }
.sample-page .brand a { color: var(--gold); text-decoration: none; }
.transcript dt { font-weight: 700; color: var(--gold); margin-top: 10px; }
.transcript dd { margin: 2px 0 0; color: var(--moon); max-width: 36em; }
.sample-page .small { font-size: .88rem; color: var(--moon-dim); }

/* ── hero badges: the two things that set us apart ── */
.badges { list-style: none; padding: 0; margin: 4px 0 18px; display: grid; gap: 10px; }
@media (min-width: 560px) { .badges { grid-template-columns: 1fr 1fr; } }
.badge a { display: block; height: 100%; padding: 12px 14px; border-radius: 10px; text-decoration: none;
  border: 1px solid var(--gold); background: #c9a24b1f; color: var(--moon); }
.badge a:hover, .badge a:focus-visible { background: #c9a24b33; }
.badge strong { display: block; color: var(--gold); font-size: 1.05rem; line-height: 1.3; }
.badge span { display: block; color: var(--moon); font-size: .9rem; margin-top: 2px; }
.badge strong span { display: inline; color: inherit; font-size: inherit; margin: 0; }
.siblings { margin: 8px 0 36px; }
.price-table td:last-child { color: var(--moon-dim); }

/* ── festive touches ───────────────────────────────── */
/* gentle falling snow: one fixed layer, moved with transform (cheap on phones) */
.snow { position: fixed; inset: 0; overflow: hidden; pointer-events: none; z-index: 0; }
.snow::before, .snow::after {
  content: ""; position: absolute; left: 0; right: 0; top: -600px; height: calc(100% + 600px);
  background-image:
    radial-gradient(2px 2px at 30px 40px, #ffffffcc 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 140px 220px, #ffffffb3 50%, transparent 51%),
    radial-gradient(2.5px 2.5px at 250px 120px, #ffffffaa 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 360px 420px, #ffffffb3 50%, transparent 51%),
    radial-gradient(2px 2px at 470px 310px, #ffffffcc 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 560px 520px, #ffffff99 50%, transparent 51%);
  background-size: 600px 600px; animation: snowfall 26s linear infinite; opacity: .55;
}
.snow::after { background-size: 420px 600px; animation-duration: 38s; opacity: .35; transform: translateX(90px); }
@keyframes snowfall { from { transform: translateY(0); } to { transform: translateY(600px); } }
@media (prefers-reduced-motion: reduce) { .snow::before, .snow::after { animation: none; } }
.page { position: relative; z-index: 2; }  /* above the footer, so the pay bar stays on top */
.foot { position: relative; z-index: 1; }

.hero h1 { text-shadow: 0 2px 18px #00000080; }
.hero .brand { letter-spacing: .04em; }
.hero .brand::before { content: "✦ "; } .hero .brand::after { content: " ✦"; }

/* the free Santa Tracker — easy to find */
.tracker-pill { margin: -4px 0 18px; }
.tracker-pill a { display: inline-block; padding: 9px 16px; border-radius: 999px; text-decoration: none;
  background: #b3172433; border: 1px solid #e0525d; color: var(--moon); font-size: .95rem; }
.tracker-pill a:hover, .tracker-pill a:focus-visible { background: #b3172455; }
.tracker-pill strong { color: #ffd2d6; }
.tracker-promo { margin: 40px 0 0; padding: 22px 20px; border-radius: 12px; text-align: center;
  background: linear-gradient(160deg, #13235a 0%, #0b1430 70%); border: 1px solid #c9a24b66;
  box-shadow: 0 0 0 4px #c9a24b14 inset; }
.tracker-promo h2 { margin: 4px 0 10px; color: var(--gold); }
.tracker-promo p { color: var(--moon); max-width: 34em; margin: 0 auto 14px; }
.tp-kicker { font-size: .82rem; letter-spacing: .12em; text-transform: uppercase; color: #ffd2d6 !important; }

/* landing pages */
.landing .lede { font-size: 1.08rem; }
.landing ul li { margin-bottom: 8px; }
.cta { margin: 18px 0 4px; }
.button.big { font-size: 1.1rem; padding: 14px 22px; box-shadow: 0 6px 18px #b3172455; }
.cta-note { color: var(--moon-dim); font-size: .88rem; margin: 6px 0 22px; }
.landing .small { font-size: .85rem; color: var(--moon-dim); margin-top: 18px; }
.landing .brand a { color: var(--gold); text-decoration: none; }
.foot-more { font-size: .8rem; }
