/* =========================================================
   ledgerlens · Design System
   Tokens + base primitives shared across the app
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Inter+Tight:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500;600&family=Newsreader:ital,wght@0,400;1,400;1,500&display=swap');

:root {
  /* ---------- Surfaces (dark default) ---------- */
  --bg: #0a0b0d;
  --bg-1: #101114;
  --bg-2: #15171b;
  --bg-3: #1b1e23;
  --bg-4: #25282e;

  /* ---------- Foreground ---------- */
  --fg: #eef0f3;
  --fg-1: #c7cbd1;
  --fg-2: #8a9099;
  --fg-3: #5a6069;
  --fg-4: #3a3f47;

  /* ---------- Lines ---------- */
  --line: #22252b;
  --line-strong: #34383f;

  /* ---------- Brand accent (vert phosphore) ---------- */
  --acc: oklch(0.82 0.18 142);
  --acc-dim: oklch(0.62 0.14 142);
  --acc-glow: oklch(0.92 0.18 142);
  --acc-soft: oklch(0.82 0.18 142 / 0.18);

  /* ---------- Semantic ---------- */
  --ok: oklch(0.82 0.18 142);
  --warn: oklch(0.83 0.16 75);
  --bad: oklch(0.66 0.22 25);
  --info: oklch(0.78 0.12 230);

  /* ---------- Typography ---------- */
  --font-sans: 'Inter Tight', ui-sans-serif, system-ui, -apple-system, 'Helvetica Neue', sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
  --font-serif: 'Newsreader', ui-serif, 'Iowan Old Style', Georgia, serif;

  /* ---------- Radius ---------- */
  --r-xs: 3px;
  --r-sm: 4px;
  --r-md: 6px;
  --r-lg: 10px;
  --r-xl: 16px;

  /* ---------- Shadow / glow ---------- */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .35);
  --shadow-md: 0 8px 24px -8px rgba(0, 0, 0, .6), 0 2px 6px rgba(0, 0, 0, .35);
  --shadow-lg: 0 24px 60px -16px rgba(0, 0, 0, .7), 0 4px 12px rgba(0, 0, 0, .4);
  --glow-acc: 0 0 0 1px var(--acc-soft), 0 0 24px -6px var(--acc-soft);

  /* ---------- Transitions ---------- */
  --t-fast: 120ms cubic-bezier(.2, .8, .2, 1);
  --t-mid: 220ms cubic-bezier(.2, .8, .2, 1);
}

/* ---------- Light scheme override ---------- */
:root[data-theme="light"] {
  --bg: #fafaf7;
  --bg-1: #f4f4ef;
  --bg-2: #eceae3;
  --bg-3: #e3e0d6;
  --bg-4: #d4d3c8;

  --fg: #0e0f11;
  --fg-1: #2a2d33;
  --fg-2: #565a62;
  --fg-3: #7d8089;
  --fg-4: #a8abb1;

  --line: #d4d3c8;
  --line-strong: #b6b5aa;

  --acc: oklch(0.55 0.17 142);
  --acc-dim: oklch(0.45 0.14 142);
  --acc-glow: oklch(0.65 0.18 142);
  --acc-soft: oklch(0.55 0.17 142 / 0.14);
}

/* =========================================================
   Base
   ========================================================= */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-sans);
  font-size: 13.5px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection {
  background: var(--acc);
  color: #000;
}

a {
  color: var(--fg);
}

/* =========================================================
   Primitives — buttons / chips / kbd / divider
   ========================================================= */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  font-size: 12.5px;
  font-weight: 500;
  font-family: var(--font-sans);
  text-decoration: none;
  border: 1px solid transparent;
  border-radius: var(--r-sm);
  cursor: pointer;
  transition: all var(--t-fast);
  background: transparent;
  color: var(--fg);
}

.btn--primary {
  background: var(--acc);
  color: #000;
  font-weight: 600;
}

.btn--primary:hover {
  background: var(--acc-glow);
}

.btn--ghost {
  border-color: var(--line);
  background: var(--bg-1);
}

.btn--ghost:hover {
  border-color: var(--line-strong);
  background: var(--bg-2);
}

.btn--lg {
  padding: 12px 20px;
  font-size: 13.5px;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--fg-2);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 4px 10px;
  border: 1px solid var(--line);
  border-radius: 100px;
  background: var(--bg-1);
}

.chip__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--acc);
}

.chip--bad {
  background: oklch(0.30 0.10 25 / 0.4);
  color: var(--bad);
  border-color: oklch(0.45 0.16 25 / 0.5);
}

.chip--bad .chip__dot {
  background: var(--bad);
}

.chip--warn {
  background: oklch(0.30 0.10 75 / 0.4);
  color: oklch(0.85 0.16 75);
  border-color: oklch(0.45 0.16 75 / 0.5);
}

.chip--warn .chip__dot {
  background: oklch(0.85 0.16 75);
}

.chip--ok {
  background: oklch(0.25 0.08 142 / 0.35);
  color: var(--acc);
  border-color: oklch(0.42 0.14 142 / 0.4);
}

.kbd {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--fg-3);
  border: 1px solid var(--line);
  padding: 1px 5px;
  border-radius: 3px;
  background: var(--bg);
  line-height: 1.4;
}

.divider {
  height: 1px;
  background: var(--line);
  border: 0;
  margin: 0;
}

/* =========================================================
   Typography
   ========================================================= */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--fg-3);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.editorial em,
em.editorial {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  color: var(--acc);
}

/* =========================================================
   Brand lockup primitive — used in nav, footer, header
   ========================================================= */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--fg);
}

.brand__mark {
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
  display: block;
}

.brand__word {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 14.5px;
  letter-spacing: -0.045em;
  color: var(--fg);
}

.brand__sub {
  font-family: var(--font-mono);
  font-weight: 400;
  font-size: 10.5px;
  color: var(--fg-3);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding-left: 10px;
  border-left: 1px solid var(--line);
  margin-left: 4px;
}

/* Inline SVG mark (V4 bracket-LL) — usable wherever .brand__mark is */
/* Drop-in inline SVG suggested in markup; .brand__mark just sizes it. */

/* =========================================================
   Sparkline / inline ticker primitives
   ========================================================= */
.spark {
  display: inline-block;
  vertical-align: middle;
  height: 18px;
}

/* =========================================================
   Animations (shared)
   ========================================================= */
@keyframes blink {

  0%,
  50% {
    opacity: 1;
  }

  51%,
  100% {
    opacity: 0;
  }
}

@keyframes pulseRing {
  0% {
    box-shadow: 0 0 0 0 oklch(0.82 0.18 142 / 0.6);
  }

  70% {
    box-shadow: 0 0 0 8px oklch(0.82 0.18 142 / 0);
  }

  100% {
    box-shadow: 0 0 0 0 oklch(0.82 0.18 142 / 0);
  }
}

/* =========================================================
   Utilities
   ========================================================= */
.u-mono {
  font-family: var(--font-mono);
}

.u-serif {
  font-family: var(--font-serif);
}

.u-fg-2 {
  color: var(--fg-2);
}

.u-fg-3 {
  color: var(--fg-3);
}

.u-acc {
  color: var(--acc);
}

.u-text-center {
  text-align: center;
}

.u-full-width {
  max-width: none;
}

/* =========================================================
   ledgerlens · App shell + shared app primitives
   Sidebar · header · main · slide-over · toasts
   ========================================================= */

/* ---------- Shell layout ---------- */
.app {
  display: grid;
  grid-template-columns: 232px 1fr;
  grid-template-rows: 48px 1fr;
  grid-template-areas:
    "side header"
    "side main";
  height: 100vh;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-sans);
  font-size: 13px;
}

@media (max-width: 880px) {
  .app {
    grid-template-columns: 56px 1fr;
  }
}

/* =========================================================
   SIDEBAR
   ========================================================= */
.app__side {
  grid-area: side;
  border-right: 1px solid var(--line);
  background: var(--bg);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.app__side-brand {
  height: 48px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 16px;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  color: var(--fg);
}

.app__side-brand .brand__word {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 13.5px;
  letter-spacing: -0.045em;
}

.app__side-brand .brand__sub {
  font-family: var(--font-mono);
  font-size: 9.5px;
  color: var(--fg-3);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding-left: 8px;
  border-left: 1px solid var(--line);
  margin-left: 2px;
}

.app__side-org {
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
}

.app__side-org button {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  background: var(--bg-1);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  cursor: pointer;
  text-align: left;
  font-family: var(--font-sans);
  color: var(--fg);
  font-size: 12.5px;
  transition: all var(--t-fast);
}

.app__side-org button:hover {
  border-color: var(--line-strong);
  background: var(--bg-2);
}

.app__side-org .org-ic {
  width: 22px;
  height: 22px;
  border-radius: 3px;
  background: var(--acc);
  color: #000;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 11px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.app__side-org .org-name {
  flex: 1;
  font-weight: 500;
}

.app__side-org .org-tier {
  font-family: var(--font-mono);
  font-size: 9.5px;
  color: var(--fg-3);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.app__side-nav {
  flex: 1;
  overflow-y: auto;
  padding: 12px 8px;
}

.app__side-nav h6 {
  font-family: var(--font-mono);
  font-size: 9.5px;
  color: var(--fg-3);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 500;
  margin: 14px 8px 6px;
}

.app__side-nav h6:first-child {
  margin-top: 0;
}

.app__side-nav a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 10px;
  border-radius: var(--r-sm);
  color: var(--fg-1);
  text-decoration: none;
  font-size: 13px;
  font-weight: 400;
  transition: all var(--t-fast);
  position: relative;
}

.app__side-nav a:hover {
  background: var(--bg-1);
  color: var(--fg);
}

.app__side-nav a.is-active {
  background: var(--bg-2);
  color: var(--fg);
}

.app__side-nav a.is-active::before {
  content: "";
  position: absolute;
  left: 0;
  top: 6px;
  bottom: 6px;
  width: 2px;
  background: var(--acc);
  border-radius: 2px;
}

.app__side-nav a svg {
  width: 16px;
  height: 16px;
  color: var(--fg-3);
  flex-shrink: 0;
}

.app__side-nav a.is-active svg,
.app__side-nav a:hover svg {
  color: var(--fg);
}

.app__side-nav a .badge {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--fg-3);
  background: var(--bg-1);
  border: 1px solid var(--line);
  padding: 1px 6px;
  border-radius: 3px;
  letter-spacing: 0.04em;
}

.app__side-nav a .badge.alert {
  color: var(--bad);
  border-color: oklch(0.45 0.18 25);
}

.app__side-foot {
  border-top: 1px solid var(--line);
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.app__side-foot .quota {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--fg-3);
  letter-spacing: 0.04em;
  display: flex;
  justify-content: space-between;
}

.app__side-foot .quota .v {
  color: var(--fg-1);
}

.app__side-foot .quota-bar {
  height: 3px;
  background: var(--bg-2);
  border-radius: 2px;
  overflow: hidden;
}

.app__side-foot .quota-bar>div {
  height: 100%;
  background: var(--acc);
  width: 64%;
}

.app__side-foot .user {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--fg-1);
  padding: 6px 4px 0;
  border-top: 1px solid var(--line);
}

.app__side-foot .user .avatar {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: linear-gradient(135deg, oklch(0.55 0.17 142), oklch(0.42 0.16 142));
  color: #000;
  display: grid;
  place-items: center;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 10px;
}

.app__side-foot .user .name {
  flex: 1;
  font-weight: 500;
}

.app__side-foot .user .role {
  font-family: var(--font-mono);
  font-size: 9.5px;
  color: var(--fg-3);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

@media (max-width: 880px) {

  .app__side-brand .brand__word,
  .app__side-brand .brand__sub,
  .app__side-org,
  .app__side-nav h6,
  .app__side-nav a span:not(.badge),
  .app__side-foot {
    display: none;
  }

  .app__side-nav a {
    justify-content: center;
  }
}

/* =========================================================
   HEADER (top bar)
   ========================================================= */
.app__header {
  grid-area: header;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 0 18px;
  border-bottom: 1px solid var(--line);
  background: var(--bg);
}

.app__header .crumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  color: var(--fg-2);
  font-family: var(--font-sans);
}

.app__header .crumbs a {
  color: var(--fg-2);
  text-decoration: none;
}

.app__header .crumbs a:hover {
  color: var(--fg);
}

.app__header .crumbs .sep {
  color: var(--fg-4);
}

.app__header .crumbs .here {
  color: var(--fg);
  font-weight: 500;
}

.app__header .ticker-mini {
  margin-left: 16px;
  display: flex;
  align-items: center;
  gap: 18px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--fg-2);
  border-left: 1px solid var(--line);
  padding-left: 16px;
}

.app__header .ticker-mini .lbl {
  color: var(--fg-3);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.app__header .ticker-mini .val {
  color: var(--fg);
}

.app__header .ticker-mini .delta-up {
  color: var(--ok);
}

.app__header .ticker-mini .delta-down {
  color: var(--bad);
}

.app__header-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 8px;
}

.app__header .search {
  position: relative;
  width: 280px;
}

.app__header .search input {
  width: 100%;
  height: 30px;
  padding: 0 36px 0 32px;
  background: var(--bg-1);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  color: var(--fg);
  font-family: var(--font-sans);
  font-size: 12.5px;
}

.app__header .search input::placeholder {
  color: var(--fg-3);
}

.app__header .search input:focus {
  outline: none;
  border-color: var(--line-strong);
  background: var(--bg-2);
}

.app__header .search svg {
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  width: 13px;
  height: 13px;
  color: var(--fg-3);
}

.app__header .search .kbd {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
}

.app__header .ic-btn {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  color: var(--fg-1);
  cursor: pointer;
  position: relative;
  transition: all var(--t-fast);
}

.app__header .ic-btn:hover {
  border-color: var(--line-strong);
  background: var(--bg-1);
  color: var(--fg);
}

.app__header .ic-btn svg {
  width: 14px;
  height: 14px;
}

.app__header .ic-btn .dot {
  position: absolute;
  top: 4px;
  right: 5px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--acc);
  border: 1.5px solid var(--bg);
}

/* =========================================================
   MAIN
   ========================================================= */
.app__main {
  grid-area: main;
  overflow-y: auto;
  background: var(--bg);
}

/* =========================================================
   PAGE HEADER (inside main)
   ========================================================= */
.page-head {
  display: flex;
  align-items: flex-end;
  gap: 24px;
  padding: 24px 28px 20px;
  border-bottom: 1px solid var(--line);
}

.page-head h1 {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 0;
  color: var(--fg);
}

.page-head .sub {
  margin-top: 4px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--fg-3);
  letter-spacing: 0.04em;
}

.page-head__actions {
  margin-left: auto;
  display: flex;
  gap: 8px;
}

/* Stats strip — sits below page header */
.stats-strip {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  border-bottom: 1px solid var(--line);
  background: var(--bg-1);
}

.stats-strip__cell {
  padding: 14px 22px 16px;
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.stats-strip__cell:last-child {
  border-right: 0;
}

.stats-strip .lbl {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--fg-3);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.stats-strip .v {
  font-family: var(--font-mono);
  font-size: 22px;
  color: var(--fg);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.05;
}

.stats-strip .v.warn {
  color: var(--bad);
}

.stats-strip .v.ok {
  color: var(--acc);
}

.stats-strip .delta {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.04em;
}

.stats-strip .delta.up {
  color: var(--ok);
}

.stats-strip .delta.down {
  color: var(--bad);
}

.stats-strip .spark {
  margin-top: 4px;
  height: 18px;
  width: 100%;
}

@media (max-width: 1080px) {
  .stats-strip {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 720px) {
  .stats-strip {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* =========================================================
   GalaxyAI DealIntel — Landing
   Bloomberg-dense fintech, dark, signal-driven
   Depends on design-system.css for tokens
   ========================================================= */

/* ---------- Reset for landing (no app shell) ---------- */
.land-screen {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-sans);
  font-size: 13px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

.land-screen ::selection {
  background: var(--acc);
  color: #000;
}

/* ---------- Container ---------- */
.land-wrap {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 32px;
}

@media (max-width: 720px) {
  .land-wrap {
    padding: 0 16px;
  }
}

/* =========================================================
   NAV
   ========================================================= */
.land-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in oklch, var(--bg) 92%, transparent);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.land-nav__inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 32px;
  height: 56px;
  display: flex;
  align-items: center;
  gap: 28px;
}

.land-nav__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--fg);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: -0.01em;
}

.land-nav__brand .mark {
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  background: var(--acc);
  color: #000;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 13px;
  border-radius: 3px;
}

.land-nav__brand .sub {
  font-family: var(--font-mono);
  font-weight: 400;
  font-size: 11px;
  color: var(--fg-3);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding-left: 10px;
  border-left: 1px solid var(--line);
  margin-left: 2px;
}

.land-nav__links {
  display: flex;
  gap: 22px;
  align-items: center;
  margin-left: 12px;
}

.land-nav__links a {
  font-size: 12.5px;
  color: var(--fg-2);
  text-decoration: none;
  transition: color 120ms;
  position: relative;
}

.land-nav__links a:hover {
  color: var(--fg);
}

.land-nav__cta {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 8px;
}

.land-nav__cta .ghost,
.land-nav__cta .solid {
  font-size: 12.5px;
  text-decoration: none;
  padding: 7px 14px;
  border-radius: var(--r-sm);
  border: 1px solid transparent;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 120ms;
}

.land-nav__cta .ghost {
  color: var(--fg-1);
  border-color: var(--line);
}

.land-nav__cta .ghost:hover {
  border-color: var(--line-strong);
  background: var(--bg-2);
}

.land-nav__cta .solid {
  background: var(--acc);
  color: #000;
  font-weight: 600;
}

.land-nav__cta .solid:hover {
  background: oklch(0.88 0.18 142);
}

@media (max-width: 880px) {
  .land-nav__links {
    display: none;
  }
}

/* =========================================================
   STATUS TICKER (above hero)
   ========================================================= */
.land-ticker {
  border-bottom: 1px solid var(--line);
  background: var(--bg-1);
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--fg-2);
  overflow: hidden;
  height: 30px;
  display: flex;
  align-items: center;
}

.land-ticker__track {
  display: flex;
  gap: 36px;
  white-space: nowrap;
  animation: tickerScroll 60s linear infinite;
  padding-left: 32px;
}

.land-ticker__item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.land-ticker__item .label {
  color: var(--fg-3);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 10px;
}

.land-ticker__item .val {
  color: var(--fg);
}

.land-ticker__item .delta-up {
  color: var(--ok);
}

.land-ticker__item .delta-down {
  color: var(--bad);
}

.land-ticker__item .pulse {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--ok);
  box-shadow: 0 0 0 0 var(--ok);
  animation: pulseRing 2s ease-out infinite;
}

@keyframes tickerScroll {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}

@keyframes pulseRing {
  0% {
    box-shadow: 0 0 0 0 oklch(0.82 0.18 142 / 0.6);
  }

  70% {
    box-shadow: 0 0 0 8px oklch(0.82 0.18 142 / 0);
  }

  100% {
    box-shadow: 0 0 0 0 oklch(0.82 0.18 142 / 0);
  }
}

/* =========================================================
   HERO
   ========================================================= */
.land-hero {
  padding: 88px 0 64px;
  position: relative;
  border-bottom: 1px solid var(--line);
}

.land-hero--short {
  padding: 64px 0 40px;
  text-align: center;
}

.land-hero--short h1 {
  font-size: clamp(1.5rem, 3vw, 2.4rem);
}

.land-hero--short .land-hero__sub {
  max-width: 540px;
  margin-inline: auto;
}

.land-hero__grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 64px;
  align-items: start;
}

@media (max-width: 1080px) {
  .land-hero__grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .land-hero {
    padding: 64px 0 48px;
  }
}

.land-hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--fg-2);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 5px 10px;
  border: 1px solid var(--line);
  border-radius: 100px;
  background: var(--bg-1);
  margin-bottom: 28px;
}

.land-hero__eyebrow .ms-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5px;
  width: 11px;
  height: 11px;
}

.land-hero__eyebrow .ms-grid i {
  display: block;
  width: 100%;
  height: 100%;
}

.land-hero__eyebrow .ms-grid i:nth-child(1) {
  background: #f25022;
}

.land-hero__eyebrow .ms-grid i:nth-child(2) {
  background: #7fba00;
}

.land-hero__eyebrow .ms-grid i:nth-child(3) {
  background: #00a4ef;
}

.land-hero__eyebrow .ms-grid i:nth-child(4) {
  background: #ffb900;
}

.land-hero h1 {
  font-family: var(--font-sans);
  font-size: clamp(40px, 5.4vw, 68px);
  line-height: 1.02;
  letter-spacing: -0.035em;
  font-weight: 600;
  margin: 0 0 24px;
  color: var(--fg);
  text-wrap: balance;
}

.land-hero h1 em {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  color: var(--acc);
}

.land-hero h1 .strike {
  position: relative;
  color: var(--fg-3);
  font-weight: 400;
}

.land-hero h1 .strike::after {
  content: "";
  position: absolute;
  left: -2%;
  right: -2%;
  top: 54%;
  height: 2px;
  background: var(--bad);
  transform: rotate(-2deg);
}

.land-hero__lede {
  font-size: 16px;
  line-height: 1.55;
  color: var(--fg-1);
  max-width: 56ch;
  margin: 0 0 36px;
  text-wrap: pretty;
}

.land-hero__actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.land-hero__actions .solid,
.land-hero__actions .ghost {
  font-size: 13.5px;
  text-decoration: none;
  padding: 12px 20px;
  border-radius: var(--r-sm);
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 140ms;
  border: 1px solid transparent;
}

.land-hero__actions .solid {
  background: var(--acc);
  color: #000;
  font-weight: 600;
}

.land-hero__actions .solid:hover {
  background: oklch(0.88 0.18 142);
  transform: translateY(-1px);
}

.land-hero__actions .ghost {
  color: var(--fg);
  border-color: var(--line);
  background: var(--bg-1);
}

.land-hero__actions .ghost:hover {
  border-color: var(--line-strong);
  background: var(--bg-2);
}

.land-hero__actions .ghost .kbd {
  margin-left: 4px;
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--fg-3);
  border: 1px solid var(--line);
  padding: 1px 5px;
  border-radius: 3px;
  background: var(--bg);
}

/* Trust strip below CTAs */
.land-hero__trust {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--fg-3);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.land-hero__trust .item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.land-hero__trust .item::before {
  content: "";
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--fg-4);
}

.land-hero__trust .item:first-child::before {
  display: none;
}

/* ---------- Hero terminal ---------- */
.land-terminal {
  background: var(--bg-1);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  font-family: var(--font-mono);
  font-size: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  position: relative;
}

.land-terminal__bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
  background: var(--bg-2);
}

.land-terminal__bar .dots {
  display: flex;
  gap: 5px;
}

.land-terminal__bar .dots span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--bg-4);
}

.land-terminal__bar .title {
  font-size: 11px;
  color: var(--fg-3);
  margin-left: auto;
  letter-spacing: 0.04em;
}

.land-terminal__bar .live {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 10px;
  color: var(--ok);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.land-terminal__bar .live::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--ok);
  animation: pulseRing 2s ease-out infinite;
}

.land-terminal__body {
  padding: 16px 18px 4px;
  min-height: 380px;
  color: var(--fg-1);
}

.land-terminal__line {
  margin: 0 0 6px;
  white-space: pre-wrap;
  word-break: break-word;
  display: flex;
  gap: 8px;
}

.land-terminal__ts {
  color: var(--fg-4);
  flex-shrink: 0;
  font-size: 11px;
}

.land-terminal__line.cmd {
  color: var(--fg);
}

.land-terminal__line.cmd .prompt {
  color: var(--acc);
}

.land-terminal__line.dim {
  color: var(--fg-3);
}

.land-terminal__line.ok {
  color: var(--ok);
}

.land-terminal__line.warn {
  color: var(--warn);
}

.land-terminal__line.bad {
  color: var(--bad);
}

.land-terminal__line.info {
  color: var(--info);
}

.land-terminal__line .key {
  color: var(--fg-2);
}

.land-terminal__line .val {
  color: var(--fg);
}

.land-terminal__line .num {
  color: var(--acc);
}

.land-terminal__cursor {
  display: inline-block;
  width: 7px;
  height: 14px;
  background: var(--acc);
  vertical-align: text-bottom;
  animation: blink 1s steps(1) infinite;
}

@keyframes blink {
  50% {
    opacity: 0;
  }
}

/* Result card inside terminal */
.land-terminal__result {
  margin: 12px 0 6px;
  border: 1px solid var(--line);
  border-left: 2px solid var(--acc);
  background: var(--bg-2);
  padding: 12px 14px;
  border-radius: var(--r-sm);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 24px;
}

.land-terminal__result .row {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.land-terminal__result .row .lbl {
  font-size: 10px;
  color: var(--fg-3);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.land-terminal__result .row .v {
  font-size: 16px;
  color: var(--fg);
  font-weight: 500;
  letter-spacing: -0.01em;
}

.land-terminal__result .row .v.acc {
  color: var(--acc);
  font-weight: 600;
}

.land-terminal__result .row .v.warn {
  color: var(--warn);
}

.land-terminal__result .row .sub {
  font-size: 10px;
  color: var(--fg-3);
}

/* =========================================================
   SECTION HEADER (re-used)
   ========================================================= */
.land-section {
  padding: 96px 0;
  border-bottom: 1px solid var(--line);
}

@media (max-width: 720px) {
  .land-section {
    padding: 64px 0;
  }
}

.land-sec-head {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 48px;
  margin-bottom: 56px;
  align-items: start;
}

@media (max-width: 880px) {
  .land-sec-head {
    grid-template-columns: 1fr;
    gap: 16px;
    margin-bottom: 36px;
  }
}

.land-sec-head__tag {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--acc);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  position: relative;
  padding-top: 4px;
}

.land-sec-head__tag::before {
  content: "§ ";
  color: var(--fg-4);
}

.land-sec-head h2 {
  font-size: clamp(28px, 3.6vw, 44px);
  line-height: 1.08;
  letter-spacing: -0.025em;
  font-weight: 600;
  margin: 0 0 14px;
  text-wrap: balance;
}

.land-sec-head h2 em {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  color: var(--acc);
}

.land-sec-head__lede {
  font-size: 15px;
  color: var(--fg-1);
  max-width: 64ch;
  margin: 0;
  line-height: 1.55;
  text-wrap: pretty;
}

/* =========================================================
   PROBLEM SECTION
   ========================================================= */
.land-problem {
  background: var(--bg-1);
}

.land-problem__rows {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  overflow: hidden;
  background: var(--bg);
}

@media (max-width: 880px) {
  .land-problem__rows {
    grid-template-columns: 1fr;
  }
}

.land-problem__col {
  padding: 28px 32px;
}

.land-problem__col+.land-problem__col {
  border-left: 1px solid var(--line);
}

@media (max-width: 880px) {
  .land-problem__col+.land-problem__col {
    border-left: 0;
    border-top: 1px solid var(--line);
  }
}

.land-problem__col h4 {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin: 0 0 18px;
  color: var(--fg-3);
}

.land-problem__col h4.bad {
  color: var(--bad);
}

.land-problem__col h4.ok {
  color: var(--ok);
}

.land-problem__list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.land-problem__list li {
  padding: 10px 0;
  border-bottom: 1px dashed var(--line);
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 14px;
  align-items: baseline;
}

.land-problem__list li:last-child {
  border-bottom: 0;
}

.land-problem__list .stat {
  font-family: var(--font-mono);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.land-problem__col.before .stat {
  color: var(--bad);
}

.land-problem__col.after .stat {
  color: var(--ok);
}

.land-problem__list .body {
  font-size: 13px;
  color: var(--fg-1);
  line-height: 1.45;
}

.land-problem__list .body small {
  display: block;
  font-size: 11.5px;
  color: var(--fg-3);
  margin-top: 2px;
}

/* =========================================================
   PIPELINE
   ========================================================= */
.land-pipe {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  overflow: hidden;
  background: var(--bg-1);
}

@media (max-width: 880px) {
  .land-pipe {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 540px) {
  .land-pipe {
    grid-template-columns: 1fr;
  }
}

.land-pipe__step {
  padding: 24px 22px 28px;
  position: relative;
  border-right: 1px solid var(--line);
}

.land-pipe__step:last-child {
  border-right: 0;
}

@media (max-width: 880px) {
  .land-pipe__step:nth-child(2n) {
    border-right: 0;
  }

  .land-pipe__step:nth-child(-n+2) {
    border-bottom: 1px solid var(--line);
  }
}

.land-pipe__step .n {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--fg-2);
  letter-spacing: 0.06em;
  display: block;
  margin-bottom: 14px;
}

.land-pipe__step h5 {
  font-size: 15px;
  font-weight: 600;
  margin: 0 0 10px;
  letter-spacing: -0.01em;
  color: var(--fg);
}

.land-pipe__step p {
  font-size: 12.5px;
  color: var(--fg-2);
  line-height: 1.5;
  margin: 0 0 14px;
}

.land-pipe__step ul {
  list-style: none;
  margin: 0;
  padding: 0;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--fg-2);
}

.land-pipe__step ul li {
  padding: 3px 0;
  display: flex;
  gap: 6px;
}

.land-pipe__step ul li::before {
  content: "→";
  color: var(--acc-dim);
}

.land-pipe__step .meta {
  position: absolute;
  top: 22px;
  right: 22px;
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--fg-3);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* Featured pipeline step (triple valuation differentiator) */
.land-pipe__step--featured {
  background: linear-gradient(180deg,
      color-mix(in oklab, var(--acc) 8%, transparent) 0%,
      transparent 60%);
  box-shadow: inset 0 1px 0 0 color-mix(in oklab, var(--acc) 40%, transparent);
}

.land-pipe__step--featured h5 em {
  font-style: normal;
  color: var(--acc);
}

.land-pipe__step--featured h5 {
  font-size: 16px;
  margin-bottom: 12px;
}

.land-pipe__highlights {
  list-style: none;
  margin: 0 0 12px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.land-pipe__highlights li {
  padding: 8px 10px !important;
  display: block !important;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--bg-1, rgba(255, 255, 255, 0.02));
  font-family: inherit !important;
  font-size: 12px;
  color: var(--fg-2);
  line-height: 1.45;
}

.land-pipe__highlights li::before {
  content: "" !important;
}

.land-pipe__highlights li strong {
  display: block;
  color: var(--fg);
  font-size: 12.5px;
  font-weight: 600;
  margin-bottom: 2px;
  letter-spacing: -0.005em;
}

.land-pipe__highlights li span {
  display: block;
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--fg-3);
  letter-spacing: 0.01em;
}

.land-pipe__footnote {
  display: block;
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--fg-3);
  margin-top: 4px;
  letter-spacing: 0.02em;
}

.chip-flag {
  display: inline-block;
  margin-left: 6px;
  padding: 1px 6px;
  border-radius: 999px;
  background: color-mix(in oklab, var(--acc) 18%, transparent);
  color: var(--acc);
  font-family: var(--font-mono);
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  vertical-align: middle;
}

.land-terminal__result--star {
  background: color-mix(in oklab, var(--acc) 6%, transparent);
  border-left: 2px solid var(--acc);
  padding-left: 6px;
}

/* =========================================================
   DELIVERABLES — 8 livrables inclus
   ========================================================= */
.land-deliverables .land-sec-head {
  margin-bottom: 36px;
}

.land-deliv-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
}

@media (max-width: 1100px) {
  .land-deliv-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .land-deliv-grid {
    grid-template-columns: 1fr;
  }
}

.land-deliv-card {
  position: relative;
  padding: 24px 22px 22px;
  background: var(--bg, #0b0d10);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.land-deliv-card__num {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--fg-3);
  letter-spacing: 0.08em;
}

.land-deliv-card__group {
  font-family: var(--font-mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--fg-3);
  margin-bottom: 4px;
}

.land-deliv-card h3 {
  font-size: 15px;
  font-weight: 600;
  margin: 0 0 4px;
  color: var(--fg);
  letter-spacing: -0.01em;
}

.land-deliv-card p {
  font-size: 12.5px;
  color: var(--fg-2);
  line-height: 1.5;
  margin: 0 0 8px;
}

.land-deliv-card ul {
  list-style: none;
  margin: auto 0 0;
  padding: 0;
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--fg-3);
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.land-deliv-card ul li::before {
  content: "→ ";
  color: var(--acc-dim);
}

.land-deliv-card--star {
  background: linear-gradient(180deg,
      color-mix(in oklab, var(--acc) 10%, var(--bg, #0b0d10)) 0%,
      var(--bg, #0b0d10) 70%);
}

.land-deliv-card--star h3 {
  color: var(--acc);
}

.land-deliv-footer {
  margin-top: 22px;
  padding: 14px 18px;
  border: 1px dashed var(--line);
  border-radius: 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px 22px;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--fg-2);
}

.land-deliv-footer strong {
  color: var(--fg);
  font-weight: 600;
  font-family: inherit;
}

/* =========================================================
   METHODS MATRIX
   ========================================================= */
.land-methods {
  background: var(--bg-1);
}

.land-matrix-wrap {
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  overflow: hidden;
  background: var(--bg);
}

.land-matrix-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 22px;
  border-bottom: 1px solid var(--line);
  background: var(--bg-2);
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--fg-3);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.land-matrix-head .ref {
  color: var(--fg-2);
}

.land-matrix {
  width: 100%;
  border-collapse: collapse;
  font-size: 12.5px;
}

.land-matrix th,
.land-matrix td {
  padding: 12px 18px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.land-matrix tr:last-child th,
.land-matrix tr:last-child td {
  border-bottom: 0;
}

.land-matrix thead th {
  font-family: var(--font-mono);
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--fg-3);
  font-weight: 500;
  background: var(--bg-1);
}

.land-matrix tbody th {
  font-weight: 600;
  color: var(--fg);
  width: 200px;
}

.land-matrix tbody th .desc {
  display: block;
  font-weight: 400;
  font-size: 11.5px;
  color: var(--fg-3);
  margin-top: 4px;
  letter-spacing: 0;
  text-transform: none;
}

.land-matrix .dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--bg-4);
  margin-right: 4px;
}

.land-matrix .dot.full {
  background: var(--acc);
}

.land-matrix .dot.partial {
  background: var(--warn);
}

.land-matrix td.cell-full {
  background: oklch(0.28 0.09 142 / 0.12);
  color: var(--acc);
  font-weight: 500;
}

.land-matrix td.cell-partial {
  color: var(--warn);
}

.land-matrix .weight {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--fg-3);
}

/* =========================================================
   SAMPLE REPORT TEASE
   ========================================================= */
.land-sample {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 0;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  overflow: hidden;
}

@media (max-width: 1080px) {
  .land-sample {
    grid-template-columns: 1fr;
  }
}

.land-sample__viewer {
  background: var(--bg-1);
  padding: 24px;
  position: relative;
  min-height: 520px;
}

.land-sample__viewer::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 60%, var(--bg-1) 95%);
  pointer-events: none;
  z-index: 1;
}

.land-sample__paper {
  background: #fafaf7;
  color: #1a1a17;
  border-radius: 4px;
  padding: 28px 32px;
  font-family: var(--font-sans);
  font-size: 11px;
  line-height: 1.5;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
  transform: rotate(-0.6deg);
  position: relative;
}

.land-sample__paper h6 {
  font-family: var(--font-mono);
  font-size: 9.5px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #6a6a60;
  margin: 0 0 6px;
  font-weight: 500;
}

.land-sample__paper h3 {
  font-size: 18px;
  margin: 0 0 4px;
  letter-spacing: -0.02em;
  font-weight: 600;
}

.land-sample__paper .ref {
  font-family: var(--font-mono);
  font-size: 10px;
  color: #6a6a60;
  margin-bottom: 18px;
  display: block;
}

.land-sample__paper hr {
  border: none;
  border-top: 1px solid #d4d3c8;
  margin: 14px 0;
}

.land-sample__paper .grade {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 32px;
  font-weight: 700;
  background: #1a1a17;
  color: #fafaf7;
  padding: 4px 14px;
  border-radius: 3px;
  letter-spacing: -0.02em;
}

.land-sample__paper .scores {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
  margin: 16px 0;
}

.land-sample__paper .scores .s {
  border: 1px solid #d4d3c8;
  padding: 8px 10px;
  border-radius: 3px;
}

.land-sample__paper .scores .s .lbl {
  font-family: var(--font-mono);
  font-size: 9px;
  text-transform: uppercase;
  color: #6a6a60;
  letter-spacing: 0.06em;
}

.land-sample__paper .scores .s .v {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.land-sample__paper .valuation {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 12px;
  margin: 14px 0;
  padding: 12px;
  background: #efeee5;
  border-radius: 3px;
}

.land-sample__paper .valuation .v-col .lbl {
  font-family: var(--font-mono);
  font-size: 9px;
  text-transform: uppercase;
  color: #6a6a60;
  letter-spacing: 0.06em;
  display: block;
}

.land-sample__paper .valuation .v-col .v {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.land-sample__paper .valuation .v-col.base .v {
  font-size: 18px;
  color: #2a6438;
}

.land-sample__paper .sig {
  display: flex;
  gap: 12px;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid #d4d3c8;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 9.5px;
  color: #6a6a60;
}

.land-sample__paper .sig .qr {
  width: 38px;
  height: 38px;
  background:
    linear-gradient(45deg, #1a1a17 25%, transparent 25%) 0 0/8px 8px,
    linear-gradient(-45deg, #1a1a17 25%, transparent 25%) 0 0/8px 8px,
    linear-gradient(45deg, transparent 75%, #1a1a17 75%) 0 0/8px 8px,
    linear-gradient(-45deg, transparent 75%, #1a1a17 75%) 0 0/8px 8px,
    #fafaf7;
  border: 1px solid #1a1a17;
  flex-shrink: 0;
}

.land-sample__copy {
  background: var(--bg);
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.land-sample__copy h3 {
  font-size: 24px;
  letter-spacing: -0.025em;
  margin: 0 0 12px;
  font-weight: 600;
}

.land-sample__copy h3 em {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  color: var(--acc);
}

.land-sample__copy p {
  font-size: 13.5px;
  color: var(--fg-1);
  line-height: 1.55;
  margin: 0 0 18px;
}

.land-sample__copy ul {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
}

.land-sample__copy ul li {
  padding: 8px 0;
  border-top: 1px solid var(--line);
  display: flex;
  gap: 12px;
  align-items: baseline;
  font-size: 12.5px;
  color: var(--fg-1);
}

.land-sample__copy ul li::before {
  content: "✓";
  color: var(--acc);
  font-weight: 700;
  font-family: var(--font-mono);
}

.land-sample__copy .actions a {
  font-size: 12.5px;
  text-decoration: none;
  padding: 9px 16px;
  border-radius: var(--r-sm);
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--line);
  color: var(--fg);
  background: var(--bg-1);
  transition: all 120ms;
  margin-right: 8px;
}

.land-sample__copy .actions a:hover {
  border-color: var(--line-strong);
  background: var(--bg-2);
}

.land-sample__copy .actions a.solid {
  background: var(--acc);
  color: #000;
  border-color: var(--acc);
  font-weight: 600;
}

.land-sample__copy .actions a.solid:hover {
  background: oklch(0.88 0.18 142);
}

/* =========================================================
   PROOFS / TRUST
   ========================================================= */
.land-proofs {
  background: var(--bg-1);
}

.land-proofs__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  overflow: hidden;
}

@media (max-width: 880px) {
  .land-proofs__grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 540px) {
  .land-proofs__grid {
    grid-template-columns: 1fr;
  }
}

.land-proof {
  padding: 24px 22px;
  border-right: 1px solid var(--line);
  background: var(--bg);
}

.land-proof:last-child {
  border-right: 0;
}

@media (max-width: 880px) {
  .land-proof:nth-child(2n) {
    border-right: 0;
  }

  .land-proof:nth-child(-n+2) {
    border-bottom: 1px solid var(--line);
  }
}

@media (max-width: 540px) {
  .land-proof {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .land-proof:last-child {
    border-bottom: 0;
  }
}

.land-proof .stat {
  font-family: var(--font-mono);
  font-size: 32px;
  font-weight: 600;
  letter-spacing: -0.03em;
  color: var(--acc);
  margin-bottom: 6px;
  display: block;
  line-height: 1;
}

.land-proof .lbl {
  font-size: 12.5px;
  color: var(--fg);
  font-weight: 500;
  margin-bottom: 4px;
  display: block;
}

.land-proof .sub {
  font-size: 11px;
  color: var(--fg-3);
  font-family: var(--font-mono);
  letter-spacing: 0.02em;
  display: block;
}

/* Cert row */
.land-certs {
  margin-top: 36px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

@media (max-width: 880px) {
  .land-certs {
    grid-template-columns: 1fr 1fr;
  }
}

.land-cert {
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 18px 20px;
  background: var(--bg);
  display: grid;
  grid-template-columns: 32px 1fr;
  gap: 14px;
  align-items: start;
}

.land-cert__ic {
  width: 32px;
  height: 32px;
  border-radius: var(--r-sm);
  background: var(--bg-2);
  display: grid;
  place-items: center;
  color: var(--acc);
}

.land-cert__ic svg {
  width: 16px;
  height: 16px;
}

.land-cert .name {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--fg);
  margin: 0 0 3px;
}

.land-cert .meta {
  font-size: 11px;
  color: var(--fg-3);
  font-family: var(--font-mono);
  letter-spacing: 0.02em;
}

/* =========================================================
   FAQ
   ========================================================= */
.land-faq__list {
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  overflow: hidden;
  background: var(--bg-1);
}

.land-faq__item {
  border-bottom: 1px solid var(--line);
}

.land-faq__item:last-child {
  border-bottom: 0;
}

.land-faq__item summary {
  padding: 20px 24px;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--fg);
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 16px;
  letter-spacing: -0.01em;
  user-select: none;
}

.land-faq__item summary::-webkit-details-marker {
  display: none;
}

.land-faq__item summary::before {
  content: "+";
  font-family: var(--font-mono);
  color: var(--fg-3);
  font-size: 18px;
  width: 16px;
  flex-shrink: 0;
  transition: transform 200ms;
}

.land-faq__item[open] summary::before {
  content: "−";
  color: var(--acc);
}

.land-faq__item summary:hover {
  background: var(--bg-2);
}

.land-faq__item__num {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--fg-4);
  margin-left: auto;
  letter-spacing: 0.06em;
}

.land-faq__item .body {
  padding: 0 24px 22px 56px;
  font-size: 13px;
  color: var(--fg-1);
  line-height: 1.6;
  max-width: 78ch;
}

.land-faq__item .body code {
  font-family: var(--font-mono);
  font-size: 11.5px;
  background: var(--bg-2);
  padding: 1px 6px;
  border-radius: 3px;
  border: 1px solid var(--line);
  color: var(--acc);
}

.land-faq__item .body p {
  margin: 0 0 8px;
}

.land-faq__item .body p:last-child {
  margin: 0;
}

/* =========================================================
   CTA FINAL
   ========================================================= */
.land-final {
  padding: 96px 0;
  background:
    radial-gradient(ellipse at 50% 0%, oklch(0.28 0.09 142 / 0.18) 0%, transparent 60%),
    var(--bg);
  text-align: center;
  border-bottom: 1px solid var(--line);
  position: relative;
  overflow: hidden;
}

.land-final::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 56px 56px;
  background-position: -1px -1px;
  mask: radial-gradient(ellipse at center, black 0%, transparent 70%);
  -webkit-mask: radial-gradient(ellipse at center, black 0%, transparent 70%);
  opacity: 0.5;
  pointer-events: none;
}

.land-final__inner {
  position: relative;
  z-index: 1;
}

.land-final h2 {
  font-size: clamp(36px, 5vw, 56px);
  letter-spacing: -0.03em;
  line-height: 1.05;
  font-weight: 600;
  margin: 0 0 18px;
  text-wrap: balance;
}

.land-final h2 em {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  color: var(--acc);
}

.land-final p {
  font-size: 16px;
  color: var(--fg-1);
  margin: 0 auto 32px;
  max-width: 56ch;
  line-height: 1.55;
}

.land-final__actions {
  display: inline-flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}

.land-final__actions .solid,
.land-final__actions .ghost {
  font-size: 14px;
  text-decoration: none;
  padding: 14px 24px;
  border-radius: var(--r-sm);
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 140ms;
  border: 1px solid transparent;
}

.land-final__actions .solid {
  background: var(--acc);
  color: #000;
  font-weight: 600;
}

.land-final__actions .ghost {
  color: var(--fg);
  border-color: var(--line);
  background: var(--bg-1);
}

.land-final__meta {
  margin-top: 28px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--fg-3);
  letter-spacing: 0.04em;
}

/* =========================================================
   TRUST · certifications & reconnaissance
   ========================================================= */
.land-trust {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--bg);
  padding: 56px 0 64px;
}

.land-trust__head {
  display: flex;
  align-items: baseline;
  gap: 24px;
  margin-bottom: 36px;
  flex-wrap: wrap;
}

.land-trust__eyebrow {
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--fg-3);
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.land-trust h2 {
  font-family: var(--font-display);
  font-size: clamp(28px, 3.4vw, 40px);
  letter-spacing: -0.025em;
  font-weight: 500;
  margin: 0;
  color: var(--fg);
  line-height: 1.1;
  flex: 1;
  min-width: 280px;
}

.land-trust h2 em {
  font-family: var(--font-serif);
  font-style: italic;
  color: var(--acc);
}

.land-trust__cols {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 56px;
  align-items: start;
}

@media (max-width: 880px) {
  .land-trust__cols {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

/* --- Certifications grid --- */
.land-trust__certs {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--bg-1);
  overflow: hidden;
}

.land-cert {
  padding: 22px 22px 24px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 10px;
  position: relative;
}

.land-cert:nth-child(2n) {
  border-right: 0;
}

.land-cert:nth-last-child(-n+2) {
  border-bottom: 0;
}

@media (max-width: 540px) {
  .land-trust__certs {
    grid-template-columns: 1fr;
  }

  .land-cert {
    border-right: 0 !important;
    border-bottom: 1px solid var(--line) !important;
  }

  .land-cert:last-child {
    border-bottom: 0 !important;
  }
}

.land-cert__seal {
  display: flex;
  align-items: center;
  gap: 10px;
}

.land-cert__seal .icon {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  color: var(--acc);
  flex-shrink: 0;
}

.land-cert__seal .icon svg {
  width: 16px;
  height: 16px;
}

.land-cert__seal .ref {
  font-family: var(--font-mono);
  font-size: 9.5px;
  color: var(--fg-2);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.land-cert__title {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--fg);
  font-weight: 500;
  letter-spacing: -0.005em;
}

.land-cert__desc {
  font-size: 12.5px;
  color: var(--fg-2);
  line-height: 1.5;
  margin: 0;
}

.land-cert__meta {
  margin-top: auto;
  padding-top: 8px;
  font-family: var(--font-mono);
  font-size: 9.5px;
  color: var(--fg-2);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border-top: 1px dashed var(--line);
  display: flex;
  justify-content: space-between;
}

/* --- Numbers column --- */
.land-trust__nums {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.land-trust__num {
  border-left: 2px solid var(--acc-dim);
  padding: 4px 0 4px 18px;
}

.land-trust__num .v {
  font-family: var(--font-mono);
  font-size: 36px;
  letter-spacing: -0.025em;
  color: var(--fg);
  line-height: 1.05;
  font-weight: 500;
}

.land-trust__num .v em {
  font-family: var(--font-serif);
  font-style: italic;
  color: var(--acc);
  font-weight: 400;
}

.land-trust__num .lbl {
  margin-top: 6px;
  font-size: 13px;
  color: var(--fg-1);
  line-height: 1.5;
  max-width: 36ch;
}

.land-trust__num .src {
  margin-top: 4px;
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--fg-3);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* =========================================================
   FOOTER
   ========================================================= */
.land-footer {
  background: var(--bg-1);
  padding: 56px 0 28px;
  font-size: 12.5px;
  color: var(--fg-2);
}

.land-footer__cols {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 40px;
}

@media (max-width: 880px) {
  .land-footer__cols {
    grid-template-columns: 1fr 1fr;
    gap: 28px;
  }
}

@media (max-width: 540px) {
  .land-footer__cols {
    grid-template-columns: 1fr;
  }
}

.land-footer__brand strong {
  font-size: 13px;
  color: var(--fg);
  font-weight: 600;
  display: block;
  margin-bottom: 6px;
}

.land-footer__brand p {
  font-size: 11.5px;
  color: var(--fg-3);
  line-height: 1.55;
  margin: 0 0 14px;
  max-width: 30ch;
}

.land-footer__brand .iso {
  display: flex;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--fg-3);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  flex-wrap: wrap;
}

.land-footer__brand .iso span {
  border: 1px solid var(--line);
  padding: 2px 6px;
  border-radius: 3px;
}

.land-footer h6 {
  font-family: var(--font-mono);
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--fg-3);
  margin: 0 0 14px;
  font-weight: 500;
}

.land-footer__cols a {
  display: block;
  text-decoration: none;
  color: var(--fg-1);
  font-size: 12.5px;
  padding: 4px 0;
  transition: color 120ms;
}

.land-footer__cols a:hover {
  color: var(--acc);
}

.land-footer__bottom {
  border-top: 1px solid var(--line);
  padding-top: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--fg-3);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.land-footer__bottom .lang-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--line);
  padding: 4px 8px;
  border-radius: 3px;
}

/* =========================================================
   ledgerlens · Projects List
   Bloomberg-dense table — 1 row per audited repo
   ========================================================= */

/* ---------- Toolbar ---------- */
.proj-toolbar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 28px;
  border-bottom: 1px solid var(--line);
  background: var(--bg);
  font-family: var(--font-sans);
  font-size: 12px;
  position: sticky;
  top: 0;
  z-index: 5;
}

.proj-toolbar__search {
  position: relative;
  width: 260px;
}

.proj-toolbar__search input {
  width: 100%;
  height: 28px;
  padding: 0 30px 0 28px;
  background: var(--bg-1);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  color: var(--fg);
  font-family: var(--font-mono);
  font-size: 11.5px;
}

.proj-toolbar__search input::placeholder {
  color: var(--fg-3);
}

.proj-toolbar__search svg {
  position: absolute;
  left: 9px;
  top: 50%;
  transform: translateY(-50%);
  width: 12px;
  height: 12px;
  color: var(--fg-3);
}

.proj-toolbar__search .kbd {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
}

.proj-toolbar .filter {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 28px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: var(--bg-1);
  font-size: 11.5px;
  color: var(--fg-1);
  cursor: pointer;
  transition: all var(--t-fast);
}

.proj-toolbar .filter:hover {
  background: var(--bg-2);
  border-color: var(--line-strong);
}

.proj-toolbar .filter .lbl {
  font-family: var(--font-mono);
  color: var(--fg-3);
  text-transform: uppercase;
  font-size: 10px;
  letter-spacing: 0.06em;
}

.proj-toolbar .filter .v {
  color: var(--fg);
  font-weight: 500;
}

.proj-toolbar .filter .caret {
  color: var(--fg-3);
  font-size: 9px;
}

.proj-toolbar .filter.active {
  background: var(--bg-2);
  border-color: var(--acc-dim);
  color: var(--fg);
}

.proj-toolbar .filter.active .lbl {
  color: var(--acc);
}

.proj-toolbar .sep {
  width: 1px;
  height: 18px;
  background: var(--line);
  margin: 0 4px;
}

.proj-toolbar .saved-view {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 28px;
  padding: 0 10px;
  background: transparent;
  border: 1px solid transparent;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--fg-2);
  cursor: pointer;
  border-radius: var(--r-sm);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.proj-toolbar .saved-view:hover {
  color: var(--fg);
}

.proj-toolbar .saved-view.is-active {
  background: var(--bg-2);
  color: var(--fg);
  border-color: var(--line);
}

.proj-toolbar .saved-view .count {
  background: var(--bg-3);
  color: var(--fg-3);
  padding: 1px 5px;
  border-radius: 2px;
  font-size: 9.5px;
}

.proj-toolbar .saved-view.is-active .count {
  background: var(--acc);
  color: #000;
}

.proj-toolbar__right {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 6px;
}

.proj-toolbar__right .density {
  display: inline-flex;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  overflow: hidden;
}

.proj-toolbar__right .density button {
  height: 28px;
  padding: 0 9px;
  background: transparent;
  border: 0;
  color: var(--fg-3);
  font-family: var(--font-mono);
  font-size: 10.5px;
  cursor: pointer;
  letter-spacing: 0.04em;
}

.proj-toolbar__right .density button.is-active {
  background: var(--bg-2);
  color: var(--fg);
}

.proj-toolbar__right .density button+button {
  border-left: 1px solid var(--line);
}

/* ---------- Table wrapper ---------- */
.proj-table-wrap {
  position: relative;
}

/* ---------- Table ---------- */
.proj-table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--font-sans);
  font-size: 12.5px;
  color: var(--fg);
}

.proj-table thead {
  position: sticky;
  top: 49px;
  /* below toolbar */
  z-index: 4;
  background: var(--bg-1);
}

.proj-table thead th {
  text-align: left;
  font-family: var(--font-mono);
  font-size: 9.5px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--fg-3);
  padding: 9px 14px;
  border-bottom: 1px solid var(--line);
  border-top: 1px solid var(--line);
  white-space: nowrap;
  user-select: none;
  cursor: pointer;
  background: var(--bg-1);
}

.proj-table thead th:hover {
  color: var(--fg);
}

.proj-table thead th .sortcaret {
  display: inline-block;
  margin-left: 4px;
  color: var(--fg-4);
}

.proj-table thead th.sorted .sortcaret {
  color: var(--acc);
}

.proj-table thead th.num,
.proj-table tbody td.num {
  text-align: right;
  font-variant-numeric: tabular-nums;
  font-family: var(--font-mono);
}

.proj-table thead th.center,
.proj-table tbody td.center {
  text-align: center;
}

.proj-table tbody tr {
  border-bottom: 1px solid var(--line);
  transition: background var(--t-fast);
  cursor: pointer;
}

.proj-table tbody tr:hover {
  background: var(--bg-1);
}

.proj-table tbody tr.is-selected {
  background: var(--bg-2);
}

.proj-table tbody tr.is-selected td:first-child {
  border-left: 2px solid var(--acc);
  padding-left: 12px;
}

.proj-table tbody tr.is-flagged {
  background: oklch(0.18 0.06 25 / 0.18);
}

.proj-table tbody tr.is-flagged:hover {
  background: oklch(0.22 0.07 25 / 0.25);
}

.proj-table tbody td {
  padding: 11px 14px;
  vertical-align: middle;
  white-space: nowrap;
}

.proj-table.is-dense tbody td {
  padding: 7px 14px;
}

.proj-table.is-spacious tbody td {
  padding: 14px 14px;
}

/* ---- Cell : status / pulse ---- */
.cell-status {
  width: 14px;
  padding-left: 18px !important;
  padding-right: 0 !important;
}

.cell-status .pulse {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  display: inline-block;
}

.cell-status .pulse.ok {
  background: var(--acc);
  box-shadow: 0 0 0 0 oklch(0.82 0.18 142 / .6);
  animation: pulseRing 2s ease-out infinite;
}

.cell-status .pulse.warn {
  background: var(--warn);
}

.cell-status .pulse.bad {
  background: var(--bad);
}

.cell-status .pulse.dim {
  background: var(--fg-4);
}

/* ---- Cell : ref ---- */
.cell-ref {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--fg-3);
  letter-spacing: 0.02em;
}

/* ---- Cell : repo ---- */
.cell-repo {
  min-width: 240px;
}

.cell-repo .rname {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
  color: var(--fg);
}

.cell-repo .rname .org {
  color: var(--fg-3);
  font-weight: 400;
}

.cell-repo .meta {
  margin-top: 2px;
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--fg-3);
  letter-spacing: 0.02em;
  display: flex;
  gap: 10px;
}

.cell-repo .meta .branch::before {
  content: "⎇ ";
  color: var(--fg-4);
}

.cell-repo .meta .commit {
  color: var(--fg-3);
}

.cell-repo .meta .commit::before {
  content: "@";
  color: var(--fg-4);
}

.cell-repo .langs {
  display: inline-flex;
  gap: 3px;
  margin-left: 4px;
}

.cell-repo .langs .l {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 1px;
}

/* ---- Cell : verticale ---- */
.cell-vert {
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--fg-1);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.cell-vert::before {
  content: "▮";
  color: var(--acc-dim);
  margin-right: 5px;
  font-size: 8px;
}

/* ---- Cell : score (composite + grade) ---- */
.cell-score {
  font-family: var(--font-mono);
}

.cell-score .grade {
  display: inline-block;
  font-size: 10.5px;
  font-weight: 600;
  padding: 1px 6px;
  border-radius: 2px;
  letter-spacing: 0.02em;
  margin-right: 8px;
  min-width: 24px;
  text-align: center;
}

.cell-score .grade.aaa,
.cell-score .grade.aa,
.cell-score .grade.a {
  background: oklch(0.32 0.10 142 / 0.4);
  color: var(--acc);
}

.cell-score .grade.bbb,
.cell-score .grade.bb,
.cell-score .grade.b {
  background: oklch(0.30 0.08 95 / 0.4);
  color: oklch(0.85 0.16 95);
}

.cell-score .grade.ccc,
.cell-score .grade.cc,
.cell-score .grade.c {
  background: oklch(0.30 0.10 50 / 0.4);
  color: oklch(0.83 0.16 75);
}

.cell-score .grade.d {
  background: oklch(0.30 0.12 25 / 0.4);
  color: var(--bad);
}

.cell-score .num {
  font-size: 13px;
  color: var(--fg);
  font-weight: 500;
  letter-spacing: -0.01em;
}

.cell-score .pct {
  display: block;
  font-size: 9.5px;
  color: var(--fg-3);
  letter-spacing: 0.04em;
  margin-top: 2px;
  text-transform: uppercase;
}

/* ---- Cell : sub-scores (5 mini bars) ---- */
.cell-subs {
  width: 130px;
}

.cell-subs__bars {
  display: flex;
  gap: 3px;
  align-items: flex-end;
  height: 24px;
}

.cell-subs__bar {
  flex: 1;
  background: var(--bg-3);
  border-radius: 1px;
  position: relative;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

.cell-subs__bar>span {
  display: block;
  width: 100%;
  background: var(--acc);
  border-radius: 1px;
}

.cell-subs__bar.warn>span {
  background: oklch(0.83 0.16 75);
}

.cell-subs__bar.bad>span {
  background: var(--bad);
}

.cell-subs__bar .tip {
  display: none;
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  padding: 4px 8px;
  background: var(--bg-3);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-sm);
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--fg);
  z-index: 9;
  white-space: nowrap;
}

.cell-subs__bar:hover .tip {
  display: block;
}

.cell-subs__legend {
  font-family: var(--font-mono);
  font-size: 9px;
  color: var(--fg-4);
  letter-spacing: 0.04em;
  display: flex;
  gap: 3px;
  margin-top: 3px;
  text-transform: uppercase;
}

.cell-subs__legend span {
  flex: 1;
  text-align: center;
}

/* ---- Cell : valuation ---- */
.cell-val {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  text-align: right;
}

.cell-val .v {
  color: var(--fg);
  font-size: 12.5px;
  font-weight: 500;
}

.cell-val .range {
  display: block;
  font-size: 9.5px;
  color: var(--fg-3);
  letter-spacing: 0.02em;
  margin-top: 2px;
}

/* ---- Cell : delta 30j ---- */
.cell-delta {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  text-align: right;
}

.cell-delta__row {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.cell-delta .v.up {
  color: var(--ok);
}

.cell-delta .v.down {
  color: var(--bad);
}

.cell-delta .v.flat {
  color: var(--fg-3);
}

.cell-delta .arrow {
  font-size: 10px;
}

.cell-delta .spark {
  display: block;
  margin-top: 1px;
  height: 14px;
  margin-left: auto;
}

/* ---- Cell : flags ---- */
.cell-flags {
  display: flex;
  gap: 4px;
}

.cell-flag {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 9.5px;
  font-weight: 600;
  padding: 2px 5px;
  border-radius: 2px;
  letter-spacing: 0.04em;
  background: var(--bg-2);
  color: var(--fg-2);
  border: 1px solid var(--line);
}

.cell-flag.bad {
  background: oklch(0.30 0.10 25 / 0.4);
  color: var(--bad);
  border-color: oklch(0.45 0.16 25 / 0.5);
}

.cell-flag.warn {
  background: oklch(0.30 0.10 75 / 0.4);
  color: oklch(0.85 0.16 75);
  border-color: oklch(0.45 0.16 75 / 0.5);
}

.cell-flag.ok {
  background: oklch(0.30 0.10 142 / 0.3);
  color: var(--acc);
  border-color: oklch(0.42 0.14 142 / 0.4);
}

/* ---- Cell : last scan ---- */
.cell-last {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--fg-2);
}

.cell-last .when {
  color: var(--fg-1);
}

.cell-last .ago {
  display: block;
  font-size: 9.5px;
  color: var(--fg-3);
  letter-spacing: 0.04em;
  margin-top: 2px;
  text-transform: uppercase;
}

/* ---- Cell : sig ---- */
.cell-sig {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--fg-3);
  letter-spacing: 0.02em;
}

.cell-sig .ok {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--acc);
}

.cell-sig .ok::before {
  content: "";
  width: 6px;
  height: 6px;
  background: var(--acc);
  border-radius: 50%;
}

.cell-sig .hash {
  display: block;
  margin-top: 2px;
  color: var(--fg-3);
}

/* ---- Cell : actions ---- */
.cell-act {
  width: 32px;
  text-align: right;
}

.cell-act button {
  width: 24px;
  height: 24px;
  background: transparent;
  border: 1px solid transparent;
  color: var(--fg-3);
  cursor: pointer;
  border-radius: 3px;
  display: grid;
  place-items: center;
}

.cell-act button:hover {
  border-color: var(--line);
  color: var(--fg);
  background: var(--bg-1);
}

/* =========================================================
   FOOT BAR (counts + pagination)
   ========================================================= */
.proj-foot {
  position: sticky;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 8px 28px;
  border-top: 1px solid var(--line);
  background: var(--bg-1);
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--fg-3);
  letter-spacing: 0.04em;
}

.proj-foot .group {
  display: flex;
  gap: 14px;
  align-items: center;
}

.proj-foot .v {
  color: var(--fg-1);
}

.proj-foot .ic-btn {
  height: 22px;
  padding: 0 8px;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 3px;
  color: var(--fg-3);
  font-family: var(--font-mono);
  font-size: 10.5px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.proj-foot .ic-btn:hover {
  color: var(--fg);
  background: var(--bg-2);
  border-color: var(--line-strong);
}

/* =========================================================
   SLIDE-OVER (right detail panel)
   ========================================================= */
.slide-over {
  position: fixed;
  top: 48px;
  right: 0;
  bottom: 0;
  width: 480px;
  background: var(--bg);
  border-left: 1px solid var(--line);
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  z-index: 20;
  transform: translateX(100%);
  transition: transform var(--t-mid);
}

.slide-over.is-open {
  transform: translateX(0);
}

.slide-over__head {
  padding: 16px 20px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.slide-over__head h2 {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--fg);
}

.slide-over__head .ref {
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--fg-3);
  margin-top: 3px;
  letter-spacing: 0.04em;
}

.slide-over__head .close {
  margin-left: auto;
  background: transparent;
  border: 1px solid var(--line);
  color: var(--fg-3);
  width: 24px;
  height: 24px;
  border-radius: 3px;
  cursor: pointer;
  font-family: var(--font-mono);
  font-size: 14px;
}

.slide-over__head .close:hover {
  color: var(--fg);
  border-color: var(--line-strong);
}

.slide-over__body {
  flex: 1;
  overflow-y: auto;
  padding: 18px 20px;
}

.slide-over__sect {
  padding-bottom: 18px;
  margin-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.slide-over__sect:last-child {
  border-bottom: 0;
  margin-bottom: 0;
}

.slide-over__sect h6 {
  font-family: var(--font-mono);
  font-size: 9.5px;
  color: var(--fg-3);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin: 0 0 10px;
  font-weight: 500;
}

.slide-over .big-grade {
  display: flex;
  align-items: center;
  gap: 16px;
}

.slide-over .big-grade .g {
  font-family: var(--font-mono);
  font-size: 36px;
  font-weight: 700;
  background: oklch(0.32 0.10 95 / 0.45);
  color: oklch(0.85 0.16 95);
  padding: 6px 14px;
  border-radius: 3px;
  letter-spacing: -0.02em;
  line-height: 1;
}

.slide-over .big-grade .num {
  font-family: var(--font-mono);
  font-size: 28px;
  color: var(--fg);
  letter-spacing: -0.02em;
  line-height: 1;
}

.slide-over .big-grade .pct {
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--fg-3);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-top: 6px;
}

.slide-over__rowlist {
  font-family: var(--font-mono);
  font-size: 11.5px;
}

.slide-over__rowlist .r {
  display: grid;
  grid-template-columns: 88px 1fr 60px;
  gap: 10px;
  padding: 6px 0;
  align-items: center;
  border-bottom: 1px dashed var(--line);
}

.slide-over__rowlist .r:last-child {
  border-bottom: 0;
}

.slide-over__rowlist .r .lbl {
  color: var(--fg-3);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 10px;
}

.slide-over__rowlist .r .bar {
  height: 4px;
  background: var(--bg-3);
  border-radius: 2px;
  overflow: hidden;
}

.slide-over__rowlist .r .bar>span {
  display: block;
  height: 100%;
  background: var(--acc);
}

.slide-over__rowlist .r .bar.warn>span {
  background: oklch(0.83 0.16 75);
}

.slide-over__rowlist .r .bar.bad>span {
  background: var(--bad);
}

.slide-over__rowlist .r .v {
  text-align: right;
  color: var(--fg);
}

.slide-over__val {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 10px;
  padding: 12px;
  background: var(--bg-1);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
}

.slide-over__val .c {
  text-align: center;
}

.slide-over__val .lbl {
  font-family: var(--font-mono);
  font-size: 9.5px;
  color: var(--fg-3);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.slide-over__val .v {
  font-family: var(--font-mono);
  font-size: 16px;
  color: var(--fg);
  font-weight: 500;
  letter-spacing: -0.01em;
  margin-top: 4px;
  display: block;
}

.slide-over__val .c.base .v {
  color: var(--acc);
  font-size: 19px;
}

.slide-over .findings {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.slide-over .finding {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 10px;
  padding: 8px 10px;
  background: var(--bg-1);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  font-size: 12px;
}

.slide-over .finding.bad {
  border-color: oklch(0.45 0.18 25 / 0.4);
}

.slide-over .finding .ref {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--fg-3);
  letter-spacing: 0.02em;
}

.slide-over .finding.bad .ref {
  color: var(--bad);
}

.slide-over .finding .text {
  color: var(--fg-1);
  line-height: 1.45;
}

.slide-over .finding .text small {
  display: block;
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--fg-3);
  margin-top: 2px;
  letter-spacing: 0.02em;
}

.slide-over__foot {
  padding: 14px 20px;
  border-top: 1px solid var(--line);
  display: flex;
  gap: 8px;
}

@media (max-width: 880px) {
  .slide-over {
    width: 100%;
  }
}

/* =========================================================
   Empty + skeleton
   ========================================================= */
.proj-empty {
  padding: 72px 28px;
  text-align: center;
}

.proj-empty h3 {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 0 0 8px;
}

.proj-empty p {
  font-size: 13px;
  color: var(--fg-2);
  max-width: 48ch;
  margin: 0 auto 18px;
}

/* =========================================================
   ledgerlens · Project Report
   Hero + scores + valorisation + findings + signature
   ========================================================= */

/* ---------- Sub-tabs sous le page-head ---------- */
.rep-tabs {
  display: flex;
  gap: 2px;
  padding: 0 28px;
  border-bottom: 1px solid var(--line);
  background: var(--bg);
  position: sticky;
  top: 0;
  z-index: 5;
}

.rep-tabs a {
  padding: 12px 16px;
  font-size: 12.5px;
  color: var(--fg-2);
  text-decoration: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all var(--t-fast);
}

.rep-tabs a .num {
  font-family: var(--font-mono);
  font-size: 9.5px;
  color: var(--fg-3);
  letter-spacing: 0.06em;
}

.rep-tabs a:hover {
  color: var(--fg);
}

.rep-tabs a.is-active {
  color: var(--fg);
  border-bottom-color: var(--acc);
}

.rep-tabs a.is-active .num {
  color: var(--acc);
}

/* ---------- Container ---------- */
.rep {
  padding: 24px 28px 80px;
  max-width: 1280px;
  margin: 0 auto;
}

.rep__row {
  display: grid;
  gap: 16px;
}

.rep__row--hero {
  grid-template-columns: 1.2fr 1fr;
  margin-bottom: 16px;
}

.rep__row--scores {
  grid-template-columns: 1fr 1fr 1fr 1fr 1fr;
  margin-bottom: 16px;
}

.rep__row--two {
  grid-template-columns: 1.4fr 1fr;
  margin-bottom: 16px;
}

@media (max-width: 1080px) {

  .rep__row--hero,
  .rep__row--two {
    grid-template-columns: 1fr;
  }

  .rep__row--scores {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ---------- Card primitive (report) ---------- */
.rep-card {
  background: var(--bg-1);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.rep-card__head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 16px;
  border-bottom: 1px solid var(--line);
  background: var(--bg);
}

.rep-card__head h3 {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--fg-3);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 500;
}

.rep-card__head .ref {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--fg-3);
  letter-spacing: 0.04em;
}

.rep-card__body {
  padding: 18px 18px 20px;
  flex: 1;
}

.rep-card__body--tight {
  padding: 14px 16px;
}

.rep-card__body--flush {
  padding: 0;
}

/* =========================================================
   HERO · Composite score
   ========================================================= */
.rep-hero {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 28px;
  align-items: center;
  padding: 28px 28px 30px;
}

.rep-hero__grade {
  font-family: var(--font-mono);
  font-size: 96px;
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--acc);
  background: oklch(0.32 0.10 142 / 0.4);
  padding: 12px 26px 16px;
  border-radius: 6px;
  text-align: center;
}

.rep-hero__grade .sub {
  display: block;
  font-size: 14px;
  color: var(--fg-2);
  font-weight: 400;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-top: 8px;
  font-family: var(--font-mono);
}

.rep-hero__meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.rep-hero__num {
  font-family: var(--font-mono);
  font-size: 42px;
  letter-spacing: -0.025em;
  color: var(--fg);
  line-height: 1;
}

.rep-hero__num .total {
  color: var(--fg-3);
  font-size: 26px;
}

.rep-hero__pct {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--fg-2);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-top: 6px;
}

.rep-hero__pct .acc {
  color: var(--acc);
}

.rep-hero__line {
  margin-top: 14px;
  height: 6px;
  background: var(--bg-3);
  border-radius: 3px;
  overflow: hidden;
  position: relative;
}

.rep-hero__line>span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, oklch(0.45 0.16 25), oklch(0.78 0.16 75), var(--acc));
  width: 87%;
}

.rep-hero__line .marker {
  position: absolute;
  top: -3px;
  bottom: -3px;
  width: 1px;
  background: var(--fg);
}

.rep-hero__line .marker.med {
  left: 68%;
  background: var(--fg-3);
}

.rep-hero__scale {
  margin-top: 6px;
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 9.5px;
  color: var(--fg-3);
  letter-spacing: 0.04em;
}

/* Hero side : valuation summary */
.rep-val {
  padding: 24px 24px 26px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  background: var(--bg-1);
  border-left: 1px solid var(--line);
}

.rep-val__head {
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.rep-val__head h3 {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--fg-3);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 500;
}

.rep-val__head .meth {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 9.5px;
  color: var(--fg-3);
}

.rep-val__main {
  display: flex;
  align-items: baseline;
  gap: 12px;
}

.rep-val__main .v {
  font-family: var(--font-mono);
  font-size: 38px;
  letter-spacing: -0.025em;
  color: var(--fg);
  line-height: 1;
  font-weight: 500;
}

.rep-val__main .delta {
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--ok);
}

.rep-val__range {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  overflow: hidden;
}

.rep-val__range .c {
  background: var(--bg);
  padding: 10px 12px;
  text-align: center;
}

.rep-val__range .lbl {
  font-family: var(--font-mono);
  font-size: 9.5px;
  color: var(--fg-3);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.rep-val__range .v {
  display: block;
  margin-top: 4px;
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--fg);
  font-weight: 500;
}

.rep-val__range .c.base {
  background: var(--bg-2);
}

.rep-val__range .c.base .v {
  color: var(--acc);
  font-size: 16px;
}

/* =========================================================
   SCORE CARDS (5 sub-scores)
   ========================================================= */
.rep-score {
  background: var(--bg-1);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 16px 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  position: relative;
}

.rep-score::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--acc);
}

.rep-score.warn::before {
  background: oklch(0.83 0.16 75);
}

.rep-score.bad::before {
  background: var(--bad);
}

.rep-score__head {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.rep-score__head h4 {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--fg-3);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 500;
}

.rep-score__head .num-pct {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 9.5px;
  color: var(--fg-3);
}

.rep-score__big {
  font-family: var(--font-mono);
  font-size: 32px;
  letter-spacing: -0.025em;
  color: var(--fg);
  line-height: 1;
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.rep-score__big .grade {
  font-size: 13px;
  color: var(--acc);
  font-weight: 600;
}

.rep-score.warn .rep-score__big .grade {
  color: oklch(0.85 0.16 75);
}

.rep-score.bad .rep-score__big .grade {
  color: var(--bad);
}

.rep-score__bar {
  height: 4px;
  background: var(--bg-3);
  border-radius: 2px;
  overflow: hidden;
}

.rep-score__bar>span {
  display: block;
  height: 100%;
  background: var(--acc);
}

.rep-score.warn .rep-score__bar>span {
  background: oklch(0.83 0.16 75);
}

.rep-score.bad .rep-score__bar>span {
  background: var(--bad);
}

.rep-score__delta {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--fg-3);
  letter-spacing: 0.04em;
}

.rep-score__delta .up {
  color: var(--ok);
}

.rep-score__delta .down {
  color: var(--bad);
}

/* =========================================================
   RADAR (sub-scores composite chart)
   ========================================================= */
.rep-radar {
  width: 100%;
  height: 320px;
  display: block;
}

.rep-radar .grid {
  stroke: var(--line);
  stroke-width: 1;
  fill: none;
}

.rep-radar .axis {
  stroke: var(--line);
  stroke-width: 1;
}

.rep-radar .median {
  fill: oklch(0.55 0.04 256 / 0.10);
  stroke: var(--fg-3);
  stroke-width: 1;
  stroke-dasharray: 3 3;
}

.rep-radar .actual {
  fill: oklch(0.82 0.18 142 / 0.18);
  stroke: var(--acc);
  stroke-width: 1.5;
}

.rep-radar .actual-pt {
  fill: var(--acc);
}

.rep-radar .lbl {
  fill: var(--fg-2);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.rep-radar .lbl-num {
  fill: var(--fg);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
}

.rep-radar-legend {
  display: flex;
  gap: 16px;
  padding: 0 18px 16px;
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--fg-3);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.rep-radar-legend .swatch {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 2px;
  margin-right: 6px;
  vertical-align: middle;
}

/* =========================================================
   FINDINGS list
   ========================================================= */
.rep-findings {
  display: flex;
  flex-direction: column;
}

.rep-finding {
  display: grid;
  grid-template-columns: 28px 80px 1fr auto;
  gap: 14px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
  align-items: flex-start;
}

.rep-finding:last-child {
  border-bottom: 0;
}

.rep-finding:hover {
  background: var(--bg-2);
}

.rep-finding .sev {
  width: 22px;
  height: 22px;
  border-radius: 3px;
  display: grid;
  place-items: center;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  color: #000;
  margin-top: 1px;
}

.rep-finding .sev.crit {
  background: var(--bad);
  color: #fff;
}

.rep-finding .sev.high {
  background: oklch(0.78 0.16 50);
}

.rep-finding .sev.med {
  background: oklch(0.85 0.16 95);
}

.rep-finding .sev.low {
  background: var(--fg-3);
  color: #000;
}

.rep-finding .ref {
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--fg-3);
  letter-spacing: 0.02em;
  padding-top: 3px;
}

.rep-finding .text {
  font-size: 13px;
  color: var(--fg);
  line-height: 1.5;
}

.rep-finding .text small {
  display: block;
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--fg-3);
  margin-top: 4px;
  letter-spacing: 0.02em;
  line-height: 1.5;
}

.rep-finding .text code {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--acc);
  background: var(--bg-2);
  padding: 1px 5px;
  border-radius: 2px;
}

.rep-finding .meta {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--fg-3);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  text-align: right;
  padding-top: 3px;
  white-space: nowrap;
}

.rep-finding .meta .eta {
  display: block;
  color: var(--fg-1);
  margin-top: 2px;
}

/* =========================================================
   STACK / TECH list
   ========================================================= */
.rep-stack {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
}

.rep-stack__item {
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  border-right: 1px solid var(--line);
}

.rep-stack__item:nth-child(2n) {
  border-right: 0;
}

.rep-stack__item:nth-last-child(-n+2) {
  border-bottom: 0;
}

.rep-stack__item .lbl {
  font-family: var(--font-mono);
  font-size: 9.5px;
  color: var(--fg-3);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.rep-stack__item .v {
  margin-top: 3px;
  font-size: 13px;
  color: var(--fg);
  font-family: var(--font-mono);
}

.rep-stack__item .v small {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--fg-3);
  margin-left: 4px;
}

/* =========================================================
   TIMELINE (commits / scans)
   ========================================================= */
.rep-timeline {
  padding: 0;
}

.rep-timeline__cell {
  display: grid;
  grid-template-columns: 90px 1fr auto;
  gap: 14px;
  padding: 11px 18px;
  border-bottom: 1px solid var(--line);
  align-items: center;
}

.rep-timeline__cell:last-child {
  border-bottom: 0;
}

.rep-timeline__cell:hover {
  background: var(--bg-2);
}

.rep-timeline__when {
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--fg-3);
  letter-spacing: 0.02em;
}

.rep-timeline__msg {
  font-size: 12.5px;
  color: var(--fg);
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.rep-timeline__msg .commit {
  font-family: var(--font-mono);
  color: var(--fg-3);
  font-size: 10.5px;
}

.rep-timeline__msg .author {
  font-family: var(--font-mono);
  color: var(--acc);
  font-size: 10.5px;
}

.rep-timeline__delta {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--fg-2);
  text-align: right;
}

.rep-timeline__delta .up {
  color: var(--ok);
}

.rep-timeline__delta .down {
  color: var(--bad);
}

/* =========================================================
   SIGNATURE block
   ========================================================= */
.rep-sig {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 22px;
  padding: 20px 22px;
  background: var(--bg-1);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  position: relative;
  overflow: hidden;
}

.rep-sig::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 3px;
  background: var(--acc);
}

.rep-sig__rows {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--fg-2);
  line-height: 1.9;
}

.rep-sig__rows .lbl {
  display: inline-block;
  width: 64px;
  color: var(--fg-3);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 10px;
}

/* =========================================================
   SECTION VARIANTS — visual rhythm
   ========================================================= */
.land-section--alt {
  background: var(--bg-2);
}

.land-section--alt .land-pipe,
.land-section--alt .land-matrix-wrap,
.land-section--alt .land-problem__rows {
  background: var(--bg-1);
}

.land-section--accent {
  border-left: 3px solid var(--acc);
}

/* =========================================================
   PARTNER TRUST BAR
   ========================================================= */
.land-partners {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--bg-1);
  padding: 20px 0;
}

.land-partners__inner {
  display: flex;
  align-items: center;
  gap: 32px;
  justify-content: center;
  flex-wrap: wrap;
}

.land-partner {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 16px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--bg);
}

.land-partner__icon {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  color: var(--acc);
  flex-shrink: 0;
}

.land-partner__icon svg {
  width: 22px;
  height: 22px;
}

.land-partner__text {
  font-size: 12px;
  line-height: 1.3;
}

.land-partner__text strong {
  display: block;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--fg);
  letter-spacing: -0.01em;
}

.land-partner__text span {
  font-size: 10.5px;
  color: var(--fg-2);
  font-family: var(--font-mono);
  letter-spacing: 0.02em;
}

@media (max-width: 540px) {
  .land-partners__inner {
    gap: 12px;
  }

  .land-partner {
    padding: 6px 10px;
    gap: 8px;
  }

  .land-partner__text strong {
    font-size: 11px;
  }

  .land-partner__text span {
    display: none;
  }
}

/* =========================================================
   LANGUAGE CHOOSER
   ========================================================= */
.lang-chooser {
  position: relative;
  display: inline-flex;
}

.lang-chooser__btn {
  background: transparent;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  color: var(--fg-1);
  font-family: var(--font-mono);
  font-size: 11px;
  padding: 5px 10px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;
  letter-spacing: 0.04em;
  transition: border-color var(--t-fast);
}

.lang-chooser__btn:hover {
  border-color: var(--acc-dim);
  color: var(--fg);
}

.lang-chooser__btn .caret {
  font-size: 9px;
  opacity: .6;
}

.lang-chooser__menu {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  min-width: 140px;
  background: var(--bg-2);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-md);
  padding: 4px;
  z-index: 100;
  box-shadow: var(--shadow-md);
}

.lang-chooser.is-open .lang-chooser__menu {
  display: block;
}

.lang-chooser__menu a {
  display: block;
  padding: 6px 12px;
  font-size: 12px;
  color: var(--fg-2);
  text-decoration: none;
  border-radius: var(--r-xs);
  transition: background var(--t-fast), color var(--t-fast);
}

.lang-chooser__menu a:hover {
  background: var(--bg-3);
  color: var(--fg);
}

.lang-chooser__menu a.is-active {
  color: var(--acc);
  font-weight: 500;
}

/* =========================================================
   PRICING PAGE
   ========================================================= */

/* ---------- MS badge ---------- */
.pr-ms-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-family: var(--font-mono);
  color: #7fc7ff;
  background: rgba(0, 164, 239, 0.08);
  border: 1px solid rgba(0, 164, 239, 0.18);
  border-radius: 100px;
  padding: 5px 14px;
  margin-bottom: 18px;
  letter-spacing: 0.04em;
}

.pr-ms-logo {
  display: inline-grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5px;
  width: 12px;
  height: 12px;
}

.pr-ms-logo i {
  display: block;
}

.pr-ms-logo i:nth-child(1) {
  background: #f25022;
}

.pr-ms-logo i:nth-child(2) {
  background: #7fba00;
}

.pr-ms-logo i:nth-child(3) {
  background: #00a4ef;
}

.pr-ms-logo i:nth-child(4) {
  background: #ffb900;
}

.pr-ms-line {
  font-size: 12px;
  color: var(--fg-3);
  margin-top: 8px;
}

/* ---------- Period toggle ---------- */
.pr-toggle {
  display: inline-flex;
  border: 1px solid var(--line);
  border-radius: 100px;
  overflow: hidden;
  margin-top: 20px;
}

.pr-toggle button {
  background: none;
  border: none;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--fg-2);
  padding: 8px 18px;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}

.pr-toggle button.is-on {
  background: var(--acc);
  color: var(--bg);
  font-weight: 600;
}

.pr-save {
  font-size: 10px;
  color: var(--acc);
  font-weight: 600;
  margin-left: 4px;
}

/* ---------- Plan cards ---------- */
.pr-plans {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  overflow: hidden;
  background: var(--bg);
}

@media (max-width: 900px) {
  .pr-plans {
    grid-template-columns: 1fr;
  }
}

.pr-plan {
  padding: 36px 28px 32px;
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
}

.pr-plan:last-child {
  border-right: 0;
}

@media (max-width: 900px) {
  .pr-plan {
    border-right: 0 !important;
    border-bottom: 1px solid var(--line) !important;
  }

  .pr-plan:last-child {
    border-bottom: 0 !important;
  }
}

.pr-plan--featured {
  background: var(--bg-2);
  position: relative;
}

.pr-plan--featured::before {
  content: "Recommandé";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  background: var(--acc);
  color: var(--bg);
  font-family: var(--font-mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  text-align: center;
  padding: 4px 0;
  font-weight: 600;
}

.pr-plan__name {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--fg-2);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 6px;
}

.pr-plan__tag {
  font-size: 12.5px;
  color: var(--fg-3);
  margin: 0 0 16px;
  line-height: 1.4;
}

.pr-plan__price {
  font-family: var(--font-mono);
  line-height: 1;
  margin-bottom: 2px;
}

.pr-plan__price .num {
  font-size: 42px;
  font-weight: 600;
  color: var(--fg);
  letter-spacing: -0.03em;
}

.pr-plan__price .num.acc {
  color: var(--acc);
}

.pr-plan__price small {
  font-size: 13px;
  font-weight: 400;
  color: var(--fg-2);
  letter-spacing: 0;
}

.pr-plan__sub {
  font-size: 11px;
  color: var(--fg-3);
  font-family: var(--font-mono);
  margin-bottom: 14px;
}

.pr-plan__quota {
  font-size: 12px;
  color: var(--fg-1);
  background: rgba(255, 255, 255, 0.03);
  padding: 8px 12px;
  border-radius: 6px;
  border: 1px solid var(--line);
  margin-bottom: 18px;
}

.pr-plan__feat {
  list-style: none;
  margin: 0 0 24px;
  padding: 0;
  flex: 1;
}

.pr-plan__feat li {
  font-size: 12.5px;
  color: var(--fg-1);
  padding: 5px 0;
  display: flex;
  gap: 8px;
  align-items: baseline;
  line-height: 1.4;
}

.pr-plan__feat li::before {
  content: "✓";
  color: var(--acc);
  font-weight: 600;
  font-size: 11px;
  flex-shrink: 0;
}

.pr-plan__feat li.bonus {
  color: var(--acc);
  font-weight: 500;
}

.pr-plan__feat li.bonus::before {
  content: "★";
}

.pr-plan__cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 12px 0;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  border-radius: 6px;
  text-decoration: none;
  text-align: center;
  border: 1px solid var(--line);
  color: var(--fg-1);
  background: transparent;
  transition: background 0.15s, border-color 0.15s;
}

.pr-plan__cta:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--fg-3);
}

.pr-plan__cta--primary {
  background: var(--acc);
  color: var(--bg);
  border-color: var(--acc);
  font-weight: 600;
}

.pr-plan__cta--primary:hover {
  background: oklch(0.78 0.18 142);
}

.pr-plan__cta .pr-ms-logo {
  width: 10px;
  height: 10px;
}

.pr-plan__vat {
  font-size: 10px;
  color: var(--fg-4);
  text-align: center;
  margin-top: 8px;
  font-family: var(--font-mono);
}

/* ---------- One-shot audit ---------- */
.pr-oneshot {
  display: flex;
  align-items: center;
  gap: 32px;
  padding: 32px 36px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--bg);
  position: relative;
}

@media (max-width: 720px) {
  .pr-oneshot {
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
  }
}

.pr-oneshot__chip {
  position: absolute;
  top: -10px;
  left: 28px;
  font-family: var(--font-mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--bg);
  background: var(--fg-2);
  padding: 2px 10px;
  border-radius: 100px;
}

.pr-oneshot h3 {
  font-size: 20px;
  margin: 0 0 6px;
}

.pr-oneshot p {
  font-size: 13px;
  color: var(--fg-2);
  margin: 0 0 12px;
  line-height: 1.5;
}

.pr-oneshot__feat {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pr-oneshot__feat span {
  font-size: 11px;
  font-family: var(--font-mono);
  color: var(--fg-2);
  border: 1px solid var(--line);
  border-radius: 100px;
  padding: 4px 12px;
}

.pr-oneshot__buy {
  text-align: center;
  flex-shrink: 0;
}

.pr-oneshot__price {
  font-family: var(--font-mono);
  line-height: 1;
  margin-bottom: 10px;
}

.pr-oneshot__price .num {
  font-size: 40px;
  font-weight: 600;
  color: var(--fg);
  letter-spacing: -0.03em;
}

.pr-oneshot__price small {
  font-size: 13px;
  color: var(--fg-2);
}

.pr-oneshot__cta {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  border: 1px solid var(--acc);
  color: var(--acc);
  border-radius: 6px;
  padding: 10px 22px;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.15s;
}

.pr-oneshot__cta:hover {
  background: rgba(0, 255, 80, 0.06);
}

/* ---------- MS partner strip ---------- */
.pr-ms-strip {
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 28px 36px;
  border: 1px solid rgba(0, 164, 239, 0.18);
  border-radius: var(--r-md);
  background: rgba(0, 164, 239, 0.04);
}

@media (max-width: 720px) {
  .pr-ms-strip {
    flex-direction: column;
    align-items: flex-start;
  }
}

.pr-ms-strip__icon {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3px;
  width: 32px;
  height: 32px;
  flex-shrink: 0;
}

.pr-ms-strip__icon i {
  display: block;
}

.pr-ms-strip__icon i:nth-child(1) {
  background: #f25022;
}

.pr-ms-strip__icon i:nth-child(2) {
  background: #7fba00;
}

.pr-ms-strip__icon i:nth-child(3) {
  background: #00a4ef;
}

.pr-ms-strip__icon i:nth-child(4) {
  background: #ffb900;
}

.pr-ms-strip h3 {
  font-size: 15px;
  margin: 0 0 4px;
  color: var(--fg);
}

.pr-ms-strip p {
  font-size: 12.5px;
  color: var(--fg-2);
  margin: 0 0 10px;
  line-height: 1.5;
}

.pr-ms-strip code {
  font-size: 11px;
  background: rgba(0, 164, 239, 0.12);
  padding: 2px 6px;
  border-radius: 3px;
  color: #7fc7ff;
}

.pr-ms-strip__list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pr-ms-strip__list span {
  font-size: 11px;
  font-family: var(--font-mono);
  color: #7fc7ff;
  border: 1px solid rgba(0, 164, 239, 0.18);
  border-radius: 100px;
  padding: 4px 12px;
}

.pr-ms-strip__cta {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  border: 1px solid #00a4ef;
  color: #7fc7ff;
  background: rgba(0, 164, 239, 0.08);
  border-radius: 6px;
  padding: 10px 22px;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.15s;
  flex-shrink: 0;
}

.pr-ms-strip__cta:hover {
  background: rgba(0, 164, 239, 0.14);
}

/* ---------- Comparison table ---------- */
.pr-ctab-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.pr-ctab {
  width: 100%;
  border-collapse: collapse;
  font-size: 12.5px;
  min-width: 700px;
}

.pr-ctab colgroup .first {
  width: 38%;
}

.pr-ctab colgroup .plan {
  width: calc(62% / 3);
}

.pr-ctab thead th {
  padding: 20px 16px 14px;
  text-align: center;
  vertical-align: bottom;
  border-bottom: 2px solid var(--line);
}

.pr-ctab thead th:first-child {
  text-align: left;
}

.pr-ctab thead th.featured {
  background: rgba(255, 255, 255, 0.02);
}

.pr-ctab__label {
  font-family: var(--font-mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--fg-3);
}

.pr-ctab__title {
  font-size: 16px;
  font-weight: 600;
  color: var(--fg);
}

.pr-ctab__note {
  font-size: 11px;
  color: var(--fg-3);
}

.pr-ctab__note a {
  color: var(--acc);
  text-decoration: none;
}

.pr-ctab__plan {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--fg);
}

.pr-ctab__plan.acc {
  color: var(--acc);
}

.pr-ctab__price {
  margin: 4px 0 8px;
}

.pr-ctab__price .num {
  font-family: var(--font-mono);
  font-size: 22px;
  font-weight: 600;
  color: var(--fg);
}

.pr-ctab__price .num.acc {
  color: var(--acc);
}

.pr-ctab__price small {
  font-size: 11px;
  color: var(--fg-3);
}

.pr-ctab__minicta {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 11px;
  border: 1px solid var(--line);
  color: var(--fg-2);
  border-radius: 4px;
  padding: 4px 14px;
  text-decoration: none;
  transition: background 0.15s;
}

.pr-ctab__minicta:hover {
  background: rgba(255, 255, 255, 0.04);
}

.pr-ctab__minicta.primary {
  background: var(--acc);
  color: var(--bg);
  border-color: var(--acc);
  font-weight: 600;
}

/* Table body */
.pr-ctab td {
  padding: 9px 16px;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.05);
  text-align: center;
  color: var(--fg-2);
  vertical-align: middle;
}

.pr-ctab td:first-child {
  text-align: left;
  color: var(--fg-1);
  font-weight: 500;
}

.pr-ctab td:first-child small {
  display: block;
  font-weight: 400;
  color: var(--fg-3);
  font-size: 10.5px;
  margin-top: 1px;
}

.pr-ctab td.featured {
  background: rgba(255, 255, 255, 0.02);
}

.pr-ctab .group td {
  background: rgba(255, 255, 255, 0.02);
  border-bottom: 1px solid var(--line);
  font-weight: 600;
  color: var(--fg);
  font-size: 12px;
  text-align: left;
  padding: 10px 16px;
}

.pr-ctab .group .ic {
  display: inline-block;
  width: 6px;
  height: 6px;
  background: var(--acc);
  border-radius: 50%;
  margin-right: 8px;
  vertical-align: middle;
}

.pr-ctab .num-big {
  font-family: var(--font-mono);
  font-size: 18px;
  font-weight: 600;
  color: var(--fg);
}

.pr-ctab .acc {
  color: var(--acc);
}

.pr-ctab .dim {
  color: var(--fg-4);
}

.pr-ctab .pill {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border: 1px solid var(--line);
  border-radius: 100px;
  padding: 3px 10px;
  color: var(--fg-2);
}

.pr-ctab .rt {
  color: var(--acc);
  font-size: 8px;
  margin-right: 2px;
}

.pr-ctab td.yes::before {
  content: "✓";
  color: var(--acc);
  font-weight: 600;
}

.pr-ctab td.no {
  color: var(--fg-4);
}

.rep-sig__rows .v {
  color: var(--fg);
}

.rep-sig__rows .v.acc {
  color: var(--acc);
}

.rep-sig__rows .v.url {
  color: var(--acc);
  text-decoration: none;
}

.rep-sig__qr {
  width: 96px;
  height: 96px;
  background: #fff;
  border-radius: 4px;
  padding: 6px;
}

.rep-sig__qr svg {
  width: 100%;
  height: 100%;
}

.rep-sig__qr-cap {
  margin-top: 6px;
  font-family: var(--font-mono);
  font-size: 9px;
  color: var(--fg-3);
  text-align: center;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* =========================================================
   LEGAL PROSE PAGES (terms, privacy, refund)
   ========================================================= */
.legal-prose {
  max-width: 760px;
  margin: 0 auto;
  padding-bottom: 80px;
}

.legal-prose h2 {
  font-size: 17px;
  font-weight: 600;
  color: var(--fg);
  margin: 40px 0 12px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.legal-prose h2:first-of-type {
  border-top: 0;
  margin-top: 0;
  padding-top: 0;
}

.legal-prose h3 {
  font-size: 14px;
  font-weight: 600;
  color: var(--fg-1);
  margin: 20px 0 8px;
}

.legal-prose p {
  font-size: 13.5px;
  color: var(--fg-2);
  line-height: 1.7;
  margin: 0 0 12px;
}

.legal-prose ul,
.legal-prose ol {
  font-size: 13.5px;
  color: var(--fg-2);
  line-height: 1.7;
  padding-left: 24px;
  margin: 0 0 16px;
}

.legal-prose li {
  margin-bottom: 4px;
}

.legal-prose a {
  color: var(--acc);
  text-decoration: none;
}

.legal-prose a:hover {
  text-decoration: underline;
}

.legal-prose code {
  font-family: var(--font-mono);
  font-size: 12px;
  background: rgba(255, 255, 255, 0.04);
  padding: 2px 6px;
  border-radius: 3px;
  color: var(--fg-1);
}

.legal-prose strong {
  color: var(--fg);
}

.legal-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12.5px;
  margin: 12px 0 20px;
}

.legal-table th {
  text-align: left;
  font-weight: 600;
  padding: 10px 14px;
  color: var(--fg);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
}

.legal-table td {
  padding: 8px 14px;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.06);
  color: var(--fg-2);
  line-height: 1.5;
}

.legal-table td strong {
  color: var(--fg-1);
}

/* =========================================================
   ACTIONS bar (sticky bottom inside main)
   ========================================================= */
.rep-actions {
  display: flex;
  gap: 8px;
  padding: 14px 28px;
  border-top: 1px solid var(--line);
  background: var(--bg);
  position: sticky;
  bottom: 0;
  z-index: 4;
}

.rep-actions .group {
  margin-left: auto;
  display: flex;
  gap: 8px;
  align-items: center;
}

.rep-actions .saved {
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--fg-3);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* =========================================================
   AUTH (login / register)
   ========================================================= */
.auth {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 480px;
  color: var(--fg);
}

@media (max-width: 880px) {
  .auth {
    grid-template-columns: 1fr;
  }

  .auth__aside {
    display: none;
  }
}

.auth__aside {
  background: var(--bg-1);
  border-right: 1px solid var(--line);
  padding: 28px 36px 36px;
  display: flex;
  flex-direction: column;
  gap: 28px;
  position: relative;
  overflow: hidden;
}

.auth__aside::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, oklch(0.18 0.01 256 / 0.7) 1px, transparent 1px),
    linear-gradient(to bottom, oklch(0.18 0.01 256 / 0.7) 1px, transparent 1px);
  background-size: 32px 32px;
  background-position: -1px -1px;
  mask-image: radial-gradient(circle at 30% 50%, black 0%, transparent 70%);
  pointer-events: none;
}

.auth__aside>* {
  position: relative;
  z-index: 1;
}

.auth__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--fg);
}

.auth__brand .word {
  font-family: var(--font-mono);
  font-size: 14px;
  letter-spacing: -0.045em;
  font-weight: 500;
}

.auth__brand .sub {
  font-family: var(--font-mono);
  font-size: 9.5px;
  color: var(--fg-3);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding-left: 8px;
  border-left: 1px solid var(--line);
}

.auth__hero {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 560px;
}

.auth__hero h1 {
  font-family: var(--font-display);
  font-size: clamp(34px, 4vw, 48px);
  letter-spacing: -0.025em;
  font-weight: 500;
  margin: 0 0 16px;
  line-height: 1.05;
}

.auth__hero h1 em {
  font-family: var(--font-serif);
  font-style: italic;
  color: var(--acc);
  font-weight: 400;
}

.auth__hero p {
  font-size: 15px;
  color: var(--fg-1);
  max-width: 48ch;
  line-height: 1.6;
  margin: 0;
}

.auth__sample {
  margin-top: 28px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  overflow: hidden;
  font-family: var(--font-mono);
  font-size: 11.5px;
  max-width: 480px;
}

.auth__sample-head {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-bottom: 1px solid var(--line);
  background: var(--bg-1);
}

.auth__sample-head .dots {
  display: flex;
  gap: 5px;
}

.auth__sample-head .dots span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--bg-3);
}

.auth__sample-head .ttl {
  margin-left: 4px;
  color: var(--fg-3);
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.auth__sample-head .live {
  margin-left: auto;
  color: var(--acc);
  font-size: 9.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.auth__sample-head .live::before {
  content: "";
  width: 6px;
  height: 6px;
  background: var(--acc);
  border-radius: 50%;
}

.auth__sample-body {
  padding: 14px 16px;
  color: var(--fg-2);
  line-height: 1.85;
}

.auth__sample-body .pr {
  color: var(--fg-3);
}

.auth__sample-body .acc {
  color: var(--acc);
}

.auth__sample-body .warn {
  color: oklch(0.85 0.16 75);
}

.auth__bottom-meta {
  display: flex;
  gap: 18px;
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--fg-3);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.auth__bottom-meta span::before {
  content: "\25A0";
  color: var(--acc-dim);
  margin-right: 5px;
}

.auth__card {
  padding: 28px 48px 36px;
  display: flex;
  flex-direction: column;
  gap: 28px;
  align-items: stretch;
  justify-content: center;
}

@media (max-width: 540px) {
  .auth__card {
    padding: 28px 24px;
  }
}

.auth__card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--fg-3);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.auth__card-top a {
  color: var(--fg-2);
  text-decoration: none;
}

.auth__card-top a:hover {
  color: var(--acc);
}

.auth__card-form {
  flex: 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.auth__title {
  font-family: var(--font-display);
  font-size: 26px;
  letter-spacing: -0.02em;
  font-weight: 500;
  margin: 0 0 4px;
}

.auth__sub {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--fg-3);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin: 0;
}

.auth__oauth {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.auth__oauth-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: var(--bg-1);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  color: var(--fg);
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: all var(--t-fast);
  width: 100%;
  text-align: left;
}

.auth__oauth-btn:hover {
  border-color: var(--line-strong);
  background: var(--bg-2);
}

.auth__oauth-btn.primary {
  background: var(--fg);
  color: #000;
  border-color: var(--fg);
}

.auth__oauth-btn.primary:hover {
  background: var(--acc);
  border-color: var(--acc);
}

.auth__oauth-btn .icon {
  width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.auth__oauth-btn .icon svg {
  width: 18px;
  height: 18px;
}

.auth__oauth-btn .meta {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  opacity: 0.7;
}

.auth__oauth-btn.primary .meta {
  color: #000;
}

.auth__div {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 9.5px;
  color: var(--fg-3);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.auth__div::before,
.auth__div::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}

.auth__field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.auth__field label {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--fg-3);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.auth__field input {
  height: 42px;
  padding: 0 14px;
  background: var(--bg-1);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  color: var(--fg);
  font-family: var(--font-mono);
  font-size: 13px;
  transition: all var(--t-fast);
}

.auth__field input::placeholder {
  color: var(--fg-3);
}

.auth__field input:focus {
  outline: none;
  border-color: var(--acc-dim);
  background: var(--bg-2);
}

.auth__field-row {
  display: flex;
  align-items: baseline;
  gap: 12px;
}

.auth__field-row label {
  flex: 1;
}

.auth__field-row a {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--fg-2);
  text-decoration: none;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.auth__field-row a:hover {
  color: var(--acc);
}

.auth__submit {
  height: 44px;
  background: var(--acc);
  border: 0;
  border-radius: var(--r-md);
  color: #000;
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--t-fast);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.auth__submit:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 20px oklch(0.45 0.14 142 / 0.4);
}

.auth__remember {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-sans);
  font-size: 12.5px;
  color: var(--fg-1);
}

.auth__remember input {
  width: 14px;
  height: 14px;
  accent-color: var(--acc);
}

.auth__sso {
  display: flex;
  gap: 8px;
}

.auth__sso a {
  flex: 1;
  text-align: center;
  padding: 10px;
  border: 1px dashed var(--line);
  border-radius: var(--r-sm);
  text-decoration: none;
  color: var(--fg-2);
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: all var(--t-fast);
}

.auth__sso a:hover {
  border-color: var(--line-strong);
  border-style: solid;
  color: var(--fg);
}

.auth__foot {
  margin-top: auto;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.auth__foot-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--fg-3);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.auth__foot-row a {
  color: var(--fg-2);
  text-decoration: none;
}

.auth__foot-row a:hover {
  color: var(--acc);
}

.auth__foot-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.auth__foot-trust span {
  font-family: var(--font-mono);
  font-size: 9px;
  color: var(--fg-3);
  border: 1px solid var(--line);
  padding: 2px 6px;
  border-radius: 2px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.auth__legal {
  font-size: 11.5px;
  color: var(--fg-3);
  line-height: 1.55;
}

.auth__legal a {
  color: var(--fg-1);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.auth__legal a:hover {
  color: var(--acc);
}