/* ============================================================
   Chees Road Game — Independent Guide
   Theme: Warm Meadow (Cream + Amber Gold + Grass Green)
   Mobile-first responsive design
   ============================================================ */

/* --- Google Fonts loaded in HTML head --- */

/* --- CSS Custom Properties --- */
:root {
  --bg: #FFF8EE;
  --bg-secondary: #FFF1DB;
  --bg-card: #FFFFFF;
  --bg-card-hover: #FFFAF0;
  --bg-dark: #3B2F1E;
  --text: #3B2F1E;
  --text-muted: #8B7355;
  --text-light: #A89474;
  --primary: #E8A317;
  --primary-light: #F0B830;
  --primary-dark: #C48A0F;
  --accent: #5B9A3C;
  --accent-dark: #477D2D;
  --accent-light: #7DBF62;
  --highlight: #D45B2C;
  --highlight-light: #E87A50;
  --sky: #7DBCE8;
  --sky-light: #A3D4F4;
  --danger: #C0392B;
  --success: #27AE60;
  --border: rgba(59, 47, 30, 0.12);
  --border-light: rgba(59, 47, 30, 0.06);
  --shadow: 0 4px 24px rgba(59, 47, 30, 0.08);
  --shadow-card: 0 2px 16px rgba(59, 47, 30, 0.06);
  --shadow-hover: 0 8px 32px rgba(59, 47, 30, 0.12);
  --glass: rgba(255, 255, 255, 0.7);
  --glass-border: rgba(255, 255, 255, 0.4);
  --radius: 16px;
  --radius-sm: 10px;
  --radius-xs: 6px;
  --max-width: 1200px;
  --header-height: 68px;
  --transition: 0.3s ease;
  --transition-fast: 0.15s ease;
  --font-heading: 'Nunito', system-ui, -apple-system, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;
}

/* --- Reset --- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
a { color: var(--primary-dark); text-decoration: none; transition: color var(--transition-fast); }
a:hover { color: var(--primary); text-decoration: underline; }
img { max-width: 100%; height: auto; display: block; overflow: hidden; }
ul, ol { padding-left: 1.4em; }
table { border-collapse: collapse; width: 100%; }

/* --- Accessibility --- */
.skip-link {
  position: absolute; top: -100px; left: 16px;
  background: var(--primary); color: var(--bg-dark);
  padding: 12px 24px; border-radius: var(--radius-sm);
  font-weight: 700; z-index: 9999;
  transition: top 0.2s;
  font-family: var(--font-body);
}
.skip-link:focus { top: 8px; text-decoration: none; }

*:focus-visible {
  outline: 3px solid var(--primary);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .fade-in, .slide-up, .scale-in { opacity: 1 !important; transform: none !important; }
}

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 800;
  line-height: 1.25;
  color: var(--text);
}
h1 { font-size: clamp(2rem, 5vw, 3.2rem); margin-bottom: 0.5em; }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.2rem); margin-bottom: 0.5em; }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.6rem); margin-bottom: 0.4em; }
h4 { font-size: 1.15rem; margin-bottom: 0.3em; }
p { margin-bottom: 1em; }

.gradient-text {
  background: linear-gradient(135deg, var(--primary), var(--highlight));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-title {
  position: relative;
  padding-bottom: 12px;
  margin-bottom: 1.5em;
}
.section-title::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 60px; height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  border-radius: 2px;
}
.section-title--center { text-align: center; }
.section-title--center::after { left: 50%; transform: translateX(-50%); }

/* --- Container --- */
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 20px; width: 100%; overflow-wrap: break-word; word-wrap: break-word; }

/* Prevent horizontal overflow on all sections */
.section, .hero, .footer, main { overflow-x: hidden; }

/* --- Sections --- */
.section { padding: 40px 0; }
.section--alt { background: var(--bg-secondary); }
.section--dark {
  background: var(--bg-dark);
  color: #F0F4F8;
}
.section-header {
  max-width: 780px;
  margin: 0 auto;
}
.section-header p {
  color: var(--text-muted);
  font-size: 1.05rem;
}
.section-badge {
  display: inline-block;
  margin-bottom: 8px;
  color: var(--primary-dark);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.section--dark .section-title { color: #F0F4F8; }
.section--dark .section-title::after {
  background: linear-gradient(90deg, var(--primary), var(--primary-light));
}
.section--dark a { color: var(--primary-light); }
.section--dark .text-muted { color: #A89474; }

/* --- Buttons --- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 28px; border-radius: var(--radius-sm);
  font-family: var(--font-heading); font-weight: 700; font-size: 1rem;
  text-decoration: none; border: none; cursor: pointer;
  transition: all var(--transition);
  line-height: 1.2;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  box-shadow: 0 4px 16px rgba(232, 163, 23, 0.35);
}
.btn-primary:hover {
  background: linear-gradient(135deg, var(--primary-light), var(--primary));
  box-shadow: 0 6px 24px rgba(232, 163, 23, 0.5);
  color: #fff;
}

.btn-secondary {
  background: transparent;
  color: var(--primary-dark);
  border: 2px solid var(--primary);
}
.btn-secondary:hover {
  background: var(--primary);
  color: #fff;
}

.btn-accent {
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  color: #fff;
  box-shadow: 0 4px 16px rgba(91, 154, 60, 0.3);
}
.btn-accent:hover {
  box-shadow: 0 6px 24px rgba(91, 154, 60, 0.45);
  color: #fff;
}

.btn-glow {
  animation: glow 2.5s ease-in-out infinite;
}
@keyframes glow {
  0%, 100% { box-shadow: 0 4px 16px rgba(232, 163, 23, 0.35); }
  50% { box-shadow: 0 4px 32px rgba(232, 163, 23, 0.6), 0 0 48px rgba(232, 163, 23, 0.2); }
}

.btn-sm { padding: 10px 20px; font-size: 0.9rem; }
.btn-lg { padding: 18px 36px; font-size: 1.1rem; }

/* --- Header --- */
.header {
  position: sticky; top: 0; z-index: 1000;
  background: var(--glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--glass-border);
  height: var(--header-height);
  transition: box-shadow var(--transition);
}
.header.scrolled { box-shadow: var(--shadow); }

.header .container {
  display: flex; align-items: center; justify-content: space-between;
  height: 100%;
}

.logo {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-heading);
  font-weight: 800; font-size: 1.3rem;
  color: var(--text);
  text-decoration: none;
}
.logo:hover { color: var(--primary); text-decoration: none; }
.logo img { height: 36px; width: auto; border-radius: 8px; }

.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  padding: 8px 14px;
  border-radius: var(--radius-xs);
  font-weight: 600; font-size: 0.92rem;
  color: var(--text);
  transition: all var(--transition-fast);
}
.nav a:hover, .nav a.active {
  background: var(--bg-secondary);
  color: var(--primary-dark);
  text-decoration: none;
}

.header-cta {
  display: none;
}

/* Burger Menu */
.burger {
  display: none;
  flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer;
  padding: 8px; z-index: 1002;
}
.burger span {
  display: block; width: 24px; height: 2.5px;
  background: var(--text);
  border-radius: 2px;
  transition: all var(--transition);
}
.burger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.burger.active span:nth-child(2) { opacity: 0; }
.burger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* Mobile Menu */
.mobile-menu {
  position: fixed; top: 0; right: -100%; width: 85%; max-width: 360px;
  height: 100vh; background: var(--bg);
  z-index: 1001; padding: 80px 24px 24px;
  transition: right var(--transition);
  box-shadow: -8px 0 32px rgba(0,0,0,0.1);
  overflow-y: auto;
}
.mobile-menu.open { right: 0; }
.mobile-menu a {
  display: block; padding: 14px 0;
  font-size: 1.1rem; font-weight: 600;
  color: var(--text); border-bottom: 1px solid var(--border-light);
}
.mobile-menu a:hover { color: var(--primary); text-decoration: none; }
.mobile-menu .btn { margin-top: 20px; width: 100%; text-align: center; }

.menu-overlay {
  position: fixed; top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(0,0,0,0.3); z-index: 1000;
  opacity: 0; pointer-events: none;
  transition: opacity var(--transition);
}
.menu-overlay.active { opacity: 1; pointer-events: all; }

@media (max-width: 768px) {
  .nav { display: none; }
  .header-cta { display: none; }
  .burger { display: flex; }
}
@media (min-width: 769px) {
  .header-cta { display: inline-flex; }
  .mobile-menu, .menu-overlay { display: none !important; }
}

/* --- Sticky Bottom CTA (Mobile) --- */
.sticky-cta {
  position: fixed; bottom: 0; left: 0; right: 0;
  background: var(--glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid var(--glass-border);
  padding: 12px 20px;
  z-index: 999;
  transform: translateY(100%);
  transition: transform var(--transition);
  display: none;
}
.sticky-cta.visible { transform: translateY(0); }
.sticky-cta .btn { width: 100%; }

@media (max-width: 768px) {
  .sticky-cta { display: block; }
  body { padding-bottom: 72px; }
}

/* --- Hero Section --- */
.hero {
  padding: 28px 0 36px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; bottom: 0;
  background: radial-gradient(ellipse at 30% 20%, rgba(232,163,23,0.08) 0%, transparent 60%),
              radial-gradient(ellipse at 70% 80%, rgba(91,154,60,0.06) 0%, transparent 50%);
  pointer-events: none;
}
.hero .container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  align-items: center;
  position: relative;
}
.hero-content { z-index: 1; }
.hero h1 { margin-bottom: 16px; }
.hero-subtitle {
  font-size: 1.1rem; color: var(--text-muted);
  margin-bottom: 24px; line-height: 1.7;
  max-width: 560px;
}
.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 28px;
}
.hero-stat {
  text-align: center;
  padding: 10px 8px;
  background: var(--bg-card);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-card);
}
@media (max-width: 480px) {
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
}
.hero-stat__value {
  font-family: var(--font-heading);
  font-size: 1.5rem; font-weight: 800;
  color: var(--primary);
  display: block;
}
.hero-stat__label {
  font-size: 0.8rem; color: var(--text-muted);
  text-transform: uppercase; letter-spacing: 0.05em;
}
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; }

.hero-image-wrapper {
  position: relative;
  max-width: 540px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-image {
  border-radius: var(--radius);
  box-shadow: var(--shadow-hover);
  width: 100%;
  height: auto;
  max-height: 520px;
  object-fit: contain;
}

@media (min-width: 768px) {
  .hero { padding: 40px 0 48px; }
  .hero .container { grid-template-columns: 1fr 1fr; }
}

/* --- Breadcrumb --- */
.breadcrumb {
  padding: 4px 0;
  font-size: 0.85rem;
  color: var(--text-muted);
}
.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb span { margin: 0 6px; opacity: 0.5; }

/* --- Cards --- */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 28px;
  transition: all var(--transition);
  box-shadow: var(--shadow-card);
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
  border-color: var(--border);
}

/* Glassmorphism Card */
.card-glass {
  background: var(--glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: 28px;
  transition: all var(--transition);
}
.card-glass:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

/* Partner Card — single, no logo */
.partner-card {
  background: linear-gradient(135deg, var(--bg-card), var(--bg-secondary));
  border: 2px solid var(--primary);
  border-radius: var(--radius);
  padding: 32px;
  text-align: center;
  max-width: 480px;
  margin: 0 auto;
}
.partner-card__badge {
  display: inline-block;
  background: var(--primary);
  color: #fff;
  padding: 4px 16px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 16px;
}
.partner-card__name {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 8px;
}
.partner-card__bonus {
  font-size: 1.1rem;
  color: var(--accent);
  font-weight: 700;
  margin-bottom: 16px;
}
.partner-card__details {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 20px;
}
.partner-card .btn { min-width: 200px; }

/* Feature Cards Grid */
.cards-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}
@media (min-width: 576px) {
  .cards-grid--2 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 768px) {
  .cards-grid--3 { grid-template-columns: repeat(3, 1fr); }
  .cards-grid--4 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 992px) {
  .cards-grid--4 { grid-template-columns: repeat(4, 1fr); }
}

/* --- Tables --- */
.table-wrapper {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 1.5em 0;
  border-radius: var(--radius);
  border: 1px solid var(--border-light);
}
table {
  min-width: 400px;
}
th, td {
  padding: 14px 18px;
  text-align: left;
  border-bottom: 1px solid var(--border-light);
  font-size: 0.95rem;
}
th {
  background: var(--bg-secondary);
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--text);
  white-space: nowrap;
}
tr:last-child td { border-bottom: none; }
tr:hover td { background: var(--bg-secondary); }

/* --- FAQ Accordion --- */
.faq-item {
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  margin-bottom: 10px;
  overflow: hidden;
  transition: border-color var(--transition);
}
.faq-item:hover { border-color: var(--border); }
.faq-item.active { border-color: var(--primary); }

.faq-question {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 20px;
  background: var(--bg-card);
  cursor: pointer;
  font-family: var(--font-heading);
  font-weight: 700; font-size: 1rem;
  border: none; width: 100%; text-align: left;
  color: var(--text);
  transition: background var(--transition-fast);
}
.faq-question:hover { background: var(--bg-secondary); }
.faq-question::after {
  content: '+';
  font-size: 1.4rem;
  font-weight: 300;
  color: var(--primary);
  transition: transform var(--transition);
  flex-shrink: 0;
  margin-left: 12px;
}
.faq-item.active .faq-question::after {
  content: '\2212';
  transform: rotate(180deg);
}
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.3s ease;
  padding: 0 20px;
  color: var(--text-muted);
  line-height: 1.7;
}
.faq-item.active .faq-answer {
  max-height: 600px;
  padding: 0 20px 20px;
}

/* --- Warning / Info Boxes --- */
.warning-box {
  border-radius: var(--radius-sm);
  padding: 20px 24px;
  margin: 1.5em 0;
  border-left: 4px solid;
}
.warning-box--critical {
  background: #FFF5F5;
  border-color: var(--danger);
}
.warning-box--info {
  background: #F0F7FF;
  border-color: var(--sky);
}
.warning-box--success {
  background: #F0FFF4;
  border-color: var(--success);
}
.warning-box--warning {
  background: #FFFBEB;
  border-color: var(--primary);
}
.warning-box h3 { font-size: 1rem; margin-bottom: 8px; }
.warning-box p:last-child { margin-bottom: 0; }

/* --- TOC (Table of Contents) --- */
.toc {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 24px 28px;
  margin: 1.5em 0;
}
.toc h3 {
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin-bottom: 12px;
}
.toc ol { counter-reset: toc; padding-left: 0; list-style: none; }
.toc li {
  counter-increment: toc;
  padding: 8px 0;
  border-bottom: 1px solid var(--border-light);
}
.toc li:last-child { border-bottom: none; }
.toc li::before {
  content: counter(toc) ". ";
  font-weight: 700;
  color: var(--primary);
}
.toc a { color: var(--text); font-weight: 600; }
.toc a:hover { color: var(--primary); }

/* --- Image Gallery --- */
.gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin: 1.5em 0;
}
.gallery img {
  border-radius: var(--radius-sm);
  width: 100%;
  height: 200px;
  object-fit: cover;
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition);
}
.gallery img:hover {
  transform: scale(1.03);
  box-shadow: var(--shadow-hover);
}
@media (min-width: 768px) {
  .gallery { grid-template-columns: repeat(3, 1fr); }
  .gallery img { height: 240px; }
}

/* --- Screenshot with constrained size --- */
.screenshot {
  max-width: 100%;
  width: 100%;
  margin: 1.5em auto;
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
}
@media (min-width: 768px) {
  .screenshot { max-width: 640px; }
}

/* --- Charts & Diagrams (Pure CSS/SVG) --- */

/* Donut Chart */
.donut-chart {
  position: relative;
  width: 180px; height: 180px;
  margin: 0 auto;
}
.donut-chart svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.donut-chart circle {
  fill: none;
  stroke-width: 20;
  cx: 90; cy: 90; r: 70;
}
.donut-chart .donut-bg { stroke: var(--border-light); }
.donut-chart .donut-fill {
  stroke: var(--primary);
  stroke-dasharray: 0 440;
  stroke-linecap: round;
  transition: stroke-dasharray 1.5s ease;
}
.donut-chart.animated .donut-fill {
  stroke-dasharray: var(--fill) 440;
}
.donut-chart__label {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
}
.donut-chart__value {
  font-family: var(--font-heading);
  font-size: 1.8rem; font-weight: 800;
  color: var(--primary);
  display: block;
}
.donut-chart__text {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
}

/* Horizontal Bar Chart */
.bar-chart { margin: 1.5em 0; }
.bar-chart__item {
  margin-bottom: 16px;
}
.bar-chart__label {
  display: flex; justify-content: space-between;
  font-size: 0.9rem; font-weight: 600;
  margin-bottom: 6px;
}
.bar-chart__track {
  height: 12px;
  background: var(--bg-secondary);
  border-radius: 6px;
  overflow: hidden;
}
.bar-chart__fill {
  height: 100%;
  border-radius: 6px;
  width: 0;
  transition: width 1.2s ease;
}
.bar-chart__fill--primary { background: linear-gradient(90deg, var(--primary-dark), var(--primary)); }
.bar-chart__fill--accent { background: linear-gradient(90deg, var(--accent-dark), var(--accent)); }
.bar-chart__fill--highlight { background: linear-gradient(90deg, var(--highlight), var(--highlight-light)); }
.bar-chart__fill--sky { background: linear-gradient(90deg, var(--sky), var(--sky-light)); }
.bar-chart__fill--danger { background: linear-gradient(90deg, #a02020, var(--danger)); }

/* Step Progress Indicator */
.step-progress {
  display: flex;
  justify-content: space-between;
  position: relative;
  margin: 2em 0;
  counter-reset: step;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  gap: 4px;
}
.step-progress::before {
  content: '';
  position: absolute;
  top: 20px; left: 24px; right: 24px;
  height: 3px;
  background: var(--border-light);
}
.step-progress__item {
  display: flex; flex-direction: column; align-items: center;
  position: relative;
  flex: 1;
  counter-increment: step;
  text-align: center;
}
.step-progress__circle {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 3px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-heading);
  font-weight: 800; font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 8px;
  position: relative;
  z-index: 1;
  transition: all var(--transition);
}
.step-progress__item.active .step-progress__circle {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}
.step-progress__item.completed .step-progress__circle {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
.step-progress__label {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 600;
  max-width: 100px;
}

/* --- Pros/Cons --- */
.pros-cons {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin: 1.5em 0;
}
@media (min-width: 576px) {
  .pros-cons { grid-template-columns: 1fr 1fr; }
}
.pros, .cons {
  padding: 20px 24px;
  border-radius: var(--radius-sm);
}
.pros { background: #F0FFF4; border: 1px solid #C6F6D5; }
.cons { background: #FFF5F5; border: 1px solid #FED7D7; }
.pros h4 { color: var(--success); }
.cons h4 { color: var(--danger); }
.pros li, .cons li { padding: 4px 0; }

/* --- Promo Code Copy --- */
.promo-code {
  display: inline-flex;
  align-items: center; gap: 12px;
  background: var(--bg-secondary);
  border: 2px dashed var(--primary);
  border-radius: var(--radius-sm);
  padding: 12px 20px;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.2rem;
  letter-spacing: 0.05em;
}
.promo-code button {
  background: var(--primary);
  color: #fff;
  border: none;
  padding: 6px 14px;
  border-radius: var(--radius-xs);
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  transition: background var(--transition-fast);
}
.promo-code button:hover { background: var(--primary-dark); }
.promo-code button.copied { background: var(--success); }

/* --- Win Calculator --- */
.calculator {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 28px;
  max-width: 400px;
}
.calculator label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 6px;
  color: var(--text-muted);
}
.calculator input {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 1rem;
  font-family: var(--font-body);
  margin-bottom: 16px;
  transition: border-color var(--transition-fast);
  background: var(--bg);
  color: var(--text);
}
.calculator input:focus {
  border-color: var(--primary);
  outline: none;
}
.calculator__result {
  background: var(--bg-secondary);
  border-radius: var(--radius-sm);
  padding: 16px;
  text-align: center;
  margin-top: 12px;
}
.calculator__result-value {
  font-family: var(--font-heading);
  font-size: 2rem; font-weight: 800;
  color: var(--primary);
}

/* --- Testimonial --- */
.testimonial {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 24px;
  position: relative;
}
.testimonial::before {
  content: '\201C';
  position: absolute;
  top: 12px; left: 20px;
  font-size: 3rem;
  color: var(--primary);
  opacity: 0.3;
  font-family: Georgia, serif;
  line-height: 1;
}
.testimonial__text {
  font-style: italic;
  margin-bottom: 12px;
  padding-left: 24px;
  color: var(--text);
}
.testimonial__author {
  font-weight: 700;
  font-size: 0.9rem;
}
.testimonial__role {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* --- Author Box --- */
.author-box {
  display: flex;
  gap: 24px;
  align-items: flex-start;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 28px;
}
.author-box__photo {
  width: 80px; height: 80px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 3px solid var(--primary);
}
.author-box__name {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.1rem;
}
.author-box__role {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 8px;
}
.author-box__bio {
  font-size: 0.95rem;
  line-height: 1.6;
}
.author-box__socials {
  display: flex; gap: 12px;
  margin-top: 12px;
}
.author-box__socials a {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 600;
}
.author-box__socials a:hover { color: var(--primary); }

@media (max-width: 576px) {
  .author-box { flex-direction: column; align-items: center; text-align: center; }
  .author-box__socials { justify-content: center; }
}

/* --- Footer --- */
.footer {
  background: var(--bg-dark);
  color: #D4C8B8;
  padding: 60px 0 0;
}
.footer a { color: #D4C8B8; }
.footer a:hover { color: var(--primary-light); }
.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  padding-bottom: 40px;
}
@media (min-width: 576px) {
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 768px) {
  .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; }
}
.footer-col h4 {
  color: #F0F4F8;
  font-family: var(--font-heading);
  font-size: 1rem;
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.footer-col ul { list-style: none; padding: 0; }
.footer-col li { padding: 4px 0; }
.footer-col li a { font-size: 0.9rem; }

.footer-about p { font-size: 0.9rem; line-height: 1.7; }

.footer-badges {
  display: flex; flex-wrap: wrap; gap: 12px;
  margin-top: 16px;
}
.footer-badges img {
  height: 40px; width: auto;
  opacity: 0.8;
  transition: opacity var(--transition-fast);
}
.footer-badges img:hover { opacity: 1; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 20px 0;
  text-align: center;
}
.footer-disclaimer {
  font-size: 0.8rem;
  color: #A89474;
  line-height: 1.6;
  max-width: 800px;
  margin: 0 auto 12px;
}
.footer-copyright {
  font-size: 0.8rem;
  color: #8B7355;
}

/* --- Scroll Animations --- */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.slide-up {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.slide-up.visible {
  opacity: 1;
  transform: translateY(0);
}

.scale-in {
  opacity: 0;
  transform: scale(0.9);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.scale-in.visible {
  opacity: 1;
  transform: scale(1);
}

/* Stagger delay for children */
.stagger > *:nth-child(1) { transition-delay: 0s; }
.stagger > *:nth-child(2) { transition-delay: 0.1s; }
.stagger > *:nth-child(3) { transition-delay: 0.2s; }
.stagger > *:nth-child(4) { transition-delay: 0.3s; }
.stagger > *:nth-child(5) { transition-delay: 0.4s; }
.stagger > *:nth-child(6) { transition-delay: 0.5s; }

/* Counter animation */
.counter { font-variant-numeric: tabular-nums; }

/* --- Cookie Consent --- */
.cookie-banner {
  position: fixed; bottom: 0; left: 0; right: 0;
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  box-shadow: 0 -4px 24px rgba(0,0,0,0.1);
  padding: 20px;
  z-index: 10000;
  transform: translateY(100%);
  transition: transform 0.4s ease;
}
.cookie-banner.show { transform: translateY(0); }

.cookie-content {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.cookie-text { flex: 1; min-width: 240px; }
.cookie-text p { font-size: 0.9rem; margin: 0; color: var(--text-muted); }
.cookie-text a { color: var(--primary); font-weight: 600; }
.cookie-buttons { display: flex; gap: 10px; flex-shrink: 0; }
.cookie-buttons .btn { padding: 10px 20px; font-size: 0.85rem; }

/* --- Updated Badge --- */
.updated-badge {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 0.8rem; color: var(--text-muted);
  padding: 4px 12px;
  background: var(--bg-secondary);
  border-radius: 20px;
  margin-bottom: 16px;
}
.updated-badge::before {
  content: '';
  width: 8px; height: 8px;
  background: var(--accent);
  border-radius: 50%;
}

/* --- Responsive Utilities --- */
.text-center { text-align: center; }
.text-muted { color: var(--text-muted); }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mt-4 { margin-top: 32px; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.mb-4 { margin-bottom: 32px; }

.hide-mobile { display: none; }
@media (min-width: 768px) {
  .hide-mobile { display: block; }
  .hide-desktop { display: none; }
}

/* --- Print --- */
@media print {
  .header, .footer, .sticky-cta, .cookie-banner, .burger, .mobile-menu, .menu-overlay { display: none !important; }
  body { background: #fff; color: #000; }
  .card, .card-glass { box-shadow: none; border: 1px solid #ccc; }
}

/* --- Demo Container --- */
.demo-container {
  background: var(--bg-dark);
  border-radius: var(--radius);
  padding: 32px;
  text-align: center;
  max-width: 640px;
  margin: 2em auto;
  position: relative;
  overflow: hidden;
}
.demo-container__preview {
  width: 100%;
  max-height: 360px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  margin-bottom: 20px;
  opacity: 0.85;
}
.demo-container .btn {
  position: relative;
  z-index: 1;
}

/* --- Contact Form --- */
.contact-form {
  max-width: 560px;
  margin: 0 auto;
}
.form-group { margin-bottom: 20px; }
.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 6px;
  font-size: 0.9rem;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 1rem;
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  transition: border-color var(--transition-fast);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--primary);
  outline: none;
}
.form-group textarea { min-height: 140px; resize: vertical; }

/* --- 404 Page --- */
.error-page {
  text-align: center;
  padding: 100px 20px;
  min-height: 60vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.error-page__code {
  font-family: var(--font-heading);
  font-size: clamp(6rem, 15vw, 12rem);
  font-weight: 800;
  line-height: 1;
  background: linear-gradient(135deg, var(--primary), var(--highlight));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* --- Numbered Annotations --- */
.annotated-img {
  position: relative;
  display: inline-block;
}
.annotation {
  position: absolute;
  width: 28px; height: 28px;
  background: var(--primary);
  color: #fff;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

/* --- Comparison Table Highlight --- */
.comparison-better { background: #F0FFF4 !important; }
.comparison-worse { background: #FFF5F5 !important; }

/* --- Changelog / Update History --- */
.changelog {
  border-left: 3px solid var(--primary);
  padding-left: 20px;
  margin: 1.5em 0;
}
.changelog__entry { margin-bottom: 16px; }
.changelog__date {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 600;
}
.changelog__text {
  font-size: 0.95rem;
}

/* ============================================================
   STICKY JUMP-TO-RELATED SIDEBAR (cheesroad differentiator)
   Light, warm-theme floating panel with cross-page anchor links
   ============================================================ */
.jump-related {
  position: fixed;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  width: 230px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-left: 4px solid var(--primary);
  border-radius: var(--radius, 12px);
  padding: 1rem 1.25rem;
  box-shadow: var(--shadow-hover);
  z-index: 90;
  font-size: 0.875rem;
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.jump-related__title {
  font-family: var(--font-heading, inherit);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--primary-dark);
  margin: 0 0 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.jump-related__title::before {
  content: '↗';
  font-size: 1rem;
  color: var(--accent);
}
.jump-related__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.jump-related__item a {
  display: block;
  padding: 0.5rem 0.75rem;
  color: var(--text);
  text-decoration: none;
  border-radius: var(--radius-sm, 8px);
  font-weight: 500;
  line-height: 1.3;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
  border-left: 2px solid transparent;
}
.jump-related__item a:hover,
.jump-related__item a:focus-visible {
  background: var(--bg-card-hover);
  color: var(--primary-dark);
  border-left-color: var(--primary);
  transform: translateX(2px);
  outline: none;
}
.jump-related__item-meta {
  display: block;
  font-size: 0.7rem;
  color: var(--text-muted);
  margin-top: 0.125rem;
  font-weight: 400;
}
.jump-related__close {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 24px;
  height: 24px;
  border: 0;
  background: transparent;
  color: var(--text-muted);
  font-size: 1.125rem;
  cursor: pointer;
  border-radius: 50%;
  transition: background 0.2s ease;
  line-height: 1;
}
.jump-related__close:hover { background: var(--bg-secondary); color: var(--text); }
.jump-related[hidden] { display: none; }
@media (max-width: 1200px) {
  .jump-related {
    position: static;
    transform: none;
    width: auto;
    margin: 2rem 0;
    max-width: 100%;
  }
  .jump-related__close { display: none; }
}
