@import url('https://fonts.googleapis.com/css2?family=Quicksand:wght@500;600;700&display=swap');
/* ============================================================
   MANGO SITE — shared base styles
   Tokens, type, buttons, nav, footer, sections, cert pills.
   Page-specific layouts live in each page's own <style> block.
============================================================ */
:root {
  --orange:        #F5A623;
  --orange-dark:   #C97F0A;
  --orange-light:  #FEF3DC;
  --black:         #0F0F0F;
  --gray-700:      #3D3D3D;
  --gray-500:      #6B6B6B;
  --gray-400:      #9B9B95;
  --gray-200:      #E8E6E0;
  --gray-100:      #F5F4F1;
  --white:         #FFFFFF;
  --green:         #2D6A4F;
  --green-tint:    #E5EFE7;
  --green-deep:    #1B4632;

  --blue:        #143063;
  --blue-deep:   #0A1F44;
  --blue-soft:   #1F4080;
  --blue-tint:   #E5EAF2;

  --bg-page:        var(--gray-100);
  --bg-hero:        var(--blue);
  --bg-hero-deep:   var(--blue-deep);
  --on-hero:        #FFFFFF;
  --on-hero-soft:   #B8C2D6;
  --accent:         var(--orange);
  --accent-dark:    var(--orange-dark);
  --accent-tint:    var(--orange-light);
  --on-accent:      var(--black);

  --display: 'DM Serif Display', Georgia, serif;
  --body:    'DM Sans', system-ui, sans-serif;
  --mono:    'JetBrains Mono', ui-monospace, monospace;

  --r-sm: 4px;
  --r:    8px;
  --r-lg: 12px;
  --r-xl: 20px;
  --sh-card: 0 1px 4px rgba(0,0,0,0.06);
  --sh-card-strong: 0 2px 0 rgba(15,15,15,0.04), 0 18px 40px -16px rgba(15,15,15,0.14);
  --sh-pop: 0 24px 48px -20px rgba(245,166,35,0.35), 0 2px 0 rgba(15,15,15,0.06);
  --nav-h: 64px;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--body);
  background: var(--bg-page);
  color: var(--black);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font: inherit; cursor: pointer; }

.container-wide { max-width: 1280px; margin: 0 auto; padding: 0 28px; }
.container { max-width: 1080px; margin: 0 auto; padding: 0 28px; }
.container-narrow { max-width: 860px; margin: 0 auto; padding: 0 28px; }

/* ===== type ===== */
.h1 { font-family: var(--display); font-weight: 400; font-size: clamp(40px, 5vw, 64px); line-height: 1.04; letter-spacing: -0.018em; margin: 0; }
.h2 { font-family: var(--display); font-weight: 400; font-size: clamp(30px, 3.5vw, 44px); line-height: 1.08; letter-spacing: -0.015em; margin: 0; }
.h3 { font-family: var(--display); font-weight: 400; font-size: 24px; line-height: 1.2; letter-spacing: -0.01em; margin: 0; }
.h4 { font-family: var(--body); font-weight: 600; font-size: 17px; line-height: 1.3; letter-spacing: -0.005em; margin: 0; }
.eyebrow {
  font-family: var(--body); font-size: 12px; font-weight: 600;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--orange-dark);
  padding-bottom: 8px; border-bottom: 1px solid var(--gray-200);
  margin: 0 0 20px;
}
.eyebrow.center { display: inline-block; border-bottom: none; padding: 0; margin-bottom: 0; }
.eyebrow.on-dark { color: #F7C97A; border-color: rgba(255,255,255,0.18); }
.sub { font-size: 17px; line-height: 1.55; color: var(--gray-500); margin: 16px 0 0; max-width: 60ch; }
.meta { font-size: 13px; color: var(--gray-500); }
.meta.mono { font-family: var(--mono); letter-spacing: 0.04em; }

/* ===== buttons ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 24px;
  border-radius: 6px;
  font-family: var(--body); font-size: 15px; font-weight: 600;
  border: 1.5px solid transparent;
  transition: background .15s ease, border-color .15s ease, color .15s ease, transform .12s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn .arrow { font-family: var(--mono); font-weight: 600; transition: transform .15s ease; }
.btn:hover .arrow { transform: translateX(2px); }

.btn-primary { background: var(--orange); color: var(--black); border-color: var(--orange); }
.btn-primary:hover { background: var(--orange-dark); color: var(--black); border-color: var(--orange-dark); }

.btn-secondary { background: transparent; color: var(--black); border-color: var(--black); }
.btn-secondary:hover { background: var(--black); color: var(--white); }

.btn-mango {
  background: var(--orange-light); color: var(--orange-dark);
  border-color: var(--orange);
}
.btn-mango:hover { background: var(--orange); color: var(--black); border-color: var(--orange); }

.btn-on-hero { background: transparent; color: var(--white); border-color: rgba(255,255,255,0.5); }
.btn-on-hero:hover { background: rgba(255,255,255,0.1); border-color: #fff; }

.btn-block { width: 100%; }
.btn-sm { padding: 9px 16px; font-size: 13px; }

.text-link {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 14px; font-weight: 600; color: var(--orange-dark);
  border-bottom: 1px solid transparent;
  transition: border-color .15s ease, color .15s ease;
}
.text-link:hover { color: var(--black); border-color: var(--orange); }
.text-link .arrow { font-family: var(--mono); font-weight: 600; transition: transform .15s ease; }
.text-link:hover .arrow { transform: translateX(2px); }

/* ===== sections ===== */
.section { padding: 96px 0; }
.section.tight { padding: 56px 0; }
.section.compact { padding: 44px 0; }
.section.white { background: var(--white); }
.section.dark { background: var(--black); color: var(--white); }
.section.tint-orange { background: var(--orange-light); position: relative; }
.section.tint-orange::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(245,166,35,0.45), transparent);
}
.section.tint-blue { background: var(--blue-tint); }
.section.tint-green { background: var(--green-tint); }

.section-head { margin-bottom: 44px; max-width: 740px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head.center .sub { margin-left: auto; margin-right: auto; }
.section-head .h2 { margin-top: 8px; }
.section-head .sub { margin-top: 14px; }

/* ===== sticky nav ===== */
.mn-nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(254,243,220,0.88);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 3px solid var(--blue);
  box-shadow: none;
}
.mn-nav .nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: var(--nav-h);
  gap: 24px;
}
.nav-logo {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--display); font-weight: 400; font-size: 22px;
  letter-spacing: -0.01em; color: var(--black);
}
.nav-logo-img { height: 34px; width: auto; display: block; }
.nav-logo .logomark {
  display: inline-flex; align-items: center; justify-content: center;
  width: 30px; height: 30px;
}
.nav-logo .wordmark {
  font-family: var(--body), system-ui, sans-serif;
  font-weight: 600; font-size: 22px; letter-spacing: -0.02em; line-height: 1; color: var(--black);
}
/* ===== Mango cube mark ===== */
.mango-mark { width: 100%; height: 100%; display: block; overflow: visible; }
.mango-mark .mk-frame { fill: var(--mk-frame, #507CBD); }
.mango-mark .mk-top   { fill: var(--mk-top, #FFB949); }
.mango-mark .mk-right { fill: var(--mk-right, #FFAE34); }
.mango-mark .mk-left  { fill: var(--mk-left, #F2A52C); }
.mango-mark .mk-edges { stroke: var(--mk-edge, #ffffff); stroke-width: 1.8; }
.nav-links {
  display: flex; align-items: center; gap: 28px;
  margin-left: auto;
}
.nav-links a {
  font-size: 14px; font-weight: 500; color: var(--gray-700);
  transition: color .15s ease;
  position: relative; padding: 4px 0;
}
.nav-links a:hover, .nav-links a.active { color: var(--black); }
.nav-links a.active::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px;
  height: 2px; background: var(--orange); border-radius: 1px;
}
.nav-cta { margin-left: 8px; }

/* ===== footer ===== */
.mn-footer {
  background: var(--black);
  color: var(--gray-200);
  padding: 64px 0 28px;
  border-top: 4px solid var(--orange);
  position: relative;
}
.mn-footer::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(ellipse 900px 320px at 90% 0%, rgba(245,166,35,0.10), transparent 60%);
  pointer-events: none;
}
.mn-footer > * { position: relative; }
.mn-footer a { color: var(--gray-200); transition: color .15s ease; }
.mn-footer a:hover { color: var(--white); }
.mn-footer .nav-logo { color: #fff; }
.mn-footer .mango-mark .mk-edges { stroke: #ffffff; stroke-width: 1.6; }

.footer-top {
  display: grid;
  grid-template-columns: 1.2fr 2fr 1.4fr;
  gap: 40px;
  align-items: start;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.footer-tag {
  color: rgba(255,255,255,0.55); font-size: 13px; margin-top: 14px;
  max-width: 32ch; line-height: 1.5;
}
.footer-col h5 {
  font-family: var(--mono); font-size: 10px; font-weight: 600;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: rgba(255,255,255,0.45); margin: 0 0 14px;
}
.footer-cols { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 28px; }
.footer-col ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 9px; font-size: 14px; }
.footer-aside .ftr-cta-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: var(--r);
  padding: 20px 22px;
}
.footer-aside .ftr-cta-card h6 {
  font-family: var(--display); font-weight: 400; font-size: 20px;
  color: #fff; margin: 0 0 6px; letter-spacing: -0.01em;
}
.footer-aside .ftr-cta-card p {
  color: rgba(255,255,255,0.55); font-size: 13px; margin: 0 0 14px; line-height: 1.5;
}
.footer-bottom {
  padding-top: 28px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; flex-wrap: wrap;
}
.footer-legal { font-size: 12px; color: rgba(255,255,255,0.45); display: flex; gap: 18px; flex-wrap: wrap; }
.footer-legal a { color: rgba(255,255,255,0.55); }

/* footer cert strip — slightly muted on dark */
.mn-footer .cert-strip { display: flex; flex-wrap: wrap; gap: 6px; }
.mn-footer .cert-pill {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.14);
  color: #fff;
  font-family: var(--body); font-size: 10px; font-weight: 600;
  padding: 4px 10px; border-radius: var(--r-sm);
  letter-spacing: 0.06em;
}

/* ===== cert pills (default light context) ===== */
.cert-pill {
  background: var(--black); color: var(--white);
  white-space: nowrap;
  font-size: 11px; font-weight: 600; padding: 5px 13px;
  border-radius: var(--r-sm); letter-spacing: 0.04em;
  display: inline-block;
}
.cert-pill.accent {
  background: var(--orange); color: var(--black);
  box-shadow: inset 0 0 0 1px rgba(15,15,15,0.08);
}
.cert-strip { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }

/* ===== hero (shared base) — default: solid blue ===== */
.hero {
  background: var(--bg-hero);
  color: var(--on-hero);
  padding: 96px 0 110px;
  position: relative; overflow: hidden;
  isolation: isolate;
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(ellipse 800px 500px at 80% 10%, rgba(255,255,255,0.06), transparent 60%),
              radial-gradient(ellipse 600px 400px at 10% 90%, rgba(0,0,0,0.18), transparent 60%);
  z-index: -1;
}
.hero-bg-glyph {
  position: absolute; right: -120px; top: 30px;
  font-family: var(--display); font-size: 520px; line-height: 1;
  color: rgba(255,255,255,0.045); user-select: none; z-index: -1;
  letter-spacing: -0.04em;
}

/* Hero theme variants — applied via body class from parent canvas tweaks */
body.hero-mango-glow .hero { border-bottom: 4px solid var(--orange); }
body.hero-mango-glow .hero::before {
  background:
    radial-gradient(ellipse 950px 600px at 88% 12%, rgba(245,166,35,0.32), transparent 60%),
    radial-gradient(ellipse 700px 500px at 5% 95%, rgba(245,166,35,0.10), transparent 65%),
    radial-gradient(ellipse 600px 400px at 50% 60%, rgba(0,0,0,0.25), transparent 60%);
}
body.hero-mango-glow .hero::after {
  content: ""; position: absolute; right: -8%; top: -8%;
  width: 420px; height: 420px; border-radius: 50%;
  background: radial-gradient(circle at center, rgba(245,166,35,0.42), rgba(245,166,35,0) 65%);
  z-index: -1; pointer-events: none; filter: blur(8px);
}
body.hero-mango-glow .hero-bg-glyph {
  color: rgba(245,166,35,0.10);
  text-shadow: 0 0 80px rgba(245,166,35,0.18);
}

body.hero-cocoa .hero { background: #2A1810; border-bottom: 4px solid var(--orange); }
body.hero-cocoa .hero::before {
  background:
    radial-gradient(ellipse 950px 600px at 88% 12%, rgba(245,166,35,0.22), transparent 60%),
    radial-gradient(ellipse 700px 500px at 5% 95%, rgba(0,0,0,0.30), transparent 65%);
}
body.hero-cocoa .hero-bg-glyph { color: rgba(245,166,35,0.09); }

body.hero-mango-solid .hero { background: var(--orange-dark); border-bottom: 4px solid var(--orange); }
body.hero-mango-solid .hero h1 .accent-italic { color: #FFFFFF; }
body.hero-mango-solid .hero::before {
  background: radial-gradient(ellipse 800px 500px at 80% 10%, rgba(255,255,255,0.10), transparent 60%),
              radial-gradient(ellipse 600px 400px at 10% 90%, rgba(0,0,0,0.18), transparent 60%);
}
body.hero-mango-solid .hero-bg-glyph { color: rgba(255,255,255,0.08); }
.hero-eyebrow {
  font-family: var(--body); font-size: 11px; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--on-hero-soft); font-weight: 600;
}
.hero h1 {
  color: #fff; font-family: var(--display); font-weight: 400;
  font-size: clamp(44px, 5.6vw, 72px); line-height: 1.04; letter-spacing: -0.02em;
  margin: 18px 0 0;
}
.hero h1 .accent-italic { color: var(--orange); font-style: italic; }
.hero .sub { color: var(--on-hero-soft); font-size: 18px; max-width: 56ch; }
.hero .sub strong { color: #fff; font-weight: 600; }
.hero .sub em { font-style: italic; color: var(--orange); font-weight: inherit; }
.hero-ctas { display: flex; gap: 12px; margin-top: 32px; flex-wrap: wrap; }
.hero .cert-pill { background: rgba(0,0,0,0.55); border: 1px solid rgba(255,255,255,0.16); }
.cert-strip-hero { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 8px; }

/* ===== shared card primitives ===== */
.card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--r);
  box-shadow: var(--sh-card);
  padding: 28px;
}
.badge {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 9px; border-radius: var(--r-sm);
  font-family: var(--body); font-size: 10px; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase;
  flex: 0 0 auto; white-space: nowrap;
}
.badge.orange { background: var(--orange-light); color: var(--orange-dark); border: 1px solid var(--orange); }
.badge.dark   { background: var(--black); color: var(--white); }
.badge.green  { background: var(--green-tint); color: var(--green); border: 1px solid var(--green); }
.badge.placeholder {
  background: transparent; color: var(--gray-500);
  border: 1px dashed var(--gray-400);
  font-family: var(--mono); letter-spacing: 0.08em;
}

/* placeholder graphic for unavailable content */
.placeholder-block {
  background: repeating-linear-gradient(
    135deg,
    var(--gray-100) 0 14px,
    var(--gray-200) 14px 16px
  );
  border: 1px dashed var(--gray-400);
  border-radius: var(--r);
  color: var(--gray-500);
  font-family: var(--mono); font-size: 11px; font-weight: 500;
  letter-spacing: 0.1em; text-transform: uppercase;
  display: flex; align-items: center; justify-content: center;
  text-align: center;
  padding: 32px;
  min-height: 140px;
}

/* ===== bottom CTA banner ===== */
.cta-banner {
  background: #1A1108;
  color: var(--white);
  padding: 80px 0;
  position: relative; overflow: hidden;
  border-top: 4px solid var(--orange);
}
.cta-banner::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 1000px 500px at 78% 25%, rgba(245,166,35,0.28), transparent 60%),
    radial-gradient(ellipse 700px 400px at 10% 90%, rgba(245,166,35,0.10), transparent 65%);
  pointer-events: none;
}
.cta-banner .container-wide { position: relative; }
.cta-banner h2 {
  font-family: var(--display); font-weight: 400; color: #fff;
  font-size: clamp(32px, 4vw, 52px); line-height: 1.05; letter-spacing: -0.018em;
  margin: 0; max-width: 22ch;
}
.cta-banner h2 .accent-italic { color: var(--orange); font-style: italic; }
.cta-banner p {
  color: rgba(255,255,255,0.65); font-size: 18px; margin: 16px 0 0;
  max-width: 50ch;
}
.cta-banner .cta-row {
  display: flex; gap: 12px; margin-top: 32px; flex-wrap: wrap;
}
.cta-banner .cert-strip { margin-top: 28px; opacity: 0.7; }

/* ===== responsive ===== */
@media (max-width: 1100px) {
  .footer-top { grid-template-columns: 1fr; gap: 32px; }
  .footer-cols { grid-template-columns: 1fr 1fr 1fr; }
}
@media (max-width: 820px) {
  .nav-links { display: none; }
  .footer-cols { grid-template-columns: 1fr 1fr; }
  .section { padding: 64px 0; }
  .hero { padding: 56px 0 72px; }
}

/* ===== mobile burger nav (added 2026-06-03) ===== */
.nav-burger {
  display: none;
  flex-direction: column; justify-content: center; gap: 5px;
  width: 44px; height: 40px; padding: 9px 10px; box-sizing: border-box;
  background: transparent; border: 1px solid var(--gray-200, #e6e8f0);
  border-radius: 10px; cursor: pointer; -webkit-tap-highlight-color: transparent;
}
.nav-burger span {
  display: block; height: 2px; width: 100%; background: var(--black, #15163B);
  border-radius: 2px; transition: transform .2s ease, opacity .2s ease;
}
.nav-burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
@media (max-width: 820px) {
  .nav-burger { display: inline-flex; order: 3; margin-left: 10px; }
  .nav-cta { order: 2; margin-left: auto; }
  .nav-links {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0; margin: 0; padding: 6px 0;
    background: #FEF3DC;
    border-bottom: 3px solid var(--blue, #507CBD);
    box-shadow: 0 14px 26px rgba(20,48,99,0.12);
  }
  .mn-nav.open .nav-links { display: flex; }
  .nav-links a { padding: 13px 24px; font-size: 16px; }
}

/* portal "Log in" button — desktop button; mobile = item inside burger dropdown */
.nav-login-m { display: none; }
@media (max-width: 820px) {
  .nav-login { display: none; }
  .nav-links .nav-login-m { display: block; }
}
