/* Teacher Wealth — This or That. Matches the Compound Interest Lab look. */
:root {
  --blue: #5271FF;
  --blue-dark: #3F5BE0;
  --blue-tint: #EAEEFF;
  --that: #F5A524;        /* second choice color (one added accent) */
  --that-dark: #D98B0B;
  --that-tint: #FEF3DF;
  --logo-grey: #666666;
  --text: #24272E;
  --text-2: #61656F;
  --bg: #F3F4F8;
  --card: #FFFFFF;
  --border: #DCE0EA;
  --field: #F3F4F8;
  --good: #1E9E6A;
  --radius: 14px;
  --head: "Lexend", system-ui, -apple-system, "Segoe UI", sans-serif;
  --body: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: var(--body); font-size: 16px; line-height: 1.45;
  min-height: 100vh; display: flex; flex-direction: column;
}
h1, h2, h3, .head { font-family: var(--head); font-weight: 600; letter-spacing: -0.01em; margin: 0; }
button, input, select { font: inherit; color: inherit; }
.hidden { display: none !important; }
.wrap { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 16px; }
main { flex: 1; padding-bottom: 32px; }

/* ---------- header ---------- */
.top { padding: 22px 0 18px; }
.top .wrap { display: flex; align-items: center; gap: 18px; }
.brand { display: flex; align-items: center; gap: 18px; min-width: 0; }
.brand img { height: 50px; width: auto; display: block; }
.brand .divider { width: 1px; align-self: stretch; background: var(--border); }
.brand h1 { font-size: 20px; }
.brand p { margin: 2px 0 0; color: var(--text-2); font-size: 14px; }
.top .spacer { flex: 1; }

/* ---------- panels & controls ---------- */
.card {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 22px;
}
.label { font-family: var(--head); font-weight: 600; font-size: 14px; margin-bottom: 8px; display: block; }
.muted { color: var(--text-2); }
.btn {
  appearance: none; border: 0; cursor: pointer; border-radius: 10px;
  background: var(--blue); color: #fff; font-family: var(--head); font-weight: 600;
  font-size: 18px; padding: 13px 22px; transition: background .15s, transform .05s;
}
.btn:hover { background: var(--blue-dark); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn.block { width: 100%; }
.pill {
  appearance: none; cursor: pointer; background: #fff; border: 1px solid var(--border);
  border-radius: 999px; padding: 8px 16px; font-size: 14px; color: var(--text); white-space: nowrap;
  transition: border-color .15s, background .15s;
}
.pill:hover { border-color: var(--blue); }
.pill.on { background: var(--blue-tint); border-color: var(--blue); color: var(--blue-dark); font-weight: 600; }
.pill.danger:hover { border-color: #C9473B; color: #B53A2F; }
.field {
  width: 100%; background: var(--field); border: 1px solid var(--border); border-radius: 8px;
  padding: 11px 12px; font-size: 16px;
}
.field:focus, .pill:focus-visible, .btn:focus-visible, .choice:focus-visible, .tab:focus-visible {
  outline: 3px solid rgba(82,113,255,.35); outline-offset: 2px; border-color: var(--blue);
}
.tabs { display: flex; gap: 6px; border-bottom: 2px solid var(--border); margin-bottom: 18px; overflow-x: auto; }
.tab {
  appearance: none; background: none; border: 0; cursor: pointer; padding: 10px 16px 12px;
  font-family: var(--head); font-weight: 500; font-size: 16px; color: var(--text-2);
  border-bottom: 3px solid transparent; margin-bottom: -2px; white-space: nowrap;
}
.tab.on { color: var(--text); border-bottom-color: var(--blue); font-weight: 600; }
.row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.rule { height: 1px; background: var(--border); margin: 20px 0; border: 0; }

/* ---------- footer ---------- */
footer { padding: 18px 0 26px; color: var(--text-2); font-size: 13px; text-align: center; }

/* ---------- choice tags & bars ---------- */
.tag {
  display: inline-block; font-family: var(--head); font-weight: 700; font-size: .7em;
  letter-spacing: .08em; text-transform: uppercase; padding: .2em .6em; border-radius: 6px;
  background: var(--blue-tint); color: var(--blue-dark);
}
.tag.that { background: var(--that-tint); color: #9A5F00; }

@media (max-width: 760px) {
  .grid-3 { grid-template-columns: 1fr; }
  .brand img { height: 40px; }
  .brand p { display: none; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }
