/* Brand tokens mirrored from pipeline/config.py — keep in sync by hand. */
:root {
  --ink: #1e1236;
  --violet: #7c3aed;
  --violet-light: #efe7fc;
  --paper: #fbfaf8;
  --slate: #3a3a3e;
  --badge-teal: #134e4a;
  --white: #ffffff;
  --rule: #e3e0e8;
  --max: 860px;
}

@font-face {
  font-family: "Poppins";
  src: url("assets/fonts/poppins/Poppins-SemiBold.ttf") format("truetype");
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: "Poppins";
  src: url("assets/fonts/poppins/Poppins-Bold.ttf") format("truetype");
  font-weight: 700;
  font-display: swap;
}

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Poppins", system-ui, sans-serif;
  font-weight: 600;
  line-height: 1.5;
}

h1, h2, h3 { font-weight: 700; margin: 0; line-height: 1.15; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.prose { max-width: var(--max); }

/* --- Nav --- */
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid var(--rule);
}
.nav-logo img { height: 28px; display: block; }
.nav-links {
  display: flex;
  gap: 28px;
  font-size: 15px;
}
.nav-links a:hover, .nav-links a:focus-visible { color: var(--violet); }
.nav-toggle {
  display: none;
  background: none;
  border: none;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  color: var(--ink);
}

/* --- Hero --- */
.hero {
  padding: 64px 24px 56px;
}
.hero-grid {
  max-width: 1120px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
}
.hero-grid > * { min-width: 0; }
img, svg { max-width: 100%; }
.hero h1 {
  font-size: 44px;
  letter-spacing: -0.5px;
  max-width: 420px;
}
.hero-sub {
  margin-top: 18px;
  max-width: 540px;
  font-size: 18px;
  font-weight: 500;
  color: var(--slate);
}
.hero-essence {
  margin-top: 10px;
  font-size: 15px;
  color: var(--violet);
}
.cta-row {
  margin-top: 28px;
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}
.btn {
  display: inline-block;
  padding: 13px 22px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
}
.btn-primary { background: var(--ink); color: var(--white); }
.btn-primary:hover, .btn-primary:focus-visible { background: var(--violet); }
.btn-secondary { background: transparent; color: var(--ink); border: 1px solid var(--rule); }
.btn-secondary:hover, .btn-secondary:focus-visible { border-color: var(--violet); color: var(--violet); }

/* --- Hero promise card (outcomes, not mechanism) --- */
.promise-card {
  background: var(--white);
  border: 1px solid var(--rule);
  border-radius: 14px;
  padding: 40px 32px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 260px;
}
.promise-quote {
  font-size: 22px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.4;
}
.promise-points {
  margin-top: 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.promise-points span {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 600;
  color: var(--slate);
}
.promise-points span::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--violet);
  flex-shrink: 0;
}

/* --- Section rhythm --- */
section { padding: 56px 24px; }
section h2 { font-size: 28px; }
.section-head { max-width: var(--max); margin-bottom: 32px; }
.section-head p { margin-top: 10px; color: var(--slate); font-size: 16px; font-weight: 500; }

/* --- Why us (differentiation cards) --- */
.why-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
  border-radius: 10px;
  overflow: hidden;
}
.why-card { background: var(--white); padding: 24px; }
.why-card h3 { font-size: 18px; }
.why-card p { margin-top: 8px; color: var(--slate); font-size: 15px; font-weight: 500; }

/* --- Strategy pillars --- */
.pillars {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.pillar { max-width: 220px; }
.pillar-mark {
  width: 28px;
  height: 3px;
  background: var(--violet);
  border-radius: 2px;
}
.pillar h3 { margin-top: 14px; font-size: 16px; }
.pillar p { margin-top: 8px; color: var(--slate); font-size: 14px; font-weight: 500; }

/* --- Closing CTA band --- */
.cta-band {
  background: var(--ink);
  color: var(--white);
  text-align: left;
}
.cta-band h2 { color: var(--white); }
.cta-band .section-head p { color: #c9c3df; }
.cta-band .cta-row { margin-top: 22px; }
.cta-band .btn-secondary { color: var(--white); border-color: #52525a; }
.cta-band .btn-secondary:hover { border-color: var(--white); color: var(--white); }
.cta-band .btn-primary { background: var(--violet); }
.cta-band .btn-primary:hover { background: var(--white); color: var(--ink); }

/* --- Values strapline --- */
.values-band {
  background: var(--ink);
  color: var(--white);
}
.values-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 28px;
  font-size: 20px;
  margin-top: 6px;
}
.values-band .section-head p { color: #c9c3df; }

/* --- Channels --- */
.channel-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.channel-chip {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  border: 1px solid var(--rule);
  border-radius: 999px;
  font-size: 14px;
  background: var(--white);
}
.channel-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}
.channel-logo {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

/* --- Clip library (coming soon) --- */
.library-card {
  border: 1px dashed var(--rule);
  border-radius: 14px;
  padding: 32px;
  max-width: var(--max);
}
.library-card p:first-child { font-size: 15px; font-weight: 700; color: var(--violet); }
.library-card p + p { margin-top: 10px; color: var(--slate); font-size: 16px; font-weight: 500; }

/* --- Footer --- */
footer {
  background: var(--slate);
  color: #d8d6db;
  padding: 40px 24px;
}
.footer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
  padding-bottom: 24px;
  border-bottom: 1px solid #52525a;
}
.footer-logo-chip {
  background: var(--white);
  border-radius: 8px;
  padding: 6px 10px;
  display: inline-flex;
}
.footer-logo-chip img { height: 22px; display: block; }
.footer-links { display: flex; gap: 22px; font-size: 14px; }
.footer-links a:hover, .footer-links a:focus-visible { color: var(--white); }
.footer-social {
  margin-top: 20px;
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 13px;
}
.footer-social-label { color: #a8a6ad; }
.footer-social-item { color: #76747c; } /* muted — not yet linked, see HTML comment */
.footer-legal-links {
  margin-top: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 12px;
}
.footer-legal-links a { color: #a8a6ad; }
.footer-legal-links a:hover, .footer-legal-links a:focus-visible { color: var(--white); }
.footer-legal {
  margin-top: 10px;
  font-size: 13px;
  color: #a8a6ad;
  max-width: 640px;
}

/* --- Policy pages (Privacy / Advertising / Corrections) --- */
.policy {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px 64px;
}
.policy .effective-date {
  color: var(--slate);
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 36px;
}
.policy h2 {
  font-size: 20px;
  margin-top: 40px;
  margin-bottom: 10px;
}
.policy h2:first-of-type { margin-top: 0; }
.policy p, .policy li {
  color: var(--slate);
  font-size: 16px;
  font-weight: 500;
  line-height: 1.6;
}
.policy p + p { margin-top: 12px; }
.policy ul { margin-top: 10px; padding-left: 20px; display: flex; flex-direction: column; gap: 8px; }
.policy a { color: var(--violet); font-weight: 600; }
.policy .contact-block {
  margin-top: 10px;
  border: 1px solid var(--rule);
  border-radius: 10px;
  padding: 16px 20px;
  background: var(--white);
}
.policy .contact-block p { color: var(--ink); font-size: 14px; }
.policy .placeholder-note {
  margin-top: 8px;
  font-size: 13px;
  color: #9a7b00;
  background: #fff8e1;
  border: 1px solid #f0e0a0;
  border-radius: 8px;
  padding: 10px 14px;
}

/* --- Shared inner-page header (About / Contact) --- */
.page-header {
  padding: 56px 24px 16px;
  max-width: var(--max);
  margin: 0 auto;
}
.page-header h1 { font-size: 36px; }
.page-header p { margin-top: 12px; color: var(--slate); font-size: 17px; font-weight: 500; }

/* --- About page --- */
.role-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
  border-radius: 10px;
  overflow: hidden;
  max-width: var(--max);
}
.role-card { background: var(--white); padding: 20px; }
.role-card h3 { font-size: 16px; }
.role-card p { margin-top: 6px; color: var(--slate); font-size: 14px; font-weight: 500; }

/* --- Contact page --- */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: var(--max);
}
.contact-form label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 6px;
}
.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  border: 1px solid var(--rule);
  border-radius: 8px;
  padding: 11px 14px;
  font: inherit;
  font-weight: 500;
  color: var(--ink);
  background: var(--white);
}
.contact-form textarea { resize: vertical; min-height: 120px; }
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--violet);
}
.contact-direct {
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--rule);
  font-size: 14px;
  color: var(--slate);
}
.contact-direct a { color: var(--violet); font-weight: 600; }

a:focus-visible, button:focus-visible {
  outline: 2px solid var(--violet);
  outline-offset: 2px;
}

@media (max-width: 860px) {
  .nav-links { display: none; gap: 18px; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--white);
    padding: 16px 24px;
    border-bottom: 1px solid var(--rule);
    z-index: 10;
  }
  .nav-toggle { display: inline-block; }
  .hero h1 { font-size: 34px; }
  .footer-top { flex-direction: column; align-items: flex-start; }
  .role-grid { grid-template-columns: 1fr; }
  .why-grid { grid-template-columns: 1fr; }
  .pillars { grid-template-columns: 1fr 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
