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

:root {
  --bg: #f5f6fa;
  --fg: #0f1423;
  --muted: #5a6480;
  --accent: #1a56f0;
  --accent-hover: #1240c0;
  --menu-bg: rgba(26,86,240,0.1);
  --menu-bg-hover: rgba(26,86,240,0.16);
  --menu-border: rgba(26,86,240,0.18);
  --border: rgba(0,0,0,0.08);
  --card-bg: rgba(255,255,255,0.7);
  --radius: 8px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

html {
  background: var(--bg);
  scroll-behavior: smooth;
}

html.home-page {
  background:
    radial-gradient(circle at 10% 8%, rgba(147,197,253,0.42), transparent 34rem),
    radial-gradient(circle at 88% 16%, rgba(196,181,253,0.34), transparent 32rem),
    radial-gradient(circle at 52% 100%, rgba(187,247,208,0.28), transparent 34rem),
    var(--bg);
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--fg);
  line-height: 1.6;
  font-size: 16px;
  overflow-x: hidden;
}

body.home-page {
  background:
    radial-gradient(circle at 10% 8%, rgba(147,197,253,0.42), transparent 34rem),
    radial-gradient(circle at 88% 16%, rgba(196,181,253,0.34), transparent 32rem),
    radial-gradient(circle at 52% 100%, rgba(187,247,208,0.28), transparent 34rem),
    var(--bg);
}

body > :not(.blobs) {
  position: relative;
  z-index: 1;
}

/* ── Animated blobs ───────────────────────────────────────── */
.blobs {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.55;
  animation-timing-function: ease-in-out;
  animation-iteration-count: infinite;
  animation-direction: alternate;
}

.blob-1 {
  width: 700px;
  height: 700px;
  top: -200px;
  left: -150px;
  background: radial-gradient(circle, #93c5fd, #67e8f9);
  animation: blob1 14s infinite alternate ease-in-out;
}

.blob-2 {
  width: 600px;
  height: 600px;
  top: 100px;
  right: -100px;
  background: radial-gradient(circle, #c4b5fd, #a5b4fc);
  animation: blob2 18s infinite alternate ease-in-out;
}

.blob-3 {
  width: 500px;
  height: 500px;
  bottom: -100px;
  left: 30%;
  background: radial-gradient(circle, #bbf7d0, #ecfccb);
  opacity: 0.32;
  animation: blob3 22s infinite alternate ease-in-out;
}

@keyframes blob1 {
  0%   { transform: translate(0, 0) scale(1); }
  33%  { transform: translate(80px, 60px) scale(1.1); }
  66%  { transform: translate(-40px, 100px) scale(0.95); }
  100% { transform: translate(60px, -40px) scale(1.05); }
}

@keyframes blob2 {
  0%   { transform: translate(0, 0) scale(1); }
  33%  { transform: translate(-70px, 80px) scale(1.05); }
  66%  { transform: translate(50px, -60px) scale(1.1); }
  100% { transform: translate(-30px, 40px) scale(0.9); }
}

@keyframes blob3 {
  0%   { transform: translate(0, 0) scale(1); }
  50%  { transform: translate(-80px, -60px) scale(1.15); }
  100% { transform: translate(60px, 40px) scale(0.95); }
}

/* ── Layout ───────────────────────────────────────────────── */
.container {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ── Header ───────────────────────────────────────────────── */
header {
  position: sticky;
  top: 12px;
  z-index: 1000;
  isolation: isolate;
  padding: 0 16px;
}

header.is-menu-open {
  z-index: 2000;
}

header .container {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 52px;
  background: rgba(255,255,255,0.75);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 0 8px 0 16px;
  box-shadow: 0 2px 16px rgba(0,0,0,0.06);
}

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
  text-decoration: none;
  color: var(--fg);
}

.logo span:first-of-type {
  white-space: nowrap;
}

.logo-icon {
  width: 28px;
  height: 28px;
  border-radius: 14px;
  object-fit: cover;
}

.shield {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 3px 8px;
  border: 1px solid rgba(15,20,35,0.12);
  border-radius: 100px;
  background: rgba(255,255,255,0.72);
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 750;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.shield-beta {
  border-color: rgba(26,86,240,0.18);
  background: rgba(26,86,240,0.1);
  color: var(--accent);
}

.header-links {
  display: flex;
  align-items: center;
  gap: 12px;
}

.header-links > a:not(.btn) {
  color: var(--muted);
  font-size: 0.875rem;
  font-weight: 650;
  text-decoration: none;
}

.header-links > a:not(.btn):hover {
  color: var(--fg);
}

.header-links > a.nav-dashboard {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 7px 14px;
  border: 1px solid rgba(26,86,240,0.2);
  border-radius: 100px;
  background: rgba(26,86,240,0.08);
  color: #174bd6;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.72);
}

.header-links > a.nav-dashboard:hover {
  border-color: rgba(26,86,240,0.32);
  background: rgba(26,86,240,0.14);
  color: #0f3ab2;
}

.menu-toggle {
  display: none;
  position: relative;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--menu-border);
  border-radius: 50%;
  background: var(--menu-bg);
  cursor: pointer;
  transition: background 0.16s, border-color 0.16s;
}

.menu-toggle:hover {
  background: var(--menu-bg-hover);
}

.menu-toggle span {
  display: block;
  position: absolute;
  width: 16px;
  height: 2px;
  border-radius: 2px;
  background: var(--accent);
  transition: transform 0.16s, opacity 0.16s;
}

.menu-toggle span:nth-child(1) { transform: translateY(-5px); }
.menu-toggle span:nth-child(3) { transform: translateY(5px); }

header.is-menu-open .menu-toggle span:nth-child(1) {
  transform: rotate(45deg);
}

header.is-menu-open .menu-toggle span:nth-child(2) {
  opacity: 0;
}

header.is-menu-open .menu-toggle span:nth-child(3) {
  transform: rotate(-45deg);
}

/* ── Buttons ──────────────────────────────────────────────── */
.btn {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  padding: 9px 20px;
  border-radius: 100px;
  font-size: 0.875rem;
  font-weight: 600;
  transition: background 0.15s, box-shadow 0.15s;
  box-shadow: 0 2px 8px rgba(26,86,240,0.3);
}

.btn:hover {
  background: var(--accent-hover);
  box-shadow: 0 4px 16px rgba(26,86,240,0.4);
}

.btn-large {
  padding: 14px 32px;
  font-size: 1rem;
  margin-top: 32px;
}

/* ── Hero ─────────────────────────────────────────────────── */
.hero {
  padding: 100px 0 80px;
  text-align: center;
}

.hero h1 {
  font-size: clamp(2.2rem, 5.5vw, 3.4rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.1;
  max-width: 720px;
  margin: 0 auto;
}

.lead {
  margin-top: 20px;
  font-size: 1.15rem;
  color: var(--muted);
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.7;
}

.insight-grid {
  margin-top: 28px;
  margin-bottom: 8px;
}

.sources {
  max-width: 760px;
}

/* ── Sections ─────────────────────────────────────────────── */
section {
  padding: 64px 0;
}

section h2 {
  font-size: 1.7rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 10px;
}

.subtitle {
  color: var(--muted);
  margin-bottom: 28px;
  max-width: 680px;
}

/* ── Features ─────────────────────────────────────────────── */
.features {
  padding-top: 0;
}

.grid-3,
.grid-4 {
  display: grid;
  gap: 16px;
  margin-top: 28px;
}

.grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid-4 {
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  backdrop-filter: blur(8px);
  box-shadow: 0 1px 8px rgba(0,0,0,0.04);
  transition: box-shadow 0.2s;
}

.card:hover {
  box-shadow: 0 4px 24px rgba(0,0,0,0.08);
}

.icon {
  font-size: 0.86rem;
  line-height: 1.1;
  font-weight: 800;
  color: var(--accent);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 14px;
  white-space: nowrap;
}

.card h3 {
  font-size: 1rem;
  font-weight: 650;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}

.card p {
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.6;
}

/* ── Product preview ─────────────────────────────────────── */
.experience-preview {
  margin-top: 48px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  align-items: start;
  max-width: 860px;
  margin-left: auto;
  margin-right: auto;
}

.alert-example,
.miniapp-example {
  display: grid;
  justify-items: center;
  align-items: start;
  gap: 12px;
  border-radius: 12px;
  padding: 0;
}

.alert-example {
  background: none;
}

.miniapp-example {
  background: none;
  border: 0;
}

.alert-example-label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 220px;
  min-height: 28px;
  padding: 5px 11px;
  border: 1px solid rgba(255,255,255,0.32);
  border-radius: 999px;
  background: rgba(15,20,35,0.46);
  box-shadow: 0 6px 18px rgba(15,20,35,0.16);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #fff;
  align-self: center;
}

.miniapp-example .alert-example-label {
  border-color: rgba(15,20,35,0.12);
  background: rgba(255,255,255,0.74);
  color: #25314c;
  box-shadow: 0 6px 18px rgba(15,20,35,0.08);
}

.alert-card {
  background: #1e2739;
  border-radius: 16px;
  padding: 12px 16px;
  max-width: 420px;
  width: 100%;
  min-height: 598px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.18);
  font-size: 0.875rem;
  line-height: 1.5;
  color: #e0e0e0;
}

.alert-card p {
  margin: 0;
  color: #e0e0e0;
}

.alert-card b {
  color: #fff;
}

.alert-card br {
  display: block;
  margin: 6px 0;
  content: "";
}

.alert-link {
  color: #6ab3f3;
  text-decoration: none;
}

.alert-link:hover {
  text-decoration: underline;
}

.miniapp-shell {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 420px;
  min-height: 0;
  padding: 18px 16px;
  border: 1px solid rgba(15,20,35,0.08);
  border-radius: 16px;
  background: linear-gradient(140deg, rgba(15,20,35,0.08), rgba(26,86,240,0.12));
}

.miniapp-frame {
  width: 100%;
  max-width: 360px;
  height: 560px;
  overflow: hidden;
  border: 1px solid rgba(15,20,35,0.12);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 16px 34px rgba(15,20,35,0.18);
}

.miniapp-screen {
  height: 100%;
  padding: 17px 10px 14px;
  color: #101828;
  font-size: 13px;
  line-height: 1.25;
  background: #fff;
}

.miniapp-screen-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: start;
  padding-left: 14px;
}

.miniapp-kicker {
  margin: 0 0 2px;
  color: #667085;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.12em;
  line-height: 1;
  text-transform: uppercase;
}

.miniapp-screen h3 {
  margin: 0;
  color: #101828;
  font-size: 15px;
  line-height: 1.05;
}

.miniapp-screen-header p:last-child {
  margin: 2px 0 0;
  color: #667085;
  font-size: 10.5px;
  font-weight: 700;
}

.miniapp-pager {
  display: grid;
  grid-template-columns: 26px max-content 26px;
  gap: 8px;
  align-items: center;
  color: #667085;
  font-size: 10px;
  font-weight: 800;
  white-space: nowrap;
}

.miniapp-pager span {
  display: inline-grid;
  width: 26px;
  height: 26px;
  place-items: center;
  border: 1px solid #eaecf0;
  border-radius: 8px;
  background: #fff;
  color: #101828;
  box-shadow: 0 1px 2px rgba(16,24,40,0.04);
  font-size: 17px;
  line-height: 1;
}

.miniapp-job-list {
  display: grid;
  gap: 8px;
  margin-top: 14px;
  padding-left: 14px;
  padding-right: 10px;
}

.miniapp-job-card {
  display: grid;
  gap: 7px;
  min-height: 73px;
  padding: 10px 9px 9px;
  border: 1px solid #d9dee7;
  border-radius: 7px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(16,24,40,0.05);
}

.miniapp-job-card h4,
.miniapp-job-card p {
  overflow: hidden;
  margin: 0;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.miniapp-job-card h4 {
  color: #101828;
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1.2;
}

.miniapp-job-card p {
  color: #667085;
  font-size: 10.5px;
  font-weight: 600;
}

.miniapp-match-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #667085;
  font-size: 10px;
  font-weight: 800;
}

.miniapp-match-row strong {
  color: #667085;
}

.miniapp-score {
  height: 5px;
  overflow: hidden;
  border-radius: 999px;
  background: #e9edf2;
}

.miniapp-score span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: #12a538;
}

/* ── Companies ────────────────────────────────────────────── */
.companies {
  padding: 44px 0;
}

.coverage-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 28px;
}

.eyebrow {
  margin-bottom: 10px;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  line-height: 1.1;
  text-transform: uppercase;
}

.coverage-panel .subtitle {
  margin-bottom: 0;
}

.company-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  margin-top: 24px;
}

.company-grid li {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 6px 16px;
  font-size: 0.85rem;
  font-weight: 500;
  backdrop-filter: blur(8px);
}

.note {
  margin-top: 0;
  font-size: 0.875rem;
  color: var(--muted);
  white-space: nowrap;
}

.note a {
  color: var(--accent);
  text-decoration: none;
}

.note a:hover { text-decoration: underline; }

.log {
  list-style: none;
  margin-top: 32px;
}

.log li {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.95rem;
}

.log li:first-child { border-top: 1px solid var(--border); }

.date {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 500;
  padding-top: 2px;
}

/* ── Sources page ─────────────────────────────────────────── */
.sources-section {
  border-top: 1px solid var(--border);
  padding: 48px 0;
}

.sources-section h2 {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}

.sources-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 24px;
  font-size: 0.875rem;
}

.sources-table th {
  text-align: left;
  padding: 10px 14px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  border-bottom: 2px solid var(--border);
}

.sources-table td {
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}

.sources-table tbody tr:hover td {
  background: rgba(0,0,0,0.02);
}

.td-company {
  font-weight: 600;
}

.company-cell {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.company-cell span {
  min-width: 0;
}

.company-logo {
  width: 24px;
  height: 24px;
  object-fit: contain;
  border-radius: 4px;
  flex-shrink: 0;
}

.sources-table code {
  font-size: 0.8rem;
  background: rgba(0,0,0,0.05);
  padding: 2px 6px;
  border-radius: 4px;
}

.row-disabled td {
  opacity: 0.45;
}

.badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 100px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.badge-location {
  background: rgba(26,86,240,0.1);
  color: var(--accent);
}

.badge-global {
  background: rgba(0,0,0,0.05);
  color: var(--muted);
}

.badge-note {
  background: rgba(0,0,0,0.06);
  color: var(--muted);
  margin-right: 4px;
}

@media (max-width: 640px) {
  .sources-table th:nth-child(2),
  .sources-table td:nth-child(2) { display: none; }
}

/* ── Footer ───────────────────────────────────────────────── */
footer {
  border-top: 1px solid var(--border);
  padding: 24px 0;
  margin-top: 24px;
}

footer .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

footer span {
  font-weight: 700;
  font-size: 0.95rem;
}

.footer-brand {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.footer-version {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 650;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.footer-versions {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}

.footer-versions .footer-version {
  min-height: 22px;
  padding: 3px 8px;
  border: 1px solid rgba(15,20,35,0.1);
  border-radius: 999px;
  background: rgba(255,255,255,0.56);
}

footer a {
  color: var(--accent);
  text-decoration: none;
  font-size: 0.875rem;
}

footer a:hover { text-decoration: underline; }

.footer-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 16px;
}

.legal-page .blobs {
  display: none;
}

.info-main {
  padding-top: 48px;
}

.info-hero {
  padding: 64px 0 40px;
  text-align: left;
}

.info-hero .container {
  max-width: 900px;
}

.eyebrow {
  margin-bottom: 12px;
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.info-hero h1 {
  max-width: 760px;
  font-size: clamp(2.1rem, 5vw, 3.2rem);
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.info-hero .lead {
  margin-left: 0;
  max-width: 680px;
}

.pipeline-section,
.ingestion-section,
.data-section {
  border-top: 1px solid var(--border);
}

.data-hero .lead {
  max-width: 720px;
}

.data-summary-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.data-point {
  padding: 28px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(255,255,255,0.82);
  box-shadow: 0 1px 12px rgba(0,0,0,0.05);
}

.data-point span {
  display: block;
  margin-bottom: 14px;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.data-point h2 {
  margin-bottom: 12px;
  font-size: 1.35rem;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.data-point p,
.data-panel p {
  color: var(--muted);
}

.data-explain-grid {
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.75fr);
}

.data-panel {
  padding: 28px;
  border: 1px solid rgba(26,86,240,0.22);
  border-radius: var(--radius);
  background: rgba(255,255,255,0.86);
  box-shadow: 0 10px 34px rgba(26,86,240,0.08);
}

.data-panel h2 {
  margin-bottom: 12px;
}

.data-panel p + p {
  margin-top: 14px;
}

.data-panel a {
  display: inline-block;
  margin-top: 22px;
  color: var(--accent);
  font-weight: 700;
  text-decoration: none;
}

.data-panel a:hover {
  text-decoration: underline;
}

.explain-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(320px, 1.15fr);
  gap: 36px;
  align-items: start;
}

.flow-notes {
  display: grid;
  gap: 12px;
  margin-top: 28px;
}

.flow-notes > div {
  padding: 16px 0;
  border-top: 1px solid var(--border);
}

.flow-notes strong {
  display: block;
  margin-bottom: 4px;
}

.flow-notes p,
.process-card li,
.ingestion-steps p {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.6;
}

.sketch-frame {
  margin: 0;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(255,255,255,0.82);
  box-shadow: 0 1px 12px rgba(0,0,0,0.05);
}

.sketch-frame img {
  display: block;
  width: 100%;
  max-height: 820px;
  object-fit: contain;
}

.sketch-frame figcaption {
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.82rem;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.process-card ul {
  margin-top: 16px;
  padding-left: 18px;
}

.process-card li + li {
  margin-top: 8px;
}

.pricing-section {
  padding-top: 36px;
  border-top: 1px solid var(--border);
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  max-width: 880px;
  margin: 0 auto;
}

.pricing-card {
  display: flex;
  flex-direction: column;
  min-height: 520px;
  padding: 30px;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: rgba(255,255,255,0.82);
  box-shadow: 0 2px 18px rgba(0,0,0,0.05);
}

.current-plan {
  border-color: rgba(26,86,240,0.28);
  box-shadow: 0 10px 34px rgba(26,86,240,0.1);
}

.plan-status {
  margin-bottom: 18px;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.future-plan .plan-status {
  color: var(--muted);
}

.pricing-card h2 {
  margin-bottom: 24px;
  font-size: 2rem;
  line-height: 1;
  letter-spacing: -0.04em;
}

.price-row {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 24px;
  min-height: 58px;
}

.price {
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: -0.05em;
}

.price-note {
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 650;
}

.plan-summary {
  min-height: 112px;
  color: var(--fg);
  font-size: 1rem;
  line-height: 1.55;
}

.plan-button {
  display: block;
  width: 100%;
  margin: 0 0 30px;
  padding: 14px 18px;
  border: 0;
  border-radius: 100px;
  background: var(--fg);
  color: #fff;
  font: inherit;
  font-size: 0.95rem;
  font-weight: 750;
  text-align: center;
  text-decoration: none;
}

.muted-button {
  background: rgba(15,20,35,0.16);
  color: rgba(15,20,35,0.52);
  cursor: not-allowed;
}

.pricing-card ul {
  margin-top: 0;
  padding-left: 18px;
}

.pricing-card li {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.55;
}

.pricing-card li + li {
  margin-top: 10px;
}

.ingestion-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-top: 28px;
}

.ingestion-steps > div {
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.ingestion-steps span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  margin-bottom: 12px;
  border-radius: 50%;
  background: var(--fg);
  color: #fff;
  font-size: 0.82rem;
  font-weight: 800;
}

.ingestion-steps h3 {
  margin-bottom: 6px;
  font-size: 1rem;
}

.legal-main {
  padding: 64px 0;
}

.legal-main .container {
  max-width: 820px;
}

.legal-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 24px;
  font-size: 0.92rem;
}

.legal-nav a,
.legal-main a {
  color: var(--accent);
  text-decoration: none;
}

.legal-nav a:hover,
.legal-main a:hover {
  text-decoration: underline;
}

.lang-radio {
  position: absolute;
  inline-size: 1px;
  block-size: 1px;
  opacity: 0;
  pointer-events: none;
}

.language-toggle {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
  margin-bottom: 36px;
  border: 1px solid var(--border);
  border-radius: 100px;
  background: rgba(255,255,255,0.72);
  backdrop-filter: blur(12px);
}

.language-toggle label {
  min-width: 118px;
  padding: 7px 14px;
  border-radius: 100px;
  color: var(--muted);
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 650;
  text-align: center;
  transition: background 0.15s, color 0.15s, box-shadow 0.15s;
}

.language-toggle label:hover {
  color: var(--fg);
}

#lang-en:checked ~ .language-toggle label[for="lang-en"],
#lang-de:checked ~ .language-toggle label[for="lang-de"] {
  background: var(--fg);
  color: #fff;
  box-shadow: 0 1px 8px rgba(0,0,0,0.12);
}

.lang-content {
  display: none;
}

#lang-en:checked ~ .legal-language-content .lang-en,
#lang-de:checked ~ .legal-language-content .lang-de {
  display: block;
}

.legal-main h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  line-height: 1.1;
  margin-bottom: 10px;
}

.legal-main .updated {
  color: var(--muted);
  margin-bottom: 40px;
}

.legal-main section {
  padding: 28px 0;
  border-top: 1px solid var(--border);
}

.legal-main section:first-of-type {
  border-top: 0;
}

.legal-main h2 {
  font-size: 1.15rem;
  letter-spacing: 0;
  margin-bottom: 12px;
}

.legal-main p + p {
  margin-top: 14px;
}

.legal-main ul {
  padding-left: 22px;
}

.legal-main li + li {
  margin-top: 8px;
}

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 760px) {
  header { top: 8px; padding: 0 12px; }
  header .container { height: auto; min-height: 52px; gap: 10px; padding: 8px 8px 8px 14px; }
  .logo { flex-wrap: wrap; row-gap: 6px; }
  .logo .shield { display: none; }
  .menu-toggle { display: inline-flex; flex: 0 0 auto; }
  .header-links {
    display: none;
    position: absolute;
    z-index: 10;
    top: calc(100% + 8px);
    right: 0;
    left: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
    padding: 10px;
    border: 1px solid var(--border);
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 16px 42px rgba(0,0,0,0.18);
    pointer-events: auto;
  }
  header.is-menu-open .header-links { display: flex; }
  .header-links > a,
  .header-links > a:not(.btn) {
    display: block;
    width: 100%;
    padding: 10px 12px;
    border-radius: 12px;
    text-align: left;
  }
  .header-links > a:not(.btn):hover {
    background: rgba(15,20,35,0.06);
  }
  .header-links > .btn {
    text-align: center;
    box-shadow: none;
  }
  .hero { padding: 72px 0 56px; }
  .grid-3,
  .grid-4 { grid-template-columns: 1fr 1fr; }
  .experience-preview { grid-template-columns: 1fr; }
  .alert-card,
  .miniapp-shell { min-height: 0; }
  .insight-grid,
  .coverage-panel { grid-template-columns: 1fr; }
  .coverage-panel { align-items: start; gap: 16px; }
  .note { white-space: normal; }
  .grid-2,
  .data-summary-grid,
  .pricing-grid,
  .explain-grid,
  .ingestion-steps { grid-template-columns: 1fr; }
  .pricing-card { min-height: 0; padding: 24px; }
  .plan-summary { min-height: 0; }
  .price-row { min-height: 0; }
  .info-main { padding-top: 28px; }
  .info-hero { padding-top: 48px; }
  .log li { grid-template-columns: 1fr; gap: 4px; }
  footer .container { align-items: flex-start; gap: 12px; flex-direction: column; }
  .footer-links { justify-content: flex-start; gap: 12px; }
  .language-toggle { display: flex; width: 100%; }
  .language-toggle label { flex: 1; min-width: 0; }
  .blob { filter: blur(60px); opacity: 0.4; }
}

@media (prefers-reduced-motion: reduce) {
  .blob { animation: none; }
}
