/* penna.social — the app's design language on the web.
   Brand book: one blue (≤ ~10% of a screen), neutral greys, red only for
   errors; Plus Jakarta Sans; a 4-point grid; keys sit on a 4 px lip; no
   gradients, glows or glass. */

@font-face { font-family: "Plus Jakarta Sans"; font-weight: 400; font-style: normal; font-display: swap; src: url("/assets/fonts/plus-jakarta-sans-regular.woff2") format("woff2"); }
@font-face { font-family: "Plus Jakarta Sans"; font-weight: 500; font-style: normal; font-display: swap; src: url("/assets/fonts/plus-jakarta-sans-medium.woff2") format("woff2"); }
@font-face { font-family: "Plus Jakarta Sans"; font-weight: 600; font-style: normal; font-display: swap; src: url("/assets/fonts/plus-jakarta-sans-semibold.woff2") format("woff2"); }
@font-face { font-family: "Plus Jakarta Sans"; font-weight: 700; font-style: normal; font-display: swap; src: url("/assets/fonts/plus-jakarta-sans-bold.woff2") format("woff2"); }
@font-face { font-family: "Plus Jakarta Sans"; font-weight: 800; font-style: normal; font-display: swap; src: url("/assets/fonts/plus-jakarta-sans-extrabold.woff2") format("woff2"); }

:root {
  color-scheme: light;
  --brand: #3A6DF2;
  --brand-pressed: #2B5AD6;
  --tint: rgba(58, 109, 242, 0.12);
  --danger: #D93036;
  --bg: #FFFFFF;
  --surface: #F5F6F8;
  --line: #E6E8EC;
  --icon: #868C98;
  --text-2: #5B616E;
  --text: #111318;
  --lip: #DCE0E7;
  --inverse-lip: #C5D0EA;
  --studio-bg: #0E0F12;
  --studio-surface: #1A1C21;
  --studio-line: #2A2D34;
  --studio-text-2: #9AA0AB;
  --studio-text: #F2F3F5;

  --r-sm: 8px; --r-tile: 12px; --r-md: 16px; --r-card: 20px; --r-lg: 24px; --r-xl: 32px;
  --gutter: 20px;
  --max: 1120px;
  --font: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --shadow-low: 0 1px 2px rgba(0,0,0,.05), 0 4px 10px rgba(0,0,0,.07);
  --shadow-high: 0 2px 4px rgba(0,0,0,.08), 0 14px 32px rgba(0,0,0,.16);
}
@media (min-width: 768px) { :root { --gutter: 32px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: var(--font); font-size: 17px; line-height: 1.5;
  /* The fi/fl ligatures swallow the Turkish dotted i; the app turns them off too. */
  font-variant-ligatures: none; font-feature-settings: "liga" 0;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { margin: 0; line-height: 1.15; }
p { margin: 0; }
ul, ol.steps { margin: 0; padding: 0; }

.i { width: 24px; height: 24px; fill: currentColor; flex: none; }
.i-sm { width: 18px; height: 18px; }
.i-lg { width: 28px; height: 28px; }

.wrap { width: 100%; max-width: calc(var(--max) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--text); color: #fff; padding: 8px 14px; border-radius: var(--r-sm); }
.skip:focus { left: 8px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.96);
  border-bottom: 1px solid transparent; transition: border-color .2s ease;
}
.site-header.scrolled { border-bottom-color: var(--line); }
.site-header .wrap { display: flex; align-items: center; gap: 24px; height: 68px; }
.brand { display: inline-flex; align-items: center; flex: none; }
.brand img { height: 30px; width: auto; }
.nav { display: none; gap: 4px; margin-left: auto; }
.nav a { color: var(--text-2); font-weight: 600; font-size: 15px; padding: 8px 12px; border-radius: 999px; transition: background .14s ease, color .14s ease; }
.nav a:hover { text-decoration: none; color: var(--text); background: var(--surface); }
.nav a[aria-current="page"] { color: var(--brand); background: var(--tint); }
.header-cta { margin-left: auto; }
@media (min-width: 860px) {
  .nav { display: flex; }
  .header-cta { margin-left: 8px; }
}

/* ---------- Keys (lipped buttons) ---------- */
.key {
  --face: var(--brand); --key-lip: var(--brand-pressed); --ink: #fff;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 54px; padding: 0 26px; border: 0; border-radius: var(--r-card);
  background: var(--face); color: var(--ink); box-shadow: 0 4px 0 var(--key-lip);
  font: 600 17px/1.2 var(--font); cursor: pointer; text-decoration: none;
  transform: translateY(0); transition: transform .1s ease-out, box-shadow .1s ease-out;
  margin-bottom: 4px; -webkit-tap-highlight-color: transparent;
}
.key:hover { text-decoration: none; }
.key:active { transform: translateY(4px); box-shadow: 0 0 0 var(--key-lip); }
.key.inverse { --face: #fff; --key-lip: var(--inverse-lip); --ink: var(--text); }
.key.small { min-height: 42px; padding: 0 18px; font-size: 15px; border-radius: var(--r-md); }
.key .i { width: 20px; height: 20px; }

/* The App Store badge while the app is not out yet: a quiet, non-pressable pill. */
.soon {
  display: inline-flex; align-items: center; gap: 12px; min-height: 58px; padding: 8px 22px 8px 16px;
  border-radius: var(--r-card); background: var(--text); color: #fff;
}
.soon .pick { width: 26px; height: 29px; }
.soon small { display: block; font-size: 12px; font-weight: 600; letter-spacing: .02em; opacity: .7; line-height: 1.2; }
.soon strong { display: block; font-size: 17px; font-weight: 700; line-height: 1.25; }

/* ---------- Type helpers ---------- */
.overline { display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--brand); }
.section-title { font-size: clamp(30px, 4.6vw, 44px); font-weight: 800; letter-spacing: -0.02em; margin-top: 10px; }
.lead { font-size: clamp(17px, 1.8vw, 19px); color: var(--text-2); margin-top: 14px; max-width: 34em; }
.muted { color: var(--text-2); }

section { padding: 72px 0; }
@media (min-width: 900px) { section { padding: 104px 0; } }
.section-head { max-width: 640px; margin-bottom: 40px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head.center .lead { margin-left: auto; margin-right: auto; }
.on-surface { background: var(--surface); }

/* ---------- Hero ---------- */
.hero { padding: 40px 0 72px; overflow-x: clip; }
.hero .wrap { display: grid; gap: 48px; align-items: center; }
@media (min-width: 900px) {
  .hero { padding: 72px 0 112px; }
  .hero .wrap { grid-template-columns: 1.1fr .9fr; gap: 64px; }
}
.hero h1 { font-size: clamp(44px, 8vw, 80px); font-weight: 800; letter-spacing: -0.035em; line-height: 1.02; }
.hero h1 em { font-style: normal; color: var(--brand); }
.hero .lead { margin-top: 20px; font-size: clamp(18px, 2vw, 20px); }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; margin-top: 32px; }
.hero-note { display: flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 500; color: var(--text-2); }
.hero-note .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--brand); flex: none; }

/* The card deck illustration */
.deck { position: relative; width: min(100%, 360px); margin: 0 auto; aspect-ratio: 360 / 520; }
.deck .ghost {
  position: absolute; inset: 0 0 92px; border-radius: var(--r-card); background: var(--surface);
  border: 1px solid var(--line);
}
.deck .ghost.g1 { transform: rotate(-7deg) translate(-18px, 8px); }
.deck .ghost.g2 { transform: rotate(5deg) translate(16px, 4px); background: #fff; }
.pcard {
  position: absolute; inset: 0 0 92px; border-radius: var(--r-card); overflow: hidden;
  background: #fff; box-shadow: var(--shadow-high); display: flex; flex-direction: column;
  transform-origin: 50% 110%; animation: sway 7s ease-in-out infinite;
}
.pcard .art {
  position: relative; flex: 1; background: var(--brand); color: #fff;
  display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.pcard .art .big { width: 46%; height: auto; aspect-ratio: 1; opacity: .95; fill: #fff; }
.pcard .art .ring { position: absolute; border-radius: 50%; border: 2px solid rgba(255,255,255,.18); }
.pcard .art .ring.r1 { width: 74%; aspect-ratio: 1; }
.pcard .art .ring.r2 { width: 112%; aspect-ratio: 1; }
.pcard .bars { position: absolute; top: 12px; left: 12px; right: 12px; display: flex; gap: 6px; }
.pcard .bars span { flex: 1; height: 4px; border-radius: 2px; background: rgba(255,255,255,.4); }
.pcard .bars span:first-child { background: #fff; }
.pcard .stamp {
  position: absolute; top: 40px; left: 22px; padding: 4px 12px; border-radius: 10px;
  background: #fff; color: var(--brand); font-weight: 800; font-size: 22px; letter-spacing: .06em;
  transform: rotate(-14deg); opacity: 0; animation: stamp 7s ease-in-out infinite;
}
.pcard .info { padding: 16px 18px 18px; }
.pcard .name { font-size: 26px; font-weight: 800; letter-spacing: -0.02em; line-height: 1.1; }
.pcard .name span { font-weight: 500; color: var(--text-2); }
.pcard .meta { display: flex; align-items: center; gap: 6px; margin-top: 4px; font-size: 14px; font-weight: 500; color: var(--text-2); }
.pcard .meta .i { width: 16px; height: 16px; color: var(--icon); }
.player {
  display: flex; align-items: center; gap: 12px; margin-top: 14px; padding: 8px 14px 8px 8px;
  border-radius: 999px; background: var(--surface);
}
.player .play { width: 36px; height: 36px; border-radius: 50%; background: var(--brand); color: #fff; display: grid; place-items: center; flex: none; }
.player .play .i { width: 16px; height: 16px; }
.wave { flex: 1; display: flex; align-items: center; gap: 3px; height: 28px; }
.wave i { flex: 1; min-width: 2px; border-radius: 2px; background: var(--lip); height: var(--h, 40%); }
.wave i.on { background: var(--brand); }
.player time { font-size: 13px; font-weight: 600; color: var(--text-2); font-variant-numeric: tabular-nums; }
.deck .actions { position: absolute; left: 0; right: 0; bottom: 6px; display: flex; justify-content: center; align-items: center; gap: 18px; }
.round { width: 64px; height: 64px; border-radius: 50%; background: #fff; display: grid; place-items: center; box-shadow: var(--shadow-low); color: var(--text-2); }
.round.sm { width: 52px; height: 52px; color: var(--brand); }
.round.like { background: var(--brand); color: #fff; animation: likePulse 7s ease-in-out infinite; }
.round .i { width: 28px; height: 28px; }
.round.sm .i { width: 22px; height: 22px; }

@keyframes sway {
  0%, 100% { transform: rotate(0deg) translateX(0); }
  30% { transform: rotate(-1.2deg) translateX(-4px); }
  52% { transform: rotate(0deg) translateX(0); }
  64% { transform: rotate(5deg) translateX(26px); }
  76% { transform: rotate(0deg) translateX(0); }
}
@keyframes stamp {
  0%, 56%, 80%, 100% { opacity: 0; transform: rotate(-14deg) scale(1.15); }
  62%, 72% { opacity: 1; transform: rotate(-14deg) scale(1); }
}
@keyframes likePulse {
  0%, 56%, 80%, 100% { transform: scale(1); }
  64%, 72% { transform: scale(1.1); }
}

/* ---------- How it works ---------- */
.steps { display: grid; gap: 16px; list-style: none; counter-reset: step; }
@media (min-width: 640px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1040px) { .steps { grid-template-columns: repeat(4, 1fr); } }
.step {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-card);
  padding: 20px; display: flex; flex-direction: column; gap: 6px;
}
.step .vignette {
  height: 152px; border-radius: var(--r-md); background: var(--surface); margin-bottom: 14px;
  display: flex; align-items: center; justify-content: center; padding: 16px; overflow: hidden;
}
.step .num { font-size: 13px; font-weight: 700; color: var(--brand); }
.step h3 { font-size: 22px; font-weight: 700; letter-spacing: -0.01em; }
.step p { font-size: 15px; color: var(--text-2); line-height: 1.45; }

/* vignette: listen */
.v-listen .player { width: 100%; margin: 0; background: #fff; box-shadow: var(--shadow-low); }
/* vignette: match */
.v-match { gap: 0; }
.v-match .face {
  width: 72px; height: 72px; border-radius: 50%; display: grid; place-items: center;
  background: #fff; color: var(--brand); border: 3px solid #fff; box-shadow: var(--shadow-low);
}
.v-match .face.b { background: var(--brand); color: #fff; margin-left: -14px; }
.v-match .face .i { width: 32px; height: 32px; }
.v-match .badge {
  width: 36px; height: 36px; border-radius: 50%; background: #fff; color: var(--brand); display: grid; place-items: center;
  margin-left: -26px; margin-top: 52px; box-shadow: var(--shadow-low); position: relative;
}
.v-match .badge .i { width: 18px; height: 18px; }
/* vignette: chat */
.v-chat { flex-direction: column; align-items: stretch; justify-content: center; gap: 8px; }
.bubble { max-width: 82%; padding: 9px 14px; border-radius: 18px; font-size: 14px; font-weight: 500; line-height: 1.35; }
.bubble.them { background: #fff; color: var(--text); border-bottom-left-radius: 6px; align-self: flex-start; box-shadow: 0 1px 2px rgba(0,0,0,.05); }
.bubble.me { background: var(--brand); color: #fff; border-bottom-right-radius: 6px; align-self: flex-end; }
/* vignette: studio */
.v-studio { background: var(--studio-bg) !important; flex-direction: column; align-items: stretch; gap: 12px; }
.v-studio .track { display: flex; align-items: center; gap: 10px; }
.v-studio .track span { font-size: 11px; font-weight: 700; letter-spacing: .06em; color: var(--studio-text-2); width: 40px; }
.v-studio .wave i { background: var(--studio-line); }
.v-studio .wave i.on { background: var(--brand); }
.v-studio .transport { display: flex; justify-content: center; gap: 12px; }
.v-studio .transport b { width: 34px; height: 34px; border-radius: 50%; background: var(--studio-surface); display: grid; place-items: center; color: var(--studio-text); }
.v-studio .transport b.rec { background: var(--brand); }
.v-studio .transport .i { width: 16px; height: 16px; }

/* ---------- Roles ---------- */
.roles { display: grid; gap: 16px; }
@media (min-width: 640px) { .roles { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1040px) { .roles { grid-template-columns: repeat(4, 1fr); } }
.tile {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-card);
  box-shadow: 0 4px 0 var(--lip); padding: 22px; margin-bottom: 4px;
}
.icon-tile { width: 48px; height: 48px; border-radius: var(--r-tile); background: var(--tint); color: var(--brand); display: grid; place-items: center; }
.tile h3 { font-size: 19px; font-weight: 700; margin-top: 18px; }
.tile p { font-size: 15px; color: var(--text-2); margin-top: 6px; line-height: 1.45; }

.looking { margin-top: 56px; display: grid; gap: 20px; align-items: center; }
@media (min-width: 900px) { .looking { grid-template-columns: auto 1fr; gap: 32px; } }
.looking h3 { font-size: 22px; font-weight: 700; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; }
.chip {
  display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 999px;
  background: #fff; border: 1.5px solid var(--line); font-size: 15px; font-weight: 500; color: var(--text);
}
.chip .i { width: 18px; height: 18px; color: var(--brand); }

/* ---------- Safety ---------- */
.split { display: grid; gap: 40px; }
@media (min-width: 900px) { .split { grid-template-columns: .9fr 1.1fr; gap: 72px; align-items: start; } .split .section-head { position: sticky; top: 108px; margin-bottom: 0; } }
.group { background: #fff; border: 1px solid var(--line); border-radius: var(--r-card); padding: 4px 20px; }
.row { display: flex; gap: 16px; padding: 18px 0; }
.row + .row { border-top: 1px solid var(--line); }
.row .icon-tile { width: 44px; height: 44px; flex: none; }
.row h3 { font-size: 17px; font-weight: 600; line-height: 1.3; }
.row p { font-size: 15px; color: var(--text-2); margin-top: 4px; line-height: 1.45; }

/* ---------- CTA band ---------- */
.cta {
  background: var(--brand); color: #fff; border-radius: var(--r-xl);
  padding: 48px 24px; display: grid; gap: 32px; justify-items: center; text-align: center;
}
@media (min-width: 900px) { .cta { padding: 72px 64px; grid-template-columns: auto 1fr; justify-items: start; text-align: left; gap: 56px; align-items: center; } }
.pena { position: relative; width: 132px; }
.pena img { width: 132px; height: auto; animation: bob 3.2s ease-in-out infinite; }
.pena .shadow { width: 84px; height: 10px; border-radius: 50%; background: rgba(0,0,0,.14); margin: 14px auto 0; animation: shadow 3.2s ease-in-out infinite; }
.cta h2 { font-size: clamp(30px, 4.4vw, 44px); font-weight: 800; letter-spacing: -0.02em; }
.cta p { margin-top: 12px; font-size: 18px; opacity: .9; max-width: 32em; }
.cta .hero-actions { margin-top: 28px; }
.cta .soon { background: #fff; color: var(--text); }
.cta a.plain { color: #fff; font-weight: 600; text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1.5px; }
@keyframes bob { 0%, 100% { transform: translateY(0) rotate(-3deg); } 50% { transform: translateY(-10px) rotate(3deg); } }
@keyframes shadow { 0%, 100% { transform: scaleX(1); opacity: 1; } 50% { transform: scaleX(.78); opacity: .6; } }

/* ---------- FAQ ---------- */
.faq { max-width: 760px; margin: 0 auto; }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-child { border-top: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 22px 0; font-size: 18px; font-weight: 600; line-height: 1.35;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary .i { width: 22px; height: 22px; color: var(--icon); transition: transform .2s ease-out, color .2s ease-out; }
.faq details[open] summary .i { transform: rotate(45deg); color: var(--brand); }
.faq .answer { padding: 0 40px 24px 0; color: var(--text-2); font-size: 16px; }
.faq .answer p + p { margin-top: 10px; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 48px 0 40px; margin-top: 24px; }
.site-footer .top { display: grid; gap: 32px; }
@media (min-width: 760px) { .site-footer .top { grid-template-columns: 1fr auto; align-items: start; } }
.site-footer .brand img { height: 28px; }
.site-footer .tag { margin-top: 12px; color: var(--text-2); font-size: 15px; }
.footer-links { display: grid; grid-template-columns: repeat(2, minmax(140px, auto)); gap: 10px 48px; list-style: none; }
.footer-links a { color: var(--text); font-weight: 500; font-size: 15px; }
.site-footer .bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--line); font-size: 13px; color: var(--text-2); font-weight: 500; }
.site-footer .bottom a { color: var(--text-2); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Document pages (legal, support) ---------- */
.doc-hero { padding: 48px 0 8px; }
@media (min-width: 900px) { .doc-hero { padding: 72px 0 16px; } }
.doc { max-width: 760px; margin: 0 auto; }
.doc-hero h1 { font-size: clamp(36px, 6vw, 56px); font-weight: 800; letter-spacing: -0.03em; margin-top: 10px; }
.doc-hero .lead { max-width: none; }
.draft {
  display: flex; gap: 12px; align-items: flex-start; margin-top: 24px; padding: 14px 16px;
  border-radius: var(--r-md); background: var(--surface); border: 1px solid var(--line); font-size: 15px; color: var(--text-2);
}
.draft .i { color: var(--brand); margin-top: 1px; }
.draft strong { color: var(--text); }
.prose { padding: 24px 0 88px; }
.prose h2 { font-size: 22px; font-weight: 700; letter-spacing: -0.01em; margin: 44px 0 12px; scroll-margin-top: 96px; }
.prose h3 { font-size: 17px; font-weight: 600; margin: 24px 0 8px; }
.prose p, .prose li { color: #2A2E36; font-size: 17px; line-height: 1.6; }
.prose p + p { margin-top: 12px; }
.prose ul, .prose ol { padding-left: 22px; margin: 12px 0; }
.prose li + li { margin-top: 6px; }
.prose li::marker { color: var(--icon); }
.prose .meta { font-size: 14px; color: var(--text-2); font-weight: 500; }
.prose .placeholder { background: var(--tint); color: var(--brand-pressed); padding: 1px 6px; border-radius: 6px; font-weight: 600; font-size: .94em; }
.toc { margin-top: 28px; padding: 18px 20px; border-radius: var(--r-card); border: 1px solid var(--line); }
.toc strong { display: block; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--text-2); margin-bottom: 8px; }
.toc ol { margin: 0; padding-left: 20px; columns: 2 220px; column-gap: 32px; }
.toc li { font-size: 15px; break-inside: avoid; }
.toc a { color: var(--text); font-weight: 500; }

.contact-card {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px;
  padding: 24px; border-radius: var(--r-card); border: 1px solid var(--line); background: #fff; box-shadow: 0 4px 0 var(--lip);
  margin: 28px 0 8px;
}
.contact-card .who { display: flex; gap: 16px; align-items: center; }
.contact-card strong { display: block; font-size: 19px; }
.contact-card span { color: var(--text-2); font-size: 15px; }

.path { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 16px 0; list-style: none; padding: 0 !important; }
.path li { margin: 0 !important; display: inline-flex; align-items: center; gap: 8px; }
.path li + li::before { content: ""; width: 7px; height: 7px; border-right: 2px solid var(--icon); border-top: 2px solid var(--icon); transform: rotate(45deg); margin-right: 4px; }
.path b { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-size: 15px; font-weight: 600; color: var(--text); }
.path b.danger { color: var(--danger); }
.path b .i { width: 18px; height: 18px; }

/* ---------- 404 ---------- */
.lost { min-height: 62vh; display: grid; place-items: center; text-align: center; padding: 64px 0; }
.lost .pena { margin: 0 auto 28px; width: 112px; }
.lost .pena img { width: 112px; }
.lost h1 { font-size: clamp(34px, 6vw, 52px); font-weight: 800; letter-spacing: -0.03em; }
.lost p { margin: 12px auto 28px; color: var(--text-2); max-width: 26em; }

/* ---------- Reveal on scroll (enhancement only; content is visible without JS) ---------- */
.js .reveal { opacity: 0; transform: translateY(12px); transition: opacity .5s cubic-bezier(.22,.8,.25,1), transform .5s cubic-bezier(.22,.8,.25,1); }
.js .reveal[data-d="1"] { transition-delay: 60ms; }
.js .reveal[data-d="2"] { transition-delay: 120ms; }
.js .reveal[data-d="3"] { transition-delay: 180ms; }
.js .reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .pcard .stamp { opacity: 0; }
  .js .reveal { opacity: 1; transform: none; }
}

@media print {
  .site-header, .site-footer, .toc { display: none; }
  .prose { padding: 0; }
}

/* Waveform bar heights (a fixed, hand-shaped clip; no inline styles under the CSP). */
.wave i:nth-child(1) { height: 34%; }
.wave i:nth-child(2) { height: 52%; }
.wave i:nth-child(3) { height: 70%; }
.wave i:nth-child(4) { height: 46%; }
.wave i:nth-child(5) { height: 88%; }
.wave i:nth-child(6) { height: 62%; }
.wave i:nth-child(7) { height: 40%; }
.wave i:nth-child(8) { height: 74%; }
.wave i:nth-child(9) { height: 96%; }
.wave i:nth-child(10) { height: 58%; }
.wave i:nth-child(11) { height: 36%; }
.wave i:nth-child(12) { height: 64%; }
.wave i:nth-child(13) { height: 82%; }
.wave i:nth-child(14) { height: 50%; }
.wave i:nth-child(15) { height: 30%; }
.wave i:nth-child(16) { height: 56%; }
.wave i:nth-child(17) { height: 78%; }
.wave i:nth-child(18) { height: 92%; }
.wave i:nth-child(19) { height: 60%; }
.wave i:nth-child(20) { height: 42%; }
.wave i:nth-child(21) { height: 70%; }
.wave i:nth-child(22) { height: 86%; }
.wave i:nth-child(23) { height: 54%; }
.wave i:nth-child(24) { height: 38%; }
.wave i:nth-child(25) { height: 62%; }
.wave i:nth-child(26) { height: 48%; }
.wave i:nth-child(27) { height: 72%; }
.wave i:nth-child(28) { height: 44%; }

/* Phones: role tiles read as rows, the download actions centre under the text. */
@media (max-width: 639px) {
  .tile { display: grid; grid-template-columns: 48px 1fr; column-gap: 16px; padding: 18px; }
  .tile .icon-tile { grid-row: span 2; }
  .tile h3 { margin-top: 2px; }
  .tile p { margin-top: 2px; }
}
@media (max-width: 899px) {
  .cta .hero-actions { justify-content: center; }
}
