/* ==================== VARIABLES ==================== */
:root {
  --primary: #1e3a8a;
  --primary-dark: #1e293b;
  --accent: #0891b2;
  --accent-light: #06b6d4;
  --gray-50: #f8fafc;
  --gray-100: #f1f5f9;
  --gray-200: #e2e8f0;
  --gray-300: #cbd5e1;
  --gray-600: #475569;
  --gray-700: #334155;
  --gray-900: #0f172a;
  --white: #fcfcfc;

  --font-display: "Crimson Pro", serif;
  --font-body: "Work Sans", sans-serif;

  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

/* ==================== RESET & BASE ==================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--gray-700);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.2;
  color: var(--primary-dark);
}

h1 {
  font-size: 3.5rem;
}
h2 {
  font-size: 2.5rem;
}
h3 {
  font-size: 1.875rem;
}
h4 {
  font-size: 1.5rem;
}

a {
  color: inherit;
  text-decoration: none;
}

/* Header logo */
.site-logo {
  height: 44px;
  width: auto;
  display: block;
}

/* Footer logo (inverted) */
.footer-logo {
  height: 42px;
  width: auto;
  display: block;
}

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

/* ==================== UTILITIES ==================== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.accent {
  color: var(--accent);
}

.lead {
  font-size: 1.25rem;
  line-height: 1.7;
  color: var(--gray-600);
}

/* ==================== BUTTONS ==================== */
.btn {
  display: inline-block;
  padding: 0.875rem 2rem;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  text-align: center;
  border-radius: 6px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
}

.btn-primary {
  background: var(--accent);
  color: var(--white);
  border-color: var(--accent);
}

.btn-primary:hover {
  background: var(--accent-light);
  border-color: var(--accent-light);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-outline {
  background: transparent;
  color: var(--primary);
  border-color: var(--primary);
}

.btn-outline:hover {
  background: var(--primary);
  color: var(--white);
  transform: translateY(-2px);
}

.btn-block {
  display: block;
  width: 100%;
}

.btn-large {
  padding: 1.125rem 2.5rem;
  font-size: 1.125rem;
}

/* ==================== HEADER ==================== */
.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--gray-200);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-sm);
}

.nav-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem 2rem;
}

.brand {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.logo-placeholder {
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-weight: 700;
  font-size: 1.25rem;
}

.nav {
  display: flex;
  align-items: center;
}

.hamb {
  display: none;
  font-size: 1.75rem;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--primary);
}

.navdrawer {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.navlink {
  font-weight: 500;
  color: var(--gray-700);
  transition: color 0.3s;
  position: relative;
}

.navlink:hover {
  color: var(--accent);
}

.navlink::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width 0.3s;
}

.navlink:hover::after {
  width: 100%;
}

.nav-cta {
  padding: 0.625rem 1.5rem;
  background: var(--accent);
  color: var(--white);
  border-radius: 6px;
  transition: all 0.3s;
}

.nav-cta:hover {
  background: var(--accent-light);
  transform: translateY(-2px);
}

.nav-cta::after {
  display: none;
}

.nav-close,
.nav-scrim {
  display: none;
}

/* ==================== HERO ==================== */
.hero {
  background: linear-gradient(135deg, #f8fafc 0%, #e0f2fe 100%);
  padding: 6rem 0;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -20%;
  width: 800px;
  height: 800px;
  background: radial-gradient(
    circle,
    rgba(8, 145, 178, 0.1) 0%,
    transparent 70%
  );
  border-radius: 50%;
}

.hero-content {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
  position: relative;
  z-index: 1;
}

.hero-content h1 {
  margin-bottom: 1.5rem;
  animation: fadeInUp 0.8s ease-out;
}

.hero-content .lead {
  margin-bottom: 2.5rem;
  animation: fadeInUp 0.8s ease-out 0.2s backwards;
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 3rem;
  margin-top: 3rem;
  flex-wrap: wrap;
  animation: fadeInUp 0.8s ease-out 0.6s backwards;
}

.stat {
  text-align: center;
}

.stat-number {
  display: block;
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--accent);
  font-family: var(--font-display);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 0.875rem;
  color: var(--gray-600);
  font-weight: 500;
}

/* ==================== SECTIONS ==================== */
.section {
  padding: 5rem 0;
}

.section-head {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 4rem;
}

.section-head h2 {
  margin-bottom: 1rem;
}

.section-sub {
  font-size: 1.125rem;
  color: var(--gray-600);
  line-height: 1.8;
}

/* About Section */
.section-about {
  background: var(--white);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2.5rem;
}

.feature {
  text-align: center;
  padding: 2.5rem 2rem;
}

.feature-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 1.5rem;
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 2rem;
  transition: all 0.3s;
}

.feature:hover .feature-icon {
  transform: scale(1.1) rotate(5deg);
}

.feature h3 {
  margin-bottom: 1rem;
  color: var(--primary);
  font-size: 1.5rem;
}

.feature p {
  color: var(--gray-600);
  line-height: 1.7;
}

/* Topics Section */
.section-topics {
  background: var(--gray-50);
}

.topic-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.topic-card {
  background: var(--white);
  padding: 2rem;
  border-radius: 12px;
  box-shadow: var(--shadow-md);
  border-top: 4px solid var(--accent);
  transition: all 0.3s;
  text-align: center;
}

.topic-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-xl);
}

.topic-emoji {
  font-size: 3rem;
  display: block;
  margin-bottom: 1rem;
}

.topic-card h3 {
  margin-bottom: 0.75rem;
  font-size: 1.25rem;
}

.topic-card p {
  color: var(--gray-600);
  font-size: 0.9375rem;
}

/* How It Works Section */
.section-how {
  background: var(--white);
}

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 3rem;
  list-style: none;
}

.steps li {
  text-align: center;
}

.step-number {
  width: 60px;
  height: 60px;
  margin: 0 auto 1.5rem;
  background: var(--accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 1.5rem;
  font-weight: 700;
  font-family: var(--font-display);
}

.steps h4 {
  margin-bottom: 0.75rem;
  color: var(--primary);
  font-size: 1.25rem;
}

.steps p {
  color: var(--gray-600);
}

/* CTA Section */
.section-cta {
  background: var(--primary-dark);
  color: var(--white);
  text-align: center;
}

.section-cta h2 {
  color: var(--white);
  margin-bottom: 1rem;
}

.section-cta .lead {
  color: var(--gray-100);
  margin-bottom: 2.5rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.cta-benefits {
  display: flex;
  justify-content: center;
  gap: 3rem;
  margin-top: 3rem;
  flex-wrap: wrap;
}

.cta-benefit {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.0625rem;
  color: var(--gray-100);
}

.cta-benefit::before {
  content: "✓";
  color: var(--accent-light);
  font-weight: 700;
  font-size: 1.5rem;
}

/* Newsletter Section */
.section-newsletter {
  background: var(--gray-50);
}

.newsletter-box {
  max-width: 700px;
  margin: 0 auto;
  background: var(--white);
  padding: 3rem;
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
  text-align: center;
}

.newsletter-box h3 {
  margin-bottom: 1rem;
  font-size: 1.875rem;
}

.newsletter-box p {
  margin-bottom: 2rem;
  color: var(--gray-600);
}

.newsletter-form {
  display: flex;
  gap: 1rem;
  max-width: 500px;
  margin: 0 auto;
}

.newsletter-form input {
  flex: 1;
  padding: 0.875rem 1.25rem;
  border: 1px solid var(--gray-300);
  border-radius: 6px;
  font-family: var(--font-body);
  font-size: 1rem;
}

.newsletter-form input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(8, 145, 178, 0.1);
}

.privacy-note {
  margin-top: 1rem;
  font-size: 0.8125rem;
  color: var(--gray-600);
}

/* Footer */
.site-footer {
  background: var(--primary-dark);
  color: var(--white);
  padding: 3rem 0 2rem;
}

.footer-content {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-about h3 {
  color: var(--white);
  margin-bottom: 1rem;
  font-size: 1.5rem;
}

.footer-about p {
  color: var(--gray-300);
  line-height: 1.7;
}

.footer-section h4 {
  color: var(--white);
  margin-bottom: 1rem;
  font-size: 1.125rem;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.75rem;
}

.footer-links a {
  color: var(--gray-300);
  transition: color 0.3s;
}

.footer-links a:hover {
  color: var(--accent-light);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 2rem;
  text-align: center;
  color: var(--gray-300);
  font-size: 0.875rem;
}

/* ==================== ANIMATIONS ==================== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 968px) {
  h1 {
    font-size: 2.5rem;
  }
  h2 {
    font-size: 2rem;
  }

  .footer-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .hero-stats,
  .cta-benefits {
    gap: 2rem;
  }

  .stat-number {
    font-size: 2rem;
  }
}

@media (max-width: 768px) {
  .container {
    padding: 0 1.5rem;
  }

  .nav-row {
    padding: 1rem 1.5rem;
  }

  .hamb {
    display: block;
  }

  .navdrawer {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: var(--white);
    flex-direction: column;
    justify-content: flex-start;
    padding: 2rem;
    gap: 1.5rem;
    box-shadow: var(--shadow-xl);
    transition: right 0.3s ease;
    z-index: 1000;
  }

  .navdrawer.active {
    right: 0;
  }

  .nav-close {
    display: block;
    align-self: flex-end;
    font-size: 2rem;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--gray-700);
    margin-bottom: 1rem;
  }

  .nav-scrim {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
  }

  .nav-scrim[hidden] {
    display: none;
  }

  .navlink {
    width: 100%;
    text-align: left;
  }

  .hero {
    padding: 4rem 0;
  }

  .section {
    padding: 3rem 0;
  }

  h1 {
    font-size: 2rem;
  }
  h2 {
    font-size: 1.75rem;
  }

  .newsletter-form {
    flex-direction: column;
  }

  .newsletter-box {
    padding: 2rem;
  }
}

/* ==================== PRIVACY / LEGAL PAGES ==================== */
/* Use on /privacy, /terms, /contact if you want consistent legal-page formatting */

.page-legal .hero {
  /* tighter hero on legal pages */
  padding: 2.5rem 0;
}

.page-legal .hero::before {
  /* optional: remove the big radial bubble on legal pages */
  display: none;
}

.page-legal .hero h1 {
  margin-bottom: 0.5rem;
  font-size: 2.25rem;
}

.page-legal .last-updated {
  margin-top: 0.25rem;
  font-size: 0.875rem;
  color: var(--gray-600);
  font-weight: 500;
}

.page-legal .content {
  /* legal pages should feel more document-like */
  padding: 3rem 0;
}

.page-legal .policy-intro {
  margin-bottom: 1.75rem;
}

.page-legal .policy-intro p {
  margin-bottom: 0.75rem;
}

.page-legal h2 {
  font-size: 1.75rem;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}

.page-legal h3 {
  font-size: 1.25rem;
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
  font-family: var(--font-body);
  font-weight: 600;
  color: var(--primary-dark);
}

.page-legal p,
.page-legal li {
  color: var(--gray-700);
  font-size: 1rem;
  line-height: 1.75;
}

.page-legal a {
  color: var(--accent);
  text-decoration: underline;
}

.page-legal a:hover {
  color: var(--accent-light);
}

.page-legal ul,
.page-legal ol {
  margin-bottom: 1rem;
  padding-left: 1.5rem;
}

.page-legal li {
  margin-bottom: 0.35rem;
}

/* Ensure footer text is white everywhere */
.site-footer,
.site-footer p,
.site-footer a,
.site-footer h4 {
  color: var(--white);
}
