/* Koilee website. Colours, type and shapes follow the app's Theme.kt and Components.kt. */
@font-face { font-family: "Nunito"; src: url("../fonts/nunito-regular.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Nunito"; src: url("../fonts/nunito-semibold.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Nunito"; src: url("../fonts/nunito-bold.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Nunito"; src: url("../fonts/nunito-extrabold.woff2") format("woff2"); font-weight: 800; font-style: normal; font-display: swap; }
@font-face { font-family: "Nunito"; src: url("../fonts/nunito-black.woff2") format("woff2"); font-weight: 900; font-style: normal; font-display: swap; }

/* Layout: the app's own look (Palette, Nunito, ChunkyButton/ChunkyCard from Theme.kt and Components.kt).
   Paper bands with a phone in the hero; one mango band and one night band to change pace. */
:root {
  --bg: #F6F7FB;          /* Palette.Paper */
  --surface: #FFFFFF;
  --surface-2: #EEF0F5;
  --fg: #16213A;          /* Palette.Ink */
  --muted: #5B6478;       /* Palette.Muted */
  --line: #E1E4EC;        /* Palette.Line */
  --edge: #E1E4EC;        /* card shadow */
  --brand: #0A7D6B;       /* TealDeep: text on paper */
  --teal: #12B39A;
  --teal-deep: #0A7D6B;
  --teal-shadow: #075A4D;
  --teal-soft: #DDF7EF;
  --teal-ink: #0B5E50;
  --mango: #FFC93C;
  --mango-shadow: #C99A1E;
  --mango-soft: #FFF3DA;
  --mango-ink: #7A4700;
  --coral: #FF7A59;
  --grape: #7A5CFF;
  --grape-soft: #F1EEFF;
  --grape-ink: #3A2C99;
  --sky: #2F8FE0;
  --red: #E5484D;
  --green: #2DB55D;
  --ink-fixed: #16213A;
  --on-fixed: #FFFFFF;
  /* Koilee's own map (KoileeStyle.kt): pale by day, navy by night */
  --map-land: #F1F3F8;
  --map-block: #E4E7EF;
  --map-road: #FFFFFF;
  --map-main: #FFE3A8;
  --map-park: #CDEFD8;
  --map-water: #BFE4F7;
  --night: #16213A;
  --night-2: #1F2B48;
  --night-fg: #EDF0F7;
  --night-muted: #A9B3CA;
  --yes: #0A7D6B;
  --no: #8A93A6;

  --font: "Nunito", ui-rounded, "SF Pro Rounded", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: ui-monospace, "SF Mono", "Cascadia Mono", "Roboto Mono", Menlo, Consolas, monospace;
  --r-sm: 14px; --r-md: 18px; --r-lg: 24px; --r-xl: 30px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0E1426; --surface: #1A2340; --surface-2: #222C4C; --fg: #EDF0F7; --muted: #B4BCD0;
    --line: #2A3554; --edge: #070B17; --brand: #3FD1B7;
    --teal-soft: #0B4C42; --teal-ink: #B8F2E5; --mango-soft: #4D3A00; --mango-ink: #FFE3A0;
    --grape-soft: #33287A; --grape-ink: #E4DEFF;
    --map-land: #0F1528; --map-block: #151C35; --map-road: #2A3557; --map-main: #4D4326; --map-park: #11322B; --map-water: #0A2B4D;
    --night: #070B17; --night-2: #121A33; --yes: #3FD1B7; --no: #6F7896;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0E1426; --surface: #1A2340; --surface-2: #222C4C; --fg: #EDF0F7; --muted: #B4BCD0;
  --line: #2A3554; --edge: #070B17; --brand: #3FD1B7;
  --teal-soft: #0B4C42; --teal-ink: #B8F2E5; --mango-soft: #4D3A00; --mango-ink: #FFE3A0;
  --grape-soft: #33287A; --grape-ink: #E4DEFF;
  --map-land: #0F1528; --map-block: #151C35; --map-road: #2A3557; --map-main: #4D4326; --map-park: #11322B; --map-water: #0A2B4D;
  --night: #070B17; --night-2: #121A33; --yes: #3FD1B7; --no: #6F7896;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
/* Section links land below the sticky navbar (72px), not under it. */
html { scroll-padding-top: calc(72px + env(safe-area-inset-top, 0px) + 16px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--bg); color: var(--fg);
  font-family: var(--font); font-weight: 600; font-size: 1.0625rem; line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--brand); font-weight: 800; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--sky); outline-offset: 3px; border-radius: 8px; }
h1, h2, h3 { font-weight: 900; line-height: 1.08; letter-spacing: -0.01em; text-wrap: balance; margin: 0; }
p { margin: 0; }
.wrap {
  max-width: 1160px; margin: 0 auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}
.band { padding-block: clamp(64px, 9vw, 112px); }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .8125rem; font-weight: 900; text-transform: uppercase; letter-spacing: .08em; color: var(--brand);
}
.section-head { display: grid; gap: 14px; max-width: 720px; margin-bottom: clamp(32px, 5vw, 52px); }
.section-head h2 { font-size: clamp(2rem, 4.4vw, 3rem); }
.section-head p { color: var(--muted); font-size: 1.125rem; max-width: 62ch; }

/* ChunkyButton */
.chunky {
  --face: var(--teal-deep); --shade: var(--teal-shadow); --ink: #fff;
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 12px 22px; border: 0; border-radius: var(--r-md);
  background: var(--face); color: var(--ink); font: 900 1rem/1 var(--font); text-decoration: none; cursor: pointer;
  box-shadow: 0 4px 0 var(--shade); transform: translateY(0); transition: transform .08s, box-shadow .08s;
}
.chunky:hover { text-decoration: none; filter: brightness(1.04); }
.chunky:active { transform: translateY(4px); box-shadow: 0 0 0 var(--shade); }
.chunky.sunny { --face: var(--mango); --shade: var(--mango-shadow); --ink: var(--ink-fixed); }
.chunky.plain { --face: var(--surface); --shade: var(--edge); --ink: var(--fg); }
.chunky.small { min-height: 42px; padding: 9px 16px; font-size: .9375rem; border-radius: var(--r-sm); }
.chunky svg { width: 20px; height: 20px; flex: none; }

.pill {
  display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 10px;
  font-size: .8125rem; font-weight: 800; background: var(--teal-soft); color: var(--teal-ink); white-space: nowrap;
}
.pill.mango { background: var(--mango-soft); color: var(--mango-ink); }
.pill.grape { background: var(--grape-soft); color: var(--grape-ink); }

/* Nav */
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 10; background: var(--bg); }
.nav { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 9; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.nav .wrap { display: flex; align-items: center; gap: 20px; min-height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--fg); text-decoration: none; font-size: 1.5rem; font-weight: 900; letter-spacing: -0.01em; }
.brand .q { width: 42px; height: 42px; }
.nav ul { display: flex; gap: 22px; list-style: none; margin: 0 0 0 auto; padding: 0; }
.nav ul a { color: var(--fg); font-weight: 800; text-decoration: none; font-size: .975rem; }
.nav ul a:hover, .nav ul a[aria-current="page"] { color: var(--brand); }
@media (max-width: 820px) { .nav ul { display: none; } .nav .chunky { margin-left: auto; } }

/* Hero */
.hero { padding-block: clamp(24px, 5vw, 56px) clamp(56px, 8vw, 96px); }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
@media (max-width: 900px) { .hero .wrap { grid-template-columns: minmax(0, 1fr); } }
.hero-copy { display: grid; gap: 22px; min-width: 0; }
.hero h1 { font-size: clamp(2.6rem, 6.4vw, 4.6rem); line-height: .98; letter-spacing: -0.025em; }
.hero h1 .hl { color: var(--brand); }
.hero h1 .out { position: relative; white-space: nowrap; }
.hero h1 .out::after {
  content: ""; position: absolute; left: -2%; right: -2%; bottom: .06em; height: .26em; z-index: -1;
  background: var(--mango); border-radius: 8px; transform: rotate(-1.2deg);
}
.hero h1 { position: relative; z-index: 0; }
.lead { font-size: clamp(1.125rem, 1.6vw, 1.3rem); color: var(--muted); max-width: 54ch; font-weight: 700; }
.lead strong { color: var(--fg); font-weight: 900; }
.cta-row { display: flex; flex-wrap: wrap; gap: 14px; padding-top: 4px; }
.badges { display: flex; flex-wrap: wrap; gap: 8px; }
.note { font-size: .9375rem; color: var(--muted); display: flex; align-items: center; gap: 10px; }
.note .q { width: 34px; height: 34px; flex: none; }

/* Phone: the app's home screen (Home.kt, HomeBars.kt), drawn on a 336 x 664 grid that scales with
   the screen (--u is one of its units). People are drawn as the map draws them (BirdSprites.kt):
   the bird standing on its spot (--x, --y: where its feet are), its round badge at its back
   (BADGE_DX, BADGE_DY) and its tag above in ink with a white halo (CircleMap.kt, mapTag). The birds
   are the app's own drawings (assets/birds, tools/birds); a quail's picture is QUAIL_BOX, 77 x 81
   of its units, its feet 38 from the left and 74 from the top. */
.stage { display: grid; justify-items: center; gap: 18px; min-width: 0; }
.phone {
  position: relative; width: min(100%, 360px); max-width: 100%;
  border-radius: 44px; padding: 12px; background: var(--ink-fixed);
  box-shadow: 0 10px 0 #070B17, 0 30px 60px -20px rgba(22, 33, 58, .45);
}
.screen {
  position: relative; aspect-ratio: 336 / 664; border-radius: 34px; overflow: hidden; background: var(--map-land);
  container-type: inline-size; --u: calc(100cqw / 336);
}
.layer { position: absolute; inset: 0; transition: opacity .45s ease, transform .45s ease; }
.layer[data-off] { opacity: 0; transform: scale(.97); pointer-events: none; visibility: hidden; transition: opacity .45s ease, transform .45s ease, visibility 0s .45s; }
@media (prefers-reduced-motion: reduce) { .layer, .layer[data-off] { transition: none; } }
.map-svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.screen img { display: block; width: 100%; height: 100%; }

.place, .person { position: absolute; left: calc(var(--u) * var(--x)); top: calc(var(--u) * var(--y)); width: 0; height: 0; }
.place .pm { position: absolute; width: calc(var(--u) * 40); height: calc(var(--u) * 40); left: calc(var(--u) * -20); top: calc(var(--u) * -20); }
.place .pl {
  position: absolute; top: calc(var(--u) * 13); left: 0; transform: translateX(-50%); white-space: nowrap;
  font-size: calc(var(--u) * 11.5); font-weight: 800; color: #0E5A56;
  text-shadow: 0 0 2px #fff, 0 0 2px #fff, 0 0 3px #fff, 0 0 3px #fff;
}
.person { --k: .72; }
.person .bird { position: absolute; width: calc(var(--u) * 77 * var(--k)); height: calc(var(--u) * 81 * var(--k)); left: calc(var(--u) * -38 * var(--k)); top: calc(var(--u) * -74 * var(--k)); }
/* The badge's centre is 21 back and 19 up from the bird's middle (29 units over its feet). With no
   photo it's the person's first letter on their colour, in a white edge (BirdSprites.kt, drawBadge). */
.person .badge, .faces span {
  display: grid; place-items: center; background: var(--c, var(--teal)); color: #fff;
  font-weight: 900; line-height: 1; border-radius: 50%;
}
.person .badge {
  position: absolute; width: calc(var(--u) * 24); height: calc(var(--u) * 24); font-size: calc(var(--u) * 12.5);
  left: calc(var(--u) * (-21 - 12)); top: calc(var(--u) * (-29 * var(--k) - 19 - 12));
  box-shadow: 0 0 0 calc(var(--u) * 1.6) #fff, 0 calc(var(--u) * 1.5) calc(var(--u) * 3) rgba(7, 11, 23, .25);
}
/* Ink reads better than white on mango. */
.person.me .badge { color: var(--ink-fixed); }
.person .tag {
  position: absolute; left: 0; bottom: calc(var(--u) * (29 * var(--k) + 45 * var(--k))); transform: translateX(-50%);
  white-space: nowrap; font-size: calc(var(--u) * 13); font-weight: 800; color: #16213A; line-height: 1.1;
  text-shadow: 0 0 2px #fff, 0 0 2px #fff, 0 0 3px #fff, 0 0 3px #fff, 0 0 4px #fff;
}
.person.dad { --c: var(--teal); }
.person.nap { --c: var(--grape); }
.person.me { --c: var(--mango); }
.person.mai { --c: var(--coral); }
/* Dad's car: its picture is 92 x 82 units from (-1, 6), its wheels on the road at y 86. */
.person .car { position: absolute; width: calc(var(--u) * 92 * var(--k)); height: calc(var(--u) * 82 * var(--k)); left: calc(var(--u) * -51 * var(--k)); top: calc(var(--u) * -80 * var(--k)); }
.person.dad .badge { left: calc(var(--u) * (-30 - 12)); }
/* Status badges sit low at the bird's front (STATUS_DX_DP, STATUS_DY_DP). */
.person .st {
  position: absolute; left: calc(var(--u) * (26 * var(--k) - 2)); top: calc(var(--u) * (-29 * var(--k) + 8 - 9));
  width: calc(var(--u) * 18); height: calc(var(--u) * 18); border-radius: 50%; display: grid; place-items: center;
  background: var(--grape); color: #fff; box-shadow: 0 0 0 calc(var(--u) * 2) #fff;
}
.person .st svg { width: 64%; height: 64%; }
.tag.swap { display: inline-grid; }
.tag.swap > span { grid-area: 1 / 1; }
.tag.swap > span:first-child, .person .walking { opacity: 0; }

.statusbar {
  position: absolute; top: 0; left: 0; right: 0; height: calc(var(--u) * 30); padding: 0 calc(var(--u) * 22);
  display: flex; align-items: center; justify-content: space-between; color: #16213A;
  font-size: calc(var(--u) * 12.5); font-weight: 800;
}
.statusbar svg { width: calc(var(--u) * 42); height: calc(var(--u) * 11); }
.statusbar .cam { position: absolute; left: 50%; top: calc(var(--u) * 9); width: calc(var(--u) * 12); height: calc(var(--u) * 12); margin-left: calc(var(--u) * -6); border-radius: 50%; background: #0B1226; }
/* The top row (TopBar): the circle's chip, Live, Walk me home and SOS, chunky with a 3 dp shadow. */
.toprow { position: absolute; top: calc(var(--u) * 34); left: calc(var(--u) * 12); right: calc(var(--u) * 12); display: flex; gap: calc(var(--u) * 6); align-items: center; }
.toprow .chip, .toprow .round, .rail .round {
  height: calc(var(--u) * 38); border-radius: calc(var(--u) * 19); background: var(--surface); color: var(--fg);
  box-shadow: 0 calc(var(--u) * 3) 0 var(--edge); display: inline-flex; align-items: center; gap: calc(var(--u) * 6);
  padding: 0 calc(var(--u) * 12) 0 calc(var(--u) * 14); font-size: calc(var(--u) * 14); font-weight: 900;
}
.toprow .chip svg { width: calc(var(--u) * 14); height: calc(var(--u) * 14); fill: currentColor; }
.toprow .live { padding: 0 calc(var(--u) * 12); gap: calc(var(--u) * 5); }
.toprow .dot { position: relative; width: calc(var(--u) * 8); height: calc(var(--u) * 8); margin: 0 calc(var(--u) * 4); border-radius: 50%; background: var(--teal); }
.toprow .dot::before { content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--teal); opacity: 0; }
.toprow .round, .rail .round { width: calc(var(--u) * 38); padding: 0; justify-content: center; margin-left: auto; }
/* The app's own glyphs (Fluent UI System Icons, tools/make-app-icons.py), tinted like text. */
.toprow .round svg, .rail .round svg { width: calc(var(--u) * 18); height: calc(var(--u) * 18); fill: var(--grape); }
.toprow .sos { background: #C42B30; color: #fff; box-shadow: 0 calc(var(--u) * 3) 0 #8E1D21; width: calc(var(--u) * 48); padding: 0; justify-content: center; }
.rail { position: absolute; right: calc(var(--u) * 16); bottom: calc(var(--u) * 94); }
.rail .round { width: calc(var(--u) * 44); height: calc(var(--u) * 44); border-radius: 50%; }
.rail .round svg { fill: var(--fg); width: calc(var(--u) * 20); height: calc(var(--u) * 20); }
/* The people as a stack of faces (FacesPill), over the floating tab bar (FloatingNavBar). */
.faces {
  position: absolute; left: calc(var(--u) * 16); bottom: calc(var(--u) * 88); height: calc(var(--u) * 52);
  padding: 0 calc(var(--u) * 6); display: flex; align-items: center; border-radius: calc(var(--u) * 26);
  background: var(--surface); box-shadow: 0 calc(var(--u) * 3) calc(var(--u) * 10) rgba(7, 11, 23, .18);
}
.faces span { width: calc(var(--u) * 40); height: calc(var(--u) * 40); font-size: calc(var(--u) * 17); border: calc(var(--u) * 2) solid var(--surface); margin-left: calc(var(--u) * -10); }
.faces span:first-child { margin-left: 0; }
.tabs {
  position: absolute; left: calc(var(--u) * 16); right: calc(var(--u) * 16); bottom: calc(var(--u) * 12); height: calc(var(--u) * 64);
  border-radius: calc(var(--u) * 32); background: var(--surface); box-shadow: 0 calc(var(--u) * 4) calc(var(--u) * 14) rgba(7, 11, 23, .2);
  display: flex; justify-content: space-around; align-items: center; padding: 0 calc(var(--u) * 6);
}
.tabs span {
  position: relative; width: calc(var(--u) * 68); height: calc(var(--u) * 54); border-radius: calc(var(--u) * 27);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: calc(var(--u) * 1);
  font-size: calc(var(--u) * 11.5); font-weight: 700; color: var(--muted);
}
.tabs span.on { background: #E6E9F0; color: var(--teal-deep); }
/* The tabs' paper icons (Fluent Emoji cut from paper, tools/make-app-icons.py): the one you're on in colour, the others greyed, as the app does. */
.tabs img { display: block; width: calc(var(--u) * 26); height: calc(var(--u) * 26); }
.tabs span:not(.on) img { filter: grayscale(1); opacity: .7; }
.tabs .count {
  position: absolute; top: calc(var(--u) * 3); left: 56%; min-width: calc(var(--u) * 17); height: calc(var(--u) * 17); padding: 0 calc(var(--u) * 4);
  border-radius: calc(var(--u) * 9); background: var(--red); color: #fff; font-style: normal; font-size: calc(var(--u) * 10.5); font-weight: 900;
  display: grid; place-items: center;
}
/* A heads-up notification, as Android shows one. */
.heads-up {
  position: absolute; top: calc(var(--u) * 30); left: calc(var(--u) * 10); right: calc(var(--u) * 10);
  display: flex; gap: calc(var(--u) * 10); align-items: center; padding: calc(var(--u) * 11) calc(var(--u) * 14);
  border-radius: calc(var(--u) * 22); background: var(--surface); color: var(--fg);
  box-shadow: 0 calc(var(--u) * 6) calc(var(--u) * 18) rgba(7, 11, 23, .25);
}
.heads-up .hq { width: calc(var(--u) * 34); height: calc(var(--u) * 34); flex: none; border-radius: 50%; background: var(--mango-soft); padding: calc(var(--u) * 3); }
.heads-up .hq svg { width: 100%; height: 100%; display: block; }
.heads-up small { display: block; font-size: calc(var(--u) * 11); font-weight: 700; color: var(--muted); }
.heads-up b { display: block; font-size: calc(var(--u) * 14); font-weight: 900; }
:root[data-theme="dark"] .statusbar { color: #EDF0F7; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .statusbar { color: #EDF0F7; } }
/* Place names on the night map (CircleMap.kt): cream on night blue. */
:root[data-theme="dark"] .place .pl { color: #F3EEE3; text-shadow: 0 0 2px #1A2340, 0 0 2px #1A2340, 0 0 3px #1A2340, 0 0 3px #1A2340; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .place .pl { color: #F3EEE3; text-shadow: 0 0 2px #1A2340, 0 0 2px #1A2340, 0 0 3px #1A2340, 0 0 3px #1A2340; }
}

/* The phone, moving: one 16-second loop, only for people who haven't asked for less motion (site.js
   steps it, with every other animation here, at 60 frames a second and no faster). Everyone
   else gets its last picture: Mai home, her walk drawn, Dad's car on the road (the notice stays
   away, so the top row shows).
   - Mai walks home from school with Walk me home on, her trail drawn behind her: she follows the
     trail's own points (the map's grid is the screen's), and the mask shows the trail up to her.
     Both go at a steady speed, so the percentages below are distances along it.
   - When she's there she stops walking and stands about, her tag turns from "Moving" to "Home",
     and Android's notice slides down, then away before the loop starts again.
   - Dad drives along the curving road, the badge and tag going with him. The birds' own
     breathing, blinking and stepping is in their pictures. */
@media (prefers-reduced-motion: no-preference) {
  .trail-mask { stroke-dasharray: 1; animation: trail-draw 16s linear infinite; }
  .trail { animation: trail-fade 16s linear infinite; }
  .person.mai { animation: mai-walk 16s linear infinite; }
  .person.mai .walking { animation: mai-stepping 16s linear infinite; }
  .person.mai .standing { animation: mai-standing 16s linear infinite; }
  .tag.swap > span:first-child { animation: label-walking 16s linear infinite; }
  .tag.swap > span:last-child { animation: label-home 16s linear infinite; }
  .heads-up { animation: heads-up 16s cubic-bezier(.3, 1.3, .5, 1) infinite; }
  .person.dad { animation: dad-drive 16s linear infinite; }
  .toprow .dot::before { animation: live-ring 1.6s linear infinite; }
  .person.nap .st { animation: nap-doze 4s ease-in-out infinite; }
}
/* Where Dad is in the still picture (and with less motion): on the curve, on his way. */
.person.dad { --x: 227; --y: 414; }
@media (prefers-reduced-motion: reduce) { .heads-up { transform: translateY(-160%); } }
@keyframes trail-draw {
  0%, 8% { stroke-dashoffset: 1; }
  70%, 100% { stroke-dashoffset: 0; }
}
@keyframes trail-fade { 0%, 100% { opacity: 0; } 6%, 92% { opacity: .9; } }
/* The trail: 22 down, 112 across, 60 down (194 in all) from 8% to 70%. */
@keyframes mai-walk {
  0% { --x: 88; --y: 236; opacity: 0; }
  6%, 8% { --x: 88; --y: 236; opacity: 1; }
  15.03% { --x: 88; --y: 258; }
  50.82% { --x: 200; --y: 258; }
  70%, 92% { --x: 200; --y: 318; opacity: 1; }
  100% { --x: 200; --y: 318; opacity: 0; }
}
@keyframes mai-stepping { 0%, 69.9% { opacity: 1; } 70%, 100% { opacity: 0; } }
@keyframes mai-standing { 0%, 69.9% { opacity: 0; } 70%, 100% { opacity: 1; } }
@keyframes label-walking { 0%, 70% { opacity: 1; } 71%, 100% { opacity: 0; } }
@keyframes label-home { 0%, 70% { opacity: 0; } 71%, 100% { opacity: 1; } }
@keyframes heads-up {
  0%, 72% { transform: translateY(-160%); }
  76%, 91% { transform: none; }
  96%, 100% { transform: translateY(-160%); }
}
@keyframes live-ring { 0% { transform: scale(1); opacity: .45; } 100% { transform: scale(2.4); opacity: 0; } }
@keyframes nap-doze { 0%, 100% { transform: none; } 50% { transform: translateY(-2px) rotate(-10deg) scale(1.08); } }

/* Dad drives the curving road (M-10 346 C 80 346, 140 420, 346 420), at a steady speed, in from
   the left and out at the right. */
@keyframes dad-drive {
  0.00% { --x: -80.0; --y: 350.0; }
  6.25% { --x: -48.1; --y: 350.0; }
  12.50% { --x: -16.2; --y: 350.0; }
  18.75% { --x: 15.5; --y: 352.0; }
  25.00% { --x: 46.6; --y: 359.1; }
  31.25% { --x: 76.8; --y: 369.3; }
  37.50% { --x: 106.6; --y: 380.5; }
  43.75% { --x: 136.6; --y: 391.2; }
  50.00% { --x: 167.1; --y: 400.7; }
  56.25% { --x: 198.0; --y: 408.6; }
  62.50% { --x: 229.2; --y: 414.8; }
  68.75% { --x: 260.8; --y: 419.3; }
  75.00% { --x: 292.5; --y: 422.2; }
  81.25% { --x: 324.4; --y: 423.7; }
  87.50% { --x: 356.2; --y: 424.0; }
  93.75% { --x: 388.1; --y: 424.0; }
  100.00% { --x: 420.0; --y: 424.0; }
}
@property --x { syntax: "<number>"; inherits: false; initial-value: 0; }
@property --y { syntax: "<number>"; inherits: false; initial-value: 0; }
.server-view { background: var(--night); color: var(--night-fg); padding: 40px 16px 16px; display: flex; flex-direction: column; gap: 12px; }
.server-view header { display: grid; gap: 4px; }
.server-view header b { font-size: 1rem; font-weight: 900; }
.server-view header small { color: var(--night-muted); font-size: .78rem; font-weight: 700; }
.rows { display: grid; gap: 8px; font-family: var(--mono); font-size: .72rem; }
.row { background: var(--night-2); border-radius: 12px; padding: 8px 10px; display: grid; gap: 4px; }
.row .meta { display: flex; justify-content: space-between; gap: 8px; color: var(--night-muted); }
.row .meta b { color: var(--mango); font-weight: 700; }
.row .hex { color: #7FE3CF; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; letter-spacing: .02em; }
.server-view .foot { margin-top: auto; font-size: .78rem; color: var(--night-muted); font-weight: 700; line-height: 1.45; }
.server-view .foot b { color: var(--night-fg); }

.seg { display: inline-flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.seg .chunky[aria-pressed="false"] { --face: var(--surface); --shade: var(--edge); --ink: var(--fg); }
.seg .chunky[aria-pressed="true"].srv { --face: var(--ink-fixed); --shade: #000; --ink: #fff; }
.stage-caption { text-align: center; color: var(--muted); font-size: .9375rem; max-width: 40ch; min-height: 3em; }

/* Who sees what */
.who { background: var(--surface); border-radius: var(--r-xl); box-shadow: 0 4px 0 var(--edge); padding: 8px; }
.table-scroll { overflow-x: auto; }
.who table { width: 100%; border-collapse: separate; border-spacing: 0; min-width: 520px; }
.who th, .who td { padding: 14px 16px; text-align: center; vertical-align: middle; }
.who thead th { font-size: .8125rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 900; }
.who thead th.you { color: var(--brand); }
.who tbody th { text-align: left; font-weight: 900; font-size: 1rem; }
.who tbody tr + tr > * { border-top: 1px solid var(--line); }
.who td small { display: block; color: var(--muted); font-size: .78rem; font-weight: 700; margin-top: 2px; }
.mark { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; font-weight: 900; font-size: 1rem; }
.mark.y { background: var(--teal-soft); color: var(--yes); }
.mark.n { background: var(--surface-2); color: var(--no); }
.mark.p { background: var(--mango-soft); color: var(--mango-ink); }
.quote {
  margin-top: 28px; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 18px; align-items: center;
  max-width: 860px;
}
.quote .q { width: 72px; height: 72px; }
.quote blockquote { margin: 0; font-size: clamp(1.125rem, 2vw, 1.35rem); font-weight: 800; line-height: 1.4; }
.quote cite { display: block; margin-top: 6px; font-style: normal; font-size: .9375rem; color: var(--muted); font-weight: 700; }

/* Security */
.sec-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); gap: 28px 24px; }
.sec { display: grid; grid-template-rows: auto auto 1fr; gap: 10px; align-content: start; min-width: 0; }
.sec .ic { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; box-shadow: 0 3px 0 var(--edge); }
.sec .ic svg { width: 28px; height: 28px; }
.sec h3 { font-size: 1.25rem; }
.sec p { color: var(--muted); font-size: 1rem; }
.sec code { font-family: var(--mono); font-size: .9em; background: var(--surface-2); color: var(--fg); padding: 1px 6px; border-radius: 6px; }
.ic.teal { background: var(--teal-soft); color: var(--teal-ink); }
.ic.mango { background: var(--mango-soft); color: var(--mango-ink); }
.ic.grape { background: var(--grape-soft); color: var(--grape-ink); }
.ic.coral { background: color-mix(in srgb, var(--coral) 20%, var(--surface)); color: var(--fg); }

/* Off by default (mango band) */
.mango-band { background: var(--mango); color: var(--ink-fixed); }
.mango-band .eyebrow { color: var(--mango-ink); }
.mango-band .section-head p { color: #4A3A12; }
.mango-band a { color: var(--ink-fixed); }
.offs { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 14px; }
.off {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 16px; align-items: center;
  background: #FFFFFF; color: var(--ink-fixed); border-radius: var(--r-md); padding: 16px 18px; box-shadow: 0 4px 0 var(--mango-shadow);
}
.off b { font-size: 1.0625rem; font-weight: 900; }
.off small { grid-column: 1; color: #5B6478; font-size: .9rem; font-weight: 700; line-height: 1.4; }
.switch { grid-row: 1 / span 2; grid-column: 2; width: 54px; height: 32px; border-radius: 16px; background: #E1E4EC; position: relative; }
.switch::after { content: ""; position: absolute; top: 4px; left: 4px; width: 24px; height: 24px; border-radius: 50%; background: #fff; box-shadow: 0 2px 0 #C3C8D4; }

/* Fun */
.stickers { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px 12px; margin-bottom: clamp(36px, 5vw, 56px); }
@media (max-width: 760px) { .stickers { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 480px) { .stickers { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.sticker { display: grid; justify-items: center; gap: 2px; text-align: center; }
.sticker svg { width: 100%; max-width: 104px; height: auto; transition: transform .15s; }
.sticker:hover svg { transform: rotate(-6deg) scale(1.06); }
@media (prefers-reduced-motion: reduce) { .sticker:hover svg { transform: none; } }
.sticker span { font-weight: 900; font-size: .9375rem; }
.fun-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 22px; }
.card { background: var(--surface); border-radius: var(--r-lg); box-shadow: 0 4px 0 var(--edge); padding: 22px; display: grid; gap: 12px; align-content: start; min-width: 0; }
.card h3 { font-size: 1.3rem; }
.card p { color: var(--muted); font-size: 1rem; }
.span-3 { grid-column: span 3; } .span-2 { grid-column: span 2; }
@media (max-width: 960px) { .span-2 { grid-column: span 3; } }
@media (max-width: 640px) { .span-2, .span-3 { grid-column: 1 / -1; } }
.art { border-radius: var(--r-md); background: var(--surface-2); min-height: 150px; display: grid; place-items: center; padding: 16px; position: relative; overflow: hidden; }

.story-art { background: linear-gradient(160deg, var(--teal-soft), var(--grape-soft)); }
.story { display: grid; justify-items: center; gap: 8px; }
.story .ring { width: 96px; height: 96px; border-radius: 50%; padding: 4px; background: conic-gradient(var(--coral), var(--mango), var(--grape), var(--coral)); }
.story .ring div { width: 100%; height: 100%; border-radius: 50%; border: 3px solid #fff; background: linear-gradient(180deg, #FF9F6B 0%, #FFC93C 45%, #2F8FE0 46%, #1B5FA0 100%); position: relative; overflow: hidden; }
.story .ring div::before { content: ""; position: absolute; left: 50%; top: 22%; width: 26px; height: 26px; border-radius: 50%; background: #FFF3DA; transform: translateX(-50%); }

.chat-art { display: grid; gap: 8px; place-items: stretch; align-content: center; }
.bubble { max-width: 82%; padding: 9px 13px; border-radius: 18px; font-size: .9rem; font-weight: 800; }
.bubble.them { background: var(--surface); color: var(--fg); border-bottom-left-radius: 6px; justify-self: start; }
.bubble.me { background: var(--teal-deep); color: #fff; border-bottom-right-radius: 6px; justify-self: end; }
.chat-art .stk { justify-self: end; width: 70px; height: 70px; }
.chat-art .pill { justify-self: center; }

.scratch { width: 100%; max-width: 300px; }
.scratch svg { display: block; width: 100%; height: auto; }
.scratch polygon { fill: var(--map-block); stroke: var(--surface-2); stroke-width: 1.5; stroke-linejoin: round; }
.scratch polygon.s1 { fill: var(--teal); }
.scratch polygon.s2 { fill: var(--mango); }
.scratch polygon.s3 { fill: var(--coral); }

.spots { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.spot { display: inline-flex; align-items: center; gap: 6px; background: var(--surface); color: var(--fg); border-radius: 14px; padding: 7px 12px; font-weight: 900; font-size: .875rem; box-shadow: 0 3px 0 var(--edge); }
.spot svg { width: 16px; height: 16px; color: var(--mango-ink); }
.toast { margin-top: 12px; display: flex; gap: 10px; align-items: center; background: var(--surface); border-radius: 16px; padding: 10px 12px; box-shadow: 0 3px 0 var(--edge); font-size: .85rem; font-weight: 800; }
.toast .dot { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: #FF7A59; font-size: 16px; border: 2px solid #fff; flex: none; }

.mini-pins { display: flex; gap: 28px; }
.mini { display: grid; justify-items: center; gap: 8px; }
.mini .av { position: relative; width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; font-size: 28px; border: 3px solid #fff; box-shadow: 0 3px 0 rgba(7, 11, 23, .2); }
.mini small { font-weight: 900; font-size: .85rem; }
.follow-art { display: grid; justify-items: center; gap: 12px; }
.follow-art .av { width: 60px; height: 60px; border-radius: 50%; display: grid; place-items: center; font-size: 30px; border: 3px solid #fff; box-shadow: 0 0 0 10px rgba(255, 122, 89, .25), 0 3px 0 rgba(7, 11, 23, .2); }
.follow { display: inline-flex; align-items: center; gap: 6px; background: var(--teal); color: #fff; border-radius: 20px; padding: 7px 14px; font-weight: 900; font-size: .875rem; }
.follow svg { width: 16px; height: 16px; }
.suggest { display: grid; justify-items: center; gap: 4px; text-align: center; }
.suggest b { font-size: 1.05rem; font-weight: 900; }
.suggest small { color: var(--muted); font-weight: 800; margin-bottom: 8px; }
.avatars { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.avatars span { width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; font-size: 26px; border: 3px solid #fff; box-shadow: 0 3px 0 var(--edge); }

.link-art { display: grid; gap: 10px; justify-items: center; }
.share-link { font-family: var(--mono); font-size: .8rem; background: var(--surface); color: var(--fg); padding: 8px 12px; border-radius: 12px; box-shadow: 0 3px 0 var(--edge); max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.safety { margin-top: 22px; display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.safety b { font-weight: 900; margin-right: 6px; }
.chip { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 14px; background: var(--surface); box-shadow: 0 3px 0 var(--edge); font-weight: 800; font-size: .9375rem; }
.chip i { width: 10px; height: 10px; border-radius: 50%; display: inline-block; font-style: normal; }

/* Self-host (night band) */
.night-band { background: var(--night); color: var(--night-fg); }
.night-band .eyebrow { color: #3FD1B7; }
.night-band .section-head p { color: var(--night-muted); }
.night-band a { color: #3FD1B7; }
.host { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(28px, 5vw, 64px); align-items: center; }
@media (max-width: 900px) { .host { grid-template-columns: minmax(0, 1fr); } }
.host .section-head { margin-bottom: 0; }
.facts { display: grid; gap: 12px; list-style: none; padding: 0; margin: 8px 0 0; }
.facts li { display: grid; grid-template-columns: 26px minmax(0, 1fr); gap: 10px; color: var(--night-fg); font-weight: 700; }
.facts li::before { content: ""; width: 22px; height: 22px; margin-top: 2px; border-radius: 50%; background: #3FD1B7 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2316213A' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center / 14px no-repeat; }
.term { background: #0B1020; border-radius: var(--r-lg); box-shadow: 0 6px 0 #000; overflow: hidden; min-width: 0; }
.term-bar { display: flex; gap: 7px; padding: 12px 16px; background: #141B31; align-items: center; }
.term-bar i { width: 12px; height: 12px; border-radius: 50%; display: inline-block; }
.term-bar span { margin-left: 8px; font-family: var(--mono); font-size: .78rem; color: var(--night-muted); }
.term pre { margin: 0; padding: 18px 20px 22px; overflow-x: auto; font-family: var(--mono); font-size: .875rem; line-height: 1.75; color: #D6DCEB; }
.term .p { color: #3FD1B7; user-select: none; }
.term .c { color: #7C88A8; }
.term .o { color: #FFC93C; }

/* Get */
.get { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); align-items: start; }
@media (max-width: 900px) { .get { grid-template-columns: minmax(0, 1fr); } }
.get .section-head { margin-bottom: 0; }
.steps { display: grid; gap: 16px; }
.step { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 14px; align-items: start; }
.step .n { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--mango); color: var(--ink-fixed); font-weight: 900; font-size: 1.1rem; box-shadow: 0 3px 0 var(--mango-shadow); }
.step b { font-weight: 900; display: block; font-size: 1.0625rem; }
.step p { color: var(--muted); font-size: 1rem; }
.fp { margin-top: 8px; display: grid; gap: 10px; background: var(--surface); border-radius: var(--r-md); padding: 14px; box-shadow: 0 4px 0 var(--edge); }
.fp code { font-family: var(--mono); font-size: .78rem; line-height: 1.6; word-break: break-all; color: var(--fg); }
.fp-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.fp-row small { color: var(--muted); font-weight: 800; font-size: .8125rem; }
.status { font-size: .8125rem; font-weight: 800; color: var(--brand); min-height: 1.2em; }


.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.th-sub { display: block; text-transform: none; letter-spacing: 0; font-weight: 700; font-size: .75rem; margin-top: 2px; }
.who-note { padding: 6px 16px 14px; color: var(--muted); font-size: .9375rem; }
.cmp table { min-width: 560px; }
.cmp th.us, .cmp td.us { background: color-mix(in srgb, var(--teal) 9%, transparent); }
.cmp thead th.us { border-radius: 18px 18px 0 0; font-size: .95rem; }
.cmp tbody tr:last-child td.us { border-radius: 0 0 18px 18px; }
.fine { margin-top: 18px; color: var(--muted); font-size: .875rem; max-width: 80ch; }
.plans { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; align-items: stretch; }
.plans.three { grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 8px; }
@media (max-width: 1060px) { .plans, .plans.three { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .plans, .plans.three { grid-template-columns: minmax(0, 1fr); } }
.plan { position: relative; background: var(--surface); border-radius: var(--r-lg); box-shadow: 0 4px 0 var(--edge); padding: 24px 22px 20px; display: grid; grid-template-rows: auto auto auto 1fr auto; gap: 10px; min-width: 0; border: 3px solid transparent; }
.plan.featured { border-color: var(--teal); box-shadow: 0 5px 0 var(--teal-shadow); }
.plan.self { background: var(--night); color: var(--night-fg); box-shadow: 0 4px 0 #000; }
.plan.self .for, .plan.self .price span, .plan.self .plan-foot { color: var(--night-muted); }
.plan.self a { color: #3FD1B7; }
.plan.self li::before { background-color: #3FD1B7; }
.plan .flag { position: absolute; top: -14px; left: 20px; background: var(--mango); color: var(--ink-fixed); font-weight: 900; font-size: .8125rem; padding: 4px 12px; border-radius: 10px; box-shadow: 0 3px 0 var(--mango-shadow); }
.plan h3 { font-size: 1.4rem; }
.price { display: flex; align-items: baseline; gap: 6px; }
.price b { font-size: 2.6rem; font-weight: 900; line-height: 1; letter-spacing: -0.02em; }
.price span { color: var(--muted); font-weight: 800; font-size: .9375rem; }
.plan .for { color: var(--muted); font-size: .9375rem; }
.plan ul { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 8px; align-content: start; }
.plan li { display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: 8px; font-weight: 800; font-size: .9375rem; }
.plan li::before { content: ""; width: 18px; height: 18px; margin-top: 3px; border-radius: 50%; background: var(--teal) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center / 12px no-repeat; }
.plan code { font-family: var(--mono); font-size: .85em; }
.plan-foot { margin-top: 8px; padding-top: 12px; border-top: 1px dashed var(--line); font-size: .875rem; font-weight: 800; color: var(--muted); }
.plan.self .plan-foot { border-top-color: #2A3554; }

.half { width: 14px; height: 14px; border-radius: 50%; border: 2px solid currentColor; background: linear-gradient(90deg, currentColor 50%, transparent 50%); }


/* AI surveillance */
.ai-band { background: var(--grape-soft); }
.ai-band .eyebrow { color: var(--grape-ink); }
.ai { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(28px, 5vw, 64px); align-items: center; }
@media (max-width: 900px) { .ai { grid-template-columns: minmax(0, 1fr); } }
.ai .section-head { margin-bottom: 28px; }
.ai-points { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 28px; }
@media (max-width: 560px) { .ai-points { grid-template-columns: minmax(0, 1fr); } }
.ai-pt { display: grid; gap: 4px; align-content: start; padding-left: 16px; border-left: 4px solid var(--grape); min-width: 0; }
.ai-pt:last-child { grid-column: 1 / -1; }
.ai-pt b { font-weight: 900; font-size: 1.0625rem; }
.ai-pt p { color: var(--muted); font-size: .975rem; }
.probe { margin: 0; background: var(--night); color: var(--night-fg); border-radius: var(--r-lg); box-shadow: 0 6px 0 #000; overflow: hidden; min-width: 0; }
.probe-bar { background: #241B57; padding: 10px 16px; font-family: var(--mono); font-size: .78rem; color: #CFC6FF; }
.probe-body { padding: 18px; display: grid; gap: 14px; }
.ask { justify-self: end; max-width: 85%; background: var(--grape); color: #fff; padding: 10px 14px; border-radius: 18px 18px 6px 18px; font-weight: 800; }
.probe-in { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.probe-in span { font-size: .78rem; font-weight: 900; text-transform: uppercase; letter-spacing: .06em; color: var(--night-muted); margin-right: 4px; }
.probe-in code { font-family: var(--mono); font-size: .78rem; background: var(--night-2); color: #7FE3CF; padding: 4px 8px; border-radius: 8px; }
.answer { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 12px; align-items: center; background: var(--night-2); border-radius: 18px 18px 18px 6px; padding: 10px 14px 10px 8px; font-weight: 700; color: var(--night-muted); }
.answer .q { width: 56px; height: 56px; }
.answer b { color: var(--mango); font-weight: 900; }
.probe figcaption { padding: 0 18px 18px; font-size: .8125rem; color: var(--night-muted); font-weight: 700; }

/* Footer */
footer { border-top: 1px solid var(--line); padding-block: 40px 56px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 24px 40px; align-items: flex-start; justify-content: space-between; }
footer .brand { font-size: 1.25rem; }
footer p { color: var(--muted); font-size: .9375rem; max-width: 42ch; margin-top: 8px; }
footer nav { display: grid; grid-template-columns: repeat(2, minmax(0, auto)); gap: 8px 32px; }
footer nav a { font-size: .9375rem; }

/* Home: benefits, safety, levels, teaser */
.tab.all { background: var(--mango-soft); color: var(--mango-ink); }
.benefits { grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }
.safety-band { background: var(--teal-soft); }
.safety-band .eyebrow { color: var(--teal-ink); }
.safety-band .section-head p { color: var(--fg); opacity: .8; }
.safe-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 16px; }
.safe { display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 14px; align-items: start; background: var(--surface); border-radius: var(--r-md); padding: 16px 18px; box-shadow: 0 4px 0 var(--edge); }
.safe-ic { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; color: #fff; font-weight: 900; font-size: 1.35rem; }
.safe b { display: block; font-weight: 900; font-size: 1.0625rem; }
.safe p { color: var(--muted); font-size: .975rem; }
.bird-art { display: grid; gap: 14px; justify-items: center; }
.levels { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 16px; margin-bottom: 28px; }
.level { background: var(--ink-fixed); color: #EDF0F7; border-radius: var(--r-lg); padding: 22px; display: grid; gap: 8px; align-content: start; box-shadow: 0 4px 0 #070B17; }
.level h3 { font-size: 1.35rem; }
.level p { color: #C9D0E2; font-size: 1rem; }
.level:nth-child(2) h3 { color: #3FD1B7; }
.level:nth-child(3) h3 { color: var(--mango); }
.more-link { margin-top: 24px; font-size: 1.0625rem; }
.plans.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 960px) { .plans.three { grid-template-columns: minmax(0, 1fr); max-width: 520px; } }
.plan .price b { font-size: 2.2rem; }
.warn { font-size: .9375rem; font-weight: 800; color: var(--mango-ink); background: var(--mango-soft); border-radius: var(--r-sm); padding: 10px 14px; }
.warn a { color: inherit; text-decoration: underline; text-underline-offset: 2px; white-space: nowrap; }
/* On a phone the link wraps, or it pushes the page wider than the screen. */
@media (max-width: 480px) { .warn a { white-space: normal; } }
/* Not released yet: the download button, crossed out and not a link. */
.chunky.soon { cursor: not-allowed; opacity: .55; filter: saturate(.6); }
.chunky.soon:hover { filter: saturate(.6); }
.chunky.soon:active { transform: none; box-shadow: 0 4px 0 var(--shade); }
.chunky.soon s { text-decoration-thickness: 2px; }
.cta-row .pill { align-self: center; }
.teaser-wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; }
.teaser-wrap > div { display: grid; gap: 12px; max-width: 640px; }
.teaser h2 { font-size: clamp(2rem, 4.4vw, 3rem); }
.teaser p { color: var(--night-muted); font-size: 1.125rem; }
.teaser .chunky { color: var(--ink-fixed); }

/* How it works */
.page-hero { padding-block: clamp(28px, 5vw, 64px) clamp(8px, 2vw, 16px); }
.page-hero .wrap { display: grid; gap: 18px; max-width: 860px; margin-left: max(0px, calc((100% - 1160px) / 2)); }
.page-hero h1 { font-size: clamp(2.4rem, 5.6vw, 4rem); line-height: 1; letter-spacing: -0.02em; }
.page-hero .warn { justify-self: start; }
.back { font-size: .9375rem; text-decoration: none; }
/* Privacy policy and account deletion: one column of plain text */
.updated { color: var(--muted); font-size: .9375rem; font-weight: 700; }
.legal-band { padding-top: clamp(8px, 2vw, 24px); }
.legal { max-width: 760px; margin-left: max(0px, calc((100% - 1160px) / 2)); }
.legal h2 { font-size: clamp(1.35rem, 2.4vw, 1.75rem); margin: clamp(32px, 4vw, 44px) 0 12px; scroll-margin-top: 96px; }
.legal h2:first-child { margin-top: 0; }
.legal p, .legal li { font-size: 1.0625rem; line-height: 1.65; }
.legal p + p, .legal ul + p, .legal ol + p, .legal p + ul, .legal p + ol { margin-top: 12px; }
.legal ul, .legal ol { margin: 0; padding-left: 1.3em; display: grid; gap: 6px; }
.legal .updated { margin-top: clamp(28px, 4vw, 40px); }
.flow { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); gap: 16px; counter-reset: step; }
.flow li { counter-increment: step; position: relative; background: var(--surface); border-radius: var(--r-lg); padding: 20px 20px 20px 20px; box-shadow: 0 4px 0 var(--edge); display: grid; gap: 6px; align-content: start; }
.flow li::before { content: counter(step); width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--teal-deep); color: #fff; font-weight: 900; margin-bottom: 4px; }
.flow b { font-weight: 900; font-size: 1.125rem; }
.flow p { color: var(--muted); font-size: .975rem; }
.limits .off { grid-template-columns: minmax(0, 1fr); }
.safety a.chip { color: var(--fg); text-decoration: none; }
.safety a.chip:hover { color: var(--brand); }
.doc-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 12px 28px; }
.doc-list li { display: grid; gap: 2px; padding: 12px 0; border-top: 1px solid var(--line); }
.doc-list span { color: var(--muted); font-size: .9375rem; }
.safe-ic.txt { font-size: .95rem; letter-spacing: .02em; }

/* A ring of faces above the thumb */
.ring-art { position: relative; width: 210px; max-width: 100%; height: 118px; }
.ring-art .av { position: absolute; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; font-size: 18px; border: 3px solid var(--surface); box-shadow: 0 2px 0 var(--edge); }
.ring-art .av.up { width: 52px; height: 52px; font-size: 24px; border-color: var(--mango); }
.ring-art .thumb { position: absolute; left: 50%; bottom: 0; transform: translateX(-50%); width: 46px; height: 22px; border-radius: 999px; background: var(--surface-2); box-shadow: 0 2px 0 var(--edge); }
/* Map look swatches */
.swatches { display: flex; gap: 12px; }
.swatch { width: 92px; height: 92px; border-radius: 18px; overflow: hidden; box-shadow: 0 3px 0 var(--edge); }
.swatch svg { display: block; width: 100%; height: 100%; }
.swatch small { display: block; }
/* Birds drawn by site.js (data-bird): avatars sit on a pale tint of the person's colour */
[data-bird] > img, [data-bird] > svg, [data-quail] > svg { display: block; width: 100%; height: 100%; }
[data-bird] > img { object-fit: contain; -webkit-user-drag: none; user-select: none; }
/* The round badges (avatar-*) bring their own tint; they fill their circle. */
.av.b, .dot.b { padding: 0; }
.av.b > img, .dot.b > img { width: 100%; height: 100%; border-radius: 50%; }
.av.b > .st { z-index: 1; }
/* Builds you can check: the commands beside the key and the server */
.verify { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 20px; align-items: start; }
@media (max-width: 900px) { .verify { grid-template-columns: minmax(0, 1fr); } }
.verify-side { display: grid; gap: 16px; }
.verify-card { background: var(--surface); border-radius: var(--r-lg); padding: 20px; box-shadow: 0 4px 0 var(--edge); display: grid; gap: 8px; }
.verify-card h3 { margin: 0; font-weight: 900; font-size: 1.125rem; }
.verify-card p { margin: 0; color: var(--muted); }
.verify-card .fp { margin-top: 4px; box-shadow: none; background: var(--surface-2); }
/* Who sees what: a card per party. The headings (an eye, a lock) carry the meaning, not per-item marks. */
.parties { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 16px; }
.party { background: var(--surface); border-radius: var(--r-lg); box-shadow: 0 4px 0 var(--edge); padding: 20px; display: grid; gap: 12px; align-content: start; border-top: 6px solid var(--pc); }
.party.p-circle { --pc: var(--teal); } .party.p-server { --pc: var(--grape); } .party.p-isp { --pc: var(--sky); } .party.p-map { --pc: var(--mango); }
.party header { display: flex; gap: 12px; align-items: center; }
.party .pi { width: 42px; height: 42px; border-radius: 14px; background: var(--pc); display: grid; place-items: center; flex: none; color: #fff; }
.party .pi svg { width: 24px; height: 24px; }
.party h3 { margin: 0; font-size: 1.125rem; font-weight: 900; }
.party header small { display: block; color: var(--muted); font-weight: 700; font-size: .8rem; }
.party h4 { margin: 4px 0 0; display: flex; align-items: center; gap: 6px; font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); font-weight: 900; }
.party h4 svg { width: 16px; height: 16px; flex: none; }
.party ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.party li { font-weight: 700; font-size: .95rem; padding-left: 12px; border-left: 3px solid var(--line); }
.party .sees li { border-left-color: var(--pc); }
.party li small { display: block; color: var(--muted); font-weight: 700; font-size: .8rem; }
.who-note { margin-top: 16px; }
/* Language switch (English and Vietnamese pages, made by tools/make-vi.py) */
.lang { display: flex; gap: 2px; padding: 3px; border-radius: 999px; background: var(--surface-2); flex: none; }
.lang a { padding: 6px 10px; border-radius: 999px; font-weight: 900; font-size: .8rem; color: var(--muted); text-decoration: none; line-height: 1; }
.lang a[aria-current="page"] { background: var(--surface); color: var(--fg); box-shadow: 0 2px 0 var(--edge); }
.lang a:hover { color: var(--fg); }
.lang a:focus-visible { outline: 3px solid var(--brand); outline-offset: 1px; }
@media (max-width: 820px) { .nav .lang { margin-left: auto; } .nav .lang + .chunky { margin-left: 0; } }
/* Vietnamese nav labels are longer: fold the links away sooner */
@media (max-width: 1180px) { :root[lang="vi"] .nav ul { display: none; } :root[lang="vi"] .nav .lang { margin-left: auto; } }
/* Support Koilee: the copy beside a card of birds and the Legendary collections */
.support { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); align-items: center; }
@media (max-width: 860px) { .support { grid-template-columns: minmax(0, 1fr); } }
.support .section-head { margin-bottom: 0; }
.support-list { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 10px; }
.support-list li { position: relative; padding-left: 26px; font-weight: 700; }
.support-list li::before { content: ""; position: absolute; left: 4px; top: .5em; width: 10px; height: 10px; border-radius: 50%; background: var(--mango); box-shadow: 0 2px 0 var(--mango-shadow); }
.support-art { background: var(--surface); border-radius: var(--r-xl); box-shadow: 0 5px 0 var(--edge); padding: clamp(20px, 4vw, 32px); display: grid; gap: 14px; justify-items: center; text-align: center; }
.support-title { margin: 0; font-weight: 900; font-size: 1.125rem; }
.support-note { margin: 0; color: var(--muted); font-size: .9rem; font-weight: 700; }
.donate { margin-top: 22px; display: grid; gap: 10px; }
.donate p { margin: 0; color: var(--muted); font-weight: 700; }
.donate .chunky svg { width: 18px; height: 18px; }
/* 404: a lost bird, centred */
.notfound { padding-block: clamp(48px, 9vw, 112px); }
.notfound .wrap { display: grid; justify-items: center; text-align: center; gap: 14px; max-width: 640px; }
.notfound h1 { margin: 0; font-size: clamp(2rem, 5vw, 3.2rem); line-height: 1.05; text-wrap: balance; }
.notfound .lead { margin: 0; }
.notfound .cta-row { justify-content: center; }
.lost { position: relative; width: 150px; height: 150px; }
.lost .stk { display: block; width: 100%; height: 100%; }
.lost .q-bubble { position: absolute; top: -4px; right: -14px; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
  background: var(--grape); color: #fff; font-weight: 900; font-size: 1.5rem; box-shadow: 0 3px 0 var(--edge); }
.nav .brand + .lang { margin-left: auto; } /* a navbar with no links (404) */

/* The conga line (between Compare and Support): the app's birds in their looks, walking across the
   page in step, a kick on every fourth beat ("one, two, three, kick!"). Their legs and wings move in
   their own pictures; the line's pace is set by site.js to match them. */
.conga-band { position: relative; height: 128px; overflow: hidden; margin: 8px 0 clamp(24px, 4vw, 40px); }
.conga-band::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 14px; height: 2px;
  background: repeating-linear-gradient(90deg, var(--line) 0 10px, transparent 10px 20px);
}
.conga-line { position: absolute; left: 0; bottom: 12px; display: flex; gap: 2px; width: max-content; }
.conga-line .cg { width: 92px; height: 104px; display: block; transform-origin: 50% 100%; }
.conga-line .cg:nth-child(odd) { margin-bottom: 2px; }
@media (prefers-reduced-motion: no-preference) {
  .conga-line { animation: conga-trip var(--trip, 36s) linear infinite; }
  .conga-line .cg { animation: conga-kick 1.74s ease-in-out infinite; }
  .conga-line.paused, .conga-line.paused .cg { animation-play-state: paused; }
}
@media (prefers-reduced-motion: reduce) { .conga-line { left: 50%; transform: translateX(-50%); } }
@keyframes conga-trip { from { transform: translateX(-100%); } to { transform: translateX(100vw); } }
@keyframes conga-kick {
  0%, 62%, 100% { transform: none; }
  12%, 37% { transform: rotate(-3deg); }
  25%, 50% { transform: rotate(3deg); }
  74% { transform: translateY(-12px) rotate(-8deg); }
  86% { transform: translateY(-2px) rotate(2deg); }
}
.conga-line .cg:nth-child(2n) { animation-delay: -.06s; }
.conga-line .cg:nth-child(3n) { animation-delay: -.12s; }

/* The Legendary collections: a stage for one item at a time, and the rest to pick. */
.legend { justify-items: stretch; }
.legend-tabs { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.legend-tabs button {
  font: inherit; font-size: .85rem; font-weight: 800; cursor: pointer; border: 0; border-radius: 999px; padding: 8px 14px;
  background: var(--surface-2); color: var(--fg); box-shadow: 0 3px 0 var(--edge);
}
.legend-tabs button[aria-selected="true"] { background: var(--grape); color: #fff; box-shadow: 0 3px 0 #5A3FD6; }
.legend-stage {
  position: relative; display: grid; justify-items: center; gap: 4px; padding: 18px 12px 14px; border-radius: var(--r-lg);
  background: radial-gradient(ellipse at 50% 70%, #2B2F77 0%, #16213A 70%); overflow: hidden; min-height: 260px;
}
.legend-stage::before {
  content: ""; position: absolute; inset: 0; opacity: .7; pointer-events: none;
  background:
    radial-gradient(1.5px 1.5px at 12% 20%, #fff 50%, transparent 51%), radial-gradient(1px 1px at 30% 70%, #fff 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 72% 16%, #FFE27A 50%, transparent 51%), radial-gradient(1px 1px at 86% 58%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 52% 10%, #B9C4FF 50%, transparent 51%), radial-gradient(1.5px 1.5px at 20% 86%, #B9C4FF 50%, transparent 51%),
    radial-gradient(1px 1px at 92% 88%, #FFE27A 50%, transparent 51%), radial-gradient(1px 1px at 6% 52%, #fff 50%, transparent 51%);
}
@media (prefers-reduced-motion: no-preference) { .legend-stage::before { animation: twinkle 3.2s ease-in-out infinite alternate; } }
@keyframes twinkle { from { opacity: .35; } to { opacity: .85; } }
.legend-hero { position: relative; width: min(100%, 240px); height: 210px; display: block; }
.legend-hero img, .legend-hero > svg { width: 100%; height: 100%; object-fit: contain; display: block; }
@media (prefers-reduced-motion: no-preference) { .legend-hero > svg { animation: legend-in .45s cubic-bezier(.3, 1.4, .5, 1); } }
@keyframes legend-in { from { transform: scale(.7) translateY(14px); opacity: 0; } }
.legend-name { position: relative; margin: 0; color: #fff; font-weight: 900; font-size: 1.05rem; min-height: 1.4em; }
/* Birds and wear turn under a finger (site.js): across turns them, up and down still scroll. */
.legend-hint { position: relative; margin: -4px 0 0; color: #C9D0E2; font-size: .85rem; font-weight: 700; }
.legend-hero.turnable { cursor: grab; touch-action: pan-y; user-select: none; -webkit-user-select: none; border-radius: 16px; }
.legend-hero.turnable.grabbing { cursor: grabbing; }
.legend-hero.turnable:focus-visible { outline: 3px solid #3FD1B7; outline-offset: 4px; }
.legend-hero > svg.legend-turn { position: absolute; inset: 0; visibility: hidden; animation: none; }
.legend-hero.turned > svg.legend-turn { visibility: visible; }
.legend-hero.turned > :not(.legend-turn) { visibility: hidden; }
.legend-items { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.legend-items[hidden] { display: none; }
.legend-item {
  font: inherit; cursor: pointer; border: 0; display: grid; justify-items: center; gap: 2px; width: 84px; padding: 6px 4px 8px;
  border-radius: var(--r-sm); background: var(--surface-2); color: var(--fg); box-shadow: 0 3px 0 var(--edge);
  transition: transform .15s ease;
}
.legend-item:hover { transform: translateY(-2px); }
.legend-item[aria-pressed="true"] { background: var(--grape-soft); box-shadow: 0 0 0 2px var(--grape), 0 3px 0 var(--edge); }
.legend-item .th { width: 64px; height: 56px; display: block; }
.legend-item .nm { font-size: .72rem; font-weight: 800; line-height: 1.15; }
@media (prefers-reduced-motion: reduce) { .legend-item { transition: none; } .legend-item:hover { transform: none; } }

/* The server view, moving: posts keep arriving, each scrambled for a moment, then like the rest. */
.server-view .rows { overflow: hidden; min-height: 0; flex: 1 1 auto; align-content: start; }
.inbox { display: flex; align-items: center; gap: 8px; color: var(--night-muted); font-size: .72rem; font-weight: 800; }
.inbox .lock { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: var(--night-2); color: var(--mango); }
.inbox .lock svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.inbox .pulse { width: 8px; height: 8px; border-radius: 50%; background: #7FE3CF; opacity: .35; }
.inbox.ping .pulse { animation: inbox-ping .9s ease-out; }
.inbox.ping .arrive { animation: inbox-word .9s ease-out; }
.row.new { animation: post-in .5s cubic-bezier(.3, 1.3, .5, 1); }
.row.new .hex { animation: post-hex 1.2s ease-out; }
@keyframes inbox-ping { 0% { opacity: 1; box-shadow: 0 0 0 0 rgba(127, 227, 207, .7); } 100% { opacity: .35; box-shadow: 0 0 0 10px rgba(127, 227, 207, 0); } }
@keyframes inbox-word { 0% { color: #7FE3CF; } 100% { color: var(--night-muted); } }
@keyframes post-in { from { transform: translateY(-60%); opacity: 0; } }
@keyframes post-hex { 0% { color: var(--mango); } 100% { color: #7FE3CF; } }
