/* SerialLoom website. Dark first, light follows the visitor's system setting. */

:root {
  --bg: #070a14;
  --bg-2: #0a0f1f;
  --surface: #0f1529;
  --surface-2: #141b33;
  --border: rgba(148, 163, 255, 0.13);
  --border-strong: rgba(148, 163, 255, 0.24);
  --text: #e8ebf7;
  --text-2: #b8bfd9;
  --muted: #8a93b3;
  --accent: #818cf8;
  --accent-2: #22d3ee;
  --accent-ink: #c7d2fe;
  --good: #34d399;
  --bad: #f87171;
  --grad: linear-gradient(100deg, #818cf8 0%, #22d3ee 100%);
  --glow: 0 30px 120px -20px rgba(99, 102, 241, 0.45), 0 10px 40px -10px rgba(34, 211, 238, 0.25);
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 8px 24px -8px rgba(0, 0, 0, 0.5);
  --radius: 16px;
  --radius-sm: 10px;
  --max: 1180px;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "Cascadia Code", Consolas, monospace;
  color-scheme: dark;
}

@media (prefers-color-scheme: light) {
  :root {
    --bg: #f7f8fc;
    --bg-2: #eef1f9;
    --surface: #ffffff;
    --surface-2: #f3f5fb;
    --border: rgba(30, 41, 90, 0.1);
    --border-strong: rgba(30, 41, 90, 0.18);
    --text: #0c1126;
    --text-2: #333b58;
    --muted: #5a6382;
    --accent: #4f46e5;
    --accent-2: #0891b2;
    --accent-ink: #3730a3;
    --good: #059669;
    --bad: #dc2626;
    --grad: linear-gradient(100deg, #4f46e5 0%, #0891b2 100%);
    --glow: 0 30px 100px -30px rgba(79, 70, 229, 0.35), 0 10px 40px -16px rgba(8, 145, 178, 0.25);
    --shadow: 0 1px 2px rgba(15, 23, 42, 0.06), 0 8px 24px -10px rgba(15, 23, 42, 0.15);
    color-scheme: light;
  }
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

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

a:hover {
  color: var(--accent-2);
}

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

h1,
h2,
h3,
h4 {
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 0.5em;
  color: var(--text);
}

h1 {
  font-size: clamp(2.3rem, 5.6vw, 4.1rem);
  font-weight: 800;
  letter-spacing: -0.035em;
}

h2 {
  font-size: clamp(1.8rem, 3.6vw, 2.6rem);
  font-weight: 750;
}

h3 {
  font-size: 1.2rem;
  font-weight: 650;
}

p {
  margin: 0 0 1em;
}

code,
kbd {
  font-family: var(--mono);
  font-size: 0.88em;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 0.08em 0.4em;
}

.skip {
  position: absolute;
  left: -999px;
  top: 8px;
  z-index: 100;
  background: var(--surface);
  padding: 8px 14px;
  border-radius: 8px;
}

.skip:focus {
  left: 8px;
}

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

.grad {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.icon {
  width: 20px;
  height: 20px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ---------- header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--border);
}

.nav {
  display: flex;
  align-items: center;
  gap: 28px;
  height: 66px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
  font-weight: 750;
  font-size: 1.12rem;
  letter-spacing: -0.02em;
}

.brand img {
  width: 32px;
  height: 32px;
}

.brand:hover {
  color: var(--text);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  margin: 0 0 0 auto;
  padding: 0;
  list-style: none;
}

.nav-links a {
  display: block;
  padding: 8px 12px;
  color: var(--text-2);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  border-radius: 8px;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--text);
  background: var(--surface-2);
}

.nav-cta {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-toggle {
  display: none;
  margin-left: auto;
  background: none;
  border: 1px solid var(--border-strong);
  color: var(--text);
  border-radius: 10px;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

@media (max-width: 900px) {
  .nav-toggle {
    display: inline-flex;
  }
  .nav-links,
  .nav-cta .btn-ghost {
    display: none;
  }
  .nav {
    gap: 10px;
  }
  .nav-cta {
    margin-left: auto;
  }
  .nav-toggle {
    margin-left: 0;
  }
  .site-header.open .nav-links {
    display: flex;
    position: absolute;
    top: 66px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 12px 16px 18px;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
  }
  .site-header.open .nav-links a {
    padding: 12px 14px;
    font-size: 1.02rem;
  }
}

@media (max-width: 480px) {
  .nav-cta .btn span.long {
    display: none;
  }
}

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 11px 20px;
  border-radius: 12px;
  font: inherit;
  font-weight: 600;
  font-size: 0.98rem;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
  white-space: nowrap;
}

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

.btn-primary {
  color: #fff;
  background: linear-gradient(100deg, #6366f1 0%, #0ea5e9 100%);
  box-shadow: 0 8px 30px -8px rgba(99, 102, 241, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.btn-primary:hover {
  color: #fff;
  box-shadow: 0 12px 40px -8px rgba(99, 102, 241, 0.85), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.btn-ghost {
  color: var(--text);
  background: var(--surface);
  border-color: var(--border-strong);
}

.btn-ghost:hover {
  color: var(--text);
  border-color: var(--accent);
}

.btn-sm {
  padding: 8px 14px;
  font-size: 0.9rem;
  border-radius: 10px;
}

.btn-lg {
  padding: 15px 26px;
  font-size: 1.05rem;
  border-radius: 14px;
}

/* ---------- hero ---------- */

.hero {
  position: relative;
  padding: 88px 0 40px;
  text-align: center;
  isolation: isolate;
}

.hero::before {
  content: "";
  position: absolute;
  inset: -66px 0 auto;
  height: 760px;
  z-index: -1;
  background:
    radial-gradient(600px 340px at 30% 20%, rgba(99, 102, 241, 0.28), transparent 70%),
    radial-gradient(520px 320px at 72% 30%, rgba(34, 211, 238, 0.18), transparent 70%);
  pointer-events: none;
}

.hero::after {
  content: "";
  position: absolute;
  inset: -66px 0 auto;
  height: 760px;
  z-index: -1;
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 30%, transparent 75%);
  opacity: 0.5;
  pointer-events: none;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px 6px 8px;
  margin-bottom: 26px;
  border: 1px solid var(--border-strong);
  background: color-mix(in srgb, var(--surface) 70%, transparent);
  border-radius: 999px;
  font-size: 0.86rem;
  font-weight: 500;
  color: var(--text-2);
  text-decoration: none;
}

.eyebrow b {
  padding: 2px 9px;
  border-radius: 999px;
  background: var(--grad);
  color: #fff;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

a.eyebrow:hover {
  color: var(--text);
  border-color: var(--accent);
}

.hero h1 {
  max-width: 920px;
  margin: 0 auto 22px;
}

.lead {
  max-width: 720px;
  margin: 0 auto 34px;
  font-size: clamp(1.06rem, 1.9vw, 1.24rem);
  color: var(--text-2);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px 20px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
  color: var(--muted);
  font-size: 0.9rem;
}

.hero-meta li {
  display: flex;
  align-items: center;
  gap: 6px;
}

.hero-meta .icon {
  width: 16px;
  height: 16px;
  color: var(--good);
}

/* ---------- screenshot frame ---------- */

.shot {
  margin: 64px auto 0;
  max-width: 1120px;
}

.shot-frame {
  border-radius: 14px;
  border: 1px solid var(--border-strong);
  background: var(--surface);
  overflow: hidden;
  box-shadow: var(--glow), var(--shadow);
}

.shot-bar {
  display: flex;
  align-items: center;
  gap: 7px;
  height: 34px;
  padding: 0 14px;
  border-bottom: 1px solid var(--border);
  background: var(--surface-2);
}

.shot-bar i {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--border-strong);
}

.shot-bar em {
  margin: 0 auto;
  padding-right: 50px;
  font-style: normal;
  font-size: 0.78rem;
  color: var(--muted);
  font-weight: 500;
}

.shot img {
  width: 100%;
  height: auto;
}

.shot figcaption {
  margin-top: 14px;
  font-size: 0.9rem;
  color: var(--muted);
  text-align: center;
}

/* ---------- strip ---------- */

.strip {
  padding: 56px 0 24px;
}

.strip ul {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.strip li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 18px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: color-mix(in srgb, var(--surface) 60%, transparent);
  font-size: 0.93rem;
  color: var(--text-2);
  line-height: 1.5;
}

.strip strong {
  display: block;
  color: var(--text);
  font-size: 0.98rem;
}

.strip .icon {
  color: var(--accent-2);
  margin-top: 2px;
}

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

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

/* ---------- sections ---------- */

.section {
  padding: 96px 0;
}

.section-alt {
  background: var(--bg-2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section-head {
  max-width: 760px;
  margin: 0 auto 56px;
  text-align: center;
}

.section-head p {
  color: var(--text-2);
  font-size: 1.1rem;
}

.kicker {
  display: inline-block;
  margin-bottom: 12px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-2);
}

/* feature cards */

.grid {
  display: grid;
  gap: 18px;
}

.grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

.grid-2 {
  grid-template-columns: repeat(2, 1fr);
}

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

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

.card {
  position: relative;
  padding: 26px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: var(--shadow);
  transition: border-color 0.2s ease, transform 0.2s ease;
}

a.card {
  display: block;
  color: inherit;
  text-decoration: none;
}

a.card:hover,
.card:hover {
  border-color: var(--border-strong);
}

a.card:hover {
  transform: translateY(-2px);
}

.card h3 {
  margin-bottom: 8px;
}

.card p {
  margin: 0;
  color: var(--text-2);
  font-size: 0.97rem;
}

.card .more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 14px;
  color: var(--accent);
  font-weight: 600;
  font-size: 0.93rem;
}

.card .more .icon {
  width: 16px;
  height: 16px;
}

.badge-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-bottom: 18px;
  border-radius: 12px;
  color: var(--accent-ink);
  background: color-mix(in srgb, var(--accent) 16%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent) 28%, transparent);
}

.badge-icon.cyan {
  color: var(--accent-2);
  background: color-mix(in srgb, var(--accent-2) 14%, transparent);
  border-color: color-mix(in srgb, var(--accent-2) 28%, transparent);
}

.badge-icon .icon {
  width: 22px;
  height: 22px;
}

/* split layout */

.split {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: 64px;
  align-items: center;
}

.split.flip {
  grid-template-columns: 1.25fr 1fr;
}

.split.flip > :first-child {
  order: 2;
}

@media (max-width: 960px) {
  .split,
  .split.flip {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .split.flip > :first-child {
    order: 0;
  }
}

.split .shot {
  margin: 0;
}

.checks {
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}

.checks li {
  display: flex;
  gap: 12px;
  padding: 7px 0;
  color: var(--text-2);
}

.checks .icon {
  margin-top: 4px;
  width: 18px;
  height: 18px;
  color: var(--good);
}

/* how it works diagram */

.flow {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  align-items: stretch;
  counter-reset: flow;
}

.flow-step {
  position: relative;
  padding: 24px 22px;
  margin: 0 10px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface);
}

.flow-step::after {
  content: "";
  position: absolute;
  top: 50%;
  right: -21px;
  width: 22px;
  height: 2px;
  background: var(--grad);
}

.flow-step:last-child::after {
  display: none;
}

.flow-step small {
  display: block;
  margin-bottom: 6px;
  font-family: var(--mono);
  font-size: 0.74rem;
  color: var(--accent-2);
  letter-spacing: 0.04em;
}

.flow-step h3 {
  font-size: 1.04rem;
  margin-bottom: 6px;
}

.flow-step p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-2);
}

@media (max-width: 960px) {
  .flow {
    grid-template-columns: 1fr;
    gap: 22px;
  }
  .flow-step {
    margin: 0;
  }
  .flow-step::after {
    top: auto;
    bottom: -22px;
    right: auto;
    left: 40px;
    width: 2px;
    height: 22px;
  }
}

.note {
  margin-top: 34px;
  padding: 18px 22px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-2);
  font-size: 0.95rem;
}

.note strong {
  color: var(--text);
}

/* steps */

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.steps li {
  position: relative;
  padding: 28px 26px 26px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface);
  counter-increment: step;
}

.steps li::before {
  content: counter(step);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  margin-bottom: 16px;
  border-radius: 10px;
  background: var(--grad);
  color: #fff;
  font-weight: 750;
  font-size: 0.95rem;
}

.steps h3 {
  font-size: 1.08rem;
}

.steps p {
  margin: 0;
  color: var(--text-2);
  font-size: 0.96rem;
}

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

/* comparison table */

.table-wrap {
  overflow-x: auto;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface);
  -webkit-overflow-scrolling: touch;
}

table {
  width: 100%;
  min-width: 620px;
  border-collapse: collapse;
  font-size: 0.95rem;
}

th,
td {
  padding: 15px 18px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--border);
}

tr:last-child td {
  border-bottom: 0;
}

thead th {
  background: var(--surface-2);
  font-size: 0.85rem;
  font-weight: 650;
  color: var(--text-2);
}

thead th.us {
  color: var(--text);
}

tbody th {
  font-weight: 550;
  color: var(--text);
  width: 34%;
}

td {
  color: var(--text-2);
}

td.us {
  color: var(--text);
  background: color-mix(in srgb, var(--accent) 7%, transparent);
}

.yes,
.no,
.meh {
  display: inline-flex;
  align-items: flex-start;
  gap: 6px;
}

.yes .icon,
.no .icon,
.meh .icon {
  margin-top: 3px;
}

.yes .icon {
  color: var(--good);
  width: 17px;
  height: 17px;
}

.no .icon {
  color: var(--bad);
  width: 17px;
  height: 17px;
}

.meh .icon {
  color: var(--muted);
  width: 17px;
  height: 17px;
}

/* FAQ */

.faq {
  max-width: 820px;
  margin: 0 auto;
}

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

.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 4px;
  cursor: pointer;
  list-style: none;
  font-weight: 600;
  font-size: 1.06rem;
}

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

.faq summary::after {
  content: "";
  flex: none;
  width: 10px;
  height: 10px;
  border-right: 2px solid var(--muted);
  border-bottom: 2px solid var(--muted);
  transform: rotate(45deg) translate(-3px, -3px);
  transition: transform 0.2s ease;
}

.faq details[open] summary::after {
  transform: rotate(-135deg) translate(-3px, -3px);
}

.faq .answer {
  padding: 0 4px 22px;
  color: var(--text-2);
}

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

/* CTA band */

.cta {
  position: relative;
  padding: 72px 40px;
  border-radius: 24px;
  text-align: center;
  overflow: hidden;
  border: 1px solid var(--border-strong);
  background:
    radial-gradient(500px 260px at 15% 0%, rgba(99, 102, 241, 0.3), transparent 70%),
    radial-gradient(500px 260px at 85% 100%, rgba(34, 211, 238, 0.22), transparent 70%),
    var(--surface);
}

.cta h2 {
  max-width: 720px;
  margin: 0 auto 14px;
}

.cta p {
  max-width: 600px;
  margin: 0 auto 30px;
  color: var(--text-2);
  font-size: 1.08rem;
}

.cta .small {
  margin: 18px auto 0;
  font-size: 0.86rem;
  color: var(--muted);
}

@media (max-width: 560px) {
  .cta {
    padding: 52px 20px;
  }
}

/* ---------- article pages ---------- */

.page-hero {
  position: relative;
  padding: 72px 0 32px;
  isolation: isolate;
}

.page-hero::before {
  content: "";
  position: absolute;
  inset: -66px 0 auto;
  height: 520px;
  z-index: -1;
  background:
    radial-gradient(520px 260px at 20% 30%, rgba(99, 102, 241, 0.22), transparent 70%),
    radial-gradient(480px 260px at 80% 20%, rgba(34, 211, 238, 0.13), transparent 70%);
}

.page-hero h1 {
  font-size: clamp(2.1rem, 4.6vw, 3.3rem);
  max-width: 900px;
}

.page-hero .lead {
  margin: 0 0 30px;
  max-width: 760px;
}

.page-hero .hero-actions {
  justify-content: flex-start;
}

.crumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 22px;
  padding: 0;
  list-style: none;
  font-size: 0.88rem;
  color: var(--muted);
}

.crumbs li + li::before {
  content: "/";
  margin-right: 8px;
  opacity: 0.6;
}

.crumbs a {
  color: var(--muted);
  text-decoration: none;
}

.crumbs a:hover {
  color: var(--text);
}

.article {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 64px;
  padding: 40px 0 96px;
}

@media (max-width: 960px) {
  .article {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

.prose {
  max-width: 760px;
  color: var(--text-2);
}

.prose h2 {
  font-size: clamp(1.5rem, 2.8vw, 1.95rem);
  margin-top: 2.2em;
}

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

.prose h3 {
  margin-top: 1.8em;
}

.prose strong {
  color: var(--text);
}

.prose ul,
.prose ol {
  padding-left: 1.3em;
  margin: 0 0 1.2em;
}

.prose li {
  margin: 0.4em 0;
}

.prose li::marker {
  color: var(--accent);
}

.prose .shot {
  margin: 34px 0;
}

.prose .table-wrap {
  margin: 24px 0 30px;
}

.prose pre {
  margin: 0 0 1.3em;
  padding: 18px 20px;
  overflow-x: auto;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--surface);
  font-family: var(--mono);
  font-size: 0.86rem;
  line-height: 1.6;
  color: var(--text);
}

.prose pre code {
  background: none;
  border: 0;
  padding: 0;
  font-size: inherit;
}

.callout {
  margin: 26px 0;
  padding: 18px 22px;
  border-radius: var(--radius-sm);
  border: 1px solid color-mix(in srgb, var(--accent) 35%, transparent);
  background: color-mix(in srgb, var(--accent) 8%, var(--surface));
  font-size: 0.97rem;
}

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

.aside {
  position: sticky;
  top: 96px;
  align-self: start;
  display: grid;
  gap: 16px;
}

@media (max-width: 960px) {
  .aside {
    position: static;
  }
}

.aside .card {
  padding: 22px;
}

.aside h4 {
  margin: 0 0 12px;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

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

.aside li a {
  display: block;
  padding: 6px 0;
  color: var(--text-2);
  text-decoration: none;
  font-size: 0.95rem;
}

.aside li a:hover {
  color: var(--accent);
}

.aside .card p {
  font-size: 0.92rem;
  margin-bottom: 16px;
}

.aside .btn {
  width: 100%;
}

/* ---------- footer ---------- */

.site-footer {
  border-top: 1px solid var(--border);
  background: var(--bg-2);
  padding: 64px 0 40px;
  font-size: 0.93rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr repeat(3, 1fr);
  gap: 40px;
}

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

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

.site-footer p {
  color: var(--muted);
  max-width: 340px;
  margin-top: 14px;
}

.site-footer h4 {
  margin: 4px 0 14px;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

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

.site-footer li a {
  display: inline-block;
  padding: 5px 0;
  color: var(--text-2);
  text-decoration: none;
}

.site-footer li a:hover {
  color: var(--accent);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.86rem;
}

.footer-bottom a {
  color: var(--muted);
}

/* ---------- reveal on scroll ---------- */

.js .reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.js .reveal.in {
  opacity: 1;
  transform: none;
}

.center {
  text-align: center;
}

.mt-40 {
  margin-top: 40px;
}
