/* CaliGreenGold story page */

/* Where it started */
.cgg-challenge.has-facts { display: grid; gap: clamp(28px, 4vw, 64px); }
@media (min-width: 960px) { .cgg-challenge.has-facts { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); align-items: start; } }
.start-facts { padding: clamp(20px, 2.4vw, 32px); border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.start-facts ul { list-style: none; display: grid; gap: 18px; margin-top: 14px; }
.start-facts li { display: grid; gap: 2px; padding-bottom: 16px; border-bottom: 1px dashed var(--line); }
.start-facts li:last-child { border-bottom: 0; padding-bottom: 0; }
.start-facts b { font: 700 clamp(34px, 4vw, 48px)/1 var(--display); letter-spacing: -0.02em; color: var(--muted); }
.start-facts span { color: var(--muted); font-size: 15px; }

/* Before/after compare */
.store-ba .section-head { margin-bottom: 24px; }
.cmp { position: relative; overflow: hidden; border-radius: var(--radius); border: 1px solid var(--line); background: #000; touch-action: pan-y; user-select: none; }
.cmp-layer img { display: block; width: 100%; height: auto; }
.cmp-after { position: absolute; inset: 0; clip-path: inset(0 0 0 var(--pos)); }
.cmp-after img { height: 100%; object-fit: cover; }
.cmp-line { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 3px; margin-left: -1.5px; background: var(--lime, #e7ff2e); box-shadow: 0 0 0 1px rgba(0,0,0,.35); pointer-events: none; }
.cmp-knob { position: absolute; top: 50%; left: 50%; display: grid; place-items: center; width: 48px; height: 48px; margin: -24px 0 0 -24px; border-radius: 50%; background: var(--lime, #e7ff2e); color: #0a0a0a; box-shadow: 0 6px 24px rgba(0,0,0,.45); }
.cmp-range { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; -webkit-appearance: none; appearance: none; }
.cmp-range:focus-visible + * , .cmp:focus-within .cmp-knob { outline: 3px solid #fff; outline-offset: 3px; }
.cmp-tag { position: absolute; top: 14px; margin: 0; z-index: 1; pointer-events: none; backdrop-filter: blur(6px); }
.cmp-tag-before { left: 14px; background: rgba(10,10,10,.72); color: #fff; border-color: rgba(255,255,255,.25); }
.cmp-tag-after { right: 14px; color: #0a0a0a; background: #e7ff2e; border-color: #e7ff2e; }
@media (max-width: 767px) {
  .cmp { max-width: 420px; margin-inline: auto; }
  .cmp-knob { width: 44px; height: 44px; margin: -22px 0 0 -22px; }
}

/* The climb */
.climb-top { margin: 8px 0 clamp(28px, 4vw, 48px); }
.climb-big { font: 700 clamp(56px, 10vw, 132px)/0.95 var(--display); letter-spacing: -0.035em; color: var(--accent-text); font-variant-numeric: tabular-nums; }
.climb-sub { max-width: 36ch; margin-top: 12px; color: var(--muted); font-size: clamp(17px, 1.6vw, 20px); }
.climb { display: grid; gap: 14px; }
.climb-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 20px; align-items: end; padding: 18px 20px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.climb-row h3 { grid-column: 1 / -1; font-size: 15px; font-weight: 700; letter-spacing: .02em; color: var(--muted); }
.cb { display: grid; gap: 8px; }
.cb-bar { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 10px; width: var(--w); min-width: max-content; min-height: 40px; padding: 0 12px; border-radius: 8px; transform-origin: left center; }
.cb-before { background: color-mix(in srgb, var(--muted) 30%, transparent); color: var(--text); }
.cb-after { background: #e7ff2e; color: #0a0a0a; }
.cb-bar b { font: 700 18px/1 var(--display); font-variant-numeric: tabular-nums; }
.cb-bar i { font-style: normal; font-size: 12px; opacity: .75; white-space: nowrap; }
.cb-mult { font: 700 clamp(28px, 3.4vw, 44px)/1 var(--display); color: var(--accent-text); letter-spacing: -0.02em; }
.reveal-armed .climb-row:not(.in) .cb-bar { transform: scaleX(.04); }
.climb-row .cb-bar { transition: transform 1.1s cubic-bezier(.2,.8,.2,1); }
.climb-row .cb-after { transition-delay: .25s; }
.cgg-results { margin-top: clamp(24px, 3vw, 40px); }
@media (max-width: 600px) {
  .cb-bar i { display: none; }
  .climb-row { padding: 14px; }
}

/* Quote finale */
.quote-finale .quote-slot { padding: clamp(28px, 5vw, 64px) 0; background: none; border: 0; box-shadow: none; }
.quote-finale .quote-slot blockquote { font: 600 clamp(26px, 3.4vw, 42px)/1.2 var(--display); letter-spacing: -0.015em; color: var(--text); }
.quote-finale .quote-slot blockquote::before { content: "\201C"; display: block; font-size: 1.8em; line-height: .6; color: var(--accent-text); margin-bottom: 8px; }
.quote-finale .quote-slot figcaption { margin-top: 20px; font-size: 16px; }

@media (prefers-reduced-motion: reduce) {
  .climb-row .cb-bar { transition: none; transform: none !important; }
}

.climb-callout { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 18px; margin-top: 14px; padding: clamp(20px, 3vw, 32px); border-radius: var(--radius); background: #e7ff2e; color: #0a0a0a; }
.climb-callout b { font: 700 clamp(44px, 6vw, 80px)/1 var(--display); letter-spacing: -0.03em; }
.climb-callout span { flex: 1 1 260px; font-size: clamp(17px, 1.6vw, 21px); font-weight: 600; }
.quote-finale .quote-slot figcaption { color: var(--muted); }
.quote-finale .quote-slot figcaption span { color: var(--text); font-weight: 700; }

.climb-list { list-style: none; display: grid; gap: 0; margin-top: 20px; padding: 0; }
@media (min-width: 900px) { .climb-list { grid-template-columns: 1fr 1fr; column-gap: 32px; } }
.climb-list li { padding: 12px 0; border: 0 !important; border-bottom: 1px solid var(--line) !important; border-radius: 0 !important; background: none !important; color: var(--muted) !important; box-shadow: none !important; font-size: 15px; }
.climb-list li strong { color: var(--text); }
.cmp-range { color: #fff; background-color: transparent; }
