/* daystochristmas.app: Velvet Night, as in the app (Shared/VelvetStyle.swift). */

@font-face {
  font-family: "Nunito";
  src: url("/fonts/nunito.woff2") format("woff2");
  font-weight: 200 1000;
  font-display: swap;
}

:root {
  --night: #14030A;
  --wine: #4A0A12;
  --wine-mid: #8E1220;
  --red: #C4141F;
  --gold: #F0C048;
  --gold-light: #FFE185;
  --gold-deep: #D99E2B;
  --cream: #FFEBCD;
  --paper: #FDFAF3;
  --paper-edge: #E9E0CF;
  --ink: #2C060D;
  --ink-soft: #4A2B2F;
  --label: #8A5410;
  --green: #3D9B57;
  --sky: linear-gradient(180deg, #1A030C 0%, #4A0A16 42%, #8E1220 72%, #C4141F 100%);
  --radius: 22px;
  --wrap: 1120px;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
body {
  margin: 0;
  background: var(--night);
  color: var(--cream);
  font-family: "Nunito", ui-rounded, "SF Pro Rounded", "Avenir Next", "Segoe UI", system-ui, sans-serif;
  font-weight: 700;
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--gold-light); text-underline-offset: 3px; }
h1, h2, h3 { line-height: 1.15; margin: 0; font-weight: 900; }
h2 { font-size: clamp(30px, 4.6vw, 48px); color: #fff; letter-spacing: -0.01em; }
h3 { font-size: 20px; }
p { margin: 0; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.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; }
:focus-visible { outline: 3px solid var(--gold-light); outline-offset: 3px; border-radius: 6px; }
.paper :focus-visible { outline-color: var(--wine-mid); }

.skip { position: absolute; left: 12px; top: -60px; z-index: 50; background: var(--gold); color: var(--wine); padding: 10px 16px; border-radius: 12px; font-weight: 900; }
.skip:focus { top: 12px; }

.eyebrow { font-size: 13px; font-weight: 800; letter-spacing: 0.3em; text-transform: uppercase; color: var(--cream); }
.eyebrow.dark { color: var(--label); }
.lead { font-size: clamp(17px, 1.6vw, 20px); color: var(--cream); max-width: 40em; }
.lead.dark { color: var(--ink-soft); }
.hint { font-size: 14px; color: var(--ink-soft); }
.center { text-align: center; justify-content: center; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 52px; padding: 14px 26px; border-radius: 30px;
  font: inherit; font-weight: 900; font-size: 17px; text-decoration: none; cursor: pointer;
  border: 2px solid transparent; transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.btn:active { transform: translateY(1px); }
.btn.small { min-height: 44px; padding: 9px 18px; font-size: 15px; }
.btn.wide { width: 100%; }
.btn.gold { background: linear-gradient(180deg, var(--gold-light), var(--gold)); color: var(--wine); box-shadow: 0 10px 24px -10px rgba(240, 192, 72, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.7); }
.btn.gold:hover { box-shadow: 0 14px 28px -10px rgba(240, 192, 72, 0.75), inset 0 1px 0 rgba(255, 255, 255, 0.7); }
.btn.red { background: var(--red); color: #fff; border-color: var(--gold); }
.btn.red:hover { background: #A8101A; }
.btn.ghost { background: rgba(20, 3, 8, 0.6); color: var(--cream); border-color: rgba(255, 235, 205, 0.7); }
.btn.line { background: #fff; color: var(--wine-mid); border-color: var(--wine-mid); }
.btn.line:hover { background: #FFF4F4; }
.btn[disabled] { cursor: progress; }

/* Ribbon and header */
.ribbon {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px 16px;
  background: var(--red); color: #fff; padding: 9px 18px; font-size: 15px; text-align: center;
}
.ribbon a { color: #fff; font-weight: 900; background: rgba(20, 3, 8, 0.35); padding: 4px 14px; border-radius: 20px; text-decoration: none; border: 1px solid rgba(255, 255, 255, 0.7); }
.ribbon a:hover { background: rgba(20, 3, 8, 0.55); }
.top {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; gap: 18px;
  padding: 10px clamp(16px, 3vw, 32px);
  background: rgba(20, 3, 8, 0.82); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255, 235, 205, 0.12);
}
.brand { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; font-weight: 900; font-size: 18px; }
.brand img { border-radius: 10px; }
.top nav { margin-left: auto; }
.top nav ul { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.top nav a { color: var(--cream); text-decoration: none; padding: 8px 12px; border-radius: 16px; font-size: 15px; }
.top nav a:hover { background: rgba(255, 235, 205, 0.1); }
@media (max-width: 860px) { .top nav { display: none; } .top .btn { margin-left: auto; } }

/* Hero */
.hero { position: relative; background: var(--sky); overflow: hidden; padding: clamp(28px, 5vw, 64px) 0 0; }
.sky-snow { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.hero::before {
  content: ""; position: absolute; left: 50%; top: 12%; width: 900px; height: 900px; transform: translateX(-10%);
  background: radial-gradient(circle, rgba(240, 192, 72, 0.18), rgba(240, 192, 72, 0) 60%); pointer-events: none;
}
.hero-inner {
  position: relative; z-index: 1; max-width: var(--wrap); margin: 0 auto; padding: 0 24px;
  display: grid; grid-template-columns: 1.05fr 1fr; grid-template-areas: "count globe" "text globe";
  column-gap: clamp(20px, 4vw, 56px); align-items: center;
}
.hero-count { grid-area: count; align-self: end; }
.hero-text { grid-area: text; align-self: start; }
.globe { grid-area: globe; }
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; grid-template-areas: "count" "globe" "text"; }
  .hero-count, .hero-text { text-align: center; }
  .hero-text .lead { margin-inline: auto; }
  .modes, .ctas { justify-content: center; }
}
.count { display: flex; flex-direction: column; margin: 2px 0 6px; }
.count-number {
  font-size: clamp(92px, 12vw, 150px); font-weight: 900; line-height: 0.95; letter-spacing: -0.02em;
  background: linear-gradient(180deg, #FFF3CF 8%, var(--gold) 52%, #C88A2A 96%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.35)); font-variant-numeric: tabular-nums;
}
.count-number.long { font-size: clamp(56px, 8vw, 104px); }
.count-unit { font-size: 15px; font-weight: 800; letter-spacing: 0.32em; text-transform: uppercase; color: var(--cream); margin-top: 6px; }
.modes { display: flex; flex-wrap: wrap; gap: 2px; margin: 14px 0 22px; padding: 4px; border-radius: 22px; background: rgba(20, 3, 8, 0.5); border: 1px solid rgba(255, 235, 205, 0.14); width: fit-content; }
@media (max-width: 900px) { .modes { margin-inline: auto; } }
.modes button { font: inherit; font-size: 14px; font-weight: 800; color: var(--cream); background: transparent; border: 0; border-radius: 18px; padding: 7px 13px; cursor: pointer; min-height: 36px; }
@media (max-width: 420px) { .modes button { font-size: 13px; padding: 7px 8px; } }
.modes button[aria-pressed="true"] { background: var(--paper); color: var(--wine); }
.hero h1 { font-size: clamp(28px, 3.3vw, 42px); color: #fff; margin-bottom: 12px; }
.ctas { display: flex; flex-wrap: wrap; gap: 12px; margin: 22px 0 14px; }
.fine { font-size: 14px; color: var(--cream); }
.fine a { color: #fff; }

/* The globe */
.globe { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.globe-frame { position: relative; width: min(100%, 560px); aspect-ratio: 1; }
.globe-frame canvas, .globe-poster { position: absolute; inset: 0; width: 100%; height: 100%; }
.globe-frame canvas { touch-action: pan-y; cursor: grab; opacity: 0; transition: opacity 0.6s ease; }
.globe-frame canvas:active { cursor: grabbing; }
.globe.live canvas { opacity: 1; }
.globe.live .globe-poster { opacity: 0; transition: opacity 0.6s ease; }
.globe.fallback .globe-controls, .globe.fallback .themes, .globe.fallback .hint { display: none; }
.globe figcaption, .globe .hint { font-size: 14px; color: var(--cream); text-align: center; }
.globe-controls { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.themes { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; align-items: center; }
.themes-label { font-size: 13px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--cream); margin-right: 4px; }
.themes button { font: inherit; font-size: 14px; font-weight: 800; color: var(--cream); background: rgba(20, 3, 8, 0.62); border: 1px solid rgba(255, 235, 205, 0.55); border-radius: 18px; padding: 6px 12px; min-height: 36px; cursor: pointer; }
.themes button[aria-pressed="true"] { background: var(--paper); color: var(--wine); border-color: var(--paper); }
.themes .star { color: inherit; }
.theme-note { font-size: 14px; color: var(--cream); text-align: center; min-height: 1.5em; background: rgba(20, 3, 8, 0.5); padding: 4px 12px; border-radius: 12px; }

.hills { display: block; width: 100%; height: clamp(90px, 14vw, 200px); margin-top: clamp(10px, 3vw, 30px); }

/* Paper sections */
.paper { background: var(--paper); color: var(--ink); }
.paper h2, .paper h3 { color: var(--wine); }
.santa { padding: 24px 0 80px; }
.santa h2 { margin: 6px 0 12px; }
.steps { list-style: none; padding: 0; margin: 32px 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; } }
.steps li { background: #fff; border-radius: 18px; padding: 20px; box-shadow: 0 10px 26px -14px rgba(74, 10, 18, 0.35); }
.steps .n { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: linear-gradient(180deg, var(--gold-light), var(--gold)); color: var(--wine); font-weight: 900; margin-bottom: 10px; }
.steps h3 { font-size: 19px; margin-bottom: 4px; }
.steps p { color: var(--ink-soft); font-size: 16px; }

.santa-grid { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 24px; align-items: start; }
@media (max-width: 900px) { .santa-grid { grid-template-columns: 1fr; } }

.reel-card { background: linear-gradient(180deg, #5A0E18, #2A050C); color: var(--cream); border-radius: var(--radius); padding: 24px; text-align: center; position: sticky; top: 90px; }
@media (max-width: 900px) { .reel-card { position: static; } }
.reel-card h3 { color: #fff; font-size: 22px; }
.reel-card > p { color: var(--cream); font-size: 15px; margin: 4px 0 16px; }
.machine { background: linear-gradient(180deg, var(--gold-light), var(--gold) 55%, var(--gold-deep)); border-radius: 26px; padding: 12px; margin: 0 auto 18px; max-width: 320px; box-shadow: 0 18px 34px -14px rgba(240, 192, 72, 0.55); }
.window { position: relative; height: 168px; overflow: hidden; border-radius: 18px; background: linear-gradient(180deg, var(--paper-edge), var(--paper) 30%, var(--paper) 70%, var(--paper-edge)); }
.window::before, .window::after { content: ""; position: absolute; left: 0; right: 0; height: 40px; z-index: 1; pointer-events: none; }
.window::before { top: 0; background: linear-gradient(var(--paper-edge), rgba(233, 224, 207, 0)); }
.window::after { bottom: 0; background: linear-gradient(rgba(233, 224, 207, 0), var(--paper-edge)); }
.strip { list-style: none; margin: 0; padding: 0; transform: translateY(56px); }
.strip li { height: 56px; line-height: 56px; font-size: 26px; font-weight: 900; color: var(--ink-soft); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding: 0 16px; }
.strip li.hit { color: var(--wine); font-size: 30px; }
.payline { position: absolute; left: 8px; right: 8px; top: 56px; height: 56px; border-top: 3px solid var(--wine-mid); border-bottom: 3px solid var(--wine-mid); pointer-events: none; z-index: 2; }
.reel-result { min-height: 3.2em; margin-top: 14px; font-size: 15px; color: var(--cream); }

.form-card { background: #fff; border-radius: var(--radius); padding: clamp(20px, 3vw, 32px); box-shadow: 0 18px 40px -20px rgba(74, 10, 18, 0.45); }
.form-title { font-size: 26px; margin-bottom: 8px; }
.santa-form fieldset { border: 0; padding: 0; margin: 18px 0 0; }
.santa-form legend { font-size: 13px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--label); padding: 0; margin-bottom: 8px; }
.field { display: flex; flex-direction: column; gap: 4px; margin-bottom: 10px; }
.label { font-size: 14px; font-weight: 800; color: var(--ink); }
.santa-form input, .santa-form select, .santa-form textarea {
  font: inherit; font-weight: 700; color: var(--ink); background: #fff;
  border: 2px solid #8C7A6B; border-radius: 12px; padding: 10px 12px; min-height: 46px; width: 100%;
}
.santa-form textarea { min-height: 110px; resize: vertical; }
.santa-form input::placeholder, .santa-form textarea::placeholder { color: #75656A; }
.santa-form input:focus-visible, .santa-form select:focus-visible, .santa-form textarea:focus-visible { outline: 3px solid var(--gold-deep); outline-offset: 1px; border-color: var(--wine-mid); }
.santa-form [aria-invalid="true"] { border-color: var(--red); background: #FFF6F6; }
.santa-form input[type="date"] { color-scheme: light; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 560px) { .two { grid-template-columns: 1fr; } }
.money { display: grid; grid-template-columns: 7.5em 1fr; gap: 8px; }
.field-error, .form-error { color: var(--red); font-size: 14px; font-weight: 800; }
.field-error:empty, .form-error:empty { display: none; }
.form-error { margin: 12px 0; }
.people { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.person { display: grid; grid-template-columns: 1fr auto; gap: 8px; align-items: center; padding: 10px; border-radius: 14px; background: var(--paper); }
.person-fields { display: grid; grid-template-columns: 1fr 1.3fr; gap: 8px; }
.person-fields .field-error { grid-column: 1 / -1; }
.person label { display: flex; flex-direction: column; gap: 2px; }
.person .label { font-size: 13px; }
@media (max-width: 560px) { .person-fields { grid-template-columns: 1fr; } }
.remove { font: inherit; font-size: 26px; line-height: 1; width: 44px; height: 44px; border-radius: 50%; border: 2px solid var(--red); background: #fff; color: var(--red); cursor: pointer; font-weight: 900; }
.remove:hover { background: #FFF0F0; }
.people-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.paste { margin-top: 12px; padding: 14px; border-radius: 14px; background: var(--paper); }
.summary { margin: 14px 0; padding: 14px 18px; background: var(--paper); border-radius: 14px; display: grid; gap: 6px; }
.summary div { display: flex; justify-content: space-between; gap: 12px; }
.summary dt { font-size: 13px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--label); align-self: center; }
.summary dd { margin: 0; font-weight: 900; color: var(--ink); text-align: right; }
.review-people { list-style: none; padding: 0; margin: 0 0 14px; border: 1px solid var(--paper-edge); border-radius: 14px; }
.review-people li { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2px 12px; padding: 10px 14px; border-bottom: 1px solid var(--paper-edge); }
.review-people li:last-child { border-bottom: 0; }
.review-people .who { display: flex; gap: 8px; align-items: center; color: var(--ink); }
.review-people .you { font-size: 12px; font-weight: 900; color: var(--wine); border: 1px solid var(--wine); border-radius: 12px; padding: 0 8px; }
.review-people .email { color: var(--ink-soft); font-size: 15px; }
.warning { display: flex; gap: 10px; align-items: flex-start; background: #FFE9A8; border: 1px solid var(--gold-deep); color: var(--wine); padding: 12px 14px; border-radius: 14px; font-weight: 800; }
.warning span { display: inline-grid; place-items: center; min-width: 22px; height: 22px; border-radius: 50%; background: var(--wine); color: #FFE9A8; font-size: 14px; }
.turnstile { margin: 14px 0 4px; min-height: 0; }
.review-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 16px 0 10px; }
.step h3 { font-size: 24px; margin-bottom: 6px; }
.step h3:focus { outline: none; }
.done p { color: var(--ink); margin-top: 8px; }
.done .hint a, .paper .hint a, .invite-help a { color: var(--wine-mid); font-weight: 900; }

.invite-help { margin-top: 32px; padding: 22px 24px; border-radius: var(--radius); background: #fff; border: 2px dashed #B3781F; }
.invite-help h3 { margin-bottom: 6px; }
.invite-help p { color: var(--ink-soft); }
.invite-help p + p { margin-top: 10px; }

/* Advent */
.advent { background: linear-gradient(180deg, #2A050C, var(--night)); padding: 80px 0; }
.advent h2 { margin: 6px 0 12px; }
.door-card { margin-top: 28px; display: grid; grid-template-columns: 200px 1fr; gap: 28px; align-items: center; background: rgba(255, 235, 205, 0.06); border: 1px solid rgba(255, 235, 205, 0.16); border-radius: var(--radius); padding: 24px; perspective: 900px; }
.door-card[hidden] { display: none; }
@media (max-width: 720px) { .door-card { grid-template-columns: 1fr; text-align: center; } }
.door-leaf {
  aspect-ratio: 3 / 4; border-radius: 16px; display: grid; place-items: center;
  background: linear-gradient(160deg, #B8141F, #6E0D17); border: 3px solid var(--gold); color: var(--gold-light);
  font-size: 72px; font-weight: 900; box-shadow: inset 0 0 0 6px rgba(20, 3, 8, 0.25), 0 14px 30px -12px rgba(0, 0, 0, 0.6);
  transform-origin: left center; transition: transform 0.9s cubic-bezier(0.3, 0.7, 0.2, 1);
}
@media (max-width: 720px) { .door-leaf { width: 160px; margin: 0 auto; } }
.door-card.open .door-leaf { transform: rotateY(-72deg); }
.door-side { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
@media (max-width: 720px) { .door-side { align-items: center; } }
.door-teaser { font-size: 20px; color: #fff; }
.door-card.open .door-teaser { display: none; }
.door-inside { display: none; }
.door-card.open .door-inside { display: block; }
.door-inside:focus { outline: none; }
.door-emoji { font-size: 44px; }
.door-sense { font-size: 13px; font-weight: 800; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold-light); }
.door-inside h3 { color: #fff; font-size: 26px; margin: 2px 0 8px; }
.door-inside p { color: var(--cream); }
.door-inside .hint { color: var(--cream); margin-top: 10px; }

/* Features */
.features { background: var(--paper); color: var(--ink); padding: 80px 0; }
.features .eyebrow { color: var(--label); }
.features h2 { color: var(--wine); margin: 6px 0 32px; }
.feature-grid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 36px 28px; }
@media (max-width: 900px) { .feature-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .feature-grid { grid-template-columns: 1fr; } }
.feature-grid h3 { color: var(--wine); margin: 18px 0 6px; }
.feature-grid p { color: var(--ink-soft); font-size: 16px; }
.phone { background: #1B0E10; border-radius: 40px; padding: 10px; box-shadow: 0 22px 40px -18px rgba(44, 6, 13, 0.55); max-width: 280px; }
.phone img { border-radius: 31px; }
@media (max-width: 560px) { .phone { margin: 0 auto; } .feature-grid li { text-align: center; } }
.chips { list-style: none; padding: 0; margin: 40px 0 0; display: flex; flex-wrap: wrap; gap: 10px; }
.chips li { background: #fff; border: 1px solid var(--paper-edge); color: var(--ink); border-radius: 20px; padding: 8px 14px; font-size: 15px; }

/* Everywhere */
.everywhere { background: var(--sky); padding: 80px 0; }
.everywhere h2 { margin-bottom: 28px; }
.platforms { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
@media (max-width: 760px) { .platforms { grid-template-columns: 1fr; } }
.platforms li { background: rgba(20, 3, 8, 0.6); border: 1px solid rgba(255, 235, 205, 0.18); border-radius: 18px; padding: 18px 20px; display: flex; flex-direction: column; gap: 2px; backdrop-filter: blur(6px); }
.platforms strong { color: #fff; font-size: 18px; }
.platforms span { color: var(--cream); font-size: 15px; }

/* Finale and footer */
.finale { background: var(--night); padding: 80px 0; text-align: center; }
.finale .lead { margin: 10px auto 0; }
.finale .ctas { justify-content: center; }
.foot { background: #0C0206; padding: 36px 0 44px; font-size: 15px; }
.foot p { display: flex; align-items: center; gap: 10px; color: #fff; font-weight: 900; }
.foot img { border-radius: 7px; }
.foot ul { list-style: none; padding: 0; margin: 14px 0; display: flex; flex-wrap: wrap; gap: 6px 20px; }
.foot a { color: var(--cream); }
.foot .hint { color: #C9B8A5; font-weight: 600; font-size: 13px; display: block; }

/* Toast */
.toast {
  position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 140%); z-index: 60;
  background: var(--paper); color: var(--wine); padding: 12px 20px; border-radius: 18px; font-weight: 800;
  box-shadow: 0 18px 40px -12px rgba(0, 0, 0, 0.6); max-width: min(92vw, 520px); text-align: center;
  transition: transform 0.35s ease; pointer-events: none;
}
.toast.show { transform: translate(-50%, 0); }
.toast:empty { display: none; }
.soon p { color: var(--ink); margin: 10px 0 16px; }
.soon-badge { display: inline-block; background: var(--wine); color: var(--gold-light) !important; font-weight: 900; font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase; padding: 4px 12px; border-radius: 14px; margin: 0 !important; }
