/* Kam launch site — tokens from lib/kam-theme (modern-green + OG Kam green) */
:root {
  color-scheme: dark;
  --kam-bg-deep: #070b0e;
  --kam-bg-mid: #0c1416;
  --kam-green: #54d11b;
  --kam-green-strong: #49c916;
  --kam-green-vivid: #52d319;
  --kam-green-glow: rgba(84, 209, 27, 0.35);
  --kam-green-soft: rgba(84, 209, 27, 0.12);
  --kam-teal: #3ce6c9;
  --text-primary: #f3f7f4;
  --text-secondary: rgba(214, 226, 220, 0.82);
  --text-muted: rgba(164, 186, 178, 0.72);
  --surface: rgba(12, 20, 18, 0.72);
  --surface-border: rgba(186, 230, 214, 0.14);
  --surface-elevated: rgba(22, 36, 32, 0.55);
  --link: #6ee75a;
  --link-hover: #54d11b;
  --caution: #ff9f0a;
  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-sm: 10px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --max-prose: 40rem;
  --max-hero: 72rem;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.55;
  color: var(--text-primary);
  background: var(--kam-bg-deep);
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(ellipse 80% 55% at 50% -10%, rgba(82, 211, 25, 0.22), transparent 55%),
    radial-gradient(ellipse 60% 40% at 85% 20%, rgba(60, 230, 201, 0.06), transparent 50%),
    radial-gradient(ellipse 50% 35% at 10% 80%, rgba(84, 209, 27, 0.08), transparent 45%),
    linear-gradient(180deg, var(--kam-bg-mid) 0%, var(--kam-bg-deep) 45%, #050809 100%);
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.page-shell {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* —— Header —— */
.site-header {
  width: 100%;
  max-width: var(--max-hero);
  margin: 0 auto;
  padding: 1.25rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--text-primary);
}

.brand-link:focus-visible {
  outline: 2px solid var(--kam-green);
  outline-offset: 4px;
  border-radius: var(--radius-sm);
}

.brand-link--mark-only {
  gap: 0;
}

.kam-mark {
  width: 2.75rem;
  height: 2.75rem;
  border: 2px solid rgba(255, 255, 255, 0.88);
  border-radius: 0.65rem;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 1rem;
  letter-spacing: 0.02em;
  color: #fff;
  background: linear-gradient(145deg, rgba(84, 209, 27, 0.25), rgba(7, 11, 14, 0.4));
  box-shadow: 0 0 32px var(--kam-green-glow);
}

.brand-word {
  font-weight: 700;
  font-size: 1.125rem;
  letter-spacing: -0.02em;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  font-size: 0.9375rem;
}

.site-nav a {
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.15s ease;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--link-hover);
}

.site-nav a:focus-visible {
  outline: 2px solid var(--kam-green);
  outline-offset: 3px;
  border-radius: 4px;
}

/* —— Links —— */
a.content-link {
  color: var(--link);
  text-decoration: none;
  border-bottom: 1px solid rgba(110, 231, 90, 0.35);
  transition: color 0.15s, border-color 0.15s;
}

a.content-link:hover {
  color: var(--link-hover);
  border-bottom-color: var(--kam-green);
}

a.content-link:focus-visible {
  outline: 2px solid var(--kam-green);
  outline-offset: 2px;
}

/* —— Home hero —— */
.hero-main {
  flex: 1;
  width: 100%;
  max-width: var(--max-hero);
  margin: 0 auto;
  padding: 0.75rem 1.25rem 3.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.hero-wordmark {
  margin: 0.5rem 0 0.9rem;
  font-size: clamp(1.75rem, 4.2vw, 2.35rem);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 1;
  color: rgba(255, 255, 255, 0.97);
  text-shadow:
    0 0 36px rgba(84, 209, 27, 0.32),
    0 0 80px rgba(84, 209, 27, 0.12);
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-secondary);
  border: 1px solid var(--surface-border);
  background: rgba(7, 11, 14, 0.5);
  margin: 0 0 1.35rem;
}

.hero-badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--kam-green);
  box-shadow: 0 0 10px var(--kam-green);
}

.hero-title {
  margin: 0 0 1rem;
  font-size: clamp(2.25rem, 6vw, 3.75rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.08;
  max-width: 16ch;
}

.hero-lead {
  margin: 0 0 0.75rem;
  font-size: clamp(1.05rem, 2.5vw, 1.25rem);
  color: var(--text-secondary);
  max-width: 36rem;
  line-height: 1.5;
}

.hero-lead.hero-intro {
  margin-bottom: 2.75rem;
}

.hero-sub {
  margin: 0 0 2.75rem;
  font-size: 0.95rem;
  color: var(--text-muted);
  max-width: 32rem;
}

/* Score showcase */
.score-showcase {
  width: 100%;
  max-width: 42rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 2.5rem;
}

@media (max-width: 520px) {
  .score-showcase {
    grid-template-columns: 1fr;
    max-width: 18rem;
  }
}

.score-card {
  position: relative;
  padding: 1.35rem 1.25rem 1.15rem;
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--surface-border);
  backdrop-filter: blur(12px);
  text-align: left;
  overflow: hidden;
}

.score-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.12), transparent);
}

.score-card--kam {
  box-shadow: 0 0 48px rgba(84, 209, 27, 0.08);
}

.score-card--your {
  box-shadow: 0 0 40px rgba(255, 159, 10, 0.06);
}

.score-label {
  margin: 0 0 0.35rem;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.score-value {
  margin: 0;
  font-size: clamp(2.5rem, 8vw, 3.25rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
}

.score-card--kam .score-value {
  color: var(--kam-green);
  text-shadow: 0 0 40px rgba(84, 209, 27, 0.45);
}

.score-card--your .score-value {
  color: var(--text-primary);
}

.score-caption {
  margin: 0.65rem 0 0;
  font-size: 0.8125rem;
  color: var(--text-secondary);
  line-height: 1.4;
}

.verdict-chip {
  display: inline-block;
  margin-top: 0.75rem;
  padding: 0.3rem 0.65rem;
  border-radius: 6px;
  font-size: 0.6875rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: rgba(255, 159, 10, 0.14);
  color: #ffc46b;
  border: 1px solid rgba(255, 159, 10, 0.28);
}

.score-example-note {
  margin: 0 0 2rem;
  font-size: 0.75rem;
  color: var(--text-muted);
  max-width: 28rem;
}

.thesis-row {
  width: 100%;
  max-width: 36rem;
  display: grid;
  gap: 0.85rem;
  text-align: left;
  margin-bottom: 2rem;
}

.thesis-item {
  padding: 0.85rem 1rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--surface-border);
  background: rgba(7, 11, 14, 0.45);
}

.thesis-item strong {
  display: block;
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--kam-green);
  margin-bottom: 0.25rem;
}

.thesis-item span {
  font-size: 0.875rem;
  color: var(--text-secondary);
}

/* —— Legal / support content pages —— */
.page-content {
  flex: 1;
  width: 100%;
  max-width: var(--max-prose);
  margin: 0 auto;
  padding: 1rem 1.5rem 3.5rem;
}

.page-content h1 {
  margin: 0 0 0.5rem;
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.page-meta {
  margin: 0 0 2rem;
  font-size: 0.875rem;
  color: var(--text-muted);
}

.page-content h2 {
  margin: 2rem 0 0.75rem;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
  padding-top: 0.5rem;
  border-top: 1px solid var(--surface-border);
}

.page-content h2:first-of-type {
  border-top: none;
  padding-top: 0;
}

.page-content p,
.page-content li {
  color: var(--text-secondary);
  font-size: 0.975rem;
}

.page-content ul,
.page-content ol {
  padding-left: 1.25rem;
  margin: 0.5rem 0 1rem;
}

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

.page-intro {
  font-size: 1.05rem;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
}

.support-lead {
  font-size: 1.15rem;
  color: var(--text-primary);
  margin-bottom: 1.5rem;
}

.contact-block {
  margin-top: 2rem;
  padding: 1.25rem 1.35rem;
  border-radius: var(--radius-md);
  background: var(--surface-elevated);
  border: 1px solid var(--surface-border);
}

.contact-block a {
  font-weight: 600;
  font-size: 1.05rem;
}

/* —— Footer —— */
.site-footer {
  width: 100%;
  max-width: var(--max-hero);
  margin: 0 auto;
  padding: 2rem 1.5rem 2.5rem;
  border-top: 1px solid var(--surface-border);
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.footer-brand strong {
  font-size: 0.9375rem;
}

.footer-brand span {
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.5rem;
  font-size: 0.875rem;
}

.footer-links a {
  color: var(--text-secondary);
  text-decoration: none;
}

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

.footer-links a:focus-visible {
  outline: 2px solid var(--kam-green);
  outline-offset: 2px;
}

.footer-copy {
  width: 100%;
  margin: 0.5rem 0 0;
  font-size: 0.75rem;
  color: var(--text-muted);
}

@media (min-width: 768px) {
  .hero-main {
    padding: 1.25rem 1.5rem 4rem;
  }

  .hero-wordmark {
    margin: 0.75rem 0 1rem;
  }

  .hero-badge {
    margin-bottom: 1.5rem;
  }
}

@media (min-width: 1024px) {
  .hero-main {
    padding-top: 1.5rem;
    padding-bottom: 5rem;
  }

  .hero-wordmark {
    margin: 1rem 0 1.05rem;
  }

  .hero-badge {
    margin-bottom: 1.65rem;
  }

  .site-header {
    padding-top: 1.75rem;
  }
}

@media (min-width: 1440px) {
  .hero-main {
    padding-top: 2rem;
  }

  .hero-wordmark {
    margin: 1.25rem 0 1.1rem;
  }
}
