/* Shared marketing stylesheet. Tokens mirror portal/src/index.css (mint on
   pure black, Inter Tight display, Inter body, Poppins button labels only).
   Page-specific layout stays inline in each page; this file carries the
   tokens, the header/footer/sticky-bar chrome, breakpoints and a11y rules. */

:root {
  --mint: #9FE6D5;
  --mint-hover: #B9F0E3;
  --on-mint: #072a22;
  --bg: #000000;
  --surface: #141414;
  --surface-2: #232726;
  --line: rgba(255,255,255,.07);
  --text-hi: #FFFFFF;
  --text-2: #A9B1AE;
  --text-3: #8A918E;
  --text-4: #6B7370;
  --font-display: 'Inter Tight', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-button: 'Poppins', var(--font-body);
  --r-field: 12px;
  --r-card: 18px;
  --r-pill: 999px;
  --motion-fast: 150ms;
  --motion-base: 220ms;
  --motion-gentle: 350ms;
  --glow: 0 14px 30px -8px rgba(159,230,213,.55);
  --sticky-h: 76px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; padding: 0; background: var(--bg); color: var(--text-hi); }
body { font-family: var(--font-body); -webkit-font-smoothing: antialiased; }
h1, h2, h3 { font-family: var(--font-display); text-wrap: balance; }
img, video { max-width: 100%; }
a { color: var(--mint); text-decoration: none; }
a:hover { color: var(--mint-hover); }
:focus-visible { outline: 2px solid var(--mint); outline-offset: 3px; }
.btn { font-family: var(--font-button); color: var(--on-mint) !important; font-weight: 700 !important; letter-spacing: 0; }
.btn:hover { color: var(--on-mint) !important; box-shadow: var(--glow); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 40;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px clamp(20px, 5vw, 64px);
  backdrop-filter: blur(14px); background: rgba(0,0,0,.6);
  border-bottom: 1px solid rgba(255,255,255,.06);
  transition: padding var(--motion-gentle) ease, background var(--motion-gentle) ease, border-color var(--motion-gentle) ease;
}
.site-header.is-scrolled { padding-top: 11px; padding-bottom: 11px; background: rgba(0,0,0,.82); border-bottom-color: rgba(255,255,255,.10); box-shadow: 0 10px 34px rgba(0,0,0,.4); }
.site-header nav { display: flex; align-items: center; gap: clamp(12px, 2.2vw, 28px); }
.site-header nav a { display: inline-flex; align-items: center; min-height: 40px; }
.site-header .logo { display: flex; align-items: center; }
.site-header .logo img { height: 26px; width: 98px; max-width: none; display: block; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: clamp(32px, 5vh, 48px) clamp(20px, 5vw, 64px); }
.site-footer .inner { max-width: 1160px; margin: 0 auto; display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 24px 32px; }
.site-footer .brand { max-width: 300px; color: var(--text-3); font-size: .9rem; font-weight: 500; line-height: 1.5; }
.site-footer .brand img { height: 22px; width: 83px; max-width: none; display: block; margin-bottom: 12px; }
.site-footer .links { display: flex; flex-wrap: wrap; gap: 4px 20px; }
.site-footer .links a, .site-footer button.linklike { display: inline-block; padding: 8px 0; color: var(--text-2); font-weight: 600; font-size: .9rem; font-family: inherit; background: none; border: 0; cursor: pointer; }
.site-footer .links a:hover, .site-footer button.linklike:hover { color: var(--text-hi); }
.site-footer .legal { width: 100%; color: var(--text-3); font-size: .85rem; font-weight: 500; }

/* Breakpoint-driven layout (was JS resize handlers) */
.desktop-only { display: none; }
.nav-secondary { display: inline-flex; }
[data-ref="hiwWide"] { display: block; }
[data-ref="hiwStack"] { display: none; }
[data-ref="grid"] { display: grid; grid-template-columns: repeat(2, 1fr); }
[data-ref="rolesGrid"] { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(210px, 100%), 1fr)); }
@media (min-width: 760px) {
  .desktop-only { display: flex; }
  [data-ref="grid"] { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 1000px) {
  [data-ref="grid"] { grid-template-columns: repeat(5, 1fr); }
}
@media (max-width: 759px) {
  .nav-secondary, .site-header nav a.nav-secondary { display: none; }
  [data-ref="hiwWide"] { display: none; }
  [data-ref="hiwStack"] { display: flex; }
  .mobile-hide { display: none !important; }
}

/* Sticky mobile CTA (role pages) */
.sticky-cta {
  display: none; position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
  align-items: center; justify-content: space-between; gap: 12px;
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  background: rgba(0,0,0,.9); backdrop-filter: blur(14px); border-top: 1px solid rgba(255,255,255,.1);
  transform: translateY(110%); transition: transform var(--motion-gentle) cubic-bezier(.22,1,.36,1);
}
@media (max-width: 759px) {
  .sticky-cta { display: flex; }
  .sticky-cta.is-shown { transform: none; }
  body.has-sticky { padding-bottom: calc(var(--sticky-h) + env(safe-area-inset-bottom)); }
  body.consent-open .sticky-cta { transform: translateY(110%); }
}
@media (max-width: 400px) { .sticky-cta .sub { display: none; } }

/* Logo wall (was two marquees) */
.logo-wall { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: clamp(22px, 4vw, 44px) clamp(28px, 5vw, 64px); padding: 0 clamp(20px, 5vw, 64px); max-width: 1160px; margin: 0 auto; }
.logo-wall img { max-height: clamp(34px, 4.5vw, 52px); max-width: clamp(96px, 13vw, 150px); width: auto; height: auto; object-fit: contain; opacity: .82; display: block; }

/* Hero stat rows */
.stat-row { display: grid; grid-template-columns: repeat(3, auto); justify-content: center; gap: 18px clamp(24px, 4vw, 48px); margin-top: 42px; padding-top: 28px; border-top: 1px solid rgba(255,255,255,.08); }
.stat-row .n { font-family: var(--font-display); font-size: clamp(1.35rem, 2.4vw, 1.7rem); font-weight: 800; color: var(--mint); line-height: 1; }
.stat-row .l { margin-top: 6px; color: var(--text-2); font-weight: 500; font-size: clamp(.8rem, 1.2vw, .9rem); }
@media (max-width: 420px) { .stat-row { gap: 16px 18px; } }

/* Cookie banner */
.consent-card { pointer-events: auto; max-width: 560px; width: 100%; background: var(--surface); border: 1px solid rgba(255,255,255,.1); border-radius: var(--r-card); padding: 18px 20px; box-shadow: 0 18px 50px rgba(0,0,0,.6); }
.consent-card p { margin: 0 0 14px; color: var(--text-2); font-size: .92rem; line-height: 1.5; font-weight: 500; }
.consent-card .row { display: flex; flex-wrap: wrap; gap: 10px; }
.consent-card button { font-family: var(--font-button); font-weight: 700; font-size: .92rem; padding: 12px 20px; border-radius: var(--r-pill); cursor: pointer; }
.consent-card .accept { background: var(--mint); color: var(--on-mint); border: 1px solid var(--mint); }
.consent-card .essential { background: transparent; color: var(--text-hi); border: 1px solid rgba(255,255,255,.2); }

/* Motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* Hidden always wins over inline display values */
[hidden] { display: none !important; }
.desktop-hide { display: block; }
@media (min-width: 760px) { .desktop-hide { display: none; } }
