:root {
  --bg: #fff6e9;
  --bg-2: #ffe9f1;
  --ink: #2b3350;
  --muted: #8a7b6b;
  --brand: #ff7aa2;      /* pink */
  --brand-shadow: #d94f7a;
  --accent: #ffb020;     /* amber */
  --brain: #a06bff;
  --eyes: #5ce1ff;
  --hands: #63e6a8;
  --memory: #ffcf5c;
  --goal: #ff7aa2;
  --loop: #7c9cff;
  --panel: #ffffff;
  --radius: 18px;
  --shadow: 0 8px 28px rgba(43, 51, 80, 0.12);
  --font: "Trebuchet MS", "Segoe UI", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html, body { height: 100%; margin: 0; }

body {
  font-family: var(--font);
  color: var(--ink);
  background: linear-gradient(135deg, var(--bg), var(--bg-2));
  overflow: hidden; /* scenes manage their own layout */
}

h1 { font-size: clamp(32px, 5vw, 64px); margin: 0 0 8px; }
h2 { font-size: clamp(24px, 3.5vw, 42px); margin: 0 0 8px; }
h3 { font-size: clamp(20px, 2.4vw, 28px); margin: 0 0 6px; }
p  { font-size: clamp(16px, 1.6vw, 22px); line-height: 1.5; }
.subtitle { color: var(--muted); }
.label {
  font-size: 13px; letter-spacing: .08em; text-transform: uppercase;
  color: var(--muted); font-weight: 800;
}

.btn {
  font-family: var(--font); font-weight: 800; font-size: clamp(16px, 1.6vw, 20px);
  color: #fff; background: var(--brand); border: none;
  border-radius: 14px; padding: 14px 26px; cursor: pointer;
  box-shadow: 0 5px 0 var(--brand-shadow); transition: transform .08s ease;
}
.btn:active { transform: translateY(3px); box-shadow: 0 2px 0 var(--brand-shadow); }
.btn.secondary { background: #fff; color: var(--ink); box-shadow: 0 5px 0 #d9d2c7; }

.takeaway {
  display: inline-block; background: #fff; border-radius: 14px;
  padding: 12px 18px; box-shadow: var(--shadow); font-weight: 700; max-width: 760px;
}

/* Speech bubble (Meet the Robot scene) */
.speech {
  display: inline-block; background: #fff; border: 3px solid var(--accent);
  color: var(--ink); font-weight: 800; border-radius: 18px; padding: 12px 18px;
  margin: 10px 0 22px; box-shadow: 0 5px 0 var(--memory); position: relative;
}
.speech::after {
  content: ""; position: absolute; bottom: -14px; left: 50%; transform: translateX(-50%);
  border: 8px solid transparent; border-top-color: var(--accent);
}

/* When-to-use recap scene */
.when-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin: 18px 0; }
.when-card {
  background: #fff; border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 22px; text-align: left;
}
.when-card.line { border-top: 6px solid var(--loop); }
.when-card.bot  { border-top: 6px solid var(--brand); }
.when-card ul { line-height: 1.8; margin: 6px 0 0; }
.recap { margin-top: 16px; }
@media (max-width: 820px) { .when-grid { grid-template-columns: 1fr; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
