/* =========================================================================
   Logic Wiz — site stylesheet
   Loaded on every page. Long-form markdown pages also load content.css
   for typography overrides.
   ========================================================================= */

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

:root {
  --ink: #0e0e12;
  --ink-muted: #5a5a6e;
  --ink-faint: #9898aa;
  --paper: #f8f7f2;
  --paper-warm: #f2f0e8;
  --accent: #2a4fff;
  --accent-soft: #e8edff;
  --gold: #e8a020;
  --gold-soft: #fff8ea;
  --grid-line: rgba(14,14,18,0.08);
  --r: 14px;
  --nav-h: 70px;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', system-ui, sans-serif;
  background: var(--paper);
  color: var(--ink);
  overflow-x: hidden;
}

/* Sub-pages need top padding so content clears the fixed nav. */
body.page main { padding-top: var(--nav-h); }

/* ─── NAV ─── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 5%; height: var(--nav-h);
  background: rgba(248,247,242,0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--grid-line);
}
.nav-logo {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: 1.5rem; color: var(--ink); text-decoration: none;
  display: flex; align-items: center; gap: 10px;
  white-space: nowrap;
}
.nav-logo .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--accent); display: inline-block; }
.nav-panel { display: flex; align-items: center; gap: 2rem; }
.nav-links { display: flex; gap: 2rem; list-style: none; }
.nav-links a { text-decoration: none; color: var(--ink-muted); font-size: 0.875rem; font-weight: 500; letter-spacing: 0.04em; text-transform: uppercase; transition: color 0.2s; }
.nav-links a:hover { color: var(--accent); }
.nav-cta {
  background: var(--ink); color: var(--paper); border: none;
  padding: 0.6rem 1.4rem; border-radius: 100px;
  font-family: 'DM Sans', system-ui, sans-serif; font-size: 0.875rem; font-weight: 500;
  cursor: pointer; text-decoration: none; transition: background 0.2s;
}
.nav-cta:hover { background: var(--accent); }
.nav-toggle {
  display: none; background: transparent; border: 0; cursor: pointer;
  width: 44px; height: 44px; padding: 0;
  flex-direction: column; align-items: center; justify-content: center; gap: 5px;
}
.nav-toggle span {
  display: block; width: 24px; height: 2px; border-radius: 2px;
  background: var(--ink); transition: transform 0.2s, opacity 0.2s;
}
body.menu-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
body.menu-open .nav-toggle span:nth-child(2) { opacity: 0; }
body.menu-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ─── HERO ─── */
.hero {
  min-height: 100vh;
  display: grid; grid-template-columns: 1fr 1fr;
  align-items: center; gap: 4rem;
  padding: 120px 5% 80px;
  position: relative; overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 70% 60% at 80% 50%, var(--accent-soft) 0%, transparent 70%);
  pointer-events: none;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--gold-soft); color: #8a5e00;
  padding: 0.35rem 1rem; border-radius: 100px;
  font-size: 0.8rem; font-weight: 600; letter-spacing: 0.05em;
  text-transform: uppercase; margin-bottom: 1.5rem;
  border: 1px solid rgba(232,160,32,0.3);
}
.hero-badge .star { color: var(--gold); }
h1 {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: clamp(2.8rem, 5vw, 4.5rem);
  line-height: 1.08; letter-spacing: -0.02em;
  margin-bottom: 1.5rem;
}
h1 em { font-style: italic; color: var(--accent); }
.hero-desc {
  font-size: 1.1rem; color: var(--ink-muted); line-height: 1.7;
  max-width: 480px; margin-bottom: 2.5rem;
}
.hero-actions { display: flex; gap: 1rem; align-items: center; flex-wrap: wrap; }
.btn-primary {
  background: var(--ink); color: var(--paper);
  padding: 0.85rem 2rem; border-radius: 100px;
  font-family: 'DM Sans', system-ui, sans-serif; font-size: 1rem; font-weight: 500;
  text-decoration: none; transition: background 0.2s, transform 0.15s;
  display: inline-block;
}
.btn-primary:hover { background: var(--accent); transform: translateY(-2px); }
.btn-secondary {
  color: var(--ink-muted); font-size: 0.9rem; font-weight: 500;
  text-decoration: none; display: flex; align-items: center; gap: 6px;
}
.btn-secondary:hover { color: var(--ink); }

.hero-stats {
  display: flex; gap: 2.5rem; margin-top: 3rem;
  padding-top: 2rem; border-top: 1px solid var(--grid-line);
}
.stat-num {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: 2rem; line-height: 1;
}
.stat-label { font-size: 0.8rem; color: var(--ink-faint); text-transform: uppercase; letter-spacing: 0.06em; margin-top: 4px; }

.hero-visual {
  position: relative;
  width: 100%;
  max-width: 600px;
  justify-self: center;
}
.hero-puzzle {
  position: relative;
  aspect-ratio: 1;
  background: white;
  border-radius: var(--r);
  box-shadow: 0 24px 80px rgba(42,79,255,0.12), 0 0 0 1px rgba(0,0,0,0.06);
  animation: float 6s ease-in-out infinite;
  overflow: hidden;
}
.hero-puzzle-frame {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(0.94);
  animation: puzzle-fade 18s cubic-bezier(0.55, 0, 0.35, 1) infinite;
  will-change: opacity, transform;
}
.hero-puzzle-frame:nth-child(1) { animation-delay: 0s; }
.hero-puzzle-frame:nth-child(2) { animation-delay: -12s; }
.hero-puzzle-frame:nth-child(3) { animation-delay: -6s; }
.hero-puzzle-frame svg { width: 100%; height: 100%; display: block; }
.puzzle-label {
  position: absolute;
  top: 14px; right: 14px;
  max-width: calc(100% - 28px);
  z-index: 2;
  background: var(--ink);
  color: var(--paper);
  padding: 0.4rem 0.85rem;
  border-radius: 100px;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1.25;
  white-space: nowrap;
  box-shadow: 0 4px 14px rgba(0,0,0,0.18);
}
@keyframes float { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-10px)} }
@keyframes puzzle-fade {
  0%, 25%   { opacity: 1; transform: scale(1); }
  33.33%    { opacity: 0; transform: scale(0.94); }
  91.67%    { opacity: 0; transform: scale(0.94); }
  100%      { opacity: 1; transform: scale(1); }
}
@media (prefers-reduced-motion: reduce) {
  .hero-puzzle { animation: none; }
  .hero-puzzle-frame { animation: none; opacity: 0; transform: scale(1); }
  .hero-puzzle-frame:nth-child(1) { opacity: 1; }
}

.floating-chip {
  position: absolute; background: white; border-radius: 12px;
  padding: 0.6rem 1rem; font-size: 0.8rem; font-weight: 500;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
  display: flex; align-items: center; gap: 8px; white-space: nowrap;
}
.chip-1 { top: -20px; right: -20px; animation: float 5s ease-in-out infinite; }
.chip-2 { bottom: 40px; left: -30px; animation: float 7s ease-in-out infinite 1s; }
.chip-dot { width: 8px; height: 8px; border-radius: 50%; }
.chip-dot.green { background: #22c55e; }
.chip-dot.amber { background: var(--gold); }

/* ─── SECTION COMMONS ─── */
section { padding: 100px 5%; }
.section-label {
  font-size: 0.75rem; font-weight: 600; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--accent);
  margin-bottom: 1rem; display: block;
}
h2 {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: clamp(2rem, 3.5vw, 3rem);
  line-height: 1.15; letter-spacing: -0.02em;
  margin-bottom: 1rem;
}
h2 em { font-style: italic; }
.section-intro { font-size: 1.05rem; color: var(--ink-muted); max-width: 560px; line-height: 1.7; }

.section-head { margin-bottom: 4rem; }
.section-head.centered { text-align: center; }
.section-head.centered .section-intro { margin: 0 auto; }

/* ─── APPS ─── */
#games { background: white; }
.apps-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 1.5rem;
}
.app-card {
  border: 1px solid var(--grid-line); border-radius: var(--r);
  padding: 2rem; position: relative; overflow: hidden;
  transition: transform 0.25s, box-shadow 0.25s;
  background: var(--paper);
}
.app-card:hover { transform: translateY(-6px); box-shadow: 0 20px 50px rgba(0,0,0,0.09); }
.app-card.featured { background: var(--ink); color: var(--paper); }
.app-card.featured .app-desc { color: rgba(248,247,242,0.65); }
.app-card.featured .app-tag { background: rgba(255,255,255,0.12); color: rgba(248,247,242,0.9); }
.featured-crown {
  position: absolute; top: 1.5rem; right: 1.5rem;
  background: var(--gold); color: white;
  font-size: 0.7rem; font-weight: 600; letter-spacing: 0.06em;
  text-transform: uppercase; padding: 0.25rem 0.75rem; border-radius: 100px;
}
.app-icon {
  width: 60px; height: 60px; border-radius: 14px;
  object-fit: cover; margin-bottom: 1.25rem;
}
.app-tag {
  display: inline-block; background: var(--accent-soft); color: var(--accent);
  font-size: 0.7rem; font-weight: 600; letter-spacing: 0.07em;
  text-transform: uppercase; padding: 0.25rem 0.75rem; border-radius: 100px;
  margin-bottom: 0.75rem;
}
.app-name { font-family: 'DM Serif Display', Georgia, serif; font-size: 1.4rem; margin-bottom: 0.5rem; }
.app-desc { font-size: 0.9rem; color: var(--ink-muted); line-height: 1.6; margin-bottom: 1.5rem; }
.store-badges { display: flex; gap: 0.6rem; flex-wrap: wrap; align-items: center; }
.store-badge {
  display: inline-block; line-height: 0; text-decoration: none;
  transition: transform 0.15s, opacity 0.15s;
}
.store-badge img { height: 38px; width: auto; display: block; }
.store-badge:hover { transform: translateY(-1px); opacity: 0.9; }
.contact-links .store-badge img { height: 44px; }

/* App cards: keep the two store badges on a single row at all viewport widths,
   scaling the badges down rather than wrapping when the card is narrow. */
.app-card .store-badges { flex-wrap: nowrap; gap: 0.5rem; }
.app-card .store-badge { flex: 1 1 0; min-width: 0; max-width: 130px; }
.app-card .store-badge img { width: 100%; height: auto; }

/* ─── VARIANTS ─── */
#variants { background: var(--ink); color: var(--paper); }
#variants .section-label { color: var(--gold); }
#variants h2 { color: var(--paper); }
#variants .section-intro { color: rgba(248,247,242,0.6); }

.variants-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1px; border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--r); overflow: hidden; margin-top: 3rem;
}
.variant-tile {
  background: rgba(255,255,255,0.04); padding: 1.5rem;
  transition: background 0.25s;
  color: inherit; text-decoration: none; display: block;
}
.variant-tile:hover { background: rgba(42,79,255,0.2); }
.variant-icon { color: var(--gold); margin-bottom: 0.75rem; line-height: 0; }
.variant-icon svg { width: 28px; height: 28px; display: block; }
.variant-name { font-weight: 600; font-size: 0.95rem; margin-bottom: 0.3rem; }
.variant-blurb { font-size: 0.8rem; color: rgba(248,247,242,0.6); line-height: 1.5; }
.variant-tile.more-tile { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; }
.variant-tile.more-tile .variant-name { color: var(--gold); }
.variant-tile.more-tile .variant-blurb { color: rgba(248,247,242,0.4); }

.variants-cta { margin-top: 3rem; text-align: center; }
.btn-light {
  display: inline-block; background: white; color: var(--ink);
  padding: 0.85rem 2rem; border-radius: 100px;
  font-family: 'DM Sans', system-ui, sans-serif; font-size: 0.95rem; font-weight: 500;
  text-decoration: none; transition: background 0.2s, transform 0.15s;
}
.btn-light:hover { background: var(--gold); transform: translateY(-2px); }

/* ─── HOMEPAGE STRATEGIES SECTION ─── */
#strategies { background: var(--paper-warm); }
.strategies-shortlist {
  list-style: none; margin: 2.5rem auto 0; padding: 0;
  max-width: 780px;
  display: flex; flex-direction: column; gap: 0.75rem;
}
.strategies-shortlist > li { margin: 0; padding: 0; }
.strategy-tile {
  display: grid; grid-template-columns: auto 1fr; gap: 1.1rem;
  align-items: start; padding: 1.1rem 1.35rem;
  background: white; border: 1px solid var(--grid-line);
  border-radius: var(--r); text-decoration: none; color: inherit;
  transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s;
}
.strategy-tile:hover {
  border-color: var(--accent);
  box-shadow: 0 6px 20px rgba(0,0,0,0.05);
  transform: translateY(-1px);
}
.strategy-tile-pill {
  display: inline-block; font-size: 0.68rem; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase;
  padding: 0.25rem 0.6rem; border-radius: 100px;
  align-self: start; margin-top: 0.25rem; white-space: nowrap;
}
.strategy-tile-pill.cat-beginner    { background: #e8f5ec; color: #207a3e; }
.strategy-tile-pill.cat-medium{ background: #e6effd; color: #1f4fb8; }
.strategy-tile-pill.cat-expert      { background: #f0e8fb; color: #6634c6; }
.strategy-tile-pill.cat-variant     { background: #fbf1d8; color: #8a6300; }
.strategy-tile-body { display: flex; flex-direction: column; gap: 0.3rem; min-width: 0; }
.strategy-tile-name {
  font-family: 'DM Serif Display', Georgia, serif;
  font-weight: 400; font-size: 1.15rem; line-height: 1.25;
  color: var(--ink);
}
.strategy-tile-short {
  font-size: 0.88rem; color: var(--ink-muted); line-height: 1.55;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.strategy-tile.strategy-tile-more {
  background: transparent; border-style: dashed;
  grid-template-columns: 1fr;
}
.strategy-tile.strategy-tile-more .strategy-tile-name { color: var(--accent); }
.strategy-tile.strategy-tile-more .strategy-tile-short { color: var(--ink-faint); }
.strategies-cta { margin-top: 2.5rem; text-align: center; }

/* ─── NUMBERS / SOCIAL PROOF ─── */
#numbers { background: white; }
.numbers-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 0;
  border: 1px solid var(--grid-line); border-radius: var(--r); overflow: hidden;
}
.number-block {
  padding: 3rem 2rem; text-align: center;
  border-right: 1px solid var(--grid-line);
}
.number-block:last-child { border-right: none; }
.number-block:nth-child(n+5) { border-top: 1px solid var(--grid-line); }
.big-num {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: clamp(2.5rem, 4vw, 3.5rem);
  line-height: 1; color: var(--ink); margin-bottom: 0.5rem;
}
.big-num span { color: var(--accent); }
.number-label { font-size: 0.875rem; color: var(--ink-muted); }

/* ─── TESTIMONIALS ─── */
#testimonials { background: var(--paper); }
.testi-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
}
.testi-card {
  background: white; border: 1px solid var(--grid-line);
  border-radius: var(--r); padding: 1.75rem;
  position: relative; overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
}
.testi-card:hover { transform: translateY(-4px); box-shadow: 0 12px 40px rgba(0,0,0,0.07); }
.testi-card.accent-top::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0;
  height: 3px; background: var(--accent);
}
.testi-card.gold-top::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0;
  height: 3px; background: var(--gold);
}
.stars { color: var(--gold); font-size: 0.875rem; letter-spacing: 2px; margin-bottom: 1rem; }
.testi-quote {
  font-size: 1rem; color: var(--ink); line-height: 1.65;
  margin-bottom: 1.25rem; font-style: italic;
  font-family: 'DM Serif Display', Georgia, serif;
}
.testi-author { font-size: 0.8rem; font-weight: 600; color: var(--ink-muted); }
.testi-source { font-size: 0.75rem; color: var(--ink-faint); margin-top: 2px; }

/* ─── FEATURES / WHY US ─── */
#why { background: var(--ink); color: var(--paper); }
#why .section-label { color: var(--gold); }
#why h2 { color: var(--paper); }
#why .section-intro { color: rgba(248,247,242,0.6); }
.features-grid {
  display: grid; grid-template-columns: repeat(3,1fr);
  gap: 1px; margin-top: 4rem;
  border: 1px solid rgba(255,255,255,0.08); border-radius: var(--r); overflow: hidden;
}
.feature {
  padding: 2.5rem 2rem;
  background: rgba(255,255,255,0.03);
  border-right: 1px solid rgba(255,255,255,0.08);
  transition: background 0.25s;
}
.feature:last-child { border-right: none; }
.feature:hover { background: rgba(42,79,255,0.15); }
.feature-icon { font-size: 1.8rem; margin-bottom: 1.2rem; }
.feature-title { font-weight: 600; font-size: 1.05rem; margin-bottom: 0.5rem; }
.feature-desc { font-size: 0.875rem; color: rgba(248,247,242,0.55); line-height: 1.65; }

/* ─── ABOUT ─── */
#about { background: var(--paper-warm); }
.about-layout {
  display: grid; grid-template-columns: 1fr 1.2fr;
  gap: 6rem; align-items: center;
}
.about-img-stack { position: relative; }
.about-card {
  background: white; border-radius: var(--r); padding: 2rem;
  border: 1px solid var(--grid-line);
  box-shadow: 0 8px 40px rgba(0,0,0,0.06);
  max-width: 360px;
}
.about-card-label { font-size: 0.75rem; font-weight: 600; color: var(--accent); letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 0.5rem; }
.about-card-value { font-family: 'DM Serif Display', Georgia, serif; font-size: 1.8rem; margin-bottom: 0.25rem; }
.about-card-sub { font-size: 0.875rem; color: var(--ink-muted); }
.about-card-2 {
  position: absolute; bottom: -30px; right: -20px;
  background: var(--ink); color: var(--paper);
  border-radius: var(--r); padding: 1.25rem 1.5rem;
  box-shadow: 0 12px 40px rgba(0,0,0,0.2);
}
.about-card-2 .about-card-label { color: var(--gold); }
.about-card-2 .about-card-value { color: var(--paper); font-size: 1.4rem; }
.about-card-2 .about-card-sub { color: rgba(248,247,242,0.55); }

.about-text h2 { margin-bottom: 1.5rem; }
.about-body { font-size: 1rem; color: var(--ink-muted); line-height: 1.75; margin-bottom: 1.5rem; }
.about-body p { margin-bottom: 1.25rem; }
.about-body p:last-child { margin-bottom: 0; }
.about-awards { display: flex; flex-direction: column; gap: 0.75rem; margin-top: 2rem; }
.award-row {
  display: flex; align-items: center; gap: 1rem;
  padding: 0.75rem 1rem; background: white;
  border: 1px solid var(--grid-line); border-radius: 10px;
}
.award-icon { font-size: 1.25rem; }
.award-text { font-size: 0.85rem; font-weight: 600; }

/* ─── CTA BANNER ─── */
.cta-banner {
  background: var(--accent); color: white;
  padding: 80px 5%; text-align: center;
}
.cta-banner h2 { font-family: 'DM Serif Display', Georgia, serif; font-size: clamp(2rem,4vw,3.5rem); color: white; margin-bottom: 1rem; }
.cta-banner p { color: rgba(255,255,255,0.75); font-size: 1.05rem; margin-bottom: 2.5rem; max-width: 480px; margin-left: auto; margin-right: auto; }
.cta-banner .btn-light { background: white; color: var(--accent); }
.cta-banner .btn-light:hover { background: var(--paper); }

/* ─── CONTACT ─── */
#contact { background: var(--paper); }
.contact-layout {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 6rem; align-items: start;
}
.contact-info h3 { font-family: 'DM Serif Display', Georgia, serif; font-size: 1.6rem; margin-bottom: 0.75rem; }
.contact-info p { color: var(--ink-muted); font-size: 0.95rem; line-height: 1.7; margin-bottom: 2rem; }
.contact-links { display: flex; flex-direction: column; gap: 0.75rem; }
.contact-link {
  display: flex; align-items: center; gap: 0.75rem;
  color: var(--ink-muted); font-size: 0.9rem; text-decoration: none;
  padding: 0.75rem 1rem; background: white;
  border: 1px solid var(--grid-line); border-radius: 10px;
  transition: border-color 0.2s, color 0.2s;
}
.contact-link:hover { border-color: var(--accent); color: var(--accent); }

.contact-form { display: flex; flex-direction: column; gap: 1rem; }
.contact-form form { display: flex; flex-direction: column; gap: 1rem; width: 100%; }
.form-group { display: flex; flex-direction: column; gap: 0.4rem; }
.form-group label { font-size: 0.8rem; font-weight: 600; color: var(--ink-muted); letter-spacing: 0.04em; }
.form-group input, .form-group textarea {
  padding: 0.85rem 1rem; border: 1px solid var(--grid-line);
  border-radius: 10px; background: white;
  font-family: 'DM Sans', system-ui, sans-serif; font-size: 0.95rem; color: var(--ink);
  transition: border-color 0.2s, box-shadow 0.2s;
  resize: none;
  width: 100%;
}
.form-group input:focus, .form-group textarea:focus {
  outline: none; border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(42,79,255,0.12);
}
.form-submit {
  background: var(--ink); color: var(--paper);
  padding: 0.9rem 2rem; border: none; border-radius: 100px;
  font-family: 'DM Sans', system-ui, sans-serif; font-size: 1rem; font-weight: 500;
  cursor: pointer; transition: background 0.2s, transform 0.15s;
  align-self: flex-start;
}
.form-submit:hover:not(:disabled) { background: var(--accent); transform: translateY(-2px); }
.form-submit:disabled { opacity: 0.4; cursor: not-allowed; }

/* Dialog used by the contact form for success / error / progress. */
dialog { border: none; border-radius: var(--r); padding: 2rem; max-width: 90vw; }
dialog button {
  background: var(--ink); color: var(--paper); border: none;
  padding: 0.5rem 1.5rem; border-radius: 100px; cursor: pointer;
  font-family: inherit; font-size: 0.9rem;
}
dialog::backdrop { background-color: black; opacity: 0.5; }

/* ─── FOOTER ─── */
footer {
  background: var(--ink); color: rgba(248,247,242,0.5);
  padding: 2rem 5%; text-align: center; font-size: 0.85rem;
}
footer a { color: rgba(248,247,242,0.5); text-decoration: none; }
footer a:hover { color: white; }
footer .footer-logo {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: 1.2rem; color: var(--paper); margin-bottom: 0.5rem;
  display: block;
}
footer .footer-social {
  list-style: none; padding: 0;
  display: flex; justify-content: center; gap: 1.1rem;
  margin: 0.25rem 0 1rem;
}
footer .footer-social a {
  display: inline-flex; align-items: center; justify-content: center;
  width: 22px; height: 22px;
  color: rgba(248,247,242,0.5);
  transition: color 0.15s ease, transform 0.15s ease;
}
footer .footer-social a:hover { color: white; transform: translateY(-1px); }
footer .footer-social svg { width: 100%; height: 100%; fill: currentColor; }

/* ─── VARIANTS PAGE ─── */
.variants-page { max-width: 1100px; margin: 0 auto; padding: 2rem 5% 4rem; }
.variants-page-head { max-width: 760px; margin: 0 auto 1.75rem; text-align: center; }
.variants-page-head h1 {
  font-family: 'DM Serif Display', Georgia, serif; font-weight: 400;
  font-size: clamp(2rem, 3.5vw, 2.75rem); line-height: 1.15;
  margin: 0.5rem 0 0.75rem;
}
.variants-page-head .page-subtitle {
  color: var(--ink-muted); font-size: 1.05rem; line-height: 1.6;
}

.variants-search-wrap {
  max-width: 480px; margin: 0 auto 2rem;
}
.variants-search {
  width: 100%; padding: 0.65rem 0.95rem;
  border: 1px solid var(--grid-line); border-radius: 12px;
  font-family: inherit; font-size: 0.95rem;
  background: var(--paper); color: var(--ink);
}
.variants-search:focus { outline: 2px solid var(--accent); outline-offset: -1px; border-color: var(--accent); }

.variants-index-grid {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
}
.variants-index-grid > li { margin: 0; }

.variant-card {
  display: grid; grid-template-columns: 32px 1fr; gap: 0.9rem;
  align-items: start; padding: 1rem 1.1rem;
  height: 100%;
  background: var(--paper); color: var(--ink); text-decoration: none;
  border: 1px solid var(--grid-line); border-radius: var(--r);
  transition: border-color 0.15s, background 0.15s, transform 0.15s, box-shadow 0.15s;
}
.variant-card:hover {
  border-color: var(--accent);
  background: var(--accent-soft);
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(0,0,0,0.04);
}
.variant-card-icon {
  color: var(--ink); width: 32px; height: 32px;
  display: inline-flex; align-items: center; justify-content: center;
  margin-top: 2px;
}
.variant-card-icon svg { width: 100%; height: 100%; max-width: 32px; max-height: 32px; }
.variant-card:hover .variant-card-icon { color: var(--accent); }
.variant-card-text { min-width: 0; display: flex; flex-direction: column; gap: 0.2rem; }
.variant-card-name { font-weight: 600; font-size: 1rem; line-height: 1.3; }
.variant-card-short {
  color: var(--ink-muted); font-size: 0.85rem; line-height: 1.5;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}

.variants-empty {
  text-align: center; color: var(--ink-muted);
  margin: 2rem 0 0; font-size: 0.95rem;
}

@media (max-width: 700px) {
  .variants-page { padding: 1.25rem 4% 2.5rem; }
  .variants-page-head { margin-bottom: 1.25rem; }
  .variants-search-wrap { margin-bottom: 1.25rem; }
  .variants-index-grid { grid-template-columns: 1fr; gap: 0.65rem; }
  .variant-card { padding: 0.85rem 0.95rem; }
}

/* ─── STRATEGIES PAGE ─── */
.strategies-page { max-width: 1100px; margin: 0 auto; padding: 2rem 5% 4rem; }
.strategies-page-head { max-width: 760px; margin: 0 auto 1.75rem; text-align: center; }
.strategies-page-head h1 {
  font-family: 'DM Serif Display', Georgia, serif; font-weight: 400;
  font-size: clamp(2rem, 3.5vw, 2.75rem); line-height: 1.15;
  margin: 0.5rem 0 0.75rem;
}
.strategies-page-head .page-subtitle {
  color: var(--ink-muted); font-size: 1.05rem; line-height: 1.6;
}

.strategies-search-wrap {
  max-width: 480px; margin: 0 auto 2rem;
}
.strategies-search {
  width: 100%; padding: 0.65rem 0.95rem;
  border: 1px solid var(--grid-line); border-radius: 12px;
  font-family: inherit; font-size: 0.95rem;
  background: var(--paper); color: var(--ink);
}
.strategies-search:focus { outline: 2px solid var(--accent); outline-offset: -1px; border-color: var(--accent); }

.strategies-glossary-link {
  margin: 0.5rem 0 0;
  font-size: 0.9rem;
}
.strategies-glossary-link a {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px dotted var(--accent);
}
.strategies-glossary-link a:hover { border-bottom-style: solid; }

.strategies-sections {
  display: flex; flex-direction: column; gap: 1.5rem;
}
.strategies-section { margin: 0; padding: 0; }
.strategies-section-head {
  margin: 0 0 0.35rem;
  font-size: 1rem; font-weight: 400; line-height: 1;
}
.strategy-category-pill {
  display: inline-block; font-size: 0.7rem; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
  padding: 0.3rem 0.7rem; border-radius: 100px;
}
.strategy-category-pill.cat-beginner { background: #e8f5ec; color: #207a3e; }
.strategy-category-pill.cat-medium   { background: #e6effd; color: #1f4fb8; }
.strategy-category-pill.cat-expert   { background: #f0e8fb; color: #6634c6; }
.strategy-category-pill.cat-variant  { background: #fbf1d8; color: #8a6300; }

.strategies-grid {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 0.6rem;
}
.strategies-grid > li { margin: 0; }

.strategy-card {
  display: flex; flex-direction: column; gap: 0.25rem;
  padding: 0.85rem 1rem;
  height: 100%;
  background: var(--paper); color: var(--ink); text-decoration: none;
  border: 1px solid var(--grid-line); border-radius: var(--r);
  transition: border-color 0.15s, background 0.15s, transform 0.15s, box-shadow 0.15s;
}
.strategy-card:hover {
  border-color: var(--accent);
  background: var(--accent-soft);
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(0,0,0,0.04);
}
.strategy-card-name { font-weight: 600; font-size: 0.98rem; line-height: 1.3; }
.strategy-card-short {
  color: var(--ink-muted); font-size: 0.83rem; line-height: 1.5;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}

.strategies-empty {
  text-align: center; color: var(--ink-muted);
  margin: 2rem 0 0; font-size: 0.95rem;
}

@media (max-width: 700px) {
  .strategies-page { padding: 1.25rem 4% 2.5rem; }
  .strategies-page-head { margin-bottom: 1.25rem; }
  .strategies-search-wrap { margin-bottom: 1.25rem; }
  .strategies-sections { gap: 1rem; }
  .strategies-grid { grid-template-columns: 1fr; gap: 0.5rem; }
  .strategy-card { padding: 0.75rem 0.9rem; }
}

/* ─── RESPONSIVE ─── */
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; padding: 100px 5% 60px; gap: 3rem; }
  .hero::before { opacity: 0.3; }
  .numbers-grid { grid-template-columns: repeat(2,1fr); }
  .number-block:nth-child(2) { border-right: none; }
  .number-block:nth-child(3) { border-top: 1px solid var(--grid-line); }
  .features-grid { grid-template-columns: 1fr; }
  .feature { border-right: none; border-bottom: 1px solid rgba(255,255,255,0.08); }
  .about-layout { grid-template-columns: 1fr; gap: 3rem; }
  .about-img-stack { display: none; }
  .contact-layout { grid-template-columns: 1fr; gap: 3rem; }
  .nav-toggle { display: flex; }
  .nav-panel {
    position: fixed; left: 0; right: 0; top: var(--nav-h);
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 1.25rem 5% 2rem;
    background: var(--paper);
    border-bottom: 1px solid var(--grid-line);
    transform: translateY(-110%);
    transition: transform 0.25s ease;
    max-height: calc(100vh - var(--nav-h));
    overflow-y: auto;
  }
  body.menu-open .nav-panel { transform: translateY(0); }
  .nav-panel .nav-links {
    flex-direction: column; gap: 0;
    font-size: 1rem;
  }
  .nav-panel .nav-links li { border-bottom: 1px solid var(--grid-line); }
  .nav-panel .nav-links a {
    display: block; padding: 1rem 0;
    font-size: 0.95rem; letter-spacing: 0.05em;
  }
  .nav-panel .nav-cta {
    display: block; margin-top: 1.5rem; text-align: center;
    padding: 0.9rem 1.4rem; font-size: 1rem;
  }

  .app-card { padding: 1.75rem 1.5rem; }
}
