/* ============================================================
   roles.css - Retail+ role pages (light).
   Extends styles.css tokens. Loaded after styles.css +
   product.css (for shared components: buttons, closer, footer).
   Locked section sequence: hero · pressure · workflows (warm) ·
   how it works · ask Hank · what it's worth (warm) · closer.
   ============================================================ */

.rl-page { background: var(--tap-bg); }

/* Shared inner width + rhythm */
.rl-wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding-left: var(--pad-x);
  padding-right: var(--pad-x);
}
.rl-section { padding-top: var(--pad-y); padding-bottom: var(--pad-y); }
/* Delineate adjacent same-background sections with a hairline. Warm bands
   carry their own top/bottom borders, so suppress the line on any section
   that directly follows a band (avoids a double rule). */
section.rl-section { border-top: 1px solid var(--tap-line); }
.rl-band + section.rl-section { border-top: none; }
.rl-head { max-width: 760px; }
.rl-head .eyebrow { display: block; margin-bottom: 14px; }
.rl-head h2 {
  font-size: var(--type-h2);
  font-weight: 700; letter-spacing: -0.03em; line-height: 1.05;
  margin: 0; text-wrap: balance;
}
.rl-head p {
  font-size: 17px; color: var(--tap-ink-2); line-height: 1.55;
  margin: 16px 0 0; max-width: 620px;
}

/* Full-bleed warm band wrapper */
.rl-band {
  background: var(--tap-bg-warm);
  border-top: 1px solid var(--tap-line);
  border-bottom: 1px solid var(--tap-line);
}

/* ============================================================
   S1 · HERO (default bg)
   ============================================================ */
.rl-hero {
  position: relative;
  overflow: hidden;
  padding: 72px 0 64px;
}
.rl-hero::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(900px 420px at 88% -8%, var(--tap-orange-light) 0%, transparent 62%);
  pointer-events: none;
}
.rl-hero-inner { position: relative; }
.rl-eyebrow-pill {
  display: inline-block;
  font-size: 11px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--tap-orange-deep);
  background: var(--tap-orange-light);
  border: 1px solid rgba(242,122,46,0.20);
  border-radius: 999px;
  padding: 6px 13px;
  margin-bottom: 24px;
}
.rl-h1 {
  font-size: clamp(42px, 5.4vw, 72px);
  font-weight: 700; line-height: 1.04; letter-spacing: -0.03em;
  margin: 0 0 22px; color: var(--tap-ink);
  text-wrap: balance; max-width: 900px;
}
.rl-hero-deck {
  font-size: 20px; line-height: 1.5; color: var(--tap-ink-2);
  margin: 0 0 32px; max-width: 640px; font-weight: 350;
}
.rl-hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.rl-hero-trust {
  font-size: 13px; color: var(--tap-ink-3); font-weight: 500;
  margin: 24px 0 0; letter-spacing: 0.01em;
}

/* ============================================================
   S2 · THE PRESSURE (default bg) - 3 pain cards
   ============================================================ */
.rl-pain-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px;
  margin-top: 44px;
}
.rl-card {
  background: var(--tap-card);
  border: 1px solid var(--tap-line);
  border-radius: 12px;
  padding: 22px 22px 24px;
  display: flex; flex-direction: column; gap: 12px;
  transition: box-shadow 150ms var(--ease), border-color 150ms var(--ease), transform 150ms var(--ease);
}
.rl-card:hover {
  box-shadow: var(--tap-shadow-md);
  border-color: var(--tap-line-strong);
  transform: translateY(-2px);
}
.rl-pain-ic {
  width: 40px; height: 40px; border-radius: 10px; flex: none;
  display: grid; place-items: center;
  background: var(--tap-orange-light);
  color: var(--tap-orange-deep);
  border: 1px solid rgba(242,122,46,0.16);
}
.rl-pain-ic svg { width: 20px; height: 20px; }
.rl-pain-card h3 {
  font-size: 18px; font-weight: 700; letter-spacing: -0.015em; line-height: 1.25;
  margin: 4px 0 0; color: var(--tap-ink); text-wrap: balance;
}
.rl-pain-card p {
  font-size: 14.5px; line-height: 1.55; color: var(--tap-ink-2); margin: 0;
  text-wrap: pretty;
}

/* ============================================================
   S3 · WORKFLOWS (warm band) - static cards (no live workflow pages yet)
   ============================================================ */
.rl-wf-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px;
  margin-top: 40px;
}
.rl-wf-card {
  background: var(--tap-card);
  border: 1px solid var(--tap-line);
  border-radius: 14px;
  padding: 22px 22px 24px;
  display: flex; flex-direction: column; gap: 12px;
}
.rl-wf-tag {
  align-self: flex-start;
  font-size: 10px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  padding: 4px 9px; border-radius: 4px;
  background: var(--tap-bg-warm); color: var(--tap-ink-2);
  border: 1px solid var(--tap-line);
  font-variant-numeric: tabular-nums;
}
.rl-wf-card h3 {
  font-size: 18px; font-weight: 700; letter-spacing: -0.015em; line-height: 1.25;
  margin: 2px 0 0; color: var(--tap-ink); text-wrap: balance;
}
.rl-wf-card p {
  font-size: 13.5px; line-height: 1.5; color: var(--tap-ink-2); margin: 0;
  text-wrap: pretty;
}

/* ============================================================
   S4 · HOW IT WORKS (default bg) - the loop, role lens
   ============================================================ */
.rl-loop {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 0;
  margin-top: 44px;
  border-top: 1px solid var(--tap-line-strong);
}
.rl-loop-step {
  padding: 26px 26px 26px 0;
  display: flex; flex-direction: column; gap: 10px;
  border-right: 1px solid var(--tap-line);
}
.rl-loop-step:last-child { border-right: none; }
.rl-loop-step:not(:first-child) { padding-left: 26px; }
.rl-loop-num {
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 22px;
  font-size: 11px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--tap-ink-3); font-variant-numeric: tabular-nums;
}
.rl-loop-step h3 {
  font-size: 21px; font-weight: 700; letter-spacing: -0.02em; line-height: 1.15;
  margin: 0; color: var(--tap-ink);
}
.rl-loop-step p {
  font-size: 14px; line-height: 1.55; color: var(--tap-ink-2); margin: 0; flex: 1;
}
.rl-loop-link {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 13px; font-weight: 700; color: var(--tap-ink);
  margin-top: 4px;
}
.rl-loop-link svg { width: 12px; height: 12px; transition: transform 150ms var(--ease); }
.rl-loop-link:hover { color: var(--tap-orange-deep); }
.rl-loop-link:hover svg { transform: translateX(3px); }
/* Hank step - gradient accent */
.rl-loop-step.is-hank .rl-loop-num { color: var(--tap-orange-deep); }
.rl-loop-pro {
  display: inline-flex; align-items: center;
  font-size: 10px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  padding: 3px 7px; border-radius: 4px;
  background: var(--tap-orange-light); color: var(--tap-orange-deep);
}
.rl-loop-step.is-hank h3 {
  background: var(--tap-grad-hank);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  display: inline-block; padding-right: 0.12em; margin-right: -0.12em;
}

/* ============================================================
   S5 · ASK HANK (default bg) - chat-chip panel
   ============================================================ */
.rl-hank {
  background: var(--tap-card);
  border: 1px solid var(--tap-line);
  border-radius: 18px;
  box-shadow: var(--tap-shadow-md);
  overflow: hidden;
  max-width: 760px;
  margin-top: 40px;
}
.rl-hank-head {
  display: flex; align-items: center; gap: 12px;
  padding: 16px 18px;
  border-bottom: 1px solid var(--tap-line);
  background: linear-gradient(180deg, #FFF7F0 0%, #FFFFFF 100%);
}
.rl-hank-avatar {
  width: 40px; height: 40px; border-radius: 50%; flex: none;
  background: var(--tap-grad-hank);
  display: grid; place-items: center; color: #fff;
  box-shadow: var(--tap-shadow-orange);
}
.rl-hank-avatar svg { width: 26px; height: 26px; }
.rl-hank-id { display: flex; align-items: center; gap: 8px; }
.rl-hank-name { font-size: 15px; font-weight: 800; letter-spacing: 0.02em; color: var(--tap-ink); }
.rl-hank-pill {
  font-size: 9.5px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
  padding: 2px 6px; border-radius: 4px;
  background: var(--tap-orange-light); color: var(--tap-orange-deep);
}
.rl-hank-sub { font-size: 12.5px; color: var(--tap-ink-2); margin-top: 2px; }
.rl-hank-body { padding: 18px; display: flex; flex-direction: column; gap: 10px; }
.rl-hank-label {
  font-size: 12px; font-weight: 600; letter-spacing: 0.01em; text-transform: none;
  color: var(--tap-ink-2); margin-bottom: 4px; line-height: 1.4;
}
/* Illustrative example prompts - explanatory, NOT an interactive widget */
.rl-hank-example {
  display: flex; align-items: flex-start; gap: 11px;
  background: #fff;
  border: 1px solid var(--tap-line);
  border-radius: 10px;
  padding: 12px 14px;
}
.rl-hank-example-ic {
  flex: none; width: 24px; height: 24px; border-radius: 7px;
  display: grid; place-items: center;
  background: var(--tap-orange-light); color: var(--tap-orange-deep);
  border: 1px solid rgba(242,122,46,0.16);
  margin-top: 1px;
}
.rl-hank-example-ic svg { width: 13px; height: 13px; }
.rl-hank-example-q {
  font-size: 14px; font-weight: 500; color: var(--tap-ink); line-height: 1.4;
}
.rl-hank-intro {
  font-size: 16px; line-height: 1.6; color: var(--tap-ink-2);
  margin: 16px 0 0; max-width: 680px;
}
.rl-hank-chip {
  display: flex; align-items: center; gap: 12px;
  background: #fff;
  border: 1px solid var(--tap-line);
  border-radius: 10px;
  padding: 13px 14px;
  text-align: left;
  transition: border-color 120ms, box-shadow 120ms, transform 120ms;
}
.rl-hank-chip:hover {
  border-color: var(--tap-line-strong);
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
  transform: translateY(-1px);
}
.rl-hank-chip-q {
  flex: 1; font-size: 14px; font-weight: 500; color: var(--tap-ink); line-height: 1.35;
}
.rl-hank-chip-ask {
  flex: none; font-size: 11.5px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase;
  color: var(--tap-orange-deep);
  display: inline-flex; align-items: center; gap: 5px;
}
.rl-hank-chip-ask svg { width: 11px; height: 11px; transition: transform 150ms var(--ease); }
.rl-hank-chip:hover .rl-hank-chip-ask svg { transform: translateX(3px); }
.rl-hank-foot {
  padding: 12px 18px 16px;
  border-top: 1px solid var(--tap-line);
  font-size: 11px; color: var(--tap-ink-3); text-align: center;
}

/* ============================================================
   S6 · WHAT IT'S WORTH (warm band) - EIR figures
   ============================================================ */
.rl-worth-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 56px;
  align-items: center; margin-top: 8px;
}
.rl-worth-copy .rl-worth-body {
  font-size: 17px; line-height: 1.65; color: var(--tap-ink-2); margin: 20px 0 0;
}
.rl-worth-copy .rl-worth-disclaim {
  font-size: 12.5px; color: var(--tap-ink-3); margin: 10px 0 0; line-height: 1.5;
}
.rl-worth-link {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 15px; font-weight: 700; color: var(--tap-ink);
  border-bottom: 2px solid var(--tap-orange);
  padding-bottom: 4px; margin-top: 24px;
}
.rl-worth-link svg { width: 13px; height: 13px; transition: transform 150ms var(--ease); }
.rl-worth-link:hover { color: var(--tap-orange-deep); }
.rl-worth-link:hover svg { transform: translateX(3px); }
.rl-worth-support {
  font-size: 14.5px; line-height: 1.55; color: var(--tap-ink-2);
  margin: 24px 0 0; padding-top: 20px; border-top: 1px solid var(--tap-line);
}
.rl-worth-stats {
  display: flex; flex-direction: column; gap: 0;
  background: var(--tap-card);
  border: 1px solid var(--tap-line);
  border-radius: 16px;
  box-shadow: var(--tap-shadow-sm);
  overflow: hidden;
}
.rl-worth-stat {
  padding: 22px 24px;
  border-bottom: 1px solid var(--tap-line);
  display: flex; align-items: baseline; justify-content: space-between; gap: 16px;
}
.rl-worth-stat:last-child { border-bottom: none; }
.rl-worth-stat.is-lead { background: var(--tap-orange-subtle); }
.rl-worth-stat-label {
  font-size: 11px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--tap-ink-3);
}
.rl-worth-stat.is-lead .rl-worth-stat-label { color: var(--tap-orange-deep); }
.rl-worth-stat-num {
  font-size: clamp(30px, 3.4vw, 40px); font-weight: 800; letter-spacing: -0.03em;
  color: var(--tap-ink); line-height: 1; font-variant-numeric: tabular-nums;
}
.rl-worth-stat.is-lead .rl-worth-stat-num { color: var(--tap-orange-deep); }
.rl-worth-stats-foot {
  padding: 14px 24px; background: var(--tap-bg-warm);
  font-size: 12px; color: var(--tap-ink-3); text-align: center;
  border-top: 1px solid var(--tap-line);
}

/* ============================================================
   S7 · EXPLORE OTHER ROLES (default bg) - lateral navigation
   ============================================================ */
.rl-explore-grid {
  display: grid;
  grid-template-columns: repeat(var(--cols, 4), 1fr);
  gap: 14px;
  margin-top: 40px;
}
/* Explore cards reuse .role-card; neutralise the legacy 5-card span rules
   (grid-column: span 2 at tablet widths) that would force them full-width. */
.rl-explore-grid .role-card { grid-column: auto !important; }
.rl-explore-card { gap: 16px; }
.rl-explore-card .role-card-body { gap: 8px; }
.rl-explore-card h3 { font-size: 17px; }
.rl-explore-card p { font-size: 13.5px; line-height: 1.5; }

/* New section order ends on Explore other roles (default) then the shared
   .closer (default). Add a hairline so the two default sections read apart. */
.rl-page .closer { border-top: 1px solid var(--tap-line); }

/* ============================================================
   S5 · MEET HANK - two-column: copy left, static examples right
   ============================================================ */
.rl-hank-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 56px;
  align-items: start; margin-top: 4px;
}
.rl-hank-copy .eyebrow { display: block; margin-bottom: 14px; }
.rl-hank-copy h2 {
  font-size: var(--type-h2); font-weight: 700; letter-spacing: -0.03em;
  line-height: 1.05; margin: 0; text-wrap: balance;
}
.rl-hank-copy .rl-hank-intro {
  font-size: 17px; line-height: 1.65; color: var(--tap-ink-2);
  margin: 20px 0 0; max-width: 520px;
}
/* Static "what you can ask" panel - informational, not a chat widget:
   no inputs, no buttons, questions are quoted example phrasings. */
.rl-hank-ask {
  background: var(--tap-card);
  border: 1px solid var(--tap-line);
  border-radius: 16px;
  box-shadow: var(--tap-shadow-sm);
  padding: 22px 26px 24px;
}
.rl-hank-ask-head {
  display: flex; align-items: center; gap: 12px;
  padding-bottom: 16px; margin-bottom: 4px;
  border-bottom: 1px solid var(--tap-line);
}
.rl-hank-ask-avatar {
  width: 38px; height: 38px; border-radius: 50%; flex: none;
  background: var(--tap-grad-hank);
  display: grid; place-items: center; color: #fff;
  box-shadow: var(--tap-shadow-orange);
}
.rl-hank-ask-avatar svg { width: 24px; height: 24px; }
.rl-hank-ask-title { font-size: 14px; font-weight: 700; letter-spacing: -0.01em; color: var(--tap-ink); }
.rl-hank-ask-sub { font-size: 12px; color: var(--tap-ink-3); margin-top: 1px; }
.rl-hank-qlist { list-style: none; margin: 0; padding: 0; }
.rl-hank-qlist li {
  position: relative;
  font-size: 15.5px; font-style: italic; line-height: 1.45;
  color: var(--tap-ink);
  padding: 14px 0 14px 28px;
  border-top: 1px solid var(--tap-line);
}
.rl-hank-qlist li:first-child { border-top: none; }
.rl-hank-qlist li::before {
  content: "\201C"; position: absolute; left: 2px; top: 14px;
  font-style: normal; font-size: 24px; line-height: 1;
  color: var(--tap-orange); font-weight: 700;
}
.rl-hank-qlist li::after {
  content: "\201D";
  font-style: normal; font-weight: 700;
  color: var(--tap-orange);
  font-size: 24px; line-height: 0;
  vertical-align: -0.32em; margin-left: 8px;
}
.rl-hank-note {
  font-size: 11.5px; color: var(--tap-ink-3);
  margin: 16px 0 0; padding-top: 14px; border-top: 1px solid var(--tap-line);
}
@media (max-width: 900px) {
  .rl-hank-grid { grid-template-columns: 1fr; gap: 32px; }
  .rl-hank-copy .rl-hank-intro { max-width: none; }
}
/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 1000px) {
  .rl-explore-grid { grid-template-columns: repeat(2, 1fr); }
  .rl-pain-grid { grid-template-columns: 1fr; }
  .rl-wf-grid { grid-template-columns: repeat(2, 1fr); }
  .rl-loop { grid-template-columns: 1fr 1fr; border-top: none; }
  .rl-loop-step {
    border-right: 1px solid var(--tap-line);
    border-top: 1px solid var(--tap-line);
    padding: 24px;
  }
  .rl-loop-step:nth-child(2n) { border-right: none; }
  .rl-worth-grid { grid-template-columns: 1fr; gap: 32px; }
}
@media (max-width: 640px) {
  .rl-explore-grid { grid-template-columns: 1fr !important; }
  .rl-wf-grid { grid-template-columns: 1fr; }
  .rl-explore-grid { grid-template-columns: 1fr; }
  .rl-loop { grid-template-columns: 1fr; }
  .rl-loop-step { border-right: none; }
  .rl-hero { padding-top: 48px; }
  .rl-worth-stat-num { font-size: 30px; }
}
