/* ========================================================================
   Envelop Tech homepage v2 — additive styles for new interactive sections
   Loaded AFTER styles.css. Reuses brand tokens (--brand-deep, --gradient-brand, etc.)
   ======================================================================== */

/* ---------- 1. Operations Console hero ---------------------------------- */

.hero-console {
  background:
    radial-gradient(ellipse 60% 50% at 80% 10%, rgba(42, 157, 143, 0.32), transparent 65%),
    radial-gradient(ellipse 50% 60% at 5% 90%, rgba(127, 193, 116, 0.18), transparent 65%),
    linear-gradient(135deg, #061418 0%, #0a2024 40%, #0E4A46 100%);
  color: #fff;
  min-height: 92vh;
  overflow: hidden;
  padding: 150px 24px 80px;
  position: relative;
}

.hero-console::before {
  background-image:
    linear-gradient(rgba(166, 230, 218, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(166, 230, 218, 0.04) 1px, transparent 1px);
  background-size: 56px 56px;
  content: "";
  inset: 0;
  mask-image: radial-gradient(ellipse at 70% 30%, black 0%, transparent 75%);
  pointer-events: none;
  position: absolute;
  z-index: 0;
}

.hero-console-shell {
  align-items: center;
  display: grid;
  gap: 56px;
  grid-template-columns: minmax(0, 1fr) minmax(420px, 0.95fr);
  margin: 0 auto;
  max-width: 1320px;
  position: relative;
  z-index: 2;
}

.hero-console h1 {
  font-size: clamp(36px, 4.6vw, 60px);
  font-weight: 800;
  letter-spacing: -0.022em;
  line-height: 1.04;
  margin-bottom: 22px;
}

.hero-console h1 em {
  font-family: var(--font-accent);
  font-style: italic;
  font-weight: 400;
}

.hero-console .eyebrow {
  color: #A6E6DA;
  margin-bottom: 22px;
}

.hero-console p.lead {
  color: rgba(238, 248, 243, 0.88);
  font-size: 19px;
  line-height: 1.55;
  margin-bottom: 32px;
  max-width: 540px;
}

.hero-console .hero-actions {
  margin-top: 0;
}

.hero-status-line {
  align-items: center;
  color: rgba(238, 248, 243, 0.7);
  display: inline-flex;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 600;
  gap: 10px;
  letter-spacing: 0.18em;
  margin-top: 36px;
  text-transform: uppercase;
}

.hero-status-dot {
  background: #7FC174;
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(127, 193, 116, 0.7);
  display: inline-block;
  height: 8px;
  width: 8px;
  animation: hero-status-pulse 2.2s ease-in-out infinite;
}

@keyframes hero-status-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(127, 193, 116, 0.7); }
  50% { box-shadow: 0 0 0 8px rgba(127, 193, 116, 0); }
}

/* ---- The console mock --------------------------------------------------- */

.console {
  background:
    linear-gradient(160deg, rgba(18, 58, 60, 0.85), rgba(8, 22, 26, 0.95));
  backdrop-filter: blur(14px);
  border: 1px solid rgba(166, 230, 218, 0.18);
  border-radius: 14px;
  box-shadow:
    0 30px 80px rgba(4, 14, 16, 0.6),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  display: grid;
  gap: 0;
  grid-template-rows: auto 1fr;
  height: 540px;
  overflow: hidden;
  position: relative;
}

.console-chrome {
  align-items: center;
  background: rgba(6, 18, 22, 0.6);
  border-bottom: 1px solid rgba(166, 230, 218, 0.14);
  display: flex;
  gap: 12px;
  padding: 12px 18px;
}

.console-dots {
  display: flex;
  gap: 6px;
}

.console-dot {
  border-radius: 50%;
  height: 10px;
  width: 10px;
}

.console-dot.r { background: #ff5f56; }
.console-dot.y { background: #ffbd2e; }
.console-dot.g { background: #27c93f; }

.console-title {
  color: rgba(238, 248, 243, 0.78);
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.console-tabs {
  display: flex;
  gap: 4px;
  margin-left: auto;
}

.console-tab {
  background: transparent;
  border: 1px solid transparent;
  border-radius: 6px;
  color: rgba(238, 248, 243, 0.6);
  cursor: pointer;
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  padding: 5px 10px;
  text-transform: uppercase;
  transition: all 0.2s ease;
}

.console-tab:hover {
  color: #A6E6DA;
}

.console-tab.is-active {
  background: rgba(166, 230, 218, 0.12);
  border-color: rgba(166, 230, 218, 0.28);
  color: #A6E6DA;
}

.console-body {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  height: 100%;
  min-height: 0;
}

.console-pane {
  display: flex;
  flex-direction: column;
  min-height: 0;
  padding: 16px 18px;
}

.console-pane + .console-pane {
  border-left: 1px solid rgba(166, 230, 218, 0.12);
}

.console-pane-head {
  align-items: center;
  color: rgba(238, 248, 243, 0.6);
  display: flex;
  font-family: var(--font-display);
  font-size: 10px;
  font-weight: 700;
  justify-content: space-between;
  letter-spacing: 0.18em;
  margin-bottom: 12px;
  text-transform: uppercase;
}

.console-pane-head .live {
  align-items: center;
  color: #7FC174;
  display: inline-flex;
  gap: 6px;
}

.console-pane-head .live::before {
  background: #7FC174;
  border-radius: 50%;
  content: "";
  display: inline-block;
  height: 6px;
  width: 6px;
  animation: hero-status-pulse 1.4s ease-in-out infinite;
}

/* Log stream */
.log-stream {
  display: flex;
  flex: 1;
  flex-direction: column;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12px;
  gap: 4px;
  line-height: 1.45;
  min-height: 0;
  overflow: hidden;
  position: relative;
}

.log-stream::after {
  background: linear-gradient(180deg, rgba(8, 22, 26, 0.95) 0%, transparent 18%, transparent 82%, rgba(8, 22, 26, 0.95) 100%);
  content: "";
  inset: 0;
  pointer-events: none;
  position: absolute;
}

.log-stream-inner {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 8px 0;
}

.log-line {
  align-items: baseline;
  animation: log-in 0.5s cubic-bezier(0.22, 0.61, 0.36, 1);
  display: grid;
  gap: 10px;
  grid-template-columns: 60px auto 1fr;
}

@keyframes log-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.log-time {
  color: rgba(238, 248, 243, 0.4);
}

.log-tag {
  border-radius: 3px;
  font-family: var(--font-display);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.08em;
  padding: 1px 5px;
  text-align: center;
  text-transform: uppercase;
}

.log-tag.info { background: rgba(166, 230, 218, 0.14); color: #A6E6DA; }
.log-tag.ok   { background: rgba(127, 193, 116, 0.18); color: #B9E6A6; }
.log-tag.warn { background: rgba(255, 189, 46, 0.16); color: #FFD66B; }
.log-tag.crit { background: rgba(255, 95, 86, 0.18); color: #FF8E85; }

.log-msg {
  color: rgba(238, 248, 243, 0.86);
}

.log-msg .acc { color: #A6E6DA; }

/* SIEM alerts column */
.siem-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 16px;
}

.siem-row {
  align-items: center;
  background: rgba(166, 230, 218, 0.04);
  border: 1px solid rgba(166, 230, 218, 0.12);
  border-radius: 8px;
  display: grid;
  gap: 10px;
  grid-template-columns: 8px 1fr auto;
  padding: 10px 12px;
  transition: background 0.3s ease, border-color 0.3s ease;
}

.siem-row.is-new {
  animation: siem-pop 0.6s cubic-bezier(0.34, 1.4, 0.52, 1);
  background: rgba(127, 193, 116, 0.08);
  border-color: rgba(127, 193, 116, 0.32);
}

@keyframes siem-pop {
  from { opacity: 0; transform: translateX(8px); }
  to { opacity: 1; transform: translateX(0); }
}

.siem-sev {
  border-radius: 50%;
  height: 8px;
  width: 8px;
}

.siem-sev.low { background: #7FC174; }
.siem-sev.med { background: #FFBD2E; box-shadow: 0 0 0 3px rgba(255, 189, 46, 0.2); }
.siem-sev.hi  { background: #FF5F56; box-shadow: 0 0 0 3px rgba(255, 95, 86, 0.22); }

.siem-text {
  color: rgba(238, 248, 243, 0.9);
  font-family: var(--font-body);
  font-size: 12.5px;
  font-weight: 500;
  line-height: 1.3;
}

.siem-text small {
  color: rgba(238, 248, 243, 0.5);
  display: block;
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.04em;
  margin-top: 2px;
}

.siem-meta {
  color: rgba(238, 248, 243, 0.5);
  font-family: var(--font-display);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* Cloud cost sparkline */
.cost-card {
  background: rgba(166, 230, 218, 0.04);
  border: 1px solid rgba(166, 230, 218, 0.12);
  border-radius: 8px;
  margin-top: auto;
  padding: 14px;
}

.cost-card-head {
  align-items: baseline;
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
}

.cost-label {
  color: rgba(238, 248, 243, 0.6);
  font-family: var(--font-display);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.cost-value {
  color: #fff;
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.cost-value small {
  color: #7FC174;
  font-size: 11px;
  font-weight: 700;
  margin-left: 6px;
}

.cost-spark {
  display: block;
  height: 38px;
  width: 100%;
}

@media (max-width: 1100px) {
  .hero-console-shell {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .console { height: 460px; }
}

@media (max-width: 700px) {
  .hero-console { padding: 130px 18px 60px; min-height: auto; }
  .console { height: 420px; }
  .console-body { grid-template-columns: 1fr; grid-template-rows: 1.1fr 1fr; }
  .console-pane + .console-pane { border-left: none; border-top: 1px solid rgba(166, 230, 218, 0.12); }
  .siem-list { display: none; }
}

/* ---------- 2. Service Orbit v2 — click-to-pin ---------------------------- */

.orbit-node {
  position: relative;
}

.orbit-node.is-pinned {
  border-color: transparent !important;
  transform: rotate(calc(var(--angle) * -1deg)) scale(1.18) !important;
}

.orbit-node.is-pinned::before {
  opacity: 1 !important;
}

.orbit-node.is-pinned .orbit-node-icon {
  color: #fff;
  transform: scale(1.18);
}

.orbit-node.is-pinned .orbit-node-label {
  color: #fff;
}

.orbit-pin-indicator {
  background: #A6E6DA;
  border-radius: 50%;
  bottom: 8px;
  height: 6px;
  opacity: 0;
  position: absolute;
  right: 8px;
  transition: opacity 0.2s ease;
  width: 6px;
}

.orbit-node.is-pinned .orbit-pin-indicator {
  opacity: 1;
}

.orbit-detail-panel {
  background:
    linear-gradient(180deg, rgba(18, 58, 60, 0.7), rgba(10, 30, 34, 0.85));
  backdrop-filter: blur(14px);
  border: 1px solid rgba(166, 230, 218, 0.22);
  border-radius: 18px;
  margin: 56px auto 0;
  max-width: 720px;
  opacity: 0;
  padding: 28px 32px;
  position: relative;
  transform: translateY(16px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.orbit-detail-panel.is-active {
  opacity: 1;
  transform: translateY(0);
}

.orbit-detail-panel-head {
  align-items: center;
  display: flex;
  gap: 14px;
  margin-bottom: 16px;
}

.orbit-detail-panel-num {
  color: #A6E6DA;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.orbit-detail-panel-bar {
  background: linear-gradient(90deg, #A6E6DA, transparent);
  border-radius: 2px;
  flex: 1;
  height: 1px;
}

.orbit-detail-panel-close {
  align-items: center;
  background: transparent;
  border: 1px solid rgba(166, 230, 218, 0.32);
  border-radius: 50%;
  color: rgba(238, 248, 243, 0.7);
  cursor: pointer;
  display: inline-flex;
  font-size: 14px;
  height: 28px;
  justify-content: center;
  transition: all 0.2s ease;
  width: 28px;
}

.orbit-detail-panel-close:hover {
  background: rgba(166, 230, 218, 0.12);
  color: #fff;
}

.orbit-detail-panel h3 {
  color: #fff;
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.012em;
  line-height: 1.18;
  margin-bottom: 10px;
}

.orbit-detail-panel > p {
  color: rgba(238, 248, 243, 0.78);
  font-size: 16px;
  line-height: 1.55;
  margin: 0 0 22px;
}

.orbit-deliverables {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-bottom: 24px;
}

.orbit-deliv {
  background: rgba(166, 230, 218, 0.06);
  border: 1px solid rgba(166, 230, 218, 0.16);
  border-radius: 10px;
  color: rgba(238, 248, 243, 0.92);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
  padding: 12px 14px;
}

.orbit-deliv-tag {
  color: #A6E6DA;
  display: block;
  font-family: var(--font-display);
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: 0.16em;
  margin-bottom: 4px;
  text-transform: uppercase;
}

.orbit-detail-cta {
  align-items: center;
  color: #A6E6DA;
  display: inline-flex;
  font-size: 14px;
  font-weight: 700;
  gap: 8px;
  letter-spacing: -0.005em;
}

.orbit-detail-cta::after {
  content: "→";
  transition: transform 0.25s ease;
}

.orbit-detail-cta:hover::after {
  transform: translateX(5px);
}

.orbit-empty-hint {
  color: rgba(238, 248, 243, 0.55);
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  margin-top: 36px;
  text-align: center;
  text-transform: uppercase;
}

.orbit-section.has-pin .orbit-empty-hint {
  display: none;
}

@media (max-width: 700px) {
  .orbit-deliverables { grid-template-columns: 1fr; }
}

/* ---------- 3. Risk Snapshot mini-tool ----------------------------------- */

.risk-section {
  background: linear-gradient(180deg, #f7faf8 0%, #eaf2ed 100%);
  padding: 96px 24px;
  position: relative;
}

.risk-shell {
  display: grid;
  gap: 56px;
  grid-template-columns: minmax(0, 0.78fr) minmax(0, 1.22fr);
  margin: 0 auto;
  max-width: var(--max);
}

.risk-intro h2 {
  font-size: clamp(30px, 4vw, 46px);
  font-weight: 700;
  letter-spacing: -0.018em;
  line-height: 1.08;
  margin-bottom: 16px;
}

.risk-intro h2 em {
  font-family: var(--font-accent);
  font-style: italic;
  font-weight: 400;
}

.risk-intro p {
  font-size: 17px;
  margin-bottom: 18px;
}

.risk-meta {
  align-items: center;
  color: var(--brand-mid);
  display: inline-flex;
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  gap: 14px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.risk-meta::before {
  background: var(--brand-teal);
  border-radius: 50%;
  content: "";
  display: inline-block;
  height: 6px;
  width: 6px;
}

.risk-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: 0 20px 60px rgba(15, 26, 26, 0.08);
  display: flex;
  flex-direction: column;
  min-height: 460px;
  overflow: hidden;
  position: relative;
}

.risk-progress {
  background: rgba(42, 157, 143, 0.1);
  height: 4px;
  width: 100%;
}

.risk-progress-fill {
  background: var(--gradient-brand);
  height: 100%;
  transition: width 0.45s cubic-bezier(0.22, 0.61, 0.36, 1);
  width: 0%;
}

.risk-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 32px 36px 28px;
}

.risk-step-meta {
  align-items: center;
  display: flex;
  justify-content: space-between;
  margin-bottom: 18px;
}

.risk-step-num {
  color: var(--brand-mid);
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.risk-skip {
  background: transparent;
  border: none;
  color: var(--muted);
  cursor: pointer;
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  transition: color 0.2s ease;
}

.risk-skip:hover { color: var(--ink); }

.risk-question {
  color: var(--ink);
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.012em;
  line-height: 1.2;
  margin-bottom: 24px;
  min-height: 64px;
  text-wrap: pretty;
}

.risk-options {
  display: grid;
  gap: 10px;
  margin-bottom: 24px;
}

.risk-opt {
  align-items: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--ink);
  cursor: pointer;
  display: flex;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  gap: 14px;
  justify-content: space-between;
  padding: 16px 20px;
  text-align: left;
  transition: all 0.2s ease;
  width: 100%;
}

.risk-opt:hover {
  background: rgba(42, 157, 143, 0.04);
  border-color: rgba(42, 157, 143, 0.32);
  transform: translateX(2px);
}

.risk-opt.is-selected {
  background:
    linear-gradient(#fff, #fff) padding-box,
    var(--gradient-brand) border-box;
  border: 1.5px solid transparent;
  box-shadow: 0 8px 20px rgba(42, 157, 143, 0.16);
}

.risk-opt-mark {
  align-items: center;
  border: 1.5px solid var(--line);
  border-radius: 50%;
  display: inline-flex;
  flex-shrink: 0;
  height: 22px;
  justify-content: center;
  transition: all 0.2s ease;
  width: 22px;
}

.risk-opt.is-selected .risk-opt-mark {
  background: var(--gradient-brand);
  border-color: transparent;
  color: #fff;
}

.risk-opt-mark::after {
  content: "✓";
  font-size: 12px;
  font-weight: 800;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.risk-opt.is-selected .risk-opt-mark::after { opacity: 1; }

.risk-nav {
  align-items: center;
  border-top: 1px solid var(--line);
  display: flex;
  gap: 12px;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 20px;
}

.risk-nav-btn {
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 700;
  padding: 10px 16px;
  transition: all 0.2s ease;
}

.risk-nav-btn:disabled {
  color: var(--muted);
  cursor: not-allowed;
  opacity: 0.5;
}

.risk-nav-btn.primary {
  background: var(--gradient-brand);
  border-color: transparent;
  color: #fff;
  padding: 10px 22px;
}

.risk-nav-btn.primary:disabled {
  background: var(--line);
  color: var(--muted);
  opacity: 1;
}

.risk-dots {
  display: flex;
  gap: 6px;
}

.risk-dot {
  background: rgba(42, 157, 143, 0.2);
  border-radius: 50%;
  height: 8px;
  transition: all 0.3s ease;
  width: 8px;
}

.risk-dot.is-current {
  background: var(--brand-teal);
  width: 24px;
  border-radius: 4px;
}

.risk-dot.is-done {
  background: var(--brand-mid);
}

/* Result state */
.risk-result {
  display: flex;
  flex: 1;
  flex-direction: column;
  opacity: 0;
  padding: 32px 36px 28px;
  pointer-events: none;
  position: absolute;
  inset: 4px 0 0;
  transform: translateY(12px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.risk-card.is-done .risk-result {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.risk-card.is-done .risk-body { opacity: 0; pointer-events: none; }
.risk-body { transition: opacity 0.3s ease; }

.risk-score-row {
  align-items: flex-end;
  display: flex;
  gap: 24px;
  margin-bottom: 22px;
}

.risk-score-ring {
  flex-shrink: 0;
  height: 110px;
  position: relative;
  width: 110px;
}

.risk-score-ring svg { transform: rotate(-90deg); }

.risk-score-ring circle {
  fill: none;
  stroke-width: 10;
}

.risk-score-ring .bg { stroke: rgba(42, 157, 143, 0.14); }
.risk-score-ring .fg {
  stroke: url(#riskGrad);
  stroke-dasharray: 314;
  stroke-dashoffset: 314;
  stroke-linecap: round;
  transition: stroke-dashoffset 1s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.risk-score-num {
  align-items: center;
  color: var(--ink);
  display: flex;
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 800;
  inset: 0;
  justify-content: center;
  letter-spacing: -0.02em;
  position: absolute;
}

.risk-score-num small {
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  margin-top: 12px;
}

.risk-score-text .eyebrow {
  color: var(--brand-mid);
  margin-bottom: 8px;
}

.risk-score-text h3 {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.012em;
  line-height: 1.2;
  margin: 0 0 6px;
}

.risk-score-text p {
  font-size: 14px;
  margin: 0;
}

.risk-recs {
  border-top: 1px solid var(--line);
  display: grid;
  gap: 10px;
  margin-bottom: 18px;
  padding-top: 18px;
}

.risk-rec {
  align-items: center;
  display: flex;
  gap: 12px;
}

.risk-rec-icon {
  align-items: center;
  background: var(--gradient-brand);
  border-radius: 6px;
  color: #fff;
  display: inline-flex;
  flex-shrink: 0;
  font-size: 13px;
  font-weight: 800;
  height: 26px;
  justify-content: center;
  width: 26px;
}

.risk-rec-text {
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
}

.risk-rec-text small {
  color: var(--muted);
  display: block;
  font-size: 12.5px;
  font-weight: 500;
  margin-top: 1px;
}

.risk-result-cta {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: auto;
  padding-top: 8px;
}

.risk-result-cta .button { min-height: 42px; }

.risk-restart {
  background: transparent;
  border: none;
  color: var(--muted);
  cursor: pointer;
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  transition: color 0.2s ease;
}

.risk-restart:hover { color: var(--ink); }

@media (max-width: 900px) {
  .risk-shell { grid-template-columns: 1fr; gap: 32px; }
  .risk-section { padding: 64px 18px; }
  .risk-body, .risk-result { padding: 24px; }
  .risk-question { font-size: 20px; min-height: 0; }
}

/* ---------- 4. Sticky assessment rail ------------------------------------ */

.sticky-rail {
  align-items: center;
  background: var(--ink);
  border: 1px solid rgba(166, 230, 218, 0.22);
  border-radius: 999px;
  bottom: 24px;
  box-shadow: 0 18px 44px rgba(4, 14, 16, 0.32);
  color: #fff;
  display: flex;
  gap: 14px;
  opacity: 0;
  padding: 8px 8px 8px 22px;
  pointer-events: none;
  position: fixed;
  right: 24px;
  transform: translateY(20px);
  transition: opacity 0.4s ease, transform 0.4s ease;
  z-index: 50;
}

body.show-rail .sticky-rail {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.sticky-rail-text {
  display: flex;
  flex-direction: column;
}

.sticky-rail-text strong {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: -0.005em;
}

.sticky-rail-text span {
  color: rgba(238, 248, 243, 0.6);
  font-size: 11px;
}

.sticky-rail-cta {
  align-items: center;
  background: var(--gradient-brand);
  border-radius: 999px;
  color: #fff;
  display: inline-flex;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: -0.005em;
  padding: 10px 16px;
  white-space: nowrap;
  transition: transform 0.2s ease;
}

.sticky-rail-cta:hover { transform: translateX(2px); }

.sticky-rail-close {
  align-items: center;
  background: transparent;
  border: none;
  color: rgba(238, 248, 243, 0.5);
  cursor: pointer;
  display: inline-flex;
  font-size: 14px;
  height: 28px;
  justify-content: center;
  margin-left: -6px;
  margin-right: 4px;
  width: 24px;
}

.sticky-rail-close:hover { color: #fff; }

@media (max-width: 620px) {
  .sticky-rail { bottom: 12px; left: 12px; right: 12px; padding: 8px 8px 8px 16px; }
  .sticky-rail-text strong { font-size: 12.5px; }
  .sticky-rail-text span { display: none; }
}
