:root {
  color-scheme: light;
  --brand-sky: #d8eaf7;
  --brand-gray: #8f949a;
  --brand-brown: #c8a07a;
  --brand-ivory: #faf6ee;
  --brand-dusty: #afcfdf;
  --navy-950: #3f4a52;
  --navy-900: #596b76;
  --navy-800: #708691;
  --ink: #414950;
  --muted: #737a80;
  --cream: var(--brand-ivory);
  --paper: #fffdfa;
  --gold: var(--brand-brown);
  --gold-light: #ead3bc;
  --gold-pale: #f6e9dc;
  --sage: #547665;
  --sage-pale: #eaf2ed;
  --rose: #955363;
  --rose-pale: #f7e9ec;
  --blue-pale: var(--brand-sky);
  --line: #cbd6db;
  --shadow: 0 28px 90px rgba(89, 107, 118, .16);
  --radius-lg: 30px;
  --radius-md: 20px;
  --radius-sm: 12px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  color: var(--ink);
  background:
    radial-gradient(circle at 9% 5%, rgba(200, 160, 122, .2), transparent 31rem),
    radial-gradient(circle at 94% 35%, rgba(175, 207, 223, .28), transparent 34rem),
    var(--cream);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.55;
}

button, textarea { font: inherit; }

button, a { -webkit-tap-highlight-color: transparent; }

a { color: inherit; }

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  transform: translateY(-160%);
  padding: .7rem 1rem;
  color: white;
  background: var(--navy-950);
  border-radius: 999px;
  font-weight: 800;
}

.skip-link:focus { transform: translateY(0); }

.page-shell {
  width: min(1220px, calc(100% - 32px));
  margin: 26px auto;
  overflow: hidden;
  background: var(--paper);
  border: 1px solid rgba(12, 32, 49, .08);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 32px clamp(24px, 5vw, 68px) clamp(48px, 7vw, 82px);
  color: var(--ink);
  background:
    linear-gradient(128deg, rgba(216, 234, 247, .98), rgba(250, 246, 238, .95) 58%, rgba(175, 207, 223, .88));
}

.hero::before,
.hero::after {
  position: absolute;
  z-index: -1;
  content: "";
  border: 1px solid rgba(200, 160, 122, .38);
  border-radius: 50%;
}

.hero::before {
  width: 410px;
  height: 410px;
  right: -135px;
  top: -190px;
  box-shadow: 0 0 0 44px rgba(200, 160, 122, .07), 0 0 0 88px rgba(175, 207, 223, .11);
}

.hero::after {
  width: 180px;
  height: 180px;
  left: 44%;
  bottom: -138px;
}

.brand {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: clamp(44px, 7vw, 78px);
}

.brand-identity { display: flex; align-items: center; gap: 12px; }

.brand-mark {
  position: relative;
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid rgba(200, 160, 122, .72);
  border-radius: 50%;
}

.brand-mark::before,
.brand-mark::after {
  position: absolute;
  content: "";
  background: var(--brand-brown);
  border-radius: 4px;
}

.brand-mark::before { width: 3px; height: 22px; }
.brand-mark::after { width: 15px; height: 3px; top: 14px; }

.brand strong,
.brand small { display: block; }
.brand strong { font-family: Georgia, "Times New Roman", serif; font-size: 1.02rem; letter-spacing: .015em; }
.brand small { color: #687178; font-size: .73rem; letter-spacing: .05em; text-transform: uppercase; }

.return-link {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: .65rem .9rem;
  color: #46535b;
  background: rgba(255, 253, 250, .78);
  border: 1px solid rgba(89, 107, 118, .24);
  border-radius: 999px;
  font-size: .76rem;
  font-weight: 800;
  text-decoration: none;
  transition: transform .18s ease, border-color .18s ease, background .18s ease;
}

.return-link:hover { transform: translateY(-2px); background: white; border-color: var(--brand-brown); }

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, .65fr);
  gap: clamp(32px, 7vw, 92px);
  align-items: end;
}

.eyebrow,
.section-number,
.support-kicker {
  margin: 0 0 13px;
  color: #956f4e;
  font-size: .74rem;
  font-weight: 850;
  letter-spacing: .15em;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 780px;
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3.1rem, 8vw, 6.6rem);
  font-weight: 400;
  letter-spacing: -.052em;
  line-height: .9;
}

.hero-lede {
  max-width: 680px;
  margin: 28px 0 0;
  color: #5f686f;
  font-size: clamp(1.03rem, 2vw, 1.22rem);
}

.version-pill {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-top: 24px;
  padding: .45rem .7rem .45rem .48rem;
  color: #4d585f;
  background: rgba(255, 253, 250, .54);
  border: 1px solid rgba(89, 107, 118, .2);
  border-radius: 999px;
  font-size: .78rem;
  font-weight: 750;
}

.version-pill span {
  padding: .22rem .45rem;
  color: #403a35;
  background: var(--brand-brown);
  border-radius: 999px;
  font-size: .68rem;
  letter-spacing: .08em;
}

.hero-quote {
  margin: 0;
  padding: 24px 0 5px 24px;
  border-left: 1px solid rgba(200, 160, 122, .75);
}

.hero-quote p {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.35rem, 3vw, 2.1rem);
  line-height: 1.24;
}

.hero-quote footer {
  margin-top: 15px;
  color: #747c82;
  font-size: .78rem;
  font-weight: 750;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.reflection-panel,
.journey,
.guardrails { padding: clamp(34px, 6vw, 74px) clamp(24px, 6vw, 76px); }

.reflection-panel { border-bottom: 1px solid var(--line); }

.panel-heading,
.journey-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 30px;
}

.section-number { color: var(--gold); }

.panel-heading h2,
.journey-heading h2,
.guardrails h2 {
  margin: 0;
  color: var(--navy-950);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 4.6vw, 3.45rem);
  font-weight: 400;
  letter-spacing: -.035em;
  line-height: 1.06;
}

.panel-heading > div > p:last-child {
  margin: 12px 0 0;
  color: var(--muted);
}

.private-note {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 7px;
  padding: .55rem .8rem;
  color: var(--sage);
  background: var(--sage-pale);
  border-radius: 999px;
  font-size: .78rem;
  font-weight: 800;
}

.field-wrap label {
  display: block;
  margin-bottom: 8px;
  color: var(--navy-900);
  font-size: .82rem;
  font-weight: 850;
  letter-spacing: .08em;
  text-transform: uppercase;
}

textarea {
  display: block;
  width: 100%;
  min-height: 146px;
  resize: vertical;
  padding: 20px 22px;
  color: var(--ink);
  background: #fff;
  border: 1px solid #c8c1b2;
  border-radius: var(--radius-md);
  outline: none;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.12rem, 2.1vw, 1.35rem);
  line-height: 1.5;
  transition: border-color .2s ease, box-shadow .2s ease;
}

textarea::placeholder { color: #9ba2a5; }
textarea:focus { border-color: var(--gold); box-shadow: 0 0 0 4px rgba(189, 139, 47, .13); }
textarea[aria-invalid="true"] { border-color: var(--rose); }

.field-meta {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 8px;
  color: var(--muted);
  font-size: .78rem;
}

.quick-submit-row {
  margin-top: 18px;
}

.quick-submit-row .primary-button {
  width: 100%;
  min-height: 60px;
  border-radius: var(--radius-sm);
  font-size: 1rem;
}

.examples {
  display: grid;
  grid-template-columns: minmax(190px, .32fr) minmax(0, 1fr);
  gap: 28px;
  align-items: start;
  margin-top: 34px;
  padding: 28px;
  background: #f4f0e7;
  border-radius: var(--radius-md);
}

.examples h3 { margin: 0; color: var(--navy-900); font-size: 1rem; }
.examples p { margin: 6px 0 0; color: var(--muted); font-size: .82rem; }

.thought-chips { display: flex; flex-wrap: wrap; gap: 9px; }

.thought-chip {
  padding: .62rem .86rem;
  color: var(--navy-800);
  background: var(--paper);
  border: 1px solid #d6cebf;
  border-radius: 999px;
  cursor: pointer;
  font-size: .83rem;
  font-weight: 700;
  text-align: left;
  transition: transform .18s ease, border-color .18s ease, background .18s ease;
}

.thought-chip:hover,
.thought-chip:focus-visible { transform: translateY(-2px); background: #fff; border-color: var(--gold); }

.submit-row {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-top: 28px;
}

.primary-button,
.secondary-button,
.text-button { cursor: pointer; }

.primary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  min-height: 54px;
  padding: .78rem 1rem .78rem 1.25rem;
  color: #352f2a;
  background: var(--brand-brown);
  border: 0;
  border-radius: 999px;
  font-weight: 820;
  box-shadow: 0 10px 28px rgba(143, 148, 154, .2);
  transition: transform .18s ease, background .18s ease, box-shadow .18s ease;
}

.primary-button:hover:not(:disabled) { transform: translateY(-2px); background: #b98f68; box-shadow: 0 14px 30px rgba(143, 148, 154, .26); }
.primary-button:disabled { cursor: wait; opacity: .72; }

.button-arrow {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  color: #3f4a52;
  background: var(--brand-ivory);
  border-radius: 50%;
  font-size: 1.15rem;
}

.processing-note { max-width: 410px; margin: 0; color: var(--muted); font-size: .76rem; }
.form-error { margin: 16px 0 0; padding: .8rem 1rem; color: #783644; background: var(--rose-pale); border-radius: var(--radius-sm); font-weight: 700; }

.journey { background: #fdfbf7; }

.progress-track {
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.progress-track::before {
  position: absolute;
  top: 22px;
  right: 8%;
  left: 8%;
  z-index: 0;
  height: 1px;
  content: "";
  background: #cbc4b7;
}

.progress-step {
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: center;
  gap: 9px;
  color: #89919a;
  text-align: center;
}

.step-index {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  background: #eeeae0;
  border: 1px solid #cbc4b7;
  border-radius: 50%;
  font-size: .84rem;
  font-weight: 900;
  transition: color .25s ease, background .25s ease, border-color .25s ease, transform .25s ease;
}

.progress-step strong,
.progress-step small { display: block; }
.progress-step strong { color: inherit; font-size: .82rem; }
.progress-step small { margin-top: 2px; font-size: .7rem; font-weight: 500; }

.progress-step.is-current { color: var(--navy-900); }
.progress-step.is-current .step-index { color: var(--navy-950); background: var(--gold-light); border-color: var(--gold); transform: translateY(-2px); }
.progress-step.is-complete { color: var(--sage); }
.progress-step.is-complete .step-index { color: white; background: var(--sage); border-color: var(--sage); }

.waiting-state,
.loading-state {
  display: grid;
  justify-items: center;
  margin-top: 34px;
  padding: clamp(36px, 7vw, 70px) 24px;
  color: var(--muted);
  background:
    linear-gradient(135deg, rgba(234, 242, 247, .65), rgba(251, 243, 216, .54)),
    white;
  border: 1px dashed #c7c0b2;
  border-radius: var(--radius-md);
  text-align: center;
}

.waiting-symbol { color: var(--gold); font-size: 1.8rem; }
.waiting-state p { margin: 10px 0 3px; color: var(--navy-900); font-family: Georgia, "Times New Roman", serif; font-size: 1.35rem; }
.waiting-state span { font-size: .76rem; letter-spacing: .05em; }

.loading-state { grid-template-columns: auto minmax(0, 440px); justify-content: center; justify-items: start; gap: 20px; text-align: left; }
.loading-state strong { display: block; color: var(--navy-900); font-family: Georgia, "Times New Roman", serif; font-size: 1.3rem; }
.loading-state p { margin: 5px 0 0; font-size: .85rem; }

.loading-orbit {
  display: grid;
  width: 50px;
  height: 50px;
  place-items: center;
  border: 1px solid #c8b172;
  border-radius: 50%;
  animation: orbit 1.4s linear infinite;
}

.loading-orbit span { width: 11px; height: 11px; background: var(--gold); border-radius: 50%; transform: translateY(-23px); }

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

.results { margin-top: 34px; }

.result-card {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  gap: 28px;
  align-items: start;
  padding: 28px;
  background: white;
  border: 1px solid var(--line);
  animation: rise .45s both;
}

.result-card + .result-card { border-top: 0; }
.result-card:first-of-type { border-radius: var(--radius-md) var(--radius-md) 0 0; }
.result-card:nth-of-type(2) { animation-delay: .06s; }
.result-card:nth-of-type(3) { animation-delay: .12s; }
.result-card:nth-of-type(4) { animation-delay: .18s; }
.result-card:nth-of-type(5) { animation-delay: .24s; }

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

.result-label {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px;
  color: var(--navy-900);
  font-size: .76rem;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.result-label span {
  display: grid;
  width: 26px;
  height: 26px;
  place-items: center;
  color: white;
  background: var(--navy-900);
  border-radius: 50%;
  font-size: .7rem;
}

.result-label small { flex: 0 0 100%; padding-left: 35px; color: var(--muted); font-size: .62rem; font-weight: 700; letter-spacing: .04em; text-transform: none; }
.result-card > p { margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: clamp(1.17rem, 2vw, 1.4rem); line-height: 1.48; }

.thought-card { color: #6e3945; background: var(--rose-pale); }
.thought-card .result-label, .thought-card .result-label small { color: #7b4350; }
.thought-card .result-label span { background: var(--rose); }

.truth-card { background: var(--blue-pale); }
.scripture-card { background: var(--gold-pale); }
.declaration-card { background: #e7f1f6; }
.action-card { background: #fff; border-radius: 0 0 var(--radius-md) var(--radius-md); }

.scripture-card blockquote {
  margin: 0;
  color: #4d3b13;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.2rem, 2.4vw, 1.65rem);
  line-height: 1.48;
}

.scripture-card cite { grid-column: 2; color: #73591e; font-style: normal; font-size: .8rem; font-weight: 900; letter-spacing: .06em; text-transform: uppercase; }
.declaration-card > p { color: #2e5745; }
.action-card > p { font-family: inherit; font-size: 1.05rem; font-weight: 650; }

.support-alert {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 18px;
  margin-bottom: 18px;
  padding: 24px;
  color: #672e3c;
  background: var(--rose-pale);
  border: 1px solid #dfb4bd;
  border-radius: var(--radius-md);
}

.support-icon { display: grid; width: 44px; height: 44px; place-items: center; color: white; background: var(--rose); border-radius: 50%; }
.support-kicker { margin-bottom: 4px; color: var(--rose); }
.support-alert h3 { margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: 1.6rem; }
.support-alert p:not(.support-kicker) { margin: 8px 0 0; }
.support-links { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 16px; }
.support-links a { padding: .6rem .82rem; color: white; background: var(--rose); border-radius: 999px; font-size: .82rem; font-weight: 850; text-decoration: none; }

.check-in {
  margin-top: 16px;
  padding: 20px 22px;
  color: #63420f;
  background: #fff4d6;
  border-left: 4px solid var(--gold);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.check-in p { margin: 6px 0 0; }
.check-in a { font-weight: 900; }

.result-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 22px;
}

.funnel-cta {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 28px;
  align-items: center;
  margin-top: 26px;
  padding: clamp(24px, 4vw, 36px);
  color: var(--ink);
  background: linear-gradient(135deg, var(--brand-sky), var(--brand-ivory));
  border: 1px solid var(--brand-dusty);
  border-radius: var(--radius-md);
}

.funnel-cta .section-number { margin-bottom: 7px; color: #846043; }
.funnel-cta h3 { margin: 0; color: #465761; font-family: Georgia, "Times New Roman", serif; font-size: clamp(1.45rem, 3vw, 2rem); font-weight: 400; line-height: 1.16; }
.funnel-cta p:not(.section-number) { max-width: 680px; margin: 9px 0 0; color: #606970; }

.return-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  max-width: 340px;
  min-height: 54px;
  padding: .8rem 1rem  .8rem 1.15rem;
  color: #352f2a;
  background: var(--brand-brown);
  border-radius: 999px;
  font-weight: 850;
  text-align: center;
  text-decoration: none;
  box-shadow: 0 10px 24px rgba(143, 148, 154, .2);
  transition: transform .18s ease, background .18s ease;
}

.return-button:hover { transform: translateY(-2px); background: #b98f68; }

.secondary-button {
  padding: .65rem .9rem;
  color: var(--navy-900);
  background: white;
  border: 1px solid #b9c1c7;
  border-radius: 999px;
  font-weight: 800;
}

.secondary-button:hover { border-color: var(--navy-900); background: var(--blue-pale); }
.text-button { padding: .65rem .4rem; color: var(--muted); background: transparent; border: 0; font-weight: 750; text-decoration: underline; text-underline-offset: 3px; }
.action-status { color: var(--sage); font-size: .78rem; font-weight: 800; }

.guardrails {
  display: grid;
  grid-template-columns: minmax(220px, .32fr) minmax(0, 1fr);
  gap: clamp(32px, 7vw, 90px);
  color: #303a40;
  background: linear-gradient(135deg, var(--brand-gray), var(--brand-dusty));
}

.guardrails .section-number { color: #4c555b; }
.guardrails h2 { color: #303a40; }
.guardrail-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.guardrail-grid article { padding: 22px; background: rgba(255, 253, 250, .48); border: 1px solid rgba(255, 253, 250, .64); border-radius: var(--radius-md); }
.guardrail-grid article > span { color: #6e5038; font-size: .68rem; font-weight: 900; letter-spacing: .1em; }
.guardrail-grid h3 { margin: 24px 0 8px; font-family: Georgia, "Times New Roman", serif; font-size: 1.2rem; font-weight: 500; }
.guardrail-grid p { margin: 0; color: #424c52; font-size: .83rem; }

.site-footer {
  display: grid;
  grid-template-columns: minmax(180px, .35fr) minmax(0, 1fr);
  gap: 30px;
  align-items: center;
  padding: 28px clamp(24px, 6vw, 76px);
  color: #6e757a;
  background: var(--brand-ivory);
  font-size: .76rem;
}

.site-footer strong { color: var(--navy-900); font-family: Georgia, "Times New Roman", serif; font-size: 1rem; }
.site-footer p { margin: 2px 0 0; }
.footer-copy { display: grid; gap: 10px; }
.footer-return { color: #596b76; font-weight: 850; text-underline-offset: 3px; }

.noscript { margin: 1rem; padding: 1rem; color: #6c4300; background: #fff3cd; border-radius: 10px; }

[hidden] { display: none !important; }

:focus-visible { outline: 3px solid #d5a33f; outline-offset: 3px; }

@media (max-width: 900px) {
  .hero-grid,
  .guardrails { grid-template-columns: 1fr; }
  .hero-quote { max-width: 650px; }
  .examples { grid-template-columns: 1fr; gap: 18px; }
  .guardrail-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .progress-step small { display: none; }
}

@media (max-width: 680px) {
  .page-shell { width: 100%; margin: 0; border: 0; border-radius: 0; }
  .hero { padding-inline: 22px; }
  .brand { margin-bottom: 44px; }
  .brand-identity { width: 100%; }
  .return-link--header { width: 100%; justify-content: center; border-radius: var(--radius-sm); }
  .panel-heading,
  .journey-heading,
  .submit-row { align-items: stretch; flex-direction: column; }
  .private-note { align-self: flex-start; }
  .primary-button { width: 100%; }
  .examples { margin-inline: -4px; padding: 20px; }
  .thought-chips { flex-direction: column; }
  .thought-chip { border-radius: 12px; }
  .progress-track { gap: 3px; }
  .progress-track::before { right: 10%; left: 10%; }
  .step-index { width: 39px; height: 39px; }
  .progress-step strong { font-size: .67rem; }
  .result-card { grid-template-columns: 1fr; gap: 16px; padding: 22px; }
  .funnel-cta { grid-template-columns: 1fr; }
  .return-button { width: 100%; max-width: none; }
  .scripture-card cite { grid-column: 1; }
  .result-label small { flex: initial; padding-left: 0; }
  .guardrail-grid { grid-template-columns: 1fr; }
  .site-footer { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

@media print {
  body { background: white; }
  .page-shell { width: 100%; margin: 0; border: 0; box-shadow: none; }
  .hero { padding: 28px; }
  .brand { margin-bottom: 20px; }
  .hero-quote,
  .reflection-panel,
  .progress-track,
  .waiting-state,
  .loading-state,
  .guardrails,
  .result-actions,
  .funnel-cta,
  .return-link { display: none !important; }
  .journey { padding: 24px; }
  .results { display: block !important; margin-top: 0; }
}
