/* Parsel site. Self-hosted font and media; no third-party requests. */

@font-face {
  font-family: "Inter";
  src: url("assets/fonts/InterVariable.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #fbfbfa;
  --bg-2: #f4f4f1;
  --surface: #ffffff;
  --text: #111113;
  --text-2: #3f3f46;
  --muted: #6b6b73;
  --border: #e7e7e3;
  --border-strong: #d4d4cf;
  --accent: #0f7a59;
  --accent-hover: #0b6449;
  --accent-contrast: #ffffff;
  --accent-soft: #e6f4ee;
  --accent-ink: #0b5c43;
  --ghost: rgba(17, 17, 19, 0.3);
  --glow: radial-gradient(60% 60% at 50% 0%, rgba(15, 122, 89, 0.12), transparent 70%);
  --shadow-sm: 0 1px 2px rgba(17, 17, 19, 0.06);
  --shadow-lg: 0 1px 2px rgba(17, 17, 19, 0.06), 0 12px 40px -12px rgba(17, 17, 19, 0.18), 0 40px 80px -40px rgba(17, 17, 19, 0.18);
  --ring: 0 0 0 3px rgba(15, 122, 89, 0.28);
  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 18px;
  --maxw: 72rem;
  --gutter: 16px;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "Cascadia Mono", Consolas, "SFMono-Regular", Menlo, monospace;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0b0c0d;
    --bg-2: #111214;
    --surface: #151618;
    --text: #ededef;
    --text-2: #c4c4cb;
    --muted: #8e8e97;
    --border: #232529;
    --border-strong: #34373c;
    --accent: #3dd6a3;
    --accent-hover: #63e1b8;
    --accent-contrast: #05140f;
    --accent-soft: #0f2a21;
    --accent-ink: #7ee8c4;
    --ghost: rgba(237, 237, 239, 0.34);
    --glow: radial-gradient(60% 60% at 50% 0%, rgba(61, 214, 163, 0.14), transparent 70%);
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.5);
    --shadow-lg: 0 1px 2px rgba(0, 0, 0, 0.5), 0 24px 60px -20px rgba(0, 0, 0, 0.7);
    --ring: 0 0 0 3px rgba(61, 214, 163, 0.32);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0b0c0d;
  --bg-2: #111214;
  --surface: #151618;
  --text: #ededef;
  --text-2: #c4c4cb;
  --muted: #8e8e97;
  --border: #232529;
  --border-strong: #34373c;
  --accent: #3dd6a3;
  --accent-hover: #63e1b8;
  --accent-contrast: #05140f;
  --accent-soft: #0f2a21;
  --accent-ink: #7ee8c4;
  --ghost: rgba(237, 237, 239, 0.34);
  --glow: radial-gradient(60% 60% at 50% 0%, rgba(61, 214, 163, 0.14), transparent 70%);
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 1px 2px rgba(0, 0, 0, 0.5), 0 24px 60px -20px rgba(0, 0, 0, 0.7);
  --ring: 0 0 0 3px rgba(61, 214, 163, 0.32);
  color-scheme: dark;
}

/* ---------------------------------------------------------------- Base */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 1rem/1.6 var(--font);
  font-feature-settings: "cv11", "ss01";
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, video, svg { display: block; max-width: 100%; }
a { color: var(--accent-ink); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--accent); }
:focus-visible { outline: none; box-shadow: var(--ring); border-radius: 6px; }
h1, h2, h3 { margin: 0; line-height: 1.1; letter-spacing: -0.025em; font-weight: 650; text-wrap: balance; }
h1 { font-size: clamp(2.4rem, 6.4vw, 4.6rem); letter-spacing: -0.04em; font-weight: 700; }
h2 { font-size: clamp(1.8rem, 4vw, 2.75rem); letter-spacing: -0.035em; }
h3 { font-size: 1.125rem; letter-spacing: -0.01em; font-weight: 600; line-height: 1.3; }
p { margin: 0 0 1rem; }
ul, ol { margin: 0 0 1rem; padding-left: 1.25rem; }
code, kbd { font-family: var(--mono); font-size: 0.9em; }
kbd {
  display: inline-grid; place-items: center; min-width: 1.75em; height: 1.6em; padding: 0 0.4em;
  border: 1px solid var(--border-strong); border-bottom-width: 2px; border-radius: 6px;
  background: var(--surface); color: var(--text); font-size: 0.82em; line-height: 1; vertical-align: 0.1em;
}
.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: 12px; top: -48px; z-index: 50; background: var(--surface); padding: 8px 12px; border-radius: 8px; }
.skip:focus { top: 12px; }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding-inline: var(--gutter); }
.narrow { max-width: 46rem; }
@media (min-width: 768px) { :root { --gutter: 24px; } }

.muted { color: var(--muted); }
.lead { font-size: clamp(1.05rem, 2vw, 1.25rem); color: var(--text-2); line-height: 1.55; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 0.5rem; margin-bottom: 1rem;
  font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.01em; color: var(--accent-ink);
}
.eyebrow::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }

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

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  min-height: 44px; padding: 0 1.15rem; border-radius: 10px; border: 1px solid transparent;
  font: 600 0.95rem/1 var(--font); text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background-color 0.15s, border-color 0.15s, color 0.15s, transform 0.15s;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); color: var(--accent-contrast); }
.btn-primary:hover { background: var(--accent-hover); color: var(--accent-contrast); }
.btn-secondary { background: var(--surface); color: var(--text); border-color: var(--border-strong); box-shadow: var(--shadow-sm); }
.btn-secondary:hover { border-color: var(--muted); color: var(--text); }
.btn-sm { min-height: 36px; padding: 0 0.85rem; font-size: 0.875rem; border-radius: 8px; }
.btn svg { width: 18px; height: 18px; }

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

.site-header {
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid var(--border);
}
.site-header .wrap { display: flex; align-items: center; gap: 1rem; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 0.6rem; color: var(--text); text-decoration: none; font-weight: 700; font-size: 1.1rem; letter-spacing: -0.02em; }
.brand:hover { color: var(--text); }
.brand-mark { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 8px; background: var(--accent); color: var(--accent-contrast); }
.brand-mark svg { width: 16px; height: 16px; }
.nav { display: flex; gap: 0.25rem; margin: 0 0 0 1rem; padding: 0; list-style: none; }
.nav a { display: block; padding: 0.4rem 0.7rem; border-radius: 8px; color: var(--muted); text-decoration: none; font-size: 0.925rem; font-weight: 500; }
.nav a:hover { color: var(--text); background: var(--bg-2); }
.nav a[aria-current="page"] { color: var(--text); }
.header-actions { margin-left: auto; display: flex; align-items: center; gap: 0.5rem; }
.icon-btn {
  display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 8px;
  border: 1px solid var(--border); background: var(--surface); color: var(--text-2); cursor: pointer;
}
.icon-btn:hover { color: var(--text); border-color: var(--border-strong); }
.icon-btn svg { width: 18px; height: 18px; }
.theme-toggle .i-sun, .theme-toggle .i-moon, .theme-toggle .i-auto { display: none; }
.theme-toggle[data-mode="light"] .i-sun, .theme-toggle[data-mode="dark"] .i-moon, .theme-toggle[data-mode="system"] .i-auto { display: block; }
.menu-btn { display: none; }
@media (max-width: 860px) {
  .nav { display: none; }
  .menu-btn { display: inline-grid; }
  .site-header.open .nav {
    display: flex; flex-direction: column; position: absolute; top: 64px; left: 0; right: 0; margin: 0;
    padding: 0.5rem var(--gutter) 1rem; background: var(--bg); border-bottom: 1px solid var(--border);
  }
  .site-header.open .nav a { padding: 0.75rem 0.5rem; font-size: 1rem; }
  .header-actions .btn-download-label { display: none; }
}

/* ---------------------------------------------------------------- Sections */

.section { padding-block: clamp(4rem, 9vw, 7.5rem); }
.section-tight { padding-block: clamp(2.5rem, 5vw, 4rem); }
.section-alt { background: var(--bg-2); border-block: 1px solid var(--border); }
.section-head { max-width: 44rem; margin-bottom: clamp(2rem, 4vw, 3.25rem); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head h2 + p { margin-top: 1rem; }

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

.hero { position: relative; padding-block: clamp(3.5rem, 8vw, 6.5rem) 0; text-align: center; isolation: isolate; }
.hero::before { content: ""; position: absolute; inset: -64px 0 auto; height: 640px; background: var(--glow); z-index: -1; pointer-events: none; }
.hero .lead { max-width: 40rem; margin: 1.5rem auto 0; }
.hero-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.75rem; margin-top: 2rem; }
.hero-note { margin-top: 1rem; font-size: 0.875rem; color: var(--muted); }
.hero-media { margin-top: clamp(2.5rem, 6vw, 4.5rem); }

/* The ghost-text headline: the second half arrives as ghost text, then is "accepted". */
.ghost-type { display: inline; }
.ghost-type .ghost { color: var(--ghost); animation: accept 0.35s ease-out 1.6s forwards; }
.ghost-type .keys { display: inline-flex; gap: 0.08em; margin-left: 0.14em; vertical-align: 0.12em; animation: fade-key 0.4s ease-out 2.2s forwards; }
.ghost-type .key {
  display: inline-grid; place-items: center; width: 0.62em; height: 0.62em;
  border: 2px solid var(--border-strong); border-bottom-width: 4px; border-radius: 0.14em;
  color: var(--text-2); background: var(--surface);
  animation: press 0.35s ease-in-out 1.35s;
}
.ghost-type .key svg { width: 62%; height: 62%; }
@keyframes accept { to { color: var(--text); } }
@keyframes press { 50% { transform: translateY(3px); border-bottom-width: 2px; border-color: var(--accent); color: var(--accent); } }
@keyframes fade-key { to { opacity: 0; } }

/* ---------------------------------------------------------------- Video frames */

.frame {
  position: relative; margin: 0; border-radius: var(--radius-lg); overflow: hidden;
  background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-lg);
}
.frame video, .frame img { width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; background: var(--bg-2); }
.frame-cap {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 0.7rem 1rem; border-top: 1px solid var(--border); font-size: 0.85rem; color: var(--muted);
}
.frame-cap strong { color: var(--text); font-weight: 600; }
.frame .play {
  position: absolute; inset: 0 0 auto; aspect-ratio: 16 / 10; display: none; place-items: center;
  background: transparent; border: 0; cursor: pointer;
}
.frame .play span {
  display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%;
  background: color-mix(in srgb, var(--surface) 88%, transparent); box-shadow: var(--shadow-lg); color: var(--text);
}
.frame.paused .play { display: grid; }
.hero-frame { max-width: 64rem; margin-inline: auto; }

/* ---------------------------------------------------------------- Gallery */

.chips { display: flex; gap: 0.5rem; overflow-x: auto; padding-bottom: 0.25rem; margin-bottom: 1.5rem; scrollbar-width: none; scroll-snap-type: x proximity; }
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex: 0 0 auto; scroll-snap-align: start; display: inline-flex; align-items: center; gap: 0.45rem;
  min-height: 40px; padding: 0 0.95rem; border-radius: 999px; border: 1px solid var(--border);
  background: var(--surface); color: var(--text-2); font: 500 0.9rem/1 var(--font); cursor: pointer;
}
.chip:hover { border-color: var(--border-strong); color: var(--text); }
.chip[aria-selected="true"] { background: var(--text); color: var(--bg); border-color: var(--text); }
.no-js .chips { display: none; }

.panel { display: grid; gap: clamp(1.25rem, 3vw, 2.5rem); grid-template-columns: minmax(0, 1fr); align-items: start; }
.js [data-gallery] .panel:not(.active) { display: none; }
.no-js [data-gallery] .panel + .panel { margin-top: 3.5rem; }
@media (min-width: 960px) { .panel { grid-template-columns: minmax(0, 1.75fr) minmax(0, 1fr); } }
.panel.solo { grid-template-columns: minmax(0, 1fr); max-width: 64rem; margin-inline: auto; }
.panel-foot { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 0.5rem 1.5rem; }
.panel-foot h3 { font-size: clamp(1.25rem, 2.4vw, 1.6rem); letter-spacing: -0.02em; }
.panel-foot a { font-weight: 500; white-space: nowrap; }
.panel-copy h3 { font-size: 1.5rem; letter-spacing: -0.02em; margin-bottom: 0.75rem; }
.panel-copy .who { color: var(--text-2); }
.badge {
  display: inline-flex; align-items: center; gap: 0.3rem; padding: 0.15rem 0.5rem; border-radius: 999px;
  font-size: 0.75rem; font-weight: 600; background: var(--accent-soft); color: var(--accent-ink); white-space: nowrap;
}
.badge.typed { background: var(--bg-2); color: var(--text-2); border: 1px solid var(--border); }

/* ---------------------------------------------------------------- Grids, cards, tiles */

.grid { display: grid; gap: 1rem; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 640px) { .grid-2, .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 900px) { .grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1040px) { .grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (min-width: 640px) and (max-width: 899px) { .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.5rem; }
.card h3 { margin-bottom: 0.5rem; }
.card p:last-child { margin-bottom: 0; }
.card .icon {
  display: grid; place-items: center; width: 40px; height: 40px; margin-bottom: 1.1rem; border-radius: 10px;
  background: var(--accent-soft); color: var(--accent-ink);
}
.card .icon svg { width: 20px; height: 20px; }

/* ---------------------------------------------------------------- What it doesn't need (dark in both themes) */

.hero-proof { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.4rem 1.25rem; list-style: none; padding: 0; margin: 1.1rem 0 0; font-size: 0.9rem; font-weight: 500; color: var(--text-2); }
.hero-proof li { display: inline-flex; align-items: center; gap: 0.45rem; }
.hero-proof li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }

.band {
  --band-bg: #0d0e10; --band-text: #f2f2f3; --band-muted: #a3a3ab; --band-accent: #3dd6a3;
  --band-card: rgba(255, 255, 255, 0.035); --band-border: rgba(255, 255, 255, 0.09);
  position: relative; isolation: isolate; overflow: hidden;
  margin-top: clamp(4rem, 8vw, 6.5rem); padding-block: clamp(4rem, 9vw, 7rem);
  background: var(--band-bg); color: var(--band-text); border-block: 1px solid var(--band-border);
}
.band::before { content: ""; position: absolute; inset: 0 0 auto; height: 520px; z-index: -1; pointer-events: none;
  background: radial-gradient(55% 70% at 15% 0%, rgba(61, 214, 163, 0.16), transparent 70%); }
.band .eyebrow { color: var(--band-accent); }
.band .eyebrow::before { background: var(--band-accent); }
.band-head { display: grid; gap: 1.5rem 3rem; grid-template-columns: minmax(0, 1fr); align-items: end; margin-bottom: clamp(2.5rem, 5vw, 3.5rem); }
@media (min-width: 900px) { .band-head { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); } .band-head .eyebrow { grid-column: 1 / -1; margin-bottom: -0.5rem; } }
.band h2 { font-size: clamp(2.5rem, 6.5vw, 4.75rem); line-height: 1.02; letter-spacing: -0.045em; color: var(--band-text); }
.band .lead { color: var(--band-muted); margin: 0; }
.nos { display: grid; gap: 1rem; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 900px) { .nos { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.no { background: var(--band-card); border: 1px solid var(--band-border); border-radius: var(--radius-lg); padding: clamp(1.5rem, 3vw, 2rem); }
.no-icon { display: grid; place-items: center; width: 48px; height: 48px; margin-bottom: 1.25rem; border-radius: 14px;
  background: rgba(61, 214, 163, 0.12); color: var(--band-accent); }
.no-icon svg { width: 24px; height: 24px; }
.no h3 { font-size: 1.35rem; letter-spacing: -0.02em; margin-bottom: 0.6rem; color: var(--band-text); }
.no p { color: var(--band-muted); margin-bottom: 1.25rem; }
.no ul { list-style: none; padding: 1rem 0 0; margin: 0; border-top: 1px solid var(--band-border); display: grid; gap: 0.5rem; font-size: 0.925rem; color: var(--band-text); }
.no li { display: flex; align-items: center; gap: 0.55rem; }
.no li::before { content: "✓"; color: var(--band-accent); font-weight: 700; }

/* ---------------------------------------------------------------- The keys */

.keys-grid { display: grid; gap: 1rem; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 900px) { .keys-grid { grid-template-columns: 1.3fr 1fr 1fr; } }
.keycard { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: clamp(1.5rem, 3vw, 2rem); }
.keycard.lead-card { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent), var(--shadow-lg); }
.keycard .caps { display: flex; align-items: center; gap: 0.4rem; height: 52px; margin-bottom: 1.25rem; }
.keycard .cap {
  display: inline-grid; place-items: center; min-width: 52px; height: 52px; padding: 0 0.9rem;
  border: 1px solid var(--border-strong); border-bottom-width: 4px; border-radius: 12px;
  background: var(--bg); color: var(--text); font: 600 1rem/1 var(--font); white-space: nowrap;
}
.keycard .cap svg { width: 22px; height: 22px; }
.keycard .plus { color: var(--muted); font-weight: 600; }
.keycard.lead-card .cap { border-color: var(--accent); color: var(--accent-ink); }
.keycard h3 { font-size: 1.35rem; letter-spacing: -0.02em; margin-bottom: 0.5rem; }
.keycard p { margin: 0; color: var(--text-2); }
.keycard .cap.typed-sample { display: inline-flex; align-items: center; font-family: var(--mono); font-size: 0.95rem; font-weight: 500; }
.typed-sample .gh { color: var(--ghost); }

/* ---------------------------------------------------------------- Split, lists */

.split { display: grid; gap: clamp(2rem, 5vw, 4rem); grid-template-columns: minmax(0, 1fr); align-items: center; }
@media (min-width: 900px) { .split { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.checks { list-style: none; padding: 0; margin: 0; display: grid; gap: 1rem; }
.checks li { position: relative; display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 0.75rem; align-items: start; }
.checks li::before { content: ""; width: 28px; height: 28px; border-radius: 8px; background: var(--accent-soft); }
.checks li::after {
  content: ""; position: absolute; left: 6px; top: 6px; width: 16px; height: 16px; background: var(--accent-ink);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / contain no-repeat;
}
.checks strong { display: block; color: var(--text); font-weight: 600; }
.checks span { color: var(--text-2); font-size: 0.95rem; }

.statement {
  margin: 0; padding: clamp(1.5rem, 4vw, 2.25rem); border-radius: var(--radius-lg);
  background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-lg);
  font-size: clamp(1.3rem, 3vw, 1.75rem); font-weight: 600; letter-spacing: -0.025em; line-height: 1.3;
}
.statement .mark { color: var(--accent-ink); }
.statement footer { margin-top: 1.25rem; font-size: 0.875rem; font-weight: 400; letter-spacing: 0; color: var(--muted); }

/* ---------------------------------------------------------------- Pricing */

.price { display: flex; flex-direction: column; padding: 2rem; }
.price.featured { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent), var(--shadow-lg); }
.price h3 { font-size: 1.15rem; }
.price .amount { margin: 1rem 0 0.25rem; font-size: 2.4rem; font-weight: 700; letter-spacing: -0.04em; line-height: 1.1; }
.price .amount small { font-size: 0.95rem; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.price ul { list-style: none; padding: 0; margin: 1.25rem 0 1.75rem; display: grid; gap: 0.6rem; }
.price li { padding-left: 1.6rem; position: relative; color: var(--text-2); }
.price li::before { content: "→"; position: absolute; left: 0; color: var(--accent-ink); font-weight: 600; }
.price .btn { margin-top: auto; }

/* ---------------------------------------------------------------- FAQ */

.faq { border-top: 1px solid var(--border); }
.faq details { border-bottom: 1px solid var(--border); }
.faq summary {
  display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1.15rem 0;
  font-weight: 600; cursor: pointer; list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.4rem; font-weight: 400; color: var(--muted); transition: transform 0.2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details > div { padding: 0 0 1.25rem; color: var(--text-2); max-width: 46rem; }

/* ---------------------------------------------------------------- CTA, footer */

.cta {
  position: relative; overflow: hidden; text-align: center; padding: clamp(3rem, 7vw, 5rem) var(--gutter);
  border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--border); isolation: isolate;
}
.cta::before { content: ""; position: absolute; inset: 0; background: var(--glow); z-index: -1; }
.cta p { max-width: 34rem; margin: 1rem auto 2rem; }

.site-footer { border-top: 1px solid var(--border); padding-block: 2.5rem 3rem; color: var(--muted); font-size: 0.875rem; }
.site-footer .wrap { display: grid; gap: 2rem; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 768px) { .site-footer .wrap { grid-template-columns: 1.5fr repeat(2, 1fr); } }
.site-footer h4 { margin: 0 0 0.75rem; color: var(--text); font-size: 0.875rem; font-weight: 600; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.45rem; }
.site-footer a { color: var(--muted); text-decoration: none; }
.site-footer a:hover { color: var(--text); }
.site-footer .fine { margin-top: 0.75rem; }

/* ---------------------------------------------------------------- Secondary pages */

.page-head { padding-block: clamp(3rem, 7vw, 5rem) clamp(1.5rem, 3vw, 2.5rem); }
.page-head .lead { margin-top: 1.25rem; max-width: 42rem; }
.prose { max-width: 46rem; }
.prose h2 { font-size: clamp(1.4rem, 3vw, 1.75rem); letter-spacing: -0.025em; margin: 3rem 0 1rem; }
.prose h3 { margin: 2rem 0 0.5rem; }
.prose p, .prose li { color: var(--text-2); }
.prose strong { color: var(--text); }
.table-wrap { overflow-x: auto; margin: 1.25rem 0 1.5rem; border: 1px solid var(--border); border-radius: var(--radius); }
table { width: 100%; border-collapse: collapse; font-size: 0.925rem; background: var(--surface); }
th, td { text-align: left; padding: 0.75rem 1rem; border-bottom: 1px solid var(--border); vertical-align: top; }
th { font-weight: 600; color: var(--text); background: var(--bg-2); font-size: 0.85rem; }
tr:last-child td { border-bottom: 0; }
td { color: var(--text-2); }
.steps { counter-reset: step; list-style: none; padding: 0; display: grid; gap: 1rem; }
.steps li { counter-increment: step; display: grid; grid-template-columns: 2rem minmax(0, 1fr); gap: 0.85rem; }
.steps li::before {
  content: counter(step); display: grid; place-items: center; width: 2rem; height: 2rem; border-radius: 50%;
  background: var(--accent-soft); color: var(--accent-ink); font-weight: 650; font-size: 0.9rem;
}
.toc { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1.75rem; }

/* Pipeline diagram on How it works */
.pipeline { display: grid; gap: 0.75rem; grid-template-columns: minmax(0, 1fr); counter-reset: pipe; margin: 1.5rem 0 0; padding: 0; list-style: none; }
@media (min-width: 900px) { .pipeline { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
.pipeline li { counter-increment: pipe; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.1rem; position: relative; }
.pipeline li::before { content: "0" counter(pipe); display: block; font: 600 0.75rem/1 var(--mono); color: var(--accent-ink); margin-bottom: 0.75rem; }
.pipeline h3 { font-size: 1rem; margin-bottom: 0.35rem; }
.pipeline p { margin: 0; font-size: 0.875rem; color: var(--text-2); }

/* Mock field used on How it works to show the three looks */
.looks { display: grid; gap: 1rem; grid-template-columns: minmax(0, 1fr); margin: 1.25rem 0 0; }
@media (min-width: 760px) { .looks { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.look { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.1rem; }
.look .field {
  display: flex; align-items: center; gap: 0.35rem; height: 40px; padding: 0 0.7rem; margin: 0.4rem 0 0.85rem;
  border: 2px solid var(--accent); border-radius: 8px; background: var(--bg); font: 0.95rem/1 var(--mono); overflow: hidden; white-space: nowrap;
}
.look .typed { color: var(--text); }
.look .gh { color: var(--ghost); }
.look .caret { width: 1.5px; height: 1.1em; background: var(--text); }
.look .chipv { margin-left: 0.4rem; padding: 0.1rem 0.45rem; border-radius: 6px; background: var(--accent-soft); color: var(--accent-ink); font-size: 0.8rem; }
.look .flabel { font-size: 0.8rem; color: var(--muted); }
.look p { margin: 0; font-size: 0.875rem; color: var(--text-2); }

/* Use-cases page */
.case { padding-block: clamp(3rem, 6vw, 4.5rem); border-top: 1px solid var(--border); scroll-margin-top: 80px; }
.case:first-of-type { border-top: 0; }

/* ---------------------------------------------------------------- Motion */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .ghost-type .ghost { color: var(--text); }
  .ghost-type .keys { display: none; }
}

/* Chip sub-label: the from → to types of a demo */
.chip .chip-sub { font-size: 0.78rem; font-weight: 500; color: var(--muted); }
.chip[aria-selected="true"] .chip-sub { color: color-mix(in srgb, var(--bg) 70%, transparent); }

/* From anything → into anything */
.matrix { display: grid; gap: 1.25rem; grid-template-columns: minmax(0, 1fr); align-items: center; }
@media (min-width: 900px) { .matrix { grid-template-columns: minmax(0, 1.25fr) auto minmax(0, 1fr); } }
.matrix-col { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 1.5rem; }
.matrix-col h3 { font-size: 0.85rem; font-weight: 600; color: var(--muted); margin-bottom: 1rem; letter-spacing: 0; }
.matrix-items { display: flex; flex-wrap: wrap; gap: 0.5rem; list-style: none; padding: 0; margin: 0; }
.matrix-items li { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.55rem 0.85rem; border-radius: 10px; background: var(--bg-2); border: 1px solid var(--border); font-weight: 500; font-size: 0.95rem; }
.matrix-items li .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.matrix-arrow { display: grid; place-items: center; }
.matrix-arrow span { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 16px; background: var(--accent); color: var(--accent-contrast); box-shadow: var(--shadow-lg); }
.matrix-arrow svg { width: 26px; height: 26px; }
@media (max-width: 899px) { .matrix-arrow svg { transform: rotate(90deg); } }

/* Keycaps inside a page headline */
.h1-kbd { font-family: var(--font); font-size: 0.5em; font-weight: 650; height: 1.5em; min-width: 1.6em; padding: 0 0.35em; border-width: 2px; border-bottom-width: 5px; border-radius: 0.25em; vertical-align: 0.18em; }

