@font-face {
  font-family: 'Geologica';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url(fonts/geologica-cyrillic.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Geologica';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url(fonts/geologica-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
:root {
  --black: #000;
  --navy: #0d1631;
  --tile: #121a3d;
  --peri: #dee3ff;
  --ink: #0d1631;
  --ink-2: #3b4675;
  --soft: #a9b4e6;
  --line: #24305c;
  /* Borders of interactive things: 3:1 or better on black and navy (WCAG 1.4.11). */
  --edge: #5a69a6;
  --mark: #ffe94d;
  --sans: 'Geologica', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --gutter: clamp(1rem, 4vw, 2.5rem);
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .5 0 0 0 0 .55 0 0 0 0 .8 0 0 0 .09 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  --scene: radial-gradient(ellipse 70% 65% at 50% 38%, #1d2a5c 0%, #0b1230 55%, #03050d 100%);
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--grain), var(--black);
  color: #fff;
  font: 400 1.125rem/1.55 var(--sans);
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

button { font: inherit; }

:focus-visible { outline: 3px solid var(--mark); outline-offset: 3px; }

.wrap { max-width: 76rem; margin-inline: auto; padding-inline: var(--gutter); }

.skip {
  position: absolute;
  top: -4rem;
  left: 1rem;
  z-index: 10;
  padding: 0.6rem 1rem;
  border-radius: 0.5rem;
  background: var(--mark);
  color: var(--ink);
  font-weight: 700;
}

.skip:focus { top: 1rem; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* Yellow highlight = words PsychGuard has marked as manipulative. */
.marked {
  padding: 0 0.12em;
  border-radius: 0.12em;
  background: linear-gradient(var(--mark), var(--mark)) no-repeat 0 0 / 100% 100%;
  color: var(--ink);
  text-shadow: none;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

/* Split-flap ("airport board") */

/* Tiles are a visual copy of text that exists once elsewhere (sr-only), so they are not selectable. */
.board { display: inline-flex; gap: 2px; perspective: 300px; user-select: none; }

.cell {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 1.06em; /* widest board letters (Ж, Ш, М) are about 0.98em in Geologica 600 */
  height: 1.4em;
  overflow: hidden;
  border-radius: 0.14em;
  background: var(--tile);
  color: var(--mark);
  font-weight: 600;
}

.cell.is-blank { background: transparent; }
.cell.is-blank::after { display: none; }

.cell::after {
  content: '';
  position: absolute;
  top: 50%;
  right: 0;
  left: 0;
  height: 1px;
  background: rgba(0, 0, 0, 0.6);
}

.ch { display: block; line-height: 1; transform-origin: 50% 50%; }
.ch.flip { animation: flip 0.07s linear; }

/* Proportional text that flaps in place: each letter keeps the width of its final glyph. */
.word { display: inline-block; white-space: nowrap; }
.fl { position: relative; display: inline-block; border-radius: 0.1em; transition: background-color 0.4s; }
/* The real letter (.sizer) is the only copy in the text; the flipping glyph is an
   overlay that exists only while flapping, so copying the line gives clean text. */
.fl .ch { display: none; }
.flapping .fl {
  background: var(--flap-bg, rgba(18, 26, 61, 0.9));
  box-shadow: inset 1px 0 0 var(--flap-gap, rgba(0, 0, 0, 0.35));
  clip-path: inset(0 round 0.1em); /* keeps a wider flip glyph inside its cell */
}
.flapping .fl::after {
  content: '';
  position: absolute;
  top: 52%;
  right: 0;
  left: 0;
  height: 1px;
  background: var(--flap-line, rgba(0, 0, 0, 0.5));
}
.flapping .fl .sizer { visibility: hidden; }
.flapping .fl .ch {
  position: absolute;
  inset: 0;
  display: flex;
  justify-content: center;
  color: var(--flap-fg, inherit);
  line-height: inherit;
  user-select: none;
}

/* On yellow (highlighted words, PsychGuard's caption) the flaps are yellow bars. */
.marked, .caption {
  --flap-bg: #f7dc3c;
  --flap-fg: var(--ink);
  --flap-line: rgba(13, 22, 49, 0.28);
  --flap-gap: rgba(13, 22, 49, 0.18);
}

/* Header with the patterns board */

.site-head {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 0.9rem 1.5rem;
  padding-block: 1.25rem;
}

.site-head .brand { justify-self: start; }
.site-head .lang { justify-self: end; }

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font: 800 1.5rem/1 var(--sans);
  letter-spacing: -0.02em;
  text-decoration: none;
}

.lang { color: var(--soft); text-underline-offset: 0.2em; }

.spots {
  display: flex;
  align-items: center;
  justify-self: center;
  flex-wrap: wrap;
  gap: 0.5rem 0.6rem;
  margin: 0;
  color: var(--soft);
  font-size: 0.95rem;
}

.spots .board { font-size: 1rem; }
.spots .board:not(:has(.cell)) { color: var(--mark); font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; }

@media (max-width: 56rem) {
  .site-head { grid-template-columns: 1fr auto; }
  .spots { grid-row: 2; grid-column: 1 / -1; justify-self: center; }
}

@media (max-width: 27rem) { .spots .board { font-size: 0.8rem; } }

/* Presence face */

.face { display: block; flex-shrink: 0; }
.face-screen { fill: var(--navy); }
.face-lines { fill: none; stroke: var(--mark); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.face-lines circle { fill: var(--mark); stroke: none; }
.face-brand { width: 2rem; height: 2rem; }
.face-live { width: clamp(2.25rem, 1.8rem + 1.5vw, 3.25rem); height: auto; aspect-ratio: 1; }
.face-live .face-screen { fill: rgba(13, 22, 49, 0.75); }
.face-avatar { width: 2.1em; height: 2.1em; }
.f-neutral, .f-concerned { opacity: 0; }

/* Hero: one example at a time, as three marked parts on a line:
   they wrote -> PsychGuard noticed -> you could reply. */

.hero { padding-bottom: clamp(1rem, 3vw, 2rem); }

.stage {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  margin: 0;
  padding: clamp(1.5rem, 4.5vw, 4rem) clamp(1.25rem, 5vw, 4.5rem) clamp(1.25rem, 3vw, 2.25rem);
  border-radius: 0.6rem;
  background: var(--scene);
  container-type: inline-size;
}

.stage::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 3;
  background: var(--grain);
  pointer-events: none;
}

/* Background: the conversation, always out of focus and dim. Atmosphere only. */
.shot {
  position: absolute;
  inset: -10% -5% -10% 30%;
  z-index: 0;
  display: grid;
  place-items: center;
  opacity: 0.32;
  filter: blur(14px);
  transform: perspective(900px) rotateX(14deg) rotateZ(-6deg);
  pointer-events: none;
}

.shot-chat { display: flex; flex-direction: column; gap: 1rem; width: min(34rem, 80%); font: 600 2rem/1.25 var(--sans); user-select: none; }
.bub { max-width: 85%; margin: 0; padding: 0.55em 0.85em; border-radius: 1em; color: #e8ecff; }
.bub-out { align-self: flex-end; background: #2b5278; }
.bub-in { align-self: flex-start; background: #1d2b57; }

.face-bug { position: absolute; top: clamp(1rem, 3vw, 2rem); right: clamp(1rem, 3vw, 2rem); z-index: 2; }

.beats {
  position: relative;
  z-index: 2;
  display: grid;
  gap: clamp(1.5rem, 3.5vw, 2.75rem);
  max-width: 58rem;
  margin: 0;
  padding: 0 0 0 clamp(1.5rem, 3vw, 2.25rem);
  list-style: none;
}

/* The line that joins the three parts (a real sequence). */
.beats::before {
  content: '';
  position: absolute;
  top: 0.7rem;
  bottom: 0.7rem;
  left: 0.3rem;
  width: 2px;
  background: linear-gradient(var(--soft), var(--mark) 50%, var(--peri));
  opacity: 0.45;
}

.beat { position: relative; }

.beat-label {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.75rem;
  margin: 0 0 0.6rem;
  color: var(--soft);
  font-weight: 600;
  font-size: clamp(0.95rem, 0.9rem + 0.3vw, 1.1rem);
}

.beat-label::before {
  content: '';
  position: absolute;
  top: 0.3rem;
  left: calc(-1 * clamp(1.5rem, 3vw, 2.25rem) + 0.3rem - 0.4rem + 1px);
  width: 0.8rem;
  height: 0.8rem;
  border-radius: 50%;
  background: var(--soft);
  box-shadow: 0 0 0 4px rgba(3, 5, 13, 0.9);
}

.beat-detect .beat-label::before { background: var(--mark); }
.beat-reply .beat-label::before { background: var(--peri); }

.beat-msg {
  margin: 0;
  max-width: 22ch;
  font: 700 clamp(2rem, 1.1rem + 3.6vw, 4.25rem)/1.08 var(--sans);
  letter-spacing: -0.025em;
  text-wrap: balance;
}

.beat-meaning {
  max-width: 34ch;
  margin: 0;
  font: 600 clamp(1.3rem, 0.95rem + 1.5vw, 2.2rem)/1.3 var(--sans);
  text-wrap: balance;
}

.meaning-label { display: block; margin-bottom: 0.2rem; color: var(--soft); font-weight: 500; font-size: 0.6em; }

.tag {
  padding: 0.15em 0.6em;
  border-radius: 0.35rem;
  background: var(--mark);
  color: var(--ink);
  font-weight: 700;
}

.reply-bub {
  display: inline-block;
  max-width: 34ch;
  margin: 0;
  padding: 0.75em 1.1em;
  border-radius: 1.2em 1.2em 1.2em 0.3em;
  background: var(--peri);
  color: var(--ink);
  font: 600 clamp(1.15rem, 0.95rem + 0.9vw, 1.6rem)/1.35 var(--sans);
}

.beats.is-leaving { opacity: 0; transition: opacity 0.4s ease; }

.hero-foot {
  position: relative;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-top: clamp(2rem, 4vw, 3rem);
}

.example-note { margin: 0.75rem 0 0; color: var(--soft); font-size: 0.9rem; }

/* Scene navigation: previous / next example */
.scene-nav {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.scene-nav[hidden] { display: none; }

.nav-btn {
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  border: 1px solid var(--edge);
  border-radius: 50%;
  background: transparent;
  color: #fff;
  cursor: pointer;
}

.nav-btn:hover { border-color: var(--mark); color: var(--mark); }
.nav-btn svg { width: 1.2rem; height: 1.2rem; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }

.scene-count { display: inline-flex; align-items: center; gap: 0.5rem; color: var(--soft); font-size: 1rem; font-variant-numeric: tabular-nums; }
.scene-count .cell { width: 0.72em; }

/* Title card */

.title-card { padding-block: clamp(2rem, 9vw, 7rem); text-align: center; }

h1 {
  max-width: 16ch;
  margin: 0 auto 1.25rem;
  font: 800 clamp(2.75rem, 1.2rem + 5.4vw, 6rem)/0.98 var(--sans);
  letter-spacing: -0.035em;
  text-wrap: balance;
}

.lede { max-width: 36rem; margin: 0 auto 2rem; color: var(--soft); font-size: clamp(1.15rem, 1rem + 0.5vw, 1.35rem); }

.actions { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 1rem 1.75rem; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  min-height: 3.25rem;
  padding: 0.85rem 1.5rem;
  border-radius: 0.5rem;
  background: var(--mark);
  color: var(--ink);
  font-weight: 700;
  font-size: 1.1rem;
  text-decoration: none;
}

.btn:hover { background: #fff; }
.btn svg { width: 1.2rem; height: 1.2rem; fill: currentColor; }
.quiet-link { text-underline-offset: 0.25em; }

/* Sections */

.section { padding-block: clamp(3.5rem, 8vw, 7rem); }

h2 {
  margin: 0 0 1rem;
  font: 800 clamp(2.25rem, 1.3rem + 3.6vw, 4.25rem)/1 var(--sans);
  letter-spacing: -0.03em;
  text-align: center;
  text-wrap: balance;
}

.section-lede { max-width: 36rem; margin: 0 auto 3rem; color: var(--soft); text-align: center; }

/* Tour: How it works */

.tour { display: grid; gap: 2rem; align-items: center; }

@media (min-width: 56rem) {
  .tour { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 4rem; }
}

.tour-tabs { display: grid; gap: 0.75rem; margin: 0; padding: 0; list-style: none; }

.tour-tab {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.2rem 1rem;
  width: 100%;
  padding: 1.1rem 1.25rem;
  border: 1px solid var(--edge);
  border-radius: 0.9rem;
  background: transparent;
  color: #fff;
  text-align: left;
  cursor: pointer;
}

.tour-tab:hover { border-color: var(--soft); }
.tour-tab .num { grid-row: span 2; color: var(--soft); font: 800 1.6rem/1.1 var(--sans); }
.tour-tab .t { font-weight: 700; font-size: 1.2rem; }
.tour-tab .d { grid-column: 2; color: var(--soft); font-size: 1rem; }
.tour-tab[aria-selected='true'] { border-color: var(--mark); background: var(--navy); }
.tour-tab[aria-selected='true'] .num { color: var(--mark); }

.tour-stage {
  display: grid;
  place-items: center;
  padding: clamp(1.25rem, 4vw, 2.5rem);
  border-radius: 1.25rem;
  background: var(--grain), var(--scene);
}

.panel-cap { display: none; margin: 1rem 0 0; color: var(--soft); text-align: center; }

@media (max-width: 56rem) {
  .js-tour .tour-tabs { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.5rem; }
  .js-tour .tour-tab { grid-template-columns: 1fr; justify-items: center; padding: 0.7rem 0.5rem; text-align: center; }
  .js-tour .tour-tab .num { grid-row: auto; }
  .js-tour .tour-tab .t { font-size: 0.9rem; line-height: 1.25; }
  .js-tour .tour-tab .d { display: none; }
  .js-tour .panel-cap { display: block; }
  .tour { gap: 1rem; }
}

/* Without scripting the tabs can't switch, so they shouldn't look clickable. */
@media (scripting: none) { .tour-tab { pointer-events: none; } }

.tour-panels { display: grid; gap: 1.5rem; width: min(19rem, 100%); }
.js-tour .tour-panel { grid-area: 1 / 1; }
.js-tour .tour-panel[hidden] { display: none; }

.device {
  padding: 0.5rem;
  border-radius: 2.2rem;
  background: #05070f;
  box-shadow: 0 0 0 1px #2a3360, 0 30px 80px rgba(0, 0, 0, 0.6);
}

.ui {
  display: flex;
  flex-direction: column;
  height: 33rem;
  overflow: hidden;
  border-radius: 1.75rem;
  font-size: 0.82rem;
  line-height: 1.4;
}

/* Messenger screen (dark) */
.ui-chat { background: #0e1621; color: #f5f5f5; }

.ui-bar {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 1.6rem 0.9rem 0.6rem;
  background: #17212b;
}

.ui-bar b { display: block; font-size: 0.95rem; }
.ui-bar small { color: #7f91a4; font-size: 0.75rem; }

.ui-body { display: flex; flex: 1; flex-direction: column; justify-content: flex-end; gap: 0.4rem; padding: 0.8rem; }

.msg-out, .msg-in { max-width: 84%; margin: 0; padding: 0.45rem 0.7rem 0.5rem; border-radius: 0.9rem; }
.msg-out { align-self: flex-end; border-bottom-right-radius: 0.25rem; background: #2b5278; }
.msg-in { align-self: flex-start; border-bottom-left-radius: 0.25rem; background: #182533; }
.fwd-from { display: block; margin-bottom: 0.1rem; color: #8cc8ff; font-weight: 600; font-size: 0.75rem; }
.msg-in p { margin: 0 0 0.45rem; }
.msg-in p:last-child { margin-bottom: 0; }
.sev { display: inline-block; width: 0.6rem; height: 0.6rem; margin-right: 0.3rem; border-radius: 50%; background: #f59e0b; }
.ui-input { margin: 0 0.6rem 0.9rem; padding: 0.55rem 0.9rem; border-radius: 1.2rem; background: #17212b; color: #6d7f8f; }

/* Mini app screen (light, like the real mini app) */
.ui-app { background: #fafafa; color: #1f2937; }
.ui-app .ui-bar { background: #fff; color: #1f2937; border-bottom: 1px solid #e5e7eb; }
.ui-app .ui-bar small { color: #6b7280; }
.app-body { display: grid; gap: 0.7rem; padding: 0.9rem; }
.app-card { padding: 0.9rem; border-radius: 0.9rem; background: #fff; box-shadow: 0 1px 2px rgba(17, 24, 39, 0.06); }
.app-label { margin: 0 0 0.3rem; color: #6b7280; font-size: 0.75rem; }
.score { display: flex; align-items: baseline; gap: 0.4rem; }
.score .board { font-size: 1.9rem; }
.score .cell { width: 0.72em; background: #1f2937; color: #fff; font-weight: 700; }
.score-of { color: #6b7280; font-size: 0.9rem; }
.trend-down { margin: 0.35rem 0 0; color: #dc2626; font-weight: 600; font-size: 0.8rem; }
.chips { display: flex; flex-wrap: wrap; gap: 0.35rem; }
.chip { padding: 0.2rem 0.55rem; border-radius: 1rem; background: #eef2ff; color: #4338ca; font-weight: 600; font-size: 0.75rem; }
.app-reply { margin: 0; color: #1f2937; }
.app-btn { padding: 0.6rem; border-radius: 0.7rem; background: #4f46e5; color: #fff; font-weight: 600; text-align: center; }

/* Pattern cards */

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 16.5rem), 1fr));
  gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.pcard {
  display: block;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: none;
  color: #fff;
  text-align: left;
  cursor: pointer;
  perspective: 1400px;
}

.pcard-static .pside { height: 100%; border-style: dashed; }

.pcard-inner {
  display: grid;
  height: 100%;
  transition: transform 0.6s cubic-bezier(0.3, 0.1, 0.2, 1);
  transform-style: preserve-3d;
}

.pcard[aria-pressed='true'] .pcard-inner { transform: rotateY(180deg); }

.pside {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  min-height: 11rem;
  padding: 1.4rem;
  border: 1px solid var(--edge);
  border-radius: 0.9rem;
  grid-area: 1 / 1;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}

.pside-front { background: var(--grain), var(--scene); }
.pcard:hover .pside-front { border-color: var(--soft); }
.pside-back { background: var(--peri); color: var(--ink); transform: rotateY(180deg); }

.pname { font: 800 1.45rem/1.15 var(--sans); letter-spacing: -0.02em; }
.pdef { color: var(--soft); font-size: 1rem; }
.pback-name { color: var(--ink-2); font-weight: 600; font-size: 0.9rem; }
.pline { font-weight: 700; font-size: 1.15rem; line-height: 1.35; }
.preply { color: var(--ink-2); font-size: 1rem; }
.preply b { color: var(--ink); }
.phint { display: inline-flex; align-items: center; gap: 0.4rem; margin-top: auto; color: var(--mark); font-weight: 600; font-size: 0.95rem; }
.pside-back .phint { color: var(--ink-2); }
.phint svg { width: 1rem; height: 1rem; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; }

/* Without scripting the cards cannot turn, so show both sides. */
@media (scripting: none) {
  .pside-back { transform: none; }
  .pcard-inner { display: flex; flex-direction: column; gap: 0.5rem; }
  .phint { display: none; }
}

/* Settings readout */

.panel {
  max-width: 56rem;
  margin-inline: auto;
  padding: clamp(1.5rem, 4vw, 3rem);
  border-radius: 1.25rem;
  background: var(--grain), var(--navy);
}

.panel h2 { margin-bottom: 2rem; }
.settings { margin: 0; border-top: 1px solid var(--line); }

.setting {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.35rem 1.5rem;
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--line);
}

.setting dt { font: 700 1.25rem/1.25 var(--sans); }
.setting-state { display: flex; align-items: center; gap: 0.6rem; margin: 0; color: var(--soft); font-size: 0.95rem; }
.setting-why { grid-column: 1 / -1; margin: 0; color: var(--soft); }

.state {
  padding: 0.15rem 0.7rem;
  border: 1px solid var(--edge);
  border-radius: 1rem;
  color: var(--soft);
  font-weight: 600;
  white-space: nowrap;
}

.state.is-on { border-color: var(--peri); background: var(--peri); color: var(--ink); }

/* With JS the status becomes a little departures board (ON / OFF tiles). */
.state.is-board { padding: 0; border: 0; background: none; }
.board-status { font-size: 0.95rem; }
.board-status .cell { background: #03050d; color: var(--soft); }
.state.is-on .board-status .cell { background: var(--peri); color: var(--ink); }
.state.is-on .board-status .cell::after { background: rgba(13, 22, 49, 0.25); }
.board-status .cell.is-blank, .state.is-on .board-status .cell.is-blank { background: transparent; }

@media (max-width: 30rem) {
  .setting { grid-template-columns: 1fr; }
  .setting-state { grid-row: 2; }
}

/* End card */

.final { text-align: center; }
.final h2 { max-width: 14ch; margin: 0 auto 2.5rem; font-size: clamp(2.75rem, 1rem + 6.5vw, 7rem); }
.fine { max-width: 40rem; margin: 2.5rem auto 0; color: var(--soft); font-size: 0.95rem; }

.site-foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
  padding-block: 2rem 2.5rem;
  color: var(--soft);
  font-size: 0.95rem;
}

/* Each example plays in three beats (about 5.5 s), restarted by toggling .run:
   their message + highlight, PsychGuard's detection + highlighted meaning, the reply. */
@media (prefers-reduced-motion: no-preference) {
  .run .beat-them { animation: beat-in 0.5s ease 0.2s both; }
  .run .beat-them .marked { animation: mark 0.6s cubic-bezier(0.6, 0.1, 0.2, 1) 1s both; }
  .run .beat-detect { animation: beat-in 0.5s ease 2.2s both; }
  .run .beat-detect .marked { animation: mark 0.9s cubic-bezier(0.6, 0.1, 0.2, 1) 2.9s both; }
  .run .beat-reply { animation: beat-in 0.5s ease 4.6s both; }
  .run .f-neutral { animation: face-neutral 5.5s linear both; }
  .run .f-concerned { animation: face-concerned 5.5s linear both; }
  .run .f-calm { animation: face-calm 5.5s linear both; }
}

@keyframes flip { from { transform: rotateX(-90deg); } to { transform: rotateX(0); } }
@keyframes beat-in { from { opacity: 0; transform: translateY(0.6rem); } to { opacity: 1; transform: none; } }
@keyframes mark { from { background-size: 0% 100%; color: inherit; } to { background-size: 100% 100%; } }
@keyframes face-neutral { 0%, 39% { opacity: 1; } 40%, 100% { opacity: 0; } }
@keyframes face-concerned { 0%, 39% { opacity: 0; } 40%, 83% { opacity: 1; } 84%, 100% { opacity: 0; } }
@keyframes face-calm { 0%, 83% { opacity: 0; } 84%, 100% { opacity: 1; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
