/* messagefromsanta.ie: cosy fireside storybook. Mobile first. */
@font-face { font-family: "Fraunces"; font-style: normal; font-weight: 600; font-display: swap;
  src: url("fonts/fraunces-600-latin.b8dca52ca5f9.woff2") format("woff2"); }
@font-face { font-family: "Nunito Sans"; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url("fonts/nunito-sans-var-latin.e010923d59d4.woff2") format("woff2"); }

:root {
  --night: #26120f; --night-2: #3b1913; --ember: #e2833a;
  --red: #8f1d1d; --red-dark: #721515; --berry: #b3261e;
  --cream: #fbf4e6; --cream-2: #f3e5cc; --paper: #fffaf1;
  --gold: #d6ab52; --gold-soft: #ecd3a0; --gold-ink: #7e5b12;
  --green: #1f4a37; --green-2: #2c6a4f;
  --ink: #2b1d17; --muted: #5d4c42; --line: #e4d3b6;
  --radius: 18px; --shadow: 0 10px 30px rgba(43, 29, 23, .12);
  --head: "Fraunces", Georgia, "Times New Roman", serif;
  --body: "Nunito Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color-scheme: light;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--cream); color: var(--ink); font: 400 1.0625rem/1.6 var(--body); }
img, video, svg { display: block; max-width: 100%; }
h1, h2, h3 { font-family: var(--head); font-weight: 600; line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 7.5vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 5.5vw, 2.3rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }
a { color: var(--red); text-underline-offset: 3px; }
a:hover { color: var(--red-dark); }
:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; border-radius: 6px; }
.night :focus-visible, .trust :focus-visible { outline-color: var(--gold); }
.wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }
.narrow { width: min(720px, 100% - 32px); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 16px; top: -60px; background: var(--paper); color: var(--ink); padding: 10px 16px; border-radius: 10px; z-index: 10; font-weight: 700; }
.skip:focus { top: 12px; }
.icon { width: 1.25em; height: 1.25em; flex: none; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .55em; min-height: 54px;
  padding: 14px 26px; border: 0; border-radius: 999px; background: var(--red); color: #fff8ec;
  font: 700 1.1rem/1.2 var(--body); text-decoration: none; cursor: pointer; text-align: center;
  box-shadow: 0 6px 0 var(--red-dark), 0 12px 24px rgba(114, 21, 21, .25); transition: transform .12s, box-shadow .12s, background .2s; }
.btn:hover { background: #9e2222; color: #fff8ec; }
.btn:active { transform: translateY(3px); box-shadow: 0 3px 0 var(--red-dark), 0 6px 14px rgba(114, 21, 21, .25); }
.btn-block { width: 100%; }
.btn-gold, .night a.btn-gold { background: var(--gold); color: #2a120c; box-shadow: 0 6px 0 #a7802f, 0 12px 24px rgba(0, 0, 0, .25); }
.btn-gold:hover, .night a.btn-gold:hover { background: #e2bb66; color: #2a120c; }
.btn-ghost { background: transparent; color: var(--red); box-shadow: inset 0 0 0 2px currentColor; }
.btn-ghost:hover { background: rgba(143, 29, 29, .06); color: var(--red-dark); }
.btn-ghost:active { transform: none; box-shadow: inset 0 0 0 2px currentColor; }
.btn[disabled] { opacity: .55; cursor: not-allowed; }
.link-btn { background: none; border: 0; padding: 8px 0; font: 700 1rem var(--body); color: var(--red); text-decoration: underline; cursor: pointer; }

/* ---------- header / hero ---------- */
.night { position: relative; color: #fbefdc; overflow: hidden; isolation: isolate;
  background:
    radial-gradient(120% 70% at 10% 105%, rgba(226, 131, 58, .38), transparent 60%),
    radial-gradient(80% 60% at 95% 0%, rgba(214, 171, 82, .14), transparent 60%),
    linear-gradient(180deg, #1d0e0b 0%, var(--night) 45%, var(--night-2) 100%); }
.night::before { content: ""; position: absolute; inset: 0; z-index: -1; opacity: .7; pointer-events: none;
  background-image:
    radial-gradient(1.2px 1.2px at 12% 18%, #fff6dc 50%, transparent 51%),
    radial-gradient(1px 1px at 28% 8%, #fff6dc 50%, transparent 51%),
    radial-gradient(1.4px 1.4px at 46% 22%, #ffe9b8 50%, transparent 51%),
    radial-gradient(1px 1px at 63% 12%, #fff6dc 50%, transparent 51%),
    radial-gradient(1.3px 1.3px at 78% 28%, #ffe9b8 50%, transparent 51%),
    radial-gradient(1px 1px at 90% 10%, #fff6dc 50%, transparent 51%),
    radial-gradient(1.2px 1.2px at 7% 42%, #fff6dc 50%, transparent 51%),
    radial-gradient(1px 1px at 55% 40%, #fff6dc 50%, transparent 51%); }
.night a { color: var(--gold-soft); }
.night a:hover { color: #fff3d8; }
.topbar { display: flex; align-items: center; justify-content: space-between; padding: 18px 0 6px; }
.brand { display: inline-flex; align-items: center; gap: 8px; color: #fbefdc !important; text-decoration: none;
  font: 600 1.05rem var(--head); letter-spacing: .01em; }
.brand .icon { color: var(--gold); width: 22px; height: 22px; }
.topbar .btn { min-height: 42px; padding: 8px 16px; font-size: .95rem; box-shadow: none; white-space: nowrap; }
.topbar .btn:active { transform: none; }
@media (max-width: 519px) { .topbar .btn { display: none; } }

.lights { display: flex; justify-content: space-between; padding: 0 4px; height: 26px; margin-top: -2px; pointer-events: none; }
.lights i { width: 9px; height: 13px; border-radius: 50% 50% 45% 45%; transform: translateY(var(--y, 0)); position: relative;
  background: var(--c, var(--gold)); box-shadow: 0 0 10px 2px var(--c, var(--gold)); opacity: .9; will-change: opacity;
  animation: twinkle var(--d, 2.6s) ease-in-out infinite alternate paused; animation-delay: var(--t, 0s); }
.lights i::before { content: ""; position: absolute; top: -4px; left: 2px; width: 5px; height: 4px; background: #4a3a2a; border-radius: 1px; }
@keyframes twinkle { from { opacity: .35; } to { opacity: 1; } }
.anim-on .lights i, .anim-on .snow i, .anim-on .play-disc::after { animation-play-state: running; }

.hero { padding: 14px 0 52px; display: grid; gap: 20px; align-items: center; }
.hero-title h1 { margin-bottom: 0; }
.hero-film { margin: 0; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: .85rem; letter-spacing: .08em;
  text-transform: uppercase; color: var(--gold-soft); margin-bottom: 10px; }
.eyebrow .icon { width: 16px; height: 16px; color: var(--gold); }
.hero h1 { color: #fff3dd; }
.hero h1 em { font-style: normal; color: var(--gold); }
.hero .lede { font-size: 1.15rem; color: #f1dfc6; max-width: 34em; }
.hero-cta { display: grid; gap: 12px; margin-top: 6px; }
.facts { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 14px 0 0; padding: 0; list-style: none; color: #f1dfc6; font-size: .95rem; }
.facts li { display: inline-flex; align-items: center; gap: 7px; }
.facts .icon { color: var(--gold); width: 18px; height: 18px; }

/* demo video */
.film { position: relative; border-radius: var(--radius); padding: 6px; background: linear-gradient(145deg, #e9c77d, #9b7330 60%, #e2bd6e);
  box-shadow: 0 18px 50px rgba(0, 0, 0, .45), 0 0 60px rgba(226, 131, 58, .25); }
.film-inner { position: relative; border-radius: 13px; overflow: hidden; background: #000; aspect-ratio: 16 / 9; }
.film-inner img, .film-inner video { width: 100%; height: 100%; object-fit: cover; }
/* Big, clear play button below Santa's face (the face stays visible in the upper half). */
.play { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 8px;
  padding: 0 0 12px; border: 0; cursor: pointer; color: #fff; font: 800 1.05rem var(--body); text-shadow: 0 1px 6px rgba(0, 0, 0, .8);
  background: linear-gradient(180deg, transparent 45%, rgba(20, 8, 6, .72)); }
.play-disc { width: clamp(72px, 22vw, 96px); height: clamp(72px, 22vw, 96px); border-radius: 50%; background: #9e2020; display: grid; place-items: center;
  border: 3px solid #fff3dd; box-shadow: 0 0 0 7px rgba(255, 243, 221, .28), 0 10px 28px rgba(0, 0, 0, .5); transition: transform .15s;
  position: relative; }
.play-disc::after { content: ""; position: absolute; inset: -10px; border-radius: 50%; border: 3px solid rgba(255, 243, 221, .55);
  will-change: transform, opacity; animation: beckon 2.4s ease-out infinite paused; }
.play:hover .play-disc, .play:focus-visible .play-disc { transform: scale(1.08); }
.play-disc .icon { width: 42%; height: 42%; margin-left: 7%; color: #fff8ec; }
.play > span:last-child { background: rgba(20, 8, 6, .55); padding: 3px 12px; border-radius: 999px; }
@keyframes beckon { 0% { transform: scale(.9); opacity: .9; } 70%, 100% { transform: scale(1.35); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .play-disc::after { display: none; } }
.faq-contact { text-align: center; margin: 26px 0 0; font-weight: 700; }
.film-caption { margin: 12px 4px 0; font-size: .92rem; color: #f1dfc6; }
.film-caption strong { color: #fff3dd; }

/* snow */
.snow { position: absolute; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.snow i { position: absolute; top: -12px; left: var(--x); width: var(--s, 6px); height: var(--s, 6px); border-radius: 50%;
  background: radial-gradient(circle, #fff8ec 40%, rgba(255, 248, 236, 0) 70%); opacity: var(--o, .45); will-change: transform;
  animation: fall var(--d, 14s) linear infinite paused; animation-delay: var(--t, 0s); }
@keyframes fall { to { transform: translate3d(var(--dx, 30px), 105vh, 0); } }
@media (prefers-reduced-motion: reduce) {
  .snow { display: none; }
  .lights i { animation: none; opacity: .9; }
  html { scroll-behavior: auto; }
  .writing .quill { animation: none !important; }
}

/* ---------- sections ---------- */
.section { padding: 64px 0; }
/* Below-the-fold sections are only laid out when they come near the screen (big win on slow phones). */
main > .section { content-visibility: auto; contain-intrinsic-size: auto 900px; }
.section-head { text-align: center; max-width: 40em; margin: 0 auto 32px; }
.section-head p { color: var(--muted); font-size: 1.08rem; }
.ornament { display: flex; align-items: center; justify-content: center; gap: 12px; color: var(--gold-ink); margin-bottom: 10px; }
.ornament::before, .ornament::after { content: ""; height: 1px; width: 48px; background: currentColor; opacity: .5; }
.ornament .icon { width: 22px; height: 22px; }

.steps { display: grid; gap: 18px; counter-reset: step; padding: 0; margin: 0; list-style: none; }
.step { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); position: relative;
  display: grid; grid-template-columns: 44px 1fr; gap: 2px 16px; align-items: start; }
.step-num { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--red); color: #fff3dd;
  font: 600 1.25rem var(--head); box-shadow: 0 0 0 4px var(--gold-soft); grid-row: span 2; margin-top: 2px; }
.step h3 { margin-bottom: .3em; }
.step p { color: var(--muted); margin: 0; }

.tags { display: grid; gap: 14px; margin-top: 8px; }
.tag { display: flex; align-items: center; gap: 14px; background: var(--cream-2); border-radius: 14px; padding: 16px 18px; border: 1px dashed #cdb48a; }
.tag .icon { width: 34px; height: 34px; color: var(--green); }
.tag b { display: block; font: 600 1.35rem/1.2 var(--head); color: var(--ink); }
.tag span { color: var(--muted); font-size: .95rem; }

.trust { background: linear-gradient(180deg, var(--green) 0%, #183c2d 100%); color: #f4ead8; position: relative; overflow: hidden; }
.trust h2, .trust h3 { color: #fff6e6; }
.trust .section-head p { color: #d8e3d6; }
.trust .ornament { color: var(--gold-soft); }
.trust-grid { display: grid; gap: 16px; }
.trust-item { background: rgba(255, 250, 241, .07); border: 1px solid rgba(236, 211, 160, .25); border-radius: var(--radius); padding: 20px;
  display: grid; grid-template-columns: 34px 1fr; gap: 2px 14px; align-items: start; }
.trust-item .icon { width: 34px; height: 34px; color: var(--gold); grid-row: span 2; }
.trust-item h3 { margin-bottom: .25em; }
.trust-item p { color: #e2eadf; margin: 0; }
.trust-item a { color: var(--gold-soft); font-weight: 700; word-break: break-word; }
.charity { margin: 22px auto 0; text-align: center; display: flex; align-items: center; justify-content: center; gap: 10px; color: #fff3dd; font-weight: 700; }
.charity .icon { color: #e98b8b; }

/* ---------- form ---------- */
.order-section { background: radial-gradient(90% 60% at 50% 0%, #f8ecd6, var(--cream) 70%); }
.card { background: var(--paper); border: 1px solid var(--line); border-radius: 22px; box-shadow: var(--shadow); padding: 26px 20px; position: relative; }
.card.holly::after { content: ""; position: absolute; top: -18px; right: 14px; width: 64px; height: 44px; background: url("holly.c0ddb7bc161c.svg") no-repeat center / contain; }
.progress { display: flex; align-items: center; gap: 10px; margin: 0 0 18px; font-weight: 700; color: var(--muted); font-size: .95rem; }
.progress ol { display: flex; gap: 6px; padding: 0; margin: 0; list-style: none; flex: 1; }
.progress li { flex: 1; height: 6px; border-radius: 6px; background: var(--line); }
.progress li.done { background: var(--red); }
fieldset { border: 0; padding: 0; margin: 0 0 8px; min-width: 0; }
legend { font: 600 1.45rem/1.2 var(--head); padding: 0; margin-bottom: 4px; }
.legend-sub { color: var(--muted); margin: 0 0 6px; }
.field { margin-top: 18px; }
.field label, .label { display: block; font-weight: 700; margin-bottom: 6px; }
.field .opt { font-weight: 400; color: var(--muted); }
.help { color: var(--muted); font-size: .93rem; margin: 6px 0 0; }
input[type=text], input[type=email], input[type=number], textarea {
  width: 100%; min-height: 52px; padding: 13px 14px; font: 400 1.05rem/1.4 var(--body); color: var(--ink);
  background: #fff; border: 2px solid #9a8468; border-radius: 12px; transition: border-color .15s, box-shadow .15s; }
textarea { min-height: 84px; resize: vertical; }
input::placeholder, textarea::placeholder { color: #73645a; opacity: 1; }
input:focus, textarea:focus { outline: none; border-color: var(--red); box-shadow: 0 0 0 4px rgba(143, 29, 29, .15); }
input[aria-invalid=true], .has-error input, .has-error textarea { border-color: var(--berry); }
input[type=number] { max-width: 9em; }
.errorlist { list-style: none; padding: 0; margin: 6px 0 0; color: var(--berry); font-weight: 700; font-size: .95rem; }
.error-summary { border: 2px solid var(--berry); background: #fff1ee; border-radius: 14px; padding: 14px 16px; margin-bottom: 16px; }
.error-summary h3 { color: var(--berry); font-family: var(--body); font-size: 1.05rem; margin: 0 0 4px; }
.error-summary ul { margin: 0; padding-left: 1.2em; }
.example { display: inline-flex; gap: 6px; align-items: center; background: var(--cream-2); border-radius: 999px; padding: 4px 12px; font-size: .9rem; margin: 8px 6px 0 0; }
.example b { color: var(--red); }
.consent { display: flex; gap: 12px; align-items: flex-start; margin-top: 18px; padding: 14px; border-radius: 14px; background: var(--cream-2); }
.consent input { width: 26px; height: 26px; margin: 2px 0 0; flex: none; accent-color: var(--red); }
.consent label { font-weight: 400; margin: 0; font-size: .98rem; }
.privacy-note { display: flex; gap: 12px; background: #eef3ec; border-radius: 14px; padding: 14px; margin-top: 18px; font-size: .95rem; color: #2b3d33; }
.privacy-note .icon { width: 26px; height: 26px; color: var(--green); }
.step-nav { display: flex; gap: 12px; align-items: center; justify-content: space-between; margin-top: 24px; flex-wrap: wrap; }
.step-nav .btn { flex: 1 1 auto; }
.reassure { text-align: center; color: var(--muted); font-size: .93rem; margin: 14px 0 0; }
.js .is-hidden { display: none; }
.js-only { display: none !important; }
.js .js-only { display: flex !important; }
.js .link-btn.js-only { display: inline-block !important; }
.notice { display: flex; gap: 12px; background: #fff3d6; border: 1px solid #ebcf8f; border-radius: 14px; padding: 14px 16px; margin-bottom: 18px; }
.notice .icon { color: var(--gold-ink); width: 24px; height: 24px; }
.closed { text-align: center; }
.closed .icon { width: 44px; height: 44px; color: var(--gold-ink); margin: 0 auto 10px; }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 12px; }
.faq details { background: var(--paper); border: 1px solid var(--line); border-radius: 14px; padding: 0 18px; }
.faq summary { cursor: pointer; list-style: none; padding: 18px 34px 18px 0; font-weight: 700; font-size: 1.05rem; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 4px; top: 50%; width: 10px; height: 10px; margin-top: -7px;
  border-right: 2.5px solid var(--red); border-bottom: 2.5px solid var(--red); transform: rotate(45deg); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.faq details > div { padding: 0 0 18px; color: var(--muted); }

/* ---------- preview / letter ---------- */
.page-head { padding: 10px 0 46px; text-align: center; }
.page-head h1 { font-size: clamp(1.8rem, 6vw, 2.8rem); color: #fff3dd; }
.page-head p { color: #f1dfc6; max-width: 34em; margin-inline: auto; }
.overlap { margin-top: -30px; position: relative; z-index: 1; padding-bottom: 56px; }
.letter { background: var(--paper); border-radius: 22px; box-shadow: var(--shadow); border: 1px solid var(--line); padding: 30px 22px 26px; position: relative;
  background-image: linear-gradient(transparent 31px, rgba(214, 171, 82, .18) 32px); background-size: 100% 32px; background-position: 0 14px; }
.letter-head { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.letter-head img { width: 64px; height: 64px; border-radius: 50%; box-shadow: 0 0 0 3px var(--gold-soft); }
.letter-head h2 { font-size: 1.4rem; margin: 0; }
.letter-head p { margin: 0; color: var(--muted); font-size: .95rem; }
.script { font: 400 1.18rem/2 var(--body); color: var(--ink); margin: 0 0 18px; white-space: pre-line; }
.script mark { background: linear-gradient(transparent 55%, var(--gold-soft) 55%); color: inherit; font-weight: 700; padding: 0 2px; white-space: nowrap; }
.say-as { display: flex; flex-wrap: wrap; gap: 2px 8px; align-items: center; background: var(--cream-2); border-radius: 14px; padding: 10px 14px; font-size: .97rem; margin: 0; }
.say-as b { white-space: nowrap; color: var(--red); }
.say-as .icon { width: 18px; height: 18px; color: var(--green); }
.actions { display: grid; gap: 12px; margin-top: 22px; }
.actions form { margin: 0; }
.writing { text-align: center; padding: 30px 10px; }
.writing .quill { width: 64px; height: 64px; color: var(--gold-ink); margin: 0 auto 14px; animation: write 1.6s ease-in-out infinite; }
@keyframes write { 0%, 100% { transform: rotate(-8deg) translateX(-6px); } 50% { transform: rotate(6deg) translateX(6px); } }
.dots::after { content: "…"; }
.flag-note { display: flex; gap: 12px; background: #eef3ec; border-radius: 14px; padding: 14px 16px; margin-top: 16px; color: #2b3d33; }

/* ---------- thanks / watch ---------- */
.timeline { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 14px; }
.timeline li { display: flex; gap: 14px; align-items: flex-start; }
.timeline .dot { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--cream-2); color: var(--red); flex: none; }
.timeline .dot .icon { width: 20px; height: 20px; }
.timeline b { display: block; }
.timeline span { color: var(--muted); }
.ref { display: inline-block; font: 700 1.1rem ui-monospace, SFMono-Regular, Menlo, monospace; background: var(--cream-2); padding: 4px 12px; border-radius: 8px; letter-spacing: .05em; }
.tips { display: grid; gap: 12px; margin-top: 8px; }
.tip { display: flex; gap: 12px; align-items: flex-start; }
.tip .icon { width: 26px; height: 26px; color: var(--green); margin-top: 2px; }

/* ---------- privacy doc ---------- */
.doc h2 { font-size: 1.35rem; margin-top: 1.6em; }
.doc ul { padding-left: 1.2em; }
.doc li { margin-bottom: .5em; }

/* ---------- footer ---------- */
.footer { padding: 40px 0 46px; font-size: .95rem; color: #e9d8bf; text-align: center; }
.footer nav { display: flex; flex-wrap: wrap; gap: 8px 22px; justify-content: center; margin: 12px 0; }
.footer small { display: block; color: #cdb9a0; margin-top: 8px; }

/* ---------- larger screens ---------- */
@media (min-width: 720px) {
  body { font-size: 1.125rem; }
  .card { padding: 36px 40px; }
  .letter { padding: 40px 48px 34px; }
  .steps { grid-template-columns: repeat(3, 1fr); }
  .step { display: block; padding: 26px 24px 24px; }
  .step-num { margin: 0 0 14px; }
  .tags { grid-template-columns: repeat(3, 1fr); }
  .trust-grid { grid-template-columns: repeat(2, 1fr); }
  .actions { grid-template-columns: 1fr 1fr; }
  .actions .primary { grid-column: 1 / -1; }
  .hero-cta { grid-template-columns: max-content; }
}
@media (min-width: 980px) {
  .hero { grid-template-columns: 1.02fr 1fr; grid-template-areas: "title film" "body film"; gap: 22px 52px; padding: 34px 0 84px; }
  .hero-title { grid-area: title; align-self: end; }
  .hero-film { grid-area: film; }
  .hero-body { grid-area: body; align-self: start; }
  .trust-grid { grid-template-columns: repeat(4, 1fr); }
  .trust-item { display: block; padding: 24px; }
  .trust-item .icon { margin-bottom: 12px; }
  .section { padding: 84px 0; }
}
