/* Home page only. Needs tokens.css + base.css. */

.section { padding-block: var(--section-y); }
.section-head {
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  max-width: 760px; margin: 0 auto 36px; text-align: center;
}
.section-head p { font-size: 18px; color: var(--text-body); }

/* Hero */
.hero { padding-block: clamp(40px, 7vw, 90px) clamp(40px, 6vw, 64px); }
.hero__in { display: flex; flex-direction: column; align-items: center; gap: 48px; text-align: center; }
.hero__copy { display: flex; flex-direction: column; align-items: center; gap: 22px; max-width: 860px; }
.hero__copy .lead { max-width: 620px; }
.hero__phone {
  width: 316px; height: auto; max-width: 82vw;
  border-radius: 46px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .18);
}

/* Calculator */
.calc { background: var(--ink); color: var(--white); }
.calc .section-head { margin-bottom: 36px; }
.calc__grid { display: flex; flex-wrap: wrap; gap: 24px; align-items: stretch; }
.calc__inputs { flex: 1 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 22px; border: 0; padding: 0; }

.seg {
  align-self: center; display: inline-flex; gap: 2px; padding: 4px;
  border: 0; border-radius: var(--r-block); background: #2A2A2A;
}
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg label {
  display: inline-flex; align-items: center; min-height: var(--tap); padding: 0 18px;
  border-radius: 12px; font: 600 15px var(--font); color: var(--text-on-dark); cursor: pointer;
}
.seg input:checked + label { background: var(--white); color: var(--ink); }
.seg input:focus-visible + label { outline: 3px solid var(--white); outline-offset: 2px; }
@media (max-width: 380px) { .seg label { padding: 0 12px; } }

.slider[hidden] { display: none; }
.slider { display: flex; flex-direction: column; gap: 4px; }
.slider__top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.slider label { font: 500 16px var(--font); color: var(--text-on-dark); }
.slider output { font: 800 22px var(--font); font-variant-numeric: tabular-nums; white-space: nowrap; }

.range {
  --fill: 50%;
  -webkit-appearance: none; appearance: none;
  width: 100%; height: var(--tap); margin: 0;
  background: transparent; cursor: pointer;
}
.range:focus-visible { outline: 3px solid var(--white); outline-offset: 2px; }
.range::-webkit-slider-runnable-track {
  height: 6px; border-radius: 3px;
  background: linear-gradient(to right, var(--red) var(--fill), #3A3A3A var(--fill));
}
.range::-moz-range-track { height: 6px; border-radius: 3px; background: #3A3A3A; }
.range::-moz-range-progress { height: 6px; border-radius: 3px; background: var(--red); }
.range::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 28px; height: 28px; margin-top: -11px; border-radius: 50%;
  background: var(--red); border: 3px solid var(--white);
}
.range::-moz-range-thumb {
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--red); border: 3px solid var(--white);
}

.result {
  flex: 1 1 380px; min-width: 0;
  display: flex; flex-direction: column; gap: 18px;
  background: var(--white); color: var(--ink);
  border-radius: var(--r-card-lg); padding: clamp(24px, 4vw, 32px);
  --focus: var(--ink);
}
.result__label { font: 500 16px var(--font); color: var(--text-secondary); }
.result__big {
  font: 800 clamp(44px, 5vw, 64px)/1.05 var(--font); letter-spacing: -.04em;
  color: var(--red); font-variant-numeric: tabular-nums;
}
.result dl { border-top: 1px solid var(--line-soft); }
.result dl div {
  display: flex; justify-content: space-between; gap: 12px;
  padding: 14px 0; border-bottom: 1px solid var(--line-soft);
  font: 500 17px var(--font);
}
.result dl div:last-child { border-bottom: 0; font: 700 19px var(--font); }
.result dd { font-weight: 800; font-variant-numeric: tabular-nums; text-align: right; white-space: nowrap; }
.result .good { color: var(--success-text); }
.result .btn { margin-top: auto; }

/* Features */
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 16px; padding: 0; list-style: none; }
.feature {
  display: flex; flex-direction: column; align-items: center; gap: 14px;
  padding: 32px 24px; border-radius: var(--r-card); background: var(--surface-warm); text-align: center;
}
.feature__icon {
  width: 52px; height: 52px; border-radius: var(--r-block);
  display: flex; align-items: center; justify-content: center;
  background: var(--ink); color: var(--white);
}
.feature__icon .i { font-size: 28px; }
.feature__icon--red { background: var(--red); }
.feature h3 { font-size: 21px; letter-spacing: -.01em; }
.feature p { font-size: 16px; color: var(--text-body); max-width: 320px; }

/* How it works */
.how { background: var(--surface-warm); }
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 16px; padding: 0; list-style: none; }
.step {
  display: flex; flex-direction: column; align-items: center; gap: 14px;
  padding: 30px 28px; border-radius: var(--r-card); background: var(--white); text-align: center;
}
.step__n {
  width: 48px; height: 48px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--ink); color: var(--white); font: 800 20px var(--font);
}
.step h3 { font-size: 22px; letter-spacing: -.01em; }
.step p { font-size: 16px; color: var(--text-body); }

/* Pricing */
.plans {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
  gap: 16px; max-width: 860px; margin: 0 auto;
}
.plan {
  display: flex; flex-direction: column; gap: 18px;
  padding: clamp(24px, 4vw, 32px); border-radius: var(--r-card-lg);
  border: 1.5px solid var(--line);
}
.plan--pro { background: var(--ink); color: var(--white); border-color: var(--ink); --focus: var(--white); }
.plan__name { display: flex; align-items: center; justify-content: space-between; gap: 12px; font: 700 20px var(--font); }
.plan__badge {
  display: inline-flex; align-items: center; height: 28px; padding: 0 12px;
  border-radius: var(--r-pill); background: var(--red-pressed); color: var(--white);
  font: 700 14px var(--font);
}
.plan__price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px; }
.plan__price strong { font: 800 52px/1 var(--font); letter-spacing: -.03em; }
.plan__price span { font: 500 17px var(--font); color: var(--text-secondary); }
.plan--pro .plan__price span { color: var(--text-on-dark); }
.plan__note { font-size: 15px; color: var(--text-on-dark); margin-top: -8px; }
.plan ul { display: flex; flex-direction: column; gap: 12px; padding: 0; list-style: none; font: 500 16px var(--font); }
.plan li { display: flex; gap: 10px; align-items: flex-start; }
.plan li .i { font-size: 22px; color: var(--success); }
.plan li.off { color: var(--text-secondary); }
.plan li.off .i { color: var(--text-secondary); }
.plan .btn { margin-top: auto; }

/* CTA band */
.band { padding-bottom: var(--section-y); }
.band__in {
  display: flex; flex-direction: column; align-items: center; gap: 28px;
  padding: clamp(36px, 6vw, 72px) clamp(20px, 6vw, 72px);
  border-radius: var(--r-card-lg); background: var(--red); color: var(--white); text-align: center;
}
.band__copy { display: flex; flex-direction: column; align-items: center; gap: 12px; max-width: 680px; }
.band h2 { font-size: clamp(30px, 4vw, 48px); line-height: 1.05; letter-spacing: -.035em; }
/* 19px bold: large text, so white on red passes AA. */
.band p { font: 700 19px/1.45 var(--font); }
.band__actions { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 12px; }
.badges { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.badges a { display: inline-flex; border-radius: 10px; }
.badges img { height: 52px; width: auto; }
