/* Tiny Winter — fireside evening */
:root {
  --bg-0: #140d0c;
  --bg-1: #1b1211;
  --bg-2: #241715;
  --bg-3: #2b1a17;
  --surface: rgba(255, 240, 225, 0.035);
  --surface-hi: rgba(255, 240, 225, 0.065);
  --line: rgba(255, 226, 196, 0.10);
  --line-hi: rgba(255, 226, 196, 0.18);
  --text: #f6ece2;
  --muted: #bfae9f;
  --faint: #8e7d70;
  --amber: #f2b36b;
  --amber-deep: #d98a45;
  --cocoa: #2a1710;
  --cranberry: #b8474a;
  --pine: #3f6b55;
  --radius: 24px;
  --shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.65), 0 2px 6px rgba(0, 0, 0, 0.18);
  --serif: "Fraunces", "Iowan Old Style", Georgia, serif;
  --sans: "Inter", ui-sans-serif, system-ui, -apple-system, sans-serif;
  --gutter: clamp(16px, 4vw, 40px);
  /* Older names, still used by thanks.html */
  --display: var(--serif);
  --body: var(--sans);
  --script: var(--serif);
  --ink: var(--cocoa);
  --gold: var(--amber);
  --cream: var(--text);
  --card: var(--surface);
  --card-hi: var(--surface-hi);
  --sky-0: var(--bg-0);
  --red: var(--amber);
  color-scheme: dark;
}

* { box-sizing: border-box; }
/* No rubber-band bounce: it slides the page under the fixed snow canvases and detaches the drifts. */
html { scroll-behavior: smooth; scroll-padding-top: 100px; background: var(--bg-1); overscroll-behavior: none; }
body {
  margin: 0;
  min-height: 100vh;
  overscroll-behavior: none;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  color: var(--text);
  background:
    radial-gradient(1200px 700px at 50% -10%, rgba(242, 179, 107, 0.13), transparent 65%),
    radial-gradient(900px 600px at 85% 55%, rgba(184, 71, 74, 0.06), transparent 70%),
    linear-gradient(180deg, var(--bg-0) 0%, var(--bg-1) 30%, var(--bg-2) 70%, var(--bg-3) 100%);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img { max-width: 100%; height: auto; }
a { color: inherit; }
::selection { background: rgba(242, 179, 107, 0.35); }
kbd {
  font-family: var(--sans);
  font-size: 0.82em;
  font-weight: 600;
  padding: 1px 7px;
  border-radius: 6px;
  background: var(--surface-hi);
  border: 1px solid var(--line-hi);
  white-space: nowrap;
}
:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; border-radius: 8px; }

/* Sky & snow layers */
.sky { position: fixed; inset: 0; z-index: 0; pointer-events: none; }
.stars {
  position: absolute; inset: 0 0 40% 0;
  background-image:
    radial-gradient(1.2px 1.2px at 8% 12%, #ffe9cf 60%, transparent),
    radial-gradient(1px 1px at 22% 30%, #fff3e4 60%, transparent),
    radial-gradient(1.2px 1.2px at 35% 8%, #ffe2b8 60%, transparent),
    radial-gradient(1px 1px at 48% 22%, #fff3e4 60%, transparent),
    radial-gradient(1.5px 1.5px at 66% 10%, #fff3e4 60%, transparent),
    radial-gradient(1px 1px at 74% 34%, #fff3e4 60%, transparent),
    radial-gradient(1.2px 1.2px at 88% 16%, #ffe2b8 60%, transparent),
    radial-gradient(1px 1px at 94% 44%, #fff3e4 60%, transparent);
  opacity: 0.3;
  animation: twinkle 12s ease-in-out infinite alternate;
}
.stars--2 { transform: translate(3%, 5%) scale(1.1); animation-delay: -6s; opacity: 0.18; }
@keyframes twinkle { from { opacity: 0.15; } to { opacity: 0.35; } }

/* Width/height are set in px by the renderer (100vh is wrong on phones while the toolbar shows). */
.snow-canvas { position: fixed; top: 0; left: 0; width: 100%; height: 100%; pointer-events: none; }
.snow-canvas--back { z-index: 1; }
.snow-canvas--front { z-index: 40; }
/* Drifts on page elements: a canvas inside the document that scrolls with it (see sim/render.js). */
body { position: relative; }
/* Below the floating nav, buttons and toggles (z 30), above the page content (z 2). */
.snow-page { position: absolute; inset: 0; z-index: 25; overflow: hidden; pointer-events: none; }
.snow-page canvas { position: absolute; top: 0; left: 0; will-change: transform; }
.snow-off .snow-canvas, .snow-off .snow-page { visibility: hidden; }
/* Press-and-hold to roll a snowball on a phone: no text selection or long-press menus meanwhile. */
html.is-rolling, html.is-rolling * { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }

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

/* Typography */
.h2 {
  font-family: var(--serif);
  font-optical-sizing: auto;
  font-weight: 500;
  font-size: clamp(34px, 4.6vw, 56px);
  line-height: 1.06;
  letter-spacing: -0.022em;
  margin: 14px 0 44px;
  color: var(--text);
  max-width: 18ch;
  text-wrap: balance;
}
.h3 { font-family: var(--serif); font-weight: 500; font-size: clamp(24px, 2.6vw, 30px); line-height: 1.2; letter-spacing: -0.015em; margin: 6px 0 10px; color: var(--text); }
.script { font-family: var(--serif); font-style: italic; font-weight: 400; color: var(--amber); letter-spacing: -0.01em; }
.kicker {
  margin: 0;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 12.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--amber);
  opacity: 0.9;
}
.lead { color: var(--muted); font-size: 18px; max-width: 62ch; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 16px;
  letter-spacing: -0.005em;
  text-decoration: none;
  color: var(--cocoa);
  background: linear-gradient(180deg, #f7c387 0%, var(--amber) 45%, var(--amber-deep) 100%);
  border: 0;
  border-radius: 999px;
  padding: 12px 24px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45), 0 8px 24px -8px rgba(242, 160, 80, 0.55);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  cursor: pointer;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5), 0 12px 34px -8px rgba(242, 160, 80, 0.7); }
.btn:active { transform: translateY(0); }
.btn--lg { font-size: 17px; padding: 15px 30px; }
.btn--sm { font-size: 14px; padding: 8px 16px; }
.btn--ghost {
  color: var(--text);
  background: transparent;
  box-shadow: inset 0 0 0 1px var(--line-hi);
}
.btn--ghost:hover { background: var(--surface-hi); box-shadow: inset 0 0 0 1px rgba(255, 226, 196, 0.28); }
.link { color: var(--muted); font-weight: 500; text-decoration: none; transition: color 0.2s ease; }
.link:hover { color: var(--text); }
.link span { display: inline-block; transition: transform 0.2s ease; }
.link:hover span { transform: translateX(3px); }

/* Nav */
.nav-wrap { position: fixed; top: 14px; left: 0; right: 0; z-index: 30; padding: 0 var(--gutter); pointer-events: none; }
.nav {
  pointer-events: auto;
  max-width: 1080px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 7px 7px 7px 16px;
  background: rgba(28, 18, 16, 0.62);
  backdrop-filter: blur(18px) saturate(1.2);
  -webkit-backdrop-filter: blur(18px) saturate(1.2);
  border: 1px solid var(--line);
  border-radius: 999px;
  box-shadow: 0 10px 40px -18px rgba(0, 0, 0, 0.7);
}
.brand { display: inline-flex; align-items: center; gap: 9px; text-decoration: none; font-family: var(--serif); font-weight: 500; font-size: 19px; letter-spacing: -0.01em; color: var(--text); }
.brand img { width: 26px; height: 26px; }
.nav-links { display: flex; gap: 28px; }
.nav-links a { text-decoration: none; color: var(--muted); font-weight: 500; font-size: 14.5px; transition: color 0.2s ease; }
.nav-links a:hover { color: var(--text); }

/* Hero */
.hero { padding: clamp(112px, 15vh, 150px) var(--gutter) 40px; text-align: center; }
.badge {
  display: inline-flex; align-items: center; gap: 10px;
  margin: 0 0 22px;
  padding: 6px 14px;
  font-weight: 500; font-size: 13.5px;
  color: var(--muted);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
}
.badge-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--amber); box-shadow: 0 0 10px var(--amber); }
.hero-title { margin: 0; display: flex; flex-direction: column; align-items: center; }
.hero-line {
  font-family: var(--serif); font-optical-sizing: auto; font-weight: 500;
  font-size: clamp(48px, min(8vw, 11vh), 104px);
  line-height: 1; letter-spacing: -0.035em;
  color: var(--text);
}
.hero-script {
  font-family: var(--serif); font-style: italic; font-weight: 400;
  font-size: clamp(48px, min(8vw, 11vh), 104px);
  line-height: 1.05; letter-spacing: -0.03em;
  color: var(--amber);
  text-shadow: 0 0 60px rgba(242, 179, 107, 0.28);
}
.hero-sub { max-width: 540px; margin: 22px auto 28px; color: var(--muted); font-size: clamp(17px, 1.7vw, 19px); text-wrap: pretty; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 26px; justify-content: center; align-items: center; }
.hero-ctas { gap: 14px 16px; }
.email-cta { background: rgba(255, 240, 225, 0.04); }
.email-icon { flex: none; margin-right: 2px; opacity: 0.9; }
.email-hint { margin: 12px auto 0; max-width: 34ch; color: var(--muted); font-size: 14px; }
.is-mac-desktop .email-cta { display: none; }
.fineprint { margin: 16px 0 0; color: var(--faint); font-size: 13.5px; }
.fineprint b { color: var(--amber); font-weight: 600; }
.hero-caption { margin: 26px auto 0; color: var(--faint); font-size: 14px; max-width: 520px; }

/* The demo Mac */
.mac {
  position: relative;
  max-width: 1080px;
  margin: 52px auto 0;
  padding: 12px;
  background: linear-gradient(180deg, #2a2422, #1b1615);
  border: 1px solid rgba(255, 226, 196, 0.12);
  border-radius: 26px;
  box-shadow: 0 50px 120px -40px rgba(0, 0, 0, 0.85), 0 0 0 1px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}
.mac::before {
  content: ""; position: absolute; inset: -12% -8% 30%; z-index: -1; pointer-events: none;
  background: radial-gradient(closest-side, rgba(242, 160, 80, 0.20), transparent);
  filter: blur(20px);
}
.mac-notch { position: absolute; top: 12px; left: 50%; width: 140px; height: 18px; transform: translateX(-50%); background: #1f1a18; border-radius: 0 0 11px 11px; z-index: 3; }
.screen {
  position: relative;
  aspect-ratio: 1600 / 1040;
  border-radius: 15px;
  overflow: hidden;
  background: #0d1a3a url("/video/hero-poster.webp?v=2") center / cover;
}
.screen-video { display: block; width: 100%; height: 100%; object-fit: cover; }
.menubar-flake { color: #ffe1bd; }

/* Cards */
.card {
  position: relative;
  background: linear-gradient(180deg, var(--surface-hi), var(--surface));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 240, 225, 0.05);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.section { max-width: 1080px; margin: 0 auto; padding: 160px var(--gutter) 0; }

.tryit { max-width: 1080px; margin: 0 auto; padding: 96px var(--gutter) 0; }
.tryit-card { display: grid; grid-template-columns: 1.2fr 1fr; gap: 36px; align-items: center; padding: 38px 42px; }
.tryit-copy p { margin: 0; color: var(--muted); max-width: 52ch; }
.tryit-copy .kicker { margin-bottom: 6px; }
.tryit-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-end; }
.chip {
  font-family: var(--sans); font-weight: 600; font-size: 14.5px;
  color: var(--text);
  background: linear-gradient(180deg, rgba(255, 240, 225, 0.16), rgba(255, 240, 225, 0.07));
  border: 1px solid rgba(255, 226, 196, 0.24);
  border-radius: 999px;
  padding: 11px 20px;
  cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14), 0 1px 0 rgba(0, 0, 0, 0.35), 0 8px 18px -8px rgba(0, 0, 0, 0.7);
  transition: transform 0.15s ease, background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, color 0.2s ease;
}
.chip:hover {
  transform: translateY(-1px);
  background: linear-gradient(180deg, rgba(255, 240, 225, 0.22), rgba(255, 240, 225, 0.10));
  border-color: rgba(242, 179, 107, 0.55);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18), 0 1px 0 rgba(0, 0, 0, 0.35), 0 12px 26px -10px rgba(242, 160, 80, 0.45);
}
.chip:active {
  transform: translateY(1px);
  background: rgba(255, 240, 225, 0.08);
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.35);
  transition-duration: 0.05s;
}
.chip[aria-pressed="true"] { background: var(--amber); border-color: var(--amber); color: var(--cocoa); }
.chip.is-nope { animation: nope 0.35s ease; }
@keyframes nope { 25% { transform: translateX(-4px); } 75% { transform: translateX(4px); } }

/* Moments */
.bento { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.moment { padding: 32px 34px 36px; }
.moment h3 { font-family: var(--serif); font-weight: 500; font-size: 25px; line-height: 1.2; letter-spacing: -0.015em; margin: 22px 0 8px; color: var(--text); }
.moment p { margin: 0; color: var(--muted); max-width: 46ch; }
.moment-art { height: 110px; display: flex; align-items: flex-end; justify-content: flex-start; }
.moment-art svg { height: 110px; width: auto; }
.moment-art img { max-height: 110px; width: auto; filter: drop-shadow(0 10px 18px rgba(0, 0, 0, 0.45)); }

/* Friends */
.friends { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.friend { padding: 34px 28px 34px; text-align: center; }
.friend h3 { font-family: var(--serif); font-weight: 500; font-size: 25px; letter-spacing: -0.015em; margin: 22px 0 6px; color: var(--text); }
.friend p { margin: 0 auto; color: var(--muted); max-width: 32ch; }
.sticker {
  display: block; margin: 0 auto;
  height: 210px; width: auto;
  object-fit: contain;
  filter: drop-shadow(0 18px 22px rgba(0, 0, 0, 0.5));
  transition: transform 0.5s cubic-bezier(.2, .8, .2, 1);
}
.sticker--wide { height: auto; width: 88%; margin-top: 36px; margin-bottom: 30px; }
.friend:hover .sticker { transform: translateY(-4px) rotate(-2deg); }

/* Menu section */
.menu-section { display: grid; grid-template-columns: 1.15fr 1fr; gap: 64px; align-items: start; }
.ticks { list-style: none; padding: 0; margin: 30px 0 0; display: grid; gap: 16px; }
.ticks li { position: relative; padding-left: 26px; color: var(--muted); }
.ticks li::before { content: ""; position: absolute; left: 2px; top: 0.62em; width: 7px; height: 7px; border-radius: 50%; background: var(--amber); box-shadow: 0 0 10px rgba(242, 179, 107, 0.6); }
.ticks b { color: var(--text); font-weight: 600; }
.menu-mock {
  margin-top: 40px;
  padding: 6px;
  background: rgba(250, 243, 235, 0.94);
  color: #33241f;
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 14px;
  box-shadow: 0 40px 90px -30px rgba(0, 0, 0, 0.8), 0 2px 8px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(20px);
  font-size: 14px;
}
.menu-mock-head { padding: 6px 12px 10px; font-weight: 600; color: #6d5a52; border-bottom: 1px solid rgba(51, 36, 31, 0.1); margin-bottom: 4px; }
.menu-mock hr { border: 0; border-top: 1px solid rgba(51, 36, 31, 0.1); margin: 5px 8px; }
.mi {
  display: block; width: 100%;
  text-align: left;
  font: inherit; font-weight: 500;
  color: inherit;
  background: none; border: 0;
  padding: 5px 12px 5px 30px;
  border-radius: 6px;
  position: relative;
  cursor: pointer;
}
button.mi:hover { background: #c96f3e; color: #fff; }
.mi--check[aria-checked="true"]::before { content: "✓"; position: absolute; left: 11px; font-weight: 700; }
.mi--label { color: #9a8780; cursor: default; font-size: 12.5px; padding-top: 2px; padding-bottom: 2px; }
.mi--tip { color: #9a8780; cursor: default; font-size: 12.5px; padding-top: 1px; padding-bottom: 1px; }
.mi-group { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 4px 8px 4px 30px; }
.mi-label { font-weight: 500; }
.seg { display: inline-flex; background: rgba(51, 36, 31, 0.07); border-radius: 8px; padding: 2px; }
.seg button { font: inherit; font-size: 12.5px; font-weight: 600; color: #6d5a52; background: none; border: 0; border-radius: 6px; padding: 4px 10px; cursor: pointer; }
.seg button[aria-pressed="true"] { background: #fff; color: #33241f; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.16); }

/* Wallpapers */
.wall-lead { margin: -20px 0 44px; }
.wall-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px 22px; }
.polaroid {
  margin: 0; padding: 8px 8px 2px;
  background: #f7efe4;
  border-radius: 10px;
  box-shadow: 0 24px 50px -22px rgba(0, 0, 0, 0.8), 0 2px 6px rgba(0, 0, 0, 0.25);
  transform: rotate(calc(var(--tilt, 0deg) * 0.4));
  transition: transform 0.5s cubic-bezier(.2, .8, .2, 1), box-shadow 0.5s ease;
}
.polaroid:hover { transform: rotate(0deg) translateY(-4px); box-shadow: 0 34px 60px -22px rgba(0, 0, 0, 0.85), 0 2px 6px rgba(0, 0, 0, 0.25); }
.polaroid img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 5px; }
.polaroid figcaption { font-family: var(--serif); font-style: italic; font-size: 16px; line-height: 2.2; color: #5a4036; text-align: center; }
.price-note { color: var(--faint); font-weight: 500; font-size: 13.5px; }

/* Pricing */
.price-card { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; padding: 56px 60px; overflow: hidden; }
.price-card::after { content: ""; position: absolute; left: -120px; top: -160px; width: 520px; height: 520px; border-radius: 50%; background: radial-gradient(circle, rgba(242, 179, 107, 0.14), transparent 65%); pointer-events: none; }
.price { margin: 14px 0 10px; display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; line-height: 1; }
.price [data-price] { font-family: var(--serif); font-weight: 500; font-size: clamp(56px, 7vw, 84px); letter-spacing: -0.035em; color: var(--text); }
.price-once { font-size: clamp(30px, 3.4vw, 40px); }
.price-ctas { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; margin-top: 28px; }
.flakes-list { list-style: none; margin: 0; padding: 0 0 0 48px; display: grid; gap: 13px; align-content: center; border-left: 1px solid var(--line); position: relative; }
.flakes-list li { position: relative; padding-left: 28px; color: var(--muted); font-size: 15.5px; }
.flakes-list li::before {
  content: ""; position: absolute; left: 0; top: 0.42em; width: 14px; height: 8px;
  border-left: 1.6px solid var(--amber); border-bottom: 1.6px solid var(--amber);
  transform: rotate(-45deg);
}

/* FAQ */
.faq { max-width: 820px; }
.faq .h2 { margin-bottom: 36px; }
.qa { border-bottom: 1px solid var(--line); }
.qa:first-of-type { border-top: 1px solid var(--line); }
.qa summary {
  list-style: none;
  cursor: pointer;
  padding: 24px 56px 24px 2px;
  font-family: var(--serif); font-weight: 500; font-size: 20px; letter-spacing: -0.01em;
  color: var(--text);
  position: relative;
  transition: color 0.2s ease;
}
.qa summary:hover { color: var(--amber); }
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after {
  content: "+";
  position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
  font-family: var(--sans); font-weight: 300; font-size: 26px; line-height: 1;
  color: var(--amber);
  transition: transform 0.3s ease;
}
.qa[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.qa p { margin: 0; padding: 0 56px 26px 2px; color: var(--muted); }
.qa a { color: var(--text); text-underline-offset: 3px; }

/* Final + footer */
.final { text-align: center; padding-bottom: 80px; }
.final-title { margin-left: auto; margin-right: auto; max-width: none; font-size: clamp(40px, 6vw, 72px); }
.footer { margin-top: 40px; }
.village { display: block; width: 100%; height: 220px; }
.village-lights rect { animation: flicker 6s ease-in-out infinite alternate; }
.village-lights rect:nth-child(3n) { animation-delay: -2s; }
.village-lights rect:nth-child(4n) { animation-delay: -4s; }
@keyframes flicker { 0%, 100% { opacity: 1; } 50% { opacity: 0.78; } }
.footer-row {
  background: #efe4d6;
  color: #6d5a52;
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px;
  padding: 10px var(--gutter) 110px;
  font-size: 14px;
}
.footer-row p { margin: 0; }
.footer-row .brand { color: #3a2a24; font-size: 17px; }
.footer-row .brand img { width: 22px; height: 22px; }

/* Floating bits */
.float-cta {
  position: fixed; right: 22px; bottom: 26px; z-index: 30;
  opacity: 0; transform: translateY(12px); pointer-events: none;
  transition: opacity 0.35s ease, transform 0.35s ease;
}
.float-cta.is-visible { opacity: 1; transform: none; pointer-events: auto; }
.corner-toggles { position: fixed; left: 18px; bottom: 26px; z-index: 30; display: flex; gap: 8px; }
.snow-toggle, .music-toggle {
  font-family: var(--sans); font-weight: 500; font-size: 13px;
  color: var(--muted);
  background: rgba(28, 18, 16, 0.7);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 13px;
  cursor: pointer;
  transition: color 0.2s ease;
}
.snow-toggle:hover, .music-toggle:hover { color: var(--text); }
.snow-toggle[aria-pressed="false"], .music-toggle[aria-pressed="false"] { opacity: 0.7; }
.music-toggle[aria-pressed="true"] { color: var(--amber); }

/* Responsive */
@media (max-width: 960px) {
  .wall-grid { grid-template-columns: repeat(2, 1fr); }
  .nav-links { display: none; }
  .friends { grid-template-columns: 1fr 1fr; }
  .menu-section, .price-card, .tryit-card { grid-template-columns: 1fr; }
  .tryit-actions { justify-content: flex-start; }
  .price-card { padding: 44px 34px; }
  .flakes-list { border-left: 0; padding-left: 0; border-top: 1px solid var(--line); padding-top: 32px; }
  .menu-mock { margin-top: 0; }
  .section { padding-top: 120px; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .hero { padding-top: 112px; }
  .bento, .friends { grid-template-columns: 1fr; }
  .mac { padding: 7px; border-radius: 18px; margin-top: 40px; }
  .mac-notch { display: none; }
  .screen { border-radius: 12px; }
  .float-cta { display: none; }
  .tryit-card { padding: 28px 22px; }
  .moment { padding: 26px 24px 30px; }
  .price-card { padding: 36px 22px; }
  .btn--lg { font-size: 16px; padding: 13px 24px; }
  .hero-ctas { flex-direction: column; align-items: stretch; max-width: 340px; margin: 0 auto; gap: 12px; }
  .nav { padding: 6px 6px 6px 14px; }
  .brand { font-size: 17px; }
  .qa summary { font-size: 18px; }
  .section { padding-top: 96px; }
  .corner-toggles { left: 12px; bottom: 14px; }
  .snow-toggle, .music-toggle { width: 40px; height: 40px; padding: 0; font-size: 16px; }
  .snow-toggle span, .music-toggle span { display: none; }
  .footer-row { padding-bottom: 72px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .stars, .village-lights rect { animation: none; }
  .door.is-wiggling, .friend--wrapped:hover .gift-sticker { animation: none; }
}

/* Friends: the six from the calendar */
.friends-lead { margin: -20px 0 44px; }
.sticker--wide-ish { height: auto; width: 74%; max-width: 230px; margin-top: 10px; margin-bottom: 0; }
.friends-more { margin: 88px 0 36px; }
.friends-more-title { font-family: var(--serif); font-weight: 500; font-size: clamp(26px, 3.4vw, 36px); line-height: 1.15; letter-spacing: -0.02em; margin: 8px 0 12px; color: var(--text); }
.friend--small { position: relative; padding: 30px 24px 30px; }
/* Seven wrapped friends: the odd one out sits in the middle of the last row. */
.friends--six > :last-child:nth-child(3n + 1) { grid-column: 2; }
.friend--small .sticker { height: 150px; max-width: 86%; }
.friend--small h3 { font-size: 22px; margin-top: 18px; }

/* Friends still wrapped */
.friend--wrapped { display: flex; flex-direction: column; align-items: center; }
.gift-sticker { height: 132px; transform: rotate(var(--tilt, 0deg)); }
.friend--wrapped:hover .gift-sticker { animation: wiggle 0.6s ease-in-out; }
.clue { font-family: var(--serif); font-style: italic; font-size: 18px; line-height: 1.4; color: var(--text) !important; margin-top: 20px !important; }

/* Advent calendar */
.cal-section { display: grid; grid-template-columns: 1fr 1.05fr; gap: 56px; align-items: center; }
.cal-card { padding: 22px; }
.cal-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; }
.cal-section > * { min-width: 0; }
.cal-stats { list-style: none; padding: 0; margin: 28px 0 6px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.cal-stats li {
  background: var(--surface-hi); border: 1px solid var(--line); border-radius: 16px;
  padding: 16px 14px 14px; display: flex; flex-direction: column; gap: 4px;
}
.cal-stats b { font-family: var(--serif); font-weight: 500; font-size: clamp(34px, 4vw, 46px); line-height: 1; color: var(--amber); }
.cal-stats span { font-size: 14px; line-height: 1.3; color: var(--muted); }
.door {
  --paper: linear-gradient(160deg, #8a3434, #5c2226);
  --ribbon: rgba(242, 205, 150, 0.85);
  position: relative; aspect-ratio: 1; padding: 0; border: 0; cursor: pointer;
  border-radius: 10px; overflow: hidden;
  display: grid; place-items: center;
  background:
    linear-gradient(90deg, transparent 44%, var(--ribbon) 44% 56%, transparent 56%),
    linear-gradient(0deg, transparent 44%, var(--ribbon) 44% 56%, transparent 56%),
    var(--paper);
  box-shadow: inset 0 0 0 1px rgba(255, 226, 196, 0.12), 0 6px 14px -8px rgba(0, 0, 0, 0.7);
  transition: transform 0.35s cubic-bezier(.2, .8, .2, 1);
}
.door--w1 { --paper: linear-gradient(160deg, #4b7a62, #2b4a3c); }
.door--w2 { --paper: linear-gradient(160deg, #7f98b8, #4f6584); --ribbon: rgba(246, 236, 226, 0.85); }
.door--w3 { --paper: linear-gradient(160deg, #a5463f, #6e2a2a); --ribbon: rgba(246, 236, 226, 0.8); }
.door:hover, .door:focus-visible { transform: translateY(-2px) rotate(-1.5deg); }
.door:focus-visible { outline: 2px solid var(--amber); outline-offset: 2px; }
.door.is-wiggling { animation: wiggle 0.5s ease-in-out; }
.door i {
  position: absolute; top: 4px; left: 6px; z-index: 1;
  font-family: var(--serif); font-style: normal; font-weight: 600; font-size: 13px;
  color: rgba(255, 236, 214, 0.95); text-shadow: 0 1px 3px rgba(0, 0, 0, 0.7);
}
.door--open { background: linear-gradient(160deg, #f3e4cf, #dcc5a6); cursor: default; }
.door--open i { color: #6b2e2e; text-shadow: none; }
.door--open b { font-weight: 400; font-size: 24px; color: #8a3434; margin-top: 6px; }
.cal-peek { margin: 16px 2px 0; min-height: 1.4em; font-family: var(--serif); font-style: italic; font-size: 16px; color: var(--muted); text-align: center; }
@keyframes wiggle {
  0%, 100% { transform: rotate(0); }
  20% { transform: rotate(-7deg); }
  40% { transform: rotate(6deg); }
  60% { transform: rotate(-4deg); }
  80% { transform: rotate(2deg); }
}

/* Wallpapers: the "+20 more" tile */
.polaroid { position: relative; }
.more-tile { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 5px; background: #2b1a17; text-decoration: none; }
.more-frost { position: absolute; inset: -14%; display: grid; grid-template-columns: 1fr 1fr; filter: blur(12px) saturate(1.2); }
.polaroid .more-frost img { width: 100%; height: 100%; aspect-ratio: auto; object-fit: cover; border-radius: 0; }
.more-tile::after { content: ""; position: absolute; inset: 0; background: linear-gradient(160deg, rgba(255, 255, 255, 0.2), rgba(20, 13, 12, 0.15)); }
.more-count { position: absolute; inset: 0; z-index: 1; display: grid; place-content: center; text-align: center; color: #fff; font-family: var(--serif); font-size: 17px; text-shadow: 0 2px 10px rgba(0, 0, 0, 0.45); }
.more-count b { display: block; font-weight: 500; font-size: clamp(34px, 4vw, 46px); line-height: 1; }

@media (max-width: 960px) {
  .cal-section { grid-template-columns: 1fr; gap: 36px; }
  .friends--six { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .friends--six > :last-child:nth-child(3n + 1) { grid-column: auto; }
  .friends--six > :last-child:nth-child(odd) { grid-column: 1 / -1; justify-self: center; width: calc(50% - 12px); }
}
@media (max-width: 640px) {
  .friends--six { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
  .friend--small { padding: 26px 14px 22px; }
  .friend--small .sticker { height: 110px; }
  .friend--small p { font-size: 14.5px; }
  .gift-sticker { height: 100px; }
  .clue { font-size: 16px; }
  .cal-stats { gap: 8px; }
  .cal-stats li { padding: 12px 10px; }
  .cal-stats span { font-size: 12.5px; }
  .cal-grid { gap: 6px; }
  .cal-card { padding: 14px; }
}

/* Cards with a looping video of the feature: it fills the top of the card and fades out behind the text */
.has-video { overflow: hidden; isolation: isolate; display: flex; flex-direction: column; justify-content: flex-end; min-height: 380px; }
.friend.has-video { min-height: 420px; }
.card-video {
  position: absolute; inset: 0 0 auto 0; z-index: -2;
  width: 100%; height: 74%; object-fit: cover; object-position: var(--pos, 50% 50%);
  -webkit-mask-image: linear-gradient(180deg, #000 55%, transparent 100%);
  mask-image: linear-gradient(180deg, #000 55%, transparent 100%);
}
.friend .card-video { height: 66%; }
.has-video::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(20, 13, 12, 0.18) 0%, rgba(20, 13, 12, 0.22) 45%, rgba(20, 13, 12, 0.7) 75%, rgba(20, 13, 12, 0.85) 100%);
}
.has-video h3 { margin-top: 0; text-shadow: 0 2px 12px rgba(0, 0, 0, 0.6); }
.has-video p { color: #d9c9bb; text-shadow: 0 1px 8px rgba(0, 0, 0, 0.6); }
@media (max-width: 640px) {
  .has-video { min-height: 340px; }
  .friend.has-video { min-height: 380px; }
}
