/* ==========================================================================
   PolitiConnect — one-page credibility / customer-discovery site.
   Layout, copy, and visual composition ported verbatim from
   design-reference/PolitiConnect Website Design/MarketingPage.dc.html
   (the approved design export). Values pull from css/tokens.css wherever
   they match the design system contract; a few band-specific measurements
   (92px header, 60px hero display, 64px panel padding) are hand-tuned in
   the approved file itself and are kept literal here to stay pixel-faithful.
   ========================================================================== */

/* ---- reset ---- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
body {
  margin: 0;
  background: var(--surface-canvas);
  color: var(--text-body);
  font-family: var(--font-sans);
  font-size: var(--body-md-size);
  line-height: var(--body-md-lh);
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, p, blockquote, figure { margin: 0; }
img { display: block; max-width: 100%; }
a { text-decoration: none; }

/* visually-hidden until focused */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--surface-canvas);
  color: var(--text-ink);
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius-md);
  z-index: 100;
}
.skip-link:focus {
  left: var(--space-md);
  top: var(--space-md);
}

:is(a, button, [tabindex]):focus-visible {
  outline: 1px solid var(--color-primary);
  outline-offset: 2px;
  box-shadow: 0 0 0 3px var(--focus-ring);
  border-radius: var(--radius-xs);
}

/* This page's approved container width (1120px) intentionally differs from
   the design system's generic --container-max token (1200px, tokens.css) —
   overridden here rather than in tokens.css, so that file stays a faithful
   mirror of the design system's own values. */
:root {
  --page-container-max: 1120px;
}

.container {
  width: 100%;
  max-width: var(--page-container-max);
  margin: 0 auto;
  padding-inline: var(--space-lg);
}

/* ---- header ---- */
.site-header {
  height: 92px;
  background: var(--surface-canvas);
  border-bottom: var(--border-1);
  display: flex;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 10;
}
.header-inner {
  width: 100%;
  max-width: var(--page-container-max);
  margin: 0 auto;
  padding-inline: var(--space-lg);
  display: flex;
  align-items: center;
  gap: var(--space-xl);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
}
.brand-word {
  font-family: var(--font-display);
  font-size: 28px;
  letter-spacing: -0.7px;
  color: var(--text-ink);
}
.nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  flex: 1;
}
.nav-links a {
  font-size: var(--nav-link-size);
  font-weight: 500;
  color: var(--text-body);
  transition: color var(--transition-color);
}
.nav-links a:hover,
.nav-links a:focus-visible {
  color: var(--text-ink);
}

/* ---- buttons ---- */
.btn {
  font-family: var(--font-sans);
  font-size: var(--button-size);
  font-weight: 500;
  line-height: 1;
  padding: 12px 20px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  white-space: nowrap;
}
.btn-primary {
  background: var(--color-primary);
  color: var(--text-on-primary);
}
/* Design system rule: buttons never lighten/darken/lift on hover — only the
   press (:active) state darkens gold to --color-primary-active. Keyboard
   focus gets the shared :focus-visible outline below, not a background change. */
.btn-primary:active {
  background: var(--color-primary-active);
}
.btn-secondary {
  background: var(--surface-canvas);
  color: var(--text-ink);
  border-color: var(--border-hairline);
}
.btn-on-gold {
  background: var(--surface-canvas);
  color: var(--text-ink);
  margin-top: var(--space-xs);
}
.btn-nav {
  font-size: 16px;
  padding: 0 28px;
  height: 52px;
}

/* ---- hero ---- */
.hero {
  padding: var(--space-section) var(--space-lg) 88px;
  scroll-margin-top: 92px;
}
/* Shared by every two-column band on this page (hero, hive, voices, talk) —
   all four use the same 56px gap and vertical centering; only the column
   ratio and the surrounding component styling (background/padding/radius)
   differ per band. */
.two-col {
  display: grid;
  align-items: center;
  gap: 56px;
}
.two-col--hero {
  grid-template-columns: 1.05fr 0.95fr;
}
.eyebrow {
  display: block;
  font-size: var(--caption-upper-size);
  font-weight: 500;
  letter-spacing: var(--caption-upper-ls);
  text-transform: uppercase;
  color: var(--text-muted);
}
.eyebrow--on-dark {
  color: var(--text-on-dark-soft);
}
.hero-copy {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
  align-items: flex-start;
}
.hero-h1 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 60px;
  line-height: 1.05;
  letter-spacing: -1.5px;
  color: var(--text-ink);
}
.hero-body {
  max-width: 48ch;
  font-size: 18px;
  line-height: 1.5;
  color: var(--text-body-strong);
  text-wrap: pretty;
}
.hero-ctas {
  display: flex;
  gap: var(--space-sm);
  flex-wrap: wrap;
}
.hero-quote {
  position: relative;
  overflow: hidden;
  background: var(--surface-dark);
  background-image: url("../assets/jefferson-lineart.png");
  background-repeat: no-repeat;
  background-position: right -22px top -6px;
  background-size: auto 86%;
  border-radius: var(--radius-xl);
  padding: var(--space-xxl);
  min-height: 480px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: var(--space-lg);
}
.hero-quote-mark {
  align-self: flex-start;
}
.hero-quote blockquote {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 30px;
  line-height: 1.22;
  letter-spacing: -0.3px;
  color: var(--surface-canvas);
  text-wrap: pretty;
}
.hero-quote figcaption {
  font-size: 14px;
  line-height: 1.55;
  color: var(--text-on-dark-soft);
}

/* ---- bands ---- */
.band {
  padding: var(--space-section) var(--space-lg);
  scroll-margin-top: 92px;
}
.band-soft {
  background: var(--surface-soft);
  padding-inline: 0;
}
.band-soft > .container {
  padding-inline: var(--space-lg);
}

/* ---- hive ---- */
.two-col--hive {
  grid-template-columns: 0.8fr 1.2fr;
}
.hive-flower {
  width: 100%;
  max-width: 320px;
  justify-self: center;
  display: block;
}
.hive-flower .hex-ring {
  fill: none;
  stroke: var(--text-ink);
}
.hive-flower .hex-center {
  fill: var(--color-primary);
  stroke: var(--text-ink);
}
.hive-copy {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
  align-items: flex-start;
}
.hive-copy h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 44px;
  line-height: 1.1;
  letter-spacing: -1px;
  color: var(--text-ink);
  text-wrap: pretty;
}
.hive-copy > p {
  max-width: 54ch;
  font-size: 17px;
  line-height: 1.6;
  color: var(--text-body-strong);
  text-wrap: pretty;
}
.hive-question {
  margin-top: var(--space-xs);
  max-width: 54ch;
  background: var(--surface-dark);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.hive-question-text {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 28px;
  line-height: 1.25;
  letter-spacing: -0.3px;
  color: var(--surface-canvas);
  text-wrap: pretty;
}

/* ---- exploring ---- */
.exploring {
  padding: var(--space-section) var(--space-lg) 0;
  scroll-margin-top: 92px;
}
.exploring-h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 36px;
  line-height: 1.15;
  letter-spacing: -0.5px;
  color: var(--text-ink);
  margin-bottom: var(--space-xs);
}
.section-intro {
  max-width: 56ch;
  font-size: var(--body-md-size);
  line-height: 1.6;
  color: var(--text-body);
  margin-bottom: var(--space-xl);
}
.card-grid {
  display: grid;
  gap: var(--space-md);
}
.card-grid--3 {
  grid-template-columns: repeat(3, 1fr);
}
.card-parchment {
  background: var(--surface-card);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.card-parchment h3 {
  font-family: var(--font-sans);
  font-size: var(--title-md-size);
  line-height: var(--title-md-lh);
  font-weight: var(--weight-medium);
  color: var(--text-ink);
}
.card-parchment p {
  font-size: var(--body-md-size);
  line-height: 1.6;
  color: var(--text-body);
}

/* ---- voices / accordion ---- */
/* .two-col supplies display/gap/align-items; this rule only adds the
   voices-specific column ratio and the navy card styling. */
.voices-panel {
  background: var(--surface-dark);
  border-radius: var(--radius-xl);
  padding: var(--space-xxl) 64px;
  grid-template-columns: 1fr 1fr;
}
.voices-copy {
  display: flex;
  flex-direction: column;
}
.voices-h2 {
  margin: var(--space-md) 0 var(--space-xl);
  max-width: 20ch;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 36px;
  line-height: 1.15;
  letter-spacing: -0.5px;
  color: var(--surface-canvas);
  text-wrap: pretty;
}
.accordion {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--surface-dark-elevated);
}
.accordion-item {
  border-bottom: 1px solid var(--surface-dark-elevated);
}
.accordion-trigger {
  all: unset;
  box-sizing: border-box;
  width: 100%;
  cursor: pointer;
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: var(--space-sm);
  align-items: baseline;
  padding: var(--space-lg) 0;
}
.accordion-num {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-muted);
  transition: color var(--transition-color);
}
.accordion-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 28px;
  line-height: 1.2;
  letter-spacing: -0.3px;
  color: var(--text-muted);
  transition: color var(--transition-color);
  text-wrap: pretty;
}
.accordion-item.is-open .accordion-num { color: var(--color-primary); }
.accordion-item.is-open .accordion-title { color: var(--surface-canvas); }
.accordion-panel {
  margin: 0;
  padding: 0 0 28px 52px;
  max-width: 46ch;
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-on-dark-soft);
  text-wrap: pretty;
}
.hex-scene-wrap {
  background: var(--surface-canvas);
  border-radius: var(--radius-lg);
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-xl);
}
#hex-scene {
  width: 100%;
  max-width: 380px;
  display: block;
}
#hex-scene .hex-lines,
#hex-scene .hex-cells {
  stroke: var(--text-ink);
}
#hex-scene .hex-cells polygon {
  fill: none;
}
#hex-scene .hex-cells polygon.is-gold {
  fill: var(--color-primary);
}

/* ---- talk ---- */
.talk {
  padding: 0 var(--space-lg) var(--space-section);
}
/* .two-col supplies display/gap/align-items; this rule only adds the
   talk-specific column ratio and the gold panel styling. */
.talk-panel {
  background: var(--color-primary);
  border-radius: var(--radius-xl);
  padding: 64px;
  grid-template-columns: 1fr 260px;
}
.talk-copy {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  align-items: flex-start;
}
.talk-copy h2 {
  max-width: 24ch;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 36px;
  line-height: 1.15;
  letter-spacing: -0.5px;
  color: var(--text-on-primary);
}
.talk-copy p {
  max-width: 56ch;
  font-size: var(--body-md-size);
  line-height: 1.6;
  color: var(--text-on-primary);
}
.talk-figure {
  display: flex;
  flex-direction: column;
  gap: 14px;
  justify-self: center;
  width: 100%;
  max-width: 260px;
}
.talk-figure img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: var(--radius-lg);
}
.talk-figure figcaption {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.talk-name {
  font-family: var(--font-display);
  font-size: 20px;
  line-height: 1.3;
  letter-spacing: -0.2px;
  color: var(--text-on-primary);
}
.talk-role {
  font-size: 14px;
  line-height: 1.5;
  color: var(--text-on-primary);
}

/* ---- footer ---- */
.site-footer {
  background: var(--surface-dark);
  padding: var(--space-xxl) var(--space-lg);
}
.footer-inner {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}
.footer-row {
  display: flex;
  align-items: center;
  gap: 40px;
}
.brand--on-dark span {
  font-family: var(--font-display);
  font-size: 19px;
  letter-spacing: -0.4px;
  color: var(--surface-canvas);
}
.brand--on-dark {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
}
.footer-links {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
}
.footer-email {
  font-size: 14px;
  line-height: 1.55;
  color: var(--text-on-dark-soft);
  transition: color var(--transition-color);
}
.footer-email:hover,
.footer-email:focus-visible {
  color: var(--surface-canvas);
}
.footer-disclaimer {
  padding-top: var(--space-lg);
  border-top: 1px solid var(--surface-dark-elevated);
  font-size: 14px;
  line-height: 1.55;
  color: var(--text-on-dark-soft);
}

/* ---- legal (privacy / terms) ---- */
.legal {
  max-width: 760px;
  padding: var(--space-section) var(--space-lg);
  scroll-margin-top: 92px;
}
.legal-header {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  margin-bottom: var(--space-xxl);
}
.legal-h1 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: var(--display-md-size);
  line-height: var(--display-md-lh);
  letter-spacing: var(--display-md-ls);
  color: var(--text-ink);
}
.legal-updated {
  font-size: var(--body-sm-size);
  line-height: var(--body-sm-lh);
  color: var(--text-muted);
}
.legal-body {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}
.legal-body h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: var(--display-sm-size);
  line-height: var(--display-sm-lh);
  letter-spacing: var(--display-sm-ls);
  color: var(--text-ink);
}
.legal-body p {
  font-size: var(--body-md-size);
  line-height: 1.6;
  color: var(--text-body);
  text-wrap: pretty;
}
.legal-body a {
  color: var(--text-ink);
  text-decoration: underline;
}

/* ==========================================================================
   Responsive
   The approved design's own breakpoint (900px) collapses every 2/3-col grid
   to one column and hides the anchor nav — carried over as-is (no hamburger
   replacement in the source design; see build notes). Padding is additionally
   scaled down under 640px so nothing needs 64-96px of breathing room on a
   360-400px phone viewport.
   ========================================================================== */
@media (max-width: 900px) {
  .two-col--hero,
  .two-col--hive,
  .card-grid--3,
  .voices-panel,
  .talk-panel {
    grid-template-columns: 1fr !important;
  }
  .footer-row {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-lg);
  }
  .nav-links { display: none; }
  .hero-h1 { font-size: 44px; letter-spacing: -1px; }
  .hero-quote { min-height: 360px; }
  .talk-figure { max-width: 200px; justify-self: start; }
}

@media (max-width: 640px) {
  .site-header { height: 76px; }
  .header-inner { padding-inline: var(--space-sm); gap: var(--space-xs); justify-content: space-between; }
  .brand-word { font-size: var(--title-md-size); }
  .btn-nav { padding: 0 var(--space-sm); height: 44px; font-size: 14px; }
  .hero { padding: var(--space-xxl) var(--space-md) var(--space-xl); }
  .hero-h1 { font-size: 34px; }
  .hero-body { font-size: 16px; }
  .hero-quote { padding: var(--space-lg); min-height: 300px; }
  .band { padding: var(--space-xxl) var(--space-md); }
  .band-soft > .container { padding-inline: var(--space-md); }
  .exploring { padding: var(--space-xxl) var(--space-md) 0; }
  .container { padding-inline: var(--space-md); }
  .hive-copy h2 { font-size: 30px; }
  .hive-question { padding: var(--space-lg); }
  .voices-panel { padding: var(--space-xl) var(--space-lg); }
  .voices-h2 { font-size: 28px; max-width: none; }
  .accordion-title { font-size: 22px; }
  .talk-panel { padding: var(--space-xl) var(--space-lg); }
  .talk-copy h2 { font-size: 28px; }
  .talk-figure { max-width: 140px; }
  .site-footer { padding: var(--space-xl) var(--space-md); }
  .legal { padding: var(--space-xxl) var(--space-md); }
}
