/* Drop Anchor: components specific to the grounding exercise.
 *
 * The shared page shell (nav, guide rail, screen shells, buttons, number
 * scales, result blocks) is inherited from unhook.css, which this file is
 * loaded after. Nothing here restates a colour: every value is a token from
 * brand/tokens.css, so a kit change reaches this page without an edit.
 */

/* ── Naming the feeling ─────────────────────────────────────────────── */

.feeling-chips,
.saved-values-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 18px;
}

.feeling-chip {
  min-height: var(--brand-tap-min);
  padding: 10px 16px;
  border: var(--brand-rule);
  border-radius: 0;
  background: var(--brand-white);
  color: var(--brand-text);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
}

.feeling-chip:hover {
  border-color: var(--brand-azure);
  color: var(--brand-azure-deep);
}

.feeling-chip[aria-pressed="true"] {
  border-color: var(--brand-purple);
  background: var(--brand-purple);
  color: var(--brand-white);
}

.struggle-help {
  margin: 0 0 14px;
}

/* One line, standing on its own, carrying the weight of the paragraphs around
 * it. The explainers are written to be read aloud; this is where they land. */
.education-copy .education-punch {
  margin: 18px 0;
  color: var(--brand-purple);
  font-size: 19px;
  line-height: 1.35;
  font-weight: 800;
  letter-spacing: -0.2px;
}

/* ── The paced body sequence ────────────────────────────────────────── */

.anchor-pace {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin: 0 0 18px;
}

.pace-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.pace-buttons button {
  /* A secondary control is still a control somebody taps one-handed while
   * their hands are shaking. The kit's floor applies here too. */
  min-height: var(--brand-tap-min);
  padding: 8px 14px;
  border: var(--brand-rule);
  background: var(--brand-white);
  color: var(--brand-text-secondary);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.4px;
  cursor: pointer;
}

.pace-buttons button[aria-pressed="true"] {
  border-color: var(--brand-azure);
  background: var(--brand-azure);
  color: var(--brand-white);
}

.anchor-stage {
  position: relative;
  /* Fixed height across every step. The steps have different amounts of text,
   * and letting the card resize moved the Back and Done controls under the reader's
   * finger between one auto-advance and the next. On a page somebody opens
   * while overwhelmed, a control that moves while they reach for it is a
   * defect, not a cosmetic detail. Sized to the tallest step, the optional
   * breath one, which also carries the opt-out note, so the shorter steps
   * carry slack rather than the controls carrying movement. */
  min-height: 272px;
  margin: 0 0 22px;
  padding: 30px 26px 32px;
  border: var(--brand-rule);
  border-left: var(--brand-keyline);
  background: var(--brand-white);
}

.anchor-pacer {
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: var(--brand-border);
}

.anchor-pacer span {
  display: block;
  width: 0;
  height: 100%;
  background: var(--brand-azure);
}

.anchor-step-count {
  margin: 0 0 10px;
  color: var(--brand-text-secondary);
  font-family: var(--brand-font-utility);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.6px;
  text-transform: uppercase;
}

.anchor-step-title {
  margin: 0 0 12px;
  color: var(--brand-purple);
  font-size: clamp(26px, 3.4vw, 36px);
  line-height: 1.14;
  font-weight: 800;
  letter-spacing: -0.4px;
}

.anchor-step-detail {
  max-width: var(--brand-measure);
  margin: 0;
  font-size: 17px;
  line-height: var(--brand-body-line);
}

.anchor-step-optional {
  max-width: var(--brand-measure);
  margin: 14px 0 0;
  padding: 12px 14px;
  background: var(--brand-clinical-lavender);
  color: var(--brand-text);
  font-size: 14px;
}

.anchor-skip {
  display: block;
  margin: 14px auto 0;
}

/* ── Engaging with the room ─────────────────────────────────────────── */

.engage-groups {
  display: grid;
  gap: 18px;
  margin: 0 0 24px;
}

.engage-group {
  padding: 20px 22px;
  border: var(--brand-rule);
  background: var(--brand-white);
}

.engage-heading {
  margin: 0 0 4px;
  color: var(--brand-purple);
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -0.2px;
}

.engage-dots {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.engage-dot {
  width: var(--brand-tap-min);
  height: var(--brand-tap-min);
  border: var(--brand-rule);
  background: var(--brand-white);
  color: var(--brand-text-muted);
  font-family: var(--brand-font-utility);
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
}

.engage-dot:hover {
  border-color: var(--brand-azure);
}

.engage-dot[aria-pressed="true"] {
  border-color: var(--brand-purple);
  background: var(--brand-purple);
  color: var(--brand-white);
}

/* ── Holding both ───────────────────────────────────────────────────── */

.both-panel {
  margin: 0 0 22px;
  padding: 26px 24px;
  border: 1px solid var(--brand-periwinkle);
  background: var(--brand-clinical-lavender);
  text-align: center;
}

.both-line {
  max-width: var(--brand-measure);
  margin: 0 auto;
  color: var(--brand-purple);
  font-size: clamp(19px, 2.4vw, 24px);
  line-height: 1.3;
  font-weight: 800;
  letter-spacing: -0.3px;
}

.both-and {
  margin: 12px 0;
  color: var(--brand-text-secondary);
  font-family: var(--brand-font-utility);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2.4px;
  text-transform: uppercase;
}

/* The shared result readout sits directly above a field label here, which the
 * Thought Lab never does, so give it room so the two do not collide. */
.result-shell .result-readout {
  margin-bottom: 26px;
}

.hooked-question {
  margin: 24px 0 0;
  padding: 0;
  border: 0;
}

.hooked-question .room-options label {
  display: flex;
}

.hooked-question .room-options span {
  padding: 10px 14px;
  text-align: center;
}

.hooked-question legend {
  padding: 0;
  color: var(--brand-text-secondary);
  font-family: var(--brand-font-utility);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.6px;
  text-transform: uppercase;
}

/* ── Handoff to the sibling tools ───────────────────────────────────── */

.anchor-handoff {
  margin: 22px 0 0;
  padding: 20px 22px;
  border: var(--brand-rule);
  border-left: var(--brand-keyline);
  background: var(--brand-white);
}

.anchor-handoff p {
  max-width: var(--brand-measure);
  margin: 0 0 14px;
  font-size: 15px;
  line-height: var(--brand-body-line);
}

/* ── Optional narration ─────────────────────────────────────────────── */

.anchor-audio-offer {
  margin: 20px 0 0;
  padding: 16px 18px;
  border: var(--brand-rule);
  background: var(--brand-white);
}

.anchor-audio-label {
  margin: 0 0 8px;
  color: var(--brand-text-secondary);
  font-family: var(--brand-font-utility);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.6px;
  text-transform: uppercase;
}

.anchor-audio-toggle {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: var(--brand-tap-min);
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
}

.anchor-audio-toggle input {
  width: 20px;
  height: 20px;
  accent-color: var(--brand-purple);
}

/* A moving progress bar is itself activating for some of the people this page
 * is written for. Honour the system setting: the pacer still advances, it just
 * stops animating. */
@media (prefers-reduced-motion: reduce) {
  .anchor-pacer span {
    transition: none !important;
  }
}
