/* ==========================================================================
   Webel marketing site - shared design system
   Light, editorial, technical. Big type, generous whitespace, the brand
   gradient used as an accent (never as a one-word highlight in a headline).
   One idea per screen; product moments are shown, not described.
   ========================================================================== */

/* Fonts + tokens */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('./fonts/inter.woff2') format('woff2');
}

:root {
  --bg: #ffffff;
  --panel: #f7f8f8;
  --ink: #14161b;
  --muted: #53596a;
  --faint: #9aa1ad;
  --border: #ecedf0;
  --border-strong: #dfe2e6;
  --blue: #056cb5;
  --teal: #287c72;
  --green: #3f8136;
  --grad: linear-gradient(100deg, #056cb5 0%, #287c72 50%, #3f8136 100%);
  --code-bg: #0f1319;
  --code-ink: #e6e9ef;
  --code-muted: #7c8694;
  --code-green: #7ee2a8;
  --code-blue: #7cc4f0;
  --code-red: #ff9c9c;
  --maxw: 1120px;
  --radius: 16px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { overflow-x: clip; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, system-ui, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 28px; }

/* Typography */
h1, h2, h3 { font-weight: 600; letter-spacing: -0.03em; line-height: 1.06; }
h1 { font-size: clamp(40px, 6vw, 68px); }
h2 { font-size: clamp(28px, 4vw, 42px); }
.lead { font-size: clamp(17px, 2vw, 20px); color: var(--muted); }
.kicker {
  font-size: 11.5px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--faint);
}
.grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* Nav */
header.site {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,0.8); backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 9px; font-weight: 600; font-size: 18px; letter-spacing: -0.02em; }
.brand .mark { height: 30px; width: auto; }
.brand .word { height: 23px; width: auto; }
.nav-links { display: flex; align-items: center; gap: 26px; }
.nav-links a { font-size: 14px; color: var(--muted); transition: color .15s; }
.nav-links a:hover { color: var(--ink); }
.nav-cta { display: flex; align-items: center; gap: 18px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; height: 42px; padding: 0 22px;
  border-radius: 999px; font-size: 14px; font-weight: 500; cursor: pointer;
  transition: transform .18s cubic-bezier(.22,.61,.36,1), box-shadow .18s ease, filter .15s, border-color .15s, background .15s;
}
.btn-primary { background: var(--grad); color: #fff; }
.btn-primary:hover { filter: brightness(1.04); box-shadow: 0 10px 26px -12px rgba(40,124,114,.65); transform: translateY(-1px); }
.btn-ghost { border: 1px solid var(--border-strong); color: var(--ink); background: #fff; }
.btn-ghost:hover { border-color: var(--faint); transform: translateY(-1px); }
.btn-lg { height: 50px; padding: 0 28px; font-size: 15.5px; }

/* Hero */
.hero { position: relative; padding: 96px 0 72px; text-align: center; overflow: hidden; }
.hero canvas.graphfield { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.hero .inner { position: relative; z-index: 1; max-width: 760px; margin: 0 auto; }
.hero .hero-mark { display: block; margin: 0 auto; width: 72px; height: auto; }
.hero h1 { margin-top: 18px; }
.hero .lead { margin: 22px auto 0; max-width: 560px; }
.hero .cta-row { display: flex; gap: 12px; justify-content: center; margin-top: 34px; flex-wrap: wrap; }

/* Beat sections - the visual narrative */
.beat { padding: 96px 0; }
.beat .grid { display: grid; grid-template-columns: 2fr 3fr; gap: 40px; align-items: center; }
/* Screenshots are the point of each beat: on very wide screens the media column may
   break OUTWARD past the page margin. The break is ONLY ever on the media box's outer
   (right) edge: the copy column always sits to its left across the 40px grid gap, and a
   negative margin on that inner side would eat the gap and overlap the copy (the bug
   behind PR #5060). Applied only when the centered wrap has >= 64px of page margin on
   that side (viewport >= 1256px); .wide single-column shots stay inside the wrap. */
@media (min-width: 1256px) {
  .beat .grid:not(.wide) .beat-media { margin-right: -64px; }
}
.beat .grid.flip .beat-media { order: 2; }
.beat .grid.flip .beat-copy { order: 1; }
/* Single-shot beats (the dedicated feature pages): the shot IS the page content,
   so give it the full wrap width instead of the 50/50 beat box. */
.beat .grid.wide { grid-template-columns: 1fr; gap: 32px; }
.beat .grid.wide .beat-copy { max-width: 640px; }
.beat .grid.wide .beat-media { margin: 0; }
.beat-copy .kicker { display: block; margin-bottom: 14px; }
.beat-copy h2 { margin-bottom: 16px; }
.beat-copy p { color: var(--muted); font-size: 16px; max-width: 44ch; }

/* Real product screenshots — framed so dark app shots sit cleanly on the light page */
.shot-frame { border: 1px solid var(--border); border-radius: var(--radius); background: var(--panel); padding: 10px; box-shadow: 0 30px 70px -45px rgba(20,30,45,.45); }
.shot-frame img { display: block; width: 100%; height: auto; border-radius: calc(var(--radius) - 4px); }

/* Product mockups - the "show, don't tell" layer */
.mock { border: 1px solid var(--border); border-radius: var(--radius); background: #fff; box-shadow: 0 30px 70px -45px rgba(20,30,45,.45); overflow: hidden; }
.mock .mock-top { display: flex; align-items: center; gap: 7px; padding: 12px 16px; border-bottom: 1px solid var(--border); background: var(--panel); }
.mock .mock-top .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--border-strong); }
.mock .mock-top .title { margin-left: 8px; font-size: 12px; color: var(--faint); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }

/* Chat mockup */
.chat { padding: 18px; display: grid; gap: 12px; }
.chat .msg { max-width: 86%; padding: 11px 14px; border-radius: 14px; font-size: 13.5px; line-height: 1.5; }
.chat .msg.user { justify-self: end; background: var(--grad); color: #fff; border-bottom-right-radius: 4px; }
.chat .msg.agent { justify-self: start; background: var(--panel); border: 1px solid var(--border); border-bottom-left-radius: 4px; color: var(--ink); }
.chat .msg.agent .who { display: block; font-size: 11px; color: var(--faint); margin-bottom: 3px; font-weight: 600; }
.chat .working { justify-self: start; display: inline-flex; align-items: center; gap: 8px; font-size: 12px; color: var(--faint); padding: 4px 2px; }
.chat .working .pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--teal); animation: pulse 1.2s ease-in-out infinite; }

/* Code mockup */
.code { background: var(--code-bg); color: var(--code-ink); padding: 18px 20px; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12.5px; line-height: 1.7; overflow: hidden; }
.code .ln { display: flex; }
.code .ln .n { width: 26px; flex: none; color: var(--code-muted); text-align: right; padding-right: 14px; user-select: none; }
.code .add { color: var(--code-green); }
.code .del { color: var(--code-red); text-decoration: line-through; opacity: .7; }
.code .k { color: var(--code-blue); }
.code .c { color: var(--code-muted); }

/* Ship checklist + receipt */
.ship { padding: 22px; }
.ship .steps { display: grid; gap: 10px; }
.ship .step { display: flex; align-items: center; gap: 12px; font-size: 14px; }
.ship .step .tick { flex: none; width: 22px; height: 22px; border-radius: 7px; background: rgba(40,124,114,.12); color: var(--teal); display: inline-flex; align-items: center; justify-content: center; font-size: 12px; }
.ship .step .tick svg { width: 12px; height: 12px; }
.ship .step .lbl { font-weight: 500; }
.ship .step .note { margin-left: auto; font-size: 12px; color: var(--faint); }
.receipt { margin-top: 18px; border: 1px solid var(--border); border-radius: 12px; background: var(--panel); padding: 16px; }
.receipt .r-top { display: flex; align-items: center; justify-content: space-between; font-size: 12px; color: var(--muted); }
.receipt .r-pill { font-size: 10px; font-weight: 600; color: var(--green); background: rgba(63,129,54,.12); border-radius: 999px; padding: 3px 9px; }
.receipt .r-amt { margin-top: 8px; font-size: 26px; font-weight: 600; letter-spacing: -0.02em; }
.receipt .r-rows { margin-top: 8px; }
.receipt .r-rows > div { display: flex; justify-content: space-between; padding: 7px 0; font-size: 12.5px; border-bottom: 1px solid var(--border); }
.receipt .r-rows > div:last-child { border-bottom: 0; }
.receipt .r-rows .k { color: var(--muted); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 11.5px; }
.receipt .r-rows .k em { color: var(--faint); font-style: normal; font-size: 10.5px; }
.receipt .r-rows .ok { color: var(--green); font-weight: 600; }

/* Model routing mockup */
.routing { padding: 20px; }
.routing .route-bar { display: flex; align-items: center; gap: 10px; font-size: 12.5px; color: var(--muted); margin-bottom: 14px; }
.routing .route-bar .ask { background: var(--panel); border: 1px solid var(--border); border-radius: 999px; padding: 5px 12px; }
.routing .route-bar .arrow { color: var(--faint); }
.routing .models { display: grid; gap: 8px; }
.routing .model { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid var(--border); border-radius: 10px; font-size: 13px; }
.routing .model .name { font-weight: 500; }
.routing .model .tag { margin-left: auto; font-size: 10px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--faint); border: 1px solid var(--border-strong); border-radius: 999px; padding: 2px 8px; }
.routing .model.best { border-color: var(--teal); box-shadow: 0 0 0 3px rgba(40,124,114,.1); }
.routing .model.best .name::after { content: "routed"; margin-left: 8px; font-size: 10px; font-weight: 600; color: var(--teal); }

/* Cards / grids — minmax(0,1fr), not bare 1fr: bare 1fr has an auto minimum, so
   a white-space:pre snippet inside a card forces the track wider and blows the
   grid out past its container (the /developers routing cards did exactly that). */
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.card { border: 1px solid var(--border); border-radius: var(--radius); padding: 26px; background: #fff; transition: transform .25s cubic-bezier(.22,.61,.36,1), box-shadow .25s ease, border-color .25s ease; }
.card:hover { transform: translateY(-3px); border-color: var(--border-strong); box-shadow: 0 18px 44px -26px rgba(20,30,45,.35); }
.card .icon { width: 34px; height: 34px; border-radius: 9px; background: rgba(40,124,114,.1); display: inline-flex; align-items: center; justify-content: center; margin-bottom: 16px; font-size: 16px; }
.card h3 { font-size: 17px; margin-bottom: 8px; }
.card p { font-size: 14px; color: var(--muted); }
.card .card-link { display: inline-block; margin-top: 14px; font-size: 13.5px; font-weight: 500; color: var(--blue); }
.card img.founder { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; display: block; margin-bottom: 16px; }
.learn { display: inline-block; margin-top: 14px; font-size: 14px; font-weight: 500; color: var(--blue); }
.learn:hover { text-decoration: underline; }

/* Section head */
.section-head { max-width: 680px; margin: 0 auto 56px; text-align: center; }
.section-head .kicker { display: block; margin-bottom: 14px; }
.section-head h2 { margin-bottom: 16px; }
.section-head p { color: var(--muted); font-size: 17px; }

/* Proof strip */
.proof { background: var(--panel); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); padding: 72px 0; text-align: center; }
.proof h2 { max-width: 640px; margin: 0 auto 24px; }
.proof p { color: var(--muted); max-width: 560px; margin: 0 auto; font-size: 16px; }

/* Pricing */
.pricing-hero { text-align: center; padding: 72px 0 24px; }
.pricing-hero h1 { margin-top: 18px; }
.pricing-hero .lead { margin: 20px auto 0; max-width: 560px; }
.price-cards { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; max-width: 760px; margin: 48px auto 0; }
.price-card { border: 1px solid var(--border); border-radius: var(--radius); padding: 30px; background: #fff; }
.price-card.highlight { border-color: var(--teal); box-shadow: 0 0 0 3px rgba(40,124,114,.1); }
.price-card .pt { font-size: 13px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--faint); }
.price-card .pa { font-size: 40px; font-weight: 600; letter-spacing: -0.03em; margin-top: 12px; }
.price-card .pa .unit { font-size: 16px; color: var(--muted); font-weight: 400; }
.price-card .pd { color: var(--muted); font-size: 14px; margin-top: 10px; }
.price-card ul { list-style: none; margin-top: 20px; display: grid; gap: 9px; }
.price-card li { display: flex; gap: 9px; font-size: 14px; }
.price-card li::before { content: ""; flex: none; width: 18px; height: 18px; margin-top: 1px; border-radius: 6px; background: rgba(40,124,114,.12); }

/* Code snippets (developers) */
.snippet { background: var(--code-bg); color: var(--code-ink); border-radius: 12px; padding: 18px 22px; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 13px; line-height: 1.7; overflow-x: auto; white-space: pre; }
.snippet-wrap { position: relative; }
.snippet-wrap .snippet { padding-top: 40px; }
.copy-btn { position: absolute; top: 10px; right: 10px; z-index: 1; display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border: 1px solid rgba(255,255,255,.22); border-radius: 7px; background: rgba(255,255,255,.08); color: rgba(255,255,255,.85); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 11.5px; line-height: 1.4; cursor: pointer; opacity: .75; transition: opacity .15s, background .15s; }
.copy-btn:hover { opacity: 1; background: rgba(255,255,255,.14); }
.copy-btn:focus-visible { outline: 2px solid var(--teal); outline-offset: 1px; opacity: 1; }
.copy-btn.copied { opacity: 1; color: #7ee2a8; }
@media (prefers-reduced-motion: reduce) { .copy-btn { transition: none; } }
.snippet-label { display: inline-block; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 11.5px; color: var(--faint); letter-spacing: .02em; margin: 0 0 6px; }
.snippet .cm { color: var(--code-muted); }
.snippet .k { color: var(--code-blue); }
.snippet .s { color: var(--code-green); }

/* Comparison table */
.compare { width: 100%; border-collapse: collapse; font-size: 14px; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.compare th, .compare td { text-align: left; padding: 15px 18px; border-bottom: 1px solid var(--border); vertical-align: top; }
.compare tr:last-child th, .compare tr:last-child td { border-bottom: 0; }
.compare th { font-size: 11.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--faint); font-weight: 600; }
.compare th.webel { color: var(--teal); }
.compare th.alt { color: var(--muted); }
.compare td.dim { color: var(--muted); font-weight: 500; width: 26%; }
.compare td { color: var(--ink); line-height: 1.5; }
.compare td .yes { color: var(--green); font-weight: 600; }
.compare td .no { color: var(--faint); }
.compare-wrap { max-width: 760px; margin: 0 auto; }

/* FAQ */
.faq-list { max-width: 720px; margin: 0 auto; display: grid; gap: 12px; }
.faq-item { border: 1px solid var(--border); border-radius: 14px; background: #fff; overflow: hidden; }
.faq-item summary { list-style: none; cursor: pointer; padding: 18px 22px; font-size: 16px; font-weight: 600; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: ""; flex: none; width: 9px; height: 9px; border-right: 2px solid var(--faint); border-bottom: 2px solid var(--faint); transform: rotate(45deg); transition: transform .2s ease; margin-top: -3px; }
.faq-item[open] summary::after { transform: rotate(-135deg); margin-top: 3px; }
.faq-item summary:hover { color: var(--teal); }

/* Support ticket form (webel.ai/support). Inputs follow the card system:
   white field, 1px border, 12px radius, focus ring in --blue. */
.support-form { max-width: 760px; margin: 0 auto; }
.fgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.fgrid .full { grid-column: 1 / -1; }
.fl { display: block; font-size: 13px; font-weight: 600; margin-bottom: 7px; }
.fl .opt { font-weight: 500; color: var(--faint); }
.support-form input[type="text"], .support-form input[type="email"], .support-form input[type="tel"], .support-form select, .support-form textarea {
  width: 100%; border: 1px solid var(--border-strong); border-radius: 12px; background: #fff;
  padding: 11px 14px; font: inherit; font-size: 14.5px; color: var(--ink); transition: border-color .15s, box-shadow .15s;
}
.support-form textarea { min-height: 140px; resize: vertical; line-height: 1.5; }
.support-form input:focus, .support-form select:focus, .support-form textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(5,108,181,.12); }
.support-form input::placeholder, .support-form textarea::placeholder { color: var(--faint); }
.support-form input[type="file"] { font-size: 13.5px; color: var(--muted); }
.nav-cta .nav-sales { margin-right: 18px; font-size: 14px; font-weight: 500; color: var(--ink); }
.nav-cta .nav-sales:hover { color: var(--blue); }
.seg-row { display: flex; gap: 10px; flex-wrap: wrap; margin: 0 auto 26px; max-width: 760px; }
.form-note { font-size: 13.5px; color: var(--muted); }
.cta-band .cta-alt { margin-top: 22px; }
.cta-band .cta-alt a { color: var(--blue); }
.cta-band .cta-alt a:hover { text-decoration: underline; }
.sev-cell { grid-column: 1 / -1; }
.sev-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.sev { display: block; border: 1px solid var(--border-strong); border-radius: 12px; padding: 13px 14px; cursor: pointer; background: #fff; transition: border-color .15s, box-shadow .15s, background .15s; }
.sev input { position: absolute; opacity: 0; pointer-events: none; }
.sev .sev-t { display: inline-block; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; font-weight: 700; letter-spacing: .04em; color: var(--muted); margin-bottom: 4px; }
.sev .sev-d { display: block; font-size: 13px; line-height: 1.45; color: var(--muted); }
.sev:hover { border-color: var(--faint); }
.sev:has(input:checked) { border-color: var(--teal); background: rgba(40,124,114,.06); box-shadow: 0 0 0 3px rgba(40,124,114,.1); }
.sev:has(input:checked) .sev-t { color: var(--teal); }
.sev:has(input:focus-visible) { outline: 2px solid var(--blue); outline-offset: 3px; }
.form-err { margin-top: 16px; font-size: 14px; color: #b3391f; }
.submit-row { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin-top: 22px; }
.alt-line { font-size: 13.5px; color: var(--muted); }
.fhint { margin-top: 8px; font-size: 12.5px; line-height: 1.5; color: var(--faint); }
.ack { max-width: 760px; margin: 36px auto 0; border: 1px solid var(--border-strong); border-radius: var(--radius); background: var(--panel); padding: 26px 28px; }
.ack h3 { font-size: 18px; margin-bottom: 8px; }
.ack .ref { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; color: var(--teal); }
.ack p { font-size: 14.5px; color: var(--muted); }
.ack .snippet { margin-top: 16px; white-space: pre-wrap; }
.ack-row { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 16px; }
.ack-row .fhint { margin: 0; flex: 1 1 260px; }
.wrap-narrow { max-width: 760px; margin: 0 auto; }
.wrap-narrow .fhint { margin-top: 14px; }
@media (max-width: 860px) {
  .fgrid { grid-template-columns: 1fr; }
  .sev-row { grid-template-columns: 1fr; }
  .submit-row .btn { width: 100%; }
}
.faq-a { padding: 0 22px 20px; }
.faq-a p { font-size: 15px; color: var(--muted); line-height: 1.65; max-width: 64ch; }

/* CTA band */
.cta-band { text-align: center; padding: 96px 0; }
.cta-band h2 { max-width: 640px; margin: 0 auto; }
.cta-band p { margin: 18px auto 0; max-width: 520px; color: var(--muted); font-size: 17px; }
.cta-band .cta-row { display: flex; gap: 12px; justify-content: center; margin-top: 30px; flex-wrap: wrap; }

/* Footer */
footer.site { border-top: 1px solid var(--border); padding: 40px 0 48px; }
.foot-top { display: flex; align-items: flex-start; justify-content: space-between; flex-wrap: wrap; gap: 24px; }
.foot-brand { display: inline-flex; align-items: center; font-weight: 600; font-size: 16px; }
.foot-brand .foot-logo { height: 64px; width: auto; }
.foot-links { display: flex; gap: 48px; flex-wrap: wrap; }
.foot-col { display: grid; gap: 10px; }
.foot-col .fc-h { font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--faint); margin-bottom: 4px; }
.foot-col a { font-size: 14px; color: var(--muted); transition: color .15s; }
.foot-col a:hover { color: var(--ink); }
.foot-bottom { margin-top: 36px; padding-top: 20px; border-top: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: 12.5px; color: var(--faint); }

/* Motion - reveal on scroll, gated by reduced-motion */
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s cubic-bezier(.22,.61,.36,1); }
.reveal.in { opacity: 1; transform: none; }
.hero h1 { animation: rise .7s cubic-bezier(.22,.61,.36,1) both; }
.hero .lead { animation: rise .7s cubic-bezier(.22,.61,.36,1) .08s both; }
.hero .cta-row { animation: rise .7s cubic-bezier(.22,.61,.36,1) .16s both; }

a:focus-visible, .btn:focus-visible, summary:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 8px; }

/* Responsive */
@media (max-width: 860px) {
  .beat .grid { grid-template-columns: 1fr; gap: 32px; }
  .beat .grid.flip .beat-media { order: 0; }
  .beat .grid.flip .beat-copy { order: 0; }
  .cards { grid-template-columns: 1fr; }
  .price-cards { grid-template-columns: 1fr; }
  .nav-links .hide-sm { display: none; }
  .hero { padding: 64px 0 56px; }
  .beat { padding: 64px 0; }
}

@media (prefers-reduced-motion: reduce) {
  .hero h1, .hero .lead, .hero .cta-row { animation: none !important; }
  .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
  .card, .btn { transition: none !important; }
  .card:hover, .btn:hover { transform: none !important; }
  .chat .working .pulse { animation: none !important; }
  * { scroll-behavior: auto !important; }
}

/* ==========================================================================
   Developer docs (/docs) - shared layout across the docs pages
   Same tokens, quieter chrome: sticky sidebar, long-form article, tables
   and callouts tuned for scanning while implementing.
   ========================================================================== */
.docs-shell { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 56px; padding: 36px 0 88px; }
.docs-nav { position: sticky; top: 28px; align-self: start; display: grid; gap: 22px; font-size: 14px; }
.docs-nav .dn-h { font-size: 11.5px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--faint); margin-bottom: 6px; }
.docs-nav a { display: block; padding: 3px 0; color: var(--muted); transition: color .15s; }
.docs-nav a:hover { color: var(--ink); }
.docs-nav a.on { color: var(--teal); font-weight: 600; }
.docs-main { min-width: 0; }
.docs-hero { text-align: left; padding: 44px 0 6px; }
.docs-hero .lead { margin: 14px 0 0; max-width: 62ch; }
.doc-sec { padding: 30px 0 8px; }
.doc-sec h2 { scroll-margin-top: 20px; }
.doc-sec > p { color: var(--muted); font-size: 15.5px; margin-top: 12px; max-width: 72ch; }
.doc-sec ul, .doc-sec ol { margin-top: 12px; padding-left: 22px; display: grid; gap: 7px; color: var(--muted); font-size: 15px; }
.doc-sec ul { list-style: disc; }
.doc-sec ol { list-style: decimal; }
.doc-sec :not(pre) > code, .docs-hero :not(pre) > code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .85em; background: var(--panel); border: 1px solid var(--border); border-radius: 6px; padding: 1px 5px; }
.doc-sec .snippet, .docs-hero .snippet { margin-top: 14px; font-size: 12.5px; }
.snippet { max-width: 100%; }
@media (max-width: 860px) {
  .snippet { white-space: pre; overflow-x: auto; max-width: calc(100vw - 56px); }
  .doc-sec .tbl-scroll .params td:first-child { white-space: normal; }
}
.endpoint { display: flex; align-items: center; gap: 10px; margin-top: 16px; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 13.5px; flex-wrap: wrap; }
.endpoint .method { flex: none; background: rgba(40,124,114,.12); color: var(--teal); font-weight: 700; font-size: 11px; letter-spacing: .05em; border-radius: 6px; padding: 3px 8px; }
.tbl-scroll { overflow-x: auto; margin-top: 16px; max-width: 100%; }
@media (max-width: 860px) {
  .tbl-scroll { max-width: calc(100vw - 56px); }
}
.params { width: 100%; border-collapse: collapse; font-size: 14px; background: #fff; border: 1px solid var(--border); border-radius: 12px; overflow: hidden; }
.params th, .params td { text-align: left; padding: 11px 14px; border-bottom: 1px solid var(--border); vertical-align: top; line-height: 1.55; }
.params tr:last-child td { border-bottom: 0; }
.params th { font-size: 11.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--faint); font-weight: 600; background: var(--panel); }
.params td:first-child { white-space: nowrap; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12.5px; }
.params td:first-child code { border: 0; background: none; padding: 0; font-size: inherit; }
.params .req { color: #b3391f; font-size: 11px; font-weight: 600; }
.params .opt { color: var(--faint); font-size: 11px; font-weight: 500; }
.note { display: flex; gap: 10px; align-items: flex-start; border: 1px solid var(--border-strong); background: var(--panel); border-radius: 12px; padding: 14px 16px; margin-top: 16px; font-size: 14px; color: var(--muted); }
.note b, .note strong { color: var(--ink); }
.doc-next { display: flex; justify-content: space-between; gap: 16px; margin-top: 44px; padding-top: 22px; border-top: 1px solid var(--border); font-size: 14px; }
.doc-next a { color: var(--blue); font-weight: 500; }
.doc-next a:hover { text-decoration: underline; }
@media (max-width: 900px) {
  .docs-shell { grid-template-columns: 1fr; gap: 26px; padding-top: 20px; }
  .docs-nav { position: static; }
}

/* ==========================================================================
   Platform status (/status) - the live status page. The page is static and
   hosted separately from the platform, so it renders even when the platform
   is down. State words come from /statusz: operational / degraded / outage.
   ========================================================================== */
.status-beat { padding-top: 40px; }
.status-banner {
  display: flex; align-items: center; gap: 18px;
  border: 1px solid var(--border); border-radius: var(--radius);
  background: var(--panel); padding: 22px 24px;
}
.st-dot { flex: none; width: 14px; height: 14px; border-radius: 50%; background: var(--faint); }
.st-head { font-size: 19px; font-weight: 600; letter-spacing: -0.01em; }
.st-sub { color: var(--muted); font-size: 14px; margin-top: 2px; }
.st-checked { margin-left: auto; flex: none; color: var(--muted); font-size: 12.5px; }
.status-banner[data-state="operational"] { border-color: rgba(63,129,54,.35); background: rgba(63,129,54,.06); }
.status-banner[data-state="operational"] .st-dot { background: var(--green); }
.status-banner[data-state="degraded"] { border-color: rgba(181,98,9,.4); background: rgba(181,98,9,.07); }
.status-banner[data-state="degraded"] .st-dot { background: #b56209; }
.status-banner[data-state="outage"] { border-color: rgba(179,57,31,.4); background: rgba(179,57,31,.07); }
.status-banner[data-state="outage"] .st-dot { background: #b3391f; }
.status-banner[data-state="feed_error"] { border-color: var(--border-strong); }
.status-banner[data-state="feed_error"] .st-dot { background: var(--faint); }

.status-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 40px; margin-top: 44px; align-items: start; }
.st-h2 { font-size: 15px; font-weight: 600; letter-spacing: -0.01em; margin: 34px 0 14px; }
.st-h2:first-child { margin-top: 0; }
.status-comps { display: grid; gap: 10px; }
.st-comp {
  display: flex; align-items: center; gap: 14px;
  border: 1px solid var(--border); border-radius: 12px; background: #fff; padding: 14px 16px;
}
.st-cinfo { display: grid; gap: 1px; min-width: 0; }
.st-cname { font-weight: 600; font-size: 15px; }
.st-cdetail { color: var(--muted); font-size: 13px; }
.st-state { margin-left: auto; flex: none; font-size: 13px; font-weight: 600; color: var(--faint); }
.st-comp[data-state="operational"] .st-state { color: var(--green); }
.st-comp[data-state="degraded"] .st-state { color: #b56209; }
.st-comp[data-state="outage"] .st-state { color: #b3391f; }
.st-comp::before { content: ''; flex: none; width: 9px; height: 9px; border-radius: 50%; background: var(--faint); }
.st-comp[data-state="operational"]::before { background: var(--green); }
.st-comp[data-state="degraded"]::before { background: #b56209; }
.st-comp[data-state="outage"]::before { background: #b3391f; }

.status-history { border: 1px solid var(--border); border-radius: 12px; background: #fff; padding: 6px 16px; }
.st-hist-item { display: flex; gap: 12px; padding: 12px 0; }
.st-hist-item + .st-hist-item { border-top: 1px solid var(--border); }
.st-hist-dot { flex: none; width: 9px; height: 9px; border-radius: 50%; background: var(--green); margin-top: 6px; }
.st-hist-title { font-weight: 600; font-size: 14.5px; }
.st-hist-sub { color: var(--muted); font-size: 13px; margin-top: 2px; }
.st-hist-note { color: var(--faint); font-size: 12.5px; margin-top: 12px; max-width: 62ch; }

.status-side { display: grid; gap: 14px; }
.st-side-card { border: 1px solid var(--border); border-radius: 12px; background: var(--panel); padding: 18px 20px; }
.st-side-h { font-size: 11.5px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--faint); margin-bottom: 8px; }
.st-side-card p { color: var(--muted); font-size: 13.5px; }
.st-side-card p + .st-btn { margin-top: 12px; }
.st-side-card p + .st-link { margin-top: 10px; }
.st-btn { width: 100%; height: 38px; font-size: 13.5px; }
.st-link { display: inline-block; color: var(--blue); font-size: 13.5px; font-weight: 500; }
.st-link:hover { text-decoration: underline; }
.st-build { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; }

@media (max-width: 900px) {
  .status-grid { grid-template-columns: 1fr; gap: 28px; }
  .st-checked { display: none; }
}

.st-build { white-space: nowrap; font-size: 11.5px; }
