:root {
  --bg: #f4f5f7;
  --ink: #0c1118;
  --text: #1c2530;
  --muted: #5e6b7a;
  --line: #e4e7ec;
  --card: #fff;
  --accent: #2563eb;
  --accent-2: #1d4ed8;
  --ok: #059669;
  --warn: #d97706;
  --bad: #dc2626;
  --hero: #0b0f14;
  --hero-2: #151b24;
  --max: 1120px;
  --display: "Manrope", ui-sans-serif, system-ui, sans-serif;
  --body: "Source Sans 3", ui-sans-serif, system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: var(--body);
  color: var(--text);
  background: var(--bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { font-family: var(--display); color: var(--ink); letter-spacing: -0.03em; margin: 0 0 0.4em; line-height: 1.15; }
h1 { font-size: clamp(2.15rem, 5vw, 3.6rem); font-weight: 700; }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 700; }
h3 { font-size: 1.05rem; font-weight: 650; }
p { margin: 0 0 1em; }
.wrap { width: min(var(--max), calc(100% - 32px)); margin-inline: auto; }
.muted { color: var(--muted); }
.lede { font-size: 1.12rem; max-width: 38rem; color: var(--muted); }

.site-header {
  position: sticky; top: 0; z-index: 50;
  padding-top: env(safe-area-inset-top, 0px);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 12px 0; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); min-width: 0; }
.brand img { height: 28px; width: auto; max-width: 100%; }
.brand .ae-logo { height: 28px; max-width: 132px; }
.brand-split { width: 1px; height: 18px; background: var(--line); }
.brand em { font-style: normal; font-family: var(--display); font-weight: 700; font-size: 0.95rem; }
.nav { display: none; gap: 22px; font-size: 0.92rem; font-weight: 600; color: var(--muted); }
.nav a:hover { color: var(--ink); }
.nav a[aria-current="page"] { color: var(--ink); }
.header-actions { display: flex; gap: 8px; align-items: center; }
.header-login {
  color: var(--muted);
  font-family: var(--display);
  font-weight: 600;
  font-size: 0.92rem;
  padding: 8px 10px;
}
.header-login:hover { color: var(--ink); }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0.72rem 1.15rem; border-radius: 8px; border: 1px solid transparent;
  font-family: var(--display); font-weight: 650; font-size: 0.92rem; cursor: pointer;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-2); }
.btn-ghost { border-color: var(--line); color: var(--ink); background: #fff; }
.btn-light { background: #fff; color: var(--ink); }
.btn-line { border-color: var(--line); background: #fff; color: var(--ink); }
.menu-toggle {
  display: inline-flex; background: #fff; color: var(--ink);
  border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; font-weight: 650;
}
.nav.open {
  display: flex; flex-direction: column; position: absolute; left: 0; right: 0; top: 52px;
  background: #fff; padding: 16px; border-bottom: 1px solid var(--line);
  z-index: 60;
}
.nav-mobile-only { display: none; }
.nav.open .nav-mobile-only { display: block; }

.hero {
  background:
    radial-gradient(720px 380px at 92% 8%, rgba(37,99,235,.12), transparent 58%),
    #f7f8fa;
  color: var(--text);
  padding: 56px 0 48px;
  overflow: hidden;
}
.hero-grid { display: grid; gap: 36px; align-items: center; }
.kicker {
  display: inline-flex; gap: 8px; align-items: center;
  font-size: 0.78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 12px;
}
.hero h1 { color: var(--ink); }
.hero-cta { display: flex; flex-wrap: wrap; gap: 10px; margin: 26px 0 14px; }
.trust { font-size: 0.95rem; color: var(--muted); margin: 0; }

.device {
  background: #171d27;
  border: 1px solid rgba(15, 23, 42, .12);
  border-radius: 16px;
  box-shadow: 0 24px 60px rgba(12, 17, 24, .18);
  overflow: hidden;
}
.device-top {
  display: flex; justify-content: space-between; align-items: center;
  padding: 12px 14px; border-bottom: 1px solid rgba(255,255,255,.06);
  font-size: 12px; color: #9aa7b5;
}
.dots { display: flex; gap: 6px; }
.dots i { width: 8px; height: 8px; border-radius: 50%; background: #3a4452; display: block; }
.kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: rgba(255,255,255,.06); }
.kpi { background: #171d27; padding: 14px; }
.kpi b { display: block; font-family: var(--display); font-size: 1.25rem; color: #fff; }
.kpi span { font-size: 12px; color: #8b97a8; }
.rows { padding: 8px 10px 12px; }
.row {
  display: grid; grid-template-columns: minmax(0, 1.4fr) auto auto; gap: 8px;
  padding: 9px 8px; border-radius: 8px; font-size: 12px; color: #c5ced8;
  align-items: center;
}
.row > span:first-child {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.row:nth-child(odd) { background: rgba(255,255,255,.03); }
.chip { border-radius: 999px; padding: 2px 8px; font-size: 11px; font-weight: 700; width: fit-content; }
.chip-ok { background: rgba(5,150,105,.18); color: #34d399; }
.chip-warn { background: rgba(217,119,6,.18); color: #fbbf24; }
.chip-bad { background: rgba(220,38,38,.18); color: #f87171; }

.logo-band { background: #fff; border-bottom: 1px solid var(--line); padding: 28px 0; }
.logo-band p { text-align: center; font-size: 0.8rem; letter-spacing: .08em; text-transform: uppercase; font-weight: 700; color: var(--muted); margin: 0 0 16px; }
.logo-grid {
  display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 12px 28px;
}
.logo-grid img { height: 32px; width: auto; max-width: 120px; object-fit: contain; filter: grayscale(1); opacity: .82; }
.logo-grid img:hover { filter: none; opacity: 1; }

.metrics { display: grid; gap: 18px; padding: 36px 0 8px; }
.metric b { display: block; font-family: var(--display); font-size: 1.7rem; color: var(--ink); }
.metric span { color: var(--muted); font-size: 0.92rem; }

.jobs { display: grid; gap: 14px; padding: 24px 0 48px; }
a.job {
  display: block;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 22px;
  text-decoration: none;
  color: inherit;
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}
a.job h3 { margin-bottom: 8px; }
a.job .muted { margin: 0; }
a.job .go {
  display: inline-block;
  margin-top: 14px;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--accent);
}
a.job:hover {
  border-color: #c7d7fe;
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(15, 23, 42, .07);
}
a.job:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.section { padding: 72px 0; }
.section.alt { background: #fff; }
.section.dark {
  background: var(--hero);
  color: #d5dde6;
}
.section.dark h2, .section.dark h3 { color: #fff; }
.section.dark .btn-ghost {
  border-color: rgba(255,255,255,.28);
  color: #fff;
  background: transparent;
}

.tour { display: grid; gap: 16px; }
.tour article {
  background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 20px;
}
.tour .n { font-family: var(--display); font-size: 12px; font-weight: 800; color: var(--accent); }
.extras-title {
  margin: 40px 0 16px;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--muted);
}
.extras { display: grid; gap: 12px; }
.extras article {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px 18px;
}
.extras h3 { margin-bottom: 6px; font-size: 0.98rem; }
.extras .muted { margin: 0; font-size: 0.9rem; }
.extras-groups article { padding: 18px 20px; }
.extras-groups h3 {
  margin-bottom: 10px;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
}
.extras-groups ul {
  margin: 0;
  padding: 0;
  list-style: none;
}
.extras-groups li {
  padding: 6px 0;
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.45;
}
.extras-groups li:first-child { padding-top: 0; }
.extras-groups li strong {
  color: var(--text);
  font-weight: 600;
}

.types { display: grid; gap: 14px; align-items: start; }
.type {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 20px;
  cursor: pointer;
  font: inherit;
  text-align: left;
  width: 100%;
  color: inherit;
  scroll-margin-bottom: 96px;
  transition: border-color .18s ease, box-shadow .18s ease, background .18s ease, transform .18s ease;
}
.type h3 { margin-bottom: 6px; }
.type > .muted { margin: 0; }
.type:hover {
  border-color: #c7d7fe;
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(15, 23, 42, .07);
}
.type.is-on {
  background: linear-gradient(180deg, #f5f8ff 0%, #fff 42%);
  border-color: var(--accent);
  box-shadow: 0 14px 32px rgba(37, 99, 235, .12);
  transform: none;
}
.type:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
.type-sample {
  display: none;
  margin-top: 16px;
  padding: 12px 14px 14px;
  background: #fff;
  border: 1px dashed #d7e0ea;
  border-radius: 12px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.8);
}
.type.is-on .type-sample { display: block; }
.type-sample-label {
  display: block;
  margin-bottom: 8px;
  font-family: var(--display);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--accent);
}
.type-sample p {
  margin: 0;
  font-size: 0.92rem;
  color: var(--ink);
  line-height: 1.5;
  font-weight: 500;
}
.type-choices {
  margin-top: 8px !important;
  color: var(--muted) !important;
  font-size: 0.82rem !important;
  font-weight: 600 !important;
}

.integrity {
  display: grid; gap: 24px; align-items: start;
}
.verdict-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0 0 18px;
  color: #9aa7b5;
  font-size: 0.92rem;
}
.verdict-line .chip { width: auto; }
.section.dark .signals article {
  background: #11161d;
  border-color: rgba(255,255,255,.08);
}
.section.dark .signals h3 { color: #fff; }
.section.dark .signals .muted { color: #9aa7b5; }
.timeline { background: #11161d; border-radius: 14px; padding: 18px; color: #d5dde6; }
.tl { display: grid; grid-template-columns: 72px 1fr auto; gap: 10px; padding: 10px 0; border-bottom: 1px solid rgba(255,255,255,.06); font-size: 13px; }
.tl:last-child { border: 0; }
.tl time { color: #9aa7b5; }
.signals { display: grid; gap: 14px; }
.signals article {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 20px;
}
.signals h3 { margin-bottom: 8px; }
.signals .muted { margin: 0; }
.verdicts { margin-top: 20px; }
.verdicts p {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 0.95rem;
}
.verdicts .chip { margin-top: 2px; flex-shrink: 0; }
.verdicts .chip-ok { background: rgba(5,150,105,.12); color: #047857; }
.verdicts .chip-warn { background: rgba(217,119,6,.14); color: #b45309; }
.verdicts .chip-bad { background: rgba(220,38,38,.12); color: #b91c1c; }

.cases { display: grid; gap: 14px; }
.case {
  background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 20px;
}
.case img { height: 28px; width: auto; margin-bottom: 12px; }
.case strong { display: block; font-size: 1.35rem; font-family: var(--display); margin-bottom: 6px; }

.quotes { display: grid; gap: 14px; }
.quote {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 20px;
  margin: 0;
}
.quote-logo {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  height: 36px;
  margin-bottom: 14px;
}
.quote-logo img {
  height: 36px;
  width: auto;
  max-width: 140px;
  max-height: 36px;
  object-fit: contain;
  object-position: left center;
}
.quote-stat {
  margin: 0 0 10px;
  font-family: var(--display);
  font-size: 0.92rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.quote blockquote {
  margin: 0 0 16px;
  padding: 0;
}
.quote blockquote p {
  margin: 0;
  font-size: 1.02rem;
  color: var(--text);
  line-height: 1.5;
}
.quote blockquote p::before { content: "“"; }
.quote blockquote p::after { content: "”"; }
.quote cite {
  margin-top: auto;
  font-style: normal;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--ink);
  display: block;
}
.quote cite span {
  display: block;
  margin-top: 2px;
  font-weight: 600;
  color: var(--muted);
}

.split { display: grid; gap: 28px; }
.form-card {
  background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 22px;
  box-shadow: 0 16px 40px rgba(12,17,24,.06);
}
.grid-2 { display: grid; gap: 12px; margin-top: 14px; }
label { display: block; font-size: 14px; font-weight: 600; }
input, select, textarea {
  width: 100%; margin-top: 5px; border: 1px solid var(--line); border-radius: 8px;
  padding: 10px 12px; font: inherit; background: #fff;
}
.hp { position: absolute; left: -9999px; }
.form-card .btn { width: 100%; margin-top: 14px; }

details { border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; background: #fff; margin: 8px 0; }
summary { cursor: pointer; font-weight: 700; font-family: var(--display); }

.site-footer { background: #0b0f14; color: #c5ced8; padding: 48px 0 0; }
.footer-grid { display: grid; gap: 24px; padding-bottom: 32px; }
.site-footer a { color: #e8edf4; }
.site-footer ul { list-style: none; margin: 8px 0 0; padding: 0; }
.site-footer li { margin: 6px 0; }
.copy { border-top: 1px solid rgba(255,255,255,.08); text-align: center; font-size: 12px; color: #7b8794; padding: 16px; margin: 0; }

.sticky-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
  display: flex; gap: 8px;
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom, 0px));
  background: #fff; border-top: 1px solid var(--line);
}
.sticky-cta .btn { flex: 1; min-height: 44px; }
.page { flex: 1; padding: 56px 0 80px; }
.page-long { padding-bottom: 0; }
.center { flex: 1; text-align: center; max-width: 36rem; margin: 80px auto; padding: 0 16px; }
#signup-error { color: #dc2626; font-weight: 600; }

body { padding-bottom: calc(88px + env(safe-area-inset-bottom, 0px)); }

@media (max-width: 799px) {
  .header-actions .header-login,
  .header-actions .btn-ghost,
  .header-actions .btn-primary,
  .header-actions .btn-line { display: none; }
  .page-long .section:last-child { padding-bottom: calc(112px + env(safe-area-inset-bottom, 0px)); }
}
@media (max-width: 420px) {
  .brand img:first-of-type,
  .brand-split { display: none; }
  .brand .ae-logo { height: 30px; max-width: 160px; }
}

@media (min-width: 800px) {
  body { padding-bottom: 0; }
  .sticky-cta, .menu-toggle { display: none; }
  .nav { display: flex; }
  .header-row { gap: 16px; }
  .brand img { height: 32px; }
  .brand .ae-logo { height: 34px; max-width: 190px; }
  .hero-grid, .split, .integrity, .tour { grid-template-columns: 1.05fr .95fr; }
  .metrics, .types, .cases, .extras, .jobs, .quotes { grid-template-columns: repeat(3, 1fr); }
  .signals { grid-template-columns: 1fr 1fr; }
  .tour { grid-template-columns: repeat(3, 1fr); }
  .grid-2 { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 2fr 1fr 1fr; }
  .hero { padding: 72px 0 48px; }
}
@media (min-width: 800px) and (max-width: 1023px) {
  .nav { gap: 14px; }
}
@media (min-width: 1024px) {
  .signals-home { grid-template-columns: repeat(4, 1fr); }
}
