:root {
  --accent: #7db842;
  --accent-dark: #6a9f38;
  --cta: #000000;
  --surface: #f6f6f6;
  --surface-alt: #fafafa;
  --text-primary: #000000;
  --text-secondary: #6b6b6b;
  --border: #e5e5e5;
  --white: #ffffff;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
  --max-width: 960px;
  --nav-height: 64px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "DM Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: var(--surface);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

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

ul {
  list-style: none;
}

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

/* Header / Nav */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--cta);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-height);
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--white);
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 0.2px;
}

.brand img {
  width: 32px;
  height: 32px;
  border-radius: 6px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav-links a {
  color: rgba(255, 255, 255, 0.85);
  font-size: 14px;
  font-weight: 500;
  transition: color 0.15s;
}

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

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--white);
  cursor: pointer;
  padding: 8px;
}

.nav-toggle svg {
  width: 24px;
  height: 24px;
}

@media (max-width: 768px) {
  .nav-toggle {
    display: block;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: var(--nav-height);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--cta);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding: 8px 0 16px;
  }

  .nav-links.is-open {
    display: flex;
  }

  .nav-links a {
    padding: 12px 20px;
  }
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: 10px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: background 0.15s, opacity 0.15s;
}

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

.btn-primary:hover {
  background: #222;
}

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

.btn-accent:hover {
  background: var(--accent-dark);
}

.btn-disabled {
  background: var(--border);
  color: var(--text-secondary);
  cursor: default;
  pointer-events: none;
}

/* Hero */

.hero {
  padding: 64px 0 72px;
  text-align: center;
}

.hero-logo {
  width: 80px;
  height: 80px;
  margin: 0 auto 24px;
  border-radius: 16px;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 2.75rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 10px;
}

.hero-kicker {
  font-size: clamp(1.125rem, 2.5vw, 1.375rem);
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.01em;
  margin-bottom: 16px;
}

.hero .tagline {
  font-size: clamp(1rem, 2.5vw, 1.125rem);
  color: var(--text-secondary);
  max-width: 540px;
  margin: 0 auto 32px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

/* Sections */

.section {
  padding: 56px 0;
}

.section-alt {
  background: var(--white);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section-header {
  margin-bottom: 32px;
}

.section-header h2 {
  font-size: clamp(1.5rem, 3vw, 1.875rem);
  font-weight: 800;
  margin-bottom: 8px;
}

.section-header p {
  color: var(--text-secondary);
  font-size: 16px;
  max-width: 640px;
}

/* Module cards */

.module-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.module-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
}

.module-card-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  flex-shrink: 0;
}

.module-card-icon svg {
  width: 22px;
  height: 22px;
  color: var(--white);
  stroke: currentColor;
  fill: none;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.module-card-icon svg.icon-filled {
  fill: currentColor;
  stroke: none;
}

.module-card h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
}

.module-card .summary {
  color: var(--text-secondary);
  font-size: 14px;
  margin-bottom: 16px;
}

.module-card ul {
  list-style: disc;
  padding-left: 18px;
}

.module-card li {
  font-size: 14px;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.module-card li::marker {
  color: var(--accent);
}

/* Tags */

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 12px;
}

.tag {
  display: inline-block;
  padding: 4px 10px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 12px;
  color: var(--text-secondary);
}

/* Steps */

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 20px;
}

.step {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  text-align: center;
}

.step-num {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--white);
  font-weight: 700;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 12px;
}

.step h3 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 6px;
}

.step p {
  font-size: 14px;
  color: var(--text-secondary);
}

/* Footer */

.site-footer {
  background: var(--cta);
  color: rgba(255, 255, 255, 0.85);
  padding: 40px 0 32px;
}

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

.footer-brand {
  color: var(--white);
  font-weight: 700;
  font-size: 16px;
  margin-bottom: 8px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 24px;
}

.footer-links a {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.75);
  transition: color 0.15s;
}

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

.footer-copy {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
}

@media (max-width: 640px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

/* Terms page */

.page-content {
  padding: 48px 0 64px;
}

.page-content h1 {
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 800;
  margin-bottom: 8px;
}

.page-meta {
  color: var(--text-secondary);
  font-size: 14px;
  margin-bottom: 32px;
}

.terms-section {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 16px;
}

.terms-section h2 {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 10px;
}

.terms-section p {
  font-size: 15px;
  color: var(--text-primary);
  line-height: 1.65;
}

.terms-loading,
.terms-error {
  color: var(--text-secondary);
  font-size: 15px;
  padding: 24px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 24px;
  transition: color 0.15s;
}

.back-link:hover {
  color: var(--text-primary);
}

/* 404 */

.not-found {
  text-align: center;
  padding: 80px 20px;
}

.not-found h1 {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 12px;
}

.not-found p {
  color: var(--text-secondary);
  margin-bottom: 24px;
}
