/* GhostSpeak website · night forest
   Tokens copied from apps/desktop/src/theme.css (see DESIGN.md).
   Dark only, one accent, no glows, no animated effects. */

@font-face {
  font-family: 'Noto Sans';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url(/assets/fonts/noto-sans-latin-wght-normal.woff2) format('woff2-variations'), url(/assets/fonts/noto-sans-latin-wght-normal.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: 'Exo 2 Wordmark';
  font-style: italic;
  font-display: swap;
  font-weight: 800;
  src: url(/assets/fonts/exo-2-wordmark.woff2) format('woff2');
}

:root {
  --bg-0:#060a08; --bg-1:#0a100d; --bg-2:#0e1512; --bg-3:#131c18; --bg-4:#19241f;
  --line:#1c2722; --line-2:#27362f;
  --text:#e8efea; --text-head:#f4f8f5; --text-2:#a8b7ae; --text-3:#7f9187;
  --accent:#3ddc68; --accent-hi:#74f29e; --accent-lo:#1f9d45;
  --accent-wash:#3ddc6812; --accent-ring:#3ddc6840; --on-accent:#03130a;
  --radius:12px;
  --ui:'Noto Sans',system-ui,sans-serif;
  --display:'Exo 2 Wordmark','Noto Sans',sans-serif;
  --gutter:20px;
  --section-pad:64px;
  color-scheme: dark;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background: var(--bg-0);
  color: var(--text);
  font-family: var(--ui);
  font-size: 1rem;
  line-height: 1.65;
  overflow-wrap: break-word;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3 { color: var(--text-head); margin: 0; }
h2 {
  font-size: clamp(1.75rem, 1.2rem + 2vw, 2.5rem);
  line-height: 1.15;
  letter-spacing: -0.01em;
  font-weight: 700;
}
h3 { font-size: 1.125rem; font-weight: 650; line-height: 1.35; }
p { margin: 0; }
ul { margin: 0; padding: 0; }
a { color: var(--accent); text-underline-offset: 3px; transition: color 140ms ease; }
a:hover { color: var(--accent-hi); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
::selection { background: var(--accent-ring); color: #fff; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0; border: 0;
  overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  left: 12px; top: -100px;
  z-index: 20;
  padding: 10px 16px;
  border-radius: 8px;
  background: var(--accent);
  color: var(--on-accent);
  font-weight: 700;
  text-decoration: none;
}
.skip-link:focus { top: 12px; }
.skip-link:hover { color: var(--on-accent); }

.container {
  width: 100%;
  max-width: calc(1120px + 2 * var(--gutter));
  margin: 0 auto;
  padding-left: max(var(--gutter), env(safe-area-inset-left));
  padding-right: max(var(--gutter), env(safe-area-inset-right));
}

.icon { flex: none; width: 24px; height: 24px; }
.num { font-variant-numeric: tabular-nums; }

/* ---------- wordmark ---------- */
.wm {
  font-family: var(--display);
  font-style: italic;
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1;
  white-space: nowrap;
}
.wm-ghost { color: var(--text-head); }
.wm-speak { color: var(--accent); }

/* ---------- header ---------- */
.site-header {
  position: absolute;
  top: 0; left: 0; right: 0;
  z-index: 10;
  padding-top: env(safe-area-inset-top);
}
.site-header.solid {
  position: static;
  background: var(--bg-0);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 64px;
}
.home-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  text-decoration: none;
}
.home-link img { width: 25px; height: 30px; }
.home-link .wm { font-size: 1.25rem; }
.main-nav { display: none; margin-left: auto; }
.main-nav ul { display: flex; gap: 4px; list-style: none; }
.main-nav a, .lang-switch a, .lang-switch span {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 12px;
  color: var(--text-2);
  font-size: 0.9375rem;
  font-weight: 500;
  text-decoration: none;
}
.main-nav a:hover, .lang-switch a:hover { color: var(--text-head); }
.lang-switch { margin-left: auto; }

.lang-switch ul { display: flex; align-items: center; list-style: none; }
.lang-switch li + li::before { content: "/"; color: var(--text-3); }
.lang-switch a, .lang-switch span { min-width: 44px; justify-content: center; padding: 0 8px; font-weight: 600; letter-spacing: 0.04em; }
.lang-switch span { color: var(--text-head); }

/* ---------- hero ---------- */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: min(100vh, 820px);
  min-height: min(100svh, 820px);
  padding: 104px 0 72px;
  overflow: hidden;
  text-align: center;
  isolation: isolate;
}
.hero-media { position: absolute; inset: 0; z-index: -1; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: center 30%; }
.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 50% 45%, rgb(6 10 8 / .55), transparent 65%),
    linear-gradient(180deg, rgb(6 10 8 / .30) 0%, rgb(6 10 8 / .55) 55%, var(--bg-0) 100%);
}
.hero-inner { max-width: 44rem; margin: 0 auto; }
.hero-ghost { width: 122px; height: 144px; margin: 0 auto 20px; }
.hero h1 { font-size: clamp(3rem, 1.6rem + 6vw, 6rem); line-height: 1; letter-spacing: -0.01em; }
.hero h1 .wm { display: inline-block; padding: 0 0.08em; }
.slogan {
  margin-top: 16px;
  color: var(--text-2);
  font-size: 1.125rem;
  font-weight: 500;
  letter-spacing: 0.02em;
}
.accent-rule { width: 64px; height: 2px; margin: 24px auto; border: 0; background: var(--accent); }
.lead { color: var(--text); font-size: 1.125rem; max-width: 40rem; margin: 0 auto; }
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 32px;
  padding: 6px 14px;
  border: 1px solid var(--accent-lo);
  border-radius: 999px;
  background: var(--accent-wash);
  color: var(--accent);
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.4;
}
.status-badge::before {
  content: "";
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--accent);
}
.badge-note { margin-top: 12px; color: var(--text-2); font-size: 0.9375rem; }
.hero-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  margin-top: 12px;
  font-weight: 600;
  text-decoration: none;
}
.hero-link:hover, .hero-link:focus-visible { text-decoration: underline; }
.hero-link .icon { width: 20px; height: 20px; }

/* ---------- promise strip ---------- */
.promises { background: var(--bg-0); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.promise-list { display: grid; grid-template-columns: 1fr; list-style: none; }
.promise-list li { padding: 28px 0; text-align: center; }
.promise-list li + li { border-top: 1px solid var(--line); }
.promise-list .icon { width: 30px; height: 30px; margin: 0 auto 12px; color: var(--accent); }
.promise-list h3 { font-size: 1.0625rem; font-weight: 700; }
.promise-list p { margin-top: 4px; color: var(--text-2); font-size: 0.9375rem; }

/* ---------- sections ---------- */
.section {
  padding: var(--section-pad) 0;
  border-top: 1px solid var(--line);
  scroll-margin-top: 80px;
}
.promises + .section { border-top: 0; }
.bg-1 { background: var(--bg-1); }
.bg-0 { background: var(--bg-0); }
.section-head { max-width: 68ch; margin-bottom: 40px; }
.section-head p { margin-top: 16px; color: var(--text-2); }

.card-grid { display: grid; grid-template-columns: 1fr; gap: 16px; list-style: none; }
.card {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-2);
}
.card > .icon { margin-bottom: 16px; color: var(--accent); }
.card p { margin-top: 8px; color: var(--text-2); }
.card .standard { margin-top: 4px; color: var(--text-3); font-size: 0.8125rem; font-variant-numeric: tabular-nums; }
.card .standard + p { margin-top: 12px; }

/* ---------- security ---------- */
.card.safety {
  display: flex;
  gap: 16px;
  margin-top: 16px;
  border-left: 2px solid var(--accent);
}
.card.safety > .icon { margin: 2px 0 0; }
.limits {
  margin-top: 16px;
  padding: 24px;
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  background: var(--bg-1);
}
.limits-head { display: flex; align-items: center; gap: 12px; }
.limits-head .icon { color: var(--text-2); }
.limits ul { margin-top: 16px; padding-left: 1.25em; color: var(--text-2); }
.limits li + li { margin-top: 8px; }
.limits li::marker { color: var(--text-3); }

/* ---------- self-hosting ---------- */
.split { display: grid; grid-template-columns: 1fr; gap: 32px; }
.split .section-head { margin-bottom: 0; }
.icon-list { list-style: none; border-top: 1px solid var(--line); }
.icon-list li { display: flex; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.icon-list .icon { margin-top: 2px; color: var(--accent); }

/* ---------- status ---------- */
.status-cols { display: grid; grid-template-columns: 1fr; gap: 32px; }
.status-cols h3 { display: flex; align-items: center; gap: 10px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.status-cols ul { list-style: none; }
.status-cols li { display: flex; gap: 12px; padding: 10px 0; }
.status-cols .icon { width: 20px; height: 20px; margin-top: 3px; }
.done .icon { color: var(--accent); }
.next .icon { color: var(--text-3); }
.next li { color: var(--text-2); }
.note { margin-top: 32px; color: var(--text-3); font-size: 0.875rem; max-width: 68ch; }

/* ---------- faq ---------- */
.faq-list { max-width: 52rem; margin-top: 32px; border-top: 1px solid var(--line); }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 56px;
  padding: 12px 0;
  color: var(--text-head);
  font-size: 1.0625rem;
  font-weight: 600;
  line-height: 1.4;
  list-style: none;
  cursor: pointer;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary .icon { width: 20px; height: 20px; color: var(--text-2); transition: transform 150ms ease; }
.faq-list details[open] summary .icon { transform: rotate(180deg); }
.faq-list summary:hover .icon { color: var(--accent); }
.faq-list details p { padding: 0 0 20px; color: var(--text-2); max-width: 68ch; }

/* ---------- closing band ---------- */
.closing { text-align: center; }
.closing-ghost { width: 54px; height: 64px; margin: 0 auto 20px; }
.closing p { max-width: 40rem; margin: 16px auto 0; color: var(--text-2); }
.closing .contact { color: var(--text); }

/* ---------- footer ---------- */
.site-footer {
  border-top: 1px solid var(--line);
  background: var(--bg-0);
  color: var(--text-3);
  font-size: 0.875rem;
  padding-bottom: env(safe-area-inset-bottom);
}
.footer-inner { display: flex; flex-direction: column; gap: 12px; padding-top: 32px; padding-bottom: 32px; }
.footer-brand { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; }
.footer-brand .wm { font-size: 1.125rem; }
.footer-links ul { display: flex; flex-wrap: wrap; list-style: none; margin-left: -10px; }
.footer-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 10px;
  color: var(--text-2);
  text-decoration: none;
}
.footer-links a:hover { color: var(--text-head); text-decoration: underline; }
.site-footer .lang-switch { margin-left: -8px; }

/* ---------- legal pages ---------- */
.legal { padding: 48px 0 var(--section-pad); }
.legal .container { max-width: calc(44rem + 2 * var(--gutter)); }
.legal h1 { font-size: 2rem; line-height: 1.2; letter-spacing: -0.01em; }
.legal h2 { margin-top: 40px; font-size: 1.25rem; line-height: 1.3; letter-spacing: 0; }
.legal p, .legal ul { margin-top: 12px; color: var(--text-2); }
.legal ul { padding-left: 1.25em; }
.legal li + li { margin-top: 4px; }
.legal .convenience { margin-top: 16px; padding: 12px 16px; border: 1px solid var(--line-2); border-radius: var(--radius); background: var(--bg-1); }
.legal address { margin-top: 12px; color: var(--text-2); font-style: normal; }

/* ---------- 404 ---------- */
.not-found { padding: 72px 0 var(--section-pad); text-align: center; }
.not-found-ghost { width: 81px; height: 96px; margin: 0 auto 28px; }
.not-found h1, .not-found h2 { font-size: 2rem; line-height: 1.2; letter-spacing: -0.01em; }
.not-found p { margin-top: 12px; color: var(--text-2); }
.not-found a { display: inline-flex; align-items: center; min-height: 44px; margin-top: 4px; font-weight: 600; }
.not-found-block + .not-found-block { margin-top: 48px; padding-top: 48px; border-top: 1px solid var(--line); }

/* ---------- breakpoints ---------- */
@media (min-width: 600px) {
  :root { --gutter: 24px; }
  .promise-list { grid-template-columns: 1fr 1fr; }
  .promise-list li { padding: 32px 24px; }
  .promise-list li + li { border-top: 0; }
  .promise-list li:nth-child(even) { border-left: 1px solid var(--line); }
  .promise-list li:nth-child(n+3) { border-top: 1px solid var(--line); }
  .card-grid { grid-template-columns: 1fr 1fr; }
  .status-cols { grid-template-columns: 1fr 1fr; gap: 48px; }
  .slogan { font-size: 1.25rem; }
  .lead { font-size: 1.1875rem; }
  .footer-brand .wm { font-size: 1.125rem; }
}

@media (min-width: 900px) {
  :root { --gutter: 32px; --section-pad: 96px; }
  body { font-size: 1.0625rem; }
  .main-nav { display: block; }
  .main-nav + .lang-switch { margin-left: 0; }
  .promise-list { grid-template-columns: repeat(4, 1fr); }
  .promise-list li:nth-child(n) { border-top: 0; border-left: 1px solid var(--line); }
  .promise-list li:first-child { border-left: 0; }
  .card-grid { grid-template-columns: repeat(3, 1fr); }
  .split { grid-template-columns: 5fr 7fr; gap: 64px; align-items: start; }
  .slogan { font-size: 1.375rem; }
  .lead { font-size: 1.25rem; }
  .footer-inner { flex-direction: row; align-items: center; justify-content: space-between; gap: 24px; }
  .footer-meta { display: flex; flex-direction: column; gap: 2px; }
  .legal { padding-top: 64px; }
}

@media (min-width: 1200px) {
  .hero { padding-top: 120px; }
  .hero-ghost { margin-bottom: 24px; }
}

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