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

:root {
  --bg: #f0ede8;
  --dark: #1f1f1d;
  --olive: #5a6e3a;
  --olive-lt: #6e8548;
  --olive-soft: #eef1e8;
  --border: #d4cfc8;
  --border-dark: #bdb6ad;
  --text: #30302d;
  --muted: #7c7770;
  --white: #ffffff;
  --footer: #22231f;
  --shadow: 0 8px 28px rgba(31, 31, 29, 0.10);
  --shadow-soft: 0 2px 8px rgba(31, 31, 29, 0.08);
  --radius: 9px;
}

body {
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: "Source Sans 3", sans-serif;
}

.site-header {
  background: rgba(240, 237, 232, 0.96);
  border-bottom: 1px solid rgba(90, 110, 58, 0.18);
}

.site-header-inner {
  align-items: center;
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  margin: 0 auto;
  max-width: 1180px;
  min-height: 86px;
  padding: 0.9rem 1.5rem;
}

.site-logo-link {
  align-items: center;
  display: inline-flex;
  flex: 0 0 auto;
  text-decoration: none;
}

.site-logo {
  display: block;
  height: auto;
  max-height: 52px;
  width: min(300px, 34vw);
  object-fit: contain;
  object-position: left center;
}

.site-nav {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  justify-content: flex-end;
}

.site-nav a {
  color: var(--text);
  font-size: 0.95rem;
  font-weight: 700;
  text-decoration: none;
  transition: color 0.15s, border-color 0.15s, background 0.15s;
}

.site-nav a:hover {
  color: var(--olive);
}

.site-nav .nav-pill {
  border: 1px solid var(--olive);
  border-radius: 999px;
  color: var(--olive);
  padding: 0.5rem 0.95rem;
}

.site-nav .nav-pill:hover {
  background: var(--olive);
  color: var(--white);
}

.app-main {
  padding: 3.5rem 1rem 4.25rem;
}

.page-shell {
  width: min(100%, 1060px);
  margin: 0 auto;
}

.advisor-header {
  text-align: center;
  margin-bottom: 2.65rem;
}

.eyebrow,
.section-kicker,
.more-heading {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
}

.advisor-header .eyebrow {
  margin-bottom: 0.65rem;
}

.advisor-header h1 {
  color: var(--dark);
  font-family: "Playfair Display", serif;
  font-size: clamp(2.45rem, 5.7vw, 4.15rem);
  line-height: 1;
}

.advisor-header h1 em {
  color: var(--olive);
  font-style: italic;
}

.subtitle {
  color: var(--muted);
  font-size: clamp(1.05rem, 2.2vw, 1.32rem);
  line-height: 1.45;
  margin: 1.05rem auto 0;
  max-width: 780px;
}

.hero-card,
.wizard-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-top: 6px solid var(--olive);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin: 0 auto;
}

.hero-card {
  max-width: 880px;
  padding: clamp(3.25rem, 7vw, 5.6rem) clamp(1.65rem, 6vw, 4.35rem);
  text-align: center;
}

.hero-icon {
  align-items: center;
  background: var(--olive-soft);
  border: 1px solid rgba(90, 110, 58, 0.22);
  border-radius: 999px;
  color: var(--olive);
  display: inline-flex;
  font-size: 2.15rem;
  height: 4.4rem;
  justify-content: center;
  margin-bottom: 2.15rem;
  width: 4.4rem;
}

.hero-card h2,
.wizard-card h2,
.rec-card h2,
.more-card h2 {
  color: var(--dark);
  font-family: "Playfair Display", serif;
  font-weight: 700;
  line-height: 1.15;
}

.hero-card h2 {
  font-size: clamp(2.1rem, 4.8vw, 3.25rem);
  margin-bottom: 1.45rem;
}

.hero-card p {
  color: var(--muted);
  font-size: clamp(1.08rem, 2.1vw, 1.32rem);
  line-height: 1.58;
  max-width: 720px;
  margin: 0 auto;
}

.stat-row {
  display: flex;
  justify-content: center;
  gap: clamp(1.75rem, 7vw, 5rem);
  margin: 3.3rem 0 2.7rem;
}

.stat-row strong {
  color: var(--olive);
  display: block;
  font-family: "Playfair Display", serif;
  font-size: 2.25rem;
  line-height: 1;
}

.stat-row span {
  color: var(--muted);
  display: block;
  font-size: 1.02rem;
  margin-top: 0.35rem;
}

.btn {
  align-items: center;
  border-radius: var(--radius);
  cursor: pointer;
  display: inline-flex;
  font-family: "Source Sans 3", sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  justify-content: center;
  letter-spacing: 0.13em;
  min-height: 3.75rem;
  padding: 0.95rem 1.5rem;
  text-decoration: none;
  text-transform: uppercase;
  transition: background 0.15s, border-color 0.15s, color 0.15s, opacity 0.15s;
}

.btn-primary {
  background: var(--olive);
  border: 1px solid var(--olive);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--olive-lt);
  border-color: var(--olive-lt);
}

.btn-primary:disabled {
  background: #c2cbb7;
  border-color: #c2cbb7;
  cursor: not-allowed;
}

.btn-secondary {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
}

.btn-secondary:hover {
  border-color: var(--olive);
  color: var(--olive);
}

.btn-wide {
  width: 100%;
}

.hero-card .btn-wide {
  max-width: 760px;
}

.wizard-card {
  max-width: 920px;
  padding: clamp(2.25rem, 5vw, 4rem);
}

.wizard-card .section-kicker {
  color: var(--olive);
  margin-bottom: 1.6rem;
}

.wizard-card h2 {
  font-size: clamp(2rem, 4vw, 2.8rem);
  margin-bottom: 2.7rem;
}

.option-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.option-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  cursor: pointer;
  display: block;
  font-family: "Source Sans 3", sans-serif;
  padding: 1.35rem 1.65rem;
  text-align: left;
  transition: background 0.15s, border-color 0.15s, box-shadow 0.15s;
  width: 100%;
}

.option-card:hover,
.option-card.selected {
  background: #f8f6f2;
  border-color: var(--olive);
  box-shadow: 0 0 0 1px var(--olive);
}

.option-card span {
  display: block;
  font-size: 1.35rem;
  line-height: 1.2;
  margin-bottom: 0.55rem;
}

.option-card small {
  color: var(--muted);
  display: block;
  font-size: 1.05rem;
}

.wizard-controls {
  margin: 1.75rem 0;
}

.field-label {
  color: var(--muted);
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
}

.select-input {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font: inherit;
  padding: 0.9rem 1rem;
  width: 100%;
}

.results-wrap {
  max-width: 860px;
  margin: 0 auto;
}

.rec-list {
  display: flex;
  flex-direction: column;
  gap: 1.65rem;
}

.rec-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  padding: clamp(1.75rem, 4vw, 2.5rem);
  position: relative;
}

.rec-card.top-card {
  border: 2px solid var(--olive);
  box-shadow: 0 0 0 2px rgba(90, 110, 58, 0.08), var(--shadow-soft);
}

.rec-rank {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  position: absolute;
  right: 2rem;
  text-transform: uppercase;
  top: 2rem;
}

.top-card .rec-rank {
  color: var(--olive);
}

.confidence-pill {
  background: var(--olive-soft);
  border-radius: 999px;
  color: var(--olive);
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  margin-bottom: 1.1rem;
  padding: 0.25rem 0.9rem;
  text-transform: uppercase;
}

.pill-good {
  background: #f5f0e4;
  color: #7a6030;
}

.pill-limited {
  background: #f0eded;
  color: #8a4040;
}

.rec-card h2 {
  font-size: clamp(1.55rem, 3vw, 2rem);
  max-width: 75%;
}

.rec-code {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  margin-top: 0.4rem;
  text-transform: uppercase;
}

.score-wrap {
  margin: 1.45rem 0 1.15rem;
}

.score-label-row {
  color: var(--muted);
  display: flex;
  font-size: 0.82rem;
  justify-content: space-between;
  margin-bottom: 0.45rem;
}

.score-track {
  background: var(--border);
  border-radius: 999px;
  height: 6px;
  overflow: hidden;
}

.score-fill {
  background: var(--olive);
  border-radius: 999px;
  height: 100%;
}

.tag-row {
  border-bottom: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 1.3rem;
  padding-bottom: 1.3rem;
}

.tag-row.compact {
  border-bottom: none;
  margin: 0.65rem 0 0.9rem;
  padding-bottom: 0;
}

.tag-row span {
  background: #edeae4;
  border: 1px solid #d9d4cc;
  border-radius: 4px;
  color: var(--muted);
  font-size: 0.78rem;
  padding: 0.25rem 0.55rem;
}

.rec-copy,
.more-card p {
  color: var(--text);
  font-size: 1.02rem;
  line-height: 1.65;
}

.advisor-note {
  background: #fbfaf7;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-top: 1.3rem;
  padding: 1rem 1.1rem;
}

.advisor-note strong {
  color: var(--olive);
  display: block;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  margin-bottom: 0.45rem;
  text-transform: uppercase;
}

.advisor-note p {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.5;
}

.more-heading {
  border-bottom: 1px solid var(--border);
  margin: 2.6rem 0 1.25rem;
  padding-bottom: 0.75rem;
}

.more-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.more-card {
  align-items: flex-start;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  padding: 1.45rem 1.65rem;
}

.more-card h2 {
  font-size: 1.25rem;
}

.more-card > strong {
  color: var(--muted);
  font-size: 0.85rem;
  white-space: nowrap;
}

.actions {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr 1fr;
  margin-top: 2rem;
}

.disclaimer {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.55;
  margin-top: 2rem;
  padding: 1.1rem 1.25rem;
}

.disclaimer strong {
  color: var(--olive);
}

.site-footer {
  background: var(--footer);
  color: rgba(255, 255, 255, 0.74);
  margin-top: 1.75rem;
}

.site-footer-inner {
  align-items: center;
  display: flex;
  gap: 1.5rem;
  justify-content: space-between;
  margin: 0 auto;
  max-width: 1180px;
  min-height: 86px;
  padding: 1.4rem 1.5rem;
}

.site-footer p,
.site-footer a {
  font-size: 0.95rem;
}

.footer-email {
  align-items: center;
  color: rgba(255, 255, 255, 0.86);
  display: inline-flex;
  gap: 0.45rem;
  text-decoration: none;
}

.footer-email span {
  color: #b8c49f;
}

.footer-email:hover {
  color: #ffffff;
}

@media (max-width: 900px) {
  .site-header-inner {
    align-items: flex-start;
    flex-direction: column;
    gap: 1rem;
  }

  .site-nav {
    justify-content: flex-start;
  }

  .site-logo {
    width: min(280px, 70vw);
  }
}

@media (max-width: 720px) {
  .app-main {
    padding-top: 2rem;
  }

  .advisor-header {
    margin-bottom: 2rem;
  }

  .stat-row,
  .actions,
  .more-card,
  .site-footer-inner {
    grid-template-columns: 1fr;
  }

  .stat-row {
    align-items: center;
    flex-direction: column;
    gap: 1.5rem;
  }

  .rec-rank {
    position: static;
    display: block;
    margin-bottom: 0.75rem;
  }

  .rec-card h2 {
    max-width: 100%;
  }

  .actions,
  .site-footer-inner {
    display: flex;
    flex-direction: column;
    text-align: center;
  }
}

.single-question-card {
  max-width: 820px;
}

.progress-header {
  color: var(--muted);
  display: flex;
  font-size: 0.88rem;
  font-weight: 700;
  justify-content: space-between;
  margin-bottom: 0.65rem;
}

.progress-track {
  background: #e4ded5;
  border-radius: 999px;
  box-shadow: inset 0 1px 2px rgba(31, 31, 29, 0.10);
  height: 9px;
  margin-bottom: 2.35rem;
  overflow: hidden;
}

.progress-fill {
  background: linear-gradient(90deg, var(--olive), var(--olive-lt));
  border-radius: 999px;
  box-shadow: 0 0 10px rgba(90, 110, 58, 0.28);
  height: 100%;
}

.question-help {
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.55;
  margin: -1.6rem 0 1.8rem;
}

.question-options .option-card {
  position: relative;
}

.question-options .option-card input {
  opacity: 0;
  position: absolute;
  pointer-events: none;
}

.wizard-nav {
  margin-top: 1.8rem;
}

.back-link {
  color: var(--olive);
  display: inline-block;
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 1rem;
  text-decoration: none;
}

.back-link:hover {
  text-decoration: underline;
}

.error-note {
  margin: 0 0 1.4rem;
}

.profile-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  justify-content: center;
  margin: -0.8rem auto 1.8rem;
}

.profile-chip-row span {
  align-items: center;
  background: var(--white);
  border: 1px solid rgba(90, 110, 58, 0.20);
  border-radius: 999px;
  color: var(--olive);
  display: inline-flex;
  font-size: 0.86rem;
  font-weight: 700;
  padding: 0.42rem 0.8rem;
}

.polished-results {
  max-width: 900px;
}

.hero-result-card {
  padding: clamp(2rem, 5vw, 3rem);
}

.result-card-topline {
  align-items: center;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.top-pick-badge,
.choice-badge {
  border-radius: 999px;
  display: inline-flex;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  padding: 0.35rem 0.85rem;
  text-transform: uppercase;
}

.top-pick-badge {
  background: var(--olive);
  color: var(--white);
}

.choice-badge {
  background: #edeae4;
  color: var(--muted);
}

.pill-strong {
  background: var(--olive-soft);
  color: var(--olive);
}

.insight-grid {
  border-top: 1px solid var(--border);
  display: grid;
  gap: 1.2rem;
  grid-template-columns: 1fr 1fr;
  margin-top: 1.65rem;
  padding-top: 1.65rem;
}

.insight-panel {
  background: #fbfaf7;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.1rem 1.2rem;
}

.insight-panel strong {
  color: var(--olive);
  display: block;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  margin-bottom: 0.8rem;
  text-transform: uppercase;
}

.insight-panel ul {
  color: var(--text);
  display: grid;
  gap: 0.55rem;
  list-style: none;
}

.insight-panel li {
  line-height: 1.45;
  padding-left: 1.2rem;
  position: relative;
}

.insight-panel li::before {
  color: var(--olive);
  content: "✓";
  font-weight: 800;
  left: 0;
  position: absolute;
  top: 0;
}

.insight-panel:nth-child(2) li::before {
  content: "•";
}

.advisor-note-polished {
  background: var(--olive-soft);
  border-color: rgba(90, 110, 58, 0.20);
}

.secondary-result-card {
  margin-top: 1.25rem;
}

.secondary-result-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: minmax(0, 1.25fr) minmax(240px, 0.75fr);
}

.polished-more-card h2 {
  margin-bottom: 0.2rem;
}

.polished-more-card .rec-code {
  margin-bottom: 0.45rem;
}

@media (max-width: 720px) {
  .progress-header,
  .result-card-topline {
    align-items: flex-start;
    flex-direction: column;
  }

  .insight-grid,
  .secondary-result-grid {
    grid-template-columns: 1fr;
  }
}

/* =========================================================
   PotaLife Advisor V1 polish pass
   Locked-template implementation refinements
   ========================================================= */

/* Reduce overall page scale and vertical footprint */
.app-main {
  padding: 2.25rem 1rem 3rem;
}

.advisor-header {
  margin-bottom: 2rem;
}

.advisor-header .eyebrow {
  margin-bottom: 0.45rem;
}

.advisor-header h1 {
  font-size: clamp(2.05rem, 4.4vw, 3.35rem);
}

.subtitle {
  font-size: clamp(0.98rem, 1.7vw, 1.16rem);
  margin-top: 0.75rem;
  max-width: 680px;
}

/* Landing page compactness */
.hero-card {
  max-width: 780px;
  padding: clamp(2.6rem, 5vw, 4.25rem) clamp(1.5rem, 5vw, 3.6rem);
}

.hero-icon {
  height: 3.6rem;
  width: 3.6rem;
  font-size: 1.75rem;
  margin-bottom: 1.65rem;
}

.hero-card h2 {
  font-size: clamp(1.9rem, 4vw, 2.75rem);
  margin-bottom: 1.15rem;
}

.hero-card p {
  font-size: clamp(1rem, 1.7vw, 1.16rem);
  max-width: 650px;
}

.stat-row {
  margin: 2.35rem 0 2rem;
  gap: clamp(1.5rem, 5vw, 4.25rem);
}

.stat-row strong {
  font-size: 1.85rem;
}

.stat-row span {
  font-size: 0.92rem;
}

.btn {
  min-height: 3.25rem;
  padding: 0.75rem 1.25rem;
}

/* Question page: match locked one-question template */
.single-question-card {
  max-width: 820px;
  padding: clamp(2rem, 4vw, 3rem);
}

.progress-header {
  align-items: center;
  color: var(--muted);
  display: flex;
  font-size: 0.95rem;
  font-weight: 600;
  justify-content: space-between;
  margin-bottom: 0.72rem;
}

.progress-track {
  background: linear-gradient(180deg, #f5f0e8 0%, #ece5db 100%);
  border: 1px solid #d6cfc3;
  border-radius: 999px;
  box-shadow: inset 0 1px 2px rgba(31, 31, 29, 0.08);
  height: 0.72rem;
  margin-bottom: 2.35rem;
  overflow: hidden;
}

.progress-fill {
  background: linear-gradient(180deg, #86a650 0%, #728e40 58%, #627939 100%);
  border-radius: 999px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.28), 0 2px 7px rgba(90, 110, 58, 0.24);
  height: 100%;
  min-width: 4.25rem;
}

.single-question-card .section-kicker {
  color: var(--olive);
  display: block;
  letter-spacing: 0.24em;
  margin-bottom: 1.2rem;
}

.single-question-card h2 {
  font-size: clamp(2rem, 3.6vw, 2.75rem);
  line-height: 1.08;
  margin-bottom: 1.15rem;
  max-width: 760px;
}

.question-help {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.45;
  margin-bottom: 1.25rem;
  max-width: 760px;
}

.question-options {
  gap: 0.75rem;
}

.question-options .option-card {
  align-items: flex-start;
  display: grid;
  grid-template-columns: 0 1fr;
  gap: 0;
  min-height: 0;
  padding: 0.95rem 1.25rem;
}

.question-options .option-card input {
  opacity: 0;
  pointer-events: none;
  position: absolute;
}

.question-options .option-card span {
  font-size: 1.12rem;
  line-height: 1.15;
  margin-bottom: 0.35rem;
}

.question-options .option-card small {
  font-size: 0.92rem;
  line-height: 1.35;
}

.wizard-nav {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin-top: 1.1rem;
}

.wizard-nav .btn {
  min-height: 3.25rem;
}

.back-link {
  align-self: center;
  color: var(--olive);
  font-size: 0.95rem;
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.error-note {
  margin-bottom: 1.25rem;
}

/* Results page: restore locked polished hierarchy */
.polished-results {
  max-width: 830px;
}

.profile-chip-row {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  justify-content: center;
  margin: -0.9rem auto 1.5rem;
}

.profile-chip-row span {
  background: #fbfaf7;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text);
  font-size: 0.82rem;
  padding: 0.4rem 0.7rem;
}

.hero-result-card {
  padding: clamp(1.65rem, 3.5vw, 2.35rem);
}

.result-card-topline {
  align-items: center;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.top-pick-badge,
.choice-badge {
  align-items: center;
  background: var(--olive);
  border-radius: 999px;
  color: var(--white);
  display: inline-flex;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 0.34rem 0.75rem;
  text-transform: uppercase;
}

.choice-badge {
  background: #edeae4;
  color: var(--text);
}

.hero-result-card h2 {
  font-size: clamp(1.85rem, 3.5vw, 2.55rem);
  max-width: 100%;
}

.hero-result-card .rec-copy {
  border-bottom: 1px solid var(--border);
  margin-bottom: 1.25rem;
  padding-bottom: 1.25rem;
}

.insight-grid {
  display: grid;
  gap: 1.4rem;
  grid-template-columns: 1fr 1fr;
  margin-top: 1.1rem;
}

.insight-panel {
  min-width: 0;
}

.insight-panel + .insight-panel {
  border-left: 1px solid var(--border);
  padding-left: 1.4rem;
}

.insight-panel strong {
  color: var(--olive);
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  margin-bottom: 0.65rem;
  text-transform: uppercase;
}

.insight-panel ul {
  list-style: none;
}

.insight-panel li {
  color: var(--text);
  font-size: 0.95rem;
  line-height: 1.45;
  margin-bottom: 0.45rem;
  padding-left: 1.35rem;
  position: relative;
}

.insight-panel:first-child li::before {
  color: var(--olive);
  content: "✓";
  font-weight: 700;
  left: 0;
  position: absolute;
  top: 0;
}

.insight-panel:last-child li::before {
  color: var(--dark);
  content: "•";
  font-weight: 700;
  left: 0.15rem;
  position: absolute;
  top: 0;
}

.advisor-note-polished {
  margin-top: 1.35rem;
}

.secondary-result-card {
  padding: 1.45rem 1.75rem;
}

.secondary-result-grid {
  align-items: center;
  display: grid;
  gap: 1.75rem;
  grid-template-columns: minmax(0, 1.45fr) minmax(220px, 0.8fr);
}

.secondary-result-card h2 {
  font-size: clamp(1.35rem, 2.4vw, 1.75rem);
  max-width: 100%;
}

.secondary-result-card .rec-copy {
  color: var(--text);
  font-size: 0.95rem;
  line-height: 1.5;
}

.polished-more-card {
  align-items: center;
  padding: 1.1rem 1.35rem;
}

.polished-more-card h2 {
  font-size: 1.12rem;
}

.polished-more-card p {
  font-size: 0.9rem;
  line-height: 1.45;
}

.polished-more-card .rec-code {
  font-size: 0.74rem;
}

.actions {
  margin-top: 1.55rem;
}

.disclaimer {
  background: #fbfaf7;
  font-size: 0.88rem;
  margin-top: 1.55rem;
}

/* Keep footer separated but not overly tall */
.site-footer {
  margin-top: 0;
}

.site-footer-inner {
  min-height: 72px;
}

/* Responsive fixes */
@media (max-width: 820px) {
  .insight-grid,
  .secondary-result-grid {
    grid-template-columns: 1fr;
  }

  .insight-panel + .insight-panel {
    border-left: none;
    border-top: 1px solid var(--border);
    padding-left: 0;
    padding-top: 1.1rem;
  }
}

@media (max-width: 720px) {
  .app-main {
    padding: 1.6rem 0.85rem 2.35rem;
  }

  .advisor-header h1 {
    font-size: clamp(2rem, 10vw, 2.85rem);
  }

  .single-question-card {
    padding: 1.35rem;
  }

  .progress-header {
    font-size: 0.85rem;
  }

  .single-question-card h2 {
    font-size: 1.85rem;
  }

  .question-options .option-card {
    padding: 0.85rem 1rem;
  }

  .result-card-topline {
    align-items: flex-start;
    flex-direction: column;
  }
}

/* =========================================================
   Question page tightening pass
   Fix oversized question header + radio alignment
   ========================================================= */

.single-question-card {
  max-width: 760px;
  padding: 1.75rem 2.15rem 2rem;
}

.progress-track {
  margin-bottom: 1.55rem;
}

.single-question-card .section-kicker {
  margin-bottom: 0.75rem;
}

/* Reduce question block header size */
.single-question-card h2 {
  font-size: clamp(1.45rem, 2.6vw, 2.05rem);
  line-height: 1.12;
  margin-bottom: 0.75rem;
}

/* Tighten helper text */
.question-help {
  font-size: 0.95rem;
  line-height: 1.35;
  margin-bottom: 1rem;
}

/* Reduce answer stack height */
.question-options {
  gap: 0.55rem;
}

/* Make answer rows true horizontal rows */
.question-options .option-card {
  align-items: center;
  display: flex;
  gap: 0.85rem;
  min-height: 0;
  padding: 0.75rem 1rem;
}

/* Keep native radio dot visible, left-aligned, centered */
.question-options .option-card input[type="radio"] {
  appearance: auto;
  -webkit-appearance: radio;
  accent-color: var(--olive);
  flex: 0 0 auto;
  height: 1rem;
  margin: 0;
  opacity: 1;
  pointer-events: auto;
  position: static;
  width: 1rem;
}

/* Wrap label text cleanly beside the dot */
.question-options .option-card span {
  display: block;
  font-size: 1.02rem;
  line-height: 1.15;
  margin-bottom: 0.18rem;
}

.question-options .option-card small {
  display: block;
  font-size: 0.84rem;
  line-height: 1.25;
}

/* Make the card feel clickable without adding height */
.question-options .option-card:hover,
.question-options .option-card.selected {
  background: #f8f6f2;
  border-color: var(--olive);
  box-shadow: 0 0 0 1px rgba(90, 110, 58, 0.35);
}

/* Tighten bottom navigation */
.wizard-nav {
  gap: 0.5rem;
  margin-top: 0.85rem;
}

.wizard-nav .btn {
  min-height: 3rem;
}

.back-link {
  font-size: 0.9rem;
}

/* Mobile question page */
@media (max-width: 720px) {
  .single-question-card {
    padding: 1.2rem;
  }

  .single-question-card h2 {
    font-size: 1.45rem;
  }

  .question-options .option-card {
    padding: 0.72rem 0.85rem;
  }

  .question-options .option-card span {
    font-size: 0.98rem;
  }

  .question-options .option-card small {
    font-size: 0.82rem;
  }
}

/* =========================================================
   Question option structure fix
   Proper radio + copy wrapper alignment
   ========================================================= */

.question-options .option-card {
  align-items: center;
  display: flex;
  flex-direction: row;
  gap: 0.8rem;
  padding: 0.72rem 1rem;
}

.question-options .option-card input[type="radio"] {
  accent-color: var(--olive);
  flex: 0 0 1rem;
  height: 1rem;
  margin: 0;
  position: static;
  width: 1rem;
}

.option-copy {
  display: block;
  flex: 1 1 auto;
  min-width: 0;
}

.option-copy span {
  display: block;
  font-size: 1rem;
  line-height: 1.15;
  margin: 0 0 0.18rem;
}

.option-copy small {
  color: var(--muted);
  display: block;
  font-size: 0.84rem;
  line-height: 1.25;
}

.single-question-card h2 {
  font-size: clamp(1.35rem, 2.3vw, 1.9rem);
  line-height: 1.12;
  margin-bottom: 0.7rem;
}

.question-help {
  font-size: 0.92rem;
  margin-bottom: 0.85rem;
}

.progress-track {
  margin-bottom: 1.25rem;
}

.wizard-nav {
  margin-top: 0.75rem;
}

@media (max-width: 720px) {
  .question-options .option-card {
    gap: 0.7rem;
    padding: 0.68rem 0.85rem;
  }

  .option-copy span {
    font-size: 0.96rem;
  }

  .option-copy small {
    font-size: 0.8rem;
  }
}

/* =========================================================
   Question heading final sizing pass
   ========================================================= */

.single-question-card {
  max-width: 820px;
  padding: 1.55rem 2.05rem 1.85rem;
}

.progress-header {
  font-size: 0.92rem;
  margin-bottom: 0.6rem;
}

.progress-track {
  height: 0.42rem;
  margin-bottom: 1.25rem;
}

.single-question-card .section-kicker {
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  margin-bottom: 0.65rem;
}

/* This is the main fix: smaller, controlled question title */
.single-question-card h2 {
  font-size: clamp(1.65rem, 2.35vw, 2.15rem);
  line-height: 1.08;
  margin-bottom: 0.85rem;
  max-width: 760px;
}

/* Keep helper text below the title with clear separation */
.question-help {
  clear: both;
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.38;
  margin: 0 0 1rem;
  max-width: 760px;
}

.question-options {
  gap: 0.55rem;
}

.question-options .option-card {
  padding: 0.68rem 1rem;
}

.wizard-nav {
  margin-top: 0.7rem;
}

.wizard-nav .btn {
  min-height: 3rem;
}

@media (max-width: 720px) {
  .single-question-card h2 {
    font-size: 1.55rem;
  }
}

/* =========================================================
   Question title smaller final override
   ========================================================= */

.single-question-card h2 {
  font-size: clamp(1.25rem, 1.65vw, 1.55rem);
  line-height: 1.16;
  margin-bottom: 0.65rem;
  max-width: 720px;
}

.question-help {
  font-size: 0.9rem;
  line-height: 1.35;
  margin-bottom: 0.9rem;
}

.single-question-card .section-kicker {
  font-size: 0.68rem;
  margin-bottom: 0.55rem;
}

.progress-track {
  margin-bottom: 1.05rem;
}

@media (max-width: 720px) {
  .single-question-card h2 {
    font-size: 1.28rem;
  }
}

/* =========================================================
   Results page locked-template polish pass
   ========================================================= */

.locked-results-template {
  max-width: 850px;
}

.locked-profile-row {
  background: #fbfaf7;
  border: 1px solid var(--border);
  border-radius: 7px;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  margin: -0.8rem auto 1.55rem;
  max-width: 700px;
  overflow: hidden;
}

.locked-profile-row span {
  align-items: center;
  background: transparent;
  border: none;
  border-right: 1px solid var(--border);
  border-radius: 0;
  color: var(--text);
  display: flex;
  font-size: 0.8rem;
  justify-content: center;
  min-height: 2.5rem;
  padding: 0.35rem 0.55rem;
  text-align: center;
}

.locked-profile-row span:last-child {
  border-right: none;
}

.result-hero-card {
  background: var(--white);
  border: 2px solid var(--olive);
  border-radius: var(--radius);
  box-shadow: 0 0 0 2px rgba(90, 110, 58, 0.06), var(--shadow);
  padding: 2rem 2.15rem 2.1rem;
}

.result-card-topline {
  align-items: center;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.top-pick-badge {
  background: var(--olive);
  border-radius: 999px;
  color: var(--white);
  display: inline-flex;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 0.36rem 0.75rem;
  text-transform: uppercase;
}

.choice-badge {
  background: #edeae4;
  border-radius: 999px;
  color: var(--text);
  display: inline-flex;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 0.32rem 0.72rem;
  text-transform: uppercase;
}

.fit-badge {
  background: var(--olive-soft);
  border: 1px solid #d6dec9;
  border-radius: 999px;
  color: var(--olive);
  display: inline-flex;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.36rem 0.72rem;
}

.result-hero-card h2 {
  color: var(--dark);
  font-family: "Playfair Display", serif;
  font-size: clamp(2rem, 3.8vw, 2.75rem);
  line-height: 1.08;
  margin: 0;
}

.result-score-wrap {
  margin: 1.2rem 0 1.05rem;
}

.result-score-wrap .score-label-row {
  color: var(--text);
  font-size: 0.88rem;
  margin-bottom: 0.45rem;
}

.result-score-wrap .score-track {
  background: #e5e1da;
  height: 0.42rem;
}

.result-score-wrap .score-fill {
  background: var(--olive);
}

.result-tag-row {
  border-bottom: none;
  gap: 0.45rem;
  margin: 0 0 1.15rem;
  padding: 0;
}

.result-tag-row span {
  background: #edeae4;
  border: 1px solid #d8d2c9;
  border-radius: 5px;
  color: #6c675f;
  font-size: 0.78rem;
  padding: 0.28rem 0.58rem;
}

.result-summary-copy {
  border-bottom: 1px solid var(--border);
  color: var(--text);
  font-size: 1.02rem;
  line-height: 1.55;
  margin-bottom: 1.25rem;
  padding-bottom: 1.2rem;
}

.locked-insight-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1fr 1fr;
  margin-top: 1rem;
}

.insight-panel + .insight-panel {
  border-left: 1px solid var(--border);
  padding-left: 1.5rem;
}

.insight-panel strong {
  color: var(--olive);
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.17em;
  margin-bottom: 0.65rem;
  text-transform: uppercase;
}

.insight-panel ul {
  list-style: none;
}

.insight-panel li {
  color: var(--text);
  font-size: 0.94rem;
  line-height: 1.42;
  margin-bottom: 0.42rem;
  padding-left: 1.35rem;
  position: relative;
}

.insight-panel:first-child li::before {
  color: var(--olive);
  content: "✓";
  font-weight: 700;
  left: 0;
  position: absolute;
}

.insight-panel:last-child li::before {
  color: var(--dark);
  content: "•";
  font-weight: 700;
  left: 0.18rem;
  position: absolute;
}

.locked-advisor-note {
  margin-top: 1.35rem;
  padding: 1rem 1.1rem;
}

.locked-advisor-note strong {
  align-items: center;
  display: flex;
  gap: 0.45rem;
}

.locked-advisor-note strong::before {
  border: 1px solid var(--olive);
  border-radius: 999px;
  content: "i";
  display: inline-flex;
  font-size: 0.72rem;
  height: 1rem;
  justify-content: center;
  line-height: 1;
  width: 1rem;
}

.result-secondary-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  margin-top: 1.25rem;
  padding: 1.35rem 1.65rem;
}

.secondary-result-grid {
  align-items: center;
  display: grid;
  gap: 1.8rem;
  grid-template-columns: minmax(0, 1.45fr) minmax(230px, 0.85fr);
}

.result-secondary-card h2 {
  color: var(--dark);
  font-family: "Playfair Display", serif;
  font-size: clamp(1.35rem, 2.2vw, 1.75rem);
  line-height: 1.12;
  margin: 0;
}

.compact-score {
  margin: 0.75rem 0 0.6rem;
}

.secondary-copy {
  color: var(--text);
  font-size: 0.96rem;
  line-height: 1.5;
}

.locked-more-heading {
  border-bottom: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.78rem;
  letter-spacing: 0.28em;
  margin: 2rem 0 0.8rem;
  padding-bottom: 0.75rem;
}

.locked-more-list {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  gap: 0;
  overflow: hidden;
}

.locked-more-card {
  align-items: center;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  display: grid;
  gap: 1rem;
  grid-template-columns: 48px minmax(150px, 0.9fr) minmax(250px, 1.6fr) auto 16px;
  padding: 0.95rem 1.1rem;
}

.locked-more-card:last-child {
  border-bottom: none;
}

.more-icon {
  color: var(--olive);
  font-size: 1.7rem;
  text-align: center;
}

.more-main h2 {
  color: var(--dark);
  font-family: "Playfair Display", serif;
  font-size: 1.1rem;
  line-height: 1.12;
  margin: 0;
}

.more-detail p {
  color: var(--text);
  font-size: 0.86rem;
  line-height: 1.35;
  margin-top: 0.35rem;
}

.locked-more-card > strong {
  color: var(--text);
  font-size: 0.82rem;
  white-space: nowrap;
}

.more-chevron {
  color: var(--dark);
  font-size: 1.65rem;
  line-height: 1;
}

.locked-actions {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr 1fr;
  margin-top: 1.6rem;
}

.locked-actions .btn {
  min-height: 3.25rem;
}

.locked-disclaimer {
  background: #fbfaf7;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.45;
  margin-top: 1.55rem;
  padding: 1rem 1.15rem;
}

.locked-disclaimer strong {
  color: var(--olive);
}

@media (max-width: 820px) {
  .locked-profile-row {
    grid-template-columns: 1fr;
  }

  .locked-profile-row span {
    border-bottom: 1px solid var(--border);
    border-right: none;
  }

  .locked-profile-row span:last-child {
    border-bottom: none;
  }

  .locked-insight-grid,
  .secondary-result-grid,
  .locked-more-card {
    grid-template-columns: 1fr;
  }

  .insight-panel + .insight-panel {
    border-left: none;
    border-top: 1px solid var(--border);
    padding-left: 0;
    padding-top: 1rem;
  }

  .locked-more-card {
    gap: 0.55rem;
  }

  .more-icon,
  .more-chevron {
    display: none;
  }

  .locked-actions {
    grid-template-columns: 1fr;
  }
}

/* =========================================================
   Results match-to-locked-template refinement
   ========================================================= */

.locked-results-template {
  max-width: 900px;
}

/* Profile row: make raw answers readable and less cramped */
.locked-profile-row {
  max-width: 780px;
}

.locked-profile-row span {
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1.15;
  min-height: 2.65rem;
}

/* Main hero card breathing room */
.result-hero-card {
  padding: 2.15rem 2.35rem 2.15rem;
}

.result-hero-card h2 {
  font-size: clamp(2.15rem, 4vw, 3rem);
  margin-bottom: 0.15rem;
}

.result-summary-copy {
  font-size: 1.02rem;
  line-height: 1.6;
  margin-top: 1rem;
}

/* Replace mini-card look with the locked open two-column insight style */
.locked-insight-grid {
  border-top: 1px solid var(--border);
  display: grid;
  gap: 1.65rem;
  grid-template-columns: 1fr 1fr;
  margin-top: 1.25rem;
  padding-top: 1.15rem;
}

.locked-insight-grid .insight-panel {
  background: transparent;
  border: none;
  border-radius: 0;
  box-shadow: none;
  min-height: 0;
  padding: 0;
}

.locked-insight-grid .insight-panel + .insight-panel {
  border-left: 1px solid var(--border);
  padding-left: 1.65rem;
}

.locked-insight-grid .insight-panel strong {
  color: var(--olive);
  font-size: 0.78rem;
  letter-spacing: 0.17em;
  margin-bottom: 0.7rem;
}

.locked-insight-grid .insight-panel li {
  font-size: 0.94rem;
  line-height: 1.42;
  margin-bottom: 0.45rem;
}

/* Keep the Why column from feeling empty when scorer rationale is sparse */
.locked-insight-grid .insight-panel:first-child li:nth-child(n+6) {
  display: none;
}

.locked-insight-grid .insight-panel:last-child li:nth-child(n+6) {
  display: none;
}

/* Softer advisor note, closer to locked template */
.locked-advisor-note {
  background: #fbfaf7;
  border: 1px solid var(--border);
  margin-top: 1.4rem;
}

/* Secondary cards: compact and balanced */
.result-secondary-card {
  margin-top: 1.25rem;
  padding: 1.25rem 1.55rem;
}

.secondary-result-grid {
  grid-template-columns: minmax(0, 1.45fr) minmax(240px, 0.8fr);
}

.result-secondary-card h2 {
  font-size: clamp(1.35rem, 2.35vw, 1.85rem);
}

.secondary-copy {
  align-self: center;
  font-size: 0.94rem;
  line-height: 1.45;
}

/* More options: only three rows, refined spacing */
.locked-more-heading {
  margin-top: 1.8rem;
}

.locked-more-card {
  grid-template-columns: 46px minmax(170px, 0.9fr) minmax(300px, 1.5fr) auto 16px;
  padding: 0.95rem 1.1rem;
}

.more-icon {
  color: var(--olive);
  font-size: 1.45rem;
  opacity: 0.85;
}

.more-main h2 {
  font-size: 1.08rem;
}

.more-detail p {
  font-size: 0.86rem;
}

/* Badge polish */
.fit-badge {
  gap: 0.35rem;
}

.top-pick-badge {
  box-shadow: 0 1px 3px rgba(31, 31, 29, 0.12);
}

/* Bottom area */
.locked-actions {
  margin-top: 1.55rem;
}

.locked-disclaimer {
  background: #fbfaf7;
  margin-top: 1.45rem;
}

/* Responsive */
@media (max-width: 860px) {
  .locked-profile-row {
    grid-template-columns: 1fr;
  }

  .locked-profile-row span {
    border-bottom: 1px solid var(--border);
    border-right: none;
  }

  .locked-profile-row span:last-child {
    border-bottom: none;
  }

  .locked-insight-grid,
  .secondary-result-grid,
  .locked-more-card {
    grid-template-columns: 1fr;
  }

  .locked-insight-grid .insight-panel + .insight-panel {
    border-left: none;
    border-top: 1px solid var(--border);
    padding-left: 0;
    padding-top: 1rem;
  }

  .more-icon,
  .more-chevron {
    display: none;
  }
}

/* Final scoped progress bar correction: keep later sizing passes from flattening the fill. */
.single-question-card .progress-header {
  margin-bottom: 0.72rem;
}

.single-question-card .progress-track {
  background: linear-gradient(180deg, #f5f0e8 0%, #ece5db 100%);
  border: 1px solid #d6cfc3;
  border-radius: 999px;
  box-shadow: inset 0 1px 2px rgba(31, 31, 29, 0.08);
  height: 0.62rem;
  margin-bottom: 1.25rem;
  overflow: hidden;
}

.single-question-card .progress-fill {
  background: linear-gradient(180deg, #86a650 0%, #728e40 58%, #627939 100%);
  border-radius: 999px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.28), 0 2px 7px rgba(90, 110, 58, 0.22);
  height: 100%;
  min-width: 4.25rem;
}
