/* ═══════════════════════════════════════════
   app.chanlify.md — holding page styles
   ═══════════════════════════════════════════

   A deliberate SUBSET of site/css/styles.css, not a fork of it and not a link
   to it: app.chanlify.md is a different origin with a different vhost, and
   pulling the 2 500-line site stylesheet across for one page would ship the
   whole design system to render four elements.

   Every token below is copied byte-for-byte from the site so the two surfaces
   cannot drift apart in hue. If the site's palette changes, this file changes
   with it — that is a two-minute job and it is the price of the page loading
   in one round trip with no cross-origin request.

   Same performance discipline as the main site: no images, no third-party
   requests, no inline styles beyond the <noscript> block (which the CSP
   permits under style-src 'unsafe-inline'; inline SCRIPT is not permitted
   anywhere and there is none).
   ═══════════════════════════════════════════ */

/* ─── FONT FACES — identical to the site, same files, same subsetting ─────── */
@font-face {
  font-family: 'Onest';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('/fonts/onest-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2000-206F, U+20A0-20C0, U+2113, U+2122, U+2190-2193, U+2212, U+2215, U+2248, U+2260, U+2264-2265, U+2C60-2C7F, U+A720-A7FF, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Onest';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('/fonts/onest-cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('/fonts/manrope-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2000-206F, U+20A0-20C0, U+2113, U+2122, U+2190-2193, U+2212, U+2215, U+2248, U+2260, U+2264-2265, U+2C60-2C7F, U+A720-A7FF, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('/fonts/manrope-cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

/* ─── TOKENS — copied from site/css/styles.css ─── */
:root {
  --white: #ffffff;
  --bg: #f8fafc;
  --text: #0f172a;
  --text-2: #334155;
  --muted: #64748b;
  --border: #e2e8f0;
  --border-2: #cbd5e1;
  --accent: #0284c7;
  --accent-light: #e0f2fe;
  --accent-dark: #0369a1; /* sky-700 — the AA-safe one for text and fills */
  --green: #10b981;
  --surface: #f1f5f9;
  --radius: 12px;
  --radius-lg: 20px;
  --shadow: 0 1px 3px rgba(0,0,0,0.06), 0 4px 16px rgba(0,0,0,0.04);
  --font-heading: 'Onest', system-ui, sans-serif;
  --font-body: 'Manrope', system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; -webkit-tap-highlight-color: transparent; }
body {
  background: var(--white);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
:focus-visible { outline: 2px solid var(--accent-dark); outline-offset: 2px; }

.skip-link {
  position: absolute; top: -100%; left: 1rem;
  background: var(--text); color: var(--white);
  padding: .5rem 1rem; border-radius: 8px; z-index: 9999; font-size: .875rem;
}
.skip-link:focus { top: 1rem; }

/* ─── HEADER — same chrome as the site nav ─── */
.nav {
  height: 64px;
  display: flex;
  align-items: center;
  padding: 0 24px;
  border-bottom: 1px solid rgba(226,232,240,0.6);
  background: rgba(255,255,255,0.88);
}
.nav-inner {
  max-width: 1160px; width: 100%; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.logo { display: flex; align-items: center; gap: 10px; padding: 6px 0; margin: -6px 0; }
.logo-mark {
  width: 32px; height: 32px; background: var(--accent);
  border-radius: 8px; display: flex; align-items: center; justify-content: center;
  flex: none;
}
.logo-mark svg { width: 18px; height: 18px; display: block; }
.logo-name {
  font-family: var(--font-heading); font-size: 20px; font-weight: 700;
  color: var(--text); letter-spacing: -0.5px;
}

/* ─── LANGUAGE SWITCHER — same component, light-surface palette ─── */
.lang-switcher {
  --seg-bg: var(--white);
  --seg-border: var(--border);
  --seg-ink: var(--muted);
  --seg-ink-hover: var(--text);
  --seg-hover-bg: var(--surface);
  --seg-fill: var(--accent-dark);
  --seg-fill-ink: var(--white);
  --seg-w: 40px;
  --seg-h: 32px;
  --seg-r: 7px;
  display: inline-flex; gap: 2px; padding: 3px;
  background: var(--seg-bg); border: 1px solid var(--seg-border);
  border-radius: 10px;
}
.lang-switcher .lang-opt {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: var(--seg-w); height: var(--seg-h); min-height: var(--seg-h);
  padding: 0 8px; border-radius: var(--seg-r);
  font-size: 13px; font-weight: 600; line-height: 1; letter-spacing: 0.06em;
  color: var(--seg-ink); transition: background .18s, color .18s;
}
.lang-switcher a.lang-opt:hover { background: var(--seg-hover-bg); color: var(--seg-ink-hover); }
.lang-switcher .lang-opt.is-current {
  background: var(--seg-fill); color: var(--seg-fill-ink);
  box-shadow: 0 1px 2px rgba(2,6,23,0.18); cursor: default;
}

/* ─── MAIN ─── */
.wrap { flex: 1; width: 100%; max-width: 640px; margin: 0 auto; padding: 56px 24px 72px; }

.eyebrow {
  display: inline-block;
  font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  color: var(--accent-dark); background: var(--accent-light);
  padding: 5px 11px; border-radius: 999px; margin-bottom: 18px;
}
h1 {
  font-family: var(--font-heading);
  font-size: clamp(1.75rem, 5vw, 2.375rem);
  font-weight: 700; line-height: 1.2; letter-spacing: -0.02em;
  margin-bottom: 14px;
}
.lede { font-size: 1.0625rem; color: var(--text-2); }

.reasons { list-style: none; margin: 26px 0 0; display: grid; gap: 12px; }
.reasons li {
  position: relative; padding-left: 26px; color: var(--text-2); font-size: .9375rem;
}
.reasons li::before {
  content: ""; position: absolute; left: 6px; top: .62em;
  width: 7px; height: 7px; border-radius: 50%; background: var(--border-2);
}
.no-date {
  margin-top: 22px; padding: 14px 16px;
  background: var(--surface); border-radius: var(--radius);
  font-size: .9375rem; color: var(--text-2);
}

/* ─── WAITLIST ─── */
.card {
  margin-top: 40px; padding: 26px;
  border: 1px solid var(--border); border-radius: var(--radius-lg);
  background: var(--white); box-shadow: var(--shadow);
}
.card h2 {
  font-family: var(--font-heading); font-size: 1.25rem; font-weight: 700;
  letter-spacing: -0.01em; margin-bottom: 8px;
}
.card p { font-size: .9375rem; color: var(--text-2); }
.wl-row { display: flex; gap: 10px; margin-top: 18px; flex-wrap: wrap; }
.wl-input {
  flex: 1 1 220px; min-width: 0;
  padding: 12px 14px; font-size: 15px;
  border: 1px solid var(--border-2); border-radius: 11px;
  background: var(--white); color: var(--text);
  transition: border-color .18s, box-shadow .18s;
}
.wl-input::placeholder { color: #94a3b8; }
.wl-input:focus { outline: none; border-color: var(--accent-dark); box-shadow: 0 0 0 3px rgba(3,105,161,.15); }
.wl-btn {
  flex: 0 0 auto;
  padding: 12px 22px; min-height: 48px;
  background: var(--accent-dark); color: #fff;
  font-size: 15px; font-weight: 600;
  border: none; border-radius: 11px; cursor: pointer;
  transition: background .2s, transform .15s;
}
.wl-btn:hover:not(:disabled) { background: #075985; transform: translateY(-1px); }
.wl-btn:disabled { opacity: .6; cursor: default; transform: none; }

/* The honeypot. Not `display:none`: a bot that reads CSS skips those. Off-canvas,
   zero-size, removed from the tab order and hidden from the a11y tree, so no
   human — sighted, keyboard-only or using a screen reader — can reach it. */
.hp {
  position: absolute !important; left: -9999px !important;
  width: 1px !important; height: 1px !important;
  overflow: hidden !important; opacity: 0 !important;
}

/* Visually hidden but ANNOUNCED. Distinct from .hp on purpose: .hp exists to
   be unreachable, .sr-only exists to be reachable by assistive tech only. The
   e-mail field has a real <label>; the placeholder is not one. */
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0;
}

.wl-note { margin-top: 12px; font-size: .8125rem; color: var(--muted); }
.wl-msg { margin-top: 14px; font-size: .9375rem; border-radius: 10px; padding: 12px 14px; }
.wl-msg[hidden] { display: none; }
.wl-msg.is-ok { background: #ecfdf5; color: #065f46; }
.wl-msg.is-err { background: #fef2f2; color: #991b1b; }

/* ─── ELSEWHERE TO GO ─── */
.elsewhere { margin-top: 34px; display: grid; gap: 14px; }
.elsewhere p { font-size: .9375rem; color: var(--text-2); }
.elsewhere a { color: var(--accent-dark); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.elsewhere a:hover { color: #075985; }

/* ─── FOOTER ─── */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 22px 24px; background: var(--bg);
  font-size: .8125rem; color: var(--muted);
}
.site-footer .inner {
  max-width: 640px; margin: 0 auto;
  display: flex; flex-wrap: wrap; gap: 8px 20px; align-items: center; justify-content: space-between;
}
.site-footer a { color: var(--text-2); text-decoration: underline; text-underline-offset: 3px; }
.site-footer a:hover { color: var(--text); }

@media (max-width: 520px) {
  .nav { padding: 0 16px; }
  .wrap { padding: 40px 16px 56px; }
  .card { padding: 20px; }
  .wl-btn { flex: 1 1 100%; }
}

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