/* ============================================================
   BELA65 Design System — Site-wide component library
   Global chrome + reusable marketing components.
   Inherits tokens from styles.css. Loaded after product.css.
   ============================================================ */

/* ---------- Global nav + mega-menu ---------- */
.mkt-nav { display: flex; gap: 2px; margin-left: 10px; }
.nav-item { position: relative; }
.nav-top { display: inline-flex; align-items: center; gap: 4px; padding: 8px 12px; border-radius: 8px; font-size: 14.5px; font-weight: 500; color: var(--text-soft); }
.nav-top:hover { background: var(--bg-subtle); color: var(--text); text-decoration: none; }
.nav-top.active { color: var(--accent-text); }
.nav-caret { display: inline-flex; opacity: .6; transition: transform .2s var(--ease); }
.nav-item.open .nav-caret { transform: rotate(180deg); }
.mega {
  position: absolute; top: calc(100% + 8px); left: 0; z-index: 70;
  display: none; grid-auto-flow: column; gap: 8px; padding: 14px;
  background: var(--bg-elev); border: 1px solid var(--border); border-radius: 14px; box-shadow: var(--shadow);
  min-width: 300px;
}
.nav-item.open .mega { display: grid; animation: bela-fade-up .18s var(--ease); }
.mega-col { min-width: 240px; }
.mega-col h6 { margin: 4px 10px 8px; font-size: 11px; letter-spacing: .07em; text-transform: uppercase; color: var(--text-muted); font-weight: 700; }
.mega-col a { display: flex; flex-direction: column; gap: 1px; padding: 9px 10px; border-radius: 9px; color: var(--text); }
.mega-col a:hover { background: var(--accent-soft); text-decoration: none; }
.mega-t { font-size: 14px; font-weight: 600; }
.mega-d { font-size: 12.5px; color: var(--text-muted); }
.mnav-cta { padding: 10px 6px 4px; }
.mnav-cta .btn { width: 100%; justify-content: center; }
@media (max-width: 860px) { .mkt-nav { display: none; } .mkt-menu-btn { display: inline-flex; } }

/* ---------- Stats band (honest — values authored per page) ---------- */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 20px; text-align: center; }
.stat .stat-n { font-size: clamp(30px, 4vw, 44px); font-weight: 740; letter-spacing: -.02em; background: var(--grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.stat .stat-l { color: var(--text-muted); font-size: 14.5px; margin-top: 4px; }

/* ---------- Pricing cards ---------- */
.pricing-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; align-items: stretch; }
.price-card { display: flex; flex-direction: column; padding: 28px; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--bg-elev); box-shadow: var(--shadow-sm); }
.price-card.featured { border-color: var(--accent); box-shadow: 0 12px 40px color-mix(in srgb, var(--accent) 20%, transparent); position: relative; }
.price-card .p-flag { position: absolute; top: -11px; left: 24px; background: var(--grad); color: #fff; font-size: 11px; font-weight: 700; padding: 3px 12px; border-radius: 999px; }
.price-card h3 { margin: 0 0 4px; font-size: 18px; }
.price-card .p-price { font-size: 34px; font-weight: 740; letter-spacing: -.02em; margin: 8px 0; }
.price-card .p-price small { font-size: 14px; font-weight: 500; color: var(--text-muted); }
.price-card .p-desc { color: var(--text-muted); font-size: 14px; margin: 0 0 16px; }
.price-card ul { list-style: none; margin: 0 0 22px; padding: 0; flex: 1; }
.price-card li { display: flex; gap: 10px; padding: 7px 0; font-size: 14.5px; color: var(--text-soft); }
.price-card li svg { color: var(--ok); flex: none; margin-top: 2px; }

/* ---------- Testimonials ---------- */
.testi-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; }
.testi { padding: 26px; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--bg-elev); box-shadow: var(--shadow-sm); }
.testi .quote { font-size: 16px; line-height: 1.55; color: var(--text); margin: 0 0 18px; }
.testi .who { display: flex; align-items: center; gap: 12px; }
.testi .avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--grad); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; }
.testi .who b { display: block; font-size: 14px; }
.testi .who span { font-size: 12.5px; color: var(--text-muted); }

/* ---------- Video / media section ---------- */
.video-frame { position: relative; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--border); box-shadow: var(--shadow); background: var(--grad-soft); aspect-ratio: 16/9; display: flex; align-items: center; justify-content: center; }
.video-frame .play { width: 72px; height: 72px; border-radius: 50%; background: var(--grad); color: #fff; display: flex; align-items: center; justify-content: center; box-shadow: 0 12px 30px color-mix(in srgb, var(--accent) 34%, transparent); }
.video-frame .play svg { width: 28px; height: 28px; margin-left: 3px; }

/* ---------- Tabs ---------- */
.tabs .tablist { display: inline-flex; gap: 4px; padding: 4px; border: 1px solid var(--border); border-radius: 12px; background: var(--bg-subtle); margin: 0 auto 28px; }
.tabs .tablist [data-tab] { padding: 9px 18px; border-radius: 8px; font-size: 14.5px; font-weight: 600; color: var(--text-muted); cursor: pointer; border: none; background: none; }
.tabs .tablist [data-tab].active { background: var(--bg-elev); color: var(--accent-text); box-shadow: var(--shadow-sm); }
.tabs .tab-panel { display: none; }
.tabs .tab-panel.active { display: block; animation: bela-fade-up .3s var(--ease); }

/* ---------- Filter chips (buttons) ---------- */
button.chip { cursor: pointer; font: inherit; }
.chip.active { background: var(--accent); color: #fff; border-color: var(--accent); }
.chip.active .chip-ic { color: #fff; }

/* Product-card variant used as a static card (link is the .p-more inside) */
.product-card .p-more { align-self: flex-start; }

/* ---------- Described illustration placeholder ----------
   A deliberate, art-directed slot. The caption tells a designer or an
   AI tool EXACTLY what the final illustration should show. Not "broken"
   looking — it reads as a spec until the real art replaces it. */
.illus { position: relative; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--grad-soft); overflow: hidden; box-shadow: var(--shadow-sm); }
.illus .illus-inner { display: flex; gap: 18px; align-items: center; padding: 26px 28px; min-height: 200px; }
.illus .illus-mark { flex: none; width: 56px; height: 56px; border-radius: 14px; background: var(--accent-soft); color: var(--accent-text); display: flex; align-items: center; justify-content: center; }
.illus .illus-tag { display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--accent-text); margin-bottom: 6px; }
.illus .illus-desc { font-size: 14.5px; line-height: 1.55; color: var(--text-soft); margin: 0; }
.illus.tall .illus-inner { min-height: 320px; }

/* ---------- Outputs (what you get) ---------- */
.outputs { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; }
.output { position: relative; padding: 26px; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--bg-elev); box-shadow: var(--shadow-sm); }
.output .o-label { display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--accent-text); background: var(--accent-soft); border-radius: 6px; padding: 3px 8px; margin-bottom: 14px; }
.output h3 { margin: 0 0 6px; font-size: 18px; font-weight: 660; letter-spacing: -.01em; }
.output p { margin: 0; color: var(--text-muted); font-size: 15px; line-height: 1.6; }

/* ---------- Accessibility: visible keyboard focus everywhere ---------- */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible, [tabindex]:focus-visible {
  outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px;
}

/* ---------- No-JS fallback nav ---------- */
.noscript-nav { padding: 12px 20px; background: var(--bg-subtle); border-bottom: 1px solid var(--border); text-align: center; font-size: 14px; }
.noscript-nav a { margin: 0 8px; color: var(--accent-text); }

/* ---------- Breadcrumbs ---------- */
.breadcrumbs { border-bottom: 1px solid var(--border); background: var(--bg); }
.breadcrumbs .container { display: flex; align-items: center; gap: 8px; padding-top: 14px; padding-bottom: 14px; font-size: 13.5px; color: var(--text-muted); }
.breadcrumbs a { color: var(--text-muted); }
.breadcrumbs a:hover { color: var(--accent-text); }
.breadcrumbs .sep { opacity: .5; }
.breadcrumbs .current { color: var(--text-soft); font-weight: 600; }

/* ---------- Search trigger + modal ---------- */
.search-trigger {
  display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 12px;
  border: 1px solid var(--border-strong); border-radius: 10px; background: var(--bg-subtle);
  color: var(--text-muted); font: inherit; font-size: 13.5px; cursor: pointer;
}
.search-trigger:hover { border-color: var(--accent); color: var(--text); }
.search-trigger kbd { font-family: var(--font-mono); font-size: 11px; border: 1px solid var(--border); border-radius: 5px; padding: 1px 6px; background: var(--bg); }
.search-modal { position: fixed; inset: 0; z-index: 100; display: none; padding: 12vh 20px 20px; background: rgba(10,12,20,.5); backdrop-filter: blur(3px); }
.search-modal.open { display: block; }
.search-box { max-width: 620px; margin: 0 auto; background: var(--bg-elev); border: 1px solid var(--border); border-radius: 16px; box-shadow: var(--shadow); overflow: hidden; }
.search-box .sb-input { display: flex; align-items: center; gap: 10px; padding: 16px 18px; border-bottom: 1px solid var(--border); }
.search-box .sb-input svg { color: var(--text-muted); flex: none; }
.search-box input { flex: 1; border: none; background: none; outline: none; font: inherit; font-size: 17px; color: var(--text); }
.search-box .sb-results { max-height: 52vh; overflow-y: auto; padding: 8px; }
.search-box .sb-results a { display: block; padding: 11px 14px; border-radius: 10px; color: var(--text); }
.search-box .sb-results a:hover, .search-box .sb-results a.active { background: var(--accent-soft); text-decoration: none; }
.search-box .sr-title { font-weight: 600; font-size: 15px; }
.search-box .sr-page { font-size: 12px; color: var(--text-muted); margin-top: 1px; }
.search-box .sr-snip { font-size: 13px; color: var(--text-soft); margin-top: 3px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.search-box .sb-empty { padding: 26px; text-align: center; color: var(--text-muted); font-size: 14.5px; }
.search-box .sb-foot { padding: 10px 16px; border-top: 1px solid var(--border); font-size: 12px; color: var(--text-muted); display: flex; gap: 16px; }

/* ---------- Product / index grid (larger cards with arrow) ---------- */
.product-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; }
.product-card {
  display: flex; flex-direction: column; padding: 28px; 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), box-shadow .2s var(--ease), border-color .2s;
}
.product-card:hover { text-decoration: none; transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--accent); }
.product-card .p-ico { width: 48px; height: 48px; border-radius: 12px; background: var(--accent-soft); color: var(--accent-text); display: flex; align-items: center; justify-content: center; margin-bottom: 16px; }
.product-card h3 { margin: 0 0 6px; font-size: 19px; font-weight: 660; letter-spacing: -.01em; }
.product-card p { margin: 0 0 16px; color: var(--text-muted); font-size: 15px; line-height: 1.6; flex: 1; }
.product-card .p-more { font-size: 14px; font-weight: 600; color: var(--accent-text); display: inline-flex; align-items: center; gap: 6px; }
.product-card:hover .p-more svg { transform: translateX(3px); }
.product-card .p-more svg { transition: transform .2s var(--ease); }
.product-card .p-tag { align-self: flex-start; margin-bottom: 14px; }

/* ---------- Comparison table ---------- */
.compare-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); }
table.compare { border-collapse: collapse; width: 100%; font-size: 15px; min-width: 620px; }
table.compare th, table.compare td { padding: 15px 18px; text-align: left; border-bottom: 1px solid var(--border); vertical-align: top; }
table.compare thead th { font-weight: 660; color: var(--text); background: var(--bg-subtle); }
table.compare thead th.bela { color: var(--accent-text); background: var(--accent-soft); }
table.compare td.bela { background: color-mix(in srgb, var(--accent-soft) 55%, transparent); color: var(--text); font-weight: 500; }
table.compare tbody tr:last-child td { border-bottom: none; }
table.compare td:first-child { font-weight: 600; color: var(--text); }

/* ---------- Two-column split (text + visual) ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.split.reverse .split-media { order: -1; }
.split-copy h2 { font-size: clamp(26px, 3.6vw, 38px); letter-spacing: -.02em; margin: 0 0 16px; line-height: 1.15; }
.split-copy p { font-size: 17px; color: var(--text-soft); margin: 0 0 16px; }
.split-media { border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--grad-soft); min-height: 280px; display: flex; align-items: center; justify-content: center; box-shadow: var(--shadow-sm); }

/* ---------- Principles / trust band (honest — no fake numbers) ---------- */
.principles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; text-align: center; }
.principle { padding: 24px; }
.principle .pr-ico { width: 44px; height: 44px; margin: 0 auto 12px; border-radius: 12px; background: var(--accent-soft); color: var(--accent-text); display: flex; align-items: center; justify-content: center; }
.principle h4 { margin: 0 0 4px; font-size: 16px; font-weight: 640; }
.principle p { margin: 0; color: var(--text-muted); font-size: 14px; }

/* ---------- Use cases ---------- */
.usecases { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.usecase { border: 1px solid var(--border); border-left: 3px solid var(--accent); border-radius: var(--radius); padding: 22px; background: var(--bg-elev); }
.usecase h4 { margin: 0 0 6px; font-size: 16px; font-weight: 640; }
.usecase p { margin: 0; color: var(--text-muted); font-size: 14.5px; }

/* ---------- Contact form (non-functional, mailto fallback) ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.contact-form { border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 28px; background: var(--bg-elev); box-shadow: var(--shadow-sm); }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 13.5px; font-weight: 600; margin-bottom: 6px; color: var(--text-soft); }
.field input, .field textarea, .field select { width: 100%; padding: 11px 13px; border: 1px solid var(--border-strong); border-radius: 10px; background: var(--bg); color: var(--text); font: inherit; font-size: 15px; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.field textarea { min-height: 120px; resize: vertical; }
.contact-side .c-item { display: flex; gap: 14px; padding: 16px 0; border-top: 1px solid var(--border); }
.contact-side .c-item:first-child { border-top: none; }
.contact-side .c-ico { width: 40px; height: 40px; flex: none; border-radius: 10px; background: var(--accent-soft); color: var(--accent-text); display: flex; align-items: center; justify-content: center; }
.contact-side h4 { margin: 0 0 2px; font-size: 15px; }
.contact-side p { margin: 0; color: var(--text-muted); font-size: 14px; }

@media (max-width: 860px) {
  .split, .contact-grid { grid-template-columns: 1fr; gap: 28px; }
  .split.reverse .split-media { order: 0; }
  .principles { grid-template-columns: 1fr; }
}
