/* Scope and pricing: a calm, readable project configurator. */
#estimate {
  position: relative;
  overflow: hidden;
  padding-block: clamp(100px, 11vw, 160px);
  background-color: #080a0f;
  background-image: linear-gradient(rgba(8,10,15,.24), rgba(8,10,15,.18)), url('../img/pricing-background.png'), url('../img/pricing-background.png');
  background-position: center, center top, center bottom;
  background-size: 100% 100%, 100% auto, 100% auto;
  background-repeat: no-repeat;
  border-top: 1px solid rgba(255,255,255,.08);
}
#estimate::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 540px;
  background: radial-gradient(ellipse at 50% 0%, rgba(50,79,125,.17), transparent 68%);
  pointer-events: none;
}
#estimate > .canvas { position: relative; max-width: 1500px; }
@supports (background-image: image-set(url('test.webp') type('image/webp'))) {
  #estimate { background-image: linear-gradient(rgba(8,10,15,.24), rgba(8,10,15,.18)), image-set(url('../img/pricing-background.webp') type('image/webp'), url('../img/pricing-background.png') type('image/png')), image-set(url('../img/pricing-background.webp') type('image/webp'), url('../img/pricing-background.png') type('image/png')); }
}
#estimate .section-label-apple { display: flex; align-items: center; justify-content: center; gap: 12px; margin: 0 0 24px; color: #e7bd80; font-family: var(--font-mono); font-size: 10px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; }
#estimate .section-label-apple::before { content: ""; width: 32px; height: 1px; background: currentColor; }
#estimate .section-title-apple { max-width: 850px; margin: 0 auto; text-align: center; font-family: var(--font-display); font-size: clamp(2.8rem, 5.5vw, 5.3rem); font-weight: 700; line-height: 1.04; letter-spacing: -.045em; }
#estimate .estimate-intro { max-width: 62ch; margin: 24px auto 0; color: #c6c7ce; text-align: center; line-height: 1.6; }
#estimate .apple-checkout-panel { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(290px, .7fr); align-items: start; gap: clamp(28px, 4vw, 64px); margin-top: clamp(55px, 7vw, 96px); padding: clamp(28px, 4vw, 56px); border: 1px solid rgba(255,255,255,.1); border-radius: 24px; background: #111216; box-shadow: 0 28px 90px rgba(0,0,0,.22); }
#estimate .estimate-group { min-width: 0; padding: 0; margin: 0 0 40px; border: 0; }
#estimate .estimate-group:last-child { margin-bottom: 0; }
#estimate .calc-group-title { width: 100%; padding: 0; margin: 0; color: #f5f5f7; font-size: clamp(18px, 1.7vw, 22px); font-weight: 650; line-height: 1.3; letter-spacing: -.025em; }
#estimate .estimate-step { display: inline-grid; place-items: center; width: 34px; height: 34px; margin-right: 10px; border: 1px solid rgba(231,189,128,.25); border-radius: 50%; color: #e7bd80; font-family: var(--font-mono); font-size: 10px; letter-spacing: .05em; vertical-align: middle; }
#estimate .estimate-group-hint { margin: 10px 0 16px; color: #b7b8bf; font-size: 14px; line-height: 1.5; }
#estimate .apple-radio-cluster { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 0; }
#estimate .apple-radio-cluster.estimate-plans { grid-template-columns: 1fr; }
#estimate .apple-segmented-option { min-width: 0; }
#estimate .apple-segmented-label { display: flex; align-items: flex-start; width: 100%; min-height: 100%; padding: 20px; border: 1px solid rgba(255,255,255,.1); border-radius: 16px; background: #191b20; color: #e1e4ec; font-size: 14px; line-height: 1.4; transition: border-color 200ms ease, background-color 200ms ease, color 200ms ease; }
#estimate .estimate-option-copy { flex: 1; min-width: 0; }
#estimate .estimate-option-heading { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 14px; color: #f5f5f7; }
#estimate .estimate-option-heading strong { font-size: 15px; font-weight: 650; }
#estimate .estimate-option-heading > span { color: #c3ddff; font-variant-numeric: tabular-nums; font-weight: 600; white-space: nowrap; }
#estimate .apple-segmented-label small { display: block; margin-top: 5px; color: #c1c5ce; font-size: 13px; line-height: 1.45; font-weight: 400; }
#estimate .estimate-disclaimer { margin: 12px 0 0; color: #c1c5ce; font-size: 13px; line-height: 1.5; }
#estimate .apple-segmented-label::before { content: ""; flex: 0 0 19px; width: 19px; height: 19px; margin-right: 14px; border: 1px solid #777b85; border-radius: 50%; transition: border-color 200ms ease, box-shadow 200ms ease; }
#estimate input[type="checkbox"] + .apple-segmented-label::before { border-radius: 6px; }
#estimate .apple-segmented-label:hover { border-color: rgba(255,255,255,.35); color: #fff; transform: none; }
#estimate .apple-segmented-input:checked + .apple-segmented-label { border-color: #79adf3; background: #172234; color: #fff; box-shadow: inset 0 0 0 1px rgba(121,173,243,.25); }
#estimate .apple-segmented-input:checked + .apple-segmented-label::before { border-color: #a7ceff; box-shadow: inset 0 0 0 4px #172234; background: #a7ceff; }
#estimate .apple-segmented-input:focus-visible + .apple-segmented-label { outline: 2px solid #a7ceff; outline-offset: 3px; }
#estimate .apple-receipt-box { position: sticky; top: 100px; gap: 32px; padding: clamp(26px, 3vw, 40px); border: 1px solid rgba(167,206,255,.18); border-radius: 20px; background: radial-gradient(circle at 100% 0%, rgba(48,83,130,.3), transparent 50%), #0d1119; }
#estimate .receipt-title { color: #b9c6d9; font-size: 10px; letter-spacing: .1em; }
#estimate .receipt-amount { margin-top: 16px; color: #f5f5f7; font-size: clamp(3rem, 4vw, 4.3rem); letter-spacing: -.06em; }
#estimate .receipt-items { gap: 14px; padding-block: 24px; border-color: rgba(255,255,255,.1); color: #c3c9d2; line-height: 1.5; }
#estimate .readout-line-item { gap: 16px; }
#estimate .readout-line-item span:last-child { white-space: nowrap; }
#estimate .apple-receipt-box .apple-btn-primary, #estimate .apple-receipt-box .apple-btn-secondary { min-height: 50px; border-radius: 12px; }
@media (max-width: 900px) {
  #estimate .apple-checkout-panel { grid-template-columns: 1fr; }
  #estimate .apple-receipt-box { position: static; }
}
@media (max-width: 600px) {
  #estimate .section-title-apple { font-size: clamp(2.5rem, 10vw, 4rem); }
  #estimate .apple-checkout-panel { gap: 32px; padding: 24px; border-radius: 20px; }
  #estimate .apple-radio-cluster { grid-template-columns: 1fr; }
  #estimate .apple-receipt-box { padding: 24px; }
}
@media (prefers-reduced-motion: reduce) {
  #estimate .apple-segmented-label, #estimate .apple-segmented-label::before { transition: none; }
}
