/* =========================================================================
   BumpBash — shared stylesheet
   Cream / peach / sage / dusty-rose editorial palette. System fonts only.
   Mobile-first; enhanced at 620px and 900px.
   ========================================================================= */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

:root {
  --cream: #FFF8F0;
  --peach: #FFB59E;
  --sage: #A8C5A0;
  --rose: #E8A0A8;
  --ink: #3D3A36;
  --ink-soft: #6f6a63;
  --white: #FFFFFF;
  --border: rgba(61, 58, 54, 0.14);
  --shadow: 0 4px 18px rgba(61, 58, 54, 0.08);
  --radius: 16px;
  --radius-sm: 10px;
  --prose: 720px;
  --wide: 1080px;
  --font-head: Georgia, "Iowan Old Style", "Palatino Linotype", Palatino, "Times New Roman", serif;
  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; display: block; }
a { color: var(--ink); }
a.link { color: #a5473f; text-decoration-color: var(--peach); text-underline-offset: 3px; }
a.link:hover { text-decoration-thickness: 2px; }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  line-height: 1.18;
  margin: 0 0 0.5em;
  font-weight: 700;
}
h1 { font-size: clamp(2rem, 6vw, 2.85rem); }
h2 { font-size: clamp(1.5rem, 4vw, 2.05rem); }
h3 { font-size: 1.28rem; }
h4 { font-size: 1.05rem; margin-bottom: 0.35em; }

p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1.1em; padding-left: 1.3em; }
li { margin-bottom: 0.45em; }
strong { font-weight: 700; }

.wrap { max-width: var(--wide); margin: 0 auto; padding: 0 22px; }
.prose { max-width: var(--prose); margin: 0 auto; padding: 0 22px; }
.prose-wide { max-width: 860px; margin: 0 auto; padding: 0 22px; }

section { padding: 44px 0; }
section + section { border-top: 1px solid var(--border); }
.section-tight { padding: 28px 0; }

.eyebrow {
  display: inline-block;
  font-weight: 700;
  color: var(--ink);
  background: var(--sage);
  padding: 5px 14px;
  border-radius: 999px;
  font-size: 0.8rem;
  letter-spacing: 0.02em;
  margin-bottom: 16px;
}
.eyebrow.peach { background: var(--peach); }
.eyebrow.rose { background: var(--rose); }

.lede { font-size: 1.14rem; color: var(--ink-soft); }
.center { text-align: center; }
.muted { color: var(--ink-soft); }
.small { font-size: 0.9rem; }

/* ---------------------------------------------------------------- header */
.site-header { padding: 20px 0; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px 20px; }
.logo { font-family: var(--font-head); font-weight: 700; font-size: 1.35rem; text-decoration: none; color: var(--ink); white-space: nowrap; }
.site-nav { display: flex; flex-wrap: wrap; gap: 4px 20px; }
.site-nav a { text-decoration: none; color: var(--ink); font-size: 0.95rem; font-weight: 600; padding: 6px 1px; border-bottom: 2px solid transparent; }
.site-nav a:hover, .site-nav a:focus-visible { border-bottom-color: var(--peach); }

/* ---------------------------------------------------------------- buttons */
.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  padding: 14px 30px;
  border-radius: 999px;
  border: 2px solid var(--ink);
  cursor: pointer;
  line-height: 1.2;
}
.btn-primary { background: var(--ink); color: var(--cream); }
.btn-primary:hover, .btn-primary:focus-visible { background: #262420; border-color: #262420; }
.btn-secondary { background: transparent; color: var(--ink); }
.btn-secondary:hover, .btn-secondary:focus-visible { background: rgba(61,58,54,0.06); }
.btn-block { display: block; text-align: center; }
.cta-row { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.center .cta-row { justify-content: center; }

/* ---------------------------------------------------------------- hero */
.hero { padding: 52px 0 36px; text-align: center; }
.hero h1 { max-width: 780px; margin-left: auto; margin-right: auto; }
.hero .lede { max-width: 600px; margin: 0 auto 30px; }
.hero-note { margin-top: 16px; font-size: 0.88rem; color: var(--ink-soft); }

/* ---------------------------------------------------------------- steps */
.steps { display: grid; grid-template-columns: 1fr; gap: 22px; margin-top: 8px; }
.step { background: var(--white); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.step-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--peach); color: var(--ink); font-family: var(--font-head);
  font-weight: 700; font-size: 1.05rem; margin-bottom: 12px;
}
@media (min-width: 720px) {
  .steps { grid-template-columns: repeat(3, 1fr); }
}

/* ---------------------------------------------------------------- cards / grids */
.card-grid { display: grid; grid-template-columns: 1fr; gap: 20px; margin-top: 8px; }
@media (min-width: 620px) { .card-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .card-grid.cols-4 { grid-template-columns: repeat(4, 1fr); } }

.card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow);
  border-top: 4px solid var(--peach);
}
.card.sage { border-top-color: var(--sage); }
.card.rose { border-top-color: var(--rose); }
.card h3 { margin-bottom: 8px; }
.card p:last-child { margin-bottom: 0; }

/* ---------------------------------------------------------------- compare */
.compare-grid { display: grid; grid-template-columns: 1fr; gap: 18px; margin-top: 10px; }
@media (min-width: 700px) { .compare-grid { grid-template-columns: 1fr 1fr; } }
.compare-col { background: var(--white); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.compare-col.win { border: 2px solid var(--sage); }
.compare-col h3 { margin-bottom: 14px; }
.compare-col ul { list-style: none; padding-left: 0; margin-bottom: 0; }
.compare-col li { padding-left: 1.6em; position: relative; }
.compare-col.win li::before { content: "✓"; position: absolute; left: 0; color: #4d7a46; font-weight: 700; }
.compare-col.lose li::before { content: "✕"; position: absolute; left: 0; color: #a5473f; font-weight: 700; }

/* ---------------------------------------------------------------- pricing */
.pricing-grid { display: grid; grid-template-columns: 1fr; gap: 20px; margin-top: 10px; align-items: stretch; }
@media (min-width: 780px) { .pricing-grid { grid-template-columns: repeat(3, 1fr); } }
.price-card {
  background: var(--white); border-radius: var(--radius); padding: 26px;
  box-shadow: var(--shadow); display: flex; flex-direction: column;
  border: 2px solid transparent;
}
.price-card.featured { border-color: var(--rose); position: relative; }
.price-card .badge {
  position: absolute; top: -12px; right: 20px; background: var(--rose);
  color: var(--ink); font-size: 0.76rem; font-weight: 700; padding: 4px 12px;
  border-radius: 999px;
}
.price-card .price { font-family: var(--font-head); font-size: 2.1rem; margin: 6px 0 2px; }
.price-card .price small { font-size: 0.95rem; font-weight: 400; color: var(--ink-soft); }
.price-card ul { list-style: none; padding-left: 0; margin: 16px 0 22px; flex-grow: 1; }
.price-card li { padding-left: 1.5em; position: relative; }
.price-card li::before { content: "✓"; position: absolute; left: 0; color: #4d7a46; font-weight: 700; }

/* ---------------------------------------------------------------- FAQ */
.faq-item {
  background: var(--white); border-radius: var(--radius-sm);
  padding: 4px 20px; margin-bottom: 12px; box-shadow: var(--shadow);
}
.faq-item summary {
  cursor: pointer; font-weight: 700; padding: 16px 0;
  list-style: none; position: relative; padding-right: 30px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+"; position: absolute; right: 0; top: 14px; font-size: 1.4rem;
  color: var(--ink-soft); font-weight: 400; line-height: 1;
}
.faq-item[open] summary::after { content: "–"; }
.faq-item p { padding-bottom: 16px; color: var(--ink-soft); }

/* ---------------------------------------------------------------- callouts */
.callout {
  background: var(--white); border-left: 4px solid var(--sage);
  border-radius: var(--radius-sm); padding: 16px 20px; margin: 20px 0;
  box-shadow: var(--shadow);
}
.callout.peach { border-left-color: var(--peach); }
.callout.rose { border-left-color: var(--rose); }
.callout p:last-child { margin-bottom: 0; }
.callout p.label { font-weight: 700; margin-bottom: 4px; }

.excluded-list { display: grid; grid-template-columns: 1fr; gap: 14px; margin: 18px 0; }
@media (min-width: 700px) { .excluded-list { grid-template-columns: 1fr 1fr; } }
.excluded-item {
  background: rgba(232, 160, 168, 0.14); border: 1px solid rgba(232, 160, 168, 0.4);
  border-radius: var(--radius-sm); padding: 14px 18px;
}
.excluded-item .name { font-weight: 700; text-decoration: line-through; text-decoration-color: var(--rose); text-decoration-thickness: 2px; }
.excluded-item p { margin: 6px 0 0; color: var(--ink-soft); font-size: 0.95rem; }

/* ---------------------------------------------------------------- game entries (listicle pages) */
.game-entry {
  background: var(--white); border-radius: var(--radius); padding: 22px 24px;
  box-shadow: var(--shadow); margin-bottom: 18px; border-left: 5px solid var(--peach);
}
.game-entry.sage { border-left-color: var(--sage); }
.game-entry.rose { border-left-color: var(--rose); }
.game-entry h3, .game-entry h4 { margin-bottom: 6px; }
.game-entry .works-for {
  display: inline-block; font-size: 0.82rem; font-weight: 700; color: var(--ink-soft);
  text-transform: uppercase; letter-spacing: 0.03em; margin-bottom: 10px;
}
.game-entry p:last-child { margin-bottom: 0; }
.category-intro { color: var(--ink-soft); margin-bottom: 20px; }

.toc { background: var(--white); border-radius: var(--radius); padding: 20px 24px; box-shadow: var(--shadow); margin: 24px 0; }
.toc p.label { font-weight: 700; margin-bottom: 8px; }
.toc ul { columns: 2; column-gap: 24px; margin-bottom: 0; padding-left: 1.1em; }
@media (max-width: 480px) { .toc ul { columns: 1; } }
.toc a { text-decoration: none; }
.toc a:hover { text-decoration: underline; }

/* ---------------------------------------------------------------- demo widgets */
.demo-section { padding: 40px 0; }
.demo-widget {
  background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 26px; max-width: 480px; margin: 0 auto; position: relative; overflow: hidden;
}
.demo-widget h4 { margin-bottom: 4px; }
.demo-widget .demo-progress { font-size: 0.85rem; color: var(--ink-soft); margin-bottom: 14px; }
.demo-caption { text-align: center; font-weight: 700; margin: 18px 0 4px; font-size: 1.05rem; }
.demo-subcaption { text-align: center; color: var(--ink-soft); margin-bottom: 22px; }
.demo-cta { text-align: center; margin-top: 20px; }

.demo-question { font-weight: 700; margin-bottom: 14px; font-size: 1.08rem; }
.demo-choices { display: grid; gap: 10px; }
.demo-choice-btn {
  display: block; width: 100%; text-align: left; padding: 13px 16px;
  border-radius: var(--radius-sm); border: 2px solid var(--border);
  background: var(--cream); font-family: var(--font-body); font-size: 0.98rem;
  font-weight: 600; cursor: pointer; color: var(--ink);
}
.demo-choice-btn:hover:not(:disabled) { border-color: var(--peach); }
.demo-choice-btn:disabled { cursor: default; }
.demo-choice-btn.correct { background: rgba(168, 197, 160, 0.5); border-color: var(--sage); }
.demo-choice-btn.incorrect { background: rgba(232, 160, 168, 0.35); border-color: var(--rose); }
.demo-feedback { min-height: 1.4em; font-weight: 700; margin: 12px 0 4px; font-size: 0.95rem; }
.demo-next-btn { margin-top: 8px; }

.demo-score-ring {
  width: 96px; height: 96px; border-radius: 50%; border: 6px solid var(--sage);
  display: flex; align-items: center; justify-content: center; margin: 6px auto 16px;
  font-family: var(--font-head); font-size: 1.5rem; font-weight: 700;
}

.demo-emoji-face { font-size: 3.4rem; text-align: center; margin: 6px 0 18px; }

.demo-field-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 14px; }
.demo-field-row label { font-weight: 700; font-size: 0.92rem; flex: 1 1 100%; }
.demo-field-row input[type="date"],
.demo-field-row input[type="text"] {
  font-family: var(--font-body); font-size: 1rem; padding: 11px 14px;
  border-radius: var(--radius-sm); border: 2px solid var(--border); flex: 1 1 auto;
  background: var(--cream); color: var(--ink); min-width: 0;
}
.demo-field-row input:focus-visible { outline: 2px solid var(--peach); outline-offset: 1px; }

.scramble-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 12px; }
.scramble-letters {
  font-family: var(--font-head); font-weight: 700; font-size: 1.15rem;
  letter-spacing: 0.14em; background: var(--cream); border-radius: var(--radius-sm);
  padding: 9px 14px; min-width: 128px; text-align: center;
}
.scramble-row input[type="text"] {
  font-family: var(--font-body); font-size: 0.98rem; padding: 10px 12px;
  border-radius: var(--radius-sm); border: 2px solid var(--border); flex: 1 1 120px;
  background: var(--white); color: var(--ink); min-width: 0;
}
.scramble-row .demo-choice-btn { width: auto; flex: 0 0 auto; padding: 10px 16px; }
.scramble-feedback { font-size: 0.88rem; font-weight: 700; min-width: 90px; }

.demo-result { text-align: center; }
.demo-result p.result-msg { font-size: 1.05rem; font-weight: 600; margin-top: 4px; }

/* confetti */
.confetti-piece {
  position: absolute; top: -12px; width: 9px; height: 14px; opacity: 0.9;
  animation: confetti-fall linear forwards; z-index: 5; pointer-events: none;
}
@keyframes confetti-fall {
  0% { transform: translateY(0) rotate(0deg); opacity: 1; }
  100% { transform: translateY(340px) rotate(540deg); opacity: 0; }
}

/* ---------------------------------------------------------------- bingo grid */
.bingo-grid {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px;
  max-width: 480px; margin: 20px auto; background: var(--white);
  padding: 12px; border-radius: var(--radius); box-shadow: var(--shadow);
}
.bingo-cell {
  aspect-ratio: 1; display: flex; align-items: center; justify-content: center;
  text-align: center; font-size: 0.68rem; font-weight: 700; line-height: 1.15;
  background: var(--cream); border-radius: 6px; padding: 4px;
}
.bingo-cell.free { background: var(--sage); }
@media (min-width: 500px) { .bingo-cell { font-size: 0.78rem; } }

/* ---------------------------------------------------------------- answer key */
.answer-key {
  background: var(--white); border-radius: var(--radius); padding: 18px 22px;
  box-shadow: var(--shadow); margin-top: 16px;
}
.answer-key summary { cursor: pointer; font-weight: 700; }
.answer-key ol { margin-top: 12px; margin-bottom: 0; }
.scorecard-table { width: 100%; border-collapse: collapse; margin: 16px 0; }
.scorecard-table th, .scorecard-table td {
  border: 1px solid var(--border); padding: 9px 10px; text-align: left; font-size: 0.94rem;
}
.scorecard-table th { background: var(--white); font-family: var(--font-head); }
.table-wrap { overflow-x: auto; margin: 16px 0; }

/* ---------------------------------------------------------------- footer */
.site-footer { padding: 40px 0 50px; border-top: 1px solid var(--border); margin-top: 20px; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-bottom: 18px; }
.site-footer nav a { font-size: 0.92rem; text-decoration: none; color: var(--ink-soft); }
.site-footer nav a:hover { color: var(--ink); text-decoration: underline; }
.made-with { font-size: 0.88rem; color: var(--ink-soft); margin: 0; }

/* ---------------------------------------------------------------- final CTA band */
.cta-band { background: var(--peach); border-radius: var(--radius); padding: 40px 30px; text-align: center; }
.cta-band h2 { margin-bottom: 10px; }
.cta-band p { color: #5a4038; max-width: 520px; margin: 0 auto 22px; }
.cta-band .btn-primary { background: var(--ink); color: var(--cream); }
.cta-band .btn-secondary { border-color: var(--ink); }

/* ---------------------------------------------------------------- misc utility */
.internal-links { margin-top: 8px; }
.internal-links ul { list-style: none; padding-left: 0; display: grid; gap: 8px; }
.hr-soft { border: 0; border-top: 1px solid var(--border); margin: 30px 0; }
.legal h2 { margin-top: 1.4em; }
.legal p, .legal li { color: var(--ink-soft); }
