:root {
  --blue: #2f67e8;
  --blue-dark: #1f4fbf;
  --ink: #172033;
  --muted: #6a7488;
  --line: #e1e6ef;
  --soft: #f4f7fb;
  --green: #0e9872;
  --orange: #ff8a3d;
  --white: #fff;
  --shadow: 0 24px 70px rgba(36, 56, 99, .12);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: #fff; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif; -webkit-font-smoothing: antialiased; }
button, input, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
[hidden] { display: none !important; }
.calc-container { width: min(1160px, calc(100% - 40px)); margin: 0 auto; }

.calc-nav { position: sticky; top: 0; z-index: 20; border-bottom: 1px solid rgba(225,230,239,.85); background: rgba(255,255,255,.94); backdrop-filter: blur(14px); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.calc-brand { display: flex; align-items: center; gap: 12px; font-weight: 800; }
.calc-brand img { width: 42px; height: 42px; object-fit: contain; }
.calc-brand small { display: block; margin-top: 2px; color: var(--muted); font-size: 11px; font-weight: 500; }
.calc-nav nav { display: flex; align-items: center; gap: 28px; color: #4e596d; font-size: 14px; font-weight: 650; }
.nav-login { padding: 10px 16px; border-radius: 9px; background: var(--blue); color: #fff; }

.calc-hero { overflow: hidden; padding: 72px 0 124px; background: radial-gradient(circle at 78% 30%, rgba(93,143,255,.3), transparent 28%), linear-gradient(125deg, #102452 0%, #193b82 58%, #245dd2 100%); color: #fff; }
.hero-grid { display: grid; grid-template-columns: 1.35fr .65fr; align-items: center; gap: 70px; }
.eyebrow { display: inline-block; color: #80aaff; font-size: 12px; font-weight: 800; letter-spacing: .12em; }
.calc-hero h1 { max-width: 720px; margin: 15px 0 16px; color: #fff; font-size: clamp(38px, 5.8vw, 66px); line-height: 1.07; letter-spacing: -.055em; }
.hero-copy { max-width: 660px; margin: 0; color: rgba(255,255,255,.78); font-size: 18px; line-height: 1.8; }
.trust-list { display: flex; flex-wrap: wrap; gap: 22px; margin-top: 27px; color: rgba(255,255,255,.88); font-size: 14px; }
.trust-list i { margin-right: 6px; color: #70e0bd; }
.price-reference { padding: 30px; border: 1px solid rgba(255,255,255,.2); border-radius: 22px; background: rgba(255,255,255,.1); box-shadow: inset 0 1px rgba(255,255,255,.13); backdrop-filter: blur(12px); }
.price-reference p { margin: 0 0 10px; color: rgba(255,255,255,.72); }
.price-reference strong { display: block; font-size: 64px; line-height: 1; letter-spacing: -.06em; }
.price-reference strong small { margin-left: 8px; font-size: 14px; font-weight: 600; letter-spacing: 0; }
.price-reference > span { display: block; margin-top: 18px; color: rgba(255,255,255,.76); font-size: 13px; line-height: 1.6; }

.calculator-section { position: relative; z-index: 2; margin-top: -72px; padding-bottom: 92px; }
.calculator-grid { display: grid; grid-template-columns: minmax(0, 1.06fr) minmax(390px, .94fr); gap: 24px; align-items: start; }
.calculator-card, .result-card { border: 1px solid rgba(225,230,239,.9); border-radius: 22px; background: #fff; box-shadow: var(--shadow); }
.calculator-card { padding: 32px; }
.card-heading { display: flex; gap: 15px; align-items: flex-start; margin-bottom: 28px; }
.step-number { display: grid; place-items: center; flex: 0 0 auto; width: 38px; height: 38px; border-radius: 11px; background: #eaf0ff; color: var(--blue); font-weight: 800; }
.card-heading h2 { margin: 0 0 5px; font-size: 24px; }
.card-heading p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.5; }
fieldset { margin: 0 0 24px; padding: 22px; border: 1px solid var(--line); border-radius: 14px; }
legend { padding: 0 9px; color: #3c485e; font-size: 14px; font-weight: 750; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field > span { display: block; margin-bottom: 8px; color: #3c4659; font-size: 13px; font-weight: 700; }
.field em { color: #d33d50; font-style: normal; }
.field input, .field select { width: 100%; height: 47px; padding: 0 13px; border: 1px solid #cfd6e2; border-radius: 10px; outline: 0; background: #fff; color: var(--ink); }
.field input:focus, .field select:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(47,103,232,.11); }
.input-with-unit { position: relative; display: flex; align-items: center; }
.input-with-unit input { padding-right: 52px; }
.input-with-unit i { position: absolute; left: 14px; z-index: 1; color: #7d8798; font-style: normal; }
.input-with-unit i + input { padding-left: 32px; padding-right: 13px; }
.input-with-unit b { position: absolute; right: 13px; color: #8a94a5; font-size: 13px; font-weight: 600; pointer-events: none; }
.calculate-button, .lead-button { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; min-height: 52px; padding: 0 20px; border: 0; border-radius: 11px; cursor: pointer; background: linear-gradient(135deg, var(--blue), #4f83f2); color: #fff; font-weight: 750; box-shadow: 0 10px 24px rgba(47,103,232,.22); transition: transform .16s, filter .16s; }
.calculate-button:hover, .lead-button:hover { transform: translateY(-1px); filter: brightness(1.03); }
.calculate-button:disabled { cursor: wait; opacity: .65; transform: none; }
.data-note, .privacy-note { margin: 13px 0 0; color: #8992a2; font-size: 12px; text-align: center; }
.data-note i, .privacy-note i { margin-right: 5px; color: var(--green); }
.form-error { margin: 0 0 15px; padding: 12px 14px; border-radius: 9px; background: #fff0f2; color: #a52d3c; font-size: 13px; line-height: 1.65; }

.result-card { position: sticky; top: 96px; min-height: 600px; overflow: hidden; padding: 32px; }
.result-placeholder { display: flex; flex-direction: column; justify-content: center; min-height: 535px; text-align: center; }
.result-icon { display: grid; place-items: center; width: 68px; height: 68px; margin: 0 auto 20px; border-radius: 20px; background: #edf3ff; color: var(--blue); font-size: 28px; }
.result-placeholder h2 { margin: 0 0 10px; font-size: 22px; }
.result-placeholder > p { max-width: 370px; margin: 0 auto 28px; color: var(--muted); font-size: 14px; line-height: 1.7; }
.result-placeholder ul { margin: 0; padding: 0; border: 1px solid var(--line); border-radius: 13px; list-style: none; text-align: left; }
.result-placeholder li { display: flex; justify-content: space-between; padding: 14px 16px; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 13px; }
.result-placeholder li:last-child { border-bottom: 0; }
.result-kicker { margin: 0 0 10px; color: var(--green); font-size: 12px; font-weight: 800; letter-spacing: .12em; }
#saving-positive, .saving-negative { padding: 25px; border-radius: 16px; background: linear-gradient(135deg, #f1f6ff, #e9f1ff); }
#saving-positive > span, .saving-negative > span { display: block; color: #60728f; font-size: 13px; }
#saving-positive strong, .saving-negative strong { display: block; margin: 5px 0 6px; color: var(--blue); font-size: clamp(38px, 5vw, 58px); line-height: 1.05; letter-spacing: -.055em; }
#saving-positive small, .saving-negative small { color: var(--green); font-weight: 800; }
.saving-negative { background: #fff7ee; }
.saving-negative > span, .saving-negative small { color: #94633d; }
.saving-negative strong { color: #d66c22; }
.comparison-table { margin: 22px 0; overflow: hidden; border: 1px solid var(--line); border-radius: 13px; font-size: 13px; }
.comparison-table > div { display: grid; grid-template-columns: 1.1fr 1fr 1fr; border-bottom: 1px solid var(--line); }
.comparison-table > div:last-child { border-bottom: 0; }
.comparison-table b, .comparison-table span { padding: 11px 12px; }
.comparison-table b { color: #596478; font-weight: 650; }
.comparison-table span { border-left: 1px solid var(--line); }
.comparison-head { background: var(--soft); color: #697386; font-weight: 750; }
.comparison-table .highlight { color: var(--blue-dark); font-weight: 750; }
.plan-box { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 14px 15px; border-radius: 11px; background: #f5f7fb; }
.plan-box > div span { display: block; margin-bottom: 3px; color: var(--muted); font-size: 11px; }
.plan-box > div strong { font-size: 14px; }
.saving-rate { flex: 0 0 auto; padding: 7px 10px; border-radius: 999px; background: #dff5ed; color: var(--green); font-size: 12px; font-weight: 750; }
.pricing-note { margin: 13px 0 18px; color: var(--muted); font-size: 12px; line-height: 1.65; }
.result-disclaimer { margin: 13px 0 0; color: #959dad; font-size: 11px; line-height: 1.6; text-align: center; }
.promo-planner-link { display: block; margin-top: 10px; padding: 11px 13px; border: 1px solid #d8e5df; border-radius: 9px; background: #f1faf7; color: #21775f; font-size: 11px; font-weight: 750; line-height: 1.5; text-align: center; text-decoration: none; }
.promo-planner-link:hover { border-color: #a9d1c4; color: #175d4b; }

.pricing-section { padding: 82px 0; background: var(--soft); }
.section-heading { margin-bottom: 32px; text-align: center; }
.section-heading h2 { margin: 10px 0 8px; font-size: 34px; letter-spacing: -.035em; }
.section-heading p { margin: 0; color: var(--muted); }
.tier-grid { display: grid; grid-template-columns: repeat(8, 1fr); gap: 10px; }
.tier-grid article { padding: 20px 12px; border: 1px solid var(--line); border-radius: 14px; background: #fff; text-align: center; }
.tier-grid article > span, .tier-grid article > small, .tier-grid article > strong { display: block; }
.tier-grid article > span { font-weight: 750; }
.tier-grid article > small { margin: 4px 0 15px; color: var(--muted); font-size: 11px; }
.tier-grid article > strong { color: var(--blue); font-size: 20px; }
.tier-grid .featured { border-color: #b9cafa; background: #eff4ff; }
.tier-grid .activity-tier { border-color: #f0a1a7; background: #fff4f4; }
.tier-grid .activity-tier strong { color: #c7192d; }
.tier-grid .activity-tier a { display: block; margin-top: 9px; color: #c7192d; font-size: 10px; font-weight: 700; line-height: 1.35; text-decoration: none; }

dialog { width: min(620px, calc(100% - 30px)); max-height: calc(100vh - 40px); padding: 0; border: 0; border-radius: 20px; box-shadow: 0 34px 100px rgba(19,35,72,.32); }
dialog::backdrop { background: rgba(14,24,46,.58); backdrop-filter: blur(3px); }
.dialog-heading { display: flex; justify-content: space-between; gap: 20px; padding: 26px 28px 18px; border-bottom: 1px solid var(--line); }
.dialog-heading h2 { margin: 7px 0 5px; }
.dialog-heading p { margin: 0; color: var(--muted); font-size: 13px; }
.dialog-heading button { display: grid; place-items: center; flex: 0 0 auto; width: 36px; height: 36px; border: 1px solid var(--line); border-radius: 50%; cursor: pointer; background: #fff; color: #6e7889; font-size: 22px; }
#lead-form { padding: 25px 28px 30px; }
.consent { display: flex; align-items: flex-start; gap: 9px; margin: 20px 0; color: #596478; font-size: 13px; line-height: 1.5; }
.consent input { flex: 0 0 auto; width: 17px; height: 17px; margin-top: 1px; accent-color: var(--blue); }
.success-toast { position: fixed; right: 24px; bottom: 24px; z-index: 50; max-width: min(420px, calc(100% - 40px)); padding: 16px 19px; border-radius: 11px; background: #152239; color: #fff; box-shadow: var(--shadow); line-height: 1.6; }
footer { padding: 27px 0; background: #172033; color: #a8b1c1; font-size: 12px; }
footer .calc-container { display: flex; justify-content: space-between; gap: 20px; }
footer a { color: #fff; }

@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; gap: 32px; }
  .price-reference { width: min(500px, 100%); }
  .calculator-grid { grid-template-columns: 1fr; }
  .result-card { position: static; min-height: 0; }
  .result-placeholder { min-height: 430px; }
  .tier-grid { grid-template-columns: repeat(4, 1fr); }
}

@media (max-width: 640px) {
  .calc-container { width: min(100% - 28px, 1160px); }
  .nav-inner { height: 64px; }
  .calc-brand img { width: 36px; height: 36px; }
  .calc-brand small { display: none; }
  .calc-nav nav > a:not(.nav-login) { display: none; }
  .nav-login { padding: 9px 12px; }
  .calc-hero { padding: 52px 0 105px; }
  .calc-hero h1 { font-size: 40px; }
  .hero-copy { font-size: 16px; }
  .trust-list { gap: 12px; }
  .price-reference strong { font-size: 52px; }
  .calculator-section { margin-top: -58px; padding-bottom: 65px; }
  .calculator-card, .result-card { padding: 21px 17px; border-radius: 17px; }
  fieldset { padding: 17px 14px; }
  .form-grid { grid-template-columns: 1fr; gap: 15px; }
  .result-placeholder { min-height: 390px; }
  .comparison-table { font-size: 11px; }
  .comparison-table b, .comparison-table span { padding: 10px 7px; }
  .tier-grid { grid-template-columns: repeat(2, 1fr); }
  .section-heading h2 { font-size: 28px; }
  .dialog-heading { padding: 22px 19px 16px; }
  #lead-form { padding: 21px 19px 25px; }
  .success-toast { right: 14px; bottom: 14px; }
}
