/* ==========================================================================
   agentsnap — site stylesheet
   Palette: warm paper, ink green-black, deep diff-green accent.
   Type: Fraunces (display) · Inter (body) · IBM Plex Mono (terminal/labels).
   ========================================================================== */

:root {
  --bg: #faf8f2;
  --bg-alt: #f2efe6;
  --surface: #ffffff;
  --ink: #1a221c;
  --ink-soft: #3d463f;
  --ink-muted: #67705f;
  --line: #e4dfd0;
  --line-strong: #cfc8b4;

  --accent: #0f5c3d;
  --accent-deep: #0b4630;
  --accent-soft: #e6efe6;
  --accent-wash: #f0f4ec;

  --red: #b0392e;
  --red-soft: #f7e9e6;
  --amber: #a3661c;
  --amber-soft: #f7efdf;

  --term-bg: #141b16;
  --term-edge: #26302a;
  --term-text: #ccd6c9;
  --term-dim: #79856f;
  --term-green: #8fce9f;
  --term-red: #e59386;
  --term-yellow: #d9c07f;
  --term-cyan: #9dc4d8;

  --font-display: "Fraunces", "Georgia", serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", "Consolas", "SFMono-Regular", monospace;

  --radius: 12px;
  --radius-lg: 16px;
  --container: 1120px;
  --shadow-card: 0 1px 2px rgba(26, 34, 28, 0.05), 0 8px 28px -12px rgba(26, 34, 28, 0.14);
  --shadow-deep: 0 2px 6px rgba(20, 27, 22, 0.18), 0 24px 60px -24px rgba(20, 27, 22, 0.42);
}

/* ---------- Reset & base ---------- */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.7;
  font-feature-settings: "cv02", "cv11";
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

main {
  flex: 1;
}

img,
video {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--accent);
  text-decoration: none;
  text-underline-offset: 3px;
}

a:hover {
  text-decoration: underline;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}

::selection {
  background: #cfe3cf;
  color: var(--ink);
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  background: var(--ink);
  color: #fff;
  padding: 10px 18px;
  border-radius: 0 0 8px 0;
}

.skip-link:focus {
  left: 0;
}

/* ---------- Typography ---------- */

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-optical-sizing: auto;
  font-weight: 560;
  line-height: 1.14;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin: 0 0 0.5em;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.5rem, 5.4vw, 3.9rem);
}

h2 {
  font-size: clamp(1.85rem, 3.4vw, 2.6rem);
}

h3 {
  font-size: 1.3rem;
  line-height: 1.3;
}

h4 {
  font-family: var(--font-body);
  font-size: 1.02rem;
  font-weight: 600;
  margin: 0 0 0.4em;
}

p {
  margin: 0 0 1em;
}

.lede {
  font-size: clamp(1.1rem, 1.8vw, 1.25rem);
  line-height: 1.65;
  color: var(--ink-soft);
  max-width: 58ch;
}

.muted {
  color: var(--ink-muted);
}

.eyebrow {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 18px;
}

.mono {
  font-family: var(--font-mono);
  font-size: 0.92em;
}

code {
  font-family: var(--font-mono);
  font-size: 0.88em;
  background: var(--accent-wash);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0.12em 0.4em;
  white-space: nowrap;
}

/* ---------- Layout ---------- */

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

.section {
  padding-block: clamp(64px, 9vw, 108px);
}

.section--alt {
  background: var(--bg-alt);
  border-block: 1px solid var(--line);
}

.section--dark {
  background: var(--term-bg);
  color: var(--term-text);
}

.section--dark h2,
.section--dark h3 {
  color: #f2f5ee;
}

.section--dark .lede,
.section--dark p {
  color: #aeb9a8;
}

.section--dark .eyebrow {
  color: var(--term-green);
}

.section-head {
  max-width: 700px;
  margin-bottom: clamp(36px, 5vw, 56px);
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

.grid-2 > *,
.grid-3 > *,
.grid-4 > * {
  min-width: 0;
}

@media (max-width: 920px) {
  .grid-3,
  .grid-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 248, 242, 0.88);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s ease;
}

.site-header.scrolled {
  border-bottom-color: var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 32px;
  min-height: 68px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-weight: 600;
  font-size: 1.08rem;
  letter-spacing: -0.015em;
  color: var(--ink);
}

.brand:hover {
  text-decoration: none;
}

.brand svg {
  color: var(--accent);
  flex-shrink: 0;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}

.site-nav a {
  color: var(--ink-soft);
  font-size: 0.94rem;
  font-weight: 500;
  padding: 8px 13px;
  border-radius: 8px;
  transition: color 0.15s ease, background-color 0.15s ease;
}

.site-nav a:hover {
  color: var(--ink);
  background: var(--accent-wash);
  text-decoration: none;
}

.site-nav a[aria-current="page"] {
  color: var(--accent-deep);
  background: var(--accent-soft);
}

.header-cta {
  margin-left: 12px;
}

.nav-toggle {
  display: none;
  margin-left: auto;
  background: none;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 9px 10px;
  cursor: pointer;
  color: var(--ink);
}

.nav-toggle svg {
  display: block;
}

@media (max-width: 880px) {
  .nav-toggle {
    display: inline-flex;
  }

  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    padding: 12px 20px 20px;
    box-shadow: 0 24px 40px -24px rgba(26, 34, 28, 0.25);
  }

  .site-nav.open {
    display: flex;
  }

  .site-nav a {
    padding: 12px 14px;
    font-size: 1rem;
  }

  .header-cta {
    margin: 10px 0 0;
  }
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: 0.97rem;
  font-weight: 600;
  line-height: 1;
  padding: 14px 24px;
  border-radius: 10px;
  border: 1px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color 0.15s ease, border-color 0.15s ease,
    color 0.15s ease, transform 0.15s ease;
}

.btn:hover {
  text-decoration: none;
}

.btn:active {
  transform: translateY(1px);
}

.btn--primary {
  background: var(--accent);
  color: #f4faf4;
}

.btn--primary:hover {
  background: var(--accent-deep);
}

.btn--ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line-strong);
}

.btn--ghost:hover {
  border-color: var(--ink-muted);
  background: var(--surface);
}

.btn--light {
  background: #f2f5ee;
  color: var(--term-bg);
}

.btn--light:hover {
  background: #ffffff;
}

.btn--sm {
  padding: 10px 16px;
  font-size: 0.9rem;
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}

/* ---------- Hero ---------- */

.hero {
  padding-block: clamp(56px, 8vw, 96px) clamp(64px, 9vw, 110px);
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 10fr) minmax(0, 11fr);
  gap: clamp(36px, 5vw, 64px);
  align-items: center;
}

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

.hero h1 {
  margin-bottom: 22px;
}

.hero .lede {
  margin-bottom: 30px;
}

.hero-note {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--ink-muted);
  margin-top: 22px;
  letter-spacing: 0.02em;
}

.hero-note span {
  white-space: nowrap;
}

/* ---------- Terminal ---------- */

.terminal {
  background: var(--term-bg);
  border: 1px solid var(--term-edge);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-deep);
  overflow: hidden;
  font-size: 0.83rem;
}

.terminal-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 11px 16px;
  background: rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid var(--term-edge);
}

.terminal-bar i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #3a463c;
}

.terminal-bar span {
  margin-left: 8px;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: var(--term-dim);
  letter-spacing: 0.04em;
}

.terminal pre {
  margin: 0;
  padding: 18px 20px 22px;
  overflow-x: auto;
  font-family: var(--font-mono);
  font-size: inherit;
  line-height: 1.62;
  color: var(--term-text);
  tab-size: 4;
}

.terminal pre,
.snippet code {
  scrollbar-width: thin;
  scrollbar-color: #33403a transparent;
}

.terminal pre::-webkit-scrollbar,
.snippet code::-webkit-scrollbar {
  height: 6px;
}

.terminal pre::-webkit-scrollbar-thumb,
.snippet code::-webkit-scrollbar-thumb {
  background: #33403a;
  border-radius: 3px;
}

.terminal pre::-webkit-scrollbar-track,
.snippet code::-webkit-scrollbar-track {
  background: transparent;
}

.terminal .t-dim { color: var(--term-dim); }
.terminal .t-green { color: var(--term-green); }
.terminal .t-red { color: var(--term-red); }
.terminal .t-yellow { color: var(--term-yellow); }
.terminal .t-cyan { color: var(--term-cyan); }
.terminal .t-bold { font-weight: 600; color: #eef3ea; }

.terminal--hero {
  font-size: 0.78rem;
}

@media (max-width: 640px) {
  .terminal {
    font-size: 0.74rem;
  }
}

/* Snippet: single command with copy button */

.snippet {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--term-bg);
  border: 1px solid var(--term-edge);
  border-radius: 10px;
  padding: 13px 14px 13px 18px;
  margin: 14px 0;
}

.snippet code {
  background: none;
  border: none;
  padding: 0;
  color: var(--term-text);
  font-size: 0.85rem;
  white-space: pre;
  overflow-x: auto;
  flex: 1;
}

.snippet code .t-dim {
  color: var(--term-dim);
}

.copy-btn {
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--term-edge);
  color: var(--term-dim);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  border-radius: 6px;
  padding: 6px 10px;
  cursor: pointer;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.copy-btn:hover {
  color: var(--term-text);
  border-color: var(--term-dim);
}

.copy-btn.copied {
  color: var(--term-green);
  border-color: var(--term-green);
}

/* ---------- Cards ---------- */

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 26px 22px;
  box-shadow: var(--shadow-card);
}

.card h3 {
  font-family: var(--font-body);
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 10px;
}

.card p {
  color: var(--ink-soft);
  font-size: 0.96rem;
  margin-bottom: 0;
}

.card .card-kicker {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 14px;
}

.card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--accent-soft);
  color: var(--accent-deep);
  margin-bottom: 16px;
}

/* Step cards (how it works) */

.step {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow-card);
}

.step-num {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--accent);
  display: block;
  margin-bottom: 12px;
}

.step h3 {
  font-family: var(--font-body);
  font-size: 1.08rem;
  font-weight: 600;
}

.step p {
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.step .snippet {
  margin-bottom: 0;
}

/* ---------- Chips / badges ---------- */

.chip {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  padding: 3px 10px;
  border-radius: 999px;
  vertical-align: middle;
}

.chip--high {
  background: var(--red-soft);
  color: var(--red);
}

.chip--medium {
  background: var(--amber-soft);
  color: var(--amber);
}

.chip--ok {
  background: var(--accent-soft);
  color: var(--accent-deep);
}

/* ---------- Feature / checklist ---------- */

.checklist {
  list-style: none;
  margin: 0;
  padding: 0;
}

.checklist li {
  position: relative;
  padding-left: 34px;
  margin-bottom: 14px;
  color: var(--ink-soft);
}

.checklist li strong {
  color: var(--ink);
}

.checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 5px;
  width: 20px;
  height: 20px;
  border-radius: 6px;
  background: var(--accent-soft)
    url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="12" height="12" viewBox="0 0 24 24" fill="none" stroke="%230b4630" stroke-width="3.4" stroke-linecap="round" stroke-linejoin="round"><path d="M20 6 9 17l-5-5"/></svg>')
    center / 12px no-repeat;
}

.checklist--dark li {
  color: #aeb9a8;
}

.checklist--dark li strong {
  color: #eef3ea;
}

.checklist--dark li::before {
  background-color: rgba(143, 206, 159, 0.14);
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="12" height="12" viewBox="0 0 24 24" fill="none" stroke="%238fce9f" stroke-width="3.4" stroke-linecap="round" stroke-linejoin="round"><path d="M20 6 9 17l-5-5"/></svg>');
}

.xlist li::before {
  background: var(--red-soft)
    url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="11" height="11" viewBox="0 0 24 24" fill="none" stroke="%23b0392e" stroke-width="3.2" stroke-linecap="round"><path d="M18 6 6 18M6 6l12 12"/></svg>')
    center / 11px no-repeat;
}

/* ---------- Prose block (security/about long-form) ---------- */

.prose {
  max-width: 720px;
}

.prose h2 {
  font-size: 1.65rem;
  margin-top: 1.9em;
}

.prose h2:first-child {
  margin-top: 0;
}

.prose ul {
  padding-left: 22px;
  color: var(--ink-soft);
}

.prose li {
  margin-bottom: 8px;
}

/* ---------- Callout ---------- */

.callout {
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  background: var(--surface);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 20px 24px;
  margin: 28px 0;
}

.callout--warn {
  border-left-color: var(--amber);
}

.callout p:last-child {
  margin-bottom: 0;
}

.callout .mono {
  font-size: 0.85rem;
}

/* ---------- Pricing ---------- */

.price-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  align-items: stretch;
}

@media (max-width: 920px) {
  .price-grid {
    grid-template-columns: 1fr;
    max-width: 480px;
    margin-inline: auto;
  }
}

.price-card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 30px 28px;
  box-shadow: var(--shadow-card);
}

.price-card--featured {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent), var(--shadow-card);
}

.price-card .plan-name {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.price-card--featured .plan-name {
  color: var(--accent-deep);
}

.price-card .price {
  font-family: var(--font-display);
  font-size: 2.35rem;
  font-weight: 560;
  line-height: 1.1;
  margin-bottom: 4px;
}

.price-card .price small {
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 400;
  color: var(--ink-muted);
}

.price-card .plan-sub {
  color: var(--ink-muted);
  font-size: 0.92rem;
  margin-bottom: 22px;
}

.price-card ul {
  list-style: none;
  margin: 0 0 26px;
  padding: 0;
  flex: 1;
}

.price-card li {
  position: relative;
  padding-left: 26px;
  margin-bottom: 11px;
  font-size: 0.95rem;
  color: var(--ink-soft);
}

.price-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 7px;
  width: 14px;
  height: 14px;
  background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="%230f5c3d" stroke-width="3" stroke-linecap="round" stroke-linejoin="round"><path d="M20 6 9 17l-5-5"/></svg>')
    center / contain no-repeat;
}

.price-card .btn {
  width: 100%;
}

/* ---------- FAQ ---------- */

.faq {
  max-width: 760px;
}

.faq details {
  border-bottom: 1px solid var(--line);
}

.faq details:first-of-type {
  border-top: 1px solid var(--line);
}

.faq summary {
  list-style: none;
  cursor: pointer;
  padding: 20px 44px 20px 4px;
  font-weight: 600;
  font-size: 1.02rem;
  position: relative;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "";
  position: absolute;
  right: 8px;
  top: 50%;
  width: 18px;
  height: 18px;
  margin-top: -9px;
  background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="%2367705f" stroke-width="2.4" stroke-linecap="round"><path d="M12 5v14M5 12h14"/></svg>')
    center / contain no-repeat;
  transition: transform 0.2s ease;
}

.faq details[open] summary::after {
  transform: rotate(45deg);
}

.faq .faq-body {
  padding: 0 4px 22px;
  color: var(--ink-soft);
  max-width: 66ch;
}

.faq .faq-body p:last-child {
  margin-bottom: 0;
}

/* ---------- CTA band ---------- */

.cta-band {
  background: var(--term-bg);
  color: #f2f5ee;
  border-radius: var(--radius-lg);
  padding: clamp(40px, 6vw, 64px);
  display: grid;
  grid-template-columns: minmax(0, 3fr) auto;
  gap: 32px;
  align-items: center;
  box-shadow: var(--shadow-deep);
}

@media (max-width: 820px) {
  .cta-band {
    grid-template-columns: 1fr;
  }
}

.cta-band h2 {
  color: #f2f5ee;
  margin-bottom: 12px;
}

.cta-band p {
  color: #aeb9a8;
  margin-bottom: 0;
  max-width: 54ch;
}

/* ---------- Media frame (video, screenshots) ---------- */

.media-frame {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 10px;
  box-shadow: var(--shadow-card);
}

.media-frame > video,
.media-frame > img {
  border-radius: calc(var(--radius-lg) - 6px);
  border: 1px solid var(--line);
}

.media-caption {
  font-size: 0.88rem;
  color: var(--ink-muted);
  margin-top: 14px;
  text-align: center;
}

/* Scroll-crop for the tall report screenshot */

.report-scroll {
  max-height: 560px;
  overflow-y: auto;
  border-radius: calc(var(--radius-lg) - 6px);
  border: 1px solid var(--line);
  scrollbar-width: thin;
  scrollbar-color: var(--line-strong) transparent;
}

.report-scroll::-webkit-scrollbar {
  width: 8px;
}

.report-scroll::-webkit-scrollbar-thumb {
  background: var(--line-strong);
  border-radius: 4px;
}

.report-scroll img {
  border: none;
  border-radius: 0;
}

/* ---------- Timeline (changelog) ---------- */

.timeline {
  max-width: 720px;
  border-left: 2px solid var(--line-strong);
  padding-left: 32px;
  margin-left: 8px;
}

.timeline-item {
  position: relative;
  padding-bottom: 40px;
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: -39px;
  top: 6px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent);
  border: 3px solid var(--bg);
}

.timeline-item--future::before {
  background: var(--bg);
  border: 2px solid var(--line-strong);
  width: 10px;
  height: 10px;
  left: -38px;
}

.timeline-date {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-muted);
  display: block;
  margin-bottom: 6px;
}

.timeline-item h3 {
  font-family: var(--font-body);
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.timeline-item p {
  color: var(--ink-soft);
  font-size: 0.97rem;
  max-width: 60ch;
}

/* ---------- Definition rows (design partner give/get) ---------- */

.split-panel {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.split-panel > * {
  min-width: 0;
}

@media (max-width: 820px) {
  .split-panel {
    grid-template-columns: 1fr;
  }
}

.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow-card);
}

.panel h3 {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  margin-bottom: 18px;
}

/* ---------- Footer ---------- */

.site-footer {
  background: var(--term-bg);
  color: #aeb9a8;
  margin-top: clamp(64px, 9vw, 108px);
  padding: clamp(48px, 6vw, 72px) 0 36px;
  font-size: 0.93rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 52px;
}

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

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

.site-footer .brand {
  color: #f2f5ee;
  margin-bottom: 14px;
}

.site-footer .brand svg {
  color: var(--term-green);
}

.footer-tagline {
  max-width: 34ch;
  font-size: 0.9rem;
  line-height: 1.65;
}

.footer-col h4 {
  color: #eef3ea;
  font-size: 0.8rem;
  font-family: var(--font-mono);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-col li {
  margin-bottom: 10px;
}

.footer-col a {
  color: #aeb9a8;
}

.footer-col a:hover {
  color: #eef3ea;
}

.footer-col .soon {
  color: #79856f;
}

.footer-col .soon small {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
}

.footer-bottom {
  border-top: 1px solid var(--term-edge);
  padding-top: 26px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
  justify-content: space-between;
  font-size: 0.83rem;
  color: #79856f;
}

.footer-bottom .mono {
  font-size: 0.78rem;
}

/* ---------- Page hero (inner pages) ---------- */

.page-hero {
  padding-block: clamp(52px, 7vw, 84px) clamp(36px, 5vw, 56px);
}

.page-hero .lede {
  margin-top: 6px;
}

/* ---------- Misc ---------- */

.divider {
  border: none;
  border-top: 1px solid var(--line);
  margin: 0;
}

.center {
  text-align: center;
}

.center .section-head {
  margin-inline: auto;
}

.stack-lg > * + * {
  margin-top: clamp(44px, 6vw, 64px);
}

.footnote {
  font-size: 0.85rem;
  color: var(--ink-muted);
}

/* 404 */

.error-page {
  min-height: 55vh;
  display: grid;
  place-content: center;
  text-align: center;
  padding-block: 80px;
}

/* ---------- Motion ---------- */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}

/* ---------- Print ---------- */

@media print {
  .site-header,
  .site-footer,
  .cta-band,
  .nav-toggle {
    display: none;
  }
}
