/* ==========================================================================
   Stop Manipulating Me — visual companion site
   Single stylesheet. Paper-and-ink aesthetic, limited palette.
   ========================================================================== */

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

html { scroll-behavior: smooth; }

:root {
  --bg: #F8F4ED;
  --bg-card: #FFFFFF;
  --bg-dark: #1C1A17;
  --text: #1B1B1B;
  --text-muted: #5A5A5A;
  --text-light: #888;
  --border: #DDD5C7;
  --border-strong: #B8AC97;

  --accent: #B83A26;
  --accent-blue: #1F4068;
  --highlight: #E8B23F;
  --success: #2D7D4F;
  --shadow-warm: rgba(120, 90, 50, 0.10);

  --serif: 'Charter', 'Bitstream Charter', 'Sitka Text', Cambria, Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, system-ui, 'Segoe UI', sans-serif;
  --mono: 'SF Mono', Menlo, Monaco, Consolas, 'Courier New', monospace;

  --max-text: 680px;
  --max-wide: 1080px;
}

/* Base ---------------------------------------------------------------------- */

body {
  font-family: var(--serif);
  font-size: 18px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

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

a {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid currentColor;
  transition: color 0.15s;
}
a:hover { color: var(--accent-blue); }

p { margin: 0 0 1.2em; }
h1, h2, h3, h4 { font-weight: 600; line-height: 1.2; }

em { font-style: italic; }
strong { font-weight: 600; }

.container {
  max-width: var(--max-text);
  margin: 0 auto;
  padding: 0 1.5rem;
}
.container.wide { max-width: var(--max-wide); }

/* Header / footer ----------------------------------------------------------- */

.site-header {
  border-bottom: 1px solid var(--border);
  padding: 1.25rem 0;
  background: var(--bg);
  position: sticky;
  top: 0;
  z-index: 10;
}
.site-header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: var(--max-wide);
  gap: 1rem;
  flex-wrap: wrap;
}
.site-title {
  font-family: var(--serif);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text);
  border: none;
  letter-spacing: -0.01em;
}
.site-nav {
  display: flex;
  gap: 1.5rem;
  font-family: var(--sans);
  font-size: 0.95rem;
}
.site-nav a {
  color: var(--text-muted);
  border: none;
}
.site-nav a:hover, .site-nav a.active { color: var(--accent); }

.site-footer {
  border-top: 1px solid var(--border);
  margin-top: 6rem;
  padding: 2.5rem 0;
  font-family: var(--sans);
  font-size: 0.9rem;
  color: var(--text-muted);
}
.site-footer p { margin: 0; }

/* Hero ---------------------------------------------------------------------- */

.hero {
  padding: 5rem 0 4rem;
  border-bottom: 1px solid var(--border);
}
.hero h1 {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  margin-bottom: 1.5rem;
  line-height: 1.05;
}
.hero h1 .accent { color: var(--accent); }
.hero p.lede {
  font-size: 1.35rem;
  line-height: 1.5;
  color: var(--text-muted);
  max-width: 580px;
  font-style: italic;
  margin-bottom: 0;
}

/* Sections ------------------------------------------------------------------ */

section { padding: 4rem 0; }
section h2 {
  font-size: 2rem;
  margin-bottom: 1.5rem;
  letter-spacing: -0.015em;
}
section h3 {
  font-size: 1.35rem;
  margin: 2rem 0 1rem;
}

.section-label {
  font-family: var(--sans);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--accent);
  margin-bottom: 0.75rem;
  font-weight: 700;
}
.section-label.center { text-align: center; }

.section-alt { background: var(--bg-card); }

/* Primitive grid ------------------------------------------------------------ */

.primitive-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1rem;
  max-width: var(--max-wide);
  margin: 0 auto;
  padding: 0 1.5rem;
}
.primitive-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 1.5rem;
  border-radius: 4px;
  transition: transform 0.18s, box-shadow 0.18s;
  display: block;
  color: var(--text);
  border-bottom: 1px solid var(--border);
}
.primitive-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 24px var(--shadow-warm);
  color: var(--text);
}
.primitive-card .num {
  font-family: var(--mono);
  font-size: 0.8rem;
  color: var(--accent);
  margin-bottom: 0.5rem;
  display: block;
  letter-spacing: 0.05em;
}
.primitive-card .name {
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  line-height: 1.25;
}
.primitive-card .desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.45;
  margin: 0;
  font-style: italic;
}

/* Demos --------------------------------------------------------------------- */

.demo {
  max-width: var(--max-wide);
  margin: 3rem auto;
  padding: 0 1.5rem;
}
.demo-box {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 2.5rem;
  position: relative;
}
.demo-label {
  font-family: var(--sans);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--accent);
  font-weight: 700;
  margin-bottom: 1.5rem;
}
.demo-caption {
  text-align: center;
  font-style: italic;
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-top: 1.5rem;
}

/* Buttons ------------------------------------------------------------------- */

.btn, button.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  font-family: var(--sans);
  font-size: 0.95rem;
  font-weight: 500;
  border-radius: 4px;
  border: 1px solid var(--text);
  background: var(--text);
  color: var(--bg);
  cursor: pointer;
  transition: all 0.15s;
  text-decoration: none;
}
.btn:hover, button.btn:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: white;
}
.btn-outline {
  background: transparent;
  color: var(--text);
}
.btn-outline:hover {
  background: var(--text);
  color: var(--bg);
}
.btn-danger {
  background: var(--accent);
  border-color: var(--accent);
  color: white;
}
.btn-danger:hover {
  background: #8a2a18;
  border-color: #8a2a18;
}

/* Lists --------------------------------------------------------------------- */

ul.styled, ol.styled {
  padding-left: 1.5rem;
  margin: 0 0 1.5em;
}
ul.styled li, ol.styled li {
  margin-bottom: 0.5em;
}
ul.phrases {
  list-style: none;
  padding: 0;
  border-left: 3px solid var(--accent);
  margin: 1.5rem 0;
}
ul.phrases li {
  font-style: italic;
  padding: 0.5rem 0 0.5rem 1.5rem;
  color: var(--text-muted);
}

/* Primitive page ------------------------------------------------------------ */

.primitive-header {
  padding: 4rem 0 2rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 2rem;
}
.primitive-number {
  font-family: var(--mono);
  font-size: 0.85rem;
  color: var(--accent);
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.primitive-name {
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}
.primitive-definition {
  font-size: 1.2rem;
  line-height: 1.5;
  color: var(--text-muted);
  font-style: italic;
}

.primitive-section {
  margin: 2.5rem 0;
}
.primitive-section h2 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  letter-spacing: -0.01em;
}

.primitive-nav {
  display: flex;
  justify-content: space-between;
  padding: 3rem 0 1rem;
  margin-top: 3rem;
  border-top: 1px solid var(--border);
  font-family: var(--sans);
  font-size: 0.95rem;
  flex-wrap: wrap;
  gap: 1rem;
}
.primitive-nav a {
  border: none;
  color: var(--text-muted);
}
.primitive-nav a:hover { color: var(--accent); }

/* Two brains diagram -------------------------------------------------------- */

.brain-diagram {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin: 2.5rem 0;
}
.brain-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 2rem;
  border-radius: 6px;
}
.brain-card.fast { border-left: 4px solid var(--accent); }
.brain-card.slow { border-left: 4px solid var(--accent-blue); }
.brain-card h3 { margin-top: 0; }
.brain-card .label {
  font-family: var(--sans);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: 0.5rem;
  font-weight: 700;
}
.brain-card.fast .label { color: var(--accent); }
.brain-card.slow .label { color: var(--accent-blue); }
.brain-card ul {
  list-style: none;
  padding: 0;
  margin: 1rem 0 0;
  font-family: var(--sans);
  font-size: 0.95rem;
}
.brain-card ul li {
  padding: 0.4rem 0;
  border-top: 1px dotted var(--border);
}
.brain-card ul li:first-child { border-top: none; }

@media (max-width: 700px) {
  .brain-diagram { grid-template-columns: 1fr; }
}

/* Phases timeline ----------------------------------------------------------- */

.phases {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 1rem;
  margin: 2rem 0;
}
.phase {
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 1.5rem;
  border-radius: 6px;
}
.phase-num {
  font-family: var(--mono);
  font-size: 0.85rem;
  color: var(--accent);
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.phase h4 {
  font-size: 1.15rem;
  margin-bottom: 0.75rem;
}
.phase p {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin: 0;
}
.phase ul {
  list-style: none;
  padding: 0;
  margin: 0.75rem 0 0;
  font-family: var(--sans);
  font-size: 0.85rem;
}
.phase ul li {
  padding: 0.3rem 0;
  color: var(--text-muted);
}
@media (max-width: 800px) {
  .phases { grid-template-columns: 1fr; }
}

/* Cases page ---------------------------------------------------------------- */

.case-entry {
  padding: 2rem 0;
  border-bottom: 1px solid var(--border);
}
.case-entry:last-child { border-bottom: none; }
.case-name {
  font-size: 1.4rem;
  margin-bottom: 0.25rem;
}
.case-period {
  font-family: var(--sans);
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 1rem;
}
.case-techniques {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 1rem;
}
.case-techniques .tech {
  background: var(--bg);
  border: 1px solid var(--border);
  padding: 0.2rem 0.7rem;
  border-radius: 12px;
  font-family: var(--sans);
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* Defenses ------------------------------------------------------------------ */

.rule-list {
  list-style: none;
  padding: 0;
  counter-reset: rule;
}
.rule-list li {
  counter-increment: rule;
  padding: 2rem 0;
  border-bottom: 1px solid var(--border);
}
.rule-list li:last-child { border-bottom: none; }
.rule-num {
  font-family: var(--mono);
  font-size: 0.85rem;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.5rem;
}
.rule-list h3 {
  font-size: 1.5rem;
  margin: 0 0 0.75rem;
}
.rule-list p { margin: 0 0 0.5em; }
.rule-list .rule-q {
  font-style: italic;
  color: var(--accent);
  margin-top: 0.5rem;
}

.checklist {
  list-style: none;
  padding: 0;
  font-family: var(--sans);
  font-size: 0.95rem;
}
.checklist li {
  padding: 0.5rem 0 0.5rem 2rem;
  position: relative;
  border-bottom: 1px dotted var(--border);
}
.checklist li::before {
  content: '☐';
  position: absolute;
  left: 0;
  top: 0.5rem;
  color: var(--text-muted);
}
.checklist li:last-child { border-bottom: none; }

/* Phishing email demo ------------------------------------------------------- */

.email-demo {
  background: white;
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 1.5rem;
  font-family: var(--sans);
  font-size: 0.95rem;
  line-height: 1.55;
}
.email-header-row {
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 1rem;
}
.email-header-row > div {
  margin: 0.25rem 0;
  font-size: 0.85rem;
  color: var(--text-muted);
}
.email-header-row strong { color: var(--text); }
.email-body { font-family: var(--sans); font-size: 0.95rem; }
.email-body p { margin: 0 0 0.8em; }
.email-signature {
  margin-top: 1.5rem;
  color: var(--text-muted);
  font-size: 0.85rem;
}
.email-flag {
  background: rgba(184, 58, 38, 0.10);
  border-bottom: 2px dashed var(--accent);
  cursor: help;
  position: relative;
  padding: 1px 2px;
}
.email-flag:hover {
  background: rgba(184, 58, 38, 0.20);
}
.email-flag::after {
  content: attr(data-flag);
  position: absolute;
  bottom: calc(100% + 6px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--text);
  color: white;
  padding: 0.5rem 0.75rem;
  border-radius: 4px;
  font-size: 0.8rem;
  white-space: normal;
  width: max-content;
  max-width: 240px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s;
  z-index: 5;
  font-family: var(--sans);
  line-height: 1.3;
}
.email-flag:hover::after { opacity: 1; }

/* Countdown demo ------------------------------------------------------------ */

.countdown-banner {
  background: var(--accent);
  color: white;
  text-align: center;
  padding: 0.6rem;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border-radius: 4px;
  margin-bottom: 1.5rem;
}
.countdown {
  text-align: center;
  font-family: var(--mono);
  font-size: clamp(2.5rem, 8vw, 4rem);
  color: var(--accent);
  margin: 1.5rem 0;
  font-weight: bold;
  letter-spacing: 0.05em;
}
.scarcity-stats {
  text-align: center;
  font-family: var(--sans);
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-top: 1rem;
}
.scarcity-stats .num { color: var(--accent); font-weight: 600; }
.refresh-row {
  text-align: center;
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}
.refresh-row p {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

/* Social proof posts ------------------------------------------------------- */

.posts-compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
@media (max-width: 700px) {
  .posts-compare { grid-template-columns: 1fr; }
}
.post-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 1.25rem;
  font-family: var(--sans);
  font-size: 0.9rem;
}
.post-card h4 {
  font-family: var(--sans);
  font-size: 0.7rem;
  margin-bottom: 1rem;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 700;
}
.post-card .author {
  font-weight: 600;
  margin-bottom: 0.5rem;
}
.post-card .body {
  margin-bottom: 1rem;
  line-height: 1.5;
}
.post-card .stats {
  color: var(--text-muted);
  font-size: 0.8rem;
  display: flex;
  justify-content: space-between;
  border-top: 1px solid var(--border);
  padding-top: 0.5rem;
}
.commenter {
  font-size: 0.8rem;
  color: var(--text-muted);
  padding: 0.4rem 0;
  border-top: 1px dotted var(--border);
}
.commenter strong { color: var(--text); }
.bot-flag {
  color: var(--accent);
  font-size: 0.7rem;
  font-family: var(--mono);
  margin-left: 0.25rem;
}

/* Reciprocity flower demo --------------------------------------------------- */

.reciprocity-demo { text-align: center; }
.flower {
  font-size: 4rem;
  margin: 1rem 0;
  transition: transform 0.4s ease-out;
  display: inline-block;
  cursor: default;
}
.flower.handed {
  transform: translateY(-15px) rotate(-12deg);
}
.obligation-label {
  font-family: var(--sans);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
  font-weight: 600;
}
.obligation-meter {
  height: 28px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 14px;
  margin: 0.5rem auto;
  max-width: 400px;
  overflow: hidden;
  position: relative;
}
.obligation-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--success), var(--highlight), var(--accent));
  transition: width 0.8s ease-out;
  width: 0;
  border-radius: 14px;
}
.obligation-value {
  font-family: var(--mono);
  font-size: 1.5rem;
  margin-top: 1rem;
  color: var(--accent);
  font-weight: 700;
}
.reciprocity-controls {
  margin-top: 1.5rem;
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* Identity sentence builder ------------------------------------------------- */

.identity-builder {
  text-align: center;
  font-size: clamp(1.2rem, 3vw, 1.6rem);
  font-family: var(--serif);
  font-style: italic;
  line-height: 1.8;
  color: var(--text);
}
.identity-builder select {
  font-family: var(--serif);
  font-style: italic;
  font-size: inherit;
  padding: 0.25rem 0.6rem;
  border: 2px solid var(--accent);
  background: transparent;
  color: var(--accent);
  border-radius: 4px;
  cursor: pointer;
  margin: 0 0.25rem;
}
.identity-builder select:focus { outline: 2px solid var(--accent); outline-offset: 2px; }
.identity-output {
  margin-top: 2rem;
  padding: 1.5rem;
  background: var(--bg);
  border-left: 4px solid var(--accent);
  font-size: 1.1rem;
  font-style: italic;
  font-family: var(--serif);
}
.identity-explanation {
  margin-top: 1rem;
  padding: 1.5rem;
  background: var(--bg);
  font-family: var(--sans);
  font-size: 0.9rem;
  color: var(--text-muted);
  font-style: normal;
}

/* Emotion race -------------------------------------------------------------- */

.race-track {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 1.5rem;
  margin: 1rem 0;
}
.race-row {
  display: grid;
  grid-template-columns: 90px 1fr 80px;
  align-items: center;
  gap: 1rem;
  margin: 1rem 0;
}
.race-label {
  font-family: var(--sans);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.race-label.emotion { color: var(--accent); }
.race-label.reason { color: var(--accent-blue); }
.race-bar {
  height: 10px;
  background: var(--border);
  border-radius: 5px;
  position: relative;
  overflow: hidden;
}
.race-progress {
  height: 100%;
  border-radius: 5px;
  transition: width 0.05s linear;
  width: 0;
}
.race-progress.emotion { background: var(--accent); }
.race-progress.reason { background: var(--accent-blue); }
.race-time {
  font-family: var(--mono);
  font-size: 0.85rem;
  color: var(--text-muted);
  text-align: right;
}
.race-result {
  margin-top: 1.5rem;
  padding: 1rem;
  background: var(--bg);
  border-left: 4px solid var(--accent);
  font-style: italic;
  display: none;
}
.race-result.show { display: block; }

/* Love bombing chart -------------------------------------------------------- */

.intensity-graph {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 1.5rem;
  margin: 1rem 0;
}
.intensity-graph svg {
  width: 100%;
  height: auto;
}
.graph-legend {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-top: 1rem;
  font-family: var(--sans);
  font-size: 0.85rem;
}
.legend-item { display: flex; align-items: center; gap: 0.5rem; }
.legend-swatch {
  display: inline-block;
  width: 16px;
  height: 4px;
  border-radius: 2px;
}

/* Filter bubble ------------------------------------------------------------- */

.bubble-demo-container {
  position: relative;
  height: 380px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 4px;
  overflow: hidden;
}
.bubble-center {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: var(--accent);
  color: white;
  padding: 1rem 1.5rem;
  border-radius: 50px;
  font-family: var(--sans);
  font-weight: 600;
  z-index: 2;
  text-align: center;
  font-size: 0.9rem;
}
.bubble-source {
  position: absolute;
  padding: 0.5rem 1rem;
  background: white;
  border: 1px solid var(--border);
  border-radius: 16px;
  font-family: var(--sans);
  font-size: 0.85rem;
  transition: opacity 1s, transform 0.8s;
  z-index: 1;
}
.bubble-source.fading { opacity: 0.15; }
.bubble-source.aligned { border-color: var(--accent); color: var(--accent); }
.bubble-controls {
  text-align: center;
  margin-top: 1.5rem;
}
.bubble-counter {
  font-family: var(--mono);
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 0.5rem;
}

/* Cancel flow maze ---------------------------------------------------------- */

.cancel-flow {
  background: white;
  border: 1px solid var(--border);
  padding: 2rem;
  border-radius: 4px;
  font-family: var(--sans);
  text-align: center;
  min-height: 280px;
}
.cancel-step-num {
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.cancel-step-prompt {
  font-size: 1.15rem;
  margin-bottom: 1rem;
  font-family: var(--serif);
}
.cancel-step-detail {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}
.cancel-buttons {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  flex-wrap: wrap;
  align-items: center;
}
.cancel-buttons button {
  font-family: var(--sans);
  padding: 0.75rem 1.5rem;
  font-size: 0.95rem;
  border-radius: 4px;
  cursor: pointer;
  border: 1px solid var(--border);
  background: white;
}
.cancel-buttons button.primary {
  background: var(--accent-blue);
  color: white;
  border-color: var(--accent-blue);
}
.cancel-buttons button.secondary {
  background: transparent;
  color: var(--text-muted);
  font-size: 0.8rem;
  text-decoration: underline;
  border: none;
  padding: 0.75rem 0.5rem;
}
.cancel-step-count {
  font-family: var(--mono);
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 1.5rem;
}

/* Slot machine -------------------------------------------------------------- */

.slot-machine {
  background: linear-gradient(135deg, #2a1810 0%, #4a2a1a 100%);
  padding: 2rem;
  border-radius: 8px;
  color: white;
  text-align: center;
}
.slot-title {
  font-family: var(--sans);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  opacity: 0.7;
  margin-bottom: 1.5rem;
}
.slot-reels {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  margin: 1rem 0 1.5rem;
}
.slot-reel {
  background: white;
  color: var(--text);
  width: 80px;
  height: 80px;
  font-size: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  font-weight: bold;
}
.slot-reel.spinning {
  animation: spin 0.1s linear infinite;
}
@keyframes spin {
  0% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
  100% { transform: translateY(0); }
}
.slot-stats {
  display: flex;
  justify-content: space-around;
  margin-top: 1.5rem;
  font-family: var(--sans);
  font-size: 0.9rem;
  border-top: 1px solid rgba(255,255,255,0.15);
  padding-top: 1.5rem;
}
.slot-stat .label {
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.7rem;
  opacity: 0.7;
}
.slot-stat .value {
  font-size: 1.3rem;
  margin-top: 0.25rem;
  font-family: var(--mono);
}
.slot-button {
  margin-top: 1.5rem;
  background: var(--accent);
  color: white;
  border: none;
  padding: 0.85rem 2.5rem;
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  border-radius: 4px;
  cursor: pointer;
}
.slot-button:hover { background: #d44a30; }
.slot-message {
  margin-top: 1rem;
  min-height: 1.5em;
  font-size: 1rem;
  font-family: var(--sans);
}
.slot-near-miss { color: var(--highlight); }
.slot-win { color: #6fdf8f; }
.slot-insight {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.15);
  font-size: 0.9rem;
  font-family: var(--sans);
  font-style: italic;
  opacity: 0.85;
  display: none;
}
.slot-insight.show { display: block; }

/* Utilities ----------------------------------------------------------------- */

.text-muted { color: var(--text-muted); }
.text-accent { color: var(--accent); }
.center { text-align: center; }
.mono { font-family: var(--mono); }
.sans { font-family: var(--sans); }
.italic { font-style: italic; }
.mb-0 { margin-bottom: 0; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

.pull-quote {
  font-size: 1.4rem;
  font-style: italic;
  line-height: 1.4;
  margin: 2.5rem 0;
  padding-left: 1.5rem;
  border-left: 3px solid var(--accent);
  color: var(--text);
}

.callout {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-left: 4px solid var(--accent);
  padding: 1.5rem;
  margin: 2rem 0;
  border-radius: 0 4px 4px 0;
}
.callout .callout-label {
  font-family: var(--sans);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--accent);
  font-weight: 700;
  margin-bottom: 0.5rem;
}
.callout p { margin-bottom: 0; }

/* Responsive ---------------------------------------------------------------- */

@media (max-width: 700px) {
  .site-header .container { gap: 0.5rem; }
  .site-nav {
    gap: 1rem;
    font-size: 0.85rem;
    width: 100%;
    justify-content: flex-start;
  }
  .hero { padding: 3rem 0 2rem; }
  .demo-box { padding: 1.5rem; }
  .container { padding: 0 1rem; }
  body { font-size: 16.5px; }
  section { padding: 3rem 0; }
}
