/* RetroHead Alarm: site styles (shared by index.html and privacy-policy.html) */

:root {
  --sun: #FF9A4D;          /* base: morning apricot */
  --sun-deep: #F47C3C;     /* deeper band */
  --night: #2D1846;        /* bedroom at 6:45, footer at bedtime */
  --night-soft: #43266B;
  --night-line: #1B0E2B;
  --clock: #FFD23F;        /* the mascot's body */
  --alert: #E4345C;        /* its bells, and every call to action */
  --alert-deep: #B82C4F;
  --ink: #2A1638;          /* text + illustration outlines */
  --paper: #FFF4E6;
  --skin: #EDB58A;
  --wood: #7B4B2A;

  --display: "Bagel Fat One", "Arial Rounded MT Bold", "Trebuchet MS", system-ui, sans-serif;
  --body: "Atkinson Hyperlegible", "Segoe UI", system-ui, sans-serif;
  --hand: "Gochi Hand", "Chalkboard SE", "Comic Sans MS", cursive;

  --gutter: clamp(16px, 4vw, 40px);
  --maxw: 1120px;
  --pop: cubic-bezier(.2, 1.55, .4, 1);
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--sun);
  color: var(--ink);
  font: 400 1.0625rem/1.6 var(--body);
  overflow-x: hidden;
}
img, svg { max-width: 100%; }
a { color: inherit; text-decoration-thickness: 2px; text-underline-offset: 3px; }
h1, h2, h3 {
  font-family: var(--display);
  font-weight: 400;
  line-height: 1.02;
  margin: 0;
  text-wrap: balance;
  letter-spacing: .005em;
}
h1 { font-size: clamp(2.6rem, 6.4vw, 4.9rem); }
h2 { font-size: clamp(2.1rem, 5vw, 3.5rem); }
h3 { font-size: clamp(1.35rem, 2.6vw, 1.75rem); }
p { margin: 0; max-width: 60ch; }

.wrap { max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(64px, 9vw, 108px); position: relative; }
.lead { font-size: clamp(1.1rem, 1.8vw, 1.25rem); margin-top: 18px; }
.hand { font-family: var(--hand); font-size: 1.3rem; line-height: 1.25; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* Keyboard focus: an ink ring with a paper halo, readable on every band. */
:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 3px;
  box-shadow: 0 0 0 7px var(--paper);
  border-radius: 6px;
}
.on-night :focus-visible { outline-color: var(--paper); box-shadow: 0 0 0 7px var(--ink); }

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 10;
  background: var(--paper); color: var(--ink); padding: 10px 16px; border-radius: 10px;
  border: 3px solid var(--ink); font-weight: 700;
}
.skip-link:focus { top: 12px; }

/* ------------------------------------------------------------------ buttons */
.btn-play {
  display: inline-flex; align-items: center; gap: .55em;
  background: var(--alert); color: #fff;
  font-family: var(--display); font-size: 1.2rem; line-height: 1;
  padding: .85em 1.35em;
  border: 3px solid var(--ink); border-radius: 999px;
  box-shadow: 4px 5px 0 var(--ink);
  text-decoration: none;
  transition: transform .12s ease, box-shadow .12s ease;
}
.btn-play:hover { transform: translate(-2px, -2px); box-shadow: 6px 7px 0 var(--ink); }
.btn-play:active { transform: translate(3px, 4px); box-shadow: 1px 1px 0 var(--ink); }
.btn-play svg { width: 1.2em; height: 1.2em; flex: none; }
.on-night .btn-play { border-color: var(--paper); box-shadow: 4px 5px 0 var(--paper); }
.on-night .btn-play:hover { box-shadow: 6px 7px 0 var(--paper); }
.on-night .btn-play:active { box-shadow: 1px 1px 0 var(--paper); }
.btn-small { font-size: 1rem; padding: .7em 1.1em; }

/* ------------------------------------------------------------------ header */
.top {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding-block: 18px;
}
.logo {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--display); font-size: 1.35rem; text-decoration: none; line-height: 1;
}
.logo svg { width: 44px; height: 44px; }
.top nav ul { display: flex; gap: 22px; list-style: none; margin: 0; padding: 0; }
.top nav a { text-decoration: none; font-weight: 700; }
.top nav a:hover { text-decoration: underline; }
@media (max-width: 860px) { .top nav { display: none; } }

/* ------------------------------------------------------------------ hero */
.hero { background: var(--night); color: var(--paper); position: relative; overflow: hidden; }
.hero-grid {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: clamp(24px, 4vw, 56px); align-items: center;
  padding-block: clamp(24px, 5vw, 56px) clamp(96px, 12vw, 150px);
}
.hero-copy { display: grid; gap: 22px; }
.hero-copy .hand { color: var(--clock); font-size: 1.45rem; }
.hero-copy .lead { margin-top: 0; }
.hero-note { font-size: .95rem; opacity: .85; }
.scene { width: 100%; height: auto; display: block; overflow: visible; }
.scene .zzz text { font-family: var(--display); fill: var(--paper); }
.scene .burst-text { font-family: var(--display); }
.scene .thought-text { font-family: var(--hand); }
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
}
.horizon { position: absolute; left: 0; right: 0; bottom: -1px; width: 100%; height: clamp(40px, 7vw, 90px); display: block; }

/* ------------------------------------------------------------------ Special Alarm: the route */
.route {
  list-style: none; margin: clamp(40px, 6vw, 64px) 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(16px, 3vw, 32px);
}
.stop { position: relative; display: grid; gap: 12px; align-content: start; }
.stop svg { width: 100%; height: auto; display: block; overflow: visible; }
.stop h3 { font-size: 1.35rem; }
.stop h3 small { display: block; font-family: var(--body); font-weight: 700; font-size: .9rem; opacity: .75; margin-bottom: 4px; }
.stop .hand { font-size: 1.22rem; }
/* dashed footpath between stops */
.stop:not(:last-child)::after {
  content: ""; position: absolute; top: 34%; left: calc(100% - 6px); width: calc(clamp(16px, 3vw, 32px) + 12px);
  border-top: 4px dashed var(--ink); opacity: .55;
  transform-origin: left;
}
.route-foot { margin-top: clamp(32px, 5vw, 48px); display: flex; flex-wrap: wrap; gap: 12px 28px; }
.route-foot p { font-weight: 700; }
@media (max-width: 760px) {
  .route { grid-template-columns: 1fr; gap: 40px; }
  .stop { grid-template-columns: 150px 1fr; align-items: center; column-gap: 16px; }
  .stop svg { grid-row: span 2; }
  .stop:not(:last-child)::after { top: auto; bottom: -34px; left: 70px; width: 0; height: 28px; border-top: 0; border-left: 4px dashed var(--ink); transform-origin: top; }
}

/* ------------------------------------------------------------------ Task Alarm */
.tasks { background: var(--sun-deep); }
.game-stage {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(20px, 4vw, 44px);
  margin-top: clamp(40px, 6vw, 60px);
}
.feature-game { display: grid; gap: 14px; align-content: start; }
.feature-game p { font-size: 1rem; }
.screen {
  position: relative; overflow: hidden;
  border: 4px solid var(--ink); border-radius: 26px;
  box-shadow: 7px 8px 0 var(--ink);
  aspect-ratio: 4 / 3.3;
}
.screen-label {
  position: absolute; top: 12px; left: 14px; z-index: 2;
  font-family: var(--display); font-size: 1.05rem; color: var(--ink);
  background: var(--paper); border: 3px solid var(--ink); border-radius: 999px; padding: 4px 12px 5px;
}

/* Magic Tiles preview */
.mt { background: #fff; display: grid; grid-template-columns: repeat(4, 1fr); }
.mt-lane { position: relative; border-left: 2px solid rgba(42, 22, 56, .18); overflow: hidden; }
.mt-lane:first-child { border-left: 0; }
.mt-lane::after { /* tap zone */
  content: ""; position: absolute; inset: auto 0 0 0; height: 24%;
  background: repeating-linear-gradient(-45deg, rgba(228, 52, 92, .10) 0 8px, transparent 8px 16px);
}
.mt-tile {
  position: absolute; left: 7%; right: 7%; height: 24%; top: var(--y);
  background: var(--ink); border-radius: 9px;
}
.mt-tile::before { content: ""; position: absolute; left: 14%; top: 10%; width: 22%; height: 30%; border-radius: 4px; background: rgba(255, 255, 255, .25); }
.mt-tile.long { height: 58%; }
.mt-tile.long::after { /* hold track + press dot */
  content: ""; position: absolute; left: 50%; top: 14%; bottom: 12%; width: 4px; margin-left: -2px;
  background: linear-gradient(var(--clock), var(--clock)) bottom / 12px 12px no-repeat, var(--clock);
  border-radius: 4px; opacity: .85;
}
.mt-score {
  position: absolute; right: 14px; top: 12px; z-index: 2;
  font-family: var(--display); font-size: 1.05rem; background: var(--clock);
  border: 3px solid var(--ink); border-radius: 999px; padding: 4px 12px 5px;
}
.is-playing .mt-tile { top: -60%; animation: mt-fall var(--dur, 2.4s) linear var(--delay, 0s) infinite; }
@keyframes mt-fall {
  0% { transform: translateY(0); background: var(--ink); }
  78% { background: var(--ink); }
  82% { background: var(--alert); }
  100% { transform: translateY(var(--travel, 700%)); background: var(--alert); }
}

/* Flappy preview */
.fb { background: #BDE3FF; }
.fb-cloud { position: absolute; width: 90px; height: 32px; background: #fff; border-radius: 99px; top: var(--y); left: var(--x); }
.fb-cloud::before { content: ""; position: absolute; width: 44px; height: 44px; border-radius: 50%; background: #fff; left: 18px; top: -20px; }
.fb-pipes { position: absolute; top: 0; bottom: 0; left: 0; width: 200%; }
.fb-pipe { position: absolute; left: var(--x); width: 5.5%; top: 0; bottom: 0; }
.fb-pipe::before, .fb-pipe::after {
  content: ""; position: absolute; left: 0; right: 0;
  background: #4CC45A; border: 4px solid var(--ink);
}
.fb-pipe::before { top: -6px; height: calc(var(--gap) - 16%); border-radius: 0 0 10px 10px; }
.fb-pipe::after { bottom: -6px; top: calc(var(--gap) + 16%); border-radius: 10px 10px 0 0; }
.fb-bird { position: absolute; left: 24%; top: 38%; width: 17%; height: auto; overflow: visible; }
.fb-ground { position: absolute; left: 0; right: 0; bottom: 0; height: 9%; background: #8BD35A; border-top: 4px solid var(--ink); }
.is-playing .fb-pipes { animation: fb-scroll 3.2s linear infinite; }
.is-playing .fb-bird { animation: fb-fly 3.2s ease-in-out infinite; }
.is-playing .fb-wing { animation: fb-flap .28s steps(2) infinite; }
@keyframes fb-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes fb-fly {
  0%, 100% { transform: translateY(0) rotate(-8deg); }
  22% { transform: translateY(-40%) rotate(-16deg); }
  45% { transform: translateY(55%) rotate(18deg); }
  62% { transform: translateY(-10%) rotate(-12deg); }
  80% { transform: translateY(40%) rotate(14deg); }
}
@keyframes fb-flap { to { transform: translateY(-22%) scaleY(.6); } }
.fb-wing { transform-box: fill-box; transform-origin: center; }

/* The other five: stickers */
.stickers {
  list-style: none; padding: 0; margin: clamp(36px, 5vw, 56px) 0 0;
  display: flex; flex-wrap: wrap; gap: 20px 18px; justify-content: center;
}
.sticker {
  width: min(100%, 184px);
  background: var(--paper); border: 3px solid var(--ink); border-radius: 22px;
  box-shadow: 5px 6px 0 var(--ink);
  padding: 16px 16px 18px; display: grid; gap: 10px;
  transform: rotate(var(--r, 0deg));
}
.sticker h3 { font-size: 1.3rem; }
.sticker p { font-size: .95rem; line-height: 1.45; }
.sticker .art { height: 72px; display: grid; place-items: center; }
.tag-free {
  justify-self: start; font-weight: 700; font-size: .8rem; background: var(--clock);
  border: 2px solid var(--ink); border-radius: 999px; padding: 1px 10px;
}
.math-art { font-family: var(--display); font-size: 1.9rem; }
.typing-art { font-family: var(--hand); font-size: 1.4rem; }
.typing-art .ok { color: #1F8A5B; }
.typing-art .bad { color: var(--alert); text-decoration: underline wavy; }
.typing-art .caret { display: inline-block; width: 2px; height: 1.1em; background: var(--ink); vertical-align: -2px; margin-left: 2px; }
.tiles-art { display: grid; grid-template-columns: repeat(3, 20px); gap: 5px; }
.tiles-art i { width: 20px; height: 20px; border-radius: 5px; background: rgba(42, 22, 56, .18); }
.tiles-art i.lit { background: var(--clock); box-shadow: 0 0 0 2px var(--ink); }
.count-art { display: flex; align-items: center; gap: 10px; font-family: var(--display); font-size: 1.4rem; }
.count-art svg { width: 48px; height: 48px; }
.game-foot { text-align: center; margin: 28px auto 0; font-weight: 700; }
@media (max-width: 760px) {
  .game-stage { grid-template-columns: 1fr; }
  .sticker { width: calc(50% - 11px); }
}
@media (max-width: 380px) { .sticker { width: 100%; } }

/* ------------------------------------------------------------------ mascot peeking over an edge */
.peek {
  position: absolute; bottom: 100%; right: clamp(16px, 8vw, 110px);
  width: clamp(84px, 10vw, 124px); aspect-ratio: 200 / 132;
  overflow: hidden; pointer-events: none;
}
.peek svg { display: block; width: 100%; height: auto; }
.compare-holder { position: relative; margin-top: clamp(56px, 7vw, 76px); }
.compare-holder .peek { right: auto; left: clamp(20px, 6vw, 64px); }

/* ------------------------------------------------------------------ themes */
.phones {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(14px, 2.4vw, 28px);
  margin-top: clamp(40px, 6vw, 60px); list-style: none; padding: 0;
}
.phone-item { display: grid; gap: 14px; justify-items: center; text-align: center; }
.phone-item h3 { font-size: 1.3rem; }
.phone-item p { font-size: .95rem; }
.phone-item .tag-free, .phone-item .tag-unlock { justify-self: center; }
.tag-unlock {
  font-weight: 700; font-size: .8rem; background: var(--paper);
  border: 2px solid var(--ink); border-radius: 999px; padding: 1px 10px;
}
.phone {
  width: 100%; max-width: 210px; aspect-ratio: 9 / 18.5;
  border: 5px solid var(--ink); border-radius: 30px; overflow: hidden; position: relative;
  box-shadow: 6px 7px 0 var(--ink);
  display: flex; flex-direction: column; gap: 9px; padding: 26px 12px 12px;
  font-size: 12px; line-height: 1.3;
}
.phone::before { /* speaker notch */
  content: ""; position: absolute; top: 9px; left: 50%; width: 38%; height: 7px; margin-left: -19%;
  border-radius: 99px; background: var(--ink); opacity: .85;
}
.p-head { font-weight: 700; font-size: 11px; }
.p-card { border-radius: 12px; padding: 10px; display: grid; gap: 2px; }
.p-time { font-size: 26px; line-height: 1; }
.p-sub { font-size: 10px; opacity: .8; }
.p-btn { margin-top: auto; text-align: center; font-weight: 700; padding: 9px; border-radius: 10px; font-size: 11px; }
.p-dots { display: flex; gap: 5px; justify-content: center; }
.p-dots i { width: 7px; height: 7px; border-radius: 50%; }

.t-tech {
  background-color: #070B18; color: #DCE7FF;
  background-image: linear-gradient(rgba(34, 211, 238, .08) 1px, transparent 1px), linear-gradient(90deg, rgba(34, 211, 238, .08) 1px, transparent 1px);
  background-size: 16px 16px;
}
.t-tech .p-head { color: #22D3EE; font-family: ui-monospace, "SF Mono", Menlo, monospace; letter-spacing: .06em; }
.t-tech .p-card { border: 1px solid rgba(34, 211, 238, .55); background: rgba(14, 22, 40, .8); box-shadow: 0 0 12px rgba(34, 211, 238, .35); }
.t-tech .p-time { font-family: ui-monospace, "SF Mono", Menlo, monospace; color: #fff; text-shadow: 0 0 8px rgba(34, 211, 238, .8); }
.t-tech .p-btn { background: #FF4D6D; color: #1A0008; box-shadow: 0 0 14px rgba(255, 77, 109, .7); }
.t-tech .p-dots i { background: #22D3EE; } .t-tech .p-dots i + i { background: #2E4266; }

.t-nature { background: #FBF8F1; color: #2F3A2F; }
.t-nature .p-head, .t-nature .p-time { font-family: Georgia, "Times New Roman", serif; }
.t-nature .p-head { color: #557A4F; font-size: 13px; font-weight: 400; }
.t-nature .p-card { background: #fff; box-shadow: 0 4px 12px rgba(80, 60, 30, .18); border-radius: 16px; }
.t-nature .p-btn { background: #BF6444; color: #fff; border-radius: 99px; }
.t-nature .leaf { position: absolute; right: -14px; top: 40%; width: 70px; opacity: .45; }
.t-nature .p-dots i { background: #557A4F; } .t-nature .p-dots i + i { background: #D9D2C0; }

.t-cartoon { background: #FFF3D6; color: var(--ink); }
.t-cartoon .p-head { font-family: var(--display); font-weight: 400; font-size: 13px; display: flex; align-items: center; gap: 5px; }
.t-cartoon .p-head svg { width: 22px; height: 22px; }
.t-cartoon .p-card { background: #fff; border: 2px solid var(--ink); box-shadow: 3px 3px 0 var(--ink); }
.t-cartoon .p-time { font-family: var(--display); }
.t-cartoon .p-btn { background: #F2474D; color: #fff; border: 2px solid var(--ink); box-shadow: 3px 3px 0 var(--ink); font-family: var(--display); font-weight: 400; }
.t-cartoon .p-dots i { background: #F2474D; border: 1.5px solid var(--ink); } .t-cartoon .p-dots i + i { background: #fff; }

.t-wall { color: #fff; background: #5B3A8C; }
.t-wall .scenery { position: absolute; inset: 0; z-index: 0; }
.t-wall .scenery i { position: absolute; display: block; }
.t-wall .sky2 { inset: 45% 0 0 0; background: #F28A5A; }
.t-wall .sunb { width: 58px; height: 58px; border-radius: 50%; background: #FFD23F; left: 50%; margin-left: -29px; top: 36%; }
.t-wall .mtn1 { inset: 52% -10% 0 -10%; background: #3B2160; clip-path: polygon(0 60%, 22% 18%, 40% 48%, 62% 6%, 84% 44%, 100% 26%, 100% 100%, 0 100%); }
.t-wall .mtn2 { inset: 70% -10% 0 -10%; background: #22113A; clip-path: polygon(0 40%, 30% 8%, 58% 52%, 80% 20%, 100% 46%, 100% 100%, 0 100%); }
.t-wall > :not(.scenery) { position: relative; z-index: 1; }
.t-wall .p-head { text-shadow: 0 1px 3px rgba(0, 0, 0, .5); }
.t-wall .p-card { background: rgba(14, 15, 20, .55); border: 1px solid rgba(255, 255, 255, .2); }
.t-wall .p-btn { background: #E5484D; color: #fff; border-radius: 99px; }
.t-wall .p-dots i { background: #fff; } .t-wall .p-dots i + i { background: rgba(255, 255, 255, .4); }

@media (max-width: 860px) {
  .phones {
    grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: min(62%, 220px);
    overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px 4px 22px; margin-inline: calc(var(--gutter) * -1);
    padding-inline: var(--gutter);
  }
  .phone-item { scroll-snap-align: center; }
}

/* ------------------------------------------------------------------ free vs unlock */
.compare-wrap { overflow-x: auto; padding: 0 10px 12px 0; }
.compare {
  width: 100%; min-width: 560px; border-collapse: separate; border-spacing: 0;
  background: var(--paper); border: 4px solid var(--ink); border-radius: 26px; box-shadow: 7px 8px 0 var(--ink);
}
.compare th, .compare td { padding: 16px 18px; text-align: left; vertical-align: top; border-top: 2px dashed rgba(42, 22, 56, .3); }
.compare thead th { border-top: 0; font-family: var(--display); font-weight: 400; font-size: 1.35rem; }
.compare thead th:nth-child(3) { color: var(--alert-deep); }
.compare tbody th { font-weight: 700; width: 30%; }
.compare td { width: 35%; }
.compare .yes { display: flex; gap: 10px; align-items: flex-start; }
.compare .no { opacity: .6; }
.check { width: 22px; height: 22px; flex: none; margin-top: 2px; }
.check path { fill: none; stroke: var(--ink); stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; }
@media (max-width: 640px) {
  /* Phones: each feature becomes a small stack (Free line, then Unlock line), no sideways scrolling. */
  .compare { min-width: 0; }
  .compare thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .compare, .compare tbody, .compare tr, .compare th, .compare td { display: block; width: auto; }
  .compare tbody tr { padding: 14px 18px; border-top: 2px dashed rgba(42, 22, 56, .3); }
  .compare tbody tr:first-child { border-top: 0; }
  .compare th, .compare td { border-top: 0; padding: 3px 0; }
  .compare tbody th, .compare td { width: auto; }
  .compare tbody th { font-size: 1.05rem; padding-bottom: 6px; }
  .compare td::before { content: attr(data-label); display: block; font-size: .8rem; font-weight: 700; opacity: .7; }
  .compare td + td::before { color: var(--alert-deep); opacity: 1; }
  .compare td.no::before { opacity: 1; }
}
.compare-note { margin-top: 26px; display: flex; flex-wrap: wrap; align-items: center; gap: 18px 28px; }
.compare-note p { font-weight: 700; }

/* ------------------------------------------------------------------ FAQ */
.faq-list { margin-top: clamp(32px, 5vw, 48px); display: grid; gap: 14px; max-width: 820px; }
.faq-list details {
  background: var(--paper); border: 3px solid var(--ink); border-radius: 20px; padding: 0;
}
.faq-list details[open] { box-shadow: 5px 6px 0 var(--ink); }
.faq-list summary {
  cursor: pointer; list-style: none; padding: 18px 56px 18px 22px; position: relative;
  font-family: var(--display); font-size: clamp(1.15rem, 2.2vw, 1.35rem); line-height: 1.2;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: "+"; position: absolute; right: 20px; top: 50%; translate: 0 -50%;
  width: 28px; height: 28px; border-radius: 50%; background: var(--clock); border: 2px solid var(--ink);
  display: grid; place-items: center; font-family: var(--body); font-weight: 700; line-height: 1;
}
.faq-list details[open] summary::after { content: "–"; }
.faq-list summary:focus-visible { border-radius: 18px; }
.faq-list .answer { padding: 0 22px 20px; display: grid; gap: 10px; }

/* ------------------------------------------------------------------ footer */
.foot { background: var(--night); color: var(--paper); position: relative; }
.foot .wrap { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 32px; align-items: center; padding-block: clamp(72px, 9vw, 110px) 40px; }
.foot h2 { font-size: clamp(1.9rem, 4vw, 2.8rem); }
.foot p { opacity: .9; }
.foot-links { display: flex; flex-wrap: wrap; gap: 10px 24px; margin-top: 24px; list-style: none; padding: 0; font-weight: 700; }
.sleeper { width: clamp(140px, 18vw, 210px); }
.sleeper svg { width: 100%; height: auto; display: block; }
.sleeper .z-static { font-family: var(--display); fill: var(--clock); }
.fine { grid-column: 1 / -1; border-top: 2px dashed rgba(255, 244, 230, .25); padding-top: 20px; font-size: .9rem; opacity: .75; }
.horizon-top { position: absolute; left: 0; right: 0; top: -1px; width: 100%; height: clamp(36px, 6vw, 80px); display: block; }
@media (max-width: 640px) {
  .foot .wrap { grid-template-columns: 1fr; }
  .sleeper { order: -1; }
}

/* ------------------------------------------------------------------ privacy page */
.policy-top { background: var(--night); color: var(--paper); }
.policy { background: var(--paper); border: 4px solid var(--ink); border-radius: 28px; box-shadow: 7px 8px 0 var(--ink); padding: clamp(24px, 5vw, 56px); margin-block: clamp(32px, 6vw, 64px); }
.policy h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); }
.policy h2 { font-size: clamp(1.5rem, 3vw, 2rem); margin-top: 40px; }
.policy p, .policy li { max-width: 68ch; }
.policy p + p, .policy ul { margin-top: 12px; }
.policy ul { padding-left: 1.2em; display: grid; gap: 8px; }
.policy .summary { background: var(--clock); border: 3px solid var(--ink); border-radius: 18px; padding: 18px 20px; margin-top: 24px; font-weight: 700; }
.policy .meta { margin-top: 10px; opacity: .75; }
.perm { display: grid; gap: 4px; }
.perm strong { font-size: 1.05rem; }

/* ================================================================== MOTION
   Each section reveals in its own way when it scrolls into view (main.js adds
   .is-in). Content is fully visible without JavaScript (.js is set by an inline
   script, so nothing is hidden if scripts fail). */
.js .rv { opacity: 0; }
.js .is-in .rv { opacity: 1; }

/* SVG parts animate around their own box. */
.walk, .bob, .burst, .qr-pop, .bells, .lid, .thought, .zzz text { transform-box: fill-box; transform-origin: center; }

/* Hero: the mascot walks in from the right with little hops, then yells. */
.js .walk { transform: translateX(460px); }
.js .is-in .walk { animation: walk-in 1.5s cubic-bezier(.3, .6, .3, 1) forwards; }
@keyframes walk-in {
  0% { transform: translateX(460px) translateY(0); }
  12% { transform: translateX(400px) translateY(-18px); }
  24% { transform: translateX(330px) translateY(0); }
  36% { transform: translateX(260px) translateY(-18px); }
  48% { transform: translateX(190px) translateY(0); }
  60% { transform: translateX(120px) translateY(-18px); }
  72% { transform: translateX(60px) translateY(0); }
  84% { transform: translateX(16px) translateY(-10px); }
  100% { transform: translateX(0) translateY(0); }
}
.js .burst { transform: scale(0) rotate(-12deg); }
.js .is-in .burst { animation: pop .45s var(--pop) 1.45s forwards; }
.js .thought { transform: scale(.4); }
.js .is-in .thought { animation: pop .5s var(--pop) 2.1s forwards; }
.js .is-in .thought.rv { transition: opacity .3s 2.1s; }
@keyframes pop { to { transform: scale(1) rotate(0deg); } }

/* The one continuous element: the hero mascot bobbing and ringing, and the sleeper's z's. */
.is-in .bob { animation: bob 2.6s ease-in-out 1.6s infinite; }
.is-in .bells { animation: jingle .18s linear 1.6s infinite alternate; }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }
@keyframes jingle { from { transform: rotate(-4deg); } to { transform: rotate(4deg); } }
.zzz text { animation: zzz 3.6s ease-in infinite; opacity: 0; }
.zzz text:nth-child(2) { animation-delay: 1.2s; }
.zzz text:nth-child(3) { animation-delay: 2.4s; }
@keyframes zzz {
  0% { opacity: 0; transform: translate(0, 0) scale(.6); }
  20% { opacity: .9; }
  100% { opacity: 0; transform: translate(26px, -60px) scale(1.25); }
}

/* Special Alarm: stops appear in order, footpaths draw, then each QR sticker pops on. */
.js .stop { opacity: 0; transform: translateY(18px); transition: opacity .5s ease, transform .6s var(--pop); transition-delay: calc(var(--i) * .45s); }
.js .is-in .stop { opacity: 1; transform: none; }
.js .stop:not(:last-child)::after { transform: scaleX(0); transition: transform .5s ease calc(var(--i) * .45s + .35s); }
.js .is-in .stop:not(:last-child)::after { transform: scaleX(1); }
@media (max-width: 760px) {
  .js .stop:not(:last-child)::after { transform: scaleY(0); }
  .js .is-in .stop:not(:last-child)::after { transform: scaleY(1); }
}
.js .qr-pop { transform: scale(0) rotate(-30deg); }
.js .is-in .qr-pop { animation: pop .5s var(--pop) forwards; animation-delay: calc(var(--i) * .45s + .45s); }

/* Task Alarm: the big previews switch on in a beat; stickers get slapped on one by one. */
.js .feature-game { opacity: 0; transform: scale(.94); transition: opacity .45s ease, transform .5s var(--pop); }
.js .is-in .feature-game { opacity: 1; transform: none; }
.js .is-in .feature-game + .feature-game { transition-delay: .25s; }
.js .sticker { opacity: 0; transform: scale(1.35) rotate(calc(var(--r, 0deg) * -3)); transition: opacity .25s ease, transform .45s var(--pop); transition-delay: calc(.5s + var(--i) * .12s); }
.js .is-in .sticker { opacity: 1; transform: rotate(var(--r, 0deg)); }

/* Mascot peeking over a section edge. */
.js .peek-inner { transform: translateY(100%); }
.js .is-in .peek-inner { animation: peek .7s var(--pop) .2s forwards; }
@keyframes peek { to { transform: translateY(0); } }

/* Themes: the four phones are dealt out from a stack. */
.js .phone-item { opacity: 0; transform: translateX(var(--from, 0)) rotate(var(--rot0, 0deg)); transition: opacity .3s ease, transform .7s var(--pop); transition-delay: calc(var(--i) * .12s); }
.js .is-in .phone-item { opacity: 1; transform: rotate(var(--rot, 0deg)); }

/* Free vs unlock: checkmarks draw themselves, row by row. */
.js .check path { stroke-dasharray: 30; stroke-dashoffset: 30; transition: stroke-dashoffset .4s ease; transition-delay: calc(.2s + var(--i, 0) * .1s); }
.js .is-in .check path { stroke-dashoffset: 0; }

/* Footer: the mascot finally falls asleep. */
.lid { transform-origin: center top; }
.js .lid { transform: scaleY(0); }
.js .is-in .lid { transition: transform .5s ease .6s; transform: scaleY(1); }
.js .z-static { opacity: 0; transition: opacity .6s ease; }
.js .is-in .z-static { opacity: 1; transition-delay: calc(1s + var(--i) * .3s); }

/* Generic headline reveal (opacity only; movement is saved for the illustrations). */
.js .rv { transition: opacity .6s ease; }

/* Game previews only run while visible (see main.js). */
.mt-tile, .fb-pipes, .fb-bird, .fb-wing { will-change: auto; }

/* Narrow screens: fewer moving parts. */
@media (max-width: 600px) {
  .zzz text:nth-child(3) { display: none; }
  .fb-cloud:nth-of-type(2) { display: none; }
}

/* Reduced motion: no movement anywhere, just gentle fades. */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .walk, .bob, .burst, .bells, .thought, .qr-pop, .peek-inner, .lid, .zzz text,
  .stop, .stop::after, .feature-game, .sticker, .phone-item, .mt-tile, .fb-pipes, .fb-bird, .fb-wing {
    animation: none !important;
    transform: none !important;
    transition: opacity .5s ease !important;
  }
  .sticker { rotate: var(--r, 0deg); }
  .phone-item { rotate: var(--rot, 0deg); }
  .is-playing .mt-tile { top: var(--y); }
  .zzz text { opacity: .7; }
  .js .qr-pop, .js .burst, .js .thought { opacity: 0; transition: opacity .5s ease; }
  .js .is-in .qr-pop, .js .is-in .burst, .js .is-in .thought { opacity: 1; }
  .js .lid { opacity: 0; }
  .js .is-in .lid { opacity: 1; }
  .js .check path { transition: none !important; stroke-dashoffset: 0; }
}
