/* ==========================================================================
   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 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: 1fr 1fr; gap: 56px; align-items: center; }
.beat .grid.flip .beat-media { order: 2; }
.beat .grid.flip .beat-copy { order: 1; }
.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; }

/* 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 */
.cards { display: grid; grid-template-columns: repeat(3, 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); }
.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: 1fr 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-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); }
.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; gap: 9px; font-weight: 600; font-size: 16px; }
.foot-brand .mark { height: 26px; width: auto; }
.foot-brand .word { height: 20px; 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; }
}
