/* ============================================================
   BELA65 Design System — Marketing / Product-page components
   Inherits ALL tokens from styles.css (:root). Do not redefine tokens.
   Premium SaaS landing pages. Apple/Stripe/Linear/Vercel target.
   ============================================================ */

/* extra tokens layered on the frozen palette */
:root {
  --container: 1120px;
  --radius-lg: 18px;
  --grad: linear-gradient(135deg, #6366f1 0%, #4f46e5 55%, #7c3aed 100%);
  --grad-soft: radial-gradient(1200px 500px at 50% -10%, color-mix(in srgb, var(--accent) 16%, transparent), transparent 70%);
  --ease: cubic-bezier(.16,1,.3,1);
}
[data-theme="dark"] { --grad-soft: radial-gradient(1200px 520px at 50% -12%, color-mix(in srgb, var(--accent) 22%, transparent), transparent 72%); }

.mkt body, body.mkt { background: var(--bg); }
.container { max-width: var(--container); margin: 0 auto; padding: 0 28px; }
.narrow { max-width: 760px; margin-left: auto; margin-right: auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px; cursor: pointer;
  font: inherit; font-size: 15px; font-weight: 600; line-height: 1;
  padding: 13px 22px; border-radius: 12px; border: 1px solid transparent;
  transition: transform .18s var(--ease), box-shadow .18s var(--ease), background .18s, border-color .18s, color .18s;
  white-space: nowrap; text-decoration: none;
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--grad); color: #fff; box-shadow: 0 6px 20px color-mix(in srgb, var(--accent) 32%, transparent); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 30px color-mix(in srgb, var(--accent) 42%, transparent); }
.btn-ghost { background: var(--bg-elev); color: var(--text); border-color: var(--border-strong); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent-text); transform: translateY(-1px); }
.btn-lg { padding: 15px 28px; font-size: 16px; }
.btn svg { width: 17px; height: 17px; }

/* ---------- Marketing header ---------- */
.mkt-header {
  position: sticky; top: 0; z-index: 60;
  display: flex; align-items: center; gap: 20px; height: 64px;
  padding: 0 28px; border-bottom: 1px solid var(--border);
  background: color-mix(in srgb, var(--bg) 80%, transparent);
  backdrop-filter: saturate(180%) blur(14px);
}
.mkt-header .brand { display: flex; align-items: center; gap: 10px; font-weight: 650; letter-spacing: -.01em; color: var(--text); }
.mkt-header .brand .brand-sub { color: var(--text-muted); font-weight: 500; }
.mkt-nav { display: flex; gap: 4px; margin-left: 12px; }
.mkt-nav a { padding: 8px 12px; border-radius: 8px; font-size: 14.5px; font-weight: 500; color: var(--text-soft); }
.mkt-nav a:hover { background: var(--bg-subtle); color: var(--text); text-decoration: none; }
.mkt-header .spacer { flex: 1; }
.mkt-header .header-cta { display: flex; align-items: center; gap: 10px; }
.mkt-menu-btn { display: none; }
.mkt-mobilenav { display: none; }

/* ---------- Sections ---------- */
.section { padding: 92px 0; position: relative; }
.section.tight { padding: 64px 0; }
.section.alt { background: var(--bg-subtle); }
.section-head { max-width: 720px; margin: 0 auto 46px; text-align: center; }
.section-head.left { text-align: left; margin-left: 0; }
.eyebrow { display: inline-block; font-size: 12.5px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--accent-text); margin-bottom: 14px; }
.section-head h2 { font-size: clamp(28px, 4vw, 40px); line-height: 1.12; letter-spacing: -.022em; font-weight: 720; margin: 0 0 14px; }
.section-head p { font-size: 18px; color: var(--text-soft); margin: 0; }
.section-body { font-size: 17px; color: var(--text-soft); }
.section-body p { margin: 0 0 16px; }
.section-body strong { color: var(--text); font-weight: 640; }

/* ---------- Hero ---------- */
.hero-mkt { position: relative; padding: 104px 0 84px; text-align: center; overflow: hidden; }
.hero-mkt::before { content: ""; position: absolute; inset: 0; background: var(--grad-soft); pointer-events: none; }
.hero-mkt .container { position: relative; }
.hero-mkt .eyebrow { font-size: 13px; }
.hero-mkt h1 { font-size: clamp(38px, 6.2vw, 66px); line-height: 1.05; letter-spacing: -.03em; font-weight: 760; margin: 14px auto 20px; max-width: 15ch; }
.hero-mkt .subhead { font-size: clamp(18px, 2.2vw, 22px); line-height: 1.5; color: var(--text-soft); max-width: 640px; margin: 0 auto 30px; }
.hero-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.hero-note { margin-top: 18px; font-size: 13.5px; color: var(--text-muted); }
.hero-visual { margin: 56px auto 0; max-width: 960px; }

/* ---------- Feature / problem / benefit grid ---------- */
.feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 18px; }
.feature-grid.cols-2 { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.feature {
  padding: 26px; border: 1px solid var(--border); border-radius: var(--radius-lg);
  background: var(--bg-elev); box-shadow: var(--shadow-sm);
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), border-color .2s;
}
.feature:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--border-strong); }
.feature .f-ico { width: 46px; height: 46px; border-radius: 12px; background: var(--accent-soft); color: var(--accent-text); display: flex; align-items: center; justify-content: center; margin-bottom: 16px; }
.feature .f-ico svg { width: 23px; height: 23px; }
.feature h3 { margin: 0 0 7px; font-size: 18px; font-weight: 660; letter-spacing: -.01em; }
.feature p { margin: 0; color: var(--text-muted); font-size: 15px; line-height: 1.6; }

/* ---------- Benefits (check list) ---------- */
.benefits { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 14px 28px; }
.benefit { display: flex; gap: 13px; align-items: flex-start; padding: 6px 0; }
.benefit .chk { flex: none; width: 26px; height: 26px; border-radius: 50%; background: var(--ok-bg); color: var(--ok); display: flex; align-items: center; justify-content: center; margin-top: 2px; }
.benefit .chk svg { width: 15px; height: 15px; }
.benefit b { color: var(--text); font-weight: 640; }
.benefit span.d { color: var(--text-muted); }

/* ---------- Steps (how it works) ---------- */
.steps { counter-reset: step; display: grid; gap: 18px; }
.steps.grid { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.step {
  position: relative; padding: 26px 26px 26px 26px; border: 1px solid var(--border);
  border-radius: var(--radius-lg); background: var(--bg-elev); box-shadow: var(--shadow-sm);
}
.step::before {
  counter-increment: step; content: counter(step, decimal-leading-zero);
  font-family: var(--font-mono); font-size: 13px; font-weight: 700; color: var(--accent-text);
  background: var(--accent-soft); border-radius: 8px; padding: 4px 9px; display: inline-block; margin-bottom: 14px;
}
.step h3 { margin: 0 0 6px; font-size: 17px; font-weight: 640; }
.step p { margin: 0; color: var(--text-muted); font-size: 15px; }

/* ---------- Engineering Pipeline (signature graphic) ---------- */
.pipeline { display: grid; gap: 16px; }
.pl-groups { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.pl-group { border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--bg-elev); padding: 16px; box-shadow: var(--shadow-sm); position: relative; }
.pl-group h4 { margin: 0 0 3px; font-size: 14px; font-weight: 700; letter-spacing: -.01em; }
.pl-group .pl-sub { font-size: 12px; color: var(--text-muted); margin-bottom: 12px; display: block; }
.pl-stage { display: flex; align-items: center; gap: 9px; padding: 8px 0; font-size: 13.5px; color: var(--text-soft); border-top: 1px dashed var(--border); }
.pl-stage:first-of-type { border-top: none; }
.pl-stage .pl-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--grad); flex: none; }
.pl-group .pl-num { position: absolute; top: 14px; right: 14px; font-family: var(--font-mono); font-size: 11px; color: var(--text-muted); }
.pl-legend { text-align: center; color: var(--text-muted); font-size: 14px; margin-top: 6px; }

/* ---------- Engineering Passport card ---------- */
.passport-wrap { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; }
.passport-copy h2 { font-size: clamp(26px, 3.4vw, 36px); letter-spacing: -.02em; margin: 0 0 14px; }
.passport-copy p { font-size: 17px; color: var(--text-soft); }
.passport-card {
  border-radius: var(--radius-lg); padding: 28px; color: #fff; background: var(--grad);
  box-shadow: 0 24px 60px color-mix(in srgb, var(--accent) 34%, transparent); position: relative; overflow: hidden;
}
.passport-card::after { content: ""; position: absolute; inset: 0; background: radial-gradient(400px 200px at 80% 0%, rgba(255,255,255,.22), transparent 60%); }
.passport-card .pp-top { display: flex; justify-content: space-between; align-items: center; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; opacity: .85; position: relative; }
.passport-card h3 { margin: 16px 0 18px; font-size: 24px; font-weight: 700; position: relative; }
.passport-card .pp-row { display: flex; justify-content: space-between; padding: 11px 0; border-top: 1px solid rgba(255,255,255,.22); font-size: 14px; position: relative; }
.passport-card .pp-seal { margin-top: 18px; display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; background: rgba(255,255,255,.16); padding: 7px 13px; border-radius: 999px; position: relative; }

/* ---------- Before / After ---------- */
.beforeafter { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.ba-col { border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 26px; background: var(--bg-elev); }
.ba-col.before { background: var(--bg-subtle); }
.ba-col h4 { margin: 0 0 16px; font-size: 15px; font-weight: 700; display: flex; align-items: center; gap: 9px; }
.ba-col.before h4 { color: var(--text-muted); }
.ba-col.after h4 { color: var(--accent-text); }
.ba-col ul { margin: 0; padding: 0; list-style: none; }
.ba-col li { display: flex; gap: 11px; padding: 9px 0; font-size: 15px; color: var(--text-soft); border-top: 1px solid var(--border); }
.ba-col li:first-child { border-top: none; }
.ba-col .ba-ic { flex: none; width: 20px; height: 20px; }
.ba-col.before .ba-ic { color: var(--text-muted); }
.ba-col.after .ba-ic { color: var(--ok); }

/* ---------- Industries chips ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.chip { display: inline-flex; align-items: center; gap: 9px; padding: 11px 18px; border: 1px solid var(--border); border-radius: 999px; background: var(--bg-elev); font-size: 15px; font-weight: 500; color: var(--text-soft); box-shadow: var(--shadow-sm); }
.chip .chip-ic { color: var(--accent-text); display: flex; }
.chip .chip-ic svg { width: 17px; height: 17px; }

/* ---------- Mockup / screenshot frames ---------- */
.mockup-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; }
.mockup { border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; background: var(--bg-elev); box-shadow: var(--shadow); }
.mockup .mk-bar { display: flex; align-items: center; gap: 7px; padding: 12px 14px; border-bottom: 1px solid var(--border); background: var(--bg-subtle); }
.mockup .mk-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--border-strong); }
.mockup .mk-label { margin-left: 8px; font-size: 12.5px; color: var(--text-muted); font-family: var(--font-mono); }
.mockup .mk-body { aspect-ratio: 16/10; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; color: var(--text-muted); background: var(--grad-soft); text-align: center; padding: 24px; }
.mockup .mk-body .mk-ico { width: 46px; height: 46px; border-radius: 12px; background: var(--accent-soft); color: var(--accent-text); display: flex; align-items: center; justify-content: center; }
.mockup .mk-body .mk-cap { font-size: 14px; font-weight: 600; color: var(--text-soft); }
.mockup .mk-body .mk-note { font-size: 12px; }

/* ---------- FAQ accordion ---------- */
.faq { max-width: 820px; margin: 0 auto; border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; background: var(--bg-elev); }
.faq-item { border-top: 1px solid var(--border); }
.faq-item:first-child { border-top: none; }
.faq-q { width: 100%; text-align: left; background: none; border: none; cursor: pointer; font: inherit; font-size: 16.5px; font-weight: 600; color: var(--text); padding: 20px 22px; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.faq-q:hover { color: var(--accent-text); }
.faq-q .faq-ic { flex: none; transition: transform .25s var(--ease); color: var(--text-muted); }
.faq-item.open .faq-q .faq-ic { transform: rotate(45deg); color: var(--accent-text); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .3s var(--ease); }
.faq-a-inner { padding: 0 22px 20px; color: var(--text-soft); font-size: 15.5px; line-height: 1.65; }

/* ---------- CTA band ---------- */
.cta-band { text-align: center; border-radius: 24px; padding: 64px 32px; background: var(--grad); color: #fff; position: relative; overflow: hidden; box-shadow: 0 30px 70px color-mix(in srgb, var(--accent) 30%, transparent); }
.cta-band::after { content: ""; position: absolute; inset: 0; background: radial-gradient(600px 240px at 50% -20%, rgba(255,255,255,.25), transparent 60%); }
.cta-band h2 { font-size: clamp(28px, 4vw, 42px); letter-spacing: -.02em; margin: 0 0 12px; position: relative; }
.cta-band p { font-size: 18px; opacity: .92; max-width: 560px; margin: 0 auto 26px; position: relative; }
.cta-band .hero-actions { position: relative; }
.cta-band .btn-primary { background: #fff; color: var(--accent-text); box-shadow: 0 8px 24px rgba(0,0,0,.18); }
.cta-band .btn-primary:hover { box-shadow: 0 12px 34px rgba(0,0,0,.24); }
.cta-band .btn-ghost { background: rgba(255,255,255,.12); color: #fff; border-color: rgba(255,255,255,.4); }
.cta-band .cta-note { position: relative; font-size: 13px; opacity: .8; margin-top: 16px; }

/* ---------- Related products ---------- */
.related-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; }
.related-card { display: block; padding: 22px; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--bg-elev); color: var(--text); box-shadow: var(--shadow-sm); transition: transform .2s var(--ease), border-color .2s; }
.related-card:hover { text-decoration: none; transform: translateY(-2px); border-color: var(--accent); }
.related-card .r-ico { width: 40px; height: 40px; border-radius: 10px; background: var(--accent-soft); color: var(--accent-text); display: flex; align-items: center; justify-content: center; margin-bottom: 12px; }
.related-card h3 { margin: 0 0 4px; font-size: 16px; font-weight: 640; }
.related-card p { margin: 0; color: var(--text-muted); font-size: 14px; }
.related-card .r-more { margin-top: 12px; font-size: 13px; font-weight: 600; color: var(--accent-text); }

/* ---------- Footer ---------- */
.mkt-footer { border-top: 1px solid var(--border); padding: 56px 0 40px; background: var(--bg-subtle); }
.mkt-footer .f-top { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 32px; }
.mkt-footer .f-brand .brand { display: flex; align-items: center; gap: 10px; font-weight: 650; color: var(--text); margin-bottom: 12px; }
.mkt-footer .f-brand p { color: var(--text-muted); font-size: 14px; max-width: 280px; margin: 0; }
.mkt-footer .f-col h5 { margin: 0 0 12px; font-size: 12px; letter-spacing: .07em; text-transform: uppercase; color: var(--text-muted); font-weight: 700; }
.mkt-footer .f-col a { display: block; padding: 5px 0; font-size: 14px; color: var(--text-soft); }
.mkt-footer .f-col a:hover { color: var(--accent-text); }
.mkt-footer .f-bottom { margin-top: 40px; padding-top: 22px; border-top: 1px solid var(--border); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; font-size: 13px; color: var(--text-muted); }

/* Reveal-on-scroll animation now lives in animations.css (loaded after this file). */

/* ---------- Hero journey flow strip (signature) ---------- */
.flowstrip { display: flex; align-items: stretch; gap: 8px; flex-wrap: wrap; justify-content: center; padding: 22px; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--bg-elev); box-shadow: var(--shadow); }
.flow-node { flex: 1 1 120px; min-width: 110px; display: flex; flex-direction: column; gap: 3px; padding: 16px 12px; border-radius: 12px; background: var(--bg-subtle); text-align: center; }
.flow-node b { font-size: 15px; letter-spacing: -.01em; }
.flow-node span { font-size: 12px; color: var(--text-muted); }
.flow-end { flex: 1 1 120px; min-width: 110px; display: flex; align-items: center; justify-content: center; padding: 16px 12px; border-radius: 12px; font-weight: 640; font-size: 14px; text-align: center; }
.flow-end.in { background: var(--accent-soft); color: var(--accent-text); }
.flow-end.out { background: var(--grad); color: #fff; }
.flow-arrow { display: flex; align-items: center; color: var(--text-muted); font-size: 18px; padding: 0 2px; }

/* ---------- Workflow (two columns) ---------- */
.workflow { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.wf-col { border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 26px; background: var(--bg-elev); box-shadow: var(--shadow-sm); }
.wf-col h4 { margin: 0 0 16px; font-size: 15px; font-weight: 700; letter-spacing: -.01em; }
.wf-col:first-child h4 { color: var(--text-muted); }
.wf-col:last-child h4 { color: var(--accent-text); }
.wf-col ul { margin: 0; padding: 0; list-style: none; }
.wf-col li { display: flex; gap: 12px; padding: 10px 0; font-size: 15px; color: var(--text-soft); border-top: 1px solid var(--border); align-items: flex-start; }
.wf-col li:first-child { border-top: none; }
.wf-col .wf-ic { flex: none; width: 22px; height: 22px; border-radius: 6px; background: var(--accent-soft); color: var(--accent-text); display: flex; align-items: center; justify-content: center; margin-top: 1px; }
.wf-col .wf-ic svg { width: 13px; height: 13px; }
@media (max-width: 720px) { .workflow { grid-template-columns: 1fr; } }

/* ---------- Pull quote ---------- */
.pullquote { text-align: center; max-width: 820px; margin: 0 auto; }
.pullquote p { font-size: clamp(24px, 3.6vw, 36px); line-height: 1.3; letter-spacing: -.02em; font-weight: 640; color: var(--text); }
.pullquote .pq-mark { color: var(--accent); font-weight: 800; }

/* ---------- Responsive ---------- */
@media (max-width: 940px) {
  .pl-groups { grid-template-columns: 1fr 1fr; }
  .passport-wrap { grid-template-columns: 1fr; }
  .mkt-footer .f-top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .section { padding: 64px 0; }
  .mkt-nav { display: none; }
  .mkt-menu-btn { display: inline-flex; }
  .beforeafter { grid-template-columns: 1fr; }
  .pl-groups { grid-template-columns: 1fr; }
  .mkt-footer .f-top { grid-template-columns: 1fr; }
  .hero-mkt { padding: 72px 0 56px; }
  .mkt-mobilenav { position: fixed; inset: 64px 0 auto 0; background: var(--bg-elev); border-bottom: 1px solid var(--border); padding: 12px; z-index: 55; box-shadow: var(--shadow); }
  body.mnav-open .mkt-mobilenav { display: block; }
  .mkt-mobilenav a { display: block; padding: 12px 14px; border-radius: 8px; color: var(--text-soft); font-weight: 500; }
  .mkt-mobilenav a:hover { background: var(--bg-subtle); }
}

/* ---------- Print ---------- */
@media print {
  .mkt-header, .mkt-footer, .mkt-menu-btn, .hero-actions, .cta-band .hero-actions { display: none !important; }
  html.js .reveal { opacity: 1 !important; transform: none !important; }
  .section { padding: 24px 0; }
  .hero-mkt::before, .cta-band::after, .passport-card::after { display: none; }
  body { background: #fff; color: #000; }
}
