/* MeetEven "coming soon" site. Tokens copied from frontend/src/design/tokens.css
   (keep in sync); layout rules follow frontend/src/design/README.md. */

@font-face { font-family: "Bricolage Grotesque"; src: url("/fonts/BricolageGrotesque-700.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Bricolage Grotesque"; src: url("/fonts/BricolageGrotesque-800.woff2") format("woff2"); font-weight: 800; font-display: swap; }
@font-face { font-family: "Instrument Sans"; src: url("/fonts/InstrumentSans-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Instrument Sans"; src: url("/fonts/InstrumentSans-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Instrument Sans"; src: url("/fonts/InstrumentSans-600.woff2") format("woff2"); font-weight: 600; font-display: swap; }

/* Extra scripts: Latin Extended (Polish etc.) from the same brand fonts; Cyrillic
   (Ukrainian) from Inter, which our brand fonts don't cover. Same family names +
   unicode-range, so the browser only uses these files for those letters. */
@font-face { font-family: "Bricolage Grotesque"; src: url("/fonts/BricolageGrotesque-700-latin-ext.woff2") format("woff2"); font-weight: 700; font-display: swap; 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: "Bricolage Grotesque"; src: url("/fonts/Inter-700-cyrillic.woff2") format("woff2"); font-weight: 700; font-display: swap; unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Bricolage Grotesque"; src: url("/fonts/BricolageGrotesque-800-latin-ext.woff2") format("woff2"); font-weight: 800; font-display: swap; 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: "Bricolage Grotesque"; src: url("/fonts/Inter-800-cyrillic.woff2") format("woff2"); font-weight: 800; font-display: swap; unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Instrument Sans"; src: url("/fonts/InstrumentSans-400-latin-ext.woff2") format("woff2"); font-weight: 400; font-display: swap; 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 Sans"; src: url("/fonts/Inter-400-cyrillic.woff2") format("woff2"); font-weight: 400; font-display: swap; unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Instrument Sans"; src: url("/fonts/InstrumentSans-500-latin-ext.woff2") format("woff2"); font-weight: 500; font-display: swap; 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 Sans"; src: url("/fonts/Inter-500-cyrillic.woff2") format("woff2"); font-weight: 500; font-display: swap; unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Instrument Sans"; src: url("/fonts/InstrumentSans-600-latin-ext.woff2") format("woff2"); font-weight: 600; font-display: swap; 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 Sans"; src: url("/fonts/Inter-600-cyrillic.woff2") format("woff2"); font-weight: 600; font-display: swap; unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }

:root {
  --paper: #f6f3ec;
  --surface-raised: #ffffff;
  --surface-sunken: #ece6da;
  --ink: #161a22;
  --ink-muted: #5a6070;
  --on-ink: #f6f3ec;
  --line: #d8d1c3;
  --line-strong: #857e70;
  --even: #e4502f;
  --even-text: #b8391c;
  --side-a: #0d7472;
  --side-b: #3445a6;
  --sand: #f0dcbc;
  --warn: #9a5b00;
  --ok: #0d7472;
  --shadow-card: 0 1px 2px rgba(22, 26, 34, 0.06), 0 4px 16px rgba(22, 26, 34, 0.06);
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-pill: 999px;
  --font-display: "Bricolage Grotesque", "Instrument Sans", system-ui, sans-serif;
  --font-sans: "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #12151c;
    --surface-raised: #1b1f28;
    --surface-sunken: #0b0d12;
    --ink: #f2efe8;
    --ink-muted: #a4aab7;
    --on-ink: #12151c;
    --line: #2e3440;
    --line-strong: #6b7385;
    --even: #ff6f4f;
    --even-text: #ff8a6e;
    --side-a: #3fc1bb;
    --side-b: #93a0ff;
    --sand: #3b2f20;
    --warn: #f0a53a;
    --ok: #3fc1bb;
    --shadow-card: 0 1px 2px rgba(0, 0, 0, 0.4);
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.5;
}
img { max-width: 100%; height: auto; }
a { color: var(--even-text); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--even-text); outline-offset: 2px; border-radius: 4px; }
.site-header .logo-dark { display: none; }
@media (prefers-color-scheme: dark) {
  .site-header .logo-light { display: none; }
  .site-header .logo-dark { display: block; }
}
figure { margin: 0; }

.skip {
  position: absolute; left: 16px; top: -48px; z-index: 10;
  background: var(--ink); color: var(--on-ink); padding: 8px 12px; border-radius: var(--radius-md);
}
.skip:focus { top: 12px; }
.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; }

.wrap { width: 100%; max-width: 1040px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 720px; }

/* Header */
.site-header { padding: 20px 0; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.site-header img { display: block; width: 150px; height: auto; }
.pill {
  display: inline-flex; align-items: center; gap: 8px;
  border: 1px solid var(--line); background: var(--surface-raised);
  border-radius: var(--radius-pill); padding: 4px 12px;
  font-size: 14px; font-weight: 600; color: var(--ink-muted); white-space: nowrap;
}
.pill i { width: 8px; height: 8px; border-radius: 50%; background: var(--even); }

/* Type */
h1, h2, h3 { margin: 0; color: var(--ink); }
.display-xl { font-family: var(--font-display); font-weight: 800; font-size: clamp(44px, 9vw, 72px); line-height: 1.02; letter-spacing: -0.02em; }
.tagline { font-family: var(--font-display); font-weight: 700; font-size: clamp(24px, 4.5vw, 34px); line-height: 1.15; letter-spacing: -0.01em; color: var(--ink-muted); margin: 12px 0 0; }
.title { font-family: var(--font-display); font-weight: 700; font-size: clamp(26px, 4.5vw, 34px); line-height: 1.15; letter-spacing: -0.01em; }
.heading { font-size: 18px; line-height: 26px; font-weight: 600; }
.lead { font-size: 19px; line-height: 30px; color: var(--ink-muted); margin: 20px 0 0; max-width: 34em; }
.muted { color: var(--ink-muted); }
.small { font-size: 14px; line-height: 20px; }
.eyebrow { font-size: 13px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--even-text); margin: 0 0 10px; }

/* Sections */
section { padding: 56px 0; }
.hero { padding: 40px 0 64px; }
.hero .wrap { display: grid; gap: 40px; align-items: center; }
@media (min-width: 900px) { .hero .wrap { grid-template-columns: 1.1fr 0.9fr; gap: 56px; } }
.band { background: var(--surface-sunken); }
.section-head { max-width: 40em; margin-bottom: 28px; }
.section-head p { margin: 12px 0 0; color: var(--ink-muted); font-size: 18px; line-height: 28px; }

/* Waitlist */
.waitlist { margin-top: 28px; max-width: 30em; }
.waitlist label.field-label { display: block; font-weight: 600; font-size: 15px; margin-bottom: 8px; }
.field { display: flex; flex-wrap: wrap; gap: 10px; }
.field input[type="email"] {
  flex: 1 1 220px; min-width: 0; min-height: 52px;
  font: inherit; font-size: 17px; color: var(--ink);
  background: var(--surface-raised); border: 1px solid var(--line-strong); border-radius: var(--radius-md);
  padding: 12px 16px;
}
.field input[type="email"]::placeholder { color: var(--ink-muted); }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 52px; padding: 12px 22px; border: 0; border-radius: var(--radius-md);
  background: var(--ink); color: var(--on-ink); font: inherit; font-size: 17px; font-weight: 600;
  cursor: pointer; text-decoration: none; transition: transform 150ms ease-out, opacity 150ms ease-out;
}
.btn:hover { transform: translateY(-1px); }
.btn[disabled] { opacity: 0.6; cursor: progress; transform: none; }
.btn-secondary { background: var(--surface-raised); color: var(--ink); border: 1px solid var(--line-strong); }
.consent { margin: 10px 0 0; font-size: 14px; line-height: 20px; color: var(--ink-muted); }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-status { margin: 12px 0 0; font-weight: 600; min-height: 24px; }
.form-status[data-kind="ok"] { color: var(--ok); }
.form-status[data-kind="error"] { color: var(--even-text); }

/* Visual: route line + bars */
.card {
  background: var(--surface-raised); border: 1px solid var(--line); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card); padding: 20px;
}
@media (min-width: 640px) { .card { padding: 24px; } }
.route { position: relative; height: 44px; margin: 4px 6px 0; }
.route .track { position: absolute; left: 0; right: 0; top: 50%; height: 3px; transform: translateY(-50%); background: var(--ink); border-radius: 2px; }
.route .end { position: absolute; top: 50%; width: 14px; height: 14px; border-radius: 50%; transform: translate(-50%, -50%); }
.route .end.a { left: 0; background: var(--side-a); }
.route .end.b { left: 100%; background: var(--side-b); }
.route .mid { position: absolute; left: 50%; top: 50%; width: 2px; height: 16px; background: var(--line-strong); transform: translate(-50%, -50%); }
.route .point { position: absolute; top: 50%; width: 26px; height: 26px; border-radius: 50%; background: var(--even); transform: translate(-50%, -50%); box-shadow: 0 0 0 4px var(--surface-raised); }
.route-labels { display: flex; justify-content: space-between; font-size: 13px; color: var(--ink-muted); margin-top: 2px; }
.bars { display: grid; gap: 10px; margin-top: 18px; }
.bar { display: grid; grid-template-columns: 92px 1fr 52px; align-items: center; gap: 12px; font-size: 15px; }
.bar .who { display: flex; align-items: center; gap: 8px; font-weight: 600; }
.bar .who i { width: 10px; height: 10px; border-radius: 50%; flex: none; }
.bar .track { height: 10px; border-radius: var(--radius-pill); background: var(--surface-sunken); overflow: hidden; }
.bar .fill { display: block; height: 100%; border-radius: var(--radius-pill); }
.bar .h { text-align: right; font-weight: 600; font-variant-numeric: tabular-nums; }
.a-bg { background: var(--side-a); }
.b-bg { background: var(--side-b); }
.card-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.place { margin: 0; font-family: var(--font-display); font-weight: 700; font-size: 28px; line-height: 1.1; }
.place-sub { color: var(--ink-muted); font-size: 14px; margin: 4px 0 0; }
.badge {
  display: inline-flex; align-items: center; gap: 6px; border-radius: var(--radius-pill);
  padding: 3px 10px; font-size: 13px; font-weight: 600; white-space: nowrap;
}
.badge-fair { background: var(--surface-sunken); color: var(--ink); }
.badge-fair i { width: 8px; height: 8px; border-radius: 50%; background: var(--even); }
.badge-warn { border: 1px solid var(--warn); color: var(--warn); margin-top: 10px; }
.badge-plain { background: var(--surface-sunken); color: var(--ink); }
.caption { font-size: 14px; color: var(--ink-muted); margin: 14px 0 0; }

/* Problem */
.problems { display: grid; gap: 16px; }
@media (min-width: 800px) { .problems { grid-template-columns: repeat(3, 1fr); } }
.problems li { list-style: none; }
.problems .card p { margin: 8px 0 0; color: var(--ink-muted); }
.problems, .steps { padding: 0; margin: 0; }

/* Example */
.example { display: grid; gap: 20px; }
@media (min-width: 860px) { .example { grid-template-columns: 1fr 1fr; } }
.example-text p { font-size: 18px; line-height: 28px; margin: 0 0 14px; }

/* Steps */
.steps { display: grid; gap: 14px; counter-reset: step; }
@media (min-width: 800px) { .steps { grid-template-columns: repeat(2, 1fr); gap: 18px; } }
.steps li { list-style: none; display: grid; grid-template-columns: 40px 1fr; gap: 14px; align-items: start; }
.steps li::before {
  counter-increment: step; content: counter(step);
  width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
  background: var(--surface-raised); border: 1px solid var(--line); font-weight: 600;
}
.steps p { margin: 4px 0 0; color: var(--ink-muted); }

/* Numbers */
.numbers { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); margin: 0; }
.numbers div { background: var(--surface-raised); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 18px 20px; }
.numbers dt { color: var(--ink-muted); font-size: 14px; }
.numbers dd { margin: 4px 0 0; font-family: var(--font-display); font-weight: 800; font-size: 34px; line-height: 1.1; font-variant-numeric: tabular-nums; }

/* FAQ */
.faq details { border-bottom: 1px solid var(--line); padding: 16px 0; }
.faq details:first-of-type { border-top: 1px solid var(--line); }
.faq summary { cursor: pointer; font-weight: 600; font-size: 18px; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-weight: 500; color: var(--ink-muted); font-size: 22px; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 10px 0 0; color: var(--ink-muted); max-width: 42em; }

/* Closing */
.closing { text-align: center; }
.closing .title { margin-bottom: 12px; }
.closing p { color: var(--ink-muted); font-size: 18px; margin: 0 0 24px; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 28px 0 40px; font-size: 14px; color: var(--ink-muted); }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; }
.site-footer nav { display: flex; gap: 20px; flex-wrap: wrap; }
.site-footer a { color: var(--ink-muted); }

/* Simple pages */
.page { padding: 24px 0 64px; }
.page h1 { margin-bottom: 16px; }
.page h2 { font-size: 20px; margin: 28px 0 8px; }
.page p, .page li { color: var(--ink); max-width: 42em; }

/* Positions and widths as classes (no inline styles, strict CSP). Bars: % of 10 h. */
.at-65 { left: 65%; }
.at-28 { left: 28%; }
.w-30 { width: 30%; }
.w-34 { width: 34%; }
.w-64 { width: 64%; }
.w-77 { width: 77%; }

/* Header nav */
.header-right { display: flex; align-items: center; gap: 16px; }
.site-header nav a { color: var(--ink); font-weight: 600; font-size: 15px; text-decoration: none; }
.site-header nav a:hover, .site-header nav a[aria-current="page"] { text-decoration: underline; }
@media (max-width: 420px) {
  .site-header img { width: 124px; }
  .header-right { gap: 12px; }
}

/* Why: facts */
.facts { display: grid; gap: 16px; padding: 0; margin: 0; }
@media (min-width: 800px) { .facts { grid-template-columns: repeat(3, 1fr); } }
.facts li { list-style: none; }
.facts p { margin: 0; }
.fact-number { font-family: var(--font-display); font-weight: 800; font-size: 40px; line-height: 1.05; letter-spacing: -0.02em; color: var(--ink); margin-bottom: 8px !important; font-variant-numeric: tabular-nums; }
.fact-source { margin-top: 12px !important; font-size: 13px; line-height: 18px; color: var(--ink-muted); }
.fact-source a { color: var(--ink-muted); }
.mission { margin: 32px 0 12px; font-family: var(--font-display); font-weight: 700; font-size: clamp(22px, 3.6vw, 28px); line-height: 1.25; max-width: 30em; }
.mission .eyebrow { display: block; font-family: var(--font-sans); }
.numbers-title { margin-bottom: 16px; }

/* About */
.about-hero { padding: 24px 0 8px; }
.about-hero .lead { max-width: 36em; }
.story p { font-size: 18px; line-height: 30px; margin: 0 0 16px; max-width: 38em; }
.values { display: grid; gap: 16px; padding: 0; margin: 0; }
@media (min-width: 800px) { .values { grid-template-columns: repeat(3, 1fr); } }
.values li { list-style: none; }
.values p { margin: 8px 0 0; color: var(--ink-muted); }
.next { padding-left: 20px; margin: 0; }
.next li { margin: 8px 0; max-width: 40em; }

/* Language menu (no JS: <details>) */
.lang-menu { position: relative; }
.lang-menu summary {
  list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 4px;
  min-height: 32px; padding: 4px 10px; border: 1px solid var(--line); border-radius: var(--radius-pill);
  background: var(--surface-raised); font-size: 14px; font-weight: 600; color: var(--ink);
}
.lang-menu summary::-webkit-details-marker { display: none; }
.lang-menu summary::after { content: "▾"; font-size: 11px; color: var(--ink-muted); }
.lang-menu ul {
  position: absolute; right: 0; top: calc(100% + 6px); z-index: 20; margin: 0; padding: 6px;
  list-style: none; min-width: 170px; background: var(--surface-raised); border: 1px solid var(--line);
  border-radius: var(--radius-md); box-shadow: 0 8px 32px rgba(22, 26, 34, 0.14);
}
.lang-menu li a {
  display: block; padding: 8px 12px; border-radius: 8px; color: var(--ink); text-decoration: none; font-size: 15px;
}
.lang-menu li a:hover { background: var(--surface-sunken); }
.lang-menu li a[aria-current="true"] { font-weight: 600; background: var(--surface-sunken); }
@media (max-width: 520px) {
  .pill { display: none; }
}

/* Longer translations: let badges wrap and grid items shrink (no sideways scroll). */
.badge-warn { white-space: normal; }
.hero .wrap > *, .example > * { min-width: 0; }
.bar { grid-template-columns: 92px 1fr auto; }

/* Flags in the language menu (simple SVGs, public/flags/). */
.lang-menu img { display: block; border-radius: 3px; box-shadow: 0 0 0 1px var(--line); }
.lang-menu summary img { width: 24px; height: 16px; }
.lang-menu li a { display: flex; align-items: center; gap: 10px; }
.lang-menu li img { width: 20px; height: 14px; flex: none; }
