/* ==========================================================================
   The elf site's own look: a bright, daytime elf workshop.
   Santa's site is a hushed, gold-lit North Pole night. The elf's is the
   opposite: warm cream paper, peppermint red, evergreen and mint, rounded
   cheeky lettering, felt patches with little stitches, candy-cane stripes and
   confetti instead of snow. Loaded last, so it only changes how things look;
   the pages and steps are the same as Santa's.
   The call screen (body.in-call) keeps its own look and is not touched here.
   ========================================================================== */

/* The elf's fonts, served by this site (no call to Google). Both are variable fonts: one file covers every weight.
   Latin characters only. Licences: /fonts/licenses/fredoka-OFL.txt and nunito-OFL.txt (SIL Open Font License). */
@font-face {
  font-family: 'Fredoka'; font-style: normal; font-weight: 300 700; font-display: swap;
  src: url('../fonts/elf/fredoka-latin.woff2') format('woff2');
}
@font-face {
  font-family: 'Nunito'; font-style: normal; font-weight: 200 1000; font-display: swap;
  src: url('../fonts/elf/nunito-latin.woff2') format('woff2');
}

:root {
  --paper: #fff8ec;
  --ink: #183f2e;
  --red: #e0393e;
  --red-deep: #a8222c;
  --green: #1f7a4d;
  --green-deep: #145538;
  --mint: #43b98c;
  --gold: #f0a92e;
  --muted: #557263;
  --line: #1f7a4d26;
  --serif: 'Fredoka', 'Trebuchet MS', sans-serif;
  --sans: 'Nunito', 'Segoe UI', Arial, sans-serif;
  /* A row of little stitches, used for felt patches. */
  --stitch: repeating-linear-gradient(90deg, currentColor 0 7px, transparent 7px 12px);
}

body:not(.in-call) { background: var(--paper); color: var(--ink); font-family: var(--sans); }
/* The edge-to-edge seams are 100vw wide, which on a computer includes the scrollbar: never let that
   (or any decoration) make the page scroll sideways. */
html:has(body:not(.in-call)) { overflow-x: clip; }
body:not(.in-call) h1, body:not(.in-call) h2, body:not(.in-call) h3 { font-family: var(--serif); }

/* ---- Background: cream wallpaper with polka dots, and a string of bunting across the top ---- */
body:not(.in-call) .winter-background {
  height: 1100px;
  background:
    radial-gradient(circle at 18px 18px, #e0393e14 3px, transparent 4px) 0 0 / 46px 46px,
    radial-gradient(circle at 41px 41px, #1f7a4d12 3px, transparent 4px) 0 0 / 46px 46px,
    radial-gradient(ellipse 70% 60% at 75% 30%, #ffe6b8 0%, transparent 70%),
    linear-gradient(180deg, #fff3dc 0%, var(--paper) 80%);
}
body:not(.in-call) .winter-background::after { display: none; }

/* Bunting: red, green and gold flags hanging from the green strip at the top. */
body:not(.in-call) .announcement::after {
  content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 22px; pointer-events: none; z-index: 4;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='96' height='22'%3E%3Cpath d='M0 1.5Q48 6 96 1.5' stroke='%23145538' stroke-width='1.5' fill='none'/%3E%3Cpath d='M4 2.5h22L15 19z' fill='%23e0393e'/%3E%3Cpath d='M37 4h22L48 21z' fill='%23f0a92e'/%3E%3Cpath d='M70 2.5h22L81 19z' fill='%23ffffff'/%3E%3C/svg%3E") 0 0 / 96px 22px repeat-x;
  filter: drop-shadow(0 2px 1px #0000002a);
}

/* ---- Confetti instead of snow ---- */
body:not(.in-call) .snowfall i {
  border-radius: 2px; box-shadow: none; opacity: .75 !important;
  width: 7px !important; height: 11px !important;
  background: var(--red);
}
body:not(.in-call) .snowfall i:nth-child(3n) { background: var(--green); }
body:not(.in-call) .snowfall i:nth-child(3n+1) { background: var(--gold); border-radius: 50%; width: 8px !important; height: 8px !important; }
body:not(.in-call) .snowfall i:nth-child(5n) { background: var(--mint); }

/* ---- Top strip and header ---- */
body:not(.in-call) .announcement {
  background: var(--green); color: #fff; border-bottom: 0;
  font-family: var(--serif); font-weight: 500; font-size: 15px; letter-spacing: .3px;
  box-shadow: inset 0 -4px 0 #00000014;
}
body:not(.in-call) .announcement svg { color: #ffd47a; }
body:not(.in-call) .site-header { border-bottom: 0; border-image: none; }
body:not(.in-call) .site-header::after {
  /* a stitched seam under the header, edge to edge */
  content: ""; position: absolute; left: 50%; bottom: 0; width: 100vw; translate: -50% 0; height: 2px;
  color: #1f7a4d40; background: var(--stitch);
}
.elf-wordmark {
  font-family: var(--serif); font-weight: 700; color: var(--red); letter-spacing: -.5px;
  text-shadow: 0 3px 0 #a8222c2e;
}
.site-footer .elf-wordmark, .menu-logo .elf-wordmark { color: var(--red); }
body:not(.in-call) .nav { color: var(--ink); font-weight: 700; font-family: var(--sans); font-size: 14px; }
body:not(.in-call) .nav a:hover { color: var(--red); }
body:not(.in-call) .nav a::after { background: var(--red); height: 3px; border-radius: 3px; }
body:not(.in-call) .site-header .parent-button {
  background: #fff; color: var(--green); border: 2px solid var(--green); border-radius: 999px;
  font-family: var(--serif); font-weight: 600; font-size: 15px; letter-spacing: 0;
  box-shadow: 0 3px 0 var(--green); backdrop-filter: none;
}
body:not(.in-call) .site-header .parent-button:hover { background: #effaf4; color: var(--green-deep); box-shadow: 0 5px 0 var(--green); translate: 0 -2px; }
body:not(.in-call) .menu-button { color: var(--ink); }

/* ---- Hero ---- */
.landing .hero-copy > .eyebrow, .landing .eyebrow { color: var(--green); font-family: var(--sans); font-weight: 800; letter-spacing: 2px; }
.landing .eyebrow svg, .landing .hero-copy > .eyebrow > svg { color: var(--gold); }
.landing h1, .hero h1 {
  font-family: var(--serif); font-weight: 700; color: var(--ink); letter-spacing: -2px; line-height: 1.02;
  text-shadow: none;
}
.landing .calling-word { color: var(--red); text-shadow: 0 5px 0 #a8222c22; }
.landing .calling-word > svg { stroke: var(--gold); opacity: 1; filter: none; stroke-width: 3; }
.landing .headline-star { color: var(--gold); filter: none; }
.landing .hero-description { color: var(--muted); text-shadow: none; font-size: 17px; font-weight: 600; }
.landing .hero-description > span { color: var(--muted); font-weight: 400; font-size: 14px; }
.landing .hand-note { color: var(--green); text-shadow: none; font-size: 22px; }
.landing .hand-note svg { stroke: var(--green); }
.landing .preview-hint { color: var(--muted); font-size: 12px; }
.landing .reassurance-icon { background: #fff; color: var(--red); border: 2px dashed #e0393e66; }
.landing .parent-reassurance p { color: var(--muted); font-size: 12px; }
.landing .parent-reassurance strong { color: var(--ink); font-weight: 800; }

/* Buttons: chunky peppermint, like a sweet you could press. */
body:not(.in-call) .button.red {
  background: var(--red); color: #fff; border: 0; border-radius: 999px;
  font-family: var(--serif); font-weight: 600; font-size: 17px; letter-spacing: .2px; text-shadow: none;
  box-shadow: 0 5px 0 var(--red-deep), 0 10px 22px #e0393e33;
}
body:not(.in-call) .button.red:hover {
  background: repeating-linear-gradient(-45deg, var(--red) 0 12px, #ea5257 12px 24px);
  box-shadow: 0 7px 0 var(--red-deep), 0 14px 28px #e0393e44;
}

/* The phone becomes a green felt telephone with stitched edges. */
.landing .phone-scene::before { background: radial-gradient(circle, #ffd98a99 0%, #ffe9c055 45%, transparent 70%); filter: none; }
.landing .orbit { border: 2px dashed #e0393e55; box-shadow: none; }
.landing .orbit-two { border-color: #1f7a4d44; }
.landing .phone-device {
  background: linear-gradient(105deg, #18643f, #23885a 30%, #1f7a4d 70%, #145538);
  border: 3px solid #145538; outline: 2px dashed #ffffffa0; outline-offset: -11px;
  box-shadow: 0 0 0 5px #fff, 0 0 0 7px #1f7a4d33, 18px 26px 40px #1f3d2c40;
}
.landing .phone-title { color: #fff; font-family: var(--sans); font-weight: 800; }
.landing .speaker i { background: #0e3d27; }
.landing .screw { background: linear-gradient(120deg, #ffe7a8, #e0a43a); }
.landing .phone-screen { border: 4px solid #fff; box-shadow: 0 0 0 2px #145538; background: #ffe9c0; }
.landing .phone-screen > img { object-position: 50% 30%; }
.landing .screen-label { background: var(--red); color: #fff; border: 0; font-family: var(--sans); font-weight: 800; }
.landing .screen-label .status-dot { background: #fff; }
.landing .screen-shade { background: linear-gradient(transparent 55%, #0e3d27d9); }
.landing .screen-caption strong { font-family: var(--serif); font-weight: 700; }
.landing .sound-wave i { background: #ffd47a; }
.landing .phone-call-button { background: #fff; border: 0; box-shadow: 0 5px 0 #0e3d27; color: var(--ink); border-radius: 999px; }
.landing .phone-call-button:hover { background: #fff8ec; box-shadow: 0 7px 0 #0e3d27; }
.landing .phone-call-button strong { font-family: var(--serif); font-weight: 700; color: var(--red); }
.landing .phone-call-button small { color: var(--muted); font-weight: 700; }
.landing .green-phone { background: var(--red); box-shadow: 0 0 0 4px #e0393e22; }
.landing .phone-bottom { color: #ffffffd0; font-weight: 800; }
.landing .north-pole-stamp {
  background: var(--gold); color: #5a3a06; border: 0; outline: 2px dashed #fff; outline-offset: -7px;
  box-shadow: 0 6px 0 #c4851a, 0 10px 20px #0002; backdrop-filter: none;
}
.landing .north-pole-stamp strong { font-family: var(--serif); font-weight: 700; }
.landing .north-pole-stamp svg { color: #fff; filter: none; }
.landing .scene-star { color: var(--gold); filter: none; }
.landing .little-note { color: var(--green); text-shadow: none; }
.landing .scene-tree { color: var(--green); filter: none; }

/* ---- Candy-cane band ---- */
.landing .wonder-strip {
  background: repeating-linear-gradient(-45deg, var(--red) 0 22px, #fff 22px 44px);
  border: 0; box-shadow: inset 0 6px 10px #0000001a, inset 0 -6px 10px #0000001a;
}
.landing .wonder-inner > span {
  background: #fff; color: var(--ink); padding: 10px 18px; border-radius: 999px;
  font-family: var(--serif); font-weight: 600; font-size: 17px; box-shadow: 0 4px 0 #0000001f;
}
.landing .wonder-inner > span svg { color: var(--red); }
.landing .wonder-inner > svg { color: #fff; filter: drop-shadow(0 1px 1px #0004); }

/* ---- Section headings (no gold shimmer here: red, with a wobble of a squiggle) ---- */
.landing h2 { font-family: var(--serif); font-weight: 700; color: var(--ink); letter-spacing: -1px; }
.landing .section-intro h2 em, .landing .membership-copy h2 em, .landing h2 em {
  background: none; -webkit-background-clip: border-box; background-clip: border-box;
  color: var(--red); animation: none; font-style: normal;
}
.landing .section-intro > p:last-child { color: var(--muted); font-size: 15px; }

/* ---- Steps: felt badges ---- */
.landing .steps::before { border-top: 3px dashed #e0393e55; }
.landing .step-icon { background: #fff; border: 3px dashed #1f7a4d66; box-shadow: 0 5px 0 #1f7a4d26; }
.landing .step-icon > svg { color: var(--red); }
.landing .step-icon span { background: var(--green); color: #fff; font-weight: 800; padding: 4px 6px; border-radius: 999px; }
.landing .steps h3 { color: var(--ink); font-weight: 700; }
.landing .steps p { color: var(--muted); font-size: 14px; }

/* ---- "The elf remembers": speech bubble and felt patch cards ---- */
.landing .nice-quote { background: #fff; color: var(--ink); border: 3px solid var(--green); box-shadow: 0 6px 0 #1f7a4d33; }
.landing .nice-quote::after { background: #fff; border-right: 3px solid var(--green); border-bottom: 3px solid var(--green); }
.landing .nice-quote img { border-color: var(--red); background: #ffe9c0; }
.landing .nice-quote em { color: var(--red); }
.landing .nice-cards article, .landing .nice-cards article:first-child {
  position: relative; background: #fff; color: var(--ink);
  border: 0; border-radius: 22px; padding: 28px 22px 24px;
  box-shadow: 0 0 0 3px #fff, 0 0 0 5px var(--card, var(--green)), 0 10px 0 2px #1f7a4d1f;
}
.landing .nice-cards article::before {
  /* stitched edge inside each patch */
  content: ""; position: absolute; inset: 8px; border-radius: 16px; border: 2px dashed var(--card, var(--green)); opacity: .35; pointer-events: none;
}
.landing .nice-cards article:nth-child(1) { --card: var(--red); rotate: -1.2deg; }
.landing .nice-cards article:nth-child(2) { --card: var(--green); rotate: 1deg; }
.landing .nice-cards article:nth-child(3) { --card: var(--gold); rotate: -.6deg; }
.landing .nice-cards article:nth-child(4) { --card: var(--mint); rotate: 1.4deg; }
.landing .nice-cards article:hover { box-shadow: 0 0 0 3px #fff, 0 0 0 5px var(--card), 0 16px 0 2px #1f7a4d1f; border-color: transparent; }
.landing .nice-icon { background: var(--card, var(--green)); color: #fff; border-radius: 50%; }
.landing .nice-cards h3 { color: var(--ink); font-weight: 700; }
.landing .nice-cards p { color: var(--muted); }
.landing .nice-small { color: var(--muted); font-weight: 600; }
.landing .nice-section .eyebrow > svg { color: var(--gold); }

/* ---- Membership: a big green felt panel ---- */
.landing .membership-section {
  background:
    radial-gradient(circle at 14px 14px, #ffffff1c 3px, transparent 4px) 0 0 / 40px 40px,
    var(--green);
  border: 0; color: #fff;
}
.landing .membership-section::before { display: none; }
.landing .membership-copy > .eyebrow { color: #ffd47a; }
.landing .membership-copy h2 { color: #fff; }
.landing .membership-section .membership-copy h2 em { color: #ffd47a; }
.landing .membership-copy > p, .landing .membership-note > span { color: #e3f4ea; font-size: 15px; }
.landing .membership-note > svg { color: #ffd47a; }
.landing .membership-card {
  background: #fff; color: var(--ink); border: 0; border-radius: 26px; rotate: -1.5deg; transform: none;
  box-shadow: 0 0 0 5px #fff, 0 0 0 7px var(--red), 0 14px 0 4px #0e3d2744;
}
.landing .membership-card::before {
  content: ""; position: absolute; inset: 10px; border: 2px dashed #e0393e55; border-radius: 18px; pointer-events: none;
}
.landing .card-ribbon { color: var(--red); font-weight: 800; }
.landing .membership-card h3 { color: var(--ink); font-family: var(--serif); font-weight: 700; }
.landing .membership-card > p, .landing .membership-card > small { color: var(--muted); }
.landing .membership-card li { color: var(--ink); font-size: 13px; font-weight: 600; }
.landing .membership-card li > svg { color: var(--green); }
.landing .membership-card ul { border-color: #1f7a4d22; }
.landing .membership-star { color: #ffd47a; }

/* ---- FAQs ---- */
.landing .faq-section .eyebrow { color: var(--green); }
.landing .faq-section h2 { color: var(--ink); }
.landing .faq-note { color: var(--red); }
.landing .faqs, .landing .faqs details { border-color: #1f7a4d2e; }
.landing .faqs summary { color: var(--ink); font-size: 15px; font-weight: 700; }
.landing .faqs summary:hover { color: var(--red); }
.landing .faqs summary svg { color: var(--red); }
.landing .faqs details > p { color: var(--muted); font-size: 14px; }

/* ---- Closing and footer ---- */
.landing .closing { background: radial-gradient(ellipse at 50% 100%, #ffe0a855, transparent 75%); border-image: none; border-top: 0; }
.landing .closing > p { color: var(--green); }
.landing .closing > h2 { color: var(--ink); }
.landing .closing > svg:first-child { color: var(--gold); }
.landing .closing-tree { color: #1f7a4d33; }
body:not(.in-call) .site-footer { color: var(--muted); border-image: none; border-top: 0; }
body:not(.in-call) .site-footer::before {
  content: ""; position: absolute; left: 50%; top: 0; width: 100vw; translate: -50% 0; height: 2px;
  color: #1f7a4d40; background: var(--stitch);
}
body:not(.in-call) .site-footer > span, body:not(.in-call) .site-footer a, body:not(.in-call) .site-footer > small { color: var(--muted); }

/* ---- Grown-up pages: a white felt sheet instead of parchment ---- */
body:not(.in-call) .paper {
  background: #fff; color: var(--ink); border: 0; border-radius: 28px;
  box-shadow: 0 0 0 6px #fff, 0 0 0 8px var(--green), 0 18px 0 6px #1f7a4d1a;
  position: relative;
}
body:not(.in-call) .paper::before {
  content: ""; position: absolute; inset: 12px; border: 2px dashed #1f7a4d33; border-radius: 20px; pointer-events: none;
}
body:not(.in-call) .paper h1, body:not(.in-call) .paper .h1, body:not(.in-call) .paper h1.h3 { font-family: var(--serif); font-weight: 700; color: var(--ink); }
body:not(.in-call) .paper h2, body:not(.in-call) .paper h3, body:not(.in-call) .paper .h4, body:not(.in-call) .paper .h5 { font-family: var(--serif); font-weight: 600; color: var(--ink); }
body:not(.in-call) .paper .btn-success { background: var(--green); border-color: var(--green); border-radius: 999px; box-shadow: 0 4px 0 var(--green-deep); font-family: var(--serif); font-weight: 600; font-size: 1.15rem; }
body:not(.in-call) .paper .btn-success:hover { background: #23885a; }
body:not(.in-call) .paper .call-card { border: 3px dashed #1f7a4d44; border-radius: 22px; }

/* ---- Magic layer touches: confetti colours for sparkles, peppermint menu ---- */
body:not(.in-call) .magic-spark { color: var(--c, var(--red)); }
@media (max-width: 650px) {
  body:not(.in-call) .nav, body:not(.in-call) .nav.open {
    background:
      radial-gradient(circle at 14px 14px, #ffffff1a 3px, transparent 4px) 0 0 / 40px 40px,
      linear-gradient(180deg, #23885a 0%, var(--green) 55%, var(--green-deep) 100%);
    color: #fff;
  }
  body:not(.in-call) .nav > a { font-family: var(--serif); font-weight: 700; color: #fff; }
  body:not(.in-call) .nav > a:hover, body:not(.in-call) .nav > a:focus-visible { color: #ffd47a; }
  body:not(.in-call) .nav > a::after { background: #ffd47a; }
  body:not(.in-call) .menu-close { border: 2px solid #fff; color: #fff; background: #ffffff1a; }
  body:not(.in-call) .nav .menu-account { background: #fff; color: var(--red); border: 0; box-shadow: 0 4px 0 #0e3d27; font-family: var(--serif); }
  body:not(.in-call) .menu-foot p { color: #e3f4ea; }
  body:not(.in-call) .menu-sky i { background: var(--gold); box-shadow: none; border-radius: 2px; }
  body:not(.in-call) .menu-logo .elf-wordmark { color: #fff; text-shadow: 0 3px 0 #0e3d2766; }
  .landing .wonder-inner > span { font-size: 14px; padding: 8px 14px; }
}
/* ==========================================================================
   Phones first. The shared layout was tuned for Santa's desktop page and shrinks
   small print to 4–8px on phones; here everything stays readable and tappable.
   ========================================================================== */
@media (max-width: 980px) {
  .landing .hero-description { font-size: 15px; line-height: 1.6; }
  .landing .hero-description > span { font-size: 13px; }

  /* Stacked hero: every block sits in the middle, not just its text (the description and hints have a
     max-width, so on their own they hug the left edge with centred text inside). */
  .landing .hero-copy { display: flex; flex-direction: column; align-items: center; text-align: center; }
  .landing .hero-copy > * { margin-inline: auto; }
  .landing .hero-description { max-width: 34rem; }
  .landing .preview-hint { max-width: 30rem; }

  /* The main button stays in the hero (the shared layout hides it on phones). */
  .landing .hero-actions { display: flex; justify-content: center; margin-top: 22px; }
  .landing .hero-actions .button.red { padding: 16px 30px; font-size: 18px; }
  .landing .hand-note { display: none; }
  .landing .preview-hint { font-size: 13px; line-height: 1.5; margin-top: 14px; }

  /* Small print you can actually read. */
  .landing .eyebrow, .landing .hero-copy > .eyebrow, .landing .section-intro > .eyebrow,
  .landing .membership-copy > .eyebrow, .landing .faq-section .eyebrow { font-size: 11px; letter-spacing: 1.6px; }
  .landing .card-ribbon { font-size: 11px; }
  .landing .membership-card > p { font-size: 13px; }
  .landing .membership-card > small { font-size: 12px; }
  .landing .membership-card li { font-size: 14px; }
  body:not(.in-call) .site-footer > span { font-size: 13px; }
  body:not(.in-call) .site-footer a { font-size: 13px; }
  body:not(.in-call) .site-footer > small { font-size: 12px; }
}

@media (max-width: 650px) {
  /* Header: comfortable tap targets. */
  body:not(.in-call) .site-header .wordmark { min-height: 44px; display: flex; align-items: center; }
  body:not(.in-call) .site-header .parent-button { min-height: 44px; padding: 0 16px; font-size: 14px; }
  body:not(.in-call) .menu-button { width: 44px; height: 44px; }
  body:not(.in-call) .menu-button svg { width: 24px; height: 24px; }
  body:not(.in-call) .announcement { font-size: 13px; height: 32px; }

  /* The felt phone: its labels readable, its call button on one line. */
  .landing .phone-title { font-size: 8px; letter-spacing: 1.4px; }
  .landing .screen-label { font-size: 8px; padding: 6px 11px; }
  .landing .screen-caption > span { font-size: 11px; }
  .landing .phone-bottom { font-size: 8px; }
  .landing .phone-call-button strong { font-size: 21px; white-space: nowrap; }
  .landing .phone-call-button small { font-size: 11px; }
  /* The round stamp keeps its big words; its tiny curved lines only clutter at this size. */
  .landing .north-pole-stamp > span { display: none; }
  .landing .north-pole-stamp strong { font-size: 17px; line-height: 1.05; }
  .landing .north-pole-stamp { right: 6px; width: 84px; height: 84px; }
  /* The handwritten note sits off the edge of a phone screen. */
  .landing .little-note { display: none; }

  /* Sections breathe a little less on a small screen. */
  .landing .nice-cards article { rotate: 0deg; }
  .landing .nice-cards p, .landing .steps p { font-size: 15px; }
  .landing .faqs summary { font-size: 16px; padding: 20px 0; }
  .landing .faqs details > p { font-size: 15px; }
  .landing .membership-card { rotate: 0deg; padding: 30px 22px 24px; }

  /* Footer: stacked and centred. */
  body:not(.in-call) .site-footer { flex-direction: column; text-align: center; gap: 12px; }
  body:not(.in-call) .site-footer > div { margin: 0; }
}

@media (max-width: 360px) {
  .landing .hero-actions .button.red { width: 100%; }
  .landing .phone-call-button strong { font-size: 19px; }
}

/* Tablets: two felt patches per row, and the phone a touch smaller beside the words. */
@media (min-width: 651px) and (max-width: 1150px) {
  .landing .nice-cards { grid-template-columns: repeat(2, 1fr); gap: 26px; }
  .landing .eyebrow { font-size: 11px; }
}

/* ==========================================================================
   The goodbye screen after a call, in the elf look. (It carries the call's
   in-call marker, so it is styled here by its own call-ended marker.)
   ========================================================================== */
body.call-ended { background: var(--paper); }
body.call-ended .ended-stage {
  position: relative; overflow: hidden; color: var(--ink); font-family: var(--sans);
  padding: 64px 16px 40px; gap: 22px;
  background:
    radial-gradient(circle at 18px 18px, #e0393e14 3px, transparent 4px) 0 0 / 46px 46px,
    radial-gradient(circle at 41px 41px, #1f7a4d12 3px, transparent 4px) 0 0 / 46px 46px,
    radial-gradient(ellipse 70% 50% at 50% 35%, #ffe6b8 0%, transparent 70%),
    linear-gradient(180deg, #fff3dc 0%, var(--paper) 80%);
}
/* Bunting along the top, as on the rest of the site. */
body.call-ended .ended-stage::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 30px; pointer-events: none;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='96' height='22'%3E%3Cpath d='M0 1.5Q48 6 96 1.5' stroke='%23145538' stroke-width='1.5' fill='none'/%3E%3Cpath d='M4 2.5h22L15 19z' fill='%23e0393e'/%3E%3Cpath d='M37 4h22L48 21z' fill='%23f0a92e'/%3E%3Cpath d='M70 2.5h22L81 19z' fill='%231f7a4d'/%3E%3C/svg%3E") 0 8px / 96px 22px repeat-x,
    linear-gradient(var(--green), var(--green)) 0 0 / 100% 9px no-repeat;
  filter: drop-shadow(0 2px 1px #0000002a);
}
/* Confetti drifting down instead of snow. */
body.call-ended .snowfall { z-index: 1; }
body.call-ended .snowfall i { border-radius: 2px; box-shadow: none; opacity: .75 !important; width: 7px !important; height: 11px !important; background: var(--red); }
body.call-ended .snowfall i:nth-child(3n) { background: var(--green); }
body.call-ended .snowfall i:nth-child(3n+1) { background: var(--gold); border-radius: 50%; width: 8px !important; height: 8px !important; }
body.call-ended .snowfall i:nth-child(5n) { background: var(--mint); }

/* The message on a white felt card, with the elf peeking over the top in a stitched frame. */
body.call-ended .ended-card {
  position: relative; z-index: 2; width: min(100%, 28rem);
  background: #fff; border-radius: 28px; padding: 0 26px 28px;
  margin-top: calc(min(46vw, 190px) / 2 + 10px);
  box-shadow: 0 0 0 6px #fff, 0 0 0 9px var(--red), 0 16px 0 6px #a8222c22;
}
body.call-ended .ended-card::before {
  content: ""; position: absolute; inset: 12px; border: 2px dashed #e0393e55; border-radius: 20px; pointer-events: none;
}
body.call-ended .ended-picture {
  width: min(46vw, 190px); margin: calc(min(46vw, 190px) / -2) auto 18px; position: relative;
  background: #ffe9c0; border: 6px solid #fff;
  box-shadow: 0 0 0 4px var(--green), 0 0 0 9px #fff, 0 0 0 10px #1f7a4d55, 0 10px 0 6px #1f7a4d1f;
  animation: elf-bye 3.2s ease-in-out infinite;
}
@keyframes elf-bye {
  0%, 100% { transform: translateY(0) rotate(0); }
  20% { transform: translateY(-6px) rotate(-4deg); }
  40% { transform: translateY(0) rotate(3deg); }
  60% { transform: translateY(-4px) rotate(-2deg); }
}
body.call-ended .ended-card h1 {
  font-family: var(--serif); font-weight: 700; color: var(--ink);
  font-size: clamp(1.6rem, 6.4vw, 2.3rem); line-height: 1.15; letter-spacing: -.5px; margin-bottom: .6rem;
}
body.call-ended .ended-card p { color: var(--muted); font-size: 1.1rem; font-weight: 600; opacity: 1; margin: 0; }
/* Back: a chunky peppermint button. */
body.call-ended .ended-back {
  position: relative; z-index: 2; min-width: 11rem; min-height: 52px; margin-top: 8px;
  background: var(--red); color: #fff; border: 0; border-radius: 999px;
  font-family: var(--serif); font-weight: 600; font-size: 1.25rem;
  box-shadow: 0 5px 0 var(--red-deep), 0 10px 22px #e0393e33;
}
body.call-ended .ended-back:hover, body.call-ended .ended-back:focus-visible {
  background: repeating-linear-gradient(-45deg, var(--red) 0 12px, #ea5257 12px 24px); color: #fff;
  box-shadow: 0 7px 0 var(--red-deep), 0 14px 28px #e0393e44; translate: 0 -2px;
}
body.call-ended .ended-back:active { translate: 0 3px; box-shadow: 0 2px 0 var(--red-deep); }

/* ==========================================================================
   Hero: the elf on a candy-cane swing, hanging from the top of the page.
   The ropes run up behind the header and disappear under the green strip and
   its bunting (the hero sits one layer below them), so the swing looks hung
   from the bunting. It sways gently from the top, like a real swing.
   ========================================================================== */
.landing .hero { z-index: 2; }
.landing .swing-scene {
  --hang: 175px;                     /* from the top of the hero up to the top of the page (and a little more) */
  position: relative; align-self: stretch; min-height: 660px;
}
.landing .swing {
  position: absolute; left: 50%; top: calc(-1 * var(--hang)); height: calc(100% + var(--hang));
  aspect-ratio: 582 / 1489; translate: calc(-50% + var(--swing-shift, 0px)) 0;
  transform-origin: 50% 0; scale: var(--swing-scale, 1); animation: elf-swing 5.5s ease-in-out infinite;
  filter: drop-shadow(0 22px 18px #1f3d2c30);
}
.landing .swing img { display: block; width: 100%; height: 100%; object-fit: contain; }
@keyframes elf-swing { 0%, 100% { rotate: -2.6deg; } 50% { rotate: 2.6deg; } }
/* The swing arrives with a soft drop instead of the phone's rise. */
html.magic-on .landing .swing-scene { animation: swing-drop 1.3s cubic-bezier(.25,1.4,.4,1) .2s both; }
@keyframes swing-drop { from { opacity: 0; translate: 0 -40px; } to { opacity: 1; translate: 0 0; } }
.landing .swing-scene .north-pole-stamp { right: 2%; top: 46%; z-index: 2; }
.landing .swing-scene .star-one { left: 12%; top: 22%; }
.landing .swing-scene .star-two { right: 14%; bottom: 18%; }
.landing .swing-scene .star-three { left: 18%; bottom: 30%; }

/* Stacked hero (tablets and phones): the words come first, so the swing hangs below them;
   its ropes fade in from above instead of reaching the top of the page. */
@media (max-width: 980px) {
  .landing .swing-scene { width: 100%; min-height: 0; height: clamp(480px, 132vw, 660px); margin-top: 6px; }
  .landing .swing {
    top: 0; height: 100%;
    -webkit-mask-image: linear-gradient(transparent 0, #000 22%); mask-image: linear-gradient(transparent 0, #000 22%);
  }
  .landing .swing-scene .north-pole-stamp { right: 4%; top: 30%; }
}
@media (prefers-reduced-motion: reduce) {
  .landing .swing { animation: none; }
}

/* ==========================================================================
   The whole site on a green photo-studio backdrop: a soft spotlight near the
   top (behind the elf on the home page), darker towards the edges, with a faint
   polka dot. White felt cards and panels stay bright on it; headings and words
   turn cream and gold. The call screen keeps its own look.
   ========================================================================== */
:root {
  --studio: #1f6b45; --studio-deep: #123f29; --studio-light: #2f8a5a;
  --on-green: #fff8ec; --on-green-soft: #cfe5d7; --on-green-gold: #ffd47a; --on-green-line: #ffffff2e;
}
body:not(.in-call) { background: var(--studio-deep); color: var(--on-green); }
body:not(.in-call) .winter-background {
  height: 100%; min-height: 100vh; position: fixed; inset: 0; transform: none !important; opacity: 1 !important;
  background:
    radial-gradient(circle at 18px 18px, #ffffff0d 3px, transparent 4px) 0 0 / 46px 46px,
    radial-gradient(ellipse 55% 45% at 70% 28%, var(--studio-light) 0%, transparent 70%),
    radial-gradient(ellipse 130% 95% at 50% 30%, var(--studio) 0%, var(--studio-deep) 100%);
}
body:not(.in-call) .announcement { background: #0e3d27; }

/* Header and footer, every page */
body:not(.in-call) .site-header .elf-wordmark, body:not(.in-call) .site-footer .elf-wordmark { color: var(--on-green); text-shadow: 0 3px 0 var(--red-deep); }
body:not(.in-call) .site-header .nav { color: var(--on-green); }
body:not(.in-call) .site-header .nav a:hover { color: var(--on-green-gold); }
body:not(.in-call) .site-header .nav a::after { background: var(--on-green-gold); }
body:not(.in-call) .menu-button { color: var(--on-green); }
body:not(.in-call) .site-header .parent-button { background: var(--on-green); color: var(--green-deep); border-color: var(--on-green); box-shadow: 0 3px 0 #0a2e1d; }
body:not(.in-call) .site-header .parent-button:hover { background: #fff; color: var(--green-deep); box-shadow: 0 5px 0 #0a2e1d; }
body:not(.in-call) .site-header::after, body:not(.in-call) .site-footer::before { color: var(--on-green-line); }
body:not(.in-call) .site-footer, body:not(.in-call) .site-footer > span, body:not(.in-call) .site-footer a, body:not(.in-call) .site-footer > small { color: var(--on-green-soft); }

/* Home page words */
.landing .eyebrow, .landing .hero-copy > .eyebrow, .landing .section-intro > .eyebrow, .landing .faq-section .eyebrow { color: var(--on-green-gold); }
.landing .eyebrow svg { color: var(--on-green-gold); }
.landing h1, .landing h2, .landing .faq-section h2, .landing .closing > h2 { color: var(--on-green); }
.landing .hero h1 { text-shadow: 0 4px 0 #0a2e1d66; }
.landing .calling-word { color: var(--on-green-gold); text-shadow: 0 4px 0 #0a2e1d66; }
.landing .calling-word > svg { stroke: var(--red); }
.landing .headline-star, .landing .scene-star { color: var(--on-green-gold); }
.landing .section-intro h2 em, .landing h2 em { color: var(--on-green-gold); }
.landing .hero-description { color: #e6f3eb; }
.landing .hero-description > span, .landing .preview-hint, .landing .section-intro > p:last-child,
.landing .nice-small, .landing .faqs details > p, .landing .parent-reassurance p { color: var(--on-green-soft); }
.landing .hand-note, .landing .closing > p, .landing .faq-note { color: #ffe7b0; }
.landing .hand-note svg { stroke: #ffe7b0; }
.landing .reassurance-icon { background: #ffffff14; color: var(--on-green-gold); border-color: #ffd47a66; }
.landing .parent-reassurance strong { color: var(--on-green); }
.landing .button.red, body:not(.in-call) .button.red { box-shadow: 0 5px 0 var(--red-deep), 0 12px 26px #0006; }
.landing .swing { filter: drop-shadow(0 26px 22px #06231788); }
.landing .north-pole-stamp { box-shadow: 0 6px 0 #b77a12, 0 10px 22px #0005; }

/* Steps: the felt badges stay white; the words go light. */
.landing .steps::before { border-top-color: #ffd47a66; }
.landing .steps h3 { color: var(--on-green); }
.landing .steps p { color: var(--on-green-soft); }
.landing .step-icon { box-shadow: 0 5px 0 #0a2e1d55; }
/* Felt cards and the quote bubble stay white, lifted off the green. */
.landing .nice-quote { border-color: #fff; box-shadow: 0 8px 0 #0a2e1d55; }
.landing .nice-quote::after { border-color: #fff; }
.landing .nice-cards article, .landing .nice-cards article:first-child { box-shadow: 0 0 0 3px #fff, 0 0 0 5px var(--card, var(--green)), 0 12px 0 2px #0a2e1d55; }
.landing .nice-cards article:nth-child(2) { --card: var(--mint); }
/* Membership: a deeper green band. */
.landing .membership-section { background: radial-gradient(circle at 14px 14px, #ffffff12 3px, transparent 4px) 0 0 / 40px 40px, #0e3d27; }
/* FAQs */
.landing .faqs, .landing .faqs details { border-color: var(--on-green-line); }
.landing .faqs summary { color: var(--on-green); }
.landing .faqs summary:hover { color: var(--on-green-gold); }
.landing .faqs summary svg { color: var(--on-green-gold); }
.landing .closing { background: radial-gradient(ellipse at 50% 100%, #2f8a5a88, transparent 75%); }
.landing .closing > svg:first-child { color: var(--on-green-gold); }
.landing .closing-tree { color: #ffffff18; }

/* Grown-up pages: the white felt sheet sits on the green. */
body:not(.in-call) .paper { box-shadow: 0 0 0 6px #fff, 0 0 0 8px var(--mint), 0 18px 0 6px #0a2e1d55; }

/* The goodbye screen after a call: the same green studio. */
body.call-ended { background: var(--studio-deep); }
body.call-ended .ended-stage {
  background:
    radial-gradient(circle at 18px 18px, #ffffff0d 3px, transparent 4px) 0 0 / 46px 46px,
    radial-gradient(ellipse 60% 45% at 50% 35%, var(--studio-light) 0%, transparent 70%),
    radial-gradient(ellipse 130% 95% at 50% 35%, var(--studio) 0%, var(--studio-deep) 100%);
}
body.call-ended .ended-stage::before {
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='96' height='22'%3E%3Cpath d='M0 1.5Q48 6 96 1.5' stroke='%23fff8ec' stroke-width='1.5' fill='none'/%3E%3Cpath d='M4 2.5h22L15 19z' fill='%23e0393e'/%3E%3Cpath d='M37 4h22L48 21z' fill='%23f0a92e'/%3E%3Cpath d='M70 2.5h22L81 19z' fill='%23ffffff'/%3E%3C/svg%3E") 0 8px / 96px 22px repeat-x,
    linear-gradient(#0e3d27, #0e3d27) 0 0 / 100% 9px no-repeat;
}
body.call-ended .ended-picture { box-shadow: 0 0 0 4px var(--red), 0 0 0 9px #fff, 0 0 0 10px #ffffff55, 0 10px 0 6px #0a2e1d55; }
body.call-ended .ended-card { box-shadow: 0 0 0 6px #fff, 0 0 0 9px var(--red), 0 16px 0 6px #0a2e1d55; }

/* ==========================================================================
   Phones: less reading, more elf. Each section keeps its headline and the one
   thing that matters; the longer explanations stay on bigger screens (and in
   the FAQs). Cards become a row you swipe through instead of a tall stack.
   ========================================================================== */
@media (max-width: 650px) {
  /* Hero: headline, one line, the button, then straight to the swinging elf. */
  .landing .hero-description > span,
  .landing .preview-hint,
  .landing .swing-scene .north-pole-stamp { display: none; }
  .landing .hero-description br { display: none; }
  .landing .hero-actions { margin-top: 18px; }
  .landing .swing-scene { margin-top: -10px; }

  /* The three promises: one row you can swipe, not three stacked pills. */
  .landing .wonder-inner {
    flex-direction: row; flex-wrap: nowrap; justify-content: flex-start; gap: 10px;
    overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
    width: 100%; padding: 18px 16px; min-height: 0;
  }
  .landing .wonder-inner::-webkit-scrollbar { display: none; }
  .landing .wonder-inner > span { flex: 0 0 auto; scroll-snap-align: center; white-space: nowrap; }
  .landing .wonder-inner > svg { display: none; }

  /* Section intros: headline only. */
  .landing .section-intro > p:last-child { display: none; }

  /* Steps: icon and title say it; the detail is for bigger screens. */
  .landing .how-section { padding: 48px 0 40px; }
  .landing .steps { gap: 18px; margin-top: 26px; }
  .landing .steps p { display: none; }
  .landing .steps h3 { margin: 0; font-size: 20px; }
  .landing .steps article { display: flex; align-items: center; gap: 16px; text-align: left; }
  .landing .steps article .step-icon { margin: 0; flex-shrink: 0; }
  .landing .steps::before { display: none; }

  /* "The elf remembers": swipe through the felt cards, one at a time. */
  .landing .nice-section { padding-top: 40px; padding-bottom: 44px; }
  .landing .nice-quote { margin-bottom: 26px; }
  .landing .nice-cards {
    display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
    margin: 0 -20px; padding: 10px 20px 22px;           /* full-bleed row, first card lined up with the text */
  }
  .landing .nice-cards::-webkit-scrollbar { display: none; }
  .landing .nice-cards article { flex: 0 0 78%; scroll-snap-align: center; }
  .landing .nice-cards p { font-size: 14px; }
  .landing .nice-small { margin-top: 6px; font-size: 12px; }

  /* Membership: the headline and the card; three highlights, not five. */
  .landing .membership-copy > p, .landing .membership-note { display: none; }
  .landing .membership-inner { padding-top: 44px; padding-bottom: 44px; gap: 26px; }
  .landing .membership-card li:nth-child(2), .landing .membership-card li:nth-child(5) { display: none; }
  .landing .membership-card > small { display: none; }

  /* FAQs: the questions are already folded away; drop the aside. */
  .landing .faq-note { display: none; }
  .landing .faq-section { padding-top: 44px; padding-bottom: 36px; gap: 20px; }
}

/* ==========================================================================
   The Song Workshop, in the elf look: felt cards, peppermint and evergreen,
   rounded lettering. (The shared workshop styles are in site.css.)
   ========================================================================== */
body:not(.in-call) .songs-kicker { color: var(--red); font-family: var(--sans); }
body:not(.in-call) .songs-head h1 { font-family: var(--serif); font-weight: 700; color: var(--ink); }
body:not(.in-call) .songs-lead, body:not(.in-call) .songs-hint, body:not(.in-call) .songs-fine { color: var(--muted); }
body:not(.in-call) .songs-allowance { background: #effaf4; border: 2px dashed #1f7a4d55; color: var(--ink); }
body:not(.in-call) .songs-allowance strong { color: var(--red); font-family: var(--serif); }
body:not(.in-call) .songs-composer, body:not(.in-call) .songs-card, body:not(.in-call) .songs-library {
  background: #fff; border: 2px dashed #1f7a4d33; border-radius: 22px;
}
body:not(.in-call) .songs-who legend, body:not(.in-call) .songs-label { font-family: var(--serif); font-weight: 600; color: var(--ink); }
body:not(.in-call) .songs-chip { border: 2px solid #1f7a4d55; background: #fff; color: var(--ink); font-family: var(--serif); font-weight: 600; box-shadow: 0 3px 0 #1f7a4d22; }
body:not(.in-call) .songs-chip:hover { border-color: var(--green); }
body:not(.in-call) .songs-chip.on { background: var(--green); border-color: var(--green); color: #fff; box-shadow: 0 3px 0 var(--green-deep); }
body:not(.in-call) .songs-composer textarea, body:not(.in-call) .songs-lyrics, body:not(.in-call) .songs-title-input,
body:not(.in-call) .songs-revise input, body:not(.in-call) .songs-options select { border: 2px solid #1f7a4d33; background: #fffdf8; border-radius: 14px; }
body:not(.in-call) .songs-options label span { color: var(--green); }
body:not(.in-call) .songs .btn-danger, body:not(.in-call) .songs-confirm .btn-danger {
  background: var(--red); border: 0; border-radius: 999px; font-family: var(--serif); font-weight: 600; box-shadow: 0 4px 0 var(--red-deep);
}
body:not(.in-call) .songs-title, body:not(.in-call) .songs-title-input, body:not(.in-call) .songs-confirm h3 { font-family: var(--serif); font-weight: 700; color: var(--ink); }
body:not(.in-call) .songs-meta span { background: #effaf4; color: var(--green-deep); font-weight: 700; }
body:not(.in-call) .songs-status { background: #effaf4; color: var(--green-deep); }
body:not(.in-call) .songs-status.st-ready { background: var(--green); color: #fff; }
body:not(.in-call) .songs-player { background: var(--green); }
body:not(.in-call) .songs-msg { background: #effaf4; }
body:not(.in-call) .songs-msg.me { background: #fff1e6; }
body:not(.in-call) .songs-notes i { color: var(--red); }
body:not(.in-call) .songs-item { background: #fffdf8; border: 2px solid #1f7a4d22; }
body:not(.in-call) .songs-item.on { border-color: var(--red); }
body:not(.in-call) .songs-confirm { background: #fff; border-radius: 26px; box-shadow: 0 0 0 6px #fff, 0 0 0 9px var(--green), 0 30px 80px #0008; }

/* Home page section on the green studio */
.landing .songs-promo-copy .eyebrow { color: var(--on-green-gold); }
.landing .songs-promo-copy > p:not(.eyebrow) { color: var(--on-green-soft); }
.landing .songs-promo-ideas a { font-family: var(--sans); font-weight: 700; font-size: 14px; color: var(--ink); background: #fff; border: 0; box-shadow: 0 4px 0 #0a2e1d55; }
.landing .songs-promo-ideas a:hover { background: #fff8ec; translate: 0 -2px; }
.landing .songs-promo-disc {
  background:
    radial-gradient(circle, var(--red) 0 17%, #fff 17.5% 19.5%, transparent 20%),
    repeating-radial-gradient(circle, #0e3d27 0 2px, #145538 2px 4px);
  box-shadow: 0 0 0 6px #fff, 0 0 0 9px var(--red), 0 22px 50px #0007;
}
.landing .songs-promo-note { color: var(--on-green-gold); text-shadow: none; }
@media (max-width: 650px) {
  .landing .songs-promo-ideas { flex-wrap: nowrap; overflow-x: auto; justify-content: flex-start; scrollbar-width: none; margin-inline: -20px; padding: 4px 20px 10px; }
  .landing .songs-promo-ideas a { flex: 0 0 auto; white-space: nowrap; }
}
