/* ==========================================================================
   Markdific — shared styles
   Base tokens, reset, and the components common to every page
   (nav, footer, buttons, brand logo, placeholders).
   Page-specific styles live in each page's own <style> block.
   ========================================================================== */

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

:root {
  --br: #06B6D4; --brl: #22D3EE; --brd: #0E7490; --brs: #ECFEFF;
  --fg: #0F172A;
  --mut: #475569;   /* primary description / body text — darkened for readability */
  --sub: #64748B;   /* secondary / meta text — darkened for readability */
  --bd: #E2E8F0; --bg2: #F8FAFC;
  --disp: 'Plus Jakarta Sans', sans-serif;
  --body: 'Inter', -apple-system, sans-serif;
}

body { font-family: var(--body); color: var(--fg); background: #fff; -webkit-font-smoothing: antialiased; line-height: 1.6; }
a { color: inherit; text-decoration: none; }

/* Illustration / screenshot placeholders */
.illo { border: 1.5px dashed var(--br); border-radius: 16px; background: var(--brs); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; color: var(--brd); text-align: center; padding: 20px; }
.illo .label { font-size: 12px; font-weight: 600; }
.illo .hint { font-size: 12px; color: var(--mut); }
.illo svg { width: 30px; height: 30px; opacity: 0.6; }
.shot { background: #F1F5F9; border: 1.5px dashed #94A3B8; border-radius: 14px; display: flex; align-items: center; justify-content: center; color: #64748B; font-size: 14px; font-weight: 500; }

/* Brand logo (image lockup: icon + wordmark) */
.nav-logo { display: inline-flex; align-items: center; }
.nav-logo img { height: 36px; width: auto; display: block; }

/* Nav */
.nav { display: flex; align-items: center; justify-content: space-between; padding: 18px 48px; max-width: 1240px; margin: 0 auto; position: relative; }
.nav-links { display: flex; align-items: center; gap: 28px; font-size: 15px; color: var(--mut); font-weight: 500; }
.nav-links a:hover, .nav-links a.active { color: var(--fg); }
.nav-cta { display: flex; align-items: center; gap: 14px; }

/* Resources mega menu (desktop) */
.nav-item { position: relative; display: flex; align-items: center; }
.nav-mega-trigger { display: inline-flex; align-items: center; gap: 5px; cursor: pointer; }
.nav-mega-trigger .chev { width: 13px; height: 13px; transition: transform .16s ease; }
.has-mega:hover .nav-mega-trigger .chev, .has-mega:focus-within .nav-mega-trigger .chev { transform: rotate(180deg); }
.mega { position: absolute; top: 100%; left: -14px; margin-top: 4px; min-width: 540px; background: #fff; border: 1px solid #CBD5E1; border-radius: 16px; box-shadow: 0 18px 44px rgba(15, 23, 42, 0.16); padding: 10px; display: grid; grid-template-columns: 1fr 1fr; gap: 6px; opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity .16s ease, transform .16s ease, visibility .16s; z-index: 60; }
.mega::before { content: ''; position: absolute; top: -16px; left: 0; right: 0; height: 16px; }
.has-mega:hover .mega, .has-mega:focus-within .mega { opacity: 1; visibility: visible; transform: translateY(0); }
.mega-card { display: grid; grid-template-columns: auto 1fr; column-gap: 12px; align-items: start; padding: 12px 14px; border-radius: 11px; }
.mega-card:hover { background: var(--bg2); }
.mega-ic { grid-row: 1 / 3; width: 38px; height: 38px; border-radius: 10px; background: var(--brs); display: flex; align-items: center; justify-content: center; }
.mega-ic svg { width: 19px; height: 19px; color: var(--brd); }
.mega-tt { font-family: var(--disp); font-weight: 700; font-size: 14.5px; color: var(--fg); line-height: 1.25; }
.mega-ds { font-size: 12.5px; color: var(--mut); line-height: 1.45; margin-top: 3px; font-weight: 400; }
.nav-burger { display: none; }
.btn { font-family: var(--disp); cursor: pointer; border: none; font-weight: 600; display: inline-flex; align-items: center; gap: 8px; }
.nav .btn-primary { background: var(--br); color: #fff; padding: 10px 20px; border-radius: 10px; font-size: 15px; }
.nav .btn-primary:hover { background: var(--brd); }
.nav .ghost { color: var(--mut); font-size: 15px; font-weight: 600; background: none; }
.nav .ghost:hover { color: var(--fg); }

/* Pre-launch "Coming Soon" CTA (product not yet available) */
.coming-soon { background: var(--brs); color: var(--brd); padding: 10px 18px; border-radius: 10px; font-size: 15px; cursor: default; user-select: none; }

/* Footer */
.footer { background: #fff; border-top: 1px solid var(--bd); padding: 56px 48px 40px; }
.footer-inner { max-width: 1080px; margin: 0 auto; display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; }
.footer-brand .nav-logo { margin-bottom: 14px; }
.footer-brand .nav-logo img { height: 32px; }
.footer-brand p { font-size: 14px; color: var(--mut); line-height: 1.6; max-width: 260px; }
.footer-col h4 { font-family: var(--disp); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--sub); margin-bottom: 14px; }
.footer-col a { display: block; font-size: 15px; color: var(--mut); margin-bottom: 10px; }
.footer-col a:hover { color: var(--fg); }
.footer-bottom { max-width: 1080px; margin: 40px auto 0; padding-top: 24px; border-top: 1px solid var(--bd); font-size: 14px; color: var(--sub); }

/* Shared responsive behaviour */
@media (max-width: 900px) {
  /* Hamburger + mobile drawer */
  .nav-burger { display: inline-flex; flex-direction: column; justify-content: center; gap: 5px; width: 34px; height: 34px; padding: 7px; cursor: pointer; border-radius: 8px; }
  .nav-burger span { display: block; height: 2px; width: 100%; background: var(--fg); border-radius: 2px; transition: transform .2s ease, opacity .2s ease; }
  #nav-toggle:checked ~ .nav-cta .nav-burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  #nav-toggle:checked ~ .nav-cta .nav-burger span:nth-child(2) { opacity: 0; }
  #nav-toggle:checked ~ .nav-cta .nav-burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .nav-links { display: none; position: absolute; top: 100%; left: 16px; right: 16px; flex-direction: column; align-items: stretch; gap: 0; background: #fff; border: 1px solid #CBD5E1; border-radius: 14px; box-shadow: 0 16px 40px rgba(15, 23, 42, 0.16); padding: 8px; z-index: 60; }
  #nav-toggle:checked ~ .nav-links { display: flex; }
  .nav-links > a { padding: 12px 14px; border-radius: 9px; font-weight: 600; }
  .nav-links > a:hover, .nav-links > a.active { background: var(--bg2); }
  .nav-item { display: block; }
  .nav-mega-trigger { padding: 12px 14px; border-radius: 9px; font-weight: 600; justify-content: flex-start; }
  .nav-mega-trigger.active { background: var(--bg2); }
  .nav-mega-trigger .chev { display: none; }
  .mega { position: static; display: block; min-width: 0; opacity: 1; visibility: visible; transform: none; border: none; box-shadow: none; padding: 0 0 4px; margin: 0; border-radius: 0; }
  .mega::before { display: none; }
  .mega-card { grid-template-columns: 1fr; padding: 8px 14px 8px 28px; border-radius: 9px; }
  .mega-card:hover { background: var(--bg2); }
  .mega-ic { display: none; }
  .mega-tt { font-size: 14px; }
  .mega-ds { font-size: 12px; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .nav { padding: 16px 20px; }
  .footer { padding: 44px 24px 36px; }
  .footer-inner { grid-template-columns: 1fr; gap: 30px; }
}

/* Cookie consent bar — minimal floating bottom bar */
.consent-bar {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 9999;
  max-width: 680px; margin: 0 auto;
  display: flex; align-items: center; gap: 18px;
  background: #fff; border: 1px solid var(--bd); border-radius: 14px;
  padding: 14px 16px 14px 20px;
  box-shadow: 0 12px 34px rgba(15, 23, 42, 0.14);
  transform: translateY(150%); opacity: 0;
  transition: transform .28s ease, opacity .28s ease;
}
.consent-bar.is-visible { transform: translateY(0); opacity: 1; }
.consent-text { flex: 1; margin: 0; font-size: 14px; line-height: 1.5; color: var(--mut); }
.consent-text a { color: var(--brd); text-decoration: underline; }
.consent-text a:hover { color: var(--br); }
.consent-actions { display: flex; gap: 8px; flex-shrink: 0; }
.consent-btn { font-family: var(--disp); font-weight: 600; font-size: 14px; cursor: pointer; border-radius: 9px; padding: 9px 18px; border: 1px solid var(--bd); transition: color .12s, background .12s, border-color .12s; }
.consent-btn.consent-decline { background: #fff; color: var(--mut); }
.consent-btn.consent-decline:hover { color: var(--fg); border-color: var(--sub); }
.consent-btn.consent-accept { background: var(--br); color: #fff; border-color: var(--br); }
.consent-btn.consent-accept:hover { background: var(--brd); border-color: var(--brd); }
@media (max-width: 600px) {
  .consent-bar { left: 12px; right: 12px; bottom: 12px; flex-direction: column; align-items: stretch; gap: 12px; padding: 16px; }
  .consent-actions { gap: 10px; }
  .consent-btn { flex: 1; }
}
