/* Lamella — marketing site styles
   Indigo brand, teal CTAs, slate neutrals. No gradients, no animations on load. */

:root {
  --indigo-900: #3730A3;
  --indigo-700: #4338CA;
  --indigo-600: #4F46E5;
  --indigo-500: #6366F1;
  --indigo-400: #818CF8;
  --indigo-200: #A5B4FC;
  --indigo-50:  #EEF2FF;

  --teal-500:  #14B8A6;
  --teal-600:  #0D9488;
  --teal-700:  #0F766E;   /* WCAG AA on white for normal text */
  --teal-50:   #F0FDFA;

  --ink:       #0F172A;
  --slate-700: #334155;
  --slate-500: #64748B;
  --slate-400: #94A3B8;
  --slate-300: #CBD5E1;
  --slate-200: #E2E8F0;
  --slate-100: #F1F5F9;
  --slate-50:  #F8FAFC;
  --white:     #FFFFFF;

  --code-bg:   #0F172A;
  --code-bg-2: #1E293B;

  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.04);
  --shadow:    0 1px 3px rgba(15, 23, 42, 0.06), 0 1px 2px rgba(15, 23, 42, 0.04);

  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Consolas, monospace;

  --max-w:    1160px;
  --max-prose: 760px;
  --radius:   6px;
  --radius-lg: 8px;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { display: block; max-width: 100%; }

a {
  color: var(--indigo-700);
  text-decoration: underline solid;
  text-decoration-thickness: 1px;
  text-decoration-color: transparent;
  text-underline-offset: 3px;
  transition: text-decoration-color 180ms ease;
}
a:hover { text-decoration-color: currentColor; }
a.brand, a.brand:hover, a.btn, a.btn:hover { text-decoration: none; }

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

p { margin: 0 0 1em; }

h1, h2, h3, h4 {
  font-family: var(--font-sans);
  color: var(--ink);
  margin: 0;
  letter-spacing: -0.02em;
}

h1 {
  font-size: clamp(36px, 5.4vw, 56px);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.03em;
}

h2 {
  font-size: clamp(28px, 3.4vw, 36px);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.025em;
}

h3 {
  font-size: 20px;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

code, pre, .mono { font-family: var(--font-mono); }

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

.wrap {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

.prose {
  max-width: var(--max-prose);
  margin-left: auto;
  margin-right: auto;
}

.section {
  padding: 96px 0;
  border-top: 1px solid var(--slate-200);
}
.section:first-of-type { border-top: 0; }
@media (max-width: 720px) {
  .section { padding: 64px 0; }
}

.section-tight { padding: 72px 0; }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--slate-500);
  margin: 0 0 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.eyebrow::before {
  content: "";
  flex: 0 0 22px;
  height: 1px;
  background: var(--slate-300);
}

.lede {
  font-size: 19px;
  color: var(--slate-700);
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(180%) blur(8px);
  -webkit-backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid var(--slate-200);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 0;
  color: var(--ink);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.01em;
}
.brand:hover { border: 0; }
.brand img { height: 32px; width: auto; }
.brand .wordmark { color: var(--ink); }
.wordmark .ll { color: var(--teal-700); }

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 500;
  line-height: 1;
  padding: 11px 18px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color 120ms ease, border-color 120ms ease, color 120ms ease;
  white-space: nowrap;
}
.btn:hover { border-bottom-color: transparent; }

.btn-primary {
  background: var(--teal-500);
  color: #ffffff;
  border-color: var(--teal-500);
}
.btn-primary:hover {
  background: var(--teal-600);
  border-color: var(--teal-600);
  border-bottom-color: var(--teal-600);
}

.btn-secondary {
  background: transparent;
  color: var(--indigo-700);
  border-color: var(--indigo-200);
}
.btn-secondary:hover {
  background: var(--indigo-50);
  border-color: var(--indigo-500);
  border-bottom-color: var(--indigo-500);
}

.btn-ghost {
  background: transparent;
  color: var(--slate-700);
  padding: 8px 14px;
  font-size: 14px;
}
.btn-ghost:hover { color: var(--ink); background: var(--slate-100); }

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* ------------- Code blocks / terminal ------------- */

.code {
  position: relative;
  background: var(--code-bg);
  color: #E2E8F0;
  border-radius: var(--radius-lg);
  padding: 18px 56px 18px 20px;
  font-family: var(--font-mono);
  font-size: 14px;
  line-height: 1.65;
  overflow-x: auto;
  /* Defense against CSS Grid's default min-width:auto on grid items.
     Without this, a wide unbreakable <pre> inside .code propagates
     its intrinsic width up through any 1fr grid column the .code
     happens to live in, blowing the parent past the viewport. */
  min-width: 0;
  max-width: 100%;
  border: 1px solid #1E293B;
}
.code .tok-cmd { color: #A5B4FC; }
.code .tok-flag { color: #94A3B8; }
.code .tok-arg { color: #E2E8F0; }
.code .tok-str { color: #5EEAD4; }
.code .tok-kw  { color: #818CF8; }
.code .tok-num { color: #FCD34D; }
.code .tok-c   { color: #64748B; font-style: italic; }

.copy-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(148, 163, 184, 0.10);
  color: #CBD5E1;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 120ms ease, color 120ms ease;
  font-family: var(--font-mono);
  font-size: 11px;
  padding: 0 8px;
}
.copy-btn:hover { background: rgba(148, 163, 184, 0.18); color: #fff; }
.copy-btn.copied { color: var(--teal-500); border-color: rgba(20, 184, 166, 0.4); }
.copy-btn svg { width: 14px; height: 14px; }

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

.hero {
  padding: 88px 0 96px;
}
@media (max-width: 720px) {
  .hero { padding: 56px 0 64px; }
}

.hero h1 {
  max-width: 18ch;
  text-wrap: balance;
}
.hero .lede {
  margin-top: 20px;
  font-size: 19px;
}
.hero .terminal-wrap {
  margin-top: 36px;
  max-width: 760px;
}
.hero .btn-row {
  margin-top: 24px;
}
.hero .badges {
  margin-top: 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  font-family: var(--font-mono);
  color: var(--slate-500);
  border: 1px solid var(--slate-200);
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--white);
}
.badge .dot {
  width: 5px; height: 5px;
  background: var(--teal-500);
  border-radius: 50%;
}

/* ------------- Worked example ------------- */

.example {
  background: var(--slate-50);
}

.example .heading-block { margin-bottom: 48px; }

.example-section-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 36px 0 14px;
}
.example-section-head:first-of-type { margin-top: 0; }
.example-label {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--slate-500);
  flex: 0 0 auto;
}
.example-section-head::after {
  content: "";
  flex: 1 1 auto;
  height: 1px;
  background: var(--slate-200);
}

.example-inputs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
@media (max-width: 720px) {
  .example-inputs { grid-template-columns: 1fr; }
}

.input-card {
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-lg);
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
}
.input-card .card-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--indigo-700);
  margin-bottom: 8px;
}
.input-card .card-label .ico {
  width: 14px; height: 14px;
  color: var(--indigo-500);
}
.input-card .card-body {
  font-size: 15px;
  color: var(--slate-700);
  line-height: 1.55;
  margin: 0;
}
.input-card .receipt-body {
  font-family: var(--font-mono);
  font-size: 13px;
  background: var(--slate-50);
  border: 1px dashed var(--slate-200);
  border-radius: 4px;
  padding: 10px 12px;
  color: var(--slate-700);
  white-space: pre;
  line-height: 1.6;
  overflow-x: auto;
  margin: 0;
}

.example-bridge {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 36px 0;
  position: relative;
}
.bridge-top,
.bridge-bottom {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}
.bridge-top { margin-bottom: 4px; }
.bridge-bottom { margin-top: 4px; }
.bridge-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}
.bridge-arrow {
  font-family: var(--font-mono);
  color: var(--slate-400);
  font-size: 22px;
  line-height: 1;
  user-select: none;
  font-weight: 400;
}
.bridge-arrow.vertical {
  font-size: 18px;
  padding: 2px 0;
  color: var(--slate-300);
}
.service-chip {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: 6px;
  padding: 9px 14px;
  min-width: 116px;
  text-align: center;
}
.service-chip .chip-name {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 13.5px;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.service-chip .chip-role {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--slate-500);
}
.bridge-pill {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: var(--white);
  border: 1px solid var(--slate-200);
  color: var(--ink);
  padding: 14px 22px;
  border-radius: 999px;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.01em;
  box-shadow:
    0 0 0 1px rgba(15, 23, 42, 0.03),
    0 1px 2px rgba(15, 23, 42, 0.04),
    0 18px 36px -14px rgba(15, 23, 42, 0.14);
  white-space: nowrap;
}
.bridge-pill img { height: 26px; width: auto; }
.bridge-pill .wordmark { line-height: 1; }

@media (max-width: 720px) {
  .bridge-row {
    flex-direction: column;
    gap: 8px;
  }
  .bridge-arrow.horizontal {
    transform: rotate(90deg);
  }
}

.example-outputs {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.txn-row {
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-lg);
  padding: 14px 18px;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 14px;
}
.txn-row .date {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--slate-500);
  flex: 0 0 60px;
}
.txn-row .payee {
  font-weight: 500;
  color: var(--ink);
  font-size: 15px;
  flex: 1 1 auto;
}
.txn-row .amount {
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
  flex: 0 0 auto;
}
.txn-row .ctx {
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--teal-600);
  line-height: 1.5;
  flex-basis: 100%;
  margin-left: 74px;
}
.txn-row .ctx::before {
  content: "→ ";
  color: var(--teal-500);
}
.txn-row.derived {
  background: var(--teal-50);
  border-left: 3px solid var(--teal-500);
  padding-left: 15px;
}
@media (max-width: 540px) {
  .txn-row .ctx { margin-left: 0; }
}

.diagram-caption {
  margin-top: 32px;
  text-align: center;
  font-size: 14px;
  color: var(--slate-500);
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

/* ------------- Card grid (5 sources, beyond the ledger) ------------- */

/* ===== Screenshots section =====
 * Feature shot at full width; 2x2 grid of supporting shots below.
 * Pure CSS so it works without JS / build step.
 */
.screenshots .heading-block { max-width: 720px; }
.screenshot {
  margin: 0;
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04),
              0 8px 24px -16px rgba(15, 23, 42, 0.18);
}
.screenshot img {
  display: block;
  width: 100%;
  height: auto;
}
.screenshot figcaption {
  padding: 12px 16px;
  font-size: 14px;
  color: var(--slate-700);
  border-top: 1px solid var(--slate-100);
  background: var(--slate-50);
}
.screenshot-feature { margin-bottom: 32px; }
.screenshot-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
@media (max-width: 720px) {
  .screenshot-grid { grid-template-columns: 1fr; }
}

.grid {
  display: grid;
  gap: 20px;
}
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

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

.card {
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-lg);
  padding: 24px;
}
.card .ico-wrap {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--indigo-50);
  border-radius: 6px;
  color: var(--indigo-700);
  margin-bottom: 14px;
}
.card .ico-wrap svg { width: 18px; height: 18px; }
.card h3 { margin-bottom: 6px; }
.card p {
  margin: 0;
  font-size: 15px;
  color: var(--slate-700);
  line-height: 1.6;
}
.card .num {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--slate-400);
  margin-bottom: 8px;
  letter-spacing: 0.06em;
}

/* ------------- Two-column prose+code ------------- */

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
}
@media (max-width: 900px) {
  .split { grid-template-columns: minmax(0, 1fr); gap: 32px; }
}
.split > * { min-width: 0; }

.split p { color: var(--slate-700); font-size: 17px; line-height: 1.7; }

.code-block {
  position: relative;
  background: var(--code-bg);
  color: #E2E8F0;
  border-radius: var(--radius-lg);
  padding: 22px 56px 22px 22px;
  font-family: var(--font-mono);
  font-size: 13.5px;
  line-height: 1.7;
  overflow-x: auto;
  /* Same min-width:0 / max-width:100% defense as .code so a long
     unbreakable line scrolls inside the box rather than blowing out
     a 1fr grid cell. */
  min-width: 0;
  max-width: 100%;
}
.code-block pre {
  margin: 0;
  font-family: inherit;
  white-space: pre;
}
.code-block .caption {
  display: block;
  margin-top: 14px;
  font-family: var(--font-sans);
  font-size: 13px;
  color: var(--slate-500);
  font-style: italic;
}

/* ------------- AI section ------------- */

.ai-section .prose p { color: var(--slate-700); }
.ai-list {
  margin-top: 24px;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 14px;
}
.ai-list li {
  padding-left: 24px;
  position: relative;
  font-size: 16px;
  color: var(--slate-700);
}
.ai-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 8px;
  height: 8px;
  background: var(--teal-500);
  border-radius: 50%;
}
.ai-list li strong {
  color: var(--ink);
  font-weight: 600;
}

/* ------------- Imports section ------------- */

.imports-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
@media (max-width: 800px) {
  .imports-grid { grid-template-columns: 1fr; }
}
.imports-card {
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-lg);
  padding: 28px;
}
.imports-card h3 {
  font-size: 18px;
  margin-bottom: 10px;
  color: var(--ink);
}
.imports-card .tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.06em;
  color: var(--indigo-700);
  background: var(--indigo-50);
  padding: 3px 8px;
  border-radius: 4px;
  margin-bottom: 14px;
}
.imports-card p {
  font-size: 15.5px;
  color: var(--slate-700);
  line-height: 1.65;
  margin: 0 0 12px;
}
.imports-card p:last-child { margin-bottom: 0; }
.format-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
  margin-bottom: 14px;
}
.format-row .fmt {
  font-family: var(--font-mono);
  font-size: 12px;
  background: var(--slate-100);
  color: var(--slate-700);
  padding: 3px 8px;
  border-radius: 4px;
  border: 1px solid var(--slate-200);
}

/* ------------- Beyond the ledger (6-cell) ------------- */

.grid-6 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--white);
}
.grid-6 .card {
  border-radius: 0;
  border: 0;
  border-right: 1px solid var(--slate-200);
  border-bottom: 1px solid var(--slate-200);
  padding: 28px;
}
.grid-6 .card:nth-child(3n) { border-right: 0; }
.grid-6 .card:nth-last-child(-n+3) { border-bottom: 0; }

@media (max-width: 800px) {
  .grid-6 { grid-template-columns: repeat(2, 1fr); }
  .grid-6 .card:nth-child(3n) { border-right: 1px solid var(--slate-200); }
  .grid-6 .card:nth-child(2n) { border-right: 0; }
  .grid-6 .card:nth-last-child(-n+3) { border-bottom: 1px solid var(--slate-200); }
  .grid-6 .card:nth-last-child(-n+2) { border-bottom: 0; }
}
@media (max-width: 520px) {
  .grid-6 { grid-template-columns: 1fr; }
  .grid-6 .card { border-right: 0 !important; border-bottom: 1px solid var(--slate-200) !important; }
  .grid-6 .card:last-child { border-bottom: 0 !important; }
}

/* ------------- Audience (yes / no) ------------- */

.audience {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}
@media (max-width: 800px) {
  .audience { grid-template-columns: 1fr; }
}
.audience-col {
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-lg);
  padding: 28px 32px;
}
.audience-col h3 {
  font-size: 16px;
  font-family: var(--font-mono);
  font-weight: 600;
  letter-spacing: 0.02em;
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.audience-col.yes h3 { color: var(--teal-600); }
.audience-col.no h3 { color: var(--slate-500); }
.audience-col h3 .marker {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 700;
}
.audience-col.yes h3 .marker { background: var(--teal-50); color: var(--teal-600); }
.audience-col.no h3 .marker { background: var(--slate-100); color: var(--slate-500); }

.audience-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 12px;
}
.audience-col li {
  font-size: 15.5px;
  color: var(--slate-700);
  line-height: 1.55;
  padding-left: 22px;
  position: relative;
}
.audience-col.yes li::before {
  content: "+";
  position: absolute; left: 0; top: 0;
  color: var(--teal-500);
  font-weight: 600;
  font-family: var(--font-mono);
}
.audience-col.no li::before {
  content: "−";
  position: absolute; left: 0; top: 0;
  color: var(--slate-400);
  font-weight: 600;
  font-family: var(--font-mono);
}

/* ------------- Open source ------------- */

.opensource {
  background: var(--slate-50);
}
.opensource .prose p {
  font-size: 18px;
  color: var(--slate-700);
}

/* ------------- Get started (steps) ------------- */

.steps {
  display: grid;
  gap: 28px;
}
.step {
  display: grid;
  /* minmax(0, 1fr) instead of plain 1fr so a wide <pre> in the step
     body cannot force the column wider than the viewport. Default
     1fr behaves as minmax(auto, 1fr); the auto min defeats overflow-x
     scrolling on the inner .code block. */
  grid-template-columns: 56px minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}
.step > * { min-width: 0; }
@media (max-width: 600px) {
  .step { grid-template-columns: 44px minmax(0, 1fr); gap: 14px; }
}
.step .num {
  width: 44px; height: 44px;
  border-radius: 6px;
  background: var(--indigo-50);
  color: var(--indigo-700);
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.step h3 { margin-bottom: 10px; }
.step p { margin: 0 0 14px; color: var(--slate-700); }
.step .code { margin-top: 6px; }

.cta-row {
  margin-top: 36px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

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

.site-footer {
  border-top: 1px solid var(--slate-200);
  padding: 64px 0 24px;
  background: var(--white);
  font-size: 14px;
  color: var(--slate-700);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 48px;
}
@media (max-width: 800px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}
@media (max-width: 520px) {
  .footer-grid { grid-template-columns: 1fr; }
}

.footer-grid h4 {
  font-size: 12px;
  font-family: var(--font-mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--slate-500);
  margin-bottom: 14px;
  font-weight: 500;
}
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.footer-grid a { color: var(--slate-700); }
.footer-grid a:hover { color: var(--ink); }

.footer-brand .tagline {
  margin-top: 12px;
  font-size: 14px;
  color: var(--slate-500);
  max-width: 280px;
  line-height: 1.55;
}
.footer-brand .tagline-aside {
  color: var(--slate-400);
  font-style: italic;
}

.footer-bottom {
  margin-top: 48px;
  padding-top: 20px;
  border-top: 1px solid var(--slate-200);
  font-size: 13px;
  color: var(--slate-500);
  line-height: 1.6;
}
.footer-bottom a { color: var(--slate-700); }
.footer-bottom .footer-bottom-sep { margin: 0 6px; color: var(--slate-300); }
.footer-bottom .footer-kofi { color: var(--slate-500); text-decoration: none; opacity: 0.85; }
.footer-bottom .footer-kofi:hover { color: var(--brand-purple, var(--slate-700)); opacity: 1; }

/* ------------- Trademark page ------------- */

.tm-page {
  max-width: 720px;
  margin: 0 auto;
  padding: 64px 24px 80px;
}
.tm-page h1 {
  font-size: 36px;
  margin-bottom: 8px;
}
.tm-page .lede {
  margin-bottom: 40px;
  font-size: 17px;
}
.tm-page h2 {
  font-size: 22px;
  margin-top: 40px;
  margin-bottom: 12px;
}
.tm-page p, .tm-page li {
  font-size: 16px;
  color: var(--slate-700);
  line-height: 1.7;
}
.tm-page ul { padding-left: 22px; display: grid; gap: 8px; margin: 0 0 16px; }
.tm-page .code-block { font-size: 12.5px; }

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

@media (prefers-reduced-motion: no-preference) {
  .hero h1,
  .hero .lede,
  .hero .terminal-wrap,
  .hero .btn-row,
  .hero .badges {
    opacity: 0;
    transform: translateY(8px);
    animation: rise 720ms cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
  }
  .hero h1            { animation-delay:  80ms; }
  .hero .lede         { animation-delay: 200ms; }
  .hero .terminal-wrap{ animation-delay: 340ms; }
  .hero .btn-row      { animation-delay: 460ms; }
  .hero .badges       { animation-delay: 560ms; }
}
@keyframes rise {
  to { opacity: 1; transform: translateY(0); }
}
