/* ═══════════════════════════════════════════════════════════
   NEXTBILL — GST Calculator
   Page-specific components only. Every token, button, glass
   surface, shadow and easing curve comes from style.css
   ═══════════════════════════════════════════════════════════ */

[hidden] { display: none !important; }

/* ═══════════════════ HERO + CALCULATOR ═══════════════════ */
.calc-hero {
  position: relative;
  padding-top: clamp(126px, 15vh, 172px);
  padding-bottom: clamp(48px, 6vw, 80px);
  overflow: hidden;
}
.hero-ribbons { position: absolute; inset: 0; width: 100%; height: 100%; }

.calc-hero-inner {
  position: relative; z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr);
  align-items: start;
  gap: clamp(32px, 4.5vw, 76px);
}

.calc-title { font-size: clamp(38px, 5vw, 64px); margin: var(--s3) 0 var(--s2); }
.calc-sub {
  color: var(--text-2);
  font-size: clamp(15.5px, 1.3vw, 17.5px);
  max-width: 46ch;
  margin-bottom: var(--s4);
}
.calc-cta { display: flex; gap: var(--s2); flex-wrap: wrap; margin-bottom: var(--s5); }

/* quick rate chips */
.rate-quick { margin-bottom: var(--s4); }
.quick-label {
  display: block; margin-bottom: 12px;
  font-family: var(--font-head); font-weight: 800; font-size: 11px;
  text-transform: uppercase; letter-spacing: .12em; color: var(--text-2);
}
.rate-chips { display: flex; gap: 8px; flex-wrap: wrap; }
.rate-chip {
  position: relative;
  font-family: var(--font-head); font-weight: 800; font-size: 15px;
  color: var(--text-2);
  background: var(--glass);
  padding: 11px 21px; border-radius: var(--r-pill);
  box-shadow: inset 0 0 0 1px var(--border-strong);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  transition: all var(--t-fast) var(--ease);
}
.rate-chip:hover {
  transform: translateY(-3px);
  color: color-mix(in srgb, var(--ac) 45%, #06332A);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--ac) 38%, transparent), var(--shadow-sm);
}
.rate-chip.is-active {
  color: #fff;
  background: linear-gradient(120deg, color-mix(in srgb, var(--ac) 52%, #04443A),
                                      color-mix(in srgb, var(--ac) 34%, #04443A));
  box-shadow: 0 10px 24px color-mix(in srgb, var(--ac) 34%, transparent);
}

.calc-proof { display: flex; gap: var(--s3); flex-wrap: wrap; }
.calc-proof li {
  display: flex; align-items: center; gap: 7px;
  font-size: 13.5px; color: var(--text-2); font-weight: 500;
}

/* ── the calculator card ── */
.calc-stage { position: relative; }
@media (min-width: 1024px) {
  .calc-stage { position: sticky; top: 104px; }
}

.calc-card {
  position: relative;
  background: rgba(255, 255, 255, .86);
  backdrop-filter: blur(22px) saturate(1.6); -webkit-backdrop-filter: blur(22px) saturate(1.6);
  border-radius: var(--r-xl);
  padding: clamp(22px, 2.6vw, 34px);
  box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.85),
              0 28px 70px rgba(18, 70, 55, .18);
  overflow: hidden;
}
.cc-sheen {
  position: absolute; inset: 0; z-index: 3; pointer-events: none;
  background: linear-gradient(115deg, transparent 32%, rgba(255,255,255,.3) 46%, transparent 58%);
  transform: translateX(-100%);
  animation: glassSheen 8s var(--ease) 1.4s infinite;
}

.calc-card-head {
  display: flex; align-items: flex-start; justify-content: space-between; gap: var(--s2);
  margin-bottom: var(--s3);
}
.calc-card-head h2 { font-size: 21px; letter-spacing: -.02em; }
.calc-card-head small { color: var(--text-2); font-size: 12.5px; }
.calc-reset {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-head); font-weight: 700; font-size: 12.5px;
  color: var(--text-2);
  padding: 7px 14px; border-radius: var(--r-pill);
  box-shadow: inset 0 0 0 1px var(--border-strong);
  transition: all var(--t-fast) var(--ease);
}
.calc-reset:hover { color: var(--green-deep); box-shadow: inset 0 0 0 1px rgba(16,185,129,.35); transform: translateY(-2px); }
.calc-reset svg { transition: transform var(--t-slow) var(--ease); }
.calc-reset:hover svg { transform: rotate(-180deg); }

.field { margin-bottom: var(--s3); }
.field-label {
  display: block; margin-bottom: 9px;
  font-family: var(--font-head); font-weight: 700; font-size: 12px;
  text-transform: uppercase; letter-spacing: .1em; color: var(--text-2);
}
.field-hint { display: block; margin-top: 7px; font-size: 11.5px; color: var(--text-2); }

/* inclusive / exclusive toggle */
.seg-toggle {
  position: relative;
  display: grid; grid-template-columns: 1fr 1fr; gap: 4px;
  background: rgba(60, 115, 95, .07);
  border-radius: var(--r-md);
  padding: 5px;
}
.st-btn {
  position: relative; z-index: 1;
  display: grid; gap: 1px; justify-items: center;
  padding: 11px 10px; border-radius: 13px;
  font-family: var(--font-head); font-weight: 700; font-size: 14px;
  color: var(--text-2);
  transition: color var(--t-med) var(--ease);
}
.st-btn small { font-family: var(--font-body); font-weight: 400; font-size: 11px; opacity: .85; }
.st-btn:hover { color: var(--text); }
.st-btn.is-active { color: #fff; }
.st-ink {
  position: absolute; z-index: 0; top: 5px; left: 5px;
  width: calc(50% - 7px); height: calc(100% - 10px);
  background: linear-gradient(120deg, #05835C, #047857);
  border-radius: 13px;
  box-shadow: 0 8px 20px rgba(4, 120, 87, .3);
  transition: transform var(--t-med) var(--ease);
}
.seg-toggle.is-inclusive .st-ink { transform: translateX(calc(100% + 4px)); }

/* amount */
.amount-wrap {
  display: flex; align-items: center; gap: 10px;
  background: #fff;
  border-radius: var(--r-md);
  padding: 4px 18px;
  box-shadow: inset 0 0 0 1.5px var(--border-strong);
  transition: box-shadow var(--t-fast) var(--ease);
}
.amount-wrap:focus-within { box-shadow: inset 0 0 0 1.5px rgba(16,185,129,.5), 0 0 0 5px rgba(16,185,129,.1); }
.amount-cur {
  font-family: var(--font-head); font-weight: 800; font-size: 24px;
  color: var(--text-2);
}
.amount-input {
  flex: 1; min-width: 0;
  border: 0; outline: 0; background: transparent;
  font-family: var(--font-head); font-weight: 800;
  font-size: clamp(26px, 3vw, 34px); letter-spacing: -.02em;
  color: var(--text);
  padding: 12px 0;
}

/* rate select */
.select-wrap { position: relative; }
.rate-select {
  width: 100%;
  appearance: none; -webkit-appearance: none;
  border: 0; outline: 0;
  background: #fff;
  border-radius: var(--r-md);
  box-shadow: inset 0 0 0 1.5px var(--border-strong);
  font-family: var(--font-head); font-weight: 700; font-size: 14.5px;
  color: var(--text);
  padding: 15px 44px 15px 18px;
  cursor: pointer;
  transition: box-shadow var(--t-fast) var(--ease);
}
.rate-select:focus { box-shadow: inset 0 0 0 1.5px rgba(16,185,129,.5), 0 0 0 5px rgba(16,185,129,.1); }
.select-chev {
  position: absolute; right: 18px; top: 50%;
  transform: translateY(-50%);
  color: var(--text-2); pointer-events: none;
}

/* supply type */
.supply-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.supply-btn {
  display: grid; gap: 2px; justify-items: center;
  padding: 13px 10px; border-radius: var(--r-md);
  background: #fff;
  box-shadow: inset 0 0 0 1.5px var(--border);
  font-family: var(--font-head); font-weight: 700; font-size: 13.5px;
  color: var(--text-2);
  transition: all var(--t-med) var(--ease);
}
.supply-btn small { font-family: var(--font-body); font-weight: 400; font-size: 11px; }
.sb-ic { color: var(--text-2); transition: color var(--t-med) var(--ease); }
.supply-btn:hover { transform: translateY(-2px); box-shadow: inset 0 0 0 1.5px rgba(16,185,129,.3), var(--shadow-sm); }
.supply-btn.is-active {
  color: var(--green-deep);
  background: rgba(16, 185, 129, .08);
  box-shadow: inset 0 0 0 1.5px rgba(16, 185, 129, .4);
}
.supply-btn.is-active .sb-ic { color: var(--green-deep); }

.calc-go { margin-top: var(--s1); }

/* live total strip */
.calc-total {
  margin-top: var(--s3);
  background: rgba(60, 115, 95, .05);
  border-radius: var(--r-md);
  padding: 16px 20px;
}
.ct-row {
  display: flex; align-items: baseline; justify-content: space-between; gap: var(--s2);
  padding: 6px 0;
}
.ct-row small { color: var(--text-2); font-size: 12.5px; }
.ct-row i { font-style: normal; font-weight: 600; }
.ct-row strong { font-family: var(--font-head); font-weight: 700; font-size: 15px; }
.ct-row-gst strong { color: var(--green-deep); }
.ct-row-total {
  margin-top: 6px; padding-top: 14px;
  border-top: 1.5px dashed var(--border-strong);
}
.ct-row-total small { font-family: var(--font-head); font-weight: 700; color: var(--text); font-size: 13.5px; }
.ct-row-total strong { font-size: clamp(22px, 2.4vw, 27px); letter-spacing: -.02em; }

/* ═══════════════════ RESULTS BREAKDOWN ═══════════════════ */
.results { padding-top: clamp(40px, 5vw, 68px); }
.results-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: var(--s3); flex-wrap: wrap;
  margin-bottom: var(--s4);
}
.results-head h2 { font-size: clamp(25px, 3vw, 36px); }
.results-head p { color: var(--text-2); font-size: 14px; margin-top: 5px; }

.res-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.res-btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-head); font-weight: 700; font-size: 13px;
  color: var(--text-2);
  background: var(--glass);
  padding: 10px 18px; border-radius: var(--r-pill);
  box-shadow: inset 0 0 0 1px var(--border-strong);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  transition: all var(--t-fast) var(--ease);
}
.res-btn:hover {
  color: var(--green-deep); transform: translateY(-2px);
  box-shadow: inset 0 0 0 1px rgba(16,185,129,.35), var(--shadow-sm);
}
.res-btn.is-done { color: #fff; background: linear-gradient(120deg, #05835C, #047857); }

.metric-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: var(--s2);
}
.metric {
  position: relative;
  background: var(--surface);
  border-radius: var(--r-lg);
  padding: var(--s3);
  box-shadow: inset 0 0 0 1px var(--border), var(--shadow-sm);
  overflow: hidden;
  transition: transform var(--t-med) var(--ease), box-shadow var(--t-med) var(--ease), opacity var(--t-med) var(--ease);
}
.metric::before {
  content: '';
  position: absolute; top: 0; left: var(--s3); right: var(--s3); height: 3px;
  border-radius: 0 0 4px 4px;
  background: var(--ac);
  transform: scaleX(0); transform-origin: left;
  transition: transform var(--t-med) var(--ease);
}
.metric::after {
  content: '';
  position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: radial-gradient(280px circle at 70% -20%, color-mix(in srgb, var(--ac) 13%, transparent), transparent 70%);
  opacity: .5; transition: opacity var(--t-med) var(--ease);
}
.metric:hover {
  transform: translateY(-6px);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--ac) 28%, transparent), var(--shadow-lg);
}
.metric:hover::before { transform: scaleX(1); }
.metric:hover::after { opacity: 1; }
.metric.is-muted { opacity: .48; }

.m-ic {
  position: relative;
  display: grid; place-items: center;
  width: 38px; height: 38px; border-radius: 12px;
  color: color-mix(in srgb, var(--ac) 45%, #06332A);
  background: color-mix(in srgb, var(--ac) 11%, #fff);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--ac) 20%, transparent);
  margin-bottom: 14px;
  transition: transform var(--t-med) var(--ease);
}
.metric:hover .m-ic { transform: scale(1.1) rotate(-6deg); }
.metric small {
  position: relative; display: block;
  font-family: var(--font-head); font-weight: 700; font-size: 11.5px;
  text-transform: uppercase; letter-spacing: .09em; color: var(--text-2);
  margin-bottom: 5px;
}
.metric strong {
  position: relative; display: block;
  font-family: var(--font-head); font-weight: 800;
  font-size: clamp(19px, 1.9vw, 24px); letter-spacing: -.025em;
  color: var(--text);
}
.m-note {
  position: relative; display: block; margin-top: 6px;
  font-style: normal; font-size: 11.5px; color: var(--text-2);
}
.metric-total {
  grid-column: span 1;
  background:
    radial-gradient(320px 220px at 75% 0%, rgba(16,185,129,.14), transparent 68%),
    linear-gradient(150deg, #FBFEFC, #EEFAF5);
  box-shadow: inset 0 0 0 1.5px rgba(16, 185, 129, .3), var(--shadow-md);
}
.metric-total strong { color: var(--green-deep); }

/* value change pulse */
@keyframes numPop { 0% { transform: translateY(4px); opacity: .4; } 100% { transform: none; opacity: 1; } }
.metric strong.is-changed, .ct-row strong.is-changed { animation: numPop 420ms var(--ease); }

/* ═══════════════════ HOW GST WORKS ═══════════════════ */
.how-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s3);
  counter-reset: step;
}
.how-card {
  position: relative;
  background: var(--surface);
  border-radius: var(--r-lg);
  padding: var(--s4);
  box-shadow: inset 0 0 0 1px var(--border), var(--shadow-sm);
  overflow: hidden;
  transition: transform var(--t-med) var(--ease), box-shadow var(--t-med) var(--ease);
}
.how-card::after {
  content: '';
  position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: radial-gradient(360px circle at 85% -10%, color-mix(in srgb, var(--ac) 14%, transparent), transparent 68%);
  opacity: .5; transition: opacity var(--t-med) var(--ease);
}
.how-card:hover {
  transform: translateY(-6px);
  box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--ac) 28%, transparent), var(--shadow-lg);
}
.how-card:hover::after { opacity: 1; }
.how-num {
  position: relative;
  display: grid; place-items: center;
  width: 34px; height: 34px; border-radius: 50%;
  font-family: var(--font-head); font-weight: 800; font-size: 14px;
  color: #fff;
  background: linear-gradient(135deg, color-mix(in srgb, var(--ac) 44%, #04443A),
                                      color-mix(in srgb, var(--ac) 30%, #04443A));
  box-shadow: 0 8px 18px color-mix(in srgb, var(--ac) 30%, transparent);
  margin-bottom: var(--s3);
}
.how-art { position: relative; display: block; width: 92px; height: 72px; color: var(--ac); margin-bottom: var(--s2); }
.how-art svg { width: 100%; height: 100%; }
.how-card:hover .hw-caret { animation: blink 1s steps(2) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.how-card:hover .hw-dot { animation: floatY 1.6s ease-in-out infinite alternate; }
.how-card:hover .hw-pick { animation: pickPulse 1.6s var(--ease) infinite; }
@keyframes pickPulse { 50% { opacity: .38; } }
.how-card .hw-bar { transform-origin: bottom; transform: scaleY(0); transition: transform 600ms var(--ease); }
.how-card.is-in .hw-bar { transform: scaleY(1); }
.how-card.is-in .hw-b2 { transition-delay: 90ms; }
.how-card.is-in .hw-b3 { transition-delay: 180ms; }
.how-card.is-in .hw-b4 { transition-delay: 270ms; }
.how-card h3 { position: relative; font-size: 18px; margin-bottom: 7px; }
.how-card p { position: relative; color: var(--text-2); font-size: 14px; line-height: 1.6; }

/* ═══════════════════ LIVE FORMULA ═══════════════════ */
.formula-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: var(--s3);
  max-width: 1060px; margin: 0 auto;
}
.f-card {
  background: var(--surface);
  border-radius: var(--r-lg);
  padding: clamp(24px, 3vw, 36px);
  box-shadow: inset 0 0 0 1px var(--border), var(--shadow-sm);
  transition: transform var(--t-med) var(--ease), box-shadow var(--t-med) var(--ease);
}
.f-card:hover {
  transform: translateY(-5px);
  box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--ac) 28%, transparent), var(--shadow-lg);
}
.f-card header { margin-bottom: var(--s3); }
.f-tag {
  display: inline-block; margin-bottom: 12px;
  font-family: var(--font-head); font-weight: 800; font-size: 10.5px;
  text-transform: uppercase; letter-spacing: .1em;
  color: color-mix(in srgb, var(--ac) 45%, #06332A);
  background: color-mix(in srgb, var(--ac) 12%, #fff);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--ac) 22%, transparent);
  padding: 5px 13px; border-radius: var(--r-pill);
}
.f-card h3 { font-size: 20px; margin-bottom: 6px; }
.f-card header p { color: var(--text-2); font-size: 13.5px; }

.f-steps { display: grid; gap: 6px; }
.f-step {
  display: grid; gap: 8px;
  background: color-mix(in srgb, var(--ac) 6%, #fff);
  border-radius: var(--r-md);
  padding: 16px 18px;
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--ac) 16%, transparent);
}
.f-lbl {
  font-family: var(--font-head); font-weight: 700; font-size: 11px;
  text-transform: uppercase; letter-spacing: .09em; color: var(--text-2);
}
.f-eq {
  font-family: var(--font-head); font-weight: 600; font-size: 14px;
  color: var(--text-2);
  line-height: 1.6;
  word-break: break-word;
}
.f-eq b {
  font-weight: 800;
  color: color-mix(in srgb, var(--ac) 45%, #06332A);
  transition: color var(--t-fast) var(--ease);
}
.f-res {
  font-family: var(--font-head); font-weight: 800; font-size: 19px;
  letter-spacing: -.02em; color: var(--text);
}
.f-res-final { font-size: 23px; color: color-mix(in srgb, var(--ac) 45%, #06332A); }
.f-arrow { display: grid; place-items: center; color: color-mix(in srgb, var(--ac) 40%, #06332A); padding: 2px 0; }
.f-arrow svg { animation: arrowNudge 2.2s var(--ease) infinite; }
@keyframes arrowNudge { 0%,100% { transform: translateY(-2px); } 50% { transform: translateY(2px); } }

.split-note {
  display: flex; align-items: flex-start; gap: 14px;
  max-width: 1060px; margin: var(--s4) auto 0;
  background: var(--glass);
  border-radius: var(--r-lg);
  padding: var(--s3);
  box-shadow: inset 0 0 0 1px var(--border-strong);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.sn-ic {
  flex-shrink: 0;
  display: grid; place-items: center;
  width: 38px; height: 38px; border-radius: 12px;
  color: var(--green-deep);
  background: rgba(16, 185, 129, .1);
}
.split-note p { color: var(--text-2); font-size: 14px; line-height: 1.65; }
.split-note strong { color: var(--text); font-family: var(--font-head); }

/* ═══════════════════ EXAMPLES ═══════════════════ */
.ex-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--s3);
}
.ex-card {
  position: relative;
  text-align: left;
  background: var(--surface);
  border-radius: var(--r-lg);
  padding: var(--s3);
  box-shadow: inset 0 0 0 1px var(--border), var(--shadow-sm);
  overflow: hidden;
  transition: transform var(--t-med) var(--ease), box-shadow var(--t-med) var(--ease);
}
.ex-card::after {
  content: '';
  position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: radial-gradient(300px circle at 80% -12%, color-mix(in srgb, var(--ac) 15%, transparent), transparent 68%);
  opacity: .45; transition: opacity var(--t-med) var(--ease);
}
.ex-card:hover {
  transform: translateY(-6px);
  box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--ac) 30%, transparent), var(--shadow-lg);
}
.ex-card:hover::after { opacity: 1; }
.ex-ic {
  position: relative;
  display: grid; place-items: center;
  width: 46px; height: 46px; border-radius: 15px;
  color: color-mix(in srgb, var(--ac) 45%, #06332A);
  background: color-mix(in srgb, var(--ac) 11%, #fff);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--ac) 20%, transparent);
  margin-bottom: var(--s2);
  transition: transform var(--t-med) var(--ease);
}
.ex-card:hover .ex-ic { transform: scale(1.1) rotate(-6deg); }
.ex-card h3 { position: relative; font-size: 17px; margin-bottom: 6px; }
.ex-card p { position: relative; color: var(--text-2); font-size: 13px; line-height: 1.6; margin-bottom: var(--s2); }
.ex-meta { position: relative; display: flex; gap: 6px; flex-wrap: wrap; }
.ex-meta i {
  font-style: normal;
  font-family: var(--font-head); font-weight: 700; font-size: 11px;
  color: color-mix(in srgb, var(--ac) 45%, #06332A);
  background: color-mix(in srgb, var(--ac) 10%, #fff);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--ac) 20%, transparent);
  padding: 4px 10px; border-radius: var(--r-pill);
}

/* ═══════════════════ LEARN / TIMELINE ═══════════════════ */
.learn-panel {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 4vw, 72px);
  align-items: center;
  background:
    radial-gradient(900px 500px at 88% 12%, rgba(6, 182, 212, .1), transparent 60%),
    radial-gradient(700px 500px at 8% 92%, rgba(16, 185, 129, .1), transparent 60%),
    linear-gradient(150deg, #FBFEFC, #EEFAF5 60%, #EAF7F1);
  border-radius: var(--r-xl);
  padding: clamp(32px, 4.5vw, 66px);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.8), var(--shadow-lg);
}
.learn-panel h2 { font-size: clamp(26px, 3.2vw, 40px); margin-bottom: var(--s2); }
.learn-lede { color: var(--text-2); font-size: 16px; margin-bottom: var(--s4); max-width: 44ch; }
.learn-list { display: grid; gap: var(--s3); }
.learn-list li { display: flex; gap: 13px; align-items: flex-start; }
.ll-ic {
  flex-shrink: 0;
  display: grid; place-items: center;
  width: 32px; height: 32px; border-radius: 11px;
  color: color-mix(in srgb, var(--ac) 45%, #06332A);
  background: color-mix(in srgb, var(--ac) 12%, #fff);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--ac) 20%, transparent);
  margin-top: 2px;
}
.learn-list strong { display: block; font-family: var(--font-head); font-size: 14.5px; font-weight: 800; }
.learn-list small { color: var(--text-2); font-size: 12.5px; line-height: 1.55; }

/* timeline */
.tl { position: relative; padding-left: 26px; }
.tl-line {
  position: absolute; left: 7px; top: 8px; bottom: 8px; width: 2px;
  background: linear-gradient(180deg, #0D9488, #10B981 55%, #84CC16);
  border-radius: 2px;
}
.tl-item { position: relative; padding-bottom: var(--s3); }
.tl-item:last-child { padding-bottom: 0; }
.tl-dot {
  position: absolute; left: -26px; top: 3px;
  width: 16px; height: 16px; border-radius: 50%;
  background: #fff;
  box-shadow: inset 0 0 0 3.5px var(--ac), 0 4px 10px color-mix(in srgb, var(--ac) 32%, transparent);
}
.tl-item strong { display: block; font-family: var(--font-head); font-size: 14.5px; letter-spacing: -.01em; }
.tl-item small { color: var(--text-2); font-size: 12.5px; }

.replaced {
  margin-top: var(--s4); padding-top: var(--s3);
  border-top: 1px dashed var(--border-strong);
}
.replaced > small {
  display: block; margin-bottom: 11px;
  font-family: var(--font-head); font-weight: 700; font-size: 11px;
  text-transform: uppercase; letter-spacing: .1em; color: var(--text-2);
}
.rep-chips { display: flex; gap: 7px; flex-wrap: wrap; }
.rep-chips span {
  font-size: 12px; font-weight: 500; color: var(--text-2);
  background: rgba(255,255,255,.7);
  padding: 6px 13px; border-radius: var(--r-pill);
  box-shadow: inset 0 0 0 1px var(--border-strong);
  text-decoration: line-through;
  text-decoration-color: rgba(244, 63, 94, .5);
}

/* ═══════════════════ BENEFITS BENTO ═══════════════════ */
.ben-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--s3);
}
.ben-card {
  position: relative;
  background: var(--surface);
  border-radius: var(--r-md);
  padding: var(--s3);
  box-shadow: inset 0 0 0 1px var(--border), var(--shadow-sm);
  overflow: hidden;
  transition: transform var(--t-med) var(--ease), box-shadow var(--t-med) var(--ease);
}
.ben-card::before {
  content: '';
  position: absolute; top: 0; left: var(--s3); right: var(--s3); height: 3px;
  border-radius: 0 0 4px 4px;
  background: var(--ac);
  transform: scaleX(0); transform-origin: left;
  transition: transform var(--t-med) var(--ease);
}
.ben-card:hover {
  transform: translateY(-5px);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--ac) 26%, transparent), var(--shadow-md);
}
.ben-card:hover::before { transform: scaleX(1); }
.ben-ic {
  display: grid; place-items: center;
  width: 40px; height: 40px; border-radius: 13px;
  color: color-mix(in srgb, var(--ac) 45%, #06332A);
  background: color-mix(in srgb, var(--ac) 11%, #fff);
  margin-bottom: var(--s2);
  transition: transform var(--t-med) var(--ease);
}
.ben-card:hover .ben-ic { transform: scale(1.12) rotate(-5deg); }
.ben-card:hover .bn-ring { animation: ringGrow 1.4s var(--ease) infinite; transform-origin: center; }
@keyframes ringGrow { 50% { transform: scale(1.18); opacity: .55; } }
.ben-card:hover .bn-bolt { animation: boltFlash 1.1s var(--ease) infinite; }
@keyframes boltFlash { 50% { opacity: .4; } }
.ben-card:hover .bn-slide { animation: slideX 1.6s var(--ease) infinite alternate; }
.ben-card:hover .bn-s2 { animation-delay: .2s; }
@keyframes slideX { to { transform: translateX(5px); } }
.ben-card h3 { font-size: 16px; margin-bottom: 4px; }
.ben-card p { color: var(--text-2); font-size: 13px; line-height: 1.55; }
.ben-cta {
  display: flex; flex-direction: column; justify-content: center;
  background:
    radial-gradient(360px 240px at 80% 0%, rgba(16,185,129,.13), transparent 66%),
    linear-gradient(150deg, #FBFEFC, #EEFAF5);
  box-shadow: inset 0 0 0 1.5px rgba(16, 185, 129, .26), var(--shadow-md);
}
.ben-cta .btn { align-self: flex-start; margin-top: var(--s2); }

/* ═══════════════════ FILING BAND ═══════════════════ */
.filing-band {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: clamp(28px, 4vw, 64px);
  align-items: center;
  border-radius: var(--r-xl);
  padding: clamp(32px, 4.4vw, 62px);
  overflow: hidden;
  background: linear-gradient(120deg, #08211B, #0C3A2E 55%, #093C3A);
  box-shadow: 0 24px 60px rgba(8, 40, 30, .32);
}
.filing-band::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(520px 300px at 10% 118%, rgba(16, 185, 129, .4), transparent 62%),
    radial-gradient(460px 280px at 92% -18%, rgba(132, 204, 22, .3), transparent 62%);
}
.filing-copy, .filing-list { position: relative; }
.filing-copy h2 { color: #fff; font-size: clamp(25px, 3vw, 38px); margin-bottom: 10px; }
.filing-copy p { color: rgba(255,255,255,.86); font-size: 15px; max-width: 38ch; }
.eyebrow-onglass { color: #6EE7B7 !important; }
.eyebrow-onglass::before { background: #6EE7B7; }

.filing-list { display: grid; grid-template-columns: 1fr 1fr; gap: 12px var(--s3); }
.filing-list li {
  display: flex; align-items: flex-start; gap: 11px;
  color: rgba(255,255,255,.92); font-size: 14px; line-height: 1.5;
}
.fl-tick {
  flex-shrink: 0;
  display: grid; place-items: center;
  width: 22px; height: 22px; border-radius: 50%;
  font-size: 11px; font-weight: 700; color: #08211B;
  background: #6EE7B7;
  margin-top: 1px;
}

/* ═══════════════════ RELATED TOOLS ═══════════════════ */
.tool-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(228px, 1fr));
  gap: var(--s3);
}
.tool-card {
  position: relative;
  display: flex; flex-direction: column;
  background: var(--surface);
  border-radius: var(--r-lg);
  padding: var(--s3);
  box-shadow: inset 0 0 0 1px var(--border), var(--shadow-sm);
  overflow: hidden;
  transition: transform var(--t-med) var(--ease), box-shadow var(--t-med) var(--ease);
}
.tool-card::before {
  content: '';
  position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: radial-gradient(300px circle at 78% -12%, color-mix(in srgb, var(--ac) 15%, transparent), transparent 68%);
  opacity: .45; transition: opacity var(--t-med) var(--ease);
}
.tool-card:hover {
  transform: translateY(-6px);
  box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--ac) 30%, transparent), var(--shadow-lg);
}
.tool-card:hover::before { opacity: 1; }
.tool-ic {
  position: relative;
  display: grid; place-items: center;
  width: 48px; height: 48px; border-radius: 15px;
  color: color-mix(in srgb, var(--ac) 45%, #06332A);
  background: color-mix(in srgb, var(--ac) 11%, #fff);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--ac) 20%, transparent);
  margin-bottom: var(--s2);
  transition: transform var(--t-med) var(--ease);
}
.tool-card:hover .tool-ic { transform: scale(1.1) rotate(-6deg); }
.tool-card h3 { position: relative; font-size: 17px; margin-bottom: 6px; }
.tool-card p { position: relative; color: var(--text-2); font-size: 13px; line-height: 1.6; flex: 1; }
.tool-go {
  position: relative;
  display: inline-flex; align-items: center; gap: 7px;
  margin-top: var(--s2);
  font-family: var(--font-head); font-weight: 700; font-size: 13.5px;
  color: color-mix(in srgb, var(--ac) 45%, #06332A);
}
.tool-go svg { transition: transform var(--t-fast) var(--ease); }
.tool-card:hover .tool-go svg { transform: translateX(4px); }

/* ═══════════════════ TOAST ═══════════════════ */
.toast {
  position: fixed; z-index: 400;
  bottom: 28px; left: 50%;
  display: flex; align-items: center; gap: 9px;
  font-family: var(--font-head); font-weight: 700; font-size: 13.5px;
  color: #fff;
  background: linear-gradient(120deg, #05835C, #047857);
  padding: 12px 22px; border-radius: var(--r-pill);
  box-shadow: 0 16px 38px rgba(4, 120, 87, .38);
  transform: translate(-50%, 20px);
  opacity: 0; visibility: hidden;
  transition: opacity var(--t-med) var(--ease), transform var(--t-med) var(--ease),
              visibility 0s linear var(--t-med);
}
.toast.is-on {
  opacity: 1; visibility: visible; transform: translate(-50%, 0);
  transition: opacity var(--t-med) var(--ease), transform var(--t-med) var(--ease), visibility 0s;
}

/* ═══════════════════ RESPONSIVE ═══════════════════ */
@media (max-width: 1180px) {
  .metric-grid { grid-template-columns: repeat(3, 1fr); }
  .ben-grid { grid-template-columns: repeat(3, 1fr); }
  .ex-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 1023px) {
  .calc-hero-inner { grid-template-columns: 1fr; }
  /* calculator moves above the supporting copy on tablet + mobile */
  .calc-stage { order: -1; }
  .calc-copy { text-align: center; display: flex; flex-direction: column; align-items: center; }
  .calc-sub { margin-inline: auto; }
  .calc-cta, .calc-proof, .rate-chips { justify-content: center; }
  .calc-title { font-size: clamp(32px, 6vw, 46px); }
  .learn-panel { grid-template-columns: 1fr; }
  .filing-band { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
  .how-row { grid-template-columns: 1fr; }
  .formula-grid { grid-template-columns: 1fr; }
  .ben-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 700px) {
  .metric-grid { grid-template-columns: repeat(2, 1fr); }
  .results-head { flex-direction: column; align-items: stretch; }
  .filing-list { grid-template-columns: 1fr; }
}

@media (max-width: 520px) {
  .calc-hero { padding-top: 112px; }
  .calc-cta { flex-direction: column; width: 100%; max-width: 320px; }
  .calc-cta .btn { width: 100%; }
  .ex-grid { grid-template-columns: 1fr; }
  .ben-grid { grid-template-columns: 1fr; }
  .supply-row { grid-template-columns: 1fr; }
  .seg-toggle { grid-template-columns: 1fr; }
  .st-ink { width: calc(100% - 10px); height: calc(50% - 7px); }
  .seg-toggle.is-inclusive .st-ink { transform: translateY(calc(100% + 4px)); }
  .rate-chip { padding: 10px 17px; font-size: 14px; }
  .res-actions { display: grid; grid-template-columns: repeat(3, 1fr); }
  .res-btn { justify-content: center; }
}

@media (max-width: 380px) {
  .metric-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .cc-sheen, .f-arrow svg { animation: none; }
}
