/* ================================================================
   EXTOLEM — MISSED LEAD CALCULATOR
   File: /assets/css/calculator.css
   ================================================================ */

/* ── Page wrapper ────────────────────────────────────────────── */
.ex-calc-page {
    position: relative;
    width: 100%;
    padding: 100px 40px 120px;
    background: var(--ex-bg);
    overflow: hidden;
    isolation: isolate;
}

.ex-calc-page-glow {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 800px; height: 600px;
    border-radius: 50%;
    background: radial-gradient(ellipse, rgba(25,245,195,0.05) 0%, transparent 65%);
    filter: blur(70px);
    pointer-events: none; z-index: 0;
}

.ex-calc-page-inner {
    position: relative; z-index: 2;
    max-width: 860px;
    margin: 0 auto;
    width: 100%;
}

/* ── Page header ─────────────────────────────────────────────── */
.ex-calc-page-header {
    text-align: center;
    margin-bottom: 52px;
}

.ex-calc-eyebrow {
    display: inline-flex; align-items: center; gap: 8px;
    font-size: 0.68rem; font-weight: 700; letter-spacing: 0.14em;
    text-transform: uppercase; color: var(--ex-mint);
    background: var(--ex-mint-dim); border: 1px solid var(--ex-border-mint);
    padding: 5px 14px 5px 10px; border-radius: var(--ex-r-full); margin-bottom: 22px;
}
.ex-calc-eyebrow-dot {
    width: 6px; height: 6px; border-radius: 50%;
    background: var(--ex-mint); box-shadow: 0 0 7px var(--ex-mint);
    flex-shrink: 0; animation: ex-calc-pulse 2.2s ease infinite;
}
@keyframes ex-calc-pulse {
    0%,100% { box-shadow: 0 0 5px var(--ex-mint); }
    50%      { box-shadow: 0 0 13px var(--ex-mint), 0 0 22px rgba(25,245,195,0.38); }
}

.ex-calc-page-h1 {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 900; line-height: 1.1; letter-spacing: -0.035em;
    color: var(--ex-text); margin-bottom: 18px;
}
.ex-calc-page-h1 .ex-calc-grad {
    background: var(--ex-grad-hero);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.ex-calc-page-sub {
    font-size: clamp(1rem, 1.5vw, 1.08rem); line-height: 1.75;
    color: var(--ex-text-muted); max-width: 560px; margin: 0 auto;
}

/* ================================================================
   CALCULATOR CARD
   ================================================================ */
.ex-calc-card {
    background: var(--ex-panel);
    border: 1px solid var(--ex-border);
    border-radius: var(--ex-r-xl);
    overflow: hidden;
    box-shadow: 0 24px 64px rgba(0,0,0,0.45);
    position: relative;
}

/* Top mint accent line */
.ex-calc-card::before {
    content: '';
    position: absolute; top: 0; left: 10%; right: 10%; height: 1px;
    background: linear-gradient(90deg, transparent, var(--ex-mint-glow), transparent);
}

/* Inner radial glow */
.ex-calc-card::after {
    content: '';
    position: absolute; top: -40px; left: 50%;
    transform: translateX(-50%);
    width: 400px; height: 300px;
    background: radial-gradient(ellipse, rgba(25,245,195,0.05) 0%, transparent 70%);
    pointer-events: none; z-index: 0;
}

.ex-calc-card > * { position: relative; z-index: 1; }

/* ── Inputs section ──────────────────────────────────────────── */
.ex-calc-inputs {
    padding: 40px 40px 32px;
}

.ex-calc-inputs-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    align-items: start;
}

/* Input field group */
.ex-calc-field {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.ex-calc-label {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--ex-text-muted);
    letter-spacing: 0.01em;
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
    min-height: 1.4em;
}

.ex-calc-label-icon {
    font-size: 0.95rem;
    flex-shrink: 0;
}

/* ── Number input wrapper ─────────────────────────────────────
   The prefix/suffix sit inside a relative container.
   The input padding ensures text never slides under them.
   ──────────────────────────────────────────────────────────── */
.ex-calc-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.ex-calc-input-prefix,
.ex-calc-input-suffix {
    position: absolute;
    font-size: 0.92rem;
    font-weight: 700;
    color: var(--ex-text-muted);
    pointer-events: none;
    z-index: 2;
    line-height: 1;
    /* prevent the symbols from collapsing */
    display: flex;
    align-items: center;
    top: 50%;
    transform: translateY(-50%);
}
.ex-calc-input-prefix { left: 16px; }
.ex-calc-input-suffix { right: 16px; }

/* ── The input itself ─────────────────────────────────────────
   CRITICAL: explicitly set background & color so the browser
   dark-mode or autofill never overwrites them with white.
   ──────────────────────────────────────────────────────────── */
.ex-calc-input {
    width: 100%;
    height: 52px;
    /* Force dark theme — never let browser override with white */
    background-color: var(--ex-panel-strong) !important;
    background: var(--ex-panel-strong) !important;
    color: var(--ex-text) !important;
    border: 1px solid var(--ex-border-md);
    border-radius: var(--ex-r-md);
    font-family: var(--ex-font);
    font-size: 1.05rem;
    font-weight: 700;
    /* Split into sides so prefix/suffix padding-left overrides work cleanly */
    padding-top: 0;
    padding-bottom: 0;
    padding-left: 20px;
    padding-right: 20px;
    transition: border-color 0.22s var(--ex-ease), box-shadow 0.22s var(--ex-ease), background 0.22s var(--ex-ease);
    -moz-appearance: textfield;
    appearance: textfield;
    /* Remove browser autofill yellow */
    -webkit-text-fill-color: var(--ex-text) !important;
    caret-color: var(--ex-mint);
}

/* Kill spinner arrows */
.ex-calc-input::-webkit-outer-spin-button,
.ex-calc-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

/* Kill autofill background */
.ex-calc-input:-webkit-autofill,
.ex-calc-input:-webkit-autofill:hover,
.ex-calc-input:-webkit-autofill:focus {
    -webkit-box-shadow: 0 0 0 1000px var(--ex-panel-strong) inset !important;
    -webkit-text-fill-color: var(--ex-text) !important;
    caret-color: var(--ex-mint);
}

.ex-calc-input:focus {
    outline: none;
    border-color: var(--ex-mint);
    background-color: var(--ex-panel-hover) !important;
    background: var(--ex-panel-hover) !important;
    box-shadow: 0 0 0 3px rgba(25,245,195,0.12);
}

/* ── Padding for prefix/suffix ────────────────────────────────
   Use !important so the shorthand `padding: 0 20px` on
   .ex-calc-input never beats these more specific rules.
   Two selectors per side: modifier class AND :has() auto-detect
   so it works even when the modifier class is absent from HTML.
   ──────────────────────────────────────────────────────────── */

/* Modifier classes (keep for back-compat) */
.ex-calc-input--prefix { padding-left:  40px !important; }
.ex-calc-input--suffix { padding-right: 40px !important; }
.ex-calc-input--both   { padding-left:  40px !important; padding-right: 40px !important; }

/* Auto-detect via sibling selector — no extra class needed */
.ex-calc-input-prefix + .ex-calc-input {
    padding-left: 40px !important;
}

/* :has() — catches any layout order */
.ex-calc-input-wrap:has(.ex-calc-input-prefix) .ex-calc-input {
    padding-left: 40px !important;
}
.ex-calc-input-wrap:has(.ex-calc-input-suffix) .ex-calc-input {
    padding-right: 40px !important;
}

/* ── Placeholder ─────────────────────────────────────────────── */
.ex-calc-input::placeholder {
    color: var(--ex-text-subtle);
    opacity: 1;
}

/* Slider */
.ex-calc-slider-wrap {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.ex-calc-slider-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.ex-calc-slider-header .ex-calc-label {
    margin-bottom: 0;
}

.ex-calc-slider {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 4px;
    border-radius: 2px;
    background: var(--ex-border-md);
    outline: none;
    cursor: pointer;
    position: relative;
}

.ex-calc-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px; height: 20px;
    border-radius: 50%;
    background: var(--ex-mint);
    box-shadow: 0 0 0 3px rgba(25,245,195,0.2);
    cursor: pointer;
    transition: box-shadow 0.2s;
}
.ex-calc-slider::-webkit-slider-thumb:hover {
    box-shadow: 0 0 0 5px rgba(25,245,195,0.25);
}
.ex-calc-slider::-moz-range-thumb {
    width: 20px; height: 20px;
    border-radius: 50%; border: none;
    background: var(--ex-mint);
    box-shadow: 0 0 0 3px rgba(25,245,195,0.2);
    cursor: pointer;
}

.ex-calc-slider-labels {
    display: flex;
    justify-content: space-between;
    font-size: 0.68rem;
    color: var(--ex-text-subtle);
    font-weight: 500;
}

/* Slider live value badge */
.ex-calc-slider-value {
    display: inline-flex; align-items: center;
    font-size: 0.78rem; font-weight: 700;
    color: var(--ex-mint);
    background: var(--ex-mint-dim);
    border: 1px solid var(--ex-border-mint);
    padding: 2px 10px; border-radius: var(--ex-r-full);
    width: fit-content;
}

/* ── Divider ─────────────────────────────────────────────────── */
.ex-calc-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--ex-border-md), transparent);
    margin: 0 40px;
}

/* ================================================================
   OUTPUT / RESULT PANEL
   ================================================================ */
.ex-calc-output {
    padding: 32px 40px 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0;
}

/* Result number — the hero element */
.ex-calc-result-label {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--ex-text-subtle);
    margin-bottom: 12px;
}

.ex-calc-result-amount {
    font-size: clamp(2.8rem, 7vw, 4.5rem);
    font-weight: 900;
    letter-spacing: -0.04em;
    line-height: 1;
    margin-bottom: 8px;
    min-height: 1.1em;
    transition: color 0.3s var(--ex-ease);
}

/* Color shifts based on severity */
.ex-calc-result-amount[data-tier="zero"]   { color: var(--ex-text-muted); }
.ex-calc-result-amount[data-tier="low"]    { color: var(--ex-gold); }
.ex-calc-result-amount[data-tier="medium"] { color: var(--ex-red); }
.ex-calc-result-amount[data-tier="high"]   { color: var(--ex-red); filter: brightness(1.15); }

.ex-calc-result-period {
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--ex-text-subtle);
    margin-bottom: 24px;
}

/* Breakdown row */
.ex-calc-breakdown {
    display: flex;
    align-items: center;
    gap: 0;
    width: 100%;
    max-width: 560px;
    background: var(--ex-panel-strong);
    border: 1px solid var(--ex-border);
    border-radius: var(--ex-r-lg);
    overflow: hidden;
    margin-bottom: 24px;
}

.ex-calc-breakdown-item {
    flex: 1;
    padding: 14px 16px;
    display: flex;
    flex-direction: column;
    gap: 3px;
    align-items: center;
    text-align: center;
}

.ex-calc-breakdown-item + .ex-calc-breakdown-item {
    border-left: 1px solid var(--ex-border);
}

.ex-calc-breakdown-num {
    font-size: 1.15rem;
    font-weight: 900;
    color: var(--ex-text);
    letter-spacing: -0.03em;
    line-height: 1;
}

.ex-calc-breakdown-lbl {
    font-size: 0.68rem;
    font-weight: 500;
    color: var(--ex-text-subtle);
}

/* Annual upshot */
.ex-calc-annual {
    font-size: 0.9rem;
    color: var(--ex-text-muted);
    margin-bottom: 28px;
    line-height: 1.55;
}
.ex-calc-annual strong {
    color: var(--ex-text);
    font-weight: 700;
}

/* ── CTA button ──────────────────────────────────────────────── */
.ex-calc-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--ex-grad-mint);
    color: #05080D;
    font-family: var(--ex-font);
    font-size: 0.95rem;
    font-weight: 800;
    padding: 15px 32px;
    border-radius: var(--ex-r-full);
    text-decoration: none;
    border: none; cursor: pointer;
    transition: transform 0.25s var(--ex-ease-spring), box-shadow 0.28s var(--ex-ease);
    box-shadow: 0 4px 20px rgba(25,245,195,0.28);
    margin-bottom: 16px;
}
.ex-calc-cta-btn:hover {
    color: #05080D;
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(25,245,195,0.42);
}

/* Ghost secondary */
.ex-calc-cta-secondary {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--ex-text-muted);
    text-decoration: none;
    transition: color 0.2s;
}
.ex-calc-cta-secondary:hover { color: var(--ex-mint); }

/* Disclaimer */
.ex-calc-disclaimer {
    margin-top: 20px;
    font-size: 0.72rem;
    color: var(--ex-text-subtle);
    line-height: 1.55;
    max-width: 480px;
    text-align: center;
}

/* ================================================================
   ZERO / EMPTY STATE
   ================================================================ */
.ex-calc-zero-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 8px 0 4px;
}

.ex-calc-zero-icon {
    font-size: 2rem;
    opacity: 0.3;
}

.ex-calc-zero-text {
    font-size: 0.85rem;
    color: var(--ex-text-subtle);
}

/* ── Animated result entrance ────────────────────────────────── */
.ex-calc-result-amount.is-updating {
    animation: ex-calc-count 0.5s var(--ex-ease-out) both;
}
@keyframes ex-calc-count {
    from { opacity: 0.4; transform: scale(0.96); }
    to   { opacity: 1;   transform: scale(1); }
}

/* ================================================================
   SHORTCODE EMBED VARIANT
   ================================================================ */
.ex-calc-embed {
    margin: 48px auto;
    max-width: 860px;
}
.ex-calc-embed .ex-calc-card {
    border-radius: var(--ex-r-lg);
}

/* ================================================================
   RESPONSIVE
   ================================================================ */
@media ( max-width: 780px ) {
    .ex-calc-page    { padding: 80px 24px 100px; }
    .ex-calc-inputs  { padding: 28px 24px 24px; }
    .ex-calc-output  { padding: 24px 24px 32px; }
    .ex-calc-divider { margin: 0 24px; }
    .ex-calc-inputs-grid { grid-template-columns: 1fr; gap: 20px; }
    .ex-calc-label { white-space: normal; }
    .ex-calc-slider-header .ex-calc-label { white-space: normal; }
    .ex-calc-breakdown { flex-direction: column; }
    .ex-calc-breakdown-item + .ex-calc-breakdown-item { border-left: none; border-top: 1px solid var(--ex-border); }
}

@media ( max-width: 480px ) {
    .ex-calc-page { padding: 70px 20px 90px; }
    .ex-calc-cta-btn { width: 100%; justify-content: center; }
    .ex-calc-result-amount { font-size: 2.8rem; }
}

/* ================================================================
   REDUCED MOTION
   ================================================================ */
@media ( prefers-reduced-motion: reduce ) {
    .ex-calc-eyebrow-dot { animation: none !important; }
    .ex-calc-result-amount.is-updating { animation: none !important; }
    .ex-calc-cta-btn:hover { transform: none !important; }
}


/* ================================================================
   HOMEPAGE LEAD LEAK SECTION
   ================================================================ */

.ex-leak {
  position: relative;
  width: 100%;
  padding: 120px 40px 130px;
  background-color: var(--ex-bg-2);
  overflow: hidden;
  isolation: isolate;
}

.ex-leak::before,
.ex-leak::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  height: 110px;
  pointer-events: none;
  z-index: 0;
}

.ex-leak::before {
  top: 0;
  background: linear-gradient(180deg, var(--ex-bg) 0%, transparent 100%);
}

.ex-leak::after {
  bottom: 0;
  background: linear-gradient(0deg, var(--ex-bg-2) 0%, transparent 100%);
}

.ex-leak-grid {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image: radial-gradient(circle, rgba(255,255,255,0.022) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: radial-gradient(ellipse 85% 75% at 50% 50%, black 0%, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse 85% 75% at 50% 50%, black 0%, transparent 78%);
}

.ex-leak-glow-mint {
  position: absolute;
  top: 18%;
  left: -80px;
  width: 520px;
  height: 420px;
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(25,245,195,0.055) 0%, transparent 65%);
  filter: blur(70px);
  pointer-events: none;
  z-index: 0;
}

.ex-leak-glow-red {
  position: absolute;
  bottom: 10%;
  right: -90px;
  width: 560px;
  height: 460px;
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(255,77,94,0.055) 0%, transparent 65%);
  filter: blur(70px);
  pointer-events: none;
  z-index: 0;
}

.ex-leak-inner {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}

.ex-leak-header {
  text-align: center;
  max-width: 780px;
  margin: 0 auto 64px;
}

.ex-leak-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ex-mint);
  background: var(--ex-mint-dim);
  border: 1px solid var(--ex-border-mint);
  padding: 5px 14px 5px 10px;
  border-radius: var(--ex-r-full);
  margin-bottom: 24px;
}

.ex-leak-eyebrow-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--ex-mint);
  box-shadow: 0 0 7px var(--ex-mint);
  flex-shrink: 0;
  animation: ex-leak-pulse 2.2s ease infinite;
}

@keyframes ex-leak-pulse {
  0%,100% { box-shadow: 0 0 5px var(--ex-mint); }
  50%      { box-shadow: 0 0 13px var(--ex-mint), 0 0 22px rgba(25,245,195,0.38); }
}

.ex-leak-h2 {
  font-size: clamp(1.9rem, 3.5vw, 2.85rem);
  font-weight: 850;
  line-height: 1.13;
  letter-spacing: -0.035em;
  color: var(--ex-text);
  margin-bottom: 20px;
}

.ex-leak-grad {
  background: linear-gradient(135deg, var(--ex-red) 0%, var(--ex-gold) 45%, var(--ex-mint) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.ex-leak-sub {
  font-size: clamp(1rem, 1.5vw, 1.08rem);
  line-height: 1.78;
  color: var(--ex-text-muted);
  max-width: 640px;
  margin: 0 auto;
}

.ex-leak-layout {
  display: grid;
  grid-template-columns: 0.78fr 1.22fr;
  gap: 28px;
  align-items: stretch;
}

.ex-leak-panel {
  position: relative;
  background: var(--ex-panel);
  border: 1px solid var(--ex-border);
  border-radius: var(--ex-r-xl);
  padding: 34px 30px;
  overflow: hidden;
  box-shadow: 0 18px 54px rgba(0,0,0,0.35);
}

.ex-leak-panel::before {
  content: '';
  position: absolute;
  top: 0;
  left: 12%;
  right: 12%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,77,94,0.55), var(--ex-mint-glow), transparent);
}

.ex-leak-panel::after {
  content: '';
  position: absolute;
  top: -80px;
  right: -80px;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(255,77,94,0.1), transparent 70%);
  pointer-events: none;
}

.ex-leak-panel > * {
  position: relative;
  z-index: 1;
}

.ex-leak-panel-top {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 22px;
}

.ex-leak-panel-icon {
  width: 42px;
  height: 42px;
  border-radius: var(--ex-r-md);
  background: var(--ex-red-dim);
  border: 1px solid rgba(255,77,94,0.22);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
}

.ex-leak-panel-label {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ex-red);
}

.ex-leak-panel-title {
  font-size: clamp(1.25rem, 2vw, 1.65rem);
  line-height: 1.22;
  letter-spacing: -0.025em;
  color: var(--ex-text);
  margin-bottom: 16px;
}

.ex-leak-panel-copy {
  font-size: 0.92rem;
  line-height: 1.72;
  color: var(--ex-text-muted);
  margin-bottom: 24px;
}

.ex-leak-list {
  list-style: none;
  padding: 0;
  margin: 0 0 26px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.ex-leak-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ex-text-muted);
  font-size: 0.86rem;
  font-weight: 600;
}

.ex-leak-list li span {
  width: 26px;
  height: 26px;
  border-radius: var(--ex-r-full);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--ex-panel-strong);
  border: 1px solid var(--ex-border);
  flex-shrink: 0;
}

.ex-leak-mini-proof {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  background: var(--ex-panel-strong);
  border: 1px solid var(--ex-border);
  border-radius: var(--ex-r-lg);
  overflow: hidden;
}

.ex-leak-mini-proof div {
  padding: 16px 14px;
  text-align: center;
}

.ex-leak-mini-proof div + div {
  border-left: 1px solid var(--ex-border);
}

.ex-leak-mini-proof strong {
  display: block;
  font-size: 1.4rem;
  font-weight: 900;
  letter-spacing: -0.04em;
  color: var(--ex-text);
  line-height: 1;
  margin-bottom: 5px;
}

.ex-leak-mini-proof span {
  display: block;
  font-size: 0.68rem;
  color: var(--ex-text-subtle);
  line-height: 1.35;
}

.ex-leak-calculator {
  min-width: 0;
}

/* Override shortcode spacing inside homepage section */
.ex-leak .ex-calc-embed {
  margin: 0;
  max-width: none;
}

.ex-leak .ex-calc-card {
  height: 100%;
}

/* Scroll reveal */
.ex-leak-header .ex-leak-eyebrow,
.ex-leak-header .ex-leak-h2,
.ex-leak-header .ex-leak-sub {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s var(--ex-ease-out), transform 0.6s var(--ex-ease-out);
}

.ex-leak-header .ex-leak-eyebrow { transition-delay: 0s; }
.ex-leak-header .ex-leak-h2      { transition-delay: 0.1s; }
.ex-leak-header .ex-leak-sub     { transition-delay: 0.18s; }

.ex-leak-header.is-visible .ex-leak-eyebrow,
.ex-leak-header.is-visible .ex-leak-h2,
.ex-leak-header.is-visible .ex-leak-sub {
  opacity: 1;
  transform: translateY(0);
}

.ex-leak-panel,
.ex-leak-calculator {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.65s var(--ex-ease-out), transform 0.65s var(--ex-ease-out);
}

.ex-leak-panel      { transition-delay: 0.08s; }
.ex-leak-calculator { transition-delay: 0.18s; }

.ex-leak-layout.is-visible .ex-leak-panel,
.ex-leak-layout.is-visible .ex-leak-calculator {
  opacity: 1;
  transform: translateY(0);
}

/* Visibility override */
.ex-leak-header,
.ex-leak-layout,
.ex-leak-panel,
.ex-leak-panel-main,
.ex-leak-panel-side,
.ex-leak .ex-calc,
.ex-leak form {
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
}

/* Responsive */
@media (max-width: 1100px) {
  .ex-leak { padding: 100px 28px 110px; }
  .ex-leak-layout {
    grid-template-columns: 1fr;
    max-width: 860px;
    margin: 0 auto;
  }
}

@media (max-width: 780px) {
  .ex-leak { padding: 80px 20px 90px; }
  .ex-leak-header { margin-bottom: 48px; }
  .ex-leak-panel { padding: 28px 24px; }
}

@media (max-width: 480px) {
  .ex-leak-mini-proof { grid-template-columns: 1fr; }
  .ex-leak-mini-proof div + div { border-left: none; border-top: 1px solid var(--ex-border); }
}

@media (prefers-reduced-motion: reduce) {
  .ex-leak-eyebrow-dot { animation: none !important; }
  .ex-leak-header .ex-leak-eyebrow,
  .ex-leak-header .ex-leak-h2,
  .ex-leak-header .ex-leak-sub,
  .ex-leak-panel,
  .ex-leak-calculator {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

.ex-calc-slider-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    width: 100%;
}

.ex-calc-slider-header .ex-calc-label {
    white-space: nowrap;
    margin-bottom: 0;
    flex-shrink: 1;
    min-width: 0;
}

/* ── Mobile calculator overflow fix ── */
@media (max-width: 600px) {
    .ex-calc-inputs {
        padding: 28px 20px 24px;
    }

    .ex-calc-inputs-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .ex-calc-label {
        white-space: normal;
    }

    .ex-calc-slider-header .ex-calc-label {
        white-space: normal;
        flex-shrink: 1;
    }
}

/* ── Calculator inside homepage leak section — always single column ── */
.ex-leak .ex-calc-inputs-grid {
    grid-template-columns: 1fr !important;
    gap: 20px;
}

.ex-leak .ex-calc-inputs {
    padding: 28px 24px 24px;
}

.ex-leak .ex-calc-divider {
    margin: 0 24px;
}

.ex-leak .ex-calc-output {
    padding: 24px 24px 32px;
}

.ex-leak .ex-calc-label {
    white-space: normal;
}

.ex-leak .ex-calc-slider-header .ex-calc-label {
    white-space: normal;
}

.ex-leak .ex-calc-breakdown {
    flex-direction: column;
}

.ex-leak .ex-calc-breakdown-item + .ex-calc-breakdown-item {
    border-left: none;
    border-top: 1px solid var(--ex-border);
}

.ex-leak .ex-calc-cta-btn {
    width: 100%;
    justify-content: center;
}

/* ═══════════════════════════════════════════════════════════════
   LEAK DETECTOR V2 — split layout (calc left, detector right)
   ═══════════════════════════════════════════════════════════════ */

/* Section heading */
.ex-leak-section-head {
  max-width: 900px;
  margin: 0 auto 40px;
  text-align: center;
  padding: 0 20px;
}
.ex-leak-section-head .ex-leak-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px;
  background: rgba(27,255,176,0.08);
  border: 1px solid rgba(27,255,176,0.25);
  border-radius: 999px;
  color: #1bffb0;
  font-size: 0.72rem; font-weight: 800;
  letter-spacing: 0.12em; text-transform: uppercase;
  margin-bottom: 16px;
}
.ex-leak-section-head .ex-leak-pulse {
  width: 8px; height: 8px; border-radius: 50%;
  background: #1bffb0;
  animation: ex-leak-pulse-mint 1.6s ease-out infinite;
}
@keyframes ex-leak-pulse-mint {
  0%   { box-shadow: 0 0 0 0 rgba(27,255,176,0.6); }
  70%  { box-shadow: 0 0 0 12px rgba(27,255,176,0); }
  100% { box-shadow: 0 0 0 0 rgba(27,255,176,0); }
}
.ex-leak-section-title {
  font-size: clamp(1.7rem, 3.4vw, 2.6rem);
  font-weight: 900; letter-spacing: -0.025em;
  color: #fff; margin: 0 0 12px;
}
.ex-leak-section-sub {
  font-size: 1rem; line-height: 1.6;
  color: rgba(255,255,255,0.65);
  margin: 0;
}

/* Split layout */
.ex-leak-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 24px;
  max-width: 1200px;
  margin: 0 auto;
  align-items: stretch;
}

.ex-leak-split-left,
.ex-leak-split-right { min-width: 0; }
.ex-leak-split-right { display: flex; }

/* Detector card — now sized for sidebar */
.ex-leak-detector {
  width: 100%;
  padding: 24px;
  position: relative;
  background:
    radial-gradient(circle at 100% 0%, rgba(255,89,89,0.10), transparent 45%),
    radial-gradient(circle at 0% 100%, rgba(27,255,176,0.06), transparent 45%),
    linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.02));
  border: 1px solid rgba(255,255,255,0.09);
  border-radius: 22px;
  box-shadow: 0 24px 60px rgba(0,0,0,0.35), inset 0 1px 0 rgba(255,255,255,0.05);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Pipe — smaller and tucked top-right */
.ex-leak-pipe {
  position: absolute;
  top: 12px; right: 14px;
  width: 140px;
  opacity: 0.7;
  pointer-events: none;
  z-index: 1;
}
.ex-leak-pipe svg { width: 100%; height: auto; display: block; }

.ex-leak-drop { filter: drop-shadow(0 0 6px rgba(255,138,58,0.7)); }
.ex-leak-drop-a { animation: ex-leak-drop-fall 2.8s ease-in 0.2s infinite; }
.ex-leak-drop-b { animation: ex-leak-drop-fall 3.4s ease-in 1.1s infinite; }
.ex-leak-drop-c { animation: ex-leak-drop-fall 3.1s ease-in 2.0s infinite; }
@keyframes ex-leak-drop-fall {
  0%   { transform: translateY(0)    scale(0.4); opacity: 0; }
  12%  { transform: translateY(2px)  scale(1);   opacity: 1; }
  85%  { transform: translateY(50px) scale(0.9); opacity: 0.85; }
  100% { transform: translateY(68px) scale(0.4); opacity: 0; }
}
.ex-leak-coin { opacity: 0; filter: drop-shadow(0 0 4px rgba(255,138,58,0.7)); }
.ex-leak-coin-a { animation: ex-leak-coin-fall 3.6s ease-in 1.4s infinite; }
.ex-leak-coin-b { animation: ex-leak-coin-fall 4.2s ease-in 2.6s infinite; }
.ex-leak-coin-c { animation: ex-leak-coin-fall 3.9s ease-in 3.5s infinite; }
@keyframes ex-leak-coin-fall {
  0%   { transform: translateY(0)    rotate(0deg);   opacity: 0; }
  10%  { transform: translateY(4px)  rotate(8deg);   opacity: 1; }
  80%  { transform: translateY(52px) rotate(180deg); opacity: 0.7; }
  100% { transform: translateY(68px) rotate(220deg); opacity: 0; }
}

/* Eyebrow */
.ex-leak-detector-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 5px 11px;
  border: 1px solid rgba(255,89,89,0.25);
  border-radius: 999px;
  background: rgba(255,89,89,0.08);
  font-size: 0.62rem; font-weight: 800;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: #ff8a8a;
  align-self: flex-start;
  position: relative; z-index: 2;
}
.ex-leak-detector-eyebrow .ex-leak-pulse {
  width: 7px; height: 7px; border-radius: 50%;
  background: #ff5959;
  animation: ex-leak-pulse-red 1.6s ease-out infinite;
}
@keyframes ex-leak-pulse-red {
  0%   { box-shadow: 0 0 0 0 rgba(255,89,89,0.6); }
  70%  { box-shadow: 0 0 0 10px rgba(255,89,89,0); }
  100% { box-shadow: 0 0 0 0 rgba(255,89,89,0); }
}
.ex-leak-eyebrow-time {
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  color: rgba(255,255,255,0.6);
  letter-spacing: 0.05em;
}

/* Title with running counter */
.ex-leak-detector-title {
  font-size: 1.15rem;
  font-weight: 800;
  line-height: 1.4;
  letter-spacing: -0.015em;
  color: #fff;
  margin: 0;
  position: relative; z-index: 2;
}
.ex-leak-counter-wrap {
  display: inline-flex; align-items: baseline; gap: 1px;
  padding: 2px 9px;
  margin: 0 2px;
  background: linear-gradient(180deg, rgba(255,89,89,0.18), rgba(255,89,89,0.08));
  border: 1px solid rgba(255,89,89,0.35);
  border-radius: 10px;
  color: #ff7676;
  font-variant-numeric: tabular-nums;
  box-shadow: 0 0 24px rgba(255,89,89,0.18), inset 0 1px 0 rgba(255,255,255,0.08);
}
.ex-leak-currency { font-size: 0.75em; opacity: 0.85; }
.ex-leak-counter  { font-weight: 900; }

.ex-leak-detector-sub {
  font-size: 0.85rem;
  line-height: 1.55;
  color: rgba(255,255,255,0.65);
  margin: 0;
}
.ex-leak-detector-sub strong { color: #1bffb0; }

/* Compact meters — stacked, not 3-col */
.ex-leak-meters {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.ex-leak-meter {
  padding: 10px 12px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 12px;
}
.ex-leak-meter-head {
  display: flex; align-items: center;
  margin-bottom: 6px;
}
.ex-leak-meter-title {
  font-size: 0.78rem; font-weight: 700;
  color: rgba(255,255,255,0.85);
  flex: 1;
}
.ex-leak-meter-value {
  font-size: 0.85rem; font-weight: 900;
  color: #ff7676;
  font-variant-numeric: tabular-nums;
}
.ex-leak-meter-bar {
  position: relative; height: 6px;
  background: rgba(255,255,255,0.06);
  border-radius: 999px; overflow: hidden;
}
.ex-leak-meter-fill {
  position: absolute; inset: 0;
  width: 0%;
  background: linear-gradient(90deg, #ff5959, #ff8a3a);
  border-radius: 999px;
  transition: width 1.8s cubic-bezier(0.22, 1, 0.36, 1);
  box-shadow: 0 0 10px rgba(255,89,89,0.4);
}
.ex-leak-meter-fill::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
  transform: translateX(-100%);
  animation: ex-leak-shimmer 2.4s ease-in-out infinite;
}
@keyframes ex-leak-shimmer {
  0% { transform: translateX(-100%); } 100% { transform: translateX(100%); }
}

/* Feed — compact */
.ex-leak-feed {
  padding: 10px 12px;
  background: rgba(0,0,0,0.28);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 12px;
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}
.ex-leak-feed-head {
  display: flex; align-items: center; gap: 8px;
  font-size: 0.62rem; font-weight: 800;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: rgba(255,255,255,0.65);
  margin-bottom: 8px;
}
.ex-leak-feed-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: #ff5959;
  animation: ex-leak-pulse-red 1.6s ease-out infinite;
}
.ex-leak-feed-tag {
  margin-left: auto;
  font-size: 0.55rem;
  padding: 2px 6px;
  border-radius: 5px;
  background: rgba(255,255,255,0.05);
  color: rgba(255,255,255,0.45);
}
.ex-leak-feed-list {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-direction: column; gap: 5px;
  min-height: 80px; max-height: 130px; overflow: hidden;
}
.ex-leak-feed-item {
  display: flex; align-items: center; gap: 8px;
  padding: 5px 8px;
  background: rgba(255,89,89,0.05);
  border: 1px solid rgba(255,89,89,0.15);
  border-radius: 8px;
  font-size: 0.7rem;
  color: rgba(255,255,255,0.85);
  animation: ex-leak-feed-in 0.5s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.ex-leak-feed-time {
  font-size: 0.6rem;
  color: rgba(255,255,255,0.42);
  flex-shrink: 0;
  min-width: 44px;
}
.ex-leak-feed-body {
  flex: 1; overflow: hidden;
  text-overflow: ellipsis; white-space: nowrap;
}
.ex-leak-feed-amount {
  margin-left: auto;
  color: #ff7676; font-weight: 800;
  white-space: nowrap;
}
@keyframes ex-leak-feed-in {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* CTA button */
.ex-leak-cta-btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px;
  padding: 13px 20px;
  background: linear-gradient(135deg, #1bffb0, #19f5c3);
  color: #05080D !important;
  font-weight: 900; font-size: 0.92rem;
  text-decoration: none;
  border-radius: 12px;
  box-shadow: 0 10px 28px rgba(27,255,176,0.32), inset 0 1px 0 rgba(255,255,255,0.4);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  margin-top: 4px;
}
.ex-leak-cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 40px rgba(27,255,176,0.5);
}
.ex-leak-cta-arrow { transition: transform 0.25s ease; }
.ex-leak-cta-btn:hover .ex-leak-cta-arrow { transform: translateX(3px); }
.ex-leak-cta-mini {
  font-size: 0.65rem;
  color: rgba(255,255,255,0.5);
  text-align: center;
  margin-top: 2px;
}

/* User mode */
.ex-leak-detector.is-user-mode .ex-leak-detector-eyebrow {
  border-color: rgba(27,255,176,0.35);
  background: rgba(27,255,176,0.08);
  color: #1bffb0;
}
.ex-leak-detector.is-user-mode .ex-leak-detector-eyebrow .ex-leak-pulse {
  background: #1bffb0;
  animation: ex-leak-pulse-mint 1.6s ease-out infinite;
}
.ex-leak-period { color: #ff7676; font-weight: 900; }
.ex-leak-monthly {
  display: inline-block;
  padding: 1px 10px; margin: 0 2px;
  background: rgba(27,255,176,0.12);
  border: 1px solid rgba(27,255,176,0.3);
  border-radius: 8px;
  color: #1bffb0; font-weight: 900;
  font-variant-numeric: tabular-nums;
}

/* ── Tablet & mobile ── */
@media (max-width: 1024px) {
  .ex-leak-split {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}
@media (max-width: 600px) {
  .ex-leak-pipe { display: none; }
  .ex-leak-detector { padding: 18px; }
  .ex-leak-detector-title { font-size: 1.05rem; }
}

