/* The new look, shared by every page: ink outlines, hard offset shadows,
   Fredoka headings, and day and night colours. A page that needs more (the
   homepage) adds its own file after this one.

   The name carries a number because _headers lets browsers keep /assets/*
   for a day and then use the old copy for up to a week: a change that must
   reach every visitor at once goes in a new file, site-2.css. */


/* ---------- Fonts ---------- */

/* Served from this site, not Google, so a visit makes no third-party
   requests. A font file never changes under its name (_headers caches it for
   a year): a new version gets a new file name. */
@font-face {
  font-family: "Atkinson Hyperlegible"; font-style: normal; font-weight: 400;
  font-display: swap; src: url("/assets/fonts/atkinson-hyperlegible-400.woff2") format("woff2");
}
@font-face {
  font-family: "Atkinson Hyperlegible"; font-style: italic; font-weight: 400;
  font-display: swap; src: url("/assets/fonts/atkinson-hyperlegible-400-italic.woff2") format("woff2");
}
@font-face {
  font-family: "Atkinson Hyperlegible"; font-style: normal; font-weight: 700;
  font-display: swap; src: url("/assets/fonts/atkinson-hyperlegible-700.woff2") format("woff2");
}
/* One variable file covers both weights the site uses. */
@font-face {
  font-family: Fredoka; font-style: normal; font-weight: 500 600;
  font-display: swap; src: url("/assets/fonts/fredoka.woff2") format("woff2");
}


/* ---------- Colours ---------- */

/* Day. The inline script in each page's <head> sets data-theme on <html>
   before the first paint: "night" only if the visitor picked it with the switch. */
:root {
  color-scheme: light;
  --bg: #FFF7EC;
  --fg: #1F2D3A;
  --muted: #56636f;
  --card: #fff;
  --blob: #12B3A6;
  --line: #1F2D3A;
  --soft: #EEF8F6;
  --hi: #FFE9A8;
  --accent: #0D8478;
  --tint1: #E3F5F1;
  --tint2: #FFF1C9;
  --tint3: #FDE2E4;
  --tint4: #E9E4FB;
  /* Small teal text. --accent is only 4.31:1 on --bg and 3.81:1 on the
     yellow --hi; this darker teal is 5.77:1 and 5.10:1. */
  --accent-text: #0B6E64;
  /* Text on the --blob teal. White on the day teal is 2.62:1, ink is 5.37:1;
     at night white is 5.13:1 on the deeper teal. */
  --on-blob: #1F2D3A;
  /* The sticker look: a hard shadow in the ink colour, never a blur. */
  --shadow: 4px 5px 0 var(--line);
}

/* Night, only from the switch: every visitor opens in day, whatever their
   system is set to (his choice, 2026-11-05). */
:root[data-theme="night"] {
  color-scheme: dark;
  --bg: #141E33;
  --fg: #F3EEDF;
  --muted: #AEB8C8;
  --card: #1F2B45;
  --blob: #0B7B72;
  --line: #070C18;
  --soft: #26375A;
  --hi: #2E2A55;
  --accent: #3FD3C3;
  --tint1: #17364A;
  --tint2: #3A3350;
  --tint3: #3E2C45;
  --tint4: #2B2F57;
  --accent-text: #3FD3C3;
  --on-blob: #fff;
}


/* ---------- Base ---------- */

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

/* An anchor (#get, a question) lands below the sticky header, not under it:
   the header's 4.5rem plus 1rem of air. */
html { scroll-padding-top: 5.5rem; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 1.0625rem/1.65 "Atkinson Hyperlegible", system-ui, sans-serif;
  /* The switch fades the page between day and night. */
  transition: background-color .7s, color .7s;
}

img { max-width: 100%; height: auto; }
button { font: inherit; color: inherit; }

h1, h2, h3, h4 {
  font-family: Fredoka, system-ui, sans-serif; font-weight: 600;
  line-height: 1.12; letter-spacing: -0.01em; margin: 0 0 0.6em;
}
h1 { font-size: clamp(2.1rem, 5vw, 3rem); }
h2 { font-size: clamp(1.6rem, 3.6vw, 2.4rem); }
h3 { font-size: 1.25rem; line-height: 1.3; }

a { color: var(--accent-text); text-decoration-thickness: 2px; text-underline-offset: 3px; }

/* Keyboard users always see where they are. */
a:focus-visible, button:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 1.25rem; }


/* ---------- Header ---------- */

/* It stays at the top, frosted, with an ink line under it. Its content lines
   up with .wrap, and it is always 4.5rem tall (see scroll-padding-top). */
.top {
  position: sticky; top: 0; z-index: 40;
  display: flex; align-items: center; gap: 1.25rem;
  min-height: 4.5rem;
  padding: 0.5rem max(1.25rem, calc((100% - 1120px) / 2 + 1.25rem));
  /* Solid for browsers without color-mix() (Safari before 16.2). */
  background: var(--bg);
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border-bottom: 3px solid var(--line);
  transition: background-color .7s, border-color .7s;
}
.brand {
  display: flex; align-items: center; gap: 0.6rem; flex: none;
  text-decoration: none; color: var(--accent);
  font: 600 1.5rem/1 Fredoka, system-ui, sans-serif; letter-spacing: 0.01em;
}
.brand img { width: 40px; height: 40px; border-radius: 11px; border: 2.5px solid var(--line); }

.nav { display: flex; gap: 1.25rem; margin-left: auto; font-weight: 700; font-size: 0.92rem; }
.nav a { position: relative; color: inherit; text-decoration: none; }
/* A teal bar grows under the link you point at. */
.nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -3px; height: 3px;
  border-radius: 3px; background: var(--blob); transform: scaleX(0); transition: transform .25s;
}
.nav a:hover::after { transform: scaleX(1); }

/* A phone keeps the brand, the switch and "Get the app", and drops the nav.
   The brand pushes the rest right, also without JavaScript, when the switch
   is hidden too. */
@media (max-width: 719.98px) {
  .top { gap: 0.6rem; }
  .nav { display: none; }
  .brand { margin-right: auto; }
}


/* ---------- Day/night switch ---------- */

/* Without JavaScript the page stays in day and the switch would do
   nothing, so it only shows once the inline script has marked <html>. */
.switch {
  display: none; flex: none; position: relative;
  width: 64px; height: 34px; padding: 0; cursor: pointer;
  border: 2.5px solid var(--line); border-radius: 999px;
  background: #8ED8F0; box-shadow: 2px 3px 0 var(--line);
  transition: background-color .5s, border-color .7s;
}
html.js .switch { display: block; }
/* The knob: a sun by day, a moon by night (written as escapes, U+2600 U+FE0F
   and U+1F319, so the file stays plain ASCII). */
.switch::before {
  content: "\2600\FE0F";
  position: absolute; top: 2px; left: 3px; width: 24px; height: 24px;
  display: grid; place-items: center; font-size: 15px; line-height: 1;
  background: #fff; border: 2px solid var(--line); border-radius: 50%;
  transition: transform .45s cubic-bezier(.34, 1.56, .64, 1), background-color .5s;
}
[data-theme="night"] .switch { background: #3B3F8F; }
[data-theme="night"] .switch::before { content: "\1F319"; transform: translateX(29px); background: #1F2B45; }


/* ---------- Buttons and store badges ---------- */

.get-btn {
  flex: none; display: inline-block; white-space: nowrap; text-decoration: none;
  font: 600 1rem/1.2 Fredoka, system-ui, sans-serif;
  color: var(--on-blob); background: var(--blob);
  border: 2.5px solid var(--line); border-radius: 999px; padding: 0.45rem 1.1rem;
  box-shadow: 3px 4px 0 var(--line);
  transition: transform .12s, box-shadow .12s, background-color .7s;
}
.get-btn:hover { transform: translate(-1px, -2px) rotate(-1.5deg); box-shadow: 4px 6px 0 var(--line); }
.get-btn:active { transform: translate(2px, 3px); box-shadow: 1px 1px 0 var(--line); }
@media (max-width: 719.98px) {
  .get-btn { padding: 0.4rem 0.85rem; font-size: 0.95rem; }
}

/* The official store badges, never home-made buttons (the stores' rules). */
.badges { display: flex; flex-wrap: wrap; align-items: center; }
.badge { display: inline-block; line-height: 0; transition: transform .15s; }
.badge:hover { transform: translateY(-3px) rotate(-1.5deg); }
.badge img { height: 64px; width: auto; }
/* The Play PNG carries 10.5px of transparent padding around a 43px badge, so
   the App Store SVG gets the same margin to match it in height and spacing. */
.badge .apple { height: 43px; margin: 10.5px; }
/* Side by side they need 315px, more than a phone leaves; below 420px they
   shrink by an eighth. */
@media (max-width: 420px) {
  .badge img { height: 56px; }
  .badge .apple { height: 37.6px; margin: 9.2px; }
}


/* ---------- Bands and sticker cards ---------- */

/* A full-width stripe between two ink lines. */
.band {
  background: var(--soft); border-block: 3px solid var(--line);
  padding-block: clamp(3rem, 8vw, 4.5rem);
  transition: background-color .7s, border-color .7s;
}
.band-yellow { background: var(--hi); }

.eyebrow { margin: 0 0 0.3rem; font-weight: 700; font-size: 0.92rem; color: var(--accent-text); }
.sec-lead { max-width: 34rem; margin: 0 0 1.6rem; font-size: 1.05rem; color: var(--muted); }

.sticker {
  background: var(--card); border: 3px solid var(--line); border-radius: 22px;
  box-shadow: var(--shadow);
  transition: background-color .7s, border-color .7s;
}

/* The closing call to action, with the store badges. */
.get {
  margin-top: 3rem; padding: 1.8rem;
  background: var(--card); border: 3px solid var(--line); border-radius: 26px;
  box-shadow: 6px 8px 0 var(--line);
  transition: background-color .7s, border-color .7s;
}
.get h2 { margin-top: 0; }
.get p { color: var(--muted); }
@media (max-width: 420px) {
  .get { padding: 1.5rem 1rem; }
}


/* ---------- Rise-in ---------- */

/* Sections marked .reveal rise in as they scroll into view. Only
   assets/site-1.js adds .pending, and only to what starts below the fold,
   so without JavaScript nothing is ever hidden. */
.reveal { transition: opacity .8s, transform .9s cubic-bezier(.2, .8, .2, 1); }
/* Hiding is instant (the script adds .pending after the first paint); only
   the rise-in is animated. */
.reveal.pending { opacity: 0; transform: translateY(36px); transition: none; }


/* ---------- Article ---------- */

/* The text pages: privacy, terms, account deletion, and the FAQ. Plain and
   calm, one comfortable column. */
.article { max-width: 46rem; margin: 0 auto; padding: 2.5rem 1.25rem 4.5rem; }
.article h1 { font-size: clamp(2.1rem, 5vw, 2.9rem); margin-bottom: 1rem; }
.article h2 { font-size: clamp(1.45rem, 3vw, 1.8rem); line-height: 1.2; margin: 2.8rem 0 0.8rem; }
.article h3 { margin: 2rem 0 0.4rem; }
.lead { font-size: 1.1rem; color: var(--muted); margin: 0 0 1rem; }
.article p, .article li { margin: 0 0 0.9rem; }
.article ul { padding-left: 1.3rem; margin: 0 0 1rem; }
.article ol { padding-left: 1.5rem; margin: 0 0 1rem; }
.article li::marker { color: var(--accent-text); font-weight: 700; }

/* The privacy policy, terms and account deletion pages */
.updated { color: var(--muted); font-size: 0.92rem; margin: -0.4rem 0 1.6rem; }

/* A table is a sticker card, with a thin line between rows. */
.article table {
  width: 100%; margin: 1rem 0 1.5rem; border-collapse: separate; border-spacing: 0;
  font-size: 0.95rem; line-height: 1.5;
  background: var(--card); border: 2.5px solid var(--line); border-radius: 18px;
  box-shadow: var(--shadow);
  transition: background-color .7s, border-color .7s;
}
.article th, .article td { text-align: left; vertical-align: top; padding: 0.75rem 1rem; }
.article th {
  font-size: 0.75rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--muted); border-bottom: 2.5px solid var(--line);
}
.article tr:not(:last-child) > td { border-bottom: 2px solid color-mix(in srgb, var(--fg) 12%, transparent); }
@media (max-width: 480px) {
  .article th, .article td { padding: 0.7rem 0.75rem; }
}

/* The Mazí and Cozi comparison. The names head the columns in the
   headline face, Mazí's with its icon, and Mazí's column is tinted from its
   name down. The price row leads with the figure in large type. On a phone
   each row stacks into a block: the topic, then Mazí's line and Cozi's,
   each named by its data-label. */
.article table.compare { table-layout: fixed; }
.compare .c-topic { width: 23%; }
.compare .c-us, .compare .c-them { width: 38.5%; }
.compare th, .compare td { padding: 0.9rem 1.1rem; }
.compare thead > tr > * {
  padding-block: 1.05rem 0.9rem; border-bottom: 2.5px solid var(--line);
  font: 600 1.2rem/1.2 Fredoka, system-ui, sans-serif; letter-spacing: 0; text-transform: none;
  color: var(--muted);
}
.compare thead .us { color: var(--fg); }
.compare thead img {
  width: 28px; height: 28px; margin-right: 0.55rem; vertical-align: -7px;
  border: 2px solid var(--line); border-radius: 9px;
}
.compare tbody th { font-size: 0.95rem; letter-spacing: 0; text-transform: none; color: var(--fg); border-bottom: 0; }
.compare tbody tr:not(:last-child) > * { border-bottom: 2px solid color-mix(in srgb, var(--fg) 10%, transparent); }
.compare .us { background: var(--soft); transition: background-color .7s; }
.compare .fig { display: block; margin-bottom: 0.2rem; font: 600 1.35rem/1.2 Fredoka, system-ui, sans-serif; }
@media (max-width: 560px) {
  .compare, .compare tbody, .compare tr, .compare th, .compare td { display: block; }
  .compare thead { display: none; }
  .compare tbody tr { padding: 0.95rem 0.85rem 0.85rem; }
  .compare tbody tr:not(:last-child) { border-bottom: 2px solid color-mix(in srgb, var(--fg) 10%, transparent); }
  .article .compare tbody tr > * { border-bottom: 0; }
  .compare tbody th { padding: 0 0.2rem 0.5rem; font-size: 1rem; }
  /* The label sits in its own column; everything in the cell goes beside it. */
  .compare td {
    display: grid; grid-template-columns: 3.1rem 1fr; gap: 0 0.5rem; align-items: baseline;
    padding: 0.55rem 0.7rem; border-radius: 12px;
  }
  .compare td > * { grid-column: 2; }
  .compare td + td { margin-top: 0.3rem; }
  .compare td::before { content: attr(data-label); font: 600 0.95rem/1.5 Fredoka, system-ui, sans-serif; color: var(--muted); }
  .compare td.us::before { color: var(--accent-text); }
  .compare .fig { font-size: 1.2rem; }
}

/* A note set apart from the text. */
.box {
  margin: 1.6rem 0; padding: 1rem 1.2rem;
  background: var(--soft); border: 2.5px solid var(--line); border-radius: 18px;
  box-shadow: var(--shadow);
  transition: background-color .7s, border-color .7s;
}

/* One question and its answer, on the FAQ. */
.qa { margin: 0 0 1.8rem; }
.qa h3 { margin: 0 0 0.4rem; }


/* ---------- Feature pages ---------- */

/* The top of a feature page: words on one side, a phone with the i on the
   other. The homepage reuses .fstage for its own feature rows. */
.fhero {
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  gap: 2rem; align-items: center; padding-top: 2.5rem; padding-bottom: 2rem;
}
.fhero .eyebrow { margin-bottom: 0.4rem; }
.fhero h1 { margin-bottom: 1rem; }
.fhero .lead { max-width: 34rem; margin-bottom: 1.2rem; }
.fhero .badges { margin: 0 -0.3rem; }
.note { margin: 0.4rem 0 0; color: var(--muted); font-size: 0.95rem; }

/* The stage has a fixed height and the i a fixed shape, so nothing moves
   when the i is drawn. --tint is set on the stage: tint1 shopping, tint2
   tasks, tint3 kitchen, tint4 calendar. */
.fstage { position: relative; height: 430px; width: 100%; max-width: 460px; margin: 0 auto; }
.fstage::before {
  content: ""; position: absolute; inset: 30px 10px 14px 20px;
  background: var(--tint, var(--tint1)); border: 3px solid var(--line); border-radius: 40px;
  transition: background-color .7s, border-color .7s;
}
.fphone {
  position: absolute; right: 40px; top: 6px; width: 200px; margin: 0; padding: 6px;
  background: var(--card); border: 3px solid var(--line); border-radius: 32px;
  box-shadow: 7px 9px 0 var(--line); rotate: 3deg;
  transition: background-color .7s, border-color .7s;
}
.fphone img { display: block; width: 100%; border-radius: 25px; }
@media (max-width: 899.98px) {
  .fhero { grid-template-columns: minmax(0, 1fr); }
}
/* A phone has less than the 460px the stage is drawn for, and the í, its
   prop and the screenshot would pile up. There the whole stage is drawn
   smaller instead: zoom shrinks the positions inside it too, so it keeps its
   layout. What the í says stays at its usual size. A browser without zoom
   keeps the full-width stage, crowded but still on the screen. */
@media (max-width: 499.98px) {
  @supports (zoom: .5) {
    .fstage { width: 460px; zoom: .69; }
    .fstage .say { zoom: 1.45; }
  }
}
@media (max-width: 356.98px) {
  @supports (zoom: .5) {
    .fstage { zoom: .6; }
    .fstage .say { zoom: 1.67; }
  }
}

/* "The rest of Mazi": a card for each of the other features. */
.article ul.more {
  list-style: none; padding: 0; margin: 0 0 1rem;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); gap: 1rem;
}
.more li { margin: 0; }
.more a {
  display: block; height: 100%; padding: 1rem 1.1rem; text-decoration: none; color: var(--muted);
  background: var(--card); border: 3px solid var(--line); border-radius: 22px; box-shadow: var(--shadow);
  line-height: 1.45;
  transition: transform .12s, box-shadow .12s, background-color .7s, border-color .7s;
}
.more a:hover { transform: translate(-1px, -2px) rotate(-1deg); box-shadow: 5px 7px 0 var(--line); }
.more b { display: block; margin-bottom: 0.2rem; font: 600 1.15rem/1.2 Fredoka, system-ui, sans-serif; color: var(--fg); }

/* The questions page: the i stands beside the title. */
.faq-head { display: flex; align-items: center; gap: 1.2rem; }
.faq-head > div:first-child { flex: 1 1 auto; min-width: 0; }
.faq-head .fi { position: relative; left: auto; bottom: auto; flex: none; width: 120px; }
.faq-head .say { top: -22px; }
@media (max-width: 480px) {
  .faq-head .fi { width: 84px; }
}
.article .get { margin-top: 3rem; }


/* ---------- Footer ---------- */

footer {
  border-top: 3px solid var(--line); background: var(--soft);
  padding: 2.2rem 0 2.6rem; font-size: 0.92rem; color: var(--muted);
  transition: background-color .7s, border-color .7s, color .7s;
}
footer .foot-links { display: flex; flex-wrap: wrap; gap: 0.5rem 1.4rem; margin-bottom: 0.9rem; }
footer a { color: var(--fg); font-weight: 700; text-decoration: none; }
footer .foot-links a:hover { text-decoration: underline; text-decoration-color: var(--blob); text-decoration-thickness: 3px; }
/* The social links are small round stickers. */
footer .foot-social { display: flex; gap: 0.7rem; margin: 1.4rem 0 1.2rem; }
footer .foot-social a {
  display: inline-flex; align-items: center; justify-content: center;
  width: 2.6rem; height: 2.6rem; border-radius: 50%;
  background: var(--card); border: 2.5px solid var(--line); box-shadow: 2px 3px 0 var(--line);
  transition: transform .12s, background-color .7s, border-color .7s;
}
footer .foot-social a:hover { transform: translate(-1px, -2px) rotate(-4deg); }
footer p { margin: 0; }
footer .fine { font-size: 0.8rem; margin-top: 0.3rem; }


/* ---------- The í and the letters (drawn by mascot-1.js) ---------- */

/* An í (.fi) stands where the page puts it; its speech bubble and props are
   positioned against it. Letters (.cl) and the í among them (.ci) are sized by
   height, so a row of them lines up. */
.fi { position: absolute; left: 30px; bottom: 16px; width: 170px; aspect-ratio: 220 / 240; z-index: 3; cursor: pointer; }
.fi svg, .cl svg, .ci svg { overflow: visible; display: block; }
.cl svg { height: 140px; width: auto; }
.ci svg { height: 140px; width: auto; margin: 0 0 7px -10px; }
/* The outline is dark ink, which vanishes on the night background, so at
   night they get a thin light halo. */
[data-theme="night"] .fi svg, [data-theme="night"] .cl svg, [data-theme="night"] .ci svg { filter: drop-shadow(0 0 1.6px rgba(243,238,223,.75)); }

.blink { transform-origin: 110px 107px; animation: blink 4.2s ease-in-out infinite; }
.arm-wave { transform-origin: 133px 140px; animation: wave .9s ease-in-out infinite alternate; }
.hop { animation: hop .55s ease-out; }
@keyframes blink { 0%, 91%, 100% { transform: scaleY(1); } 94% { transform: scaleY(.08); } }
@keyframes wave { from { transform: rotate(-12deg); } to { transform: rotate(16deg); } }
@keyframes hop { 0% { transform: none; } 35% { transform: translateY(-22px) scale(.95, 1.06); } 65% { transform: translateY(0) scale(1.07, .93); } 100% { transform: none; } }
@keyframes bob { 0%, 100% { transform: translateY(0) rotate(var(--r, 0deg)); } 50% { transform: translateY(-10px) rotate(calc(var(--r, 0deg) + 2deg)); } }
@keyframes steam { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: .9; } 100% { opacity: 0; transform: translateY(-30px); } }
@keyframes teeter { 0%, 100% { transform: rotate(-3deg); } 50% { transform: rotate(3deg); } }

/* What the í says. It only shows for a moment, and screen readers skip it
   (aria-hidden): it is decoration, never the only place something is said.
   It sits over its speaker with the tail (at --tail) over the speaker's
   middle, and pops out of the tail. By default it is centred: --sx moves it
   left by half its width. It is one line, and wraps only if it would be
   wider than the page's column. */
.say { --sx: -50%; --tail: 50%; position: absolute; z-index: 8; left: 50%; top: -14px; width: max-content; max-width: calc(100vw - 2.5rem); background: var(--card); color: var(--fg); border: 2.5px solid var(--line); border-radius: 16px; padding: 6px 14px; font: 500 1rem Fredoka, sans-serif; box-shadow: 3px 4px 0 var(--line); pointer-events: none; opacity: 0; transform: translate(var(--sx), 8px) scale(.7); transform-origin: var(--tail) 100%; transition: opacity .18s, transform .3s cubic-bezier(.34,1.56,.64,1); }
.say.show { opacity: 1; transform: translate(var(--sx), 0) scale(1); }
.say::after { content: ""; position: absolute; left: var(--tail); bottom: -8px; width: 12px; height: 12px; background: var(--card); border-right: 2.5px solid var(--line); border-bottom: 2.5px solid var(--line); transform: translateX(-50%) rotate(45deg); }
/* Near the edge of a phone's screen a centred bubble would stick out, so
   there the speaker says its line away from the edge: the bubble ends 36px
   past the speaker's middle, on the edge's side, and grows inwards, its tail
   36px from that end. Every such speaker is at least 80px wide, so the
   bubble's end stays within the speaker's own width, inside the page's
   column. The í beside a page title stands at the right edge; the homepage
   has more (home-1.css). */
.faq-head .say, .page-head .say { --sx: calc(36px - 100%); --tail: calc(100% - 36px); }

/* Things the í carries or thinks about, placed by their own inline styles. */
.prop { position: absolute; z-index: 2; overflow: visible; }
.steam { animation: steam 2.4s ease-out infinite; }
.tower { transform-origin: 50% 100%; animation: teeter 2.2s ease-in-out infinite; }
.thought { position: absolute; z-index: 4; width: 46px; height: 46px; border-radius: 50%; background: var(--card); border: 2.5px solid var(--line); display: grid; place-items: center; font-size: 1.3rem; box-shadow: 2px 3px 0 var(--line); animation: bob 3.6s ease-in-out infinite; }


/* ---------- Reduced motion ---------- */

/* Nothing moves: no fades, no slides, no bobbing, and everything is shown in
   its final state. */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal.pending { opacity: 1; transform: none; }
}

/* A printout has every section, also those still waiting to rise in. */
@media print {
  .reveal.pending { opacity: 1; transform: none; }
}


/* ---------- Invite and not-found pages ---------- */

/* The invite page's header is only the brand and the switch: leaving would
   drop the invite code. */
.top.bare .brand { margin-right: auto; }

/* The i beside the title, as on the questions page. */
.page-head { display: flex; align-items: center; gap: 1.2rem; }
.page-head > div:first-child { flex: 1 1 auto; min-width: 0; }
.page-head .fi { position: relative; left: auto; bottom: auto; flex: none; width: 110px; }
.page-head .say { top: -22px; }
.page-head.lost-head .fi { width: 130px; }
@media (max-width: 480px) {
  .page-head .fi, .page-head.lost-head .fi { width: 80px; }
}

/* The invite page (its script lives in join.html and is shared with the app). */
.code-card {
  margin: 1.8rem 0 0; padding: 1.25rem; text-align: center;
  background: var(--card); border: 3px solid var(--line); border-radius: 22px; box-shadow: var(--shadow);
  transition: background-color .7s, border-color .7s;
}
.code-card .label { margin: 0; color: var(--muted); font-size: 0.95rem; }
.code {
  margin: 0.4rem 0 0.9rem; font-family: "Fredoka", sans-serif; font-weight: 600;
  font-size: clamp(2rem, 11vw, 2.8rem); letter-spacing: 0.12em; color: var(--fg);
  user-select: all; -webkit-user-select: all;
}
.button {
  display: inline-block; padding: 0.7rem 1.4rem; border-radius: 999px;
  border: 2.5px solid var(--line); background: var(--blob); color: var(--on-blob);
  font: 600 1rem/1.2 Fredoka, system-ui, sans-serif; text-decoration: none; cursor: pointer;
  box-shadow: 3px 4px 0 var(--line);
  transition: transform .12s, box-shadow .12s, background-color .7s;
}
.button:hover { transform: translate(-1px, -2px) rotate(-1.5deg); box-shadow: 4px 6px 0 var(--line); }
.button:active { transform: translate(2px, 3px); box-shadow: 1px 1px 0 var(--line); }
.button.quiet { background: var(--card); color: var(--accent-text); }
.open { margin: 1.4rem 0 0; }
/* On a computer the code card holds the invite twice: the code to copy, and
   beside it the same invite as a QR code to scan. The QR box is sized before
   the code is drawn, so it moves nothing. */
.code-card.with-qr { display: flex; align-items: center; gap: 1.4rem; }
.code-main { flex: 1; min-width: 0; }
.code-qr {
  display: flex; flex-direction: column; align-items: center; width: 220px; flex: none;
  padding-left: 1.4rem; border-left: 2px dashed var(--line);
}
.qr {
  width: 196px; height: 196px; padding: 6px; box-sizing: content-box;
  background: #fff; border: 3px solid var(--line); border-radius: 16px;
}
.qr svg { display: block; }
.qr-note { margin: 0.6rem 0 0; color: var(--muted); font-size: 0.88rem; }
@media (max-width: 640px) {
  .code-card.with-qr { flex-direction: column; }
  .code-qr { width: 100%; padding: 1.2rem 0 0; border-left: 0; border-top: 2px dashed var(--line); }
}
.steps { margin: 2rem 0 0; padding-left: 1.3rem; }
.steps li { margin: 0.5rem 0; }
.article .note { font-size: 0.92rem; color: var(--muted); margin: 0.6rem 0 0; }
.article .note a { color: var(--accent-text); font-weight: 700; }
[hidden] { display: none !important; }

#badges { margin-top: 1.2rem; }
