:root {
  --paper: #faf3e7;
  --ink: #211b14;
  --ink-soft: #5d5346;
  --accent: #e2572b;
  --accent-dark: #c4441d;
  --highlight: #ffd66b;
  --card: #fffdf8;
  --line: #e8ddca;
  --good: #2e7d4f;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  background: var(--paper);
  color: var(--ink);
  font-family: "Space Grotesk", sans-serif;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ---------- top bar ---------- */
.topbar {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: 20px 24px;
  max-width: 760px;
  width: 100%;
  margin: 0 auto;
}

.logo {
  font-family: "Fraunces", serif;
  font-weight: 800;
  font-size: 1.7rem;
  letter-spacing: -0.02em;
  cursor: pointer;
}

.logo .ish {
  color: var(--accent);
  font-style: italic;
  font-weight: 500;
}

.tagline {
  font-size: 0.85rem;
  color: var(--ink-soft);
}

main {
  flex: 1;
  width: 100%;
  max-width: 760px;
  margin: 0 auto;
  padding: 0 24px 48px;
}

/* ---------- hero / search ---------- */
.hero h1 {
  font-family: "Fraunces", serif;
  font-weight: 600;
  font-size: clamp(1.9rem, 6vw, 3rem);
  line-height: 1.15;
  margin: 36px 0 28px;
}

.hero h1 em {
  font-style: italic;
  color: var(--accent);
}

/* mode tabs */
.mode-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
}

.mode-tab {
  background: transparent;
  border: 2px solid var(--ink);
  border-radius: 999px;
  padding: 9px 18px;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--ink);
  cursor: pointer;
  transition: all 0.12s ease;
}

.mode-tab.active {
  background: var(--ink);
  color: var(--paper);
  box-shadow: 3px 3px 0 var(--accent);
}

/* decode dropzone */
.dropzone {
  display: block;
  background: var(--card);
  border: 2px dashed var(--ink);
  border-radius: 14px;
  padding: 32px 20px;
  text-align: center;
  cursor: pointer;
  transition: all 0.12s ease;
}

.dropzone:hover, .dropzone.dragover {
  border-color: var(--accent);
  background: #fdf3ec;
}

.dz-icon { font-size: 2.2rem; margin-bottom: 10px; }

.dz-text { line-height: 1.5; color: var(--ink); }

.dz-hint { font-size: 0.8rem; color: var(--ink-soft); }

.dz-file {
  margin-top: 14px;
  font-weight: 700;
  color: var(--accent);
}

#decodeBtn {
  margin-top: 12px;
  background: var(--accent);
  color: #fff;
  border: 2px solid var(--ink);
  border-radius: 12px;
  padding: 12px 28px;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  box-shadow: 4px 4px 0 var(--ink);
}

#decodeBtn:hover { background: var(--accent-dark); }

.privacy-note {
  margin-top: 14px;
  font-size: 0.8rem;
  color: var(--ink-soft);
}

/* decode result */
.doc-badge {
  text-transform: capitalize;
  background: var(--ink);
  color: var(--paper);
}

.term-table { width: 100%; border-collapse: collapse; }

.term-table td {
  padding: 10px 8px;
  border-top: 1px solid var(--line);
  vertical-align: top;
}

.term-table .term-name { font-weight: 700; white-space: nowrap; }

.term-table .term-value { font-weight: 500; }

.term-table .term-meaning {
  font-size: 0.82rem;
  color: var(--ink-soft);
  display: block;
  margin-top: 2px;
}

.goodnews {
  border-left: 4px solid var(--good);
  background: #e9f4ee;
  border-radius: 0 12px 12px 0;
  padding: 12px 16px;
  font-size: 0.92rem;
  line-height: 1.45;
}

.jargon-word {
  font-weight: 700;
  font-style: italic;
}

.goal-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.goal-box {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--card);
  border: 2px solid var(--ink);
  border-radius: 14px;
  padding: 14px 18px;
  box-shadow: 4px 4px 0 var(--ink);
}

.goal-prefix {
  font-family: "Fraunces", serif;
  font-style: italic;
  font-size: 1.15rem;
  white-space: nowrap;
  color: var(--ink-soft);
}

#goalInput {
  flex: 1;
  border: none;
  outline: none;
  background: transparent;
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.15rem;
  color: var(--ink);
  min-width: 0;
}

#goBtn {
  align-self: flex-start;
  background: var(--accent);
  color: #fff;
  border: 2px solid var(--ink);
  border-radius: 12px;
  padding: 12px 28px;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  box-shadow: 4px 4px 0 var(--ink);
  transition: transform 0.08s ease, box-shadow 0.08s ease;
}

#goBtn:hover { background: var(--accent-dark); }

#goBtn:active {
  transform: translate(3px, 3px);
  box-shadow: 1px 1px 0 var(--ink);
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 24px;
}

.chip {
  background: transparent;
  border: 1.5px solid var(--ink-soft);
  color: var(--ink-soft);
  border-radius: 999px;
  padding: 7px 14px;
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.12s ease;
}

.chip:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: #fdeae2;
}

/* ---------- saved playbooks ---------- */
.saved { margin-top: 44px; }

.saved h2 {
  font-family: "Fraunces", serif;
  font-size: 1.25rem;
  margin-bottom: 12px;
}

.saved-list { display: flex; flex-direction: column; gap: 8px; }

.saved-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: var(--card);
  border: 1.5px solid var(--line);
  border-radius: 12px;
  padding: 12px 16px;
  cursor: pointer;
  transition: border-color 0.12s ease;
}

.saved-item:hover { border-color: var(--accent); }

.saved-item .si-title { font-weight: 500; }

.saved-item .si-meta {
  font-size: 0.8rem;
  color: var(--ink-soft);
  white-space: nowrap;
}

.saved-item .si-del {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  opacity: 0.5;
}
.saved-item .si-del:hover { opacity: 1; }

/* ---------- loading ---------- */
.loading {
  text-align: center;
  padding: 80px 0;
}

.spinner {
  width: 44px;
  height: 44px;
  border: 4px solid var(--line);
  border-top-color: var(--accent);
  border-radius: 50%;
  margin: 0 auto 20px;
  animation: spin 0.8s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

#loadingMsg {
  font-family: "Fraunces", serif;
  font-style: italic;
  font-size: 1.1rem;
  color: var(--ink-soft);
}

/* ---------- result ---------- */
.result { padding-top: 8px; }

.back-btn {
  background: none;
  border: none;
  color: var(--ink-soft);
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.9rem;
  cursor: pointer;
  padding: 8px 0;
  margin-bottom: 4px;
}
.back-btn:hover { color: var(--accent); }

.pb-title {
  font-family: "Fraunces", serif;
  font-weight: 800;
  font-size: clamp(1.6rem, 5vw, 2.4rem);
  line-height: 1.15;
  margin-bottom: 10px;
}

.pb-summary { color: var(--ink-soft); margin-bottom: 16px; line-height: 1.5; }

.pb-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

.badge {
  font-size: 0.8rem;
  font-weight: 700;
  border-radius: 999px;
  padding: 5px 12px;
  border: 1.5px solid var(--ink);
}

.badge.easy { background: #d9efe2; }
.badge.moderate { background: var(--highlight); }
.badge.hard { background: #f7c8b8; }
.badge.time { background: var(--card); }

/* progress */
.progress-wrap {
  position: sticky;
  top: 0;
  background: var(--paper);
  padding: 10px 0 14px;
  z-index: 5;
}

.progress-label {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--ink-soft);
  margin-bottom: 6px;
}

.progress-bar {
  height: 12px;
  background: var(--card);
  border: 1.5px solid var(--ink);
  border-radius: 999px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  width: 0%;
  background: var(--accent);
  border-radius: 999px;
  transition: width 0.25s ease;
}

/* section cards */
.pb-section { margin-top: 28px; }

.pb-section > h2 {
  font-family: "Fraunces", serif;
  font-size: 1.35rem;
  margin-bottom: 14px;
}

.phase {
  background: var(--card);
  border: 1.5px solid var(--line);
  border-radius: 14px;
  padding: 18px;
  margin-bottom: 14px;
}

.phase-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}

.phase-head h3 { font-family: "Fraunces", serif; font-size: 1.1rem; }

.phase-time {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--accent);
  white-space: nowrap;
}

.task {
  display: flex;
  gap: 12px;
  padding: 10px 0;
  border-top: 1px solid var(--line);
  cursor: pointer;
}

.task input[type="checkbox"] {
  width: 20px;
  height: 20px;
  margin-top: 2px;
  accent-color: var(--accent);
  cursor: pointer;
  flex-shrink: 0;
}

.task .t-label { font-weight: 500; }

.task .t-detail {
  font-size: 0.88rem;
  color: var(--ink-soft);
  margin-top: 3px;
  line-height: 1.45;
}

.task.done .t-label {
  text-decoration: line-through;
  color: var(--ink-soft);
}

/* budget table */
.budget-table { width: 100%; border-collapse: collapse; }

.budget-table td {
  padding: 10px 8px;
  border-top: 1px solid var(--line);
  vertical-align: top;
}

.budget-table .b-cost {
  font-weight: 700;
  white-space: nowrap;
  text-align: right;
}

.budget-table .b-note {
  font-size: 0.82rem;
  color: var(--ink-soft);
  display: block;
  margin-top: 2px;
}

.budget-total {
  display: flex;
  justify-content: space-between;
  font-weight: 700;
  font-size: 1.05rem;
  background: var(--highlight);
  border: 1.5px solid var(--ink);
  border-radius: 10px;
  padding: 12px 16px;
  margin-top: 12px;
}

/* contacts & reminders & watch outs */
.card-list { display: flex; flex-direction: column; gap: 10px; }

.info-card {
  background: var(--card);
  border: 1.5px solid var(--line);
  border-radius: 12px;
  padding: 14px 16px;
}

.info-card .ic-title { font-weight: 700; }

.info-card .ic-body {
  font-size: 0.88rem;
  color: var(--ink-soft);
  margin-top: 4px;
  line-height: 1.45;
}

.info-card .ic-find {
  font-size: 0.82rem;
  margin-top: 6px;
  color: var(--good);
}

.watch {
  border-left: 4px solid var(--accent);
  background: #fdeee6;
  border-radius: 0 12px 12px 0;
  padding: 12px 16px;
  font-size: 0.92rem;
  line-height: 1.45;
}

.error-box {
  background: #fdeee6;
  border: 1.5px solid var(--accent);
  border-radius: 12px;
  padding: 16px;
  margin-top: 20px;
}

/* ---------- footer ---------- */
footer {
  max-width: 760px;
  width: 100%;
  margin: 0 auto;
  padding: 20px 24px 32px;
  font-size: 0.75rem;
  color: var(--ink-soft);
  border-top: 1px solid var(--line);
}

/* ---------- What do I say? ---------- */
.mode-tabs { flex-wrap: wrap; }

#sayInput {
  width: 100%;
  background: var(--card);
  border: 2px solid var(--ink);
  border-radius: 14px;
  padding: 14px 18px;
  box-shadow: 4px 4px 0 var(--ink);
  font-family: "Space Grotesk", sans-serif;
  font-size: 1rem;
  color: var(--ink);
  resize: vertical;
  outline: none;
}

#sayBtn {
  margin-top: 12px;
  background: var(--accent);
  color: #fff;
  border: 2px solid var(--ink);
  border-radius: 12px;
  padding: 12px 28px;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  box-shadow: 4px 4px 0 var(--ink);
  transition: transform 0.08s ease, box-shadow 0.08s ease;
}

#sayBtn:hover { background: var(--accent-dark); }

#sayBtn:active {
  transform: translate(3px, 3px);
  box-shadow: 1px 1px 0 var(--ink);
}

#sayChips { margin-top: 20px; }

.script-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.script-subject {
  font-weight: 700;
  font-size: 0.92rem;
}

.copy-btn {
  background: var(--highlight);
  border: 1.5px solid var(--ink);
  border-radius: 999px;
  padding: 6px 14px;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  font-size: 0.8rem;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
}

.copy-btn:hover { background: #ffe79a; }

.script-text {
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.92rem;
  line-height: 1.55;
  white-space: pre-wrap;
  word-wrap: break-word;
  margin: 0;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}

.script-opener {
  font-family: "Fraunces", serif;
  font-style: italic;
  font-size: 1.05rem;
  line-height: 1.5;
  margin-bottom: 10px;
}

.script-label {
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--accent);
  margin: 12px 0 6px;
}

.script-list {
  margin: 0 0 4px 20px;
  font-size: 0.92rem;
  line-height: 1.5;
}

.script-list li { margin-bottom: 6px; }

/* ---------- Is this normal? ---------- */
#normalInput {
  width: 100%;
  background: var(--card);
  border: 2px solid var(--ink);
  border-radius: 14px;
  padding: 14px 18px;
  box-shadow: 4px 4px 0 var(--ink);
  font-family: "Space Grotesk", sans-serif;
  font-size: 1rem;
  color: var(--ink);
  resize: vertical;
  outline: none;
}

#normalBtn {
  margin-top: 12px;
  background: var(--accent);
  color: #fff;
  border: 2px solid var(--ink);
  border-radius: 12px;
  padding: 12px 28px;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  box-shadow: 4px 4px 0 var(--ink);
  transition: transform 0.08s ease, box-shadow 0.08s ease;
}

#normalBtn:hover { background: var(--accent-dark); }

#normalBtn:active {
  transform: translate(3px, 3px);
  box-shadow: 1px 1px 0 var(--ink);
}

#normalChips { margin-top: 20px; }

.verdict {
  display: flex;
  align-items: center;
  gap: 12px;
  border: 2px solid var(--ink);
  border-radius: 14px;
  padding: 14px 18px;
  margin: 6px 0 14px;
  box-shadow: 4px 4px 0 var(--ink);
}

.verdict-emoji { font-size: 1.6rem; }

.verdict-text {
  font-family: "Fraunces", serif;
  font-weight: 700;
  font-size: 1.2rem;
}

.v-normal { background: #d9efe2; }
.v-high { background: #ffd9c2; }
.v-low { background: #dce9f7; }
.v-scam { background: #f7c8b8; }
.v-depends { background: var(--highlight); }

.range-box {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  background: var(--card);
  border: 1.5px solid var(--ink);
  border-radius: 10px;
  padding: 12px 16px;
  margin-bottom: 8px;
  font-size: 0.9rem;
}

.range-box strong { font-size: 1.05rem; }

.bridge-btn {
  margin-top: 12px;
  width: 100%;
  background: var(--card);
  border: 2px dashed var(--accent);
  border-radius: 12px;
  padding: 12px 16px;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--accent-dark);
  cursor: pointer;
  text-align: left;
}

.bridge-btn:hover { background: #fdeae2; }

/* ---------- legal / about pages ---------- */
.legal { padding-top: 12px; }

.legal h1 {
  font-family: "Fraunces", serif;
  font-weight: 800;
  font-size: clamp(1.7rem, 5vw, 2.4rem);
  line-height: 1.2;
  margin-bottom: 6px;
}

.legal h2 {
  font-family: "Fraunces", serif;
  font-size: 1.2rem;
  margin: 26px 0 8px;
}

.legal p, .legal li { line-height: 1.6; font-size: 0.95rem; margin-bottom: 10px; }
.legal ul { padding-left: 22px; }
.legal a { color: var(--accent-dark); }

.legal-date { color: var(--ink-soft); font-size: 0.82rem !important; }
.legal-note { color: var(--ink-soft); font-size: 0.85rem !important; margin-top: 20px; }

.contact-form { display: flex; flex-direction: column; gap: 10px; max-width: 440px; }

.contact-form input, .contact-form textarea {
  border: 1.5px solid var(--ink);
  border-radius: 10px;
  padding: 12px 14px;
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.95rem;
  background: var(--card);
  outline: none;
  resize: vertical;
}

.contact-form button {
  align-self: flex-start;
  background: var(--accent);
  color: #fff;
  border: 2px solid var(--ink);
  border-radius: 10px;
  padding: 11px 24px;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 3px 3px 0 var(--ink);
}

.contact-form button:disabled { opacity: 0.6; }

footer a { color: var(--ink-soft); }

/* SEO playbook pages */
.seo-tasks { padding-left: 20px; }
.seo-tasks li { line-height: 1.55; font-size: 0.92rem; margin-bottom: 8px; }

/* share button on results */
.share-btn {
  background: var(--card);
  border: 1.5px solid var(--ink);
  border-radius: 999px;
  padding: 6px 14px;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  font-size: 0.8rem;
  cursor: pointer;
  box-shadow: 2px 2px 0 var(--ink);
}

.share-btn:hover { background: #fdeae2; }

/* ---------- oh no mode ---------- */
.oh-no-btn {
  display: block;
  width: 100%;
  text-align: left;
  background: #f7c8b8;
  border: 2px solid var(--ink);
  border-radius: 14px;
  padding: 13px 18px;
  margin-bottom: 22px;
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.98rem;
  color: var(--ink);
  cursor: pointer;
  box-shadow: 4px 4px 0 var(--ink);
  transition: transform 0.08s ease, box-shadow 0.08s ease;
}

.oh-no-btn:hover { background: #f5b9a4; }
.oh-no-btn:active { transform: translate(3px, 3px); box-shadow: 1px 1px 0 var(--ink); }
.oh-no-btn .on-sub { color: var(--ink-soft); font-size: 0.88rem; }

#emergencyInput {
  width: 100%;
  background: var(--card);
  border: 2px solid var(--ink);
  border-radius: 14px;
  padding: 14px 18px;
  box-shadow: 4px 4px 0 var(--ink);
  font-family: "Space Grotesk", sans-serif;
  font-size: 1rem;
  color: var(--ink);
  resize: vertical;
  outline: none;
}

.emergency-go {
  margin-top: 12px;
  background: #c0392b;
  color: #fff;
  border: 2px solid var(--ink);
  border-radius: 12px;
  padding: 12px 28px;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  box-shadow: 4px 4px 0 var(--ink);
}

.emergency-go:hover { background: #a93226; }

#emergencyChips { margin-top: 20px; }

.banner-911 {
  background: #c0392b;
  color: #fff;
  border: 2px solid var(--ink);
  border-radius: 14px;
  padding: 16px 18px;
  font-size: 1.05rem;
  margin-bottom: 14px;
  box-shadow: 4px 4px 0 var(--ink);
}

.calm-note {
  font-family: "Fraunces", serif;
  font-style: italic;
  font-size: 1.05rem;
  color: var(--ink-soft);
  margin-bottom: 6px;
}

.now-step { border-left: 4px solid #c0392b; }

.step-num { color: #c0392b; }

/* ---------- bundles ---------- */
.bundles-section { margin-top: 36px; }

.bundles-title {
  font-family: "Fraunces", serif;
  font-size: 1.35rem;
}

.bundles-sub {
  font-size: 0.88rem;
  color: var(--ink-soft);
  margin: 4px 0 14px;
}

.bundle-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 12px;
}

.bundle-card {
  text-align: left;
  background: var(--card);
  border: 2px solid var(--ink);
  border-radius: 14px;
  padding: 16px;
  cursor: pointer;
  box-shadow: 3px 3px 0 var(--ink);
  font-family: "Space Grotesk", sans-serif;
  transition: transform 0.08s ease, box-shadow 0.08s ease, background 0.08s ease;
}

.bundle-card:hover { background: #fdeae2; }
.bundle-card:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--ink); }

.bundle-card .b-emoji { font-size: 1.5rem; display: block; margin-bottom: 6px; }
.bundle-card .b-title { display: block; font-weight: 700; font-size: 1rem; }
.bundle-card .b-sub { display: block; font-size: 0.8rem; color: var(--ink-soft); margin-top: 4px; line-height: 1.4; }

button.bundle-goal { width: 100%; text-align: left; cursor: pointer; font-family: "Space Grotesk", sans-serif; }
button.bundle-goal:hover { border-color: var(--accent); }

/* ---------- accounts ---------- */
.topbar-right { display: flex; align-items: center; gap: 14px; }

.auth-btn {
  background: var(--card);
  border: 1.5px solid var(--ink);
  border-radius: 999px;
  padding: 7px 16px;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
  box-shadow: 2px 2px 0 var(--ink);
}

.auth-btn:hover { background: #fdeae2; }

.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(33, 27, 20, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 50;
  padding: 24px;
}

.modal {
  position: relative;
  background: var(--paper);
  border: 2px solid var(--ink);
  border-radius: 18px;
  box-shadow: 6px 6px 0 var(--ink);
  padding: 28px 24px;
  width: 100%;
  max-width: 420px;
}

.modal h2 { font-family: "Fraunces", serif; font-size: 1.4rem; margin-bottom: 8px; }

.modal-sub { font-size: 0.9rem; color: var(--ink-soft); line-height: 1.5; margin-bottom: 16px; }

.modal-close {
  position: absolute;
  top: 10px;
  right: 14px;
  background: none;
  border: none;
  font-size: 1.6rem;
  color: var(--ink-soft);
  cursor: pointer;
}

#authEmail {
  width: 100%;
  border: 1.5px solid var(--ink);
  border-radius: 10px;
  padding: 12px 14px;
  font-family: "Space Grotesk", sans-serif;
  font-size: 1rem;
  background: var(--card);
  outline: none;
  margin-bottom: 10px;
}

#authSend {
  width: 100%;
  background: var(--accent);
  color: #fff;
  border: 2px solid var(--ink);
  border-radius: 10px;
  padding: 12px;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  box-shadow: 3px 3px 0 var(--ink);
}

#authSend:hover { background: var(--accent-dark); }
#authSend:disabled { opacity: 0.6; cursor: wait; }

.auth-secondary {
  background: var(--card);
  border: 1.5px solid var(--ink);
  border-radius: 10px;
  padding: 10px 18px;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
}

/* ---------- trending ---------- */
.trend-label {
  font-family: "Fraunces", serif;
  font-style: italic;
  font-weight: 600;
  font-size: 0.95rem;
  margin: 24px 0 8px;
}

.trend-chip {
  border-color: var(--accent);
  color: var(--accent-dark);
  background: #fdf3ee;
}

#trendingWrap + .chips { margin-top: 10px; }

/* ---------- quiz ---------- */
.quiz-intro { text-align: center; padding-top: 24px; }

.quiz-intro h1 {
  font-family: "Fraunces", serif;
  font-weight: 800;
  font-size: clamp(2rem, 7vw, 3.2rem);
  margin-bottom: 14px;
}

.quiz-intro h1 em { font-style: italic; color: var(--accent); }

.q-sub { color: var(--ink-soft); line-height: 1.55; }

.q-start {
  margin-top: 24px;
  background: var(--accent);
  color: #fff;
  border: 2px solid var(--ink);
  border-radius: 14px;
  padding: 16px 40px;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  font-size: 1.15rem;
  cursor: pointer;
  box-shadow: 5px 5px 0 var(--ink);
  transition: transform 0.08s ease, box-shadow 0.08s ease;
}

.q-start:hover { background: var(--accent-dark); }
.q-start:active { transform: translate(4px, 4px); box-shadow: 1px 1px 0 var(--ink); }

.q-disclaimer { font-size: 0.78rem; color: var(--ink-soft); margin-top: 18px; }

.q-progress { display: flex; gap: 6px; justify-content: center; margin: 18px 0 22px; }

.q-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--line);
  border: 1.5px solid var(--ink-soft);
}
.q-dot.done { background: var(--accent); border-color: var(--accent-dark); }
.q-dot.now { background: var(--highlight); border-color: var(--ink); transform: scale(1.25); }

.q-question {
  font-family: "Fraunces", serif;
  font-size: clamp(1.25rem, 4.5vw, 1.7rem);
  line-height: 1.3;
  margin-bottom: 18px;
}

.q-answers { display: flex; flex-direction: column; gap: 10px; }

.q-answer {
  text-align: left;
  background: var(--card);
  border: 2px solid var(--ink);
  border-radius: 12px;
  padding: 14px 16px;
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.98rem;
  line-height: 1.4;
  cursor: pointer;
  box-shadow: 3px 3px 0 var(--ink);
  transition: transform 0.08s ease, box-shadow 0.08s ease, background 0.08s ease;
}

.q-answer:hover { background: #fdeae2; }
.q-answer:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--ink); }

.q-card {
  text-align: center;
  background: var(--card);
  border: 2px solid var(--ink);
  border-radius: 18px;
  padding: 28px 22px;
  margin-top: 16px;
  box-shadow: 6px 6px 0 var(--ink);
}

.q-pct {
  font-family: "Fraunces", serif;
  font-weight: 800;
  font-size: 4.5rem;
  line-height: 1;
  color: var(--accent);
}

.q-pct span { font-size: 2.2rem; }

.q-pct-label {
  font-family: "Fraunces", serif;
  font-style: italic;
  font-size: 1.1rem;
  color: var(--ink-soft);
  margin-bottom: 14px;
}

.q-type {
  font-family: "Fraunces", serif;
  font-weight: 700;
  font-size: 1.5rem;
  margin-bottom: 10px;
}

.q-desc { color: var(--ink-soft); line-height: 1.55; max-width: 440px; margin: 0 auto 16px; }

.q-traits { display: flex; flex-direction: column; gap: 8px; text-align: left; margin-bottom: 20px; }

.q-trait {
  background: var(--paper);
  border: 1.5px solid var(--line);
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 0.9rem;
  line-height: 1.45;
}

.q-share {
  width: 100%;
  background: var(--accent);
  color: #fff;
  border: 2px solid var(--ink);
  border-radius: 12px;
  padding: 14px;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  font-size: 1.05rem;
  cursor: pointer;
  box-shadow: 4px 4px 0 var(--ink);
}

.q-share:hover { background: var(--accent-dark); }

.q-retake {
  margin-top: 10px;
  background: none;
  border: none;
  color: var(--ink-soft);
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.85rem;
  cursor: pointer;
  text-decoration: underline;
}

a.q-goal { text-decoration: none; color: inherit; display: block; }
a.q-goal:hover { border-color: var(--accent); }

.quiz-banner {
  display: block;
  background: var(--highlight);
  border: 2px solid var(--ink);
  border-radius: 14px;
  padding: 14px 18px;
  margin-top: 24px;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  color: var(--ink);
  text-decoration: none;
  box-shadow: 4px 4px 0 var(--ink);
  transition: transform 0.08s ease, box-shadow 0.08s ease;
}

.quiz-banner:active { transform: translate(3px, 3px); box-shadow: 1px 1px 0 var(--ink); }

.quiz-banner .qb-sub { display: block; font-weight: 400; font-size: 0.82rem; color: var(--ink-soft); margin-top: 2px; }

/* ---------- reminder signup ---------- */
.remind-signup {
  background: var(--highlight);
  border: 2px solid var(--ink);
  border-radius: 14px;
  padding: 16px 18px;
  margin-top: 14px;
  box-shadow: 4px 4px 0 var(--ink);
}

.remind-signup.done-signup {
  background: #d9efe2;
  box-shadow: none;
  font-weight: 500;
}

.rs-title { font-family: "Fraunces", serif; font-weight: 700; font-size: 1.05rem; }

.rs-sub { font-size: 0.85rem; color: var(--ink-soft); margin: 4px 0 12px; }

.rs-row { display: flex; gap: 8px; flex-wrap: wrap; }

#remindEmail {
  flex: 1;
  min-width: 180px;
  border: 1.5px solid var(--ink);
  border-radius: 10px;
  padding: 10px 14px;
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.95rem;
  background: var(--card);
  outline: none;
}

#remindBtn {
  background: var(--accent);
  color: #fff;
  border: 1.5px solid var(--ink);
  border-radius: 10px;
  padding: 10px 18px;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
}

#remindBtn:hover { background: var(--accent-dark); }
#remindBtn:disabled { opacity: 0.6; cursor: wait; }

.rs-msg { font-size: 0.85rem; color: var(--accent-dark); margin-top: 8px; }

.hidden { display: none !important; }

/* confetti */
.confetti {
  position: fixed;
  top: -30px;
  z-index: 100;
  pointer-events: none;
  animation: fall 2.6s ease-in forwards;
}

@keyframes fall {
  to {
    transform: translateY(110vh) rotate(540deg);
    opacity: 0.6;
  }
}

@media (max-width: 540px) {
  .goal-prefix { font-size: 1rem; }
  #goalInput { font-size: 1rem; }
  .tagline { display: none; }
}
