/* ==========================================================================
   TOKENS — remapped to Virayo design system
   ========================================================================== */
:root {
  --ink: #1A1A1A;           /* virayo-black */
  --ink-2: #242321;         /* gray-800 */
  --ink-3: #3A3833;         /* gray-700 */
  --mute: #7A7668;          /* gray-500 */
  --mute-2: #A8A295;        /* gray-400 */
  --line: #E6E2D6;          /* gray-200 */
  --line-2: #F2EFE7;        /* gray-100 */
  --paper: #FFFAEF;         /* virayo-cream */
  --paper-2: #F2EFE7;
  --paper-3: #E6E2D6;
  --bg: #FFFAEF;            /* cream canvas */
  --white: #FFFFFF;

  --accent: #1C70DA;        /* virayo-blue */
  --accent-ink: #0E427F;    /* virayo-blue-dark */
  --accent-tint: #E7F1FC;   /* virayo-blue-tint */
  --accent-tint-2: #CFDDF6;

  --orange: #E29A3B;        /* virayo-orange */
  --orange-tint: #FBEFD9;

  --ok: #3F7D4B;
  --ok-tint: #e4f1e9;
  --warn: #BF7F24;
  --warn-tint: #FBEFD9;
  --err: #B5372A;
  --err-tint: #f7e2dd;

  --sans: 'DM Sans', 'Helvetica Neue', Arial, sans-serif;
  --serif: 'Arbutus', 'Iowan Old Style', Georgia, serif;
  --display: 'Geograph', 'Helvetica Neue', Arial, sans-serif;
  --shaded: 'WTR Gothic Shaded', 'Geograph', Arial, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;

  --r-xs: 4px;
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 20px;

  --density: 1;  /* tweak */
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--bg);
  font-size: 16px;
  line-height: 1.5;
  font-feature-settings: "ss01", "cv11";
}
img, svg { display: block; max-width: 100%; }
button { font: inherit; cursor: pointer; background: none; border: 0; color: inherit; }
a { color: inherit; text-decoration: none; }
input, textarea { font: inherit; color: inherit; }

/* ==========================================================================
   LAYOUT
   ========================================================================== */
.wrap { max-width: 1280px; margin: 0 auto; padding: 0 clamp(20px, 4vw, 56px); }
.rule { height: 1px; background: var(--line); border: 0; }

/* Section numbering system */
.section-head {
  padding: calc(72px * var(--density)) 0 calc(40px * var(--density));
  border-top: 1px solid var(--line);
}
.section-head__label {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  color: var(--mute);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 24px;
  display: block;
}
.section-head__label .num { color: var(--ink); margin-right: 10px; }
.section-head h2 {
  font-family: var(--display);
  font-weight: 900;
  font-size: clamp(40px, 5.2vw, 72px);
  letter-spacing: -0.022em;
  line-height: 1.02;
  color: var(--ink);
  text-wrap: balance;
}
.section-head h2 em {
  font-style: italic;
  font-family: var(--serif);
  color: var(--accent);
}
.section-head__kicker {
  font-family: var(--sans);
  font-size: 15px;
  color: var(--mute);
  max-width: 520px;
  margin-top: 20px;
  line-height: 1.55;
}

/* ==========================================================================
   NAV
   ========================================================================== */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(20, 20, 22, 0.92);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  color: #fff;
}
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 56px);
}
.nav__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.nav__mark {
  width: 26px; height: 26px; border-radius: 7px;
  background: var(--ink);
  color: var(--paper);
  display: grid; place-items: center;
  font-family: var(--serif); font-style: italic; font-size: 18px;
  font-weight: 400;
  position: relative;
}
.nav__mark::after {
  content: ''; position: absolute;
  inset: auto -3px -3px auto;
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--orange);
  border: 2px solid var(--bg);
}
.nav__links {
  display: flex; align-items: center; gap: 28px;
  list-style: none;
  font-size: 14px;
  color: rgba(255,255,255,0.72);
}
.nav__links a { transition: color .15s; }
.nav__links a:hover { color: #fff; }
.nav__cta {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--orange);
  color: #1A1A1A;
  padding: 9px 16px;
  border-radius: var(--r-sm);
  font-size: 13.5px;
  font-weight: 600;
  transition: transform .15s, background .15s, box-shadow .15s;
}
.nav__cta:hover { background: #f0a94a; transform: translateY(-1px); box-shadow: 0 8px 20px -8px rgba(226,154,59,0.6); }
.nav__cta .arr { font-family: var(--serif); font-style: italic; font-size: 15px; line-height: 0; }

/* Running ticker below nav */
.ticker {
  border-bottom: 1px solid var(--line);
  background: var(--bg);
  overflow: hidden;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--mute);
  letter-spacing: 0.02em;
}
.ticker__track {
  display: flex;
  gap: 48px;
  padding: 10px 0;
  animation: ticker 60s linear infinite;
  white-space: nowrap;
  width: max-content;
}
.ticker__item { display: inline-flex; align-items: center; gap: 10px; }
.ticker__item .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--ok);
}
.ticker__item .dot.warn { background: var(--warn); }
.ticker__item .dot.err { background: var(--err); }
.ticker__item .prov { color: var(--ink-3); }
.ticker__item .cite { color: var(--mute); }
.ticker__item .score { color: var(--accent); font-weight: 600; }
@keyframes ticker {
  to { transform: translateX(-50%); }
}

/* ==========================================================================
   HERO
   ========================================================================== */
.hero {
  padding: clamp(48px, 7vw, 88px) 0 clamp(48px, 6vw, 80px);
  position: relative;
  overflow: hidden;
}
.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: 48px;
  align-items: center;
}
.hero__left { min-width: 0; }
.hero__eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--mute);
  margin-bottom: 32px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.hero__eyebrow::before {
  content: '';
  width: 28px; height: 1px;
  background: var(--ink-3);
}
.hero h1 {
  font-family: var(--display);
  font-weight: 900;
  font-size: clamp(36px, 3.8vw, 60px);
  line-height: 0.98;
  letter-spacing: -0.03em;
  color: var(--ink);
  text-wrap: balance;
}
.hero h1 em {
  font-style: italic;
  color: var(--accent);
}
.hero h1 .slash {
  display: inline-block;
  color: var(--orange);
  font-style: italic;
  font-weight: 400;
}
.hero__sub {
  margin-top: 32px;
  font-size: clamp(17px, 1.4vw, 20px);
  color: var(--ink-3);
  line-height: 1.5;
  max-width: 52ch;
  text-wrap: pretty;
}
.hero__sub strong { color: var(--ink); font-weight: 600; }

/* Inline audit prompt — looks like a terminal / input field */
.audit-prompt {
  margin-top: 32px;
  display: flex;
  align-items: stretch;
  gap: 0;
  border: 1px solid var(--ink);
  border-radius: 10px;
  background: var(--white);
  max-width: 460px;
  overflow: hidden;
  box-shadow: 0 1px 0 var(--ink), 0 16px 28px -16px rgba(11,11,15,0.16);
  transition: box-shadow .2s;
}
.audit-prompt:focus-within { box-shadow: 0 1px 0 var(--ink), 0 24px 40px -20px rgba(11,11,15,0.22), 0 0 0 3px rgba(26,95,208,0.15); }
.audit-prompt__label {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--mute);
  padding: 0 4px 0 14px;
  display: flex; align-items: center;
  letter-spacing: 0.05em;
}
.audit-prompt__label::before { content: '▸'; color: var(--orange); margin-right: 6px; }
.audit-prompt input {
  flex: 1;
  border: 0;
  padding: 12px 6px;
  font-size: 14px;
  font-family: var(--sans);
  outline: none;
  background: transparent;
  min-width: 0;
}
.audit-prompt input::placeholder { color: var(--mute-2); }
.audit-prompt__btn {
  background: var(--ink);
  color: var(--paper);
  padding: 0 16px;
  font-size: 13px;
  font-weight: 500;
  display: flex; align-items: center; gap: 6px;
  transition: background .15s;
  white-space: nowrap;
}
.audit-prompt__btn:hover { background: var(--accent-ink); }
.audit-prompt__btn .arr { font-family: var(--serif); font-style: italic; font-size: 15px; }

.hero__meta {
  margin-top: 16px;
  display: flex; gap: 18px; flex-wrap: wrap;
  font-family: var(--mono); font-size: 11px;
  color: var(--mute);
  letter-spacing: 0.02em;
}
.hero__meta span { display: inline-flex; align-items: center; gap: 6px; }
.hero__meta span::before {
  content: ''; width: 4px; height: 4px; border-radius: 50%;
  background: var(--ok);
}

/* Hero dashboard — scaled proportionally so perspective stays intact */
.hero__viz {
  margin-top: 10px;
  position: relative;
  min-width: 0;
  /* Dashboard is rendered at natural size then scaled; this container just
     reserves space for the scaled footprint. */
}
.hero__viz__stage {
  width: 1280px;
  transform-origin: top left;
}
.hero__viz__frame {
  position: relative;
  width: 100%;
  overflow: visible;
}
.dashboard {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: 0 32px 80px -30px rgba(11,11,15,0.2), 0 1px 0 rgba(11,11,15,0.04);
  overflow: hidden;
  position: relative;
}
.dashboard__chrome {
  display: flex; align-items: center;
  padding: 10px 16px;
  border-bottom: 1px solid var(--line);
  gap: 14px;
  background: #E8E6E0;
}
.dashboard__dots { display: flex; gap: 7px; flex-shrink: 0; }
.dashboard__dots span { width: 11px; height: 11px; border-radius: 50%; background: var(--line); }
.dashboard__dots span:nth-child(1) { background: #e2826b; }
.dashboard__dots span:nth-child(2) { background: #e0c164; }
.dashboard__dots span:nth-child(3) { background: #7fae7a; }
.dashboard__tab-bar {
  display: flex; align-items: center;
}
.dashboard__tab {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 10px 6px 10px;
  background: var(--white);
  border-radius: 6px 6px 0 0;
  font-family: var(--sans); font-size: 12px;
  color: var(--ink);
  position: relative; top: 1px;
  border: 1px solid var(--line);
  border-bottom: none;
}
.dashboard__tab-mark {
  width: 14px; height: 14px; border-radius: 3px;
  background: var(--accent); color: #fff;
  display: grid; place-items: center;
  font-family: var(--display); font-weight: 900; font-size: 9px;
}
.dashboard__tab-x { color: var(--mute); font-size: 14px; margin-left: 4px; }
.dashboard__url {
  font-family: var(--sans); font-size: 12px;
  color: var(--ink-3);
  background: var(--white);
  padding: 6px 14px;
  border-radius: 16px;
  border: 1px solid var(--line);
  flex: 1;
  max-width: 520px;
  text-align: center;
}
.dashboard__url .dom { color: var(--ink); }
.dashboard__tab-plus {
  font-family: var(--sans);
  font-size: 16px;
  color: var(--mute);
  padding: 0 6px;
  margin-left: 4px;
  cursor: default;
}
.dashboard__ext {
  font-family: var(--sans);
  font-size: 11px;
  color: var(--ink-3);
  padding: 4px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--white);
  white-space: nowrap;
  letter-spacing: 0;
  flex-shrink: 0;
}
.chart-box--wide {
  grid-column: 1 / -1;
  margin-top: 16px;
}
.chart-box__sub {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--mute);
  letter-spacing: 0.03em;
  margin-top: -4px;
  margin-bottom: 12px;
}
.scatter-legend {
  display: flex;
  gap: 18px;
  justify-content: center;
  margin-bottom: 4px;
  font-family: var(--sans);
  font-size: 11px;
  color: var(--ink-3);
}
.scatter-legend__item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.scatter-legend__item .dot {
  width: 8px; height: 8px; border-radius: 50%;
  display: inline-block;
}
.scatter-legend__item em {
  font-style: italic;
  color: var(--accent);
  margin-left: 2px;
}
.dashboard__tabs {
  display: flex; gap: 2px;
  font-family: var(--mono); font-size: 11px;
  color: var(--mute);
  margin-left: auto;
}
.dashboard__tabs span { padding: 4px 10px; border-radius: 4px; }
.dashboard__tabs span.active { background: var(--white); color: var(--ink); }

.dashboard__body {
  display: grid;
  grid-template-columns: 44px 200px 1fr;
  min-height: 560px;
}
.dashboard__iconrail {
  background: #F2F1EF;
  border-right: 1px solid var(--line);
  padding: 12px 0;
  display: flex; flex-direction: column; align-items: center; gap: 4px;
}
.dashboard__iconrail .ico {
  width: 32px; height: 32px; border-radius: 6px;
  display: grid; place-items: center;
  color: var(--mute);
  cursor: pointer;
}
.dashboard__iconrail .ico.active { background: var(--white); color: var(--ink); box-shadow: 0 1px 2px rgba(0,0,0,0.06); }
.dashboard__iconrail .ico--brand {
  background: var(--accent); color: #fff;
  font-family: var(--display); font-weight: 900; font-size: 13px;
  margin-bottom: 8px;
}
.dashboard__side {
  background: #F2F1EF;
  border-right: 1px solid var(--line);
  padding: 12px 0;
  font-size: 13px;
}
.dashboard__workspace {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 14px 14px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 10px;
  font-size: 12px;
}
.dashboard__workspace-mark {
  width: 20px; height: 20px; border-radius: 4px;
  background: #D5E3CD; color: #2b5a3a;
  display: grid; place-items: center;
  font-family: var(--display); font-weight: 700; font-size: 9px;
}
.dashboard__workspace-name { flex: 1; color: var(--ink-3); font-weight: 500; }
.dashboard__workspace-caret { color: var(--mute); font-size: 10px; }

.dashboard__side-group {
  padding: 6px 20px;
  font-family: var(--sans); font-size: 10px;
  color: var(--mute); letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-top: 10px;
  font-weight: 500;
}
.dashboard__side-item {
  padding: 8px 20px;
  color: var(--ink-3);
  display: flex; align-items: center; gap: 10px;
  cursor: pointer;
  position: relative;
}
.dashboard__side-item.active { color: var(--ink); font-weight: 500; background: var(--white); }
.dashboard__side-item.active::before {
  content: ''; position: absolute; left: 0; top: 6px; bottom: 6px;
  width: 2px; background: var(--accent);
}
.dashboard__side-item .pill {
  margin-left: auto;
  font-family: var(--mono); font-size: 10px;
  background: var(--err-tint); color: var(--err);
  padding: 1px 6px; border-radius: 4px;
}
.dashboard__side-item .dot { display: none; }
.dashboard__side-item.active .dot { display: none; }

.dashboard__main {
  padding: 20px 28px 24px;
  overflow: hidden;
  background: var(--white);
}
.dashboard__topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 20px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line-2);
  margin-bottom: 20px;
}
.dashboard__topright {
  display: flex; align-items: center; gap: 10px;
}
.dashboard__iconbtn {
  width: 20px; height: 20px; border-radius: 50%;
  display: grid; place-items: center;
  color: var(--mute); font-size: 13px;
}
.dashboard__avatar {
  width: 20px; height: 20px; border-radius: 50%;
  background: var(--accent); color: #fff;
  display: grid; place-items: center;
  font-family: var(--display); font-weight: 700; font-size: 10px;
}
.dashboard__meta-chips {
  display: flex;
  gap: 8px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}
.dashboard__meta-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--white);
  font-family: var(--sans);
  font-size: 11px;
  color: var(--ink-3);
  letter-spacing: 0;
}
.dashboard__title {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 13px;
  line-height: 20px;
  letter-spacing: -0.005em;
  color: var(--ink);
  margin-bottom: 0;
}
.dashboard__toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
  gap: 16px;
  flex-wrap: wrap;
}
.dashboard__tabs-inner {
  display: flex;
  gap: 2px;
  background: #f5f3ed;
  padding: 3px;
  border-radius: 8px;
  font-size: 12px;
  color: var(--mute);
  font-weight: 500;
}
.dashboard__tabs-inner span {
  padding: 5px 12px;
  border-radius: 6px;
  cursor: pointer;
}
.dashboard__tabs-inner span.active {
  background: var(--white);
  color: var(--ink);
  box-shadow: 0 1px 2px rgba(11,11,15,0.06);
}
.dashboard__meta {
  display: flex;
  gap: 10px;
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--mute);
}
.dashboard__meta span {
  padding: 4px 10px;
  background: #f5f3ed;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.kpis {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 22px;
}
.kpis--6 {
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
}
.kpi {
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--white);
  position: relative;
  min-height: 82px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.kpi__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}
.kpi__label {
  font-family: var(--sans);
  font-size: 11.5px;
  color: var(--ink-3);
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
  line-height: 1.1;
}
.kpi__ico {
  font-size: 13px;
  color: var(--mute-2);
  line-height: 1;
}
.kpi__value {
  font-family: var(--sans);
  font-size: 24px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.kpi__value .unit { font-size: 15px; color: var(--ink); margin-left: 1px; font-weight: 700; }
/* pastel KPI backgrounds matching the real product */
.kpi--mint   { background: #e3f5ec; border-color: #cde8dc; }
.kpi--mint   .kpi__ico { color: #1f7a3a; }
.kpi--blue   { background: #e5eefc; border-color: #cfddf6; }
.kpi--blue   .kpi__ico { color: #1a5fd0; }
.kpi--violet { background: #ece3f8; border-color: #dccef0; }
.kpi--violet .kpi__ico { color: #5a3cc4; font-weight: 700; }
.kpi--pink   { background: #fbe6ec; border-color: #f3d0dc; }
.kpi--pink   .kpi__ico { color: #b53a6e; }
.kpi--teal   { background: #ddf0ee; border-color: #c6e4e0; }
.kpi--teal   .kpi__ico { color: #0f7a75; font-family: var(--serif); }
.kpi--orange { background: #fdeadb; border-color: #f6d6be; }
.kpi--orange .kpi__ico { color: #c26a1f; }
.kpi__delta {
  font-family: var(--mono); font-size: 11px;
  margin-top: 8px;
  color: var(--ok);
}
.kpi__delta.warn { color: var(--warn); }
.kpi__delta.err { color: var(--err); }

.chart-row {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 12px;
}
.chart-box {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--white);
  padding: 16px 18px;
}
.chart-box__head {
  display: flex; justify-content: space-between; align-items: baseline;
  margin-bottom: 12px;
}
.chart-box__title {
  font-size: 13px; font-weight: 600; color: var(--ink);
  letter-spacing: -0.005em;
}
.chart-box__meta {
  font-family: var(--mono); font-size: 10px; color: var(--mute);
  letter-spacing: 0.05em; text-transform: uppercase;
}

/* Competitor table */
.comp-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12.5px;
}
.comp-table th {
  font-family: var(--sans);
  font-weight: 500;
  font-size: 11px;
  color: var(--mute);
  text-align: left;
  padding: 6px 8px;
  border-bottom: 1px solid var(--line-2);
}
.comp-table th:first-child { padding-left: 0; width: 18px; }
.comp-table th:nth-child(3), .comp-table th:nth-child(4) { text-align: right; }
.comp-table td {
  padding: 8px 8px;
  color: var(--ink-3);
  border-bottom: 1px solid var(--line-2);
}
.comp-table td:first-child {
  padding-left: 0;
  color: var(--mute);
  font-family: var(--mono);
  font-size: 11px;
}
.comp-table td:nth-child(3), .comp-table td:nth-child(4) {
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.comp-table tbody tr:last-child td { border-bottom: 0; }
.comp-table tr.you td { color: var(--ink); font-weight: 500; }
.comp-table__brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.comp-table__dot {
  width: 6px; height: 6px; border-radius: 50%;
  display: inline-block;
}
.comp-table__you {
  display: inline-block;
  font-size: 10px;
  padding: 1px 7px;
  border-radius: 10px;
  background: var(--accent-tint);
  color: var(--accent);
  font-weight: 600;
  margin-left: 4px;
}

.comp-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  padding: 7px 0;
  font-size: 12px;
  align-items: center;
}
.comp-row + .comp-row { border-top: 1px dashed var(--line-2); }
.comp-row__name { color: var(--ink-3); }
.comp-row__name.you { color: var(--accent); font-weight: 600; }
.comp-row__bar { position: relative; width: 120px; height: 6px; background: var(--line-2); border-radius: 3px; }
.comp-row__fill { position: absolute; inset: 0; border-radius: 3px; background: var(--mute-2); }
.comp-row__name.you + .comp-row__bar .comp-row__fill { background: var(--accent); }
.comp-row__value { font-family: var(--mono); font-size: 11px; color: var(--ink-3); min-width: 28px; text-align: right; }
.comp-row__name.you ~ .comp-row__value { color: var(--accent); font-weight: 600; }

/* ==========================================================================
   BUTTONS
   ========================================================================== */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 22px;
  border-radius: var(--r-sm);
  font-size: 15px;
  font-weight: 500;
  transition: transform .15s, box-shadow .15s, background .15s;
  border: 1px solid transparent;
  letter-spacing: -0.005em;
}
.btn .arr { font-family: var(--serif); font-style: italic; font-size: 17px; line-height: 0; }
.btn--primary { background: var(--ink); color: var(--paper); }
.btn--primary:hover { background: var(--accent-ink); transform: translateY(-1px); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--ink); }
.btn--accent { background: var(--accent); color: var(--white); }
.btn--accent:hover { background: var(--accent-ink); }
.btn--light { background: var(--paper); color: var(--ink); }
.btn--light:hover { background: var(--white); }

/* ==========================================================================
   Tweaks panel
   ========================================================================== */
#tweaks-root { display: none; }
.tweaks {
  position: fixed;
  right: 18px; bottom: 18px;
  z-index: 200;
  width: 280px;
  background: var(--white);
  border: 1px solid var(--ink);
  border-radius: 14px;
  padding: 14px;
  font-size: 13px;
  box-shadow: 0 24px 56px -18px rgba(11,11,15,0.28);
  font-family: var(--sans);
}
.tweaks__title {
  font-family: var(--mono); font-size: 11px;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--mute);
  display: flex; justify-content: space-between; align-items: center;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 10px;
}
.tweaks__row { margin: 12px 0; }
.tweaks__row label {
  display: block; font-size: 11px; color: var(--mute);
  margin-bottom: 6px; font-family: var(--mono);
  letter-spacing: 0.05em; text-transform: uppercase;
}
.tweaks__opts { display: flex; gap: 4px; flex-wrap: wrap; }
.tweaks__opt {
  flex: 1;
  min-width: 60px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  font-size: 12px;
  background: var(--bg);
  color: var(--ink-3);
  text-align: center;
}
.tweaks__opt.active { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.tweaks__swatch {
  width: 20px; height: 20px; border-radius: 50%;
  border: 2px solid var(--line);
  cursor: pointer;
  display: inline-block;
}
.tweaks__swatch.active { border-color: var(--ink); transform: scale(1.12); }
body.tweaks-on #tweaks-root { display: block; }

/* ==========================================================================
   SHIFT section
   ========================================================================== */
.shift { background: var(--ink); color: var(--paper); }
.shift .section-head { border-top-color: rgba(255,255,255,0.08); }
.shift .section-head__label { color: rgba(255,255,255,0.5); }
.shift .section-head__label .num { color: var(--paper); }
.shift .section-head h2 { color: var(--paper); }
.shift .section-head h2 em { color: var(--orange); }
.shift-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid rgba(255,255,255,0.08);
  margin-top: 24px;
}
.shift-cell {
  padding: 40px 32px 48px;
  border-right: 1px solid rgba(255,255,255,0.08);
  position: relative;
}
.shift-cell:last-child { border-right: 0; }
.shift-cell__num {
  font-family: var(--mono); font-size: 11px;
  color: rgba(255,255,255,0.4);
  letter-spacing: 0.05em;
  margin-bottom: 40px;
  display: flex; justify-content: space-between;
}
.shift-cell__num .tag { color: var(--orange); }
.shift-cell h3 {
  font-family: var(--display);
  font-size: 32px;
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin-bottom: 18px;
  color: var(--paper);
}
.shift-cell p {
  font-size: 15px;
  color: rgba(255,255,255,0.68);
  line-height: 1.55;
  max-width: 32ch;
}
.shift-cell__viz { margin-top: 28px; height: 84px; }

.shift-cta {
  padding: 48px 32px;
  border-top: 1px solid rgba(255,255,255,0.08);
  margin-top: 0;
  display: flex; justify-content: space-between; align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
.shift-cta p {
  font-family: var(--serif);
  font-size: 24px;
  font-style: italic;
  color: rgba(255,255,255,0.85);
  max-width: 620px;
}
.shift-cta .line {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--orange);
  letter-spacing: 0.08em;
  margin-bottom: 4px;
  display: block;
  text-transform: uppercase;
  font-style: normal;
}

/* ==========================================================================
   AGENT — three layers, interactive
   ========================================================================== */
.agent {}
.agent__lead {
  font-family: var(--serif);
  font-size: clamp(20px, 1.6vw, 24px);
  font-weight: 400;
  font-style: italic;
  line-height: 1.4;
  letter-spacing: -0.005em;
  color: var(--ink-2);
  max-width: 680px;
  margin-bottom: 48px;
  text-wrap: pretty;
}

.layers {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 32px;
  align-items: start;
}
.layers__nav {
  display: flex; flex-direction: column;
  gap: 4px;
  position: sticky; top: 80px;
}
.layer-tab {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 16px;
  padding: 18px 18px 18px 0;
  text-align: left;
  border-top: 1px solid var(--line);
  color: var(--mute);
  transition: color .15s;
  align-items: start;
  cursor: pointer;
}
.layer-tab:last-of-type { border-bottom: 1px solid var(--line); }
.layer-tab__idx {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--mute-2);
  letter-spacing: 0.05em;
  padding-top: 6px;
}
.layer-tab h3 {
  font-family: var(--display);
  font-size: 22px;
  font-weight: 900;
  letter-spacing: -0.01em;
  color: var(--ink-3);
  line-height: 1.1;
  margin-bottom: 4px;
}
.layer-tab p {
  font-size: 13px;
  color: var(--mute);
  line-height: 1.4;
}
.layer-tab.active { color: var(--ink); }
.layer-tab.active h3 { color: var(--ink); }
.layer-tab.active .layer-tab__idx { color: var(--accent); }
.layer-tab.active { background: linear-gradient(to right, rgba(26,95,208,0.04), transparent 60%); }

.layer-panel {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 20px;
  overflow: hidden;
  min-height: 520px;
  position: relative;
}
.layer-panel__head {
  padding: 20px 28px;
  border-bottom: 1px solid var(--line);
  background: var(--paper);
  display: flex; justify-content: space-between; align-items: center;
  font-family: var(--mono); font-size: 11px;
  color: var(--mute); letter-spacing: 0.05em;
  text-transform: uppercase;
}
.layer-panel__head .live {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--ok);
}
.layer-panel__head .live::before {
  content: ''; width: 7px; height: 7px; border-radius: 50%;
  background: var(--ok); box-shadow: 0 0 0 3px var(--ok-tint);
  animation: pulse 2s infinite;
}
@keyframes pulse { 50% { opacity: 0.4; } }

.layer-panel__body { padding: 28px; }

/* ==========================================================================
   CAPABILITIES
   ========================================================================== */
.caps {
  background: var(--paper);
}
.caps__grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 20px;
  margin-top: 16px;
}
.cap {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 28px;
  grid-column: span 6;
  position: relative;
  overflow: hidden;
  display: flex; flex-direction: column;
  min-height: 320px;
}
.cap--lg { grid-column: span 12; min-height: 440px; }
.cap--sm { grid-column: span 4; min-height: 260px; padding: 24px; }
.cap__tag {
  font-family: var(--mono); font-size: 10px;
  color: var(--mute); letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 14px;
  display: flex; align-items: center; gap: 10px;
}
.cap__tag::before { content: ''; width: 20px; height: 1px; background: var(--ink-3); }
.cap h3 {
  font-family: var(--display);
  font-size: 28px;
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-bottom: 12px;
  text-wrap: pretty;
}
.cap--sm h3 { font-size: 22px; }
.cap p {
  font-size: 14px;
  color: var(--mute);
  line-height: 1.55;
  max-width: 42ch;
}
.cap__viz {
  margin-top: auto;
  padding-top: 24px;
}

/* Pipeline visualization */
.pipeline {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  align-items: center;
  gap: 4px;
  font-family: var(--mono);
  font-size: 10px;
  color: var(--mute);
  letter-spacing: 0.03em;
}
.pipeline__step {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  padding: 10px 4px;
  border-radius: 8px;
  background: var(--paper);
  text-align: center;
  text-transform: uppercase;
  position: relative;
  transition: background .3s, color .3s;
}
.pipeline__step.active {
  background: var(--ink);
  color: var(--paper);
}
.pipeline__step.done {
  background: var(--accent-tint);
  color: var(--accent);
}
.pipeline__step.loop {
  background: var(--orange-tint);
  color: var(--orange);
}
.pipeline__step .label { font-weight: 500; font-size: 9px; letter-spacing: 0.05em; }
.pipeline__step .val { font-family: var(--serif); font-size: 20px; font-style: italic; font-weight: 400; }
.pipeline__arrow { height: 1px; background: var(--line); position: relative; }
.pipeline__arrow::after {
  content: '→'; font-family: var(--mono); position: absolute;
  right: -4px; top: -8px; color: var(--mute-2);
}

/* MCP chat */
/* Claude-style dark MCP chat */
.chat {
  background: #1e1e24;
  color: rgba(255,255,255,0.88);
  border-radius: 14px;
  overflow: hidden;
  font-family: var(--sans);
  font-size: 13px;
  border: 1px solid rgba(255,255,255,0.06);
  display: flex; flex-direction: column;
  height: 100%;
  min-height: 560px;
  box-shadow: 0 24px 60px -20px rgba(0,0,0,0.5);
}
.chat__head {
  padding: 12px 16px;
  font-family: var(--sans); font-size: 13px;
  color: rgba(255,255,255,0.85);
  border-bottom: 1px solid rgba(255,255,255,0.04);
  display: flex; align-items: center; gap: 12px;
  background: #26262c;
}
.chat__head-title {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 500;
}
.chat__head-title::after {
  content: ' ▾';
  color: rgba(255,255,255,0.4);
  font-size: 10px;
  margin-left: 2px;
}
.chat__head .dots { display: flex; gap: 6px; }
.chat__head .dots span { width: 10px; height: 10px; border-radius: 50%; }
.chat__head .dots span:nth-child(1) { background: #e2826b; }
.chat__head .dots span:nth-child(2) { background: #e0c164; }
.chat__head .dots span:nth-child(3) { background: #7fae7a; }
.chat__body {
  padding: 18px 22px 10px;
  display: flex; flex-direction: column;
  gap: 16px;
  flex: 1;
  overflow: hidden;
}
.chat-section-head {
  font-family: var(--mono);
  font-size: 10px;
  color: rgba(255,255,255,0.55);
  letter-spacing: 0.1em;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  text-transform: uppercase;
  font-weight: 600;
}
.chat-section-head__meta { color: rgba(255,255,255,0.35); font-weight: 400; }

.chat-radar { display: flex; flex-direction: column; gap: 10px; }
.chat-radar__legend {
  display: flex; justify-content: center; gap: 20px;
  font-family: var(--sans);
  font-size: 11px;
  color: rgba(255,255,255,0.75);
}
.chat-radar__key { display: inline-flex; align-items: center; gap: 6px; }
.chat-radar__key span {
  width: 10px; height: 10px; border-radius: 2px;
  display: inline-block;
}
.chat-radar__note {
  font-size: 11.5px;
  color: rgba(255,255,255,0.7);
  line-height: 1.55;
  text-align: center;
  padding: 0 8px;
  margin: 0 auto;
  max-width: 520px;
}

.chat-bars { font-family: var(--sans); }
.chat-bars__head {
  font-size: 11px;
  color: rgba(255,255,255,0.7);
  margin-bottom: 10px;
  font-weight: 500;
}
.chat-bars__list { display: flex; flex-direction: column; gap: 5px; }
.chat-bar {
  display: grid;
  grid-template-columns: 130px 1fr 36px;
  gap: 12px;
  align-items: center;
  font-size: 11px;
}
.chat-bar__lbl { color: rgba(255,255,255,0.82); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chat-bar__lbl.acc { color: #6da5ea; font-weight: 500; }
.chat-bar__own { color: rgba(255,255,255,0.4); font-size: 10px; font-weight: 400; }
.chat-bar__track {
  height: 10px;
  background: rgba(255,255,255,0.04);
  border-radius: 2px;
  position: relative;
  overflow: hidden;
}
.chat-bar__fill {
  position: absolute;
  inset: 0 auto 0 0;
  border-radius: 2px;
}
.chat-bar__val {
  text-align: right;
  color: rgba(255,255,255,0.7);
  font-variant-numeric: tabular-nums;
  font-size: 11px;
}
.chat-bars__groups {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid rgba(255,255,255,0.05);
}
.chat-bars__gt {
  font-size: 11px;
  color: rgba(255,255,255,0.65);
  margin-right: 4px;
}
.chat-bars__chip {
  font-size: 10.5px;
  padding: 3px 10px;
  border-radius: 12px;
  background: rgba(109,165,234,0.14);
  color: #8ab8ec;
  border: 1px solid rgba(109,165,234,0.22);
}
.chat-bars__chip--own {
  background: rgba(255,255,255,0.1);
  color: #fff;
  border-color: transparent;
}

.chat-msg__text--assistant {
  color: rgba(255,255,255,0.82);
  line-height: 1.55;
  font-size: 12.5px;
}
.chat-msg__text .typing {
  display: inline-block;
  width: 6px; height: 14px;
  background: rgba(255,255,255,0.8);
  margin-left: 2px;
  vertical-align: text-bottom;
  animation: blink 1s infinite;
}
@keyframes blink { 50% { opacity: 0; } }

.chat__input {
  margin: 10px 16px 14px;
  padding: 12px 14px 10px;
  background: #2a2a30;
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 14px;
  font-family: var(--sans); font-size: 13px;
  color: rgba(255,255,255,0.4);
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 8px;
  min-height: 60px;
}
.chat__input-ph {
  flex: 1;
  padding-top: 2px;
}
.chat__input-model {
  color: rgba(255,255,255,0.55);
  font-size: 11.5px;
}

/* ==========================================================================
   RESULTS
   ========================================================================== */
.results {}
.results__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
}
.result {
  padding: 32px 28px 36px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  position: relative;
  min-height: 240px;
  display: flex; flex-direction: column;
}
.result:last-child { border-right: 0; }
.result__brand {
  font-family: var(--mono); font-size: 11px;
  letter-spacing: 0.08em; color: var(--mute);
  margin-bottom: auto;
  text-transform: uppercase;
}
.result__stat {
  font-family: var(--display);
  font-size: clamp(56px, 6vw, 88px);
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 0.9;
  color: var(--accent);
  margin: 24px 0 8px;
}
.result__stat .x { font-style: italic; }
.result__stat .sign { color: var(--orange); font-style: italic; }
.result__metric {
  font-size: 15px; color: var(--ink); font-weight: 500;
  margin-bottom: 8px;
}
.result__detail {
  font-size: 13px; color: var(--mute); line-height: 1.45;
}

/* ==========================================================================
   COMPARISON
   ========================================================================== */
.compare { background: var(--paper); }
.compare__table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin-top: 16px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
}
.compare__table th, .compare__table td {
  padding: 18px 20px;
  text-align: left;
  border-bottom: 1px solid var(--line-2);
  font-size: 14px;
  vertical-align: middle;
}
.compare__table th {
  font-family: var(--mono); font-size: 11px;
  letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--mute);
  background: var(--paper);
  font-weight: 500;
}
.compare__table th.us {
  background: var(--ink);
  color: var(--paper);
  position: relative;
}
.compare__table th.us::before {
  content: 'You';
  position: absolute; top: 6px; right: 10px;
  font-family: var(--mono); font-size: 9px;
  color: var(--orange); letter-spacing: 0.08em;
}
.compare__table tbody tr:last-child td { border-bottom: 0; }
.compare__table td:first-child {
  font-weight: 500;
  color: var(--ink);
}
.compare__table .us-col {
  background: var(--accent-tint);
  color: var(--accent-ink);
  font-weight: 500;
  border-left: 1px solid var(--accent-tint-2);
  border-right: 1px solid var(--accent-tint-2);
}
.compare__table .us-col.strong {
  font-family: var(--serif);
  font-size: 16px;
  font-style: italic;
}
.compare__table .x { color: var(--mute-2); font-family: var(--mono); font-size: 16px; }
.compare__table .check { color: var(--accent); font-weight: 600; }
.compare__row--head td {
  font-family: var(--serif); font-style: italic;
  font-size: 16px; color: var(--ink);
  background: var(--paper-2);
}

/* Why list */
.why {
  margin-top: 40px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
}
.why__item {
  padding: 24px 20px 28px;
  border-right: 1px solid var(--line);
}
.why__item:last-child { border-right: 0; }
.why__item__num {
  font-family: var(--mono); font-size: 11px;
  color: var(--accent); letter-spacing: 0.08em;
  margin-bottom: 24px;
}
.why__item h4 {
  font-family: var(--display);
  font-size: 20px; font-weight: 900;
  letter-spacing: -0.01em;
  line-height: 1.1;
  margin-bottom: 10px;
  color: var(--ink);
}
.why__item p { font-size: 13.5px; color: var(--mute); line-height: 1.5; }

/* ==========================================================================
   STATS ROW
   ========================================================================== */
.stats {
  background: var(--ink);
  color: var(--paper);
  padding: 56px 0;
  border-top: 1px solid rgba(255,255,255,0.08);
}
.stats__grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
}
.stat {
  padding: 0 28px;
  border-right: 1px solid rgba(255,255,255,0.08);
}
.stat:last-child { border-right: 0; }
.stat__value {
  font-family: var(--display);
  font-size: clamp(44px, 5vw, 72px);
  font-weight: 900;
  line-height: 0.9;
  letter-spacing: -0.03em;
  color: var(--paper);
  margin-bottom: 12px;
}
.stat__value em { font-style: italic; color: var(--orange); }
.stat__label {
  font-family: var(--mono); font-size: 11px;
  color: rgba(255,255,255,0.55);
  letter-spacing: 0.05em; text-transform: uppercase;
  line-height: 1.45;
  max-width: 22ch;
}

/* ==========================================================================
   CTA
   ========================================================================== */
.cta {}
.cta__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  padding: 72px 0;
  border-top: 1px solid var(--line);
}
.cta h2 {
  font-family: var(--display);
  font-weight: 900;
  font-size: clamp(40px, 5vw, 80px);
  line-height: 0.95;
  letter-spacing: -0.03em;
  color: var(--ink);
  text-wrap: balance;
}
.cta h2 em { font-style: italic; color: var(--accent); }
.cta__future {
  font-family: var(--serif);
  font-style: italic;
  font-size: 20px;
  color: var(--ink-3);
  line-height: 1.45;
  margin-top: 24px;
  max-width: 52ch;
}
.cta__details {
  list-style: none;
  margin-top: 32px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--mute);
  letter-spacing: 0.02em;
}
.cta__details li {
  padding: 10px 0;
  border-top: 1px dashed var(--line);
  display: flex; align-items: center; gap: 12px;
}
.cta__details li::before {
  content: '✓'; color: var(--accent);
  font-weight: 600;
}

.audit-form {
  background: var(--white);
  border: 1px solid var(--ink);
  border-radius: 20px;
  padding: 32px;
  position: relative;
  box-shadow: 0 1px 0 var(--ink), 0 32px 80px -30px rgba(11,11,15,0.2);
}
.audit-form__label {
  font-family: var(--mono); font-size: 11px;
  color: var(--mute); letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 16px;
  display: flex; justify-content: space-between;
}
.audit-form__label .step { color: var(--orange); }
.audit-form h3 {
  font-family: var(--display);
  font-size: 28px; font-weight: 900;
  letter-spacing: -0.02em;
  margin-bottom: 4px;
}
.audit-form__sub {
  font-size: 14px; color: var(--mute);
  margin-bottom: 24px;
}
.audit-field {
  display: grid;
  grid-template-columns: 100px 1fr;
  align-items: center;
  border-bottom: 1px solid var(--line);
  padding: 14px 0;
  gap: 12px;
}
.audit-field label {
  font-family: var(--mono); font-size: 11px;
  color: var(--mute); letter-spacing: 0.05em;
  text-transform: uppercase;
}
.audit-field input {
  border: 0;
  background: transparent;
  font-size: 16px;
  outline: none;
  padding: 4px 0;
  font-family: var(--sans);
}
.audit-field input::placeholder { color: var(--mute-2); }
.audit-form__submit {
  margin-top: 24px;
  width: 100%;
  justify-content: center;
  padding: 16px;
  font-size: 15px;
}
.audit-form__note {
  margin-top: 16px;
  font-family: var(--mono); font-size: 11px;
  color: var(--mute);
  text-align: center;
  letter-spacing: 0.02em;
}
.audit-form__note a { color: var(--accent); }

/* ==========================================================================
   LOGO BAR
   ========================================================================== */
.logobar {
  padding: 32px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--bg);
}
.logobar__inner {
  display: flex; align-items: center; gap: 48px;
  flex-wrap: wrap;
  justify-content: center;
}
.logobar__label {
  font-family: var(--mono); font-size: 11px;
  color: var(--mute); letter-spacing: 0.08em;
  text-transform: uppercase;
  flex-basis: 100%;
  text-align: center;
  margin-bottom: 12px;
}
.logobar__item {
  font-family: var(--serif);
  font-size: 26px;
  font-weight: 400;
  color: var(--ink-3);
  letter-spacing: -0.02em;
  font-style: italic;
  opacity: 0.78;
  transition: opacity .2s;
}
.logobar__item:hover { opacity: 1; }
.logobar__logo {
  height: 28px;
  width: auto;
  max-width: 160px;
  opacity: 0.68;
  object-fit: contain;
  transition: opacity .2s;
}
.logobar__logo:hover { opacity: 1; }
.logobar__item.mono {
  font-family: var(--sans);
  font-style: normal;
  font-weight: 700;
  letter-spacing: -0.03em;
}
.logobar__item.small { font-size: 20px; }
.logobar__item.tracked {
  font-family: var(--sans);
  font-style: normal;
  font-weight: 500;
  letter-spacing: 0.2em;
  font-size: 16px;
  text-transform: uppercase;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer {
  padding: 72px 0 48px;
  background: #0E0E10;
  color: rgba(255,255,255,0.78);
  border-top: 1px solid #0E0E10;
}
.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 56px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.footer__brand h3 {
  font-family: var(--display);
  font-size: 44px;
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1;
  margin-bottom: 18px;
  color: #fff;
}
.footer__brand h3 em { font-style: italic; color: var(--accent); }
.footer__brand p {
  font-size: 14px; color: rgba(255,255,255,0.6);
  max-width: 36ch; line-height: 1.55;
}
.footer__col h4 {
  font-family: var(--mono); font-size: 11px;
  color: rgba(255,255,255,0.45); letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 18px;
  font-weight: 500;
}
.footer__col ul { list-style: none; }
.footer__col li { padding: 5px 0; font-size: 14px; color: rgba(255,255,255,0.72); }
.footer__col li a { transition: color .15s; }
.footer__col li a:hover { color: #fff; }
.footer__bottom {
  padding-top: 32px;
  display: flex; justify-content: space-between;
  font-family: var(--mono); font-size: 11px;
  color: rgba(255,255,255,0.45); letter-spacing: 0.03em;
}
.footer__giant {
  padding: 48px 0 8px;
  font-family: var(--serif);
  font-size: clamp(80px, 18vw, 260px);
  line-height: 0.85;
  letter-spacing: -0.06em;
  color: #fff;
  text-align: center;
  user-select: none;
}
.footer__giant em { font-style: italic; color: var(--accent); }
.footer__giant .slash { color: var(--orange); }

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 960px) {
  .cta__inner, .layers { grid-template-columns: 1fr; }
  .shift-grid, .caps__grid, .results__grid, .stats__grid, .why { grid-template-columns: 1fr 1fr; }
  .cap, .cap--sm, .cap--lg { grid-column: span 6; }
  .kpis { grid-template-columns: 1fr 1fr; }
  .kpis--6 { grid-template-columns: repeat(3, 1fr); }
  .chart-row { grid-template-columns: 1fr; }
  .section-head { grid-template-columns: 1fr; gap: 12px; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .layers__nav { position: static; }
}
@media (max-width: 720px) {
  .dashboard__body { grid-template-columns: 1fr; }
  .dashboard__side, .dashboard__iconrail { display: none; }
  .hero__grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .nav__links { display: none; }
  .shift-grid, .caps__grid, .results__grid, .stats__grid, .why, .footer__grid { grid-template-columns: 1fr; }
  .cap, .cap--sm, .cap--lg { grid-column: span 12; }
  .shift-cell, .stat, .result, .why__item { border-right: 0; border-bottom: 1px solid rgba(0,0,0,0.06); }
  .stat { border-bottom-color: rgba(255,255,255,0.08); }
  .stat, .shift-cell { padding-top: 32px; padding-bottom: 32px; }
  .audit-prompt { flex-direction: column; align-items: stretch; }
  .audit-prompt__label { padding: 14px 18px 0; }
}

/* Accent variations via tweaks */
body[data-accent="orange"] {
  --accent: #d9791f;
  --accent-ink: #a95d0f;
  --accent-tint: #fbece0;
  --accent-tint-2: #f3d7b3;
}
body[data-accent="green"] {
  --accent: #1f7a3a;
  --accent-ink: #0f5826;
  --accent-tint: #e4f1e9;
  --accent-tint-2: #c1dfca;
}
body[data-accent="violet"] {
  --accent: #5a3cc4;
  --accent-ink: #3d278f;
  --accent-tint: #ece7fb;
  --accent-tint-2: #d5ccf5;
}

body[data-type="sans"] {
  --serif: 'Instrument Sans', ui-sans-serif, system-ui, sans-serif;
}
body[data-type="sans"] h1, body[data-type="sans"] h2, body[data-type="sans"] h3, body[data-type="sans"] h4 {
  font-style: normal !important;
  font-weight: 600;
  letter-spacing: -0.025em;
}
body[data-type="sans"] em {
  font-style: italic !important;
  font-weight: 500;
}

body[data-density="compact"] { --density: 0.6; }
body[data-density="airy"] { --density: 1.4; }

/* ==========================================================================
   BRAND OVERRIDES — Virayo display system
   ========================================================================== */
/* UPPERCASE kept only on hero h1 + giant footer wordmark */
.hero h1,
.footer__giant {
  text-transform: uppercase;
}
.hero h1 { letter-spacing: -0.035em; line-height: 0.98; }
.footer__giant { letter-spacing: -0.04em; line-height: 0.82; }

/* Display headlines, Geograph Black in sentence case */
.section-head h2,
.shift-cell h3,
.layer-tab h3,
.cap h3,
.result__stat,
.why__item h4,
.stat__value,
.cta h2,
.audit-form h3,
.footer__brand h3 {
  text-transform: none;
  letter-spacing: -0.022em;
  line-height: 1.04;
}
.cta h2 { letter-spacing: -0.028em; line-height: 0.98; }
.result__stat, .stat__value { letter-spacing: -0.04em; line-height: 0.9; }

/* Italic serif accents inside display headlines — stays as Arbutus from virayo.css */
.hero h1 em,
.section-head h2 em,
.cta h2 em,
.footer__brand h3 em,
.footer__giant em {
  font-family: var(--serif);
  font-style: italic;
  text-transform: none;
  font-weight: 400;
  letter-spacing: -0.01em;
}

/* Lead paragraphs + pull-quotes still use Arbutus italic */
.agent__lead,
.shift-cta p,
.cta__future {
  font-family: var(--serif);
  font-weight: 400;
}
.agent__lead::first-letter { font-family: var(--serif); font-weight: 400; }

/* Logo bar — use clean Geograph instead of serif for brand-name placeholders */
.logobar__item {
  font-family: var(--display);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  font-size: 18px;
}

/* Nav + footer wordmark — replaced by logo.svg below, hide text */
.nav__brand-text,
.footer__brand h3 .brand-text { display: none; }

/* Dark hero variant */
.hero--dark {
  background: var(--ink);
  color: var(--paper);
}
.hero--dark .hero__eyebrow { color: rgba(255,255,255,0.5); }
.hero--dark .hero__eyebrow::before { background: rgba(255,255,255,0.3); }
.hero--dark h1 { color: var(--paper); }
.hero--dark h1 em { color: var(--accent); }
.hero--dark .hero__sub { color: rgba(255,255,255,0.7); }
.hero--dark .hero__sub strong { color: var(--paper); }
.hero--dark .audit-prompt {
  background: var(--ink-2);
  border-color: rgba(255,255,255,0.15);
  box-shadow: 0 24px 40px -20px rgba(0,0,0,0.5);
}
.hero--dark .audit-prompt input { color: var(--paper); }
.hero--dark .audit-prompt input::placeholder { color: rgba(255,255,255,0.3); }
.hero--dark .audit-prompt__label { color: rgba(255,255,255,0.5); }
.hero--dark .audit-prompt__btn { background: var(--paper); color: var(--ink); }
.hero--dark .hero__meta { color: rgba(255,255,255,0.5); }
