:root{--ink:#101c2c;--muted:#6c7580;--teal:#0d7b75;--mint:#dff5ee;--cream:#f5f1e9;--line:#dfe4e5;--coral:#ef785f}
*{box-sizing:border-box}
body{color:var(--ink);background:#f8f8f6;margin:0;font-family:PingFang SC,Microsoft YaHei,Arial,sans-serif}
button,input{font:inherit}
main{background:radial-gradient(circle at 85% 8%,#dcefeb 0,#0000 25%),#f8f8f6;min-height:100vh}
.topbar{-webkit-backdrop-filter:blur(14px);backdrop-filter:blur(14px);background:#ffffffc7;border-bottom:1px solid #101c2c1a;justify-content:space-between;align-items:center;height:68px;padding:0 clamp(22px,5vw,76px);display:flex}
.brand{align-items:center;gap:12px;display:flex}
.brand span{background:var(--ink);color:#fff;letter-spacing:.08em;border-radius:13px;place-items:center;width:40px;height:40px;font-size:12px;font-weight:800;display:grid}
.brand b{letter-spacing:.05em;font-size:16px}
.internal-badge{color:var(--teal);background:#e7f5f1;border:1px solid #cae7df;border-radius:999px;padding:8px 13px;font-size:12px;font-weight:700}
.hero{justify-content:space-between;align-items:end;gap:32px;max-width:1240px;margin:auto;padding:56px 30px 32px;display:flex}
.eyebrow{color:var(--teal);letter-spacing:.16em;margin:0 0 12px;font-size:11px;font-weight:800}
h1{letter-spacing:-.055em;margin:0;font-size:clamp(36px,5vw,64px);line-height:1.06}
h1 em{color:var(--teal);font-style:normal}
.hero-copy{color:var(--muted);margin:18px 0 0;font-size:16px}
.rule-chip{background:var(--ink);color:#fff;border-radius:24px;flex-direction:column;flex:none;justify-content:space-between;width:130px;height:100px;padding:18px;display:flex;transform:rotate(2deg);box-shadow:0 18px 40px #101c2c2e}
.rule-chip span{color:#c9d0d8;font-size:12px}
.rule-chip strong{font-size:22px}
.workspace{grid-template-columns:minmax(320px,.85fr) minmax(430px,1.15fr);align-items:start;gap:22px;max-width:1240px;margin:auto;padding:12px 30px 70px;display:grid}
.card{border:1px solid var(--line);background:#ffffffe8;border-radius:26px;box-shadow:0 14px 45px #1827360f}
.input-card{padding:28px}
.section-heading{align-items:center;gap:14px;margin-bottom:28px;display:flex}
.step{color:#fff;background:var(--teal);border-radius:14px;place-items:center;width:44px;height:44px;font-size:12px;font-weight:800;display:grid}
.section-heading h2{margin:0;font-size:20px}
.section-heading p{color:var(--muted);margin:3px 0 0;font-size:12px}
.field{display:block}
.field>span{margin-bottom:9px;font-size:13px;font-weight:700;display:block}
.input-wrap{background:#fff;border:1.5px solid #b9c4c3;border-radius:16px;align-items:center;height:62px;display:flex;overflow:hidden}
.input-wrap:focus-within{border-color:var(--teal);box-shadow:0 0 0 4px #0d7b751a}
.input-wrap input{min-width:0;height:100%;color:var(--ink);background:0 0;border:0;outline:0;flex:1;padding:0 18px;font-size:24px;font-weight:750}
.input-wrap b{color:var(--muted);padding-right:18px;font-size:13px}
.coupon-box{border:1px solid var(--line);background:#fbfcfb;border-radius:18px;margin-top:18px;padding:17px}
.coupon-title{align-items:center;gap:8px;font-size:13px;font-weight:750;display:flex}
.dot{background:var(--teal);border-radius:50%;flex:none;width:8px;height:8px}
.delivery .dot{background:var(--coral)}
.coupon-title small{color:var(--muted);margin-left:auto;font-size:10px;font-weight:500}
.coupon-tip{color:var(--muted);margin:8px 0 13px;font-size:11px;line-height:1.6}
.coupon-list{gap:9px;display:grid}
.coupon-row{border:1px solid var(--line);background:#fff;border-radius:13px;padding:10px}
.coupon-row-head{grid-template-columns:40px minmax(100px,1fr) 120px 34px;align-items:center;gap:7px;display:grid}
.coupon-index{color:var(--muted);font-size:10px;font-weight:750}
.coupon-name,.coupon-row select{border:1px solid var(--line);min-width:0;height:34px;color:var(--ink);background:#fff;border-radius:9px;outline:0;padding:0 8px;font-size:10px}
.coupon-name:focus,.coupon-row select:focus{border-color:var(--teal);box-shadow:0 0 0 2px #0d7b7514}
.coupon-amounts{grid-template-columns:1fr 1fr;gap:8px;margin-top:8px;display:grid}
.coupon-amounts label{border:1px solid var(--line);background:#fbfcfb;border-radius:10px;align-items:center;min-width:0;height:40px;transition:all .2s;display:flex;overflow:hidden}
.coupon-amounts label:focus-within{border-color:var(--teal);box-shadow:0 0 0 3px #0d7b751a}
.coupon-amounts label span{color:var(--teal);padding-left:10px;font-size:13px;font-weight:800}
.coupon-amounts input{width:100%;min-width:0;height:100%;color:var(--ink);background:0 0;border:0;outline:0;padding:0 6px;font-size:16px;font-weight:800}
.coupon-amounts label b{color:var(--muted);flex:none;padding-right:9px;font-size:10px;font-weight:600}
.remove-coupon{color:#9a6258;cursor:pointer;background:0 0;border:0;height:34px;padding:0;font-size:10px}
.remove-coupon:hover{color:#c14e3b}
.coupon-empty{border:1px dashed var(--line);color:var(--muted);text-align:center;background:#fff;border-radius:12px;padding:18px;font-size:11px}
.add-coupon{width:100%;color:var(--teal);cursor:pointer;background:#f4fbf9;border:1px dashed #91c9c3;border-radius:11px;margin-top:10px;padding:10px;font-size:11px;font-weight:750}
.add-coupon:hover{background:var(--mint)}
.coupon-presets{flex-wrap:wrap;align-items:center;gap:7px;margin-top:11px;display:flex}
.coupon-presets>span{width:100%;color:var(--muted);margin-right:2px;font-size:10px}
.coupon-presets button{border:1px solid var(--line);color:#667079;cursor:pointer;background:#fff;border-radius:8px;padding:6px 9px;font-size:10px;font-weight:700}
.coupon-presets button.active{color:#fff;border-color:var(--teal);background:var(--teal)}
.hint{color:#8b929a;text-align:center;margin:18px 0 0;font-size:11px}
.result-column{gap:14px;display:grid}
.recommendation{color:#fff;background:linear-gradient(130deg,var(--teal),#075e64);border-radius:24px;padding:22px 25px;box-shadow:0 16px 36px #0d7b7533}
.recommendation p{color:#cde9e3;margin:0 0 7px;font-size:12px;font-weight:700}
.recommendation div{justify-content:space-between;align-items:end;gap:20px;display:flex}
.recommendation strong{letter-spacing:-.04em;font-size:30px}
.recommendation span{font-size:13px;font-weight:700}
.service-card{padding:24px 25px}
.service-card.winner{border-color:#9dd4c8;box-shadow:0 14px 45px #0d7b7517}
.service-head{justify-content:space-between;align-items:start;display:flex}
.service-kicker{color:var(--muted);font-size:11px}
.service-head h3{margin:2px 0 0;font-size:20px}
.best{color:#075f5a;background:var(--mint);border-radius:999px;padding:6px 10px;font-size:11px}
.price-row{justify-content:space-between;align-items:end;margin:20px 0 18px;display:flex}
.price-row small{color:var(--muted);margin-bottom:3px;display:block}
.price-row strong{letter-spacing:-.05em;font-size:36px}
.price-row s{color:#9aa0a6;font-size:13px}
.formula{background:var(--cream);border-radius:13px;justify-content:space-between;align-items:center;gap:18px;min-height:44px;padding:12px 14px;font-size:12px;display:flex}
.formula span{color:var(--muted)}
.formula b{text-align:right}
.disclaimer{color:#838b94;text-align:center;margin:3px 6px 0;font-size:11px;line-height:1.7}
.primary-grid,.route-grid,.advanced-grid{grid-template-columns:1fr 1fr;gap:12px;margin-top:15px;display:grid}
.primary-grid{margin-top:0}
.primary-grid .field{min-width:0}
.text-field{position:relative}
.text-field>span{margin-bottom:8px;font-size:12px;font-weight:700;display:block}
.route-input{position:relative}
.text-field input{border:1px solid var(--line);background:#fff;border-radius:12px;outline:0;width:100%;height:46px;padding:0 66px 0 13px;font-size:12px}
.text-field input:placeholder-shown{padding-right:13px}
.text-field input:focus{border-color:var(--teal);box-shadow:0 0 0 3px #0d7b7514}
.clear-location{color:#5f6c74;cursor:pointer;background:#edf1f0;border:0;border-radius:999px;align-items:center;gap:3px;height:28px;padding:0 9px;font-size:10px;font-weight:750;line-height:1;display:flex;position:absolute;top:50%;right:8px;transform:translateY(-50%)}
.clear-location i{font-size:16px;font-style:normal;font-weight:400}
.clear-location:hover{color:#fff;background:var(--teal)}
.location-suggestions{z-index:5;background:#fff;border:1px solid #c7ded8;border-radius:12px;display:grid;position:absolute;top:72px;left:0;right:0;overflow:hidden;box-shadow:0 15px 28px #101c2c26}
.location-suggestions button{min-width:0;color:var(--ink);text-align:left;cursor:pointer;background:#fff;border:0;border-bottom:1px solid #edf0ef;flex-direction:column;gap:3px;padding:10px 12px;display:flex}
.location-suggestions button:last-child{border-bottom:0}
.location-suggestions button:hover{background:#f1faf7}
.location-suggestions b{text-overflow:ellipsis;white-space:nowrap;font-size:11px;overflow:hidden}
.location-suggestions small{color:var(--muted);text-overflow:ellipsis;white-space:nowrap;font-size:10px;overflow:hidden}
.route-estimate{background:#f2faf7;border:1px solid #c8e3dc;border-radius:14px;align-items:center;gap:10px;min-height:62px;margin-top:12px;padding:11px 13px;display:flex}
.route-estimate.loading{background:#f1f8fc;border-color:#c9dde9}
.route-estimate.error{background:#fbf7f1;border-color:#eadfd2}
.route-estimate-icon{width:30px;height:30px;color:var(--teal);background:#dff5ee;border-radius:10px;flex:none;place-items:center;font-size:20px;font-weight:800;display:grid}
.route-estimate.error .route-estimate-icon{color:#9a6a3f;background:#f4e9dc}
.route-estimate div{flex-direction:column;gap:3px;min-width:0;display:flex}
.route-estimate b{font-size:12px}
.route-estimate small{color:var(--muted);font-size:10px;line-height:1.45}
.advanced{border:1px solid var(--line);background:#fbfcfb;border-radius:18px;margin-top:18px;overflow:hidden}
.advanced summary,.rate-details summary{cursor:pointer;list-style:none}
.advanced summary::-webkit-details-marker{display:none}
.rate-details summary::-webkit-details-marker{display:none}
.advanced>summary{justify-content:space-between;align-items:center;padding:15px 17px;display:flex}
.advanced>summary span{flex-direction:column;gap:2px;display:flex}
.advanced>summary b{font-size:13px}
.advanced>summary small{color:var(--muted);font-size:10px}
.advanced>summary i{color:var(--teal);font-size:22px;font-style:normal;transition:all .2s}
.advanced[open]>summary i{transform:rotate(45deg)}
.advanced-body{border-top:1px solid var(--line);padding:0 16px 17px}
.advanced-grid{margin-top:16px}
.advanced-grid .input-wrap{border-radius:12px;height:47px}
.advanced-grid .input-wrap input{padding:0 12px;font-size:15px}
.advanced-grid .input-wrap b{padding-right:12px;font-size:11px}
.advanced-grid .field>span{font-size:11px}
.toggles{border-top:1px dashed #d8dddd;margin-top:15px}
.toggle-row{cursor:pointer;border-bottom:1px dashed #d8dddd;justify-content:space-between;align-items:center;gap:18px;min-height:58px;display:flex;position:relative}
.toggle-row>span{flex-direction:column;gap:3px;display:flex}
.toggle-row b{font-size:12px}
.toggle-row small{color:var(--muted);font-size:9px}
.toggle-row input{opacity:0;position:absolute}
.toggle-row i{background:#cfd5d4;border-radius:99px;flex:none;width:38px;height:22px;transition:all .2s;position:relative}
.toggle-row i:after{content:"";background:#fff;border-radius:50%;width:16px;height:16px;transition:all .2s;position:absolute;top:3px;left:3px;box-shadow:0 1px 4px #0000002e}
.toggle-row input:checked+i{background:var(--teal)}
.toggle-row input:checked+i:after{transform:translate(16px)}
.rate-details{margin-top:15px;padding:0 4px}
.rate-details summary{color:var(--teal);text-align:center;padding:8px 0;font-size:11px;font-weight:700}
.rate-details div{background:var(--cream);border-radius:14px;margin-top:5px;padding:14px}
.rate-details p{color:#59636e;margin:0 0 8px;font-size:10px;line-height:1.65}
.rate-details p:last-child{margin-bottom:0}
.recommendation>small{color:#d6eee9;max-width:520px;margin-top:12px;font-size:11px;line-height:1.6;display:block}
.subtotal{color:#929aa2;font-size:11px}
.breakdown{border-top:1px dashed #d8dddd;padding-top:2px}
.breakdown>div{color:var(--muted);justify-content:space-between;padding:8px 0;font-size:11px;display:flex}
.breakdown b{color:var(--ink)}
.breakdown .coupon-line{background:#fbf7f1;border:1px solid #eadfd2;border-radius:11px;margin-top:4px;padding:11px 12px}
.breakdown .coupon-line b{color:#a56c3b}
.breakdown .coupon-line.applied{background:#edf8f5;border-color:#bee2d8}
.breakdown .coupon-line.applied b{color:var(--teal)}
.sense-row{border-top:1px solid var(--line);justify-content:space-between;align-items:center;gap:12px;padding:13px 0;color:var(--muted);font-size:11px;display:flex}
.sense-row b{color:var(--teal);font-size:16px}
.return-status{color:var(--teal);background:#edf8f5;border-radius:11px;margin:16px 0 0;padding:11px 12px;font-size:11px;line-height:1.6}
.input-hint{color:var(--muted);margin:14px 0 0;font-size:11px;line-height:1.6}
.script-card{background:var(--ink);color:#fff;padding:24px 25px}
.script-head{justify-content:space-between;align-items:center;gap:15px;display:flex}
.script-head span{color:#9fabb8;font-size:10px}
.script-head h3{margin:3px 0 0;font-size:16px}
.script-head button{color:var(--ink);cursor:pointer;background:#fff;border:0;border-radius:10px;padding:9px 14px;font-size:11px;font-weight:800}
.script-head button:hover{background:var(--mint)}
.script-card>p{color:#d8dde2;white-space:pre-line;margin:17px 0 0;font-size:12px;line-height:1.8}
@media (max-width:820px){.hero{padding-top:38px}
.rule-chip{display:none}
.workspace{grid-template-columns:1fr}
.result-column{order:-1}
.recommendation strong{font-size:27px}
}
@media (max-width:520px){.topbar{height:60px}
.brand b{font-size:14px}
.hero{padding:30px 18px 22px}
.hero-copy{font-size:14px;line-height:1.65}
.workspace{padding:8px 14px 48px}
.input-card,.service-card,.script-card{padding:21px}
.card,.recommendation{border-radius:21px}
.recommendation div{flex-direction:column;align-items:flex-start;gap:4px}
.primary-grid,.route-grid,.advanced-grid{grid-template-columns:1fr}
.formula{flex-direction:column;align-items:flex-start;gap:4px}
.coupon-title{flex-wrap:wrap;align-items:flex-start}
.coupon-title small{width:100%;margin-left:16px}
.coupon-row-head{grid-template-columns:34px 1fr 34px}
.coupon-row select{grid-column:2/3}
.remove-coupon{grid-area:1/3/3/4}
.script-head{align-items:flex-start}
}

/* Mobile task flow: input first, recommendation second, optional details last. */
@media (max-width:820px){
  .hero{align-items:center;padding:24px 20px 16px}
  .hero h1{font-size:clamp(28px,8vw,38px)}
  .workspace{display:flex;flex-direction:column;align-items:stretch;gap:0}
  .input-card,.result-column{display:contents}
  .section-heading{order:1}
  .primary-grid{order:2}
  .route-grid{order:3}
  .route-estimate{order:4}
  .recommendation{order:5}
  .result-column>.service-card{order:6}
  .script-card{order:7}
  .coupon-box{order:8}
  .advanced{order:9}
  .rate-details{order:10}
  .disclaimer{order:11}
  .section-heading,.primary-grid,.route-grid,.route-estimate{background:#fffffff2;border-color:var(--line);border-style:solid}
  .section-heading{border-width:1px 1px 0;border-radius:24px 24px 0 0;margin:0;padding:24px 24px 18px;box-shadow:0 -5px 35px #1827360a}
  .primary-grid{border-width:0 1px;margin:0;padding:0 24px}
  .route-grid{border-width:0 1px;margin:0;padding:16px 24px 0}
  .route-estimate{border-width:0 1px 1px;border-radius:0 0 24px 24px;margin:0;padding:16px 24px 24px;box-shadow:0 18px 40px #1827360d}
  .recommendation,.result-column>.service-card,.coupon-box,.advanced,.rate-details,.script-card{margin-top:14px}
  .disclaimer{margin-top:8px}
  .coupon-box{background:#ffffffe8;border-radius:22px;padding:22px;box-shadow:0 14px 45px #1827360f}
  .rate-details{background:#ffffffe8;border:1px solid var(--line);border-radius:18px;padding:8px 14px}
}

@media (max-width:520px){
  .topbar{height:56px;padding:0 16px}
  .brand{gap:9px}
  .brand span{width:36px;height:36px;border-radius:11px}
  .internal-badge{padding:7px 10px;font-size:11px}
  .hero{padding:16px 16px 10px}
  .hero h1{font-size:24px;letter-spacing:-.035em}
  .eyebrow,.hero-copy{display:none}
  .workspace{gap:0;padding:6px 12px 36px}
  .section-heading{border-radius:20px 20px 0 0;padding:18px 18px 14px}
  .section-heading h2{font-size:19px}
  .section-heading p{font-size:13px}
  .step{width:42px;height:42px;border-radius:13px}
  .primary-grid{gap:14px;padding:0 18px}
  .route-grid{gap:14px;padding:14px 18px 0}
  .route-estimate{border-radius:0 0 20px 20px;min-height:70px;padding:14px 18px 18px}
  .field>span,.text-field>span{font-size:14px}
  .input-wrap{height:58px}
  .text-field input{height:52px;font-size:16px}
  .clear-location{min-width:44px;height:36px;padding:0 10px}
  .route-estimate b{font-size:13px}
  .route-estimate small{font-size:12px}
  .recommendation{padding:19px 20px}
  .recommendation>small{margin-top:9px;font-size:13px;line-height:1.55}
  .recommendation p{font-size:13px}
  .recommendation strong{font-size:27px}
  .recommendation span{font-size:14px}
  .service-card,.script-card{padding:20px}
  .service-kicker,.breakdown>div,.script-card>p{font-size:13px}
  .sense-row{font-size:13px}
  .sense-row b{font-size:18px}
  .return-status,.input-hint{font-size:12px}
  .service-head h3{font-size:21px}
  .price-row{margin:17px 0 15px}
  .price-row strong{font-size:34px}
  .coupon-box{padding:18px}
  .coupon-title{font-size:14px}
  .coupon-title small{font-size:12px;line-height:1.45}
  .coupon-tip{font-size:12px;line-height:1.55}
  .coupon-name,.coupon-row select{height:42px;font-size:12px}
  .coupon-row-head{grid-template-columns:34px minmax(0,1fr) 44px;gap:8px}
  .remove-coupon{height:44px;font-size:12px}
  .coupon-amounts label{height:46px}
  .coupon-presets button,.add-coupon{min-height:44px;font-size:12px}
  .advanced>summary{min-height:58px;padding:15px 17px}
  .advanced>summary b{font-size:14px}
  .advanced>summary small{font-size:12px}
  .rate-details summary{min-height:44px;font-size:13px}
  .script-head button{min-height:44px}
  .disclaimer{font-size:12px;line-height:1.6}
  .recommendation,.result-column>.service-card,.coupon-box,.advanced,.rate-details,.script-card{margin-top:12px}
  .disclaimer{margin-top:7px}
}
