/* Retentio — Standalone tool page styles (shared pattern across all Resources tools) */

/* Without this, any element that both has [hidden] AND an explicit display:flex
   rule (like .tool-leadgate below) stays visible — the display rule wins over
   the browser's default hidden behavior. This affects every tool page. */
[hidden] { display: none !important; }

.nav-links .is-current { color: var(--navy); }
.nav-dropdown-menu-compact { min-width: 180px; }
.about-brand img { width: auto; height: 36px; object-fit: contain; }

.tool-hero {
  padding: 84px 0 56px;
  background: linear-gradient(180deg, #fbfbfd 0%, #f5f4fa 100%);
  border-bottom: 1px solid var(--line);
}
.tool-eyebrow {
  margin: 0 0 18px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #777890;
}
.tool-heading {
  margin: 0 0 16px;
  max-width: 26ch;
  font-size: clamp(28px, 3.8vw, 42px);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.04em;
  color: var(--ink);
}
.tool-support {
  margin: 0 0 8px;
  max-width: 640px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.7;
}
.tool-repeat-note {
  margin-top: 16px;
  font-size: 12.5px;
  color: #9a9bb0;
  max-width: 640px;
  line-height: 1.6;
}

.tool-section { padding: 48px 0 90px; }
.tool-panel {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 36px;
  box-shadow: 0 12px 32px rgba(45, 46, 110, 0.05);
}

.tool-form { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-content: start; }
.tool-field { display: flex; flex-direction: column; gap: 7px; }
.tool-field-full { grid-column: 1 / -1; }
.tool-field label { font-size: 12.5px; font-weight: 700; color: var(--ink); }
.tool-field input, .tool-field select, .tool-field textarea {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 13.5px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  outline: none;
}
.tool-field input:focus, .tool-field select:focus, .tool-field textarea:focus {
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(45, 46, 110, 0.1);
}
.tool-context-note { font-weight: 500; color: #9a9bb0; text-transform: none; letter-spacing: 0; }
.required { color: var(--pink); }

.tool-tiles { display: flex; flex-wrap: wrap; gap: 8px; }
.tile-option { cursor: pointer; }
.tile-option input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.tile-visual {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 14px; border: 1.5px solid var(--line); border-radius: 10px;
  background: #fff; transition: all 0.15s ease;
}
.tile-label { font-size: 13px; font-weight: 600; color: var(--ink); }
.tile-pts { font-size: 11px; font-weight: 800; padding: 2px 7px; border-radius: 999px; background: #f0eeff; color: var(--navy); }
.tile-option:hover .tile-visual { border-color: var(--navy); }
.tile-option input:checked + .tile-visual { border-color: var(--navy); background: var(--navy); }
.tile-option input:checked + .tile-visual .tile-label { color: #fff; }
.tile-option input:checked + .tile-visual .tile-pts { background: rgba(255,255,255,0.2); color: #fff; }
.tile-option input:focus-visible + .tile-visual { outline: 2px solid var(--navy); outline-offset: 2px; }

.tool-actions { grid-column: 1 / -1; display: flex; align-items: center; gap: 18px; margin-top: 6px; flex-wrap: wrap; }
.tool-submit {
  font-family: 'Plus Jakarta Sans', sans-serif;
  background: var(--navy); color: #fff; border: none; border-radius: 999px;
  padding: 14px 30px; font-size: 14px; font-weight: 700; cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
  display: inline-flex; text-decoration: none; align-self: flex-start;
}
.tool-submit:hover { transform: translateY(-1px); box-shadow: 0 10px 24px rgba(45,46,110,0.18); }
.tool-submit:disabled { opacity: 0.6; cursor: not-allowed; transform: none; box-shadow: none; }
.tool-reset { font-family: 'Plus Jakarta Sans', sans-serif; background: none; border: none; color: var(--muted); font-size: 13px; font-weight: 600; cursor: pointer; text-decoration: underline; }
.tool-talk-link { margin-top: 4px; }

.tool-result-col { border-left: 1px solid var(--line); padding-left: 32px; display: flex; flex-direction: column; justify-content: center; }
.tool-result-placeholder { margin: 0; color: #9a9bb0; font-size: 14px; line-height: 1.7; }

.tool-leadgate { display: flex; flex-direction: column; gap: 14px; }
.tool-leadgate-intro { margin: 0; font-size: 14.5px; font-weight: 700; color: var(--ink); }
.tool-status { margin: 0; font-size: 13px; font-weight: 600; }
.tool-status[data-state="loading"] { color: var(--muted); }
.tool-status[data-state="error"] { color: #d9534f; }
.tool-status[data-state="success"] { color: #1c8a4e; }

.tool-tier { display: inline-flex; align-self: flex-start; font-size: 11px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; padding: 6px 14px; border-radius: 999px; margin-bottom: 14px; }
.tool-tier-not-ready { background: #fdeceb; color: #c0392b; }
.tool-tier-nurture { background: #fff6e0; color: #9a7b12; }
.tool-tier-ready { background: #e8f7ee; color: #1c8a4e; }
.tool-score { font-size: 13px; font-weight: 700; color: var(--muted); margin: 0 0 14px; }
.tool-final-body { font-size: 14.5px; line-height: 1.8; color: var(--ink); white-space: pre-wrap; }
.tool-cta-block { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); }

/* Two-card CTA section — replaces the earlier simple button pair */
.cta-cards { display: grid; grid-template-columns: 1.15fr 1fr; gap: 18px; align-items: stretch; }
.cta-card { border-radius: 16px; padding: 26px 24px; display: flex; flex-direction: column; }
.cta-card-primary {
  background: var(--navy);
  color: #fff;
  box-shadow: 0 14px 32px rgba(45, 46, 110, 0.22);
}
.cta-card-secondary {
  background: #fff;
  border: 1.5px solid var(--line);
  color: var(--ink);
}
.cta-card-eyebrow { margin: 0 0 4px; font-size: 15px; font-weight: 800; letter-spacing: -0.01em; }
.cta-card-primary .cta-card-eyebrow { color: #fff; }
.cta-card-secondary .cta-card-eyebrow { color: var(--ink); }
.cta-card-subtitle { margin: 0 0 10px; font-size: 12.5px; font-weight: 600; opacity: 0.85; }
.cta-card-price {
  display: inline-block; align-self: flex-start; margin: 0 0 12px;
  font-size: 11.5px; font-weight: 800; letter-spacing: 0.02em;
  padding: 5px 12px; border-radius: 999px;
  background: rgba(255,255,255,0.16); color: #fff;
}
.cta-card-desc { margin: 0 0 18px; font-size: 13px; line-height: 1.6; flex-grow: 1; }
.cta-card-primary .cta-card-desc { color: rgba(255,255,255,0.85); }
.cta-card-secondary .cta-card-desc { color: var(--muted); }
.cta-card-btn {
  display: inline-flex; align-self: flex-start;
  font-family: 'Plus Jakarta Sans', sans-serif; font-size: 13.5px; font-weight: 700;
  padding: 12px 22px; border-radius: 999px; text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.cta-card-btn-primary { background: #fff; color: var(--navy); }
.cta-card-btn-primary:hover { transform: translateY(-1px); box-shadow: 0 8px 20px rgba(0,0,0,0.18); }
.cta-card-btn-secondary { background: var(--navy); color: #fff; }
.cta-card-btn-secondary:hover { transform: translateY(-1px); box-shadow: 0 8px 20px rgba(45,46,110,0.22); }
@media (max-width: 700px) {
  .cta-cards { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
  .tool-panel { grid-template-columns: 1fr; }
  .tool-form { grid-template-columns: 1fr 1fr; }
  .tool-result-col { border-left: none; border-top: 1px solid var(--line); padding-left: 0; padding-top: 24px; }
}
@media (max-width: 600px) {
  .tool-form { grid-template-columns: 1fr; }
  .tool-panel { padding: 24px; }
  .tool-hero { padding: 64px 0 44px; }
  .tool-section { padding: 44px 0 72px; }
}


/* ==========================================================================
   Tool layout v2  (Tool Map / Layout Spec, Oct 2026)
   One question on the left, one card on the right. Every step swaps inside
   the card. All classes are prefixed tf- so tool pages that have not moved
   over yet keep the legacy rules above untouched. Delete the legacy rules
   once all six tools use this block. Tokens come from global.css.
   ========================================================================== */
.tf-stage {
  min-height: calc(100vh - 72px);
  display: flex;
  align-items: center;
  padding: 56px 0 72px;
  background: linear-gradient(180deg, #fbfbfd 0%, #f5f4fa 100%);
}
.tf-split {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 72px;
  align-items: center;
}
.tf-eyebrow {
  margin: 0 0 18px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #777890;
}
.tf-heading {
  margin: 0 0 18px;
  font-size: clamp(34px, 4.6vw, 56px);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.045em;
  color: var(--ink);
}
.tf-heading em { font-style: normal; color: var(--pink); }
.tf-support { margin: 0; max-width: 44ch; color: var(--muted); font-size: 17px; line-height: 1.7; }
.tf-meta {
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
}
.tf-meta li::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--teal);
  margin-right: 8px;
}

.tf-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 30px 32px 32px;
  box-shadow: 0 18px 44px rgba(45, 46, 110, 0.08);
}
.tf-card [tabindex="-1"]:focus { outline: none; }

/* progress */
.tf-progress { display: flex; align-items: center; gap: 12px; margin: 0 0 26px; }
.tf-progress-bar { flex: 1; height: 3px; border-radius: 99px; background: var(--line); overflow: hidden; }
.tf-progress-bar i { display: block; height: 100%; background: var(--navy); border-radius: 99px; transition: width 0.3s; }
.tf-progress span { font-size: 12px; font-weight: 700; color: #9a9bb0; white-space: nowrap; }

/* titles and questions */
.tf-title { margin: 0 0 4px; font-size: 18px; font-weight: 800; letter-spacing: -0.02em; }
.tf-sub { margin: 0 0 24px; font-size: 13px; color: var(--muted); line-height: 1.6; }
.tf-q { margin: 0 0 22px; font-size: 20px; font-weight: 800; line-height: 1.3; letter-spacing: -0.02em; }
.tf-q small { display: block; margin-top: 6px; font-size: 12.5px; font-weight: 500; color: #9a9bb0; letter-spacing: 0; }

/* single-choice rows */
.tf-opts { display: flex; flex-direction: column; gap: 10px; }
.tf-opt {
  display: flex;
  align-items: center;
  gap: 12px;
  text-align: left;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  background: #fff;
  border: 1.5px solid var(--line);
  border-radius: 14px;
  padding: 14px 16px;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}
.tf-opt:hover { border-color: var(--navy); }
.tf-opt.is-selected { border-color: var(--navy); background: #f5f5fb; }
.tf-dot {
  flex: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 1.5px solid #c9cadb;
  display: grid;
  place-items: center;
}
.tf-opt.is-selected .tf-dot { border-color: var(--navy); background: var(--navy); box-shadow: inset 0 0 0 3px #fff; }
.tf-opt em { display: block; font-style: normal; font-weight: 500; font-size: 12.5px; color: var(--muted); margin-top: 2px; }

/* multi-select chips */
.tf-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.tf-chip {
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  background: #fff;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  padding: 9px 14px;
  cursor: pointer;
}
.tf-chip:hover { border-color: var(--navy); }
.tf-chip.is-selected { background: var(--navy); border-color: var(--navy); color: #fff; }

/* email and code fields */
.tf-field { display: flex; flex-direction: column; gap: 6px; margin: 0 0 14px; }
.tf-field label { font-size: 12px; font-weight: 700; }
.tf-field input {
  font: inherit;
  font-size: 14px;
  padding: 11px 13px;
  border: 1px solid var(--line);
  border-radius: 10px;
  outline: none;
  width: 100%;
}
.tf-field input:focus { border-color: var(--navy); box-shadow: 0 0 0 3px rgba(45, 46, 110, 0.1); }
.tf-field input.tf-code { letter-spacing: 0.4em; font-size: 20px; text-align: center; }

/* buttons and links */
.tf-btn {
  width: 100%;
  margin-top: 22px;
  font: inherit;
  font-size: 14.5px;
  font-weight: 700;
  color: #fff;
  background: var(--navy);
  border: 0;
  border-radius: 999px;
  padding: 15px 24px;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}
.tf-btn:hover { transform: translateY(-1px); box-shadow: 0 10px 24px rgba(45, 46, 110, 0.2); }
.tf-btn:disabled { opacity: 0.6; cursor: not-allowed; transform: none; box-shadow: none; }
.tf-back {
  display: block;
  margin: 14px auto 0;
  background: none;
  border: 0;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
  text-decoration: underline;
}
.tf-error { margin: 14px 0 0; font-size: 13px; font-weight: 600; color: #c0392b; line-height: 1.5; }

/* result */
.tf-result { --band: var(--navy); }
.tf-result[data-band="ready"] { --band: #1c8a4e; }
.tf-result[data-band="partial"] { --band: #c9a227; }
.tf-result[data-band="not-ready"] { --band: #c0392b; }
.tf-result::before {
  content: "";
  display: block;
  width: 44px;
  height: 4px;
  border-radius: 99px;
  background: var(--band);
  margin-bottom: 16px;
}
.tf-headline { font-size: clamp(34px, 5vw, 52px); font-weight: 800; line-height: 1.05; letter-spacing: -0.04em; color: var(--navy); }
.tf-warn {
  margin: 18px 0 0;
  padding: 12px 14px;
  border-radius: 12px;
  background: #fff6e0;
  color: #7a5f0c;
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1.55;
}
.tf-rows { margin-top: 22px; }
.tf-row { display: flex; justify-content: space-between; gap: 16px; align-items: baseline; padding: 12px 0; border-top: 1px solid var(--line); font-size: 13.5px; }
.tf-row b { font-weight: 800; color: var(--navy); text-align: right; }
.tf-row.is-flagged b { color: #c0392b; }
.tf-row.is-note { display: block; }
.tf-row.is-note b { display: block; margin-top: 6px; font-weight: 600; color: var(--ink); text-align: left; line-height: 1.6; }
.tf-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.tf-tag { font-size: 12.5px; font-weight: 700; color: var(--navy); background: #f0eeff; border-radius: 999px; padding: 6px 12px; }
.tf-read { margin: 20px 0 0; padding-top: 18px; border-top: 1px solid var(--line); font-size: 14px; line-height: 1.75; }

/* the two CTAs, same markup on the result and already-used screens */
.tf-cta { margin-top: 22px; display: flex; flex-direction: column; gap: 12px; }
.tf-cta-line { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 16px; }
.tf-cta-btn {
  flex: 0 0 210px;
  text-align: center;
  font-size: 14px;
  font-weight: 700;
  color: var(--navy);
  border: 1px solid var(--navy);
  border-radius: 999px;
  padding: 12px 16px;
  background: transparent;
  transition: background 0.15s, color 0.15s;
}
.tf-cta-btn:hover,
.tf-cta-btn:focus-visible { background: var(--navy); color: #fff; outline: none; }
.tf-cta-note { font-size: 13px; color: var(--muted); }

@media (max-width: 900px) {
  .tf-split { grid-template-columns: 1fr; gap: 36px; }
  .tf-stage { padding: 40px 0 56px; display: block; min-height: 0; }
  .tf-card { padding: 24px 20px; }
}
@media (max-width: 480px) {
  .tf-cta-line { flex-direction: column; align-items: stretch; }
  .tf-cta-btn { flex: none; }
  .tf-cta-note { text-align: center; }
}

/* calculators: 4-segment progress, sliders with a typed value box */
.tf-segments { display: flex; gap: 6px; margin: 0 0 26px; }
.tf-segments i { flex: 1; height: 3px; border-radius: 99px; background: var(--line); }
.tf-segments i.on { background: var(--navy); }

.tf-input-row { padding: 16px 0; border-top: 1px solid var(--line); }
.tf-title + .tf-sub + .tf-input-row { border-top: 0; padding-top: 0; }
.tf-input-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 12px; }
.tf-input-head label { font-size: 13.5px; font-weight: 600; }
.tf-val {
  width: 92px;
  font: inherit;
  font-size: 14px;
  font-weight: 800;
  color: var(--navy);
  text-align: center;
  font-variant-numeric: tabular-nums;
  border: 1.5px solid var(--navy);
  border-radius: 7px;
  padding: 2px 8px;
  background: #fff;
  outline: none;
}
.tf-val:focus { box-shadow: 0 0 0 3px rgba(45, 46, 110, 0.12); }
.tf-val:disabled { color: var(--muted); border-color: var(--line); background: #f7f7fb; }

.tf-range {
  -webkit-appearance: none;
  appearance: none;
  display: block;
  width: 100%;
  height: 4px;
  border-radius: 99px;
  background: var(--line);
  outline: none;
  margin: 0;
}
.tf-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  border: 5px solid var(--navy);
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(45, 46, 110, 0.25);
}
.tf-range::-moz-range-thumb {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #fff;
  border: 5px solid var(--navy);
  cursor: pointer;
}
.tf-range:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 4px rgba(45, 46, 110, 0.18); }
.tf-range:disabled { opacity: 0.45; }
.tf-range:disabled::-webkit-slider-thumb { cursor: default; }
.tf-hint { margin: 10px 0 0; font-size: 12px; line-height: 1.5; color: #9a9bb0; }
.tf-link {
  background: none;
  border: 0;
  padding: 0;
  margin-top: 8px;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  color: var(--navy);
  cursor: pointer;
  text-decoration: underline;
}

.tf-more { margin-top: 4px; padding: 14px 0 0; border-top: 1px solid var(--line); font-size: 13px; }
.tf-more summary { cursor: pointer; font-weight: 700; color: var(--navy); list-style: none; }
.tf-more summary::-webkit-details-marker { display: none; }
.tf-more summary::after { content: " +"; }
.tf-more[open] summary::after { content: " \2013"; }
.tf-more-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 14px; }
.tf-more-grid .tf-field { margin: 0; }

.tf-subline { margin: 10px 0 0; font-size: 13.5px; font-weight: 600; color: var(--muted); }

.tf-more-grid-2 { grid-template-columns: repeat(2, 1fr); }

/* a form taller than the screen: keep the question in view, top-aligned */
@media (min-width: 901px) {
  .tf-split-tall { align-items: start; }
  .tf-split-tall > section:first-child { position: sticky; top: 112px; }
}
.tf-more-grid .tf-hint { margin: 0; }
.tf-choice-label { font-size: 13.5px; font-weight: 600; }

@media (max-width: 900px) {
  .tf-more-grid,
  .tf-more-grid-2 { grid-template-columns: 1fr; }
}

/* rating scales (1 to 5) and the per-pillar result bars */
.tf-pillar { margin: 0 0 6px; font-size: 11px; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: var(--pink); }
.tf-scale-q { padding: 18px 0; border-top: 1px solid var(--line); }
.tf-pillar + .tf-scale-q { border-top: 0; padding-top: 6px; }
.tf-scale-q p { margin: 0 0 14px; font-size: 14.5px; font-weight: 600; line-height: 1.5; }
.tf-scale { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.tf-scale button {
  font: inherit;
  font-size: 15px;
  font-weight: 800;
  color: var(--ink);
  background: #fff;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  padding: 12px 0;
  cursor: pointer;
}
.tf-scale button:hover { border-color: var(--navy); }
.tf-scale button.is-selected { background: var(--navy); border-color: var(--navy); color: #fff; }
.tf-scale-ends { display: flex; justify-content: space-between; margin-top: 8px; font-size: 11.5px; font-weight: 600; color: #9a9bb0; }

.tf-bars { margin-top: 20px; }
.tf-bar-row { display: grid; grid-template-columns: 110px 1fr 38px; gap: 12px; align-items: center; padding: 7px 0; font-size: 13px; font-weight: 600; }
.tf-bar-track { height: 8px; border-radius: 99px; background: var(--line); overflow: hidden; }
.tf-bar-track i { display: block; height: 100%; border-radius: 99px; background: var(--navy); }
.tf-bar-row b { text-align: right; font-variant-numeric: tabular-nums; }
.tf-bar-row.is-weak { color: #c0392b; }
.tf-bar-row.is-weak .tf-bar-track i { background: #e8605a; }

@media (max-width: 480px) {
  .tf-bar-row { grid-template-columns: 96px 1fr 34px; gap: 8px; }
}

/* paste box with a word counter */
.tf-textarea {
  display: block;
  width: 100%;
  min-height: 190px;
  font: inherit;
  font-size: 14px;
  line-height: 1.6;
  padding: 14px;
  border: 1.5px solid var(--line);
  border-radius: 14px;
  outline: none;
  resize: vertical;
}
.tf-textarea:focus { border-color: var(--navy); box-shadow: 0 0 0 3px rgba(45, 46, 110, 0.1); }
.tf-count { margin: 8px 0 0; text-align: right; font-size: 12px; color: #9a9bb0; }
.tf-count.is-over { color: #c0392b; font-weight: 700; }
