/* LeadGo free tools — maps the calculators' existing markup onto the site system */

.tools-main > .wrap,
.tools-main > .container {
  width: 100%;
  max-width: 760px;
  margin-inline: auto;
  padding: clamp(32px, 5vw, 64px) var(--gutter) clamp(56px, 8vw, 112px);
}
.tools-main > .wrap {
  max-width: calc(1120px + var(--gutter) * 2);
}
.tools-index .tools-main > .container {
  max-width: calc(1120px + var(--gutter) * 2);
}
.page-header,
.wrap > h1,
.wrap > .sub {
  text-align: left;
}
.page-header {
  margin-bottom: clamp(28px, 4vw, 48px);
}
.tools-main h1 {
  font-size: clamp(1.875rem, 1.2rem + 2.4vw, 3.25rem);
  letter-spacing: -0.035em;
  line-height: 1.06;
  max-width: 20em;
}
.tools-main h1 span {
  color: inherit;
}
.page-header p,
.wrap > .sub {
  margin-top: 20px;
  font-size: var(--step-1);
  line-height: 1.5;
  color: var(--ink-2);
  max-width: 36em;
}
.wrap > .sub {
  margin-bottom: clamp(28px, 4vw, 48px);
}

/* inputs */
.field {
  display: block;
}
.field + .field,
.card .field {
  margin-top: 24px;
}
.field label,
.field > label {
  display: block;
  font-weight: 600;
  margin-bottom: 10px;
}
.field label span {
  font-weight: 450;
  color: var(--muted);
  font-size: var(--step--1);
}
.field label .val {
  float: right;
  color: var(--accent-press);
  font-weight: 650;
  font-variant-numeric: tabular-nums;
}
.tools-main input[type="number"],
.tools-main input[type="text"],
.tools-main input[type="email"],
.tools-main input[type="tel"] {
  width: 100%;
  min-height: 52px;
  padding: 12px 16px;
  background: var(--bg);
  border: 1.5px solid var(--soft-2);
  border-radius: var(--radius-sm);
  appearance: none;
  -moz-appearance: textfield;
}
.tools-main input:focus {
  outline: none;
  border-color: var(--ink);
}
.input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}
.input-prefix,
.input-suffix {
  position: absolute;
  pointer-events: none;
  color: var(--muted);
  font-weight: 600;
}
.input-prefix {
  left: 16px;
}
.input-suffix {
  right: 16px;
  font-size: var(--step--1);
}
.input-wrap input {
  padding-left: 36px !important;
  padding-right: 96px !important;
}
.input-wrap.no-prefix input {
  padding-left: 16px !important;
}
input[type="range"] {
  width: 100%;
  accent-color: var(--accent-btn);
  height: 28px;
  cursor: pointer;
}
.slider-labels {
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-size: var(--step--1);
  margin-top: 4px;
}
.slider-labels span[id] {
  color: var(--accent-press) !important;
}

/* panels */
.grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}
@media (max-width: 880px) {
  .grid {
    grid-template-columns: 1fr;
  }
}
.panel,
.card {
  background: var(--soft);
  border-radius: 24px;
  padding: clamp(24px, 3.5vw, 40px);
}
.card-title {
  font-size: var(--step-1);
  font-weight: 650;
  letter-spacing: -0.02em;
  margin-bottom: 4px;
}
.btn-calc,
.btn-unlock,
.gate-submit-btn,
.cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 54px;
  padding: 0 26px;
  margin-top: 28px;
  background: var(--accent-btn);
  color: #fff;
  border: 0;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: var(--step-0);
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.18s var(--ease), transform 0.18s var(--ease);
}
.cta-btn {
  width: auto;
  margin-top: 24px;
}
.btn-calc:active,
.btn-unlock:active,
.gate-submit-btn:active,
.cta-btn:active {
  transform: scale(0.97);
}
@media (hover: hover) {
  .btn-calc:hover,
  .btn-unlock:hover,
  .gate-submit-btn:hover,
  .cta-btn:hover {
    background: var(--accent-press);
  }
}
.goal-options {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 14px;
}
.goal-btn {
  min-height: 64px;
  border: 0;
  border-radius: var(--radius-sm);
  background: var(--bg);
  font-weight: 650;
  cursor: pointer;
  transition: background-color 0.15s, color 0.15s, transform 0.15s var(--ease);
}
.goal-btn:active {
  transform: scale(0.97);
}
.goal-btn.active {
  background: var(--ink);
  color: #fff;
}
.goal-label {
  display: block;
  font-weight: 450;
  font-size: var(--step--1);
  margin-top: 2px;
  opacity: 0.8;
}

/* results */
.results {
  display: none;
  margin-top: 16px;
}
.results.visible {
  display: block;
}
.results > * + * {
  margin-top: 12px;
}
.result-hero,
.loss-hero {
  background: var(--ink);
  color: var(--on-ink);
  border-radius: 24px;
  padding: clamp(28px, 4vw, 48px);
}
.result-hero .goal-label,
.loss-hero .label,
.result-hero .label {
  color: var(--on-ink-2);
  opacity: 1;
  display: block;
  font-size: var(--step-0);
  margin: 0 0 8px;
}
.goal-amount,
.loss-amount {
  font-size: var(--step-4);
  font-weight: 650;
  letter-spacing: -0.045em;
  line-height: 1;
  color: #fff;
  font-variant-numeric: tabular-nums;
}
.goal-period,
.loss-period {
  color: var(--on-ink-2);
  margin-top: 10px;
}
.metrics-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.metric {
  background: var(--soft);
  border-radius: 18px;
  padding: 22px;
}
.metric.highlight {
  background: var(--accent-tint);
}
.m-value {
  font-size: var(--step-2);
  font-weight: 650;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
}
.m-label {
  margin-top: 6px;
  color: var(--ink-2);
}
.metric.bad .m-value {
  color: var(--accent-press);
}
.metric.good .m-value {
  color: var(--green);
}
.daily-plan,
.compare-card,
.insight-card,
.whatif-card {
  background: var(--soft);
  border-radius: 20px;
  padding: clamp(22px, 3vw, 32px);
}
.daily-plan h3,
.compare-card h3,
.insight-card h3 {
  margin-bottom: 14px;
}
.plan-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 14px 0;
}
.plan-icon {
  display: none;
}
.plan-left {
  display: flex;
  gap: 12px;
}
.plan-row-label {
  font-weight: 600;
}
.plan-row-sub {
  color: var(--muted);
  font-size: var(--step--1);
}
.plan-value {
  font-size: var(--step-2);
  font-weight: 650;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}
.gap-card {
  border-radius: 20px;
  padding: clamp(22px, 3vw, 32px);
}
.gap-card.good {
  background: #dff5ec;
}
.gap-card.warn {
  background: #fdecc8;
}
.gap-card h3 {
  margin-bottom: 8px;
}
.compare-row + .compare-row {
  margin-top: 18px;
}
.compare-label {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
  font-weight: 560;
}
.bar-track {
  height: 14px;
  border-radius: 99px;
  background: var(--soft-2);
  overflow: hidden;
}
.bar-fill {
  height: 100%;
  border-radius: 99px;
  transition: width 0.8s var(--ease);
}
.bar-good {
  background: var(--green);
}
.bar-bad {
  background: var(--accent-btn);
}
.whatif-card {
  background: #dff5ec;
}
.wi-label {
  font-weight: 600;
}
.wi-amount {
  font-size: var(--step-3);
  font-weight: 650;
  letter-spacing: -0.04em;
  line-height: 1.1;
  margin: 6px 0;
  font-variant-numeric: tabular-nums;
}
.wi-sub {
  color: var(--ink-2);
}
.cta-card {
  background: var(--accent-btn);
  color: #fff;
  border-radius: 24px;
  padding: clamp(28px, 4vw, 44px);
}
.cta-card h3 {
  font-size: var(--step-2);
  letter-spacing: -0.03em;
}
.cta-card p {
  margin-top: 12px;
  color: #fff;
}
.cta-card .cta-btn {
  background: #fff;
  color: var(--ink);
}
@media (hover: hover) {
  .cta-card .cta-btn:hover {
    background: var(--accent-tint);
  }
}

/* crm receipt */
.receipt-outer {
  position: relative;
}
.receipt {
  background: var(--ink);
  color: var(--on-ink);
  border-radius: 24px;
  padding: clamp(24px, 3.5vw, 40px);
}
.r-title {
  font-size: var(--step-2);
  font-weight: 650;
  letter-spacing: -0.03em;
}
.r-sub {
  color: var(--on-ink-2);
  font-size: var(--step--1);
  margin-top: 4px;
}
.r-divider {
  height: 20px;
}
.r-line {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 8px 0;
  font-variant-numeric: tabular-nums;
}
.r-line span:first-child {
  color: var(--on-ink-2);
}
.r-line.leak span:last-child {
  color: #ff8aa0;
  font-weight: 600;
}
.r-total {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: baseline;
  font-weight: 650;
  font-size: var(--step-1);
}
.r-total span:last-child {
  font-size: var(--step-2);
  letter-spacing: -0.03em;
  color: #ff8aa0;
}
.blur-zone {
  filter: blur(7px);
  user-select: none;
  pointer-events: none;
}
.tear {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 16px;
}
.gate-card {
  width: min(100%, 360px);
  background: var(--bg);
  color: var(--ink);
  border-radius: 22px;
  padding: 28px;
}
.gc-logo {
  font-weight: 700;
  letter-spacing: -0.04em;
  font-size: var(--step-1);
}
.gc-logo span {
  color: var(--accent-btn);
}
.gc-title {
  margin-top: 10px;
  font-size: var(--step-2);
  font-weight: 650;
  letter-spacing: -0.03em;
  line-height: 1.1;
}
.gc-subtitle {
  margin: 8px 0 18px;
  color: var(--ink-2);
}
.gate-card input {
  margin-bottom: 10px;
}
.gate-card .btn-unlock {
  margin-top: 8px;
}
.gate-status,
.gate-status-msg {
  min-height: 1.4em;
  margin-top: 10px;
  font-size: var(--step--1);
}
.gate-status.err,
.gate-status-msg.err {
  color: var(--accent-press);
  font-weight: 560;
}
.gate-status-msg.ok {
  color: var(--green);
}
.unlocked-note {
  margin-top: 10px;
  color: var(--on-ink-2);
}
.gate-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 300;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(14, 16, 19, 0.6);
}
.gate-overlay.active {
  display: flex;
}
.gate-modal {
  position: relative;
  width: min(100%, 440px);
  max-height: calc(100dvh - 40px);
  overflow: auto;
  background: var(--bg);
  border-radius: 24px;
  padding: clamp(24px, 4vw, 36px);
}
.gate-modal h3 {
  font-size: var(--step-2);
  letter-spacing: -0.03em;
  margin: 8px 0;
}
.gate-modal p {
  color: var(--ink-2);
  margin-bottom: 16px;
}
.gate-modal-logo {
  font-weight: 700;
  letter-spacing: -0.04em;
  font-size: var(--step-1);
}
.gate-modal-logo span {
  color: var(--accent-btn);
}
.gate-field {
  margin-bottom: 10px;
}
.gate-privacy-note {
  color: var(--muted);
  font-size: var(--step--1);
  margin-top: 14px;
}

/* seo content */
.info-section {
  margin-top: clamp(56px, 8vw, 104px);
}
.info-section h2 {
  font-size: var(--step-2);
  letter-spacing: -0.03em;
  margin-bottom: 20px;
}
.info-section p {
  color: var(--ink-2);
  max-width: 44rem;
  font-size: var(--step-0);
  line-height: 1.7;
}
.info-section p + p {
  margin-top: 1em;
}
.info-section strong {
  color: var(--ink);
}
.formula {
  margin: 1.2em 0;
  padding: 18px 22px;
  background: var(--soft);
  border-radius: var(--radius);
  font-weight: 600;
  max-width: 44rem;
}
.faq-item {
  background: var(--soft);
  margin-bottom: 8px;
  max-width: 52rem;
}
.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 20px 24px;
  font-weight: 600;
  font-size: var(--step-1);
  letter-spacing: -0.015em;
}
.faq-item summary::-webkit-details-marker {
  display: none;
}
.faq-item summary::after {
  content: "+";
  float: right;
  font-weight: 450;
}
.faq-item[open] summary::after {
  content: "–";
}
.faq-item > div {
  padding: 0 24px 22px;
  color: var(--ink-2);
}
.related-tools {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 12px;
}
.related-tools a {
  display: block;
  background: var(--soft);
  border-radius: 20px;
  padding: 24px;
  text-decoration: none;
  transition: background-color 0.2s var(--ease);
}
@media (hover: hover) {
  .related-tools a:hover {
    background: var(--soft-2);
  }
}
.rt-name {
  font-weight: 650;
  font-size: var(--step-1);
  letter-spacing: -0.015em;
}
.rt-desc {
  margin-top: 8px;
  color: var(--ink-2);
}

/* tools index */
.tool-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.tool-card {
  display: flex;
  flex-direction: column;
  background: var(--soft);
  border-radius: 24px;
  padding: clamp(24px, 3vw, 36px);
  text-decoration: none;
  transition: background-color 0.2s var(--ease), transform 0.2s var(--ease);
}
a.tool-card:active {
  transform: scale(0.99);
}
@media (hover: hover) {
  a.tool-card:hover {
    background: var(--soft-2);
  }
}
.tool-icon {
  display: none;
}
.tool-tag {
  color: var(--accent-press);
  font-weight: 600;
  margin-bottom: 14px;
  order: -1;
}
.tool-card h2 {
  font-size: var(--step-1);
  letter-spacing: -0.02em;
  line-height: 1.2;
  font-weight: 650;
}
.tool-card p {
  margin-top: 14px;
  color: var(--ink-2);
}
.tool-cta {
  margin-top: auto;
  padding-top: 28px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  color: var(--accent-press);
}
.tool-cta svg {
  width: 16px;
  height: 16px;
}
.tool-card.soon {
  background: var(--bg);
  border-radius: 24px;
}
.cta-strip {
  margin-top: 12px;
  background: var(--accent-btn);
  color: #fff;
  border-radius: 28px;
  padding: clamp(32px, 5vw, 64px);
}
.cta-strip h3 {
  font-size: var(--step-2);
  letter-spacing: -0.04em;
  line-height: 1.05;
  max-width: 14em;
}
.cta-strip h3 span {
  color: inherit;
}
.cta-strip p {
  margin-top: 16px;
  color: #fff;
  max-width: 32em;
}
.cta-strip .cta-btn {
  background: #fff;
  color: var(--ink);
}
@media (max-width: 980px) {
  .tool-grid {
    grid-template-columns: 1fr;
  }
}
