/* OriginsPath, consumer site styles.
   One stylesheet, no framework, no external font. Warm, high-contrast, readable on a phone. */

:root {
  --ink: #241d16;
  --ink-soft: #4c4137;
  --ink-faint: #6d6055;
  --paper: #fbf7f0;
  --paper-2: #f3ece0;
  --card: #ffffff;
  --line: #e0d5c4;
  --moss: #2f5d50;
  --moss-dark: #23473d;
  --moss-tint: #e6efeb;
  --rust: #a4462b;
  --rust-tint: #f7ebe6;
  --focus: #1b6fb8;
  --radius: 10px;
  --wrap: 68rem;
  --serif: ui-serif, Georgia, "Iowan Old Style", "Palatino Linotype", Palatino, serif;
  --sans: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
}

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 1.25rem; }

h1, h2, h3 { font-family: var(--serif); line-height: 1.2; letter-spacing: -0.01em; margin: 0 0 0.6em; }
h1 { font-size: clamp(2rem, 5vw, 3.1rem); }
h2 { font-size: clamp(1.5rem, 3.2vw, 2.05rem); }
h3 { font-size: 1.16rem; font-family: var(--sans); font-weight: 650; letter-spacing: 0; }
p { margin: 0 0 1.1em; }
a { color: var(--moss-dark); text-underline-offset: 0.18em; }
a:hover { color: var(--rust); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 3px; }

.skip {
  position: absolute; left: -9999px; top: 0; background: var(--ink); color: #fff;
  padding: 0.75rem 1rem; z-index: 50;
}
.skip:focus { left: 0; }

/* ---- header / footer ---- */
.site-header { background: var(--paper); border-bottom: 1px solid var(--line); }
.header-inner {
  display: flex; flex-wrap: wrap; gap: 0.75rem 1.5rem;
  align-items: center; justify-content: space-between; padding-top: 1rem; padding-bottom: 1rem;
}
.wordmark {
  font-family: var(--serif); font-size: 1.4rem; font-weight: 600;
  color: var(--ink); text-decoration: none; letter-spacing: -0.015em;
}
.wordmark:hover { color: var(--moss); }
.nav, .footer-nav { list-style: none; display: flex; flex-wrap: wrap; gap: 0.4rem 1.4rem; margin: 0; padding: 0; }
.nav a { font-size: 0.97rem; text-decoration: none; color: var(--ink-soft); }
.nav a:hover, .nav a[aria-current="page"] { color: var(--moss-dark); text-decoration: underline; }
.nav a[aria-current="page"] { font-weight: 600; }

.site-footer { background: var(--ink); color: var(--paper-2); margin-top: 4rem; padding: 2.5rem 0; }
.footer-inner { display: grid; gap: 1.75rem; grid-template-columns: 1fr; }
.footer-brand { font-family: var(--serif); font-size: 1.2rem; margin: 0 0 0.35rem; }
.site-footer .muted { color: #c9bcaa; max-width: 34rem; margin: 0; font-size: 0.95rem; }
.footer-nav { flex-direction: column; gap: 0.5rem; }
.site-footer a { color: var(--paper-2); }
.site-footer a:hover { color: #f0c9b8; }
@media (min-width: 46rem) { .footer-inner { grid-template-columns: 1.4fr 1fr; } }

/* ---- hero & bands ---- */
.hero { background: linear-gradient(178deg, var(--paper-2) 0%, var(--paper) 78%); padding: 3.5rem 0 3rem; border-bottom: 1px solid var(--line); }
.hero .standfirst { font-size: 1.16rem; max-width: 40rem; color: var(--ink-soft); }
.eyebrow {
  text-transform: uppercase; letter-spacing: 0.11em; font-size: 0.78rem;
  font-weight: 700; color: var(--rust); margin: 0 0 0.85rem;
}
.band { padding: 3rem 0; }
.band-tint { background: var(--paper-2); }
.band-moss { background: var(--moss); color: #f2f6f4; }
.band-moss h2, .band-moss h3 { color: #fff; }
.band-moss a { color: #ffdccf; }
.band > .wrap > p, .band > .wrap > .points + p { max-width: 42rem; }

.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.6rem; }
.btn {
  display: inline-block; background: var(--moss); color: #fff; padding: 0.72rem 1.4rem;
  border-radius: var(--radius); text-decoration: none; font-weight: 600; font-size: 1rem;
  border: 2px solid var(--moss); cursor: pointer; font-family: inherit;
}
.btn:hover { background: var(--moss-dark); border-color: var(--moss-dark); color: #fff; }
.btn-secondary { background: transparent; color: var(--moss-dark); }
.btn-secondary:hover { background: var(--moss-tint); color: var(--moss-dark); }
.btn[disabled] { opacity: 0.55; cursor: not-allowed; }

/* ---- point lists ---- */
.points { display: grid; gap: 1.5rem; grid-template-columns: 1fr; margin: 2rem 0 0; }
@media (min-width: 44rem) { .points { grid-template-columns: repeat(3, 1fr); } }
.points.two { grid-template-columns: 1fr; }
@media (min-width: 44rem) { .points.two { grid-template-columns: repeat(2, 1fr); } }
.point h3 { margin-bottom: 0.35em; }
.point p { color: var(--ink-soft); margin: 0; }

/* ---- the journey ladder ---- */
.ladder { list-style: none; margin: 2rem 0 0; padding: 0; display: grid; gap: 0.9rem; }
.rung {
  background: var(--card); border: 1px solid var(--line); border-left: 5px solid var(--moss);
  border-radius: var(--radius); padding: 1.1rem 1.25rem;
}
.rung .rung-label { font-weight: 650; display: block; }
.rung .rung-words { color: var(--ink-soft); font-style: italic; margin: 0.2rem 0 0; }
.rung.is-trip { border-left-color: var(--rust); }

/* ---- intake form ---- */
.intake { max-width: 44rem; }
fieldset { border: 0; padding: 0; margin: 0 0 2.4rem; }
legend { font-family: var(--serif); font-size: 1.35rem; padding: 0; margin-bottom: 0.3rem; }
.help { color: var(--ink-faint); font-size: 0.96rem; margin: 0 0 0.9rem; }
.choices { display: grid; gap: 0.6rem; }
.choice {
  display: flex; gap: 0.75rem; align-items: flex-start;
  border: 1px solid var(--line); background: var(--card); border-radius: var(--radius);
  padding: 0.85rem 1rem; cursor: pointer;
}
.choice:hover { border-color: var(--moss); background: var(--moss-tint); }
.choice input { margin: 0.28rem 0 0; width: 1.05rem; height: 1.05rem; accent-color: var(--moss); flex: none; }
.choice:has(input:checked) { border-color: var(--moss); background: var(--moss-tint); box-shadow: inset 0 0 0 1px var(--moss); }
select {
  font: inherit; padding: 0.7rem 0.85rem; border: 1px solid var(--line);
  border-radius: var(--radius); background: var(--card); color: var(--ink); width: 100%; max-width: 22rem;
}
.form-note { background: var(--moss-tint); border-radius: var(--radius); padding: 1rem 1.15rem; font-size: 0.96rem; color: var(--moss-dark); }
[hidden] { display: none !important; }

/* ---- results ---- */
.result-stage {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.75rem; margin-bottom: 2rem;
}
.stage-chip {
  display: inline-block; background: var(--moss); color: #fff; border-radius: 999px;
  padding: 0.2rem 0.85rem; font-size: 0.82rem; font-weight: 650; letter-spacing: 0.02em;
}
.stage-chip.is-unknown { background: var(--rust); }
.result-stage h2 { margin: 0.8rem 0 0.4rem; }
.stage-meter { display: flex; gap: 0.3rem; margin: 1.2rem 0 0.6rem; }
.stage-meter span { height: 8px; flex: 1; border-radius: 999px; background: var(--line); }
.stage-meter span.on { background: var(--moss); }
.stage-meter-label { font-size: 0.88rem; color: var(--ink-faint); margin: 0; }

.step { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.4rem 1.5rem; margin-bottom: 1.1rem; }
.step h3 { margin-bottom: 0.3em; font-size: 1.1rem; }
.step .why { color: var(--ink-soft); margin-bottom: 0.9rem; }
.step-empty { background: var(--rust-tint); border-radius: var(--radius); padding: 0.9rem 1.05rem; color: #7a3520; margin: 0; font-size: 0.97rem; }
.shared-why { color: var(--ink-soft); margin: 0 0 1.1rem; }
.more-steps { margin-bottom: 1.1rem; }
.more-steps summary { cursor: pointer; font-weight: 620; padding: 0.6rem 0; }
.more-steps-body { padding-top: 0.9rem; }
.also { border-top: 1px solid var(--line); margin-top: 2.5rem; padding-top: 1.5rem; }
.also summary { cursor: pointer; font-weight: 620; }
.also ul { padding-left: 1.2rem; color: var(--ink-soft); }

/* ---- provider cards ---- */
.cards { display: grid; gap: 1.25rem; grid-template-columns: 1fr; margin-top: 1.75rem; }
@media (min-width: 46rem) { .cards { grid-template-columns: repeat(2, 1fr); } }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.35rem 1.4rem; }
.card h3 { margin-bottom: 0.25em; }
.card h3 a { text-decoration: none; }
.card .card-place { color: var(--ink-faint); font-size: 0.94rem; margin: 0 0 0.8rem; }
.card ul { list-style: none; padding: 0; margin: 0 0 0.9rem; display: flex; flex-wrap: wrap; gap: 0.4rem; }
.card ul li { background: var(--moss-tint); color: var(--moss-dark); border-radius: 999px; padding: 0.15rem 0.7rem; font-size: 0.85rem; }
.dl { margin: 0; }
.dl div { display: grid; gap: 0.1rem; padding: 0.7rem 0; border-top: 1px solid var(--line); }
.dl dt { font-weight: 650; font-size: 0.9rem; color: var(--ink-faint); }
.dl dd { margin: 0; }

/* ---- the empty-directory notice ---- */
.notice {
  background: var(--card); border: 1px solid var(--line); border-left: 5px solid var(--rust);
  border-radius: var(--radius); padding: 1.5rem 1.6rem; margin-top: 1.75rem;
}
.notice h3 { margin-bottom: 0.4em; }
.notice p:last-child { margin-bottom: 0; }

/* ---- ghl slot ---- */
.ghl { background: var(--moss); color: #f2f6f4; border-radius: var(--radius); padding: 1.9rem 1.75rem; margin: 2.5rem 0 0; }
.ghl h2 { color: #fff; font-size: 1.5rem; margin-bottom: 0.35em; }
.ghl-inner { max-width: 38rem; }
.ghl-placeholder {
  background: rgba(255,255,255,0.14); border: 1px dashed rgba(255,255,255,0.5);
  border-radius: var(--radius); padding: 0.75rem 0.9rem; font-size: 0.93rem;
}

.lede { font-size: 1.12rem; color: var(--ink-soft); max-width: 42rem; }
.prose { max-width: 42rem; }
.prose h2 { margin-top: 2.2rem; }
.muted { color: var(--ink-faint); }
.small { font-size: 0.92rem; }
noscript .notice { margin-top: 0; }
