/* ============ Tokens ============ */
:root {
  color-scheme: dark;
  --bg: #0a0a0b;
  --surface: #121214;
  --surface-2: #19191c;
  --border: #232326;
  --border-strong: #303034;
  --text: #f5f5f6;
  --muted: #a1a1aa;
  --faint: #71717a;
  --accent: #ef233c;
  --accent-hover: #ff4d5e;
  --accent-text: #ff5a6a;
  --accent-soft: rgb(239 35 60 / .12);
  --on-accent: #ffffff;
  --shadow: 0 1px 2px rgb(0 0 0 / .3), 0 8px 24px -12px rgb(0 0 0 / .5);
  --glow: rgb(239 35 60 / .18);

  --font: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "Geist Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --r-card: 16px;
  --r-sm: 10px;
  --wrap: 1120px;
}

/* ============ Base ============ */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 16px/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
h1, h2, h3, p, ul { margin: 0; }
ul { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
code, pre { font-family: var(--mono); }
svg { flex: none; }
button { font: inherit; color: inherit; }
::selection { background: var(--accent); color: var(--on-accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 16px; top: -48px; z-index: 100; padding: 8px 16px; border-radius: var(--r-sm); background: var(--accent); color: var(--on-accent); }
.skip:focus { top: 16px; }

/* Line icons share one style */
.icon-btn svg, .feature-icon svg, .pill-chip svg, .scroll-link svg {
  fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
}

/* ============ Buttons & links ============ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 40px; padding: 0 16px; border-radius: 999px; font-size: 14px; font-weight: 600;
  transition: background-color .15s, border-color .15s, color .15s;
}
.btn-sm { height: 36px; }
.btn-primary { background: var(--accent); color: var(--on-accent); }
.btn-primary:hover { background: var(--accent-hover); }
.btn-ghost { border: 1px solid var(--border-strong); color: var(--text); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent-text); }

.icon-btn {
  display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 999px;
  border: 1px solid var(--border); background: transparent; color: var(--muted); cursor: pointer;
  transition: color .15s, border-color .15s;
}
.icon-btn:hover { color: var(--text); border-color: var(--border-strong); }
/* The sun button doesn't switch themes. It refuses, with jokes. */
.sun-btn .rays { transform-origin: 12px 12px; transition: transform .4s ease; }
.sun-btn:hover .rays { transform: rotate(45deg); }
.sun-btn.nope { animation: nope .45s ease; color: var(--accent); border-color: var(--accent); }
@keyframes nope {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-4px) rotate(-8deg); }
  40% { transform: translateX(4px) rotate(8deg); }
  60% { transform: translateX(-3px) rotate(-5deg); }
  80% { transform: translateX(2px) rotate(3deg); }
}

.link { display: inline-flex; align-items: center; gap: 6px; font-size: 15px; font-weight: 600; color: var(--accent-text); }
.link span { transition: transform .15s; }
.link:hover span { transform: translateX(3px); }

.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); display: inline-block; }

/* ============ Header ============ */
.header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 80%, transparent);
  backdrop-filter: saturate(160%) blur(12px);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--border);
}
.header-inner { display: flex; align-items: center; gap: 32px; height: 64px; }
.logo { display: inline-flex; align-items: center; gap: 12px; font-weight: 600; font-size: 18px; letter-spacing: -.01em; }
.nav { display: flex; gap: 4px; }
.nav a { padding: 8px 12px; border-radius: 999px; font-size: 14px; color: var(--muted); transition: color .15s, background-color .15s; }
.nav a:hover { color: var(--text); background: var(--surface-2); }
.nav a[aria-current="page"] { color: var(--text); background: var(--surface-2); }
.header-actions { display: flex; align-items: center; gap: 12px; margin-left: auto; }
/* Phones hide the main nav; this keeps About one tap away. */
.nav-mobile { display: none; padding: 8px 12px; border-radius: 999px; font-size: 14px; color: var(--muted); }
.nav-mobile:hover, .nav-mobile[aria-current="page"] { color: var(--text); background: var(--surface-2); }

/* ============ Hero ============ */
.hero { position: relative; isolation: isolate; padding: 96px 0 64px; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; z-index: -1; left: 50%; top: -200px;
  width: 1100px; height: 700px; transform: translateX(-50%);
  background: radial-gradient(closest-side, var(--glow), transparent);
  pointer-events: none;
}
.hero-inner { display: flex; flex-direction: column; align-items: center; text-align: center; }
.badge {
  display: inline-flex; align-items: center; gap: 8px; height: 32px; padding: 0 12px;
  border: 1px solid var(--border); border-radius: 999px; background: var(--surface);
  font-size: 13px; color: var(--muted); transition: border-color .15s, color .15s;
}
.badge:hover { border-color: var(--border-strong); color: var(--text); }
.hero h1 {
  margin-top: 24px; max-width: 14em;
  font-size: clamp(40px, 6.4vw, 72px); line-height: 1.04; font-weight: 600; letter-spacing: -.04em;
  text-wrap: balance;
}
.accent { color: var(--accent); }
.lead { margin-top: 24px; max-width: 36em; font-size: 18px; color: var(--muted); text-wrap: pretty; }

/* The one-click copy pill */
.pill {
  display: flex; align-items: center; gap: 12px; max-width: 100%;
  margin-top: 48px; padding: 8px 8px 8px 24px;
  border: 1px solid var(--border-strong); border-radius: 999px; background: var(--surface);
  box-shadow: var(--shadow), 0 0 0 6px var(--accent-soft);
  font-size: 14px; text-align: left; cursor: pointer;
  transition: border-color .15s, box-shadow .2s, transform .15s, background-color .2s;
}
.pill:hover { border-color: var(--accent); box-shadow: var(--shadow), 0 0 0 8px var(--accent-soft); }
.pill:active { transform: scale(.99); }
.pill-prompt { font-family: var(--mono); color: var(--accent-text); user-select: none; }
.pill-cmd { min-width: 0; color: var(--text); white-space: nowrap; }
.pill-chip {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-width: 96px; height: 36px; padding: 0 16px; border-radius: 999px;
  background: var(--accent); color: var(--on-accent); font-size: 13px; font-weight: 600;
  transition: background-color .15s;
}
.pill:hover .pill-chip { background: var(--accent-hover); }
.pill.copied { border-color: var(--accent); background: var(--accent); }
.pill.copied .pill-prompt, .pill.copied .pill-cmd { color: var(--on-accent); }
.pill.copied .pill-chip { background: var(--on-accent); color: var(--accent); }

.pill-hint { margin-top: 16px; font-size: 14px; color: var(--faint); text-wrap: balance; }
.pill-hint a { color: var(--muted); text-decoration: underline; text-decoration-color: var(--border-strong); text-underline-offset: 3px; }
.pill-hint a:hover { color: var(--text); text-decoration-color: currentColor; }

.scroll-link { display: inline-flex; align-items: center; gap: 8px; margin-top: 48px; font-size: 14px; color: var(--muted); transition: color .15s; }
.scroll-link:hover { color: var(--text); }
.scroll-link svg { transition: transform .2s; }
.scroll-link:hover svg { transform: translateY(2px); }

/* ============ Sections ============ */
.section { padding: 48px 0 96px; }
.section + .section { padding-top: 0; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 32px; }
.section-head h2 { font-size: 32px; line-height: 1.2; font-weight: 600; letter-spacing: -.03em; }
.section-head p { margin-top: 8px; }

/* ============ Featured ============ */
.featured { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.feature {
  display: flex; flex-direction: column; padding: 32px;
  border: 1px solid var(--border); border-radius: var(--r-card); background: var(--surface);
  box-shadow: var(--shadow);
}
.feature-icon {
  display: grid; place-items: center; width: 48px; height: 48px; border-radius: 12px;
  background: var(--accent-soft); color: var(--accent-text);
}
.feature h2 { margin-top: 24px; font-size: 24px; line-height: 1.25; font-weight: 600; letter-spacing: -.02em; }
.feature > p { margin-top: 8px; color: var(--muted); }
.checks { display: grid; gap: 12px; margin: 24px 0 32px; }
.checks li { position: relative; padding-left: 28px; font-size: 15px; }
.checks li::before {
  content: ""; position: absolute; left: 0; top: 4px; width: 16px; height: 16px; border-radius: 50%;
  background: var(--accent-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 8.2l2.3 2.3 4.7-4.9' fill='none' stroke='%23ef233c' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 16px no-repeat;
}
.feature .link { margin-top: auto; }

/* Flagship cards */
.flagship { padding: 28px; }
.flagship .eyebrow {
  margin-top: 24px; font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  color: var(--accent-text);
}
.flagship h3 { margin-top: 8px; font-size: 24px; line-height: 1.25; font-weight: 600; letter-spacing: -.02em; }
.flagship .what { margin-top: 12px; color: var(--muted); font-size: 15px; }
.why { margin-top: 20px; padding: 16px; border-radius: 12px; background: var(--accent-soft); border: 1px solid color-mix(in srgb, var(--accent) 22%, transparent); }
.why p { font-size: 15px; }
.why .why-next { margin-top: 12px; padding-top: 12px; border-top: 1px solid color-mix(in srgb, var(--accent) 22%, transparent); }
.why .why-label { margin-bottom: 4px; font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--accent-text); }
.flagship .checks { margin: 24px 0; }
.feature-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 12px 16px; margin-top: auto; padding-top: 4px; }
.feature-actions .link { margin-top: 0; }
.feature-actions .btn { border: 0; cursor: pointer; }
.flagship .fine-print { margin: -8px 0 24px; font-size: 12px; color: var(--faint); }
/* Main text and the side column (checks + actions). The side grows so actions line up. */
.fs-side { display: flex; flex-direction: column; flex: 1; }

/* ============ Projects ============ */
.tabs {
  display: flex; gap: 4px; padding: 4px; max-width: 100%;
  border: 1px solid var(--border); border-radius: 999px; background: var(--surface);
  overflow-x: auto; scrollbar-width: none;
}
.tabs::-webkit-scrollbar { display: none; }
.tab {
  flex: none; height: 32px; padding: 0 16px; border: 0; border-radius: 999px;
  background: transparent; color: var(--muted); font-size: 14px; cursor: pointer;
  transition: color .15s, background-color .15s;
}
.tab:hover { color: var(--text); }
.tab[aria-pressed="true"] { background: var(--accent); color: var(--on-accent); font-weight: 600; }

.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.card {
  position: relative; display: flex; flex-direction: column; min-height: 176px; padding: 24px;
  border: 1px solid var(--border); border-radius: var(--r-card); background: var(--surface);
  transition: border-color .15s, transform .2s, box-shadow .2s;
}
.card:hover { border-color: color-mix(in srgb, var(--accent) 50%, var(--border)); transform: translateY(-2px); box-shadow: var(--shadow); }
.card-head { display: flex; align-items: center; gap: 8px; }
.card h3 { font-size: 17px; line-height: 1.35; font-weight: 600; letter-spacing: -.01em; }
.card h3 a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.card h3 a:focus-visible { outline: none; }
.card:has(h3 a:focus-visible) { outline: 2px solid var(--accent); outline-offset: 3px; }
.card p { margin-top: 8px; font-size: 15px; color: var(--muted); }
.meta {
  display: flex; align-items: center; gap: 16px; margin-top: auto; padding-top: 16px;
  min-height: 20px; box-sizing: content-box;
  font-size: 13px; line-height: 20px; color: var(--faint); white-space: nowrap; overflow: hidden;
}
.meta span { display: inline-flex; align-items: center; gap: 6px; }
.lang-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--c, var(--faint)); }
.status-badge {
  margin-left: auto; padding: 2px 8px; border-radius: 999px; border: 1px solid var(--border-strong);
  font-size: 12px; color: var(--muted); white-space: nowrap;
}
.card.is-retired { background: transparent; border-style: dashed; }
.card.is-retired h3, .card.is-retired p { color: var(--faint); }

.live { display: flex; align-items: center; gap: 8px; margin-top: 24px; font-size: 13px; color: var(--faint); }
.live .dot { background: var(--faint); }
.live.on .dot { background: #22c55e; box-shadow: 0 0 0 3px rgb(34 197 94 / .15); }

/* ============ Also from X27 ============ */
.more { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; }
.panel {
  display: flex; flex-direction: column; gap: 16px; min-width: 0; padding: 32px;
  border: 1px solid var(--border); border-radius: var(--r-card); background: var(--surface);
}
.panel h3 { font-size: 20px; font-weight: 600; letter-spacing: -.02em; }
.panel .link { margin-top: 8px; }

.images { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.images a {
  display: flex; flex-direction: column; gap: 4px; height: 100%; padding: 16px;
  border: 1px solid var(--border); border-radius: 12px; background: var(--surface-2);
  transition: border-color .15s;
}
.images a:hover { border-color: color-mix(in srgb, var(--accent) 50%, var(--border)); }
.images .row { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; }
.images b { font-weight: 600; font-size: 15px; transition: color .15s; }
.images .day { flex: none; font-size: 13px; color: var(--faint); }
.images .desc { font-size: 14px; color: var(--muted); }
.images a:hover b { color: var(--accent-text); }

/* ============ What I use ============ */
.uses { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.use-list { display: grid; gap: 8px; }
.use {
  display: flex; align-items: center; gap: 16px; padding: 12px;
  border: 1px solid var(--border); border-radius: 12px; background: var(--surface-2);
  transition: border-color .15s;
}
.use:hover { border-color: color-mix(in srgb, var(--accent) 50%, var(--border)); }
.use-icon { width: 40px; height: 40px; border-radius: 10px; flex: none; }
.use-body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.use-top { display: flex; align-items: baseline; flex-wrap: wrap; gap: 0 10px; }
.use b { font-weight: 600; font-size: 15px; transition: color .15s; }
.use:hover b { color: var(--accent-text); }
.use-kind { font-size: 13px; color: var(--faint); }
.use-desc { font-size: 14px; color: var(--muted); }

.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tags li { padding: 4px 12px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--border); font-size: 13px; }

.code { border: 1px solid var(--border); border-radius: var(--r-sm); background: var(--surface-2); overflow: hidden; }
.code-bar {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 8px 8px 8px 16px; border-bottom: 1px solid var(--border); font-size: 13px; color: var(--faint);
}
.code pre { margin: 0; padding: 16px; font-size: 13px; line-height: 1.7; white-space: pre; overflow-x: auto; scrollbar-width: thin; }
.code pre:focus-visible { outline-offset: -2px; border-radius: 0 0 var(--r-sm) var(--r-sm); }
.copy-btn {
  height: 28px; padding: 0 12px; border-radius: 999px;
  border: 1px solid var(--border-strong); background: var(--surface); font-size: 13px; font-weight: 600; cursor: pointer;
  transition: border-color .15s, color .15s;
}
.copy-btn:hover { border-color: var(--accent); color: var(--accent-text); }

/* ============ About page ============ */
.hero-sub { padding: 80px 0 48px; }
.hero-sub h1 { max-width: 16em; font-size: clamp(36px, 5.4vw, 60px); }
.hero-sub .lead { text-wrap: balance; }
.avatar {
  width: 120px; height: 120px; border-radius: 50%; object-fit: cover; background: var(--surface-2);
  border: 4px solid var(--bg); box-shadow: 0 0 0 2px var(--accent), 0 16px 48px -8px rgb(239 35 60 / .45);
}
.avatar.is-fallback { padding: 24px; }
.who { margin-top: 16px; font-size: 15px; font-weight: 600; }
.who a:hover { color: var(--accent-text); }
.who span { color: var(--muted); font-weight: 400; }
.about-tags { justify-content: center; margin-top: 24px; max-width: 48em; }

.principles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.principle {
  padding: 32px; border: 1px solid var(--border); border-radius: var(--r-card); background: var(--surface);
}
.principle h3 { margin-top: 24px; font-size: 20px; line-height: 1.3; font-weight: 600; letter-spacing: -.02em; }
.principle p { margin-top: 8px; color: var(--muted); }

.stack { display: grid; margin: 0; }
.stack div { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 24px; padding: 16px 0; }
.stack div + div { border-top: 1px solid var(--border); }
.stack div:first-child { padding-top: 0; }
.stack div:last-child { padding-bottom: 0; }
.stack dt { font-weight: 600; }
.stack dd { margin: 0; color: var(--muted); }

.cta {
  display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 40px;
  border: 1px solid var(--border); border-radius: var(--r-card);
  background: radial-gradient(600px 300px at 100% 0%, var(--accent-soft), transparent 70%), var(--surface);
}
.cta h2 { font-size: 28px; line-height: 1.2; font-weight: 600; letter-spacing: -.03em; }
.cta p { margin-top: 8px; }
.cta-links { display: flex; flex-wrap: wrap; gap: 12px; }

/* ============ Toast + flash ============ */
.toast {
  position: fixed; left: 50%; bottom: 24px; z-index: 90;
  display: flex; align-items: center; gap: 12px; max-width: calc(100vw - 32px);
  padding: 12px 20px 12px 12px; border-radius: 999px;
  border: 1px solid var(--border-strong); background: var(--surface-2); box-shadow: var(--shadow), 0 0 0 6px var(--accent-soft);
  font-size: 15px; font-weight: 600;
  opacity: 0; transform: translate(-50%, 16px) scale(.96); pointer-events: none;
  transition: opacity .2s ease, transform .3s cubic-bezier(.2, .9, .3, 1.3);
}
.toast.show { opacity: 1; transform: translate(-50%, 0) scale(1); }
.toast-icon {
  flex: none; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%;
  background: var(--accent); color: var(--on-accent);
}
.toast-icon svg { fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.toast .t-moon, .toast.ok .t-no { display: none; }
.toast.ok .t-moon { display: block; }

.flash { position: fixed; inset: 0; z-index: 95; background: #fff; opacity: 0; pointer-events: none; }
.flash.go { animation: flash .9s ease-out; }
@keyframes flash { 0% { opacity: .92; } 100% { opacity: 0; } }

/* ============ Footer ============ */
.footer { border-top: 1px solid var(--border); padding: 32px 0; }
.footer-inner { display: flex; align-items: center; gap: 32px; flex-wrap: wrap; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 24px; font-size: 14px; color: var(--muted); }
.footer-links a:hover { color: var(--text); }
.footer .small { margin-left: auto; }

/* ============ Motion ============ */
.reveal-on .reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
.reveal-on .reveal.in { opacity: 1; transform: none; }
/* Small phones: keep the full XlabsX27 name and every header button on one row. */
@media (max-width: 400px) {
  .header-inner { gap: 12px; }
  .header-actions { gap: 8px; }
  .logo { gap: 8px; font-size: 16px; }
  .nav-mobile { padding: 8px; }
  .btn-sm { padding: 0 12px; }
  .btn-long { display: none; }
}

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

/* ============ Responsive ============ */
@media (max-width: 1040px) {
  .pill { width: 100%; max-width: 720px; border-radius: 20px; padding: 12px 12px 12px 20px; align-items: flex-start; }
  .pill-prompt { line-height: 36px; }
  .pill-cmd { flex: 1; white-space: normal; overflow-wrap: break-word; line-height: 1.6; padding: 6px 0; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .featured, .uses { grid-template-columns: minmax(0, 1fr); }
}
/* Tablets: one card per row, split into text on the left and checks + actions on the right. */
@media (min-width: 700px) and (max-width: 1040px) {
  .flagship { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 40px; align-items: start; }
  .flagship .fs-side { height: 100%; padding-top: 72px; }
  .flagship .checks { margin-top: 0; }
}
@media (max-width: 860px) {
  .nav { display: none; }
  .nav-mobile { display: inline-block; }
  .cta { flex-direction: column; align-items: flex-start; }
  .images { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .section-head { flex-direction: column; align-items: stretch; }
  .tabs { align-self: flex-start; }
}
@media (max-width: 640px) {
  .wrap { padding: 0 16px; }
  .hero { padding: 64px 0 48px; }
  .lead { font-size: 17px; }
  .pill { margin-top: 32px; padding: 12px 12px 12px 16px; font-size: 13px; }
  .pill-chip { min-width: 0; width: 36px; padding: 0; }
  .pill-label { display: none; }
  .pill-hint .sep { display: none; }
  .pill-hint a { display: block; margin-top: 4px; }
  .scroll-link { margin-top: 32px; }
  .section { padding: 32px 0 64px; }
  .section-head h2 { font-size: 28px; }
  .grid { grid-template-columns: minmax(0, 1fr); }
  .images { grid-template-columns: minmax(0, 1fr); }
  .toast { bottom: 16px; font-size: 14px; border-radius: 20px; }
  .tabs { align-self: stretch; }
  .tab { flex: 1 0 auto; padding: 0 8px; }
  .meta { flex-wrap: wrap; gap: 4px 16px; white-space: normal; }
  .feature, .panel, .principle, .cta, .flagship { padding: 24px; }
  .principles { grid-template-columns: minmax(0, 1fr); }
  .stack div { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .hero-sub { padding: 56px 0 32px; }
  .avatar { width: 96px; height: 96px; }
  .avatar.is-fallback { padding: 18px; }
  .card { min-height: 0; }
  .footer-inner { flex-direction: column; align-items: flex-start; gap: 16px; }
  .footer .small { margin-left: 0; }
}
