/* Self-hosted fonts (SIL OFL), Latin + Latin Extended only (covers all site languages).
   No requests to Google, so visitor IPs never reach a third party for fonts. */
@font-face { font-family: 'Instrument Serif'; font-style: normal; font-weight: 400; font-display: swap; src: url(/fonts/instrument-serif-normal-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; }
@font-face { font-family: 'Instrument Serif'; font-style: normal; font-weight: 400; font-display: swap; src: url(/fonts/instrument-serif-normal-latin-ext.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Instrument Serif'; font-style: italic; font-weight: 400; font-display: swap; src: url(/fonts/instrument-serif-italic-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; }
@font-face { font-family: 'Instrument Serif'; font-style: italic; font-weight: 400; font-display: swap; src: url(/fonts/instrument-serif-italic-latin-ext.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 400 600; font-display: swap; src: url(/fonts/inter-normal-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; }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 400 600; font-display: swap; src: url(/fonts/inter-normal-latin-ext.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  --bg: #fafaf9;
  --surface: #ffffff;
  --ink: #0c0a09;
  --ink-2: #44403c;
  --ink-3: #57534e;
  --line: #e7e5e4;
  /* The one brand accent. 3.1:1 on --bg (large text / icons only), 6:1 on --ink. */
  --gold: #b8860b;
  --bubble-me: #1c1917;
  --bubble-ai: #f5f5f4;
  --serif: "Instrument Serif", ui-serif, Georgia, serif;
  --sans: "Inter", ui-sans-serif, system-ui, -apple-system, sans-serif;
  --max: 72rem;
  --radius: 999px;
}

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

html {
  scroll-behavior: smooth;
  /* No double-tap zoom or tap delay on touch; pinch-zoom stays available. */
  touch-action: manipulation;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

/* Our controls have their own pressed/focus states; drop iOS's grey tap flash. */
a, button, input, label { -webkit-tap-highlight-color: transparent; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 1.0625rem/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3 { margin: 0; font-weight: 400; }
p { margin: 0; }
em { font-style: italic; }

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

.skip {
  position: absolute; left: 1rem; top: -4rem; z-index: 50;
  background: var(--ink); color: var(--bg); padding: .75rem 1rem; border-radius: .5rem;
}
.skip:focus { top: 1rem; }

:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 6px; }

/* Brand mark: "peai" with the shared, italic gold "a". Used everywhere the name is a logo. */
.mark {
  font-family: var(--serif); font-weight: 400; font-style: normal;
  letter-spacing: -.02em; color: inherit; text-decoration: none;
}
.mark i { font-style: italic; color: var(--gold); padding-right: .02em; }

/* Accent emphasis: serif italic in brand gold. */
h1 em, h2 em { color: var(--gold); }

/* ---------- nav ---------- */

.nav {
  position: sticky; top: 0; z-index: 20;
  border-bottom: 1px solid transparent;
  transition: background-color .25s, border-color .25s, color .25s;
}
.nav.scrolled {
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  border-bottom-color: var(--line);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.nav.dark {
  background: color-mix(in srgb, var(--ink) 78%, transparent);
  border-bottom-color: rgb(255 255 255 / .08);
  color: var(--bg);
}

.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  max-width: var(--max); margin: 0 auto; padding: 1rem 1.5rem;
}
.nav .mark { font-size: 1.85rem; line-height: 1; }

.nav-cta {
  display: inline-flex; align-items: center; min-height: 44px;
  padding: 0 1.1rem; border: 1px solid var(--line); border-radius: var(--radius);
  color: var(--ink); text-decoration: none; font-size: .9375rem; font-weight: 500; white-space: nowrap;
  background: var(--surface);
  transition: border-color .2s, background-color .2s, color .2s;
}
@media (hover: hover) { .nav-cta:hover { border-color: var(--ink); } }
.nav.dark .nav-cta { background: transparent; border-color: rgb(255 255 255 / .25); color: var(--bg); }
@media (hover: hover) { .nav.dark .nav-cta:hover { border-color: var(--gold); } }

.nav-actions { display: flex; align-items: center; gap: .5rem; }

/* ---------- language menu ---------- */

.lang { position: relative; }

.flag {
  display: block; flex-shrink: 0; width: 20px; height: 20px; border-radius: 50%;
  object-fit: cover;
  /* Hairline ring so white-edged flags (PL, FR, IT) keep their shape on white. */
  box-shadow: 0 0 0 1px rgb(12 10 9 / .12);
}

.lang-btn {
  display: inline-flex; align-items: center; gap: .45rem; min-height: 44px;
  padding: 0 .7rem 0 .55rem; border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--surface); color: var(--ink); cursor: pointer;
  font: 600 .8125rem/1 var(--sans); letter-spacing: .04em;
  transition: border-color .2s, background-color .2s, color .2s;
}
.lang.open .lang-btn { border-color: var(--ink); }
@media (hover: hover) { .lang-btn:hover { border-color: var(--ink); } }
.lang-btn .chev {
  width: .875rem; height: .875rem; fill: none; stroke: currentColor; stroke-width: 2.25;
  stroke-linecap: round; stroke-linejoin: round; opacity: .6; transition: transform .2s;
}
.lang.open .chev { transform: rotate(180deg); }
.nav.dark .lang-btn { background: transparent; border-color: rgb(255 255 255 / .25); color: var(--bg); }
.nav.dark .lang.open .lang-btn { border-color: var(--gold); }
@media (hover: hover) { .nav.dark .lang-btn:hover { border-color: var(--gold); } }

.lang-list {
  position: absolute; top: calc(100% + .5rem); right: 0; z-index: 30;
  min-width: 13.5rem; max-width: calc(100vw - 2.5rem); margin: 0; padding: .375rem; list-style: none;
  /* Ten languages are ~450px tall; scroll inside the menu on landscape phones. */
  max-height: calc(100dvh - 6rem); overflow-y: auto; overscroll-behavior: contain;
  background: var(--surface); border: 1px solid var(--line); border-radius: 1rem;
  box-shadow: 0 18px 40px -18px rgb(12 10 9 / .28), 0 2px 6px rgb(12 10 9 / .05);
  animation: pop .16s ease;
}
.lang-list[hidden] { display: none; }
@keyframes pop { from { opacity: 0; transform: translateY(-4px) scale(.98); } }

.lang-list a {
  display: flex; align-items: center; gap: .75rem; min-height: 44px; padding: 0 .75rem; white-space: nowrap;
  border-radius: .7rem; color: var(--ink); text-decoration: none; font-size: .9375rem;
  transition: background-color .15s;
}
.lang-list a:focus-visible, .lang-list a:active { background: #f5f5f4; outline: none; }
@media (hover: hover) { .lang-list a:hover { background: #f5f5f4; } }
.lang-list a[aria-current] { font-weight: 600; }
.lang-list a span { flex: 1; }
.lang-list .tick {
  width: 1rem; height: 1rem; fill: none; stroke: var(--gold); stroke-width: 2.5;
  stroke-linecap: round; stroke-linejoin: round;
}

/* ---------- hero ---------- */

.hero {
  max-width: var(--max); margin: 0 auto;
  padding: clamp(2.5rem, 7vw, 6rem) 1.5rem clamp(4rem, 8vw, 7rem);
  display: grid; gap: clamp(3rem, 6vw, 5rem);
  grid-template-columns: 1.15fr .85fr; align-items: center;
}

.eyebrow {
  display: inline-flex; align-items: center; gap: .6rem;
  font-size: .875rem; font-weight: 500; color: var(--ink-2);
  padding: .4rem .85rem; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--line);
  margin-bottom: 1.75rem;
}
.dot {
  width: .5rem; height: .5rem; border-radius: 50%; background: var(--gold);
  box-shadow: 0 0 0 0 color-mix(in srgb, var(--gold) 60%, transparent);
  animation: pulse 2.4s infinite;
}
@keyframes pulse {
  70% { box-shadow: 0 0 0 .5rem transparent; }
  100% { box-shadow: 0 0 0 0 transparent; }
}

h1 {
  /* Height-aware so wide-but-short screens (landscape tablets, laptops) keep the form above the fold. */
  font: 400 clamp(3rem, min(7.2vw, 11vh), 6.25rem)/.95 var(--serif);
  letter-spacing: -.035em;
  text-wrap: balance;
}

.lede {
  margin-top: 1.75rem; max-width: 34rem;
  font-size: clamp(1.0625rem, 1.4vw, 1.25rem); color: var(--ink-2);
  text-wrap: pretty;
}

/* ---------- waitlist form ---------- */

.waitlist { margin-top: 2.25rem; max-width: 32rem; }

.field {
  display: flex; gap: .375rem; padding: .375rem;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: 0 1px 2px rgb(12 10 9 / .04), 0 8px 24px -12px rgb(12 10 9 / .12);
  transition: border-color .2s, box-shadow .2s;
}
.field:focus-within {
  border-color: var(--ink);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--gold) 22%, transparent);
}

.field input {
  flex: 1; min-width: 0; min-height: 48px;
  border: 0; outline: 0; background: transparent;
  padding: 0 1rem; font: inherit; font-size: 1rem; color: var(--ink);
}
.field input::placeholder { color: #78716c; }

.field button {
  display: inline-flex; align-items: center; gap: .5rem; flex-shrink: 0;
  min-height: 48px; padding: 0 1.35rem;
  border: 0; border-radius: var(--radius); cursor: pointer;
  background: var(--ink); color: var(--bg);
  font: 500 .9375rem var(--sans);
  transition: background-color .2s;
}
@media (hover: hover) { .field button:hover { background: #292524; } }
.field button:active { background: #292524; }
.field button:focus-visible { outline-offset: 2px; }
.field button:disabled { cursor: progress; opacity: .7; }

.arrow {
  width: 1.1rem; height: 1.1rem; fill: none; stroke: currentColor;
  stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
  transition: transform .2s;
}
@media (hover: hover) { .field button:hover .arrow { transform: translateX(3px); } }

.turnstile:not(:empty) { margin-top: .75rem; }

.status {
  min-height: 1.6em; margin-top: .75rem; padding-left: 1rem;
  font-size: .9375rem; color: var(--ink-3);
}
.status.error { color: #b91c1c; }

/* "Built in Europe" under the hero form. */
.origin {
  display: flex; align-items: center; gap: .5rem;
  margin-top: .875rem; padding-left: 1rem;
  font-size: .875rem; color: var(--ink-3);
}
.origin .flag, .origin-foot .flag { width: 16px; height: 16px; }
.origin a { color: var(--ink-2); text-decoration: underline; text-decoration-color: color-mix(in srgb, var(--gold) 70%, transparent); text-underline-offset: 3px; }
@media (hover: hover) { .origin a:hover { color: var(--ink); text-decoration-color: currentColor; } }
.waitlist.done .origin { display: none; }

.waitlist.done .field, .waitlist.done .turnstile { display: none; }
.waitlist.done .status {
  display: flex; align-items: center; gap: .875rem;
  min-height: 0; margin-top: 0; padding: .375rem 1.5rem .375rem .375rem;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: 0 1px 2px rgb(12 10 9 / .04), 0 8px 24px -12px rgb(12 10 9 / .12);
  color: var(--ink-3); text-align: left;
  animation: settle .35s ease;
}
.status .check {
  display: grid; place-items: center; flex-shrink: 0;
  width: 48px; height: 48px; border-radius: 50%; background: var(--ink);
}
.status .check svg {
  width: 1.25rem; height: 1.25rem; fill: none; stroke: var(--bg);
  stroke-width: 2.25; stroke-linecap: round; stroke-linejoin: round;
}
.status strong {
  margin-right: .35rem;
  font: 400 1.35rem/1.1 var(--serif); letter-spacing: -.01em; color: var(--ink);
}
@keyframes settle { from { opacity: 0; transform: translateY(4px); } }

/* ---------- stories (phone mock) ---------- */

.stories {
  justify-self: end; width: 100%; max-width: 23rem;
  transform: rotate(1.5deg);
}

.story-bar { display: flex; gap: .375rem; padding: 0 1.25rem; }
.story-label {
  margin: .25rem 0 .875rem; padding: 0 1.25rem;
  font-size: .8125rem; font-weight: 500; color: var(--ink-3);
}

.seg {
  position: relative; flex: 1; height: 1.25rem; padding: 0;
  border: 0; background: none; cursor: pointer;
}
/* Visible track is thin; the button keeps a taller hit area. */
.seg::before, .seg .fill {
  content: ""; position: absolute; left: 0; top: 50%; height: 3px;
  margin-top: -1.5px; border-radius: 3px;
}
.seg::before { right: 0; background: var(--line); transition: background-color .2s; }
@media (hover: hover) { .seg:hover::before { background: #d6d3d1; } }
.seg .fill { width: 0; background: var(--gold); }
.seg.past .fill { width: 100%; }
.seg[aria-selected="true"] .fill { width: 100%; }
.stories.playing .seg[aria-selected="true"] .fill {
  width: 0; animation: fill var(--dur, 8s) linear forwards;
}
@keyframes fill { to { width: 100%; } }

.phone {
  background: var(--surface); border: 1px solid var(--line); border-radius: 2.25rem;
  padding: 1rem 1rem 1.25rem;
  box-shadow: 0 30px 60px -30px rgb(12 10 9 / .25), 0 2px 6px rgb(12 10 9 / .04);
}

.phone-top {
  display: flex; flex-direction: column; align-items: center; gap: .5rem;
  padding: 0 0 1rem; border-bottom: 1px solid var(--line); margin-bottom: 1rem;
}
.avatar {
  display: block; width: 2.75rem; height: 2.75rem; border-radius: 50%;
  margin-bottom: .25rem; object-fit: cover;
  box-shadow: 0 0 0 1px rgb(12 10 9 / .06);
}
/* Contact name styled like a messaging app header; the avatar carries the brand. */
.phone-name { font-size: .8125rem; line-height: 1; font-weight: 600; color: var(--ink); letter-spacing: .01em; }

.thread {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-direction: column; gap: .5rem;
  min-height: var(--thread-h, 23.5rem);
}
.thread[hidden] { display: none; }

.msg {
  max-width: 82%; padding: .6rem .9rem; border-radius: 1.15rem;
  font-size: .9375rem; line-height: 1.4;
}
.msg.me {
  align-self: flex-end; background: var(--bubble-me); color: #fafaf9;
  border-bottom-right-radius: .35rem;
}
.msg.ai {
  align-self: flex-start; background: var(--bubble-ai); color: var(--ink);
  border-bottom-left-radius: .35rem;
}

.event {
  align-self: flex-start; display: inline-flex; align-items: center; gap: .4rem;
  margin: .15rem 0; padding: .3rem .7rem; border-radius: var(--radius);
  border: 1px solid var(--line); background: var(--bg);
  font-size: .75rem; line-height: 1.3; color: var(--ink-3);
}
.event svg {
  width: .875rem; height: .875rem; flex-shrink: 0; fill: none; stroke: var(--gold);
  stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
}
.event b { font-weight: 600; color: var(--ink); margin-right: .15rem; }
.gap {
  align-self: center; margin: .35rem 0 .1rem;
  font-size: .6875rem; font-weight: 500; letter-spacing: .08em; text-transform: uppercase;
  color: #78716c;
}

.tag {
  display: inline-block; margin-left: .5rem; padding: .1rem .55rem; vertical-align: .1em;
  border: 1px solid color-mix(in srgb, var(--gold) 55%, transparent); border-radius: var(--radius);
  font-size: .6875rem; font-weight: 500; letter-spacing: .06em; text-transform: uppercase;
  color: #8a6508;
}

.stories.playing .thread > * { opacity: 0; transform: translateY(8px); }
.stories.playing .thread > .shown {
  opacity: 1; transform: none;
  transition: opacity .35s ease, transform .35s ease;
}
.stories.playing .thread > .typing { opacity: 1; transform: none; }

.typing {
  align-self: flex-start; display: inline-flex; gap: .25rem;
  padding: .75rem .9rem; border-radius: 1.15rem; border-bottom-left-radius: .35rem;
  background: var(--bubble-ai);
}
.typing span {
  width: .4rem; height: .4rem; border-radius: 50%; background: #a8a29e;
  animation: blink 1.2s infinite;
}
.typing span:nth-child(2) { animation-delay: .15s; }
.typing span:nth-child(3) { animation-delay: .3s; }
@keyframes blink { 0%, 60%, 100% { opacity: .3; } 30% { opacity: 1; } }

/* ---------- name / wordmark ---------- */

.name {
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  padding: clamp(4rem, 10vw, 8rem) 1.5rem;
  display: flex; flex-direction: column; align-items: center; text-align: center;
  background:
    radial-gradient(60% 60% at 50% 50%, rgb(254 243 199 / .55), transparent 70%),
    var(--bg);
}

.wordmark {
  --wm: clamp(7rem, 24vw, 17rem);
  display: grid;
  grid-template-columns: repeat(4, auto);
  grid-template-areas:
    ".    ea   ea   ."
    "p    e    a    i"
    "lp   .    ai   ai";
  column-gap: clamp(.25rem, 1vw, .75rem);
  row-gap: .5rem;
  font-family: var(--serif);
}

.l {
  font-size: var(--wm); line-height: .8;
  letter-spacing: -.04em; padding: 0 .02em;
}
.l-p { grid-area: p; }
.l-e { grid-area: e; }
.l-a { grid-area: a; color: var(--gold); font-style: italic; }
.l-i { grid-area: i; }

.br {
  position: relative; height: .9rem;
  border: 1.5px solid var(--ink-3);
  font-family: var(--sans);
}
.br small {
  position: absolute; left: 50%; transform: translateX(-50%);
  white-space: nowrap; font-size: clamp(.6875rem, 1.2vw, .875rem);
  font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-2);
}
.br-ea { grid-area: ea; border-bottom: 0; align-self: end; }
.br-ea small { bottom: calc(100% + .45rem); }
.br-p, .br-ai { border-top: 0; align-self: start; margin-top: calc(var(--wm) * .2); }
.br-p { grid-area: lp; }
.br-ai { grid-area: ai; border-color: var(--gold); }
.br-p small, .br-ai small { top: calc(100% + .45rem); }

.name-caption {
  margin-top: 4.5rem; max-width: 42rem;
  font-size: clamp(1.0625rem, 1.6vw, 1.25rem); color: var(--ink-2);
  text-wrap: balance;
}
.name-caption strong { color: var(--ink); font-weight: 600; }
.name-caption em { font-family: var(--serif); font-size: 1.3em; color: var(--gold); }

/* ---------- what it does ---------- */

.does {
  max-width: var(--max); margin: 0 auto;
  padding: clamp(5rem, 10vw, 8rem) 1.5rem;
}
.does h2, .join h2 {
  font: 400 clamp(2.5rem, 5.5vw, 4.5rem)/1 var(--serif);
  letter-spacing: -.03em; text-wrap: balance;
}

.grid {
  list-style: none; margin: clamp(3rem, 6vw, 4.5rem) 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
}
.grid li { padding: 2rem 1.5rem 0 0; }
.grid li + li { padding-left: 1.5rem; border-left: 1px solid var(--line); }
.grid svg, .trust svg {
  width: 1.5rem; height: 1.5rem; flex-shrink: 0; fill: none; stroke: var(--gold);
  stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round;
}
.grid h3, .trust h3 { margin: 1.25rem 0 .5rem; font: 600 1.0625rem/1.3 var(--sans); }
.grid p, .trust p { color: var(--ink-3); font-size: .9875rem; }

/* ---------- "but" divider + trust ---------- */

.but {
  display: flex; align-items: center; gap: 1.25rem;
  margin: clamp(4.5rem, 9vw, 7rem) 0 clamp(3rem, 6vw, 4.5rem);
}
.but::before, .but::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.but span { font: italic 400 clamp(2rem, 3.5vw, 2.75rem)/1 var(--serif); color: var(--gold); }

.trust {
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2.5rem, 6vw, 5rem);
  align-items: start;
}
.trust h2 {
  font: 400 clamp(2.5rem, 5.5vw, 4.5rem)/1 var(--serif);
  letter-spacing: -.03em; text-wrap: balance;
}
.trust ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 2rem; }
.trust li { display: flex; gap: 1.25rem; }
.trust li svg { margin-top: .1rem; }
.trust h3 { margin-top: 0; }

/* ---------- principles ---------- */

.principles {
  background: var(--ink); color: #e7e5e4;
  padding: clamp(4rem, 9vw, 7rem) 1.5rem;
}
.principles ol {
  list-style: none; margin: 0 auto; padding: 0; max-width: calc(var(--max) - 3rem);
  display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(2rem, 4vw, 3.5rem);
}
.principles .num {
  display: block; margin-bottom: 1rem;
  font: italic 400 2.5rem/1 var(--serif); color: var(--gold);
}
.principles p { font-size: 1.0625rem; color: #d6d3d1; }
.principles strong { display: block; margin-bottom: .35rem; color: #fafaf9; font-weight: 600; font-size: 1.1875rem; }

/* ---------- join ---------- */

.join {
  max-width: 44rem; margin: 0 auto; text-align: center;
  padding: clamp(5rem, 11vw, 9rem) 1.5rem;
  display: flex; flex-direction: column; align-items: center;
}
.join > p { margin-top: 1.25rem; color: var(--ink-2); font-size: 1.125rem; max-width: 30rem; }
.join .waitlist { width: 100%; }
.join .status { padding-left: 0; }
.join .waitlist.done .status { justify-content: center; }

/* ---------- footer ---------- */

.foot {
  max-width: var(--max); margin: 0 auto; padding: 2rem 1.5rem 3rem;
  display: flex; justify-content: space-between; align-items: center;
  border-top: 1px solid var(--line); color: var(--ink-3); font-size: .875rem;
}
.foot .mark { font-size: 1.5rem; color: var(--ink); }
.foot-meta { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: .5rem 1.5rem; }
.origin-foot { display: inline-flex; align-items: center; gap: .5rem; }
.foot-meta a { color: inherit; text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 3px; }
@media (hover: hover) { .foot-meta a:hover { color: var(--ink); text-decoration-color: currentColor; } }
.foot a.mark { text-decoration: none; }

/* ---------- legal pages ---------- */

.legal { max-width: 42rem; margin: 0 auto; padding: 3rem 1.5rem 5rem; color: var(--ink-2); line-height: 1.65; }
.legal h1 { font: 400 clamp(2.75rem, 7vw, 4rem)/1 var(--serif); letter-spacing: -.02em; color: var(--ink); margin: 0; }
.legal h2 { font: 400 1.75rem/1.2 var(--serif); color: var(--ink); margin: 2.75rem 0 .75rem; }
.legal p, .legal ul { margin: 0 0 1rem; }
.legal ul { padding-left: 1.25rem; }
.legal li + li { margin-top: .35rem; }
.legal b { color: var(--ink); font-weight: 600; }
.legal a { color: var(--ink); text-underline-offset: 3px; text-decoration-color: color-mix(in srgb, var(--gold) 70%, transparent); }
.legal-updated { margin-top: .75rem !important; font-size: .875rem; color: var(--ink-3); }
/* The one statement a reader should catch at a glance. */
.legal-key { padding: .9rem 1.1rem; border-left: 3px solid var(--gold); border-radius: 0 .75rem .75rem 0; background: color-mix(in srgb, var(--gold) 9%, var(--surface)); }
.legal-key strong { color: var(--ink); font-weight: 600; }
/* Art. 21(4) GDPR: the right to object must be presented clearly and separately. */
.legal-notice { margin: 1.5rem 0 0; padding: 1.1rem 1.25rem; border: 1px solid var(--line); border-radius: 1rem; background: var(--surface); }
.legal-notice p { margin: 0; }
.legal-notice strong { color: var(--ink); }

/* ---------- 404 ---------- */

.notfound {
  min-height: calc(100dvh - 12rem); max-width: 40rem; margin: 0 auto; padding: 3rem 1.5rem;
  display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
  color: var(--ink-2);
}
.notfound-code { margin: 0 0 1rem; font-size: .8125rem; font-weight: 500; letter-spacing: .12em; color: var(--ink-3); }
.notfound h1 { margin: 0 0 1rem; font: 400 clamp(2.75rem, 8vw, 4.5rem)/1 var(--serif); letter-spacing: -.02em; color: var(--ink); }
.notfound h1 em { color: var(--gold); }
.notfound p { margin: 0; }
.notfound-home {
  display: inline-flex; align-items: center; gap: .5rem; margin-top: 2rem; min-height: 48px; padding: 0 1.35rem;
  border-radius: var(--radius); background: var(--ink); color: #fafaf9; text-decoration: none; font-weight: 500;
}
@media (hover: hover) { .notfound-home:hover { background: #292524; } }

/* ---------- responsive ---------- */

@media (max-width: 960px) {
  .hero { grid-template-columns: 1fr; }
  .stories { justify-self: center; transform: none; }
  .grid { grid-template-columns: repeat(2, 1fr); }
  .grid li:nth-child(3) { padding-left: 0; border-left: 0; }
  .grid li { padding-bottom: 2rem; }
  .grid li:nth-child(n+3) { border-top: 1px solid var(--line); }
  .trust { grid-template-columns: 1fr; }
}

/* Tablet portrait: single column, so centre the hero copy over the centred story card. */
@media (min-width: 641px) and (max-width: 960px) {
  .hero-copy { display: flex; flex-direction: column; align-items: center; text-align: center; }
  .hero .waitlist { width: 100%; }
  .hero .status, .hero .origin { padding-left: 0; }
  .hero .origin { justify-content: center; }
  .hero .waitlist.done .status { justify-content: center; }
}

/* Two columns but little height (landscape tablets, 13–14" laptops): the story card is taller
   than the viewport and drags the vertically centred copy down. Scale it and trim padding. */
@media (min-width: 961px) and (max-height: 860px) {
  .hero { padding-top: 1.5rem; padding-bottom: 3.5rem; }
  .stories { zoom: .8; }
}

@media (max-width: 640px) {
  .nav-inner { padding: .875rem 1.25rem; }
  /* The hero form sits right below on phones; long translations would wrap the nav button. */
  .nav-cta { display: none; }
  .hero, .does, .join { padding-left: 1.25rem; padding-right: 1.25rem; }
  .field { flex-direction: column; border-radius: 1.25rem; }
  .field input { padding: 0 .75rem; }
  .field button { justify-content: center; border-radius: .9rem; }
  .status { padding-left: .25rem; }
  .waitlist.done .status { border-radius: 1.25rem; padding-right: 1rem; }
  .grid { grid-template-columns: 1fr; }
  .grid li, .grid li + li { padding: 1.75rem 0; border-left: 0; }
  .grid li + li { border-top: 1px solid var(--line); }
  .principles ol { grid-template-columns: 1fr; }
  .foot { flex-direction: column; gap: .75rem; }
  .foot-meta { justify-content: center; }
}

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