/* Bloc calculateur pour la page d'accueil : version courte du calculateur des tarifs.
   Mêmes couleurs et typographie que le site, qui n'existe qu'en clair. */
:root{
  --canvas:#f7f6f2;--card:#fff;--ink:#1c1b19;--muted:#6b6860;--faint:#9b978d;--line:#e6e3dc;--line-soft:#eeece6;--pill:#eceae4;
  --blue:#2b44c4;--blue-deep:#1439a6;--blue-wash:#edf1f9;
  --dark:#1c1b19;--on-dark:#f7f6f2;--on-dark-muted:#b8b5ad;--on-dark-line:#34322d;--on-dark-track:#2b2925;--accent-dark:#7ca2f6;--accent-dark-hover:#a9c2fa;--comp-dark:#d08a64;
  --radius:16px;--gutter:clamp(16px,4vw,48px)
}
*{box-sizing:border-box}
body{margin:0;background:var(--canvas);color:var(--ink);font:400 16px/1.5 Archivo,"PingFang SC","Hiragino Sans GB","Microsoft YaHei","Noto Sans CJK SC",system-ui,sans-serif;font-variant-numeric:tabular-nums}
button,input{font-family:inherit;color:inherit}
a{color:var(--blue)}
[hidden]{display:none!important}
:focus-visible{outline:2px solid var(--blue);outline-offset:2px}

.draft-bar{background:var(--ink);color:var(--on-dark-muted);font-size:13px;text-align:center;padding-block:10px;padding-left:max(var(--gutter),env(safe-area-inset-left,0px));padding-right:max(var(--gutter),env(safe-area-inset-right,0px))}

.hc{padding-block:clamp(48px,7vw,96px);padding-left:max(var(--gutter),env(safe-area-inset-left,0px));padding-right:max(var(--gutter),env(safe-area-inset-right,0px))}
.hc-shell{max-width:1180px;margin:0 auto}
.hc-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(340px,.95fr);gap:clamp(24px,4vw,56px);align-items:center}
.hc-left{align-self:start}

.hc-top{display:flex;justify-content:space-between;align-items:center;gap:16px;margin-bottom:14px}
.hc-kicker{font-size:12px;font-weight:700;letter-spacing:.13em;text-transform:uppercase;color:var(--blue-deep)}
:lang(zh-CN) .hc-kicker,:lang(zh-CN) .hc-r-kicker,:lang(zh-CN) .hc-why-title{letter-spacing:.04em}
.pr-lang{display:none;gap:2px;padding:3px;background:var(--pill);border-radius:999px}
.pr-lang button{min-width:44px;min-height:34px;padding:4px 12px;border:1px solid transparent;border-radius:999px;background:transparent;color:var(--muted);font-size:13px;font-weight:600;cursor:pointer}
.pr-lang button[aria-pressed=true]{background:var(--card);color:var(--ink);border-color:var(--line)}
.hc h2{margin:0;font-size:clamp(30px,3.4vw,44px);font-weight:500;line-height:1.12;letter-spacing:-.03em;text-wrap:balance}
.hc-lead{margin:14px 0 0;max-width:520px;font-size:17px;line-height:1.55;color:var(--muted)}

/* Saisie : curseur ou trois usages */
.hc-input{margin-top:28px;padding:22px 24px;background:var(--card);border:1px solid var(--line);border-radius:var(--radius)}
.hc-field-head{display:flex;justify-content:space-between;align-items:baseline;gap:12px;font-size:15px;font-weight:500}
.hc-field-head output{font-size:40px;line-height:1;font-weight:500;letter-spacing:-.03em}
.hc-input input[type=range]{margin-top:12px}
.hc-audience{margin:12px 0 0;max-width:520px;font-size:14px;line-height:1.55;color:var(--muted)}
.hc-switch{display:inline;padding:0;border:0;background:none;color:var(--blue);font:inherit;font-weight:500;text-align:left;cursor:pointer;text-decoration:underline;text-underline-offset:3px}
.hc-switch:hover{color:var(--blue-deep)}
.hc-hint{margin:10px 0 0;font-size:13.5px;color:var(--muted)}
/* Step 1, as on the full calculator: a numbered question, use-case pills, then the usage they stand for. */
.hc-step-head{display:flex;align-items:center;gap:12px}
.hc-step-num{flex:none;display:grid;place-items:center;width:30px;height:30px;border-radius:50%;background:var(--blue);color:var(--card);font-size:14px;font-weight:500}
.hc-step-head h3{margin:0;font-size:20px;line-height:1.3;font-weight:600;letter-spacing:-.01em}
.hc-presets{display:flex;flex-wrap:wrap;gap:10px;margin-top:16px}
.hc-presets button{min-height:48px;padding:10px 20px;border:1px solid var(--line);border-radius:999px;background:var(--canvas);font:inherit;font-size:16px;font-weight:500;color:var(--ink);cursor:pointer}
.hc-presets button:hover{border-color:var(--ink)}
.hc-presets button[aria-pressed=true]{border-color:var(--blue);background:var(--blue-wash);color:var(--blue)}
.hc-usage{margin:16px 0 0;padding:16px 20px;border-radius:14px;background:var(--blue-wash);font-size:15.5px;line-height:1.5}
.hc-usage b{font-weight:600}
.hc-detail{margin-top:22px;padding-top:20px;border-top:1px solid var(--line-soft)}
.hc-detail-q{margin:0;font-size:17px;font-weight:500}
.hc-detail-link{display:inline-block;margin-top:4px;font-size:19px;font-weight:500;color:var(--blue);text-decoration:underline;text-underline-offset:4px}
.hc-detail-link:hover{color:var(--blue-deep)}

.hc-compare{display:flex;flex-wrap:wrap;align-items:center;gap:8px 10px;margin-top:18px}
.hc-compare-label{font-size:14px;color:var(--muted)}
.pr-chips{display:flex;flex-wrap:wrap;gap:8px}
.hc-select{min-height:42px;max-width:100%;padding:8px 36px 8px 14px;border:1px solid var(--line);border-radius:999px;background:var(--card) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%231c1b19' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 14px center;-webkit-appearance:none;appearance:none;color:var(--ink);font:inherit;font-size:14px;font-weight:500;cursor:pointer}
.hc-select:hover{border-color:var(--ink)}
.hc-seg{display:inline-flex;gap:4px;padding:4px;background:var(--pill);border-radius:999px;max-width:100%}
.hc-seg button{border:1px solid transparent;background:transparent;color:var(--muted);cursor:pointer;font:inherit;font-size:13.5px;font-weight:500;min-height:36px;padding:6px 12px;border-radius:999px}
.hc-seg button[aria-pressed=true]{background:var(--card);color:var(--ink);border-color:var(--line)}
.hc-unit{display:flex;justify-content:space-between;align-items:baseline;gap:12px;margin-top:14px;font-size:13.5px;color:var(--on-dark-muted)}
.hc-unit[hidden]{display:none}
.hc-unit-vals{display:flex;gap:18px;align-items:baseline}
.hc-unit-vals small{font-size:12.5px;color:var(--on-dark-muted);margin-right:6px}
.hc-unit-vals b{font-weight:500;color:var(--on-dark);font-variant-numeric:tabular-nums}
.hc-unit-vals .is-mesh b{font-weight:700;color:var(--accent-dark)}
.pr-chip{display:inline-flex;align-items:baseline;gap:6px;min-height:40px;padding:8px 14px;border-radius:999px;border:1px solid var(--line);background:var(--card);cursor:pointer;font-size:14px;font-weight:500}
.pr-chip small{font-size:12px;font-weight:400;color:var(--muted)}
.pr-chip:hover{border-color:var(--ink)}
.pr-chip[aria-pressed=true]{border-color:var(--ink);background:var(--ink);color:var(--canvas)}
.pr-chip[aria-pressed=true] small{color:var(--on-dark-muted)}

input[type=range]{-webkit-appearance:none;appearance:none;width:100%;height:28px;margin:0;background:transparent;cursor:pointer;--fill:50%}
input[type=range]::-webkit-slider-runnable-track{height:6px;border-radius:999px;background:linear-gradient(90deg,var(--blue) var(--fill),var(--line) var(--fill))}
input[type=range]::-moz-range-track{height:6px;border-radius:999px;background:var(--line)}
input[type=range]::-moz-range-progress{height:6px;border-radius:999px;background:var(--blue)}
input[type=range]::-webkit-slider-thumb{-webkit-appearance:none;width:24px;height:24px;margin-top:-9px;border-radius:50%;background:var(--card);border:2px solid var(--blue);box-shadow:0 2px 6px rgba(28,27,25,.18)}
input[type=range]::-moz-range-thumb{width:20px;height:20px;border-radius:50%;background:var(--card);border:2px solid var(--blue);box-shadow:0 2px 6px rgba(28,27,25,.18)}
input[type=range]:focus-visible{outline:none}
input[type=range]:focus-visible::-webkit-slider-thumb{box-shadow:0 0 0 4px rgba(43,68,196,.25)}

/* Résultat. Dimensions fixes : rien ne bouge pendant qu'on change le volume.
   Le bleu est réservé aux cas où MeshLite est moins cher. */
.hc-result{display:flex;flex-direction:column;min-height:456px;padding:28px;background:var(--dark);color:var(--on-dark);border-radius:var(--radius);min-width:0}
.hc-r-kicker{font-size:12px;font-weight:600;letter-spacing:.08em;text-transform:uppercase;color:var(--on-dark-muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.hc-r-head{margin-top:8px;height:1.1em;font-size:clamp(34px,3.4vw,46px);line-height:1.1;font-weight:500;letter-spacing:-.03em;color:var(--on-dark);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.hc-result.is-win .hc-r-head{color:var(--accent-dark)}
.hc-r-sub{margin-top:6px;height:2.9em;overflow:hidden;font-size:16px;line-height:1.45;color:var(--on-dark-muted)}
.hc-result.is-win .hc-r-sub{color:var(--on-dark)}
.r-inline-select{font:inherit;color:inherit;background:transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%23f7f6f2' stroke-width='1.5'/%3E%3C/svg%3E") no-repeat right 2px center/10px 6px;border:0;border-bottom:1.5px dashed currentColor;border-radius:0;margin:0 1px;padding:0 16px 1px 0;cursor:pointer;-webkit-appearance:none;appearance:none}
.r-inline-select:focus-visible{outline:2px solid var(--accent-dark);outline-offset:2px}
.r-inline-select option{color:#1c1b19}
.hc-bars{display:grid;gap:12px;margin-top:20px}
.hc-bar-label{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:baseline;gap:2px 12px;font-size:14px}
.hc-bar-label span{min-width:0}
.hc-bar-label strong{flex:none;margin-left:auto;font-weight:600;white-space:nowrap}
.hc-bar{height:8px;margin-top:6px;border-radius:999px;background:var(--on-dark-track);overflow:hidden}
.hc-bar i{display:block;height:100%;border-radius:999px;transition:width .25s ease}
.hc-bar i.is-comp{background:var(--comp-dark)}
.hc-bar i.is-mesh{background:var(--accent-dark)}
.hc-bar i.is-mesh.is-flat{background:repeating-linear-gradient(135deg,var(--accent-dark) 0 4px,transparent 4px 7px);box-shadow:inset 0 0 0 1px var(--accent-dark)}
.hc-save{display:flex;justify-content:space-between;align-items:baseline;gap:12px;margin-top:16px}
.hc-save span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:14px;color:var(--on-dark-muted)}
.hc-save strong{flex:none;font-size:22px;line-height:1.2;font-weight:500;letter-spacing:-.02em;color:var(--on-dark);white-space:nowrap}
.hc-result.is-win .hc-save strong{color:var(--accent-dark)}
.hc-why{margin-top:18px;padding-top:16px;border-top:1px solid var(--on-dark-line)}
.hc-why-title{font-size:12px;font-weight:600;letter-spacing:.08em;text-transform:uppercase;color:var(--on-dark-muted)}
.hc-why-text{display:grid;grid-template-columns:20px 1fr;gap:10px;margin:10px 0 0;min-height:4.5em;font-size:14px;line-height:1.5;color:var(--on-dark-muted)}
.hc-why-text::before{content:"";width:20px;height:20px;margin-top:1px;border-radius:50%;background:var(--accent-dark) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.5 10.5l3 3 6-6.5' fill='none' stroke='%231c1b19' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/16px no-repeat}
.hc-why-text b{color:var(--on-dark);font-weight:600}
.hc-why-text.is-pop{animation:hc-pop .4s ease both}
@keyframes hc-pop{from{opacity:.2;transform:translateY(6px)}to{opacity:1;transform:none}}
.hc-cta{align-self:flex-start;display:inline-flex;align-items:center;min-height:48px;margin-top:auto;padding:11px 22px;border-radius:999px;background:var(--accent-dark);color:var(--dark);font-size:15px;font-weight:600;text-decoration:none}
.hc-cta:hover{background:var(--accent-dark-hover)}
.hc-ctas{margin-top:auto;padding-top:20px}
.hc-note{margin:16px 0 0;font-size:12.5px;line-height:1.5;color:var(--muted)}

@media (max-width:900px){
  .hc-grid{grid-template-columns:1fr}
  .hc-result{min-height:0}
}
@media (max-width:600px){
  .hc-input{padding:18px}
  .hc-step-head h3{font-size:18px}
  .hc-presets button{min-height:44px;padding:8px 16px;font-size:15px}
  .hc-result{padding:22px}
}
@media (prefers-reduced-motion:reduce){.hc-bar i{transition:none}.hc-why-text.is-pop{animation:none}}

/* Estimated total: dark blue plan fee, light blue provider cost. */
.hc-bar i.has-voice{display:flex;background:transparent;overflow:hidden}
.hc-bar i.has-voice [data-mesh-segment]{display:block;flex:none;height:100%}
.hc-bar [data-mesh-segment="plan"]{background:#4368bd}
.hc-bar [data-mesh-segment="voice"]{background:var(--accent-dark)}
.hc-footnotes{margin-top:16px;display:grid;gap:4px}
.hc-footnotes p{margin:0;font-size:12.5px;line-height:1.5;color:var(--muted)}
