/* ==========================================================================
   MMFGreen — Global Styles
   ========================================================================== */

:root {
  --bg: #090f0b;
  --bg-alt: #0e1611;
  --surface: rgba(255, 255, 255, 0.055);
  --surface-strong: rgba(255, 255, 255, 0.09);
  --border: rgba(255, 255, 255, 0.08);

  --green: #39ff88;
  --green-soft: #7cff5d;
  --lime: #c6ff4d;
  --teal: #21e6a1;
  --orange: #ff7a29;
  --orange-soft: #ffb066;

  --text: #f3f8f3;
  --muted: #a9bdae;
  --muted-2: #79907f;

  --radius: 24px;
  --radius-sm: 14px;

  --shadow-glow: 0 0 44px rgba(57, 255, 136, 0.16);
  --shadow-card: 0 24px 70px rgba(0, 0, 0, 0.4);

  --max-width: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: "Space Grotesk", "Inter", sans-serif;
  line-height: 1.15;
  margin: 0 0 0.5em;
  letter-spacing: -0.01em;
}

p {
  margin: 0 0 1em;
  color: var(--muted);
}

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

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

img, svg {
  display: block;
  max-width: 100%;
}

button {
  font-family: inherit;
  cursor: pointer;
}

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

/* ---------- animated background ---------- */

.bg-fx {
  position: fixed;
  inset: 0;
  z-index: -2;
  overflow: hidden;
  background: var(--bg);
}

.bg-fx::before,
.bg-fx::after {
  content: "";
  position: absolute;
  width: 60vmax;
  height: 60vmax;
  border-radius: 50%;
  filter: blur(110px);
  opacity: 0.35;
}

.bg-fx::before {
  top: -20vmax;
  left: -15vmax;
  background: radial-gradient(circle at 30% 30%, var(--green), transparent 65%);
  animation: float-a 22s ease-in-out infinite;
}

.bg-fx::after {
  bottom: -25vmax;
  right: -15vmax;
  background: radial-gradient(circle at 60% 60%, var(--teal) 0%, var(--orange) 38%, transparent 60%);
  opacity: 0.22;
  animation: float-b 26s ease-in-out infinite;
}

.bg-grid {
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(57, 255, 136, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(57, 255, 136, 0.03) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, black 40%, transparent 100%);
}

@keyframes float-a {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(8vw, 10vh) scale(1.15); }
}

@keyframes float-b {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-6vw, -8vh) scale(1.1); }
}

/* ---------- glow text / helpers ---------- */

.gradient-text {
  background: linear-gradient(90deg, var(--green) 0%, var(--lime) 25%, var(--teal) 50%, var(--lime) 75%, var(--green) 100%);
  background-size: 220% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 18px rgba(57, 255, 136, 0.35));
  animation: text-shimmer 7s linear infinite;
}

@keyframes text-shimmer {
  to { background-position: -220% center; }
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--green-soft);
  font-weight: 600;
  margin-bottom: 14px;
}

.eyebrow::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 12px 2px var(--green);
  animation: eyebrow-pulse 2.4s ease-in-out infinite;
}

@keyframes eyebrow-pulse {
  0%, 100% { box-shadow: 0 0 12px 2px var(--green); opacity: 1; }
  50% { box-shadow: 0 0 20px 6px var(--green); opacity: 0.65; }
}

/* text entrance animation for hero headings */
.hero .eyebrow,
.hero h1,
.hero .hero-lead,
.hero .hero-actions,
.hero .article-meta {
  animation: text-rise 0.8s ease both;
}

.hero h1 { animation-delay: 0.08s; }
.hero .hero-lead { animation-delay: 0.18s; }
.hero .hero-actions { animation-delay: 0.28s; }
.hero .article-meta { animation-delay: 0.18s; }

@keyframes text-rise {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

/* animated underline for inline text links */
.article-body a,
.legal a {
  color: var(--green-soft);
  background-image: linear-gradient(90deg, var(--green), var(--teal));
  background-size: 0% 2px;
  background-repeat: no-repeat;
  background-position: left bottom;
  transition: background-size 0.3s ease;
  padding-bottom: 2px;
}

.article-body a:hover,
.legal a:hover {
  background-size: 100% 2px;
}

.js .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .js .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .gradient-text,
  .eyebrow::before,
  .hero .eyebrow,
  .hero h1,
  .hero .hero-lead,
  .hero .hero-actions,
  .hero .article-meta {
    animation: none;
  }

  .gradient-text {
    background-position: 0 center;
  }
}

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 16px 32px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 1rem;
  border: 1px solid transparent;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease, border-color 0.25s ease;
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(120deg, var(--green), var(--lime) 55%, var(--teal));
  color: #04140a;
  box-shadow: 0 10px 34px rgba(57, 255, 136, 0.32);
}

.btn-primary:hover {
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 16px 46px rgba(57, 255, 136, 0.46);
}

.btn-ghost {
  background: var(--surface);
  color: var(--text);
  border-color: var(--border);
  backdrop-filter: blur(8px);
}

.btn-ghost:hover {
  border-color: rgba(255, 122, 41, 0.55);
  color: var(--orange-soft);
  transform: translateY(-2px);
}

.btn-block {
  width: 100%;
}

/* ==========================================================================
   Header / Navigation
   ========================================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(7, 10, 8, 0.6);
  backdrop-filter: blur(16px) saturate(140%);
  border-bottom: 1px solid var(--border);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  font-size: 1.3rem;
}

.brand-mark {
  display: flex;
  align-items: center;
  justify-content: center;
  filter: drop-shadow(0 0 10px rgba(255, 122, 41, 0.4));
}

.brand-mark img {
  height: 36px;
  width: auto;
  display: block;
}

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

.nav-links a {
  padding: 10px 16px;
  border-radius: 999px;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--muted);
  transition: color 0.2s ease, background 0.2s ease;
}

.nav-links a:hover {
  color: var(--text);
  background: var(--surface);
}

.nav-links a.active {
  color: var(--green-soft);
  background: var(--surface-strong);
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border);
  border-radius: 10px;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  color: var(--text);
}

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

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

  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    background: rgba(7, 10, 8, 0.97);
    border-bottom: 1px solid var(--border);
    padding: 10px 16px 20px;
    gap: 2px;
    display: none;
  }

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

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

/* ==========================================================================
   Hero
   ========================================================================== */

.hero {
  padding: 90px 0 60px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}

.hero h1 {
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  margin-bottom: 20px;
}

.hero-lead {
  font-size: 1.15rem;
  max-width: 46ch;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 30px;
}

.trust-row {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 20px;
  font-size: 0.85rem;
  color: var(--muted-2);
}

.trust-row span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.trust-row svg {
  width: 16px;
  height: 16px;
  color: var(--green-soft);
  flex-shrink: 0;
}

.hero-stats {
  display: flex;
  gap: 30px;
  margin-top: 46px;
  flex-wrap: wrap;
}

.hero-stats div strong {
  display: block;
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.8rem;
  color: var(--green-soft);
}

.hero-stats div span {
  font-size: 0.85rem;
  color: var(--muted-2);
}

.hero-visual {
  position: relative;
  aspect-ratio: 1 / 1;
  border-radius: 32px;
  background: linear-gradient(160deg, var(--surface-strong), var(--surface));
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

.hero-visual::before {
  content: "";
  position: absolute;
  inset: -40%;
  background: conic-gradient(from 0deg, var(--green), var(--teal), var(--lime), var(--orange), var(--green));
  animation: spin 14s linear infinite;
  opacity: 0.25;
  filter: blur(40px);
}

.hero-visual .leaf {
  position: relative;
  width: 46%;
  color: var(--green);
  filter: drop-shadow(0 0 40px rgba(57, 255, 136, 0.55));
  animation: pulse 4s ease-in-out infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.06); }
}

/* ==========================================================================
   Sections / generic
   ========================================================================== */

section {
  padding: 88px 0;
}

.section-head {
  max-width: 640px;
  margin: 0 auto 48px;
  text-align: center;
}

.section-head.left {
  margin: 0 0 40px;
  text-align: left;
}

.section-head h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 34px;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.card:hover {
  transform: translateY(-6px);
  border-color: rgba(57, 255, 136, 0.4);
  box-shadow: var(--shadow-glow);
}

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

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

.icon-badge {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(57, 255, 136, 0.2), rgba(33, 230, 161, 0.08));
  border: 1px solid rgba(57, 255, 136, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}

.icon-badge svg {
  width: 24px;
  height: 24px;
  color: var(--green-soft);
}

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { max-width: 380px; margin: 0 auto; }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .hero { padding: 60px 0 40px; }
}

/* ==========================================================================
   Shop page
   ========================================================================== */

.shop-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 36px;
}

.shop-toolbar .tag {
  padding: 8px 16px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border);
  font-size: 0.85rem;
  color: var(--muted);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 22px;
}

.product-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.product-card:hover {
  transform: translateY(-6px);
  border-color: rgba(57, 255, 136, 0.4);
  box-shadow: var(--shadow-glow);
}

.product-media {
  position: relative;
  aspect-ratio: 4 / 3;
  background: linear-gradient(135deg, rgba(57, 255, 136, 0.16), rgba(33, 230, 161, 0.06));
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.product-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 16px 16px;
}

.product-media svg {
  width: 34%;
  color: rgba(57, 255, 136, 0.55);
  position: relative;
  z-index: 1;
}

.product-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(7, 10, 8, 0.75);
  border: 1px solid rgba(255, 122, 41, 0.45);
  color: var(--orange-soft);
}

.product-body {
  padding: 18px 18px 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 10px;
}

.product-body h3 {
  font-size: 1.05rem;
  margin: 0;
}

.product-body p {
  font-size: 0.88rem;
  margin: 0;
  flex: 1;
}

.product-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 6px;
}

.product-price {
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  color: var(--text);
}

.product-price span {
  font-size: 0.75rem;
  color: var(--muted-2);
  font-weight: 400;
  display: block;
}

.btn-small {
  padding: 9px 16px;
  font-size: 0.82rem;
}

.shop-note {
  margin-top: 44px;
  padding: 22px 26px;
  border-radius: var(--radius);
  border: 1px dashed rgba(57, 255, 136, 0.35);
  background: rgba(57, 255, 136, 0.05);
  font-size: 0.9rem;
}

/* ==========================================================================
   Coaching page
   ========================================================================== */

.coaching-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 26px;
}

.coaching-card {
  position: relative;
  padding: 32px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
}

.coaching-card.featured {
  border-color: rgba(57, 255, 136, 0.5);
  box-shadow: var(--shadow-glow);
}

.coaching-card.accent-orange {
  border-color: rgba(255, 122, 41, 0.5);
  box-shadow: 0 0 40px rgba(255, 122, 41, 0.16);
}

.coaching-card .tag-pill {
  align-self: flex-start;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--green-soft);
  background: rgba(57, 255, 136, 0.12);
  border: 1px solid rgba(57, 255, 136, 0.3);
  padding: 6px 12px;
  border-radius: 999px;
  margin-bottom: 16px;
}

.coaching-card.accent-orange .tag-pill {
  color: var(--orange-soft);
  background: rgba(255, 122, 41, 0.12);
  border-color: rgba(255, 122, 41, 0.32);
}

.coaching-card.accent-orange .btn-primary {
  background: linear-gradient(120deg, var(--orange), var(--orange-soft));
  box-shadow: 0 8px 30px rgba(255, 122, 41, 0.3);
}

.coaching-card h3 {
  font-size: 1.5rem;
}

.coaching-price {
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.6rem;
  font-weight: 700;
  margin: 14px 0 6px;
  color: var(--text);
}

.coaching-price span {
  font-size: 0.9rem;
  color: var(--muted-2);
  font-weight: 400;
}

.feature-list {
  margin: 18px 0 26px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.92rem;
  color: var(--muted);
}

.feature-list svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  color: var(--green-soft);
  margin-top: 2px;
}

.coaching-card .btn {
  margin-top: auto;
}

/* form */

.form-section {
  margin-top: 60px;
  padding: 40px;
  border-radius: 24px;
  background: var(--surface);
  border: 1px solid var(--border);
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 20px;
}

.form-group.full {
  grid-column: 1 / -1;
}

.form-group label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--muted);
}

.form-group .req {
  color: var(--green-soft);
}

input,
select,
textarea {
  width: 100%;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 13px 16px;
  color: var(--text);
  font-family: inherit;
  font-size: 0.95rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

textarea {
  resize: vertical;
  min-height: 120px;
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--green);
  box-shadow: 0 0 0 4px rgba(57, 255, 136, 0.14);
}

.radio-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.radio-card {
  position: relative;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease;
  display: flex;
  align-items: center;
  gap: 10px;
}

.radio-card input {
  width: auto;
  accent-color: var(--green);
}

.radio-card:has(input:checked) {
  border-color: var(--green);
  background: rgba(57, 255, 136, 0.08);
}

.form-honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.form-status {
  margin-top: 16px;
  font-size: 0.9rem;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  display: none;
}

.form-status.ok {
  display: block;
  background: rgba(57, 255, 136, 0.1);
  border: 1px solid rgba(57, 255, 136, 0.4);
  color: var(--green-soft);
}

.form-status.err {
  display: block;
  background: rgba(255, 90, 90, 0.1);
  border: 1px solid rgba(255, 90, 90, 0.4);
  color: #ff8a8a;
}

@media (max-width: 860px) {
  .coaching-grid { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .radio-cards { grid-template-columns: 1fr; }
  .form-section { padding: 26px; }
}

/* ==========================================================================
   About page
   ========================================================================== */

.about-hero {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 48px;
  align-items: center;
}

.about-photo {
  aspect-ratio: 3 / 4;
  border-radius: 24px;
  background: linear-gradient(160deg, var(--surface-strong), var(--surface));
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.about-photo svg {
  width: 40%;
  color: rgba(57, 255, 136, 0.5);
}

.timeline {
  display: flex;
  flex-direction: column;
  gap: 26px;
  margin-top: 10px;
}

.timeline-item {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 20px;
  padding-bottom: 26px;
  border-bottom: 1px solid var(--border);
}

.timeline-item:last-child {
  border-bottom: none;
}

.timeline-item .year {
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  color: var(--green-soft);
}

.value-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

@media (max-width: 900px) {
  .about-hero { grid-template-columns: 1fr; }
  .about-photo { max-width: 320px; margin: 0 auto; }
  .value-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ==========================================================================
   Impressum
   ========================================================================== */

.legal {
  max-width: 780px;
  margin: 0 auto;
}

.legal h2 {
  margin-top: 40px;
  font-size: 1.3rem;
}

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

.legal p, .legal li {
  color: var(--muted);
  font-size: 0.95rem;
}

.legal ul {
  padding-left: 20px;
  list-style: disc;
}

.placeholder {
  color: var(--lime);
  font-style: italic;
}

/* ==========================================================================
   Article / Ratgeber pages
   ========================================================================== */

.article-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  font-size: 0.85rem;
  color: var(--muted-2);
  margin-bottom: 18px;
}

.article-meta .tag {
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--green-soft);
  font-weight: 600;
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 0.82rem;
  color: var(--muted-2);
  margin-bottom: 18px;
}

.breadcrumbs a {
  color: var(--muted);
}

.breadcrumbs a:hover {
  color: var(--green-soft);
}

.article-layout {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 40px;
  align-items: start;
}

.toc {
  position: sticky;
  top: 100px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
}

.toc h4 {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted-2);
  margin-bottom: 12px;
}

.toc ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.toc a {
  font-size: 0.88rem;
  color: var(--muted);
}

.toc a:hover {
  color: var(--green-soft);
}

.article-body h2 {
  font-size: 1.55rem;
  margin-top: 42px;
  scroll-margin-top: 100px;
}

.article-body h2:first-child {
  margin-top: 0;
}

.article-body h3 {
  font-size: 1.15rem;
  margin-top: 26px;
  scroll-margin-top: 100px;
}

.article-body p,
.article-body li {
  color: var(--muted);
  font-size: 1rem;
}

.article-body ul,
.article-body ol {
  padding-left: 22px;
  margin: 0 0 1em;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.article-body ul {
  list-style: disc;
}

.article-body ol {
  list-style: decimal;
}

.article-body strong {
  color: var(--text);
}

.tldr {
  background: rgba(57, 255, 136, 0.06);
  border: 1px solid rgba(57, 255, 136, 0.28);
  border-radius: var(--radius);
  padding: 22px 26px;
  margin-bottom: 36px;
}

.tldr h4 {
  color: var(--green-soft);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 10px;
}

.faq-item {
  border-bottom: 1px solid var(--border);
  padding: 18px 0;
}

.faq-item:last-child {
  border-bottom: none;
}

.faq-item h3 {
  margin: 0 0 8px;
  font-size: 1rem;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 20px;
}

.related-card {
  padding: 20px;
  border-radius: var(--radius-sm);
  background: var(--surface);
  border: 1px solid var(--border);
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.related-card:hover {
  border-color: rgba(57, 255, 136, 0.4);
  transform: translateY(-4px);
}

.related-card span {
  font-size: 0.75rem;
  color: var(--green-soft);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.related-card h4 {
  font-size: 0.98rem;
  margin: 8px 0 0;
}

@media (max-width: 900px) {
  .article-layout { grid-template-columns: 1fr; }
  .toc { position: static; }
  .related-grid { grid-template-columns: 1fr; }
}

/* ==========================================================================
   Comments
   ========================================================================== */

.comments-section {
  border-top: 1px solid var(--border);
  margin-top: 20px;
}

.comment-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 30px;
}

.comment-empty {
  color: var(--muted-2);
  font-size: 0.92rem;
}

.comment-item {
  padding: 18px 20px;
  border-radius: var(--radius-sm);
  background: var(--surface);
  border: 1px solid var(--border);
}

.comment-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.comment-head strong {
  color: var(--text);
  font-size: 0.92rem;
}

.comment-head span {
  color: var(--muted-2);
  font-size: 0.78rem;
}

.comment-item p {
  margin: 0;
  font-size: 0.92rem;
  color: var(--muted);
}

/* ==========================================================================
   Quiz
   ========================================================================== */

.quiz-shell {
  max-width: 720px;
  margin: 0 auto;
}

.quiz-progress {
  height: 8px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border);
  overflow: hidden;
  margin-bottom: 28px;
}

.quiz-progress-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--green), var(--teal));
  transition: width 0.4s ease;
}

.quiz-meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  color: var(--muted-2);
  margin-bottom: 14px;
}

.quiz-question {
  font-size: 1.3rem;
  margin-bottom: 24px;
}

.quiz-options {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 24px;
}

.quiz-option {
  text-align: left;
  padding: 16px 20px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font-size: 0.96rem;
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.15s ease;
}

.quiz-option:hover:not(:disabled) {
  border-color: rgba(57, 255, 136, 0.4);
  transform: translateY(-2px);
}

.quiz-option:disabled {
  cursor: default;
}

.quiz-option.correct {
  border-color: var(--green);
  background: rgba(57, 255, 136, 0.12);
  color: var(--green-soft);
}

.quiz-option.wrong {
  border-color: #ff5a5a;
  background: rgba(255, 90, 90, 0.1);
  color: #ff8a8a;
}

.quiz-explanation {
  padding: 16px 20px;
  border-radius: var(--radius-sm);
  background: rgba(57, 255, 136, 0.06);
  border: 1px dashed rgba(57, 255, 136, 0.3);
  font-size: 0.9rem;
  color: var(--muted);
  margin-bottom: 24px;
  display: none;
}

.quiz-explanation.show {
  display: block;
}

.quiz-start,
.quiz-result {
  text-align: center;
  padding: 20px 0;
}

.quiz-score {
  font-family: "Space Grotesk", sans-serif;
  font-size: 3.2rem;
  font-weight: 700;
  margin: 20px 0 6px;
}

.quiz-score span {
  font-size: 1.4rem;
  color: var(--muted-2);
  font-weight: 400;
}

.quiz-tier {
  display: inline-block;
  margin-bottom: 20px;
  padding: 8px 18px;
  border-radius: 999px;
  background: rgba(57, 255, 136, 0.12);
  border: 1px solid rgba(57, 255, 136, 0.3);
  color: var(--green-soft);
  font-weight: 600;
  font-size: 0.9rem;
}

@media (max-width: 600px) {
  .quiz-question { font-size: 1.1rem; }
}

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
  border-top: 1px solid var(--border);
  padding: 50px 0 30px;
  margin-top: 40px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 30px;
  margin-bottom: 30px;
}

.footer-grid h4 {
  font-size: 0.9rem;
  color: var(--text);
  margin-bottom: 14px;
}

.footer-grid ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-grid a {
  color: var(--muted);
  font-size: 0.9rem;
  transition: color 0.2s ease;
}

.footer-grid a:hover {
  color: var(--green-soft);
}

.footer-social {
  display: flex;
  gap: 10px;
}

.footer-social a {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--surface);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.footer-social a:hover {
  border-color: var(--orange);
  color: var(--orange-soft);
}

.footer-social svg {
  width: 18px;
  height: 18px;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  font-size: 0.82rem;
  color: var(--muted-2);
}

.footer-bottom a:hover {
  color: var(--green-soft);
}

.age-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  font-size: 0.75rem;
  border: 1px solid var(--border);
}

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

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