@font-face {
  font-family: "PFG Oswald";
  src: url("/assets/fonts/oswald-bold.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}

@font-face {
  font-family: "PFG Lora";
  src: url("/assets/fonts/lora-regular.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}

:root {
  --cream: #fffef4;
  --cream-2: #f6f0e5;
  --charcoal: #323231;
  --charcoal-2: #242423;
  --gold: #97764f;
  --gold-dark: #75583a;
  --line: rgba(50, 50, 49, 0.16);
  --line-light: rgba(255, 254, 244, 0.18);
  --muted: #6d675f;
  --red: #c74732;
  --yellow: #c6902f;
  --green: #2d7d46;
  --shadow: 0 18px 44px rgba(24, 24, 22, 0.16);
  --radius: 8px;
  --heading: "PFG Oswald", Impact, sans-serif;
  --body: "PFG Lora", Georgia, serif;
  --topo: url("/assets/images/pfg-topographic.svg");
}

* {
  box-sizing: border-box;
}

html {
  background: var(--charcoal-2);
  color: var(--cream);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body {
  min-height: 100vh;
  margin: 0;
  background: var(--charcoal-2);
  color: var(--cream);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.55;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.48;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

h1,
h2,
h3,
.eyebrow,
.button,
.small-label,
.step-chip,
.status-button,
.item-number,
.handoff-label,
.review-block span,
.date-line {
  font-family: var(--heading);
  font-weight: 700;
  letter-spacing: 0.045em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1,
h2,
h3,
p {
  margin: 0;
}

a {
  color: inherit;
}

.app-shell {
  min-height: 100vh;
  background:
    linear-gradient(180deg, rgba(36, 36, 35, 0.98), rgba(50, 50, 49, 0.96)),
    var(--topo) center top / cover fixed;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid var(--line-light);
  background: rgba(36, 36, 35, 0.9);
  backdrop-filter: blur(12px);
}

.header-inner {
  display: flex;
  width: min(100%, 1180px);
  min-height: 70px;
  margin: 0 auto;
  padding: 12px 24px;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand-link {
  display: inline-flex;
  align-items: center;
}

.logo {
  width: auto;
  height: 40px;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.shell-main {
  width: min(100%, 1120px);
  margin: 0 auto;
  padding: 28px 24px 72px;
}

.shell-main-flush {
  width: 100%;
  padding: 0;
}

.hero {
  display: grid;
  min-height: calc(100vh - 70px);
  padding: 48px 24px;
  place-items: center;
  background:
    linear-gradient(90deg, rgba(36, 36, 35, 0.98), rgba(50, 50, 49, 0.88)),
    var(--topo) center / cover;
}

.hero-content {
  width: min(100%, 1040px);
}

.hero-logo {
  width: 196px;
  margin-bottom: 56px;
}

.eyebrow {
  color: var(--gold);
  font-size: 0.82rem;
}

.hero h1,
.results-hero h1 {
  max-width: 920px;
  margin-top: 12px;
  font-size: clamp(3rem, 10vw, 7.3rem);
  line-height: 0.9;
}

.hero-copy {
  max-width: 650px;
  margin-top: 24px;
  color: rgba(255, 254, 244, 0.82);
  font-size: clamp(1.05rem, 2vw, 1.35rem);
}

.hero-actions,
.results-actions,
.step-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-actions {
  margin-top: 34px;
}

.button,
.icon-button {
  display: inline-flex;
  min-height: 46px;
  padding: 12px 18px;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: var(--radius);
  text-decoration: none;
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    background-color 160ms ease;
}

.button:hover,
.icon-button:hover {
  transform: translateY(-1px);
}

.button-primary {
  background: var(--gold);
  color: var(--cream);
}

.button-ghost,
.icon-button {
  border-color: rgba(255, 254, 244, 0.24);
  background: transparent;
  color: var(--cream);
}

.wide-action {
  width: 100%;
  margin-top: 24px;
}

.progress-card,
.panel,
.results-hero,
.result-section {
  border: 1px solid var(--line-light);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.progress-card {
  display: grid;
  gap: 18px;
  margin-bottom: 18px;
  padding: 22px;
  background: rgba(255, 254, 244, 0.055);
}

.progress-card h2 {
  margin-top: 4px;
  font-size: clamp(2rem, 5vw, 3.4rem);
  line-height: 0.96;
}

.progress-meta {
  display: grid;
  gap: 8px;
  color: rgba(255, 254, 244, 0.76);
}

.progress-meta span {
  font-family: var(--heading);
  font-size: 0.8rem;
  letter-spacing: 0.045em;
  text-transform: uppercase;
}

.progress-track {
  overflow: hidden;
  height: 7px;
  border-radius: 999px;
  background: rgba(255, 254, 244, 0.12);
}

.progress-track span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--gold);
}

.step-nav {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(96px, 1fr));
  gap: 8px;
}

.step-chip {
  min-height: 38px;
  padding: 8px;
  border: 1px solid rgba(255, 254, 244, 0.18);
  border-radius: var(--radius);
  background: rgba(255, 254, 244, 0.06);
  color: rgba(255, 254, 244, 0.76);
  font-size: 0.72rem;
}

.step-chip.is-active {
  border-color: var(--gold);
  color: var(--cream);
}

.panel {
  padding: clamp(22px, 5vw, 46px);
  background: var(--cream);
  color: var(--charcoal);
}

.loading-panel {
  display: grid;
  min-height: 380px;
  place-content: center;
  text-align: center;
}

.step-heading,
.section-heading {
  display: grid;
  gap: 8px;
  margin-bottom: 24px;
}

.step-heading h2,
.section-heading h2 {
  font-size: clamp(2rem, 5vw, 4rem);
  line-height: 0.95;
}

.form-grid {
  display: grid;
  gap: 18px;
}

.step-intro {
  max-width: 680px;
  margin: -8px 0 24px;
  color: var(--muted);
}

.form-grid.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.field {
  display: grid;
  gap: 7px;
}

.field span,
.small-label {
  color: var(--gold-dark);
  font-family: var(--heading);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #ffffff;
  color: var(--charcoal);
  outline: none;
}

input,
select {
  min-height: 48px;
  padding: 10px 52px 10px 12px;
  -webkit-appearance: none;
  appearance: none;
  background-image:
    url("data:image/svg+xml,%3Csvg width='18' height='18' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M7 10L12 15L17 10' stroke='%2397764F' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"),
    linear-gradient(to left, rgba(151, 118, 79, 0.12) 0 44px, transparent 44px);
  background-position:
    right 13px center,
    right center;
  background-repeat: no-repeat;
  background-size:
    18px 18px,
    100% 100%;
}

textarea {
  min-height: 132px;
  padding: 12px;
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(151, 118, 79, 0.14);
}

.rule {
  height: 1px;
  margin: 28px 0;
  background: var(--line);
}

.rating-list,
.intention-list {
  display: grid;
  gap: 14px;
}

.rating-item {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(290px, 390px);
  gap: 18px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.66);
}

.rating-copy {
  display: grid;
  gap: 8px;
  align-content: start;
}

.rating-copy p {
  font-weight: 700;
}

.item-number {
  color: var(--gold);
  font-size: 0.8rem;
}

.rating-buttons {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  align-self: center;
}

.status-button {
  min-height: 72px;
  padding: 9px;
  border: 1px solid rgba(50, 50, 49, 0.12);
  border-radius: var(--radius);
  background: #ffffff;
  color: var(--charcoal);
  text-align: left;
}

.status-button span,
.status-button em {
  display: block;
}

.status-button em {
  margin-top: 3px;
  color: var(--muted);
  font-family: var(--body);
  font-size: 0.75rem;
  font-style: normal;
  letter-spacing: 0;
  text-transform: none;
}

.status-button.is-selected {
  border-color: var(--status-color);
  box-shadow: inset 0 0 0 2px var(--status-color);
}

.status-dot {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 10px;
  height: 10px;
  border-radius: 999px;
}

.prompt-columns,
.reflection-grid,
.results-grid {
  display: grid;
  gap: 18px;
}

.prompt-columns,
.reflection-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.prompt-columns {
  gap: 24px;
}

.prompt-group {
  display: grid;
  gap: 19px;
  align-content: start;
}

.prompt-group h3 {
  margin-bottom: 2px;
  color: var(--charcoal);
  font-size: 1.2rem;
}

.basics-list .small-label,
.prompt-group .field span,
.intention-list .field span {
  font-size: 1.18rem;
  line-height: 1.34;
  letter-spacing: 0.025em;
}

.prompt-group textarea,
.intention-list textarea {
  font-size: 1.12rem;
  line-height: 1.65;
}

.basics-list .rating-copy p {
  font-size: 1.04rem;
  line-height: 1.45;
}

.error-box {
  display: grid;
  gap: 6px;
  margin-top: 20px;
  padding: 14px 16px;
  border-left: 5px solid var(--red);
  background: rgba(199, 71, 50, 0.1);
  color: var(--charcoal);
}

.quiet-note {
  margin-top: 16px;
  color: var(--muted);
}

.step-actions {
  justify-content: space-between;
  margin-top: 18px;
}

.review-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.review-block {
  display: grid;
  gap: 8px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #ffffff;
}

.review-block span {
  color: var(--gold-dark);
  font-size: 0.72rem;
}

.review-block strong {
  font-weight: 400;
}

.results-hero {
  display: grid;
  gap: 16px;
  padding: clamp(26px, 6vw, 54px);
  background: var(--cream);
  color: var(--charcoal);
}

.results-hero h1 {
  color: var(--charcoal);
}

.results-hero p {
  max-width: 760px;
  color: var(--muted);
}

.date-line {
  color: var(--gold-dark) !important;
  font-size: 0.85rem;
}

.results-actions {
  margin-top: 12px;
}

.results-actions .button-ghost {
  border-color: var(--line);
  color: var(--charcoal);
}

.results-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 18px;
}

.result-section {
  padding: clamp(20px, 4vw, 34px);
  background: var(--cream);
  color: var(--charcoal);
}

.result-section-wide {
  grid-column: 1 / -1;
}

.vitals-dashboard-section {
  grid-column: 1 / -1;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.compact-list,
.answer-list {
  display: grid;
  gap: 12px;
}

.result-rating {
  display: grid;
  grid-template-columns: 10px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
}

.result-rating span {
  width: 10px;
  height: 10px;
  margin-top: 7px;
  border-radius: 999px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

.vitals-dashboard {
  overflow: hidden;
  padding: clamp(24px, 4vw, 38px);
  border: 1px solid rgba(255, 254, 244, 0.14);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(151, 118, 79, 0.14), rgba(50, 50, 49, 0) 34%),
    var(--charcoal);
  color: var(--cream);
  box-shadow: var(--shadow);
}

.vitals-dashboard-eyebrow,
.vitals-dashboard-title,
.vitals-zone-label,
.vital-dashboard-name,
.vital-dashboard-status strong,
.vitals-dashboard-legend span {
  font-family: var(--heading);
  letter-spacing: 0.055em;
  text-transform: uppercase;
}

.vitals-dashboard-eyebrow {
  color: var(--gold);
  font-size: 0.78rem;
}

.vitals-dashboard-title {
  margin-top: 6px;
  color: var(--cream);
  font-size: clamp(2.3rem, 5vw, 3.7rem);
  line-height: 1.08;
}

.vitals-dashboard-subtitle {
  max-width: 720px;
  margin-top: 12px;
  color: rgba(255, 254, 244, 0.62);
  font-size: 1.04rem;
  line-height: 1.55;
}

.vitals-pulse {
  position: relative;
  overflow: hidden;
  height: 2px;
  margin: 30px 0 26px;
  border-radius: 999px;
  background: rgba(151, 118, 79, 0.2);
}

.vitals-pulse::after {
  position: absolute;
  inset: 0 auto 0 0;
  width: 60%;
  border-radius: inherit;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  animation: vitalsSweep 3s ease-in-out infinite;
  content: "";
}

@keyframes vitalsSweep {
  from {
    transform: translateX(-100%);
  }

  to {
    transform: translateX(250%);
  }
}

.vitals-zone {
  margin-top: 24px;
}

.vitals-zone-label {
  margin-bottom: 14px;
  padding-bottom: 9px;
  border-bottom: 1px solid rgba(151, 118, 79, 0.18);
  color: rgba(255, 254, 244, 0.84);
  font-size: clamp(1.05rem, 2.2vw, 1.22rem);
  line-height: 1.24;
}

.vitals-dashboard-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 12px;
}

.vital-dashboard-card {
  position: relative;
  overflow: hidden;
  min-height: 124px;
  padding: 17px 18px 15px;
  border: 1px solid rgba(151, 118, 79, 0.14);
  border-radius: var(--radius);
  background: rgba(255, 254, 244, 0.055);
}

.vital-dashboard-card::before {
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: var(--status-color);
  content: "";
}

.vital-dashboard-card.is-green {
  --status-color: var(--green);
  --status-soft: #70bd8a;
}

.vital-dashboard-card.is-yellow {
  --status-color: var(--yellow);
  --status-soft: #dfb758;
}

.vital-dashboard-card.is-red {
  --status-color: var(--red);
  --status-soft: #df6d5b;
}

.vital-dashboard-name {
  color: rgba(255, 254, 244, 0.86);
  font-size: 1.02rem;
  line-height: 1.24;
}

.vital-dashboard-status {
  display: flex;
  gap: 7px;
  margin-top: 10px;
  align-items: center;
}

.vital-dashboard-status span,
.vitals-dashboard-legend i {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--status-color);
  box-shadow: 0 0 8px color-mix(in srgb, var(--status-color) 50%, transparent);
}

.vital-dashboard-status strong {
  color: var(--status-soft);
  font-size: 1.04rem;
}

.vital-waveform {
  width: 100%;
  height: 32px;
  margin-top: 14px;
}

.vital-waveform polyline {
  fill: none;
  stroke: var(--status-color);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
  opacity: 0.72;
}

.vitals-dashboard-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 22px;
  padding-top: 16px;
  border-top: 1px solid rgba(151, 118, 79, 0.16);
}

.vitals-dashboard-legend span {
  display: inline-flex;
  gap: 7px;
  align-items: center;
  color: rgba(255, 254, 244, 0.72);
  font-size: 0.92rem;
}

.vitals-dashboard-legend .is-green {
  --status-color: var(--green);
}

.vitals-dashboard-legend .is-yellow {
  --status-color: var(--yellow);
}

.vitals-dashboard-legend .is-red {
  --status-color: var(--red);
}

.answer-block {
  display: grid;
  gap: 6px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.answer-block span {
  color: var(--gold-dark);
  font-family: var(--heading);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.answer-block p {
  white-space: pre-wrap;
}

.intention-answer-list {
  gap: 20px;
}

.intention-answer-list .answer-block {
  gap: 12px;
  padding-bottom: 22px;
}

.intention-answer-list .answer-block span {
  color: var(--gold-dark);
  font-size: clamp(1.08rem, 1.6vw, 1.24rem);
  line-height: 1.35;
  letter-spacing: 0.018em;
}

.intention-answer-list .answer-block p {
  color: var(--charcoal);
  font-size: clamp(1.08rem, 1.4vw, 1.2rem);
  line-height: 1.65;
}

.reflection-grid {
  gap: 24px;
}

.reflection-grid > div {
  display: grid;
  gap: 14px;
  align-content: start;
}

.reflection-grid h3 {
  margin-bottom: 2px;
  font-size: 1.35rem;
}

.reflection-grid .answer-block {
  gap: 10px;
  padding-bottom: 16px;
}

.reflection-grid .answer-block span {
  color: var(--gold-dark);
  font-size: clamp(1.08rem, 1.6vw, 1.24rem);
  line-height: 1.35;
  letter-spacing: 0.018em;
}

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

.handoff-grid > div {
  display: grid;
  gap: 8px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #ffffff;
}

.handoff-label {
  color: var(--gold-dark);
  font-size: 0.74rem;
}

.member-card {
  border-color: rgba(255, 254, 244, 0.18);
  background:
    linear-gradient(135deg, rgba(151, 118, 79, 0.13), rgba(36, 36, 35, 0)),
    var(--charcoal);
  color: var(--cream);
}

.member-card .section-heading h2 {
  color: var(--cream);
}

.member-card .handoff-grid > div {
  border-color: rgba(255, 254, 244, 0.18);
  background: rgba(255, 254, 244, 0.07);
}

.member-card .handoff-label {
  color: var(--gold);
}

.member-card .quiet-note {
  color: rgba(255, 254, 244, 0.72);
}

.benediction-card {
  position: relative;
  overflow: hidden;
  max-width: 980px;
  margin: 30px auto 0;
  padding: clamp(26px, 5vw, 52px);
  border: 1px solid rgba(151, 118, 79, 0.32);
  border-radius: var(--radius);
  background: var(--cream);
  color: var(--charcoal);
  box-shadow: var(--shadow);
}

.benediction-card::before {
  position: absolute;
  inset: 0 0 auto;
  height: 8px;
  background: var(--gold);
  content: "";
}

.benediction-card blockquote {
  margin: 0;
  color: var(--charcoal);
  font-family: var(--body);
  font-size: clamp(1.08rem, 2vw, 1.45rem);
  font-style: italic;
  font-weight: 700;
  line-height: 1.75;
}

.benediction-attribution {
  display: grid;
  gap: 4px;
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.benediction-attribution strong {
  color: var(--charcoal);
  font-family: var(--heading);
  font-size: 1.24rem;
  letter-spacing: 0.055em;
  text-transform: uppercase;
}

.benediction-attribution span {
  color: var(--gold-dark);
  font-family: var(--body);
  font-size: 1.02rem;
  font-style: italic;
}

.benediction-cta {
  display: inline-flex;
  width: fit-content;
  min-height: 46px;
  margin-top: 24px;
  padding: 13px 18px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--gold);
  border-radius: var(--radius);
  background: var(--gold);
  color: var(--cream);
  font-family: var(--heading);
  font-size: 0.96rem;
  letter-spacing: 0.055em;
  text-decoration: none;
  text-transform: uppercase;
}

.benediction-cta:hover {
  background: var(--charcoal);
  border-color: var(--charcoal);
}

.copy-helper {
  position: absolute;
  left: -9999px;
}

@media (max-width: 900px) {
  .step-nav,
  .form-grid.two,
  .prompt-columns,
  .reflection-grid,
  .results-grid,
  .review-grid,
  .handoff-grid {
    grid-template-columns: 1fr;
  }

  .rating-item {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 620px) {
  .header-inner,
  .shell-main {
    padding-right: 16px;
    padding-left: 16px;
  }

  .hero {
    padding: 36px 16px;
    align-items: start;
  }

  .hero-logo {
    width: 160px;
    margin-bottom: 44px;
  }

  .hero-actions,
  .results-actions,
  .step-actions {
    display: grid;
  }

  .button,
  .icon-button {
    width: 100%;
  }

  .rating-buttons {
    grid-template-columns: 1fr;
  }

  .vitals-dashboard {
    padding: 20px;
  }

  .vitals-dashboard-grid {
    grid-template-columns: 1fr;
  }

  .vitals-dashboard-legend {
    display: grid;
    gap: 10px;
  }

  .status-button {
    min-height: 58px;
  }
}
