/* raccha.ai — marketing page layout (hero, bento, demo, install, status, about, get-started). */

/* Hero */
.hero {
  position: relative;
  padding: var(--space-9) 0 var(--space-10);
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: -120px;
  left: 50%;
  transform: translateX(-50%);
  width: 900px;
  height: 600px;
  background: radial-gradient(closest-side, var(--accent-glow), transparent 70%);
  pointer-events: none;
  z-index: -1;
}

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent-bright);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 6px 14px;
  margin-bottom: var(--space-5);
}

.hero__eyebrow .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--live);
}

.hero__title {
  font-size: var(--text-hero);
  font-weight: 800;
  line-height: 0.98;
  letter-spacing: -0.03em;
  margin: 0 0 var(--space-5);
  max-width: 14ch;
}

.hero__title .accent-word {
  color: var(--accent);
}

.hero__sub {
  font-size: var(--text-lg);
  line-height: 1.55;
  color: var(--text-muted);
  max-width: 54ch;
  margin: 0 0 var(--space-6);
}

.hero__ctas {
  display: flex;
  gap: var(--space-3);
  flex-wrap: wrap;
  margin-bottom: var(--space-7);
}

.hero__proof {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  flex-wrap: wrap;
  color: var(--text-dim);
  font-size: var(--text-sm);
}

.hero__proof-logos {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-mono);
  font-weight: 600;
  color: var(--text-muted);
}

.hero__proof-logos span {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 5px 12px;
}

@media (max-width: 560px) {
  .hero { padding: var(--space-7) 0 var(--space-8); }
  .hero__title { font-size: clamp(2.25rem, 10vw, 3rem); }
}

/* Sections */
.section {
  padding: var(--space-10) 0;
}

.section--alt { background: var(--bg-alt); }

@media (max-width: 767px) {
  .section { padding: var(--space-8) 0; }
}

/* Bento grid */
.bento {
  display: grid;
  gap: var(--space-4);
  grid-template-columns: repeat(2, 1fr);
}

.bento-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.bento-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.04);
}

.bento-card__icon {
  width: 22px;
  height: 22px;
  color: var(--accent);
  margin-bottom: var(--space-3);
}

.bento-card h2, .bento-card h3 {
  font-size: var(--text-xl);
  font-weight: 600;
  margin: 0 0 var(--space-2);
}

.bento-card p {
  color: var(--text-muted);
  margin: 0 0 var(--space-4);
  font-size: var(--text-base);
}

.bento-card ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.bento-card li {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: 15px;
}

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

/* Demo section */
.demo-intro {
  color: var(--text-muted);
  max-width: 70ch;
  margin: 0 0 var(--space-5);
}

.demo-carousel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
}

.demo-toolbar {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-4);
  flex-wrap: wrap;
}

.demo-filter-label {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-dim);
}

.demo-filter {
  font-family: var(--font-sans);
  font-size: 15px;
  padding: 10px 36px 10px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-bright);
  background: var(--surface);
  color: var(--text);
  min-height: 44px;
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%236b6c80' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
}

.demo-filter:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}

.demo-filter-hint {
  font-size: 14px;
  color: var(--text-dim);
}

.demo-play {
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-bright);
  background: var(--surface);
  color: var(--text-muted);
  cursor: pointer;
  min-height: 44px;
  margin-left: auto;
}

.demo-play:hover { border-color: var(--accent); color: var(--text); }

.demo-skeleton {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  padding: var(--space-4);
}

.demo-skeleton-line {
  height: 14px;
  border-radius: 4px;
  background: linear-gradient(90deg, #2a2a3a 25%, #3a3a4a 50%, #2a2a3a 75%);
  background-size: 200% 100%;
  animation: skeleton-shimmer 1.4s ease-in-out infinite;
}

@keyframes skeleton-shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.demo-state {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-3);
  padding: var(--space-6);
  color: #f2ead9;
}

.demo-state p { margin: 0; color: #b0b0c0; }
.demo-state strong { color: #f2ead9; }
.demo-state--error strong { color: #e87a6f; }

.demo-state .btn { margin-top: var(--space-2); }

.demo-tabs {
  display: flex;
  gap: var(--space-2);
  margin-bottom: var(--space-4);
  flex-wrap: wrap;
}

.demo-tab {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-muted);
  cursor: pointer;
  min-height: 44px;
}

.demo-tab:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.demo-tab.is-active { background: var(--surface-2); color: var(--text); border-color: var(--border-bright); }

.demo-stage {
  min-height: min(420px, 70vh);
  background: #0f0f16;
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.demo-stage-inner { padding: var(--space-4); }

.demo-transcript {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  margin-top: var(--space-5);
}

.demo-transcript h2 {
  font-size: var(--text-xl);
  font-weight: 600;
  margin: 0 0 var(--space-3);
}

.demo-transcript ul {
  margin: 0;
  padding-left: 1.2em;
  color: var(--text-muted);
}

.demo-transcript li { margin: var(--space-2) 0; }

.demo-meta {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  flex-wrap: wrap;
  margin-top: var(--space-5);
  color: var(--text-dim);
  font-size: var(--text-sm);
}

.demo-meta .verified-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--live);
}

.demo-note {
  color: var(--text-dim);
  font-size: 15px;
  margin: var(--space-4) 0 0;
  max-width: 80ch;
}
.demo-note a { text-decoration: underline; }

@media (max-width: 560px) {
  .tag-pills { flex-wrap: nowrap; overflow-x: auto; padding-bottom: var(--space-2); }
  .demo-tabs { flex-wrap: nowrap; overflow-x: auto; }
}

/* Install / SDK */
.sdk-intro {
  color: var(--text-muted);
  max-width: 72ch;
  margin: 0 0 var(--space-5);
}
.sdk-intro a { text-decoration: underline; }

.sdk-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  margin-bottom: var(--space-5);
}

.sdk-card-head {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-3);
  flex-wrap: wrap;
}

.sdk-card-head h3 {
  font-size: var(--text-xl);
  font-weight: 600;
  margin: 0;
}

.sdk-code {
  background: var(--text);
  color: #f2ead9;
  border-radius: var(--radius-sm);
  padding: var(--space-4);
  overflow-x: auto;
  font-family: var(--font-mono);
  font-size: 14px;
  line-height: 1.6;
  margin: var(--space-4) 0;
}

.sdk-comment { color: #8b8b9a; }

.sdk-grid, .connect-grid, .quickstart-grid {
  display: grid;
  gap: var(--space-4);
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  margin-bottom: var(--space-5);
}

.connect-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
}

.connect-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  margin-bottom: var(--space-3);
  flex-wrap: wrap;
}

.connect-card-head h3 { margin: 0; font-size: 1.1rem; }

.connect-badge {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-radius: 999px;
  padding: 4px 10px;
  background: var(--surface-2);
  color: var(--text-muted);
  border: 1px solid var(--border);
}

.connect-snippet-wrap {
  position: relative;
  margin-top: var(--space-3);
}

.connect-snippet {
  background: var(--text);
  color: #f2ead9;
  border-radius: var(--radius-sm);
  padding: var(--space-4);
  overflow-x: auto;
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.6;
  margin: 0;
}

.connect-copy {
  position: absolute;
  top: var(--space-3);
  right: var(--space-3);
  font-size: 12px;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 6px;
  border: 1px solid var(--border-bright);
  background: var(--surface);
  color: var(--text-muted);
  cursor: pointer;
  min-height: 44px;
  min-width: 44px;
}

.connect-copy:hover { border-color: var(--accent); color: var(--text); }
.connect-copy:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.connect-copy.copied { background: var(--live-bg); color: var(--live); border-color: var(--live-bg); }

.connect-flow {
  display: grid;
  gap: var(--space-4);
  grid-template-columns: repeat(4, 1fr);
  margin: var(--space-5) 0;
}

@media (max-width: 900px) {
  .connect-flow { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 560px) {
  .connect-flow { grid-template-columns: 1fr; }
}

.connect-flow-step {
  display: flex;
  gap: var(--space-3);
}

.connect-flow-num {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  font-size: 14px;
}

.connect-flow-step p {
  color: var(--text-muted);
  margin: var(--space-1) 0 0;
  font-size: 15px;
}

@media (max-width: 767px) {
  .connect-flow { grid-template-columns: 1fr; }
}

.connect-note {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-4);
  color: var(--text-muted);
  margin: var(--space-5) 0;
}
.connect-note a { text-decoration: underline; }
.quickstart-card a { text-decoration: underline; }

.connect-example {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  margin-bottom: var(--space-5);
}

/* Connect table */
.connect-table-wrap {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow-x: auto;
  margin-bottom: var(--space-5);
}

.connect-table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
  font-size: 15px;
}

.connect-table th, .connect-table td {
  padding: var(--space-3) var(--space-4);
  text-align: left;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}

.connect-table thead th {
  font-family: var(--font-mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-dim);
  font-weight: 600;
  background: var(--surface-2);
}

.connect-table tbody th {
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
}

.connect-table tbody tr:last-child th,
.connect-table tbody tr:last-child td { border-bottom: none; }

.connect-table code {
  font-family: var(--font-mono);
  font-size: 0.88em;
  background: var(--bg-alt);
  padding: 1px 5px;
  border-radius: 4px;
}

.connect-snippet-wrap--inline {
  margin: 0;
  min-width: 280px;
}

.connect-snippet-wrap--inline .connect-snippet {
  padding: var(--space-3);
  font-size: 12px;
  line-height: 1.55;
}

.connect-snippet-wrap--inline .connect-copy {
  position: static;
  font-size: 11px;
  padding: 4px 10px;
  min-height: 44px;
  min-width: 44px;
}

.connect-badge--caution {
  background: var(--caution-bg);
  color: var(--caution);
  border-color: var(--caution-bg);
}

@media (max-width: 767px) {
  .connect-table {
    display: block;
  }
  .connect-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
  }
  .connect-table tbody, .connect-table tr, .connect-table th, .connect-table td {
    display: block;
    width: 100%;
    box-sizing: border-box;
  }
  .connect-table tr {
    padding: var(--space-3) 0;
    border-bottom: 1px solid var(--border);
  }
  .connect-table tbody tr:last-child { border-bottom: none; }
  .connect-table th, .connect-table td {
    border: none;
    padding: var(--space-1) var(--space-4);
  }
  .connect-table td::before {
    content: attr(data-label);
    display: block;
    font-family: var(--font-mono);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-dim);
    margin-bottom: 4px;
  }
}

/* OS matrix */
.os-matrix-wrap {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow-x: auto;
  margin: var(--space-5) 0;
}

.os-matrix {
  width: 100%;
  min-width: 520px;
  border-collapse: collapse;
  font-size: 15px;
}

.os-matrix th, .os-matrix td {
  padding: var(--space-3) var(--space-4);
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.os-matrix thead th {
  font-family: var(--font-mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  font-weight: 600;
  background: var(--surface-2);
}

.os-matrix tbody tr:last-child th,
.os-matrix tbody tr:last-child td { border-bottom: none; }

.os-matrix .os-yes { color: var(--live); font-weight: 600; }
.os-matrix .os-no { color: var(--text-dim); }
.os-matrix .os-note { color: var(--text-dim); font-size: var(--text-sm); }

/* Status */
.status-intro { color: var(--text-muted); max-width: 80ch; margin: 0 0 var(--space-5); }

#status-panel { min-height: 420px; }
.status-skeleton {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}

.status-run-line-skeleton {
  display: flex;
  gap: var(--space-5);
  flex-wrap: wrap;
}

.status-run-line-skeleton span {
  height: 18px;
  width: 120px;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--surface-2) 25%, var(--border) 50%, var(--surface-2) 75%);
  background-size: 200% 100%;
  animation: skeleton-shimmer 1.4s ease-in-out infinite;
}

.status-table-skeleton {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-4);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.status-table-skeleton-row {
  height: 14px;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--surface-2) 25%, var(--border) 50%, var(--surface-2) 75%);
  background-size: 200% 100%;
  animation: skeleton-shimmer 1.4s ease-in-out infinite;
}

.status-error {
  background: var(--error-bg);
  color: var(--error);
  border: 1px solid var(--error);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
}

.status-error p { margin: 0 0 var(--space-3); }
.status-error p:last-of-type { margin-bottom: 0; }

@media (prefers-reduced-motion: reduce) {
  .status-run-line-skeleton span,
  .status-table-skeleton-row,
  .demo-skeleton-line { animation: none; }
}

.status-run-line {
  display: flex;
  gap: var(--space-5);
  flex-wrap: wrap;
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: var(--space-5);
}

.status-run-line strong { color: var(--text); }

.status-table-wrap {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow-x: auto;
  margin-bottom: var(--space-5);
}

table.status-table {
  width: 100%;
  min-width: 640px;
  border-collapse: collapse;
  font-size: 15px;
}

.status-table th, .status-table td {
  padding: var(--space-3) var(--space-4);
  text-align: left;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}

.status-table thead th {
  font-family: var(--font-mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-dim);
  font-weight: 600;
}

.status-table tbody th {
  font-weight: 600;
  color: var(--text);
  text-align: left;
}

.status-table tbody tr:last-child th,
.status-table tbody tr:last-child td { border-bottom: none; }

.status-pill {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-radius: 6px;
  padding: 3px 8px;
  display: inline-block;
}

.status-pill.done { color: var(--live); background: var(--live-bg); }
.status-pill.wip { color: var(--caution); background: var(--caution-bg); }
.status-pill.blocked { color: var(--text-muted); background: var(--surface-2); }

.status-gaps { max-width: 80ch; }
.status-gaps h3 { font-size: 1rem; margin: 0 0 var(--space-3); }
.status-gaps ul { margin: 0; padding-left: 1.2em; color: var(--text-muted); }
.status-gaps li { margin: var(--space-2) 0; }

/* Get started / auth box */
.get-started {
  background: var(--bg-alt);
  padding-top: var(--space-6);
}

.auth-box {
  display: grid;
  gap: var(--space-5);
  grid-template-columns: 1fr 1fr;
  align-items: start;
}

.auth-box .card h3 { margin: 0 0 var(--space-2); font-size: var(--text-2xl); }

.auth-box form {
  display: flex;
  gap: var(--space-3);
  margin-top: var(--space-4);
  flex-wrap: wrap;
}

.auth-box input[type="email"] {
  flex: 1 1 240px;
  padding: 12px 16px;
  border: 1px solid var(--border-bright);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--text);
  min-height: 44px;
}

.auth-box button[type="submit"] {
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  padding: 12px 22px;
  font-weight: 600;
  cursor: pointer;
  min-height: 44px;
}

.auth-box button[type="submit"]:hover { background: var(--accent-bright); }

.auth-result {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: var(--space-4);
  margin-top: var(--space-4);
  font-size: 15px;
}

.auth-result.error { border-color: var(--error); color: var(--error); background: var(--error-soft); }

.price-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
}

.price-card h2 { margin: 0 0 var(--space-3); font-size: var(--text-2xl); }
.price-card p { color: var(--text-muted); margin: 0; }

@media (max-width: 767px) {
  .auth-box { grid-template-columns: 1fr; }
}

/* About page */
.about-hero { padding: var(--space-9) 0 var(--space-6); min-height: 360px; }
.about-hero h1 {
  font-size: var(--text-3xl);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0 0 var(--space-4);
  max-width: 20ch;
}
.about-hero h1 em { font-style: normal; color: var(--accent); }
.about-hero p { font-size: var(--text-lg); color: var(--text-muted); margin: 0; max-width: 60ch; }

.about-section { margin-bottom: var(--space-6); }
.about-section h2 {
  font-size: var(--text-xl);
  font-weight: 600;
  margin: 0 0 var(--space-3);
}
.about-section p { color: var(--text-muted); margin: 0 0 var(--space-3); }

.quote-block {
  border-left: 3px solid var(--accent);
  padding-left: var(--space-5);
  margin: var(--space-6) 0;
  color: var(--text);
  font-size: var(--text-lg);
  font-style: italic;
  max-width: 60ch;
}

.ce-credit {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  margin: var(--space-6) 0;
}

.ce-credit h2 { margin: 0 0 var(--space-3); font-size: var(--text-xl); }
.ce-credit p { color: var(--text-muted); margin: 0 0 var(--space-4); }

.early-access-card {
  background: var(--live-soft);
  border: 1px solid var(--live-bg);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  margin: var(--space-6) 0;
}

.early-access-card h2 {
  font-size: var(--text-xl);
  font-weight: 600;
  margin: 0 0 var(--space-3);
}
.early-access-card p { color: var(--text-muted); margin: 0; }

/* Story timeline */
.story-timeline {
  display: grid;
  gap: var(--space-4);
  margin: var(--space-6) 0;
}

.story-step {
  display: flex;
  gap: var(--space-4);
  align-items: flex-start;
}

.story-step__num {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  font-size: 14px;
}

.story-step__body h2, .story-step__body h3 {
  font-size: var(--text-xl);
  font-weight: 600;
  margin: 0 0 var(--space-1);
}

.story-step__body p {
  color: var(--text-muted);
  margin: 0;
  max-width: 60ch;
}

/* Demo terminal / chat renderers (used by demo/engine.js) */
.term-line {
  font-family: var(--font-mono);
  font-size: 14px;
  line-height: 1.75;
  white-space: pre-wrap;
  word-break: break-word;
  color: #f2ead9;
}

.t-prompt { color: #7fbfa8; }
.t-comment { color: #a89c82; }
.t-str { color: #e8c85a; }
.t-key { color: #f2ead9; }
.t-ok { color: #6ed194; font-weight: 700; }
.t-err { color: #e87a6f; font-weight: 700; }

.term-cursor, .chat-cursor {
  display: inline-block;
  width: 8px;
  height: 1.1em;
  background: #f2ead9;
  vertical-align: text-bottom;
  margin-left: 1px;
  animation: blink 1s step-end infinite;
}

@keyframes blink { 50% { opacity: 0; } }

.chat-body { display: flex; flex-direction: column; gap: var(--space-3); }
.chat-msg { display: flex; flex-direction: column; gap: 4px; }
.chat-msg.user { align-items: flex-end; }
.chat-msg.assistant { align-items: flex-start; }

.chat-bubble {
  font-size: 15px;
  line-height: 1.55;
  font-family: var(--font-sans);
  color: #f2ead9;
  max-width: 90%;
}

.chat-msg.user .chat-bubble {
  background: #2a2a3a;
  padding: 10px 14px;
  border-radius: 14px 14px 4px 14px;
}

.chat-msg.assistant .chat-bubble { padding: 0; }

.chat-tool-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: #9fc9ff;
  background: rgba(159, 201, 255, 0.12);
  border-radius: 999px;
  padding: 5px 11px;
}

.chat-tool-pill.soon { color: #f0c766; background: rgba(240, 199, 102, 0.12); }

.chat-session-break {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  color: #8b8b9a;
  font-size: 12px;
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin: var(--space-2) 0;
}

.chat-session-break::before, .chat-session-break::after {
  content: "";
  flex: 1;
  height: 1px;
  background: #3a3548;
}

.demo-tab .dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.12);
  margin-right: 8px;
  display: inline-block;
}

@media (prefers-reduced-motion: reduce) {
  .term-cursor, .chat-cursor { animation: none; }
}

/* Reveal on scroll */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Dashboard — enterprise control plane */
.dash-main { min-height: 100vh; }
.dash {
  max-width: var(--container-dash);
  margin: 0 auto;
  padding: var(--space-7) var(--space-5) var(--space-10);
}

.dash-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-4);
  margin-bottom: var(--space-6);
  flex-wrap: wrap;
}
.dash-header__brand { min-width: 0; }
.dash-header__eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent-bright);
  margin: 0 0 var(--space-2);
}
.dash-header__brand h1 {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: var(--text-3xl);
  letter-spacing: -0.02em;
  margin: 0 0 var(--space-2);
  line-height: 1.1;
}
.dash-header__brand p {
  color: var(--text-muted);
  font-size: var(--text-base);
  margin: 0;
  max-width: 54ch;
}
.dash-header__actions {
  display: flex;
  gap: var(--space-2);
  flex-wrap: wrap;
  flex-shrink: 0;
}

.dash-toolbar {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-5);
  flex-wrap: wrap;
  padding: var(--space-3) var(--space-4);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}
.dash-toolbar__label {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--text-muted);
}
.dash-toolbar__select {
  font-family: var(--font-sans);
  font-size: var(--text-base);
  padding: 10px 36px 10px 14px;
  border: 1px solid var(--border-bright);
  border-radius: var(--radius-sm);
  background: var(--bg);
  color: var(--text);
  min-height: 44px;
  min-width: 240px;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%236b6c80' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
}
.dash-toolbar__select:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}
.dash-toolbar__hint {
  font-size: var(--text-sm);
  color: var(--text-dim);
  margin-left: auto;
}

.org-view {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  margin-bottom: var(--space-5);
}
.org-view__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-3);
  margin-bottom: var(--space-5);
  flex-wrap: wrap;
}
.org-view__eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--live);
  margin: 0 0 var(--space-2);
}
.org-view__slug {
  font-size: var(--text-2xl);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 var(--space-1);
}
.org-view__id {
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  color: var(--text-muted);
  margin: 0;
  word-break: break-all;
}
.org-view__status {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  color: var(--live);
  background: var(--live-soft);
  border: 1px solid var(--live-bg);
  border-radius: 999px;
  padding: 6px 14px;
  flex-shrink: 0;
}
.org-view__status .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--live); }

.metric-row {
  display: grid;
  gap: var(--space-3);
  grid-template-columns: repeat(4, 1fr);
  margin-bottom: var(--space-4);
}
.metric {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: var(--space-4);
  min-width: 0;
}
.metric.loading { background: var(--bg); }
.metric .metric-value {
  font-family: var(--font-mono);
  font-size: var(--text-xl);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  line-height: 1.2;
  word-break: break-word;
}
.metric .metric-value--small { font-size: var(--text-base); }
.metric .metric-label {
  font-size: var(--text-sm);
  color: var(--text-muted);
  margin-top: var(--space-2);
}
.skeleton-bar {
  height: 22px;
  width: 70%;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--surface-2) 25%, var(--border) 50%, var(--surface-2) 75%);
  background-size: 200% 100%;
  animation: skeleton-shimmer 1.4s ease-in-out infinite;
}
@media (prefers-reduced-motion: reduce) {
  .skeleton-bar { animation: none; }
}

.limits-row {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  flex-wrap: wrap;
  margin-bottom: var(--space-5);
  font-size: var(--text-sm);
}
.limits-label { color: var(--text-muted); }
.limit-pill {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-muted);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 3px 10px;
}

.owner-key-panel {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: var(--space-4);
  margin-bottom: var(--space-5);
}
.owner-key-panel__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-3);
  margin-bottom: var(--space-3);
  flex-wrap: wrap;
}
.owner-key-panel__title {
  font-size: var(--text-base);
  font-weight: 600;
  margin: 0 0 var(--space-1);
}
.owner-key-panel__hint {
  font-size: var(--text-sm);
  color: var(--text-muted);
  margin: 0;
}
.owner-key-panel__actions {
  display: flex;
  gap: var(--space-2);
  flex-wrap: wrap;
  flex-shrink: 0;
}
.owner-key {
  display: block;
  background: var(--text);
  color: #f2ead9;
  border-radius: var(--radius-sm);
  padding: var(--space-3) var(--space-4);
  font-family: var(--font-mono);
  font-size: var(--text-base);
  overflow-x: auto;
  line-height: 1.5;
}
.owner-key--masked {
  letter-spacing: 2px;
  color: #b0b0c0;
}

.dash-grid {
  display: grid;
  gap: var(--space-4);
  grid-template-columns: 1.5fr 1fr;
  align-items: start;
}
.dash-grid__main { display: grid; gap: var(--space-4); }
.dash-grid__side { position: sticky; top: 90px; }

.panel {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: var(--space-4);
}
.panel__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  margin-bottom: var(--space-4);
  flex-wrap: wrap;
}
.panel__title {
  font-size: var(--text-lg);
  font-weight: 600;
  margin: 0;
}
.panel--activity { max-height: none; }

.btn-sm {
  font-size: var(--text-sm);
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--accent);
  background: none;
  color: var(--accent);
  cursor: pointer;
  font-family: var(--font-sans);
  font-weight: 600;
  min-height: 36px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.btn-sm:hover { background: var(--accent); color: #fff; }
.btn-sm--primary { background: var(--accent); color: #fff; }
.btn-sm--primary:hover { background: var(--accent-bright); }
.btn-sm--danger { border-color: var(--error); color: var(--error); }
.btn-sm--danger:hover { background: var(--error); color: #fff; }
.btn-sm:disabled,
.btn-sm[aria-disabled="true"] { opacity: 0.6; cursor: default; }

.access-list { display: grid; gap: var(--space-2); }
.access-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  flex-wrap: wrap;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: var(--space-3);
  font-size: var(--text-sm);
}
.access-row .row-main { display: flex; flex-direction: column; gap: 4px; min-width: 0; flex: 1 1 auto; }
.access-row .row-main__top { display: flex; align-items: center; gap: var(--space-2); flex-wrap: wrap; }
.access-row .row-main strong { font-family: var(--font-sans); font-size: var(--text-base); font-weight: 600; }
.access-row .row-meta { font-family: var(--font-mono); color: var(--text-muted); font-size: var(--text-sm); word-break: break-word; }
.access-row .row-actions { display: flex; gap: var(--space-2); align-items: center; flex-shrink: 0; }
.access-row.revoked { opacity: 0.55; }
.access-empty { font-size: var(--text-sm); color: var(--text-muted); font-style: italic; margin: 0; }

.access-form {
  display: grid;
  gap: var(--space-3);
  margin-bottom: var(--space-4);
  padding: var(--space-4);
  background: var(--surface);
  border: 1px solid var(--border-bright);
  border-radius: var(--radius-sm);
}
.access-form label,
.access-form .label-hint {
  font-size: var(--text-sm);
  color: var(--text-muted);
  display: grid;
  gap: 4px;
}
.access-form .label-hint { display: inline; color: var(--text-dim); font-weight: 400; }
.access-form input,
.access-form select,
.access-form textarea {
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  padding: 10px 12px;
  border: 1px solid var(--border-bright);
  border-radius: var(--space-1);
  background: var(--bg);
  color: inherit;
  width: 100%;
  box-sizing: border-box;
}
.access-form input:focus-visible,
.access-form select:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}
.access-form .form-actions { display: flex; gap: var(--space-2); margin-top: 2px; }
.access-form .form-err { color: var(--caution); font-size: var(--text-sm); }

.role-checkboxes {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}
.role-checkbox {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-weight: 400;
  cursor: pointer;
}
.role-checkbox input { width: auto; }

.new-key-reveal {
  display: none;
  margin-bottom: var(--space-4);
  padding: var(--space-4);
  background: var(--caution-soft);
  border: 1px solid var(--caution-bg);
  border-radius: var(--radius-sm);
  font-size: var(--text-sm);
}
.new-key-reveal.open { display: block; }
.new-key-reveal__head {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-bottom: var(--space-3);
}
.new-key-reveal__hint { color: var(--caution); }
.new-key-reveal__body {
  display: flex;
  gap: var(--space-3);
  align-items: center;
  flex-wrap: wrap;
}
.new-key-reveal code {
  flex: 1 1 auto;
  background: var(--text);
  color: #f2ead9;
  border-radius: var(--radius-sm);
  padding: var(--space-3) var(--space-4);
  font-family: var(--font-mono);
  word-break: break-all;
  min-width: 0;
}

.scope-picker { display: flex; gap: var(--space-2); flex-wrap: wrap; align-items: center; }
.scope-picker select { flex: 1 1 220px; }
.scope-picker input { flex: 1 1 180px; }
.scope-picker .btn-sm { flex: 0 0 auto; }
.scope-pills { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.scope-pill {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  background: var(--surface);
  border: 1px solid var(--accent);
  border-radius: 999px;
  padding: 4px 6px 4px 12px;
  font-size: var(--text-sm);
  color: var(--accent);
}
.scope-pill .scope-pill-label { font-family: var(--font-sans); }
.scope-pill .scope-pill-expr { font-family: var(--font-mono); color: var(--text-muted); }
.scope-pill button {
  border: none;
  background: none;
  color: var(--accent);
  cursor: pointer;
  font-size: 1rem;
  line-height: 1;
  padding: 0 4px;
  font-family: var(--font-sans);
}
.scope-pill button:hover { color: var(--caution); }
.scope-empty-note { font-size: var(--text-sm); color: var(--text-muted); font-style: italic; }

.activity-filter {
  display: flex;
  gap: var(--space-1);
  flex-wrap: wrap;
}
.activity-filter__btn {
  font-size: 12px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid var(--border-bright);
  background: var(--surface);
  color: var(--text-muted);
  cursor: pointer;
}
.activity-filter__btn.is-active {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}
.activity-feed {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  max-height: 560px;
  overflow-y: auto;
  padding-right: var(--space-2);
}
.activity-item {
  padding: var(--space-3);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: var(--text-sm);
}
.activity-item__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
  margin-bottom: var(--space-1);
}
.activity-item__action {
  font-family: var(--font-mono);
  font-weight: 600;
  color: var(--text);
  word-break: break-word;
}
.activity-item__outcome {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-radius: 6px;
  padding: 2px 6px;
  flex-shrink: 0;
  background: var(--surface-2);
  color: var(--text-muted);
}
.activity-item__outcome--success { background: var(--live-bg); color: var(--live); }
.activity-item__outcome--failure { background: var(--error-bg); color: var(--error); }
.activity-item__target {
  font-family: var(--font-mono);
  color: var(--text-muted);
  font-size: 12px;
  margin-bottom: var(--space-1);
}
.activity-item__time {
  color: var(--text-dim);
  font-size: 12px;
}

.state-panel {
  max-width: 480px;
  margin: 80px auto;
  padding: var(--space-6);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  text-align: center;
}
.state-panel h1 { font-size: var(--text-xl); margin: 0 0 var(--space-2); }
.state-panel p { color: var(--text-muted); margin: 0 0 var(--space-4); font-size: var(--text-base); }
.signin-form { display: grid; gap: var(--space-4); text-align: left; }
.signin-form label { font-size: var(--text-base); color: var(--text-muted); display: grid; gap: var(--space-1); }
.signin-form input {
  font-family: var(--font-sans);
  font-size: var(--text-base);
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg);
  color: inherit;
  width: 100%;
  box-sizing: border-box;
}
.signin-form button { width: 100%; margin-top: 4px; }
.signin-result { font-size: var(--text-base); margin-top: var(--space-3); }
.signin-result.error { color: var(--caution); }
.spinner {
  width: 22px;
  height: 22px;
  border: 3px solid var(--border);
  border-top-color: var(--live);
  border-radius: 50%;
  margin: 0 auto var(--space-4);
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.dash-connect {
  margin-top: var(--space-7);
  padding: var(--space-5);
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}
.dash-connect h2 { font-size: var(--text-xl); margin: 0 0 var(--space-2); }
.dash-connect p { color: var(--text-muted); margin: 0; }

@media (max-width: 900px) {
  .dash-header { flex-direction: column; }
  .dash-header__actions { width: 100%; }
  .metric-row { grid-template-columns: repeat(2, 1fr); }
  .dash-grid { grid-template-columns: 1fr; }
  .dash-grid__side { position: static; }
  .dash-toolbar__hint { width: 100%; margin-left: 0; }
}

@media (max-width: 560px) {
  .dash { padding: var(--space-5) var(--space-4) var(--space-8); }
  .dash-header__brand h1 { font-size: var(--text-2xl); }
  .metric-row { grid-template-columns: 1fr; }
  .owner-key-panel__head { flex-direction: column; }
  .owner-key-panel__actions { width: 100%; }
  .scope-picker select,
  .scope-picker input { flex: 1 1 100%; }
  .panel__head { flex-direction: column; align-items: flex-start; }
  .activity-filter { width: 100%; }
}

/* Pricing page */
.pricing-hero {
  padding: var(--space-9) 0 var(--space-6);
  text-align: center;
}
.pricing-hero h1 {
  font-size: var(--text-3xl);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0 0 var(--space-4);
}
.pricing-hero__sub {
  font-size: var(--text-lg);
  color: var(--text-muted);
  margin: 0 auto;
  max-width: 60ch;
}

.pricing-grid {
  display: grid;
  gap: var(--space-4);
  grid-template-columns: repeat(4, 1fr);
  margin-bottom: var(--space-8);
}

.pricing-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
}
.pricing-card--featured {
  border-color: var(--accent);
  box-shadow: 0 12px 30px rgba(79, 70, 229, 0.08);
}
.pricing-card__badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 999px;
}
.pricing-card__head { margin-bottom: var(--space-4); }
.pricing-card__head h2 {
  font-size: var(--text-xl);
  font-weight: 600;
  margin: 0 0 var(--space-2);
}
.pricing-card__price {
  font-size: var(--text-3xl);
  font-weight: 700;
  margin: 0;
  line-height: 1;
}
.pricing-card__period {
  font-size: var(--text-sm);
  color: var(--text-muted);
  margin: var(--space-1) 0 0;
}
.pricing-card__features {
  list-style: none;
  margin: 0 0 var(--space-5);
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  flex: 1 1 auto;
  font-size: 15px;
  color: var(--text-muted);
}
.pricing-card__features li::before {
  content: "✓";
  color: var(--accent);
  font-weight: 700;
  margin-right: var(--space-2);
}
.pricing-card__cta {
  width: 100%;
  text-align: center;
}

.pricing-matrix-wrap {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  margin-bottom: var(--space-8);
  overflow-x: auto;
}
.pricing-matrix__title {
  font-size: var(--text-2xl);
  font-weight: 600;
  margin: 0 0 var(--space-5);
}
.pricing-matrix {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
  font-size: 15px;
}
.pricing-matrix th,
.pricing-matrix td {
  padding: var(--space-3) var(--space-4);
  text-align: left;
  border-bottom: 1px solid var(--border);
}
.pricing-matrix thead th {
  font-weight: 600;
  color: var(--text);
  background: var(--bg-alt);
}
.pricing-matrix tbody th {
  font-weight: 500;
  color: var(--text);
}
.pricing-matrix td {
  color: var(--text-muted);
}
.pricing-matrix tbody tr:last-child th,
.pricing-matrix tbody tr:last-child td { border-bottom: none; }

.pricing-faq {
  max-width: 72ch;
}
.pricing-faq h2 {
  font-size: var(--text-2xl);
  font-weight: 600;
  margin: 0 0 var(--space-4);
}
.pricing-faq details {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-4);
  margin-bottom: var(--space-3);
}
.pricing-faq summary {
  font-weight: 600;
  cursor: pointer;
}
.pricing-faq p {
  color: var(--text-muted);
  margin: var(--space-3) 0 0;
}

@media (max-width: 1100px) {
  .pricing-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 680px) {
  .pricing-grid { grid-template-columns: 1fr; }
  .pricing-matrix-wrap { padding: var(--space-4); }
}

/* Dashboard quota nudges */
.quota-banner-wrap { margin: var(--space-3) 0; }
.quota-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  flex-wrap: wrap;
  background: var(--live-soft);
  border: 1px solid var(--live-bg);
  border-radius: var(--radius-sm);
  padding: var(--space-3) var(--space-4);
  font-size: 15px;
}
.quota-banner__text { color: var(--text); }
.quota-footer-wrap { margin-top: var(--space-6); }
.quota-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  flex-wrap: wrap;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-4) var(--space-5);
}
.quota-footer p {
  color: var(--text-muted);
  margin: 0;
  max-width: 60ch;
}
@media (max-width: 680px) {
  .quota-banner,
  .quota-footer { flex-direction: column; align-items: flex-start; }
}


/* Contact page */
.page-hero {
  position: relative;
  padding: var(--space-9) 0 var(--space-6);
  overflow: hidden;
}

.page-hero::before {
  content: "";
  position: absolute;
  top: -120px;
  left: 50%;
  transform: translateX(-50%);
  width: 700px;
  height: 450px;
  background: radial-gradient(closest-side, var(--accent-glow), transparent 70%);
  pointer-events: none;
  z-index: -1;
}

.page-hero h1 {
  font-size: var(--text-3xl);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 var(--space-4);
}

.page-hero h1 em {
  color: var(--accent);
  font-style: normal;
}

.page-hero p {
  color: var(--text-muted);
  max-width: 60ch;
  margin: 0 0 var(--space-5);
}

.container.narrow {
  max-width: 680px;
}

.contact-form {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
}

.form-field {
  margin-bottom: var(--space-4);
}

.form-field label {
  display: block;
  font-size: 15px;
  font-weight: 500;
  margin-bottom: var(--space-2);
  color: var(--text);
}

.form-field input,
.form-field textarea {
  width: 100%;
  padding: var(--space-3);
  font: inherit;
  font-size: 15px;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--border-bright);
  border-radius: var(--radius-md);
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.form-field input:focus,
.form-field textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

.form-field textarea {
  resize: vertical;
  min-height: 140px;
}

.field-error {
  display: none;
  color: var(--error);
  font-size: 13px;
  margin-top: var(--space-1);
}

.form-status {
  margin-top: var(--space-4);
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-md);
  font-size: 15px;
  display: none;
}

.form-status.success {
  display: block;
  background: var(--live-soft);
  border: 1px solid var(--live-bg);
  color: var(--text);
}

.form-status.error {
  display: block;
  background: rgba(220, 38, 38, 0.06);
  border: 1px solid rgba(220, 38, 38, 0.18);
  color: var(--error);
}

.contact-meta {
  margin-top: var(--space-5);
  color: var(--text-muted);
  font-size: 15px;
}

.contact-meta p { margin: 0 0 var(--space-2); }

@media (max-width: 560px) {
  .page-hero { padding: var(--space-7) 0 var(--space-5); }
  .contact-form { padding: var(--space-5); }
}
