/* ==========================================================
   STUDENT COMPASS
   Uses The Evolve Foundation design system.
   This file only adds Compass-specific components.
   ========================================================== */

/* ---------- COMPASS HERO ---------- */
.compass-hero {
  padding-bottom: 92px;
}

.compass-hero .eyebrow {
  color: var(--route-soft);
  margin-bottom: 32px;
}

.compass-hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, .75fr);
  gap: 76px;
  align-items: center;
}

.compass-copy {
  min-width: 0;
}

.compass-copy h1 {
  max-width: 11ch;
}

.compass-copy .lede {
  max-width: 54ch;
}

.compass-meta {
  display: flex;
  flex-wrap: wrap;
  border-top: 1px solid var(--ink-line);
  border-bottom: 1px solid var(--ink-line);
  max-width: 720px;
  margin-top: 44px;
}

.compass-meta span {
  padding: 13px 18px;
  border-right: 1px solid var(--ink-line);
  color: var(--brass-soft);
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  letter-spacing: .10em;
  text-transform: uppercase;
  white-space: nowrap;
}

.compass-meta span:last-child {
  border-right: 0;
}

/* ---------- EDITORIAL VISUAL ---------- */
.compass-visual {
  position: relative;
  min-height: 360px;
  display: grid;
  place-items: center;
}

.compass-visual-card {
  position: relative;
  width: min(100%, 410px);
  aspect-ratio: 1 / 1;
  border: 1px solid var(--ink-line);
  border-radius: 16px;
  background: var(--ink-soft);
  overflow: hidden;
}

.compass-visual-card::before,
.compass-visual-card::after {
  content: '';
  position: absolute;
  border: 1px solid rgba(216,183,119,.25);
  border-radius: 50%;
  inset: 14%;
}

.compass-visual-card::after {
  inset: 27%;
}

.compass-ring {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
}

.compass-ring svg {
  width: 68%;
  height: 68%;
  overflow: visible;
}

.compass-note {
  position: absolute;
  left: 8%;
  bottom: 8%;
  padding: 15px 18px;
  background: var(--paper);
  color: var(--ink-text);
  border-left: 3px solid var(--brass);
  max-width: 220px;
}

.compass-note .eyebrow {
  color: var(--route-dark);
  margin-bottom: 7px;
}

.compass-note p {
  font-family: 'Fraunces', serif;
  font-size: 18px;
  line-height: 1.25;
}

/* ---------- INTRO / JOURNEY ---------- */
.compass-intro {
  padding: 120px 0 112px;
}

.compass-intro .section-head {
  max-width: 760px;
}

.compass-journey {
  border-top: 1px solid var(--paper-line);
}

.compass-journey-item {
  display: grid;
  grid-template-columns: 90px minmax(0, 1fr) minmax(0, 1.4fr);
  gap: 28px;
  align-items: baseline;
  padding: 30px 0;
  border-bottom: 1px solid var(--paper-line);
}

.compass-journey-number {
  font-family: 'IBM Plex Mono', monospace;
  color: var(--brass);
  font-size: 12px;
  letter-spacing: .08em;
}

.compass-journey-item h3 {
  font-size: 28px;
  line-height: 1.15;
}

.compass-journey-item p {
  color: var(--muted-on-paper);
  font-size: 16px;
  line-height: 1.65;
}

/* ---------- REFLECTION START ---------- */
.compass-start {
  background: var(--ink);
  color: var(--paper-text);
  padding: 92px 0;
}

.compass-start .section-head {
  max-width: 760px;
  margin-bottom: 0;
}

.compass-start .eyebrow {
  color: var(--route-soft);
}

.compass-start h2 {
  margin-top: 18px;
  font-size: clamp(34px, 4.5vw, 54px);
  line-height: 1.08;
}

.compass-start p {
  color: var(--muted-on-ink);
  font-size: 18px;
  max-width: 60ch;
  margin-top: 18px;
}

/* ---------- REFLECTION QUESTIONS ---------- */
.compass-question-page {
  padding: 98px 0 56px;
  min-height: calc(100svh - 64px);
}

.compass-question-shell {
  max-width: 860px;
}

.compass-question-top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 24px;
  margin-bottom: 10px;
}

.compass-question-top .eyebrow {
  color: var(--route-dark);
}

.compass-count {
  color: var(--muted-on-paper);
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.compass-progress {
  height: 5px;
  background: var(--paper-soft);
  overflow: hidden;
  margin-bottom: 34px;
}

.compass-progress-bar {
  height: 100%;
  width: 0;
  background: var(--brass);
  transition: width .25s ease;
}

.compass-question-shell h1 {
  max-width: 27ch;
  font-size: clamp(32px, 4vw, 46px);
  line-height: 1.08;
  margin-bottom: 12px;
}

.compass-question-prompt {
  max-width: 62ch;
  color: var(--muted-on-paper);
  font-size: 15.5px;
  line-height: 1.55;
  margin-bottom: 24px;
}

.compass-scale-label {
  font-family: 'IBM Plex Mono', monospace;
  color: var(--route-dark);
  font-size: 11px;
  letter-spacing: .10em;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.compass-scale {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
  max-width: 680px;
}

.compass-scale button {
  appearance: none;
  border: 1px solid rgba(27,35,43,.22);
  background: var(--paper);
  color: var(--ink-text);
  min-height: 64px;
  border-radius: 8px;
  font-family: 'Fraunces', serif;
  font-size: 22px;
  cursor: pointer;
  transition: background .18s ease, color .18s ease, border-color .18s ease, transform .18s ease;
}

.compass-scale button:hover {
  border-color: var(--brass);
  transform: translateY(-2px);
}

.compass-scale button.selected {
  background: var(--brass);
  border-color: var(--brass);
  color: var(--ink);
}

.compass-scale-ends {
  display: flex;
  justify-content: space-between;
  max-width: 680px;
  margin-top: 8px;
  color: var(--muted-on-paper);
  font-size: 12px;
}

.compass-question-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 26px;
}

/* ---------- DETAILS / LEAD CAPTURE ---------- */
.compass-form-hero {
  background: var(--ink);
  color: var(--paper-text);
  padding: 156px 0 86px;
}

.compass-form-hero .eyebrow {
  color: var(--route-soft);
  margin-bottom: 28px;
}

.compass-form-hero h1 {
  max-width: 13ch;
  font-size: clamp(42px, 5vw, 68px);
  line-height: 1.04;
}

.compass-form-hero p {
  max-width: 58ch;
  color: var(--muted-on-ink);
  font-size: 18px;
  margin-top: 24px;
}

.compass-form-section {
  padding: 90px 0 120px;
}

.compass-form {
  max-width: 680px;
}

.compass-form-grid {
  display: grid;
  gap: 26px;
}

.compass-field label {
  display: block;
  margin-bottom: 9px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  letter-spacing: .10em;
  text-transform: uppercase;
  color: var(--route-dark);
}

.compass-field input {
  width: 100%;
  padding: 15px 16px;
  border: 1px solid rgba(27,35,43,.20);
  border-radius: 6px;
  background: var(--paper);
  color: var(--ink-text);
  font: inherit;
  font-size: 16px;
}

.compass-field input:focus {
  outline: 2px solid var(--brass);
  outline-offset: 2px;
  border-color: var(--brass);
}

.compass-form-note {
  margin-top: 22px;
  color: var(--muted-on-paper);
  font-size: 13px;
  line-height: 1.6;
}

/* ---------- RESULTS ---------- */
.compass-results-hero {
  background: var(--ink);
  color: var(--paper-text);
  padding: 156px 0 90px;
}

.compass-results-hero .eyebrow {
  color: var(--route-soft);
  margin-bottom: 28px;
}

.compass-results-hero h1 {
  max-width: 14ch;
  font-size: clamp(42px, 5vw, 68px);
  line-height: 1.04;
}

.compass-results {
  padding: 92px 0 120px;
}

.compass-results-intro {
  max-width: 680px;
  margin-bottom: 54px;
  color: var(--muted-on-paper);
  font-size: 17px;
}

.compass-result-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.compass-result-card {
  padding: 34px;
  background: var(--paper-soft);
  border-top: 3px solid var(--brass);
}

.compass-result-card .eyebrow {
  color: var(--route-dark);
  margin-bottom: 18px;
}

.compass-result-card h2 {
  font-size: clamp(28px, 3.2vw, 40px);
  line-height: 1.12;
  margin-bottom: 14px;
}

.compass-result-card p {
  color: var(--muted-on-paper);
  font-size: 16px;
  line-height: 1.68;
}

.compass-result-next {
  margin-top: 56px;
  padding-top: 34px;
  border-top: 1px solid var(--paper-line);
}

.compass-result-next h2 {
  font-size: 32px;
  margin-bottom: 12px;
}

.compass-result-next p {
  max-width: 64ch;
  color: var(--muted-on-paper);
  font-size: 16px;
}

.compass-inline-cta {
  margin-top: 28px;
  margin-bottom: 0;
}

/* ---------- IDEAS ---------- */
.compass-ideas {
  padding: 110px 0 120px;
}

.compass-ideas-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--paper-line);
  border-top: 1px solid var(--paper-line);
  border-bottom: 1px solid var(--paper-line);
}

.compass-idea {
  padding: 30px 28px;
  background: var(--paper);
}

.compass-idea .number {
  display: block;
  margin-bottom: 20px;
  color: var(--brass);
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  letter-spacing: .08em;
}

.compass-idea h3 {
  font-size: 23px;
  margin-bottom: 10px;
}

.compass-idea p {
  color: var(--muted-on-paper);
  font-size: 15px;
  line-height: 1.65;
}

.compass-ideas-cta {
  margin-top: 54px;
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 900px) {
  .compass-hero-inner {
    grid-template-columns: 1fr;
    gap: 54px;
  }

  .compass-visual {
    max-width: 520px;
  }

  .compass-journey-item {
    grid-template-columns: 70px 1fr;
  }

  .compass-journey-item p {
    grid-column: 2;
  }

  .compass-result-grid,
  .compass-ideas-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  .compass-hero {
    padding-bottom: 72px;
  }

  .compass-meta {
    display: grid;
    grid-template-columns: 1fr;
  }

  .compass-meta span {
    border-right: 0;
    border-bottom: 1px solid var(--ink-line);
  }

  .compass-meta span:last-child {
    border-bottom: 0;
  }

  .compass-visual-card {
    width: 100%;
  }

  .compass-intro,
  .compass-ideas {
    padding: 84px 0 92px;
  }

  .compass-journey-item {
    grid-template-columns: 48px 1fr;
    gap: 16px;
    padding: 25px 0;
  }

  .compass-journey-item h3 {
    font-size: 25px;
  }

  .compass-journey-item p {
    grid-column: 2;
  }

  .compass-start {
    padding: 76px 0;
  }

  .compass-question-page {
    padding: 92px 0 56px;
    min-height: auto;
  }

  .compass-question-top {
    display: block;
  }

  .compass-count {
    display: block;
    margin-top: 8px;
  }

  .compass-progress {
    margin-bottom: 30px;
  }

  .compass-question-shell h1 {
    font-size: clamp(30px, 8vw, 38px);
    max-width: 100%;
  }

  .compass-question-prompt {
    font-size: 15px;
    margin-bottom: 20px;
  }

  .compass-scale {
    gap: 6px;
  }

  .compass-scale button {
    min-height: 56px;
    font-size: 20px;
  }

  .compass-question-actions {
    flex-direction: row;
    align-items: stretch;
    flex-wrap: wrap;
    margin-top: 22px;
  }

  .compass-question-actions .btn,
  .compass-question-actions .compass-back {
    justify-content: center;
  }

  .compass-form-hero,
  .compass-results-hero {
    padding: 126px 0 72px;
  }

  .compass-form-section,
  .compass-results {
    padding: 76px 0 90px;
  }

  .compass-result-card {
    padding: 28px 24px;
  }
}

/* ---------- SHARED NAV DETAILS FOR COMPASS PAGES ---------- */
.nav-student-compass.active {
  color: var(--ink) !important;
  font-weight: 600;
}

.compass-ideas-heading {
  font-size: clamp(34px, 4.3vw, 54px);
  max-width: 15ch;
  margin-top: 18px;
}

.compass-ideas-copy {
  max-width: 62ch;
  color: var(--muted-on-paper);
  font-size: 17px;
  margin-top: 16px;
}

.compass-ideas-button {
  margin-top: 28px;
}


/* ==========================================================
   V4 — SCREEN-FIRST, SINGLE-PAGE COMPASS
   The landing page is one intentional screen. Reflection,
   result and idea screens are compact without clipping.
   ========================================================== */

@media (min-width: 681px) {
  /* ---------- LANDING PAGE ---------- */
  body:has(.compass-landing) {
    overflow-x: hidden;
  }

  body:has(.compass-landing) .compass-landing {
    height: 100svh;
    min-height: 720px;
    padding: 108px 0 28px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
  }

  body:has(.compass-landing) .compass-hero-inner {
    width: 100%;
    flex: 1 1 auto;
    min-height: 0;
    grid-template-columns: minmax(0, 1.08fr) minmax(280px, .72fr);
    gap: 54px;
    align-items: center;
  }

  body:has(.compass-landing) .compass-copy h1 {
    max-width: 11ch;
    font-size: clamp(48px, 5.4vw, 72px);
    line-height: .99;
    margin-bottom: 22px;
  }

  body:has(.compass-landing) .compass-copy .lede {
    max-width: 48ch;
    font-size: 17px;
    line-height: 1.52;
    margin-bottom: 28px;
  }

  body:has(.compass-landing) .compass-hero .eyebrow {
    margin-bottom: 20px;
  }

  body:has(.compass-landing) .compass-hero .cta-row {
    margin-bottom: 22px;
  }

  body:has(.compass-landing) .compass-meta {
    margin-top: 0;
    max-width: 680px;
  }

  body:has(.compass-landing) .compass-meta span {
    padding: 9px 13px;
    font-size: 9px;
  }

  body:has(.compass-landing) .compass-visual {
    min-height: 0;
  }

  body:has(.compass-landing) .compass-visual-card {
    width: min(100%, 340px);
    margin-inline: auto;
  }

  body:has(.compass-landing) .compass-note {
    padding: 13px 15px;
    max-width: 205px;
  }

  body:has(.compass-landing) .compass-note p {
    font-size: 16px;
  }

  /* Compact discovery rail — still prominent, but no longer a second page section. */
  .compass-discovery {
    flex: 0 0 auto;
    display: grid;
    grid-template-columns: minmax(190px, .85fr) repeat(3, minmax(0, 1fr));
    gap: 0;
    border-top: 1px solid var(--ink-line);
    padding-top: 18px;
  }

  .compass-discovery-label {
    padding-right: 28px;
  }

  .compass-discovery-label .eyebrow {
    color: var(--route-soft);
    margin-top: 4px;
  }

  .compass-discovery-item {
    padding: 0 20px;
    border-left: 1px solid var(--ink-line);
  }

  .compass-discovery-number {
    display: block;
    color: var(--brass-soft);
    font-family: 'IBM Plex Mono', monospace;
    font-size: 10px;
    letter-spacing: .08em;
    margin-bottom: 5px;
  }

  .compass-discovery-item h2 {
    color: var(--paper-text);
    font-size: 19px;
    line-height: 1.15;
    margin-bottom: 4px;
  }

  .compass-discovery-item p {
    color: var(--muted-on-ink);
    font-size: 12.5px;
    line-height: 1.35;
    max-width: 25ch;
  }

  /* ---------- REFLECTION QUESTION ---------- */
  .compass-question-page {
    height: 100svh;
    min-height: 680px;
    padding: 88px 0 28px;
    display: flex;
    align-items: center;
  }

  .compass-question-shell {
    width: 100%;
    max-width: 820px;
  }

  .compass-question-top {
    margin-bottom: 8px;
  }

  .compass-progress {
    height: 4px;
    margin-bottom: 22px;
  }

  .compass-question-shell h1 {
    max-width: 32ch;
    font-size: clamp(29px, 3.1vw, 40px);
    line-height: 1.06;
    margin-bottom: 8px;
  }

  .compass-question-prompt {
    max-width: 68ch;
    font-size: 14px;
    line-height: 1.42;
    margin-bottom: 16px;
  }

  .compass-scale-label {
    margin-bottom: 7px;
  }

  .compass-scale {
    max-width: 620px;
    gap: 8px;
  }

  .compass-scale button {
    min-height: 52px;
    font-size: 19px;
  }

  .compass-scale-ends {
    max-width: 620px;
    margin-top: 5px;
    font-size: 10.5px;
  }

  .compass-question-actions {
    margin-top: 14px;
  }

  .compass-question-actions .btn {
    padding: 11px 20px;
    font-size: 13.5px;
  }

  /* ---------- DETAILS ---------- */
  .compass-form-hero {
    min-height: 35svh;
    height: 35svh;
    padding: 92px 0 26px;
    display: flex;
    align-items: center;
  }

  .compass-form-hero .eyebrow {
    margin-bottom: 14px;
  }

  .compass-form-hero h1 {
    font-size: clamp(38px, 4.5vw, 58px);
  }

  .compass-form-hero p {
    font-size: 15px;
    line-height: 1.45;
    margin-top: 14px;
  }

  .compass-form-section {
    height: 49svh;
    min-height: 0;
    padding: 34px 0 28px;
  }

  .compass-form-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
  }

  .compass-field input {
    padding: 12px 14px;
    font-size: 15px;
  }

  .compass-form button[type="submit"] {
    margin-top: 20px !important;
  }

  .compass-form-note {
    margin-top: 14px;
    font-size: 12px;
    line-height: 1.45;
  }

  /* ---------- RESULTS ---------- */
  .compass-results-hero {
    height: 31svh;
    min-height: 0;
    padding: 90px 0 24px;
    display: flex;
    align-items: center;
  }

  .compass-results-hero .eyebrow {
    margin-bottom: 14px;
  }

  .compass-results-hero h1 {
    font-size: clamp(38px, 4.5vw, 58px);
  }

  .compass-results {
    height: 65svh;
    min-height: 0;
    padding: 28px 0 24px;
  }

  .compass-results-intro {
    max-width: 760px;
    margin-bottom: 18px;
    font-size: 14px;
    line-height: 1.4;
  }

  .compass-result-grid {
    gap: 14px;
  }

  .compass-result-card {
    padding: 20px 22px;
  }

  .compass-result-card .eyebrow {
    margin-bottom: 8px;
  }

  .compass-result-card h2 {
    font-size: clamp(23px, 2.6vw, 32px);
    margin-bottom: 7px;
  }

  .compass-result-card p {
    font-size: 13.5px;
    line-height: 1.43;
  }

  .compass-result-next {
    margin-top: 18px;
    padding-top: 16px;
  }

  .compass-result-next h2 {
    font-size: 25px;
    margin-bottom: 5px;
  }

  .compass-result-next p {
    font-size: 13.5px;
    line-height: 1.42;
  }

  .compass-inline-cta {
    margin-top: 12px;
  }

  /* ---------- IDEAS ---------- */
  .compass-ideas {
    height: 65svh;
    min-height: 0;
    padding: 28px 0 24px;
  }

  .compass-ideas-grid {
    gap: 0;
  }

  .compass-idea {
    padding: 20px 22px;
  }

  .compass-idea .number {
    margin-bottom: 8px;
  }

  .compass-idea h3 {
    font-size: 20px;
    margin-bottom: 6px;
  }

  .compass-idea p {
    font-size: 13px;
    line-height: 1.42;
  }

  .compass-ideas-cta {
    margin-top: 18px;
    padding-top: 16px;
  }

  .compass-ideas-heading {
    font-size: clamp(25px, 3vw, 36px);
    margin-top: 7px;
  }

  .compass-ideas-copy {
    font-size: 13.5px;
    line-height: 1.42;
    margin-top: 7px;
  }

  .compass-ideas-button {
    margin-top: 12px;
  }
}

/* Very short desktop viewports: tighten without clipping. */
@media (min-width: 681px) and (max-height: 820px) {
  body:has(.compass-landing) .compass-landing {
    padding-top: 92px;
    padding-bottom: 20px;
  }

  body:has(.compass-landing) .compass-copy h1 {
    font-size: clamp(42px, 5vw, 60px);
    margin-bottom: 16px;
  }

  body:has(.compass-landing) .compass-copy .lede {
    font-size: 15px;
    margin-bottom: 20px;
  }

  body:has(.compass-landing) .compass-visual-card {
    width: min(100%, 285px);
  }

  .compass-question-page {
    padding-top: 78px;
    padding-bottom: 20px;
  }
}

@media (max-width: 680px) {
  /* Mobile keeps natural scrolling only when the physical viewport requires it. */
  .compass-landing {
    padding-top: 96px;
  }

  .compass-discovery {
    margin-top: 36px;
    border-top: 1px solid var(--ink-line);
    padding-top: 18px;
  }

  .compass-discovery-item {
    border-left: 0;
    border-top: 1px solid var(--ink-line);
    padding: 14px 0 0;
    margin-top: 14px;
  }

  .compass-discovery-item h2 {
    font-size: 20px;
  }

  .compass-question-page {
    min-height: calc(100svh - 64px);
    padding-top: 82px;
  }
}

/* ==========================================================
   V5 — CALMER HEROES FOR RESULT / DETAILS / IDEAS SCREENS
   Keep each screen intentional and fully contained.
   ========================================================== */
@media (min-width: 681px) {
  .compass-form-hero,
  .compass-results-hero {
    text-align: left;
    display: flex;
    align-items: center;
    box-sizing: border-box;
  }

  .compass-form-hero .wrap,
  .compass-results-hero .wrap {
    width: 100%;
    text-align: left;
  }

  .compass-form-hero h1,
  .compass-results-hero h1 {
    margin-left: 0;
    margin-right: auto;
  }

  /* DETAILS: give the hero enough room for the heading + explanation,
     then keep the form comfortably inside the remaining viewport. */
  .compass-form-hero {
    height: 37svh;
    min-height: 292px;
    padding: 92px 0 34px;
  }

  .compass-form-hero .eyebrow {
    margin-bottom: 14px;
  }

  .compass-form-hero h1 {
    max-width: 12ch;
    font-size: clamp(40px, 4.5vw, 58px);
    line-height: 1.02;
  }

  .compass-form-hero p {
    max-width: 62ch;
    font-size: 16px;
    line-height: 1.48;
    margin-top: 14px;
  }

  .compass-form-section {
    height: 59svh;
    min-height: 0;
    padding: 38px 0 28px;
  }

  .compass-form-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
  }

  .compass-field label {
    margin-bottom: 7px;
  }

  .compass-field input {
    padding: 12px 14px;
    font-size: 15px;
  }

  .compass-form button[type="submit"] {
    margin-top: 22px !important;
  }

  .compass-form-note {
    max-width: 900px;
    margin-top: 14px;
    font-size: 12.5px;
    line-height: 1.48;
  }

  /* RESULTS: left-aligned editorial hero, with the complete reflection
     comfortably contained in the paper section below. */
  .compass-results-hero {
    height: 36svh;
    min-height: 286px;
    padding: 92px 0 30px;
  }

  .compass-results-hero .eyebrow {
    margin-bottom: 14px;
  }

  .compass-results-hero h1 {
    max-width: 15ch;
    font-size: clamp(40px, 4.6vw, 60px);
    line-height: 1.03;
  }

  .compass-results {
    height: 60svh;
    min-height: 0;
    padding: 30px 0 24px;
  }

  .compass-results-intro {
    max-width: 820px;
    margin-bottom: 18px;
    font-size: 14.5px;
    line-height: 1.42;
  }

  .compass-result-grid {
    gap: 18px;
  }

  .compass-result-card {
    padding: 22px 24px;
  }

  .compass-result-card .eyebrow {
    margin-bottom: 8px;
  }

  .compass-result-card h2 {
    font-size: clamp(24px, 2.7vw, 34px);
    line-height: 1.1;
    margin-bottom: 7px;
  }

  .compass-result-card p {
    font-size: 13.5px;
    line-height: 1.45;
  }

  .compass-result-next {
    margin-top: 20px;
    padding-top: 17px;
  }

  .compass-result-next h2 {
    font-size: 26px;
    margin-bottom: 5px;
  }

  .compass-result-next p {
    max-width: 72ch;
    font-size: 13.5px;
    line-height: 1.45;
  }

  .compass-inline-cta {
    margin-top: 13px;
  }

  /* IDEAS: same hero treatment as Results, with the editorial cards
     and Launchpad CTA contained in the remaining viewport. */
  .compass-ideas {
    height: 60svh;
    min-height: 0;
    padding: 30px 0 24px;
  }

  .compass-ideas-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .compass-idea {
    padding: 20px 22px;
  }

  .compass-idea .number {
    margin-bottom: 8px;
  }

  .compass-idea h3 {
    font-size: 21px;
    line-height: 1.2;
    margin-bottom: 6px;
  }

  .compass-idea p {
    font-size: 13.5px;
    line-height: 1.45;
  }

  .compass-ideas-cta {
    margin-top: 20px;
    padding-top: 17px;
  }

  .compass-ideas-heading {
    font-size: clamp(26px, 3vw, 38px);
    line-height: 1.08;
    margin-top: 7px;
  }

  .compass-ideas-copy {
    max-width: 72ch;
    font-size: 13.5px;
    line-height: 1.45;
    margin-top: 7px;
  }

  .compass-ideas-button {
    margin-top: 13px;
  }
}

/* Short desktop screens: preserve containment without shrinking the
   editorial type into something that feels like a form. */
@media (min-width: 681px) and (max-height: 820px) {
  .compass-form-hero {
    height: 38svh;
    min-height: 286px;
    padding-top: 82px;
  }

  .compass-form-section {
    height: 58svh;
    padding-top: 30px;
  }

  .compass-results-hero {
    height: 37svh;
    min-height: 280px;
    padding-top: 82px;
  }

  .compass-results {
    height: 59svh;
    padding-top: 24px;
  }

  .compass-ideas {
    height: 59svh;
    padding-top: 24px;
  }
}


/* ==========================================================
   V6 — CLEAN SCREEN COMPOSITION
   Keep editorial heroes fully contained and place final CTAs
   beside their supporting copy so they remain visible.
   ========================================================== */
@media (min-width: 681px) {
  /* Let the hero size itself from its content instead of clipping
     copy against a fixed viewport percentage. */
  .compass-form-hero,
  .compass-results-hero {
    height: auto;
    min-height: 360px;
    box-sizing: border-box;
    padding: 104px 0 46px;
    display: flex;
    align-items: center;
    overflow: hidden;
  }

  .compass-form-hero .wrap,
  .compass-results-hero .wrap {
    width: 100%;
  }

  .compass-form-hero h1,
  .compass-results-hero h1 {
    max-width: 15ch;
    font-size: clamp(42px, 4.6vw, 60px);
    line-height: 1.02;
    margin-left: 0;
    margin-right: auto;
  }

  .compass-form-hero p,
  .compass-results-hero p {
    max-width: 62ch;
  }

  .compass-results-hero > .wrap > p,
  .compass-results-hero > .wrap .hero-copy {
    color: var(--muted-on-ink);
  }

  /* Results: copy on the left, CTA on the right. */
  .compass-result-next {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    column-gap: 52px;
    align-items: end;
  }

  .compass-result-next-copy {
    min-width: 0;
  }

  .compass-inline-cta {
    grid-column: 2;
    grid-row: 1;
    margin: 0;
    align-self: end;
    white-space: nowrap;
  }

  /* Ideas: copy on the left, Launchpad CTA on the right. */
  .compass-ideas-cta {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    column-gap: 52px;
    align-items: end;
  }

  .compass-ideas-cta-copy {
    min-width: 0;
  }

  .compass-ideas-button {
    margin: 0;
    white-space: nowrap;
    align-self: end;
  }

  /* Give the ideas page enough hero room for its supporting sentence. */
  .compass-ideas {
    min-height: calc(100svh - 360px);
    height: auto;
    box-sizing: border-box;
  }
}

@media (min-width: 681px) and (max-height: 820px) {
  .compass-form-hero,
  .compass-results-hero {
    min-height: 350px;
    padding-top: 88px;
    padding-bottom: 38px;
  }

  .compass-form-hero h1,
  .compass-results-hero h1 {
    font-size: clamp(40px, 4.3vw, 54px);
  }

  .compass-results,
  .compass-ideas {
    height: auto;
    min-height: calc(100svh - 350px);
  }
}

/* ---------- LEAD SUBMISSION ---------- */
.compass-form button[type="submit"]:disabled {
  opacity: .62;
  cursor: wait;
}
.compass-form [data-lead-status]:empty {
  display: none;
}
.compass-form [data-lead-status] {
  margin-top: 18px;
}
