:root {
  --winter-blue: rgb(111 167 209 / 22%);
  --winter-steel: rgb(131 160 185 / 13%);
  --winter-ice: rgb(199 226 246 / 28%);
  --snow-far: rgb(97 142 182 / 37%);
  --snow-near: rgb(117 165 196 / 65%);
  --winter-text: #264764;
  --winter-line: rgb(76 132 177 / 29%);
  --winter-badge: rgb(237 247 255 / 86%);
  --winter-glass: rgb(239 247 253 / 64%);
  --winter-ease: cubic-bezier(.22, 1, .36, 1);
}

:root[data-theme="dark"] {
  --winter-blue: rgb(68 122 159 / 22%);
  --winter-steel: rgb(79 110 140 / 15%);
  --winter-ice: rgb(126 181 234 / 19%);
  --snow-far: rgb(169 214 247 / 38%);
  --snow-near: rgb(221 241 255 / 74%);
  --winter-text: #c4e6ff;
  --winter-line: rgb(162 207 255 / 30%);
  --winter-badge: rgb(39 58 82 / 84%);
  --winter-glass: rgb(34 49 63 / 64%);
}

.winter-sky {
  position: fixed;
  z-index: 0;
  inset: 0;
  overflow: hidden;
  contain: paint;
  pointer-events: none;
  background:
    radial-gradient(ellipse 58% 54% at 87% 4%, var(--winter-blue), transparent 100%),
    radial-gradient(ellipse 46% 52% at 7% 29%, var(--winter-steel), transparent 100%),
    radial-gradient(ellipse 46% 53% at 87% 82%, var(--winter-ice), transparent 100%);
}

main, .footer { position: relative; z-index: 1; }

.winter-sky::before, .winter-sky::after {
  position: absolute;
  inset: calc(-1 * var(--snow-tile-height)) -36px 0;
  opacity: .84;
  background-size: var(--snow-tile-width) var(--snow-tile-height);
  content: "";
}

.winter-sky::before {
  --snow-tile-width: 347px;
  --snow-tile-height: 407px;
  --snow-speed: 25s;
  --snow-drift: 18px;
  background-image:
    radial-gradient(circle at 11% 9%, var(--snow-far) .8px, transparent 1.7px),
    radial-gradient(circle at 51% 15%, var(--snow-far) 1px, transparent 1.9px),
    radial-gradient(circle at 87% 25%, var(--snow-far) .8px, transparent 1.7px),
    radial-gradient(circle at 23% 36%, var(--snow-far) .9px, transparent 1.8px),
    radial-gradient(circle at 64% 53%, var(--snow-far) 1px, transparent 1.9px),
    radial-gradient(circle at 97% 65%, var(--snow-far) .8px, transparent 1.7px),
    radial-gradient(circle at 15% 73%, var(--snow-far) .8px, transparent 1.7px),
    radial-gradient(circle at 73% 91%, var(--snow-far) 1px, transparent 1.9px);
}

.winter-sky::after {
  --snow-tile-width: 409px;
  --snow-tile-height: 487px;
  --snow-speed: 16s;
  --snow-drift: -28px;
  background-image:
    radial-gradient(circle at 19% 13%, var(--snow-near) 1.3px, transparent 2.7px),
    radial-gradient(circle at 74% 9%, var(--snow-near) 1.6px, transparent 2.8px),
    radial-gradient(circle at 93% 39%, var(--snow-near) 1.2px, transparent 2.7px),
    radial-gradient(circle at 43% 52%, var(--snow-near) 1.5px, transparent 2.8px),
    radial-gradient(circle at 9% 66%, var(--snow-near) 1.3px, transparent 2.6px),
    radial-gradient(circle at 69% 83%, var(--snow-near) 1.2px, transparent 2.7px);
}

.wordmark-badge { position: relative; }

.holiday-hat {
  position: absolute;
  top: -10px;
  left: -6px;
  width: 28px;
  height: 18px;
  pointer-events: none;
  background: radial-gradient(circle at 4px 12px, #fff 1.4px, #dce8f6 3px, transparent 3.5px);
  filter: drop-shadow(0 2px 1.5px rgb(21 31 42 / 33%));
  transform: rotate(-18deg);
}

.holiday-hat::before, .holiday-hat::after { position: absolute; content: ""; }

.holiday-hat::before {
  top: 1px;
  left: 5px;
  width: 20px;
  height: 14px;
  border-radius: 68% 48% 12% 18% / 92% 100% 15% 18%;
  background: linear-gradient(145deg, #fa8994, #c44c61 48%, #92384b 88%);
  transform: skewX(10deg);
}

.holiday-hat::after {
  right: 2px;
  bottom: 1px;
  left: 8px;
  height: 5px;
  border-radius: 4px;
  background: linear-gradient(#fff 35%, #dbe9fd 85%);
}

.holiday-greeting {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  width: fit-content;
  margin-bottom: 15px;
  padding: 5px 10px;
  border: 1px solid var(--winter-line);
  border-radius: 100px;
  background: var(--winter-badge);
  color: var(--winter-text);
  font-size: 12px;
  font-weight: 800;
}

.holiday-greeting span { font-size: 15px; line-height: 1; }

.hero-visual::before {
  inset: -17% -4%;
  background: radial-gradient(ellipse at 58% 50%, var(--winter-blue), transparent 65%);
}

.hero-visual img { box-shadow: var(--shadow), 0 0 0 5px var(--winter-ice); }

.holiday-lights {
  position: absolute;
  z-index: 1;
  top: -2px;
  right: 5%;
  left: 5%;
  display: flex;
  align-items: start;
  justify-content: space-around;
  height: 35px;
  pointer-events: none;
}

.holiday-lights::before {
  position: absolute;
  inset: 0 0 12px;
  border-bottom: 1px solid rgb(225 244 255 / 61%);
  border-radius: 0 0 50% 50%;
  filter: drop-shadow(0 1px 1px rgb(0 0 0 / 70%));
  content: "";
}

.holiday-lights i {
  position: relative;
  top: var(--dip, 21px);
  width: 6px;
  height: 9px;
  border-radius: 50%;
  background: var(--bulb, #ddeeff);
  box-shadow: 0 0 6px var(--bulb, #ddeeff), 0 0 1px 1px rgb(0 0 0 / 36%);
}

.holiday-lights i:nth-child(4n + 2) { --bulb: #a7d4f1; }
.holiday-lights i:nth-child(4n + 3) { --bulb: #edf7ff; }
.holiday-lights i:nth-child(4n) { --bulb: #b5cfe5; }
.holiday-lights i:is(:first-child, :last-child) { --dip: 12px; }
.holiday-lights i:is(:nth-child(2), :nth-last-child(2)) { --dip: 17px; }
.holiday-lights i:is(:nth-child(3), :nth-last-child(3)) { --dip: 20px; }

.overview-panel {
  padding: clamp(18px, 3vw, 32px);
  border: 1px solid var(--winter-line);
  border-radius: var(--radius);
  background: var(--surface);
}

.faq-a {
  display: grid;
  grid-template-rows: 0fr;
  padding: 0;
  visibility: hidden;
  opacity: 0;
}

.faq-a > div { min-height: 0; overflow: hidden; }
.faq-a p { padding: 10px 15px 8px; }
.faq-item.is-open .faq-a { display: grid; grid-template-rows: 1fr; visibility: visible; opacity: 1; }

@supports ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .site-header, .auth-shell { --blur: blur(22px) saturate(122%); }

  .overview-panel, .checkout-state, .account-card {
    background: var(--winter-glass);
    -webkit-backdrop-filter: blur(15px) saturate(116%);
    backdrop-filter: blur(15px) saturate(116%);
  }
}

@media (prefers-reduced-motion: no-preference) {
  .winter-sky::before, .winter-sky::after {
    will-change: transform;
    animation: winter-fall var(--snow-speed) linear infinite;
  }
  .holiday-lights i { animation: winter-light 3.6s ease-in-out infinite alternate both; }
  .holiday-lights i:nth-child(even) { animation-delay: -2.3s; }
  .holiday-lights i:nth-child(3n) { animation-delay: -1.2s; }
  .hero-content > * { animation: surface-in .62s var(--winter-ease) backwards; }
  .hero-content > :nth-child(2) { animation-delay: 55ms; }
  .hero-content > :nth-child(3) { animation-delay: 100ms; }
  .hero-content > :nth-child(4) { animation-delay: 145ms; }
  .hero-content > :nth-child(5) { animation-delay: 185ms; }
  .hero-visual { animation: surface-in .74s var(--winter-ease) 85ms backwards; }
  .theme-toggle svg { animation: theme-icon-in .3s var(--winter-ease) both; }
  .site-header.is-open .header-nav { animation: surface-in .25s var(--winter-ease); }
  .section-entered, .auth-shell, .account-card, .account-panel, .document-content {
    animation: surface-in .48s var(--winter-ease);
  }

  .price-card input:checked + .price-content .price-choice::before { animation: winter-select .29s var(--winter-ease); }

  .site-header, .lux-card, .overview-panel, .document-content {
    transition: background-color .28s ease, border-color .2s ease, color .28s ease, transform .3s var(--winter-ease), box-shadow .3s ease;
  }

  .header-action, .theme-toggle, .nav-burger, .button, .hero-preview, .to-top, .store-item-card, .faq-q, .checkout-method span, .account-tabs button, .account-exit {
    transition: background-color .2s ease, border-color .2s ease, color .2s ease, transform .3s var(--winter-ease);
  }

  .faq-a { transition: grid-template-rows .32s var(--winter-ease), opacity .22s ease, visibility .32s; }
  .faq-q svg { transition: transform .28s var(--winter-ease); }

  @media (hover: hover) and (pointer: fine) {
    .button:hover:not(:disabled), .hero-preview:hover, .theme-toggle:hover, .header-action:hover { transform: translateY(-2px); }
    .bento-card:hover, .price-card:hover .price-content { transform: translateY(-3px); box-shadow: var(--shadow); }
    .price-card:active .price-content, .button:active:not(:disabled), .theme-toggle:active { transform: scale(.98); }
  }
}

@keyframes winter-fall {
  0% { transform: translate(0, 0); }
  50% { transform: translate(var(--snow-drift), calc(var(--snow-tile-height) / 2)); }
  100% { transform: translate(0, var(--snow-tile-height)); }
}

@keyframes winter-light {
  from { opacity: .68; }
  to { opacity: 1; }
}

@keyframes surface-in {
  from { opacity: .6; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes theme-icon-in {
  from { opacity: .45; transform: rotate(-32deg) scale(.85); }
  to { opacity: 1; transform: rotate(0) scale(1); }
}

@keyframes winter-select {
  50% { transform: scale(1.23); }
}

@media (min-width: 741px) {
  .hero { padding-top: clamp(60px, 6.2vw, 92px); }
}

@media (max-width: 740px) {
  .hero-visual::before { inset-inline: -3%; }
  .holiday-lights { right: 4%; left: 4%; }
  .holiday-greeting { margin-bottom: 12px; }
}

@media (max-width: 360px) {
  .header-inner > .wordmark { gap: 7px; font-size: 15px; }
  .header-inner .wordmark-badge { width: 27px; height: 27px; }
}
