/*
 * pltv.io Design System — inspired by trajectory.ai (#platform)
 * Palette: Crisp white canvas, charcoal ink (#14151b / #28292e), mist (#f6f6fa),
 * signature periwinkle (#aeb8f2 / #dce0fb / #5a7dfc), pastel callouts (teal, green, peach, lime),
 * 24px card radii, pill controls with spring micro-motion, calm architectural typography.
 */

:root {
  --white: #ffffff;
  --black: #101214;
  --ink: #14151b;
  --charcoal: #28292e;
  --graphite: #40424e;
  --grey: #6c6e7c;
  --mist: #f6f6fa;
  --hairline: #e2e3ec;

  --periwinkle: #aeb8f2;
  --periwinkle-tint: #dce0fb;
  --periwinkle-sky: #ececfc;
  --hero-wash: #5a7dfc;

  --teal: #a8ddd0;
  --teal-tint: #d0fdf2;
  --teal-shade: #47635c;

  --green: #bfe3c2;
  --green-tint: #def8d6;
  --green-shade: #4a604c;

  --peach: #f2c6a2;
  --peach-tint: #ffe4cd;
  --peach-shade: #764f2f;

  --lime: #dde88a;
  --lime-tint: #fbffdc;
  --lime-shade: #70792a;

  --glow-blue: #c4deff;
  --mint: #a0f0d8;
  --red: #b24a3a;

  /* Semantic tokens */
  --bg: var(--white);
  --surface: var(--mist);
  --surface-2: #efeff6;
  --text: var(--charcoal);
  --text-strong: var(--ink);
  --text-muted: var(--grey);
  --border: var(--hairline);
  --border-strong: #cfd1df;
  --accent: #4c5fd5;
  --accent-soft: var(--periwinkle-tint);
  --accent-border: var(--periwinkle);

  --pass-bg: var(--green-tint);
  --pass-ink: var(--green-shade);
  --pass-border: var(--green);
  --warn-bg: var(--peach-tint);
  --warn-ink: var(--peach-shade);
  --warn-border: var(--peach);
  --fail-bg: #fdebe8;
  --fail-ink: var(--red);
  --fail-border: #f5c2ba;

  --sans: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", sans-serif;
  --mono: "Fragment Mono", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;

  --radius-card: 1.5rem;
  --radius-md: 1rem;
  --radius-control: 9999px;
  --ease-out-expo: cubic-bezier(0.19, 1, 0.22, 1);
  --ease-out-back: cubic-bezier(0.34, 1.56, 0.64, 1);
  --maxw: 80rem;
}

* { box-sizing: border-box; }

html {
  font-family: var(--sans);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  overflow-x: clip;
}

a {
  color: var(--ink);
  text-decoration: none;
  transition: opacity 0.2s ease, color 0.2s ease;
}
a:hover { opacity: 0.72; }

.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 56px);
}

.wrap-narrow {
  max-width: 68rem;
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 56px);
}

/* ---------- Header (trajectory.ai 3-column floating pill) ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  padding: 12px 16px 0;
  transition: padding 0.4s var(--ease-out-expo);
}

.header-shell {
  max-width: var(--maxw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
  padding: 12px 24px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(226, 227, 236, 0.85);
  box-shadow: 0 4px 24px -10px rgba(20, 21, 27, 0.08);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  justify-self: start;
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: -0.025em;
  color: var(--ink);
}
.brand:hover { opacity: 1; }

.brand-mark {
  width: 24px;
  height: 24px;
  border-radius: 7px;
  background: var(--ink);
  color: var(--periwinkle);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--mono);
  font-size: 0.68rem;
  font-weight: 700;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 2px;
}

.site-nav a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--charcoal);
  padding: 8px 14px;
  border-radius: 9999px;
  transition: background 0.2s ease, opacity 0.2s ease;
}
.site-nav a:hover,
.site-nav a[aria-current="page"] {
  background: var(--mist);
  opacity: 1;
}

.header-actions {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 8px;
}

@media (max-width: 960px) {
  .header-shell {
    grid-template-columns: auto 1fr;
    border-radius: 20px;
    padding: 10px 16px;
  }
  .site-nav {
    grid-column: 1 / -1;
    overflow-x: auto;
    padding-top: 6px;
    border-top: 1px solid var(--hairline);
  }
}

/* ---------- Buttons (pill + spring hover) ---------- */
.btn {
  appearance: none;
  border: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 42px;
  padding: 0 20px;
  border-radius: var(--radius-control);
  background: var(--ink);
  color: var(--white);
  font-family: var(--sans);
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.3s var(--ease-out-back), background 0.2s ease, opacity 0.2s ease;
}
.btn:hover {
  transform: scale(1.035);
  opacity: 1;
  color: var(--white);
}
.btn:active { transform: scale(0.97); }

.btn-sm {
  height: 36px;
  padding: 0 15px;
  font-size: 0.8125rem;
}

.btn-secondary {
  background: var(--mist);
  color: var(--ink);
  border: 1px solid var(--hairline);
}
.btn-secondary:hover {
  background: #ececf5;
  color: var(--ink);
}

.btn-light {
  background: var(--white);
  color: var(--ink);
}
.btn-light:hover {
  background: var(--periwinkle-tint);
  color: var(--ink);
}

.icon-btn {
  appearance: none;
  border: 1px solid var(--hairline);
  background: var(--white);
  color: var(--grey);
  font-family: var(--sans);
  font-size: 0.8125rem;
  font-weight: 500;
  height: 36px;
  padding: 0 12px;
  border-radius: 9999px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: border-color 0.2s ease, color 0.2s ease;
}
.icon-btn:hover {
  border-color: var(--periwinkle);
  color: var(--ink);
}

.kbd {
  font-family: var(--mono);
  font-size: 0.7rem;
  padding: 1px 5px;
  border-radius: 5px;
  background: var(--mist);
  color: var(--grey);
}

/* ---------- Typography Scale (trajectory.ai) ---------- */
.eyebrow {
  font-size: 0.8125rem;
  line-height: 1.125rem;
  letter-spacing: 0.02em;
  color: var(--grey);
  font-weight: 500;
  margin: 0 0 14px;
}

h1 {
  font-size: clamp(2.25rem, 4.8vw, 3.85rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
  font-weight: 400;
  color: var(--ink);
  text-wrap: balance;
  margin: 0 0 20px;
}

h2 {
  font-size: clamp(1.65rem, 3vw, 2.5rem);
  line-height: 1.14;
  letter-spacing: -0.025em;
  font-weight: 400;
  color: var(--ink);
  text-wrap: balance;
  margin: 56px 0 16px;
  scroll-margin-top: 96px;
}

h3 {
  font-size: 1.2rem;
  line-height: 1.3;
  letter-spacing: -0.015em;
  font-weight: 500;
  color: var(--ink);
  margin: 26px 0 8px;
}

p {
  margin: 0 0 16px;
  font-size: 1.02rem;
  line-height: 1.65;
  color: var(--charcoal);
}

.lead {
  font-size: clamp(1.06rem, 1.5vw, 1.22rem);
  line-height: 1.55;
  color: var(--grey);
  max-width: 44rem;
  margin: 0 0 28px;
  text-wrap: balance;
}

ul, ol {
  margin: 0 0 18px;
  padding-left: 22px;
}
li { margin-bottom: 8px; color: var(--charcoal); }

/* ---------- Editorial Hero & Section Rhythm ---------- */
.hero-home {
  position: relative;
  padding: clamp(56px, 8vw, 108px) 0 clamp(48px, 6vw, 76px);
  background:
    radial-gradient(60% 55% at 78% 12%, rgba(90, 125, 252, 0.14), transparent 70%),
    radial-gradient(50% 50% at 18% 22%, rgba(174, 184, 242, 0.22), transparent 68%),
    var(--white);
}

.hero-sub {
  padding: clamp(44px, 6vw, 72px) 0 36px;
  background:
    radial-gradient(50% 80% at 85% 0%, rgba(220, 224, 251, 0.55), transparent 70%),
    var(--white);
  border-bottom: 1px solid var(--hairline);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-bottom: 36px;
}

.meta-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
  font-size: 0.84rem;
  color: var(--grey);
}
.meta-bar a { color: var(--ink); border-bottom: 1px solid var(--hairline); }

.metrics-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--hairline);
  margin-top: 44px;
}

.metric-cell {
  padding: 24px 20px 8px 0;
  border-right: 1px solid var(--hairline);
}
.metric-cell:not(:first-child) { padding-left: 24px; }
.metric-cell:last-child { border-right: 0; }
.metric-cell strong {
  display: block;
  font-size: 1.5rem;
  font-weight: 500;
  letter-spacing: -0.025em;
  color: var(--ink);
  margin-bottom: 4px;
}
.metric-cell span {
  font-size: 0.85rem;
  color: var(--grey);
}

@media (max-width: 760px) {
  .metrics-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .metric-cell { border-right: 0; padding: 18px 12px 12px 0 !important; border-bottom: 1px solid var(--hairline); }
}

/* ---------- Signature #platform Section (exact trajectory.ai/#platform) ---------- */
.section-pad {
  padding: clamp(56px, 7vw, 88px) 0;
}

.split-head {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 24px 64px;
  align-items: end;
}

.split-head h2 {
  margin: 0;
  max-width: 18ch;
}

.split-head p.body-lg {
  font-size: 1.0625rem;
  line-height: 1.62;
  color: var(--grey);
  margin: 0;
  max-width: 34rem;
}

@media (max-width: 860px) {
  .split-head { grid-template-columns: 1fr; gap: 18px; }
}

.platform-stage {
  margin-top: 44px;
  border-radius: var(--radius-card);
  padding: clamp(20px, 4vw, 44px);
  background: linear-gradient(
    180deg,
    var(--periwinkle-tint) 0%,
    var(--periwinkle-sky) 38%,
    var(--mist) 78%,
    var(--white) 100%
  );
  border: 1px solid rgba(174, 184, 242, 0.5);
}

.stage-window {
  background: var(--ink);
  color: var(--white);
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 32px 70px -24px rgba(20, 21, 27, 0.45);
  overflow: hidden;
}

.stage-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding: 14px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.02);
}

.window-dots {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.window-dots i {
  display: block;
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
}

.stage-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.stage-tab {
  appearance: none;
  border: 1px solid transparent;
  background: transparent;
  color: #9da9b5;
  font-family: var(--sans);
  font-size: 0.8rem;
  font-weight: 500;
  padding: 6px 12px;
  border-radius: 9999px;
  cursor: pointer;
  transition: all 0.2s ease;
}
.stage-tab:hover { color: var(--white); }
.stage-tab[aria-selected="true"] {
  background: rgba(174, 184, 242, 0.18);
  border-color: rgba(174, 184, 242, 0.35);
  color: var(--white);
}

.stage-body {
  padding: clamp(18px, 3vw, 32px);
}

.stage-body pre {
  margin: 0;
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.08);
}

/* ---------- Pastel Bento Cards (trajectory.ai callout surfaces) ---------- */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin: 32px 0;
}

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

.bento-card {
  border-radius: var(--radius-card);
  padding: clamp(24px, 3.2vw, 36px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 230px;
  border: 1px solid transparent;
  transition: transform 0.35s var(--ease-out-expo);
}
.bento-card:hover {
  transform: translateY(-3px);
  opacity: 1;
}

.bento-periwinkle { background: linear-gradient(155deg, var(--periwinkle-tint) 0%, #eff1fd 100%); border-color: rgba(174, 184, 242, 0.45); }
.bento-teal       { background: linear-gradient(155deg, var(--teal-tint) 0%, #ecfdf8 100%); border-color: rgba(168, 221, 208, 0.55); }
.bento-peach      { background: linear-gradient(155deg, var(--peach-tint) 0%, #fff4eb 100%); border-color: rgba(242, 198, 162, 0.55); }
.bento-lime       { background: linear-gradient(155deg, var(--lime-tint) 0%, #fdffef 100%); border-color: rgba(221, 232, 138, 0.65); }

.bento-kicker {
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--graphite);
  margin-bottom: 10px;
}

.bento-card h3 {
  font-size: 1.4rem;
  font-weight: 500;
  margin: 0 0 10px;
  color: var(--ink);
}

.bento-card p {
  font-size: 0.96rem;
  color: var(--graphite);
  margin: 0 0 22px;
}

.bento-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--ink);
}

/* ---------- 3-Column Hairline Editorial Strip ---------- */
.hairline-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
  margin: 24px 0;
}

.hairline-col {
  padding: 36px 28px;
  border-right: 1px solid var(--hairline);
}
.hairline-col:first-child { padding-left: 0; }
.hairline-col:last-child { border-right: 0; padding-right: 0; }

.hairline-col h3 { margin-top: 0; font-size: 1.15rem; }
.hairline-col p { font-size: 0.94rem; color: var(--grey); }

.pill-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.pill-link {
  display: inline-flex;
  align-items: center;
  padding: 6px 13px;
  border-radius: 9999px;
  background: var(--mist);
  border: 1px solid var(--hairline);
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--ink);
}
.pill-link:hover {
  background: var(--periwinkle-tint);
  border-color: var(--periwinkle);
  opacity: 1;
}

@media (max-width: 820px) {
  .hairline-strip { grid-template-columns: 1fr; }
  .hairline-col { padding: 28px 0; border-right: 0; border-bottom: 1px solid var(--hairline); }
  .hairline-col:last-child { border-bottom: 0; }
}

/* ---------- Dark Ink Section (trajectory.ai data-section-tone="dark") ---------- */
.dark-band {
  background: var(--ink);
  color: var(--white);
  padding: clamp(56px, 8vw, 96px) 0;
  margin-top: 48px;
}

.dark-band .eyebrow { color: var(--periwinkle); }
.dark-band h2 { color: var(--white); margin-top: 0; }
.dark-band p { color: #9da9b5; }

.dark-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 32px;
}

.dark-card {
  background: var(--charcoal);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-card);
  padding: 26px;
}
.dark-card h3 { color: var(--white); margin-top: 0; font-size: 1.08rem; }
.dark-card p { font-size: 0.9rem; color: #9da9b5; margin-bottom: 16px; }
.dark-card code { background: rgba(255, 255, 255, 0.08); color: var(--mint); }
.dark-card a { color: var(--glow-blue); font-size: 0.86rem; font-weight: 500; }

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

/* ---------- Subpage Main & Reusable Components ---------- */
main.subpage-main {
  padding: 44px 0 88px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 18px;
  margin: 22px 0 32px;
}

.card {
  border: 1px solid var(--hairline);
  border-radius: var(--radius-card);
  padding: 26px;
  background: var(--mist);
  display: flex;
  flex-direction: column;
  transition: transform 0.25s var(--ease-out-expo), border-color 0.2s ease;
}
.card:hover {
  transform: translateY(-2px);
  border-color: var(--periwinkle);
}
.card h3 { margin: 0 0 8px; }
.card p { font-size: 0.93rem; color: var(--grey); flex: 1; }
.card-tag { font-family: var(--mono); font-size: 0.74rem; color: var(--grey); margin-bottom: 8px; }
.card-link { font-size: 0.88rem; font-weight: 500; color: var(--ink); }

.callout {
  background: var(--periwinkle-sky);
  border: 1px solid rgba(174, 184, 242, 0.55);
  border-radius: var(--radius-card);
  padding: 22px 26px;
  margin: 24px 0 32px;
  color: var(--ink);
}
.callout strong { display: block; margin-bottom: 6px; font-weight: 600; }

.diagram-box {
  background: var(--mist);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-card);
  padding: 24px;
  margin: 24px 0 32px;
  overflow-x: auto;
}
.diagram-caption {
  font-size: 0.82rem;
  color: var(--grey);
  margin: 12px 0 0;
  text-align: center;
}

/* Tables */
.table-wrap {
  overflow-x: auto;
  margin: 20px 0 32px;
  border: 1px solid var(--hairline);
  border-radius: var(--radius-card);
  background: var(--white);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

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

th {
  background: var(--mist);
  font-weight: 500;
  font-size: 0.82rem;
  color: var(--grey);
  white-space: nowrap;
}

tbody tr:hover { background: #fafafe; }
tr:last-child td { border-bottom: 0; }

/* Badges */
.badge {
  display: inline-block;
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 500;
  padding: 4px 10px;
  border-radius: 9999px;
  border: 1px solid var(--hairline);
  background: var(--mist);
  color: var(--ink);
  white-space: nowrap;
}
.badge-pass { background: var(--pass-bg); color: var(--pass-ink); border-color: var(--pass-border); }
.badge-warn { background: var(--warn-bg); color: var(--warn-ink); border-color: var(--warn-border); }
.badge-fail { background: var(--fail-bg); color: var(--fail-ink); border-color: var(--fail-border); }
.badge-blue { background: var(--periwinkle-tint); color: #28264a; border-color: var(--periwinkle); }

/* Code */
pre {
  background: var(--ink);
  color: #e6e8f2;
  padding: 20px 22px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.08);
  overflow-x: auto;
  font-family: var(--mono);
  font-size: 0.82rem;
  line-height: 1.6;
  margin: 10px 0 24px;
}

code {
  font-family: var(--mono);
  font-size: 0.86em;
  background: var(--mist);
  padding: 2px 6px;
  border-radius: 6px;
  color: var(--ink);
}
pre code { background: transparent; padding: 0; color: inherit; }

/* Interactive Calculators & Forms */
.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 16px 0;
}

.tab-btn {
  appearance: none;
  border: 1px solid var(--hairline);
  background: var(--white);
  color: var(--charcoal);
  font-family: var(--sans);
  font-size: 0.84rem;
  font-weight: 500;
  padding: 8px 15px;
  border-radius: 9999px;
  cursor: pointer;
  transition: all 0.2s ease;
}
.tab-btn:hover { border-color: var(--periwinkle); }
.tab-btn[aria-selected="true"],
.tab-btn.active {
  background: var(--ink);
  color: var(--white);
  border-color: var(--ink);
}

.calc-card {
  border: 1px solid var(--hairline);
  border-radius: var(--radius-card);
  padding: clamp(20px, 3vw, 32px);
  background: var(--mist);
  margin: 26px 0;
}

.calc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin: 16px 0 20px;
}

.field label {
  display: block;
  font-size: 0.83rem;
  font-weight: 500;
  margin-bottom: 6px;
  color: var(--graphite);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  font-size: 0.9rem;
  font-family: var(--mono);
  background: var(--white);
  color: var(--ink);
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--hero-wash);
  box-shadow: 0 0 0 3px rgba(90, 125, 252, 0.16);
}

.result-box {
  background: var(--white);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-md);
  padding: 20px;
}

.result-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(165px, 1fr));
  gap: 12px;
  margin-top: 14px;
}

.metric {
  padding: 14px 16px;
  background: var(--mist);
  border-radius: 12px;
  border: 1px solid var(--hairline);
}
.metric-label {
  font-size: 0.76rem;
  color: var(--grey);
  display: block;
  margin-bottom: 4px;
}
.metric-val {
  font-family: var(--mono);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--ink);
}

.dropzone {
  border: 1.5px dashed var(--periwinkle);
  border-radius: var(--radius-md);
  padding: 32px 20px;
  text-align: center;
  background: var(--white);
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
}
.dropzone:hover, .dropzone.dragover {
  background: var(--periwinkle-sky);
  border-color: var(--hero-wash);
}

.code-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 18px;
}

.copy-btn {
  appearance: none;
  border: 1px solid var(--hairline);
  background: var(--white);
  color: var(--ink);
  font-size: 0.78rem;
  font-weight: 500;
  padding: 6px 12px;
  border-radius: 9999px;
  cursor: pointer;
}
.copy-btn:hover { background: var(--periwinkle-tint); border-color: var(--periwinkle); }

.checklist { list-style: none; padding: 0; margin: 16px 0 28px; }
.checklist li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 18px;
  border: 1px solid var(--hairline);
  border-radius: 14px;
  background: var(--white);
  margin-bottom: 8px;
}
.checklist input[type="checkbox"] {
  margin-top: 4px;
  width: 16px;
  height: 16px;
  accent-color: var(--ink);
}

/* FAQ */
details {
  border-bottom: 1px solid var(--hairline);
  padding: 18px 0;
}
details:first-of-type { border-top: 1px solid var(--hairline); }
summary {
  font-weight: 500;
  font-size: 1.05rem;
  color: var(--ink);
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
summary::after {
  content: "+";
  font-family: var(--mono);
  color: var(--grey);
  font-size: 1.1rem;
}
details[open] summary::after { content: "-"; }
details[open] summary { margin-bottom: 10px; }
details p { color: var(--grey); margin: 0; font-size: 0.96rem; max-width: 62ch; }

/* Command Palette */
.cmd-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(20, 21, 27, 0.45);
  backdrop-filter: blur(8px);
  z-index: 100;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 12vh;
}
.cmd-modal {
  width: min(620px, 92vw);
  background: var(--white);
  border: 1px solid var(--hairline);
  border-radius: 20px;
  box-shadow: 0 32px 70px -16px rgba(20, 21, 27, 0.28);
  overflow: hidden;
}
.cmd-input {
  width: 100%;
  border: 0;
  border-bottom: 1px solid var(--hairline);
  padding: 18px 22px;
  font-size: 1rem;
  font-family: var(--sans);
  outline: none;
}
.cmd-results { max-height: 360px; overflow-y: auto; padding: 8px; }
.cmd-item {
  display: block;
  padding: 11px 14px;
  border-radius: 12px;
  color: var(--ink);
}
.cmd-item:hover { background: var(--mist); opacity: 1; }
.cmd-item strong { display: block; font-size: 0.92rem; font-weight: 500; }
.cmd-item span { display: block; font-size: 0.8rem; color: var(--grey); }

/* Footer */
.site-footer {
  border-top: 1px solid var(--hairline);
  background: var(--white);
  padding: 56px 0 48px;
  font-size: 0.875rem;
  color: var(--grey);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 32px;
}
.footer-col h4 {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--ink);
  margin: 0 0 12px;
}
.footer-col a {
  display: block;
  color: var(--grey);
  padding: 4px 0;
  font-size: 0.86rem;
}
.footer-col a:hover { color: var(--ink); opacity: 1; }
@media (max-width: 780px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

.hidden { display: none !important; }
