/* =========================================================
   ActiveAdsNext — Shared Stylesheet
   Palette derived from brand mark: deep navy, teal, sky cyan.
   Solid colours only — no gradients, per brand guidance.
   ========================================================= */

:root {
  /* Brand palette */
  --navy-deep: #072736;
  --navy: #0B3549;
  --navy-soft: #164257;
  --teal: #2F6873;
  --teal-soft: #3E7C87;
  --cyan: #3FC0DD;
  --cyan-deep: #1FA0C0;
  --cyan-pale: #DEF4F9;
  --btn-accent: #17879F;
  --btn-accent-hover: #106A80;

  /* Neutrals */
  --bg: #F6FAFB;
  --bg-alt: #EEF6F7;
  --surface: #FFFFFF;
  --ink: #12262E;
  --ink-soft: #4B6672;
  --ink-faint: #7C929A;
  --border: #DCE8EA;
  --border-soft: #E9F1F2;

  /* Utility */
  --amber: #C9821F;
  --green: #2B8A5E;
  --red: #C24A3F;

  /* Type */
  --font-display: 'Space Grotesk', 'Segoe UI', sans-serif;
  --font-body: 'Inter', 'Segoe UI', sans-serif;
  --font-mono: 'IBM Plex Mono', 'Courier New', monospace;

  /* Layout */
  --max-width: 1200px;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --shadow-sm: 0 1px 2px rgba(7, 39, 54, 0.06), 0 1px 1px rgba(7, 39, 54, 0.04);
  --shadow-md: 0 8px 24px rgba(7, 39, 54, 0.10);
  --shadow-lg: 0 20px 48px rgba(7, 39, 54, 0.14);

  --topbar-h: 40px;
  --nav-h: 92px;
}

/* =========================================================
   Reset
   ========================================================= */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--navy);
  line-height: 1.15;
  margin: 0 0 .6em;
  letter-spacing: -0.01em;
}
p { margin: 0 0 1em; color: var(--ink-soft); }
button { font-family: inherit; cursor: pointer; }
input, select, textarea { font-family: inherit; font-size: 1rem; }

::selection { background: var(--cyan); color: var(--navy-deep); }

:focus-visible {
  outline: 2px solid var(--cyan-deep);
  outline-offset: 2px;
  border-radius: 3px;
}

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

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 28px;
}

.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* =========================================================
   Utility bar (thin strip above navigation)
   ========================================================= */
.utility-bar {
  background: var(--navy-deep);
  color: #C9DEE4;
  font-size: 0.8rem;
  height: var(--topbar-h);
}
.utility-bar .container {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.utility-left {
  display: flex;
  align-items: center;
  gap: 22px;
}
.utility-left a {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #C9DEE4;
  opacity: 0.92;
  transition: opacity .2s ease, color .2s ease;
  white-space: nowrap;
}
.utility-left a:hover { opacity: 1; color: var(--cyan); }
.utility-left svg { width: 14px; height: 14px; flex-shrink: 0; }
.utility-right {
  display: flex;
  align-items: stretch;
  height: 100%;
  gap: 18px;
}
.utility-tagline {
  color: #8FAAB3;
  letter-spacing: .02em;
}

/* Full-height rectangular highlight, flush top-to-bottom of the thin bar */
.btn-become-publisher {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  align-self: stretch;
  height: 100%;
  background: #1D93AD;
  color: #fff;
  font-weight: 700;
  padding: 0 20px;
  border-radius: 0;
  font-size: 0.8rem;
  transition: background .2s ease;
}
.btn-become-publisher:hover { background: #23A2BE; color: #fff; }

.login-dropdown { position: relative; display: flex; align-items: center; }
.login-toggle {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: transparent;
  border: 1px solid rgba(255,255,255,0.22);
  color: #E7F3F6;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.8rem;
  transition: border-color .2s ease, background .2s ease;
}
.login-toggle:hover { border-color: var(--cyan); background: rgba(63,192,221,0.08); }
.login-toggle svg.chev { width: 10px; height: 10px; transition: transform .2s ease; }
.login-dropdown.open .login-toggle svg.chev { transform: rotate(180deg); }

.login-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  min-width: 200px;
  padding: 8px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity .18s ease, transform .18s ease, visibility .18s ease;
  z-index: 200;
}
.login-dropdown.open .login-menu {
  opacity: 1; visibility: visible; transform: translateY(0);
}
.login-menu a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  color: var(--navy);
  font-size: 0.9rem;
  font-weight: 500;
  transition: background .15s ease;
}
.login-menu a:hover { background: var(--bg-alt); color: var(--cyan-deep); }
.login-menu svg { width: 16px; height: 16px; color: var(--teal); flex-shrink: 0; }
.login-menu .menu-divider { height: 1px; background: var(--border-soft); margin: 6px 4px; }

/* =========================================================
   Header wrapper (sticky) + main nav
   ========================================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 500;
  width: 100%;
}

.navbar {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  height: var(--nav-h);
  transition: box-shadow .25s ease, height .25s ease;
}
.site-header.scrolled .navbar {
  box-shadow: var(--shadow-md);
  height: 74px;
}
.navbar .container {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}
.brand img {
  height: 66px;
  width: auto;
  transition: height .25s ease;
}
.site-header.scrolled .brand img { height: 54px; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: 1;
  justify-content: center;
}
.nav-links a {
  position: relative;
  padding: 10px 16px;
  font-size: 0.96rem;
  font-weight: 500;
  color: var(--navy);
  border-radius: 999px;
  transition: color .2s ease, background .2s ease;
}
.nav-links a::after {
  content: '';
  position: absolute;
  left: 16px; right: 16px; bottom: 6px;
  height: 2px;
  background: var(--cyan);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .22s ease;
}
.nav-links a:hover { color: var(--cyan-deep); }
.nav-links a:hover::after { transform: scaleX(1); }
.nav-links a.active { color: var(--cyan-deep); font-weight: 600; }
.nav-links a.active::after { transform: scaleX(1); }
.nav-cta-mobile { display: none; }
.nav-links a.btn-primary,
.nav-links a.btn-primary:hover { color: #fff; }

.nav-cta { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 12px 24px;
  border-radius: 999px;
  border: 2px solid transparent;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, color .18s ease, border-color .18s ease;
  white-space: nowrap;
}
.btn-primary {
  background: var(--btn-accent);
  color: #fff;
}
.btn-primary:hover {
  background: var(--btn-accent-hover);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 10px 22px rgba(16,106,128,0.32);
}
.btn-outline {
  background: transparent;
  border-color: var(--navy);
  color: var(--navy);
}
.btn-outline:hover {
  border-color: var(--cyan-deep);
  color: var(--cyan-deep);
  transform: translateY(-2px);
}
.btn-outline-light {
  background: transparent;
  border-color: rgba(255,255,255,0.5);
  color: #fff;
}
.btn-outline-light:hover {
  border-color: var(--cyan);
  color: var(--cyan);
  transform: translateY(-2px);
}
.btn-ghost-navy {
  background: var(--navy-deep);
  color: #fff;
}
.btn-ghost-navy:hover {
  background: var(--navy);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.btn-lg { padding: 15px 32px; font-size: 1.02rem; }
.btn-block { width: 100%; }
.btn svg { width: 18px; height: 18px; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  padding: 8px;
  color: var(--navy);
}
.nav-toggle svg { width: 26px; height: 26px; }

/* =========================================================
   Mobile nav
   ========================================================= */
@media (max-width: 980px) {
  .nav-links {
    position: fixed;
    top: calc(var(--topbar-h) + var(--nav-h));
    left: 0; right: 0;
    background: var(--surface);
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    padding: 18px 18px 26px;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-md);
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height .3s ease, opacity .25s ease;
  }
  .nav-links.open { max-height: 560px; opacity: 1; }
  .nav-links li { border-bottom: 1px solid var(--border-soft); }
  .nav-links li:last-child { border-bottom: none; }
  .nav-links a { display: block; padding: 16px 14px; border-radius: var(--radius-sm); }
  .nav-links a::after { display: none; }

  /* Get Started moves into the hamburger menu on mobile/tablet */
  .nav-cta-mobile { display: block; margin-top: 8px; border-bottom: none !important; }
  .nav-cta-mobile a.btn-primary { width: 100%; padding: 14px 18px; }
  .nav-cta > a.btn-primary { display: none; }

  .nav-toggle { display: inline-flex; }
  .utility-tagline { display: none; }
  .utility-left a span.utility-text { display: none; }
}

@media (max-width: 640px) {
  .brand img { height: 52px; }
  .site-header.scrolled .brand img { height: 44px; }
  :root { --nav-h: 88px; }
  .utility-left { gap: 14px; }
}

/* =========================================================
   Hero
   ========================================================= */
.hero {
  background: var(--navy-deep);
  color: #fff;
  position: relative;
  overflow: hidden;
  padding: 96px 0 108px;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 1px 1px, rgba(63,192,221,0.16) 1.5px, transparent 1.5px);
  background-size: 34px 34px;
  opacity: 0.6;
  pointer-events: none;
}
.hero .container {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--cyan);
  background: rgba(63,192,221,0.12);
  border: 1px solid rgba(63,192,221,0.3);
  padding: 7px 14px;
  border-radius: 999px;
  margin-bottom: 22px;
}
.hero-eyebrow .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--cyan);
  animation: pulseDot 2s ease-in-out infinite;
}
@keyframes pulseDot {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(63,192,221,.5); }
  50% { opacity: .55; box-shadow: 0 0 0 5px rgba(63,192,221,0); }
}
.hero h1 {
  color: #fff;
  font-size: clamp(2.1rem, 4vw, 3.15rem);
  margin-bottom: 20px;
}
.hero h1 em {
  font-style: normal;
  color: var(--cyan);
}
.hero p.lead {
  color: #B9D2D9;
  font-size: 1.12rem;
  max-width: 540px;
  margin-bottom: 32px;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 40px; }
.hero-meta {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: #7FA0AA;
}
.hero-meta strong { color: #E7F3F6; font-weight: 600; }

.hero-art { position: relative; z-index: 2; }

/* =========================================================
   Network graphic (signature element)
   ========================================================= */
.network-graphic { width: 100%; height: auto; }
.network-graphic .edge {
  stroke: rgba(63,192,221,0.45);
  stroke-width: 1.4;
  fill: none;
  stroke-dasharray: 6 7;
  animation: dashFlow 5s linear infinite;
}
.network-graphic .edge.slow { animation-duration: 8s; opacity: .55; }
@keyframes dashFlow { to { stroke-dashoffset: -260; } }
.network-graphic .node-core { fill: var(--cyan); }
.network-graphic .node-outer { fill: #12495A; stroke: var(--teal-soft); stroke-width: 1; }
.network-graphic .node-pulse {
  fill: none; stroke: var(--cyan); stroke-width: 1.4; opacity: 0;
  transform-origin: center;
  animation: nodePulse 3.2s ease-out infinite;
}
@keyframes nodePulse {
  0% { opacity: .65; transform: scale(0.6); }
  70% { opacity: 0; transform: scale(1.9); }
  100% { opacity: 0; }
}
.network-graphic text {
  font-family: var(--font-mono);
  font-size: 10px;
  fill: #9FC1CB;
  letter-spacing: .04em;
}

/* =========================================================
   Sections
   ========================================================= */
.section { padding: 88px 0; }
.section-alt { background: var(--bg-alt); }
.section-navy { background: var(--navy-deep); color: #fff; }
.section-tight { padding: 64px 0; }
.section-head {
  max-width: 680px;
  margin: 0 0 48px;
}
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.eyebrow {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--cyan-deep);
  margin-bottom: 14px;
  font-weight: 600;
}
.section-navy .eyebrow, .section-navy p { color: var(--cyan); }
.section-navy p { color: #B9D2D9; }
.section-navy h2, .section-navy h3 { color: #fff; }
.section-head h2 { font-size: clamp(1.7rem, 3vw, 2.35rem); }
.section-head p.lead { font-size: 1.08rem; }

/* Grids */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
@media (max-width: 980px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .hero .container { grid-template-columns: 1fr; }
  .hero-art { display: none; } /* network diagram is desktop-only */
  .grid-2 { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

/* Cards */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 30px;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: var(--cyan);
}
.card-icon {
  width: 48px; height: 48px;
  border-radius: var(--radius-md);
  background: var(--cyan-pale);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
  color: var(--cyan-deep);
}
.card-icon svg { width: 24px; height: 24px; }
.card h3 { font-size: 1.15rem; margin-bottom: 10px; }
.card p { margin-bottom: 0; font-size: 0.95rem; }

.card-dark {
  background: var(--navy-soft);
  border: 1px solid rgba(255,255,255,0.08);
}
.card-dark h3 { color: #fff; }
.card-dark p { color: #B9D2D9; }
.card-dark .card-icon { background: rgba(63,192,221,0.14); color: var(--cyan); }

/* Vertical cards (with image top) */
.vertical-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform .25s ease, box-shadow .25s ease;
  display: flex;
  flex-direction: column;
}
.vertical-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.vertical-card .v-visual {
  height: 150px;
  position: relative;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.vertical-card .v-visual svg { width: 64px; height: 64px; position: relative; z-index: 2; }
.vertical-card .v-body { padding: 24px; flex: 1; display: flex; flex-direction: column; }
.vertical-card .v-body h3 { font-size: 1.08rem; margin-bottom: 8px; }
.vertical-card .v-body p { font-size: 0.92rem; flex: 1; }
.v-tag {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: .07em;
  font-weight: 600;
  padding: 5px 10px;
  border-radius: 999px;
  margin-top: 4px;
  align-self: flex-start;
}
.v-tag.primary { background: var(--cyan-pale); color: var(--cyan-deep); }
.v-tag.active { background: var(--bg-alt); color: var(--teal); border: 1px solid var(--border); }

/* Vertical background tints (solid, brand-adjacent, not photographic) */
.v-visual.tint-1 { background: #123A47; }
.v-visual.tint-2 { background: #164257; }
.v-visual.tint-3 { background: #1B4C5C; }
.v-visual.tint-4 { background: #205465; }
.v-visual.tint-5 { background: #235A6C; }
.v-visual.tint-6 { background: #276073; }
.v-visual.tint-7 { background: #2A6679; }
.v-visual.tint-8 { background: #2F6873; }
.v-visual svg { color: var(--cyan); }

/* Process steps */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; counter-reset: step; }
@media (max-width: 980px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .steps { grid-template-columns: 1fr; } }
.step { position: relative; padding-top: 6px; }
.step-num {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--cyan-deep);
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
}
.step-num::before {
  content: '';
  width: 30px; height: 1px;
  background: var(--cyan-deep);
}
.step h4 { font-size: 1.02rem; margin-bottom: 8px; }
.step p { font-size: 0.92rem; margin-bottom: 0; }

/* Split section */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
@media (max-width: 980px) { .split { grid-template-columns: 1fr; gap: 34px; } }
.split.reverse .split-visual { order: 2; }
.split-visual {
  background: var(--navy-deep);
  border-radius: var(--radius-lg);
  padding: 40px;
  min-height: 300px;
  display: flex; align-items: center; justify-content: center;
  position: relative;
  overflow: hidden;
}
.split ul.check-list { margin-top: 20px; }
.check-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 14px;
  color: var(--ink);
  font-size: 0.98rem;
}
.check-list svg {
  width: 20px; height: 20px; flex-shrink: 0; margin-top: 1px;
  color: var(--green);
}

/* CTA banner */
.cta-banner {
  background: var(--navy-deep);
  border-radius: var(--radius-lg);
  padding: 56px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-banner::before {
  content: '';
  position: absolute; inset: 0;
  background-image: radial-gradient(circle at 1px 1px, rgba(63,192,221,0.18) 1.5px, transparent 1.5px);
  background-size: 30px 30px;
}
.cta-banner > * { position: relative; z-index: 2; }
.cta-banner h2 { color: #fff; margin-bottom: 14px; }
.cta-banner p { color: #B9D2D9; max-width: 520px; margin: 0 auto 28px; }
.cta-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* Stat strip */
.stat-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--surface);
}
.stat-strip .stat {
  padding: 26px 20px;
  text-align: center;
  border-right: 1px solid var(--border);
}
.stat-strip .stat:last-child { border-right: none; }
.stat .stat-val {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--navy);
  font-weight: 700;
  margin-bottom: 4px;
}
.stat .stat-label { font-size: 0.82rem; color: var(--ink-faint); }
@media (max-width: 780px) {
  .stat-strip { grid-template-columns: repeat(2, 1fr); }
  .stat-strip .stat:nth-child(2) { border-right: none; }
}

/* =========================================================
   Reveal-on-scroll animation
   ========================================================= */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .7s cubic-bezier(.2,.7,.2,1), transform .7s cubic-bezier(.2,.7,.2,1);
}
.reveal.in-view { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: .08s; }
.reveal-delay-2 { transition-delay: .16s; }
.reveal-delay-3 { transition-delay: .24s; }
.reveal-delay-4 { transition-delay: .32s; }

/* =========================================================
   Page hero (inner pages)
   ========================================================= */
.page-hero {
  background: var(--navy-deep);
  color: #fff;
  padding: 68px 0 76px;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute; inset: 0;
  background-image: radial-gradient(circle at 1px 1px, rgba(63,192,221,0.14) 1.5px, transparent 1.5px);
  background-size: 34px 34px;
}
.page-hero .container { position: relative; z-index: 2; }
.page-hero h1 { color: #fff; font-size: clamp(1.9rem, 3.4vw, 2.7rem); margin-bottom: 14px; }
.page-hero p.lead { color: #B9D2D9; max-width: 620px; font-size: 1.06rem; margin-bottom: 0; }
.breadcrumb {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: #7FA0AA;
  margin-bottom: 18px;
  letter-spacing: .03em;
}
.breadcrumb a { color: #9FC1CB; }
.breadcrumb a:hover { color: var(--cyan); }

/* =========================================================
   Footer
   ========================================================= */
.site-footer {
  background: var(--navy-deep);
  color: #9FBAC3;
  padding: 64px 0 0;
}
.footer-top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr 1.1fr;
  gap: 36px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.09);
}
@media (max-width: 980px) {
  .footer-top { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .footer-top { grid-template-columns: 1fr; }
}
.footer-brand img {
  height: 64px;
  margin-bottom: 18px;
  background: var(--bg);
  padding: 14px 22px;
  border-radius: 12px;
  display: inline-block;
}
.footer-brand p { color: #7FA0AA; font-size: 0.92rem; max-width: 280px; }
.footer-col h5 {
  font-family: var(--font-mono);
  color: #E7F3F6;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: 18px;
}
.footer-col ul li { margin-bottom: 11px; }
.footer-col a {
  color: #9FBAC3;
  font-size: 0.92rem;
  transition: color .2s ease, padding-left .2s ease;
}
.footer-col a:hover { color: var(--cyan); padding-left: 3px; }
.footer-contact li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.92rem;
}
.footer-contact svg { width: 16px; height: 16px; color: var(--cyan); flex-shrink: 0; }
.footer-quick-form {
  margin-top: 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 280px;
}
.footer-quick-form input,
.footer-quick-form textarea {
  border: 1.5px solid rgba(255,255,255,0.14);
  border-radius: var(--radius-sm);
  padding: 10px 13px;
  font-size: 0.9rem;
  font-family: var(--font-body);
  color: #E7F3F6;
  background: rgba(255,255,255,0.05);
  width: 100%;
  transition: border-color .2s ease, background .2s ease, box-shadow .2s ease;
}
.footer-quick-form input::placeholder,
.footer-quick-form textarea::placeholder { color: #6E8D97; }
.footer-quick-form textarea { resize: vertical; min-height: 72px; }
.footer-quick-form input:focus,
.footer-quick-form textarea:focus {
  outline: none;
  border-color: var(--cyan);
  background: rgba(255,255,255,0.09);
  box-shadow: 0 0 0 3px rgba(63,192,221,0.16);
}
.footer-quick-form .btn { justify-content: center; }
.footer-quick-success {
  display: none;
  align-items: center;
  gap: 9px;
  margin-top: 22px;
  max-width: 280px;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  background: rgba(63,192,221,0.1);
  border: 1px solid rgba(63,192,221,0.25);
  color: #CFEFF5;
  font-size: 0.88rem;
}
.footer-quick-success svg { width: 18px; height: 18px; color: var(--cyan); flex-shrink: 0; }
.footer-quick-success.show { display: flex; }
.footer-quick-form.hide { display: none; }

.footer-bottom {
  padding: 22px 0 26px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.84rem;
  color: #6E8D97;
}
.footer-legal { display: flex; gap: 20px; flex-wrap: wrap; }
.footer-legal a { color: #6E8D97; }
.footer-legal a:hover { color: var(--cyan); }

/* =========================================================
   Forms
   ========================================================= */
.form-shell {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-md);
}
@media (max-width: 640px) { .form-shell { padding: 26px 20px; } }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 22px; }
@media (max-width: 720px) { .form-grid { grid-template-columns: 1fr; } }
.field { display: flex; flex-direction: column; gap: 7px; }
.field.full { grid-column: 1 / -1; }
.field label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--navy);
}
.field .hint { font-size: 0.78rem; color: var(--ink-faint); font-weight: 400; }
.field input[type="text"],
.field input[type="email"],
.field input[type="tel"],
.field input[type="url"],
.field select,
.field textarea {
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  font-size: 0.95rem;
  color: var(--ink);
  background: var(--bg);
  transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
  width: 100%;
}
.field textarea { resize: vertical; min-height: 100px; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--cyan-deep);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(63,192,221,0.14);
}
.field select { appearance: none; -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%234B6672'%3E%3Cpath fill-rule='evenodd' d='M5.23 7.21a.75.75 0 011.06.02L10 11.19l3.71-3.96a.75.75 0 111.08 1.04l-4.25 4.5a.75.75 0 01-1.08 0l-4.25-4.5a.75.75 0 01.02-1.06z' clip-rule='evenodd'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 18px;
  padding-right: 36px;
}

.phone-field { display: flex; gap: 8px; }
.phone-field select {
  flex: 0 0 132px;
  min-width: 0;
}
.phone-field input { flex: 1; min-width: 0; }

.checkbox-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.86rem;
  color: var(--ink-soft);
}
.checkbox-row input[type="checkbox"] {
  margin-top: 3px;
  width: 17px; height: 17px;
  accent-color: var(--cyan-deep);
  flex-shrink: 0;
}
.checkbox-row a { color: var(--cyan-deep); font-weight: 600; }
.checkbox-row a:hover { text-decoration: underline; }

.form-note {
  font-size: 0.8rem;
  color: var(--ink-faint);
  margin-top: 14px;
}

.form-success {
  display: none;
  text-align: center;
  padding: 50px 20px;
}
.form-success.show { display: block; }
.form-success .icon-circle {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: var(--cyan-pale);
  color: var(--cyan-deep);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 20px;
}
.form-success .icon-circle svg { width: 30px; height: 30px; }
.form-success h3 { margin-bottom: 8px; }
.form-success p { max-width: 380px; margin: 0 auto; }

/* Minimal publisher-interest teaser card on Publishers page */
.publisher-cta-card {
  background: var(--navy-deep);
  border-radius: var(--radius-lg);
  padding: 48px;
  color: #fff;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.publisher-cta-card::before {
  content: '';
  position: absolute; inset: 0;
  background-image: radial-gradient(circle at 1px 1px, rgba(63,192,221,0.16) 1.5px, transparent 1.5px);
  background-size: 30px 30px;
}
.publisher-cta-card > * { position: relative; z-index: 2; }
.publisher-cta-card h2 { color: #fff; }
.publisher-cta-card p { color: #B9D2D9; max-width: 520px; margin: 0 auto 26px; }

/* =========================================================
   Legal pages
   ========================================================= */
.legal-body { max-width: 820px; margin: 0 auto; }
.legal-body h2 { font-size: 1.3rem; margin-top: 2.2em; }
.legal-body h2:first-child { margin-top: 0; }
.legal-body h3 { font-size: 1.05rem; margin-top: 1.6em; color: var(--teal); }
.legal-body p, .legal-body li { color: var(--ink-soft); font-size: 0.98rem; }
.legal-body ul, .legal-body ol { padding-left: 1.3em; margin-bottom: 1em; }
.legal-body li { margin-bottom: 0.5em; }
.legal-body .updated {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--ink-faint);
  margin-bottom: 2.4em;
  display: inline-block;
  padding: 6px 12px;
  background: var(--bg-alt);
  border-radius: 999px;
}
.legal-toc {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 22px 26px;
  margin-bottom: 2.6em;
}
.legal-toc h4 { font-size: 0.85rem; text-transform: uppercase; letter-spacing: .06em; font-family: var(--font-mono); color: var(--teal); margin-bottom: 12px; }
.legal-toc ol { margin: 0; padding-left: 1.2em; columns: 2; column-gap: 24px; }
.legal-toc li { font-size: 0.88rem; margin-bottom: 6px; }
.legal-toc a { color: var(--navy); }
.legal-toc a:hover { color: var(--cyan-deep); }
@media (max-width: 640px) { .legal-toc ol { columns: 1; } }

/* Value/role split for advertisers/publishers */
.role-tabs { display: flex; gap: 10px; margin-bottom: 40px; flex-wrap: wrap; }
.icon-tick { color: var(--green); }

/* Small pill labels used in various spots */
.pill-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--teal);
  background: var(--cyan-pale);
  padding: 5px 12px;
  border-radius: 999px;
  font-weight: 700;
}

/* Founding timeline (About) */
.timeline { position: relative; padding-left: 34px; }
.timeline::before {
  content: '';
  position: absolute; left: 7px; top: 6px; bottom: 6px;
  width: 2px; background: var(--border);
}
.timeline-item { position: relative; padding-bottom: 34px; }
.timeline-item:last-child { padding-bottom: 0; }
.timeline-item::before {
  content: '';
  position: absolute; left: -34px; top: 4px;
  width: 14px; height: 14px; border-radius: 50%;
  background: var(--cyan); border: 3px solid var(--cyan-pale);
}
.timeline-item h4 { font-size: 1rem; margin-bottom: 6px; }
.timeline-item .t-date {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  color: var(--cyan-deep);
  font-weight: 700;
  display: block;
  margin-bottom: 4px;
}

/* Values grid (About) */
.value-item { display: flex; gap: 16px; }
.value-item .card-icon { flex-shrink: 0; margin-bottom: 0; }
.value-item h4 { font-size: 1rem; margin-bottom: 6px; }
.value-item p { font-size: 0.92rem; margin-bottom: 0; }

.subtle-note {
  font-size: 0.86rem;
  color: var(--ink-faint);
}
