/* Christmas Countdown 2026 — microsite
   Palette/fonts pulled 1:1 from lib/core/theme/app_colors.dart and
   pubspec.yaml so this reads as the same product as the app. */

@font-face {
  font-family: "Fredoka";
  src: url("../fonts/Fredoka-VariableFont.ttf") format("truetype-variations");
  font-weight: 300 700;
  font-display: swap;
}

@font-face {
  font-family: "MountainsOfChristmas";
  src: url("../fonts/MountainsOfChristmas-Regular.ttf") format("truetype");
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "MountainsOfChristmas";
  src: url("../fonts/MountainsOfChristmas-Bold.ttf") format("truetype");
  font-weight: 700;
  font-display: swap;
}

@font-face {
  font-family: "Inter";
  src: url("../fonts/Inter-VariableFont.ttf") format("truetype-variations");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --christmas-red: #c41e3a;
  --pine-green: #0b4f3e;
  --warm-gold: #d4af37;
  --holly-green: #3fa34d;
  --snow-white: #ffffff;
  --night-blue: #0a1128;
  --sky-horizon-gold: #6b4a2a;
  --glass-border: rgba(255, 255, 255, 0.25);
  --glass-fill: rgba(10, 17, 40, 0.82);
  --frost-blue: #bfd7ea;
  --ember-orange: #e86a33;
  --silhouette: #060b1e;
  --text-dim: rgba(255, 255, 255, 0.72);
  --text-faint: rgba(255, 255, 255, 0.5);
  --max-w: 880px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Inter", system-ui, sans-serif;
  color: var(--snow-white);
  background: linear-gradient(
    to bottom,
    #0a1128 0%,
    #1b1140 32%,
    #2e1a47 64%,
    #3d2350 100%
  );
  background-attachment: fixed;
  position: relative;
  overflow-x: hidden;
}

/* ---------- background: twinkle + snow + silhouette, CSS-only ---------- */

.bg-twinkle {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    radial-gradient(2px 2px at 12% 18%, rgba(255,255,255,.85), transparent 60%),
    radial-gradient(1.5px 1.5px at 28% 8%, rgba(212,175,55,.8), transparent 60%),
    radial-gradient(2px 2px at 44% 22%, rgba(255,255,255,.7), transparent 60%),
    radial-gradient(1.5px 1.5px at 62% 12%, rgba(255,255,255,.8), transparent 60%),
    radial-gradient(2px 2px at 78% 20%, rgba(212,175,55,.7), transparent 60%),
    radial-gradient(1.5px 1.5px at 90% 6%, rgba(255,255,255,.75), transparent 60%),
    radial-gradient(2px 2px at 6% 5%, rgba(255,255,255,.6), transparent 60%);
  animation: twinkle 4s ease-in-out infinite alternate;
}

@keyframes twinkle {
  from { opacity: .5; }
  to { opacity: 1; }
}

.bg-snow {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.bg-snow span {
  position: absolute;
  top: -5%;
  display: block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.85);
  animation: fall linear infinite;
}

@keyframes fall {
  from { transform: translateY(-10vh) translateX(0); }
  to { transform: translateY(110vh) translateX(20px); }
}

.bg-silhouette {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  height: 90px;
  z-index: 0;
  pointer-events: none;
  fill: var(--silhouette);
  opacity: 0.9;
}

/* ---------- layout shell ---------- */

.page {
  position: relative;
  z-index: 1;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 20px 48px;
}

header.site-header {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 18px 20px 12px;
  flex-wrap: wrap;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--snow-white);
}

.brand img {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
}

.brand span {
  font-family: "MountainsOfChristmas", cursive;
  font-weight: 700;
  font-size: 26px;
  line-height: 1;
  color: var(--snow-white);
}

nav.site-nav {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

nav.site-nav a {
  color: var(--text-dim);
  text-decoration: none;
  font-size: 14.5px;
  font-weight: 500;
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
  transition: color 0.15s, border-color 0.15s;
}

nav.site-nav a:hover,
nav.site-nav a.active {
  color: var(--warm-gold);
  border-color: var(--warm-gold);
}

/* language switcher */

.lang-switch {
  position: relative;
}

.lang-switch button {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--glass-fill);
  border: 1px solid var(--glass-border);
  color: var(--snow-white);
  border-radius: 999px;
  padding: 7px 12px;
  font-size: 13.5px;
  font-family: inherit;
  cursor: pointer;
}

.lang-switch button:hover {
  border-color: var(--warm-gold);
}

.lang-switch .chev {
  font-size: 10px;
  color: var(--warm-gold);
}

.lang-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  background: var(--glass-fill);
  border: 1px solid var(--glass-border);
  border-radius: 14px;
  padding: 6px;
  display: none;
  flex-direction: column;
  min-width: 160px;
  backdrop-filter: blur(14px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
  z-index: 20;
}

.lang-menu.open {
  display: flex;
}

.lang-menu button {
  background: none;
  border: none;
  color: var(--snow-white);
  text-align: left;
  padding: 9px 10px;
  border-radius: 9px;
  font-size: 14px;
  cursor: pointer;
  font-family: inherit;
  display: flex;
  justify-content: space-between;
}

.lang-menu button:hover {
  background: rgba(255, 255, 255, 0.08);
}

.lang-menu button[aria-current="true"] {
  color: var(--warm-gold);
}

/* ---------- hero ---------- */

.hero {
  text-align: center;
  padding: 28px 8px 8px;
}

.hero h1 {
  font-family: "MountainsOfChristmas", cursive;
  font-weight: 700;
  font-size: clamp(34px, 7vw, 54px);
  margin: 0 0 10px;
  background: linear-gradient(180deg, #fff, var(--warm-gold));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  line-height: 1.05;
}

.hero p.lede {
  font-size: 16.5px;
  color: var(--text-dim);
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.6;
}

.hero-icon {
  font-size: 44px;
  margin-bottom: 6px;
}

/* ---------- glass panels / cards ---------- */

.glass {
  background: var(--glass-fill);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  backdrop-filter: blur(14px);
}

.section {
  margin-top: 34px;
}

.section > h2 {
  font-family: "Fredoka", sans-serif;
  font-weight: 600;
  font-size: 22px;
  margin: 0 0 4px;
  color: var(--snow-white);
}

.section > p.section-sub {
  color: var(--text-dim);
  margin: 0 0 18px;
  font-size: 14.5px;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 14px;
}

.feature-card {
  padding: 18px;
}

.feature-card .icon {
  font-size: 26px;
  margin-bottom: 8px;
  display: block;
}

.feature-card h3 {
  font-family: "Fredoka", sans-serif;
  font-size: 16px;
  font-weight: 600;
  margin: 0 0 6px;
}

.feature-card p {
  font-size: 13.5px;
  color: var(--text-dim);
  line-height: 1.55;
  margin: 0;
}

/* ---------- FAQ accordion ---------- */

.faq-item {
  margin-bottom: 10px;
  overflow: hidden;
}

.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 16px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-family: "Fredoka", sans-serif;
  font-weight: 500;
  font-size: 15px;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary .plus {
  color: var(--warm-gold);
  font-size: 20px;
  transition: transform 0.2s;
  flex: none;
}

.faq-item[open] summary .plus {
  transform: rotate(45deg);
}

.faq-item .faq-body {
  padding: 0 18px 16px;
  color: var(--text-dim);
  font-size: 14px;
  line-height: 1.65;
}

.faq-item .faq-body a {
  color: var(--frost-blue);
}

/* ---------- legal pages ---------- */

.legal h1 {
  font-family: "Fredoka", sans-serif;
  font-weight: 600;
  font-size: clamp(26px, 5vw, 34px);
  margin: 22px 0 4px;
}

.legal .updated {
  color: var(--text-faint);
  font-size: 13px;
  margin-bottom: 26px;
}

.legal .glass {
  padding: 26px 26px 6px;
}

.legal section {
  margin-bottom: 26px;
}

.legal h2 {
  font-family: "Fredoka", sans-serif;
  font-size: 17px;
  font-weight: 600;
  color: var(--warm-gold);
  margin: 0 0 8px;
}

.legal p,
.legal li {
  font-size: 14.5px;
  line-height: 1.7;
  color: var(--text-dim);
}

.legal ul {
  padding-left: 20px;
  margin: 8px 0;
}

.legal a {
  color: var(--frost-blue);
}

.legal strong {
  color: var(--snow-white);
}

/* ---------- footer ---------- */

footer.site-footer {
  position: relative;
  z-index: 1;
  max-width: var(--max-w);
  margin: 40px auto 0;
  padding: 22px 20px 30px;
  border-top: 1px solid var(--glass-border);
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  justify-content: space-between;
}

footer.site-footer .links {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

footer.site-footer a {
  color: var(--text-dim);
  text-decoration: none;
  font-size: 13.5px;
}

footer.site-footer a:hover {
  color: var(--warm-gold);
}

footer.site-footer .copy {
  color: var(--text-faint);
  font-size: 12.5px;
}

.contact-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--glass-fill);
  border: 1px solid var(--glass-border);
  border-radius: 999px;
  padding: 8px 16px;
  color: var(--warm-gold) !important;
  font-weight: 600;
}

/* ---------- misc ---------- */

.btn-gold {
  display: inline-block;
  background: linear-gradient(180deg, #e8cf6d, var(--warm-gold));
  color: #241a02;
  font-weight: 700;
  padding: 12px 26px;
  border-radius: 999px;
  text-decoration: none;
  font-size: 14.5px;
  margin-top: 18px;
  box-shadow: 0 6px 20px rgba(212, 175, 55, 0.35);
}

@media (max-width: 560px) {
  header.site-header {
    justify-content: center;
    text-align: center;
  }
  nav.site-nav {
    justify-content: center;
    width: 100%;
    order: 3;
  }
  footer.site-footer {
    justify-content: center;
    text-align: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  .bg-twinkle,
  .bg-snow span {
    animation: none !important;
  }
}
