/* ============================================================
   The Wilderness Gap — assessment styles
   Loaded only on wilderness-gap.html. Uses the Canyon at Dusk
   tokens from styles.css so nothing here invents a new palette.
   ============================================================ */

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---- the stage ----------------------------------------------------------
   The instrument is lifted into the bottom of the hero so it is the first
   thing you meet, not something to scroll for. Sitting a dark panel on the
   cream page is what makes it read as an object placed on the page rather
   than another band of content. */
.wg-stage {
  position: relative;
  z-index: 3;
  margin-top: clamp(-8rem, -5rem - 6vw, -4rem);
  padding-bottom: clamp(3rem, 2rem + 4vw, 5.5rem);
}

/* On a phone the hero is already tall and the card is the next thing in view,
   so it only needs a nudge of overlap. A big negative pull swallows the cue. */
@media (max-width: 760px) {
  .wg-stage { margin-top: -2.5rem; }
}

.wg-stage__foot {
  margin: 1.4rem auto 0;
  text-align: center;
  font-family: var(--font-mono);
  font-size: .68rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* A quiet nudge in the hero that something interactive is waiting. */
.hero__cue {
  margin-top: 2.2rem;
  font-family: var(--font-mono);
  font-size: .68rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: rgba(244, 237, 223, .62);
  display: flex;
  align-items: center;
  gap: .7rem;
}
.hero__cue::after {
  content: "";
  width: 34px; height: 1px;
  background: linear-gradient(90deg, var(--ember), transparent);
}

.wg-shell { max-width: 46rem; margin-inline: auto; }

.wg-card {
  position: relative;
  background:
    linear-gradient(180deg, rgba(244, 237, 223, .045), transparent 260px),
    var(--ink-2);
  border: 1px solid rgba(244, 237, 223, .1);
  border-radius: var(--radius-lg);
  color: var(--text-on-dark);
  overflow: hidden;
  /* Layered, not a single soft blur: reads as a machined panel resting on the page. */
  box-shadow:
    0 1px 0 rgba(244, 237, 223, .07) inset,
    0 2px 6px rgba(27, 23, 20, .18),
    0 30px 70px -20px rgba(27, 23, 20, .55);
}

/* Ember filament along the top edge — the "powered on" tell. */
.wg-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 2px;
  background: linear-gradient(90deg, var(--canyon), var(--ember) 45%, var(--sand));
}

/* ---- bezel ---- */
.wg-bezel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: .95rem clamp(1.2rem, .8rem + 2vw, 2.2rem);
  background: rgba(0, 0, 0, .22);
  border-bottom: 1px solid rgba(244, 237, 223, .08);
}

.wg-bezel__label,
.wg-bezel__step {
  font-family: var(--font-mono);
  font-size: .66rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  margin: 0;
}
.wg-bezel__label {
  display: flex;
  align-items: center;
  gap: .6rem;
  color: var(--sand);
}
.wg-bezel__step { color: var(--text-on-dark-muted); white-space: nowrap; }
.wg-bezel__step b { color: var(--paper); font-weight: 600; }

/* "The Wilderness Gap Diagnostic" plus a step counter is a lot of tracked-out
   monospace for a phone. Tighten both rather than let either wrap. */
@media (max-width: 560px) {
  .wg-bezel { padding-inline: 1rem; gap: .6rem; }
  .wg-bezel__label,
  .wg-bezel__step { font-size: .58rem; letter-spacing: .1em; }
  .wg-bezel__label { gap: .45rem; }
}

.wg-bezel__dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--ember);
  box-shadow: 0 0 0 3px rgba(194, 97, 47, .18);
}
@media (prefers-reduced-motion: no-preference) {
  .wg-bezel__dot { animation: wgPulse 2.6s ease-in-out infinite; }
}
@keyframes wgPulse {
  0%, 100% { box-shadow: 0 0 0 3px rgba(194, 97, 47, .18); }
  50%      { box-shadow: 0 0 0 6px rgba(194, 97, 47, .06); }
}

.wg-body { padding: clamp(1.5rem, 1rem + 2.4vw, 2.6rem); }

/* Registration marks in the corners, borrowed from the survey-map language
   the rest of the site already uses for coordinates. */
.wg-body::before,
.wg-body::after {
  content: "";
  position: absolute;
  width: 12px; height: 12px;
  border: 1px solid rgba(201, 168, 124, .3);
  pointer-events: none;
}
.wg-body::before { left: 14px; bottom: 14px; border-right: 0; border-top: 0; }
.wg-body::after  { right: 14px; bottom: 14px; border-left: 0; border-top: 0; }

/* progress — full-bleed under the bezel, like a readout on the housing */
.wg-progress {
  height: 3px;
  background: rgba(0, 0, 0, .3);
  overflow: hidden;
}
.wg-progress__bar {
  display: block; height: 100%;
  background: linear-gradient(90deg, var(--canyon), var(--ember));
  transition: width .45s cubic-bezier(.22, .61, .36, 1);
}

.wg-count {
  font-family: var(--font-mono);
  font-size: .68rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--sand);
  margin: 0;
}
.wg-count span { color: var(--text-on-dark-muted); }

.wg-q {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: var(--step-2);
  line-height: 1.28;
  letter-spacing: -.015em;
  color: var(--paper);
  margin: 0 0 1.8rem;
}
@media (max-width: 560px) {
  .wg-q { font-size: var(--step-1); line-height: 1.32; }
}

/* options */
.wg-options { display: grid; gap: .7rem; }

.wg-opt {
  display: flex;
  align-items: flex-start;
  gap: .85rem;
  width: 100%;
  text-align: left;
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.5;
  color: var(--text-on-dark);
  background: rgba(244, 237, 223, .03);
  border: 1px solid var(--ink-3);
  border-radius: var(--radius);
  padding: 1rem 1.15rem;
  cursor: pointer;
  transition: border-color .2s ease, background .2s ease, transform .2s ease;
}
.wg-opt:hover,
.wg-opt:focus-visible {
  border-color: var(--ember);
  background: rgba(194, 97, 47, .09);
  transform: translateX(3px);
  outline: none;
}
.wg-opt__mark {
  flex: none;
  width: 9px; height: 9px;
  margin-top: .45rem;
  border: 1px solid var(--sand-deep);
  border-radius: 50%;
  transition: background .2s ease, border-color .2s ease;
}
.wg-opt:hover .wg-opt__mark,
.wg-opt:focus-visible .wg-opt__mark { background: var(--ember); border-color: var(--ember); }

.wg-back {
  margin-top: 1.6rem;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  font-family: var(--font-mono);
  font-size: .68rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--text-on-dark-muted);
  transition: color .2s ease;
}
.wg-back:hover { color: var(--sand); }

/* result */
.wg-result__name {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: var(--step-3);
  line-height: 1.12;
  letter-spacing: -.02em;
  color: var(--paper);
  margin: .7rem 0 1.4rem;
}

.wg-meter {
  position: relative;
  height: 6px;
  background: var(--ink-3);
  border-radius: 6px;
  margin-bottom: 2.4rem;
}
.wg-meter__fill {
  display: block; height: 100%;
  border-radius: 6px;
  background: linear-gradient(90deg, var(--juniper), var(--sand), var(--ember));
  animation: wgGrow .9s cubic-bezier(.22, .61, .36, 1) both;
}
@keyframes wgGrow { from { width: 0 !important; } }
.wg-meter__scale {
  position: absolute; inset: auto 0 -1.5rem;
  display: flex; justify-content: space-between; align-items: baseline;
  font-family: var(--font-mono);
  font-size: .62rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--text-on-dark-muted);
}

.wg-result__lede {
  font-family: var(--font-display);
  font-size: var(--step-1);
  line-height: 1.42;
  font-weight: 300;
  color: var(--paper);
  margin: 0 0 1rem;
}
.wg-result__dim { color: var(--text-on-dark-muted); margin: 0; }
.wg-result__dim b { color: var(--sand); font-weight: 600; }
.wg-result__body { color: var(--text-on-dark); margin: 0 0 1.8rem; }

/* ---- per-dimension readout: the clinical part ---- */
.wg-readout {
  margin: 2rem 0;
  padding: 1.4rem 1.5rem 1.5rem;
  border: 1px solid rgba(244, 237, 223, .09);
  border-radius: var(--radius);
  background: rgba(0, 0, 0, .16);
}
.wg-readout__label {
  font-family: var(--font-mono);
  font-size: .64rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--text-on-dark-muted);
  margin: 0 0 1.1rem;
}

.wg-read {
  display: grid;
  grid-template-columns: 6.5rem 1fr 3rem;
  align-items: center;
  gap: .9rem;
  padding: .45rem 0;
}
.wg-read__name {
  font-family: var(--font-mono);
  font-size: .7rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text-on-dark-muted);
}
.wg-read.is-lead .wg-read__name { color: var(--sand); }

.wg-read__track {
  height: 5px;
  border-radius: 5px;
  background: rgba(244, 237, 223, .08);
  overflow: hidden;
}
.wg-read__fill {
  display: block;
  height: 100%;
  border-radius: 5px;
  background: var(--sand-deep);
  animation: wgGrow .8s cubic-bezier(.22, .61, .36, 1) both;
}
.wg-read.is-lead .wg-read__fill { background: linear-gradient(90deg, var(--ember), var(--ember-soft)); }

.wg-read__val {
  font-family: var(--font-mono);
  font-size: .82rem;
  color: var(--paper);
  text-align: right;
}
.wg-read__val em { font-style: normal; color: var(--text-on-dark-muted); font-size: .7rem; }

.wg-readout .wg-result__dim { margin-top: 1.1rem; font-size: var(--step--1); }

@media (max-width: 480px) {
  .wg-read { grid-template-columns: 5.2rem 1fr 2.6rem; gap: .6rem; }
  .wg-read__name { font-size: .62rem; letter-spacing: .06em; }
}

/* ---- the offer: the actual next step ---- */
.wg-offer {
  margin: 2.4rem 0 0;
  padding: 1.8rem clamp(1.2rem, .9rem + 1.6vw, 1.9rem) 1.9rem;
  border: 1px solid rgba(194, 97, 47, .38);
  border-radius: var(--radius);
  background:
    radial-gradient(120% 100% at 0% 0%, rgba(194, 97, 47, .16), transparent 62%),
    rgba(0, 0, 0, .24);
}
.wg-offer__label {
  font-family: var(--font-mono);
  font-size: .64rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ember-soft);
  margin: 0 0 .6rem;
}
.wg-offer__head {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: var(--step-2);
  line-height: 1.2;
  color: var(--paper);
  margin: 0 0 .7rem;
}
.wg-offer__sub { color: var(--text-on-dark); margin: 0 0 1.3rem; }
.wg-offer__sub em { color: var(--sand); font-style: italic; }

.wg-offer__list { list-style: none; margin: 0 0 1.6rem; padding: 0; display: grid; gap: .75rem; }
.wg-offer__list li {
  display: flex;
  gap: .7rem;
  align-items: flex-start;
  color: var(--text-on-dark);
  font-size: var(--step--1);
  line-height: 1.55;
}

.wg-offer__cta { width: 100%; justify-content: center; text-align: center; }

.wg-offer__who {
  margin: 1.2rem 0 0;
  font-size: .8rem;
  line-height: 1.6;
  color: var(--text-on-dark-muted);
}
.wg-offer__who b { color: var(--sand); font-weight: 600; }

/* email capture, now the secondary path */
.wg-gate {
  margin: 2.2rem 0 0;
  padding: 1.6rem;
  border: 1px solid var(--ink-3);
  border-radius: var(--radius);
  background: rgba(0, 0, 0, .18);
}
.wg-gate__title {
  font-family: var(--font-mono);
  font-size: .68rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--sand);
  margin: 0 0 .5rem;
}
.wg-gate__sub { color: var(--text-on-dark-muted); font-size: var(--step--1); margin: 0 0 1.2rem; }

.wg-form__row { display: grid; gap: .6rem; grid-template-columns: 1fr 1fr; }
@media (max-width: 560px) { .wg-form__row { grid-template-columns: 1fr; } }

.wg-form input {
  width: 100%;
  font-family: var(--font-body);
  font-size: var(--step-0);
  color: var(--paper);
  background: rgba(244, 237, 223, .05);
  border: 1px solid var(--ink-3);
  border-radius: var(--radius);
  padding: .85rem 1rem;
}
.wg-form input::placeholder { color: var(--text-on-dark-muted); }
.wg-form input:focus { outline: none; border-color: var(--ember); }
.wg-form__btn { margin-top: .8rem; width: 100%; justify-content: center; }
.wg-form__btn:disabled { opacity: .7; cursor: default; }
.wg-form__note {
  font-size: .78rem;
  color: var(--text-on-dark-muted);
  margin: .9rem 0 0;
  line-height: 1.5;
}

/* unlocked block */
.wg-locked { margin-top: 2.4rem; }
.wg-locked[hidden] { display: none; }

.wg-sit {
  margin: 0 0 1.8rem;
  padding: 1.3rem 1.5rem;
  border-left: 2px solid var(--sand-deep);
  background: rgba(201, 168, 124, .07);
}
.wg-sit__label {
  font-family: var(--font-mono);
  font-size: .64rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--sand);
  margin: 0 0 .6rem;
}
.wg-sit__q {
  font-family: var(--font-display);
  font-size: var(--step-1);
  line-height: 1.4;
  font-weight: 300;
  font-style: italic;
  color: var(--paper);
  margin: 0;
}

.wg-next__label {
  font-family: var(--font-mono);
  font-size: .64rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--text-on-dark-muted);
  margin: 0 0 .4rem;
}
.wg-next__name {
  font-family: var(--font-display);
  font-size: var(--step-2);
  font-weight: 300;
  color: var(--ember-soft);
  margin: 0 0 .5rem;
}
.wg-next__why { color: var(--text-on-dark-muted); margin: 0; }

/* the four dimensions grid */
.wg-dims { display: grid; gap: 1.5rem; grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .wg-dims { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .wg-dims { grid-template-columns: 1fr; } }

.wg-dim { border-top: 1px solid rgba(27, 23, 20, .16); padding-top: 1.1rem; }
.wg-dim__num {
  font-family: var(--font-mono);
  font-size: .66rem;
  letter-spacing: .16em;
  color: var(--ember);
  margin: 0 0 .5rem;
}
.wg-dim h4 { margin: 0 0 .5rem; font-size: var(--step-1); }
.wg-dim p { margin: 0; color: var(--text-muted); font-size: var(--step--1); line-height: 1.6; }
