/* ==========================================================================
   Attention Checker — Design System
   Mobile-first, CSS custom properties, no build step
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

:root {
  /* Colors */
  --color-bg: #FAFAF7;
  --color-surface: #FFFFFF;
  --color-navy: #2D4A7A;
  --color-navy-dark: #1F3557;
  --color-teal: #4AABAA;
  --color-orange: #F0A050;
  --color-green: #5BBF8A;
  --color-coral: #E8736A;
  --color-text: #2C2C2C;
  --color-text-muted: #6B6B68;
  --color-border: #E5E3DC;

  /* Typography */
  --font-base: 'Inter', system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --fs-sm: 0.875rem;
  --fs-base: 1rem;
  --fs-lg: 1.125rem;
  --fs-xl: 1.5rem;
  --fs-2xl: 2rem;
  --fs-3xl: 2.75rem;
  --lh-tight: 1.2;
  --lh-normal: 1.6;

  /* Spacing scale */
  --space-1: 0.5rem;
  --space-2: 1rem;
  --space-3: 1.5rem;
  --space-4: 2rem;
  --space-5: 3rem;
  --space-6: 4.5rem;

  /* Layout */
  --container-width: 1120px;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 4px 16px rgba(45, 74, 122, 0.08);

  /* Motion */
  --transition: 0.2s ease;
}

/* Reset
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html, body, h1, h2, h3, h4, p, ul, ol, figure { margin: 0; padding: 0; }
ul, ol { list-style: none; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; }

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

body {
  font-family: var(--font-base);
  font-size: var(--fs-base);
  line-height: var(--lh-normal);
  color: var(--color-text);
  background: var(--color-bg);
}

/* Typography
   ========================================================================== */
h1, h2, h3, h4 {
  font-weight: 700;
  line-height: var(--lh-tight);
  color: var(--color-navy);
}

h1 { font-size: var(--fs-2xl); }
h2 { font-size: var(--fs-xl); }
h3 { font-size: var(--fs-lg); }

p { margin-bottom: var(--space-2); color: var(--color-text); }

a.link {
  color: var(--color-teal);
  font-weight: 500;
  transition: color var(--transition);
}
a.link:hover { color: var(--color-navy); }

@media (min-width: 768px) {
  h1 { font-size: var(--fs-3xl); }
  h2 { font-size: var(--fs-2xl); }
  h3 { font-size: var(--fs-xl); }
}

/* Layout
   ========================================================================== */
.container {
  width: 100%;
  max-width: var(--container-width);
  margin-inline: auto;
  padding-inline: var(--space-3);
}

.section {
  padding-block: var(--space-3);
}

@media (min-width: 768px) {
  .section { padding-block: var(--space-3); }
}

.section + .section { padding-top: var(--space-2); }

.section:last-of-type { padding-block: var(--space-3); }

.stack { display: flex; flex-direction: column; gap: var(--space-3); }
.text-center { text-align: center; }
.prose { max-width: 640px; margin-inline: auto; }

blockquote {
  border-left: 4px solid var(--color-teal);
  padding-left: var(--space-3);
  font-style: italic;
  color: var(--color-text);
}
blockquote p:last-child { margin-bottom: 0; }

.price-figure {
  font-size: var(--fs-3xl);
  font-weight: 700;
  color: var(--color-teal);
  line-height: 1;
}
.price-unit {
  color: var(--color-text-muted);
  font-size: var(--fs-sm);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.price-amount {
  font-size: var(--fs-xl);
  font-weight: 700;
  color: var(--color-navy);
}

.faq-item {
  padding-bottom: var(--space-3);
  border-bottom: 1px solid var(--color-border);
}
.faq-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.list-disc {
  list-style: disc;
  padding-left: var(--space-3);
}
.list-disc li { margin-bottom: var(--space-1); }

.h2-legal {
  font-size: var(--fs-lg);
  font-weight: 600;
}

/* Buttons
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.75rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: var(--fs-base);
  transition: background var(--transition), color var(--transition), transform var(--transition);
}
.btn:active { transform: translateY(1px); }

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

.btn-secondary {
  background: var(--color-orange);
  color: var(--color-navy-dark);
}
.btn-secondary:hover { filter: brightness(0.95); }

.btn-outline {
  background: transparent;
  color: var(--color-navy);
  border: 2px solid var(--color-navy);
  padding: calc(0.75rem - 2px) calc(1.75rem - 2px);
}
.btn-outline:hover { background: var(--color-navy); color: #FFFFFF; }

.btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  justify-content: center;
}

/* Site header / nav
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--color-bg);
  border-bottom: 1px solid var(--color-border);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: var(--space-2);
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: var(--space-1);
  font-weight: 700;
  font-size: var(--fs-lg);
  color: var(--color-navy);
}
.nav-brand img { height: 36px; width: auto; }

.nav-toggle {
  display: block;
  width: 32px;
  height: 32px;
}

.nav-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  flex-direction: column;
  background: var(--color-bg);
  border-bottom: 1px solid var(--color-border);
  padding: var(--space-2) var(--space-3) var(--space-3);
  gap: var(--space-2);
}
.nav-menu.is-open { display: flex; }

.nav-menu a {
  font-weight: 500;
  padding-block: var(--space-1);
}
.nav-menu a:hover { color: var(--color-teal); }

@media (min-width: 768px) {
  .nav-toggle { display: none; }
  .nav-menu {
    display: flex;
    position: static;
    flex-direction: row;
    align-items: center;
    background: none;
    border: none;
    padding: 0;
    gap: var(--space-4);
  }
}

/* Footer
   ========================================================================== */
.site-footer {
  background: var(--color-navy);
  color: #FFFFFF;
  padding-block: var(--space-3);
}

.site-footer a { color: #FFFFFF; opacity: 0.85; }
.site-footer a:hover { opacity: 1; text-decoration: underline; }

.footer-grid {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.footer-grid > .stack:first-child {
  min-width: 240px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  flex-shrink: 0;
}

.footer-meta {
  font-size: var(--fs-sm);
  opacity: 0.7;
  margin-top: var(--space-3);
}

/* fix: footer <p> was inheriting the global dark text color instead of white */
.site-footer p { color: inherit; }

@media (min-width: 768px) {
  .footer-grid {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
  }
}

/* Cards (pricing, FAQ, features)
   ========================================================================== */
.card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: var(--space-3);
  box-shadow: var(--shadow);
  align-self: stretch;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.card-grid {
  display: grid;
  gap: var(--space-3);
  grid-template-columns: 1fr;
  align-items: stretch;
}

@media (min-width: 640px) {
  .card-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .card-grid { grid-template-columns: repeat(4, 1fr); }
  .card-grid-3 { grid-template-columns: repeat(3, 1fr); }
}

/* Accent utility classes */
.accent-teal { color: var(--color-teal); }
.accent-orange { color: var(--color-orange); }
.accent-green { color: var(--color-green); }
.accent-coral { color: var(--color-coral); }
