/* ============================================
   Shere Data Solutions — Data & AI Readiness (/readiness/)
   Depends on tokens.css + main.css. All page-specific
   selectors are namespaced `rd-` to stay out of the
   global cascade; only .container, .btn and
   .visually-hidden are borrowed from main.css.
   ============================================ */

.rd-section {
  padding: calc(var(--header-h) + clamp(30px, 5vh, 54px)) 0 clamp(56px, 8vh, 96px);
}

.rd-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: clamp(30px, 4vw, 54px);
  align-items: start;
}

/* ---------- Left panel ---------- */

.rd-panel { position: sticky; top: calc(var(--header-h) + 18px); }

/* The panel swaps its whole message once there's a score to unlock. */
.rd-panel-result { display: none; }
.rd-panel[data-state="result"] .rd-panel-intro { display: none; }
.rd-panel[data-state="result"] .rd-panel-result { display: block; }

.rd-title {
  margin: 14px 0 16px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.85rem, 3.3vw, 2.45rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
.rd-lede {
  margin: 0 0 22px;
  max-width: 42ch;
  font-size: 1rem;
  color: var(--taupe-dark);
}

.rd-urgency {
  margin: 0 0 24px;
  padding: 15px 18px;
  border-left: 3px solid var(--orange);
  background: #FFF3E8;
}
.rd-urgency p {
  margin: 0;
  font-size: 0.87rem;
  line-height: 1.5;
  color: var(--ink);
}
.rd-urgency strong { color: var(--orange); }

.rd-gets-label {
  margin: 0 0 12px;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 10.5px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--taupe);
}
.rd-gets {
  margin: 0 0 24px;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 11px;
}
.rd-gets li {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  font-size: 0.87rem;
  line-height: 1.4;
  color: var(--ink);
}
.rd-gets li svg {
  flex: 0 0 18px;
  width: 18px;
  height: 18px;
  margin-top: 1px;
  color: var(--orange);
}
.rd-gets li.rd-hero {
  margin-top: 2px;
  padding: 11px 13px;
  background: #fff;
  border: 1px dashed var(--peach-deep);
  border-radius: 12px;
}
.rd-gets li.rd-hero b { color: var(--orange); }

.rd-cue {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 11.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--orange);
}
.rd-cue .rd-pip {
  flex: none;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--orange);
}

/* ---------- Quiz card ---------- */

.rd-card {
  background: #fff;
  border: 1px solid var(--ink-08);
  border-radius: 20px;
  padding: clamp(26px, 3vw, 36px) clamp(22px, 2.6vw, 34px);
  box-shadow: 0 24px 60px -34px rgba(26, 21, 17, 0.35);
}

.rd-progress {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 26px;
}
.rd-steps {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.04em;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.rd-bar {
  flex: 1;
  height: 6px;
  border-radius: 99px;
  background: var(--peach);
  overflow: hidden;
}
.rd-bar i {
  display: block;
  height: 100%;
  width: 0;
  border-radius: 99px;
  background: var(--orange);
  transition: width 0.4s var(--ease);
}

.rd-q {
  margin: 6px 0 22px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.15rem, 2vw, 1.36rem);
  line-height: 1.22;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

.rd-opts { display: flex; flex-direction: column; gap: 11px; }
.rd-opt {
  display: flex;
  align-items: center;
  gap: 13px;
  width: 100%;
  padding: 15px 17px;
  text-align: left;
  font-family: var(--font-body);
  font-size: 0.94rem;
  line-height: 1.4;
  color: var(--ink);
  background: #fff;
  border: 1.5px solid var(--ink-14);
  border-radius: 14px;
  cursor: pointer;
  transition: border-color 0.15s var(--ease), background 0.15s var(--ease);
}
.rd-opt:hover { border-color: var(--orange); background: #FFF7F0; }
.rd-opt .rd-dot {
  flex: 0 0 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid var(--peach-deep);
  transition: border-color 0.15s var(--ease), background 0.15s var(--ease);
}
.rd-opt.is-sel { border-color: var(--orange); background: #FFF3E8; }
.rd-opt.is-sel .rd-dot {
  border-color: var(--orange);
  background: var(--orange);
  box-shadow: inset 0 0 0 3px #fff;
}

.rd-navrow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 26px;
  min-height: 44px;
}
.rd-back {
  padding: 10px 4px;
  font-family: var(--font-body);
  font-size: 0.87rem;
  color: var(--taupe-dark);
  background: none;
  border: 0;
  cursor: pointer;
  transition: color 0.2s var(--ease);
}
.rd-back:hover { color: var(--ink); }
.rd-autonote { font-size: 0.78rem; font-style: italic; color: var(--taupe); }

/* ---------- Result ---------- */

/* Ring beside the copy rather than above it — keeps the form within reach
   of the fold instead of pushing it a screen down. */
.rd-ringwrap {
  display: flex;
  align-items: center;
  gap: clamp(16px, 3vw, 28px);
  margin: 4px 0 2px;
}
.rd-ring { position: relative; flex: none; width: 148px; height: 148px; }
.rd-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.rd-scorecopy { min-width: 0; }
.rd-ring .rd-num {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.rd-ring .rd-num b {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 40px;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.rd-ring .rd-num span {
  margin-top: 2px;
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--taupe);
}
.rd-tier {
  display: inline-block;
  margin: 0 0 8px;
  padding: 6px 18px;
  border-radius: 999px;
  background: var(--orange-12);
  color: var(--orange);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.22rem;
}
.rd-tierblurb { margin: 0; font-size: 0.88rem; line-height: 1.5; color: var(--taupe-dark); }

.rd-breakdown {
  margin-top: 26px;
  padding-top: 22px;
  border-top: 1px solid var(--ink-08);
}
.rd-breakdown h2 {
  margin: 0 0 14px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.87rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.rd-dim { display: flex; align-items: center; gap: 12px; margin-bottom: 11px; }
.rd-dim .rd-lbl { flex: 0 0 150px; font-size: 0.82rem; color: var(--taupe-dark); }
.rd-dim .rd-track { flex: 1; height: 8px; border-radius: 99px; background: var(--peach); }
.rd-dim .rd-track i { display: block; height: 100%; border-radius: 99px; background: var(--orange); }
.rd-dim .rd-sc {
  flex: 0 0 34px;
  text-align: right;
  font-size: 0.8rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

/* ---------- Gate ---------- */

.rd-gate {
  margin-top: 24px;
  padding: 24px 22px;
  background: linear-gradient(180deg, #FFF7F0, #fff);
  border: 1.5px solid var(--peach-deep);
  border-radius: 16px;
}
.rd-gate h2 {
  margin: 0 0 6px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
}
.rd-gate > p { margin: 0 0 16px; font-size: 0.87rem; color: var(--taupe-dark); }

.rd-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.rd-field { display: flex; flex-direction: column; gap: 5px; }
.rd-field.rd-full { grid-column: 1 / -1; }
.rd-field span {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 9.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--taupe);
}
.rd-field input {
  width: 100%;
  padding: 13px 15px;
  font-family: var(--font-body);
  font-size: 0.94rem;
  color: var(--ink);
  background: #fff;
  border: 1.5px solid var(--ink-14);
  border-radius: 12px;
}
.rd-field input:focus {
  outline: none;
  border-color: var(--orange);
  box-shadow: 0 0 0 3px var(--orange-12);
}
.rd-hint { margin: 8px 2px 0; min-height: 17px; font-size: 0.76rem; color: var(--taupe); }
.rd-hint.is-warn { color: #B4531B; }

.rd-consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 14px 0 4px;
  font-size: 0.76rem;
  line-height: 1.5;
  color: var(--taupe-dark);
}
.rd-consent input {
  flex: none;
  width: 16px;
  height: 16px;
  margin-top: 2px;
  accent-color: var(--orange);
}
.rd-consent a { color: var(--orange); }

.rd-gate .btn { width: 100%; justify-content: center; margin-top: 16px; }
.btn[disabled] { background: var(--peach-deep); cursor: not-allowed; }
.btn[disabled]:hover { background: var(--peach-deep); transform: none; }

/* ---------- Report ---------- */

.rd-report h1 {
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.35rem, 2.6vw, 1.7rem);
  line-height: 1.12;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
.rd-meta {
  margin: 0 0 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--orange);
}
.rd-report > p.rd-intro { margin: 0; max-width: 54ch; font-size: 0.94rem; color: var(--taupe-dark); }

.rd-recs { margin: 20px 0 0; padding: 0; list-style: none; counter-reset: rd; }
.rd-recs li {
  position: relative;
  counter-increment: rd;
  margin-bottom: 16px;
  padding: 0 0 16px 40px;
  border-bottom: 1px solid var(--ink-08);
}
.rd-recs li:last-child { margin-bottom: 0; padding-bottom: 0; border-bottom: 0; }
.rd-recs li::before {
  content: counter(rd);
  position: absolute;
  left: 0;
  top: 1px;
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--orange-12);
  color: var(--orange);
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 12px;
}
.rd-recs h3 {
  margin: 0 0 5px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.97rem;
  line-height: 1.25;
  color: var(--ink);
}
.rd-recs p { margin: 0; font-size: 0.85rem; line-height: 1.55; color: var(--taupe-dark); }
.rd-dimtag {
  display: block;
  margin-bottom: 4px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-style: normal;
  letter-spacing: 0.03em;
  color: var(--taupe);
}
.rd-when {
  display: inline-block;
  margin-top: 7px;
  padding: 3px 9px;
  border: 1px solid var(--ink-08);
  border-radius: 99px;
  background: var(--cream);
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--taupe);
}

.rd-signoff {
  margin: 22px 0 0;
  padding-top: 20px;
  border-top: 1px solid var(--ink-08);
  font-size: 0.85rem;
  line-height: 1.6;
  color: var(--taupe-dark);
}
.rd-signoff strong { color: var(--ink); }

.rd-again {
  margin-top: 18px;
  padding: 10px 4px;
  font-family: var(--font-body);
  font-size: 0.85rem;
  color: var(--taupe-dark);
  background: none;
  border: 0;
  cursor: pointer;
}
.rd-again:hover { color: var(--ink); }

/* ---------- Motion ---------- */

.rd-fade { animation: rd-fade 0.35s var(--ease); }
@keyframes rd-fade {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}

/* ---------- Responsive ---------- */

@media (max-width: 900px) {
  .rd-layout { grid-template-columns: 1fr; gap: 26px; }
  .rd-panel { position: static; }
  .rd-lede,
  .rd-gets,
  .rd-gets-label { display: none; }
  .rd-urgency { margin-bottom: 18px; }
}
@media (max-width: 620px) {
  .rd-ringwrap { flex-direction: column; text-align: center; gap: 14px; }
  .rd-ring { width: 132px; height: 132px; }
}
@media (max-width: 560px) {
  .rd-fields { grid-template-columns: 1fr; }
  .rd-dim .rd-lbl { flex-basis: 108px; }
}

@media (prefers-reduced-motion: reduce) {
  .rd-fade { animation: none; }
  .rd-bar i,
  .rd-opt,
  .rd-opt .rd-dot { transition: none; }
}
