
:root {
  --bg: #0b0f14;
  --bg-elev-1: #121820;
  --bg-elev-2: #1a222c;
  --bg-elev-3: #232d39;
  --border: #2a3644;
  --border-soft: #1f2832;
  --text: #e7edf3;
  --text-soft: #a8b4c2;
  --text-dim: #6d7a89;
  --critical: #ff4d5e;
  --critical-bg: rgba(255, 77, 94, 0.12);
  --critical-border: rgba(255, 77, 94, 0.4);
  --high: #ff8a3d;
  --high-bg: rgba(255, 138, 61, 0.12);
  --high-border: rgba(255, 138, 61, 0.4);
  --medium: #ffc94d;
  --low: #4dd4a0;
  --low-bg: rgba(77, 212, 160, 0.1);
  --low-border: rgba(77, 212, 160, 0.3);
  --brand: #5b9dff;
  --brand-soft: rgba(91, 157, 255, 0.14);
  --gold: #f7931a;
}
* { box-sizing: border-box; }
html, body {
  margin: 0; padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Heebo', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 15px;
  line-height: 1.6;
  direction: rtl;
}
.shell { max-width: 1100px; margin: 0 auto; padding: 28px 24px 80px; }

.site-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 22px;
  margin-bottom: 28px;
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
  gap: 12px;
}
.site-name { font-weight: 800; font-size: 18px; color: var(--text); text-decoration: none; }
.site-name span { color: var(--text-dim); font-weight: 400; margin-inline-start: 6px; font-size: 14px; }
.nav { display: flex; gap: 22px; }
.nav a { color: var(--text-soft); text-decoration: none; font-size: 14px; font-weight: 500; padding: 6px 4px; }
.nav a:hover { color: var(--text); }
.nav a.active { color: var(--brand); font-weight: 700; border-bottom: 2px solid var(--brand); }

h1.page-title { margin: 0 0 6px; font-size: 26px; font-weight: 800; }
.page-sub { color: var(--text-soft); font-size: 14px; margin: 0 0 24px; }

.day-entry {
  background: var(--bg-elev-1);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 22px 26px;
  margin-bottom: 18px;
}
.day-head {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 14px; padding-bottom: 14px; border-bottom: 1px solid var(--border-soft);
}
.day-date { font-weight: 700; font-size: 15px; color: var(--text-soft); font-family: 'JetBrains Mono', monospace; }
.day-score { font-weight: 800; font-size: 24px; font-family: 'JetBrains Mono', monospace; }
.day-change { font-weight: 700; font-size: 14px; margin-inline-start: 10px; font-family: 'JetBrains Mono', monospace; }
.day-summary { color: var(--text-soft); line-height: 1.7; margin: 0 0 14px; font-size: 14px; }

table.thr-table { width: 100%; border-collapse: collapse; }
table.thr-table th, table.thr-table td {
  text-align: right; padding: 14px 16px; border-bottom: 1px solid var(--border-soft); vertical-align: top;
}
table.thr-table th { color: var(--text-dim); font-weight: 700; font-size: 11px; text-transform: uppercase; letter-spacing: 0.06em; }
table.thr-table td.score-cell { font-weight: 800; font-size: 16px; font-family: 'JetBrains Mono', monospace; white-space: nowrap; }
.thr-dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-inline-end: 8px; vertical-align: middle; }

.foot {
  margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--border);
  font-size: 12px; color: var(--text-dim); text-align: center; line-height: 1.7;
}
.foot a { color: var(--text-soft); text-decoration: none; }
.foot a:hover { color: var(--text); }



.hourglass-wrap { display: flex; flex-direction: column; align-items: center; gap: 16px; }
.hourglass-svg { width: 100%; max-width: 280px; height: auto; display: block; }
.hourglass-stream {
  stroke-dasharray: 2, 5;
  animation: sandFall 0.55s linear infinite;
}
@keyframes sandFall {
  from { stroke-dashoffset: 0; }
  to   { stroke-dashoffset: -14; }
}
.sand-particle { animation: particleFall 0.9s linear infinite; }
.sand-particle.p2 { animation-delay: 0.3s; }
.sand-particle.p3 { animation-delay: 0.6s; }
@keyframes particleFall {
  0%   { transform: translateY(-6px); opacity: 0; }
  20%  { opacity: 1; }
  90%  { opacity: 1; }
  100% { transform: translateY(14px); opacity: 0; }
}
.sand-mound { animation: moundPulse 4s ease-in-out infinite; transform-origin: 110px 170px; }
@keyframes moundPulse {
  0%, 100% { transform: scale(1); }
  50%      { transform: scale(1.03); }
}

/* Headline + explainer */
.hero-headline {
  text-align: center;
  margin-bottom: 24px;
}
.hero-headline h1 {
  margin: 0 0 12px;
  font-size: clamp(34px, 5vw, 52px);
  font-weight: 900;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, var(--text), var(--high));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-headline p {
  margin: 0;
  font-size: clamp(15px, 2vw, 18px);
  color: var(--text-soft);
  max-width: 640px;
  margin-inline-start: auto;
  margin-inline-end: auto;
  line-height: 1.6;
}

.explainer-card {
  background: var(--bg-elev-2);
  border: 1px solid var(--border-soft);
  border-radius: 12px;
  padding: 18px 22px;
  margin-top: 18px;
  font-size: 14px;
  line-height: 1.75;
  color: var(--text-soft);
}
.explainer-card strong { color: var(--text); }
.explainer-row {
  display: flex;
  gap: 16px;
  margin-top: 12px;
  flex-wrap: wrap;
}
.explainer-pill {
  flex: 1;
  min-width: 200px;
  padding: 12px 14px;
  background: var(--bg);
  border-radius: 10px;
  border-inline-start: 3px solid;
}
.explainer-pill .num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 20px;
  font-weight: 800;
  margin-inline-end: 8px;
}
.explainer-pill.zero { border-color: #4dd4a0; }
.explainer-pill.zero .num { color: #4dd4a0; }
.explainer-pill.hundred { border-color: #ff4d5e; }
.explainer-pill.hundred .num { color: #ff4d5e; }

@media (max-width: 720px) {
  .hero-headline h1 { font-size: 30px; }
}
@media (max-width: 720px) {
  .hero-headline { margin-bottom: 10px; }
  .hero-headline h1 { font-size: 28px; margin-bottom: 8px; }
  .hero-headline p { font-size: 14px; line-height: 1.5; }
}



/* === Fullscreen hero with video centerpiece === */
.hero-fullscreen {
  min-height: calc(100vh - 80px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 28px;
  padding: 12px 0 50px;
  position: relative;
  margin-bottom: 24px;
}
.hero-fullscreen .hourglass-video-wrap {
  margin: 0 auto;
  max-width: min(56vh, 480px);
  width: 100%;
  flex: 0 0 auto;
}
.hero-fullscreen .hero-headline { margin: 0; flex: 0 0 auto; }
.hero-fullscreen .hero-headline h1 { font-size: clamp(36px, 6vw, 60px); }
.hero-scroll-hint {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 24px;
  color: var(--text-dim);
  animation: scrollBounce 2s ease-in-out infinite;
  user-select: none;
}
@keyframes scrollBounce {
  0%, 100% { transform: translateX(-50%) translateY(0); opacity: 0.5; }
  50%      { transform: translateX(-50%) translateY(8px); opacity: 1; }
}
@media (max-width: 720px) {
  .hero-fullscreen {
    min-height: calc(100vh - 70px);
    gap: 18px;
    padding: 8px 0 40px;
  }
  .hero-fullscreen .hourglass-video-wrap { max-width: min(60vh, 320px); }
  .hero-fullscreen .hero-headline h1 { font-size: 28px; }
}

/* === Gauge endpoints — clearly explain 0 and 100 like a speedometer === */
.gauge-endpoints {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  margin: 14px 0 4px;
  padding: 0 10px;
}
.gauge-endpoint {
  flex: 1;
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 12px;
  line-height: 1.4;
}
.gauge-endpoint .endp-num {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 800;
  font-size: 16px;
  margin-inline-end: 8px;
}
.gauge-endpoint.zero {
  background: rgba(77, 212, 160, 0.08);
  border: 1px solid rgba(77, 212, 160, 0.25);
  color: var(--text-soft);
}
.gauge-endpoint.zero .endp-num { color: #4dd4a0; }
.gauge-endpoint.hundred {
  background: rgba(255, 77, 94, 0.08);
  border: 1px solid rgba(255, 77, 94, 0.25);
  color: var(--text-soft);
  text-align: end;
}
.gauge-endpoint.hundred .endp-num { color: #ff4d5e; }

/* === Hero hourglass video + atmospheric backdrop === */
body {
  background:
    radial-gradient(ellipse at 50% 0%, rgba(120, 30, 50, 0.10), transparent 55%),
    radial-gradient(ellipse at 50% 100%, rgba(60, 30, 90, 0.08), transparent 60%),
    var(--bg);
  background-attachment: fixed;
}

.hourglass-video-wrap {
  position: relative;
  margin: 24px auto 32px;
  max-width: 460px;
  width: 100%;
  aspect-ratio: 540 / 1132;
  border-radius: 20px;
  overflow: hidden;
  box-shadow:
    0 0 60px rgba(247, 147, 26, 0.18),
    0 0 120px rgba(255, 77, 94, 0.08),
    0 12px 32px rgba(0, 0, 0, 0.6);
  isolation: isolate;
}
.hourglass-video-wrap::before {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: 22px;
  padding: 2px;
  background: linear-gradient(135deg,
    rgba(247, 147, 26, 0.5),
    rgba(255, 77, 94, 0.3),
    rgba(91, 60, 130, 0.4),
    rgba(247, 147, 26, 0.5));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  opacity: 0.6;
  animation: borderShimmer 8s linear infinite;
  pointer-events: none;
}
@keyframes borderShimmer {
  0%, 100% { filter: hue-rotate(0deg); }
  50%      { filter: hue-rotate(20deg); }
}
.hourglass-video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Ambient glow that bleeds beyond the video frame to merge with page atmosphere */
.hourglass-video-wrap::after {
  content: '';
  position: absolute;
  inset: -40px;
  border-radius: 30px;
  background: radial-gradient(ellipse at center, rgba(247, 147, 26, 0.12), transparent 60%);
  filter: blur(20px);
  z-index: -1;
  pointer-events: none;
  animation: glowPulse 6s ease-in-out infinite;
}
@keyframes glowPulse {
  0%, 100% { opacity: 0.7; transform: scale(1); }
  50%      { opacity: 1; transform: scale(1.04); }
}

@media (max-width: 720px) {
  .hourglass-video-wrap { max-width: 320px; margin: 14px auto 20px; }
}


@media (max-width: 720px) {
  .shell { padding: 18px 14px 60px; }
  h1.page-title { font-size: 22px; }
  .site-head { flex-direction: column; align-items: stretch; gap: 8px; }
  /* Mobile nav: wrap so 6 items don't overflow viewport (~390px). */
  .nav {
    flex-wrap: wrap;
    gap: 6px 12px;
    width: 100%;
    justify-content: flex-start;
    row-gap: 4px;
  }
  .nav a { padding: 4px 0; font-size: 13px; }
  .day-entry { padding: 16px 18px; }
  /* Prevent any element from breaking the viewport horizontally */
  html, body { overflow-x: hidden; }
}

/* ============================================================
   CINEMATIC EDITORIAL HERO — Lando Norris × Lusión × Opal
   ============================================================ */
.cinematic-hero {
  position: relative;
  min-height: calc(100vh - 200px);
  display: flex;
  align-items: center;
  padding: 10px 0 60px;
  isolation: isolate;
  margin-bottom: 24px;
}
.cinematic-hero::before {
  content: '';
  position: absolute;
  inset: -40px -100px;
  background:
    radial-gradient(ellipse 60% 50% at 70% 35%, color-mix(in srgb, var(--accent, #ff8a3d) 18%, transparent), transparent 60%),
    radial-gradient(ellipse 50% 60% at 25% 75%, color-mix(in srgb, var(--accent, #ff8a3d) 10%, transparent), transparent 65%);
  z-index: -1;
  animation: heroAura 8s ease-in-out infinite alternate;
  filter: blur(20px);
  pointer-events: none;
}
@keyframes heroAura {
  0%   { opacity: 0.7; transform: scale(1); }
  100% { opacity: 1.0; transform: scale(1.05); }
}
.ch-grid {
  display: grid;
  grid-template-columns: 6fr 4fr;
  gap: 48px;
  width: 100%;
  align-items: center;
}
.ch-left { min-width: 0; }
.ch-right { min-width: 0; display: flex; justify-content: center; align-items: center; }

.ch-score {
  font-family: 'Heebo', sans-serif;
  font-size: clamp(120px, 17vw, 260px);
  font-weight: 900;
  line-height: 0.88;
  letter-spacing: -0.045em;
  color: var(--accent, #ff8a3d);
  display: inline-flex;
  align-items: baseline;
  margin: 0 0 22px;
  text-shadow:
    0 0 60px color-mix(in srgb, var(--accent, #ff8a3d) 35%, transparent),
    0 0 120px color-mix(in srgb, var(--accent, #ff8a3d) 18%, transparent);
  animation: scoreReveal 1.4s cubic-bezier(0.34, 1.56, 0.64, 1) 0.4s both;
  font-variant-numeric: tabular-nums;
}
@keyframes scoreReveal {
  0%   { opacity: 0; transform: translateY(40px) scale(0.85); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}
.ch-score-num { font-variant-numeric: tabular-nums; }
.ch-score-out {
  font-size: 0.26em;
  color: var(--text-dim);
  font-weight: 600;
  margin-inline-start: 10px;
  letter-spacing: 0;
}
.ch-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent, #ff8a3d);
  font-weight: 700;
  margin-bottom: 8px;
  animation: fadeUp 0.8s ease-out 1.0s both;
}
.ch-eyebrow::before {
  content: '';
  width: 8px;
  height: 8px;
  background: var(--accent, #ff8a3d);
  border-radius: 50%;
  animation: livePulse 2s ease-out infinite;
  flex-shrink: 0;
}
@keyframes livePulse {
  0%   { box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent, #ff8a3d) 60%, transparent); }
  70%  { box-shadow: 0 0 0 16px transparent; }
  100% { box-shadow: 0 0 0 0 transparent; }
}
.ch-threshold-name {
  font-size: clamp(22px, 3vw, 34px);
  font-weight: 800;
  margin: 0 0 22px;
  line-height: 1.25;
  color: var(--text);
  animation: fadeUp 0.8s ease-out 1.1s both;
}
.ch-action {
  margin: 0 0 26px;
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-soft);
  border-inline-start: 3px solid var(--accent, #ff8a3d);
  padding-inline-start: 16px;
  animation: fadeUp 0.8s ease-out 1.2s both;
  max-width: 540px;
}
.ch-trends {
  display: flex;
  gap: 18px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  color: var(--text-soft);
  align-items: center;
  flex-wrap: wrap;
  animation: fadeUp 0.8s ease-out 1.3s both;
}
.ch-trend-cell { display: inline-flex; align-items: center; gap: 8px; }
.ch-trend-cell .up { color: var(--accent, #ff8a3d); font-weight: 700; font-size: 16px; }
.ch-trend-cell .lbl { color: var(--text-dim); }
.ch-trends .sep { color: var(--text-dim); opacity: 0.5; }
@keyframes fadeUp {
  0%   { opacity: 0; transform: translateY(20px); }
  100% { opacity: 1; transform: translateY(0); }
}
.ch-right .hourglass-video-wrap {
  margin: 0;
  max-width: 100%;
  width: 100%;
  animation: videoFadeIn 1.5s ease-out 0.6s both;
}
@keyframes videoFadeIn {
  0%   { opacity: 0; transform: scale(0.95); }
  100% { opacity: 1; transform: scale(1); }
}
.ch-scroll-hint {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 24px;
  color: var(--text-dim);
  animation: scrollBounce 2s ease-in-out infinite;
  user-select: none;
  z-index: 2;
}
.hero-headline-section {
  text-align: center;
  margin: 12px auto 28px;
  max-width: 760px;
  padding: 0 16px;
}
.hero-headline-section h1 {
  font-size: clamp(32px, 4.5vw, 50px);
  font-weight: 900;
  letter-spacing: -0.02em;
  margin: 0 0 18px;
  background: linear-gradient(135deg, var(--text) 0%, var(--accent, #ff8a3d) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.1;
}
.hero-headline-section p {
  font-size: clamp(15px, 1.7vw, 18px);
  color: var(--text-soft);
  line-height: 1.7;
  margin: 0;
}
.reveal {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity 0.9s ease-out, transform 0.9s ease-out;
  will-change: opacity, transform;
}
.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}
@media (max-width: 860px) {
  .cinematic-hero {
    min-height: auto;
    padding: 16px 0 40px;
  }
  .ch-grid {
    grid-template-columns: 1fr;
    gap: 24px;
    text-align: center;
  }
  .ch-left { order: 1; }
  .ch-right { order: 2; }
  .ch-score { justify-content: center; }
  .ch-action {
    border-inline-start: none;
    border-top: 3px solid var(--accent, #ff8a3d);
    padding-top: 14px;
    padding-inline-start: 0;
    text-align: center;
  }
  .ch-trends { justify-content: center; }
  .ch-eyebrow { justify-content: center; }
  .hero-headline-section h1 { font-size: 28px; }
  .hero-headline-section { margin: 32px auto 24px; }
}
@media (max-width: 480px) {
  .ch-score { font-size: clamp(100px, 26vw, 160px); }
  .ch-threshold-name { font-size: 20px; }
}


/* Headline INSIDE ch-left column (above score) */
.ch-headline-block {
  margin-bottom: 18px;
  animation: fadeUp 0.8s ease-out 0.2s both;
}
.ch-h1 {
  font-size: clamp(32px, 4.6vw, 52px);
  font-weight: 900;
  letter-spacing: -0.02em;
  margin: 0 0 14px;
  line-height: 1.1;
  background: linear-gradient(
    90deg,
    var(--text) 0%,
    var(--accent, #ff8a3d) 25%,
    #fff7ad 50%,
    var(--accent, #ff8a3d) 75%,
    var(--text) 100%);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: heroHeadlineGlow 4s ease-in-out infinite;
  filter: drop-shadow(0 0 18px color-mix(in srgb, var(--accent, #ff8a3d) 35%, transparent));
}
@keyframes heroHeadlineGlow {
  0%, 100% {
    background-position: 100% 50%;
    filter: drop-shadow(0 0 14px color-mix(in srgb, var(--accent, #ff8a3d) 25%, transparent));
  }
  50% {
    background-position: 0% 50%;
    filter: drop-shadow(0 0 26px color-mix(in srgb, var(--accent, #ff8a3d) 50%, transparent))
            drop-shadow(0 0 50px color-mix(in srgb, var(--accent, #ff8a3d) 22%, transparent));
  }
}
.ch-sub {
  font-size: clamp(14px, 1.4vw, 16px);
  color: var(--text-soft);
  line-height: 1.65;
  margin: 0;
  max-width: 540px;
}
/* Tighten the score now that the column is more crowded */
.cinematic-hero .ch-score {
  font-size: clamp(100px, 14vw, 200px);
}
/* Hide the separate hero-headline-section if it's still in old built HTML */
.hero-headline-section { display: none; }

@media (max-width: 860px) {
  .ch-headline-block { text-align: center; margin-bottom: 12px; }
  .ch-sub { margin-inline-start: auto; margin-inline-end: auto; }
  .ch-h1 { font-size: 26px; }
}


/* === Animated 0-100 scale (replaces the side-by-side pills) === */
.prog-scale {
  position: relative;
  margin-top: 22px;
  padding: 8px 14px 14px;
}
.prog-scale-labels {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 28px;
  font-family: 'Heebo', sans-serif;
}
.prog-scale-end { display: flex; flex-direction: column; gap: 2px; }
.prog-scale-end .num {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 800;
  font-size: 32px;
  line-height: 1;
}
.prog-scale-end .label {
  font-size: 12px;
  color: var(--text-soft);
  letter-spacing: 0.02em;
}
.prog-scale-end.zero { text-align: start; }
.prog-scale-end.zero .num { color: #4dd4a0; }
.prog-scale-end.hundred { text-align: end; }
.prog-scale-end.hundred .num { color: #ff4d5e; }

.prog-scale-track {
  position: relative;
  height: 8px;
  background: var(--bg-elev-2);
  border-radius: 4px;
  margin: 0 4px;
  box-shadow: inset 0 1px 3px rgba(0,0,0,0.4);
}
.prog-scale-fill {
  position: absolute;
  top: 0;
  inset-inline-start: 0;
  height: 100%;
  background: linear-gradient(90deg,
    #4dd4a0 0%,
    #84cc16 15%,
    #ffc94d 30%,
    #ff8a3d 50%,
    #ff6347 70%,
    #ff4d5e 85%,
    #ff4d5e 100%);
  border-radius: 4px;
  width: 0%;
  filter: drop-shadow(0 0 8px var(--accent, #ff8a3d));
  transition: width 2.2s cubic-bezier(0.65, 0, 0.35, 1) 0.3s;
}
.explainer-card.revealed .prog-scale-fill {
  width: var(--scale-pct, 0%);
}

.prog-scale-ticks {
  position: absolute;
  top: 0;
  inset-inline-start: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.prog-scale-ticks span {
  position: absolute;
  top: 14px;
  transform: translateX(50%);
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  color: var(--text-dim);
  font-weight: 600;
  opacity: 0;
  transition: opacity 0.6s ease 1.8s;
}
/* In RTL the percent positioning needs visual mirroring, but we use inset-inline-start above.
   For the ticks however, browser computes "left: 30%" in the original LTR sense for absolute pos */
.prog-scale-ticks span::before {
  content: '';
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translate(-50%, -2px);
  width: 1px;
  height: 6px;
  background: var(--text-dim);
  opacity: 0.4;
}
.explainer-card.revealed .prog-scale-ticks span { opacity: 0.7; }

.prog-scale-marker {
  position: absolute;
  top: 50%;
  width: 18px;
  height: 18px;
  transform: translate(50%, -50%) scale(0);
  z-index: 3;
  transition: transform 0.7s cubic-bezier(0.34, 1.56, 0.64, 1) 2.0s;
}
.explainer-card.revealed .prog-scale-marker {
  transform: translate(50%, -50%) scale(1);
}
.prog-scale-marker-dot {
  width: 100%;
  height: 100%;
  background: var(--accent, #ff8a3d);
  border-radius: 50%;
  border: 3px solid var(--bg-elev-2);
  box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent, #ff8a3d) 50%, transparent);
  animation: scaleMarkerPulse 2.4s ease-out infinite 2.6s;
}
@keyframes scaleMarkerPulse {
  0%   { box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent, #ff8a3d) 60%, transparent); }
  70%  { box-shadow: 0 0 0 18px transparent; }
  100% { box-shadow: 0 0 0 0 transparent; }
}
.prog-scale-marker-bubble {
  position: absolute;
  bottom: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%);
  font-family: 'JetBrains Mono', monospace;
  font-weight: 800;
  font-size: 18px;
  color: var(--accent, #ff8a3d);
  white-space: nowrap;
  opacity: 0;
  transition: opacity 0.5s ease 2.4s;
  text-shadow: 0 0 12px color-mix(in srgb, var(--accent, #ff8a3d) 40%, transparent);
}
.explainer-card.revealed .prog-scale-marker-bubble {
  opacity: 1;
}
.prog-scale-marker-bubble::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  width: 0; height: 0;
  border: 4px solid transparent;
  border-top-color: var(--accent, #ff8a3d);
}

@media (max-width: 480px) {
  .prog-scale-end .num { font-size: 24px; }
  .prog-scale-end .label { font-size: 10px; }
  .prog-scale-marker-bubble { font-size: 15px; }
}


/* === 7 threshold dots ON the scale itself === */
.prog-scale-thresholds {
  position: absolute;
  top: 0;
  inset-inline-start: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.prog-scale-thr-dot {
  position: absolute;
  top: 50%;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 2px solid var(--bg);
  transform: translate(50%, -50%) scale(0);
  transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
  pointer-events: auto;
  cursor: help;
  z-index: 2;
}
.prog-scale-thr-dot:nth-child(1) { transition-delay: 1.4s; }
.prog-scale-thr-dot:nth-child(2) { transition-delay: 1.55s; }
.prog-scale-thr-dot:nth-child(3) { transition-delay: 1.7s; }
.prog-scale-thr-dot:nth-child(4) { transition-delay: 1.85s; }
.prog-scale-thr-dot:nth-child(5) { transition-delay: 2.0s; }
.prog-scale-thr-dot:nth-child(6) { transition-delay: 2.15s; }
.prog-scale-thr-dot:nth-child(7) { transition-delay: 2.3s; }
.explainer-card.revealed .prog-scale-thr-dot {
  transform: translate(50%, -50%) scale(1);
}

/* === Cinematic Ladder (integrated below scale) === */
.cinema-ladder-wrap {
  margin-top: 64px;
  padding-top: 28px;
  border-top: 1px solid var(--border-soft);
}
.cinema-ladder-header {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-dim);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 22px;
}

.cinema-ladder {
  display: flex;
  flex-direction: column;
  gap: 6px;
  position: relative;
}
.cinema-ladder::before {
  content: '';
  position: absolute;
  inset-inline-start: 27px;
  top: 30px;
  bottom: 30px;
  width: 2px;
  background: linear-gradient(to bottom,
    transparent,
    var(--border) 12%,
    var(--border) 88%,
    transparent);
}

.cl-step {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  padding: 12px 14px;
  border-radius: 12px;
  position: relative;
  opacity: 0;
  transform: translateX(-12px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out, background 0.3s ease;
}
.explainer-card.revealed .cl-step {
  opacity: 0.55;
  transform: translateX(0);
  transition-delay: var(--step-delay, 3s);
}
.cl-step.cl-passed { opacity: 0.85 !important; }
.cl-step.cl-current {
  opacity: 1 !important;
  background: linear-gradient(90deg,
    color-mix(in srgb, var(--step-color) 12%, transparent),
    transparent 70%);
  border-inline-start: 3px solid var(--step-color);
  padding-inline-start: 11px;
}
.cl-step.cl-next { opacity: 0.95 !important; }
.cl-step:hover { background: var(--bg-elev-2); cursor: default; }

.cl-marker {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: 3px solid var(--bg-elev-1);
  position: relative;
  z-index: 2;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.cl-step:hover .cl-marker { transform: scale(1.06); }
.cl-step.cl-current .cl-marker {
  animation: cl-current-pulse 2.5s ease-in-out infinite;
}
@keyframes cl-current-pulse {
  0%, 100% { box-shadow: 0 0 0 0 var(--step-color), 0 0 24px var(--step-color); }
  50%      { box-shadow: 0 0 0 8px transparent, 0 0 32px var(--step-color); }
}
.cl-num {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 800;
  font-size: 17px;
  color: #0b0f14;
}

.cl-body { flex: 1; padding-top: 4px; }
.cl-label {
  font-size: 17px;
  font-weight: 800;
  margin-bottom: 4px;
  line-height: 1.2;
}
.cl-action {
  font-size: 13px;
  color: var(--text-soft);
  line-height: 1.6;
}
.cl-here {
  margin-top: 8px;
  font-size: 13px;
  font-weight: 700;
  color: var(--accent, #ff8a3d);
  text-shadow: 0 0 10px color-mix(in srgb, var(--accent, #ff8a3d) 30%, transparent);
}
.cl-distance {
  margin-top: 6px;
  font-size: 12px;
  color: var(--medium);
  font-style: italic;
}

@media (max-width: 480px) {
  .cl-marker { width: 44px; height: 44px; }
  .cl-num { font-size: 14px; }
  .cl-label { font-size: 15px; }
  .cl-action { font-size: 12px; }
  .cinema-ladder::before { inset-inline-start: 21px; }
}


/* === Mobile fix-pack (Apr 2026) === */

/* FIX 1: Score "37.4/100" must stay on one line */
.ch-score {
  white-space: nowrap;
  flex-wrap: nowrap;
}
.ch-score-out {
  white-space: nowrap;
  display: inline-block;
}

/* FIX 2: Scale track is now lighter, visible always — even before reveal */
.prog-scale-track {
  background: linear-gradient(90deg,
    rgba(77, 212, 160, 0.12),
    rgba(255, 201, 77, 0.10) 30%,
    rgba(255, 138, 61, 0.10) 50%,
    rgba(255, 99, 71, 0.10) 70%,
    rgba(255, 77, 94, 0.12) 85%,
    rgba(255, 77, 94, 0.12)) !important;
  height: 10px !important;
  border: 1px solid rgba(255,255,255,0.08);
}
/* Ticks always visible (just dimmed) */
.prog-scale-ticks span {
  opacity: 0.45 !important;
  transition: opacity 0.6s ease 1.8s;
}
.explainer-card.revealed .prog-scale-ticks span { opacity: 0.85 !important; }
/* Threshold dots: visible at small scale immediately, full scale on reveal */
.prog-scale-thr-dot {
  transform: translate(50%, -50%) scale(0.6) !important;
  opacity: 0.7;
  transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.4s ease;
}
.explainer-card.revealed .prog-scale-thr-dot {
  transform: translate(50%, -50%) scale(1) !important;
  opacity: 1;
}
/* Marker visible by default */
.prog-scale-marker {
  transform: translate(50%, -50%) scale(0.8) !important;
  opacity: 0.85;
  transition: transform 0.7s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.4s ease;
}
.explainer-card.revealed .prog-scale-marker {
  transform: translate(50%, -50%) scale(1) !important;
  opacity: 1;
}
.prog-scale-marker-bubble { opacity: 0.9 !important; }
.explainer-card.revealed .prog-scale-marker-bubble { opacity: 1 !important; }

/* FIX 3: Hide Kling watermark with a soft black gradient on bottom-right of video */
.hourglass-video-wrap::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top left, rgba(0,0,0,0.92) 0%, rgba(0,0,0,0.7) 5%, transparent 16%);
  pointer-events: none;
  z-index: 4;
  border-radius: 20px;
  /* Override the previous ::after if any — see hourglass-video-wrap definition */
  filter: none;
  animation: none;
}
.hourglass-video-wrap > video { z-index: 1; position: relative; }

/* FIX 4: Video max-height on mobile so it doesn't dominate */
@media (max-width: 860px) {
  .ch-right .hourglass-video-wrap {
    max-height: 60vh;
    width: auto;
    aspect-ratio: 540 / 1132;
    margin: 0 auto;
  }
  .ch-right { display: flex; justify-content: center; }
}

/* FIX 5: Trends bigger on mobile */
@media (max-width: 860px) {
  .ch-trends { font-size: 14px; gap: 14px; flex-wrap: wrap; justify-content: center; }
  .ch-trend-cell .up { font-size: 18px; }
  .ch-trend-cell .lbl { font-size: 12px; }
}


/* ═══════════════════════════════════════════════════════════════════════
   Hero "defense callout" — replaces the threshold-name display with a
   bigger, action-oriented message + CTA to /protect.
═══════════════════════════════════════════════════════════════════════ */

.ch-defense-callout {
  margin: 24px 0 18px;
  padding: 22px 26px;
  border-radius: 16px;
  background:
    radial-gradient(120% 100% at 0% 0%, rgba(255, 138, 61, 0.10) 0%, transparent 60%),
    linear-gradient(180deg, rgba(20, 26, 36, 0.55), rgba(14, 18, 26, 0.4));
  border: 1px solid rgba(255, 138, 61, 0.28);
  position: relative;
  overflow: hidden;
}
.ch-defense-callout::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, var(--accent, #ff8a3d), transparent);
}
.ch-defense-msg {
  font-size: clamp(15px, 1.7vw, 18px);
  font-weight: 600;
  line-height: 1.5;
  color: var(--text);
  margin: 0 0 14px;
  letter-spacing: -0.005em;
}
.ch-defense-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  background: linear-gradient(135deg, var(--accent, #ff8a3d), #ffa05e);
  color: #0b0f14;
  font-weight: 800;
  font-size: 15px;
  text-decoration: none;
  border-radius: 10px;
  box-shadow: 0 8px 22px -8px rgba(255, 138, 61, 0.55);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.ch-defense-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px -8px rgba(255, 138, 61, 0.75);
}
.ch-defense-btn .ch-defense-arrow {
  display: inline-block;
  transition: transform 0.18s ease;
}
.ch-defense-btn:hover .ch-defense-arrow {
  transform: translateX(4px);
}
body.lang-he .ch-defense-btn:hover .ch-defense-arrow {
  transform: translateX(-4px);
}
@media (max-width: 720px) {
  .ch-defense-callout { padding: 18px 20px; margin: 20px 0 14px; }
  .ch-defense-msg { font-size: 15px; }
  .ch-defense-btn { padding: 11px 18px; font-size: 14px; }
}


/* ═══════════════════════════════════════════════════════════════════════
   /story — Personal narrative. Long-form essay layout with serif accents
   for editorial feel, large drop-numbers per section, generous spacing.
═══════════════════════════════════════════════════════════════════════ */

.story-hero {
  max-width: 760px;
  margin: 0 auto;
  padding: 70px 20px 30px;
  text-align: center;
}
.story-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--accent, #ff8a3d);
  margin-bottom: 22px;
  padding: 6px 14px;
  border-radius: 20px;
  background: rgba(255, 138, 61, 0.08);
  border: 1px solid rgba(255, 138, 61, 0.25);
}
.story-eyebrow .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent, #ff8a3d);
  box-shadow: 0 0 12px rgba(255, 138, 61, 0.6);
  animation: pulseDot 2s ease-in-out infinite;
}
.story-title {
  font-size: clamp(38px, 6vw, 60px);
  font-weight: 900;
  letter-spacing: -0.025em;
  line-height: 1.05;
  margin: 0 0 22px;
  color: var(--text);
}
.story-lede {
  font-size: clamp(17px, 2vw, 21px);
  color: var(--text-soft);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.55;
  font-weight: 500;
}

.story-block {
  max-width: 720px;
  margin: 60px auto;
  padding: 0 20px;
  position: relative;
}
.story-block + .story-block {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: 60px;
}
.story-marker {
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 2px;
  color: var(--accent, #ff8a3d);
  margin-bottom: 12px;
  font-feature-settings: "tnum";
}
.story-h2 {
  font-size: clamp(26px, 3.5vw, 36px);
  font-weight: 800;
  letter-spacing: -0.015em;
  line-height: 1.2;
  margin: 0 0 24px;
  color: var(--text);
}
.story-block p {
  font-size: 17px;
  line-height: 1.75;
  color: var(--text-soft);
  margin: 0 0 18px;
}
.story-block p strong {
  color: var(--text);
  font-weight: 700;
}
.story-block a {
  color: var(--accent, #ff8a3d);
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 138, 61, 0.4);
  transition: border-color 0.15s ease;
}
.story-block a:hover {
  border-bottom-color: var(--accent, #ff8a3d);
}

/* Section 4 — "What this isn't" — bullet list with subtle background */
.story-not {
  background: rgba(20, 26, 36, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 18px;
  padding: 44px 36px;
  max-width: 720px;
}
.story-not + .story-block { border-top: none; padding-top: 60px; }
.story-not-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.story-not-list li {
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-soft);
  padding: 14px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.story-not-list li:last-child { border-bottom: none; }
.story-not-list li strong {
  color: var(--text);
  font-weight: 700;
}

/* Section 5 — Principles grid */
.story-principles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
  margin-top: 16px;
}
.story-principle {
  background: rgba(20, 26, 36, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 14px;
  padding: 22px;
  transition: border-color 0.18s ease, transform 0.18s ease;
}
.story-principle:hover {
  border-color: rgba(255, 138, 61, 0.3);
  transform: translateY(-2px);
}
.story-principle-icon {
  font-size: 28px;
  margin-bottom: 10px;
  line-height: 1;
}
.story-principle-title {
  font-size: 16px;
  font-weight: 800;
  margin: 0 0 8px;
  color: var(--text);
  letter-spacing: -0.005em;
}
.story-principle-body {
  font-size: 14px;
  color: var(--text-dim);
  line-height: 1.6;
  margin: 0;
}

/* Closing CTA */
.story-cta {
  max-width: 720px;
  margin: 80px auto 60px;
  padding: 50px 36px;
  border-radius: 22px;
  text-align: center;
  background:
    radial-gradient(80% 100% at 50% 0%, rgba(255, 138, 61, 0.12) 0%, transparent 70%),
    linear-gradient(180deg, rgba(20, 26, 36, 0.9) 0%, rgba(14, 18, 26, 0.95) 100%);
  border: 1px solid rgba(255, 138, 61, 0.3);
}
.story-cta h2 {
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 800;
  margin: 0 0 16px;
  color: var(--text);
  letter-spacing: -0.01em;
}
.story-cta p {
  font-size: 16px;
  color: var(--text-soft);
  margin: 0 auto 14px;
  max-width: 540px;
  line-height: 1.6;
}
.story-cta p a {
  color: var(--accent, #ff8a3d);
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 138, 61, 0.4);
}
.story-cta-btn {
  display: inline-block;
  margin-top: 18px;
  padding: 14px 30px;
  background: linear-gradient(135deg, var(--accent, #ff8a3d), #ffa05e);
  color: #0b0f14;
  font-weight: 800;
  font-size: 16px;
  text-decoration: none;
  border-radius: 12px;
  box-shadow: 0 10px 28px -10px rgba(255, 138, 61, 0.6);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.story-cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 36px -10px rgba(255, 138, 61, 0.8);
}

@media (max-width: 720px) {
  .story-hero { padding: 50px 16px 24px; }
  .story-block { margin: 40px auto; padding: 0 18px; }
  .story-block + .story-block { padding-top: 40px; }
  .story-not { padding: 32px 22px; }
  .story-cta { margin: 50px 16px 40px; padding: 36px 24px; }
}


/* ═══════════════════════════════════════════════════════════════════════
   /protect — Defense Playbook page
   Premium layout: hero with eyebrow, alternating section rhythm, card grid,
   gradient-accented CTA. Matches the homepage aesthetic.
═══════════════════════════════════════════════════════════════════════ */

.protect-hero {
  text-align: center;
  padding: 56px 20px 40px;
  max-width: 880px;
  margin: 0 auto;
}
.protect-hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--accent, #ff8a3d);
  margin-bottom: 18px;
  padding: 6px 14px;
  border-radius: 20px;
  background: rgba(255, 138, 61, 0.08);
  border: 1px solid rgba(255, 138, 61, 0.25);
}
.protect-hero-eyebrow .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent, #ff8a3d);
  box-shadow: 0 0 12px rgba(255, 138, 61, 0.6);
  animation: pulseDot 2s ease-in-out infinite;
}
@keyframes pulseDot {
  0%,100% { opacity: 1; }
  50% { opacity: 0.4; }
}
.protect-hero-title {
  font-size: clamp(40px, 7vw, 68px);
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1.05;
  margin: 0 0 18px;
  color: var(--text);
  background: linear-gradient(135deg, var(--text) 0%, var(--text) 50%, var(--accent, #ff8a3d) 130%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.protect-hero-sub {
  font-size: clamp(16px, 2vw, 19px);
  color: var(--text-soft);
  max-width: 640px;
  margin: 0 auto;
  line-height: 1.55;
}

.protect-section {
  max-width: 1200px;
  margin: 56px auto;
  padding: 0 20px;
}
.protect-section-header {
  text-align: center;
  margin-bottom: 36px;
  padding: 0 16px;
}
.protect-section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 10px;
}
.protect-icon-big {
  font-size: 26px;
  line-height: 1;
}
.protect-section-title {
  font-size: clamp(26px, 3.6vw, 36px);
  font-weight: 800;
  letter-spacing: -0.015em;
  line-height: 1.15;
  margin: 0 auto 12px;
  color: var(--text);
  max-width: 680px;
}
.protect-section-intro {
  font-size: 16px;
  color: var(--text-soft);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
}

.protect-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
  max-width: 1100px;
  margin: 0 auto;
}
.protect-card {
  position: relative;
  background: rgba(20, 26, 36, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 18px;
  padding: 26px 24px;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
  overflow: hidden;
}
.protect-card::before {
  content: "";
  position: absolute;
  top: 0;
  inset-inline-start: 0;
  width: 3px;
  height: 0;
  background: linear-gradient(180deg, var(--accent, #ff8a3d), transparent);
  transition: height 0.25s ease;
}
.protect-card:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 138, 61, 0.35);
  box-shadow: 0 12px 32px -16px rgba(255, 138, 61, 0.25);
}
.protect-card:hover::before {
  height: 100%;
}
.protect-card-icon {
  font-size: 30px;
  line-height: 1;
  margin-bottom: 12px;
}
.protect-card-title {
  font-size: 17px;
  font-weight: 700;
  margin: 0 0 8px;
  color: var(--text);
  letter-spacing: -0.005em;
}
.protect-card-body {
  font-size: 14px;
  color: var(--text-soft);
  line-height: 1.6;
  margin: 0;
}

.protect-cta {
  max-width: 760px;
  margin: 80px auto 60px;
  padding: 44px 32px;
  border-radius: 22px;
  text-align: center;
  background:
    radial-gradient(80% 100% at 50% 0%, rgba(255, 138, 61, 0.14) 0%, transparent 70%),
    linear-gradient(180deg, rgba(20, 26, 36, 0.9) 0%, rgba(14, 18, 26, 0.95) 100%);
  border: 1px solid rgba(255, 138, 61, 0.35);
  position: relative;
  overflow: hidden;
}
.protect-cta::before {
  content: "";
  position: absolute;
  top: -80px;
  inset-inline-end: -80px;
  width: 240px;
  height: 240px;
  background: radial-gradient(circle, rgba(255, 138, 61, 0.18) 0%, transparent 70%);
  pointer-events: none;
}
.protect-cta-title {
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 800;
  margin: 0 0 12px;
  color: var(--text);
  letter-spacing: -0.01em;
}
.protect-cta-body {
  font-size: 16px;
  color: var(--text-soft);
  margin: 0 auto 24px;
  max-width: 540px;
  line-height: 1.55;
}
.protect-cta-btn {
  display: inline-block;
  padding: 14px 32px;
  background: linear-gradient(135deg, var(--accent, #ff8a3d), #ffa05e);
  color: #0b0f14;
  font-weight: 800;
  font-size: 16px;
  letter-spacing: 0.01em;
  text-decoration: none;
  border-radius: 12px;
  box-shadow: 0 10px 28px -10px rgba(255, 138, 61, 0.6);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.protect-cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 36px -10px rgba(255, 138, 61, 0.8);
}

@media (max-width: 720px) {
  .protect-hero { padding: 36px 16px 24px; }
  .protect-section { margin: 40px auto; }
  .protect-section-header { margin-bottom: 24px; }
  .protect-cards { gap: 14px; }
  .protect-card { padding: 22px 20px; }
  .protect-cta { margin: 50px 16px 40px; padding: 32px 22px; }
}


/* === Score alignment refinement (Apr 2026) === */
.ch-score {
  align-items: flex-end !important;
  gap: 6px;
}
.ch-score-num {
  line-height: 0.88;
}
.ch-score-out {
  font-size: 0.32em !important;
  margin-bottom: 0.08em !important;
  margin-inline-start: 0 !important;
  color: var(--text-soft) !important;
  letter-spacing: -0.01em;
}

/* Tighter video on mobile (was 60vh, now 54vh) and remove side dashes */
@media (max-width: 860px) {
  .ch-right .hourglass-video-wrap { max-height: 54vh !important; }
}


/* === Score layout: stack /100 below the big number (cleaner than baseline-flex) === */
.ch-score {
  display: block !important;
  position: relative;
  text-align: start;
  line-height: 0.88;
  font-size: clamp(120px, 17vw, 240px) !important;
}
.ch-score-num {
  display: inline-block;
  font-size: 1em;
}
.ch-score-out {
  display: block !important;
  font-size: 0.16em !important;
  color: var(--text-dim) !important;
  font-weight: 700;
  letter-spacing: 0.04em !important;
  margin: 0 !important;
  margin-top: 0.4em !important;
  opacity: 0.85;
  text-align: start;
  text-transform: uppercase;
}
.ch-score-out {
  direction: ltr;
  unicode-bidi: isolate;
  display: inline-block;
}
.ch-score-out::before {
  content: '/';
  font-family: 'JetBrains Mono', monospace;
  margin-right: 0.05em;
}
.ch-score-out {
  font-family: 'Heebo', sans-serif !important;
}

/* Hide the literal "/" character that's in the existing markup — only keep the "100" */
@media (max-width: 860px) {
  .ch-score { text-align: center; }
  .ch-score-out { text-align: center; }
}


/* === Hero without video — score takes the spotlight === */
.ch-grid {
  grid-template-columns: 1fr !important;
  max-width: 720px;
  margin-inline-start: auto;
  margin-inline-end: auto;
  text-align: center;
}
.ch-left { text-align: center; }
.ch-action {
  border-inline-start: none !important;
  border-top: 3px solid var(--accent, #ff8a3d);
  padding-inline-start: 0 !important;
  padding-top: 14px;
  text-align: center;
  margin-inline-start: auto !important;
  margin-inline-end: auto !important;
}
.ch-trends { justify-content: center; }
.ch-eyebrow { justify-content: center; }
.ch-headline-block { text-align: center; }
.ch-score { text-align: center; }
.ch-score-out { text-align: center !important; }


/* === Final layout: gauge + video alongside score === */
.cinematic-hero .ch-grid {
  grid-template-columns: 6fr 4fr !important;
  max-width: 1180px !important;
  text-align: start !important;
}
.cinematic-hero .ch-left { text-align: start !important; }
.cinematic-hero .ch-right { display: flex !important; justify-content: center; align-items: center; }

.ch-gauge-wrap {
  margin: 14px 0 26px;
  max-width: 480px;
  animation: fadeUp 0.9s ease-out 1.0s both;
}
.ch-gauge-wrap .prog-gauge-svg {
  width: 100%;
  max-width: 480px;
  height: auto;
}

.cinematic-hero .ch-score {
  font-size: clamp(110px, 14vw, 200px) !important;
  text-align: start !important;
  display: block !important;
  width: 100%;
}
.cinematic-hero .ch-score-out { text-align: start !important; }
.cinematic-hero .ch-action {
  border-inline-start: 3px solid var(--accent, #ff8a3d) !important;
  border-top: none !important;
  padding-top: 0 !important;
  padding-inline-start: 16px !important;
  text-align: start !important;
  margin-inline-start: 0 !important;
  margin-inline-end: 0 !important;
}
.cinematic-hero .ch-trends { justify-content: flex-start !important; }
.cinematic-hero .ch-eyebrow { justify-content: flex-start !important; }
.cinematic-hero .ch-headline-block { text-align: start !important; }

@media (max-width: 860px) {
  .cinematic-hero .ch-grid {
    grid-template-columns: 1fr !important;
    max-width: 480px !important;
    margin: 0 auto !important;
    text-align: center !important;
    gap: 18px !important;
  }
  .cinematic-hero .ch-right { display: none !important; }
  .cinematic-hero .ch-left { text-align: center !important; }
  .cinematic-hero .ch-headline-block { text-align: center !important; }
  .cinematic-hero .ch-score {
    text-align: center !important;
    font-size: clamp(96px, 28vw, 150px) !important;
    display: block !important;
  }
  .cinematic-hero .ch-score-out { text-align: center !important; }
  .cinematic-hero .ch-eyebrow { justify-content: center !important; }
  .cinematic-hero .ch-action {
    border-inline-start: none !important;
    border-top: 3px solid var(--accent, #ff8a3d) !important;
    padding-top: 14px !important;
    padding-inline-start: 0 !important;
    text-align: center !important;
  }
  .cinematic-hero .ch-trends { justify-content: center !important; }
  .ch-gauge-wrap {
    margin: 8px auto 16px !important;
    max-width: 360px;
  }
}
@media (max-width: 480px) {
  .ch-gauge-wrap { max-width: 320px; }
}


/* === Gauge needle: prominent + pulsing — FIXED transform reference === */
/* Force the group to use view-box (SVG user-space) so transform-origin works */
.prog-gauge-svg .gauge-needle-group {
  transform-box: view-box !important;
}
.prog-gauge-svg .gauge-hub-pulse {
  transform-box: view-box !important;
  transform-origin: 240px 240px !important;
}

/* Pulsing needle line — only stroke/glow/opacity, no transform */
.prog-gauge-svg .gauge-needle-group line {
  stroke-width: 8 !important;
  animation: needleBreathe 1.4s ease-in-out 2.2s infinite;
}
@keyframes needleBreathe {
  0%, 100% {
    stroke-width: 8;
    filter: drop-shadow(0 0 4px var(--accent, #ffc94d)) drop-shadow(0 0 12px var(--accent, #ffc94d));
    opacity: 1;
  }
  50% {
    stroke-width: 12;
    filter:
      drop-shadow(0 0 14px var(--accent, #ffc94d))
      drop-shadow(0 0 28px var(--accent, #ffc94d))
      drop-shadow(0 0 50px var(--accent, #ffc94d));
    opacity: 0.95;
  }
}
/* Hub glow — only filter, no transform */
.prog-gauge-svg .gauge-hub {
  animation: hubBreathe 1.4s ease-in-out 2.2s infinite;
}
@keyframes hubBreathe {
  0%, 100% {
    filter: drop-shadow(0 0 4px var(--accent, #ffc94d));
  }
  50% {
    filter: drop-shadow(0 0 14px var(--accent, #ffc94d)) drop-shadow(0 0 28px var(--accent, #ffc94d));
  }
}


/* ============================================================
   SHARE SECTION — Wordle-inspired premium share layer
   ============================================================ */
.share-section {
  margin-top: 36px;
  margin-bottom: 32px;
  text-align: center;
}
.share-header { margin-bottom: 18px; }
.share-title {
  font-size: clamp(28px, 3.4vw, 42px);
  font-weight: 900;
  margin: 0 0 8px;
  letter-spacing: -0.01em;
  background: linear-gradient(
    90deg,
    var(--text) 0%,
    var(--accent, #ff8a3d) 25%,
    #fff7ad 50%,
    var(--accent, #ff8a3d) 75%,
    var(--text) 100%);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: shareGlow 3.5s ease-in-out infinite;
  filter: drop-shadow(0 0 14px color-mix(in srgb, var(--accent, #ff8a3d) 30%, transparent));
}
@keyframes shareGlow {
  0%, 100% { background-position: 100% 50%; }
  50%      { background-position: 0% 50%; }
}
.share-sub { font-size: 14px; color: var(--text-soft); margin: 0; }

.share-card {
  background: linear-gradient(180deg, var(--bg-elev-1), var(--bg-elev-2));
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 24px 26px;
  max-width: 680px;
  margin: 0 auto;
  position: relative;
  overflow: hidden;
}
.share-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 0%,
    color-mix(in srgb, var(--accent, #ff8a3d) 14%, transparent),
    transparent 65%);
  pointer-events: none;
  z-index: 0;
}

/* Live preview of the share message — looks like the actual WhatsApp message */
.share-preview {
  position: relative;
  z-index: 1;
  background: var(--bg);
  border: 1px solid var(--border-soft);
  border-radius: 12px;
  padding: 18px 22px;
  margin-bottom: 18px;
  text-align: center;
  font-family: 'Heebo', sans-serif;
}
.sp-line {
  font-size: 18px;
  margin-bottom: 12px;
  color: var(--text);
}
.sp-line strong {
  color: var(--accent, #ff8a3d);
  font-family: 'JetBrains Mono', monospace;
  font-size: 1.1em;
}
.sp-bar {
  font-size: 28px;
  letter-spacing: 4px;
  margin: 6px 0 14px;
  line-height: 1;
  filter: drop-shadow(0 0 8px color-mix(in srgb, var(--accent, #ff8a3d) 35%, transparent));
}
.sp-quote {
  font-style: italic;
  color: var(--text-soft);
  font-size: 14px;
  margin-bottom: 12px;
}
.sp-foot {
  font-size: 12px;
  color: var(--text-dim);
  line-height: 1.7;
}

/* Platform buttons grid */
.share-buttons {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 10px;
}
.sb {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 16px;
  border-radius: 12px;
  border: none;
  color: #ffffff;
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  transition: transform 0.18s cubic-bezier(0.4, 0, 0.2, 1),
              filter 0.18s ease,
              box-shadow 0.25s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}
.sb svg { transition: transform 0.18s ease; flex-shrink: 0; fill: #ffffff; }
.sb:hover {
  transform: translateY(-3px) scale(1.02);
  filter: brightness(1.12);
}
.sb:hover svg { transform: scale(1.12); }
.sb:active { transform: translateY(0) scale(0.98); }

/* Native brand colors at rest — each button is instantly recognizable */
.sb-whatsapp { background: #25D366; }
.sb-whatsapp:hover { box-shadow: 0 8px 24px rgba(37, 211, 102, 0.45); }

.sb-facebook { background: #1877F2; }
.sb-facebook:hover { box-shadow: 0 8px 24px rgba(24, 119, 242, 0.45); }

.sb-x { background: #000000; border: 1px solid #2a3644; }
.sb-x:hover { box-shadow: 0 8px 24px rgba(255, 255, 255, 0.18); border-color: #4a5668; }

.sb-telegram { background: linear-gradient(135deg, #2AABEE, #0088CC); }
.sb-telegram:hover { box-shadow: 0 8px 24px rgba(0, 136, 204, 0.45); }

.sb-email { background: #EA4335; }
.sb-email:hover { box-shadow: 0 8px 24px rgba(234, 67, 53, 0.45); }

.sb-copy { background: #4a5568; }
.sb-copy:hover { box-shadow: 0 8px 24px rgba(255, 255, 255, 0.15); background: #5a6578; }
.sb-copy.copied { background: #4dd4a0; }
.sb-copy.copied:hover { box-shadow: 0 8px 24px rgba(77, 212, 160, 0.45); }

.share-toast {
  position: absolute;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--accent, #ff8a3d);
  color: #0b0f14;
  padding: 8px 18px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  z-index: 5;
  box-shadow: 0 4px 18px color-mix(in srgb, var(--accent, #ff8a3d) 40%, transparent);
}
.share-toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

@media (max-width: 480px) {
  .share-buttons { grid-template-columns: repeat(2, 1fr); }
  .sp-bar { font-size: 22px; letter-spacing: 2px; }
  .sp-line { font-size: 16px; }
}

/* ============================================================
   EMAIL CAPTURE — daily-summary signup
   ============================================================ */
.email-cta {
  margin: 32px auto 24px;
  max-width: 680px;
}
.ec-card {
  background: linear-gradient(135deg,
    color-mix(in srgb, var(--accent, #ff8a3d) 8%, var(--bg-elev-1)),
    var(--bg-elev-2));
  border: 1px solid color-mix(in srgb, var(--accent, #ff8a3d) 25%, var(--border));
  border-radius: 16px;
  padding: 24px 26px;
  text-align: center;
  position: relative;
}
.ec-eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  color: var(--accent, #ff8a3d);
  letter-spacing: 0.06em;
  margin-bottom: 8px;
}
.ec-title {
  font-size: clamp(20px, 2.4vw, 26px);
  font-weight: 800;
  margin: 0 0 6px;
  color: var(--text);
}
.ec-sub {
  font-size: 13px;
  color: var(--text-soft);
  margin: 0 0 16px;
  line-height: 1.6;
}
.ec-form {
  display: flex;
  gap: 8px;
  max-width: 440px;
  margin: 0 auto;
}
.ec-form input {
  flex: 1;
  padding: 12px 16px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text);
  font-family: inherit;
  font-size: 15px;
  font-weight: 500;
  transition: border-color 0.2s;
}
.ec-form input:focus {
  outline: none;
  border-color: var(--accent, #ff8a3d);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent, #ff8a3d) 25%, transparent);
}
.ec-form input::placeholder { color: var(--text-dim); }

.ec-submit {
  padding: 14px 28px;
  background: var(--accent, #ff8a3d);
  color: #0b0f14;
  border: none;
  border-radius: 10px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.18s cubic-bezier(0.4, 0, 0.2, 1);
  white-space: nowrap;
  display: inline-block;
  text-decoration: none;
  text-align: center;
}
.ec-cta-link {
  display: inline-block;
  margin-top: 4px;
}
.ec-submit:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px color-mix(in srgb, var(--accent, #ff8a3d) 40%, transparent);
}
.ec-submit:active { transform: translateY(0); }

.ec-toast {
  margin-top: 12px;
  font-size: 13px;
  color: var(--low, #4dd4a0);
  font-weight: 600;
  min-height: 20px;
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity 0.3s, transform 0.3s;
}
.ec-toast.show {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 480px) {
  .ec-form { flex-direction: column; }
  .ec-submit { width: 100%; }
}


/* === Share preview enhancements === */
.share-preview { padding: 0 !important; overflow: hidden; }
.sp-image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 0;
}
.sp-headline {
  font-size: 18px;
  font-weight: 800;
  color: var(--text);
  padding: 16px 22px 6px;
  text-align: center;
  background: var(--bg);
}
.sp-text {
  font-size: 13px;
  color: var(--text-soft);
  padding: 0 22px 10px;
  line-height: 1.6;
  text-align: center;
  background: var(--bg);
}
.sp-url {
  font-size: 12px;
  color: var(--accent, #ff8a3d);
  padding: 0 22px 16px;
  text-align: center;
  background: var(--bg);
  font-family: 'JetBrains Mono', monospace;
  border-bottom: 1px solid var(--border-soft);
}

.sb-facebook:hover {
  background: rgba(24, 119, 242, 0.12);
  border-color: #1877f2;
  color: #4f9bff;
  box-shadow: 0 4px 18px rgba(24, 119, 242, 0.18);
}

/* === Email capture: coming-soon framing === */
.ec-channels {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin: 8px 0 14px;
  flex-wrap: wrap;
}
.ec-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-soft);
}
.ec-sub strong {
  color: var(--accent, #ff8a3d);
  font-weight: 800;
}
.ec-fineprint {
  margin-top: 14px;
  font-size: 11px;
  color: var(--text-dim);
  line-height: 1.5;
}


/* === Editorial 4-category card grid === */
.explainer-intro {
  text-align: center;
  margin-bottom: 24px;
  padding: 0 8px;
}
.explainer-eyebrow {
  display: inline-block;
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent, #ff8a3d);
  font-weight: 700;
  margin-bottom: 8px;
}
.explainer-headline {
  font-size: clamp(22px, 2.6vw, 30px);
  font-weight: 800;
  margin: 0 0 10px;
  letter-spacing: -0.01em;
  background: linear-gradient(135deg, var(--text), var(--accent, #ff8a3d));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.explainer-deck {
  font-size: 14px;
  color: var(--text-soft);
  line-height: 1.7;
  margin: 0 auto;
  max-width: 560px;
}
.explainer-deck strong { color: var(--text); }

.cat-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin: 28px 0 24px;
  padding: 0 4px;
}
.cat-card {
  position: relative;
  background: var(--bg-elev-2);
  border: 1px solid var(--border-soft);
  border-radius: 14px;
  padding: 22px 24px;
  overflow: hidden;
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1),
              border-color 0.25s ease,
              box-shadow 0.3s ease;
  opacity: 0;
  transform: translateY(20px);
  animation: catRise 0.7s cubic-bezier(0.34, 1.56, 0.64, 1) var(--cat-delay, 0s) forwards;
}
.explainer-card.revealed .cat-card { animation-play-state: running; }
.cat-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 0% 100%,
    color-mix(in srgb, var(--accent, #ff8a3d) 0%, transparent),
    transparent 60%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}
.cat-card:hover {
  transform: translateY(-6px);
  border-color: var(--accent, #ff8a3d);
  box-shadow: 0 12px 32px color-mix(in srgb, var(--accent, #ff8a3d) 18%, transparent),
              0 0 0 1px color-mix(in srgb, var(--accent, #ff8a3d) 30%, transparent);
}
.cat-card:hover::before {
  opacity: 1;
  background: radial-gradient(circle at 0% 100%,
    color-mix(in srgb, var(--accent, #ff8a3d) 16%, transparent),
    transparent 60%);
}
.cat-num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 56px;
  font-weight: 800;
  color: var(--accent, #ff8a3d);
  line-height: 1;
  letter-spacing: -0.04em;
  margin-bottom: 6px;
  opacity: 0.85;
  text-shadow: 0 0 22px color-mix(in srgb, var(--accent, #ff8a3d) 35%, transparent);
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.cat-card:hover .cat-num {
  opacity: 1;
  transform: scale(1.04);
}
.cat-name {
  font-size: 19px;
  font-weight: 800;
  color: var(--text);
  margin: 0 0 8px;
  line-height: 1.25;
}
.cat-desc {
  font-size: 13.5px;
  color: var(--text-soft);
  line-height: 1.65;
  margin: 0 0 14px;
  min-height: 70px;
}
.cat-range {
  display: inline-block;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  font-weight: 700;
  color: var(--text-dim);
  background: var(--bg);
  border: 1px solid var(--border-soft);
  border-radius: 6px;
  padding: 4px 10px;
  letter-spacing: 0.04em;
}

@keyframes catRise {
  from { opacity: 0; transform: translateY(20px) scale(0.95); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

@media (max-width: 720px) {
  .cat-grid { grid-template-columns: 1fr; gap: 12px; }
  .cat-num { font-size: 44px; }
  .cat-name { font-size: 17px; }
  .cat-desc { font-size: 13px; min-height: 0; }
}


/* === Timeline pulse + better mobile rendering === */
.prog-timeline-wrap {
  background: linear-gradient(180deg,
    color-mix(in srgb, var(--accent, #ff8a3d) 6%, var(--bg)),
    var(--bg)) !important;
  border-radius: 12px;
  padding: 22px !important;
  border: 1px solid var(--border-soft);
  min-height: 240px;
  display: flex;
  align-items: center;
}
.prog-timeline-svg {
  width: 100%;
  height: auto;
  min-height: 200px;
}

.prog-timeline-svg .tl-pulse-ring {
  transform-origin: center;
  transform-box: fill-box;
  animation: tlPulse 2s ease-out infinite;
}
@keyframes tlPulse {
  0%   { transform: scale(0.6); opacity: 0.6; }
  100% { transform: scale(2.4); opacity: 0; }
}

.prog-timeline-svg .tl-last {
  filter: url(#tlGlow) drop-shadow(0 0 6px var(--accent, #ff8a3d));
}

@media (max-width: 720px) {
  .prog-timeline-wrap {
    padding: 14px !important;
    min-height: 200px;
  }
  .prog-timeline-svg { min-height: 180px; }
}

.cinematic-hero .ch-score-out {
  display: inline-block !important;
  width: auto !important;
}



/* === Sources page: card grid === */
.sources-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 14px;
}
.source-card {
  display: block;
  padding: 18px 22px;
  background: var(--bg-elev-2);
  border: 1px solid var(--border-soft);
  border-radius: 12px;
  text-decoration: none;
  color: var(--text);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.3s ease;
  position: relative;
  overflow: hidden;
}
.source-card:hover {
  transform: translateY(-3px);
  border-color: var(--accent, #ff8a3d);
  box-shadow: 0 8px 24px color-mix(in srgb, var(--accent, #ff8a3d) 18%, transparent);
}
.source-head {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 4px;
}
.source-name { font-size: 17px; font-weight: 800; color: var(--text); }
.source-arrow {
  color: var(--accent, #ff8a3d); font-size: 18px; font-weight: 700;
  transition: transform 0.2s ease;
}
.source-card:hover .source-arrow { transform: translate(-2px, -2px); }
.source-url {
  font-family: 'JetBrains Mono', monospace; font-size: 11px;
  color: var(--text-dim); margin-bottom: 10px;
  direction: ltr; text-align: end; word-break: break-all;
}
.source-desc {
  font-size: 13px; color: var(--text-soft); line-height: 1.65;
}
@media (max-width: 720px) {
  .sources-grid { grid-template-columns: 1fr; }
  .source-name { font-size: 16px; }
  .source-desc { font-size: 12.5px; }
}

/* === Scoring Rubric === */
.rubric-pillar-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin-bottom: 24px;
}
.rubric-pillar-card {
  background: var(--bg-elev-1);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px 18px;
}
.rubric-pillar-head {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 8px;
}
.rubric-pillar-key {
  font-family: 'JetBrains Mono', monospace; font-size: 12px; color: var(--accent, #5b9dff); font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.5px;
}
.rubric-pillar-max {
  font-size: 11px; color: var(--text-dim);
  background: var(--bg-elev-2); padding: 3px 8px; border-radius: 999px; border: 1px solid var(--border-soft);
}
.rubric-pillar-label { font-weight: 700; font-size: 16px; color: var(--text); margin-bottom: 6px; }
.rubric-pillar-desc { font-size: 13px; color: var(--text-soft); line-height: 1.6; }

.rubric-levels-wrap { background: var(--bg-elev-1); border: 1px solid var(--border); border-radius: 12px; padding: 18px; }
.rubric-levels-title { font-size: 15px; font-weight: 700; margin-bottom: 12px; color: var(--text); }
.rubric-levels-table { width: 100%; border-collapse: collapse; }
.rubric-levels-table th {
  text-align: right; padding: 10px 12px; font-size: 12px; color: var(--text-dim);
  border-bottom: 1px solid var(--border); font-weight: 600;
}
.rubric-levels-table td {
  padding: 10px 12px; font-size: 13px; color: var(--text-soft);
  border-bottom: 1px solid var(--border-soft); vertical-align: middle;
}
.rubric-levels-table tr:last-child td { border-bottom: none; }
.rubric-impact-val {
  font-family: 'JetBrains Mono', monospace; font-weight: 700; color: var(--accent, #5b9dff);
  width: 80px; white-space: nowrap;
}

@media (max-width: 720px) {
  .rubric-pillar-grid { grid-template-columns: 1fr; }
}

/* === Filter Rules === */
.filter-rules-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 18px;
}
.filter-rule-card {
  background: var(--bg-elev-1); border: 1px solid var(--border); border-radius: 12px;
  padding: 18px 14px; text-align: center;
}
.filter-rule-num {
  font-family: 'JetBrains Mono', monospace; font-size: 28px; font-weight: 800;
  color: var(--accent, #5b9dff); line-height: 1; margin-bottom: 6px;
}
.filter-rule-label { font-size: 13px; font-weight: 600; color: var(--text); margin-bottom: 4px; }
.filter-rule-desc { font-size: 12px; color: var(--text-dim); line-height: 1.5; }

.filter-rules-approach {
  background: var(--bg-elev-1); border: 1px solid var(--border); border-radius: 12px;
  padding: 16px 18px;
}
.filter-rules-approach-title { font-size: 14px; color: var(--text-soft); margin-bottom: 6px; }
.filter-rules-approach-title strong { color: var(--accent, #5b9dff); font-family: 'JetBrains Mono', monospace; }
.filter-rules-approach-desc { font-size: 13px; color: var(--text-soft); line-height: 1.65; margin-bottom: 12px; }
.filter-rules-queries-title { font-size: 12px; font-weight: 700; color: var(--text-dim); margin-bottom: 8px; text-transform: uppercase; letter-spacing: 0.5px; }
.filter-rules-queries { list-style: none; padding: 0; margin: 0; }
.filter-rules-queries li {
  margin-bottom: 6px;
}
.filter-rules-queries code {
  background: var(--bg-elev-2); border: 1px solid var(--border-soft);
  padding: 6px 10px; border-radius: 6px; font-size: 12px; color: var(--text);
  display: inline-block; direction: ltr; unicode-bidi: isolate;
}

@media (max-width: 720px) {
  .filter-rules-grid { grid-template-columns: 1fr; }
}

/* === Source Category Cards === */
.srccat-summary { font-size: 14px; color: var(--text-soft); margin-bottom: 14px; }
.srccat-summary strong { color: var(--text); }
.srccat-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 18px;
}
.srccat-card {
  background: var(--bg-elev-1); border: 1px solid var(--border); border-radius: 10px;
  padding: 14px; text-align: center; transition: transform 0.15s, border-color 0.15s;
}
.srccat-card:hover { transform: translateY(-2px); border-color: var(--accent, #5b9dff); }
.srccat-count {
  font-family: 'JetBrains Mono', monospace; font-size: 24px; font-weight: 800;
  color: var(--accent, #5b9dff); line-height: 1;
}
.srccat-label { font-size: 13px; font-weight: 600; color: var(--text); margin-top: 6px; }
.srccat-slug {
  font-family: 'JetBrains Mono', monospace; font-size: 10px; color: var(--text-dim);
  margin-top: 4px; text-transform: uppercase;
}
.srccat-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.srccat-btn {
  flex: 1; min-width: 200px;
  background: var(--bg-elev-1); border: 1px solid var(--border); border-radius: 10px;
  padding: 14px; text-align: center; color: var(--text); text-decoration: none;
  font-weight: 600; font-size: 14px; transition: border-color 0.15s, background 0.15s;
}
.srccat-btn:hover { border-color: var(--accent, #5b9dff); background: var(--bg-elev-2); }

@media (max-width: 720px) {
  .srccat-grid { grid-template-columns: repeat(2, 1fr); }
}

/* === Events page === */
.events-filter-bar {
  display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px;
  padding: 14px; background: var(--bg-elev-1); border: 1px solid var(--border); border-radius: 12px;
}
.events-filter-btn {
  background: var(--bg-elev-2); border: 1px solid var(--border-soft);
  padding: 8px 14px; border-radius: 999px; font-size: 13px; color: var(--text-soft);
  cursor: pointer; transition: all 0.15s; font-family: inherit; font-weight: 500;
}
.events-filter-btn:hover { border-color: var(--accent, #5b9dff); color: var(--text); }
.events-filter-btn.active {
  background: var(--accent, #5b9dff); border-color: var(--accent, #5b9dff); color: #0b0f14; font-weight: 700;
}
.events-filter-count {
  font-family: 'JetBrains Mono', monospace; font-size: 11px; opacity: 0.7; margin-right: 4px;
}
.events-list { display: flex; flex-direction: column; gap: 12px; }
.event-card {
  background: var(--bg-elev-1); border: 1px solid var(--border); border-radius: 12px;
  padding: 16px 18px; transition: border-color 0.15s;
}
.event-card:hover { border-color: var(--accent, #5b9dff); }
.event-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 8px; flex-wrap: wrap; }
.event-meta {
  display: flex; gap: 8px; flex-wrap: wrap; align-items: center;
}
.event-date {
  font-family: 'JetBrains Mono', monospace; font-size: 12px; color: var(--text-dim);
}
.event-cat-tag {
  font-size: 11px; padding: 3px 8px; border-radius: 999px;
  background: var(--bg-elev-2); border: 1px solid var(--border-soft); color: var(--text-soft);
  font-weight: 600; text-transform: uppercase; letter-spacing: 0.3px;
}
.event-impact {
  font-family: 'JetBrains Mono', monospace; font-weight: 800; font-size: 14px;
  padding: 4px 10px; border-radius: 6px;
}
.event-impact.pos { color: #ff8a3d; background: rgba(255,138,61,0.12); }
.event-impact.neg { color: #4dd4a0; background: rgba(77,212,160,0.12); }
.event-title { font-size: 15px; font-weight: 700; color: var(--text); margin: 4px 0 6px 0; line-height: 1.4; }
.event-summary { font-size: 13px; color: var(--text-soft); line-height: 1.6; margin-bottom: 8px; }
.event-foot { display: flex; justify-content: space-between; gap: 12px; align-items: center; flex-wrap: wrap; font-size: 12px; }
.event-source { color: var(--text-dim); }
.event-source strong { color: var(--text-soft); }
.event-link { color: var(--accent, #5b9dff); text-decoration: none; font-weight: 600; }
.event-link:hover { text-decoration: underline; }
.event-pillar {
  font-family: 'JetBrains Mono', monospace; font-size: 10px; color: var(--text-dim);
  text-transform: uppercase; letter-spacing: 0.5px; padding: 2px 8px;
  background: var(--bg-elev-2); border-radius: 4px; border: 1px solid var(--border-soft);
}
.events-empty {
  text-align: center; padding: 60px 20px; color: var(--text-dim); font-size: 14px;
}

@media (max-width: 720px) {
  .events-filter-bar { padding: 10px; gap: 6px; }
  .events-filter-btn { padding: 7px 11px; font-size: 12px; }
  .event-card { padding: 14px; }
  .event-head { flex-direction: column; align-items: flex-start; }
}


/* === Language toggle button === */
.lang-toggle {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 4px 10px; border: 1px solid var(--border);
  border-radius: 999px; font-size: 12px; font-weight: 700;
  color: var(--text-soft); background: var(--bg-elev-1);
  text-decoration: none; transition: all 0.15s;
  margin-inline-start: 8px;
}
.lang-toggle:hover { border-color: var(--accent, #5b9dff); color: var(--text); background: var(--bg-elev-2); }
.lang-toggle svg { opacity: 0.85; }
.lang-toggle-label { font-family: 'JetBrains Mono', monospace; letter-spacing: 0.3px; }

/* === Language hint banner (shown once on first visit if timezone mismatch) === */
.lang-banner {
  position: fixed; bottom: 16px; inset-inline-end: 16px; z-index: 50;
  background: var(--bg-elev-2); border: 1px solid var(--border);
  padding: 12px 16px; border-radius: 12px; box-shadow: 0 8px 28px rgba(0,0,0,0.5);
  display: none; max-width: 320px;
  font-size: 13px; color: var(--text);
}
.lang-banner.show { display: flex; align-items: center; gap: 12px; }
.lang-banner a { color: var(--accent, #5b9dff); text-decoration: underline; font-weight: 600; }
.lang-banner button {
  background: none; border: none; color: var(--text-dim); cursor: pointer;
  padding: 4px; font-size: 14px;
}

/* === English layout adjustments === */
body.lang-en {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  letter-spacing: -0.01em;
}
body.lang-en .ch-score-num,
body.lang-en .prog-pillar-radial text,
body.lang-en .rubric-impact-val,
body.lang-en .filter-rule-num,
body.lang-en .srccat-count,
body.lang-en .event-impact,
body.lang-en .event-date,
body.lang-en .event-pillar,
body.lang-en .lang-toggle-label,
body.lang-en .events-filter-count {
  font-family: 'JetBrains Mono', monospace;
}



/* === English LTR overrides (override RTL-specific rules) === */
body.lang-en {
  text-align: left;
}
body.lang-en table th,
body.lang-en table td,
body.lang-en .rubric-levels-table th,
body.lang-en .rubric-levels-table td,
body.lang-en .thr-table th,
body.lang-en .thr-table td {
  text-align: left;
}
body.lang-en .filter-rules-queries code {
  direction: ltr;
}
/* Make icons/arrows that face one direction flip naturally */
body.lang-en .prog-ladder-here,
body.lang-en .prog-ladder-distance {
  text-align: left;
}
/* Ensure flex/grid containers default to LTR direction */
body.lang-en .events-filter-bar,
body.lang-en .share-buttons,
body.lang-en .share-grid {
  direction: ltr;
}
/* Numbers should stay LTR even in HE; in EN they're already correct */
body.lang-en {
  unicode-bidi: normal;
}
body.lang-en .ch-update,
body.lang-en .ch-trends,
body.lang-en .ch-trend-num {
  direction: ltr;
}



/* === English: FORCE LTR layout deeply (overrides RTL inheritance) === */
body.lang-en,
body.lang-en *:not(svg):not(svg *) {
  direction: ltr !important;
}
body.lang-en .nav,
body.lang-en .site-head {
  flex-direction: row;
}
body.lang-en .ch-grid {
  /* Score on left (text), hourglass on right (visual) — natural for English */
  direction: ltr;
}
body.lang-en .cat-grid,
body.lang-en .prog-pillars-grid-new,
body.lang-en .prog-drivers-grid,
body.lang-en .events-list,
body.lang-en .sources-grid,
body.lang-en .srccat-grid,
body.lang-en .filter-rules-grid,
body.lang-en .rubric-pillar-grid,
body.lang-en .share-buttons,
body.lang-en .events-filter-bar,
body.lang-en .ec-channels {
  direction: ltr !important;
}
/* Periods/punctuation that look misplaced in flipped text */
body.lang-en p,
body.lang-en li,
body.lang-en .cat-desc,
body.lang-en .prog-pillar-desc,
body.lang-en .prog-driver-text,
body.lang-en .day-summary,
body.lang-en .event-summary,
body.lang-en .event-title,
body.lang-en .ch-h1,
body.lang-en .ch-sub,
body.lang-en .ch-action,
body.lang-en .ch-threshold-name,
body.lang-en .explainer-deck,
body.lang-en .explainer-headline,
body.lang-en .prog-section-title,
body.lang-en .prog-section-sub,
body.lang-en .page-title,
body.lang-en .page-sub,
body.lang-en .ec-title,
body.lang-en .ec-sub,
body.lang-en .share-title,
body.lang-en .share-sub,
body.lang-en .foot p {
  direction: ltr !important;
  text-align: left !important;
  unicode-bidi: isolate;
}
/* Gauge edge labels — keep SVG content as-is but bidi-isolate */
body.lang-en .ch-trends,
body.lang-en .ch-trend-cell {
  direction: ltr !important;
}

/* "What pushed the score today" — premium hero panel that sits right after
   the 4-categories explainer. Designed to be the second visual anchor on
   the page (after the gauge + score). Uses a gradient border, accent glow,
   and an expandable summary so mobile users see the gist + a one-tap full read. */
.today-drivers-section {
  position: relative;
  background: linear-gradient(180deg, var(--bg-elev-1, #121820) 0%, var(--bg-elev-2, #1a222c) 100%);
  border-radius: 22px;
  padding: 36px 30px;
  margin: 28px 0 32px;
  overflow: hidden;
  isolation: isolate;
}
.today-drivers-section::before {
  /* Gradient hairline border using mask-composite (Safari-safe with -webkit prefix). */
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 22px;
  padding: 1.5px;
  background: linear-gradient(135deg, var(--accent, #ffc94d) 0%, rgba(255, 138, 61, 0.5) 50%, transparent 100%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  pointer-events: none;
  z-index: 0;
}
.today-drivers-section::after {
  /* Soft amber glow in the upper-right (or upper-left in RTL) corner. */
  content: '';
  position: absolute;
  top: -120px;
  inset-inline-end: -120px;
  width: 280px;
  height: 280px;
  background: radial-gradient(circle, rgba(255, 201, 77, 0.12), transparent 65%);
  pointer-events: none;
  z-index: 0;
}
.today-drivers-section > * { position: relative; z-index: 1; }

.td-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--accent, #ffc94d);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  margin-bottom: 10px;
  font-family: 'JetBrains Mono', monospace;
}
.td-eyebrow .td-pulse {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent, #ffc94d);
  box-shadow: 0 0 10px var(--accent, #ffc94d);
  animation: tdPulse 2s ease-in-out infinite;
}
@keyframes tdPulse { 0%,100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.6; transform: scale(0.85); } }

.td-title {
  font-size: 30px;
  font-weight: 800;
  line-height: 1.18;
  color: var(--text, #e7edf3);
  margin: 0 0 14px;
  letter-spacing: -0.7px;
}
.td-divider {
  width: 72px; height: 3px;
  background: linear-gradient(90deg, var(--accent, #ffc94d), transparent);
  border-radius: 3px;
  margin-bottom: 22px;
}

.td-summary { margin-bottom: 26px; }
.td-summary p {
  font-size: 16.5px;
  line-height: 1.75;
  color: var(--text-soft, #c9d3df);
  margin: 0 0 12px;
}
.td-summary-rest { display: none; }
.td-summary.expanded .td-summary-rest {
  display: block;
  animation: tdFade 0.35s ease;
}
@keyframes tdFade {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}

.td-expand-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: transparent;
  border: 1px solid var(--border, #2a3644);
  color: var(--accent, #ffc94d);
  padding: 10px 20px;
  border-radius: 999px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  margin-top: 6px;
  transition: all 0.18s cubic-bezier(0.4, 0, 0.2, 1);
}
.td-expand-btn:hover {
  border-color: var(--accent, #ffc94d);
  background: rgba(255, 201, 77, 0.06);
  transform: translateY(-1px);
}
.td-expand-btn .td-icon { transition: transform 0.25s ease; display: inline-block; line-height: 1; }
.td-summary.expanded .td-expand-btn .td-icon { transform: rotate(180deg); }
.td-summary.expanded .td-show-text { display: none; }
.td-summary:not(.expanded) .td-hide-text { display: none; }

@media (max-width: 640px) {
  .today-drivers-section { padding: 28px 22px; margin: 22px 0 26px; border-radius: 18px; }
  .td-title { font-size: 24px; line-height: 1.2; }
  .td-summary p { font-size: 17px; line-height: 1.7; }
  .td-eyebrow { font-size: 11px; letter-spacing: 1.3px; }
  .td-divider { margin-bottom: 18px; }
  .td-expand-btn { font-size: 14px; padding: 11px 22px; }
}

body.lang-en .td-title,
body.lang-en .td-summary p,
body.lang-en .td-eyebrow {
  direction: ltr !important;
  text-align: left !important;
}

/* Freshness footnote — appears under driver text only when the engine
   chose to include an older story with a documented "fresh impact" reason. */
.prog-driver-freshness {
  display: block;
  margin-top: 6px;
  font-size: 12px;
  font-weight: 400;
  color: var(--text-dim);
  font-style: italic;
  line-height: 1.4;
  border-inline-start: 2px solid var(--border-soft);
  padding-inline-start: 8px;
}
body.lang-en .prog-driver-freshness {
  direction: ltr !important;
  text-align: left !important;
}



/* ==========================================================================
   AI Progression — Premium Visual Styling
   ========================================================================== */
.prog-page { display: flex; flex-direction: column; gap: 32px; }

.prog-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: center;
  padding: 28px 32px;
  background: radial-gradient(ellipse at center, var(--bg-elev-1), var(--bg));
  border: 1px solid var(--border);
  border-radius: 18px;
  position: relative;
  overflow: hidden;
}
.prog-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 50%, rgba(91, 157, 255, 0.06), transparent 60%);
  pointer-events: none;
}
.prog-hero-left { display: flex; justify-content: center; align-items: center; }
.prog-gauge-svg { width: 100%; max-width: 440px; height: auto; }

.prog-hero-right { display: flex; flex-direction: column; gap: 18px; position: relative; z-index: 1; }

.prog-status-block {
  padding: 16px 20px;
  border-inline-start: 4px solid;
  background: var(--bg-elev-2);
  border-radius: 10px;
}
.prog-status-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 700;
  margin-bottom: 4px;
}
.prog-status-text { font-size: 18px; font-weight: 700; }

.prog-trend-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 10px;
}
.prog-trend-cell {
  padding: 14px 12px;
  background: var(--bg-elev-2);
  border-radius: 10px;
  text-align: center;
  border: 1px solid var(--border-soft);
}
.prog-trend-cell.distance { background: linear-gradient(135deg, var(--brand-soft), var(--bg-elev-2)); border-color: var(--brand); }
.prog-trend-arrow {
  font-size: 22px;
  font-weight: 700;
  font-family: 'JetBrains Mono', monospace;
  margin-bottom: 4px;
}
.prog-trend-arrow.up { color: var(--high); }
.prog-trend-arrow.down { color: var(--low); }
.prog-trend-arrow.distance-icon { color: var(--brand); }
.prog-trend-value { font-family: 'JetBrains Mono', monospace; font-weight: 700; font-size: 16px; }
.prog-trend-label { font-size: 10px; color: var(--text-dim); text-transform: uppercase; letter-spacing: 0.05em; margin-top: 2px; }

.prog-action-card {
  padding: 18px 22px;
  border: 2px solid;
  border-radius: 12px;
}
.prog-action-label { font-size: 12px; text-transform: uppercase; letter-spacing: 0.08em; font-weight: 700; margin-bottom: 6px; }
.prog-action-text { margin: 0; font-size: 15px; line-height: 1.55; color: var(--text); }

.prog-section { background: var(--bg-elev-1); border: 1px solid var(--border); border-radius: 14px; padding: 24px 28px; }
.prog-section-header { margin-bottom: 18px; }
.prog-section-title { margin: 0 0 4px; font-size: 18px; font-weight: 700; }
.prog-section-sub { font-size: 13px; color: var(--text-dim); }

.prog-timeline-wrap { background: var(--bg); border-radius: 10px; padding: 18px; }
.prog-timeline-svg { width: 100%; max-width: 100%; height: auto; }
.prog-timeline-empty { color: var(--text-dim); padding: 30px; text-align: center; font-size: 13px; }

.prog-pillars-grid-new {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}
.prog-pillar-card {
  background: var(--bg-elev-2);
  border: 1px solid var(--border-soft);
  border-radius: 14px;
  padding: 20px 22px;
  text-align: center;
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.prog-pillar-card:hover { transform: translateY(-4px); border-color: var(--brand); }
.prog-pillar-radial { width: 110px; height: 110px; margin: 0 auto 12px; }
.prog-pillar-name { margin: 0 0 8px; font-size: 15px; font-weight: 700; }
.prog-pillar-desc { font-size: 12px; color: var(--text-soft); line-height: 1.55; margin: 0 0 12px; min-height: 56px; }
.prog-pillar-signals-list {
  text-align: right;
  margin: 0;
  padding-inline-start: 18px;
  font-size: 11px;
  color: var(--text-dim);
  line-height: 1.55;
  border-top: 1px solid var(--border-soft);
  padding-top: 10px;
}
.prog-pillar-signals-list li { margin-bottom: 4px; }

.prog-ladder { display: flex; flex-direction: column; gap: 0; position: relative; }
.prog-ladder::before {
  content: '';
  position: absolute;
  inset-inline-start: 26px;
  top: 24px;
  bottom: 24px;
  width: 2px;
  background: var(--border);
}
.prog-ladder-step {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  padding: 14px 0;
  position: relative;
  opacity: 0.55;
  transition: opacity 0.2s ease;
}
.prog-ladder-step.passed { opacity: 0.85; }
.prog-ladder-step.current { opacity: 1; }
.prog-ladder-step.next { opacity: 0.95; }
.prog-ladder-marker {
  width: 54px; height: 54px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  position: relative;
  z-index: 2;
  border: 3px solid var(--bg-elev-1);
  transition: all 0.3s ease;
}
.prog-ladder-num { color: #0b0f14; font-weight: 800; font-size: 16px; font-family: 'JetBrains Mono', monospace; }
.prog-ladder-pulse {
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  opacity: 0.4;
  animation: ladderPulse 2s infinite;
}
@keyframes ladderPulse { 0%, 100% { transform: scale(1); opacity: 0.4; } 50% { transform: scale(1.2); opacity: 0; } }
.prog-ladder-body { flex: 1; padding-top: 4px; }
.prog-ladder-label { font-size: 16px; font-weight: 700; margin-bottom: 4px; }
.prog-ladder-action { font-size: 13px; color: var(--text-soft); line-height: 1.55; }
.prog-ladder-here { color: var(--brand); font-weight: 700; font-size: 13px; margin-top: 6px; }
.prog-ladder-distance { color: var(--medium); font-size: 12px; font-style: italic; margin-top: 6px; }

.prog-drivers-grid { display: flex; flex-direction: column; gap: 8px; }
.prog-driver-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 16px;
  background: var(--bg-elev-2);
  border: 1px solid var(--border-soft);
  border-inline-start: 4px solid var(--border);
  border-radius: 10px;
  color: var(--text);
  text-decoration: none;
  transition: background 0.15s ease, transform 0.15s ease;
}
.prog-driver-row:hover { text-decoration: none; background: var(--bg-elev-3); transform: translateX(-3px); }
.prog-driver-row.driver-up { border-inline-start-color: var(--high); }
.prog-driver-row.driver-down { border-inline-start-color: var(--low); }
.prog-driver-impact-pill {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 700;
  font-size: 14px;
  padding: 6px 12px;
  border-radius: 8px;
  min-width: 60px;
  text-align: center;
}
.driver-up .prog-driver-impact-pill { background: var(--high-bg); color: var(--high); }
.driver-down .prog-driver-impact-pill { background: var(--low-bg); color: var(--low); }
.prog-driver-text { flex: 1; font-size: 14px; line-height: 1.45; }
.prog-driver-link { color: var(--brand); font-size: 18px; font-weight: 700; }

.prog-watch-list { display: flex; flex-direction: column; gap: 10px; }
.prog-watch-item {
  display: flex;
  gap: 14px;
  padding: 14px 18px;
  background: linear-gradient(90deg, var(--critical-bg), var(--bg-elev-2));
  border: 1px solid var(--critical-border);
  border-radius: 10px;
}
.prog-watch-num {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--critical);
  color: #fff;
  font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  font-family: 'JetBrains Mono', monospace;
  flex-shrink: 0;
}
.prog-watch-text { font-size: 14px; line-height: 1.55; color: var(--text); }

@media (max-width: 900px) {
  .prog-hero { grid-template-columns: 1fr; }
  .prog-trend-grid { grid-template-columns: 1fr; }
}


/* ==========================================================================
   AI Progression — Info buttons + improved layouts
   ========================================================================== */
.info-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px; height: 22px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--bg-elev-2);
  color: var(--text-soft);
  font-size: 12px;
  cursor: pointer;
  font-family: inherit;
  margin-inline-start: 8px;
  vertical-align: middle;
  transition: all 0.15s ease;
}
.info-btn:hover { background: var(--brand); color: #fff; border-color: var(--brand); transform: scale(1.1); }
.info-popover {
  display: none;
  margin-top: 10px;
  padding: 14px 18px;
  background: var(--bg-elev-2);
  border: 1px solid var(--brand);
  border-inline-start: 4px solid var(--brand);
  border-radius: 10px;
  font-size: 13px;
  color: var(--text-soft);
  line-height: 1.65;
}
.info-popover.visible { display: block; animation: fadeIn 0.2s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: translateY(0); } }

.prog-status-row, .prog-action-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}

.prog-trend-cell { padding: 16px 14px; }
.prog-trend-cell-label {
  font-size: 11px;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 700;
  margin-bottom: 8px;
  text-align: center;
}
.prog-trend-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.prog-trend-arrow { font-size: 20px; font-weight: 700; font-family: 'JetBrains Mono', monospace; margin: 0; }
.prog-trend-value { font-family: 'JetBrains Mono', monospace; font-weight: 700; font-size: 18px; }
.prog-trend-sub {
  font-size: 10px;
  color: var(--text-dim);
  text-align: center;
  margin-top: 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.prog-section-title {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.prog-methodology-text {
  margin: 0;
  font-size: 14px;
  color: var(--text-soft);
  line-height: 1.7;
}

/* Make gauge container fit nicely */
.prog-hero-left {
  position: relative;
  min-height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.prog-gauge-svg {
  width: 100%;
  max-width: 520px;
  height: auto;
}


/* ==========================================================================
   AI Progression — Animations (live, breathing dashboard)
   ========================================================================== */

/* ----- 1. Gauge needle: swing into place on page load ----- */
.gauge-needle-group {
  transform: rotate(-90deg);
  animation: needleSwing 1.6s cubic-bezier(0.34, 1.56, 0.64, 1) 0.2s forwards;
  transform-box: fill-box;
}
@keyframes needleSwing {
  0%   { transform: rotate(-90deg); }
  60%  { transform: rotate(calc(var(--needle-angle) + 8deg)); }
  80%  { transform: rotate(calc(var(--needle-angle) - 4deg)); }
  100% { transform: rotate(var(--needle-angle)); }
}

/* ----- 2. Gauge hub pulse: subtle breathing ring ----- */
.gauge-hub-pulse {
  transform-origin: center;
  transform-box: fill-box;
  animation: hubPulse 2.4s ease-in-out infinite;
}
@keyframes hubPulse {
  0%, 100% { transform: scale(1); opacity: 0.5; }
  50%      { transform: scale(1.35); opacity: 0; }
}

/* ----- 3. Gauge zone arcs: draw in sequentially ----- */
.gauge-zone {
  stroke-dasharray: 600;
  stroke-dashoffset: 600;
  animation: zoneDraw 1.4s cubic-bezier(0.65, 0, 0.35, 1) forwards;
}
@keyframes zoneDraw {
  to { stroke-dashoffset: 0; }
}

/* ----- 4. Big score in the donut hole: glow pulse ----- */
#gaugeBigScore {
  animation: scoreGlow 3s ease-in-out infinite;
}
@keyframes scoreGlow {
  0%, 100% { filter: drop-shadow(0 0 4px rgba(91, 157, 255, 0.3)); }
  50%      { filter: drop-shadow(0 0 14px rgba(91, 157, 255, 0.7)); }
}

/* ----- 5. Hero card: fade up on entry ----- */
.prog-hero {
  animation: fadeInUp 0.7s ease-out 0s both;
}

/* ----- 6. Sections: cascading fade-in ----- */
.prog-section {
  animation: fadeInUp 0.6s ease-out both;
}
.prog-section:nth-of-type(1) { animation-delay: 0.10s; }
.prog-section:nth-of-type(2) { animation-delay: 0.20s; }
.prog-section:nth-of-type(3) { animation-delay: 0.30s; }
.prog-section:nth-of-type(4) { animation-delay: 0.40s; }
.prog-section:nth-of-type(5) { animation-delay: 0.50s; }
.prog-section:nth-of-type(6) { animation-delay: 0.60s; }

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ----- 7. Pillar cards: cascade with subtle scale ----- */
.prog-pillar-card {
  animation: pillarRise 0.7s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}
.prog-pillar-card:nth-child(1) { animation-delay: 0.5s; }
.prog-pillar-card:nth-child(2) { animation-delay: 0.6s; }
.prog-pillar-card:nth-child(3) { animation-delay: 0.7s; }
.prog-pillar-card:nth-child(4) { animation-delay: 0.8s; }
@keyframes pillarRise {
  from { opacity: 0; transform: translateY(20px) scale(0.92); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* ----- 8. Pillar radial ring: draw the value circle ----- */
.prog-pillar-radial circle:last-of-type {
  animation: radialFill 1.2s cubic-bezier(0.65, 0, 0.35, 1) 0.8s both;
}
@keyframes radialFill {
  from { stroke-dashoffset: 314; }
}

/* ----- 9. Trend cells: pop in ----- */
.prog-trend-cell {
  animation: trendPop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}
.prog-trend-cell:nth-child(1) { animation-delay: 0.7s; }
.prog-trend-cell:nth-child(2) { animation-delay: 0.8s; }
.prog-trend-cell:nth-child(3) { animation-delay: 0.9s; }
@keyframes trendPop {
  from { opacity: 0; transform: scale(0.85); }
  to   { opacity: 1; transform: scale(1); }
}

/* ----- 10. Status block + Action card: slide from right ----- */
.prog-status-block { animation: slideInRight 0.6s ease-out 0.4s both; }
.prog-action-card  { animation: slideInRight 0.6s ease-out 1.0s both; }
@keyframes slideInRight {
  from { opacity: 0; transform: translateX(20px); }
  to   { opacity: 1; transform: translateX(0); }
}

/* ----- 11. Timeline polyline: draw progressively ----- */
.prog-timeline-svg polyline {
  stroke-dasharray: 2000;
  stroke-dashoffset: 2000;
  animation: timelineDraw 2.5s cubic-bezier(0.65, 0, 0.35, 1) 0.6s forwards;
}
@keyframes timelineDraw {
  to { stroke-dashoffset: 0; }
}
.prog-timeline-svg circle {
  opacity: 0;
  animation: timelineDot 0.4s ease-out forwards;
}
.prog-timeline-svg circle:nth-of-type(1) { animation-delay: 0.8s; }
.prog-timeline-svg circle:nth-of-type(2) { animation-delay: 1.2s; }
.prog-timeline-svg circle:nth-of-type(3) { animation-delay: 1.6s; }
.prog-timeline-svg circle:nth-of-type(4) { animation-delay: 2.0s; }
.prog-timeline-svg circle:nth-of-type(5) { animation-delay: 2.4s; }
.prog-timeline-svg circle:nth-of-type(6) { animation-delay: 2.8s; }
@keyframes timelineDot {
  from { opacity: 0; transform: scale(0); }
  to   { opacity: 1; transform: scale(1); }
}

/* ----- 12. Ladder steps: cascade down ----- */
.prog-ladder-step {
  animation: stepIn 0.5s ease-out both;
}
.prog-ladder-step:nth-child(1) { animation-delay: 0.3s; }
.prog-ladder-step:nth-child(2) { animation-delay: 0.4s; }
.prog-ladder-step:nth-child(3) { animation-delay: 0.5s; }
.prog-ladder-step:nth-child(4) { animation-delay: 0.6s; }
.prog-ladder-step:nth-child(5) { animation-delay: 0.7s; }
.prog-ladder-step:nth-child(6) { animation-delay: 0.8s; }
.prog-ladder-step:nth-child(7) { animation-delay: 0.9s; }
@keyframes stepIn {
  from { opacity: 0; transform: translateX(-20px); }
  to   { opacity: 1; transform: translateX(0); }
}

/* Current step on the ladder: continuous breathing pulse on its marker */
.prog-ladder-step.current .prog-ladder-marker {
  animation: currentMarkerPulse 2s ease-in-out infinite;
}
@keyframes currentMarkerPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(91, 157, 255, 0.45); }
  50%      { box-shadow: 0 0 0 14px rgba(91, 157, 255, 0); }
}

/* ----- 13. Driver rows: stagger from the side ----- */
.prog-driver-row {
  animation: driverIn 0.4s ease-out both;
}
.prog-driver-row:nth-child(1) { animation-delay: 0.2s; }
.prog-driver-row:nth-child(2) { animation-delay: 0.3s; }
.prog-driver-row:nth-child(3) { animation-delay: 0.4s; }
.prog-driver-row:nth-child(4) { animation-delay: 0.5s; }
.prog-driver-row:nth-child(5) { animation-delay: 0.6s; }
.prog-driver-row:nth-child(6) { animation-delay: 0.7s; }
@keyframes driverIn {
  from { opacity: 0; transform: translateX(15px); }
  to   { opacity: 1; transform: translateX(0); }
}

/* ----- 14. Watch list items: slide in ----- */
.prog-watch-item {
  animation: watchIn 0.4s ease-out both;
}
.prog-watch-item:nth-child(1) { animation-delay: 0.3s; }
.prog-watch-item:nth-child(2) { animation-delay: 0.4s; }
.prog-watch-item:nth-child(3) { animation-delay: 0.5s; }
.prog-watch-item:nth-child(4) { animation-delay: 0.6s; }
.prog-watch-item:nth-child(5) { animation-delay: 0.7s; }
@keyframes watchIn {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ----- 15. AI progression strip (sticky at top): subtle gradient flow ----- */
#ai-progression-strip {
  background-size: 200% 100%;
  animation: stripFlow 8s ease-in-out infinite;
}
@keyframes stripFlow {
  0%, 100% { background-position: 0% 50%; }
  50%      { background-position: 100% 50%; }
}

/* ----- 16. Hero ambient glow: slow rotation ----- */
.prog-hero::before {
  animation: heroGlow 12s ease-in-out infinite;
}
@keyframes heroGlow {
  0%, 100% { background: radial-gradient(circle at 30% 50%, rgba(91, 157, 255, 0.06), transparent 60%); }
  33%      { background: radial-gradient(circle at 70% 30%, rgba(247, 147, 26, 0.05), transparent 60%); }
  66%      { background: radial-gradient(circle at 50% 70%, rgba(255, 138, 61, 0.05), transparent 60%); }
}

/* ----- 17. Pillar hover: 3D tilt feeling ----- */
.prog-pillar-card {
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), border-color 0.2s ease, box-shadow 0.3s ease;
}
.prog-pillar-card:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: 0 12px 28px rgba(91, 157, 255, 0.15);
}

/* ----- 18. Methodology text: gentle fade ----- */
.prog-methodology-text {
  animation: fadeIn 0.8s ease-out 0.4s both;
}

/* ----- 19. Reduced motion: respect user preference ----- */
@media (prefers-reduced-motion: reduce) {
  .gauge-needle-group,
  .gauge-hub-pulse,
  .gauge-zone,
  #gaugeBigScore,
  .prog-hero,
  .prog-section,
  .prog-pillar-card,
  .prog-pillar-radial circle:last-of-type,
  .prog-trend-cell,
  .prog-status-block,
  .prog-action-card,
  .prog-timeline-svg polyline,
  .prog-timeline-svg circle,
  .prog-ladder-step,
  .prog-ladder-step.current .prog-ladder-marker,
  .prog-driver-row,
  .prog-watch-item,
  #ai-progression-strip,
  .prog-hero::before,
  .prog-methodology-text {
    animation: none !important;
    transition: none !important;
  }
  .gauge-needle-group { transform: rotate(var(--needle-angle)); }
}
