:root {
  --header-h: 48px;
  --blue: #2f71dc;
  --blue-press: #265db8;
  --header: #222222;
  --panel: 33.25vw;
  --keypad-h: 196px;
  --ink: #1c1c1a;
  --muted: #6f6d68;
  --line: #e2e0da;
  --paper: #fafaf8;
  --soft: #e7f1fb;
  --keypad: #eceae6;
  color-scheme: light;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  height: 100%;
  overflow: hidden;
  background: #ffffff;
  font-family: Arial, Helvetica, "Helvetica Neue", sans-serif;
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
}

button, input, textarea { font-family: inherit; }

button {
  cursor: pointer;
}

#app {
  height: 100%;
  width: 100%;
  min-width: 0;
  display: flex;
  flex-direction: column;
  background: #ffffff;
  font-family: Arial, Helvetica, "Helvetica Neue", sans-serif;
}

.topbar {
  height: var(--header-h);
  flex: none;
  background: var(--header);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 8px 0 15px;
  position: relative;
  z-index: 5;
  border-bottom: 1px solid #141414;
}

.brand-side, .account-side {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  flex: 1 1 0;
  position: relative;
  z-index: 1;
}

.account-side { justify-content: flex-end; gap: 6px; }

.header-rule {
  width: 1px;
  height: 26px;
  background: #5a5a5a;
  flex: none;
  margin: 0 8px 0 2px;
}

.logo {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  font-family: "Nunito", "Avenir Next", "Segoe UI", sans-serif;
  font-weight: 700;
  font-size: 22px;
  letter-spacing: 0;
  color: #fff;
  line-height: 1;
  pointer-events: none;
}

.icon-btn, .tool-btn, .zoom-btn, .kb-btn, .expand-btn {
  border: none;
  background: transparent;
  color: #e8e8e8;
  display: grid;
  place-items: center;
  padding: 0;
}

.icon-btn {
  width: 32px;
  height: 32px;
  border-radius: 4px;
  color: #efefef;
}

.icon-btn:hover { background: rgba(255, 255, 255, 0.08); }

.tool-btn { color: #555555; }
.tool-btn:hover { background: transparent; color: #222; }

.title {
  width: 150px;
  background: transparent;
  border: none;
  color: #f3f3f3;
  font-size: 15px;
  font-weight: 400;
  padding: 4px 6px;
  border-radius: 0;
}

.title:focus { outline: none; background: rgba(255, 255, 255, 0.08); }

.header-save,
.header-login,
.header-signup {
  height: 32px;
  padding: 0 12px;
  border-radius: 3px;
  font-size: 14px;
  font-weight: 400;
  line-height: 1;
  flex: none;
}

.header-save {
  min-width: 64px;
  margin-left: 6px;
  background: var(--blue);
  border: 1px solid var(--blue);
  color: #fff;
}

.header-save:hover { background: var(--blue-press); border-color: var(--blue-press); color: #fff; }
.header-save.saved { background: var(--blue); color: #fff; border-color: var(--blue); }

.header-login {
  min-width: 80px;
  background: transparent;
  border: 1px solid #c8c8c8;
  color: #fff;
}

.header-login:hover { background: rgba(255, 255, 255, 0.06); }

.header-signup {
  min-width: 94px;
  background: var(--blue);
  border: 1px solid var(--blue);
  color: #fff;
}

.header-signup:hover { background: var(--blue-press); }

.pill {
  border: none;
  color: #fff;
  background: var(--blue);
  border-radius: 3px;
  font-size: 14px;
  font-weight: 400;
  height: 30px;
  padding: 0 14px;
}

.pill:hover { background: var(--blue-press); }
.pill:active, .key.enter:active { background: var(--blue-press); }
.pill.saved { background: var(--blue); }

.login {
  height: 30px;
  padding: 0 12px;
  border-radius: 3px;
  border: none;
  background: #4a4a4a;
  color: #fff;
  font-size: 14px;
  font-weight: 650;
}

.login:hover { background: #5a5a5a; }

.green-mark {
  width: 22px;
  height: 22px;
  margin-left: 4px;
  border: none;
  border-radius: 2px;
  background: #2d9a45;
  color: #fff;
  display: grid;
  place-items: center;
  padding: 0;
  flex: none;
}

.main {
  flex: 1;
  min-height: 0;
  display: flex;
  position: relative;
}

.expressions {
  width: var(--panel);
  flex: none;
  background: #ffffff;
  border-right: 1px solid #d8d8d8;
  box-shadow: 3px 0 5px rgba(0, 0, 0, 0.04);
  display: flex;
  flex-direction: column;
  min-height: 0;
  position: relative;
  z-index: 2;
}

#app.collapsed .expressions {
  width: 0;
  border-right: none;
  box-shadow: none;
  overflow: hidden;
}

.list-bar {
  height: 58px;
  flex: none;
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 0 8px 0 6px;
  background: #f7f7f7;
  border-bottom: 1px solid #e2e2e2;
}

.tool-text {
  height: 28px;
  margin-left: 4px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: var(--blue);
  font-size: 13px;
  font-weight: 650;
}

.tool-text:hover { background: var(--soft); }

.list-bar .spacer { flex: 1; }

.tool-btn {
  width: 36px;
  height: 40px;
  border-radius: 0;
  background: transparent;
}

.add-btn {
  width: 42px;
  height: 42px;
  color: #4a4a4a;
}

.ask-tool {
  width: auto;
  height: 32px;
  padding: 0 6px;
  color: var(--blue);
  font-size: 14px;
  font-weight: 400;
}

.tool-btn:disabled {
  opacity: 1;
  color: #bebebe;
  cursor: default;
}

.tool-btn:disabled:hover { background: transparent; }

.list {
  flex: 1;
  overflow: auto;
  padding: 0 0 80px;
}

.row {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  margin-right: 10px;
  align-items: stretch;
  min-height: 0;
  border-left: 5px solid #c74440;
}

.row:nth-child(6n+2) { border-left-color: #2d70b3; }
.row:nth-child(6n+3) { border-left-color: #388c46; }
.row:nth-child(6n+4) { border-left-color: #6042a6; }
.row:nth-child(6n+5) { border-left-color: #fa7e19; }
.row:nth-child(6n+6) { border-left-color: #000000; }
.row.has-plot { border-left-color: var(--plot); }

.idx {
  grid-column: 1;
  grid-row: 1;
  color: #c5c5c5;
  font-size: 12px;
  line-height: 1;
  padding: 5px 0 0 6px;
  user-select: none;
}

.row.active {
  min-height: 65px;
}

.row.active .idx,
.row.has-plot:not(.active) .idx {
  background: transparent;
  color: #bdbdbd;
  box-shadow: none;
  min-height: 0;
}

.row.inactive {
  min-height: 22px;
  margin-right: 0;
  outline: none;
}

.row.inactive .idx {
  padding-top: 6px;
  color: #c8c8c8;
  background: transparent;
  min-height: 0;
}

.expr-box {
  grid-column: 2;
  grid-row: 1;
  position: relative;
  display: flex;
  align-items: flex-start;
  min-height: 65px;
  background: #fff;
  border: none;
  border-radius: 0;
}

.row.active .expr-box,
.row.has-text:not(.active) .expr-box,
.row.has-plot:not(.active) .expr-box {
  border: none;
  background: #fff;
}

.ask-label { display: none; }

.row.ask .expr-box {
  flex-direction: column;
  background: #fff;
  border: none;
  padding: 0;
}

.row.ask .ask-label {
  display: block;
  padding: 6px 12px 0;
  color: #9a9a9a;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
}

.row.ask.inactive .expr-box {
  min-height: 0;
  background: transparent;
  border: none;
}

.row.ask.inactive .ask-label { display: none; }

.row.inactive .expr-box {
  min-height: 0;
  background: transparent;
  border: none;
  box-shadow: none;
}

.row.inactive textarea {
  height: 0 !important;
  min-height: 0;
  padding: 0;
  opacity: 0;
  pointer-events: none;
}

.swatch {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  margin: 15px 0 0 8px;
  flex: none;
  display: none;
}

.swatch.on { display: block; }

textarea {
  flex: 1;
  width: 100%;
  border: none;
  resize: none;
  outline: none;
  background: transparent;
  font-size: 18px;
  line-height: 1.35;
  padding: 18px 40px 8px 12px;
  min-height: 48px;
  color: #202020;
  overflow: hidden;
}

.del {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  border: none;
  background: transparent;
  color: #c5c5c5;
  font-size: 28px;
  font-weight: 300;
  line-height: 1;
  border-radius: 0;
}

.row:not(.active) .del { opacity: 0; }
.row.active .del, .row.has-text:hover .del { opacity: 1; }
.row.inactive .del { display: none; }
.del:hover { background: #f2f2f2; color: #555; }

.answer {
  grid-column: 2;
  grid-row: 2;
  margin: 0 0 6px;
  background: #fff;
  border: none;
  border-top: 1px solid #ececec;
  border-radius: 0;
  padding: 8px 12px 10px;
}

.answer-kicker {
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #8d8d8d;
  font-weight: 700;
  margin-bottom: 3px;
}

.answer-body { color: var(--ink); }

.answer-result {
  font-size: 16px;
  font-weight: 400;
  line-height: 1.4;
  white-space: pre-wrap;
  word-break: break-word;
}

.answer-work { margin-top: 8px; }

.answer-work summary {
  cursor: pointer;
  color: var(--muted);
  font-size: 13px;
  font-weight: 650;
}

.answer-work p {
  margin: 6px 0 0;
  white-space: pre-wrap;
  word-break: break-word;
  font-size: 14px;
  font-weight: 450;
  line-height: 1.45;
  max-height: 220px;
  overflow: auto;
}

.answer.loading .answer-result { color: #9a9a9a; font-weight: 500; }
.answer.error {
  border-left-color: #c4473a;
}
.answer.error .answer-result { color: #9b2c2c; font-size: 15px; font-weight: 500; }

.answer-buy {
  margin-top: 8px;
  border: none;
  background: var(--blue);
  color: #fff;
  border-radius: 3px;
  height: 30px;
  padding: 0 12px;
  font-size: 13px;
  font-weight: 650;
}

.answer-buy:hover { background: var(--blue-press); }

.nav-actions .pass-status { color: var(--ink); }

.topbar .pass-status { color: #fff; flex: none; }

.pass-status {
  color: #fff;
  font-size: 13px;
  font-weight: 650;
  max-width: 280px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@keyframes rise {
  from { opacity: 0; transform: translateY(-3px); }
  to { opacity: 1; transform: none; }
}

.graph {
  flex: 1;
  min-width: 0;
  position: relative;
  background: #fff;
  overflow: hidden;
}

canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  cursor: grab;
  touch-action: none;
}

canvas.dragging { cursor: grabbing; }

.zoom {
  position: absolute;
  top: 7px;
  right: 8px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  z-index: 3;
}

.zoom-btn {
  width: 42px;
  height: 42px;
  background: #f5f5f5;
  color: #555;
  border: 1px solid #d7d7d7;
  border-radius: 5px;
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.08);
}

.zoom-btn:hover { background: #f7f7f7; }
.zoom-btn:active { background: #efefef; }

.expand-btn {
  display: none;
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 4;
  width: 34px;
  height: 34px;
  background: #fff;
  color: #444;
  border: 1px solid #ddd;
  border-radius: 4px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
}

#app.collapsed .expand-btn { display: grid; }

.kb-btn {
  position: absolute;
  left: 10px;
  bottom: 8px;
  z-index: 6;
  width: 92px;
  height: 50px;
  background: #f5f5f5;
  border: 1px solid #d7d7d7;
  border-radius: 4px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
  color: #666;
}

.kb-btn:hover { background: #fff; }

.powered {
  position: absolute;
  left: 0;
  width: var(--panel);
  bottom: 16px;
  z-index: 4;
  color: #cfcfcf;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0;
  text-align: center;
  pointer-events: none;
  user-select: none;
}

.powered strong {
  display: block;
  margin-top: 1px;
  font-family: "Nunito", "Avenir Next", "Segoe UI", sans-serif;
  font-weight: 700;
  font-size: 15px;
  color: #d5d5d5;
  letter-spacing: 0;
}

#app.keys-open .powered,
#app.collapsed .powered { display: none; }

.keypad {
  display: none;
  position: relative;
  height: var(--keypad-h);
  flex: none;
  background: var(--keypad);
  border-top: 1px solid #e1e1e1;
  align-items: center;
  padding: 12px 16px 14px 18px;
}

#app.keys-open .keypad { display: flex; }

.keypad-math {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

#app.alpha .keypad-math { display: none; }

.keys-left, .keys-mid {
  display: grid;
  grid-template-columns: repeat(4, 58px);
  grid-auto-rows: 38px;
  gap: 7px;
}

.keys-right {
  width: 140px;
  display: grid;
  grid-template-rows: repeat(4, 38px);
  gap: 7px;
}

.arrows {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px;
}

.key {
  border: 1px solid #d2d2d2;
  background: #fff;
  border-radius: 5px;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.12);
  color: #222;
  font-size: 16px;
  padding: 0;
  display: grid;
  place-items: center;
}

.key:hover { filter: brightness(0.97); }
.key:active { transform: translateY(1px); box-shadow: none; }

.key.math {
  font-family: "Times New Roman", Times, serif;
  font-style: italic;
  font-size: 18px;
}

.key.math sup { font-size: 0.65em; }

.key.num, .key.op, .key.fn, .key.back {
  background: #d0d0d0;
  border-color: #c4c4c4;
  font-style: normal;
  font-family: "Avenir Next", Avenir, "Segoe UI", sans-serif;
}

.key.zero, .key.dot, .key.eq, .key.plus {
  background: #fff;
  font-style: normal;
  font-family: "Avenir Next", Avenir, "Segoe UI", sans-serif;
}

.key.abc, .key.mode {
  background: #5a5a5a;
  border-color: #4c4c4c;
  color: #fff;
  font-style: normal;
  font-family: "Avenir Next", Avenir, "Segoe UI", sans-serif;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.04em;
}

.key.fn {
  font-size: 15px;
  font-weight: 500;
}

.key.enter {
  background: var(--blue);
  border-color: var(--blue-press);
  color: #fff;
}

.key.speaker { color: #444; }

.keypad-alpha {
  display: none;
  width: 100%;
  flex-direction: column;
  align-items: center;
  gap: 7px;
}

#app.alpha .keypad-alpha { display: flex; }

.alpha-row {
  display: flex;
  gap: 7px;
  justify-content: center;
}

.alpha-row .key {
  width: 52px;
  height: 38px;
  font-family: "Avenir Next", Avenir, "Segoe UI", sans-serif;
  font-style: normal;
  text-transform: lowercase;
}

.alpha-row .key.wide { width: 86px; }
.alpha-row .key.space { width: 280px; font-style: normal; }

.funcs {
  position: absolute;
  right: 16px;
  bottom: calc(100% + 8px);
  z-index: 8;
  width: 280px;
  background: #fff;
  border: 1px solid #e2e2e2;
  border-radius: 8px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.16);
  padding: 8px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
}

.funcs button {
  height: 34px;
  border: 1px solid #e1e1e1;
  background: #fafafa;
  border-radius: 4px;
  font-family: "Times New Roman", Times, serif;
  font-style: italic;
  font-size: 15px;
}

.funcs button:hover { background: #f0f0f0; }

.popover {
  position: absolute;
  z-index: 20;
  background: #fff;
  border: 1px solid #e3e3e3;
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.16);
  padding: 8px;
}

.menu-item, .check {
  display: flex;
  align-items: center;
  width: 100%;
  text-align: left;
  background: transparent;
  border: none;
  border-radius: 4px;
  padding: 8px 10px;
  font-size: 14px;
  color: #222;
  gap: 8px;
}

.menu-item:hover, .check:hover { background: #f4f4f4; }

#file-menu { top: 42px; left: 8px; width: 180px; }

#list-settings {
  top: 46px;
  right: 8px;
  width: 292px;
  padding: 12px;
}

#graph-settings {
  top: 8px;
  right: 56px;
  width: 200px;
}

.seg {
  display: flex;
  border: 1px solid #d0d0d0;
  border-radius: 4px;
  overflow: hidden;
  margin-top: 4px;
}

.seg button {
  flex: 1;
  border: none;
  background: #fff;
  padding: 7px 8px;
  font-size: 13px;
  color: #333;
}

.seg button.on { background: var(--blue); color: #fff; }

.settings-label {
  font-size: 12px;
  font-weight: 700;
  color: #666;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin: 2px 2px 6px;
}

.divider {
  height: 1px;
  background: #eee;
  margin: 12px 0 10px;
}

.hint {
  margin: 0 0 8px;
  color: #777;
  font-size: 12px;
  line-height: 1.4;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 8px;
  font-size: 12px;
  color: #555;
}

.field input {
  border: 1px solid #d0d0d0;
  border-radius: 4px;
  padding: 6px 8px;
  font-size: 13px;
  color: #222;
}

.field input:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 1px var(--blue);
}

.site {
  --paper: #f4f1ea;
  --ink: #1c1915;
  --muted: #5e584f;
  --line: #e4ddd2;
  --card: #fffcf8;
  --accent: #0e7c66;
  --accent-press: #0b6554;
  position: fixed;
  inset: 0;
  z-index: 40;
  overflow: auto;
  background: var(--paper);
  color: var(--ink);
  font-family: "Avenir Next", Avenir, "Segoe UI", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

.site h1, .site h2, .site h3, .wordmark {
  font-family: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  font-weight: 600;
  letter-spacing: -0.03em;
}

.site-nav {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 28px;
  min-height: 64px;
  padding: 0 28px;
  background: rgba(244, 241, 234, 0.92);
  border-bottom: 1px solid transparent;
  backdrop-filter: blur(10px);
}

.wordmark {
  color: var(--ink);
  text-decoration: none;
  font-size: 26px;
  line-height: 1;
}

.site-links, .site-foot nav {
  display: flex;
  gap: 22px;
}

.site-links a, .site-foot a {
  color: var(--muted);
  text-decoration: none;
  font-size: 15px;
}

.site-links a:hover, .site-foot a:hover { color: var(--ink); }

.nav-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-quiet[hidden], .nav-solid[hidden], .login[hidden], .pill[hidden], .pass-status[hidden] { display: none !important; }

.nav-quiet, .nav-solid, .btn-primary, .btn-ghost {
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
}

.nav-quiet, .btn-ghost {
  border: 1px solid transparent;
  background: transparent;
  color: var(--ink);
  height: 38px;
  padding: 0 14px;
  display: inline-flex;
  align-items: center;
}

.nav-quiet:hover, .btn-ghost:hover { background: rgba(28, 25, 21, 0.05); }

.nav-solid, .btn-primary {
  border: none;
  background: var(--accent);
  color: #fff;
  height: 40px;
  padding: 0 18px;
  cursor: pointer;
}

.nav-solid:hover, .btn-primary:hover { background: var(--accent-press); }

.btn-primary:focus, .nav-solid:focus, .prompt:focus, .work:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(14, 124, 102, 0.28);
}

.site section { scroll-margin-top: 76px; }

.kicker {
  margin: 0 0 10px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero, .final, .band, .stage-inner {
  width: min(1100px, calc(100% - 48px));
  margin-left: auto;
  margin-right: auto;
}

.hero, .final { text-align: center; }
.hero { padding: 84px 0 20px; }

.hero h1, .final h2, .stage h2, .band > h2 {
  margin: 0;
  font-size: clamp(46px, 6vw, 84px);
  line-height: 0.98;
}

.lede, .deck {
  margin: 18px auto 0;
  max-width: 640px;
  color: var(--muted);
  font-size: 20px;
  line-height: 1.45;
}

.hero-actions {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 28px;
}

.btn-ghost { border-color: var(--line); background: #fff; }

.preview { padding: 36px 24px 72px; }

.shot {
  width: min(1100px, 100%);
  margin: 0 auto;
  background: #fff;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 30px 70px rgba(28, 25, 21, 0.12);
}

.shot-bar {
  height: 44px;
  display: flex;
  align-items: center;
  padding: 0 18px;
  background: #1c1915;
  color: #f4f1ea;
  font-family: "Iowan Old Style", Palatino, Georgia, serif;
  font-size: 18px;
}

.shot-body { display: grid; grid-template-columns: 1fr 1fr; min-height: 320px; }
.shot-q, .shot-a { padding: 32px 28px; }
.shot-q { background: #faf7f2; }
.shot-q p:last-child, .shot-a p, .panel p, .big-q { margin: 0 0 10px; font-size: 20px; line-height: 1.4; }
.shot-a .result, .panel .result { font-size: clamp(28px, 3vw, 40px); line-height: 1.15; }
.shot-a { background: #fff; }
.result {
  margin: 0 0 16px;
  font-family: "Iowan Old Style", Palatino, Georgia, serif;
  font-size: clamp(28px, 3vw, 40px);
  line-height: 1.15;
  color: var(--ink);
}

.stage {
  background: #141210;
  color: #f4f1ea;
  padding: 96px 0;
}

.stage .kicker { color: #8dcebb; }
.stage h2 { max-width: 18ch; }
.deck-light { color: #c9c2b6; margin-left: 0; }

.split, .thread { margin-top: 40px; }
.split { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 36px; align-items: start; }
.big-q { font-family: "Iowan Old Style", Palatino, Georgia, serif; font-size: clamp(28px, 3vw, 40px); line-height: 1.2; }
.panel .result, .shot-a .result { color: inherit; }
.stage .result { color: #f4f1ea; }
.panel p, .stage .shot-a p { color: #e7e1d6; font-size: 18px; }

.stage-line {
  margin: 36px 0 0;
  font-size: 22px;
  color: #f4f1ea;
}
.stage-line strong { font-weight: 700; }

.band { padding: 96px 0; }
.band > h2 { max-width: 18ch; }
.band > .deck { margin-left: 0; max-width: 620px; }

.review-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 40px;
}

.review {
  margin: 0;
  padding: 0;
}

.stars {
  color: #c4a15a;
  font-size: 18px;
  letter-spacing: 0.12em;
}

.review blockquote {
  margin: 14px 0 16px;
  font-family: "Iowan Old Style", Palatino, Georgia, serif;
  font-size: 26px;
  line-height: 1.25;
}

.review figcaption {
  color: var(--muted);
  font-size: 15px;
  font-weight: 650;
}

.ex-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 40px;
}

.ex {
  padding: 0;
  border: none;
  background: transparent;
  text-align: left;
  cursor: pointer;
  color: inherit;
  font: inherit;
}
.ex .kicker { display: block; }
.ex span:last-child {
  display: block;
  font-family: "Iowan Old Style", Palatino, Georgia, serif;
  font-size: 26px;
  line-height: 1.25;
}
.ex:hover span:last-child { color: var(--accent-press); }
.ex:focus { outline: none; }
.ex:focus span:last-child { text-decoration: underline; }

.thread { max-width: 760px; }
.who {
  margin: 22px 0 4px;
  color: #8dcebb;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.say {
  margin: 0;
  font-family: "Iowan Old Style", Palatino, Georgia, serif;
  font-size: clamp(26px, 3vw, 36px);
  line-height: 1.25;
}
.say-ans { font-family: "Avenir Next", Avenir, "Segoe UI", Helvetica, Arial, sans-serif; font-size: 20px; color: #e7e1d6; line-height: 1.45; }

.subj-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 36px;
}
.subj-grid h3 { margin: 0 0 12px; font-size: 32px; }
.subj-grid button {
  display: block;
  width: 100%;
  margin: 0;
  padding: 8px 0;
  border: none;
  border-bottom: 1px solid var(--line);
  background: transparent;
  text-align: left;
  font: inherit;
  font-size: 17px;
  color: var(--ink);
  cursor: pointer;
}
.subj-grid button:hover { color: var(--accent); }

.price-grid {
  display: grid;
  grid-template-columns: minmax(0, 460px);
  gap: 18px;
  margin-top: 36px;
}

.price-buy { margin-top: 18px; }
.price {
  padding: 28px;
  border-radius: 18px;
  border: 1px solid rgba(244, 241, 234, 0.25);
  background: transparent;
}
.price h3 { margin: 0 0 8px; font-size: 28px; }
.price p { margin: 0; color: #c9c2b6; font-size: 18px; }
.price-num {
  margin: 0 0 8px;
  font-size: 64px;
  line-height: 1;
  font-family: "Iowan Old Style", Palatino, Georgia, serif;
  color: #f4f1ea;
}
.price-num span { font-size: 22px; }
.price-pro { background: #f4f1ea; color: #1c1915; border-color: #f4f1ea; }
.price-pro .price-num, .price-pro h3, .price-pro p { color: #1c1915; }
.price-note { margin: 18px 0 0; color: #c9c2b6; font-size: 15px; }

.final { padding: 96px 0; }
.final .btn-primary { margin-top: 24px; }

.site-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 28px 28px;
  border-top: 1px solid var(--line);
}
.site-foot p { margin: 0; color: var(--muted); font-size: 14px; }

.modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(28, 25, 21, 0.45);
}

.modal[hidden] { display: none; }

.modal-card {
  position: relative;
  width: min(420px, 100%);
  padding: 28px 28px 22px;
  border-radius: 18px;
  background: #fffcf8;
  color: #1c1915;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.18);
}

.modal-card h2 {
  margin: 0 0 8px;
  font-family: "Iowan Old Style", Palatino, Georgia, serif;
  font-size: 32px;
  font-weight: 600;
}

.modal-card p { margin: 0 0 16px; color: #5e584f; }

.modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 32px;
  height: 32px;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: #1c1915;
  font-size: 22px;
  line-height: 1;
}

.modal-close:hover { background: rgba(28, 25, 21, 0.06); }

.account-error {
  color: #9b2c2c;
  font-size: 14px;
}

.account-submit {
  width: 100%;
  margin-top: 18px;
  height: 46px;
  border: none;
  border-radius: 999px;
  background: #0e7c66;
  color: #fff;
  font-size: 16px;
  font-weight: 650;
}

.account-submit:hover { background: #0b6554; }

.account-switch {
  margin-top: 14px;
  padding: 0;
  border: none;
  background: transparent;
  color: #0e7c66;
  font-size: 14px;
  font-weight: 650;
}

@media (max-width: 800px) {
  .hero h1, .final h2, .stage h2, .band > h2 { font-size: 42px; }
  .site-nav, .site-foot { flex-wrap: wrap; }
  .shot-body, .split, .ex-grid, .review-grid, .subj-grid, .price-grid { grid-template-columns: 1fr; }
  .site-foot { align-items: flex-start; }
}

@media (prefers-reduced-motion: no-preference) {
  .hero, .mock { animation: site-rise 0.55s ease both; }
}

@keyframes site-rise {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}

[hidden] { display: none !important; }
