/* Umla landing. Monochrome UI, big medium-weight type, pixel buttons; colour lives in the dithered green artwork. */
:root {
  --bg: #ffffff;
  --ink: #1c1c1c;
  --muted: #606060;
  --gray-50: #f7f7f7;
  --gray-100: #f1f1f1;
  --gray-200: #e4e4e4;
  --green: #1b6149;
  --mint: #86cfae;
  --deep: #10342b;
  --error: #b42318;

  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 20px;
  --shadow-float: 0 1px 2px rgb(0 0 0 / 0.06), 0 16px 32px -12px rgb(0 0 0 / 0.35);

  --z-nav: 10;
  --z-skip: 20;

  --font: "Satoshi", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;
  --check: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231c1c1c' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E");
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: 96px; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.125rem;
  line-height: 1.5;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { margin: 0; font-weight: 500; line-height: 1.02; letter-spacing: -0.03em; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
strong { font-weight: 500; }
img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }

main { overflow-x: clip; } /* rotated cards and pixel edges must never cause sideways scroll */
.container { width: min(1344px, 100% - 32px); margin-inline: auto; }
@media (min-width: 768px) { .container { width: min(1344px, 100% - 64px); } }
.center { text-align: center; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.i { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.num { font-variant-numeric: tabular-nums; }
.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-link {
  position: absolute; left: 16px; top: -64px; z-index: var(--z-skip);
  padding: 10px 16px; background: var(--ink); color: #fff; text-decoration: none;
}
.skip-link:focus { top: 12px; }

/* Type */
h1 { font-size: clamp(2.75rem, 6.4vw, 5rem); }
.section-head h2 { font-size: clamp(2.25rem, 4.6vw, 4rem); }
.h-feature { font-size: clamp(2rem, 3.4vw, 3rem); line-height: 1.06; }
.lead { max-width: 36em; margin: 20px auto 0; text-wrap: balance; }
.sub { max-width: 40em; margin-top: 16px; color: var(--muted); }
.center .sub { margin-inline: auto; }
.eyebrow { margin-bottom: 14px; font-size: 0.875rem; }
.eyebrow span { margin-right: 6px; color: var(--muted); }
.mini { color: var(--muted); font-family: var(--mono); font-size: 0.6875rem; text-transform: uppercase; }
.footnote { margin-top: 16px; color: var(--muted); font-size: 0.875rem; }

/* Chips */
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 24px 0 0; padding: 0; list-style: none; }
.center .chips { justify-content: center; }
.chip {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px;
  border-radius: var(--radius-sm); background: var(--gray-100); font-size: 0.875rem; line-height: 1.4;
}
.chip-sm { padding: 3px 8px; font-size: 0.75rem; }
.chip-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--green); }
.chip-dark { background: rgb(255 255 255 / 0.14); color: #fff; }
.chip-dark .chip-dot { background: var(--mint); }

/* Buttons: square black with jagged pixel edges (copies of one 8px square via box-shadow) */
.btn-pixel {
  --px: var(--ink);
  position: relative; display: inline-flex; align-items: center; justify-content: center;
  min-height: 44px; padding: 0 24px; border: 0; background: var(--px); color: #fff;
  font: inherit; font-size: 1rem; font-weight: 500; text-decoration: none; white-space: nowrap; cursor: pointer;
}
.btn-pixel:hover { --px: #3a3a3a; }
.btn-pixel::before, .btn-pixel::after { content: ""; position: absolute; width: 8px; height: 8px; background: var(--px); }
.btn-pixel::before { left: -8px; top: 0; box-shadow: 0 16px var(--px), 0 28px var(--px), -8px 8px var(--px); }
.btn-pixel::after { right: -8px; top: 8px; box-shadow: 0 12px var(--px), 8px 20px var(--px), 0 28px var(--px); }
.btn-pixel:disabled { opacity: 0.6; cursor: progress; }
.btn-pixel.btn-light { --px: #fff; color: var(--ink); }
.btn-pixel.btn-light:hover { --px: #e4e4e4; }

/* Floating nav pill + popover menu */
.nav-wrap { position: sticky; top: 16px; z-index: var(--z-nav); width: min(450px, 100% - 32px); margin: 16px auto 0; }
.nav {
  display: flex; align-items: center; justify-content: space-between; height: 52px; padding: 0 8px 0 18px;
  border-radius: var(--radius); background: rgb(241 241 241 / 0.88);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
}
.nav-logo { display: flex; color: var(--ink); }
.logo { width: 72px; height: 22px; fill: currentColor; } /* umla.svg is 249 x 76 */
.nav-toggle {
  display: grid; place-items: center; width: 40px; height: 40px; border: 0; border-radius: var(--radius-sm);
  background: transparent; color: var(--ink); cursor: pointer;
}
.nav-toggle:hover { background: rgb(0 0 0 / 0.06); }
.nav-toggle .icon-close, .nav-wrap:has(.menu:popover-open) .icon-open { display: none; }
.nav-wrap:has(.menu:popover-open) .icon-close { display: block; }
.menu {
  position: fixed; inset: 76px auto auto 50%; translate: -50% 0;
  width: min(450px, 100% - 32px); margin: 0; padding: 8px 8px 16px; border: 0;
  border-radius: var(--radius); background: #fff; color: var(--ink); box-shadow: var(--shadow-float);
}
.menu ul { margin: 0 0 12px; padding: 0; list-style: none; }
.menu li a { display: block; padding: 12px; border-radius: var(--radius-sm); font-size: 1.125rem; text-decoration: none; }
.menu li a:hover { background: var(--gray-100); }
.menu .btn-pixel { width: calc(100% - 40px); margin-left: 20px; }

/* Hero: full-bleed night sky that runs up under the floating nav (68px = nav height + its top margin) */
.hero {
  position: relative; isolation: isolate; display: grid; place-items: center; min-height: 760px;
  margin-top: -68px; padding: 168px 0 240px;
  background: var(--deep); color: #fff; text-align: center;
}
.hero > canvas { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; image-rendering: pixelated; }
.hero:has(> canvas[data-size]) { background: none; } /* once painted, the dissolved bottom edge shows the page */
.hero h1 { max-width: 14em; margin: 20px auto 0; }
.hero .lead { color: rgb(255 255 255 / 0.78); }
.hero .btn-pixel { margin-top: 28px; }
.hero > .hero-card { position: absolute; bottom: -70px; left: 50%; translate: -50% 0; rotate: -4deg; } /* two classes so it beats .u-card's position: relative further down */
@media (max-width: 760px) {
  .hero { min-height: 680px; padding: 140px 0 200px; }
  .hero > .hero-card { bottom: -28px; } /* shorter overlap: the next section starts closer on phones */
}

/* Sections */
.section { padding: 120px 0 0; }
.section-head { max-width: 800px; margin-bottom: 48px; }
.section-head.center { margin-inline: auto; }
#waitlist { padding-bottom: 96px; }
@media (max-width: 760px) {
  .section { padding-top: 80px; }
  .section-head { margin-bottom: 36px; }
  #waitlist { padding-bottom: 80px; }
}

/* How it works */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin: 0; padding: 0; list-style: none; }
.steps li { position: relative; padding: 28px; border-radius: var(--radius-lg); background: var(--gray-50); }
.steps li:not(:last-child)::after { content: ""; position: absolute; top: 50%; right: -14px; z-index: 1; width: 12px; height: 12px; background: var(--ink); } /* pixel connector */
.step-icon { display: grid; place-items: center; width: 48px; height: 48px; margin-top: 28px; border-radius: 14px; background: #fff; }
.steps h3 { margin-top: 20px; font-size: 1.5rem; letter-spacing: -0.02em; line-height: 1.1; }
.steps p { margin-top: 8px; color: var(--muted); font-size: 1rem; }
@media (max-width: 860px) {
  .steps { grid-template-columns: minmax(0, 1fr); }
  .steps li::after { display: none; }
}

/* Promise: big numbers */
.bignums { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; margin: 0; text-align: center; }
.bignums div { display: flex; flex-direction: column-reverse; gap: 10px; }
.bignums dd { margin: 0; font-size: clamp(4rem, 9vw, 8rem); font-weight: 500; letter-spacing: -0.05em; line-height: 1; }
.bignums dt { color: var(--muted); font-family: var(--mono); font-size: 0.75rem; text-transform: uppercase; }
@media (max-width: 760px) { .bignums { grid-template-columns: minmax(0, 1fr); } }

/* Dithered art panels (canvas painted by script.js; the deep green shows if it isn't) */
.art {
  position: relative; isolation: isolate; display: grid; place-items: center;
  min-height: 460px; padding: 40px 20px; overflow: hidden; border-radius: var(--radius-lg); background: var(--deep);
}
.art > canvas, .u-card > canvas { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; image-rendering: pixelated; }
.art:has(> canvas[data-size]) { background: none; } /* once painted, drop the fallback so it can't bleed at the edges */
.art-xl { min-height: 560px; margin-top: 64px; }

/* White app cards floating on the art */
.widget {
  width: min(380px, 100%); padding: 20px; border-radius: 16px;
  background: #fff; box-shadow: var(--shadow-float); font-size: 0.9375rem;
}
.widget-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-bottom: 12px; }
.widget-title { display: flex; align-items: center; gap: 10px; font-weight: 500; }
.coin { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--gray-100); font-size: 0.8125rem; }
.widget-row { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-top: 1px solid var(--gray-200); }
.widget-row-top { margin-top: 16px; }
.widget-amount { display: flex; align-items: center; justify-content: space-between; margin-top: 4px; }
.widget-big { font-size: 2rem; font-weight: 500; letter-spacing: -0.02em; line-height: 1.1; font-variant-numeric: tabular-nums; }
.widget-arrow { display: grid; place-items: center; width: 32px; height: 32px; margin: 10px auto; border-radius: 50%; background: var(--gray-100); }
.widget-arrow .i { width: 16px; height: 16px; }
.ok { display: inline-flex; align-items: center; gap: 6px; }
.ok::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--green); }
.tx { margin-top: 6px; }
.tx-row { display: grid; grid-template-columns: 32px minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 7px 0; }
.tx-icon { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--gray-100); }
.tx-icon .i { width: 16px; height: 16px; }
.tx small { display: block; color: var(--muted); font-size: 0.75rem; }
.tx-amt { font-variant-numeric: tabular-nums; text-align: right; }

/* Feature rows */
.feature { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: 40px 64px; }
@media (max-width: 900px) {
  .feature { grid-template-columns: minmax(0, 1fr); }
  .feature-flip .feature-copy { order: -1; }
}

/* Borrow: one white two-part calculator floating on the night sky, then a horizontal repayment timeline */
.calc-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.calc-head label { font-weight: 500; }
.calc-value { font-size: 1.25rem; font-weight: 500; font-variant-numeric: tabular-nums; }
.calc-note { margin-top: 8px; color: var(--muted); font-size: 0.75rem; }
.art.borrow { min-height: 0; padding: clamp(16px, 5vw, 72px); }
.borrow-card {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); width: min(1000px, 100%);
  overflow: hidden; border-radius: var(--radius-lg); background: #fff; box-shadow: var(--shadow-float);
}
.borrow-in { padding: 32px; background: var(--gray-50); }
.borrow-out { padding: 32px; }
.btc-field { display: flex; align-items: baseline; gap: 10px; margin-top: 8px; border-bottom: 2px solid transparent; }
.btc-field:focus-within { border-bottom-color: var(--ink); }
.btc-field input {
  width: 5.5ch; min-width: 0; padding: 0; border: 0; background: transparent; color: var(--ink); font: inherit;
  font-size: clamp(2.5rem, 5vw, 3.5rem); font-weight: 500; letter-spacing: -0.03em; line-height: 1.1; font-variant-numeric: tabular-nums;
  appearance: textfield; -moz-appearance: textfield; /* the quick picks replace the tiny spinner arrows */
}
.btc-field input::-webkit-inner-spin-button, .btc-field input::-webkit-outer-spin-button { margin: 0; -webkit-appearance: none; }
.btc-field input:focus-visible { outline: none; } /* the field's underline shows focus instead */
.btc-field span { color: var(--muted); font-size: 1.25rem; font-weight: 500; }
.quick { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.quick button {
  padding: 6px 12px; border: 0; border-radius: var(--radius-sm); background: #fff; box-shadow: inset 0 0 0 1px var(--gray-200);
  color: var(--ink); font: inherit; font-size: 0.875rem; font-variant-numeric: tabular-nums; cursor: pointer;
}
.quick button:hover { background: var(--gray-100); }
.borrow-facts { margin: 24px 0 0; }
.borrow-facts div { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 0; border-top: 1px solid var(--gray-200); font-size: 0.9375rem; }
.borrow-facts dt { color: var(--muted); white-space: nowrap; }
.borrow-facts dd { display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: center; gap: 8px; margin: 0; font-weight: 500; font-variant-numeric: tabular-nums; }
.price-tag {
  display: inline-flex; align-items: center; gap: 6px; padding: 2px 8px; border-radius: 6px; background: #fff;
  color: var(--muted); font-family: var(--mono); font-size: 0.6875rem; font-weight: 400; text-transform: uppercase;
}
.price-tag[data-state="live"]::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--green); }
.borrow-label { margin-top: 24px; }
.borrow-in .toggle { display: flex; margin-top: 8px; background: #fff; box-shadow: inset 0 0 0 1px var(--gray-200); }
.borrow-in .toggle button { flex: 1; }
.borrow-in .toggle button[aria-pressed="true"] { background: var(--ink); color: #fff; box-shadow: none; }
.borrow-limit { margin-top: 6px; font-size: clamp(3rem, 6vw, 4.5rem); font-weight: 500; letter-spacing: -0.04em; line-height: 1; font-variant-numeric: tabular-nums; }
.borrow-out .calc-head { margin-top: 28px; }
.borrow-out input[type="range"] { width: 100%; margin: 14px 0 0; accent-color: var(--ink); cursor: pointer; }
.borrow-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 24px; }
.borrow-stats div { display: grid; align-content: start; gap: 6px; padding: 14px; border-radius: var(--radius); background: var(--gray-50); }
.borrow-stats strong { font-size: 1.375rem; font-weight: 500; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.borrow-out .calc-note { margin-top: 14px; }
@media (max-width: 860px) { .borrow-card { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 480px) {
  .borrow-in, .borrow-out { padding: 24px 20px; }
  .borrow-stats { grid-template-columns: minmax(0, 1fr); }
}

.repay-line { max-width: 40em; margin: 32px auto 0; color: var(--muted); font-size: 1.125rem; text-align: center; text-wrap: balance; }
.repay-line b { color: var(--ink); font-weight: 500; font-variant-numeric: tabular-nums; white-space: nowrap; } /* never split "Jan 7" or "$1,820" */

/* Comparison table */
.widget-table { width: min(480px, 100%); padding: 6px 20px; }
.compare { width: 100%; border-collapse: collapse; font-family: var(--mono); font-size: 0.75rem; text-transform: uppercase; }
.compare th, .compare td { padding: 14px 6px; border-bottom: 1px solid var(--gray-200); font-weight: 400; text-align: left; }
.compare thead th, .compare td { color: var(--muted); }
.compare td:last-child, .compare tbody th { color: var(--ink); }
.compare tbody tr:last-child > * { border-bottom: 0; }

/* Bento */
.bento { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: start; gap: 16px; }
.bento-card { display: flex; flex-direction: column; gap: 28px; padding: 12px; border-radius: var(--radius-lg); background: var(--gray-50); }
.bento-card .art { min-height: 380px; padding: 24px 16px; border-radius: 14px; }
.bento-copy { padding: 4px 12px 16px; }
.bento-card > .bento-copy:first-child { padding-top: 16px; }
.bento-copy h3 { font-size: clamp(1.625rem, 2.2vw, 2rem); line-height: 1.08; }
.bento-copy > p:not(.eyebrow) { margin-top: 12px; color: var(--muted); font-size: 1rem; }
@media (max-width: 960px) { .bento { grid-template-columns: minmax(0, 1fr); } }

/* Shariah */
.principles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin: 0; padding: 0; list-style: none; }
.principles li { padding: 28px; border-radius: var(--radius-lg); background: var(--gray-50); }
.num-tag { color: var(--muted); font-family: var(--mono); font-size: 0.75rem; }
.principles h3 { margin-top: 32px; font-size: 1.5rem; line-height: 1.1; letter-spacing: -0.02em; }
.principles p { margin-top: 10px; color: var(--muted); font-size: 1rem; }
.contracts { margin-top: 16px; padding: 8px 28px 12px; border-radius: var(--radius-lg); background: var(--gray-50); }
.mono-table { width: 100%; border-collapse: collapse; }
.mono-table th, .mono-table td { padding: 16px 0; border-top: 1px solid var(--gray-200); text-align: left; vertical-align: top; }
.mono-table thead th { border-top: 0; color: var(--muted); font-family: var(--mono); font-size: 0.75rem; font-weight: 400; text-transform: uppercase; }
.mono-table tbody th { width: 36%; padding-right: 24px; font-weight: 500; }
.mono-table td { color: var(--muted); }
@media (max-width: 960px) { .principles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) {
  .principles { grid-template-columns: minmax(0, 1fr); }
  .contracts { padding: 4px 20px 8px; }
  .mono-table tbody th { width: 42%; }
}

/* Payment cards */
.u-card {
  position: relative; isolation: isolate; display: flex; flex-direction: column; justify-content: space-between;
  aspect-ratio: 1.586; padding: 16px 18px; overflow: hidden; border-radius: 14px;
  font-size: 0.8125rem; box-shadow: 0 24px 48px -20px rgb(0 0 0 / 0.45);
}
.u-card-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.u-card .logo { width: 59px; height: 18px; }
.u-card-chip { width: 34px; height: 26px; border-radius: 6px; background: #d8d8d8; }
.u-card-light {
  border: 1px solid var(--gray-200); color: var(--ink);
  background: #f4f4f4 radial-gradient(circle, rgb(0 0 0 / 0.09) 1px, transparent 1.5px) 0 0 / 5px 5px;
}
.u-card-black { color: #fff; background: #111 radial-gradient(circle, rgb(255 255 255 / 0.08) 1px, transparent 1.5px) 0 0 / 5px 5px; }
.u-card-green { color: #fff; background: var(--deep); }
.u-card-lg { width: min(440px, 86%); padding: 22px 24px; font-size: 0.9375rem; }
.u-card-lg .logo { width: 85px; height: 26px; }
.u-card-lg .u-card-chip { width: 44px; height: 34px; }

.fan { position: relative; height: 290px; max-width: 900px; margin: 0 auto 48px; }
.fan .u-card { --w: 290px; position: absolute; top: 24px; left: 50%; width: var(--w); margin-left: calc(var(--w) / -2); }
.fan .u-card:nth-child(1) { transform: translate(-68%, 36px) rotate(-12deg); }
.fan .u-card:nth-child(2) { z-index: 1; }
.fan .u-card:nth-child(3) { transform: translate(68%, 36px) rotate(12deg); }
@media (max-width: 600px) {
  .fan { height: 190px; }
  .fan .u-card { --w: 170px; padding: 12px 14px; font-size: 0.6875rem; }
  .fan .u-card:nth-child(1) { transform: translate(-52%, 28px) rotate(-12deg); }
  .fan .u-card:nth-child(3) { transform: translate(52%, 28px) rotate(12deg); }
  .fan .u-card .logo { width: 43px; height: 13px; }
  .fan .u-card-chip { width: 26px; height: 20px; }
}
@media (max-width: 360px) { .fan .u-card { --w: 150px; } }

/* Plans: billing toggle + comparison table */
.billing { display: flex; justify-content: center; margin-bottom: 24px; }
.toggle { display: inline-flex; gap: 4px; padding: 4px; border-radius: 10px; background: var(--gray-100); }
.toggle button { padding: 8px 14px; border: 0; border-radius: var(--radius-sm); background: transparent; color: var(--muted); font: inherit; font-size: 0.9375rem; cursor: pointer; }
.toggle button[aria-pressed="true"] { background: #fff; color: var(--ink); box-shadow: 0 1px 2px rgb(0 0 0 / 0.08); }
.matrix-wrap { position: relative; overflow-x: auto; padding: 8px 24px; border-radius: var(--radius-lg); background: var(--gray-50); } /* relative keeps the hidden screen-reader labels inside the scroll box */
.matrix { width: 100%; min-width: 560px; border-collapse: collapse; }
.matrix th, .matrix td { padding: 14px 8px; border-top: 1px solid var(--gray-200); font-weight: 400; text-align: center; }
.matrix thead th { border-top: 0; font-weight: 500; vertical-align: bottom; }
.matrix tbody th { text-align: left; }
.matrix td.yes::before { content: ""; display: inline-block; width: 18px; height: 18px; vertical-align: middle; background: var(--check) center / 18px no-repeat; }
.matrix td.no::before { content: ""; display: inline-block; width: 10px; height: 2px; vertical-align: middle; background: var(--muted); }
.price { display: block; margin-top: 6px; font-size: 2rem; font-weight: 500; letter-spacing: -0.03em; }
.price small { color: var(--muted); font-size: 0.8125rem; letter-spacing: 0; }
@media (max-width: 600px) { /* fit all three plans on a phone instead of hiding two behind a sideways scroll */
  .matrix-wrap { padding: 4px 12px; }
  .matrix { min-width: 0; font-size: 0.875rem; }
  .matrix th, .matrix td { padding: 12px 4px; }
  .price { font-size: 1.25rem; }
  .price small { display: block; font-size: 0.6875rem; }
}

/* FAQ: open grid */
.faq-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin: 0; }
.faq-grid div { padding: 24px; border-radius: 16px; background: var(--gray-50); }
.faq-grid dt { font-size: 1.125rem; font-weight: 500; }
.faq-grid dd { margin: 8px 0 0; color: var(--muted); font-size: 1rem; }
@media (max-width: 960px) { .faq-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .faq-grid { grid-template-columns: minmax(0, 1fr); } }

/* Learn */
.articles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.article { display: block; padding: 10px 10px 24px; border-radius: var(--radius-lg); background: var(--gray-50); color: inherit; text-decoration: none; }
a.article:hover h3 { text-decoration: underline; }
.learn-all { margin-top: 24px; font-weight: 500; text-align: center; }
.art.article-thumb { min-height: 220px; place-items: end start; padding: 20px; border-radius: 14px; }
.article-title { max-width: 10em; color: #fff; font-size: 1.75rem; font-weight: 500; letter-spacing: -0.03em; line-height: 1.05; }
.article .mini { margin: 18px 12px 0; }
.article h3 { margin: 6px 12px 0; font-size: 1.25rem; letter-spacing: -0.02em; line-height: 1.2; }
@media (max-width: 960px) { .articles { grid-template-columns: minmax(0, 1fr); } }

/* Giant scrolling headline: transform-only, paused off-screen by script.js, still for reduced motion */
.marquee { margin-top: 120px; overflow: hidden; }
.marquee-track { display: flex; width: max-content; animation: marquee 48s linear infinite; }
.marquee.is-paused .marquee-track { animation-play-state: paused; }
.marquee span { padding-right: 0.35em; font-size: clamp(4rem, 11vw, 10rem); font-weight: 500; letter-spacing: -0.04em; line-height: 1.1; white-space: nowrap; }
@keyframes marquee { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .marquee-track { animation: none; } }
@media (max-width: 760px) { .marquee { margin-top: 80px; } }

/* Waitlist form */
.waitlist { width: min(520px, 100%); margin: 32px auto 0; }
.waitlist-row { display: flex; align-items: center; gap: 24px; }
.waitlist input {
  flex: 1; min-width: 0; height: 44px; padding: 0 14px; border: 1px solid var(--gray-200);
  border-radius: 0; background: var(--gray-100); color: var(--ink); font: inherit; font-size: 1rem;
}
.waitlist input::placeholder { color: var(--muted); }
.waitlist .btn-pixel { flex: none; margin-right: 16px; }
.form-note { margin-top: 14px; color: var(--muted); font-size: 0.875rem; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; } /* honeypot: hidden from people, filled by bots */
.form-status { margin-top: 6px; font-size: 0.9375rem; font-weight: 500; }
.form-status[data-state="ok"] { color: var(--green); }
.form-status[data-state="error"] { color: var(--error); }
@media (max-width: 520px) {
  .waitlist-row { flex-direction: column; align-items: stretch; gap: 16px; }
  .waitlist input { flex: none; }
  .waitlist .btn-pixel { margin: 0 16px; }
}

/* Footer: links and legal, then the logo across the full width, cut out of the night sky */
.footer { padding-bottom: 24px; }
.footer-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px 32px; color: var(--muted); font-size: 0.9375rem; }
.footer-row ul { display: flex; flex-wrap: wrap; gap: 8px 24px; margin: 0; padding: 0; list-style: none; }
.footer-row a { text-decoration: none; }
.footer-row a:hover { color: var(--ink); }
.disclaimer { max-width: 92ch; margin-top: 24px; color: var(--muted); font-size: 0.8125rem; line-height: 1.6; }
.wordmark { width: 100%; height: auto; aspect-ratio: 249 / 76; margin-top: 40px; image-rendering: pixelated; }

/* Guides (learn/): night-sky hero under the nav, pixel-dissolved edge, an "at a glance" card crossing it */
.post-hero {
  position: relative; isolation: isolate; margin-top: -68px; padding: 160px 0 200px;
  background: var(--deep); color: #fff; text-align: center;
}
.post-hero > canvas { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; image-rendering: pixelated; }
.post-hero:has(> canvas[data-size]) { background: none; }
.post-hero h1 { max-width: 15em; margin: 20px auto 0; font-size: clamp(2.5rem, 5.6vw, 4.5rem); }
.post-hero .lead { color: rgb(255 255 255 / 0.78); }
.post-meta { margin-top: 20px; color: rgb(255 255 255 / 0.72); font-family: var(--mono); font-size: 0.75rem; text-transform: uppercase; }
a.chip-dark { text-decoration: none; }
a.chip-dark:hover { background: rgb(255 255 255 / 0.24); }
.glance { position: relative; width: min(560px, 100% - 32px); margin: -120px auto 0; } /* sits in the bottom 120px of the 160px dissolve */
.glance dl { margin: 8px 0 0; }
.glance dl div { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-top: 1px solid var(--gray-200); font-size: 0.9375rem; }
.glance dl div:first-child { border-top: 0; }
.glance dt { color: var(--muted); }
.glance dd { margin: 0; font-weight: 500; text-align: right; }
.post-hero + .section { padding-top: 40px; }
@media (max-width: 760px) {
  .post-hero { padding: 132px 0 180px; }
  .glance { margin-top: -100px; }
}
.post-body { width: min(680px, 100% - 32px); margin: 56px auto 0; font-size: 1.125rem; line-height: 1.7; }
.post-body > * + * { margin-top: 18px; }
.post-body h2 { margin-top: 44px; font-size: 1.75rem; line-height: 1.15; letter-spacing: -0.02em; }
.post-body ul { padding-left: 1.2em; }
.post-body li + li { margin-top: 10px; }
.post-lead { font-size: 1.3125rem; line-height: 1.55; }
.post-note { margin-top: 40px; padding: 20px 24px; border-radius: 16px; background: var(--gray-50); color: var(--muted); font-size: 0.9375rem; line-height: 1.6; }
.post-example { padding: 20px 24px; border-radius: 16px; background: var(--gray-50); }
.post-example dl { margin: 8px 0 0; }
.post-example dl div { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-top: 1px solid var(--gray-200); font-size: 1rem; }
.post-example dl div:first-child { border-top: 0; }
.post-example dl div:last-child { font-weight: 500; }
.post-example dd { margin: 0; font-variant-numeric: tabular-nums; }
.post-cta .btn-pixel { margin-top: 28px; }

/* 404 page */
.not-found { display: grid; place-items: center; align-content: center; min-height: calc(100dvh - 68px); padding: 48px 16px 96px; text-align: center; }
.not-found-code { font-size: clamp(6rem, 18vw, 13rem); font-weight: 500; letter-spacing: -0.06em; line-height: 0.9; }
.dissolve { width: min(516px, 100%); height: auto; }
.not-found h1 { margin-top: 24px; color: var(--muted); font-size: 1.125rem; font-weight: 400; letter-spacing: 0; }
.not-found .btn-pixel { margin-top: 28px; }
