/* swaudit demo site — dark-mode single-page marketing + interactive
   simulation. Variables here are the only theme knobs; everything
   downstream consumes them. */

:root {
  --bg: #0a0d18;            /* page background — deep navy black */
  --bg-alt: #11152a;        /* alternating section background */
  --panel: #181d33;         /* card / tile background */
  --panel-2: #1f2540;       /* slightly elevated panel */
  --ink: #e8ebf5;           /* primary text — near-white */
  --ink-strong: #ffffff;    /* boldest text / headings */
  --muted: #8c95ad;         /* secondary text */
  --border: #2a3357;        /* card / table borders */
  --border-soft: #1f274a;   /* subtler dividers */
  --accent: #6a8aff;        /* CTAs and links — saturated blue */
  --accent-2: #9aafff;      /* hover variant */
  --good: #5fcf7b;          /* APPROVE green */
  --good-bg: #142c1e;       /* approve banner background */
  --bad: #ff6b7a;           /* REJECT red */
  --bad-bg: #2c1318;        /* reject banner background */
  --med: #ffb15c;           /* REVIEW amber */
  --med-bg: #2a2014;        /* review banner background */
  --highlight: #1f2540;     /* card hover */
  --highlight-border: #6a8aff;
  --code-bg: #0e1224;       /* inline code background */
}

* { box-sizing: border-box; }
body {
  margin: 0;
  font: 16px/1.55 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: var(--ink);
  background: var(--bg);
}
.container { max-width: 1100px; margin: 0 auto; padding: 0 24px; }
section { padding: 80px 0; }
h1, h2, h3, h4 { line-height: 1.2; }
h2 { font-size: 32px; margin-top: 0; }
h3 { font-size: 19px; }
a { color: var(--accent); }
a:hover { color: var(--accent-2); }
code { background: var(--code-bg); color: #c7cfe5; padding: 0 4px; border-radius: 3px; font-size: 14px; border: 1px solid var(--border-soft); }

/* Top nav */
.topnav {
  position: sticky; top: 0; z-index: 10;
  background: #050811; color: var(--ink);
  padding: 12px 24px;
  display: flex; align-items: center; gap: 24px;
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
}
.topnav .logo { font-weight: 700; letter-spacing: 0.05em; font-size: 17px; }
.topnav nav { display: flex; gap: 18px; margin-left: auto; flex-wrap: wrap; }
.topnav nav a { color: #cbd5e0; text-decoration: none; font-size: 14px; padding: 4px 0; }
.topnav nav a:hover { color: #fff; }

/* Hamburger toggle — hidden on desktop, shown <=900px. Visibility is
   driven by a checkbox sibling so this works without JS.
   The checkbox itself uses display:none — modern browsers (including
   iOS Safari) still apply the :checked sibling selector on hidden
   inputs, so the menu toggle works. */
.topnav .menu-toggle {
  display: none;
}
.topnav .menu-toggle-label {
  display: none; cursor: pointer; margin-left: auto;
  width: 30px; height: 24px;
  flex-direction: column; justify-content: space-between;
  padding: 4px 0;
  background: transparent; border: 0;
}
.topnav .hamburger-bar {
  display: block; height: 3px; width: 100%;
  background: #f5f5f5; border-radius: 2px;
  transition: transform 0.18s, opacity 0.18s;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 12px 22px;
  border-radius: 4px;
  font-weight: 600;
  text-decoration: none;
  border: none;
  cursor: pointer;
  font-size: 15px;
  transition: transform 0.05s, background 0.1s;
}
.btn-primary { background: var(--accent); color: #0a0d18; }
.btn-primary:hover { background: var(--accent-2); }
.btn-ghost { background: transparent; color: var(--accent); border: 1.5px solid var(--accent); }
.btn-ghost:hover { background: var(--accent); color: #0a0d18; }
.btn:active { transform: translateY(1px); }

/* Hero */
.hero {
  text-align: center;
  padding: 100px 24px 80px;
  background: linear-gradient(180deg, var(--bg-alt) 0%, var(--bg) 100%);
}
.hero h1 {
  font-size: 56px;
  font-weight: 700;
  max-width: 820px;
  margin: 0 auto 26px;
  letter-spacing: -0.015em;
}
.hero h1 em {
  font-style: italic;
  color: #ff8a96;
  font-weight: 700;
}
.hero h1 { color: var(--ink-strong); }
.hero .lead {
  font-size: 19px;
  color: var(--muted);
  max-width: 720px;
  margin: 0 auto 36px;
}
.hero .lead strong { color: var(--ink); }
.cta-row { display: flex; justify-content: center; gap: 14px; margin-bottom: 30px; flex-wrap: wrap; }
.hero-meta {
  font-size: 13px;
  color: var(--muted);
  margin-top: 32px;
}
.green-dot {
  display: inline-block; width: 10px; height: 10px;
  background: var(--good); border-radius: 50%;
  margin-right: 4px; vertical-align: middle;
}

/* Video section — full-width recorded-audit demo */
.video-section {
  background: #0d1224;
  color: #f5f5f5;
  padding: 70px 24px 80px;
  text-align: center;
}
.video-section h2 {
  color: #fff;
  margin: 0 0 16px;
}
.video-lead {
  color: #c7cfe0;
  max-width: 760px;
  margin: 0 auto 30px;
  font-size: 16px;
  line-height: 1.55;
  text-align: center;
}
.video-frame {
  max-width: 880px;
  margin: 0 auto 18px;
  background: #000;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 18px 48px rgba(0,0,0,0.45);
  border: 1px solid #243054;
}
.video-frame video {
  width: 100%;
  display: block;
  height: auto;
}
.video-caption {
  color: #8c95ad;
  font-size: 13px;
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}

/* Step indicator + plain-language caption that syncs to the video. */
.video-explainer {
  max-width: 880px;
  margin: 24px auto 0;
}
.video-steps {
  list-style: none; margin: 0 0 22px; padding: 0;
  display: flex; gap: 10px;
  counter-reset: vstep;
}
.video-steps li {
  flex: 1;
  position: relative;
  padding: 14px 8px 12px;
  background: rgba(106,138,255,0.08);
  border: 1px solid var(--border);
  border-radius: 6px;
  text-align: center;
  font-size: 13px;
  color: #c7cfe5;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, transform 0.05s;
  user-select: none;
}
.video-steps li::before {
  content: counter(vstep);
  counter-increment: vstep;
  display: block;
  font-size: 18px;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 4px;
}
.video-steps li:hover {
  background: rgba(106,138,255,0.16);
}
.video-steps li:active { transform: translateY(1px); }
.video-steps li.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #0a0d18;
  box-shadow: 0 6px 20px rgba(106,138,255,0.35);
}
.video-steps li.active::before { color: #0a0d18; }

.video-caption-cards {
  position: relative;
  min-height: 180px;
}
.video-caption-card {
  display: none;
  background: var(--panel);
  border: 1px solid var(--border);
  border-left: 4px solid var(--accent);
  border-radius: 6px;
  padding: 22px 26px;
  text-align: left;
  color: var(--ink);
  font-size: 16px;
  line-height: 1.6;
}
.video-caption-card.active { display: block; animation: card-fade-in 0.25s ease-out; }
.video-caption-card h4 {
  margin: 0 0 10px;
  color: var(--ink-strong);
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.video-caption-card p { margin: 0; }
.video-caption-card code {
  background: rgba(255,255,255,0.06);
  padding: 1px 6px;
  font-size: 14px;
  color: #c7cfe5;
}
@keyframes card-fade-in {
  from { opacity: 0; transform: translateY(4px); }
  to   { opacity: 1; transform: translateY(0); }
}

@media (max-width: 700px) {
  .video-steps { flex-wrap: wrap; }
  .video-steps li { flex: 1 1 calc(50% - 10px); padding: 10px 6px; font-size: 12px; }
  .video-caption-card { padding: 18px 18px; font-size: 15px; }
}

/* Enterprise banner — sits under the hero, dark slim stripe */
.enterprise-banner {
  background: linear-gradient(90deg, #1f2a44 0%, #2a3a60 100%);
  color: #f5f5f5;
  padding: 22px 0 24px;
  border-top: 1px solid #0c1530;
  border-bottom: 1px solid #0c1530;
}
.enterprise-banner-inner {
  display: flex; align-items: center; flex-wrap: wrap;
  gap: 18px;
}
.enterprise-banner-headline {
  flex: 1 1 280px;
  font-size: 15px;
  line-height: 1.4;
}
.enterprise-banner-headline strong { color: #fff; font-weight: 700; }
.enterprise-banner-pills {
  flex: 2 1 480px;
  display: flex; flex-wrap: wrap; gap: 8px;
  justify-content: center;
}
.pill {
  display: inline-block;
  padding: 5px 11px;
  font-size: 12px;
  border: 1px solid rgba(255,255,255,0.25);
  background: rgba(255,255,255,0.06);
  color: #e8eaf2;
  border-radius: 100px;
  font-weight: 500;
  white-space: nowrap;
}
.btn-tight { padding: 8px 14px; font-size: 13px; }
.enterprise-banner .btn-ghost {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,0.6);
  white-space: nowrap;
}
.enterprise-banner .btn-ghost:hover {
  background: #fff;
  color: var(--accent);
  border-color: #fff;
}

/* "Why" section */
.why { background: var(--bg-alt); }
.why h2 { text-align: center; max-width: 800px; margin: 0 auto 16px; }
.why p { text-align: center; max-width: 700px; margin: 0 auto 50px; color: var(--muted); }
.why p strong { color: var(--ink); }
.three-col {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.card {
  background: var(--panel);
  border: 1px solid var(--border);
  padding: 28px 24px;
  border-radius: 6px;
}
.card h3 { margin-top: 0; }
.card p { color: var(--ink); text-align: left; margin: 0 0 14px; }
.card-tag {
  display: inline-block; font-size: 12px; padding: 2px 10px;
  background: var(--border); color: var(--muted); border-radius: 12px;
  text-transform: uppercase; letter-spacing: 0.04em;
}
.card-tag.green { background: var(--good-bg); color: var(--good); }
.card-highlight { border: 2px solid var(--good); box-shadow: 0 4px 16px rgba(0,0,0,0.04); }

/* How it works */
.how-it-works { background: var(--bg); }
.steps { list-style: none; padding: 0; margin: 0; counter-reset: step; }
.steps li {
  position: relative;
  padding: 28px 28px 28px 84px;
  border: 1px solid var(--border);
  border-radius: 6px;
  margin: 14px 0;
  background: var(--panel);
}
.step-num {
  position: absolute;
  left: 24px; top: 28px;
  width: 40px; height: 40px;
  background: var(--accent); color: #fff;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 18px;
}
.steps h3 { margin-top: 0; }

.badge {
  display: inline-block;
  padding: 1px 8px;
  font-size: 12px;
  font-weight: 700;
  border-radius: 3px;
  vertical-align: 2px;
}
.badge.bad { background: var(--bad-bg); color: var(--bad); }
.badge.med { background: var(--med-bg); color: var(--med); }
.badge.good { background: var(--good-bg); color: var(--good); }

/* Catalog */
.catalog { background: var(--bg-alt); }
.catalog h2 { text-align: center; max-width: 850px; margin: 0 auto 14px; }
.lead-secondary { color: var(--muted); max-width: 750px; margin: 0 auto 38px; text-align: center; font-size: 16px; }
.catalog-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.tile {
  background: var(--panel);
  padding: 18px 16px;
  border: 1px solid var(--border);
  border-radius: 5px;
  text-decoration: none;
  color: var(--ink);
  transition: transform 0.05s, box-shadow 0.1s;
}
.tile:hover { box-shadow: 0 6px 14px rgba(0,0,0,0.06); transform: translateY(-1px); }
.tile h4 { margin: 0 0 6px; font-size: 16px; }
.tile p { margin: 0; font-size: 13px; color: var(--muted); }
.tile-detect { font-size: 12px !important; color: var(--accent-2) !important; margin-top: 8px !important; }
.tile-highlight {
  border-left: 4px solid var(--bad);
  background: linear-gradient(90deg, rgba(255,107,122,0.08) 0%, var(--panel) 40%);
}
.tile-highlight strong { color: #ff8a96; }
.catalog-footnote {
  margin-top: 32px; text-align: center; font-size: 14px; color: var(--muted);
}

/* Live demo */
.live-demo { background: var(--bg); }
.live-demo h2 { text-align: center; }
.demo-controls { text-align: center; margin: 24px 0 24px; }
.candidate-buttons { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 12px; }
.candidate-btn {
  padding: 10px 18px;
  background: var(--panel);
  border: 1.5px solid var(--accent);
  color: var(--accent);
  font-size: 14px; font-weight: 500;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.08s;
}
.candidate-btn:hover { background: var(--accent); color: #0a0d18; }
.candidate-btn.selected { background: var(--accent); color: #0a0d18; }

.audit-runner {
  margin: 24px auto 0;
  max-width: 880px;
  background: #1a1a1a;
  border-radius: 8px;
  padding: 22px 24px;
  font: 14px/1.55 ui-monospace, SFMono-Regular, Menlo, monospace;
  color: #f4f4f4;
  min-height: 110px;
}
.runner-stage { margin: 0; }
.runner-stage p { margin: 4px 0; white-space: pre-wrap; }
.runner-stage .pulse { color: #ffd859; }
.runner-stage .info { color: #80b2ff; }
.runner-stage .ok { color: #6cd66c; }
.runner-stage .bad { color: #ff7d8d; }
.stage-prompt { color: #999; font-style: italic; }

.audit-result {
  margin: 28px auto 0; max-width: 880px;
}
.audit-result.hidden, .hidden { display: none; }
.verdict-banner {
  text-align: center; padding: 16px 22px; border-radius: 6px;
  font-weight: 700; font-size: 18px; margin-bottom: 18px;
  border: 2px solid;
}
.verdict-banner.reject { background: var(--bad-bg); color: var(--bad); border-color: var(--bad); }
.verdict-banner.approve { background: var(--good-bg); color: var(--good); border-color: var(--good); }
.verdict-banner.review { background: var(--med-bg); color: var(--med); border-color: var(--med); }

.result-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 18px;
}
.result-summary, .result-evidence {
  background: var(--panel);
  border: 1px solid var(--border);
  padding: 18px 22px;
  border-radius: 6px;
}
.result-summary h4, .result-evidence h4 { margin: 0 0 10px; font-size: 14px; text-transform: uppercase; letter-spacing: 0.04em; color: var(--muted); }
.result-summary ul { margin: 0; padding: 0; list-style: none; }
.result-summary li {
  padding: 7px 0; border-bottom: 1px dotted var(--border); font-size: 14px;
  display: flex; justify-content: space-between;
}
.result-summary li:last-child { border-bottom: none; }
.result-summary .sev-high { color: var(--bad); font-weight: 600; }
.result-summary .sev-medium { color: var(--med); }
.result-summary .sev-low { color: #876c00; }
.result-summary .sev-info { color: var(--muted); }

.result-evidence pre {
  background: #1a1a1a; color: #eee;
  font: 12px/1.5 ui-monospace, monospace;
  padding: 12px; border-radius: 4px; margin: 0;
  overflow-x: auto; white-space: pre-wrap;
}
.result-cta { text-align: center; margin-top: 18px; }

/* Deployment */
.deployment { background: var(--bg-alt); }
.deployment h2 { text-align: center; }
.deploy-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 24px;
  margin-top: 36px;
}
.deploy-card {
  background: var(--panel);
  border: 1px solid var(--border);
  padding: 32px 28px;
  border-radius: 6px;
}
.deploy-card h3 { margin: 0 0 6px; font-size: 22px; }
.deploy-tag { color: var(--muted); font-size: 13px; margin: 0 0 18px; }
.deploy-card ul { padding-left: 20px; margin: 0 0 18px; }
.deploy-card li { margin: 6px 0; }
.deploy-best { color: var(--muted); font-size: 14px; margin: 0 0 18px; font-style: italic; }

/* CTA */
.cta { background: #050811; color: var(--ink); text-align: center; border-top: 1px solid var(--border); }
.cta h2 { color: var(--ink-strong); margin: 0 0 8px; }
.cta p { color: var(--muted); margin: 0 0 32px; }
.cta-form {
  max-width: 560px; margin: 0 auto;
  display: grid; grid-template-columns: 1.2fr 1fr auto; gap: 8px;
}
.cta-form input, .cta-form select {
  padding: 12px 14px; border-radius: 4px;
  border: 1px solid var(--border); background: var(--panel); color: var(--ink);
  font-size: 15px;
}
.cta-thanks { color: #6cd66c; margin-top: 18px; }

/* Footer */
.site-footer { background: #050811; color: var(--muted); text-align: center; padding: 36px 24px; font-size: 13px; border-top: 1px solid var(--border-soft); }
.site-footer a { color: var(--ink); margin: 0 4px; }

/* Report modal — full-screen overlay with scrollable rendered markdown */
.report-modal {
  position: fixed; inset: 0; z-index: 1000;
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
}
.report-modal.hidden { display: none; }
.report-modal-backdrop {
  position: absolute; inset: 0;
  background: rgba(0,0,0,0.65);
  backdrop-filter: blur(2px);
}
.report-modal-frame {
  position: relative;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 8px;
  width: 100%;
  max-width: 980px;
  max-height: calc(100vh - 48px);
  display: flex; flex-direction: column;
  box-shadow: 0 24px 64px rgba(0,0,0,0.4);
}
.report-modal-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 22px;
  border-bottom: 1px solid var(--border);
  background: var(--panel-2);
  border-radius: 8px 8px 0 0;
}
.report-modal-head h3 {
  margin: 0; font-size: 16px; font-weight: 600;
  color: var(--ink);
}
.report-modal-close {
  background: transparent; border: 0;
  font-size: 28px; line-height: 1;
  color: var(--muted); cursor: pointer;
  padding: 0 6px;
}
.report-modal-close:hover { color: var(--ink); }

.report-modal-body {
  overflow-y: auto;
  padding: 24px 32px 36px;
  font-size: 15px; line-height: 1.6;
  color: var(--ink);
}
.report-modal-body h1 { font-size: 26px; margin: 0 0 12px; }
.report-modal-body h2 { font-size: 20px; margin: 28px 0 10px; padding-bottom: 6px; border-bottom: 1px solid var(--border); }
.report-modal-body h3 { font-size: 16px; margin: 20px 0 8px; }
.report-modal-body h4 { font-size: 14px; margin: 14px 0 6px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.04em; }
.report-modal-body p { margin: 0 0 10px; }
.report-modal-body ul { margin: 0 0 12px; padding-left: 22px; }
.report-modal-body li { margin: 3px 0; }
.report-modal-body code {
  background: var(--code-bg); padding: 1px 5px; border-radius: 3px;
  font-size: 13px; color: #c7cfe5;
}
.report-modal-body pre {
  background: #050810; color: #d8dde8;
  padding: 14px 16px; border-radius: 5px;
  overflow-x: auto; font-size: 13px; line-height: 1.5;
  margin: 0 0 14px;
  border: 1px solid var(--border-soft);
}
.report-modal-body pre code { background: transparent; padding: 0; color: inherit; font-size: inherit; border: 0; }
.report-modal-body table {
  border-collapse: collapse; width: 100%;
  margin: 6px 0 16px; font-size: 14px;
}
.report-modal-body th, .report-modal-body td {
  border: 1px solid var(--border);
  padding: 6px 10px; text-align: left;
  vertical-align: top;
}
.report-modal-body th {
  background: var(--panel-2); font-weight: 600;
}
.report-modal-body blockquote {
  border-left: 3px solid var(--accent);
  margin: 0 0 12px; padding: 4px 14px;
  background: var(--panel-2); color: var(--muted);
}
.report-modal-body strong { color: var(--ink); }
.report-modal-body em { color: var(--muted); }
.report-loading { text-align: center; color: var(--muted); padding: 40px 0; }
.report-error { color: var(--bad); padding: 24px 0; }

/* Make REJECT / APPROVE / REVIEW lines visually distinct in the rendered report. */
.report-modal-body p.verdict-reject { color: var(--bad); font-weight: 700; padding: 10px 14px; background: var(--bad-bg); border-radius: 4px; border-left: 3px solid var(--bad); }
.report-modal-body p.verdict-approve { color: var(--good); font-weight: 700; padding: 10px 14px; background: var(--good-bg); border-radius: 4px; border-left: 3px solid var(--good); }
.report-modal-body p.verdict-review { color: var(--med); font-weight: 700; padding: 10px 14px; background: var(--med-bg); border-radius: 4px; border-left: 3px solid var(--med); }

/* Format-detail modal — reuses .report-modal* infrastructure but the
   inner content is structured (status badge, dl meta, catches list).
   These selectors apply when openFormat() populates the modal body. */
.report-modal-body .format-status-row {
  margin: 0 0 18px;
}
.report-modal-body .format-status {
  display: inline-block;
  padding: 5px 14px;
  border-radius: 100px;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.report-modal-body .format-status-full {
  background: var(--good-bg); color: var(--good); border: 1px solid var(--good);
}
.report-modal-body .format-status-static {
  background: var(--med-bg); color: var(--med); border: 1px solid var(--med);
}
.report-modal-body .format-status-hybrid {
  background: rgba(106,138,255,0.15); color: var(--accent-2); border: 1px solid var(--accent);
}
.report-modal-body dl.format-meta {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 8px 18px;
  margin: 0 0 22px;
  padding: 14px 18px;
  background: var(--panel-2);
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 14px;
}
.report-modal-body dl.format-meta dt {
  color: var(--muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 12px;
  padding-top: 2px;
}
.report-modal-body dl.format-meta dd {
  margin: 0;
  color: var(--ink);
}
.report-modal-body ul.format-catches {
  list-style: none;
  margin: 0 0 22px;
  padding: 0;
}
.report-modal-body ul.format-catches li {
  padding: 12px 16px;
  margin-bottom: 8px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: 5px;
  font-size: 14px;
  line-height: 1.55;
}
.report-modal-body ul.format-catches li strong {
  color: var(--ink-strong);
  font-size: 14px;
  display: inline-block;
  margin-right: 4px;
}
.report-modal-body .format-example {
  margin: 0 0 22px;
}
.report-modal-body .format-example pre {
  background: #050810;
  color: #d8dde8;
  padding: 14px 16px;
  border-radius: 5px;
  border: 1px solid var(--border-soft);
  font-size: 13px;
  line-height: 1.5;
  white-space: pre-wrap;
  word-break: break-word;
  margin: 0;
}
.report-modal-body p.format-notes {
  margin: 0;
  padding: 12px 16px;
  background: var(--panel-2);
  border-radius: 5px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
  font-style: italic;
}

/* Tile-as-button — tiles in the formats grid are now <button> elements
   for accessibility (clickable via keyboard / screen readers). */
.tile {
  font: inherit;
  text-align: left;
  width: 100%;
  /* Override default button styling. */
  cursor: pointer;
}
.tile:hover { transform: translateY(-1px); }

/* Responsive */
@media (max-width: 900px) {
  .hero h1 { font-size: 38px; }
  .three-col, .deploy-grid, .result-grid { grid-template-columns: 1fr; }
  .catalog-grid { grid-template-columns: repeat(2, 1fr); }
  .cta-form { grid-template-columns: 1fr; }

  /* Mobile: convert top nav to hamburger-toggled drawer. */
  .topnav { padding: 12px 18px; }
  .topnav .menu-toggle-label { display: flex; }
  .topnav nav {
    display: none;
    width: 100%;
    flex-direction: column;
    gap: 0;
    margin: 12px 0 0 0;
    border-top: 1px solid #2a2a2a;
    padding-top: 8px;
  }
  .topnav nav a {
    padding: 12px 4px;
    font-size: 16px;
    border-bottom: 1px solid #1f1f1f;
  }
  .topnav nav a:last-child { border-bottom: none; }
  .topnav .menu-toggle:checked ~ nav { display: flex; }
  /* Animate the bars into an X when checked. */
  .topnav .menu-toggle:checked ~ .menu-toggle-label .hamburger-bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }
  .topnav .menu-toggle:checked ~ .menu-toggle-label .hamburger-bar:nth-child(2) {
    opacity: 0;
  }
  .topnav .menu-toggle:checked ~ .menu-toggle-label .hamburger-bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }
}
@media (max-width: 600px) {
  .catalog-grid { grid-template-columns: 1fr; }
  .hero { padding: 60px 18px 50px; }
  .hero h1 { font-size: 30px; }
  section { padding: 50px 0; }
  .container { padding: 0 18px; }
}
