/* Pretzel: Learn German — site styles.
   Day: dough-cream paper with crust-brown ink. Night: Bavarian night blue with salt-white ink.
   The Rauten (Bavarian lozenges) from the app icon are the recurring motif. */

:root {
  --bg: #f5ead5;
  --paper: #fbf4e6;
  --paper-2: #f0e2c6;
  --ink: #2e170a;
  --ink-2: rgba(46, 23, 10, 0.72);
  --ink-3: rgba(46, 23, 10, 0.5);
  --line: rgba(46, 23, 10, 0.14);
  --crust: #5c2e12;
  --dough: #f5b35c;
  --dough-deep: #cc7330;
  --blue: #2a73d9;
  --blue-2: #5ea9f0;
  --blue-ink: #ffffff;
  --gold: #fac75c;
  --ink-num: #fac75c;
  --salt: #fffaf0;
  --der: #2563c9;
  --die: #d43d3d;
  --das: #1f9550;
  --lvl-a: #1f9550;
  --lvl-b: #2a73d9;
  --lvl-c: #9a4fd6;
  --shadow: 0 1px 0 rgba(255, 255, 255, 0.6) inset, 0 24px 60px -24px rgba(92, 46, 18, 0.45);
  --grain-opacity: 0.35;
  --phone: #120c08;

  --f-display: "Bricolage Grotesque", "DM Sans", system-ui, sans-serif;
  --f-black: "UnifrakturMaguntia", "Bricolage Grotesque", serif;
  --f-body: "DM Sans", system-ui, sans-serif;
  --f-mono: "DM Mono", ui-monospace, monospace;

  --gutter: clamp(16px, 4vw, 40px);
  --max: 1200px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0a1022;
    --paper: #111a33;
    --paper-2: #17223f;
    --ink: #f6ead4;
    --ink-2: rgba(246, 234, 212, 0.74);
    --ink-3: rgba(246, 234, 212, 0.5);
    --line: rgba(246, 234, 212, 0.13);
    --blue: #3b82e6;
    --blue-2: #79bbf5;
    --der: #6ba8ff;
    --die: #ff7878;
    --das: #66d68f;
    --lvl-a: #72d99e;
    --lvl-b: #73b3ff;
    --lvl-c: #db8cff;
    --shadow: 0 1px 0 rgba(255, 255, 255, 0.05) inset, 0 30px 70px -30px rgba(0, 0, 0, 0.8);
    --grain-opacity: 0.18;
    --phone: #05070d;
    --ink-num: #cc7330;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0a1022;
  --paper: #111a33;
  --paper-2: #17223f;
  --ink: #f6ead4;
  --ink-2: rgba(246, 234, 212, 0.74);
  --ink-3: rgba(246, 234, 212, 0.5);
  --line: rgba(246, 234, 212, 0.13);
  --blue: #3b82e6;
  --blue-2: #79bbf5;
  --der: #6ba8ff;
  --die: #ff7878;
  --das: #66d68f;
  --lvl-a: #72d99e;
  --lvl-b: #73b3ff;
  --lvl-c: #db8cff;
  --shadow: 0 1px 0 rgba(255, 255, 255, 0.05) inset, 0 30px 70px -30px rgba(0, 0, 0, 0.8);
  --grain-opacity: 0.18;
  --phone: #05070d;
  --ink-num: #cc7330;
  color-scheme: dark;
}

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

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 17px/1.55 var(--f-body);
  overflow-x: hidden;
  transition: background-color .4s ease, color .4s ease;
}
body::after {
  /* Grain, like flour on a baking board. */
  content: "";
  position: fixed; inset: 0;
  pointer-events: none;
  z-index: 100;
  opacity: var(--grain-opacity);
  mix-blend-mode: soft-light;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
img, canvas, svg { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; }
::selection { background: var(--gold); color: #2e170a; }
:focus-visible { outline: 3px solid var(--blue-2); outline-offset: 3px; border-radius: 6px; }

.wrap { width: min(var(--max), 100% - 2 * var(--gutter)); margin-inline: auto; }
.mono { font-family: var(--f-mono); font-size: 12.5px; letter-spacing: .08em; text-transform: uppercase; }
.black { font-family: var(--f-black); font-weight: 400; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

h1, h2, h3 { font-family: var(--f-display); font-weight: 800; line-height: 1; letter-spacing: -0.035em; margin: 0; }
h2 { font-size: clamp(40px, 6.4vw, 84px); }
h3 { font-size: clamp(24px, 2.4vw, 30px); font-weight: 700; line-height: 1.08; letter-spacing: -0.02em; }
p { margin: 0; }

.kicker {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--f-mono); font-size: 12.5px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--ink-2);
}
.kicker .black { font-size: 26px; letter-spacing: 0; text-transform: none; color: var(--ink); line-height: 1; }
.kicker::before { content: ""; width: 26px; height: 2px; background: currentColor; opacity: .5; }

.lede { font-size: clamp(18px, 1.7vw, 21px); color: var(--ink-2); max-width: 36em; }

/* Rauten pattern (the lozenges from the app icon). */
.rauten {
  background-color: var(--blue);
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='112' height='64'%3E%3Cg fill='%23fff' fill-opacity='.13'%3E%3Cpath d='M28 4 52 18 28 32 4 18Z'/%3E%3Cpath d='M84 36 108 50 84 64 60 50Z'/%3E%3Cpath d='M84 -28 108 -14 84 0 60 -14Z'/%3E%3C/g%3E%3C/svg%3E"),
    linear-gradient(180deg, var(--blue-2), var(--blue) 70%);
  background-size: 112px 64px, 100% 100%;
  color: var(--blue-ink);
}

/* ---------- Top bar ---------- */

.topbar {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  border-bottom: 1px solid transparent;
  transition: border-color .3s;
}
.topbar.scrolled { border-bottom-color: var(--line); }
.topbar .wrap { display: flex; align-items: center; gap: 18px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; margin-right: auto; }
.brand img { width: 34px; height: 34px; border-radius: 9px; box-shadow: 0 2px 8px rgba(0,0,0,.18); }
.brand b { font-family: var(--f-display); font-weight: 800; font-size: 24px; letter-spacing: -.035em; }
.brand small { font-family: var(--f-mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); margin-top: 4px; }
.nav { display: flex; gap: 4px; }
.nav a { text-decoration: none; padding: 8px 12px; border-radius: 99px; font-size: 15px; color: var(--ink-2); }
.nav a:hover { background: var(--line); color: var(--ink); }
.icon-btn {
  width: 40px; height: 40px; border-radius: 99px; border: 1px solid var(--line);
  background: transparent; cursor: pointer; display: grid; place-items: center;
}
.icon-btn:hover { background: var(--line); }
.icon-btn svg { width: 19px; height: 19px; }
.theme-sun { display: none; }
:root[data-theme="dark"] .theme-sun { display: block; }
:root[data-theme="dark"] .theme-moon { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-sun { display: block; }
  :root:not([data-theme="light"]) .theme-moon { display: none; }
}
.pill-cta {
  font-family: var(--f-mono); font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; text-decoration: none;
  padding: 9px 14px; border-radius: 99px; background: var(--ink); color: var(--bg); white-space: nowrap;
  transition: transform .15s;
}
.pill-cta:hover { transform: translateY(-1px); }
@media (max-width: 880px) { .nav { display: none; } }
@media (max-width: 420px) { .brand small { display: none; } .pill-cta { display: none; } .phone { width: 284px; } }

/* ---------- Store badge ---------- */

.store {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 11px 20px 11px 16px; border-radius: 16px;
  background: #0b0b0d; color: #fff; text-decoration: none;
  border: 1px solid rgba(255,255,255,.18);
  box-shadow: 0 10px 30px -12px rgba(0,0,0,.6);
  cursor: pointer; user-select: none;
}
.store svg { width: 26px; height: 26px; flex: none; }
.store span { display: grid; line-height: 1.1; }
.store small { font-size: 11.5px; letter-spacing: .02em; opacity: .8; }
.store strong { font-size: 20px; font-weight: 600; letter-spacing: -.01em; }

/* ---------- Hero ---------- */

.hero { position: relative; padding: clamp(28px, 5vw, 64px) 0 clamp(56px, 8vw, 110px); overflow: clip; }
.hero-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(24px, 4vw, 64px); align-items: center; }
.hero h1 { font-size: clamp(48px, 6.6vw, 96px); line-height: .94; letter-spacing: -.045em; }
.hero h1 .under { position: relative; white-space: nowrap; }
.hero h1 .under svg { position: absolute; left: -2%; right: -2%; bottom: -.08em; width: 104%; height: .32em; overflow: visible; }
.hero h1 .under path { fill: none; stroke: var(--dough-deep); stroke-width: 7; stroke-linecap: round; stroke-dasharray: 600; stroke-dashoffset: 600; animation: draw 1.2s .7s cubic-bezier(.6,.1,.2,1) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.hero .lede { margin-top: 26px; }
.hero-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; margin-top: 34px; }

.hero-stage { position: relative; display: grid; place-items: center; min-height: 640px; }
.hero-stage .rauten-blob {
  position: absolute; inset: 4% -30% 6% 8%;
  border-radius: 46% 54% 42% 58% / 52% 44% 56% 48%;
  box-shadow: inset 0 -30px 60px rgba(0,0,0,.12);
  animation: blob 18s ease-in-out infinite alternate;
}
@keyframes blob { to { border-radius: 58% 42% 55% 45% / 42% 58% 42% 58%; transform: rotate(4deg); } }
.hero-brezel {
  position: absolute; z-index: 3; width: clamp(150px, 15vw, 210px);
  left: max(-8%, -70px); bottom: 2%;
  filter: drop-shadow(0 18px 18px rgba(0,0,0,.18));
}
.hero-hint {
  position: absolute; z-index: 4; right: -2%; top: 58%;
  font-family: var(--f-mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase;
  color: #fff; display: flex; align-items: flex-start; gap: 6px; transform: rotate(-4deg);
}
.hero-hint svg { width: 56px; height: 46px; margin-top: -26px; }
@media (max-width: 1100px) { .hero-hint { display: none; } }

.reveal-up { opacity: 0; transform: translateY(22px); animation: up .9s cubic-bezier(.2,.7,.2,1) forwards; }
.d1 { animation-delay: .05s; } .d2 { animation-delay: .18s; } .d3 { animation-delay: .32s; } .d4 { animation-delay: .46s; } .d5 { animation-delay: .6s; }
@keyframes up { to { opacity: 1; transform: none; } }

@media (max-width: 920px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-stage { min-height: 600px; margin-top: 10px; }
  .hero-stage .rauten-blob { inset: 6% -20% 4% -20%; }
  .hero-brezel { left: -4px; bottom: -18px; width: 112px; }
}

/* ---------- Phone ---------- */

.phone {
  position: relative; z-index: 2;
  width: 300px; aspect-ratio: 300 / 624;
  padding: 11px; border-radius: 50px;
  background: var(--phone);
  box-shadow: 0 0 0 1.5px rgba(255,255,255,.08) inset, 0 0 0 2px #2b2420, 0 50px 90px -30px rgba(10, 20, 50, .6), 0 18px 30px -18px rgba(0,0,0,.5);
  transform: rotate(2.5deg);
}
.phone-screen {
  position: relative; height: 100%; border-radius: 40px; overflow: hidden; overflow: clip;
  background: #0a0a0f; color: #fff; isolation: isolate;
  font-family: -apple-system, "SF Pro Text", var(--f-body);
  touch-action: pan-x;
}
.phone .island { position: absolute; z-index: 20; top: 9px; left: 50%; translate: -50% 0; width: 92px; height: 26px; border-radius: 20px; background: #000; }
.phone .status { position: absolute; z-index: 19; top: 13px; left: 26px; right: 22px; display: flex; justify-content: space-between; font-size: 13px; font-weight: 600; }
.phone .status i { font-style: normal; display: inline-block; width: 22px; height: 11px; border: 1.5px solid #fff; border-radius: 3.5px; position: relative; opacity: .9; }
.phone .status i::after { content: ""; position: absolute; inset: 1.5px 5px 1.5px 1.5px; background: #fff; border-radius: 1px; }

.feed { position: absolute; inset: 0; transition: transform .7s cubic-bezier(.7,0,.2,1); }
.clip { position: absolute; top: 0; left: 0; right: 0; height: 100%; overflow: hidden; overflow: clip; }
.clip-scene { position: absolute; inset: 0; animation: kenburns 14s ease-in-out infinite alternate; transform-origin: 50% 40%; }
@keyframes kenburns { from { transform: scale(1.02); } to { transform: scale(1.12) translateY(-2%); } }
.clip-scene svg, .clip-scene canvas { position: absolute; }
.clip::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.35) 0, transparent 22%, transparent 42%, rgba(0,0,0,.78) 78%, rgba(0,0,0,.9)); pointer-events: none; }

.clip-ui { position: absolute; inset: 0; z-index: 3; pointer-events: none; }
.clip-ui > * { pointer-events: auto; }
.clip-top { position: absolute; top: 50px; left: 14px; right: 14px; display: flex; gap: 6px; align-items: center; }
.lvl { font-size: 11px; font-weight: 700; padding: 4px 8px; border-radius: 99px; color: #0b0b0f; }
.lvl.a { background: #73d99e; } .lvl.b { background: #73b3ff; } .lvl.c { background: #db8cff; }
.topic-tag { font-size: 11px; font-weight: 600; padding: 4px 9px; border-radius: 99px; background: rgba(255,255,255,.16); backdrop-filter: blur(6px); }
.clip-progress { position: absolute; top: 44px; left: 14px; right: 14px; height: 2.5px; border-radius: 2px; background: rgba(255,255,255,.22); overflow: hidden; }
.clip-progress b { display: block; height: 100%; width: 0; background: #fff; }

.rail { position: absolute; right: 9px; bottom: 214px; display: grid; gap: 13px; justify-items: center; }
.rail button { width: 38px; height: 38px; border-radius: 99px; border: 0; background: rgba(255,255,255,.14); backdrop-filter: blur(8px); display: grid; place-items: center; cursor: pointer; font-size: 11px; font-weight: 800; }
.rail button svg { width: 18px; height: 18px; }
.rail button.on { background: #fac75c; color: #120c08; }

.clip-bottom { position: absolute; left: 10px; right: 10px; bottom: 76px; display: flex; flex-direction: column; gap: 12px; }
.clip-meta { padding: 0 54px 0 4px; }
.clip-meta b { font-size: 13.5px; display: block; }
.clip-meta span { font-size: 12px; opacity: .75; }

.subs { text-align: center; min-height: 104px; display: flex; flex-direction: column; justify-content: flex-end; }
.sub-line { display: flex; flex-wrap: wrap; justify-content: center; gap: 2px 3px; font-size: 19px; font-weight: 700; line-height: 1.25; text-shadow: 0 1px 8px rgba(0,0,0,.5); }
.w {
  position: relative; border: 0; background: transparent; padding: 1px 3px; border-radius: 7px; cursor: pointer;
  color: rgba(255,255,255,.55); font: inherit; transition: color .18s, background-color .18s, transform .18s;
}
.w.said { color: #fff; }
.w.now { color: #fac75c; }
.w:hover, .w.picked { background: rgba(255,255,255,.2); color: #fff; }
.w .tip {
  position: absolute; left: 50%; bottom: calc(100% + 8px); translate: -50% 4px;
  background: #fffaf0; color: #2e170a; font-size: 12.5px; font-weight: 600; white-space: nowrap;
  padding: 5px 9px; border-radius: 9px; box-shadow: 0 6px 20px rgba(0,0,0,.35);
  opacity: 0; pointer-events: none; transition: opacity .15s, translate .15s; text-shadow: none;
}
.w .tip::after { content: ""; position: absolute; left: 50%; top: 100%; translate: -50% 0; border: 6px solid transparent; border-top-color: #fffaf0; }
@media (hover: hover) { .w:hover .tip { opacity: 1; translate: -50% 0; } }
.sub-en { margin-top: 6px; font-size: 12.5px; color: rgba(255,255,255,.7); min-height: 1.3em; transition: opacity .2s; }
.sub-en.off { opacity: 0; }

.tabbar { position: absolute; z-index: 6; left: 0; right: 0; bottom: 0; height: 64px; padding-bottom: 12px; display: flex; justify-content: space-around; align-items: center; background: rgba(10,10,15,.82); backdrop-filter: blur(14px); border-top: 1px solid rgba(255,255,255,.08); }
.tabbar span { display: grid; justify-items: center; gap: 2px; font-size: 10px; color: rgba(255,255,255,.5); }
.tabbar span.on { color: #fac75c; }
.tabbar svg { width: 21px; height: 21px; }
.tabbar .badge { position: absolute; font-style: normal; margin: -4px 0 0 18px; background: #ff5a4f; color: #fff; font-size: 9.5px; font-weight: 700; padding: 1px 5px; border-radius: 99px; }

.swipe-cue { position: absolute; z-index: 4; left: 50%; bottom: 152px; translate: -50% 0; display: none; }

/* Word sheet inside the phone (WordSheet.swift). */
.sheet-scrim { position: absolute; inset: 0; z-index: 10; background: rgba(0,0,0,.35); opacity: 0; pointer-events: none; transition: opacity .25s; }
.sheet-scrim.open { opacity: 1; pointer-events: auto; }
.sheet {
  position: absolute; z-index: 11; left: 0; right: 0; bottom: 0;
  background: #17171e; border-radius: 24px 24px 0 0; padding: 10px 18px 20px;
  transform: translateY(105%); transition: transform .38s cubic-bezier(.2,.8,.2,1);
  box-shadow: 0 -10px 40px rgba(0,0,0,.5);
}
.sheet.open { transform: none; }
.sheet .grab { width: 36px; height: 5px; border-radius: 3px; background: rgba(255,255,255,.25); margin: 0 auto 12px; }
.sheet .pos { font-size: 10.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: rgba(255,255,255,.45); }
.sheet .head { font-size: 28px; font-weight: 800; margin: 2px 0 2px; letter-spacing: -.01em; }
.sheet .head i { font-style: normal; }
.sheet .plural { font-size: 12.5px; color: rgba(255,255,255,.55); }
.sheet h5 { margin: 12px 0 3px; font-size: 10px; letter-spacing: .1em; color: rgba(255,255,255,.42); font-weight: 700; }
.sheet p { font-size: 14px; color: rgba(255,255,255,.88); line-height: 1.35; }
.sheet p small { display: block; color: rgba(255,255,255,.5); font-size: 12.5px; margin-top: 2px; }
.sheet .acts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 14px; }
.sheet .acts button { border: 0; border-radius: 12px; padding: 10px; font-weight: 700; font-size: 13.5px; cursor: pointer; background: rgba(255,255,255,.1); }
.sheet .acts .save { background: #fac75c; color: #120c08; }
.sheet .acts .save.done { background: #73d99e; }
.art-der { color: #6ba8ff; } .art-die { color: #ff7878; } .art-das { color: #66d68f; }

.toast { position: absolute; z-index: 12; left: 14px; right: 14px; top: 46px; padding: 10px 12px; border-radius: 14px; background: rgba(255,250,240,.96); color: #2e170a; font-size: 12.5px; font-weight: 600; transform: translateY(-140%); transition: transform .35s cubic-bezier(.2,.8,.2,1); }
.toast.show { transform: none; }

/* ---------- Sections ---------- */

section { position: relative; }
.section { padding: clamp(80px, 11vw, 150px) 0; }
.section-head { display: grid; gap: 18px; margin-bottom: clamp(36px, 5vw, 64px); }
h2 em { font-style: normal; color: var(--blue); }
h2 .black { font-size: 1.05em; }

/* How it works */
.beats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.card {
  position: relative; border-radius: 28px; padding: 28px;
  background-color: var(--paper); border: 1px solid var(--line); box-shadow: var(--shadow); overflow: hidden;
  display: flex; flex-direction: column; gap: 14px;
}
.card .num { font-family: var(--f-black); font-size: 40px; line-height: .8; color: var(--dough-deep); }
.card p { color: var(--ink-2); font-size: 16px; }
.card.blue { border: 0; }
.card.blue p, .card.blue .num { color: rgba(255,255,255,.88); }
.card.ink { background: var(--ink); color: var(--bg); border: 0; }
.card.ink .num { color: var(--ink-num); }
.card.ink p { color: color-mix(in srgb, var(--bg) 75%, transparent); }
@media (max-width: 860px) { .beats { grid-template-columns: 1fr; } .card { padding: 22px; border-radius: 24px; } }

/* Final CTA */
.finale { text-align: center; padding: clamp(90px, 12vw, 170px) 0 clamp(70px, 9vw, 110px); }
.finale h2 { font-size: clamp(56px, 10vw, 150px); line-height: .9; }
.finale h2 .black { color: var(--blue); }
.finale .lede { margin: 22px auto 34px; }

footer { border-top: 1px solid var(--line); padding: 34px 0 40px; font-size: 14.5px; color: var(--ink-3); }
footer .wrap { display: flex; flex-wrap: wrap; gap: 14px 30px; align-items: center; justify-content: space-between; }
footer nav { display: flex; gap: 22px; flex-wrap: wrap; }
footer a { text-decoration: none; color: var(--ink-2); }
footer a:hover { color: var(--ink); text-decoration: underline; }

/* Companion Brezel (follows you down the page). */
.buddy {
  position: fixed; z-index: 60; right: clamp(10px, 2vw, 26px); bottom: clamp(10px, 2vw, 22px);
  display: flex; align-items: flex-end; gap: 4px; pointer-events: none;
  transform: translateY(150%); transition: transform .6s cubic-bezier(.3,1.4,.4,1);
}
.buddy.show { transform: none; }
.buddy canvas { width: 92px; pointer-events: auto; filter: drop-shadow(0 8px 10px rgba(0,0,0,.25)); }
.buddy .bubble-say {
  pointer-events: auto; margin-bottom: 70px; max-width: 220px; background: var(--paper); color: var(--ink);
  border: 1px solid var(--line); border-radius: 18px 18px 4px 18px; padding: 9px 13px; box-shadow: var(--shadow);
  font-family: var(--f-display); font-weight: 700; letter-spacing: -.02em; font-size: 19px; line-height: 1.15; transition: opacity .3s, transform .3s;
}
.buddy .bubble-say small { display: block; font-family: var(--f-body); font-size: 12px; color: var(--ink-3); margin-top: 2px; }
.buddy .bubble-say.hide { opacity: 0; transform: translateY(6px) scale(.96); }
@media (max-width: 600px) { .buddy canvas { width: 70px; } .buddy .bubble-say { margin-bottom: 52px; font-size: 16px; max-width: 170px; } }

/* Scroll reveals */
.js .rv { opacity: 0; transform: translateY(30px); transition: opacity .8s cubic-bezier(.2,.7,.2,1), transform .8s cubic-bezier(.2,.7,.2,1); }
.js .rv.in { opacity: 1; transform: none; }

/* Privacy page */
.doc { padding: clamp(40px, 7vw, 90px) 0 90px; }
.doc-head { display: grid; grid-template-columns: 1fr auto; gap: 30px; align-items: end; padding-bottom: 36px; border-bottom: 1px solid var(--line); margin-bottom: 40px; }
.doc-head canvas { width: 130px; }
@media (max-width: 600px) { .doc-head { grid-template-columns: 1fr; } .doc-head canvas { width: 100px; } }
.doc h1 { font-size: clamp(48px, 8vw, 96px); }
.doc-body { display: grid; grid-template-columns: 220px 1fr; gap: 50px; }
@media (max-width: 860px) { .doc-body { grid-template-columns: 1fr; } .doc-toc { display: none; } }
.doc-toc { position: sticky; top: 90px; align-self: start; display: grid; gap: 8px; font-size: 14.5px; }
.doc-toc a { text-decoration: none; color: var(--ink-3); }
.doc-toc a:hover { color: var(--ink); }
.prose { max-width: 720px; }
.prose h2 { font-size: clamp(28px, 3.2vw, 38px); font-weight: 700; letter-spacing: -.03em; margin: 52px 0 14px; scroll-margin-top: 90px; }
.prose h2:first-child { margin-top: 0; }
.prose p, .prose li { color: var(--ink-2); font-size: 17px; }
.prose p + p { margin-top: 12px; }
.prose ul { padding-left: 20px; display: grid; gap: 8px; margin: 12px 0; }
.prose strong { color: var(--ink); }
.prose code { font-family: var(--f-mono); font-size: .88em; background: var(--paper-2); padding: 1px 6px; border-radius: 6px; }
.tldr { background: var(--paper); border: 1px solid var(--line); border-radius: 24px; padding: 24px 26px; box-shadow: var(--shadow); margin-bottom: 20px; }
.tldr ul { margin: 10px 0 0; }
.table { width: 100%; border-collapse: collapse; margin: 14px 0; font-size: 15px; }
.table th, .table td { text-align: left; padding: 12px 10px; border-bottom: 1px solid var(--line); vertical-align: top; color: var(--ink-2); }
.table th { font-family: var(--f-mono); font-weight: 500; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.table td:first-child { color: var(--ink); font-weight: 600; }
@media (max-width: 600px) { .table, .table tbody, .table tr, .table td { display: block; } .table thead { display: none; } .table tr { padding: 10px 0; border-bottom: 1px solid var(--line); } .table td { border: 0; padding: 3px 0; } }
.todo { background: var(--gold); color: #2e170a; padding: 1px 6px; border-radius: 6px; font-weight: 600; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  html { scroll-behavior: auto; }
  .js .rv { opacity: 1; transform: none; }
}
