/* ===================================================
   CheckMy.llc — Landing Page Styles
   Mobile-first: base styles target 375px+
   =================================================== */

/* --- Reset & Base --- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

/* --- Brand Variables (aligned with Minutes.llc) --- */
:root {
  --navy: #0F2137;
  --green: #22c55e;
  --green-hover: #16a34a;
  --red: #EF4444;
  --amber: #f59e0b;
  --gray: #6B7280;
  --light: #F8FAFC;
  --white: #ffffff;
  --text: #1E293B;
  --muted: #64748B;
  --line: #E2E8F0;
}

body {
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  color: var(--green);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* --- Focus styles (accessibility) --- */
:focus-visible {
  outline: 3px solid var(--green);
  outline-offset: 2px;
}

/* --- Screen-reader only --- */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* --- Skip link --- */
.skip-link {
  position: absolute;
  top: -100%;
  left: 16px;
  z-index: 1000;
  padding: 12px 24px;
  background: var(--navy);
  color: var(--white);
  font-weight: 600;
  border-radius: 0 0 8px 8px;
}

.skip-link:focus {
  top: 0;
}

/* --- Layout --- */
.container {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 20px;
}

/* --- Header --- */
.site-header {
  background: var(--navy);
  padding: 16px 0 0;
}

.header-logo-link {
  display: inline-block;
}

.header-logo-link:hover {
  text-decoration: none;
}

.header-logo {
  height: 36px;
  width: auto;
  border: none;
  box-shadow: none;
  border-radius: 6px;
}


/* --- Buttons --- */
.btn {
  display: inline-block;
  font-family: inherit;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  touch-action: manipulation;
  transition: background-color 0.2s ease, transform 0.1s ease;
}

.btn:hover {
  text-decoration: none;
}

.btn:active {
  transform: scale(0.98);
}

.btn-primary {
  background: var(--green);
  color: var(--white);
  padding: 14px 32px;
  font-size: 1rem;
  min-height: 48px;
}

.btn-primary:hover {
  background: var(--green-hover);
}

.btn-lg {
  padding: 16px 40px;
  font-size: 1.125rem;
  min-height: 52px;
}

/* --- Hero --- */
.hero {
  background: var(--navy);
  color: var(--white);
  padding: 48px 0 72px;
  text-align: center;
}

.hero h1 {
  font-size: 1.75rem;
  font-weight: 700;
  line-height: 1.25;
  max-width: 680px;
  margin: 0 auto 20px;
}

.hero-sub {
  font-size: 1.063rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.65);
  max-width: 560px;
  margin: 0 auto 32px;
}

/* --- Problem section --- */
.problem {
  padding: 64px 0;
  background: var(--light);
}

.problem h2 {
  text-align: center;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 40px;
}

.card-grid {
  display: grid;
  gap: 20px;
}

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 28px 24px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.card h3 {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 8px;
}

.card p {
  color: var(--muted);
  font-size: 0.938rem;
  line-height: 1.6;
}

/* --- How It Works --- */
.how-it-works {
  padding: 64px 0;
  background: var(--white);
}

.how-it-works h2 {
  text-align: center;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 40px;
}

.steps {
  display: grid;
  gap: 32px;
}

.step {
  text-align: center;
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background: var(--green);
  color: var(--white);
  font-size: 1.25rem;
  font-weight: 700;
  border-radius: 50%;
  margin-bottom: 16px;
}

.step h3 {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 8px;
}

.step p {
  color: var(--muted);
  font-size: 0.938rem;
  line-height: 1.6;
  max-width: 320px;
  margin: 0 auto;
}

/* --- Scorecard Preview --- */
.scorecard-preview {
  padding: 64px 0;
  background: var(--light);
}

.scorecard-preview h2 {
  text-align: center;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 40px;
}

.scorecard-details {
  max-width: 640px;
  margin: 0 auto;
}

.scorecard-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 32px;
}

.scorecard-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1rem;
}

.dot {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  border-radius: 50%;
}

.dot-green {
  background: var(--green);
}

.dot-yellow {
  background: var(--amber);
}

.dot-red {
  background: var(--red);
}

.scorecard-features p {
  color: var(--muted);
  font-size: 0.938rem;
  line-height: 1.6;
  margin-bottom: 12px;
}

.scorecard-features p:last-child {
  margin-bottom: 0;
}

/* --- Content Pages (About, Privacy, Terms) --- */
.page-hero {
  background: var(--navy);
  color: var(--white);
  padding: 48px 0 56px;
  text-align: center;
}

.page-hero h1 {
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.3;
  max-width: 680px;
  margin: 0 auto 12px;
}

.page-hero-sub {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.65);
  max-width: 560px;
  margin: 0 auto;
}

.page-body {
  background: var(--white);
  padding: 48px 0 64px;
}

.page-container {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 20px;
}

.page-container h2 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--navy);
  margin-top: 40px;
  margin-bottom: 12px;
}

.page-container h2:first-child {
  margin-top: 0;
}

.page-container p {
  color: var(--text);
  font-size: 0.938rem;
  line-height: 1.7;
  margin-bottom: 16px;
}

.page-container ul {
  margin: 0 0 16px 20px;
  color: var(--text);
  font-size: 0.938rem;
  line-height: 1.7;
}

.page-container li {
  margin-bottom: 8px;
}

.page-callout {
  margin-top: 48px;
  padding: 32px 24px;
  background: #f0fdf4;
  border-left: 4px solid var(--green);
  border-radius: 8px;
  text-align: center;
}

.page-callout-heading {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 16px;
}

.page-callout .btn {
  margin-bottom: 0;
}

/* --- Gaps Action Section --- */
.gaps-action {
  padding: 64px 0;
  background: var(--white);
}

.gaps-action h2 {
  text-align: center;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 40px;
}

.gaps-action .card-action {
  margin-top: 16px;
  margin-bottom: 0;
}

.gaps-action .card-action a {
  font-weight: 600;
  color: var(--green);
}

.gaps-action .card-action a:hover {
  color: var(--green-hover);
}

.gaps-callout {
  margin-top: 48px;
  padding: 32px 24px;
  background: #f0fdf4;
  border-left: 4px solid var(--green);
  border-radius: 8px;
  text-align: center;
}

.gaps-callout-heading {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 8px;
}

.gaps-callout-sub {
  font-size: 0.938rem;
  color: var(--muted);
  margin-bottom: 20px;
  line-height: 1.6;
}

.gaps-callout .btn {
  margin-bottom: 12px;
}

.gaps-callout-disclaimer {
  font-size: 0.75rem;
  color: var(--gray);
}

/* --- CTA Section --- */
.cta-section {
  padding: 64px 0;
  background: var(--navy);
  color: var(--white);
  text-align: center;
}

.cta-section h2 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 28px;
}

.cta-sub {
  margin-top: 20px;
  font-size: 0.938rem;
  color: rgba(255, 255, 255, 0.65);
}

.disclaimer-inline {
  margin-top: 32px;
  font-size: 0.813rem;
  color: var(--gray);
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.5;
}

/* --- Footer --- */
.site-footer {
  background: var(--navy);
  color: var(--gray);
  padding: 40px 0;
  font-size: 0.875rem;
  line-height: 1.6;
}

.footer-top {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 24px;
}

.footer-brand a {
  display: inline-block;
}

.footer-brand a:hover {
  text-decoration: none;
}

.footer-logo {
  height: 32px;
  width: auto;
}

.footer-tagline {
  color: var(--gray);
  font-size: 0.813rem;
  margin-top: 4px;
}

.site-footer nav {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

.site-footer nav a {
  color: var(--gray);
  font-size: 0.875rem;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

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

.footer-companion {
  margin-bottom: 16px;
}

.footer-companion a {
  color: var(--green);
}

.footer-disclaimer {
  color: var(--gray);
  font-size: 0.813rem;
  margin-bottom: 16px;
}

.footer-copy {
  color: var(--gray);
  font-size: 0.813rem;
}

/* ===================================================
   Tablet (600px+)
   =================================================== */
@media (min-width: 600px) {
  .hero h1 {
    font-size: 2.25rem;
  }

  .hero-sub {
    font-size: 1.125rem;
  }

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

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

  .scorecard-details {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 32px 48px;
    align-items: start;
  }

  .scorecard-list {
    margin-bottom: 0;
  }

  .footer-top {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

/* ===================================================
   Desktop (900px+)
   =================================================== */
@media (min-width: 900px) {
  .container {
    padding: 0 40px;
  }

  .header-logo {
    height: 48px;
  }

  .hero {
    padding: 64px 0 96px;
  }

  .hero h1 {
    font-size: 2.75rem;
  }

  .problem,
  .how-it-works,
  .scorecard-preview,
  .gaps-action,
  .cta-section {
    padding: 80px 0;
  }

  .page-hero h1 {
    font-size: 2rem;
  }

  .problem h2,
  .how-it-works h2,
  .scorecard-preview h2,
  .gaps-action h2,
  .cta-section h2 {
    font-size: 1.875rem;
  }
}
