/* Advance CMO -- global stylesheet
   Palette and contrast ratios verified against WCAG AA. See build spec
   Section 6.1 for the light-theme source values; dark-theme values were
   computed and checked the same way (all pairs >= 4.5:1 for text,
   >= 3:1 for large text / UI components). */

:root {
  --bg: #FFFFFF;
  --bg-alt: #F5F7FA;
  --text: #0B2545;
  --text-muted: #45526B;
  --header-bg: #0B2545;
  --header-text: #FFFFFF;
  --footer-bg: #0B2545;
  --footer-text: #FFFFFF;
  --footer-text-muted: #B7C4D9;
  --accent: #4A90A4;
  --border: #E2E8F0;
  --card-bg: #FFFFFF;
  --card-border: #E2E8F0;
  --cta-bg: #FF6B35;
  --cta-text: #0B2545;
  --focus-ring: #4A90A4;
  --shadow: 0 4px 20px rgba(11, 37, 69, 0.08);
}

[data-theme="dark"] {
  --bg: #0A1626;
  --bg-alt: #111C2E;
  --text: #E7ECF3;
  --text-muted: #A9B7CC;
  --header-bg: #0B2545;
  --header-text: #FFFFFF;
  --footer-bg: #0B2545;
  --footer-text: #FFFFFF;
  --footer-text-muted: #B7C4D9;
  --accent: #6BB0C4;
  --border: #223250;
  --card-bg: #111C2E;
  --card-border: #223250;
  --cta-bg: #FF6B35;
  --cta-text: #0B2545;
  --focus-ring: #6BB0C4;
  --shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
}

/* ---------- Base ---------- */

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background-color: var(--bg);
  transition: background-color 0.2s ease, color 0.2s ease;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
}

h1, h2, h3, h4 {
  font-weight: 700;
  line-height: 1.25;
  margin: 0 0 0.6em;
}

h1 { font-size: clamp(2rem, 4vw, 2.75rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); }
h3 { font-size: 1.25rem; }

p { margin: 0 0 1em; }

.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 72px 0;
}

.section--alt {
  background-color: var(--bg-alt);
}

.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.75em;
}

.section-intro {
  max-width: 720px;
  margin: 0 auto 40px;
  text-align: center;
}

.section-intro p {
  color: var(--text-muted);
}

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

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--cta-bg);
  color: var(--cta-text);
  padding: 10px 16px;
  z-index: 1000;
  font-weight: 700;
}

.skip-link:focus {
  left: 12px;
  top: 12px;
}

a:focus-visible,
button:focus-visible,
.theme-toggle:focus-visible {
  outline: 3px solid var(--focus-ring);
  outline-offset: 2px;
}

/* ---------- Header ---------- */

.site-header {
  background-color: var(--header-bg);
  color: var(--header-text);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 24px;
}

.brand {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.brand img {
  height: 36px;
  width: auto;
  /* Source logo artwork is navy-on-transparent; header/footer are always
     navy, so the mark is forced to white via luminance inversion rather
     than shipping a second color variant of the asset. */
  filter: brightness(0) invert(1);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.main-nav ul {
  list-style: none;
  display: flex;
  gap: 24px;
  margin: 0;
  padding: 0;
}

.main-nav a {
  color: var(--header-text);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
}

.main-nav a:hover,
.main-nav a[aria-current="page"] {
  border-bottom-color: var(--cta-bg);
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid rgba(255,255,255,0.4);
  color: var(--header-text);
  border-radius: 6px;
  padding: 8px 10px;
  font-size: 1rem;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* Theme toggle: right-justified, ~90-95% across the header row */
.theme-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 999px;
  padding: 4px;
  cursor: pointer;
  color: var(--header-text);
  font-size: 0.75rem;
  font-weight: 700;
}

.theme-toggle .toggle-track {
  position: relative;
  width: 42px;
  height: 22px;
  background: rgba(255, 255, 255, 0.25);
  border-radius: 999px;
  transition: background-color 0.2s ease;
}

.theme-toggle .toggle-thumb {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #FFFFFF;
  transition: transform 0.2s ease;
}

.theme-toggle[aria-pressed="true"] .toggle-thumb {
  transform: translateX(20px);
}

.theme-toggle .toggle-label {
  padding: 0 6px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.header-cta {
  display: inline-block;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-block;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  border-radius: 8px;
  padding: 14px 28px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn-cta {
  background-color: var(--cta-bg);
  color: var(--cta-text);
}

.btn-cta:hover,
.btn-cta:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(255, 107, 53, 0.35);
}

.btn-cta-small {
  padding: 10px 20px;
  font-size: 0.9rem;
}

.cta-row {
  display: flex;
  justify-content: center;
  margin: 40px 0;
}

.cta-row--tight {
  margin: 24px 0 0;
}

/* ---------- Hero ---------- */

.hero {
  padding: 72px 0 56px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}

.hero-copy .eyebrow {
  color: var(--accent);
}

.hero-sub {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 560px;
}

.hero-cta {
  margin-top: 8px;
}

.hero-visual {
  background-color: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px;
}

.video-wrap {
  position: relative;
  line-height: 0;
  border-radius: 8px;
  overflow: hidden;
}

.hero-video {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
}

.video-toggle {
  position: absolute;
  bottom: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(11, 37, 69, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 50%;
  color: #FFFFFF;
  cursor: pointer;
  padding: 0;
}

.video-toggle svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.video-toggle .icon-play {
  display: none;
}

.video-toggle[aria-pressed="true"] .icon-pause {
  display: none;
}

.video-toggle[aria-pressed="true"] .icon-play {
  display: block;
}

/* ---------- Cards ---------- */

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.card {
  background-color: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 12px;
  padding: 28px;
}

.card h3 {
  margin-bottom: 0.4em;
}

.card p {
  color: var(--text-muted);
  margin-bottom: 0;
}

.card-icon {
  width: 40px;
  height: 40px;
  color: var(--accent);
  margin-bottom: 16px;
}

/* ---------- Certification placeholder cards ---------- */

.cert-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.cert-card {
  background-color: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 12px;
  padding: 22px;
  text-align: center;
}

.cert-card .cert-icon {
  width: 32px;
  height: 32px;
  margin: 0 auto 12px;
  color: var(--accent);
}

.cert-card strong {
  display: block;
  margin-bottom: 4px;
}

.cert-card span {
  display: block;
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* ---------- Problem / Solution two-column ---------- */

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}

.two-col h3 {
  margin-bottom: 0.75em;
}

.two-col ul {
  padding-left: 1.1em;
  color: var(--text-muted);
}

.two-col li {
  margin-bottom: 0.5em;
}

/* ---------- Benefits list ---------- */

.benefit-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}

.benefit {
  display: flex;
  gap: 16px;
}

.benefit-icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background-color: var(--bg-alt);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
}

.benefit-icon svg {
  width: 24px;
  height: 24px;
}

.benefit h3 {
  margin-bottom: 0.3em;
}

.benefit p {
  color: var(--text-muted);
  margin-bottom: 0;
}

/* ---------- FAQ ---------- */

.faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  border-bottom: 1px solid var(--border);
}

.faq-question {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  color: var(--text);
  font-family: inherit;
  font-weight: 700;
  font-size: 1.05rem;
  padding: 20px 40px 20px 0;
  cursor: pointer;
  position: relative;
}

.faq-question::after {
  content: "+";
  position: absolute;
  right: 8px;
  top: 18px;
  font-size: 1.4rem;
  color: var(--accent);
  transition: transform 0.2s ease;
}

.faq-question[aria-expanded="true"]::after {
  transform: rotate(45deg);
}

.faq-answer {
  color: var(--text-muted);
  padding: 0 0 20px;
}

.faq-answer[hidden] {
  display: none;
}

/* ---------- Offer stack ---------- */

.offer-box {
  background-color: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  padding: 36px;
  max-width: 760px;
  margin: 0 auto;
}

.offer-box ul {
  padding-left: 1.2em;
}

.offer-box li {
  margin-bottom: 0.6em;
}

/* ---------- Final CTA band ---------- */

.final-cta {
  background-color: var(--header-bg);
  color: var(--header-text);
  text-align: center;
  padding: 72px 0;
}

.final-cta h2 {
  color: var(--header-text);
}

.final-cta p {
  color: var(--footer-text-muted);
  max-width: 600px;
  margin: 0 auto 8px;
}

/* ---------- About page specific ---------- */

.founder-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 48px;
  align-items: center;
}

.founder-visual {
  background-color: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px;
}

.founder-visual img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  display: block;
}

/* ---------- Footer ---------- */

.site-footer {
  background-color: var(--footer-bg);
  color: var(--footer-text);
  padding: 48px 0 28px;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 32px;
}

.footer-brand img {
  height: 30px;
  margin-bottom: 12px;
  filter: brightness(0) invert(1);
}

.footer-brand p {
  color: var(--footer-text-muted);
  max-width: 320px;
  margin-bottom: 0;
}

.footer-nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-nav li {
  margin-bottom: 10px;
}

.footer-nav a {
  color: var(--footer-text-muted);
  text-decoration: none;
}

.footer-nav a:hover {
  color: var(--footer-text);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding-top: 20px;
  color: var(--footer-text-muted);
  font-size: 0.85rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px;
}

.footer-bottom a {
  text-decoration: none;
}

.footer-bottom a:hover,
.footer-bottom a:focus-visible {
  color: var(--footer-text);
}


/* ---------- Legal pages (Privacy Policy, Terms of Service) ---------- */

.legal-content {
  max-width: 760px;
  margin: 0 auto;
}

.legal-content h2 {
  margin-top: 1.8em;
}

.legal-content h2:first-child {
  margin-top: 0;
}

.legal-content p {
  color: var(--text-muted);
}

.legal-content .legal-meta {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 2em;
}

.legal-content .legal-disclaimer {
  margin-top: 2em;
  padding: 20px;
  background-color: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 12px;
  font-size: 0.9rem;
}

/* ---------- Responsive ---------- */

@media (max-width: 900px) {
  .hero-grid,
  .two-col,
  .founder-grid {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    order: -1;
  }

  .card-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .cert-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .benefit-list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .main-nav ul {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    background-color: var(--header-bg);
    padding: 16px 24px;
    gap: 12px;
    box-shadow: var(--shadow);
  }

  .main-nav[data-open="false"] ul {
    display: none;
  }

  .nav-toggle {
    display: inline-block;
  }

  .header-cta {
    display: none;
  }

  .card-grid,
  .cert-grid {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 48px 0;
  }
}

@media (max-width: 480px) {
  .header-inner {
    padding: 12px 16px;
  }

  .theme-toggle .toggle-label {
    display: none;
  }
}
