:root {
  --ink: #0f1115;
  --ink-2: #3a414d;
  --ink-3: #4a5260;
  --line: #e1e4e9;
  --line-2: #eef0f3;
  --soft: #f4f5f7;
  --blue: #1f4bff;
  --blue-hover: #1238c9;
  --lime: #d4ff3f;
  --lime-soft: #eef9d0;
  --lime-tint: #f7fbe6;
  --warn-bg: #fff1e0;
  --warn-ink: #8a3b00;
  --ok-ink: #1b5e20;
  --bad-bg: #fde8e8;
  --bad-ink: #9b1c1c;
  --display: "Bricolage Grotesque", "Instrument Sans", system-ui, sans-serif;
  --body: "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --radius: 16px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: #fff; color: var(--ink); font-family: var(--body); font-size: 17px; line-height: 1.55; }
img, svg { display: block; max-width: 100%; }
a { color: var(--blue); }
a:hover { color: var(--blue-hover); }
h1, h2, h3 { margin: 0; line-height: 1.1; }
p { margin: 0; }
code, .mono { font-family: var(--mono); font-size: 0.86em; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; border-radius: 6px; }

.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 10; }
.skip:focus { left: 8px; }
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 760px; }
.stack { display: flex; flex-direction: column; gap: 16px; }
.row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.muted { color: var(--ink-3); }
.small { font-size: 14px; }
.center { text-align: center; }
.hidden { display: none !important; }
[hidden] { display: none !important; }
.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; }

/* Header and footer */
.site-header { border-bottom: 1px solid var(--line); background: #fff; position: sticky; top: 0; z-index: 5; }
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; flex-wrap: wrap; padding-top: 8px; padding-bottom: 8px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-family: var(--display); font-weight: 800; font-size: 21px; letter-spacing: -0.02em; }
.brand:hover { color: var(--ink); }
.brand-light, .brand-light:hover { color: #fff; }
.nav { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.nav a:not(.btn) { color: var(--ink); text-decoration: none; font-weight: 500; font-size: 16px; }
.nav a:not(.btn):hover { color: var(--blue); }
.mnav { display: none; position: relative; }
.mnav summary { list-style: none; cursor: pointer; }
.mnav summary::-webkit-details-marker { display: none; }
.mnav-panel { position: absolute; right: 0; top: 50px; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 8px; display: flex; flex-direction: column; min-width: 210px; box-shadow: 0 12px 32px rgba(15, 17, 21, 0.12); z-index: 6; }
.mnav-panel a { padding: 12px 14px; border-radius: 10px; color: var(--ink); text-decoration: none; font-weight: 500; }
.mnav-panel a:hover { background: var(--soft); }
@media (max-width: 720px) { .nav > a:not(.btn) { display: none; } .mnav { display: block; } .nav { gap: 10px; } }
.site-footer { background: var(--ink); color: #c9cdd4; margin-top: 0; }
.footer-row { display: flex; flex-wrap: wrap; gap: 28px 48px; justify-content: space-between; padding-top: 40px; padding-bottom: 40px; }
.footer-brand { max-width: 420px; display: flex; flex-direction: column; gap: 12px; font-size: 15px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 12px 22px; align-content: flex-start; max-width: 520px; }
.footer-links a { color: #c9cdd4; text-decoration: none; font-size: 15px; }
.footer-links a:hover { color: #fff; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px; border-radius: 999px; font-weight: 600; font-size: 16px; text-decoration: none; border: 1.5px solid transparent; cursor: pointer; transition: background-color 0.15s, color 0.15s, border-color 0.15s; white-space: nowrap; }
.btn-sm { min-height: 42px; padding: 0 16px; font-size: 15px; }
.btn-lg { min-height: 54px; padding: 0 28px; font-size: 17px; }
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-hover); color: #fff; }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #2a2e36; color: #fff; }
.btn-outline { border-color: var(--ink); color: var(--ink); background: #fff; }
.btn-outline:hover { background: var(--soft); color: var(--ink); }
.btn-lime { background: var(--lime); color: var(--ink); }
.btn-lime:hover { background: #c5f02a; color: var(--ink); }
.btn-ghost-light { border-color: #fff; color: #fff; }
.btn-ghost-light:hover { background: rgba(255, 255, 255, 0.1); color: #fff; }
.btn[disabled] { opacity: 0.55; cursor: not-allowed; }

/* Type */
.eyebrow { display: inline-flex; align-self: flex-start; font-family: var(--mono); font-size: 13px; color: var(--ink-3); border: 1px solid #dadde3; border-radius: 999px; padding: 6px 12px; }
.display { font-family: var(--display); font-weight: 800; letter-spacing: -0.03em; }
.h1 { font-family: var(--display); font-weight: 800; font-size: clamp(42px, 6vw, 74px); line-height: 1.02; letter-spacing: -0.03em; }
.h2 { font-family: var(--display); font-weight: 800; font-size: clamp(30px, 4vw, 46px); line-height: 1.08; letter-spacing: -0.02em; }
.h3 { font-size: 20px; font-weight: 600; }
.lead { font-size: 20px; color: var(--ink-2); max-width: 580px; }
[data-ab-hero="B"] .ab-a, [data-ab-hero="A"] .ab-b, html:not([data-ab-hero]) .ab-b { display: none; }

/* Sections */
.section { padding: 88px 0; }
.section-soft { background: var(--soft); }
.section-dark { background: var(--ink); color: #fff; }
.section-head { display: flex; flex-direction: column; gap: 12px; max-width: 720px; margin-bottom: 36px; }
.section-head p { color: var(--ink-2); font-size: 19px; }
.grid-4 { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 20px; }
@media (max-width: 420px) { .grid-2 { grid-template-columns: 1fr; } }
.card { border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; background: #fff; display: flex; flex-direction: column; gap: 10px; }
.card-soft { background: var(--soft); border-color: transparent; }
.card-lime { background: var(--lime-tint); }
.step-num { font-family: var(--mono); font-size: 13px; color: var(--ink-3); }
.card p { color: var(--ink-2); font-size: 16px; }

/* Hero */
.hero { padding: 80px 0 72px; }
.hero-row { display: flex; flex-wrap: wrap; gap: 56px; align-items: center; }
.hero-copy { flex: 1 1 460px; min-width: 0; display: flex; flex-direction: column; gap: 22px; }
.hero-card { flex: 1 1 400px; min-width: 0; max-width: 520px; }
.strip { background: var(--soft); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.strip .wrap { display: flex; flex-wrap: wrap; gap: 10px 28px; justify-content: center; padding-top: 20px; padding-bottom: 20px; font-size: 15px; color: var(--ink-2); }
.strip strong { color: var(--ink); }

/* Proof card */
.proof-card { border: 1px solid #dadde3; border-radius: 20px; background: #fff; box-shadow: 0 1px 2px rgba(15, 17, 21, 0.06), 0 12px 32px rgba(15, 17, 21, 0.08); padding: 24px; display: flex; flex-direction: column; gap: 18px; }
.badge { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: 13px; padding: 6px 12px; border-radius: 999px; white-space: nowrap; }
.badge-lime { background: var(--lime); color: var(--ink); }
.badge-wait { background: var(--soft); color: var(--ink-2); border: 1px solid var(--line); }
.badge-void { background: var(--warn-bg); color: var(--warn-ink); }
.badge-bad { background: var(--bad-bg); color: var(--bad-ink); }
.stat-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.stat { background: var(--soft); border-radius: 12px; padding: 12px 14px; min-width: 0; }
.stat .k { font-size: 13px; color: var(--ink-3); }
.stat .v { font-family: var(--display); font-weight: 600; font-size: 24px; overflow-wrap: anywhere; line-height: 1.2; }
.timeline { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; font-size: 15px; }
.timeline li { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line-2); }
.timeline li:last-child { border-bottom: 0; }
.timeline .t { font-family: var(--mono); font-size: 13px; color: var(--ink-3); white-space: nowrap; }
.timeline-stacked li { flex-direction: column; gap: 2px; }
.timeline-stacked .t { white-space: normal; }
.hash { font-family: var(--mono); font-size: 12px; color: var(--ink-3); background: var(--soft); border-radius: 10px; padding: 10px 12px; overflow-wrap: anywhere; }

/* Forms */
.field { display: flex; flex-direction: column; gap: 6px; }
.field label, .label { font-weight: 600; font-size: 15px; }
.hint { font-size: 14px; color: var(--ink-3); }
.input, .select, .textarea { width: 100%; min-height: 48px; border: 1.5px solid #c9cdd4; border-radius: 12px; padding: 10px 14px; background: #fff; font-size: 16px; }
.textarea { min-height: 220px; font-family: var(--mono); font-size: 14px; line-height: 1.5; resize: vertical; }
.input:focus, .select:focus, .textarea:focus { border-color: var(--blue); outline: none; box-shadow: 0 0 0 3px rgba(31, 75, 255, 0.18); }
.inline-form { display: flex; gap: 8px; flex-wrap: wrap; }
.inline-form .input { flex: 1 1 200px; min-width: 0; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; }
.check input { width: 20px; height: 20px; margin-top: 2px; flex: none; }
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.notice { display: flex; gap: 10px; align-items: flex-start; border-radius: 12px; padding: 14px 16px; font-size: 15px; }
.notice svg { flex: none; margin-top: 3px; }
.notice-ok { background: var(--lime-soft); color: var(--ink); }
.notice-ok svg { color: var(--ok-ink); }
.notice-warn { background: var(--warn-bg); color: var(--ink); }
.notice-warn svg { color: var(--warn-ink); }
.notice-bad { background: var(--bad-bg); color: var(--ink); }
.notice-info { background: var(--soft); color: var(--ink); }
.dropzone:focus-within label.btn { outline: 3px solid var(--blue); outline-offset: 2px; }
.dropzone { border: 1.5px dashed #c9cdd4; border-radius: 12px; padding: 14px; display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; font-size: 15px; }
.preview-line { font-size: 14px; color: var(--ink-2); min-height: 22px; }

/* Tables */
.table-box { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }
table.table { width: 100%; min-width: 620px; border-collapse: collapse; font-size: 16px; }
.table th, .table td { padding: 15px 18px; text-align: left; border-top: 1px solid var(--line); vertical-align: top; }
.table thead th { background: var(--soft); border-top: 0; font-weight: 600; }
.table .us { background: var(--lime-tint); font-weight: 600; }
.table thead .us { background: var(--lime-soft); }

/* Pricing */
.price-card { border: 1px solid var(--line); border-radius: 20px; padding: 28px; background: #fff; display: flex; flex-direction: column; gap: 14px; }
.price-card.featured { border: 2px solid var(--blue); }
.price { font-family: var(--display); font-weight: 800; font-size: 44px; line-height: 1; }
.price-card ul { margin: 0; padding-left: 20px; color: var(--ink-2); display: flex; flex-direction: column; gap: 6px; font-size: 16px; }
.price-card .btn { margin-top: auto; }

/* FAQ */
details.faq { border-bottom: 1px solid var(--line); padding: 6px 0 16px; }
details.faq summary { font-weight: 600; font-size: 19px; cursor: pointer; min-height: 44px; display: flex; align-items: center; list-style: none; }
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after { content: "+"; margin-left: auto; font-size: 24px; color: var(--ink-3); }
details.faq[open] summary::after { content: "\2212"; }
details.faq p { color: var(--ink-2); margin-top: 4px; }

/* Proof page */
.proof-page { padding: 40px 0 72px; }
.proof-layout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 28px; align-items: start; }
@media (max-width: 960px) { .proof-layout { grid-template-columns: 1fr; } }
.proof-head { display: flex; flex-direction: column; gap: 8px; margin-bottom: 20px; }
.proof-head h1 { font-family: var(--display); font-weight: 800; font-size: clamp(30px, 4.4vw, 46px); letter-spacing: -0.02em; line-height: 1.08; overflow-wrap: anywhere; }
.status-banner { display: flex; gap: 14px; align-items: center; border-radius: 16px; padding: 16px 18px; }
.status-banner.ok { background: var(--lime); }
.status-banner.wait { background: var(--soft); border: 1px solid var(--line); }
.status-banner.void { background: var(--warn-bg); }
.status-banner.bad { background: var(--bad-bg); }
.status-banner strong { font-size: 18px; display: block; }
.countdown { font-family: var(--mono); font-size: 15px; }
.winner-list { list-style: none; margin: 0; padding: 0; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.winner-list li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 16px; border-top: 1px solid var(--line-2); }
.winner-list li:first-child { border-top: 0; }
.winner-list .who { font-weight: 600; font-size: 18px; overflow-wrap: anywhere; }
.winner-list .role { font-size: 13px; color: var(--ink-3); white-space: nowrap; }
.panel { border: 1px solid var(--line); border-radius: 16px; padding: 20px; display: flex; flex-direction: column; gap: 14px; background: #fff; }
.panel-soft { background: var(--soft); border-color: transparent; }
.panel h2 { font-size: 18px; font-weight: 600; }
.checks { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.checks li { display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: 10px; padding: 10px 0; border-top: 1px solid var(--line-2); }
.checks li:first-child { border-top: 0; }
.checks .ic { width: 22px; height: 22px; border-radius: 50%; display: flex; align-items: center; justify-content: center; margin-top: 1px; }
.checks .pass .ic { background: var(--lime); color: var(--ink); }
.checks .fail .ic { background: var(--bad-bg); color: var(--bad-ink); }
.checks .pending .ic, .checks .info .ic { background: var(--soft); color: var(--ink-3); }
.checks .lbl { font-weight: 600; font-size: 15px; }
.checks .det { font-size: 14px; color: var(--ink-3); overflow-wrap: anywhere; }
.share-box { border: 2px solid var(--ink); border-radius: 16px; padding: 20px; display: flex; flex-direction: column; gap: 12px; }
.copy-row { display: flex; gap: 8px; }
.copy-row .input { font-family: var(--mono); font-size: 14px; }
.tech dl { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 8px 16px; margin: 0; font-size: 14px; }
.tech dt { color: var(--ink-3); }
.tech dd { margin: 0; font-family: var(--mono); font-size: 12.5px; overflow-wrap: anywhere; }
.downloads { display: flex; flex-wrap: wrap; gap: 8px; }
.downloads a { font-size: 14px; }
.cta-dark { background: var(--ink); color: #fff; border-radius: 16px; padding: 22px; display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.cta-dark p { color: #c9cdd4; font-size: 15px; }

/* Log */
.log-table td, .log-table th { font-size: 14px; }
.log-table .mono { font-size: 12.5px; overflow-wrap: anywhere; }

/* Prose */
.prose { max-width: 760px; display: flex; flex-direction: column; gap: 16px; }
.prose h2 { font-family: var(--display); font-weight: 800; font-size: 30px; letter-spacing: -0.02em; margin-top: 24px; }
.prose h3 { font-size: 20px; font-weight: 600; margin-top: 8px; }
.prose p, .prose li { color: var(--ink-2); }
.prose ul, .prose ol { margin: 0; padding-left: 22px; display: flex; flex-direction: column; gap: 6px; }
.prose pre { background: var(--soft); border-radius: 12px; padding: 14px 16px; overflow-x: auto; font-family: var(--mono); font-size: 13px; line-height: 1.6; margin: 0; }
.page-head { padding-top: 64px; padding-bottom: 24px; display: flex; flex-direction: column; gap: 14px; }
@media (max-width: 720px) { .page-head { padding-top: 40px; } }

.spinner { width: 18px; height: 18px; border: 2.5px solid rgba(255, 255, 255, 0.45); border-top-color: #fff; border-radius: 50%; animation: spin 0.8s linear infinite; }
.spinner.dark { border-color: rgba(15, 17, 21, 0.2); border-top-color: var(--ink); }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .spinner { animation-duration: 2s; } }

.table-box:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }
.related { display: flex; flex-direction: column; gap: 6px; }
.related a { font-weight: 600; }
.parse-controls { display: flex; flex-wrap: wrap; gap: 10px 18px; align-items: center; font-size: 14px; }
.parse-controls .select { width: auto; min-height: 40px; padding: 6px 10px; font-size: 14px; }
.samples { font-family: var(--mono); font-size: 13px; color: var(--ink-2); overflow-wrap: anywhere; }

/* YouTube import */
.import-box { display: flex; flex-direction: column; gap: 10px; border: 1px solid var(--line); border-radius: 14px; padding: 16px; background: var(--soft); }
.import-box[hidden] { display: none !important; }
.yt-options summary { cursor: pointer; font-size: 14px; color: var(--ink-2); }
.yt-options .form-grid { margin-top: 10px; }
.textarea[readonly] { background: var(--soft); color: var(--ink-2); }
.linklike { background: none; border: 0; padding: 0; color: inherit; text-decoration: underline; cursor: pointer; font: inherit; }
.source-line { color: var(--ink-2); }
.source-line a { color: inherit; }
