/* ==========================================================================
   Committeez landing page
   Brand tokens match app/static/app/css/styles.css in the main product repo
   ========================================================================== */

:root {
  --navy: #1B3A5C;
  --navy-dark: #12293F;
  --navy-muted: #3D5872;
  --gold: #C9A227;
  --gold-text: #4A3B0A;
  --mist: #F5F7FA;
  --ink: #1F2937;
  --ink-muted: #5B6B7C;
  --white: #FFFFFF;
  --border: #E2E8F0;

  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --max-width: 1120px;
}

* { box-sizing: border-box; }

/* Guarantee the hidden attribute always wins, even against display:flex/grid rules below */
[hidden] { display: none !important; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--white);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; }

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

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

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

.btn {
  display: inline-block;
  font-family: var(--font);
  font-weight: 700;
  text-decoration: none;
  border: none;
  border-radius: 8px;
  padding: 14px 28px;
  font-size: 16px;
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.12s ease, background-color 0.12s ease;
}

.btn:hover { transform: translateY(-1px); }

.btn-primary {
  background: var(--navy);
  color: var(--white);
}
.btn-primary:hover { background: var(--navy-dark); }

.btn-gold {
  background: var(--gold);
  color: var(--gold-text);
}
.btn-gold:hover {
  background: #dbb42e;
  box-shadow: 0 6px 18px rgba(201, 162, 39, 0.35);
}

.btn-small { padding: 10px 20px; font-size: 14px; }
.btn-large { padding: 17px 36px; font-size: 18px; }

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

.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 10;
}

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

.brand { display: inline-flex; }

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

.hero {
  background: linear-gradient(160deg, var(--navy) 0%, var(--navy-dark) 100%);
  color: var(--white);
  padding: 88px 0 96px;
  text-align: center;
}

.hero-inner { max-width: 760px; }

.eyebrow {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 12px;
  font-weight: 700;
  color: var(--gold);
  background: rgba(201, 162, 39, 0.12);
  border: 1px solid rgba(201, 162, 39, 0.35);
  padding: 6px 14px;
  border-radius: 999px;
  margin: 0 0 24px;
}

.hero h1 {
  font-size: 44px;
  line-height: 1.15;
  font-weight: 800;
  margin: 0 0 20px;
  letter-spacing: -0.01em;
}

.hero h1 .accent {
  color: var(--gold);
}

.hero-sub {
  font-size: 18px;
  color: #C9D6E4;
  margin: 0 auto 36px;
  max-width: 640px;
}

.hero-actions { margin-bottom: 20px; }

.hero-note {
  font-size: 14px;
  color: #9FB3C8;
  margin: 0;
}

/* ---------- Sections ---------- */

.section {
  padding: 80px 0;
}

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

.section-title {
  font-size: 30px;
  font-weight: 800;
  color: var(--navy);
  margin: 0 0 12px;
  letter-spacing: -0.01em;
}

.section-subtitle {
  font-size: 16px;
  color: var(--ink-muted);
  margin: 0 0 48px;
}

.text-center { text-align: center; }

/* ---------- Problem cards ("Sound familiar?") ---------- */

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

.problem-card {
  background: var(--mist);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px;
}

.problem-card h3 {
  font-size: 16px;
  color: var(--ink);
  margin: 0 0 8px;
}

.problem-card p {
  margin: 0;
  color: var(--ink-muted);
  font-size: 14px;
  line-height: 1.55;
}

/* ---------- Features ---------- */

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

.feature-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 28px 22px;
}

.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  background: rgba(27, 58, 92, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}

.feature-card h3 {
  font-size: 17px;
  color: var(--navy);
  margin: 0 0 10px;
}

.feature-card p {
  font-size: 14.5px;
  color: var(--ink-muted);
  margin: 0;
  line-height: 1.55;
}

/* ---------- Audit-ready banner ---------- */

.audit-banner {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 26px 28px;
  margin-top: 28px;
}

.audit-banner-icon {
  flex: none;
  width: 48px;
  height: 48px;
  border-radius: 10px;
  background: rgba(27, 58, 92, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
}

.audit-banner h3 {
  font-size: 17px;
  color: var(--navy);
  margin: 0 0 8px;
}

.audit-banner p {
  font-size: 14.5px;
  color: var(--ink-muted);
  margin: 0;
  line-height: 1.55;
}

/* ---------- Audience ---------- */

.audience-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 40px;
}

.audience-pill {
  background: var(--white);
  border: 1.5px solid var(--navy);
  color: var(--navy);
  font-weight: 600;
  font-size: 14px;
  padding: 10px 20px;
  border-radius: 999px;
}

/* ---------- Signup ---------- */

.signup {
  background: linear-gradient(160deg, var(--navy) 0%, var(--navy-dark) 100%);
  color: var(--white);
  text-align: center;
}

.signup-inner { max-width: 560px; }

.signup h2 {
  font-size: 30px;
  font-weight: 800;
  margin: 0 0 16px;
}

.signup p {
  color: #C9D6E4;
  font-size: 16px;
  margin: 0 0 32px;
}

.signup-form {
  display: flex;
  gap: 10px;
  margin-bottom: 16px;
}

.signup-form input[type="email"] {
  flex: 1;
  padding: 14px 16px;
  font-size: 16px;
  font-family: var(--font);
  border: none;
  border-radius: 8px;
  background: var(--white);
  color: var(--ink);
}

.signup-form input[type="email"]:focus {
  outline: 3px solid rgba(201, 162, 39, 0.5);
  outline-offset: 1px;
}

.signup-privacy {
  font-size: 13px;
  color: #9FB3C8 !important;
  margin: 0 !important;
}

.signup-error {
  font-size: 13.5px;
  color: #F3B4B0;
  margin: 14px 0 0;
}

.signup-success {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.signup-success h3 {
  color: var(--white);
  font-size: 21px;
  font-weight: 800;
  margin: 0;
}

.signup-success p {
  color: #C9D6E4;
  font-size: 15px;
  margin: 0;
  max-width: 420px;
}

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

.site-footer {
  background: var(--navy-dark);
  padding: 32px 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-inner p {
  color: #9FB3C8;
  font-size: 13px;
  margin: 0;
}

.footer-tagline {
  color: #9FB3C8;
  font-size: 12.5px;
  text-align: center;
  margin: 16px 0 0;
}

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

@media (max-width: 900px) {
  .problem-grid { grid-template-columns: repeat(2, 1fr); }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .hero h1 { font-size: 34px; }
}

@media (max-width: 560px) {
  .problem-grid { grid-template-columns: 1fr; }
  .feature-grid { grid-template-columns: 1fr; }
  .audit-banner { flex-direction: column; }
  .hero { padding: 64px 0 72px; }
  .hero h1 { font-size: 28px; }
  .hero-sub { font-size: 16px; }
  .section { padding: 56px 0; }
  .section-title { font-size: 24px; }
  .signup-form { flex-direction: column; }
  .btn-large { width: 100%; }
  .footer-inner { flex-direction: column; text-align: center; }
}
