/* ══════════════════════════════════════════════════════════════════════════
   ScreenLing — screenling.cliqueraft.com

   Palette and voice follow the app: deep violet with a cold mint that does not
   quite belong in it. Nothing here signals achievement or warning, because
   nothing in the product is a verdict.
   ══════════════════════════════════════════════════════════════════════════ */

:root {
  --violet:      #150c2b;
  --violet-deep: #0d0719;
  --violet-soft: #221541;
  --violet-line: #35245e;
  --mint:        #7de2d1;
  --mint-dim:    #4fbdaa;
  --dust:        #bfb6d6;
  --paper:       #f6f3fb;
  --rose:        #f6a3ad;
  --butter:      #fce099;

  --ink-on-mint: #12082a;

  --ff-display: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
  --ff-body: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  --wrap: 1140px;
  --pad: clamp(1.25rem, 4vw, 2.5rem);
  --r-lg: 26px;
  --r-md: 18px;
  --r-sm: 12px;

  --step--1: clamp(.82rem, .78rem + .2vw, .92rem);
  --step-0:  clamp(1rem, .96rem + .25vw, 1.12rem);
  --step-1:  clamp(1.16rem, 1.05rem + .5vw, 1.4rem);
  --step-2:  clamp(1.45rem, 1.2rem + 1.1vw, 2rem);
  --step-3:  clamp(1.9rem, 1.4rem + 2.2vw, 3rem);
  --step-4:  clamp(2.35rem, 1.5rem + 3.2vw, 4rem);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--violet);
  color: var(--paper);
  font: var(--step-0)/1.6 var(--ff-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* A little grain. A flat dark page reads as a template; a page with tooth
   reads as a place. */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 9;
  pointer-events: none;
  opacity: .038;
  background-image: 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='.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)'/%3E%3C/svg%3E");
}

h1, h2, h3, .display {
  font-family: var(--ff-display);
  text-wrap: balance;
  font-weight: 600;
  letter-spacing: -.022em;
  line-height: 1.05;
  margin: 0;
  font-variation-settings: "wdth" 100, "opsz" 40;
}

p { margin: 0 0 1rem; }
a { color: var(--mint); text-decoration-color: rgba(125, 226, 209, .35); text-underline-offset: 3px; }
a:hover { text-decoration-color: var(--mint); }
img, svg { display: block; max-width: 100%; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding-inline: var(--pad); }

section { position: relative; padding-block: clamp(4.5rem, 9vw, 8.5rem); scroll-margin-top: 84px; }

.eyebrow {
  font: 600 var(--step--1)/1.5 var(--ff-body);
  flex-wrap: wrap;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--mint);
  margin: 0 0 1.1rem;
  display: flex;
  align-items: center;
  gap: .6rem;
}
.eyebrow::before {
  content: "";
  width: 26px; height: 2px;
  background: var(--mint);
  opacity: .55;
  flex: none;
}

.lede { font-size: var(--step-1); color: var(--dust); max-width: 46ch; line-height: 1.5; }
.muted { color: var(--dust); }
.tight { max-width: 62ch; }

/* ── Aurora ───────────────────────────────────────────────────────────────
   Slow, huge, blurred. Never fast enough to be a flash — which is a rule the
   product itself is built on. */
.aurora { position: absolute; inset: -20% 0; z-index: -1; pointer-events: none; overflow: hidden; }
.aurora i {
  position: absolute;
  display: block;
  border-radius: 50%;
  filter: blur(84px);
  opacity: .72;
  animation: drift 34s ease-in-out infinite alternate;
}
.aurora i:nth-child(1) { width: 46vw; height: 46vw; left: -8vw;  top: 2vw;   background: radial-gradient(circle, rgba(125,226,209,.42), transparent 68%); }
.aurora i:nth-child(2) { width: 52vw; height: 52vw; right: -12vw; top: -8vw; background: radial-gradient(circle, rgba(154,110,232,.44), transparent 68%); animation-duration: 41s; animation-direction: alternate-reverse; }
.aurora i:nth-child(3) { width: 38vw; height: 38vw; left: 34vw;  bottom: -14vw; background: radial-gradient(circle, rgba(246,163,173,.28), transparent 68%); animation-duration: 47s; }

@keyframes drift {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to   { transform: translate3d(4vw, 5vw, 0) scale(1.16); }
}

/* ── Nav ──────────────────────────────────────────────────────────────────── */
.nav {
  position: sticky; top: 0; z-index: 40;
  backdrop-filter: blur(14px);
  background: linear-gradient(to bottom, rgba(21,12,43,.9), rgba(21,12,43,.62));
  border-bottom: 1px solid transparent;
  transition: border-color .3s;
}
.nav.stuck { border-bottom-color: var(--violet-line); }
.nav .wrap { display: flex; align-items: center; gap: 1.4rem; height: 68px; }
.brand { display: flex; align-items: center; gap: .6rem; font-family: var(--ff-display); font-weight: 700; font-size: 1.08rem; color: var(--paper); text-decoration: none; letter-spacing: -.02em; }
.brand img { width: 30px; height: 30px; border-radius: 9px; }
.nav nav { margin-left: auto; display: flex; align-items: center; gap: 1.5rem; }
.nav nav a { color: var(--dust); text-decoration: none; font-size: var(--step--1); font-weight: 500; }
.nav nav a:hover { color: var(--paper); }
@media (max-width: 780px) { .nav nav a.opt { display: none; } }

/* The site's own "Calm linglets only". Someone who asked for calm did not ask
   for nothing, so this slows the page down rather than emptying it. */
.calm-toggle {
  display: inline-flex; align-items: center; gap: .5rem;
  background: var(--violet-soft);
  border: 1px solid var(--violet-line);
  color: var(--dust);
  border-radius: 999px;
  padding: .38rem .8rem .38rem .55rem;
  font: 500 var(--step--1)/1 var(--ff-body);
  cursor: pointer;
}
.calm-toggle:hover { color: var(--paper); border-color: var(--mint-dim); }
.calm-toggle .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--violet-line); transition: background .25s; }
.calm-toggle[aria-pressed="true"] { color: var(--ink-on-mint); background: var(--mint); border-color: var(--mint); }
.calm-toggle[aria-pressed="true"] .dot { background: var(--ink-on-mint); }

/* ── Buttons ──────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  padding: .85rem 1.5rem;
  border-radius: 999px;
  font: 600 var(--step-0)/1 var(--ff-body);
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .18s cubic-bezier(.2,.9,.3,1.3), background .2s, border-color .2s, color .2s;
}
.btn-primary { background: var(--mint); color: var(--ink-on-mint); }
.btn-primary:hover { transform: translateY(-2px) scale(1.02); background: #96eeded1; }
.btn-ghost { border-color: var(--violet-line); color: var(--paper); background: rgba(34,21,65,.5); }
.btn-ghost:hover { border-color: var(--mint-dim); transform: translateY(-2px); }
.btn[aria-disabled="true"] { opacity: .55; pointer-events: none; }

/* ── Hero ─────────────────────────────────────────────────────────────────── */
.hero { padding-top: clamp(3rem, 7vw, 6rem); padding-bottom: clamp(3rem, 6vw, 6rem); overflow: hidden; }
.hero .wrap { display: grid; gap: clamp(2.5rem, 5vw, 4.5rem); grid-template-columns: 1fr; align-items: center; }
@media (min-width: 900px) { .hero .wrap { grid-template-columns: 1.05fr .95fr; } }

.hero h1 { font-size: var(--step-4); margin-bottom: 1.4rem; }
.hero h1 em {
  font-style: normal;
  background: linear-gradient(105deg, var(--mint), #b79bf3 70%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero .lede { font-size: var(--step-1); margin-bottom: 2rem; }
.hero-cta { display: flex; flex-wrap: wrap; gap: .8rem; align-items: center; }
.hero-note { font-size: var(--step--1); color: var(--dust); margin-top: 1.4rem; display: flex; gap: .5rem; align-items: center; }
.hero-note svg { width: 15px; height: 15px; flex: none; }

/* ── Phone ────────────────────────────────────────────────────────────────── */
.stage {
  display: grid; justify-items: center; gap: 1.1rem;
  --ph: clamp(360px, 60vh, 560px);
  --pw: calc(var(--ph) * 9 / 18.3);
}
@media (max-width: 620px) {
  .stage { --pw: min(300px, 78vw); --ph: calc(var(--pw) * 18.3 / 9); }
}

.phone {
  position: relative;
  width: var(--pw);
  height: var(--ph);
  border-radius: 40px;
  padding: 9px;
  background: linear-gradient(160deg, #4b3a75, #1a1030 40%, #3b2c62);
  box-shadow: 0 40px 90px -30px rgba(0,0,0,.85), 0 0 0 1px rgba(125,226,209,.1);
}
.phone-screen {
  position: relative;
  height: 100%;
  border-radius: 32px;
  overflow: hidden;
  background: #16161a;
  display: flex;
  flex-direction: column;
}
.phone-bar {
  flex: none;
  display: flex; justify-content: space-between; align-items: center;
  padding: .55rem .95rem .3rem;
  font: 600 clamp(.5rem, calc(var(--pw) * .04), .66rem)/1 var(--ff-body);
  color: #8b8b95;
}
.phone-bar .sig { display: flex; gap: 2px; align-items: flex-end; }
.phone-bar .sig i { width: 2.5px; background: #8b8b95; border-radius: 1px; display: block; }
.phone-bar .sig i:nth-child(1) { height: 3px; }
.phone-bar .sig i:nth-child(2) { height: 5px; }
.phone-bar .sig i:nth-child(3) { height: 7px; }
.phone-bar .sig i:nth-child(4) { height: 9px; }

.feed-clip { position: relative; flex: 1; overflow: hidden; }
.feed { position: absolute; inset-inline: 0; top: 0; padding: .5rem; will-change: transform; }
.card-skel {
  background: #1f1f25;
  border-radius: 12px;
  padding: .6rem;
  margin-bottom: .55rem;
}
.card-skel .row { display: flex; align-items: center; gap: .45rem; margin-bottom: .5rem; }
.card-skel .av { width: 20px; height: 20px; border-radius: 50%; background: #2c2c34; flex: none; }
.card-skel .ln { height: 5px; border-radius: 3px; background: #2c2c34; }
.card-skel .media { border-radius: 8px; background: #26262d; height: 74px; }
.card-skel.tall .media { height: 116px; }
.card-skel.short .media { height: 42px; }

/* The overlay. Note what is not here: a scrim. The creature turns up *on*
   whatever you were looking at, not in front of a greyed-out copy of it. */
.overlay {
  position: absolute; inset: 0;
  display: grid; place-items: center;
  opacity: 0; visibility: hidden;
  transition: opacity .45s ease;
}
.overlay.on { opacity: 1; visibility: visible; }
.overlay .shade {
  position: absolute;
  width: 62%; aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0,0,0,.42), transparent 66%);
  filter: blur(12px);
}
.overlay .ling { width: 66%; position: relative; }
.overlay.on .ling { animation: pop .62s cubic-bezier(.2,1.4,.4,1) both; }
@keyframes pop {
  0%   { transform: scale(.2) translateY(24px); opacity: 0; }
  60%  { transform: scale(1.08) translateY(0); opacity: 1; }
  100% { transform: scale(1) translateY(0); opacity: 1; }
}

.choicebar {
  position: absolute; left: 8px; right: 8px; bottom: 10px;
  background: rgba(27,16,51,.94);
  border: 1px solid rgba(125,226,209,.16);
  border-radius: 16px;
  padding: .55rem;
  text-align: center;
  transform: translateY(130%);
  transition: transform .5s cubic-bezier(.2,.9,.3,1.1);
}
.choicebar.up { transform: translateY(0); }
.choicebar .by {
  font-size: clamp(.46rem, calc(var(--pw) * .038), .6rem);
  color: var(--dust); margin: 0 0 .4rem;
}
.choicebar .pair { display: flex; gap: .35rem; }
.choicebar span {
  flex: 1; min-width: 0; border-radius: 999px; padding: .45rem .2rem;
  font: 600 clamp(.46rem, calc(var(--pw) * .042), .68rem)/1.3 var(--ff-body);
  letter-spacing: -.01em;
}
.choicebar .keep { border: 1px solid rgba(246,243,251,.5); color: var(--paper); }
.choicebar .leave { background: var(--mint); color: var(--ink-on-mint); }

/* ── The live readout under the phone ─────────────────────────────────────── */
.readout {
  width: max(var(--pw), 240px);
  background: rgba(34,21,65,.62);
  border: 1px solid var(--violet-line);
  border-radius: var(--r-md);
  padding: .8rem .9rem .9rem;
}
.readout-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: .55rem; }
.readout-head b { font: 600 .78rem/1 var(--ff-body); letter-spacing: .04em; }
.readout-head .state { font-size: .7rem; color: var(--dust); transition: color .4s; }
.readout-head .state.hot { color: var(--mint); }
.trace { width: 100%; height: 34px; display: block; }
.trace .base { stroke: var(--violet-line); stroke-width: 1; }
.trace .tick { stroke: var(--dust); stroke-width: 2; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.meter { position: relative; height: 5px; border-radius: 999px; background: #2b1d4d; margin-top: .6rem; overflow: hidden; }
.meter i { position: absolute; inset: 0 auto 0 0; width: 0; border-radius: 999px; background: linear-gradient(90deg, var(--mint-dim), var(--mint)); transition: width .18s linear; }
.meter::after { content: ""; position: absolute; top: -3px; bottom: -3px; left: 70%; width: 1px; background: rgba(246,243,251,.4); }
.readout-foot { display: flex; justify-content: space-between; font-size: .64rem; color: var(--dust); margin-top: .5rem; }

/* ── Beats ────────────────────────────────────────────────────────────────── */
.beats { display: grid; gap: 1rem; grid-template-columns: 1fr; margin-top: 3rem; }
@media (min-width: 760px) { .beats { grid-template-columns: repeat(3, 1fr); gap: 1.2rem; } }
.beat {
  background: linear-gradient(165deg, rgba(34,21,65,.9), rgba(21,12,43,.65));
  border: 1px solid var(--violet-line);
  border-radius: var(--r-lg);
  padding: 1.6rem 1.5rem 1.7rem;
  position: relative;
  overflow: hidden;
}
.beat .n {
  font: 700 .72rem/1 var(--ff-body);
  color: var(--mint);
  letter-spacing: .14em;
  display: block;
  margin-bottom: 1.2rem;
}
.beat h3 { font-size: var(--step-1); margin-bottom: .55rem; }
.beat p { color: var(--dust); font-size: var(--step--1); margin: 0; line-height: 1.6; }
.beat .art { height: 124px; margin: -.2rem 0 1.4rem; display: grid; place-items: center; }
.beat .art .ling { height: 124px; width: auto; }

/* ── Split ────────────────────────────────────────────────────────────────── */
.split { display: grid; gap: clamp(2rem, 5vw, 4rem); align-items: center; grid-template-columns: 1fr; }
@media (min-width: 940px) { .split { grid-template-columns: 1fr 1fr; } .split.flip > *:first-child { order: 2; } }

/* ── Traces (how it knows) ────────────────────────────────────────────────── */
.trace-card {
  background: rgba(34,21,65,.72);
  border: 1px solid var(--violet-line);
  border-radius: var(--r-lg);
  padding: 1.3rem 1.4rem 1.5rem;
  margin-bottom: 1rem;
}
.trace-card h4 { font: 600 var(--step-0)/1.2 var(--ff-display); margin: 0 0 .2rem; display: flex; align-items: center; gap: .55rem; }
.trace-card h4 .swatch { width: 10px; height: 10px; border-radius: 3px; flex: none; }
.trace-card .cap { font-size: var(--step--1); color: var(--dust); margin: 0 0 1rem; }
.trace-card svg { width: 100%; height: 64px; }
.trace-card .flick { stroke-width: 2.5; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.trace-card .axis { stroke: var(--violet-line); stroke-width: 1; }
.trace-card.reading .flick { stroke: var(--dust); }
.trace-card.graze .flick { stroke: var(--mint); }
.trace-card .verdict { font-size: var(--step--1); margin: .9rem 0 0; display: flex; gap: .5rem; align-items: baseline; }
.trace-card .verdict b { font-family: var(--ff-display); font-size: var(--step-1); }
.trace-card.reading .verdict b { color: var(--dust); }
.trace-card.graze .verdict b { color: var(--mint); }

.signals { display: grid; gap: .55rem; margin-top: 1.6rem; }
.signal {
  display: grid; grid-template-columns: 1fr auto; gap: .2rem 1rem;
  padding: .8rem 1rem;
  border: 1px solid var(--violet-line);
  border-radius: var(--r-md);
  background: rgba(34,21,65,.45);
  align-items: center;
}
.signal b { font: 600 var(--step-0)/1.3 var(--ff-body); }
.signal small { grid-column: 1; color: var(--dust); font-size: var(--step--1); line-height: 1.5; }
.signal .pill {
  grid-row: 1 / span 2;
  grid-column: 2;
  font: 600 .68rem/1 var(--ff-body);
  padding: .4rem .65rem;
  border-radius: 999px;
  background: rgba(125,226,209,.12);
  color: var(--mint);
  white-space: nowrap;
}
.signal.off .pill { background: rgba(191,182,214,.1); color: var(--dust); }

/* ── Contrast (not a blocker) ─────────────────────────────────────────────── */
.versus { display: grid; gap: 1.2rem; grid-template-columns: 1fr; }
@media (min-width: 820px) { .versus { grid-template-columns: 1fr 1fr; gap: 1.4rem; } }
.col {
  border-radius: var(--r-lg);
  padding: 1.7rem 1.6rem;
  border: 1px solid var(--violet-line);
}
.col.them { background: rgba(255,255,255,.02); }
.col.us { background: linear-gradient(165deg, rgba(125,226,209,.1), rgba(34,21,65,.6)); border-color: rgba(125,226,209,.28); }
.col h3 { font-size: var(--step-1); margin-bottom: 1.1rem; }
.col.them h3 { color: var(--dust); }
.col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .75rem; }
.col li { display: flex; gap: .7rem; align-items: flex-start; font-size: var(--step-0); line-height: 1.5; }
.col li svg { width: 19px; height: 19px; flex: none; margin-top: .18rem; }
.col.them li { color: var(--dust); }
.col.them li s { text-decoration-color: rgba(191,182,214,.5); }

/* ── Gallery ──────────────────────────────────────────────────────────────── */
.gallery { display: grid; gap: .9rem; grid-template-columns: repeat(2, 1fr); margin-top: 2.6rem; }
@media (min-width: 640px) { .gallery { grid-template-columns: repeat(4, 1fr); } }

.cell {
  background: linear-gradient(170deg, rgba(34,21,65,.95), rgba(21,12,43,.6));
  border: 1px solid var(--violet-line);
  border-radius: var(--r-lg);
  padding: 1rem .9rem 1.15rem;
  text-align: center;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: transform .3s cubic-bezier(.2,.9,.3,1.2), border-color .3s, background .3s;
  font: inherit; color: inherit; width: 100%;
  display: flex; flex-direction: column; align-items: stretch;
}
.cell::before {
  content: "";
  position: absolute; inset: auto 0 0 0; height: 55%;
  background: radial-gradient(ellipse at 50% 100%, var(--glow, rgba(125,226,209,.3)), transparent 70%);
  opacity: 0; transition: opacity .35s;
}
.cell:hover, .cell:focus-visible { transform: translateY(-6px); border-color: rgba(125,226,209,.4); outline: none; }
.cell:hover::before, .cell:focus-visible::before { opacity: .5; }
.cell .ling { width: 100%; aspect-ratio: 1; position: relative; }
.cell b { display: block; font-family: var(--ff-display); font-size: var(--step-1); margin-top: .3rem; }
.cell small { display: block; color: var(--dust); font-size: var(--step--1); line-height: 1.45; margin-top: .2rem; }
.cell .chosen {
  position: absolute; top: .7rem; right: .7rem;
  font: 700 .58rem/1 var(--ff-body); letter-spacing: .1em; text-transform: uppercase;
  background: var(--mint); color: var(--ink-on-mint);
  padding: .3rem .5rem; border-radius: 999px;
  opacity: 0; transform: scale(.7); transition: .25s;
}
.cell[aria-pressed="true"] { border-color: var(--mint); background: linear-gradient(170deg, rgba(125,226,209,.12), rgba(21,12,43,.7)); }
.cell[aria-pressed="true"] .chosen { opacity: 1; transform: scale(1); }

/* ── Playground ───────────────────────────────────────────────────────────── */
.pen {
  position: relative;
  border-radius: var(--r-lg);
  border: 1px solid var(--violet-line);
  background:
    radial-gradient(ellipse at 30% 0%, rgba(125,226,209,.09), transparent 60%),
    linear-gradient(165deg, rgba(34,21,65,.95), rgba(13,7,25,.95));
  height: clamp(300px, 46vw, 420px);
  overflow: hidden;
  touch-action: none;
  cursor: grab;
  user-select: none;
}
.pen.held { cursor: grabbing; }
.pen .hint {
  position: absolute; left: 50%; bottom: 1rem; transform: translateX(-50%);
  font-size: var(--step--1); color: var(--dust);
  background: rgba(13,7,25,.6); padding: .35rem .8rem; border-radius: 999px;
  border: 1px solid var(--violet-line);
  transition: opacity .4s; pointer-events: none; white-space: nowrap;
}
.pen .hint.gone { opacity: 0; }
.pen-ling { position: absolute; left: 0; top: 0; width: 130px; height: 130px; will-change: transform; }
.pen-ling .ling { width: 100%; height: 100%; }
.pen .spark { position: absolute; width: 7px; height: 7px; border-radius: 50%; background: var(--butter); pointer-events: none; }

.playnotes { display: grid; gap: .5rem; margin-top: 1.4rem; }
.playnote { display: flex; gap: .7rem; align-items: baseline; font-size: var(--step-0); }
.playnote b { font-family: var(--ff-display); color: var(--mint); min-width: 5.4rem; flex: none; }
.playnote span { color: var(--dust); }

/* ── Privacy ──────────────────────────────────────────────────────────────── */
.guards { display: grid; gap: 1rem; grid-template-columns: 1fr; margin-top: 2.6rem; }
@media (min-width: 800px) { .guards { grid-template-columns: repeat(3, 1fr); } }
.guard {
  border: 1px solid var(--violet-line);
  border-radius: var(--r-lg);
  padding: 1.5rem 1.4rem 1.6rem;
  background: rgba(34,21,65,.5);
}
.guard .ic { width: 34px; height: 34px; margin-bottom: 1rem; color: var(--mint); }
.guard h3 { font-size: var(--step-1); margin-bottom: .5rem; }
.guard p { color: var(--dust); font-size: var(--step--1); line-height: 1.6; margin: 0; }
.guard code {
  font: .8em/1 ui-monospace, SFMono-Regular, Menlo, monospace;
  background: rgba(125,226,209,.1);
  color: var(--mint);
  padding: .18em .4em; border-radius: 5px;
  word-break: break-word;
}

.claim {
  margin-top: 1.4rem;
  border: 1px dashed var(--violet-line);
  border-radius: var(--r-md);
  padding: 1.1rem 1.3rem;
  color: var(--dust);
  font-size: var(--step--1);
}
.claim b { color: var(--paper); }

/* ── Safety strip ─────────────────────────────────────────────────────────── */
.checks { display: grid; gap: .8rem; grid-template-columns: 1fr; margin-top: 2rem; counter-reset: c; }
@media (min-width: 820px) { .checks { grid-template-columns: repeat(3, 1fr); } }
.check {
  border-left: 2px solid var(--mint);
  padding: .2rem 0 .2rem 1.1rem;
}
.check b { display: block; font-family: var(--ff-display); font-size: var(--step-0); margin-bottom: .25rem; }
.check span { color: var(--dust); font-size: var(--step--1); line-height: 1.55; }

/* ── Closer ───────────────────────────────────────────────────────────────── */
.closer { text-align: center; }
.closer h2 { font-size: var(--step-3); margin-bottom: 1rem; }
.closer .lede { margin: 0 auto 2rem; }
.closer .ling { width: clamp(120px, 20vw, 170px); margin: 0 auto 2rem; }

/* ── Footer ───────────────────────────────────────────────────────────────── */
footer {
  border-top: 1px solid var(--violet-line);
  padding-block: 2.6rem 3rem;
  background: var(--violet-deep);
}
footer .wrap { display: flex; flex-wrap: wrap; gap: 1.2rem 2rem; align-items: center; }
footer .fnav { margin-left: auto; display: flex; flex-wrap: wrap; gap: 1.4rem; }
footer a { color: var(--dust); text-decoration: none; font-size: var(--step--1); }
footer a:hover { color: var(--mint); }
footer .fine { width: 100%; color: #7a6f96; font-size: var(--step--1); margin: 0; }

/* ── Reveal ───────────────────────────────────────────────────────────────── */
.rise { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.8,.3,1); }
.rise.in { opacity: 1; transform: none; }
.rise.d1 { transition-delay: .08s; }
.rise.d2 { transition-delay: .16s; }
.rise.d3 { transition-delay: .24s; }

/* ══════════════════════════════════════════════════════════════════════════
   The creatures. Lottie keyframes from tools/build_bundled_linglets.py,
   re-expressed as CSS. 90 frames at 30fps is a 3s cycle, and every percentage
   below is frame/89.
   ══════════════════════════════════════════════════════════════════════════ */
.ling { overflow: visible; }
.lg-motion { transform-origin: 256px 256px; transform-box: view-box; }
.lg-squash { transform-origin: 256px 330px; transform-box: view-box; }
.lg-track { transition: transform .34s cubic-bezier(.2,.8,.3,1); transform-box: view-box; }

.lg-breathe      { animation: lg-breathe 3s ease-in-out infinite; }
.lg-breathe-slow { animation: lg-breathe-slow 3s ease-in-out infinite; }
.lg-breathe-tiny { animation: lg-breathe-tiny 3s ease-in-out infinite; }
.lg-rock         { animation: lg-rock 3s ease-in-out infinite; }
.lg-lean         { animation: lg-lean 3s ease-in-out infinite; }
.lg-float        { animation: lg-float 3s ease-in-out infinite; }
.lg-bounce       { animation: lg-bounce 3s linear infinite; }
.lg-settle       { animation: lg-settle 3s ease-in-out infinite; }

@keyframes lg-breathe      { 0%,100% { transform: scale(.93,.96); } 50% { transform: scale(1.05,1.03); } }
@keyframes lg-breathe-slow { 0%,100% { transform: scale(.97,.98); } 50% { transform: scale(1.02,1.02); } }
@keyframes lg-breathe-tiny { 0%,100% { transform: scale(.98,.99); } 50% { transform: scale(1.02,1.01); } }
@keyframes lg-rock         { 0%,100% { transform: rotate(-7deg) scale(.96,.97); } 50% { transform: rotate(7deg) scale(1.03,1.02); } }
@keyframes lg-lean         { 0%,100% { transform: rotate(-9deg); } 50% { transform: rotate(9deg); } }
@keyframes lg-float {
  0%,100% { transform: translateY(26px) scale(.97,.99); }
  50%     { transform: translateY(-26px) scale(1.03,1.01); }
}
/* Squash on landing, stretch in the air: the whole reason it reads as glee
   rather than as a circle moving up and down. */
@keyframes lg-bounce {
  0%     { transform: translateY(54px)  scale(1.16,.84); }
  8.99%  { transform: translateY(-17px) scale(.92,1.12); }
  15.73% { transform: translateY(-46px) scale(1,1); }
  29.21% { transform: translateY(29px)  scale(.92,1.10); }
  33.71% { transform: translateY(54px)  scale(1.16,.84); }
  49.44% { transform: translateY(-30px) scale(.96,1.06); }
  67.42% { transform: translateY(54px)  scale(1.14,.86); }
  83.15% { transform: translateY(-16px) scale(.98,1.03); }
  100%   { transform: translateY(54px)  scale(1.16,.84); }
}
@keyframes lg-settle {
  0%     { transform: scale(1,1); }
  33.71% { transform: scale(1.07,.92); }
  65.17% { transform: scale(.97,1.04); }
  100%   { transform: scale(1,1); }
}

/* A blink is the eye's *height* collapsing. Hiding it instead reads as the eye
   briefly vanishing, which is not the same thing at all. */
.lg-blink { transform-box: view-box; }
.lg-blink-a { animation: lg-blink-a 3s linear infinite; }
.lg-blink-b { animation: lg-blink-b 3s linear infinite; }
.lg-blink-c { animation: lg-blink-c 3s linear infinite; }

@keyframes lg-blink-a {
  0%, 28.1% { transform: scaleY(1); }
  31.5%     { transform: scaleY(.11); }
  38.2%, 68.5% { transform: scaleY(1); }
  71.9%     { transform: scaleY(.11); }
  78.7%, 100% { transform: scaleY(1); }
}
@keyframes lg-blink-b {
  0%, 48.3% { transform: scaleY(1); }
  51.7%     { transform: scaleY(.11); }
  59.6%, 100% { transform: scaleY(1); }
}
@keyframes lg-blink-c {
  0%, 55.1% { transform: scaleY(1); }
  58.4%     { transform: scaleY(.11); }
  67.4%, 100% { transform: scaleY(1); }
}

/* Blink the creature: the iris slides about looking for someone, and the lid
   snaps shut over it. */
.lg-iris { animation: lg-iris 3s ease-in-out infinite; transform-box: view-box; }
.lg-lid  { animation: lg-lid 3s linear infinite; transform-box: view-box;
           transform: scaleY(0); }
@keyframes lg-iris {
  0%     { transform: translateX(-26px); }
  24.7%  { transform: translateX(26px); }
  51.7%  { transform: translateX(26px); }
  74.2%, 100% { transform: translateX(-26px); }
}
@keyframes lg-lid {
  0%, 35.9% { transform: scaleY(0); }
  40.4%     { transform: scaleY(1); }
  46.1%, 78.7% { transform: scaleY(0); }
  83.1%     { transform: scaleY(1); }
  88.8%, 100% { transform: scaleY(0); }
}

.lg-poked { animation: lg-poke .42s cubic-bezier(.2,.9,.3,1.2); }
@keyframes lg-poke {
  0%   { transform: scale(1,1); }
  28%  { transform: scale(1.16,.85); }
  62%  { transform: scale(.95,1.07); }
  100% { transform: scale(1,1); }
}

/* ══════════════════════════════════════════════════════════════════════════
   Calm. The product's own "Calm linglets only" applied to its website: the
   creature still responds, just slower and without the bounce. Someone who
   asked for calm did not ask for nothing.
   ══════════════════════════════════════════════════════════════════════════ */
body.calm .aurora i { animation: none; }
body.calm .lg-bounce,
body.calm .lg-rock,
body.calm .lg-lean,
body.calm .lg-float { animation: none; }
body.calm .lg-blink-a,
body.calm .lg-blink-b,
body.calm .lg-blink-c,
body.calm .lg-lid { animation: none; }
body.calm .lg-breathe,
body.calm .lg-breathe-slow,
body.calm .lg-breathe-tiny { animation-duration: 6s; }
body.calm .lg-iris { animation-duration: 9s; }
body.calm .lg-poked { animation-duration: .8s; }
body.calm .overlay.on .ling { animation-duration: 1s; }
body.calm html { scroll-behavior: auto; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .aurora i, .lg-bounce, .lg-rock, .lg-lean, .lg-float,
  .lg-blink-a, .lg-blink-b, .lg-blink-c, .lg-lid { animation: none !important; }
  .lg-breathe, .lg-breathe-slow, .lg-breathe-tiny, .lg-iris { animation-duration: 8s !important; }
  .rise { transition-duration: .01ms; }
}

/* ══════════════════════════════════════════════════════════════════════════
   Long-form documents (privacy policy). A legal page people actually read is
   a legal page set like prose, not like a form.
   ══════════════════════════════════════════════════════════════════════════ */
.doc { position: relative; padding-block: clamp(3rem, 7vw, 5.5rem) clamp(4rem, 8vw, 7rem); }
.doc .wrap { max-width: 46rem; }
.doc h1 { font-size: var(--step-3); margin-bottom: .6rem; }
.doc .sub { color: var(--dust); font-size: var(--step--1); margin: 0 0 2.4rem; }
.doc h2 {
  font-size: var(--step-2);
  margin: 3.2rem 0 .9rem;
  padding-top: 1.6rem;
  border-top: 1px solid var(--violet-line);
}
.doc h3 { font-size: var(--step-1); margin: 2rem 0 .55rem; color: var(--mint); }
.doc p { line-height: 1.72; }
.doc ul { padding-left: 0; list-style: none; margin: 1rem 0 1.4rem; display: grid; gap: .7rem; }
.doc li { line-height: 1.66; padding-left: 1.5rem; position: relative; }
.doc li::before {
  content: "";
  position: absolute; left: .25rem; top: .68em;
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--mint); opacity: .7;
}
.doc ul.nope li::before {
  border-radius: 1px; height: 2px; width: 9px; left: .1rem; background: var(--dust); opacity: .55;
}
.doc code {
  font: .85em/1 ui-monospace, SFMono-Regular, Menlo, monospace;
  background: rgba(125,226,209,.1);
  color: var(--mint);
  padding: .2em .42em; border-radius: 5px;
  word-break: break-word;
}
.doc strong { color: var(--paper); }

.doc .tldr {
  background: linear-gradient(165deg, rgba(125,226,209,.11), rgba(34,21,65,.6));
  border: 1px solid rgba(125,226,209,.28);
  border-radius: var(--r-lg);
  padding: 1.5rem 1.6rem;
  margin: 0 0 2.6rem;
}
.doc .tldr h2 {
  border: 0; padding: 0; margin: 0 0 .6rem;
  font-size: var(--step-1); color: var(--mint);
}
.doc .tldr p { margin: 0; }

.doc table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.2rem 0 1.6rem;
  font-size: var(--step--1);
}
.doc th, .doc td {
  text-align: left; vertical-align: top;
  padding: .95rem .8rem;
  border-bottom: 1px solid var(--violet-line);
  line-height: 1.6;
}
.doc th { color: var(--mint); font-weight: 600; width: 34%; }
.doc td { color: var(--dust); }

.doc .doc-foot {
  margin-top: 3.5rem; padding-top: 1.5rem;
  border-top: 1px solid var(--violet-line);
  color: var(--dust); font-size: var(--step--1);
}

@media (max-width: 34rem) {
  .doc table, .doc tbody, .doc tr, .doc th, .doc td { display: block; width: auto; }
  .doc th { border: 0; padding: .9rem .2rem .1rem; }
  .doc td { border: 0; padding: 0 .2rem .9rem; }
  .doc tr { border-bottom: 1px solid var(--violet-line); }
}
