/* SMPHosting winter / Christmas layer. Remove the two lines that load
   winter.css and winter.js to switch it off. */
:root {
  --ice: #bfe6ff; --ice-2: #8fd0ff; --snow: #f4fbff;
  --xmas-red: #ff4d5e; --xmas-red-ink: #3a0710; --gold: #ffd166;
  --grid-line: rgba(190, 225, 255, .05);
  --grid-glow: rgba(143, 208, 255, .10);
}
:root[data-theme="light"] { --snow: #ffffff; --grid-line: rgba(30, 70, 110, .06); --grid-glow: rgba(80, 150, 220, .10); }

/* night-sky glow: icy blue up top, a warm red ember low left */
body {
  background-image:
    radial-gradient(1100px 620px at 78% -6%, var(--grid-glow), transparent 70%),
    radial-gradient(760px 480px at -8% 42%, rgba(255, 77, 94, .045), transparent 70%),
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px) !important;
}

/* ---------- falling snow ---------- */
#winter-snow { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 60; }

/* ---------- string lights under the header ---------- */
.site-header { position: sticky; }
.xmas-lights {
  position: absolute; left: 0; right: 0; bottom: -13px; height: 18px; pointer-events: none; overflow: hidden; z-index: 1;
}
.xmas-lights::before { /* the wire */
  content: ""; position: absolute; left: 0; right: 0; top: -6px; height: 12px;
  background: radial-gradient(ellipse 22px 6px at 22px 0, transparent 70%, rgba(20, 40, 30, .9) 72%, rgba(20,40,30,.9) 80%, transparent 82%) 0 0 / 44px 12px repeat-x;
}
.xmas-lights i {
  position: absolute; top: 3px; width: 7px; height: 11px; border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
  background: var(--c); box-shadow: 0 0 8px 1px var(--c), 0 0 18px var(--c);
  animation: bulb 2.4s ease-in-out infinite; animation-delay: var(--d);
}
.xmas-lights i::before { content: ""; position: absolute; top: -3px; left: 1.5px; width: 4px; height: 4px; border-radius: 1px; background: #26372f; }
@keyframes bulb { 0%, 100% { opacity: 1; } 50% { opacity: .35; box-shadow: 0 0 2px var(--c); } }

/* ---------- snow resting on the top edge of cards (drips downward, so nothing gets clipped) ---------- */
.snowcap {
  position: absolute !important; left: 0; right: 0; top: 0; margin: 0 !important; height: 22px; pointer-events: none; z-index: 3 !important;
  background:
    radial-gradient(7px 9px at 6% 6px, var(--snow) 96%, transparent),
    radial-gradient(9px 14px at 17% 6px, var(--snow) 96%, transparent),
    radial-gradient(6px 8px at 29% 6px, var(--snow) 96%, transparent),
    radial-gradient(10px 16px at 43% 6px, var(--snow) 96%, transparent),
    radial-gradient(7px 10px at 58% 6px, var(--snow) 96%, transparent),
    radial-gradient(11px 13px at 71% 6px, var(--snow) 96%, transparent),
    radial-gradient(6px 9px at 84% 6px, var(--snow) 96%, transparent),
    radial-gradient(9px 12px at 95% 6px, var(--snow) 96%, transparent),
    linear-gradient(var(--snow), var(--snow)) 0 0 / 100% 6px no-repeat;
  border-radius: inherit; border-bottom-left-radius: 0; border-bottom-right-radius: 0;
  filter: drop-shadow(0 2px 3px rgba(0, 25, 50, .28));
  opacity: .96;
}
.btn-primary { position: relative; overflow: hidden; }
.btn-primary > .snowcap {
  height: 12px;
  background:
    radial-gradient(5px 6px at 12% 3px, var(--snow) 96%, transparent),
    radial-gradient(6px 8px at 34% 3px, var(--snow) 96%, transparent),
    radial-gradient(4px 5px at 57% 3px, var(--snow) 96%, transparent),
    radial-gradient(6px 7px at 80% 3px, var(--snow) 96%, transparent),
    linear-gradient(var(--snow), var(--snow)) 0 0 / 100% 3px no-repeat;
  filter: none;
}
.bento-card, .summary, .smp-showcase, .smp-community-card, .promo-strip, .auth-card, .sheet, .h-card, .aside-card, .faq-help, .status-summary { position: relative; overflow: hidden; }
.bento-card > .snowcap ~ *:first-of-type { position: relative; }
:root[data-theme="light"] .snowcap { filter: drop-shadow(0 1px 2px rgba(40, 80, 120, .45)); }
@media (prefers-color-scheme: light) { :root:not([data-theme="dark"]) .snowcap { filter: drop-shadow(0 1px 2px rgba(40, 80, 120, .45)); } }

/* ---------- Santa hat on the S logo ---------- */
.brand { position: relative; }
.brand .santa-hat { position: absolute; left: -7px; top: 2px; width: 26px; height: 20px; transform: rotate(-18deg); pointer-events: none; }

/* ---------- holiday greeting above the hero title ---------- */
.holiday-tag {
  display: inline-flex; align-items: center; gap: 8px; margin: 0 0 16px; padding: 6px 12px 6px 8px; border-radius: 999px;
  font: 500 .78rem/1 var(--font-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--text);
  border: 1px solid rgba(255, 77, 94, .35); background: linear-gradient(90deg, rgba(255, 77, 94, .14), rgba(143, 208, 255, .10));
}
.holiday-tag svg { width: 16px; height: 16px; color: var(--ice); animation: spin 12s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* frosty hero accent: green → icy white shimmer */
.hero h1 .accent {
  background: linear-gradient(100deg, var(--grass) 0%, var(--grass) 35%, var(--snow) 50%, var(--grass) 65%, var(--grass) 100%);
  background-size: 250% 100%; -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: frost 6s ease-in-out infinite;
}
@keyframes frost { 0%, 100% { background-position: 100% 0; } 50% { background-position: 0 0; } }

/* ytag dots become tiny ornaments */
.ytag::before { background: var(--xmas-red) !important; box-shadow: 0 0 10px rgba(255, 77, 94, .6) !important; border-radius: 50% !important; }
.layer-head:nth-of-type(odd) .ytag::before { background: var(--gold) !important; box-shadow: 0 0 10px rgba(255, 209, 102, .6) !important; }

/* candy-cane rule + snowdrift on top of the footer (own element, so the footer's own effects stay intact) */
.site-footer { position: relative; }
.xmas-footer { position: absolute; left: 0; right: 0; top: 0; height: 0; pointer-events: none; z-index: 3; }
.xmas-footer .cane { position: absolute; left: 0; right: 0; top: 0; height: 6px;
  background: repeating-linear-gradient(-45deg, var(--xmas-red) 0 10px, var(--snow) 10px 20px); opacity: .9; }
.xmas-footer .drift { position: absolute; left: 0; right: 0; top: -20px; height: 21px;
  background:
    radial-gradient(60px 20px at 8% 100%, var(--snow) 97%, transparent),
    radial-gradient(90px 24px at 30% 100%, var(--snow) 97%, transparent),
    radial-gradient(70px 18px at 55% 100%, var(--snow) 97%, transparent),
    radial-gradient(100px 24px at 80% 100%, var(--snow) 97%, transparent),
    radial-gradient(60px 16px at 97% 100%, var(--snow) 97%, transparent);
  opacity: .9; }

/* plan "selected" rung gets a warm red ring */
.rung:has(input:checked) { box-shadow: 0 0 0 1px rgba(255, 77, 94, .45), 0 10px 30px -14px rgba(255, 77, 94, .55); }

@media (prefers-reduced-motion: reduce) {
  .xmas-lights i, .holiday-tag svg, .hero h1 .accent { animation: none !important; }
  #winter-snow { display: none; }
}
@media (prefers-color-scheme: light) { :root:not([data-theme="dark"]) { --snow: #ffffff; --grid-line: rgba(30, 70, 110, .06); --grid-glow: rgba(80, 150, 220, .10); } }
@media (max-width: 860px) { .brand .santa-hat { left: -6px; } }

/* ---------- every section ---------- */
/* section titles get a small frosty snowflake */
.layer-head h2::after, .faq-grid h2::after, .page-head h1 .xmas-flake {
  display: inline-block; margin-left: .3em; font-size: .45em; vertical-align: .9em; color: var(--ice);
  text-shadow: 0 0 14px rgba(143, 208, 255, .7); animation: spin 14s linear infinite;
}
.layer-head h2::after, .faq-grid h2::after { content: "\2744"; }
.page-head .eyebrow::before { content: "\2605  "; color: var(--gold); }

/* FAQ: holly-red open marker and an icy rule */
.faq-list details { border-color: rgba(143, 208, 255, .14) !important; }
.faq-list details[open] summary { color: var(--ice); }
.faq-list details summary::marker { color: var(--xmas-red); }

/* plan list: frosted rows, red ribbon on the chosen one */
.rung { transition: box-shadow .25s, border-color .25s; }
.rung:hover { border-color: rgba(143, 208, 255, .35) !important; }
.rung:has(input:checked) { border-color: rgba(255, 77, 94, .55) !important; }

/* community cards: warm glow on hover */
.smp-community-card:hover { box-shadow: 0 0 0 1px rgba(255, 77, 94, .35), 0 20px 50px -20px rgba(255, 77, 94, .45); }

/* bento: icy stat numbers */
.spec-row b, .spec-row strong { text-shadow: 0 0 18px rgba(143, 208, 255, .25); }

/* inner page heads: soft aurora behind the title */
.page-head { background: radial-gradient(900px 300px at 20% 0%, rgba(143, 208, 255, .08), transparent 70%), radial-gradient(600px 260px at 90% 10%, rgba(255, 77, 94, .06), transparent 70%) !important; }
