/* Midway Donuts marketing site */
@font-face {
  font-family: "Fredoka";
  src: url("fonts/Fredoka.ttf") format("truetype");
  font-weight: 300 700;
  font-display: swap;
}

:root {
  --bg: #fff6e8;
  --bg-deep: #f9e8cf;
  --surface: #fffcf6;
  --ink: #2a1222;
  --ink-soft: #6a4658;
  --line: #e6d2b8;
  --accent: #0a6570;
  --accent-bright: #17aeb8;
  --accent-soft: #d9f3f4;
  --on-accent: #ffffff;
  --teal-a: #14b8c4;
  --teal-b: #3fd2d6;
  --teal-glow: #b9f6ee;
  --yellow: #ffe14d;
  --pink: #ff3d92;
  --cream: #fff6e2;
  --blue: #35c9ff;
  --green: #7cf06a;
  --purple: #a56bff;
  --orange: #ff9a3c;
  --spring: cubic-bezier(.34, 1.56, .64, 1);

  --font-display: "Fredoka", "Avenir Next Rounded", "Arial Rounded MT Bold", sans-serif;
  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-fun: "Fredoka", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  --step--1: 0.9375rem;
  --step-0: 1.0625rem;
  --step-1: 1.25rem;
  --step-2: 1.5rem;
  --step-3: 2rem;
  --step-4: 2.75rem;
  --step-5: clamp(2.75rem, 2rem + 3vw, 4.25rem);

  --space-1: 0.5rem;
  --space-2: 1rem;
  --space-3: 1.5rem;
  --space-4: 2.5rem;
  --space-5: 4rem;
  --space-6: 6.5rem;

  --radius-s: 8px;
  --radius-m: 14px;
  --radius-pill: 999px;
  --measure: 36rem;
  --wrap: 72rem;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal, .reveal-tilt, .stagger > * { opacity: 1 !important; transform: none !important; }
  .sunburst { display: none; }
  .balloons { display: none; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  overflow-x: hidden;
  font-size: var(--step-0);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }
a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 0.15em; }
a:hover { text-decoration-thickness: 2px; }

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

body.fun { font-family: var(--font-fun); font-weight: 400; }
body.fun .lede, body.fun p { font-weight: 400; }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.01em;
  margin: 0;
  text-wrap: balance;
}
h1 { font-size: var(--step-5); }
h2 { font-size: clamp(2rem, 1.5rem + 2vw, 3rem); }
h3 { font-size: var(--step-2); font-weight: 500; }
p { margin: 0; }
.lede { font-size: var(--step-1); color: var(--ink-soft); max-width: var(--measure); }
.eyebrow {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: var(--step--1);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}

.skip-link {
  position: absolute; left: var(--space-2); top: -3rem;
  background: var(--ink); color: var(--on-accent);
  padding: 0.5rem 1rem; border-radius: var(--radius-s); z-index: 100;
}
.skip-link:focus { top: var(--space-2); }

.wrap { width: min(var(--wrap), 100% - 2.5rem); margin-inline: auto; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--space-2); min-height: 4rem;
}
.brand {
  display: flex; align-items: center; gap: 0.65rem;
  color: var(--ink); text-decoration: none;
  font-family: var(--font-display); font-weight: 600; font-size: var(--step-1);
}
.brand img { width: 36px; height: 36px; border-radius: 9px; transition: transform 600ms var(--spring); }
.brand:hover img { transform: rotate(360deg) scale(1.1); }
.site-nav { display: flex; align-items: center; gap: var(--space-3); }
.site-nav a:not(.btn) { color: var(--ink); text-decoration: none; font-weight: 500; }
.site-nav a:not(.btn):hover { text-decoration: underline; }
.nav-link-hide { display: none; }
@media (min-width: 40em) { .nav-link-hide { display: inline; } }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.6rem;
  min-height: 3rem; padding: 0.7rem 1.25rem;
  border-radius: var(--radius-pill);
  font-weight: 600; font-size: var(--step-0); line-height: 1.1;
  text-decoration: none; border: 2px solid transparent;
  transition: background-color 150ms ease, color 150ms ease, transform 300ms var(--spring), box-shadow 300ms ease;
}
.btn:hover { transform: translateY(-3px) scale(1.03); }
.btn:active { transform: translateY(0) scale(0.98); transition-duration: 80ms; }
.btn-primary { background: var(--ink); color: var(--on-accent); }
.btn-primary:hover { background: #45223a; }
.btn-secondary { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-secondary:hover { background: var(--bg-deep); }
.btn-small { min-height: 2.5rem; padding: 0.45rem 1rem; font-size: var(--step--1); }

.store-buttons { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.btn-store {
  background: var(--ink); color: var(--on-accent);
  padding: 0.6rem 1.25rem 0.6rem 1rem; min-height: 3.5rem;
  text-align: left; border-radius: var(--radius-m);
}
.btn-store:hover { background: #45223a; box-shadow: 0 14px 28px -14px rgba(42,18,34,.6); }
.btn-store svg { width: 26px; height: 26px; flex: none; fill: currentColor; }
.btn-store small { display: block; font-size: 0.72rem; font-weight: 500; opacity: 0.85; letter-spacing: 0.02em; }
.btn-store span { display: block; font-size: 1.15rem; font-weight: 600; line-height: 1.15; }
.store-note { font-size: var(--step--1); color: var(--ink-soft); }

/* ---------- phone frame ---------- */
.phone {
  position: relative;
  width: 100%;
  aspect-ratio: 660 / 1434;
  background: #1c1a1f;
  border-radius: 11% / 5.1%;
  padding: 1.5%;
  box-shadow: 0 30px 60px -30px rgba(42, 18, 34, 0.45), 0 1px 0 rgba(255,255,255,0.12) inset;
}
.phone img {
  width: 100%; height: 100%; object-fit: cover;
  border-radius: 9.8% / 4.5%;
}
.phone::after {
  content: ""; position: absolute; top: 3%; left: 50%; transform: translateX(-50%);
  width: 24%; height: 2.2%; background: #1c1a1f; border-radius: var(--radius-pill);
}

/* ---------- hero: teal sunburst midway ---------- */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  background: var(--teal-a); color: var(--ink);
  padding-block: calc(var(--space-5) + 2.5rem) var(--space-6);
}
.sunburst {
  position: absolute; inset: -40%; z-index: -2; pointer-events: none;
  background: repeating-conic-gradient(from 0deg, var(--teal-a) 0deg 12.857deg, var(--teal-b) 12.857deg 25.714deg);
  animation: spin 90s linear infinite;
  will-change: transform;
}
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(ellipse 60% 55% at 70% 50%, color-mix(in srgb, var(--teal-glow) 70%, transparent), transparent 70%),
    radial-gradient(ellipse 120% 90% at 50% 50%, transparent 55%, rgba(10, 143, 166, 0.45) 100%);
}
@keyframes spin { to { transform: rotate(360deg); } }

/* bunting garland */
.bunting {
  position: absolute; top: 0; left: -2%; width: 104%; height: 90px; z-index: 1; pointer-events: none;
  transform-origin: 50% 0;
  animation: sway 6s ease-in-out infinite alternate;
}
.bunting svg { width: 100%; height: 100%; overflow: visible; }
.bunting .flag { transform-box: fill-box; transform-origin: 50% 0; animation: flutter 2.2s ease-in-out infinite alternate; }
.bunting .flag:nth-child(odd) { animation-duration: 2.7s; animation-delay: -1s; }
.bunting .flag:nth-child(3n) { animation-delay: -0.6s; }
@keyframes sway { from { transform: rotate(-0.4deg) translateY(0); } to { transform: rotate(0.4deg) translateY(4px); } }
@keyframes flutter { from { transform: skewX(-4deg); } to { transform: skewX(4deg); } }

.hero .wrap { display: grid; gap: var(--space-5); align-items: center; position: relative; z-index: 2; }
.hero-copy { display: grid; gap: var(--space-3); justify-items: start; }
.badge {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: var(--ink); color: var(--cream);
  font-family: var(--font-display); font-weight: 600; font-size: var(--step--1);
  letter-spacing: 0.06em; text-transform: uppercase;
  padding: 0.45rem 0.9rem; border-radius: var(--radius-pill);
  animation: pop-in 700ms var(--spring) both;
}
.badge::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--yellow); animation: blink 1.4s steps(2) infinite; }
@keyframes blink { 50% { opacity: 0.35; } }

.hero h1 {
  color: var(--cream);
  -webkit-text-stroke: 0.045em var(--ink);
  paint-order: stroke fill;
  text-shadow: 0.06em 0.08em 0 var(--ink);
  max-width: 13ch;
  font-size: clamp(3rem, 2.2rem + 3.6vw, 5rem);
  line-height: 1.02;
}
.hero h1 .pop { color: var(--yellow); display: inline-block; }
.hero h1 .line { display: block; animation: rise 800ms var(--spring) both; }
.hero h1 .line:nth-child(2) { animation-delay: 120ms; }
.hero h1 .line:nth-child(3) { animation-delay: 240ms; }
@keyframes rise { from { opacity: 0; transform: translateY(28px) rotate(-2deg); } to { opacity: 1; transform: none; } }
@keyframes pop-in { from { opacity: 0; transform: scale(0.6); } to { opacity: 1; transform: none; } }

.hero .lede { color: var(--ink); font-weight: 500; animation: rise 800ms var(--spring) 360ms both; }
.hero .store-buttons { animation: rise 800ms var(--spring) 460ms both; }
.hero .store-note { color: var(--ink); animation: rise 800ms var(--spring) 560ms both; }
.hero .btn-store { box-shadow: 0 10px 0 -4px rgba(7, 90, 112, 0.35); }

/* phones + donut */
.hero-art { position: relative; display: flex; justify-content: center; min-height: 560px; }
.hero-art .phone { width: min(300px, 78%); }
.phone-front { animation: bob 5s ease-in-out infinite; }
.phone-back { animation: bob 6.5s ease-in-out -2s infinite; }
@keyframes bob { 0%, 100% { transform: translateY(0) rotate(-1.5deg); } 50% { transform: translateY(-14px) rotate(1deg); } }
.hero-art .phone-back { position: absolute; display: none; }
.donut {
  position: absolute; z-index: 3; pointer-events: none;
  width: clamp(130px, 28%, 230px); left: -4%; bottom: -3%;
  filter: drop-shadow(0 26px 22px rgba(7, 90, 112, 0.45));
  animation: float-spin 9s ease-in-out infinite;
}
@keyframes float-spin {
  0%, 100% { transform: translateY(0) rotate(-8deg); }
  50% { transform: translateY(-22px) rotate(10deg); }
}
.sparkle {
  position: absolute; width: 22px; height: 22px; z-index: 3; pointer-events: none; color: #fff;
  animation: twinkle 2.4s ease-in-out infinite;
}
.sparkle svg { width: 100%; height: 100%; fill: currentColor; }
.sparkle:nth-of-type(2) { animation-delay: -0.8s; width: 16px; height: 16px; }
.sparkle:nth-of-type(3) { animation-delay: -1.6s; width: 28px; height: 28px; }
@keyframes twinkle { 0%, 100% { opacity: 0.2; transform: scale(0.6) rotate(0); } 50% { opacity: 1; transform: scale(1) rotate(45deg); } }

@media (min-width: 56em) {
  .hero .wrap { grid-template-columns: 1.1fr 1fr; }
  .hero-art { min-height: 700px; justify-content: flex-start; }
  .hero-art .phone-front { width: 300px; position: relative; z-index: 2; margin-left: 6%; margin-top: 60px; }
  .hero-art .phone-back { display: block; width: 260px; left: 48%; top: 0; z-index: 1; }
  .donut { left: -10%; bottom: 2%; }
}

/* ---------- marquee ticker ---------- */
.ticker {
  position: relative; background: var(--ink); color: var(--cream);
  padding-block: 0.9rem; overflow: hidden;
  font-family: var(--font-display); font-weight: 600; font-size: var(--step-1); letter-spacing: 0.02em;
  border-block: 6px solid var(--ink);
}
.ticker::before, .ticker::after {
  content: ""; position: absolute; left: 0; right: 0; height: 6px;
  background: radial-gradient(circle at 10px 3px, var(--yellow) 3px, transparent 3.5px) 0 0 / 20px 6px repeat-x;
  animation: chase 0.9s steps(2) infinite;
}
.ticker::before { top: -6px; }
.ticker::after { bottom: -6px; animation-delay: -0.45s; }
@keyframes chase { to { background-position: 20px 0; } }
.ticker-track { display: flex; width: max-content; animation: marquee 48s linear infinite; }
.ticker:hover .ticker-track { animation-play-state: paused; }
.ticker ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 0; }
.ticker li { display: flex; align-items: center; gap: 1.25rem; padding-right: 1.25rem; white-space: nowrap; }
.ticker li .star { color: var(--yellow); font-size: 0.8em; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(32px); transition: opacity 700ms ease, transform 700ms var(--spring); }
.reveal.in { opacity: 1; transform: none; }
.reveal-tilt { transform: translateY(32px) rotate(-4deg); }
.feature-row.flip .reveal-tilt { transform: translateY(32px) rotate(4deg); }
.reveal-tilt.in { transform: none; }
.stagger > * { opacity: 0; transform: translateY(16px) scale(0.96); transition: opacity 500ms ease, transform 500ms var(--spring); }
.stagger.in > * { opacity: 1; transform: none; }

/* ---------- ferris wheel ornament ---------- */
.wheel { width: clamp(140px, 22vw, 240px); margin-inline: auto; color: var(--accent); }
.wheel svg { width: 100%; height: auto; overflow: visible; }
.wheel .rim { transform-origin: 100px 100px; animation: spin 24s linear infinite; }
.wheel .car { transform-box: fill-box; transform-origin: 50% 0; animation: swing 3s ease-in-out infinite alternate; }
@keyframes swing { from { transform: rotate(-6deg); } to { transform: rotate(6deg); } }
.section-intro.with-wheel { display: grid; grid-template-columns: 1fr; align-items: center; gap: var(--space-3); max-width: none; }
@media (min-width: 48em) { .section-intro.with-wheel { grid-template-columns: minmax(0, 44rem) auto; justify-content: space-between; } }

/* ---------- feature rows ---------- */
.section { padding-block: var(--space-6); }
.section-intro { display: grid; gap: var(--space-2); max-width: 44rem; margin-bottom: var(--space-5); }

.feature-row {
  display: grid; gap: var(--space-4); align-items: center;
  padding-block: var(--space-4);
}
.feature-row + .feature-row { border-top: 1px solid var(--line); }
.feature-row .phone { width: min(260px, 70%); margin-inline: auto; transition: transform 500ms var(--spring); }
.feature-row:hover .phone { transform: rotate(-2deg) scale(1.03); }
.feature-row.flip:hover .phone { transform: rotate(2deg) scale(1.03); }
.feature-copy { display: grid; gap: var(--space-2); max-width: 30rem; }
.feature-copy p { color: var(--ink-soft); }
@media (min-width: 56em) {
  .feature-row { grid-template-columns: 1fr 1fr; padding-block: var(--space-5); }
  .feature-row.flip .feature-art { order: 2; }
  .feature-row.flip .feature-copy { margin-left: 0; }
  .feature-copy { margin-left: auto; }
  .feature-row.flip .feature-copy { margin-right: auto; }
}

/* 2-up pair */
.pair {
  display: grid; gap: var(--space-4);
  border-top: 1px solid var(--line); padding-top: var(--space-5);
}
.pair-item { display: grid; gap: var(--space-3); align-content: start; }
.pair-item .phone { width: min(220px, 60%); }
.pair-item h3 { max-width: 20ch; }
.pair-item p { color: var(--ink-soft); max-width: 30rem; }
@media (min-width: 40em) { .pair { grid-template-columns: 1fr 1fr; } }

/* ---------- attractions: the big sign ---------- */
.band { background: var(--bg-deep); position: relative; overflow: hidden; }
.sign {
  display: inline-block; position: relative;
  background: var(--ink); color: var(--cream);
  padding: 0.9rem 1.6rem; border-radius: var(--radius-m);
  box-shadow: 0 0 0 6px var(--ink), 0 0 0 10px var(--yellow), 0 18px 40px -20px rgba(42,18,34,.6);
  margin-bottom: var(--space-2);
}
.sign h2 { color: var(--yellow); text-shadow: 0 0 18px rgba(255, 225, 77, 0.55); }
.sign h2 .big { color: var(--cream); font-size: 1.35em; display: inline-block; animation: wiggle 3s ease-in-out infinite; }
@keyframes wiggle { 0%, 100% { transform: rotate(-3deg); } 50% { transform: rotate(3deg); } }
.sign::before {
  content: ""; position: absolute; inset: -8px; border-radius: 18px; pointer-events: none;
  background:
    radial-gradient(circle, var(--yellow) 2.5px, transparent 3px) 0 0 / 16px 8px repeat-x,
    radial-gradient(circle, var(--yellow) 2.5px, transparent 3px) 0 100% / 16px 8px repeat-x,
    radial-gradient(circle, var(--yellow) 2.5px, transparent 3px) 0 0 / 8px 16px repeat-y,
    radial-gradient(circle, var(--yellow) 2.5px, transparent 3px) 100% 0 / 8px 16px repeat-y;
  animation: bulbs 1s steps(2) infinite;
}
@keyframes bulbs { to { background-position: 16px 0, 16px 100%, 0 16px, 100% 16px; } }

.attractions { display: grid; gap: var(--space-4); margin-top: var(--space-4); }
@media (min-width: 48em) { .attractions { grid-template-columns: repeat(3, 1fr); gap: var(--space-4); } }
.attractions h3 { display: flex; align-items: baseline; gap: 0.6rem; margin-bottom: var(--space-2); }
.attractions h3 .count {
  font-family: var(--font-body); font-size: var(--step--1); font-weight: 600;
  background: var(--ink); color: var(--cream); padding: 0.1rem 0.6rem; border-radius: var(--radius-pill);
}
.attractions ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.chip {
  display: inline-flex; align-items: center; gap: 0.55rem;
  background: var(--surface); border: 2px solid var(--ink);
  padding: 0.35rem 0.8rem 0.35rem 0.55rem; border-radius: var(--radius-pill);
  font-family: var(--font-display); font-weight: 500; font-size: var(--step--1);
  box-shadow: 3px 3px 0 var(--ink);
  transition: transform 300ms var(--spring), box-shadow 300ms ease;
}
.chip:hover { transform: translate(-2px, -3px) rotate(-1.5deg); box-shadow: 6px 7px 0 var(--ink); }
.dot { width: 14px; height: 14px; border-radius: 50%; flex: none; border: 2px solid var(--ink); }

.tiers { margin-top: var(--space-5); padding-top: var(--space-4); border-top: 2px dashed rgba(42,18,34,0.25); display: grid; gap: var(--space-3); }
.tier-list { display: flex; flex-wrap: wrap; gap: 0.75rem; list-style: none; margin: 0; padding: 0; counter-reset: tier; }
.ticket {
  counter-increment: tier; position: relative;
  display: inline-flex; align-items: center; gap: 0.6rem;
  background: var(--yellow); color: var(--ink); border: 2px solid var(--ink);
  font-family: var(--font-display); font-weight: 600; font-size: var(--step--1);
  padding: 0.5rem 1rem 0.5rem 0.8rem; border-radius: 6px;
  transition: transform 300ms var(--spring);
  --notch: var(--bg-deep);
}
.ticket::before, .ticket::after {
  content: ""; position: absolute; top: 50%; width: 14px; height: 14px; border-radius: 50%;
  background: var(--notch); border: 2px solid var(--ink); transform: translateY(-50%);
}
.ticket::before { left: -9px; clip-path: inset(0 0 0 50%); }
.ticket::after { right: -9px; clip-path: inset(0 50% 0 0); }
.ticket .n {
  font-size: 0.75em; background: var(--ink); color: var(--yellow);
  width: 1.6em; height: 1.6em; border-radius: 50%; display: grid; place-items: center;
}
.ticket:hover { transform: rotate(-3deg) translateY(-4px); }
.ticket.final { background: var(--pink); color: var(--ink); }
.ticket.final .n { color: var(--pink); }

/* ---------- fair play ---------- */
.plain { display: grid; gap: var(--space-4); }
.plain dl { display: grid; gap: var(--space-3); margin: 0; }
.plain dt { font-family: var(--font-display); font-weight: 600; font-size: var(--step-1); }
.plain dd { margin: 0.25rem 0 0; color: var(--ink-soft); max-width: 36rem; }
@media (min-width: 56em) {
  .plain { grid-template-columns: 1fr 1.4fr; align-items: start; }
  .plain dl { grid-template-columns: 1fr 1fr; gap: var(--space-4); }
}

/* ---------- download band: balloons ---------- */
.download {
  position: relative; isolation: isolate; overflow: hidden;
  background: var(--teal-a); color: var(--ink);
}
.download .sunburst { opacity: 0.9; animation-direction: reverse; }
.download .wrap {
  display: grid; gap: var(--space-4); align-items: center;
  padding-block: var(--space-6); position: relative; z-index: 2;
}
.download h2 {
  color: var(--cream); -webkit-text-stroke: 0.04em var(--ink); paint-order: stroke fill;
  text-shadow: 0.05em 0.07em 0 var(--ink);
}
.download .icon {
  width: 150px; height: 150px; border-radius: 34px;
  box-shadow: 0 24px 40px -18px rgba(7, 90, 112, 0.7), 0 0 0 5px var(--cream);
  animation: bob 6s ease-in-out infinite;
}
.download-copy { display: grid; gap: var(--space-3); }
.download-copy > p { font-weight: 500; }
.download .store-note { color: var(--ink); font-size: 0.8rem; }
.download .btn-store { background: var(--ink); box-shadow: 0 10px 0 -4px rgba(7, 90, 112, 0.35); }
.download .btn-store:hover { background: #45223a; }
@media (min-width: 48em) {
  .download .wrap { grid-template-columns: auto 1fr; gap: var(--space-5); }
}
.balloons { position: absolute; inset: 0; z-index: 1; pointer-events: none; overflow: hidden; }
.balloon {
  position: absolute; bottom: -140px; width: 54px; height: 70px;
  animation: drift var(--dur, 14s) linear var(--delay, 0s) infinite;
  left: var(--x, 10%);
}
.balloon svg { width: 100%; height: 100%; overflow: visible; }
.balloon .body { animation: balloon-sway 3s ease-in-out infinite alternate; transform-box: fill-box; transform-origin: 50% 100%; }
@keyframes drift { to { transform: translateY(calc(-100vh - 260px)); } }
@keyframes balloon-sway { from { transform: rotate(-7deg); } to { transform: rotate(7deg); } }

/* sprinkles burst (JS) */
.sprinkle {
  position: fixed; width: 10px; height: 4px; border-radius: 2px; pointer-events: none; z-index: 1000;
  animation: burst 900ms cubic-bezier(.2,.7,.3,1) forwards;
}
@keyframes burst {
  to { transform: translate(var(--dx), var(--dy)) rotate(var(--rot)); opacity: 0; }
}

/* ---------- footer ---------- */
.site-footer { padding-block: var(--space-4); border-top: 6px solid var(--ink); background: var(--bg-deep); font-size: var(--step--1); color: var(--ink-soft); }
.site-footer .wrap { display: grid; grid-template-columns: 1fr auto; gap: var(--space-2) var(--space-4); align-items: center; }
.site-footer .wordmark { grid-column: 1 / -1; width: 170px; height: auto; margin-bottom: var(--space-1); }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: flex; gap: var(--space-3); }
.site-footer a { color: var(--ink-soft); }

/* ---------- legal pages ---------- */
.legal { padding-block: var(--space-5) var(--space-6); }
.legal .wrap { max-width: 44rem; }
.legal header { display: grid; gap: var(--space-2); margin-bottom: var(--space-4); padding-bottom: var(--space-3); border-bottom: 1px solid var(--line); }
.legal h2 { font-size: var(--step-2); margin-top: var(--space-4); margin-bottom: var(--space-1); }
.legal p, .legal li { color: var(--ink); }
.legal p + p { margin-top: var(--space-2); }
.legal ul { padding-left: 1.25rem; }
.draft {
  border: 2px dashed var(--accent); border-radius: var(--radius-m);
  padding: var(--space-2) var(--space-3); background: var(--accent-soft);
  font-size: var(--step--1);
}
.draft strong { color: var(--accent); }
