/* ---------- Design tokens (matches the OpenHook dashboard palette) ---------- */
:root {
  --bg: #0f1115;
  --bg-alt: #13161c;
  --surface: #161920;
  --surface-2: #1d212b;
  --border: #262b36;
  --border-strong: #333a49;
  --text: #e6e9ef;
  --text-dim: #9aa3b2;
  --text-faint: #6b7383;
  --accent: #2bbca6;
  --accent-2: #6fd8c6;
  --accent-contrast: #ffffff;
  /* --accent is tuned to read on dark surfaces, so white text fails on it.
     Anything filled solid with white on top uses --accent-solid instead. */
  --accent-solid: #0e7a6a;
  --grad-start: #0e7a6a;
  --grad-end: #0a5b50;
  /* Diagram connectors/boundaries: subtle, but never under 3:1 on the canvas. */
  --diagram-line: #6b7383;
  --green: #3fb950;
  --amber: #d29922;
  --red: #f85149;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(0,0,0,0.35);
  --max-width: 1160px;
  --mono: ui-monospace, "SF Mono", "Cascadia Mono", "JetBrains Mono", Consolas, monospace;
}

@media (prefers-color-scheme: light) {
  :root {
    --bg: #f6f7f9;
    --bg-alt: #ffffff;
    --surface: #ffffff;
    --surface-2: #f0f2f5;
    --border: #e1e4e8;
    --border-strong: #d0d7de;
    --text: #1c2128;
    --text-dim: #57606a;
    --text-faint: #8c959f;
    --accent: #0e7a6a;
    --accent-2: #0a5b50;
    --accent-contrast: #ffffff;
    --accent-solid: #0e7a6a;
    --shadow: 0 10px 30px rgba(16,22,29,0.08);
    --red: #cf222e;
    --diagram-line: #6e7781;
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

a { color: inherit; text-decoration: none; }
code { font-family: var(--mono); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--bg) 85%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.logo {
  font-weight: 700;
  font-size: 1.15rem;
  display: flex;
  align-items: center;
  gap: 8px;
  letter-spacing: -0.01em;
}
.logo-mark { color: var(--accent); }
.main-nav {
  display: flex;
  gap: 28px;
}
.main-nav a {
  font-size: 0.92rem;
  color: var(--text-dim);
  transition: color 0.15s ease;
}
.main-nav a:hover { color: var(--text); }
.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  width: 22px;
  height: 2px;
  background: var(--text);
  display: block;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 9px 18px;
  border-radius: 8px;
  font-size: 0.92rem;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.12s ease, opacity 0.15s ease, background 0.15s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary {
  background: var(--accent-solid);
  color: #fff;
}
.btn-primary:hover { opacity: 0.92; }
.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border-strong);
}
.btn-ghost:hover { background: var(--surface-2); }
.btn-lg { padding: 13px 26px; font-size: 1rem; }
.btn-block { width: 100%; }

/* ---------- Hero ---------- */
.hero { padding: 90px 0 70px; }
.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}
.eyebrow {
  color: var(--accent);
  font-weight: 700;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin: 0 0 14px;
}
.hero h1 {
  font-size: clamp(2.1rem, 4vw, 3rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 20px;
}
.accent { color: var(--accent); }
.hero-sub {
  font-size: 1.08rem;
  color: var(--text-dim);
  max-width: 56ch;
  margin: 0 0 30px;
}
.hero-sub strong { color: var(--text); }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-meta {
  margin-top: 18px;
  font-size: 0.85rem;
  color: var(--text-faint);
  font-family: var(--mono);
}

.hero-visual {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 14px;
  margin: 0;
  overflow-x: auto;
}
.flow-svg { width: 100%; height: auto; display: block; }

/* The long poll is a live, agent-held connection — the dashes crawl toward the
   arrowhead (agent → server) so the direction reads as agent-initiated.
   One cycle is the 7+4 dash period, so the loop is seamless. */
.accent-flow { animation: accent-flow 1.2s linear infinite; }
@keyframes accent-flow {
  from { stroke-dashoffset: 0; }
  to   { stroke-dashoffset: -11; }
}
@media (prefers-reduced-motion: reduce) {
  .accent-flow { animation: none; }
}

/* The diagram carries 19 labels across 700 viewBox units. Its smallest type
   (the 12.5-unit connector labels) drops under ~9px once the SVG renders
   narrower than ~504px, so pan it rather than shrink it. 680px holds them
   at ~12.1px. */
@media (max-width: 900px) {
  .flow-svg { min-width: 680px; }
}

/* ---------- Trust strip ---------- */
.trust-strip {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 18px 0;
  background: var(--bg-alt);
}
.trust-label {
  margin: 0;
  text-align: center;
  color: var(--text-faint);
  font-size: 0.83rem;
  letter-spacing: 0.01em;
  font-family: var(--mono);
}

/* ---------- Sections ---------- */
.section { padding: 90px 0; }
.section-alt { background: var(--bg-alt); }
.section-title {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  letter-spacing: -0.015em;
  margin: 0 0 12px;
  text-align: center;
}
.section-sub {
  text-align: center;
  color: var(--text-dim);
  max-width: 60ch;
  margin: 0 auto 50px;
  font-size: 1.02rem;
}

/* ---------- Features ---------- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.feature-grid-2 { grid-template-columns: repeat(2, 1fr); }
.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px 24px;
  transition: transform 0.15s ease, border-color 0.15s ease;
}
.feature-card:hover {
  transform: translateY(-3px);
  border-color: var(--accent-2);
}
.feature-icon { font-size: 1.6rem; margin-bottom: 12px; }
.feature-card h3 { margin: 0 0 8px; font-size: 1.05rem; }
.feature-card p { margin: 0; color: var(--text-dim); font-size: 0.93rem; }
.feature-card code { font-size: 0.85em; background: var(--surface-2); padding: 1px 5px; border-radius: 4px; }

/* ---------- Use cases page ---------- */
.usecase-group { margin-bottom: 56px; }
.usecase-group:last-child { margin-bottom: 0; }
.usecase-group > h3 {
  font-size: 1.2rem;
  margin: 0 0 6px;
  letter-spacing: -0.01em;
}
.usecase-group > p.usecase-context {
  color: var(--text-dim);
  font-size: 0.96rem;
  max-width: 74ch;
  margin: 0 0 24px;
}
.usecase-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}
.usecase-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 22px 20px;
  transition: transform 0.15s ease, border-color 0.15s ease;
}
.usecase-card:hover { transform: translateY(-3px); border-color: var(--accent-2); }
.usecase-card h4 { margin: 0 0 8px; font-size: 1rem; }
.usecase-card p { margin: 0; color: var(--text-dim); font-size: 0.9rem; line-height: 1.65; }
.usecase-card p + p { margin-top: 10px; }
.usecase-card code {
  font-size: 0.85em;
  background: var(--surface-2);
  padding: 1px 5px;
  border-radius: 4px;
}
/* The honest-limit note inside a case — the constraint that decides feasibility. */
.usecase-limit {
  display: block;
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid var(--border);
  color: var(--text-faint);
  font-size: 0.85rem;
}
.compare-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-bottom: 24px;
}
.compare-col {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px 24px;
}
.compare-col h3 { margin: 0 0 14px; font-size: 1.02rem; }
/* Same shape as .check-list but marks exclusions rather than features. */
.cross-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.cross-list li {
  position: relative;
  padding-left: 22px;
  color: var(--text-dim);
  font-size: 0.92rem;
}
.cross-list li::before {
  content: "✕";
  position: absolute;
  left: 0;
  color: var(--red);
  font-weight: 700;
}
.cross-list code { background: var(--surface-2); padding: 1px 5px; border-radius: 4px; font-size: 0.85em; }
.cross-list strong { color: var(--text); }

/* ---------- Product screenshots ---------- */
.shot-steps {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 34px;
  margin-top: 30px;
}
/* Each figure caps at its screenshot's natural width (set inline) so a shot is
   never upscaled — these are UI captures and blur badly when stretched. */
.shot {
  margin: 0;
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.shot-frame { overflow-x: auto; }
.shot img {
  display: block;
  width: 100%;
  height: auto;
  border-bottom: 1px solid var(--border);
}
/* Same reasoning as the hero diagram: the smallest type in these captures is
   ~13px at natural size, so past a certain shrink it stops being readable.
   Pan the shot inside its own frame rather than scale it below that floor.
   The floors keep every capture at ~10px or better. min-width only bites when
   the column is narrower than it, so these are inert on a wide screen. */
.shot-frame img { min-width: 800px; }
.shot-wide .shot-frame img { min-width: 1120px; }
.shot figcaption {
  padding: 15px 20px 17px;
  color: var(--text-dim);
  font-size: 0.95rem;
  line-height: 1.6;
}
.shot figcaption strong { color: var(--text); }
.shot figcaption code {
  background: var(--surface-2);
  padding: 1px 5px;
  border-radius: 4px;
  font-size: 0.85em;
  font-family: var(--mono);
}
.shot-step {
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  margin-right: 9px;
  border-radius: 50%;
  background: var(--accent-solid);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 700;
}
.shot-note { color: var(--text-faint); font-size: 0.88em; }

/* ---------- Code blocks ---------- */
.code-block {
  background: #0a0c10;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 18px 20px;
  overflow-x: auto;
  font-family: var(--mono);
  font-size: 0.85rem;
  line-height: 1.6;
  color: #d7dee8;
  margin: 0 0 16px;
}
@media (prefers-color-scheme: light) {
  .code-block { background: #0d1117; color: #d7dee8; }
}
.code-block-sm { font-size: 0.8rem; }
.code-label {
  font-family: var(--mono);
  font-size: 0.8rem;
  color: var(--text-faint);
  margin: 0 0 8px;
}
.quickstart-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 44px;
  margin-bottom: 50px;
}
/* Each column is a plain div wrapping a .code-block. A grid item's automatic
   minimum size is zero only when the item is itself a scroll container — true
   of .code-block, false of the div around it — so without this the track grows
   to the width of the longest install command and the PAGE scrolls sideways
   instead of the code block. */
.quickstart-grid > * { min-width: 0; }
.quickstart-note {
  color: var(--text-dim);
  font-size: 0.92rem;
  margin: 12px 0;
}
.quickstart-note code { background: var(--surface-2); padding: 1px 5px; border-radius: 4px; font-size: 0.88em; }
.quickstart-steps {
  color: var(--text-dim);
  font-size: 0.92rem;
  padding-left: 20px;
  margin: 12px 0 0;
}
.quickstart-steps li { margin-bottom: 8px; }
.quickstart-steps strong { color: var(--text); }

.call-example { border-top: 1px solid var(--border); padding-top: 40px; }
.call-example-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 20px;
  align-items: start;
}
.call-example-grid .code-block { margin: 0; }

/* ---------- Tables ---------- */
.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}
.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}
.data-table th, .data-table td {
  text-align: left;
  padding: 12px 18px;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
.data-table td:nth-child(2) { white-space: normal; }
.data-table thead th {
  color: var(--text-faint);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 700;
  background: var(--surface-2);
}
.data-table tbody tr:last-child td { border-bottom: none; }
.data-table code { font-size: 0.85em; color: var(--accent-2); }
.data-table td { color: var(--text-dim); }
.data-table td:first-child { color: var(--text); }

/* ---------- Security ---------- */
.security-subhead {
  margin: 0 0 10px;
  font-size: 1.15rem;
  letter-spacing: -0.01em;
}
/* The approval gate reads as prose, the policy gate as a code/list pair —
   this spaces the two apart without wrapping either in another container. */
.security-subhead + p {
  color: var(--text-dim);
  max-width: 78ch;
  margin: 0 0 20px;
  font-size: 0.98rem;
}
.check-list + .security-subhead,
.security-grid + .security-subhead { margin-top: 46px; }
.check-list + .warning-note { margin-top: 28px; }
.check-list-2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 30px;
}
.security-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  align-items: start;
  margin-bottom: 24px;
}
.security-grid .code-block { margin: 0; }
.check-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.check-list li {
  position: relative;
  padding-left: 22px;
  color: var(--text-dim);
  font-size: 0.92rem;
}
.check-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--green);
  font-weight: 700;
}
.check-list code { background: var(--surface-2); padding: 1px 5px; border-radius: 4px; font-size: 0.85em; }
.warning-note {
  background: color-mix(in srgb, var(--amber) 12%, var(--surface));
  border: 1px solid color-mix(in srgb, var(--amber) 40%, var(--border));
  border-radius: 10px;
  padding: 16px 20px;
  color: var(--text-dim);
  font-size: 0.92rem;
  margin: 0;
}
.warning-note code { background: var(--surface-2); padding: 1px 5px; border-radius: 4px; }

/* ---------- CTA ---------- */
.cta-section {
  background: linear-gradient(135deg, var(--accent-solid) 0%, var(--grad-end) 100%);
  color: #fff;
  padding: 80px 0;
}
.cta-inner { text-align: center; }
.cta-inner h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  margin: 0 0 12px;
  color: #fff;
}
.cta-inner p {
  margin: 0 0 28px;
  font-size: 1.05rem;
  opacity: 0.88;
}
.cta-section .btn-primary {
  background: #fff;
  color: var(--accent-solid);
}
.cta-section .btn-ghost {
  border-color: rgba(255,255,255,0.4);
  color: #fff;
}
.cta-section .btn-ghost:hover {
  background: rgba(255,255,255,0.12);
}

/* ---------- Docs ---------- */
.docs-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.docs-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  display: block;
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.docs-card:hover {
  border-color: var(--accent-2);
  transform: translateY(-2px);
}
.docs-card h3 { margin: 0 0 8px; font-size: 1rem; }
.docs-card p { margin: 0; color: var(--text-dim); font-size: 0.9rem; }

/* ---------- Register form ---------- */
.register-form {
  max-width: 480px;
  margin: 0 auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px;
  box-shadow: var(--shadow);
}
.form-row { margin-bottom: 18px; }
.form-row label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-dim);
  margin-bottom: 6px;
}
/* Honeypot. Positioned off-screen rather than display:none — bots routinely
   skip display:none, and aria-hidden + tabindex="-1" keep it away from screen
   readers and the tab order. */
.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.label-optional {
  font-weight: 400;
  font-size: 0.9em;
  color: var(--text-faint);
  margin-left: 4px;
}
.form-row input {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  padding: 11px 14px;
  font-size: 0.95rem;
  color: var(--text);
  font-family: inherit;
}
.form-row input::placeholder { color: var(--text-faint); }
.form-row input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 25%, transparent);
}
.form-row input:invalid[data-touched="true"] { border-color: var(--red); }
.subdomain-input {
  display: flex;
  align-items: stretch;
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  overflow: hidden;
  background: var(--bg);
}
.subdomain-input input {
  border: none;
  border-radius: 0;
  flex: 1;
  min-width: 0;
}
.subdomain-input input:focus { box-shadow: none; outline: 2px solid var(--accent); outline-offset: -2px; }
.subdomain-suffix {
  display: flex;
  align-items: center;
  padding: 0 14px;
  background: var(--surface-2);
  color: var(--text-faint);
  font-family: var(--mono);
  font-size: 0.85rem;
  white-space: nowrap;
}
.form-hint {
  margin: 6px 0 0;
  font-size: 0.8rem;
  color: var(--text-faint);
}
.register-form .btn-block { margin-top: 6px; }

/* Replaces the form in place once a registration lands, so the confirmation
   sits where the user was already looking rather than below a stale form. */
.register-success {
  max-width: 480px;
  margin: 0 auto;
  background: var(--surface);
  border: 1px solid color-mix(in srgb, var(--green) 38%, var(--border));
  border-radius: var(--radius);
  padding: 36px;
  box-shadow: var(--shadow);
  text-align: center;
}
.register-success[hidden] { display: none; }
.register-success:focus { outline: none; }
.register-success-mark {
  width: 44px;
  height: 44px;
  margin: 0 auto 18px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--green) 16%, transparent);
  color: var(--green);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  font-weight: 700;
}
.register-success h3 { margin: 0 0 12px; font-size: 1.2rem; }
.register-success p {
  margin: 0 0 12px;
  color: var(--text-dim);
  font-size: 0.95rem;
}
.register-success p:last-child { margin-bottom: 0; }
.register-success strong {
  color: var(--text);
  font-family: var(--mono);
  font-weight: 600;
  font-size: 0.92em;
  /* Emails and subdomains have no natural break points and blow the panel
     out on narrow screens, so let them break mid-token. */
  overflow-wrap: anywhere;
}
.register-success-note {
  border-top: 1px solid var(--border);
  padding-top: 14px;
  margin-top: 18px;
  color: var(--text-faint);
  font-size: 0.88rem;
}
.form-status {
  margin: 14px 0 0;
  font-size: 0.88rem;
  text-align: center;
  min-height: 1.2em;
}
.form-status[data-state="success"] { color: var(--green); }
.form-status[data-state="error"] { color: var(--red); }
.form-status[data-state="pending"] { color: var(--text-faint); }

/* ---------- Self-host (de-emphasized) ---------- */
.self-host-section {
  padding: 50px 0;
  border-top: 1px solid var(--border);
}
.self-host-eyebrow {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-faint);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin: 0 0 10px;
}
.self-host-text {
  color: var(--text-faint);
  font-size: 0.9rem;
  max-width: 70ch;
  margin: 0 0 16px;
}
.self-host-section .code-block {
  max-width: 640px;
}

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 60px 0 0;
  background: var(--bg-alt);
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
  padding-bottom: 40px;
}
.footer-brand { max-width: 300px; }
.footer-brand p { color: var(--text-faint); font-size: 0.9rem; margin-top: 10px; }
.footer-links { display: flex; gap: 60px; }
.footer-col h4 { font-size: 0.85rem; color: var(--text-faint); margin: 0 0 14px; text-transform: uppercase; letter-spacing: 0.05em; }
.footer-col a { display: block; color: var(--text-dim); font-size: 0.92rem; margin-bottom: 10px; }
.footer-col a:hover { color: var(--text); }
/* The addresses carry a qualifier so it is obvious which one to reach for. */
.footer-note {
  display: block;
  color: var(--text-faint);
  font-size: 0.78rem;
  margin-top: 2px;
}
.footer-col a:hover .footer-note { color: var(--text-dim); }
.footer-bottom {
  border-top: 1px solid var(--border);
  padding: 20px 0;
}
.footer-bottom p { margin: 0; color: var(--text-faint); font-size: 0.82rem; text-align: center; font-family: var(--mono); }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero-inner { grid-template-columns: 1fr; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .docs-grid { grid-template-columns: 1fr; }
  .quickstart-grid { grid-template-columns: 1fr; gap: 36px; }
  .call-example-grid { grid-template-columns: 1fr; }
  .security-grid { grid-template-columns: 1fr; }
  .check-list-2col { grid-template-columns: 1fr; }
  .usecase-list { grid-template-columns: 1fr; }
  .compare-grid { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
  .main-nav { display: none; }
  .header-actions .btn-ghost { display: none; }
  .nav-toggle { display: flex; }
}

@media (max-width: 720px) {
  .feature-grid { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; }
  .footer-links { gap: 30px; flex-wrap: wrap; }
  .data-table { font-size: 0.82rem; }
  .data-table th, .data-table td { padding: 10px 12px; }
  .register-form { padding: 26px 20px; }
}

.main-nav.open {
  display: flex;
  flex-direction: column;
  position: absolute;
  top: 68px;
  left: 0;
  right: 0;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  padding: 16px 24px;
  gap: 16px;
  z-index: 40;
}

/* ---------- Cookie consent ---------- */
.consent-banner {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 60;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  animation: consent-in 0.25s ease-out;
}
@keyframes consent-in {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .consent-banner { animation: none; }
}
.consent-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 18px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 26px;
}
.consent-copy strong {
  display: block;
  font-size: 0.98rem;
  margin-bottom: 4px;
}
.consent-copy p {
  margin: 0;
  color: var(--text-dim);
  font-size: 0.9rem;
  line-height: 1.5;
  max-width: 68ch;
}
.consent-actions {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}
@media (max-width: 700px) {
  .consent-inner { flex-direction: column; align-items: stretch; gap: 16px; }
  .consent-actions .btn { flex: 1 1 0; justify-content: center; }
}
