/* Scroll Theory Santa Link: a North Pole night. Layered scene (sky, aurora, stars, moon, flying sleigh, far hills, the workshop hill,
   a motion layer with sledding elves), then a snowfield the sign-up card floats on, then a night footer.
   Fonts are self-hosted (SIL Open Font License): Berkshire Swash for display (Chad's pick, 2026-12-02), Nunito for everything else.
   Every text pair passes WCAG AA (4.5:1, large text 3:1). Motion stops under prefers-reduced-motion and pauses when the
   tab is hidden (html.paused, set by web/app.js). Only transforms and opacity are animated. */
/* Berkshire Swash has one weight; declaring the range stops browsers faking a bold. */
@font-face { font-family: 'Berkshire Swash'; font-weight: 400 900; font-display: swap; src: url('/fonts/berkshire-swash-400.woff2') format('woff2'); }
@font-face { font-family: 'Nunito'; font-weight: 400 900; font-display: swap; src: url('/fonts/nunito-var.woff2') format('woff2'); }
@font-face { font-family: 'Chakra Petch'; font-weight: 700; font-display: swap; src: url('/fonts/chakra-700.woff2') format('woff2'); }

:root {
  --night-0: #071027; --night: #0d1b36; --night-2: #1a2f5a; --snow: #ffffff; --snow-2: #f2f6fc; --snow-3: #dfe8f5;
  --cream: #fffbf5; --cream-2: #f6ead3; --ink: #2b1d14; --ink-soft: #5c4636;
  --red: #c8102e; --red-hover: #d81f3c; --red-deep: #8e0b1f; --green: #1f6b3a; --green-deep: #154d29;
  --gold: #f6d27a; --gold-deep: #9a6b00; --sky-text: #d7e0f0;
  --display: 'Berkshire Swash', Georgia, serif;
  --body: 'Nunito', ui-rounded, 'Segoe UI', system-ui, sans-serif;
  --ease-entrance: cubic-bezier(.16, 1, .3, 1); --ease-button: cubic-bezier(.25, .46, .45, .94);
  --container: 1200px;
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
/* The hidden attribute must win over any display rule (.btn is inline-flex, which would otherwise show hidden buttons). */
[hidden] { display: none !important; }
html { font-size: clamp(16px, .5vw + 12px, 20px); -webkit-text-size-adjust: 100%; scroll-behavior: smooth; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
body { font: 400 18px/1.6 var(--body); color: var(--cream); background: var(--night); overflow-x: hidden; text-rendering: optimizeLegibility; }
::selection { background: rgba(246, 210, 122, .45); color: var(--ink); }
a { color: var(--gold); text-underline-offset: 3px; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
h1, h2, h3, .card-title { text-wrap: balance; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

/* ---------- falling snow (whole page, in front of the scene, behind the text) ---------- */
/* Seamless loop: each layer's flakes are a repeating tile, and each loop moves the layer down by exactly one tile height
   and not at all sideways, so the last frame of a loop is the first frame of the next (the old 20/-15/25 px sideways
   drift made the flakes hop at every restart). The gentle side-to-side sway is a separate animation on the parent that
   runs back and forth (alternate), and its full cycle divides the fall length exactly (7 s x 2 = 14 s, 10 x 2 = 20,
   5.5 x 2 = 11), so it never resets either. Checked with scripts/png-diff.mjs (run record, "Branding and snow"). */
.snow { position: fixed; inset: 0; pointer-events: none; z-index: 3; overflow: hidden; }
.snow i { position: absolute; inset: 0; display: block; animation: sway 7s ease-in-out infinite alternate; }
.snow i::before {
  content: ''; position: absolute; left: -40px; right: -40px; top: -320px; bottom: 0;
  background-image:
    radial-gradient(3px 3px at 20px 40px, #fff 50%, transparent 52%), radial-gradient(2px 2px at 90px 140px, #fff 50%, transparent 52%),
    radial-gradient(4px 4px at 170px 70px, #fff 50%, transparent 52%), radial-gradient(2px 2px at 240px 220px, #fff 50%, transparent 52%),
    radial-gradient(3px 3px at 300px 120px, #fff 50%, transparent 52%), radial-gradient(2.5px 2.5px at 60px 260px, #fff 50%, transparent 52%);
  background-size: 320px 320px; opacity: .8; animation: fall 14s linear infinite;
}
.snow i:nth-child(2) { animation-duration: 10s; animation-direction: alternate-reverse; }
.snow i:nth-child(2)::before { background-size: 260px 260px; top: -260px; opacity: .55; animation: fall2 20s linear infinite; }
.snow i:nth-child(3) { animation-duration: 5.5s; }
.snow i:nth-child(3)::before { background-size: 420px 420px; top: -420px; opacity: .9; animation: fall3 11s linear infinite; }
@keyframes fall { to { transform: translate3d(0, 320px, 0); } }
@keyframes fall2 { to { transform: translate3d(0, 260px, 0); } }
@keyframes fall3 { to { transform: translate3d(0, 420px, 0); } }
@keyframes sway { from { transform: translate3d(-14px, 0, 0); } to { transform: translate3d(14px, 0, 0); } }

/* ---------- hero: the North Pole scene ---------- */
.hero { position: relative; overflow: hidden; display: flex; flex-direction: column; min-height: min(100vh, 900px); min-height: min(100svh, 900px); background: var(--night-0); }
.sky {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: linear-gradient(180deg, #050c20 0%, #0b1834 38%, #172c57 70%, #2b4a80 100%);
}
.aurora, .stars { position: absolute; inset: 0 0 35% 0; transform: translate3d(0, calc(var(--sy, 0) * .3px), 0); }
.aurora i {
  position: absolute; left: -15%; width: 130%; top: -8%; height: 70%;
  background: radial-gradient(60% 45% at 30% 55%, rgba(72, 255, 170, .26), transparent 70%),
              radial-gradient(50% 40% at 72% 42%, rgba(90, 170, 255, .2), transparent 70%);
  animation: aurora 22s ease-in-out infinite alternate;
}
.aurora i:nth-child(2) {
  top: 4%; background: radial-gradient(45% 35% at 55% 50%, rgba(170, 120, 255, .16), transparent 70%),
                        radial-gradient(40% 30% at 20% 30%, rgba(72, 255, 200, .14), transparent 70%);
  animation-duration: 30s; animation-direction: alternate-reverse;
}
@keyframes aurora { from { transform: translate3d(-5%, 0, 0) skewX(-8deg) scaleY(.9); } to { transform: translate3d(5%, 3%, 0) skewX(8deg) scaleY(1.1); } }
.stars i {
  position: absolute; inset: 0;
  background-image:
    radial-gradient(1.4px 1.4px at 30px 40px, #fff 50%, transparent 55%), radial-gradient(1px 1px at 120px 90px, #fff 50%, transparent 55%),
    radial-gradient(1.8px 1.8px at 200px 30px, #fff8dc 50%, transparent 55%), radial-gradient(1px 1px at 60px 160px, #fff 50%, transparent 55%),
    radial-gradient(1.2px 1.2px at 170px 200px, #fff 50%, transparent 55%);
  background-size: 240px 240px;
}
.stars i:nth-child(2) { background-size: 330px 330px; background-position: 90px 60px; animation: twinkle 4s ease-in-out infinite; }
@keyframes twinkle { 0%, 100% { opacity: 1; } 50% { opacity: .3; } }
.moon {
  position: absolute; top: 106px; right: 4%; width: 40px; height: 40px; border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #fffdf0, #f6e7b0 60%, #e8d28a);
  box-shadow: 0 0 40px 12px rgba(255, 244, 200, .25);
  transform: translate3d(0, calc(var(--sy, 0) * .25px), 0);
}
.moon::after { content: ''; position: absolute; inset: 0; border-radius: 50%; background: radial-gradient(circle at 62% 58%, rgba(200, 180, 120, .35) 0 9%, transparent 10%), radial-gradient(circle at 40% 70%, rgba(200, 180, 120, .3) 0 6%, transparent 7%); }
/* Soft crater edges and a cool rim keep the moon in the same painted world as the snow. */
.home .moon {
  background: radial-gradient(ellipse at 65% 63%, #a6b3bb66 0 8%, transparent 15%),
    radial-gradient(ellipse at 38% 32%, #8f9fa92b 0 13%, transparent 24%),
    radial-gradient(ellipse at 29% 68%, #8f9fa936 0 8%, transparent 18%),
    radial-gradient(circle at 36% 32%, #fffbed, #e7e7d4 58%, #a4b3bd 100%);
  box-shadow: inset -5px -3px 12px #6d859b55, 0 0 45px 10px #dce9f51a;
}
.home .moon::after { opacity: .35; filter: blur(1px); }
.sleigh-fly {
  position: absolute; left: 0; bottom: 74vw; width: clamp(220px, 28vw, 420px); z-index: 1;
  animation: fly 26s linear infinite both; animation-delay: 1.5s;
}
.sleigh-fly svg { display: block; width: 100%; height: auto; animation: bob 2.2s ease-in-out infinite alternate; filter: drop-shadow(0 0 10px rgba(246, 210, 122, .35)); }
@keyframes fly { 0% { transform: translate3d(-110%, 30px, 0); } 48%, 100% { transform: translate3d(calc(100vw + 10%), -40px, 0); } }
@keyframes bob { to { transform: translateY(-7px) rotate(-2deg); } }

/* string lights along the top */
.lights {
  position: absolute; top: 0; left: 0; right: 0; height: 48px; z-index: 4; display: flex; overflow: hidden; pointer-events: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='30'%3E%3Cpath d='M0 5 Q30 20 60 5' stroke='%23233a2b' stroke-width='2.5' fill='none'/%3E%3C/svg%3E") repeat-x 0 0;
}
.lights span { flex: 0 0 60px; position: relative; --c: var(--red); }
.lights span::before { content: ''; position: absolute; left: 26px; top: 11px; width: 8px; height: 6px; border-radius: 2px; background: #233a2b; }
.lights span::after {
  content: ''; position: absolute; left: 24px; top: 16px; width: 12px; height: 18px; border-radius: 50% 50% 50% 50% / 40% 40% 60% 60%;
  background: var(--c); box-shadow: 0 0 10px 3px var(--c); animation: glowbulb 2.4s ease-in-out infinite;
}
.lights span:nth-child(4n+2) { --c: var(--gold); }
.lights span:nth-child(4n+3) { --c: #3fbf6a; }
.lights span:nth-child(4n+4) { --c: #6fb7ff; }
.lights span:nth-child(3n+1)::after { animation-delay: .8s; }
.lights span:nth-child(3n+2)::after { animation-delay: 1.6s; }
@keyframes glowbulb { 0%, 100% { opacity: 1; } 50% { opacity: .45; } }

.top {
  position: relative; z-index: 5; width: 100%; max-width: var(--container); margin: 0 auto;
  display: flex; justify-content: space-between; align-items: center; padding: 56px 16px 4px;
}
/* The lockup: the scroll_theory wordmark made festive (a Santa hat on the "s", the lime underscore as a lime-and-white
   candy cane; still lowercase, and the underscore is still the only lime part), over "Santa Link" in gold. */
.brand { display: inline-grid; justify-items: start; gap: 3px; text-decoration: none; color: var(--gold); padding: 6px 0; }
.st-word { position: relative; font: 700 17px/1 'Chakra Petch', var(--body); color: #f0f0f0; letter-spacing: .01em; white-space: nowrap; }
.st-s { position: relative; display: inline-block; }
.st-s::before {
  content: ''; position: absolute; left: -5px; top: -11px; width: 17px; height: 13px; transform: rotate(-14deg);
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 30'%3E%3Cpath d='M5 24 C8 8 22 2 32 8 C36 11 37 16 36 20 L28 21 Z' fill='%23c8102e'/%3E%3Ccircle cx='36' cy='21' r='4' fill='%23fff'/%3E%3Crect x='2' y='20' width='30' height='8' rx='4' fill='%23fff'/%3E%3C/svg%3E") no-repeat center / contain;
}
.st-us {
  display: inline-block; width: .6em; height: .17em; margin: 0 .05em; vertical-align: -.02em; border-radius: .09em;
  background: repeating-linear-gradient(-50deg, #bfff00 0 .11em, #f4ffd6 .11em .2em); box-shadow: 0 0 6px rgba(191, 255, 0, .55);
}
.brand-name { font: 700 30px/.95 var(--display); color: var(--gold); white-space: nowrap; }
.top-link {
  display: inline-flex; align-items: center; min-height: 44px; font-weight: 800; font-size: 15px; color: var(--cream);
  text-decoration: none; border: 2px solid rgba(255, 251, 245, .55); border-radius: 999px; padding: 0 16px;
}
.top-link:hover { background: rgba(255, 251, 245, .1); }

.hero-text { position: relative; z-index: 5; width: 100%; max-width: var(--container); margin: 0 auto; padding: 18px 16px 0; text-align: center; animation: lift .8s var(--ease-entrance) both; }
.kicker { color: var(--gold); font-weight: 800; letter-spacing: .08em; text-transform: uppercase; font-size: 13px; }
h1 { font: 700 clamp(50px, 14vw, 96px)/.98 var(--display); color: var(--snow); margin: 8px auto 14px; text-shadow: 0 4px 18px rgba(5, 12, 32, .7); max-width: 12ch; }
h1 span { color: var(--gold); }
.lede { color: var(--sky-text); font-size: 18px; max-width: 34ch; margin: 0 auto 22px; text-shadow: 0 2px 10px rgba(5, 12, 32, .8); }
.hero-cta { display: grid; justify-items: center; gap: 10px; }
.cta-note { color: var(--sky-text); font-size: 14px; font-weight: 700; }
.banner {
  margin: 18px auto 0; max-width: 420px; background: var(--gold); color: var(--ink); font-weight: 800;
  border-radius: 16px; padding: 12px 16px; box-shadow: 0 8px 20px rgba(0, 0, 0, .3);
}
@keyframes lift { from { transform: translate3d(0, 14px, 0); } to { transform: none; } }

/* the village: phones get a tall frame that crops to the middle of the valley */
.village { position: relative; z-index: 2; width: 100%; margin-top: auto; aspect-ratio: 375 / 360; pointer-events: none; }
.village svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.v-far { transform: translate3d(0, calc(var(--sy, 0) * .12px), 0); animation: rise 1.2s var(--ease-entrance) both; }
.v-main, .v-live { animation: rise 1.2s .12s var(--ease-entrance) both; }
@keyframes rise { from { transform: translate3d(0, 24px, 0); } }

/* ---------- the snowfield the cards float on ---------- */
.field { position: relative; z-index: 5; background: linear-gradient(180deg, #ffffff 0%, var(--snow-2) 45%, var(--snow-3) 100%); color: var(--ink); }
.field-grid { position: relative; z-index: 1; max-width: var(--container); margin: 0 auto; padding: 0 16px 24px; display: grid; gap: 34px; }
.card-wrap { margin-top: -84px; scroll-margin-top: 16px; width: 100%; max-width: 560px; justify-self: center; }
.field-ground { display: block; width: 100%; height: 170px; margin-top: -20px; }

.section-title { font: 700 clamp(36px, 9vw, 50px)/1.08 var(--display); color: var(--green-deep); text-align: center; margin-bottom: 16px; }
.section-title.small { font-size: clamp(32px, 8vw, 40px); }
.steps { width: 100%; max-width: 620px; justify-self: center; }
.steps ol { list-style: none; display: grid; gap: 12px; }
.steps li { display: grid; grid-template-columns: 52px 1fr; gap: 14px; align-items: start; background: var(--cream); border: 1px solid #e6d6bd; border-radius: 18px; padding: 16px; box-shadow: 0 4px 14px rgba(43, 29, 20, .06); }
.step-num { width: 52px; height: 52px; border-radius: 50%; background: var(--red); color: #fff; display: grid; place-items: center; font: 700 30px/1 var(--display); box-shadow: inset 0 0 0 3px var(--gold); }
.steps h3 { font: 700 30px/1.1 var(--display); color: var(--red); margin-bottom: 2px; }
.steps p { color: var(--ink-soft); font-size: 17px; }
.honest { margin-top: 30px; }
.honest p { color: var(--ink-soft); font-size: 17px; margin-top: 10px; }

/* ---------- cards ---------- */
.card {
  position: relative; color: var(--ink); border-radius: 28px; padding: 26px 20px 24px; border: 6px solid transparent;
  background-image: linear-gradient(var(--cream), var(--cream)), repeating-linear-gradient(45deg, var(--red) 0 12px, #fff 12px 24px);
  background-origin: border-box; background-clip: padding-box, border-box;
  box-shadow: 0 24px 50px rgba(7, 16, 39, .35), 0 6px 14px rgba(7, 16, 39, .18);
}
.card a { color: var(--green); font-weight: 700; }
.card a.btn-red { color: #fff; }
.card-kicker { color: var(--red); font-weight: 900; text-transform: uppercase; letter-spacing: .08em; font-size: 12px; text-align: center; }
.card-title { font: 700 clamp(32px, 8.5vw, 42px)/1.1 var(--display); color: var(--green-deep); text-align: center; margin: 4px 0 18px; }
.card > p { color: var(--ink); text-align: center; }

.field-row { margin-bottom: 16px; }
label { display: block; font-size: 16px; font-weight: 800; margin-bottom: 6px; color: var(--ink); }
.opt { color: var(--ink-soft); font-weight: 600; }
input[type='email'], input:not([type]) {
  width: 100%; min-height: 50px; background: #fff; color: var(--ink); border: 2px solid #d8c7aa; border-radius: 10px;
  font: 600 18px/1.4 var(--body); padding: 12px 14px; -webkit-appearance: none; appearance: none;
  transition: border-color .15s ease, box-shadow .15s ease;
}
input:focus { border-color: var(--green); box-shadow: 0 0 0 3px rgba(31, 107, 58, .22); outline: none; }
.field-row.bad input { border-color: var(--red); box-shadow: 0 0 0 3px rgba(200, 16, 46, .12); }
.hint { color: var(--ink-soft); font-size: 14px; margin-top: 6px; }
.err { color: var(--red-deep); font-size: 15px; font-weight: 700; margin-top: 6px; }
.check { display: grid; grid-template-columns: 30px 1fr; gap: 10px; align-items: start; }
.check input { width: 26px; height: 26px; margin-top: 2px; accent-color: var(--green); }
.check label { font-weight: 600; font-size: 15px; line-height: 1.5; margin: 0; }
.check .err { grid-column: 2; }
.turnstile { min-height: 70px; margin: 6px 0 8px; }
.fine { color: var(--ink-soft); font-size: 14px; margin-top: 12px; text-align: center; }

/* ---------- buttons: one accent (Christmas red) for every primary action ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 56px; padding: 0 28px;
  font: 800 19px/1 var(--body); text-decoration: none; border: 0; border-radius: 999px; cursor: pointer;
  -webkit-tap-highlight-color: transparent; touch-action: manipulation; transition: transform .16s var(--ease-button), background-color .15s ease;
}
.btn svg { width: 24px; height: 24px; flex: none; }
.btn:disabled { opacity: .65; cursor: wait; }
.btn:active { transform: translateY(1px) scale(.98); }
.btn-red { background: var(--red); color: #fff; border: 3px solid var(--gold); box-shadow: 0 6px 0 var(--red-deep), 0 12px 26px rgba(7, 16, 39, .35); }
.btn-red:hover { background: var(--red-hover); }
.hero .btn-red { min-height: 62px; font-size: 21px; padding: 0 30px; }
.btn-wide { width: 100%; }
.btn-call {
  width: 100%; min-height: 88px; margin-top: 6px; font: 700 40px/1 var(--display); color: #fff;
  background: repeating-linear-gradient(-45deg, var(--red) 0 22px, #d42a44 22px 44px);
  border: 4px solid var(--gold); text-shadow: 0 2px 0 var(--red-deep);
  box-shadow: 0 7px 0 var(--red-deep), 0 0 0 0 rgba(246, 210, 122, .7); animation: glow 2s ease-in-out infinite;
}
.btn-call svg { width: 34px; height: 34px; }
@keyframes glow { 50% { box-shadow: 0 7px 0 var(--red-deep), 0 0 34px 6px rgba(246, 210, 122, .55); } }
.btn-hangup { width: 100%; min-height: 64px; margin-top: 8px; background: var(--red-deep); color: #fff; font-size: 22px; box-shadow: 0 5px 0 #5c0614; }
.btn-ghost { background: transparent; color: var(--green); border: 2px solid var(--green); }

/* ---------- the call: candy-cane countdown ring ---------- */
.call { text-align: center; }
.ring { --p: 1; position: relative; width: 210px; height: 210px; margin: 4px auto 12px; border-radius: 50%; background: #efe2c8; }
.ring::before {
  content: ''; position: absolute; inset: 0; border-radius: 50%;
  background: repeating-conic-gradient(var(--red) 0deg 9deg, #ffffff 9deg 18deg);
  -webkit-mask: conic-gradient(#000 calc(var(--p) * 360deg), transparent 0); mask: conic-gradient(#000 calc(var(--p) * 360deg), transparent 0);
}
.ring::after { content: ''; position: absolute; inset: -8px; border-radius: 50%; }
.call.live .ring::after { animation: halo 1.8s ease-in-out infinite; }
.ring[data-mode='listening']::after { animation-duration: 3.2s; }
@keyframes halo { 50% { box-shadow: 0 0 26px 8px rgba(246, 210, 122, .75); } }
.ring-inner { position: absolute; inset: 18px; border-radius: 50%; background: var(--cream); display: grid; place-items: center; align-content: center; box-shadow: inset 0 0 0 3px #efe2c8; }
.ring-santa { width: 96px; height: 96px; }
.timer { font: 900 30px/1 var(--body); color: var(--green-deep); font-variant-numeric: tabular-nums; margin-top: -4px; }
.call-status { min-height: 1.6em; color: var(--ink); font-weight: 800; font-size: 19px; margin-bottom: 6px; }
.call-tip { font-size: 15px; font-weight: 800; color: var(--green-deep); margin: 0 0 10px; }
.inapp-tip { font-size: 14px; font-weight: 700; color: var(--ink-soft); background: #fff3d6; border-radius: 10px; padding: 8px 12px; margin: 0 0 10px; }
#redial-btn { margin-top: 14px; }
.mic-help { margin-top: 14px; text-align: left; border-left: 5px solid var(--gold-deep); padding: 10px 14px; background: #fff3d6; border-radius: 10px; font-size: 16px; color: var(--ink); }

/* ---------- done / busy / closed ---------- */
.done { text-align: center; }
.done .card-title { font-size: clamp(30px, 8vw, 38px); }
.art { width: 200px; height: auto; display: block; margin: 0 auto 6px; }
.done .art-reindeer { display: none; }
.done[data-art='reindeer'] .art-gift { display: none; }
.done[data-art='reindeer'] .art-reindeer { display: block; }

/* ---------- footer ---------- */
.foot { position: relative; z-index: 5; background: var(--night); text-align: center; color: var(--sky-text); font-size: 15px; padding: 24px 16px calc(30px + env(safe-area-inset-bottom)); display: grid; gap: 6px; }
.foot a { display: inline-block; padding: 6px 2px; }
.credit { font-size: 13px; }
.wordmark { display: inline-block; text-decoration: none; padding: 10px 2px 4px; vertical-align: middle; }
.wordmark .st-word { font-size: 15px; }

/* ---------- privacy page and 404 (night sky, a card) ---------- */
body:not(.home) { background: linear-gradient(180deg, #050c20 0%, #0d1b36 50%, #1a2f5a 100%) fixed; background-color: var(--night); }
body:not(.home) .top { padding-top: 24px; }
body:not(.home) .foot { background: transparent; }
.doc { position: relative; z-index: 5; max-width: 760px; margin: 0 auto; padding: 16px 16px 24px; }
.doc .card { padding: 28px 22px; text-align: left; }
.doc .card h1 { font: 700 clamp(40px, 11vw, 58px)/1.05 var(--display); color: var(--green-deep); text-shadow: none; text-align: center; margin: 4px auto 14px; max-width: none; }
.doc .card h2 { font: 700 30px/1.15 var(--display); color: var(--red); margin: 24px 0 8px; }
.doc .card p, .doc .card li { font-size: 17px; margin-bottom: 10px; color: var(--ink); }
.doc .card > p { text-align: left; }
.doc .card.done > p, .doc .card > .card-kicker { text-align: center; }
.doc .card ul { padding-left: 22px; }
.doc .card li::marker { color: var(--red); }

/* ---------- motion off: reduced motion, or the tab is hidden ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
  .sleigh-fly { transform: translate3d(36vw, 0, 0); }
}
/* Only the looping animations pause; the one-time entrance (rise, lift) must always finish, or a page opened in a
   background tab would stay invisible. */
html.paused .snow i, html.paused .snow i::before, html.paused .aurora i, html.paused .stars i, html.paused .sleigh-fly, html.paused .sleigh-fly svg,
html.paused .lights span::after, html.paused .btn-call, html.paused .ring::after { animation-play-state: paused !important; }

/* ---------- bigger screens: a wide, cinematic valley ---------- */
@media (min-width: 640px) {
  .village { aspect-ratio: 1440 / 640; }
  .sleigh-fly { bottom: 40vw; }
  .moon { top: 80px; right: 7%; width: 72px; height: 72px; }
}
@media (min-width: 1024px) {
  /* Laptops and desktops: the first screen is the whole picture. The hero is one screen high; the village is anchored
     to its bottom and sized by the screen's height (at most 46% of it); the headline block is centred in the sky above.
     The scene's ground runs past its own edges, so a height-sized village still fills the width. */
  .hero { --vill: min(46vh, 33.333vw); --vill: min(46svh, 33.333vw); height: 100vh; height: 100svh; min-height: 620px; max-height: 1200px;
          padding-bottom: calc(var(--vill) * .8); }
  .hero-text { flex: 1; display: flex; flex-direction: column; justify-content: center; text-align: left; padding-top: 0; padding-bottom: 8px; }
  .hero-text > * { margin-left: 0; }
  h1 { max-width: 13ch; font-size: clamp(56px, min(6.2vw, 9.4vh), 88px); font-size: clamp(56px, min(6.2vw, 9.4svh), 88px); }
  .lede { max-width: 40ch; margin-left: 0; font-size: 20px; }
  .hero-cta { justify-items: start; }
  .banner { margin-left: 0; }
  .village { position: absolute; bottom: 0; left: 50%; width: calc(var(--vill) * 3); height: var(--vill); aspect-ratio: auto; margin: 0; transform: translateX(-50%); }
  .village svg { overflow: visible; }
  .sleigh-fly { bottom: calc(var(--vill) * 1.05); }
  .moon { top: 150px; right: 15%; width: 96px; height: 96px; }
  .field-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 540px); gap: 64px; align-items: start; padding-bottom: 8px; }
  .card-wrap { grid-column: 2; grid-row: 1; margin-top: -48px; }
  .steps { grid-column: 1; grid-row: 1; justify-self: stretch; max-width: none; padding-top: 48px; }
  .section-title { text-align: left; }
  .card { padding: 34px 32px 30px; }
  .field-ground { height: 220px; margin-top: -40px; }
}
@media (min-width: 1024px) and (prefers-reduced-motion: reduce) {
  .sleigh-fly { transform: translate3d(55vw, 0, 0); }
}
/* short laptops (1280x720, 1366x768): a tighter header and text block so headline, CTA and village all fit */
@media (min-width: 1024px) and (max-height: 820px) {
  .top { padding-top: 46px; }
  .kicker { font-size: 12px; }
  h1 { margin: 4px 0 10px; }
  .lede { font-size: 18px; max-width: 46ch; margin-bottom: 16px; line-height: 1.5; }
  .hero .btn-red { min-height: 56px; }
  .moon { top: 110px; width: 72px; height: 72px; }
}
