/* ==========================================================================
   Letters from Santa - site styles
   ========================================================================== */

:root {
  --night: #0b1f3a;
  --night-2: #12305a;
  --night-3: #1c4479;
  --snow: #ffffff;
  --frost: #dbe9f7;
  --frost-2: #b9d3ee;
  --red: #c1121f;
  --red-dark: #8d0e17;
  --green: #1b7a3d;
  --green-dark: #0f5128;
  --gold: #f2c14e;
  --gold-dark: #c9951f;
  --parchment: #fffaf0;
  --parchment-2: #f6ecd6;
  --ink: #2b2b2b;
  --ink-soft: #5b5246;
  --wood: #9a6634;
  --wood-dark: #5c3a1a;

  --font-display: "Mountains of Christmas", "Georgia", serif;
  --font-body: "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-letter: "Dancing Script", "Brush Script MT", cursive;

  --radius: 18px;
  --shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
  --header-h: 140px;
  --gutter: clamp(16px, 4vw, 40px);
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 110px; }

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--snow);
  background-color: var(--night);
  overflow-x: hidden;
}
/* The night sky behind the page, staying put as the page scrolls. It's on its own fixed layer rather than a
   `background-attachment: fixed` background: phones (Android Chrome) repaint the whole screen on every
   frame of scrolling for one of those, which made scrolling lag in the night-sky sections. The layer is
   as tall as the screen with the browser's toolbars hidden (lvh), so it doesn't jump as they slide away. */
body::before {
  content: ""; position: fixed; z-index: -1; left: 0; right: 0; top: 0; height: 100vh; height: 100lvh;
  pointer-events: none;
  background-image:
    radial-gradient(ellipse 80% 50% at 50% 0%, rgba(80, 140, 220, 0.25), transparent 70%),
    linear-gradient(180deg, var(--night) 0%, var(--night-2) 55%, var(--night-3) 100%);
}

[hidden] { display: none !important; }
img, svg { max-width: 100%; }
/* pictures can't be dragged off the page, selected, or saved with a long press on iPhone (site.js blocks the
   right-click menu on them too) */
img, canvas, .doc-preview, .doc-reader {
  -webkit-user-drag: none; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none;
}
a { color: var(--gold); }
a:hover { color: #ffe08a; }

:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 6px; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 1000;
  background: var(--gold); color: var(--night); padding: .6rem 1rem; border-radius: 10px; font-weight: 800;
}
.skip-link:focus { top: 12px; }

h1, h2, h3 { font-family: var(--font-display); font-weight: 700; line-height: 1.15; margin: 0 0 .5em; letter-spacing: .5px; }
h1 { font-size: clamp(2.3rem, 6vw, 4.2rem); }
h2 { font-size: clamp(1.9rem, 4.5vw, 3rem); }
h3 { font-size: 1.6rem; }

.container { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- Snow canvas ---------- */
#snow-canvas {
  position: fixed; inset: 0; width: 100%; height: 100%;
  pointer-events: none; z-index: 40;
}

/* ==========================================================================
   Header / navbar: a snowdrift packed with trees, candy canes, snowmen and
   presents. No background - the decorations ARE the navbar.
   Menu buttons are presents whose lids open on hover.
   ========================================================================== */
.sn-header {
  position: sticky; top: 0; z-index: 50;
  height: var(--header-h);
  /* solid night sky with a scatter of stars */
  background:
    radial-gradient(1.4px 1.4px at 18px 22px, #fff, transparent), radial-gradient(1px 1px at 74px 48px, #fff, transparent),
    radial-gradient(1.2px 1.2px at 132px 14px, #fff, transparent), radial-gradient(1px 1px at 190px 40px, #dbe9f7, transparent),
    radial-gradient(1.6px 1.6px at 246px 26px, #fff, transparent), radial-gradient(1px 1px at 300px 8px, #fff, transparent),
    linear-gradient(180deg, #07152b 0%, #0d2546 100%);
  background-size: 330px 70px, 330px 70px, 330px 70px, 330px 70px, 330px 70px, 330px 70px, auto;
  background-repeat: repeat-x, repeat-x, repeat-x, repeat-x, repeat-x, repeat-x, no-repeat;
}
/* Holds the drifts, sleigh and decorations, clipped so they never widen the page */
.sn-scene { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.sn-defs { position: absolute; width: 0; height: 0; overflow: hidden; }

/* Dripping snow (from the supplied artwork, green screen removed; the left and right ends
   line up so it repeats seamlessly). The top rows are solid snow and tuck under the area above. */
.snow-drip {
  position: absolute; left: 0; right: 0; top: calc(100% - 28px); height: 145px; z-index: 2;
  pointer-events: none;
  background: url("/img/snow-drip-navbar.webp") repeat-x 0 0 / auto 145px;
  /* no drop-shadow: its blur showed as a faint straight line along the top edge */
}
.snow-drip--light { top: calc(100% - 30px); background-image: url("/img/snow-drip-section.webp"); }
@media (max-width: 960px) { .snow-drip { height: 116px; background-size: auto 116px; top: calc(100% - 22px); } }
/* Navbar snow: the gaps between its drips start ~18px down the image, so it only tucks 14px
   under the navbar (11px on small screens) or the navbar's own drift shows through the gaps */
.sn-header .snow-drip { top: calc(100% - 14px); }
@media (max-width: 960px) { .sn-header .snow-drip { top: calc(100% - 11px); } }

/* Snow edges (drawn by site.js for the exact width, so they never repeat) */
.edge { position: absolute; left: 0; right: 0; z-index: 2; pointer-events: none; line-height: 0; }
.edge svg { display: block; overflow: visible; }
.edge-bottom { top: calc(100% - 2px); }
.edge-top { bottom: calc(100% - 2px); }
.sn-edge { top: calc(100% - 10px); filter: drop-shadow(0 4px 3px rgba(0, 0, 0, .22)); }
.edge-drop { transform-box: fill-box; transform-origin: 50% 0; animation: edge-drop 4s ease-in infinite; }
.edge-drop.slow { animation-duration: 7s; }
@keyframes edge-drop {
  0%, 55% { transform: translateY(-6px) scale(.3); opacity: 0; }
  65% { transform: translateY(0) scale(1); opacity: 1; }
  100% { transform: translateY(44px) scale(.9); opacity: 0; }
}
.edge-glint { animation: twinkle 2.4s ease-in-out infinite; }

.sn-back-drift { position: absolute; left: 0; bottom: 0; width: 100%; height: 90px; pointer-events: none; }
.sn-front-drift { position: absolute; left: 0; bottom: 0; width: 100%; height: 50px; z-index: 2; pointer-events: none; }

/* Santa gliding along the snow, behind the trees */
.sn-sleigh {
  position: absolute; left: 0; bottom: 54px; width: 170px; height: 46px; pointer-events: none;
  animation: sleigh-ride 42s linear infinite; animation-delay: -6s;
  filter: drop-shadow(0 0 8px rgba(255, 230, 150, .35));
}
.sn-sleigh svg { width: 100%; height: 100%; display: block; overflow: visible; }
@keyframes sleigh-ride { from { transform: translateX(-200px); } to { transform: translateX(calc(100vw + 40px)); } }
.sn-sleigh-bob { width: 100%; height: 100%; animation: sleigh-bob 2.4s ease-in-out infinite alternate; }
@keyframes sleigh-bob { from { transform: translateY(-3px) rotate(-1.5deg); } to { transform: translateY(2px) rotate(1deg); } }

/* The packed row of decorations */
.sn-items {
  /* sits low enough that every base is buried in the white front drift (no floating) */
  position: absolute; left: 0; right: 0; bottom: 18px; z-index: 1;
  display: flex; align-items: flex-end; overflow: hidden; pointer-events: none;
  padding-top: 30px;
  filter: drop-shadow(0 4px 5px rgba(0, 0, 0, .4));
}
.sn-items > * { flex-shrink: 0; margin-right: -4px; display: block; }
.sn-items svg { display: block; overflow: visible; }
.sn-spin { animation: flake-spin 16s linear infinite; }
@keyframes flake-spin { to { transform: rotate(360deg); } }

.twinkle { animation: twinkle 1.8s ease-in-out infinite; }
.twinkle.t2 { animation-delay: -.6s; }
.twinkle.t3 { animation-delay: -1.2s; }
@keyframes twinkle { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }

/* Decorative (non-clickable) presents */
.deco-gift {
  --c: var(--red); --rib: var(--gold);
  position: relative; margin-top: 14px; border-radius: 3px 3px 4px 4px;
  background-color: var(--c);
  background-image: linear-gradient(90deg, transparent calc(50% - 4px), var(--rib) calc(50% - 4px), var(--rib) calc(50% + 4px), transparent calc(50% + 4px));
  box-shadow: inset 0 -5px 0 rgba(0, 0, 0, .16), inset 0 2px 0 rgba(255, 255, 255, .15);
}
.deco-gift::before {
  content: ""; position: absolute; left: -3px; right: -3px; top: -8px; height: 12px; border-radius: 3px;
  background-color: color-mix(in srgb, var(--c), #000 14%);
  background-image: linear-gradient(90deg, transparent calc(50% - 4px), var(--rib) calc(50% - 4px), var(--rib) calc(50% + 4px), transparent calc(50% + 4px));
}
.deco-gift::after { content: ""; position: absolute; left: -4px; right: -4px; top: -13px; height: 8px; border-radius: 8px 8px 5px 5px; background: #fff; }
.deco-gift .bow { position: absolute; left: 50%; top: -22px; width: 30px; height: 16px; transform: translateX(-50%); z-index: 1; color: var(--rib); }

/* Patterns shared by decorative and link presents */
.pat-stripes { background-image: linear-gradient(90deg, transparent calc(50% - 4px), var(--rib) calc(50% - 4px), var(--rib) calc(50% + 4px), transparent calc(50% + 4px)), repeating-linear-gradient(45deg, rgba(255, 255, 255, .2) 0 6px, transparent 6px 13px) !important; }
.pat-dots { background-image: linear-gradient(90deg, transparent calc(50% - 4px), var(--rib) calc(50% - 4px), var(--rib) calc(50% + 4px), transparent calc(50% + 4px)), radial-gradient(circle, rgba(255, 255, 255, .4) 2.2px, transparent 2.8px) !important; background-size: auto, 12px 12px !important; }

/* Nav row on top of the snow */
.sn-nav {
  position: absolute; left: 0; right: 0; bottom: 6px; z-index: 3;
  display: flex; align-items: flex-end; justify-content: space-between; gap: 16px;
  padding: 0 var(--gutter);
}

/* Logo: a snowy wooden sign on a post stuck in the drift */
.sn-brand { display: flex; flex-direction: column; align-items: center; text-decoration: none; flex-shrink: 0; }
.sn-board {
  position: relative; display: block; white-space: nowrap;
  font-family: var(--font-display); font-weight: 700; font-size: 1.5rem; line-height: 1.1; color: #fff;
  padding: .32rem .95rem .25rem;
  background: linear-gradient(180deg, var(--wood), var(--wood-dark));
  border: 2px solid #43280f; border-radius: 9px;
  box-shadow: 0 4px 0 #3a230d, 0 8px 14px rgba(0, 0, 0, .35);
  text-shadow: 0 1px 0 rgba(0, 0, 0, .5);
  transition: transform .3s ease;
}
.sn-board small { display: block; font-family: var(--font-body); font-size: .62rem; letter-spacing: 2px; text-transform: uppercase; color: var(--gold); }
.sn-board::before { content: ""; position: absolute; left: -4px; right: -4px; top: -7px; height: 11px; border-radius: 10px 10px 7px 7px; background: #fff; box-shadow: 0 2px 3px rgba(0, 0, 0, .15); }
.sn-post { width: 10px; height: 24px; margin-top: 2px; background: linear-gradient(90deg, var(--wood-dark), var(--wood)); border-radius: 0 0 3px 3px; }
.sn-brand:hover .sn-board { transform: rotate(-2deg); }

/* ---------- Present buttons whose lids open ---------- */
.sn-links { list-style: none; margin: 0; padding: 0; display: flex; align-items: flex-end; gap: 14px; }
.gift-link {
  --c: var(--red); --rib: var(--gold); --h: 54px;
  position: relative; display: flex; flex-direction: column; align-items: stretch;
  padding-top: 26px; text-decoration: none; color: var(--night);
  -webkit-tap-highlight-color: transparent;
}
.gift-box {
  position: relative; z-index: 1;
  height: var(--h); padding: 0 16px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 3px 3px 5px 5px;
  background-color: var(--c);
  background-image: linear-gradient(90deg, transparent calc(50% - 5px), var(--rib) calc(50% - 5px), var(--rib) calc(50% + 5px), transparent calc(50% + 5px));
  box-shadow: inset 0 -6px 0 rgba(0, 0, 0, .16), inset 0 3px 0 rgba(255, 255, 255, .15), 0 6px 12px rgba(0, 0, 0, .35);
}
/* the dark inside of the box, revealed when the lid lifts */
.gift-box::before {
  content: ""; position: absolute; left: 3px; right: 3px; top: 0; height: 6px; border-radius: 2px;
  background: color-mix(in srgb, var(--c), #000 55%); opacity: 0; transition: opacity .25s ease;
}
.gift-lid {
  position: absolute; z-index: 3; left: -4px; right: -4px; top: 18px; height: 13px;
  border-radius: 3px;
  background-color: color-mix(in srgb, var(--c), #000 14%);
  background-image: linear-gradient(90deg, transparent calc(50% - 5px), var(--rib) calc(50% - 5px), var(--rib) calc(50% + 5px), transparent calc(50% + 5px));
  box-shadow: 0 3px 3px rgba(0, 0, 0, .25);
  transform-origin: 50% 100%;
  transition: transform .5s cubic-bezier(.34, 1.56, .64, 1);
}
.gift-lid::before { /* snow on the lid */
  content: ""; position: absolute; left: -3px; right: -3px; top: -7px; height: 9px; border-radius: 9px 9px 5px 5px; background: #fff;
}
.gift-bow { position: absolute; left: 50%; top: -20px; width: 38px; height: 20px; transform: translateX(-50%); color: var(--rib); overflow: visible; }
.gift-tag {
  position: relative; z-index: 2;
  background: #fffaf0; color: var(--night);
  font-weight: 800; font-size: .95rem; white-space: nowrap;
  padding: .24rem .65rem .24rem 1.05rem; border-radius: 4px 11px 11px 4px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, .3);
  transform: rotate(-3deg);
  transition: transform .35s cubic-bezier(.34, 1.56, .64, 1);
}
.gift-tag::before { content: ""; position: absolute; left: 6px; top: 50%; width: 5px; height: 5px; border-radius: 50%; background: #c8b48a; transform: translateY(-50%); }
.sn-links li:nth-child(even) .gift-tag { transform: rotate(3deg); }
.gift-link[aria-current="page"] .gift-tag { background: #dff3e6; }
.gift-link.cta .gift-tag { background: var(--gold); }

/* light glowing out of the open box */
.gift-glow {
  position: absolute; z-index: 2; left: 6%; right: 6%; bottom: calc(var(--h) - 4px); height: 46px;
  background: radial-gradient(ellipse 50% 100% at 50% 100%, rgba(255, 236, 160, .95), rgba(255, 210, 90, .45) 45%, transparent 75%);
  opacity: 0; transform: scaleY(.1); transform-origin: 50% 100%;
  transition: opacity .3s ease, transform .45s ease;
  pointer-events: none;
}
/* sparkles floating up out of the box */
.gift-sparkles { position: absolute; z-index: 2; left: 0; right: 0; bottom: calc(var(--h) - 2px); height: 0; pointer-events: none; }
.gift-sparkles i {
  position: absolute; bottom: 0; width: 7px; height: 7px; opacity: 0;
  background: #fff6c9; transform: rotate(45deg);
  box-shadow: 0 0 6px 2px rgba(255, 215, 90, .9);
  border-radius: 1px;
}
.gift-sparkles i:nth-child(1) { left: 22%; }
.gift-sparkles i:nth-child(2) { left: 40%; width: 5px; height: 5px; }
.gift-sparkles i:nth-child(3) { left: 55%; }
.gift-sparkles i:nth-child(4) { left: 70%; width: 5px; height: 5px; }
.gift-sparkles i:nth-child(5) { left: 84%; width: 4px; height: 4px; }

/* OPEN: on hover, keyboard focus, or when the mobile menu is expanded */
.gift-link:hover .gift-lid,
.gift-link:focus-visible .gift-lid,
.sn-toggle[aria-expanded="true"] .gift-lid { transform: translateY(-24px) rotate(-9deg); }
.gift-link:hover .gift-box::before,
.gift-link:focus-visible .gift-box::before,
.sn-toggle[aria-expanded="true"] .gift-box::before { opacity: 1; }
.gift-link:hover .gift-glow,
.gift-link:focus-visible .gift-glow,
.sn-toggle[aria-expanded="true"] .gift-glow { opacity: 1; transform: scaleY(1); }
.gift-link:hover .gift-sparkles i,
.gift-link:focus-visible .gift-sparkles i,
.sn-toggle[aria-expanded="true"] .gift-sparkles i { animation: sparkle-up 1.3s ease-out infinite; }
.gift-sparkles i:nth-child(2) { animation-delay: .25s !important; }
.gift-sparkles i:nth-child(3) { animation-delay: .5s !important; }
.gift-sparkles i:nth-child(4) { animation-delay: .15s !important; }
.gift-sparkles i:nth-child(5) { animation-delay: .7s !important; }
.gift-link:hover .gift-tag,
.gift-link:focus-visible .gift-tag { transform: rotate(0) scale(1.06); }
@keyframes sparkle-up {
  0% { opacity: 0; transform: translateY(0) rotate(45deg) scale(.6); }
  20% { opacity: 1; }
  100% { opacity: 0; transform: translateY(-46px) rotate(225deg) scale(1); }
}
.gift-link:focus-visible { outline: none; }
.gift-link:focus-visible .gift-box { outline: 3px solid var(--gold); outline-offset: 3px; }

/* Mobile menu toggle: a present labelled "Menu" (hidden on desktop) */
.sn-toggle { display: none; border: 0; background: none; padding: 26px 0 0; cursor: pointer; font: inherit; }
.sn-toggle .gift-box { --h: 46px; }

/* ---------- Phones & small tablets ---------- */
@media (max-width: 960px) {
  :root { --header-h: 116px; }
  .sn-items { transform: scale(.78); transform-origin: 0 100%; right: -30%; }
  .sn-sleigh { width: 130px; height: 36px; bottom: 46px; }
  .sn-board { font-size: 1.2rem; }
  .sn-board small { font-size: .55rem; letter-spacing: 1.5px; }
  .sn-toggle { display: flex; }
  .sn-toggle.gift-link { --h: 46px; }
  .sn-links {
    position: absolute; top: calc(100% + 6px); right: 12px; left: 12px;
    display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 30px 14px; align-items: end;
    padding: 18px 16px 24px;
    background: linear-gradient(180deg, #ffffff, #e8f1fb);
    border-radius: 22px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, .45);
    opacity: 0; visibility: hidden; transform: translateY(-10px);
    transition: opacity .25s ease, transform .25s ease, visibility .25s;
  }
  .sn-links.is-open { opacity: 1; visibility: visible; transform: none; }
  .sn-links .gift-box { width: 100%; }
}
@media (max-width: 420px) {
  .sn-board small { display: none; }
  .sn-board { font-size: 1.05rem; }
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  border: 0; cursor: pointer; text-decoration: none;
  font: 800 1.1rem var(--font-body);
  padding: .95rem 1.6rem; border-radius: 999px;
  transition: transform .15s ease, box-shadow .2s ease, filter .2s ease;
}
.btn:hover { transform: translateY(-2px); filter: brightness(1.06); }
.btn:active { transform: translateY(1px); }
.btn[disabled] { opacity: .6; cursor: progress; transform: none; }
.btn-primary {
  color: #fff;
  background: linear-gradient(180deg, #e3343f, var(--red-dark));
  box-shadow: 0 5px 0 #5e0a10, 0 10px 26px rgba(193, 18, 31, .45);
}
.btn-primary:hover { color: #fff; }
.btn-ghost { color: var(--snow); background: rgba(255, 255, 255, .1); box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .55); }
.btn-ghost:hover { color: var(--snow); background: rgba(255, 255, 255, .18); }
.btn-gold { color: var(--night); background: linear-gradient(180deg, #ffd978, var(--gold-dark)); box-shadow: 0 5px 0 #8a6511; }
.btn-gold:hover { color: var(--night); }
.btn-small { font-size: .92rem; padding: .55rem 1rem; }

/* ==========================================================================
   Hero
   ========================================================================== */
/* top padding clears the navbar's dripping snow (it hangs ~131px below the header, ~105px on smaller screens) */
.hero { position: relative; padding: 150px 0 0; overflow: hidden; }
@media (max-width: 960px) { .hero { padding-top: 122px; } .moon { top: 124px; } }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; }
.hero .eyebrow {
  display: inline-block; font-weight: 800; letter-spacing: 2px; text-transform: uppercase; font-size: .85rem;
  color: var(--gold); background: rgba(242, 193, 78, .12); border: 1px solid rgba(242, 193, 78, .4);
  padding: .3rem .9rem; border-radius: 999px; margin-bottom: 1rem;
}
.hero h1 { text-shadow: 0 3px 0 var(--red-dark), 0 0 30px rgba(255, 255, 255, .25); }
.hero h1 .accent { color: var(--gold); }
.hero p.lead { font-size: 1.2rem; color: var(--frost); max-width: 34em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin: 1.6rem 0 1rem; }
.hero-note { font-size: .95rem; color: var(--frost-2); }
.hero-note strong { color: var(--snow); }

.moon {
  position: absolute; top: 155px; right: 6%; width: 110px; height: 110px; border-radius: 50%;
  background: radial-gradient(circle at 38% 38%, #fffbe8, #f5e7b2 60%, #e4cf86);
  box-shadow: 0 0 60px 20px rgba(255, 245, 200, .25);
  opacity: .9; z-index: 0;
}

.hero-grid { position: relative; z-index: 1; }
.hero .hills { position: relative; z-index: 2; }

/* 3D snow globe (globe3d.js), on the left of "How the magic happens", in place of a candy cane puddle */
/* Standing on the hero's hills, just left of (and slightly under) the hero text: the base sits down in the
   snow and the glass stands up against the night sky.
   --room: the space left of the hero text column; the globe is as big as fits there (up to 380px).
   The hills scale with the page width (the back hill's snow line is ~6.4vw above this section there),
   so the glass (the top 72% of the canvas) is lifted clear of it and the base (down to 87%) sits in it. */
.snow-globe {
  position: absolute; z-index: 3; pointer-events: none;
  --room: calc(max(0px, (100vw - 1160px) / 2) + var(--gutter));
  --gw: clamp(140px, calc(var(--room) * 0.95), 380px);
  left: max(8px, calc(var(--room) - var(--gw) - 12px)); /* glass ends just short of the hero text */
  top: calc(-5vw - var(--gw) * 1.12 * 0.72);
  width: var(--gw); aspect-ratio: 1 / 1.12;
}
.snow-globe canvas { display: block; width: 100%; height: 100%; position: relative; }
/* soft shadow on the snow under the base */
.snow-globe::before {
  content: ""; position: absolute; left: 12%; right: 12%; bottom: 9%; height: 9%;
  background: radial-gradient(closest-side, rgba(27, 45, 82, .28), transparent);
}
/* the base pressed down into the snow: a bank of snow (the hills' own #f4f9ff) heaped against the front of
   the base, with a drift piled up at each side, and a soft blue-grey shade along its top edge where the
   base sinks in */
.snow-globe::after, .candy-cane::after {
  content: ""; position: absolute; pointer-events: none;
  background: var(--bank) center / 100% 100% no-repeat;
}
.snow-globe::after {
  left: -7%; right: -7%; bottom: -3%; height: 21%;
  --bank: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 80' preserveAspectRatio='none'%3E%3Cdefs%3E%3ClinearGradient id='s' x1='0' y1='0' x2='0' y2='1'%3E%3Cstop offset='0' stop-color='%23b9cce3'/%3E%3Cstop offset='.4' stop-color='%23f4f9ff'/%3E%3C/linearGradient%3E%3C/defs%3E%3Cpath d='M0 80 C18 79 30 52 44 30 C52 18 62 12 72 16 C82 20 88 34 104 40 C134 48 168 43 200 44 C236 45 270 47 298 40 C314 34 320 20 330 16 C340 12 350 18 357 30 C370 52 382 79 400 80 Z' fill='url(%23s)'/%3E%3Cpath d='M0 80 C20 79 33 56 48 37 C56 27 64 23 72 26 C82 30 90 42 108 47 C138 54 170 50 200 51 C234 52 268 53 294 47 C310 42 318 30 328 26 C337 23 346 28 353 37 C368 56 380 79 400 80 Z' fill='%23f4f9ff'/%3E%3C/svg%3E");
}
.snow-globe.is-off { display: none; }

/* 3D candy cane (globe3d.js) stuck in the snow on the right of "How the magic happens", turning slowly */
.candy-cane {
  position: absolute; z-index: 3; pointer-events: none;
  right: 7%; top: clamp(4px, 1vw, 16px);
  width: clamp(120px, 10.5vw, 180px); aspect-ratio: 1 / 1.45;
}
.candy-cane canvas { display: block; width: 100%; height: 100%; position: relative; }
/* the snow drift it's pushed into: a heap of fresh snow round the stick (39% across the drift), with a
   shaded dip where it goes in. The section's background darkens a little going down, so the heap fades
   out at the bottom into it (the stick ends behind its solid part). */
.candy-cane::after {
  left: -30%; right: -30%; bottom: -4%; height: 22%;
  --bank: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 80' preserveAspectRatio='none'%3E%3Cdefs%3E%3ClinearGradient id='s' x1='0' y1='0' x2='0' y2='1'%3E%3Cstop offset='0' stop-color='%23b9cce3'/%3E%3Cstop offset='.45' stop-color='%23b9cce3' stop-opacity='0'/%3E%3C/linearGradient%3E%3ClinearGradient id='w' x1='0' y1='0' x2='0' y2='1'%3E%3Cstop offset='.55' stop-color='%23f6faff'/%3E%3Cstop offset='1' stop-color='%23f6faff' stop-opacity='0'/%3E%3C/linearGradient%3E%3C/defs%3E%3Cpath d='M0 80 C50 79 90 58 118 40 C128 33 136 26 146 26 C152 26 156 31 160 31 C166 31 170 26 178 27 C204 31 250 56 310 70 C350 78 380 80 400 80 Z' fill='url(%23s)'/%3E%3Cpath d='M0 80 C52 79 94 62 122 46 C132 39 140 33 148 33 C153 33 157 37 160 37 C166 37 171 33 179 34 C204 38 250 60 310 73 C350 79 380 80 400 80 Z' fill='url(%23w)'/%3E%3C/svg%3E");
}
.candy-cane.is-off { display: none; }
/* the price section's one, on the left beside the heading */
.candy-cane--left { right: auto; left: 9%; top: clamp(20px, 2.5vw, 40px); }
@media (max-width: 1100px) {
  .candy-cane { right: 2%; top: 6px; width: clamp(80px, 11vw, 120px); }
  .candy-cane--left { right: auto; left: 3%; top: 14px; }
}
@media (max-width: 700px) { .candy-cane { display: none; } }
/* Narrower screens: the hero stacks its letter image under the text, so the globe goes back into this
   section's top-left corner beside the heading */
@media (max-width: 860px) {
  .snow-globe { left: 1.5%; top: 14px; width: clamp(120px, 18vw, 170px); }
}
/* Phones: given its own space above the heading (as the candy cane was) */
@media (max-width: 700px) {
  .snow-globe { position: relative; left: auto; top: auto; width: 160px; margin: -10px auto 4px; }
}

/* The hills' height can land on a fraction of a pixel on scaled displays, leaving a hairline of the dark
   hero background showing. Pull the next section up a few pixels so it always covers the join. */
.hero + .section { margin-top: -4px; z-index: 3; }
/* The price section's hills: sit on top of the section, rising into the night sky of the one above.
   Overlap the section by 3px so no hairline of navy shows at the join on scaled displays. */
.hills.price-hills { position: absolute; left: 0; bottom: calc(100% - 3px); margin: 0; z-index: 2; pointer-events: none; }
/* 3D conifers swaying on the hills (globe3d.js): a canvas over each set of hills, reaching up above them
   into the sky (its height is set by the script). The trees are clipped to the hills' outlines in the shader. */
.hill-trees { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; pointer-events: none; }
.hill-trees canvas { display: block; width: 100%; height: 100%; }
.hill-trees--price { bottom: calc(100% - 3px); }
/* Groups of big 3D conifers standing in the snow inside the sections, with the candy canes (globe3d.js).
   Sized from the candy canes' width (--cw): each box is 4.24 cane-widths wide and 1.36 times as wide as it is
   tall, so a tree of size 1 is ~1.73 cane-widths tall; their snow is 88.9% of the way down the box. The boxes
   may run off the side of the page (the body clips it). */
.snow-trees {
  position: absolute; z-index: 2; pointer-events: none;
  --cw: clamp(120px, 10.5vw, 180px);
  --room: calc(max(0px, (100vw - 1160px) / 2) + var(--gutter));
  --tw: calc(var(--cw) * 4.24); width: var(--tw); aspect-ratio: 1.36 / 1;
}
.snow-trees canvas { display: block; width: 100%; height: 100%; }
.snow-trees.is-off { display: none; }
/* in "How the magic happens" they stand behind the step cards (and the candy cane), over the section's
   own background: the section is a stacking context (z-index 3), so -1 keeps them inside it */
.snow-trees--how-left, .snow-trees--how-right { z-index: -1; }
/* the biggest in the middle of the margin beside the steps, its snow 70px up from the section's bottom */
.snow-trees--how-left { left: calc(var(--room) / 2 - var(--tw) / 2); bottom: calc(70px - var(--tw) / 1.36 * 0.111); }
/* the biggest right behind the candy cane's stick (39% across it), level with its foot */
.snow-trees--how-right {
  left: calc(93% - var(--cw) * 0.61 - var(--tw) / 2);
  top: calc(clamp(4px, 1vw, 16px) + var(--cw) * 1.45 * 0.97 - var(--tw) / 1.36 * 0.889);
}
/* in the price section: the biggest just behind the candy cane (in front of it), the others stepping down to
   its right short of the heading and the card */
.snow-trees--price-left {
  left: calc(9% - var(--cw) * 0.92);
  top: calc(clamp(20px, 2.5vw, 40px) + var(--cw) * 1.45 * 0.97 - var(--tw) / 1.36 * 0.889);
}
/* not enough room beside the content on narrower screens */
@media (max-width: 1100px) { .snow-trees { display: none; } }
/* extra room at the top of the sample section, so the certificate sits below the dripping snow from
   "How the magic happens" rather than over it */
#sample { padding-top: calc(clamp(56px, 8vw, 100px) + 70px); }
/* and a little extra at the bottom, so it sits clear of the price section's snow hills */
@media (min-width: 861px) { #sample { padding-bottom: calc(clamp(56px, 8vw, 100px) + 60px); } }
.moon { will-change: transform; }
/* Igloo village sitting on the hero hills */
.hero-village { position: absolute; z-index: 3; bottom: 26px; right: 7%; display: flex; align-items: flex-end; gap: 4px; pointer-events: none; filter: drop-shadow(0 4px 6px rgba(0, 0, 0, .3)); }
.hero-village.left { right: auto; left: 4%; bottom: 14px; }
.hero-village svg { display: block; overflow: visible; }
.elf-wave { display: block; animation: elf-hop 2.2s ease-in-out infinite; transform-origin: 50% 100%; }
.elf-wave.late { animation-delay: -1.1s; }
@keyframes elf-hop { 0%, 100% { transform: translateY(0); } 15% { transform: translateY(-6px) rotate(-4deg); } 30% { transform: translateY(0); } }
@media (max-width: 860px) { .hero-village.left { display: none; } .hero-village { right: 3%; transform: scale(.8); transform-origin: 100% 100%; } }
.hero-letter { position: relative; z-index: 1; justify-self: center; width: min(100%, 420px); }
.envelope-letter {
  position: relative;
  background: var(--parchment);
  color: var(--ink);
  border-radius: 6px;
  padding: 34px 30px 30px;
  transform: rotate(3deg);
  box-shadow: var(--shadow);
  font-family: var(--font-letter);
  font-size: 1.35rem; line-height: 1.45;
}
.envelope-letter::before {
  content: ""; position: absolute; inset: 10px; border: 2px dashed rgba(193, 18, 31, .35); border-radius: 4px; pointer-events: none;
}
.envelope-letter .from { font-family: var(--font-display); color: var(--red); font-size: 1.5rem; text-align: center; margin-bottom: .5rem; }
.envelope-letter .sig { text-align: right; font-size: 1.8rem; color: var(--red-dark); margin-top: .4rem; }
.wax-seal {
  position: absolute; bottom: -22px; left: 24px; width: 64px; height: 64px; border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #e04450, #8d0e17 70%);
  box-shadow: 0 4px 10px rgba(0, 0, 0, .35), inset 0 0 0 5px rgba(0, 0, 0, .12);
  display: grid; place-items: center; color: #ffd6d9; font-family: var(--font-display); font-size: 1.8rem; font-weight: 700;
  transform: rotate(-12deg);
}
.hero-letter { --tilt: 3deg; }
.hero-letter-img {
  display: block; width: 100%; height: auto;
  border-radius: 6px;
  box-shadow: var(--shadow);
}
.hills { display: block; width: 100%; height: auto; margin-top: -10px; position: relative; z-index: 0; }

@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
  .moon { width: 70px; height: 70px; right: 4%; top: 0; }
  .hero-letter { margin-top: 10px; }
}

/* ==========================================================================
   Sections
   ========================================================================== */
.section { position: relative; padding: clamp(56px, 8vw, 100px) 0; }
/* solid colour over the bottom 30% so the corner snow banks and dripping edge match it exactly */
.section-snow { background: linear-gradient(180deg, #f4f9ff, #e6f0fb 70%, #e6f0fb); color: var(--ink); }
.section-snow h2 { color: var(--red); }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 44px; }
.section-head p { color: inherit; opacity: .85; font-size: 1.12rem; }

/* margin-top: room for the lid lifting on hover so it clears the heading; gap: room for a card growing on hover
   (its lid overhangs by 8px each side) without touching its neighbours */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 52px; margin-top: 90px; }
/* Each step is a white card wearing a present's lid, like the navbar's presents (Concept B on
   /steps-concepts/): a striped or dotted lid in the present's colour with its ribbon, a snowy top and a bow,
   with a parchment "Step" tag hanging off the bow on a ribbon. The ribbon runs on faintly down the card.
   Hover (or keyboard focus inside it): the lid lifts, golden light and sparkles spill out of the card, the
   icon hops up and the tag swings. */
.step {
  --c: var(--red); --rib: var(--gold); position: relative; padding-top: 40px;
  transform-origin: 50% 100%; transition: transform .45s cubic-bezier(.34, 1.56, .64, 1);
}
/* the hovered card grows a little (from its base, so it rises towards the heading) and sits over its neighbours */
.step:hover { transform: scale(1.07); z-index: 1; }
.step.gift-green { --c: var(--green); --rib: #fff; }
.step.gift-purple { --c: #8338ec; --rib: var(--gold); }
.step-body {
  position: relative; height: 100%; background: #fff; color: var(--ink); border-radius: 4px 4px var(--radius) var(--radius);
  padding: 38px 24px 28px; text-align: center; box-shadow: 0 12px 30px rgba(18, 48, 90, .12);
}
/* the ribbon carrying on faintly down the card */
.step-body::before { content: ""; position: absolute; left: calc(50% - 8px); width: 16px; top: 0; bottom: 0; background: var(--c); opacity: .07; }
.step-body > * { position: relative; }
/* the dark inside of the present, seen when the lid lifts */
.step-body > .step-inside { position: absolute; left: 6px; right: 6px; top: 0; height: 10px; border-radius: 3px; background: color-mix(in srgb, var(--c), #000 55%); opacity: 0; transition: opacity .25s ease; }
.step-lid {
  position: absolute; z-index: 4; left: -8px; right: -8px; top: 18px; height: 34px; border-radius: 6px;
  background-color: var(--c);
  box-shadow: inset 0 -6px 0 rgba(0, 0, 0, .16), 0 6px 8px rgba(0, 0, 0, .2); transform-origin: 50% 100%;
  transition: transform .55s cubic-bezier(.34, 1.56, .64, 1);
  /* keep the lid on its own layer at rest too, so it isn't re-rasterised (and visibly narrower) once the transition ends */
  will-change: transform; backface-visibility: hidden;
}
/* (the navbar's patterns, without their own ribbon line: the lid draws its ribbon itself) */
.step-lid.pat-stripes { background-image: repeating-linear-gradient(45deg, rgba(255, 255, 255, .18) 0 8px, transparent 8px 17px) !important; background-size: auto !important; }
.step-lid.pat-dots { background-image: radial-gradient(circle, rgba(255, 255, 255, .35) 2.6px, transparent 3.2px) !important; background-size: 15px 15px !important; }
.step-lid::after { content: ""; position: absolute; left: calc(50% - 10px); width: 20px; top: 0; bottom: 0; background: var(--rib); }
.step-lid::before { /* snow on the lid */
  content: ""; position: absolute; z-index: 1; left: -4px; right: -4px; top: -10px; height: 14px; border-radius: 12px 12px 7px 7px;
  background: #fff; box-shadow: 0 2px 2px rgba(0, 0, 0, .08);
}
.step-bow {
  position: absolute; z-index: 2; left: 50%; top: -36px; width: 56px; height: 30px; transform: translateX(-50%);
  color: var(--rib); overflow: visible; filter: drop-shadow(0 2px 2px rgba(0, 0, 0, .2));
}
/* the "Step" gift tag, hanging off the bow on a length of ribbon */
.step-tag {
  position: absolute; z-index: 5; left: calc(50% + 34px); top: 6px;
  background: var(--parchment); color: var(--night); font-family: var(--font-display); font-weight: 700; font-size: 1.35rem; line-height: 1;
  padding: .32rem .7rem .3rem 1.25rem; border-radius: 5px 13px 13px 5px; box-shadow: 0 2px 5px rgba(0, 0, 0, .3);
  transform: rotate(-8deg); transform-origin: 0 50%;
}
.step-tag::before { content: ""; position: absolute; left: 7px; top: 50%; width: 6px; height: 6px; border-radius: 50%; background: #c8b48a; transform: translateY(-50%); }
.step-tag::after { content: ""; position: absolute; right: 100%; top: 50%; width: 30px; border-top: 2px solid var(--rib); transform: rotate(12deg); transform-origin: 100% 0; filter: drop-shadow(0 1px 0 rgba(0, 0, 0, .25)); }
/* golden light and sparkles spilling out of the open present */
.step-glow {
  position: absolute; z-index: 3; left: 8%; right: 8%; bottom: calc(100% - 56px); height: 70px; pointer-events: none;
  background: radial-gradient(ellipse 50% 100% at 50% 100%, rgba(255, 236, 160, .95), rgba(255, 210, 90, .45) 45%, transparent 75%);
  opacity: 0; transform: scaleY(.1); transform-origin: 50% 100%; transition: opacity .3s ease, transform .45s ease;
}
.step-sparkles { position: absolute; z-index: 3; left: 0; right: 0; bottom: calc(100% - 54px); height: 0; pointer-events: none; }
.step-sparkles i { position: absolute; bottom: 0; width: 8px; height: 8px; opacity: 0; background: #fff6c9; transform: rotate(45deg); box-shadow: 0 0 6px 2px rgba(255, 215, 90, .9); border-radius: 1px; }
.step-sparkles i:nth-child(1) { left: 22%; }
.step-sparkles i:nth-child(2) { left: 40%; width: 6px; height: 6px; animation-delay: .25s !important; }
.step-sparkles i:nth-child(3) { left: 55%; animation-delay: .5s !important; }
.step-sparkles i:nth-child(4) { left: 70%; width: 6px; height: 6px; animation-delay: .15s !important; }
.step-sparkles i:nth-child(5) { left: 84%; width: 5px; height: 5px; animation-delay: .7s !important; }
.step .icon { font-size: 2.6rem; line-height: 1; margin: 0 0 10px; display: inline-block; transition: transform .45s cubic-bezier(.34, 1.56, .64, 1); }
.step h3 { color: var(--night-2); }
.step p { margin: 0; color: var(--ink-soft); }
.step:hover .step-lid { transform: translateY(-30px) rotate(-7deg); }
.step:hover .step-inside { opacity: 1; }
.step:hover .step-glow { opacity: 1; transform: scaleY(1); }
.step:hover .step-sparkles i { animation: step-sparkle 1.3s ease-out infinite; }
.step:hover .icon { transform: translateY(-6px) scale(1.12); }
/* site.js adds .swing on hover and removes it only when the swing ends, so moving off mid-swing doesn't snap it back */
.step-tag.swing { animation: step-tag-swing 1.4s ease-in-out; }
@keyframes step-sparkle { 0% { opacity: 0; transform: translateY(0) rotate(45deg) scale(.6); } 20% { opacity: 1; } 100% { opacity: 0; transform: translateY(-70px) rotate(225deg) scale(1); } }
@keyframes step-tag-swing { 0% { transform: rotate(-8deg); } 25% { transform: rotate(10deg); } 50% { transform: rotate(-12deg); } 75% { transform: rotate(4deg); } 100% { transform: rotate(-8deg); } }
@media (prefers-reduced-motion: reduce) {
  .step, .step *, .step *::before, .step *::after { animation: none !important; transition: none !important; }
}

@media (max-width: 820px) { .steps { grid-template-columns: 1fr; gap: 40px; max-width: 460px; margin: 0 auto; } }

/* Sample letter */
.sample-wrap { display: grid; grid-template-columns: .9fr 1.1fr; gap: 50px; align-items: center; }
.sample-wrap .copy p { color: var(--frost); }
.sample-wrap .copy ul { padding-left: 1.2rem; color: var(--frost); }
.sample-wrap .copy li { margin: .35rem 0; }
.sample-wrap .copy li::marker { content: "\2744  "; color: var(--gold); }
@media (max-width: 860px) { .sample-wrap { grid-template-columns: 1fr; } }
/* above the sleigh lane even while he's landing (lane z-index 4), so he never passes over the certificate */
.sample-wrap { position: relative; z-index: 5; }

/* Santa and the reindeer flying left to right across the top of the sample section */
/* reaches 260px down into the price section below, so he can land in its snow */
.sky-sleigh-lane { position: absolute; inset: 0 0 -260px 0; overflow: hidden; pointer-events: none; z-index: 0; }
/* while landing he's in front of the price section (normally he flies behind the page content) */
.sky-sleigh-lane.is-landing { z-index: 4; }
/* runner tracks and hoofprints in the price section's snow (drawn by site.js) */
.snow-tracks { position: absolute; left: 0; top: 0; width: 100%; height: 0; overflow: visible; pointer-events: none; z-index: 2; }
.snow-tracks svg { display: block; overflow: visible; }
.sky-sleigh {
  position: absolute; left: 0; top: 14px; width: 220px; height: 60px;
  animation: sky-sleigh-fly 18s linear infinite; animation-delay: -4s;
  filter: drop-shadow(0 0 10px rgba(255, 230, 150, .4));
}
.sky-sleigh svg { width: 100%; height: 100%; display: block; overflow: visible; }
.sky-sleigh-turn { width: 100%; height: 100%; transform-origin: 50% 50%; }
/* When site.js is steering (following the mouse / autopilot), it sets the position itself */
.sky-sleigh.js-steer { animation: none; top: 0; will-change: transform; }
/* 3D version (sleigh3d.js): the box only sets the size and position; the canvas draws the model */
.sky-sleigh-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.is-3d .sky-sleigh { width: 300px; height: 100px; filter: none; }
.is-3d .sky-sleigh-turn { visibility: hidden; }
@media (max-width: 860px) { .is-3d .sky-sleigh { width: 190px; height: 64px; } }
@keyframes sky-sleigh-fly {
  0%   { transform: translateX(-260px) translateY(30px); }
  50%  { transform: translateX(calc(50vw - 110px)) translateY(0); }
  100% { transform: translateX(calc(100vw + 40px)) translateY(18px); }
}
@media (max-width: 860px) { .sky-sleigh { width: 150px; height: 41px; top: 6px; animation-duration: 12s; } }

.doc-preview.sample-cert-btn { justify-self: center; width: min(100%, 460px); --tilt: -2deg; }
.sample-cert {
  display: block; width: 100%; height: auto;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

/* --------------------------------------------------------------------------
   Sample previews (hero letter + Nice List certificate): hovering straightens
   the page, lifts it with a gold glow and shows "Click to read"; clicking
   opens the full-screen reader (site.js)
   -------------------------------------------------------------------------- */
.doc-preview {
  position: relative; display: block; width: 100%; padding: 0; border: 0; background: none;
  cursor: zoom-in; font: inherit; color: inherit;
}
.doc-preview img {
  transform: rotate(var(--tilt, 0deg));
  transition: transform .45s cubic-bezier(.34, 1.56, .64, 1), box-shadow .45s ease;
}
.doc-preview:hover img, .doc-preview:focus-visible img {
  transform: rotate(0) translateY(-14px) scale(1.06);
  box-shadow: 0 30px 60px rgba(0, 0, 0, .55), 0 0 0 4px rgba(242, 193, 78, .5);
}
.doc-preview:focus-visible { outline: none; }
.doc-preview-pill {
  position: absolute; left: 50%; bottom: 26px; transform: translate(-50%, 12px); opacity: 0;
  background: var(--gold); color: var(--night); font-weight: 800; padding: .55rem 1.1rem; border-radius: 999px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, .35); white-space: nowrap; pointer-events: none;
  transition: opacity .3s ease, transform .3s ease;
}
.doc-preview:hover .doc-preview-pill, .doc-preview:focus-visible .doc-preview-pill { opacity: 1; transform: translate(-50%, 0); }
/* touch screens: no hover, so keep the label showing */
@media (hover: none) { .doc-preview-pill { opacity: 1; transform: translate(-50%, 0); } }
@media (prefers-reduced-motion: reduce) { .doc-preview img, .doc-preview-pill { transition: none; } }

.doc-reader { position: fixed; inset: 0; z-index: 1000; display: none; background: rgba(6, 16, 32, .92); backdrop-filter: blur(4px); }
.doc-reader.open { display: block; animation: doc-reader-in .3s ease; }
@keyframes doc-reader-in { from { opacity: 0; } }
/* the letter and the certificate side by side in a strip you swipe (or scroll) across, one at a time */
.doc-reader-track {
  position: absolute; inset: 0; display: flex;
  overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; overscroll-behavior: contain;
  scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
.doc-reader-track::-webkit-scrollbar { display: none; }
/* each one scrolls up and down on its own (when zoomed in) */
.doc-reader-scroll {
  flex: 0 0 100%; height: 100%; box-sizing: border-box; scroll-snap-align: center; scroll-snap-stop: always;
  overflow-x: hidden; overflow-y: auto; overscroll-behavior-y: contain;
  display: grid; place-items: center; padding: 70px 16px 40px;
}
/* dots showing which one you're on (and that you can swipe) */
.doc-reader-dots { position: absolute; left: 0; right: 0; bottom: 14px; display: flex; justify-content: center; gap: 8px; z-index: 2; pointer-events: none; }
.doc-reader-dots i { width: 8px; height: 8px; border-radius: 50%; background: rgba(255, 255, 255, .35); transition: background .2s, transform .2s; }
.doc-reader-dots i.on { background: var(--gold); transform: scale(1.25); }
.doc-reader img {
  display: block; height: calc(100vh - 110px); height: calc(100dvh - 110px); width: auto; max-width: 100%; object-fit: contain;
  border-radius: 8px; box-shadow: 0 30px 80px rgba(0, 0, 0, .6); cursor: zoom-in;
  animation: doc-reader-up .45s cubic-bezier(.34, 1.56, .64, 1);
}
.doc-reader-scroll.zoomed { place-items: start center; }
.doc-reader-scroll.zoomed img { height: auto; width: min(1100px, 100%); max-width: none; cursor: zoom-out; }
@keyframes doc-reader-up { from { transform: translateY(40px) scale(.9); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .doc-reader.open, .doc-reader img { animation: none; } }
.doc-reader-bar { position: absolute; top: 14px; left: 0; right: 0; display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; padding: 0 16px; z-index: 2; pointer-events: none; }
.doc-reader-bar button {
  pointer-events: auto; border: 0; border-radius: 999px; padding: .5rem 1rem; cursor: pointer;
  font: 800 .9rem var(--font-body, "Nunito", sans-serif); background: rgba(255, 255, 255, .14); color: #fff;
}
.doc-reader-bar button:hover { background: rgba(255, 255, 255, .25); }
.doc-reader-bar button[aria-pressed="true"] { background: rgba(242, 193, 78, .3); box-shadow: inset 0 0 0 2px var(--gold); }
.doc-reader-bar .doc-reader-close { background: var(--red); }
.letter-paper {
  position: relative;
  background:
    radial-gradient(circle at 0 0, rgba(193, 18, 31, .06), transparent 40%),
    linear-gradient(var(--parchment), var(--parchment-2));
  color: var(--ink);
  border-radius: 8px;
  padding: clamp(28px, 5vw, 52px);
  box-shadow: var(--shadow);
  border: 12px solid transparent;
  border-image: repeating-linear-gradient(45deg, var(--red) 0 12px, #fff 12px 24px, var(--green) 24px 36px, #fff 36px 48px) 12;
}
.letter-paper .letter-head { text-align: center; font-family: var(--font-display); color: var(--red); font-size: 1.7rem; margin-bottom: 1rem; }
.letter-paper .letter-head small { display: block; font-family: var(--font-body); font-size: .75rem; letter-spacing: 3px; text-transform: uppercase; color: var(--green); }
.letter-body { font-family: var(--font-letter); font-size: 1.4rem; line-height: 1.55; white-space: pre-line; }

/* Pricing */
/* The 3D igloo (globe3d.js) out to the right of the card, centred in the space between the card and the
   page edge, its dome level with the card's "Personalised Santa letter" title (~48px down the card).
   About as big as the snow globe: the same --gw sizing, with the igloo itself ~80% of its canvas's width. */
.pricing-stage { position: relative; }
.igloo {
  position: absolute; z-index: 1; pointer-events: none;
  --room: calc(max(0px, (100vw - 1160px) / 2) + var(--gutter));
  --gw: clamp(140px, calc(var(--room) * 0.95), 380px);
  --iw: calc(var(--gw) * 1.25); width: var(--iw); aspect-ratio: 1.6 / 1;
  left: calc(50% + 140px + 25vw - var(--iw) / 2);
  top: calc(48px - var(--iw) / 1.6 * 0.5);
}
.igloo canvas { display: block; width: 100%; height: 100%; }
.igloo.is-off { display: none; }
/* not enough room beside the card on narrower screens */
@media (max-width: 1000px) { .igloo { display: none; } }
.price-lines { list-style: none; padding: 0; margin: 1.2rem 0 1.6rem; text-align: left; }
.price-lines li { display: flex; justify-content: space-between; padding: .6rem 0; border-bottom: 1px dashed #d7cdb8; }
.price-lines li.total { font-weight: 800; border-bottom: 0; font-size: 1.15rem; }
.included { list-style: none; padding: 0; margin: 0 0 1.6rem; text-align: left; display: grid; gap: .45rem; }
.included li::before { content: "\2714"; color: var(--green); font-weight: 800; margin-right: .55rem; }

/* The price card: hand-made cotton paper (flecked, mottled, soft torn edges) with a red pencil border,
   pencil lines, hand-drawn ticks and doodles, and the 3D candy cane lying across its top (globe3d.js).
   Hover lifts it a little and nudges the cane. */
.price-card {
  position: relative; max-width: 560px; margin: 0 auto; color: var(--ink); text-align: center;
  padding: 54px clamp(26px, 5vw, 48px) 56px;
  transition: transform .45s cubic-bezier(.34, 1.56, .64, 1);
}
.price-card:hover { transform: translateY(-5px); }
.price-card > * { position: relative; z-index: 1; }

/* the sheet of cotton paper: warm off-white, flecked and mottled, with soft torn (deckled) edges */
.price-card-paper {
  position: absolute !important; z-index: 0 !important; inset: 0; border-radius: 20px;
  background-color: #fdfaf3;
  background-image:
    /* fine fibres and flecks (pre-rendered from SVG fractal noise: computing it live was slow on phones) */
    url("/img/paper-fibres.webp"),
    /* soft cloudy mottling, like pulp laid unevenly */
    url("/img/paper-mottle.webp"),
    radial-gradient(ellipse at 50% 40%, rgba(255, 255, 255, .7), transparent 70%);
  background-size: 240px 240px, 600px 600px, auto;
  box-shadow: 0 18px 40px rgba(18, 48, 90, .16);
  filter: url(#price-card-deckle) drop-shadow(0 2px 1px rgba(91, 82, 70, .12));
}
/* a hand-drawn double border in red pencil: two wobbly vector lines (sharp at any zoom), stretched to the card */
.price-card-ink { position: absolute !important; z-index: 0 !important; inset: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible; }
/* pencil doodles in the corners */
.price-card-doodle { position: absolute !important; z-index: 0 !important; width: 46px; height: 46px; pointer-events: none; color: rgba(28, 68, 121, .4); }
.price-card-doodle.d1 { right: 34px; top: 62px; width: 34px; height: 34px; transform: rotate(-12deg); }
.price-card-doodle.d2 { left: 50%; bottom: 22px; width: 22px; height: 22px; margin-left: -11px; transform: rotate(18deg); }
.price-card-doodle.d3 { left: 34px; top: 64px; width: 26px; height: 26px; transform: rotate(8deg); color: rgba(193, 18, 31, .38); }

.price-card-kicker { font-weight: 800; letter-spacing: 2px; text-transform: uppercase; color: var(--green); }
.price-card-price { position: relative; display: inline-block; font-family: var(--font-display); font-size: 4.2rem; color: var(--red); line-height: 1; margin: .6rem 0 .2rem; }
/* a quick hand-drawn swoosh under the price */
.price-card-price::after {
  content: ""; position: absolute; left: -8%; right: -8%; bottom: -6px; height: 14px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 14' preserveAspectRatio='none'%3E%3Cpath d='M3 9 C40 3 90 4 130 6 S185 9 197 4' fill='none' stroke='%23f2c14e' stroke-width='3.2' stroke-linecap='round'/%3E%3Cpath d='M18 12 C60 8 110 8 170 9' fill='none' stroke='%23f2c14e' stroke-width='1.8' stroke-linecap='round' opacity='.75'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
}
.price-card-sub { color: var(--ink-soft); font-family: var(--font-letter); font-size: 1.45rem; line-height: 1; }

.price-card .price-lines { list-style: none; padding: 0; margin: 1.3rem 0 1.6rem; text-align: left; }
/* pencil lines instead of the dashed ones */
.price-card .price-lines li {
  display: flex; justify-content: space-between; padding: .6rem 0; border-bottom: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 6' preserveAspectRatio='none'%3E%3Cpath d='M1 3.4 C50 2.2 95 4.4 150 3 S260 2 300 3.6 S370 4 399 2.6' fill='none' stroke='%23a89a82' stroke-width='1.4' stroke-linecap='round'/%3E%3C/svg%3E") left bottom / 100% 6px no-repeat;
}
.price-card .price-lines li.total { font-weight: 800; font-size: 1.15rem; background: none; }
.price-card .included { list-style: none; padding: 0; margin: 0 0 1.7rem; text-align: left; display: grid; gap: .5rem; }
/* hand-drawn ticks */
.price-card .included li { position: relative; padding-left: 1.9rem; }
.price-card .included li::before {
  content: ""; position: absolute; left: 0; top: .1em; width: 1.25rem; height: 1.25rem; margin: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M3.5 13.2 C5.5 14.6 7.6 16.8 9.2 19.6 C11.6 13 15.6 7.2 21 3.6' fill='none' stroke='%231b7a3d' stroke-width='2.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
}
.price-card .included li:nth-child(2)::before { transform: rotate(-6deg); }
.price-card .included li:nth-child(3)::before { transform: rotate(5deg) scale(.95); }
.price-card .included li:nth-child(4)::before { transform: rotate(-3deg) scale(1.05); }

/* the 3D candy cane (globe3d.js): a canvas over the top of the card, wide enough for the hook on the right */
.cane-across { position: absolute !important; z-index: 3 !important; left: -50px; right: -70px; top: -70px; height: 170px; pointer-events: none; }
.cane-across canvas { display: block; width: 100%; height: 100%; }
.cane-across.is-off { display: none; }
/* its soft shadow on the paper */
.price-card-cane-shadow { position: absolute !important; z-index: 1 !important; left: 4%; right: 2%; top: 8px; height: 18px; border-radius: 50%; pointer-events: none;
  background: radial-gradient(ellipse at 50% 50%, rgba(91, 70, 40, .22), transparent 70%); }
/* no WebGL: fall back to the original candy-stripe band */
.price-card .price-card-fallback { display: none; }
.cane-across.is-off ~ .price-card-fallback { display: block; position: absolute; z-index: 2; left: 0; right: 0; top: 0; height: 12px; border-radius: 20px 20px 0 0; background: repeating-linear-gradient(45deg, var(--red) 0 14px, #fff 14px 28px); }

@media (prefers-reduced-motion: reduce) { .price-card { transition: none; } }
/* narrow screens (the igloo is hidden there): the card shifts left to leave room for the cane's hook, and
   the see-through canvas around the cane is clipped at the sides so it can't make the page scroll sideways */
@media (max-width: 1000px) { #pricing { overflow-x: clip; } }
@media (max-width: 640px) {
  .price-card { margin-left: 0; margin-right: 26px; }
  .cane-across { left: -16px; right: -42px; }
  /* the title wraps here, so the corner doodles beside it would sit on top of it */
  .price-card-doodle.d1, .price-card-doodle.d3 { display: none; }
}

/* Other cards on the price card's cotton paper (site.js adds the paper, its red pencil border and doodles):
   the order form, its "Your order" summary and the cookie banner */
.paper-card { position: relative; background: none; box-shadow: none; border-radius: 20px; }
.paper-card > * { position: relative; z-index: 1; }
.paper-card .check a { color: var(--red); }
.paper-card .price-lines li {
  border-bottom: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 6' preserveAspectRatio='none'%3E%3Cpath d='M1 3.4 C50 2.2 95 4.4 150 3 S260 2 300 3.6 S370 4 399 2.6' fill='none' stroke='%23a89a82' stroke-width='1.4' stroke-linecap='round'/%3E%3C/svg%3E") left bottom / 100% 6px no-repeat;
}
.paper-card .price-lines li.total { background: none; }
/* room inside the pencil border */
#order-form.paper-card { padding: clamp(40px, 5vw, 56px) clamp(34px, 5vw, 52px) 58px; }
.summary-card.paper-card { padding: 40px 36px 42px; }
/* the doodles in the corners, clear of the headings */
.paper-card .price-card-doodle.d1 { left: auto; right: 34px; top: 32px; }
.paper-card .price-card-doodle.d2 { left: 50%; bottom: 24px; top: auto; }
.paper-card .price-card-doodle.d3 { left: auto; right: 34px; top: auto; bottom: 30px; }
.summary-card.paper-card .price-card-doodle.d1 { right: 28px; top: 28px; width: 26px; height: 26px; }
.summary-card.paper-card .price-card-doodle.d2,
.summary-card.paper-card .price-card-doodle.d3 { display: none; }

/* the cookie banner: the paper floats over the night sky, so it keeps a deeper shadow */
.cookie-banner.paper-card { background: none; border: 0; outline: 0; padding: 30px 34px; border-radius: 20px; }
.cookie-banner.paper-card .price-card-paper { box-shadow: 0 20px 50px rgba(0, 0, 0, .45); }
.cookie-banner.paper-card .price-card-doodle.d1 { right: 30px; top: 26px; width: 26px; height: 26px; }
.cookie-banner.paper-card .price-card-doodle.d2,
.cookie-banner.paper-card .price-card-doodle.d3 { display: none; }

/* FAQ */
.faq { max-width: 820px; margin: 0 auto; display: grid; gap: 14px; }
.faq details {
  background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 16px; padding: 0 22px; transition: background .2s;
}
.faq details[open] { background: rgba(255, 255, 255, .12); }
.faq summary { cursor: pointer; list-style: none; padding: 18px 0; font-weight: 800; font-size: 1.08rem; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "\2744"; color: var(--gold); transition: transform .3s; flex-shrink: 0; }
.faq details[open] summary::after { transform: rotate(90deg); }
.faq details p { margin: 0 0 18px; color: var(--frost); }

.cta-band { text-align: center; }
.cta-band p { color: var(--frost); font-size: 1.15rem; }

/* ==========================================================================
   Content cards (order form, legal pages)
   ========================================================================== */
/* page titles (order form, legal pages) start below the navbar's dripping snow, which hangs ~131px under it
   (~105px on smaller screens; phones are set in the Phones section) */
.page-hero { text-align: center; padding: 150px 0 10px; }
@media (max-width: 960px) { .page-hero { padding-top: 124px; } }
.page-hero p { color: var(--frost); max-width: 640px; margin: 0 auto; font-size: 1.12rem; }

.card {
  background: var(--parchment); color: var(--ink);
  border-radius: var(--radius); box-shadow: var(--shadow);
  padding: clamp(22px, 4vw, 40px);
}
.card h2, .card h3 { color: var(--red); }
.prose { max-width: 820px; margin: 30px auto 60px; }
.prose h2 { font-size: 1.9rem; margin-top: 1.6em; }
.prose h2:first-child { margin-top: 0; }
.prose table { width: 100%; border-collapse: collapse; margin: 1rem 0; font-size: .97rem; }
.prose th, .prose td { text-align: left; padding: .6rem; border-bottom: 1px solid #e3d7bf; vertical-align: top; }
.prose a { color: var(--red); }

.order-layout { display: grid; grid-template-columns: 1fr 340px; gap: 28px; align-items: start; margin: 26px auto 70px; }
/* the order page's night sky that Santa flies round, behind the form (the same flying as the home page's
   sample section, with the whole screen below the navbar as his sky). Not on phones (see Phones). */
.sky-stage { position: fixed; left: 0; right: 0; top: var(--header-h); bottom: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.sky-stage .sky-sleigh-lane { bottom: 0; }
.sky-stage ~ main { position: relative; z-index: 1; }
@media (max-width: 700px) { .sky-stage { display: none; } }
/* sticks just below the navbar's dripping snow (~131px under it), not behind it */
.order-summary { position: sticky; top: calc(var(--header-h) + 140px); }
@media (max-width: 920px) { .order-layout { grid-template-columns: 1fr; } .order-summary { position: static; order: -1; } }

.notice {
  border-radius: 14px; padding: 14px 18px; margin-bottom: 20px; font-weight: 600;
  background: #fff3cd; color: #6a4b00; border: 1px solid #f0d58a;
}
.notice.error { background: #fde2e4; color: #7a0d14; border-color: #f4a8ae; }
.notice.success { background: #e2f6e9; color: #0f5128; border-color: #9ad6ad; }

fieldset { border: 0; padding: 0; margin: 0 0 30px; }
legend {
  font-family: var(--font-display); font-weight: 700; color: var(--green-dark); font-size: 1.65rem;
  margin-bottom: 14px; display: flex; align-items: center; gap: .5rem;
}
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 18px; }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 600px) { .form-grid { grid-template-columns: 1fr; } }

.field label { display: block; font-weight: 800; margin-bottom: .35rem; color: var(--night-2); }
.field .hint { display: block; font-size: .88rem; color: var(--ink-soft); margin: -.15rem 0 .4rem; font-weight: 400; }
.field .req { color: var(--red); }
.field input[type="text"],
.field input[type="email"],
.field input[type="number"],
.field input[type="password"],
.field select,
.field textarea {
  width: 100%; font: inherit; color: var(--ink);
  background: #fff; border: 2px solid #e0d4ba; border-radius: 12px;
  padding: .7rem .9rem; transition: border-color .2s, box-shadow .2s;
}
.field textarea { min-height: 92px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 4px rgba(27, 122, 61, .15); }
.field.has-error input, .field.has-error textarea, .field.has-error select { border-color: var(--red); }
.field .counter { font-size: .8rem; color: var(--ink-soft); text-align: right; margin-top: .2rem; }

.choice-row { display: flex; flex-wrap: wrap; gap: 10px; }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; inset: 0; }
.choice span {
  display: inline-flex; align-items: center; gap: .45rem;
  padding: .6rem 1rem; border-radius: 999px; border: 2px solid #e0d4ba; background: #fff; cursor: pointer; font-weight: 700;
  transition: all .2s;
}
.choice input:checked + span { border-color: var(--green); background: #e7f5ec; color: var(--green-dark); }
.choice input:focus-visible + span { outline: 3px solid var(--gold); outline-offset: 2px; }

.tone-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
@media (max-width: 600px) { .tone-grid { grid-template-columns: 1fr; } }
.tone-grid .choice span { border-radius: 14px; flex-direction: column; align-items: flex-start; gap: .1rem; width: 100%; padding: .9rem 1rem; }
.tone-grid .choice span small { font-weight: 400; color: var(--ink-soft); }
.tone-grid .choice { display: flex; }

.check { display: flex; gap: .7rem; align-items: flex-start; font-size: .98rem; }
.check input { width: 22px; height: 22px; margin-top: 2px; accent-color: var(--green); flex-shrink: 0; }

.summary-card h3 { margin-bottom: .2rem; }
.summary-card .price-lines { margin: .8rem 0 1rem; }
.summary-card .tiny { font-size: .88rem; color: var(--ink-soft); }
.trust { display: flex; align-items: center; gap: .5rem; font-size: .9rem; color: var(--ink-soft); margin-top: .8rem; }

.spinner { width: 18px; height: 18px; border-radius: 50%; border: 3px solid rgba(255, 255, 255, .4); border-top-color: #fff; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Success page */
.success-card { max-width: 640px; margin: 30px auto 70px; text-align: center; }
.success-card .big-emoji { font-size: 4rem; line-height: 1; }
.success-card .ref { display: inline-block; font-weight: 800; font-size: 1.3rem; letter-spacing: 2px; background: var(--parchment-2); padding: .4rem 1rem; border-radius: 10px; margin: .4rem 0 1rem; }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer { position: relative; margin-top: 40px; color: var(--frost); }
/* the hero's hills (site.js raises the far one as the footer scrolls in) */
.footer-scene { position: relative; }
.footer-hills { display: block; width: 100%; height: auto; }
/* the 3D snowman standing in the snow on the left, his scarf blowing in the wind; as tall as the
   home page's snow globe (same --gw sizing, globe height = --gw * 1.12) */
.footer-snowman {
  position: absolute; left: 9%; bottom: 4px; pointer-events: none;
  --room: calc(max(0px, (100vw - 1160px) / 2) + var(--gutter));
  --gw: clamp(140px, calc(var(--room) * 0.95), 380px);
}
.footer-snowman svg { display: block; width: auto; height: calc(var(--gw) * 1.12); }@media (max-width: 860px) { .footer-snowman { --gw: clamp(120px, 18vw, 170px); left: 6%; } }
@media (max-width: 700px) { .footer-snowman { --gw: 160px; } }
/* the near hill's colour; pulled up a couple of pixels so no hairline shows at the join on scaled displays */
.site-footer .footer-inner { background: #f4f9ff; color: var(--ink); padding: 30px 0 40px; margin-top: -2px; }

/* The home page's second moon, showing through the night-sky sections (site.js moves it) */
.sky-moon-layer { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.sky-moon {
  position: absolute; left: 0; top: 0; width: 110px; height: 110px; border-radius: 50%;
  background: radial-gradient(circle at 38% 38%, #fffbe8, #f5e7b2 60%, #e4cf86);
  box-shadow: 0 0 60px 20px rgba(255, 245, 200, .25);
  opacity: .9; transform-origin: 50% 100%; will-change: transform;
}
.footer-grid { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 20px; align-items: center; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 20px; list-style: none; margin: 0; padding: 0; }
.footer-links a, .footer-links button {
  color: var(--night-2); font: 700 .95rem var(--font-body); text-decoration: none; background: none; border: 0; padding: 0; cursor: pointer;
}
.footer-links a:hover, .footer-links button:hover { color: var(--red); text-decoration: underline; }
.footer-brand { font-family: var(--font-display); font-size: 1.5rem; color: var(--red); font-weight: 700; }
.footer-small { font-size: .85rem; color: var(--ink-soft); margin-top: 12px; }

/* ==========================================================================
   Cookie banner
   ========================================================================== */
.cookie-banner {
  position: fixed; z-index: 100; left: 16px; right: 16px; bottom: 16px;
  max-width: 760px; margin: 0 auto;
  background: var(--parchment); color: var(--ink);
  border-radius: 20px; box-shadow: 0 20px 50px rgba(0, 0, 0, .45);
  padding: 20px 22px; display: grid; grid-template-columns: auto 1fr; gap: 14px 18px; align-items: center;
  border: 3px solid #fff;
  outline: 3px solid var(--red);
  animation: cookie-in .45s cubic-bezier(.34, 1.56, .64, 1);
}
.cookie-banner[hidden] { display: none; }
.cookie-banner .cookie-icon { font-size: 2.4rem; line-height: 1; }
.cookie-banner h2 { font-size: 1.5rem; color: var(--red); margin: 0 0 .2rem; }
.cookie-banner p { margin: 0; font-size: .95rem; color: var(--ink-soft); }
.cookie-banner p a { color: var(--red); }
.cookie-actions { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-end; }
.cookie-actions .btn-ghost { color: var(--night-2); box-shadow: inset 0 0 0 2px var(--night-2); background: transparent; }
@keyframes cookie-in { from { transform: translateY(30px); opacity: 0; } to { transform: none; opacity: 1; } }
@media (max-width: 520px) {
  .cookie-banner { grid-template-columns: 1fr; }
  .cookie-banner .cookie-icon { display: none; }
  .cookie-actions .btn { flex: 1 1 100%; }
}

/* ==========================================================================
   Reduced motion
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .sn-sleigh { animation: none; transform: translateX(42vw); }
  .sky-sleigh { animation: none; transform: translateX(calc(100vw - 260px)); }
}

/* "Questions for the elves" starts below the price section's dripping snow, which hangs down into it
   (as the sample section does for "How the magic happens") */
#faq { padding-top: calc(clamp(56px, 8vw, 100px) + 70px); }

/* Touch screens: the step cards aren't buttons, so a tap doesn't open their lids or grow them (on a phone a tap
   counts as hovering, and the card stayed open) */
@media (hover: none) {
  .step { -webkit-tap-highlight-color: transparent; }
  .step:hover { transform: none; z-index: auto; }
  .step:hover .step-lid { transform: none; }
  .step:hover .step-inside, .step:hover .step-glow { opacity: 0; }
  .step:hover .step-glow { transform: scaleY(.1); }
  .step:hover .step-sparkles i { animation: none; }
  .step:hover .icon { transform: none; }
}

/* ==========================================================================
   Phones
   ========================================================================== */
@media (max-width: 600px) {
  /* the navbar's icicles, shorter (same artwork, scaled down), so the sticky header covers less of the
     screen: they now hang ~58px below it instead of ~105px */
  .sn-header .snow-drip { height: 64px; background-size: auto 64px; top: calc(100% - 6px); }
  .hero { padding-top: 78px; }
  /* page titles (order form, legal pages) start below the icicles */
  .page-hero { padding-top: 72px; }

  /* the header trees' lights stay lit but don't twinkle on phones: they're inside an SVG <symbol> that's
     reused (<use>) all along the header, and animating anything in a symbol makes the browser rebuild every
     copy on every frame, which made scrolling on phones very laggy */
  .twinkle { animation: none; }

  /* the hero moon starts below the navbar's icicles rather than half behind them */
  .moon { top: 60px; right: 2%; width: 52px; height: 52px; }

  /* the sample letter clear of the hills at the bottom of the hero */
  .hero-letter { margin-bottom: 44px; }

  /* the price card centred, with the (smaller, see globe3d.js) candy cane's hook curling round its corner */
  .price-card { margin-left: 14px; margin-right: 14px; }
  /* its paper's torn edge is a clip-path drawn by site.js here (the SVG filter is too slow on phones); the
     clip would cut off the paper's shadow, so that's on a layer underneath instead */
  .price-card-paper { filter: none; box-shadow: none; }
  .price-card::before {
    content: ""; position: absolute; z-index: 0; inset: 2px; border-radius: 20px; pointer-events: none;
    box-shadow: 0 18px 40px rgba(18, 48, 90, .16), 0 2px 2px rgba(91, 82, 70, .1);
  }
  /* room under it for its shadow to fade out before the dripping snow at the bottom of the section starts:
     the snow is drawn over it, so where they met it cut the shadow off in a visible straight line */
  #pricing { padding-bottom: calc(clamp(56px, 8vw, 100px) + 40px); }

  /* no Santa's sleigh flying round the sample section on phones */
  .sky-sleigh-lane { display: none; }

  /* the footer snowman, smaller, so his hat stays clear of the button above */
  .footer-snowman { --gw: 100px; left: 3%; }

  /* footer links: bigger tap targets */
  .footer-links { gap: 0 18px; }
  .footer-links a, .footer-links button { display: inline-block; padding: 8px 0; }

  /* a more compact cookie banner, with its two buttons side by side */
  .cookie-banner { left: 10px; right: 10px; bottom: 10px; padding: 14px 16px; gap: 10px; border-radius: 16px; }
  .cookie-banner.paper-card { padding: 30px 30px 32px; }
  /* the paper cards' torn edges are a clip-path here too (see the price card above), so their shadows
     sit on a layer underneath */
  .paper-card::before {
    content: ""; position: absolute; z-index: 0; inset: 2px; border-radius: 20px; pointer-events: none;
    box-shadow: 0 18px 40px rgba(18, 48, 90, .16), 0 2px 2px rgba(91, 82, 70, .1);
  }
  .cookie-banner.paper-card::before { box-shadow: 0 16px 40px rgba(0, 0, 0, .45); }
  #order-form.paper-card { padding: 40px 30px 48px; }
  .summary-card.paper-card { padding: 34px 30px 36px; }
  .paper-card .price-card-doodle { display: none; }
  .cookie-banner h2 { font-size: 1.25rem; }
  .cookie-banner p { font-size: .86rem; line-height: 1.45; }
  .cookie-actions { flex-wrap: nowrap; gap: 8px; }
  .cookie-actions .btn { flex: 1 1 0; padding: .6rem .5rem; font-size: .86rem; }

  /* tables in the legal pages: each row becomes its own little block, with the column name beside each value */
  .prose table, .prose tbody, .prose tr, .prose td { display: block; width: 100%; }
  .prose tr:first-child { display: none; }
  .prose tr { padding: .7rem 0; border-bottom: 1px solid #e3d7bf; }
  .prose td { border: 0; padding: .15rem 0; }
  .prose td[data-label]::before { content: attr(data-label) ": "; font-weight: 800; color: var(--night-2); }
}
