:root {
  --night: #06132d;
  --night-2: #0b2450;
  --ink: #17233d;
  --cream: #fff7df;
  --paper: #fff4cf;
  --gold: #ffc75b;
  --gold-deep: #c47a14;
  --red: #9e1732;
  --green: #0c7652;
  --blue: #1376a8;
  --purple: #6d2b91;
  --white: #fff;
  --shadow: 0 24px 70px rgba(0, 0, 0, .28);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--white);
  background: var(--night);
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.5;
}
button, input, select, textarea { font: inherit; }
.honey-field { position: absolute !important; left: -10000px !important; width: 1px !important; height: 1px !important; opacity: 0 !important; pointer-events: none !important; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; }
.skip-link { position: fixed; top: 12px; left: 12px; z-index: 20; padding: 10px 14px; background: white; color: var(--ink); transform: translateY(-150%); }
.skip-link:focus { transform: translateY(0); }

.hero { background: #050d24; }
.artwork-wrap { position: relative; width: 100%; max-width: 1920px; margin: 0 auto; }
.approved-artwork { display: block; width: 100%; height: auto; }
.art-hotspots { position: absolute; inset: 0; }
.hotspot { position: absolute; display: block; cursor: pointer; border: 0; background: transparent; border-radius: 12px; }
.hotspot span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.hotspot:hover { box-shadow: inset 0 0 0 3px rgba(255, 222, 128, .8), 0 0 28px rgba(255, 183, 56, .75); }
.hotspot:focus-visible { outline: 4px solid #fff; outline-offset: 3px; background: rgba(255, 199, 91, .16); }
.hs-home { left: 9.8%; top: 1.2%; width: 7.6%; height: 5%; }
.hs-create { left: 18.2%; top: 1.2%; width: 12.3%; height: 5%; }
.hs-how { left: 30.4%; top: 1.2%; width: 9.3%; height: 5%; }
.hs-examples { left: 40.2%; top: 1.2%; width: 7.8%; height: 5%; }
.hs-pricing { left: 47.7%; top: 1.2%; width: 6.2%; height: 5%; }
.hs-signin { left: 56.4%; top: 1.2%; width: 8.4%; height: 5%; }
.hs-elf { left: 20.6%; top: 45.1%; width: 10.2%; height: 23%; }
.hs-tooth { left: 31%; top: 45.1%; width: 10.1%; height: 23%; }
.hs-santa { left: 41.7%; top: 45.1%; width: 10.2%; height: 23%; }
.hs-other { left: 52%; top: 45.1%; width: 9.9%; height: 23%; }
.hs-cta { left: 22.4%; top: 71.1%; width: 34.3%; height: 7%; }
.mobile-hero-actions { display: none; }

main { overflow: hidden; }
section { padding: 88px clamp(22px, 6vw, 96px); }
.intro { text-align: center; background: radial-gradient(circle at 50% 0, #184d78 0, var(--night) 55%); }
.eyebrow { margin: 0 0 8px; color: var(--gold); font: 700 .8rem/1.2 system-ui, sans-serif; letter-spacing: .16em; text-transform: uppercase; }
h1, h2 { margin: 0; line-height: 1.04; text-wrap: balance; }
h1 { font-size: clamp(2.4rem, 5vw, 5.4rem); }
h2 { font-size: clamp(2.1rem, 4vw, 4.2rem); }
.section-lead { max-width: 750px; margin: 24px auto 46px; color: #d9e7ff; font: 1.12rem/1.7 system-ui, sans-serif; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; max-width: 1120px; padding: 0; margin: 0 auto; list-style: none; }
.steps li { padding: 30px 25px; border: 1px solid rgba(255, 211, 113, .38); border-radius: 20px; background: rgba(10, 32, 68, .75); }
.steps span { display: grid; width: 38px; height: 38px; margin: 0 auto 15px; place-items: center; border-radius: 50%; background: var(--gold); color: var(--night); font: 800 1rem system-ui, sans-serif; }
.steps strong, .steps small { display: block; }
.steps strong { font-size: 1.28rem; }
.steps small { margin-top: 7px; color: #c9d9ef; font: .93rem/1.5 system-ui, sans-serif; }

.category-section { background: linear-gradient(180deg, #f8edd1, #fff9e9); color: var(--ink); }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 32px; max-width: 1200px; margin: 0 auto 34px; }
.section-heading > p { max-width: 420px; margin: 0; font: 1rem/1.6 system-ui, sans-serif; color: #5c6578; }
.category-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; max-width: 1200px; margin: 0 auto; }
.category-card { min-height: 310px; padding: 28px 24px; text-align: left; color: white; border: 2px solid rgba(255,255,255,.3); border-radius: 26px; box-shadow: 0 14px 30px rgba(40, 32, 48, .16); cursor: pointer; transition: transform .2s ease, box-shadow .2s ease; }
.category-card:hover { transform: translateY(-7px); box-shadow: 0 22px 42px rgba(40, 32, 48, .24); }
.category-card:focus-visible { outline: 4px solid var(--gold-deep); outline-offset: 4px; }
.category-card.elf { background: linear-gradient(150deg, #0c8056, #063e39); }
.category-card.tooth { background: linear-gradient(150deg, #188cbc, #164b8f); }
.category-card.santa { background: linear-gradient(150deg, #b7223e, #71172e); }
.category-card.other { background: linear-gradient(150deg, #7a34a4, #43235f); }
.card-icon { display: grid; width: 58px; height: 58px; place-items: center; margin-bottom: 34px; border-radius: 50%; background: rgba(255,255,255,.13); color: var(--gold); font-size: 2rem; }
.category-card strong, .category-card small, .card-arrow { display: block; }
.category-card strong { font-size: 1.65rem; line-height: 1.08; }
.category-card small { min-height: 70px; margin-top: 12px; font: .95rem/1.5 system-ui, sans-serif; opacity: .88; }
.card-arrow { margin-top: 14px; color: var(--gold); font: 800 .88rem system-ui, sans-serif; text-transform: uppercase; letter-spacing: .07em; }

.creator-section { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(36px, 7vw, 100px); align-items: start; background: radial-gradient(circle at 85% 10%, #174771, transparent 35%), var(--night); }
.creator-copy { position: sticky; top: 30px; }
.creator-copy > p:not(.eyebrow) { color: #cbd8ec; font: 1rem/1.7 system-ui, sans-serif; }
.privacy-note { display: flex; gap: 14px; margin-top: 32px; padding: 18px; border: 1px solid rgba(255, 199, 91, .3); border-radius: 16px; background: rgba(255, 255, 255, .06); }
.privacy-note > span { font-size: 1.4rem; }
.privacy-note p { margin: 0; color: #dbe5f5; font: .9rem/1.5 system-ui, sans-serif; }
.magic-form { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; padding: clamp(24px, 4vw, 42px); color: var(--ink); background: #fffaf0; border: 3px solid #dca94f; border-radius: 28px; box-shadow: var(--shadow); }
.field { position: relative; }
.field.full, .full { grid-column: 1 / -1; }
label { display: block; margin-bottom: 7px; font: 750 .9rem/1.2 system-ui, sans-serif; }
label span { font-weight: 500; color: #697184; }
input, select, textarea { width: 100%; min-height: 48px; padding: 12px 14px; color: var(--ink); border: 1px solid #b7af9c; border-radius: 10px; background: white; }
textarea { resize: vertical; }
input:focus, select:focus, textarea:focus { outline: 3px solid rgba(21, 109, 164, .3); border-color: #156da4; }
.counter { float: right; margin-top: 7px; color: #707889; font: .72rem system-ui, sans-serif; }
.field-help { display: block; max-width: calc(100% - 70px); margin-top: 7px; color: #667084; font: .78rem/1.45 system-ui, sans-serif; }
.mode-switch { display: flex; align-items: center; gap: 12px; padding: 16px; border: 1px solid #d2c6aa; border-radius: 14px; cursor: pointer; }
.mode-switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.switch-ui { position: relative; flex: 0 0 48px; height: 27px; border-radius: 999px; background: #828a97; transition: background .2s; }
.switch-ui::after { content: ""; position: absolute; top: 3px; left: 3px; width: 21px; height: 21px; border-radius: 50%; background: white; transition: transform .2s; }
.mode-switch input:checked + .switch-ui { background: var(--green); }
.mode-switch input:checked + .switch-ui::after { transform: translateX(21px); }
.mode-switch input:focus-visible + .switch-ui { outline: 3px solid #156da4; outline-offset: 3px; }
.mode-switch strong, .mode-switch small { display: block; }
.mode-switch strong { color: #0b7652; text-transform: uppercase; letter-spacing: .04em; }
.mode-switch strong.live { color: #8d1831; }
.mode-switch small { margin-top: 3px; color: #5e6878; font-weight: 500; line-height: 1.4; }
.form-status { min-height: 22px; color: #8d1831; font: 650 .9rem system-ui, sans-serif; }
.button { display: inline-flex; min-height: 50px; align-items: center; justify-content: center; gap: 9px; padding: 12px 22px; border: 0; border-radius: 999px; cursor: pointer; text-decoration: none; font: 800 .93rem/1 system-ui, sans-serif; transition: transform .18s, box-shadow .18s; }
.button:hover { transform: translateY(-2px); }
.button:focus-visible { outline: 4px solid #fff; outline-offset: 3px; }
.button-primary { color: white; background: linear-gradient(180deg, #c62e43, #8d142d); box-shadow: 0 8px 22px rgba(142, 19, 44, .28); }
.button-secondary { color: var(--ink); border: 2px solid #b98b37; background: #fff4d6; }
.button[disabled] { opacity: .65; cursor: wait; transform: none; }

.letter-section { background: linear-gradient(180deg, #0b244d, #07152e); }
.letter-actions { display: flex; max-width: 980px; margin: 0 auto 26px; align-items: end; justify-content: space-between; gap: 24px; }
.action-row { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px; }
.button-magic { color: #6f331c; background: linear-gradient(180deg, #fff1b4, #ffd16a); }
.letter-paper { --fit-scale: 1; --body-font-size: 1rem; --body-line-height: 1.42; position: relative; container-type: inline-size; width: min(850px, 100%); aspect-ratio: 8.5 / 11; margin: 0 auto; overflow: hidden; color: #3b201a; background-color: #f6e5ba; background-position: center; background-repeat: no-repeat; background-size: 100% 100%; box-shadow: var(--shadow); print-color-adjust: exact; -webkit-print-color-adjust: exact; }
.letter-paper.theme-north { --safe-top: 34%; --safe-right: 13.5%; --safe-bottom: 18%; --safe-left: 13.5%; color: #172d57; background-image: url("assets/letter-north-pole-v7-approved-reference.png"); }
.letter-paper.theme-fairy { --safe-top: 22%; --safe-right: 13%; --safe-bottom: 26%; --safe-left: 13%; color: #29334f; background-image: url("assets/letter-tooth-fairy-v7.png"); }
.letter-paper.theme-santa { --safe-top: 24%; --safe-right: 13.5%; --safe-bottom: 27%; --safe-left: 13.5%; color: #3b201a; background-image: url("assets/letter-santa-v7.png"); }
.letter-content { position: absolute; inset: 0; }
.letter-brand { position: absolute; top: 8.2%; right: 16%; left: 16%; text-align: center; color: #8f1830; font: 800 clamp(1.3rem, 4.4cqw, 2.35rem)/1.02 Georgia, serif; letter-spacing: -.035em; text-shadow: 0 2px #f2d47c, 0 0 8px rgba(255,255,255,.9); }
.theme-fairy .letter-brand { top: 9%; color: #62498f; font-size: clamp(1.2rem, 4.1cqw, 2.2rem); text-shadow: 0 2px #d7b464, 0 0 8px white; }
.theme-santa .letter-brand { top: 13%; right: 20%; left: 20%; font-size: clamp(1.2rem, 3.9cqw, 2.1rem); }
.theme-north .letter-brand { top: 5.3%; right: 32%; left: 32%; color: #fff7dc; font-size: clamp(.82rem, 2.65cqw, 1.42rem); line-height: .95; text-shadow: 0 2px 0 #3e170d, 2px 0 0 #3e170d, -2px 0 0 #3e170d, 0 -2px 0 #3e170d, 0 4px 6px rgba(0,0,0,.65); }
.letter-subtitle { position: absolute; top: 14.6%; right: 18%; left: 18%; margin: 0; text-align: center; color: #7b401e; font: 800 clamp(.48rem, 1.35cqw, .72rem)/1.2 system-ui, sans-serif; letter-spacing: .18em; text-transform: uppercase; }
.theme-fairy .letter-subtitle { top: 14.4%; color: #385b83; }
.theme-santa .letter-subtitle { top: 19%; }
.theme-north .letter-subtitle { top: 16.4%; right: 30%; left: 30%; color: #4b2516; font-family: Georgia, serif; letter-spacing: .07em; }
.postal-stamp { position: absolute; top: 12.3%; right: 10.5%; display: grid; width: clamp(52px, 9.5cqw, 80px); aspect-ratio: 1; place-items: center; text-align: center; color: rgba(128, 25, 42, .78); border: 3px double currentColor; border-radius: 50%; font: 900 clamp(.34rem, .83cqw, .54rem)/1.12 system-ui, sans-serif; letter-spacing: .06em; transform: rotate(8deg); white-space: pre-line; }
.theme-fairy .postal-stamp { color: rgba(72, 79, 145, .8); }
.theme-santa .postal-stamp { top: 4.5%; right: 7.4%; }
.theme-north .postal-stamp { display: none; }
.letter-body { position: absolute; top: var(--safe-top); right: var(--safe-right); bottom: var(--safe-bottom); left: var(--safe-left); min-width: 0; min-height: 0; overflow: hidden; padding: 0; font-family: "Bradley Hand", "Segoe Print", "Chalkboard SE", "Comic Sans MS", cursive; font-size: calc(var(--body-font-size) * var(--fit-scale)); font-weight: 500; line-height: var(--body-line-height); letter-spacing: .005em; }
.letter-body p { margin: 0 0 .62em; }
.letter-body .letter-greeting, .letter-body .letter-signature { color: #8f1830; font-family: "Snell Roundhand", "URW Chancery L", "Apple Chancery", "Brush Script MT", cursive; font-size: calc(1.48rem * var(--fit-scale)); font-style: italic; font-weight: 700; line-height: 1.12; white-space: pre-line; }
.theme-fairy .letter-body .letter-greeting, .theme-fairy .letter-body .letter-signature { color: #62498f; }
.letter-body .letter-signature { margin-top: .35em; margin-bottom: 0; }
.theme-north .letter-body { font-weight: 600; }
.length-short { --body-font-size: 1.08rem; --body-line-height: 1.48; }
.length-standard { --body-font-size: .92rem; --body-line-height: 1.38; }
.length-extra { --body-font-size: .78rem; --body-line-height: 1.29; }
.length-extra .letter-body p { margin-bottom: .47em; }
.length-extra .letter-body .letter-greeting, .length-extra .letter-body .letter-signature { font-size: calc(1.14rem * var(--fit-scale)); }
.letter-disclaimer { position: absolute; right: 13%; bottom: 2.5%; left: 13%; margin: 0; padding: 5px 8px; color: #765c4f; border-radius: 4px; background: rgba(255,255,255,.75); font: .68rem system-ui, sans-serif; text-align: center; }

.examples-section { color: var(--ink); background: #fff9ea; text-align: center; }
.example-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; max-width: 1100px; margin: 40px auto 0; text-align: left; }
.example-grid article { padding: 28px; border: 1px solid #d7c7a4; border-radius: 18px; background: white; box-shadow: 0 10px 24px rgba(67, 49, 24, .08); }
.example-grid span { color: #9e1732; font: 800 .78rem system-ui, sans-serif; text-transform: uppercase; letter-spacing: .08em; }
blockquote { margin: 15px 0 0; font-size: 1.14rem; line-height: 1.55; }
.sample-label { color: #6f7582; font: .75rem system-ui, sans-serif; }

.pricing-section { display: grid; grid-template-columns: 1fr .8fr; gap: 70px; align-items: center; background: radial-gradient(circle at 10% 80%, #164c6f, transparent 38%), #07162e; }
.pricing-section > div > p:not(.eyebrow, .phase-now, .phase-later) { max-width: 700px; color: #cedbed; font: 1rem/1.7 system-ui, sans-serif; }
.phase-card { padding: 34px; color: var(--ink); border: 3px solid #e6b34f; border-radius: 22px; background: #fff8e5; }
.phase-card ul { padding-left: 20px; font: .95rem/1.8 system-ui, sans-serif; }
.phase-now, .phase-later { margin: 0; font: 900 .78rem system-ui, sans-serif; text-transform: uppercase; letter-spacing: .1em; }
.phase-now { color: #0b7652; }
.phase-later { margin-top: 22px; color: #9e1732; }

footer { display: flex; gap: 25px; align-items: center; justify-content: space-between; padding: 28px clamp(22px, 6vw, 96px); border-top: 1px solid rgba(255,255,255,.12); color: #aebed5; font: .78rem system-ui, sans-serif; }
footer a { color: var(--gold); font: 800 1.1rem Georgia, serif; text-decoration: none; }
dialog { width: min(520px, calc(100% - 30px)); padding: 38px; color: var(--ink); border: 3px solid #dca94f; border-radius: 22px; box-shadow: var(--shadow); }
dialog::backdrop { background: rgba(2, 9, 25, .8); backdrop-filter: blur(5px); }
.dialog-close { position: absolute; top: 8px; right: 12px; border: 0; background: transparent; color: #6b4f3a; font-size: 2rem; cursor: pointer; }
dialog p:not(.eyebrow) { font: 1rem/1.6 system-ui, sans-serif; }

@media (max-width: 900px) {
  section { padding: 68px 22px; }
  .art-hotspots { display: none; }
  .mobile-hero-actions { display: flex; padding: 24px 22px 34px; align-items: center; flex-direction: column; text-align: center; background: linear-gradient(180deg, #0b2860, #06132d); }
  .mobile-hero-actions p { max-width: 520px; margin: 0 0 18px; color: #d8e4f6; font: .94rem/1.5 system-ui, sans-serif; }
  .text-link { margin-top: 16px; color: var(--gold); font: 700 .85rem system-ui, sans-serif; }
  .steps, .example-grid { grid-template-columns: 1fr; }
  .category-grid { grid-template-columns: 1fr 1fr; }
  .creator-section, .pricing-section { grid-template-columns: 1fr; }
  .creator-copy { position: static; }
  .section-heading, .letter-actions { align-items: start; flex-direction: column; }
}

@media (max-width: 560px) {
  .approved-artwork { min-height: 270px; object-fit: contain; background: #07142e; }
  .category-grid, .magic-form { grid-template-columns: 1fr; }
  .category-card { min-height: 240px; }
  .category-card small { min-height: auto; }
  .field, .field.full, .full { grid-column: 1; }
  .letter-paper { aspect-ratio: auto; min-height: 790px; }
  .letter-paper.length-short { min-height: 720px; }
  .letter-paper.length-extra { min-height: 930px; }
  .letter-paper.theme-north { min-height: 980px; }
  .letter-paper.theme-north.length-short { min-height: 850px; }
  .letter-paper.theme-north.length-extra { min-height: 1120px; }
  .letter-paper { --body-font-size: .88rem; }
  .letter-paper.length-short { --body-font-size: .96rem; }
  .letter-paper.length-extra { --body-font-size: .72rem; }
  .letter-actions, .action-row { width: 100%; }
  .action-row { flex-direction: column; }
  .action-row .button { width: 100%; }
  footer { align-items: flex-start; flex-direction: column; gap: 8px; }
  footer p { margin: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

@media print {
  @page { size: letter; margin: 0; }
  body { background: white; }
  body > *:not(main), main > section:not(.letter-section), .no-print { display: none !important; }
  main, .letter-section { display: block !important; padding: 0 !important; background: white !important; }
  .letter-paper { display: block; width: 8.5in; height: 11in; max-width: none; margin: 0; box-shadow: none; break-inside: avoid; }
  .letter-brand { font-size: 24pt; }
  .theme-north .letter-brand { font-size: 15pt; }
  .letter-subtitle { font-size: 7.5pt; }
  .postal-stamp { width: .72in; font-size: 5pt; }
  .letter-paper { --body-font-size: 10.2pt; --body-line-height: 1.36; }
  .letter-paper.length-short { --body-font-size: 11.2pt; --body-line-height: 1.44; }
  .letter-paper.length-extra { --body-font-size: 8.5pt; --body-line-height: 1.26; }
  .letter-body .letter-greeting, .letter-body .letter-signature { font-size: calc(14pt * var(--fit-scale)); }
  .length-extra .letter-body .letter-greeting, .length-extra .letter-body .letter-signature { font-size: calc(11.8pt * var(--fit-scale)); }
}
