:root {
  --bg: #faf7f1;
  --ink: #1d1a16;
  --muted: #6b6259;
  --card: #fffdf9;
  --line: #e8dfd2;
  --accent: #c4552b;
  --accent-ink: #fff8f0;
  --plum: #2f2a5a;
  --mint: #e6f0e4;
  --radius: 18px;
  --shadow: 0 12px 40px rgba(29, 26, 22, 0.08);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 100px; }
section[id] { scroll-margin-top: 96px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Inter, Roboto, sans-serif;
  font-size: 17px;
  line-height: 1.6;
}
.mono, code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.9em;
}
.nav {
  position: sticky; top: 12px; z-index: 20;
  width: calc(100% - 24px); max-width: 1100px; margin: 12px auto 0;
  display: flex; align-items: center; gap: 6px;
  padding: 8px 10px 8px 16px;
  background: rgba(250, 247, 241, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--line);
  border-radius: 999px;
  box-shadow: var(--shadow);
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-weight: 800; font-size: 22px; letter-spacing: -0.02em; margin-right: 8px; }
.links { display: flex; align-items: center; gap: 2px; margin-left: auto; }
.links a { color: var(--muted); text-decoration: none; font-weight: 600; padding: 8px 13px; border-radius: 999px; transition: background 0.15s ease, color 0.15s ease; white-space: nowrap; }
.links a:hover { color: var(--ink); background: #efe5d2; }
.links a.early { color: var(--accent); }
.links a.early:hover { background: #f6e3d3; color: var(--accent); }
.links a.early i { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); margin-right: 7px; vertical-align: 1px; }
.icon-link { display: inline-flex; align-items: center; gap: 8px; }
.icon-link svg { flex: none; }
.social { display: flex; gap: 18px; justify-content: center; flex-wrap: wrap; margin: 6px 0; }
.social a { color: var(--ink); text-decoration: none; font-weight: 600; }
.social a:hover { text-decoration: underline; }
.btn {
  display: inline-block; padding: 12px 20px; border-radius: 999px;
  text-decoration: none; font-weight: 700; border: 1px solid var(--line);
  color: var(--ink); background: var(--card);
  transition: transform 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.btn.primary { background: var(--ink); color: #fff; border-color: var(--ink); }
.btn.ghost { background: transparent; }
.btn.small { padding: 8px 14px; font-size: 14px; }
.btn.icon-link { display: inline-flex; align-items: center; justify-content: center; gap: 8px; vertical-align: middle; }
.hero { padding: 56px 22px 30px; }
.hero-grid {
  max-width: 1100px; margin: 0 auto;
  display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 32px; align-items: center;
}
.kicker {
  text-transform: uppercase; letter-spacing: 0.12em; font-size: 12.5px;
  color: var(--accent); font-weight: 800; margin: 0 0 10px;
}
.hero h1 { font-size: clamp(34px, 5vw, 56px); line-height: 1.05; letter-spacing: -0.03em; margin: 0 0 14px; }
.lede { font-size: 19px; color: #3d3831; max-width: 56ch; }
.cta-row { display: flex; gap: 12px; flex-wrap: wrap; margin: 20px 0 16px; }
.install-step { margin: 0 0 10px; max-width: 560px; }
.install-step a { color: var(--ink); font-weight: 700; }
.install-note { font-size: 14.5px; color: var(--muted); max-width: 560px; margin: 10px 0 0; }
.install-note a { color: var(--ink); font-weight: 600; }
.install-line {
  display: flex; align-items: center; gap: 10px;
  background: #14110e; color: #f5efe4; border-radius: 12px; padding: 10px 12px;
  max-width: 560px;
}
.install-line code { white-space: nowrap; overflow-x: auto; min-width: 0; scrollbar-width: thin; }
.install-line + .install-line { margin-top: 10px; }
.copy {
  margin-left: auto; border: 1px solid #4a443c; background: transparent; color: #fff;
  border-radius: 999px; padding: 6px 12px; cursor: pointer; font-weight: 700;
}
.copy:hover { background: #26211b; }
/* below-the-message action band: CTAs + install, centered under copy+mascot */
.hero-below {
  grid-column: 1 / -1;
  max-width: 640px;
  margin: 12px auto 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.hero-below .cta-row { justify-content: center; margin: 0 0 16px; }
.hero-below .install-steps { width: 100%; }
.hero-below .install-note { text-align: center; }
.hero-mascot { position: relative; display: flex; justify-content: center; align-items: center; min-width: 0; padding-top: 12px; }
/* grounding blob — ties the mascot to the page instead of floating */
.hero-mascot::before {
  content: '';
  position: absolute;
  bottom: 6%;
  left: 50%;
  transform: translateX(-50%);
  width: min(280px, 64vw);
  height: 56px;
  background: radial-gradient(ellipse at center, rgba(196, 85, 43, 0.14) 0%, rgba(196, 85, 43, 0.05) 55%, transparent 75%);
  pointer-events: none;
  z-index: 0;
}
.hero-mascot #mascot { position: relative; z-index: 1; }
.mascot-says {
  position: absolute; top: -6px; left: 50%; z-index: 2;
  transform: translateX(-62%) rotate(-3deg);
  background: var(--card); border: 1px solid var(--line);
  border-radius: 14px 14px 4px 14px;
  padding: 8px 14px; font-size: 14.5px; font-weight: 700; white-space: nowrap;
  box-shadow: var(--shadow); margin: 0;
  transition: opacity 0.3s ease;
}
/* speech tail — visually connects the bubble to the mascot */
.mascot-says::after {
  content: '';
  position: absolute;
  bottom: -7px;
  right: 26px;
  width: 12px;
  height: 12px;
  background: var(--card);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  transform: rotate(45deg);
}
.hero-mascot #mascot { filter: drop-shadow(0 18px 22px rgba(29, 26, 22, 0.16)); animation: drift 7s ease-in-out infinite; }
@keyframes drift { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
.two-col > *, .dials > *, .grid-3 > *, .hero-copy, .compare { min-width: 0; }
#mascot {
  position: relative;
  display: block;
  flex-shrink: 0;
  width: var(--mascot-size, 220px);
  height: var(--mascot-size, 220px);
  padding: 0;
  border: 0;
  background: transparent;
  appearance: none;
  cursor: pointer;
  user-select: none;
  margin: 0 auto;
}
#mascotSquash { position: relative; display: block; width: 100%; height: 100%; transform-origin: 50% 78%; }
#mascotDirections, #mascotReactions {
  position: absolute;
  inset: 0;
  background-size: 300% 300%;
  background-repeat: no-repeat;
}
#mascotDirections { background-image: url("assets/mascots/scout-directions.png"); }
#mascotReactions { background-image: url("assets/mascots/scout-reactions.png"); opacity: 0; }

.section { max-width: 1100px; margin: 0 auto; padding: 44px 22px; }
.section h2 { font-size: clamp(26px, 3.4vw, 38px); letter-spacing: -0.02em; margin: 0 0 10px; line-height: 1.15; }
.section-lede { color: #3d3831; max-width: 72ch; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin-top: 18px; }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; margin-top: 18px; }
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px; box-shadow: 0 2px 0 rgba(29,26,22,0.04);
  transition: transform 0.16s ease, box-shadow 0.16s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.card.flat { background: transparent; box-shadow: none; }
.card.flat:hover { box-shadow: var(--shadow); }
.rules-card { margin-top: 22px; }
.hill-card { margin-top: 22px; }
.hill-demo { display: block; width: min(440px, 100%); margin: 14px auto 6px; color: var(--ink); }
.hill-dot { fill: var(--accent); }
.hill-dot.hill-attn { fill: #b7791f; }
.hill-axis { fill: var(--muted); font-size: 11px; }
.rules-grid { margin-top: 14px; }
.rules-grid h4 { margin: 0 0 6px; font-size: 16px; letter-spacing: -0.01em; }
.rules-grid p { margin: 0 0 8px; font-size: 15px; }
.rules-grid p.fine { margin: 0; }
.hill-card { margin-top: 22px; }
.hill-card .section-lede { margin-bottom: 6px; }
.hill-demo { display: block; width: 100%; height: auto; margin-top: 8px; color: #3d3831; }
.hill-demo .hill-dot { fill: #6b6459; }
.hill-demo .hill-attn { fill: #d97706; }
.hill-demo .hill-axis { font-size: 9px; fill: #8a8478; }
.card.accent { border-color: #d9b79f; background: #fff6ec; }
.step { font-size: 13px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.1em; color: var(--accent); margin: 0 0 6px; }
.card h3 { margin: 0 0 8px; font-size: 20px; letter-spacing: -0.01em; }
.compare { display: grid; gap: 12px; }
/* stage chips — readable pipeline steps instead of a flat mono line */
.chips {
  display: flex; flex-wrap: wrap; gap: 6px;
  margin: 0 0 10px; padding: 0; list-style: none;
}
.chips li { display: flex; align-items: center; gap: 6px; margin: 0; }
.chips li span {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 13px; font-weight: 700;
  background: #efe5d2; border: 1px solid var(--line);
  padding: 3px 11px; border-radius: 999px;
  white-space: nowrap;
}
.chips li:not(:last-child)::after { content: '→'; color: var(--muted); font-weight: 400; }
.card.accent .chips li span { background: #f6e3d3; border-color: #d9b79f; }
.dials { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 16px; }
.dials ul, .ticks { margin: 10px 0 0; padding-left: 20px; }
.mini-steps { margin: 12px 0 0; padding-left: 22px; }
.mini-steps code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.85em; font-weight: 700;
  background: #efe5d2; border: 1px solid var(--line);
  padding: 1px 7px; border-radius: 6px; white-space: nowrap;
}
.mini-steps li { margin-bottom: 6px; }
.mini-steps a { color: var(--ink); font-weight: 700; }
/* quiet notice strip — a caveat, not a feature; whispers instead of shouting */
.notice {
  background: #fff6ec;
  border: 1px solid #d9b79f;
  border-radius: var(--radius);
  padding: 22px 24px;
}
.notice .kicker { margin-bottom: 4px; }
.notice h2 { font-size: 20px; margin: 0 0 6px; }
.notice p { margin: 0; }
.notice a { color: var(--ink); font-weight: 600; }
/* long-form rhythm — air between paragraphs, comfortable measure */
.two-col > div:not(.card) > p { max-width: 62ch; line-height: 1.7; margin: 0 0 16px; }
.two-col > div:not(.card) > p:last-child { margin-bottom: 0; }
.section-lede { font-size: 18px; line-height: 1.65; }
.notice > p { line-height: 1.65; max-width: 74ch; margin: 0 0 12px; }
.notice > p:last-child { margin-bottom: 0; }
.notice .strat-grid { margin-top: 14px; }
.strat-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-top: 18px; }
.strat {
  display: flex; gap: 12px; align-items: flex-start;
  background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px;
  transition: transform 0.15s ease;
}
.strat:hover { transform: translateY(-2px); }
.strat span { font-size: 22px; }
.strat h3 { margin: 0 0 2px; font-size: 16.5px; }
.strat p { margin: 0; color: var(--muted); font-size: 15px; }
.steps { max-width: 70ch; }
.steps li { margin-bottom: 10px; }
.curious-card {
  background: #14110e; color: #f5efe4;
  border-radius: var(--radius);
  padding: 28px clamp(20px, 4vw, 36px);
  display: flex; gap: 20px; align-items: center; flex-wrap: wrap;
}
.curious-card > div { min-width: 0; flex: 1 1 280px; }
.curious-card .kicker { color: #e89a6b; }
.curious-card h2 { color: #fff; margin: 0 0 8px; font-size: clamp(22px, 3vw, 30px); letter-spacing: -0.02em; line-height: 1.2; }
.curious-card p { color: #cfc6b8; margin: 0; max-width: 62ch; }
.curious-card .btn.light { margin-left: auto; background: #f5efe4; color: #14110e; border-color: #f5efe4; }
.fine { color: var(--muted); font-size: 14px; }
footer { border-top: 1px solid var(--line); padding: 22px; text-align: center; color: var(--muted); font-size: 14px; }
footer a { color: var(--ink); }
/* reveal */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity 0.5s ease, transform 0.5s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (max-width: 900px) {
  .hero-grid, .two-col, .dials { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: 1fr; }
  .strat-grid { grid-template-columns: 1fr; }
  .links { display: none; }
  .mascot-says { transform: translateX(-50%) rotate(-3deg); }
  .hero-mascot { padding-top: 8px; }
  .hero-mascot::before { width: min(240px, 70vw); }
  .install-line { flex-wrap: wrap; }
  .install-line code { white-space: normal; overflow-wrap: anywhere; word-break: break-word; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}
