:root {
  --bg: #fffdf8;
  --bg-alt: #f2f8ff;
  --ink: #2b2d42;
  --ink-soft: #5c6178;
  --card: #ffffff;
  --line: #e7e3da;

  --brand: #1cb0f6;
  --brand-d: #1899d6;
  --brand-l: #e3f5fe;
  --sky: #9ad8f8;
  --blue: #1cb0f6;
  --blue-d: #1899d6;
  --blue-l: #e3f5fe;
  --yellow: #ffc800;
  --yellow-d: #e0a800;
  --yellow-l: #fff6d6;
  --orange: #ff9600;
  --orange-d: #e08400;
  --orange-l: #fff0dc;
  --red: #ff6b6b;
  --red-d: #e05555;
  --red-l: #ffe8e8;
  --pink: #ff86c8;
  --purple: #a560e8;
  --purple-d: #8a46c9;
  --purple-l: #f3e9fd;

  --radius: 22px;
  --shadow: 0 4px 0 var(--line);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Nunito", system-ui, -apple-system, sans-serif;
  font-weight: 600;
  font-size: 18px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: var(--blue-d); }
h1, h2, h3, h4 { font-weight: 900; line-height: 1.15; margin: 0; }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 20px;
  background: rgba(255, 253, 248, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 2px solid var(--line);
}
.logo {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 900; font-size: 20px; color: var(--ink); text-decoration: none; letter-spacing: -.2px;
}
.logo-word span { color: var(--brand); }
.logo-mark { display: block; }
.nav nav { display: flex; gap: 6px; }
.nav nav a {
  text-decoration: none; color: var(--ink-soft); font-weight: 800; font-size: 15px;
  padding: 6px 12px; border-radius: 999px;
}
.nav nav a:hover { background: var(--brand-l); color: var(--brand-d); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; border: 0; cursor: pointer;
  font: inherit; font-weight: 900; font-size: 17px; letter-spacing: .3px;
  text-transform: uppercase; text-decoration: none;
  padding: 14px 26px; border-radius: 16px; color: #fff;
  transition: transform .08s, box-shadow .08s, filter .15s;
}
.btn:active { transform: translateY(4px); box-shadow: none !important; }
.btn:hover { filter: brightness(1.05); }
.btn-brand { background: var(--brand); box-shadow: 0 5px 0 var(--brand-d); }
.btn-yellow { background: var(--yellow); box-shadow: 0 5px 0 var(--yellow-d); color: #5a4300; }
.btn-blue { background: var(--blue); box-shadow: 0 5px 0 var(--blue-d); }
.btn-ghost {
  background: #fff; color: var(--ink-soft); border: 2px solid var(--line);
  box-shadow: 0 4px 0 var(--line); text-transform: none; font-size: 16px; padding: 10px 18px;
}
.btn-ghost:disabled { opacity: .4; cursor: default; }

/* ---------- Layout ---------- */
.section { padding: 64px 20px; max-width: 1080px; margin: 0 auto; }
.section.alt { max-width: none; background: var(--bg-alt); }
.section.alt > * { max-width: 1040px; margin-left: auto; margin-right: auto; }
.section-title { font-size: clamp(28px, 4.5vw, 42px); text-align: center; }
.section-sub { text-align: center; color: var(--ink-soft); margin: 10px auto 36px; max-width: 620px; }

.card {
  background: var(--card); border: 2px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow);
}
.card.soft { background: var(--yellow-l); border-color: #f3e3a3; box-shadow: 0 4px 0 #f3e3a3; }

/* ---------- Hero ---------- */
.hero {
  text-align: center; padding: 72px 20px 56px; max-width: 820px; margin: 0 auto;
}
.hero-badge {
  display: inline-block; background: var(--blue-l); color: var(--blue-d);
  font-weight: 800; font-size: 15px; padding: 6px 14px; border-radius: 999px; margin-bottom: 18px;
}
.hero h1 { font-size: clamp(36px, 7vw, 64px); }
.hero .hl { color: var(--brand); }
.lead { font-size: clamp(18px, 2.4vw, 22px); color: var(--ink-soft); margin: 20px auto 32px; max-width: 560px; }

/* ---------- Syllogism ---------- */
.syllogism { display: flex; flex-direction: column; align-items: stretch; gap: 10px; max-width: 760px; margin: 0 auto; }
.premise, .conclusion {
  display: flex; gap: 20px; align-items: flex-start; padding: 24px;
  transition: border-color .2s, box-shadow .2s, background .2s;
}
.premise.agreed { border-color: var(--brand); box-shadow: 0 4px 0 var(--brand-d); }
.premise-icon {
  flex: 0 0 auto; width: 76px; height: 76px; border-radius: 22px;
  display: grid; place-items: center; font-size: 42px;
}
.premise-icon.heart { background: var(--red-l); }
.premise-icon.brain { background: #f6e8ff; }
.premise-icon.lock { background: #eee; transition: transform .3s; }
.premise-body { flex: 1; min-width: 0; }
.premise-label { font-size: 14px; font-weight: 900; text-transform: uppercase; letter-spacing: .6px; color: var(--ink-soft); }
.premise-text { font-size: clamp(21px, 3vw, 27px); font-weight: 900; margin: 4px 0 10px; }

.why summary {
  cursor: pointer; font-weight: 800; color: var(--blue-d); list-style: none; display: inline-block;
}
.why summary::-webkit-details-marker { display: none; }
.why summary::before { content: "▸ "; }
.why[open] summary::before { content: "▾ "; }
.why p { color: var(--ink-soft); margin: 8px 0 0; font-size: 17px; }

.choice { display: flex; gap: 10px; margin-top: 16px; flex-wrap: wrap; }
.btn-choice {
  font: inherit; font-weight: 800; font-size: 16px; cursor: pointer;
  background: #fff; color: var(--ink); border: 2px solid var(--line);
  border-radius: 14px; padding: 10px 18px; box-shadow: 0 4px 0 var(--line);
  transition: transform .08s;
}
.btn-choice:active { transform: translateY(3px); box-shadow: none; }
.btn-choice.selected[data-answer="yes"] { background: var(--brand-l); border-color: var(--brand); color: var(--brand-d); box-shadow: 0 4px 0 var(--brand); }
.btn-choice.selected[data-answer="unsure"] { background: var(--purple-l); border-color: var(--purple); color: var(--purple-d); box-shadow: 0 4px 0 var(--purple); }
.unsure-help {
  margin-top: 14px; background: var(--purple-l); border-radius: 14px; padding: 12px 16px; font-size: 16px; color: #5b2d86;
}

.plus, .equals {
  text-align: center; font-size: 36px; font-weight: 900; color: #c9c3b6; line-height: 1;
}
.conclusion { background: #fafafa; border-style: dashed; }
.conclusion .premise-text { color: #999; transition: color .2s; }
.conclusion-note { margin: 0; color: var(--ink-soft); font-size: 16px; }
.conclusion.pending { border-style: solid; border-color: var(--purple); box-shadow: 0 4px 0 var(--purple-d); background: #fff; }
.conclusion.pending .premise-text { color: var(--ink); }
.conclusion.unlocked {
  border-style: solid; border-color: var(--brand); background: var(--brand-l); box-shadow: 0 5px 0 var(--brand-d);
  animation: pop .4s ease;
}
.conclusion.unlocked .premise-text { color: var(--brand-d); }
.conclusion.unlocked .premise-icon { background: #fff; transform: rotate(-8deg) scale(1.08); }

.tip { max-width: 760px; margin: 28px auto 0; padding: 18px 22px; font-size: 17px; }

/* ---------- SLED ---------- */
.sled-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.sled {
  position: relative; font: inherit; color: inherit; cursor: pointer; text-align: center;
  min-height: 240px; padding: 0; perspective: 900px; background: transparent; border: 0; box-shadow: none;
}
.sled-face {
  position: absolute; inset: 0; padding: 22px 18px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  background: #fff; border: 2px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
  backface-visibility: hidden; -webkit-backface-visibility: hidden;
  transition: transform .45s cubic-bezier(.3,1.4,.5,1);
}
.sled-face.back { transform: rotateY(180deg); font-size: 15px; line-height: 1.45; font-weight: 700; background: var(--brand-l); border-color: var(--brand); box-shadow: 0 4px 0 var(--brand-d); }
.sled.flipped .front { transform: rotateY(-180deg); }
.sled.flipped .back { transform: rotateY(0); }
.sled-face b { font-size: 19px; }
.sled-face small { color: var(--ink-soft); font-size: 15px; font-style: italic; }
.sled-letter {
  width: 58px; height: 58px; border-radius: 18px; display: grid; place-items: center;
  font-size: 32px; font-weight: 900; color: #fff; margin-bottom: 6px;
}
.sled-letter.s { background: var(--pink); }
.sled-letter.l { background: var(--purple); }
.sled-letter.e { background: var(--blue); }
.sled-letter.d { background: var(--orange); }

.big-idea { margin-top: 28px; padding: 24px; text-align: center; }
.big-idea p { margin: 16px auto 0; max-width: 640px; color: var(--ink-soft); }
.big-idea-row { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.pill { padding: 10px 18px; border-radius: 999px; font-weight: 800; }
.pill-bad { background: var(--red-l); color: #b23b3b; text-decoration: line-through; text-decoration-thickness: 2px; }
.pill-good { background: var(--brand-l); color: var(--brand-d); }

/* ---------- Spectrum ---------- */
.spectrum-wrap { margin-bottom: 28px; }
.spectrum-ends {
  display: flex; justify-content: space-between; font-weight: 900; font-size: 14px;
  text-transform: uppercase; letter-spacing: .6px; color: var(--ink-soft); padding: 0 4px 8px;
}
.spectrum { position: relative; height: 240px; margin: 0 40px 16px; }
.spectrum-track {
  position: absolute; left: -40px; right: -40px; top: 50%; height: 14px; transform: translateY(-50%);
  border-radius: 999px;
  background: linear-gradient(90deg, var(--red), var(--orange) 30%, var(--yellow) 50%, var(--sky) 72%, var(--brand));
  box-shadow: inset 0 -3px 0 rgba(0,0,0,.08);
}

.avatar {
  --row: 0;
  position: absolute; top: calc(var(--row) * 50% + 2%); transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  background: none; border: 0; cursor: pointer; font: inherit; color: var(--ink); z-index: 2;
  width: 110px;
}
.avatar.row-1 { flex-direction: column-reverse; }
/* Grow the selected emoji away from its label, not into it */
.avatar .avatar-emoji { transform-origin: center bottom; }
.avatar.row-1 .avatar-emoji { transform-origin: center top; }
.avatar-emoji {
  width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center; font-size: 30px;
  background: #fff; border: 3px solid var(--c); box-shadow: 0 4px 0 var(--cd);
  transition: transform .15s;
}
.avatar-name { font-size: 13px; font-weight: 800; line-height: 1.15; text-align: center; color: var(--ink-soft); }
.avatar:hover .avatar-emoji { transform: translateY(-3px) scale(1.06); }
.avatar.active .avatar-emoji { background: var(--cl); transform: scale(1.18); box-shadow: 0 4px 0 var(--cd), 0 0 0 4px var(--cl); }
.avatar.active .avatar-name { color: var(--ink); }

.c-red    { --c: var(--red);    --cd: var(--red-d);    --cl: var(--red-l); }
.c-orange { --c: var(--orange); --cd: var(--orange-d); --cl: var(--orange-l); }
.c-yellow { --c: var(--yellow); --cd: var(--yellow-d); --cl: var(--yellow-l); }
.c-purple { --c: var(--purple); --cd: var(--purple-d); --cl: var(--purple-l); }
.c-brand  { --c: var(--brand);  --cd: var(--brand-d);  --cl: var(--brand-l); }

.profile-list { display: none; }

/* ---------- Profile panel ---------- */
.profile { padding: 28px; border-color: var(--c); box-shadow: 0 5px 0 var(--cd); }
.profile.pop { animation: pop .35s ease; }
.profile-head { display: flex; gap: 18px; align-items: center; margin-bottom: 22px; }
.profile-emoji {
  flex: 0 0 auto; width: 80px; height: 80px; border-radius: 24px; background: var(--cl);
  display: grid; place-items: center; font-size: 44px;
}
.profile h3 { font-size: clamp(24px, 3.4vw, 32px); }
.profile-tagline { margin: 4px 0 0; font-size: 19px; font-style: italic; color: var(--ink-soft); }
.profile-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.box { background: #faf8f3; border-radius: 18px; padding: 16px 18px; }
.box h4 { font-size: 17px; margin-bottom: 6px; }
.box p { margin: 0; font-size: 17px; color: #3e4157; }
.box.good { background: var(--brand-l); }
.box.warn { background: var(--orange-l); }
.box.idea { background: var(--purple-l); }

.echo {
  margin-top: 16px; border-radius: 18px; padding: 18px 20px;
  background: #f6f1e7; border: 2px dashed #d9cdb3;
}
.echo-head { font-weight: 900; font-size: 14px; text-transform: uppercase; letter-spacing: .6px; color: #8a7448; }
.echo blockquote { margin: 10px 0 6px; font-size: 20px; font-weight: 800; font-family: Georgia, serif; font-style: italic; }
.echo cite { font-style: normal; font-weight: 800; color: var(--ink-soft); font-size: 15px; }
.echo-context { margin: 8px 0 0; font-size: 15px; color: var(--ink-soft); }

.profile-nav { display: flex; justify-content: space-between; margin-top: 22px; gap: 10px; }

/* ---------- Closing ---------- */
.closing { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.closing-card { padding: 28px; text-align: center; }
.closing-card h2 { font-size: 26px; }
.closing-card p { color: var(--ink-soft); margin: 10px 0 22px; }

.footer { text-align: center; padding: 32px 20px 48px; color: var(--ink-soft); font-weight: 800; }

@keyframes pop {
  0% { transform: scale(.97); opacity: .6; }
  60% { transform: scale(1.015); opacity: 1; }
  100% { transform: scale(1); }
}

/* ---------- Mobile ---------- */
@media (max-width: 860px) {
  .sled-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  body { font-size: 17px; }
  .nav { padding: 10px 16px; }
  .nav nav a:not(:last-child) { display: none; }
  .section { padding: 48px 16px; }
  .hero { padding: 48px 16px 40px; }
  .premise, .conclusion { flex-direction: column; gap: 12px; padding: 20px; }
  .premise-icon { width: 60px; height: 60px; font-size: 34px; border-radius: 18px; }
  .choice .btn-choice { flex: 1; }

  .spectrum-wrap { display: none; }
  .profile-list {
    display: flex; flex-direction: column; gap: 8px; margin-bottom: 22px;
    padding-left: 18px; position: relative;
  }
  .profile-list::before {
    content: ""; position: absolute; left: 0; top: 4px; bottom: 4px; width: 8px; border-radius: 999px;
    background: linear-gradient(180deg, var(--red), var(--orange) 30%, var(--yellow) 50%, var(--sky) 72%, var(--brand));
  }
  .chip {
    display: flex; align-items: center; gap: 10px; text-align: left;
    font: inherit; font-weight: 800; font-size: 16px; color: var(--ink); cursor: pointer;
    background: #fff; border: 2px solid var(--line); border-radius: 14px; padding: 10px 14px;
    box-shadow: 0 3px 0 var(--line);
  }
  .chip span { font-size: 22px; }
  .chip.active { border-color: var(--c); background: var(--cl); box-shadow: 0 3px 0 var(--cd); }
  .profile { padding: 20px; }
  .profile-head { flex-direction: column; align-items: flex-start; gap: 12px; }
  .profile-emoji { width: 64px; height: 64px; font-size: 36px; }
  .profile-grid { grid-template-columns: 1fr; }
  .closing { grid-template-columns: 1fr; }
}
@media (max-width: 420px) {
  .sled-grid { grid-template-columns: 1fr; }
  .sled { min-height: 190px; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
