/* ============================================
   REVISATOR — Shared component & layout extensions
   Extends aux.css with everything needed for:
   wizards, dashboard, settings, pricing, landing,
   legal, toasts, modals, cookies, tooltips.
   ============================================ */

@import url('aux.css');

/* ---------- LANG SELECTOR (top-right, all auth pages) ---------- */
.lang-pill {
  display: inline-flex;
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: 100px;
  padding: 2px;
  gap: 0;
}

.lang-pill button {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 100px;
  color: var(--ink-3);
  background: none;
  border: none;
  cursor: pointer;
  transition: background 0.12s, color 0.12s;
}

.lang-pill button.on {
  background: var(--ink);
  color: var(--paper);
}

.lang-pill button:hover:not(.on) { color: var(--ink); }

/* ---------- TOP BANDEAU (trial, alerts) ---------- */
.app-banner {
  background: var(--warn-bg);
  color: var(--warn);
  border-bottom: 1px solid var(--warn);
  padding: 8px 24px;
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 13px;
  position: relative;
}

[data-theme="dark"] .app-banner {
  background: var(--warn-bg);
  color: var(--warn);
}

.app-banner-mark {
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--warn);
  color: var(--warn-bg);
  display: grid; place-items: center;
  font-family: 'IBM Plex Serif', serif;
  font-weight: 600;
  font-size: 12px;
  flex-shrink: 0;
}

.app-banner-text { flex: 1; }
.app-banner-text strong { color: var(--ink); font-weight: 600; }

.app-banner-cta {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--warn);
  text-decoration: underline;
  text-underline-offset: 3px;
  font-weight: 500;
}

.app-banner-cta:hover { color: var(--ink); }

.app-banner-close {
  width: 22px; height: 22px;
  border-radius: 4px;
  color: var(--ink-3);
  display: grid; place-items: center;
  background: transparent;
  border: none;
  cursor: pointer;
}
.app-banner-close:hover { background: rgba(0,0,0,0.06); color: var(--ink); }

/* ---------- WIZARD / STEPPER ---------- */
.wizard {
  max-width: 720px;
  margin: 0 auto;
  width: 100%;
}

.wizard-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  margin-bottom: 36px;
  position: relative;
}

.wizard-step {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 4px;
  position: relative;
}

.wizard-step + .wizard-step::before {
  content: "";
  position: absolute;
  left: 0;
  right: calc(100% - 14px);
  top: 14px;
  border-top: 1.5px dashed var(--rule-2);
}

.wizard-step.done + .wizard-step::before,
.wizard-step.current + .wizard-step::before {
  border-top-style: solid;
  border-top-color: var(--ink);
}

.wizard-step-mark {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12px;
  font-weight: 600;
  flex-shrink: 0;
  background: var(--paper);
  border: 1.5px solid var(--rule-2);
  color: var(--ink-4);
  z-index: 1;
}

.wizard-step.current .wizard-step-mark {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper);
}

.wizard-step.done .wizard-step-mark {
  background: var(--surface);
  border-color: var(--ink);
  color: var(--ink);
}

.wizard-step-body {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.wizard-step-eyebrow {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 9.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-4);
}

.wizard-step.current .wizard-step-eyebrow { color: var(--ink-3); }

.wizard-step-title {
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-3);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.wizard-step.current .wizard-step-title { color: var(--ink); }
.wizard-step.done .wizard-step-title { color: var(--ink-2); }

.wizard-card {
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: 4px;
  padding: 36px 44px;
  box-shadow: var(--shadow);
}

.wizard-eyebrow {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 6px;
}

.wizard-title {
  font-family: 'IBM Plex Serif', serif;
  font-weight: 500;
  font-size: 26px;
  line-height: 1.2;
  letter-spacing: -0.018em;
  margin: 0 0 8px;
  color: var(--ink);
}

.wizard-sub {
  font-size: 14px;
  color: var(--ink-3);
  margin: 0 0 24px;
  line-height: 1.55;
  max-width: 56ch;
}

.wizard-foot {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px dashed var(--rule);
}

.wizard-foot .spacer { flex: 1; }

/* Color swatches for subject creation */
.color-swatches {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.color-swatch {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2px solid transparent;
  cursor: pointer;
  position: relative;
  outline: 1px solid var(--rule-soft);
  outline-offset: -1px;
}

.color-swatch.on {
  border-color: var(--ink);
  outline: 1px solid var(--paper);
  outline-offset: -2px;
}

.color-swatch.on::after {
  content: "";
  position: absolute;
  inset: -5px;
  border: 1px dashed var(--ink-3);
  border-radius: 50%;
}

/* Drag-drop zone for PDFs */
.dropzone {
  border: 1.5px dashed var(--rule-2);
  border-radius: 4px;
  padding: 36px 28px;
  text-align: center;
  background: var(--paper);
  cursor: pointer;
  transition: all 0.14s;
  position: relative;
}

.dropzone:hover, .dropzone.dragging {
  border-color: var(--ink);
  background: var(--paper-2);
}

.dropzone-glyph {
  width: 44px;
  height: 44px;
  margin: 0 auto 12px;
  border: 1.5px solid var(--ink-3);
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--ink-3);
  background: var(--surface);
}

.dropzone-title {
  font-family: 'IBM Plex Serif', serif;
  font-size: 16px;
  font-weight: 500;
  color: var(--ink);
  margin: 0 0 4px;
}

.dropzone-hint {
  font-size: 12.5px;
  color: var(--ink-3);
  margin: 0;
}

.dropzone-hint .or {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-4);
  margin: 0 6px;
}

.dropzone-hint .link {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 3px;
  font-weight: 500;
}

/* Uploaded file rows */
.upload-list {
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.upload-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 3px;
}

.upload-row-glyph {
  width: 24px; height: 24px;
  border: 1px solid var(--rule-2);
  border-radius: 2px;
  display: grid; place-items: center;
  color: var(--ink-3);
  background: var(--surface);
  flex-shrink: 0;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 8px;
  letter-spacing: 0.06em;
}

.upload-row-body {
  flex: 1;
  min-width: 0;
}

.upload-row-name {
  font-size: 13px;
  font-weight: 500;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.upload-row-meta {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10px;
  color: var(--ink-4);
  margin-top: 2px;
}

.upload-row-bar {
  height: 3px;
  background: var(--rule-soft);
  border-radius: 100px;
  margin-top: 6px;
  overflow: hidden;
}

.upload-row-bar-fill {
  height: 100%;
  background: var(--ok);
  border-radius: 100px;
  transition: width 0.4s;
}

.upload-row-bar-fill.in-progress { background: var(--ink); }

.upload-row-side {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.upload-row-side.ok { color: var(--ok); }
.upload-row-side.progress { color: var(--ink-3); }

.upload-row-x {
  width: 24px; height: 24px;
  border-radius: 3px;
  color: var(--ink-3);
  display: grid; place-items: center;
  background: none;
  border: none;
  cursor: pointer;
}
.upload-row-x:hover { background: var(--paper-2); color: var(--ink); }

/* Model picker tiles (used in onboarding step 3) */
.model-tiles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.model-tile {
  padding: 18px 18px 16px;
  border: 1px solid var(--rule);
  border-radius: 4px;
  background: var(--paper);
  cursor: pointer;
  text-align: left;
  transition: all 0.14s;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.model-tile:hover { border-color: var(--ink-3); }

.model-tile.on {
  border-color: var(--ink);
  background: var(--surface-2);
}

.model-tile-name {
  font-family: 'IBM Plex Serif', serif;
  font-size: 16px;
  font-weight: 500;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 8px;
}

.model-tile-badge {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 9px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: var(--paper-2);
  color: var(--ink-3);
  padding: 2px 6px;
  border-radius: 2px;
  margin-left: auto;
}

.model-tile.on .model-tile-badge {
  background: var(--ink);
  color: var(--paper);
}

.model-tile-desc {
  font-size: 12.5px;
  color: var(--ink-3);
  line-height: 1.5;
}

.model-tile-meta {
  margin-top: auto;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.04em;
  color: var(--ink-4);
  padding-top: 8px;
  border-top: 1px dashed var(--rule);
}

/* ---------- DASHBOARD ---------- */
.dash {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--paper);
}

.dash-top {
  border-bottom: 1px solid var(--rule);
  background: var(--surface);
  padding: 14px 32px;
  display: flex;
  align-items: center;
  gap: 18px;
}

.dash-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'IBM Plex Serif', serif;
  font-weight: 500;
  font-size: 17px;
}

.dash-top-spacer { flex: 1; }

.user-menu {
  position: relative;
}

.user-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--paper);
  display: grid;
  place-items: center;
  font-family: 'IBM Plex Serif', serif;
  font-weight: 500;
  font-size: 13px;
  border: 1px solid var(--rule);
  cursor: pointer;
}

[data-theme="dark"] .user-avatar { background: var(--ink-2); color: var(--paper); }

.user-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: 4px;
  box-shadow: var(--shadow-lift);
  min-width: 200px;
  overflow: hidden;
  z-index: 50;
}

.user-dropdown-head {
  padding: 12px 14px;
  border-bottom: 1px dashed var(--rule);
  background: var(--surface-2);
}

.user-dropdown-name {
  font-size: 13px;
  font-weight: 500;
  color: var(--ink);
}

.user-dropdown-email {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10px;
  color: var(--ink-4);
  margin-top: 2px;
}

.user-dropdown a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 14px;
  font-size: 13px;
  color: var(--ink-2);
  text-decoration: none;
}

.user-dropdown a:hover { background: var(--paper-2); color: var(--ink); }

.user-dropdown .sep {
  height: 1px;
  background: var(--rule-soft);
  margin: 4px 0;
}

.user-dropdown .danger { color: var(--bad); }
.user-dropdown .danger:hover { background: var(--bad-bg); color: var(--bad); }

/* Dashboard header */
.dash-main {
  padding: 40px 32px 80px;
  max-width: 1280px;
  margin: 0 auto;
  width: 100%;
}

.dash-head {
  display: flex;
  align-items: flex-end;
  gap: 24px;
  margin-bottom: 32px;
}

.dash-head-body { flex: 1; }

.dash-eyebrow {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 8px;
}

.dash-title {
  font-family: 'IBM Plex Serif', serif;
  font-weight: 500;
  font-size: 32px;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0;
}

.dash-sub {
  font-size: 14px;
  color: var(--ink-3);
  margin-top: 6px;
  max-width: 56ch;
}

/* Subject cards grid */
.subject-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 18px;
}

.subject-card {
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: 4px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  cursor: pointer;
  transition: all 0.16s;
  position: relative;
}

.subject-card:hover {
  border-color: var(--ink-3);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lift);
}

.subject-card-stripe {
  height: 6px;
  background: var(--accent);
}

.subject-card-body {
  padding: 18px 20px 16px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.subject-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.subject-card-title {
  font-family: 'IBM Plex Serif', serif;
  font-size: 18px;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin: 0;
}

.subject-card-meta {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.04em;
  color: var(--ink-4);
  text-transform: uppercase;
}

.subject-card-desc {
  font-size: 13px;
  color: var(--ink-3);
  line-height: 1.5;
  margin: 0;
}

.subject-card-stats {
  display: flex;
  gap: 14px;
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px dashed var(--rule);
}

.subject-card-stat {
  display: flex;
  align-items: baseline;
  gap: 5px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  color: var(--ink-3);
}

.subject-card-stat-num {
  font-family: 'IBM Plex Serif', serif;
  font-size: 15px;
  font-weight: 500;
  color: var(--ink);
}

.subject-card-stat.ok .subject-card-stat-num { color: var(--ok); }
.subject-card-stat.partial .subject-card-stat-num { color: var(--warn); }
.subject-card-stat.fail .subject-card-stat-num { color: var(--bad); }

.subject-card-foot {
  padding: 10px 20px;
  border-top: 1px solid var(--rule);
  background: var(--paper);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.06em;
  color: var(--ink-3);
}

.subject-card-cta {
  color: var(--ink);
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 4px;
}

/* New subject card */
.subject-card.new-card {
  background: transparent;
  border-style: dashed;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 32px 20px;
  min-height: 220px;
  gap: 8px;
}

.subject-card.new-card:hover {
  background: var(--paper-2);
  border-style: solid;
  border-color: var(--ink-3);
}

.subject-card.new-card .glyph {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1.5px solid var(--ink-3);
  display: grid;
  place-items: center;
  color: var(--ink-3);
  margin-bottom: 6px;
}

.subject-card.new-card:hover .glyph {
  border-color: var(--ink);
  color: var(--ink);
}

.subject-card.new-card .title {
  font-family: 'IBM Plex Serif', serif;
  font-size: 15px;
  font-weight: 500;
  color: var(--ink-2);
}

.subject-card.new-card .desc {
  font-size: 12px;
  color: var(--ink-3);
}

/* Dashboard global stats strip */
.dash-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 36px;
  padding: 20px 22px;
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: 4px;
}

.dash-stat-block {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.dash-stat-block + .dash-stat-block {
  border-left: 1px dashed var(--rule);
  padding-left: 18px;
}

.dash-stat-label {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.dash-stat-num {
  font-family: 'IBM Plex Serif', serif;
  font-size: 26px;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--ink);
  display: flex;
  align-items: baseline;
  gap: 4px;
}

.dash-stat-num .unit {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  color: var(--ink-3);
  font-weight: 400;
}

.dash-stat-trend {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10px;
  color: var(--ok);
  letter-spacing: 0.04em;
}

.dash-stat-trend.dn { color: var(--bad); }

/* ---------- SETTINGS ---------- */
.settings {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--paper);
}

.settings-body {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  max-width: 1100px;
  margin: 0 auto;
  width: 100%;
  padding: 36px 32px 80px;
  gap: 40px;
}

.settings-nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
  position: sticky;
  top: 36px;
  align-self: flex-start;
}

.settings-nav-label {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
  padding: 0 10px 10px;
  border-bottom: 1px solid var(--rule);
  margin-bottom: 6px;
}

.settings-nav a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 3px;
  font-size: 13.5px;
  color: var(--ink-2);
  text-decoration: none;
  cursor: pointer;
}

.settings-nav a:hover { background: var(--paper-2); color: var(--ink); }
.settings-nav a.on { background: var(--surface-2); color: var(--ink); font-weight: 500; }
.settings-nav a.danger { color: var(--bad); }
.settings-nav a.danger.on { background: var(--bad-bg); }

.settings-nav-icon {
  width: 16px; height: 16px;
  display: grid; place-items: center;
  color: var(--ink-3);
}

.settings-nav a.on .settings-nav-icon { color: var(--ink); }
.settings-nav a.danger .settings-nav-icon { color: var(--bad); }

/* Settings panel */
.settings-panel { min-width: 0; }

.settings-section {
  margin-bottom: 40px;
}

.settings-section-eyebrow {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 6px;
}

.settings-section-title {
  font-family: 'IBM Plex Serif', serif;
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.015em;
  margin: 0 0 6px;
}

.settings-section-sub {
  font-size: 13.5px;
  color: var(--ink-3);
  margin: 0 0 22px;
  max-width: 56ch;
}

.settings-card {
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: 4px;
  padding: 20px 24px;
}

.settings-card + .settings-card { margin-top: 14px; }

.settings-row {
  display: grid;
  grid-template-columns: 180px 1fr auto;
  gap: 24px;
  align-items: center;
  padding: 12px 0;
}

.settings-row + .settings-row { border-top: 1px dashed var(--rule); }

.settings-row-label {
  font-size: 13px;
  color: var(--ink-2);
  font-weight: 500;
}

.settings-row-hint {
  font-size: 12px;
  color: var(--ink-3);
  margin-top: 2px;
  font-weight: 400;
}

.settings-row-value {
  font-size: 13.5px;
  color: var(--ink);
}

.settings-input {
  width: 100%;
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 3px;
  padding: 8px 12px;
  font-size: 13.5px;
  font-family: inherit;
  color: var(--ink);
  outline: none;
}

.settings-input:focus { border-color: var(--ink); }

.settings-select {
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 3px;
  padding: 7px 28px 7px 10px;
  font-size: 13.5px;
  color: var(--ink);
  font-family: inherit;
  appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 10 10'><path d='M2 4l3 3 3-3' stroke='%236a604c' stroke-width='1.2' fill='none' stroke-linecap='round' stroke-linejoin='round'/></svg>");
  background-repeat: no-repeat;
  background-position: right 8px center;
  cursor: pointer;
}

.settings-action {
  font-size: 12.5px;
  color: var(--ink-2);
  text-decoration: none;
  padding: 6px 12px;
  border: 1px solid var(--rule);
  border-radius: 3px;
  background: var(--paper);
}
.settings-action:hover { border-color: var(--ink-3); color: var(--ink); }
.settings-action.primary { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.settings-action.primary:hover { opacity: 0.86; }
.settings-action.danger { color: var(--bad); border-color: var(--bad); }
.settings-action.danger:hover { background: var(--bad-bg); }

/* Plan card */
.plan-card {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: center;
  padding: 22px 24px;
  background: var(--surface);
  border: 1px solid var(--rule);
  border-left: 4px solid var(--accent);
  border-radius: 4px;
}

.plan-card-name {
  font-family: 'IBM Plex Serif', serif;
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.015em;
  display: flex;
  align-items: baseline;
  gap: 12px;
}

.plan-card-tag {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: var(--ok-bg);
  color: var(--ok);
  padding: 3px 8px;
  border-radius: 2px;
}

.plan-card-meta {
  margin-top: 4px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  color: var(--ink-3);
  letter-spacing: 0.04em;
}

.plan-card-price {
  font-family: 'IBM Plex Serif', serif;
  font-size: 26px;
  font-weight: 500;
  letter-spacing: -0.015em;
  color: var(--ink);
  display: flex;
  align-items: baseline;
  gap: 4px;
}

.plan-card-price .unit {
  font-size: 11px;
  color: var(--ink-3);
  font-family: 'IBM Plex Mono', monospace;
  font-weight: 400;
}

/* Charts (consumption) */
.usage-chart {
  display: flex;
  align-items: flex-end;
  gap: 4px;
  height: 80px;
  padding: 12px 16px;
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 3px;
  margin-top: 8px;
}

.usage-bar {
  flex: 1;
  background: var(--ink);
  border-radius: 1px;
  position: relative;
  min-height: 2px;
}

.usage-bar.muted { background: var(--rule-2); }
.usage-bar.faint { background: var(--rule); opacity: 0.6; }

.usage-bar-label {
  position: absolute;
  bottom: -16px;
  left: 50%;
  transform: translateX(-50%);
  font-family: 'IBM Plex Mono', monospace;
  font-size: 9px;
  color: var(--ink-4);
  letter-spacing: 0.04em;
}

.usage-bar.now::after {
  content: "";
  position: absolute;
  top: -4px;
  left: 50%;
  transform: translateX(-50%);
  width: 5px;
  height: 5px;
  background: var(--bad);
  border-radius: 50%;
}

/* Danger zone */
.danger-zone {
  border-color: var(--bad);
  background: var(--bad-bg);
}

[data-theme="dark"] .danger-zone { background: var(--surface-2); }

.danger-zone .settings-row-label {
  color: var(--bad);
}

/* ---------- PRICING ---------- */
.pricing {
  min-height: 100vh;
  background: var(--paper);
  display: flex;
  flex-direction: column;
}

.pricing-head {
  text-align: center;
  padding: 70px 24px 30px;
  max-width: 720px;
  margin: 0 auto;
}

.pricing-eyebrow {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 14px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.pricing-eyebrow::before, .pricing-eyebrow::after {
  content: "";
  width: 30px;
  height: 1px;
  background: var(--rule-2);
}

.pricing-title {
  font-family: 'IBM Plex Serif', serif;
  font-size: clamp(36px, 5vw, 52px);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -0.025em;
  margin: 0 0 14px;
}

.pricing-sub {
  font-size: 16px;
  color: var(--ink-3);
  margin: 0;
  line-height: 1.5;
  max-width: 52ch;
  margin-left: auto;
  margin-right: auto;
}

.pricing-toggle {
  display: inline-flex;
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: 100px;
  padding: 4px;
  margin: 28px auto 0;
  gap: 0;
  position: relative;
}

.pricing-toggle button {
  font-family: inherit;
  font-size: 13px;
  letter-spacing: 0;
  padding: 7px 18px;
  border-radius: 100px;
  border: none;
  cursor: pointer;
  color: var(--ink-3);
  background: transparent;
  display: flex;
  align-items: center;
  gap: 8px;
}

.pricing-toggle button.on {
  background: var(--ink);
  color: var(--paper);
}

.pricing-toggle .save-badge {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 9px;
  letter-spacing: 0.08em;
  background: var(--ok-bg);
  color: var(--ok);
  padding: 2px 6px;
  border-radius: 100px;
  text-transform: uppercase;
}

.pricing-toggle button.on .save-badge {
  background: var(--paper);
  color: var(--ok);
}

/* Pricing grid */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px 48px;
  width: 100%;
}

@media (max-width: 900px) {
  .pricing-grid { grid-template-columns: 1fr; }
}

.price-card {
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: 6px;
  padding: 28px 26px 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: relative;
}

.price-card.featured {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
  box-shadow: var(--shadow-lift);
}

[data-theme="dark"] .price-card.featured {
  background: var(--surface-2);
  color: var(--ink);
  border: 1px solid var(--rule-2);
}

.price-card.featured .price-card-name { color: var(--paper); }
.price-card.featured .price-card-desc { color: rgba(255,255,255,0.7); }
.price-card.featured .price-card-price { color: var(--paper); }
.price-card.featured .price-card-feature { color: rgba(255,255,255,0.85); }
.price-card.featured .price-card-feature.muted { color: rgba(255,255,255,0.4); }

[data-theme="dark"] .price-card.featured .price-card-name,
[data-theme="dark"] .price-card.featured .price-card-price { color: var(--ink); }
[data-theme="dark"] .price-card.featured .price-card-desc { color: var(--ink-3); }
[data-theme="dark"] .price-card.featured .price-card-feature { color: var(--ink-2); }
[data-theme="dark"] .price-card.featured .price-card-feature.muted { color: var(--ink-4); }

.price-card-flag {
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--paper);
  color: var(--ink);
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 100px;
  border: 1px solid var(--rule);
  font-weight: 500;
}

[data-theme="dark"] .price-card-flag {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink-3);
}

.price-card-name {
  font-family: 'IBM Plex Serif', serif;
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.018em;
  margin: 0;
  color: var(--ink);
}

.price-card-desc {
  font-size: 13px;
  color: var(--ink-3);
  margin: 0;
  line-height: 1.5;
  min-height: 38px;
}

.price-card-price {
  display: flex;
  align-items: baseline;
  gap: 6px;
  font-family: 'IBM Plex Serif', serif;
  font-size: 40px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.price-card-price .currency { font-size: 22px; opacity: 0.5; }
.price-card-price .period {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  color: var(--ink-3);
  font-weight: 400;
  letter-spacing: 0.04em;
}

.price-card-was {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  color: var(--ink-4);
  text-decoration: line-through;
  margin-top: -8px;
}

.price-card-cta {
  background: var(--ink);
  color: var(--paper);
  padding: 11px 16px;
  border-radius: 3px;
  font-size: 13.5px;
  font-weight: 500;
  text-decoration: none;
  text-align: center;
  cursor: pointer;
  border: none;
  font-family: inherit;
  width: 100%;
  display: block;
}

.price-card-cta:hover { opacity: 0.88; }

.price-card.featured .price-card-cta {
  background: var(--paper);
  color: var(--ink);
}

[data-theme="dark"] .price-card.featured .price-card-cta {
  background: var(--ink);
  color: var(--paper);
}

.price-card-cta.secondary {
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--rule);
}

.price-card-features {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 9px;
  padding-top: 18px;
  border-top: 1px dashed var(--rule);
}

.price-card.featured .price-card-features { border-top-color: rgba(255,255,255,0.15); }
[data-theme="dark"] .price-card.featured .price-card-features { border-top-color: var(--rule); }

.price-card-feature {
  font-size: 13px;
  color: var(--ink-2);
  display: flex;
  align-items: flex-start;
  gap: 10px;
  line-height: 1.45;
}

.price-card-feature::before {
  content: "✓";
  color: var(--ok);
  font-weight: 600;
  flex-shrink: 0;
  width: 14px;
  margin-top: 1px;
}

.price-card-feature.muted::before { content: "·"; color: var(--ink-4); }
.price-card-feature.muted { color: var(--ink-4); text-decoration: line-through; opacity: 0.7; }

.price-card.featured .price-card-feature::before { color: var(--ok); }

/* Pricing comparison footer */
.pricing-faq {
  max-width: 720px;
  margin: 60px auto 80px;
  padding: 0 24px;
}

.faq-row {
  border-bottom: 1px solid var(--rule);
  padding: 18px 0;
}

.faq-q {
  font-family: 'IBM Plex Serif', serif;
  font-size: 17px;
  font-weight: 500;
  letter-spacing: -0.01em;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-q::after {
  content: "+";
  color: var(--ink-3);
  font-weight: 400;
  font-size: 22px;
  font-family: 'IBM Plex Sans', sans-serif;
}

.faq-row.open .faq-q::after { content: "−"; }

.faq-a {
  display: none;
  margin-top: 10px;
  font-size: 14px;
  color: var(--ink-2);
  line-height: 1.6;
  max-width: 60ch;
}

.faq-row.open .faq-a { display: block; }

/* ---------- BILLING — success / canceled ---------- */
.bill-result {
  min-height: 100vh;
  display: grid;
  place-items: center;
  background: var(--paper);
  padding: 40px 24px;
}

.bill-card {
  max-width: 480px;
  width: 100%;
  text-align: center;
}

.bill-stamp {
  width: 84px;
  height: 84px;
  margin: 0 auto 24px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  position: relative;
}

.bill-stamp.ok {
  background: var(--ok-bg);
  color: var(--ok);
}

.bill-stamp.dim {
  background: var(--paper-2);
  color: var(--ink-3);
  border: 1.5px dashed var(--rule-2);
}

.bill-stamp.ok::after {
  content: "";
  position: absolute;
  inset: -8px;
  border: 1px dashed var(--ok);
  border-radius: 50%;
  opacity: 0.5;
}

.bill-eyebrow {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 10px;
}

.bill-title {
  font-family: 'IBM Plex Serif', serif;
  font-weight: 500;
  font-size: 32px;
  line-height: 1.15;
  letter-spacing: -0.022em;
  margin: 0 0 12px;
}

.bill-body {
  font-size: 15px;
  color: var(--ink-2);
  line-height: 1.55;
  max-width: 44ch;
  margin: 0 auto 24px;
}

.bill-receipt {
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: 4px;
  padding: 14px 18px;
  margin: 24px auto;
  max-width: 360px;
  text-align: left;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11.5px;
  line-height: 1.7;
  color: var(--ink-2);
}

.bill-receipt-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

.bill-receipt-row .k { color: var(--ink-4); }
.bill-receipt-row .v { color: var(--ink); }
.bill-receipt-row.total { padding-top: 6px; border-top: 1px dashed var(--rule); margin-top: 4px; }
.bill-receipt-row.total .v { font-weight: 600; }

.bill-actions {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-top: 20px;
  flex-wrap: wrap;
}

/* Confetti light — paper scraps falling */
.confetti {
  position: fixed;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 1;
}

.confetti span {
  position: absolute;
  width: 8px;
  height: 12px;
  background: var(--ink);
  top: -20px;
  opacity: 0.7;
  animation: fall linear infinite;
}

.confetti span:nth-child(odd) { background: var(--accent); }
.confetti span:nth-child(3n) { background: var(--ok); }
.confetti span:nth-child(5n) { background: var(--warn); width: 6px; height: 6px; border-radius: 50%; }

@keyframes fall {
  to { transform: translateY(110vh) rotate(540deg); }
}

/* ---------- LIMIT REACHED MODAL/PAGE ---------- */
.limit-card {
  max-width: 520px;
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: 6px;
  padding: 30px 32px;
  box-shadow: var(--shadow-lift);
}

.limit-progress {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 22px 0 20px;
  padding: 14px 16px;
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 3px;
}

.limit-progress-bar {
  flex: 1;
  height: 8px;
  background: var(--rule-soft);
  border-radius: 100px;
  overflow: hidden;
  position: relative;
}

.limit-progress-bar-fill {
  position: absolute;
  inset: 0;
  background: var(--bad);
  border-radius: 100px;
}

.limit-progress-label {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--bad);
  font-weight: 600;
}

.limit-compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 22px 0;
}

.limit-compare-col {
  padding: 14px 16px;
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 3px;
}

.limit-compare-col.you { opacity: 0.6; }

.limit-compare-col.them {
  border-color: var(--ink);
  background: var(--surface-2);
}

.limit-compare-name {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 8px;
}

.limit-compare-name.them { color: var(--ink); }

.limit-compare-num {
  font-family: 'IBM Plex Serif', serif;
  font-size: 22px;
  font-weight: 500;
  color: var(--ink);
  letter-spacing: -0.015em;
}

.limit-compare-unit {
  font-size: 12px;
  color: var(--ink-3);
}

/* ---------- LANDING ---------- */
.lp {
  background: var(--paper);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.5;
  min-height: 100vh;
}

.lp-nav {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  gap: 32px;
  padding: 14px 32px;
  background: rgba(244, 237, 224, 0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--rule-soft);
}

[data-theme="dark"] .lp-nav { background: rgba(28, 24, 18, 0.92); }

.lp-nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'IBM Plex Serif', serif;
  font-weight: 500;
  font-size: 18px;
  letter-spacing: -0.01em;
  text-decoration: none;
  color: var(--ink);
}

.lp-nav-links {
  display: flex;
  gap: 20px;
  margin-left: 32px;
}

@media (max-width: 760px) {
  .lp-nav-links { display: none; }
}

.lp-nav-link {
  font-size: 14px;
  color: var(--ink-2);
  text-decoration: none;
}
.lp-nav-link:hover { color: var(--ink); }

.lp-nav-spacer { flex: 1; }

.lp-nav-cta {
  background: var(--ink);
  color: var(--paper);
  padding: 8px 16px;
  border-radius: 3px;
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
}

.lp-nav-cta:hover { opacity: 0.88; }

.lp-nav-ghost {
  font-size: 13px;
  color: var(--ink-2);
  text-decoration: none;
  padding: 8px 12px;
}

.lp-nav-ghost:hover { color: var(--ink); }

/* Hero */
.lp-hero {
  padding: 80px 32px 60px;
  max-width: 1180px;
  margin: 0 auto;
  position: relative;
}

.lp-hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 60px;
  align-items: center;
}

@media (max-width: 900px) {
  .lp-hero-grid { grid-template-columns: 1fr; gap: 40px; }
}

.lp-hero-eyebrow {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 18px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.lp-hero-eyebrow .new-pill {
  background: var(--ink);
  color: var(--paper);
  padding: 3px 8px;
  border-radius: 2px;
  font-size: 9px;
  letter-spacing: 0.14em;
}

.lp-hero-title {
  font-family: 'IBM Plex Serif', serif;
  font-size: clamp(40px, 5.5vw, 68px);
  line-height: 1.02;
  letter-spacing: -0.025em;
  font-weight: 500;
  margin: 0 0 24px;
  text-wrap: balance;
}

.lp-hero-title em {
  font-style: italic;
  color: var(--accent);
  background: linear-gradient(transparent 75%, var(--highlight) 75%);
  padding: 0 4px;
}

.lp-hero-body {
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink-2);
  margin: 0 0 28px;
  max-width: 44ch;
}

.lp-hero-ctas {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}

.lp-cta {
  background: var(--ink);
  color: var(--paper);
  padding: 13px 22px;
  border-radius: 3px;
  font-size: 14.5px;
  font-weight: 500;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: none;
  cursor: pointer;
  font-family: inherit;
}

.lp-cta:hover { opacity: 0.88; }

.lp-cta-ghost {
  background: transparent;
  color: var(--ink-2);
  padding: 13px 16px;
  border-radius: 3px;
  font-size: 14.5px;
  font-weight: 500;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.lp-cta-ghost:hover { color: var(--ink); }

.lp-hero-meta {
  margin-top: 24px;
  display: flex;
  align-items: center;
  gap: 18px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--ink-3);
}

.lp-hero-meta-item {
  display: flex;
  align-items: center;
  gap: 6px;
}

.lp-hero-meta-item .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--ok);
}

/* Hero illustration — stack of paper cards */
.lp-hero-visual {
  position: relative;
  aspect-ratio: 4 / 5;
}

.lp-stack-card {
  position: absolute;
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: 6px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.lp-stack-card .label {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 9px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
  padding: 8px 12px;
  border-bottom: 1px dashed var(--rule);
}

.lp-stack-card .head {
  font-family: 'IBM Plex Serif', serif;
  font-size: 14px;
  font-weight: 500;
  padding: 10px 12px 6px;
  color: var(--ink);
  line-height: 1.3;
}

.lp-stack-card .body {
  padding: 0 12px 12px;
  font-size: 11px;
  color: var(--ink-3);
  line-height: 1.45;
}

.lp-stack-card .line {
  height: 6px; background: var(--rule-soft);
  border-radius: 100px;
  margin-bottom: 6px;
}
.lp-stack-card .line.s { width: 60%; }
.lp-stack-card .line.m { width: 80%; }

.lp-stack-card .pill {
  display: inline-block;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 9px;
  background: var(--ok-bg);
  color: var(--ok);
  padding: 2px 6px;
  border-radius: 2px;
  letter-spacing: 0.06em;
}

/* Features section */
.lp-section {
  padding: 80px 32px;
  max-width: 1180px;
  margin: 0 auto;
}

.lp-section-eyebrow {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 16px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.lp-section-eyebrow::before {
  content: "";
  width: 28px; height: 1px; background: var(--rule-2);
}

.lp-section-title {
  font-family: 'IBM Plex Serif', serif;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  font-weight: 500;
  margin: 0 0 20px;
  max-width: 18ch;
  text-wrap: balance;
}

.lp-section-sub {
  font-size: 17px;
  color: var(--ink-3);
  line-height: 1.55;
  max-width: 56ch;
  margin: 0 0 48px;
}

.lp-features {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
  border-radius: 6px;
  overflow: hidden;
}

@media (max-width: 760px) {
  .lp-features { grid-template-columns: 1fr; }
}

.lp-feature {
  background: var(--surface);
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.lp-feature-num {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-4);
}

.lp-feature-title {
  font-family: 'IBM Plex Serif', serif;
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.012em;
  margin: 0;
  max-width: 24ch;
}

.lp-feature-body {
  font-size: 15px;
  color: var(--ink-2);
  line-height: 1.55;
  margin: 0;
  max-width: 48ch;
}

/* Screenshot showcase */
.lp-shots {
  margin-top: 48px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

@media (max-width: 760px) {
  .lp-shots { grid-template-columns: 1fr; }
}

.lp-shot {
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: 6px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.lp-shot-head {
  padding: 12px 18px;
  border-bottom: 1px solid var(--rule-soft);
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.lp-shot-head .dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--ok);
}

.lp-shot-frame {
  position: relative;
  flex: 1;
  background: var(--paper);
  overflow: hidden;
  padding: 22px 24px;
  min-height: 200px;
}

/* Testimonials */
.lp-quotes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

@media (max-width: 900px) {
  .lp-quotes { grid-template-columns: 1fr; }
}

.lp-quote {
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: 6px;
  padding: 24px 26px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.lp-quote-mark {
  font-family: 'IBM Plex Serif', serif;
  font-size: 36px;
  line-height: 0.4;
  color: var(--rule-2);
  height: 16px;
}

.lp-quote-text {
  font-family: 'IBM Plex Serif', serif;
  font-size: 17px;
  line-height: 1.45;
  letter-spacing: -0.005em;
  color: var(--ink);
  margin: 0;
  flex: 1;
}

.lp-quote-cite {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-top: 12px;
  border-top: 1px dashed var(--rule);
}

.lp-quote-avatar {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--paper-2);
  color: var(--ink-2);
  display: grid;
  place-items: center;
  font-family: 'IBM Plex Serif', serif;
  font-weight: 500;
  font-size: 13px;
}

.lp-quote-name {
  font-size: 13px;
  font-weight: 500;
  color: var(--ink);
}

.lp-quote-role {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10px;
  color: var(--ink-4);
  letter-spacing: 0.04em;
}

/* Pricing teaser */
.lp-pricing-teaser {
  background: var(--ink);
  color: var(--paper);
  border-radius: 6px;
  padding: 48px 40px;
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 40px;
  align-items: center;
}

[data-theme="dark"] .lp-pricing-teaser {
  background: var(--surface-2);
  border: 1px solid var(--rule-2);
  color: var(--ink);
}

@media (max-width: 760px) {
  .lp-pricing-teaser { grid-template-columns: 1fr; }
}

.lp-pricing-teaser h2 {
  font-family: 'IBM Plex Serif', serif;
  font-size: clamp(26px, 3.6vw, 36px);
  font-weight: 500;
  letter-spacing: -0.02em;
  margin: 0 0 14px;
  line-height: 1.1;
}

.lp-pricing-teaser p {
  font-size: 15px;
  opacity: 0.7;
  line-height: 1.55;
  margin: 0 0 22px;
}

.lp-pricing-teaser .cta {
  background: var(--paper);
  color: var(--ink);
  padding: 12px 22px;
  border-radius: 3px;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

[data-theme="dark"] .lp-pricing-teaser .cta {
  background: var(--ink);
  color: var(--paper);
}

.lp-pricing-teaser-tiers {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.lp-pt-tier {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 10px 0;
  border-bottom: 1px dashed rgba(255,255,255,0.15);
}

[data-theme="dark"] .lp-pt-tier { border-bottom-color: var(--rule); }

.lp-pt-tier:last-child { border-bottom: none; }

.lp-pt-tier-name {
  font-family: 'IBM Plex Serif', serif;
  font-size: 15px;
  font-weight: 500;
}

.lp-pt-tier-price {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 13px;
  letter-spacing: 0.04em;
}

/* Landing footer */
.lp-foot {
  border-top: 1px solid var(--rule);
  padding: 40px 32px 24px;
  max-width: 1180px;
  margin: 0 auto;
}

.lp-foot-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 36px;
}

@media (max-width: 760px) {
  .lp-foot-grid { grid-template-columns: 1fr 1fr; }
}

.lp-foot-brand {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 36ch;
}

.lp-foot-brand-row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'IBM Plex Serif', serif;
  font-size: 17px;
  font-weight: 500;
}

.lp-foot-brand-tag {
  font-size: 13px;
  color: var(--ink-3);
  line-height: 1.5;
}

.lp-foot-col-title {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 14px;
}

.lp-foot-col a {
  display: block;
  font-size: 13.5px;
  color: var(--ink-2);
  text-decoration: none;
  padding: 4px 0;
}

.lp-foot-col a:hover { color: var(--ink); }

.lp-foot-base {
  display: flex;
  align-items: center;
  gap: 18px;
  padding-top: 18px;
  border-top: 1px dashed var(--rule);
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--ink-3);
}

.lp-foot-base .spacer { flex: 1; }

/* ---------- LEGAL ---------- */
.legal {
  min-height: 100vh;
  background: var(--paper);
}

.legal-body {
  display: grid;
  grid-template-columns: 240px minmax(0, 720px);
  max-width: 1080px;
  margin: 0 auto;
  padding: 48px 32px 80px;
  gap: 60px;
}

@media (max-width: 900px) {
  .legal-body { grid-template-columns: 1fr; gap: 28px; }
}

.legal-toc {
  position: sticky;
  top: 90px;
  align-self: flex-start;
  font-size: 13px;
}

.legal-toc-title {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--rule);
}

.legal-toc a {
  display: flex;
  gap: 10px;
  padding: 5px 8px;
  border-radius: 2px;
  color: var(--ink-3);
  text-decoration: none;
  font-size: 12.5px;
  border-left: 2px solid transparent;
  margin-left: -10px;
  padding-left: 8px;
}

.legal-toc a:hover { color: var(--ink); }
.legal-toc a.on { color: var(--ink); border-left-color: var(--ink); font-weight: 500; }

.legal-toc-num {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10px;
  color: var(--ink-4);
  letter-spacing: 0.04em;
  min-width: 22px;
}

.legal-content {
  font-size: 15px;
  line-height: 1.7;
  color: var(--ink-2);
}

.legal-content h1 {
  font-family: 'IBM Plex Serif', serif;
  font-size: 36px;
  font-weight: 500;
  letter-spacing: -0.022em;
  line-height: 1.1;
  margin: 0 0 8px;
  color: var(--ink);
}

.legal-content .legal-meta {
  display: flex;
  gap: 16px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--ink-3);
  margin-bottom: 36px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--rule);
}

.legal-content h2 {
  font-family: 'IBM Plex Serif', serif;
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.014em;
  margin: 36px 0 12px;
  color: var(--ink);
  scroll-margin-top: 90px;
}

.legal-content h2 .num {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  color: var(--ink-4);
  letter-spacing: 0.06em;
  margin-right: 12px;
  vertical-align: middle;
}

.legal-content h3 {
  font-family: 'IBM Plex Sans', sans-serif;
  font-size: 15px;
  font-weight: 600;
  margin: 24px 0 8px;
  color: var(--ink);
}

.legal-content p { margin: 0 0 14px; }
.legal-content strong { color: var(--ink); font-weight: 600; }

.legal-content ul, .legal-content ol { padding-left: 22px; margin: 0 0 14px; }
.legal-content li { margin: 6px 0; }
.legal-content li::marker { color: var(--ink-4); }

.legal-content blockquote {
  margin: 18px 0;
  padding: 14px 18px;
  border-left: 3px solid var(--ink);
  background: var(--surface);
  font-style: italic;
  color: var(--ink-2);
}

.legal-content .defn {
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: 3px;
  padding: 12px 16px;
  margin: 14px 0;
  font-size: 14px;
}

.legal-content .defn dt {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 4px;
}

.legal-content .defn dd {
  margin: 0 0 12px;
  color: var(--ink-2);
}
.legal-content .defn dd:last-child { margin-bottom: 0; }

/* ---------- COOKIES BANNER ---------- */
.cookies {
  position: fixed;
  bottom: 24px;
  left: 24px;
  right: 24px;
  max-width: 720px;
  margin: 0 auto;
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: 6px;
  box-shadow: var(--shadow-lift);
  padding: 22px 24px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 20px;
  align-items: center;
  z-index: 90;
  animation: cookiesIn 0.4s cubic-bezier(0.2, 0.7, 0.2, 1);
}

@keyframes cookiesIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 720px) {
  .cookies { grid-template-columns: 1fr; }
}

.cookies-icon {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1.5px dashed var(--ink-3);
  margin-right: 12px;
  flex-shrink: 0;
}

.cookies-body { display: flex; align-items: flex-start; gap: 0; }

.cookies-title {
  font-family: 'IBM Plex Serif', serif;
  font-size: 16px;
  font-weight: 500;
  margin: 0 0 4px;
  letter-spacing: -0.01em;
}

.cookies-text {
  font-size: 13px;
  color: var(--ink-3);
  line-height: 1.5;
  margin: 0;
  max-width: 56ch;
}

.cookies-text a {
  color: var(--ink-2);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.cookies-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.cookies-btn {
  font-size: 12.5px;
  padding: 9px 14px;
  border-radius: 3px;
  cursor: pointer;
  font-family: inherit;
  border: 1px solid var(--rule);
  background: var(--paper);
  color: var(--ink-2);
}
.cookies-btn:hover { border-color: var(--ink-3); color: var(--ink); }
.cookies-btn.primary { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.cookies-btn.primary:hover { opacity: 0.88; }

/* ---------- TOASTS ---------- */
.toasts {
  position: fixed;
  bottom: 24px;
  right: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 100;
  max-width: 380px;
}

.toast {
  background: var(--surface);
  border: 1px solid var(--rule);
  border-left: 3px solid var(--ink-3);
  border-radius: 4px;
  padding: 12px 14px 12px 16px;
  box-shadow: var(--shadow);
  display: flex;
  align-items: flex-start;
  gap: 12px;
  animation: toastIn 0.3s cubic-bezier(0.2, 0.7, 0.2, 1);
}

@keyframes toastIn {
  from { opacity: 0; transform: translateX(20px); }
  to { opacity: 1; transform: translateX(0); }
}

.toast.success { border-left-color: var(--ok); }
.toast.error { border-left-color: var(--bad); }
.toast.info { border-left-color: var(--accent); }
.toast.warning { border-left-color: var(--warn); }

.toast-icon {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  margin-top: 1px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  font-weight: 700;
}

.toast.success .toast-icon { background: var(--ok-bg); color: var(--ok); }
.toast.error .toast-icon { background: var(--bad-bg); color: var(--bad); }
.toast.info .toast-icon { background: var(--accent-soft); color: var(--accent); }
.toast.warning .toast-icon { background: var(--warn-bg); color: var(--warn); }

.toast-body { flex: 1; }
.toast-title {
  font-size: 13px;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 2px;
}
.toast-text {
  font-size: 12.5px;
  color: var(--ink-3);
  line-height: 1.45;
}

.toast-close {
  width: 20px; height: 20px;
  border-radius: 3px;
  color: var(--ink-3);
  display: grid; place-items: center;
  cursor: pointer;
  background: none;
  border: none;
}
.toast-close:hover { background: var(--paper-2); color: var(--ink); }

/* ---------- MODAL ---------- */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(31, 27, 20, 0.45);
  display: grid;
  place-items: center;
  z-index: 80;
  padding: 24px;
  animation: backdropIn 0.18s ease;
}

[data-theme="dark"] .modal-backdrop { background: rgba(0, 0, 0, 0.65); }

@keyframes backdropIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.modal {
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: 6px;
  box-shadow: var(--shadow-lift);
  max-width: 480px;
  width: 100%;
  animation: modalIn 0.22s cubic-bezier(0.2, 0.7, 0.2, 1);
  overflow: hidden;
}

@keyframes modalIn {
  from { opacity: 0; transform: translateY(10px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.modal-head {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 22px 24px 18px;
  border-bottom: 1px dashed var(--rule);
}

.modal-head-stamp {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--bad-bg);
  color: var(--bad);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.modal-head-stamp.info { background: var(--accent-soft); color: var(--accent); }
.modal-head-stamp.warn { background: var(--warn-bg); color: var(--warn); }

.modal-head-body { flex: 1; }

.modal-title {
  font-family: 'IBM Plex Serif', serif;
  font-size: 18px;
  font-weight: 500;
  margin: 0 0 4px;
  letter-spacing: -0.012em;
}

.modal-sub {
  font-size: 13px;
  color: var(--ink-3);
  margin: 0;
  line-height: 1.5;
}

.modal-body {
  padding: 20px 24px;
  font-size: 14px;
  color: var(--ink-2);
  line-height: 1.55;
}

.modal-body p { margin: 0 0 12px; }
.modal-body p:last-child { margin-bottom: 0; }

.modal-confirm {
  margin-top: 14px;
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 3px;
  padding: 4px 12px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.modal-confirm-prefix {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  color: var(--ink-4);
  letter-spacing: 0.06em;
}

.modal-confirm-input {
  flex: 1;
  border: none;
  background: transparent;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 13px;
  padding: 8px 0;
  outline: none;
  color: var(--ink);
  letter-spacing: 0.08em;
}

.modal-foot {
  display: flex;
  gap: 10px;
  padding: 14px 24px;
  background: var(--paper);
  border-top: 1px solid var(--rule);
  justify-content: flex-end;
}

.modal-btn {
  padding: 9px 16px;
  border-radius: 3px;
  font-size: 13px;
  font-family: inherit;
  cursor: pointer;
  border: 1px solid var(--rule);
  background: var(--surface);
  color: var(--ink-2);
  text-decoration: none;
}
.modal-btn:hover { border-color: var(--ink-3); color: var(--ink); }
.modal-btn.primary { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.modal-btn.primary:hover { opacity: 0.86; }
.modal-btn.danger { background: var(--bad); color: var(--paper); border-color: var(--bad); }
.modal-btn.danger:hover { opacity: 0.86; }
.modal-btn:disabled { opacity: 0.4; cursor: not-allowed; }

/* ---------- TOOLTIPS ---------- */
.tt-anchor {
  position: relative;
  display: inline-flex;
  cursor: help;
}

.tt {
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--ink);
  color: var(--paper);
  padding: 6px 10px;
  border-radius: 3px;
  font-size: 11.5px;
  line-height: 1.4;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.12s, transform 0.12s;
  z-index: 60;
  box-shadow: var(--shadow);
  letter-spacing: 0.01em;
}

[data-theme="dark"] .tt {
  background: var(--surface-2);
  color: var(--ink);
  border: 1px solid var(--rule-2);
}

.tt::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 4px solid transparent;
  border-top-color: var(--ink);
}

[data-theme="dark"] .tt::after { border-top-color: var(--surface-2); }

.tt-anchor:hover .tt {
  opacity: 1;
  transform: translateX(-50%) translateY(-2px);
}

.tt.rich {
  white-space: normal;
  width: 240px;
  text-align: left;
  padding: 10px 12px;
}

.tt-key {
  display: inline-block;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10px;
  background: rgba(255,255,255,0.15);
  padding: 1px 5px;
  border-radius: 2px;
  margin-left: 6px;
  letter-spacing: 0.04em;
}

[data-theme="dark"] .tt-key { background: var(--paper-2); color: var(--ink-2); }

/* ---------- INDEX page (canvas of all pages) ---------- */
.index-shell {
  min-height: 100vh;
  background: var(--paper);
  padding: 32px;
}

.index-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
  max-width: 1380px;
  margin: 0 auto;
}

.index-card {
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: 4px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  transition: all 0.16s;
}

.index-card:hover {
  border-color: var(--ink-3);
  box-shadow: var(--shadow-lift);
  transform: translateY(-2px);
}

.index-card-frame {
  aspect-ratio: 4 / 3;
  background: var(--paper);
  position: relative;
  overflow: hidden;
}

.index-card-frame iframe {
  position: absolute;
  inset: 0;
  width: 240%;
  height: 240%;
  transform: scale(0.42);
  transform-origin: top left;
  border: none;
  pointer-events: none;
}

.index-card-body {
  padding: 14px 18px 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.index-card-eyebrow {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-4);
}

.index-card-title {
  font-family: 'IBM Plex Serif', serif;
  font-size: 17px;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.index-section {
  margin-bottom: 36px;
}

.index-section-head {
  display: flex;
  align-items: baseline;
  gap: 16px;
  margin-bottom: 16px;
}

.index-section-title {
  font-family: 'IBM Plex Serif', serif;
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.015em;
  margin: 0;
}

.index-section-rule {
  flex: 1;
  height: 1px;
  background: var(--rule);
}

.index-section-meta {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.06em;
  color: var(--ink-4);
}
