/* ShowStats.Live — minimal light redesign */
@import url("https://fonts.googleapis.com/css2?family=Instrument+Sans:wght@400;500;600&family=JetBrains+Mono:wght@400;500&display=swap");

:root {
  --bg: #fbfaf8;
  --bg-alt: #f7f5f1;
  --surface: #ffffff;
  --ink: #14110f;
  --body: #56504a;
  --muted: #6e6862;
  --faint: #8a837c;
  --line: #e9e5de;
  --line-strong: #e4e0da;
  --link-line: #d6d1c9;
  --slot: #f4f2ee;
  --slot-stripe: rgba(20, 17, 15, 0.045);
  --header-bg: rgba(251, 250, 248, 0.86);
  --shadow: rgba(20, 17, 15, 0.18);
  --field-dark: #1e1a17;
  --field-dark-line: #322c27;
  --on-dark-muted: #a8a29b;
  --accent: #ff356f;
  --container: 1180px;
  --pad: 28px;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}

/* Dark mode: follows the OS by default, overridden by [data-theme] on <html> */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0e0d0c;
    --bg-alt: #141312;
    --surface: #161514;
    --ink: #f5f2ed;
    --body: #a29b94;
    --muted: #8a837c;
    --faint: #6e6862;
    --line: #26231f;
    --line-strong: #302c27;
    --link-line: #3a352f;
    --slot: #1a1817;
    --slot-stripe: rgba(245, 242, 237, 0.05);
    --header-bg: rgba(14, 13, 12, 0.86);
    --shadow: rgba(0, 0, 0, 0.5);
    --field-dark: #ede9e3;
    --field-dark-line: #d6d1c9;
    --on-dark-muted: #56504a;
  }
}

:root[data-theme="dark"] {
  --bg: #0e0d0c;
  --bg-alt: #141312;
  --surface: #161514;
  --ink: #f5f2ed;
  --body: #a29b94;
  --muted: #8a837c;
  --faint: #6e6862;
  --line: #26231f;
  --line-strong: #302c27;
  --link-line: #3a352f;
  --slot: #1a1817;
  --slot-stripe: rgba(245, 242, 237, 0.05);
  --header-bg: rgba(14, 13, 12, 0.86);
  --shadow: rgba(0, 0, 0, 0.5);
  --field-dark: #ede9e3;
  --field-dark-line: #d6d1c9;
  --on-dark-muted: #56504a;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Instrument Sans", Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }

h1, h2, h3 { font-weight: 500; letter-spacing: -0.03em; margin: 0; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }

a { color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--link-line); }
a:hover { color: var(--accent); border-bottom-color: var(--accent); }

input, textarea, button { font-family: inherit; font-size: 15px; }
input::placeholder, textarea::placeholder { color: var(--faint); }
input:focus-visible, textarea:focus-visible, button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.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;
}

.background-grid { display: none; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 var(--pad); }
.container.narrow { max-width: 820px; }

.eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--faint);
}

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: var(--header-bg);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .container {
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; padding-top: 14px; padding-bottom: 14px;
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand .logo { height: 26px; width: auto; }
.brand span { font-size: 16px; font-weight: 500; letter-spacing: -0.02em; }
.brand span i { font-style: normal; color: var(--accent); }

.language-switcher {
  display: flex; gap: 2px;
  border: 1px solid var(--line-strong);
  border-radius: 999px; padding: 3px; background: var(--surface);
}
.language-switcher button {
  border: 0; cursor: pointer; background: transparent;
  border-radius: 999px; padding: 5px 11px;
  font-size: 12px; font-weight: 500; letter-spacing: 0.04em;
  color: var(--muted);
}
.language-switcher button.active,
.language-switcher button[aria-pressed="true"] { background: var(--ink); color: var(--bg); }

/* ---------- hero ---------- */
.hero .hero-wash { display: none; }
/* Top row: headline on the left, picture on the right. The picture gets the
   wider track — it carries the product, the headline only needs its measure. */
.hero .hero-content {
  padding-top: 88px; padding-bottom: 40px;
  display: grid; grid-template-columns: minmax(320px, 1fr) minmax(360px, 1.25fr);
  gap: 56px; align-items: center;
}
.hero .logo { display: none; }

.badge {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--mono); font-size: 11px;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--muted);
  border: 1px solid var(--line-strong); border-radius: 999px;
  padding: 6px 12px; background: var(--surface);
}
.badge svg { width: 6px; height: 6px; }
.badge::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent);
}
.badge svg { display: none; }

.hero h1 {
  margin-top: 26px;
  font-size: clamp(40px, 5.4vw, 68px);
  line-height: 1.02;
}
.hero h1 span { display: block; }
/* Matched by suffix so every landing variant (hero.*, chat.*) colours alike. */
.hero h1 [data-i18n$=".title.accent"] { color: var(--accent); }
.hero h1 [data-i18n$=".title.line2"] { color: var(--faint); }

/* Bottom row: one full-width band with the pitch and the signup side by side. */
.hero .hero-cta {
  padding-bottom: 72px;
  display: flex; flex-wrap: wrap; align-items: flex-start;
  justify-content: space-between; gap: 24px 56px;
}
.hero .hero-cta .hero-subtitle { margin-top: 0; flex: 1 1 420px; }
.hero .hero-cta-form { flex: 0 1 480px; }
.hero .hero-cta .notify-form.compact { margin-top: 0; }

.hero-subtitle {
  margin-top: 26px; max-width: 52ch;
  font-size: 17px; line-height: 1.6; color: var(--body);
}

.notify-form { display: flex; flex-wrap: wrap; gap: 10px; }
.notify-form.compact { margin-top: 34px; max-width: 480px; }
.notify-form input {
  flex: 1 1 220px; min-width: 0;
  padding: 14px 16px; color: var(--ink); background: var(--surface);
  border: 1px solid var(--line-strong); border-radius: 10px;
}
.notify-form button {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 22px; font-weight: 500;
  color: var(--bg); background: var(--ink);
  border: 1px solid var(--ink); border-radius: 10px;
  cursor: pointer; transition: background 0.15s ease, border-color 0.15s ease;
}
.notify-form button:hover { background: var(--accent); border-color: var(--accent); }
.notify-form button svg { display: none; }

.early-access { margin-top: 16px; font-size: 13px; color: var(--muted); }

/* The copy column is taller than the image; centring keeps the hero balanced
   instead of leaving the picture stranded at the top. */
.hero-image { position: relative; align-self: center; }
/* `height: auto` is what keeps the aspect ratio: without it the img's height
   attribute is taken literally and the picture ends up stretched. */
.hero-image picture, .hero-image img { display: block; width: 100%; height: auto; border-radius: 14px; }
.hero-image .placeholder {
  position: relative; aspect-ratio: 4 / 3;
  border: 1px solid var(--line-strong); border-radius: 14px;
  background-color: var(--slot);
  background-image: repeating-linear-gradient(135deg, var(--slot-stripe) 0 8px, transparent 8px 16px);
  display: flex; align-items: flex-end; padding: 18px;
}
.hero-image .placeholder span {
  font-family: var(--mono); font-size: 11px;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--faint);
  background: var(--bg); border: 1px solid var(--line-strong);
  border-radius: 6px; padding: 6px 10px;
}

/* ---------- stats ---------- */
.stats { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--bg-alt); }
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.stats-grid article { padding: 32px 0; display: flex; flex-direction: column; gap: 6px; }
.stats-grid svg { display: none; }
.stats-grid strong { font-size: 28px; font-weight: 500; letter-spacing: -0.03em; }
.stats-grid span { font-size: 14px; color: var(--muted); }

/* ---------- section headings ---------- */
.section-heading { max-width: 700px; }
.section-heading h2 { font-size: clamp(30px, 3.6vw, 44px); line-height: 1.08; }
.section-heading h2 .plain { color: var(--ink); }
.section-heading h2 [data-i18n$=".accent"],
.section-heading h2 .secondary { color: var(--accent); }
.section-heading p { margin-top: 16px; font-size: 17px; line-height: 1.6; color: var(--body); }

/* ---------- features ---------- */
.features { padding-top: 96px; }
.feature-grid {
  margin-top: 56px;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(330px, 1fr));
  column-gap: 56px;
  counter-reset: feature;
}
.feature-card {
  counter-increment: feature;
  padding: 30px 0; border-top: 1px solid var(--line);
  display: grid; grid-template-columns: 44px 1fr; gap: 18px; align-items: start;
}
.feature-card .icon-box { display: block; padding-top: 4px; }
.feature-card .icon-box svg { display: none; }
.feature-card .icon-box::before {
  content: "0" counter(feature);
  font-family: var(--mono); font-size: 12px; color: var(--accent);
}
.feature-card h3 { font-size: 19px; letter-spacing: -0.02em; }
.feature-card p { margin-top: 10px; font-size: 15px; line-height: 1.62; color: var(--body); }

/* ---------- steps ---------- */
.steps { padding-top: 96px; }
.step-grid {
  margin-top: 48px;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 28px;
}
.step-card { border: 1px solid var(--line); border-radius: 14px; background: var(--surface); padding: 26px; }
.step-card strong {
  display: inline-flex; align-items: center; justify-content: center;
  width: 30px; height: 30px; border-radius: 50%;
  border: 1px solid var(--line-strong);
  font-family: var(--mono); font-size: 12px; font-weight: 400;
}
.step-card h3 { margin-top: 18px; font-size: 19px; letter-spacing: -0.02em; }
.step-card p { margin-top: 10px; font-size: 15px; line-height: 1.62; color: var(--body); }

/* ---------- platforms ---------- */
.platforms { padding-top: 96px; }
.platforms .container { border-top: 1px solid var(--line); padding-top: 40px; }
.platform-list {
  list-style: none; margin: 28px 0 0; padding: 0;
  display: flex; flex-wrap: wrap; gap: 10px;
}
.platform-list li {
  font-size: 14px; padding: 9px 15px;
  border: 1px solid var(--line-strong); border-radius: 999px; background: var(--surface);
}
.platform-list li.more { border: 1px dashed var(--accent); color: var(--accent); background: transparent; }
.platform-note { margin-top: 20px; font-size: 15px; line-height: 1.62; color: var(--body); max-width: 62ch; }
/* With no platform list above it, the note needs the spacing the list gave. */
.section-heading + .platform-note { margin-top: 28px; }

/* ---------- email band ---------- */
.email-section { margin-top: 96px; background: var(--ink); color: var(--bg); }
.email-section .container {
  max-width: var(--container);
  padding-top: 88px; padding-bottom: 88px;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 40px; align-items: center;
}
.email-section h2 { font-size: clamp(30px, 3.6vw, 44px); line-height: 1.06; }
.email-section > .container > p { margin-top: 14px; font-size: 17px; line-height: 1.6; color: var(--on-dark-muted); max-width: 40ch; }
.notify-form.large input {
  flex: 1 1 240px; padding: 15px 16px;
  color: var(--bg); background: var(--field-dark); border-color: var(--field-dark-line);
}
.notify-form.large input::placeholder { color: var(--faint); }
.notify-form.large button { padding: 15px 22px; color: var(--ink); background: var(--bg); border-color: var(--bg); }
.notify-form.large button:hover { background: var(--accent); border-color: var(--accent); color: var(--bg); }

/* ---------- suggestions ---------- */
.suggestions { padding-top: 96px; padding-bottom: 96px; }
.suggestions .form-container {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 48px; align-items: start;
}
.suggestions .section-heading h2 { font-size: clamp(28px, 3.2vw, 40px); }
.suggestions .section-heading p { max-width: 38ch; }

.suggestion-card { display: flex; flex-direction: column; gap: 8px; }
.suggestion-card label {
  font-family: var(--mono); font-size: 11px;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted);
}
.suggestion-card label + input, .suggestion-card label:nth-of-type(2) { margin-top: 4px; }
.suggestion-card textarea, .suggestion-card input {
  width: 100%; padding: 14px 16px; line-height: 1.55;
  color: var(--ink); background: var(--surface);
  border: 1px solid var(--line-strong); border-radius: 10px; resize: vertical;
}
.suggestion-card button {
  margin-top: 16px; align-self: flex-start;
  padding: 14px 22px; font-weight: 500;
  color: var(--bg); background: var(--ink);
  border: 1px solid var(--ink); border-radius: 10px; cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}
.suggestion-card button:hover { background: var(--accent); border-color: var(--accent); }

/* ---------- legal pages (privacy) ---------- */
.legal-hero .container { padding-top: 72px; padding-bottom: 40px; max-width: 820px; }
.back-link {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--mono); font-size: 11px;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--muted); border-bottom: 0;
}
.back-link:hover { color: var(--accent); }
.back-link svg { width: 12px; height: 12px; }

.legal-hero h1 {
  margin-top: 26px;
  font-size: clamp(34px, 4.4vw, 52px); line-height: 1.05; letter-spacing: -0.03em;
}
.legal-hero .legal-lede { margin-top: 16px; font-size: 17px; line-height: 1.6; color: var(--body); }
.legal-hero .badge { margin-top: 26px; }
.legal-hero .badge::before { background: var(--muted); }

.legal-toc { margin-top: 34px; padding-top: 22px; border-top: 1px solid var(--line); }
.legal-toc h2 {
  font-family: var(--mono); font-size: 11px;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--faint);
}
.legal-toc ol {
  margin-top: 14px; padding: 0; list-style: none;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 6px 24px; counter-reset: toc;
}
.legal-toc li { counter-increment: toc; }
.legal-toc a {
  display: inline-flex; gap: 10px; align-items: baseline;
  font-size: 14px; color: var(--body); border-bottom: 0;
}
.legal-toc a::before {
  content: counter(toc, decimal-leading-zero);
  font-family: var(--mono); font-size: 11px; color: var(--faint);
}
.legal-toc a:hover { color: var(--accent); }
.legal-toc a:hover::before { color: var(--accent); }

.legal-body .container { max-width: 820px; padding-bottom: 96px; }
.legal-section {
  counter-increment: legal;
  padding: 34px 0; border-top: 1px solid var(--line);
  display: grid; grid-template-columns: 44px 1fr; gap: 18px; align-items: start;
  scroll-margin-top: 90px;
}
.legal-body { counter-reset: legal; }
.legal-section > .legal-index {
  padding-top: 6px;
  font-family: var(--mono); font-size: 12px; color: var(--accent);
}
.legal-section > .legal-index::before { content: counter(legal, decimal-leading-zero); }
.legal-section h2 { font-size: 22px; letter-spacing: -0.02em; }
.legal-section h3 {
  margin-top: 22px; font-size: 15px; font-weight: 500; letter-spacing: -0.01em;
}
.legal-section p { margin-top: 10px; font-size: 15px; line-height: 1.7; color: var(--body); }
.legal-section ul { margin: 12px 0 0; padding-left: 18px; }
.legal-section li {
  margin-top: 8px; font-size: 15px; line-height: 1.7; color: var(--body);
  padding-left: 4px;
}
.legal-section li::marker { color: var(--faint); }
.legal-section strong { color: var(--ink); font-weight: 500; }
.legal-section code {
  font-family: var(--mono); font-size: 13px;
  background: var(--slot); border: 1px solid var(--line);
  border-radius: 5px; padding: 1px 5px;
}
.legal-note {
  margin-top: 16px; padding: 16px 18px;
  background: var(--surface); border: 1px solid var(--line-strong); border-radius: 12px;
}
.legal-note p { margin-top: 0; }
.legal-contact {
  display: inline-flex; align-items: center; gap: 10px;
  margin-top: 16px; padding: 12px 18px;
  border: 1px solid var(--line-strong); border-radius: 999px; background: var(--surface);
  font-size: 15px;
}
.legal-contact svg { width: 16px; height: 16px; color: var(--accent); }

@media (max-width: 720px) {
  .legal-section { grid-template-columns: 32px 1fr; gap: 12px; }
  .legal-hero .container { padding-top: 48px; }
}

/* ---------- footer ---------- */
footer { border-top: 1px solid var(--line); }
footer .container {
  padding-top: 34px; padding-bottom: 34px;
  display: flex; flex-wrap: wrap; gap: 14px;
  align-items: center; justify-content: space-between;
}
footer p { font-size: 14px; color: var(--muted); }

/* ---------- toast ---------- */
.toast-region {
  position: fixed; left: 50%; bottom: 28px; z-index: 60;
  transform: translateX(-50%);
  display: flex; flex-direction: column; gap: 8px; align-items: center;
  pointer-events: none;
}
.toast-region > * {
  background: var(--ink); color: var(--bg);
  font-size: 14px; padding: 13px 20px; border-radius: 999px;
  box-shadow: 0 8px 30px var(--shadow);
  max-width: min(92vw, 520px); text-align: center;
  animation: toast-in 0.3s ease both;
}
.toast--success { background: var(--ink); }
.toast--error { background: var(--accent); color: #fff; }
.toast--leaving { animation: toast-out 0.25s ease both; }
@keyframes toast-in { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes toast-out { from { opacity: 1; transform: none; } to { opacity: 0; transform: translateY(10px); } }

/* ---------- form pending state ---------- */
button[aria-busy="true"] { opacity: 0.65; cursor: progress; }
button[disabled] { cursor: not-allowed; }

@media (max-width: 720px) {
  :root { --pad: 20px; }
    .hero .hero-content {
    padding-top: 56px; padding-bottom: 24px; gap: 32px;
    grid-template-columns: 1fr;
  }
  .hero .hero-cta { padding-bottom: 48px; gap: 20px; }
  .features, .steps, .platforms { padding-top: 64px; }
  .email-section { margin-top: 64px; }
  .email-section .container { padding-top: 60px; padding-bottom: 60px; }
  .suggestions { padding-top: 64px; padding-bottom: 64px; }
  .feature-card { grid-template-columns: 36px 1fr; gap: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

/* ---------- theme toggle ---------- */
.header-actions { display: flex; align-items: center; gap: 10px; }
.theme-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; padding: 0;
  border: 1px solid var(--line-strong); border-radius: 999px;
  background: var(--surface); cursor: pointer;
}
.theme-toggle i {
  display: block; width: 14px; height: 14px; border-radius: 50%;
  border: 1.5px solid var(--ink);
  background: linear-gradient(90deg, var(--ink) 0 50%, transparent 50% 100%);
}
