:root {
  --night: #101B33;
  --dusk: #1E3056;
  --dusk-2: #27406E;
  --snow: #FAFCFF;
  --frost: #C9D6EE;
  --frost-dim: #93A5C6;
  --ink: #15223F;
  --amber: #F6A93C;
  --amber-deep: #E08F1E;
  --line: rgba(201, 214, 238, 0.18);
  --display: "Fredoka", "Trebuchet MS", sans-serif;
  --text: "Atkinson Hyperlegible", "Segoe UI", sans-serif;
  --measure: 62ch;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  overflow-x: clip;
  background: var(--night);
  background-image: linear-gradient(180deg, var(--dusk) 0, var(--night) 900px);
  background-repeat: no-repeat;
  color: var(--frost);
  font: 400 1.0625rem/1.6 var(--text);
  -webkit-font-smoothing: antialiased;
}

a { color: var(--snow); text-underline-offset: 3px; }
a:focus-visible, .btn:focus-visible, summary:focus-visible {
  outline: 3px solid var(--amber);
  outline-offset: 3px;
  border-radius: 6px;
}

h1, h2, h3 {
  font-family: var(--display);
  color: var(--snow);
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.1;
  margin: 0 0 0.5em;
}
h1 { font-size: clamp(2.1rem, 6vw, 4.4rem); overflow-wrap: anywhere; }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); }
h3 { font-size: 1.3rem; font-weight: 500; }
p { margin: 0 0 1em; max-width: var(--measure); }

.sr-only {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

/* Header */
.top {
  display: flex; align-items: center; justify-content: space-between;
  max-width: 1180px; margin: 0 auto; padding: 20px 24px;
}
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  font: 600 1.35rem var(--display); color: var(--snow); text-decoration: none;
}
.brand img { border-radius: 7px; }
.top nav { display: flex; gap: 22px; align-items: center; }
.top nav a { color: var(--frost); text-decoration: none; }
.top nav a:hover { color: var(--snow); }
.top .nav-get { color: var(--snow); font-weight: 700; }

main > section {
  max-width: 1180px;
  margin: 0 auto;
  padding: 72px 24px;
}

/* Buttons */
.actions { display: flex; flex-wrap: wrap; gap: 14px; margin: 28px 0 18px; }
.btn {
  display: inline-block;
  padding: 14px 22px;
  border-radius: 999px;
  font: 600 1.05rem var(--display);
  text-decoration: none;
  transition: transform .15s ease, background-color .15s ease;
}
.btn:active { transform: translateY(1px); }
/* Not available yet (before launch). */
.btn[aria-disabled="true"] { opacity: 0.55; pointer-events: none; cursor: default; }
.btn-primary { background: var(--snow); color: var(--ink); }
.btn-primary:hover { background: #fff; }
.btn-quiet { color: var(--snow); box-shadow: inset 0 0 0 2px var(--line); }
.btn-quiet:hover { box-shadow: inset 0 0 0 2px var(--frost-dim); }
.btn-amber { background: var(--amber); color: var(--ink); }
.btn-amber:hover { background: #FFB955; }
.fine { font-size: 0.92rem; color: var(--frost-dim); }

/* Hero */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 56px;
  align-items: center;
  padding-top: 40px !important;
}
.lede { font-size: 1.25rem; color: var(--frost); }

/* The demo: a small desktop where the snow really settles. */
.demo {
  position: relative;
  height: 460px;
  border-radius: 18px;
  overflow: hidden;
  background:
    radial-gradient(120% 80% at 70% 0%, #2B4A80 0%, transparent 60%),
    linear-gradient(180deg, #213762 0%, #142446 100%);
  box-shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.6), inset 0 0 0 1px var(--line);
  touch-action: none;
  user-select: none;
}
#snow { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 3; pointer-events: none; }
.win {
  position: absolute;
  left: 14%; top: 36%;
  width: 56%;
  background: #F3F6FB;
  color: var(--ink);
  border-radius: 10px;
  box-shadow: 0 18px 40px -12px rgba(0, 0, 0, 0.55);
  z-index: 1;
  cursor: grab;
}
.win.dragging { cursor: grabbing; }
.win-bar {
  display: flex; justify-content: space-between; align-items: center;
  padding: 9px 12px;
  border-bottom: 1px solid #DDE4F0;
  font: 500 0.9rem var(--display);
}
.win-btns { display: flex; gap: 10px; }
.win-btns i { width: 10px; height: 2px; background: #6B7A99; display: block; margin-top: 4px; }
.win-body { padding: 12px 16px 16px; font-size: 0.92rem; }
.win-body p { margin: 0 0 6px; font-weight: 700; }
.win-body ul { margin: 0; padding-left: 18px; }
.taskbar {
  position: absolute; left: 0; right: 0; bottom: 0; height: 40px;
  background: rgba(16, 27, 51, 0.82);
  backdrop-filter: blur(6px);
  display: flex; justify-content: center; align-items: center; gap: 12px;
  z-index: 1;
}
.taskbar span { width: 22px; height: 22px; border-radius: 6px; background: rgba(201, 214, 238, 0.28); }
.mascot {
  position: absolute; left: 0; top: 0;
  width: 60px; height: 60px;
  z-index: 2;
  pointer-events: none;
  will-change: transform;
}
.demo-hint {
  position: absolute; left: 16px; right: 16px; top: 12px; margin: 0;
  font-size: 0.85rem; color: var(--frost-dim);
  z-index: 4;
  transition: opacity .6s ease;
}

/* What it does */
.what-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 36px 64px;
  margin-top: 36px;
}
.what-grid p { color: var(--frost); }

/* Friend */
.friend {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
  gap: 56px;
  align-items: center;
}
.friend-art { width: 100%; height: auto; aspect-ratio: 1 / 1; max-width: 300px; justify-self: center; filter: drop-shadow(0 20px 30px rgba(0, 0, 0, 0.35)); }

/* Plus */
.section-lede { font-size: 1.15rem; }
.compare {
  width: 100%;
  max-width: 860px;
  border-collapse: collapse;
  margin-top: 32px;
}
.compare th, .compare td { padding: 14px 16px; text-align: left; border-bottom: 1px solid var(--line); }
.compare thead th { font: 600 1.2rem var(--display); color: var(--snow); }
.compare thead th:last-child { color: var(--amber); }
.compare tbody th { font-weight: 400; color: var(--frost); }
.compare td { color: var(--snow); white-space: nowrap; }
.compare td:last-child { background: rgba(246, 169, 60, 0.07); }
.compare tfoot th, .compare tfoot td { border-bottom: 0; padding-top: 20px; }
.price { font: 600 1.6rem var(--display); color: var(--amber); }
.price-note { display: block; font-size: 0.88rem; color: var(--frost-dim); white-space: normal; }

/* Download */
.dl-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 48px;
  margin-top: 28px;
}
.dl-options > div { padding-top: 20px; border-top: 2px solid var(--line); }

/* FAQ */
.faq details { max-width: 760px; border-bottom: 1px solid var(--line); }
.faq summary {
  cursor: pointer;
  padding: 18px 0;
  font: 500 1.15rem var(--display);
  color: var(--snow);
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; float: right; color: var(--frost-dim); }
.faq details[open] summary::after { content: "−"; }
.faq details p { padding-bottom: 8px; }

/* Footer */
footer {
  max-width: 1180px; margin: 0 auto; padding: 40px 24px 56px;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 16px;
  border-top: 1px solid var(--line);
  color: var(--frost-dim);
}
footer p { margin: 0; font-family: var(--display); }
footer nav { display: flex; gap: 22px; }
footer a { color: var(--frost-dim); }

/* Legal pages */
.legal { max-width: 760px; margin: 0 auto; padding: 32px 24px 72px; }
.legal h1 { font-size: clamp(2rem, 4vw, 2.8rem); }
.legal h2 { font-size: 1.5rem; margin-top: 1.6em; }
.legal li { margin-bottom: 0.4em; }
.legal code { color: var(--snow); }
.legal hr { border: 0; border-top: 1px solid var(--line); margin: 48px 0; }

@media (max-width: 900px) {
  .hero, .friend { grid-template-columns: 1fr; gap: 36px; }
  .demo { height: 380px; }
  .win { left: 8%; top: 30%; width: 76%; }
  .win-body { font-size: 0.8rem; padding: 10px 12px 12px; }
  .win-body li:nth-child(n+3) { display: none; }
  .what-grid, .dl-options { grid-template-columns: 1fr; gap: 28px; }
  main > section { padding: 52px 16px; }
  .top { padding: 16px; }
  .top nav a:not(.nav-get) { display: none; }
  .compare td { white-space: normal; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
}

/* ===== Festive season: burgundy knit, string lights, page snow, pixel village ===== */
.page-snow { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 50; }

/* String of Christmas lights along the top of the page. */
.lights { position: absolute; left: 0; right: 0; top: 0; height: 46px; pointer-events: none; z-index: 5; overflow: hidden; }
.lights svg { width: 100%; height: 46px; display: block; }
.lights .bulb { animation: twinkle 3.2s ease-in-out infinite; }
.lights .bulb:nth-of-type(3n) { animation-delay: -1.1s; }
.lights .bulb:nth-of-type(3n+1) { animation-delay: -2.2s; }
@keyframes twinkle { 0%, 100% { opacity: 1; } 50% { opacity: 0.55; } }
@media (prefers-reduced-motion: reduce) { .lights .bulb { animation: none; } }
body { position: relative; }
.top { position: relative; z-index: 6; padding-top: 34px !important; }

/* ---------- B: classic Christmas ---------- */
.festive {
  --frost: #F5E6E6;
  --frost-dim: #D9B8BC;
  --line: rgba(255, 220, 220, 0.18);
  background-color: #4A0E1A;
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='48'%3E%3Cg fill='none' stroke='%23ffffff' stroke-opacity='0.07' stroke-width='2'%3E%3Cpath d='M0 12 L12 0 L24 12 L36 0 L48 12'/%3E%3Cpath d='M0 36 L12 24 L24 36 L36 24 L48 36'/%3E%3C/g%3E%3Cg fill='%23ffffff' fill-opacity='0.06'%3E%3Ccircle cx='24' cy='24' r='2.5'/%3E%3Ccircle cx='0' cy='24' r='2.5'/%3E%3Ccircle cx='48' cy='24' r='2.5'/%3E%3C/g%3E%3C/svg%3E"),
    linear-gradient(180deg, #6E1426 0, #4A0E1A 700px, #380A14 1400px);
}
.festive .compare td:last-child { background: rgba(246, 196, 80, 0.10); }
.festive .compare thead th:last-child, .festive .price { color: #F6C450; }
.festive .btn-amber { background: #F6C450; }
.festive .demo { box-shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.7), inset 0 0 0 1px rgba(255, 220, 220, 0.2); }


/* ---------- C: burgundy + 16-bit village ---------- */
.village { width: 100%; height: 192px; margin-top: -60px; position: relative; z-index: 1; overflow: hidden; line-height: 0; }
.village canvas { image-rendering: pixelated; display: block; }

