/* Word Madness Answers - Premium CSS */

:root {
  --wm-ink: #221036;
  --wm-ink-2: #2E1747;
  --wm-paper: #FAF8F4;
  --wm-card: #FFFFFF;
  --wm-magenta: #E63888;
  --wm-magenta-d: #C42670;
  --wm-lilac: #8A63E8;
  --wm-lilac-d: #6B46C4;
  --wm-zap: #FFC53D;
  --wm-text: #2A2138;
  --wm-mut: #6E6480;
  --wm-line: #EAE4F2;
  --tier-easy: #2FA36B;
  --tier-med: #E8912B;
  --tier-hard: #D6455D;
  --r-card: 22px;
  --r-tile: 12px;
  --shadow: 0 10px 30px rgba(34,16,54,.10);
}

/* Reset + Base */
*, *::before, *::after {
  box-sizing: border-box;
}

body {
  font-family: 'Schibsted Grotesk', system-ui, sans-serif;
  font-size: 16.5px;
  line-height: 1.65;
  color: var(--wm-text);
  background: var(--wm-paper);
  margin: 0;
  padding: 0;
}

a { color: var(--wm-magenta); }
img { max-width: 100%; height: auto; }

/* PAGE WRAP */
.page-wrap {
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 22px;
}

/* TOPBAR */
.topbar {
  background: #221036;
  position: sticky;
  top: 0;
  z-index: 50;
  min-height: 62px;
  border-bottom: 1px solid rgba(255,255,255,.07);
}
.topbar .wrap {
  display: flex;
  align-items: center;
  gap: 20px;
  min-height: 62px;
}
.logo-mark {
  width: 34px;
  height: 34px;
  flex-shrink: 0;
  text-decoration: none;
  display: flex;
  align-items: center;
}
.logo-mark img {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  display: block;
}
.logo-text {
  font-family: 'Unbounded', system-ui, sans-serif;
  font-weight: 800;
  font-size: 16px;
  color: white;
  text-decoration: none;
  white-space: nowrap;
}
.logo-mad {
  color: #FFC53D;
}
.topbar-nav {
  display: flex;
  flex: 1;
  flex-wrap: nowrap;
  gap: 4px;
  align-items: center;
}
.topbar-nav a {
  font-family: 'Schibsted Grotesk', system-ui, sans-serif;
  font-weight: 600;
  font-size: 14px;
  color: #CFC5E6;
  padding: 8px 12px;
  border-radius: 9px;
  text-decoration: none;
  white-space: nowrap;
  transition: color .15s, background .15s;
}
.topbar-nav a:hover {
  color: white;
  background: rgba(255,255,255,.08);
}
.topbar-nav a.active,
.topbar-nav a[aria-current="page"] {
  color: white;
  background: #E63888;
}
.lang-chips {
  display: flex;
  gap: 6px;
  align-items: center;
  flex-shrink: 0;
}
.lang-chip {
  font-family: 'Martian Mono', monospace;
  font-size: 11px;
  color: #9C8FC0;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 7px;
  padding: 3px 7px;
  text-decoration: none;
  transition: color .15s, background .15s;
}
.lang-chip:hover {
  color: white;
  border-color: rgba(255,255,255,.4);
}
.lang-chip.active {
  color: #221036;
  background: #FFC53D;
  border-color: #FFC53D;
}
.dark-toggle {
  background: transparent;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 8px;
  color: #CFC5E6;
  font-size: 14px;
  padding: 6px 10px;
  cursor: pointer;
  flex-shrink: 0;
  transition: color .15s, border-color .15s;
}
.dark-toggle:hover {
  color: white;
  border-color: rgba(255,255,255,.4);
}
.burger {
  display: none;
  background: transparent;
  border: none;
  color: white;
  font-size: 22px;
  cursor: pointer;
  padding: 6px;
  margin-left: auto;
}
.mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  background: #221036;
  z-index: 100;
  flex-direction: column;
  padding: 20px;
  overflow-y: auto;
}
.mobile-menu.open {
  display: flex;
}
.mobile-menu a {
  font-family: 'Schibsted Grotesk', system-ui, sans-serif;
  font-weight: 600;
  font-size: 18px;
  color: #CFC5E6;
  text-decoration: none;
  padding: 14px 0;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.mobile-menu a:hover { color: white; }
.mobile-menu .lang-chips {
  margin-top: 20px;
}
.mobile-menu-close {
  background: transparent;
  border: none;
  color: white;
  font-size: 26px;
  cursor: pointer;
  align-self: flex-end;
  margin-bottom: 10px;
}

/* HERO */
.hero {
  background: radial-gradient(1100px 500px at 70% -10%, #3A1D5C 0%, #221036 55%);
  padding: 58px 0 66px;
}
.hero-kicker {
  font-family: 'Martian Mono', monospace;
  font-weight: 700;
  font-size: 11.5px;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: #FFC53D;
  background: rgba(255,197,61,.12);
  border: 1px solid rgba(255,197,61,.35);
  border-radius: 999px;
  padding: 6px 14px;
  display: inline-block;
  margin-bottom: 18px;
}
.hero h1 {
  font-family: 'Unbounded', system-ui, sans-serif;
  font-weight: 800;
  font-size: clamp(30px, 4.6vw, 46px);
  line-height: 1.12;
  letter-spacing: -0.5px;
  color: white;
  margin: 0 0 6px;
}
.hero-grad {
  background: linear-gradient(92deg, #E63888, #8A63E8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-lede {
  font-size: 18px;
  color: #D8CFEA;
  max-width: 680px;
  margin-top: 18px;
}
.hero-lede strong {
  color: #FFFFFF;
}

/* SWIPE TILES */
.tiles-row {
  display: flex;
  gap: 10px;
  margin-top: 32px;
  align-items: center;
  position: relative;
}
.tile {
  width: 58px;
  height: 58px;
  border-radius: 12px;
  background: white;
  color: var(--wm-ink);
  font-family: 'Martian Mono', monospace;
  font-weight: 700;
  font-size: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 18px rgba(0,0,0,.35);
  flex-shrink: 0;
}
.tile.zap {
  background: #FFC53D;
}
.tiles-path {
  position: absolute;
  top: 0;
  left: 0;
  pointer-events: none;
}
.tiles-path path {
  stroke: #E63888;
  stroke-width: 7;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
  stroke-dasharray: 620;
  stroke-dashoffset: 620;
  animation: swipe 2.6s 0.5s cubic-bezier(.6,.05,.3,1) forwards;
}
@keyframes swipe {
  to { stroke-dashoffset: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .tiles-path path {
    stroke-dashoffset: 0;
    animation: none;
  }
}

/* BUTTONS */
.btn-primary {
  background: #E63888;
  color: white;
  border-radius: 12px;
  padding: 13px 22px;
  font-family: 'Schibsted Grotesk', system-ui, sans-serif;
  font-weight: 700;
  font-size: 15px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  transition: background .15s;
}
.btn-primary:hover {
  background: #C42670;
  color: white;
}
.btn-ghost {
  background: transparent;
  border: 1.5px solid rgba(255,255,255,.35);
  color: white;
  border-radius: 12px;
  padding: 13px 22px;
  font-family: 'Schibsted Grotesk', system-ui, sans-serif;
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  transition: border-color .15s, color .15s;
}
.btn-ghost:hover {
  border-color: #FFC53D;
  color: #FFC53D;
}
.btn-primary:focus-visible,
.btn-ghost:focus-visible {
  outline: 2px solid #8A63E8;
  outline-offset: 2px;
}

/* CARD */
.card {
  background: white;
  border: 1px solid #EAE4F2;
  border-radius: 22px;
  box-shadow: var(--shadow);
  padding: 30px 34px;
  margin-bottom: 30px;
}

/* SECTION HEADING */
.sec-h {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 16px;
}
.sec-h .bar {
  width: 26px;
  height: 8px;
  border-radius: 99px;
  background: linear-gradient(90deg, #E63888, #8A63E8);
  flex-shrink: 0;
}
.sec-h h2 {
  font-family: 'Unbounded', system-ui, sans-serif;
  font-weight: 700;
  font-size: 21px;
  letter-spacing: -0.2px;
  margin: 0;
}

/* STAT BAND */
.stat-band {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 30px;
}
.stat-cell {
  background: #221036;
  border-radius: 16px;
  padding: 18px 16px;
  text-align: center;
}
.stat-value {
  font-family: 'Martian Mono', monospace;
  font-weight: 700;
  font-size: 26px;
  color: #FFC53D;
  display: block;
}
.stat-label {
  font-size: 12.5px;
  color: #BBADD6;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  display: block;
  margin-top: 4px;
}

/* SURFACE CARDS */
.surface-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 30px;
}
.surface-card {
  border-radius: 18px;
  padding: 22px;
  color: white;
  position: relative;
  transition: transform .15s;
  text-decoration: none;
  display: block;
}
.surface-card:hover {
  transform: translateY(-2px);
  color: white;
}
.surface-card h3 {
  font-family: 'Unbounded', system-ui, sans-serif;
  font-weight: 700;
  font-size: 17px;
  margin: 0 0 8px;
}
.surface-card p {
  font-size: 13.5px;
  opacity: .92;
  margin: 0;
}
.surface-card .corner-tag {
  position: absolute;
  top: 14px;
  right: 14px;
  font-family: 'Martian Mono', monospace;
  font-size: 10px;
  font-weight: 700;
  background: rgba(255,255,255,.2);
  border-radius: 6px;
  padding: 3px 7px;
}
.surface-daily {
  background: linear-gradient(135deg, #6B46C4, #8A63E8);
}
.surface-vip {
  background: linear-gradient(135deg, #8A5A00, #C98A12);
}
.surface-vip .corner-tag {
  color: var(--wm-ink);
  background: #FFC53D;
}
.surface-wordle {
  background: linear-gradient(135deg, #1E7A4F, #2FA36B);
}

/* RANGE GRID */
.range-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
}
.range-chip {
  font-family: 'Martian Mono', monospace;
  font-size: 12.5px;
  font-weight: 600;
  text-align: center;
  background: white;
  border: 1.5px solid #EAE4F2;
  border-radius: 12px;
  padding: 12px 6px;
  color: var(--wm-ink);
  text-decoration: none;
  display: block;
  transition: border-color .15s, color .15s, background .15s;
}
.range-chip:hover {
  border-color: #E63888;
  color: #E63888;
  background: #FEF3F8;
}
.range-chip .sub {
  font-family: 'Schibsted Grotesk', system-ui, sans-serif;
  font-size: 11px;
  font-weight: 500;
  color: #6E6480;
  display: block;
  margin-top: 3px;
}

/* ANSWER TILES */
.answer-word {
  display: flex;
  gap: 4px;
  align-items: center;
  background: #F6F2FB;
  border: 1px solid #EAE4F2;
  border-radius: 14px;
  padding: 8px;
  margin-bottom: 8px;
}
.letter-tile {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  background: #221036;
  color: white;
  font-family: 'Martian Mono', monospace;
  font-weight: 700;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.letter-tile.full-pool {
  background: #FFC53D;
  color: #221036;
}

/* TIER PILLS */
.tier-pill {
  font-family: 'Martian Mono', monospace;
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-radius: 7px;
  padding: 4px 10px;
  color: white;
  display: inline-block;
}
.tier-easy { background: #2FA36B; }
.tier-med  { background: #E8912B; }
.tier-hard { background: #D6455D; }

/* TABLES */
table {
  width: 100%;
  border-collapse: collapse;
}
th {
  font-family: 'Martian Mono', monospace;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #6E6480;
  padding: 10px 12px;
  border-bottom: 2px solid #EAE4F2;
  text-align: left;
}
td {
  font-size: 12px;
  padding: 10px 12px;
  border-bottom: 1px solid #EAE4F2;
}
td.word-cell {
  font-family: 'Martian Mono', monospace;
  font-weight: 700;
  color: var(--wm-ink);
}
tr:hover td {
  background: #FBF8FE;
}

/* FAQ */
.faq-item {
  border: 1px solid #EAE4F2;
  border-radius: 14px;
  margin-bottom: 8px;
  overflow: hidden;
}
.faq-item summary {
  font-family: 'Schibsted Grotesk', system-ui, sans-serif;
  font-weight: 700;
  font-size: 15px;
  padding: 15px 48px 15px 18px;
  cursor: pointer;
  list-style: none;
  position: relative;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+';
  font-family: 'Martian Mono', monospace;
  color: #E63888;
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
}
.faq-item[open] summary::after {
  content: '-';
}
.faq-answer {
  font-size: 15px;
  color: #6E6480;
  padding: 0 18px 15px;
}

/* FOOTER */
.footer {
  background: #221036;
  color: #BBADD6;
  font-size: 14px;
  padding: 46px 0 30px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 30px;
}
.footer h4 {
  font-family: 'Unbounded', system-ui, sans-serif;
  font-weight: 700;
  font-size: 13px;
  color: white;
  margin: 0 0 14px;
}
.footer .logo-text {
  margin-bottom: 10px;
  display: block;
}
.footer a {
  color: #BBADD6;
  text-decoration: none;
  display: block;
  margin-bottom: 8px;
  transition: color .15s;
}
.footer a:hover {
  color: #FFC53D;
}
.footer-desc {
  font-size: 13.5px;
  line-height: 1.6;
  margin-top: 8px;
}
.footer-legal {
  border-top: 1px solid rgba(255,255,255,.1);
  margin-top: 30px;
  padding-top: 16px;
  font-size: 12.5px;
  color: #8A7BA8;
}

/* DARK MODE */
[data-theme="dark"] {
  --wm-paper: #17102A;
  --wm-card: #221636;
  --wm-line: #3A2B54;
  --wm-text: #E8E1F5;
  --wm-mut: #A899C4;
}
[data-theme="dark"] body {
  background: var(--wm-paper);
  color: var(--wm-text);
}
[data-theme="dark"] .card {
  background: var(--wm-card);
  border-color: var(--wm-line);
}
[data-theme="dark"] .range-chip {
  background: var(--wm-card);
  border-color: var(--wm-line);
  color: var(--wm-text);
}
[data-theme="dark"] .answer-word {
  background: #2A1B40;
  border-color: var(--wm-line);
}
[data-theme="dark"] tr:hover td {
  background: #2A1B40;
}
[data-theme="dark"] td,
[data-theme="dark"] th {
  border-color: var(--wm-line);
}
[data-theme="dark"] .faq-item {
  border-color: var(--wm-line);
}

/* BREADCRUMB */
.breadcrumb {
  font-size: 13px;
  color: var(--wm-mut);
  margin-bottom: 20px;
}
.breadcrumb a {
  color: var(--wm-mut);
  text-decoration: none;
}
.breadcrumb a:hover { color: var(--wm-magenta); }
.breadcrumb span { margin: 0 6px; }

/* PAGINATION */
.pagination {
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: center;
  margin: 30px 0;
  flex-wrap: wrap;
}
.pagination a,
.pagination span {
  font-family: 'Martian Mono', monospace;
  font-size: 13px;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: 10px;
  text-decoration: none;
  border: 1.5px solid #EAE4F2;
  color: var(--wm-ink);
  transition: border-color .15s, color .15s;
}
.pagination a:hover {
  border-color: #E63888;
  color: #E63888;
}
.pagination .current {
  background: #E63888;
  border-color: #E63888;
  color: white;
}

/* SEARCH FORM */
.search-form {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}
.search-input {
  flex: 1;
  min-width: 200px;
  font-family: 'Martian Mono', monospace;
  font-size: 15px;
  font-weight: 600;
  padding: 12px 16px;
  border: 2px solid #EAE4F2;
  border-radius: 12px;
  background: white;
  color: var(--wm-ink);
  letter-spacing: 2px;
  transition: border-color .15s;
}
.search-input:focus {
  outline: none;
  border-color: #8A63E8;
}
[data-theme="dark"] .search-input {
  background: var(--wm-card);
  border-color: var(--wm-line);
  color: var(--wm-text);
}

/* RESPONSIVE */
@media (max-width: 1080px) {
  .stat-band {
    grid-template-columns: repeat(2, 1fr);
  }
  .range-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 880px) {
  .surface-grid {
    grid-template-columns: 1fr;
  }
  .range-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .lang-chips {
    display: none;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 760px) {
  .stat-band {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .range-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .topbar-nav {
    display: none;
  }
  .burger {
    display: block;
  }
  .card {
    padding: 20px 18px;
  }
}

/* =============================================
   HOME PAGE COMPONENTS
   ============================================= */

/* HERO CTAs row */
.hero-ctas {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 28px;
}

/* tiles z-index override */
.tile-z2 {
  position: relative;
  z-index: 2;
}

/* BYLINE */
.byline {
  font-size: 13.5px;
  color: var(--wm-mut);
  margin: -8px 0 16px;
}
.byline a {
  color: var(--wm-lilac);
  text-decoration: none;
}
.byline a:hover { color: var(--wm-magenta); }

/* SURFACE CTA */
.surface-cta {
  display: inline-block;
  margin-top: 12px;
  font-family: 'Unbounded', system-ui, sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .03em;
  text-transform: uppercase;
  color: inherit;
  opacity: .85;
}
.surface-card:hover .surface-cta { opacity: 1; text-decoration: underline; }

/* SEARCH HINT */
.search-hint {
  font-size: 13px;
  color: var(--wm-mut);
  margin-top: 10px;
}
.search-hint a { color: var(--wm-lilac); text-decoration: none; }
.search-hint a:hover { text-decoration: underline; }

/* B1: STEP GRID */
.step-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin: 22px 0 20px;
}
.step-card {
  background: #F7F4FE;
  border: 1.5px solid #EAE4F2;
  border-radius: 14px;
  padding: 20px 18px;
}
[data-theme="dark"] .step-card {
  background: var(--wm-card);
  border-color: var(--wm-line);
}
.step-marker {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--wm-lilac);
  color: white;
  font-family: 'Unbounded', system-ui, sans-serif;
  font-weight: 800;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
}
.step-title {
  font-family: 'Unbounded', system-ui, sans-serif;
  font-weight: 700;
  font-size: 13px;
  color: var(--wm-ink);
  margin: 0 0 6px;
}
[data-theme="dark"] .step-title { color: var(--wm-text); }
.step-text {
  font-size: 13.5px;
  color: var(--wm-mut);
  margin: 0;
  line-height: 1.55;
}

/* B2: TODAY GRID */
.today-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin: 18px 0 14px;
}
.today-card {
  text-decoration: none;
}
.today-footer {
  font-size: 13px;
  color: var(--wm-mut);
  margin-top: 6px;
}
.today-footer a { color: var(--wm-lilac); text-decoration: none; }
.today-footer a:hover { text-decoration: underline; }

/* B3: TIPS GRID */
.tips-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 20px 0 18px;
}
.tip-card {
  background: #F7F4FE;
  border: 1.5px solid #EAE4F2;
  border-radius: 12px;
  padding: 16px 16px;
}
[data-theme="dark"] .tip-card {
  background: var(--wm-card);
  border-color: var(--wm-line);
}
.tip-title {
  font-family: 'Unbounded', system-ui, sans-serif;
  font-weight: 700;
  font-size: 12.5px;
  color: var(--wm-ink);
  margin: 0 0 6px;
}
[data-theme="dark"] .tip-title { color: var(--wm-text); }
.tip-text {
  font-size: 13px;
  color: var(--wm-mut);
  margin: 0;
  line-height: 1.5;
}

/* B4: STATS DL */
.stats-dl {
  margin: 18px 0 0;
}
.stats-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 20px;
  padding: 12px 0;
  border-bottom: 1px solid var(--wm-line, #EAE4F2);
}
.stats-row:last-child { border-bottom: none; }
.stats-row dt {
  font-size: 14px;
  color: var(--wm-mut);
  flex: 1;
}
.stats-row dd {
  font-family: 'Martian Mono', monospace;
  font-size: 13px;
  font-weight: 600;
  color: var(--wm-ink);
  text-align: right;
  margin: 0;
}
[data-theme="dark"] .stats-row dd { color: var(--wm-text); }
[data-theme="dark"] .stats-row { border-color: var(--wm-line); }

/* B5: SCENARIO LIST */
.scenario-list {
  margin: 18px 0 6px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.scenario-row {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  background: #F7F4FE;
  border: 1.5px solid #EAE4F2;
  border-radius: 12px;
  padding: 16px 18px;
}
[data-theme="dark"] .scenario-row {
  background: var(--wm-card);
  border-color: var(--wm-line);
}
.scenario-icon {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--wm-magenta);
  color: white;
  font-family: 'Unbounded', system-ui, sans-serif;
  font-weight: 800;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.scenario-body { flex: 1; }
.scenario-title {
  font-family: 'Unbounded', system-ui, sans-serif;
  font-weight: 700;
  font-size: 13px;
  color: var(--wm-ink);
  margin: 0 0 4px;
}
[data-theme="dark"] .scenario-title { color: var(--wm-text); }
.scenario-text {
  font-size: 13.5px;
  color: var(--wm-mut);
  margin: 0;
  line-height: 1.5;
}
.scenario-text a { color: var(--wm-lilac); text-decoration: none; }
.scenario-text a:hover { text-decoration: underline; }

/* B6: COMMENT FORM */
.comment-form-wrap {
  margin-top: 26px;
  border-top: 1.5px solid var(--wm-line, #EAE4F2);
  padding-top: 22px;
}
[data-theme="dark"] .comment-form-wrap { border-color: var(--wm-line); }
.comment-form-title {
  font-family: 'Unbounded', system-ui, sans-serif;
  font-weight: 700;
  font-size: 15px;
  color: var(--wm-ink);
  margin: 0 0 16px;
}
[data-theme="dark"] .comment-form-title { color: var(--wm-text); }
.comment-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.comment-field {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.comment-field label {
  font-size: 13px;
  font-weight: 600;
  color: var(--wm-ink);
}
[data-theme="dark"] .comment-field label { color: var(--wm-text); }
.comment-field input,
.comment-field textarea {
  font-family: 'Schibsted Grotesk', system-ui, sans-serif;
  font-size: 14px;
  padding: 10px 13px;
  border: 1.5px solid #EAE4F2;
  border-radius: 10px;
  background: white;
  color: var(--wm-ink);
  transition: border-color .15s;
}
[data-theme="dark"] .comment-field input,
[data-theme="dark"] .comment-field textarea {
  background: var(--wm-card);
  border-color: var(--wm-line);
  color: var(--wm-text);
}
.comment-field input:focus,
.comment-field textarea:focus {
  outline: none;
  border-color: var(--wm-lilac);
}
.comment-field textarea { resize: vertical; min-height: 90px; }
.comment-check { flex-direction: row; align-items: center; gap: 8px; }
.comment-check label { font-weight: 400; display: flex; align-items: center; gap: 6px; }
.char-counter {
  font-family: 'Martian Mono', monospace;
  font-size: 11px;
  font-weight: 600;
  color: var(--wm-mut);
  margin-left: 6px;
}
.comment-note {
  font-size: 13px;
  margin: 4px 0 0;
  min-height: 18px;
}
.comment-ok { color: #16A34A; }
.comment-err { color: #DC2626; }

/* RESPONSIVE: home blocks */
@media (max-width: 760px) {
  .step-grid {
    grid-template-columns: 1fr;
  }
  .today-grid {
    grid-template-columns: 1fr;
  }
  .tips-grid {
    grid-template-columns: 1fr;
  }
  .stats-row {
    flex-direction: column;
    gap: 4px;
  }
  .stats-row dd { text-align: left; }
  .hero-ctas { flex-direction: column; }
}

/* HONEYPOT (hidden via class, not inline style) */
.hp-field {
  display: none;
  visibility: hidden;
  position: absolute;
  left: -9999px;
}

/* COMMENT SYSTEM - WM TOKENS */
.cmt-sort-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}
.cmt-count-label {
  font-size: 13px;
  color: var(--wm-mut);
  margin-right: 4px;
}
.cmt-sort-chips {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.cmt-sort-chip {
  font-family: 'Schibsted Grotesk', system-ui, sans-serif;
  font-weight: 600;
  font-size: 13px;
  padding: 5px 12px;
  border-radius: 8px;
  border: 1.5px solid #EAE4F2;
  background: #FDFCFA;
  color: #6B46C4;
  text-decoration: none;
  transition: background .15s, color .15s, border-color .15s;
}
.cmt-sort-chip:hover {
  border-color: #8A63E8;
  color: #8A63E8;
}
.cmt-sort-chip.active {
  background: #E63888;
  border-color: #E63888;
  color: white;
}
.cmt-empty {
  font-size: 14px;
  color: var(--wm-mut);
  font-style: italic;
  padding: 10px 0 18px;
}
.cmt-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 28px;
}
.cmt-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.cmt-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, #E63888, #8A63E8);
  color: white;
  font-family: 'Unbounded', system-ui, sans-serif;
  font-weight: 800;
  font-size: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.cmt-avatar-sm {
  width: 28px;
  height: 28px;
  font-size: 11px;
}
.cmt-body {
  flex: 1;
  min-width: 0;
}
.cmt-header {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 4px;
}
.cmt-author {
  font-weight: 700;
  font-size: 14px;
  color: var(--wm-ink);
}
.cmt-date {
  font-size: 12px;
  color: var(--wm-mut);
}
.cmt-text {
  font-size: 14px;
  line-height: 1.6;
  color: var(--wm-ink);
  margin: 0 0 8px;
}
.cmt-actions {
  display: flex;
  gap: 12px;
  align-items: center;
}
.cmt-like-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12.5px;
  color: var(--wm-mut);
  background: none;
  border: 1px solid #EAE4F2;
  border-radius: 20px;
  padding: 3px 10px;
  cursor: pointer;
  transition: color .15s, border-color .15s;
}
.cmt-like-btn:hover,
.cmt-like-btn.liked {
  color: #E63888;
  border-color: #E63888;
}
.cmt-reply-btn {
  font-size: 12.5px;
  color: var(--wm-mut);
  background: none;
  border: none;
  cursor: pointer;
  text-decoration: underline;
  padding: 0;
  font-family: inherit;
  transition: color .15s;
}
.cmt-reply-btn:hover { color: #8A63E8; }
.cmt-replies {
  margin-top: 12px;
  padding-left: 16px;
  border-left: 2px solid #EAE4F2;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.cmt-reply-item {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}
.cmt-reply-form {
  margin-top: 12px;
  background: #F6F2FB;
  border-radius: 10px;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.cmt-reply-form input,
.cmt-reply-form textarea {
  font-family: 'Schibsted Grotesk', system-ui, sans-serif;
  font-size: 13.5px;
  padding: 8px 12px;
  border: 1.5px solid #EAE4F2;
  border-radius: 8px;
  background: white;
  color: var(--wm-ink);
  width: 100%;
  transition: border-color .15s;
}
.cmt-reply-form input:focus,
.cmt-reply-form textarea:focus {
  outline: none;
  border-color: #8A63E8;
}
.cmt-reply-form textarea { resize: vertical; min-height: 70px; }
.cmt-reply-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}
.cmt-cancel-btn {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 13px;
  color: var(--wm-mut);
  text-decoration: underline;
  font-family: inherit;
}
.cmt-reply-msg {
  font-size: 12.5px;
  min-height: 16px;
  margin: 0;
}

/* DARK MODE - COMMENT SYSTEM - WM TOKENS */
[data-theme="dark"] .cmt-sort-chip {
  background: #221636;
  border-color: #3A2B54;
  color: #C4B2F0;
}
[data-theme="dark"] .cmt-sort-chip.active {
  background: #E63888;
  border-color: #E63888;
  color: white;
}
[data-theme="dark"] .cmt-item,
[data-theme="dark"] .cmt-reply-item {
  /* cards inherit page dark bg */
}
[data-theme="dark"] .cmt-author {
  color: #E8E1F5;
}
[data-theme="dark"] .cmt-text {
  color: #E8E1F5;
}
[data-theme="dark"] .cmt-like-btn {
  border-color: #3A2B54;
  color: #A899C4;
}
[data-theme="dark"] .cmt-replies {
  border-color: #3A2B54;
}
[data-theme="dark"] .cmt-reply-form {
  background: #1B0E2C;
}
[data-theme="dark"] .cmt-reply-form input,
[data-theme="dark"] .cmt-reply-form textarea {
  background: #17102A;
  border-color: #4A3670;
  color: #E8E1F5;
}
[data-theme="dark"] .comment-field input,
[data-theme="dark"] .comment-field textarea {
  background: #17102A;
  border-color: #4A3670;
  color: #E8E1F5;
}
[data-theme="dark"] .comment-form-wrap {
  border-color: #3A2B54;
}
