/* Verisko camera plan: four-step builder. Layout and look from the Qwen redesign, in Verisko colours.
   Prices, rules and requests live in plan.js and the shared retail-prices.js / checkout.js files. */
:root{
  --bg:#F6F9FC; --card:#fff; --ink:#101C29; --navy:#012169; --sub:#425466; --faint:#5C6B7D;
  --line:#DCE3E9; --cyan:#169BD7; --cyan-text:#0D70A6; --tint:#E8F4FB; --chip:#EDF2F7;
  --good:#0A6B49; --good-bg:#E7F5EF; --warn:#9A5206; --warn-bg:#FFF6EC; --bad:#C0392B;
  --r:16px; --r-sm:10px; --shadow:0 1px 2px rgba(1,33,105,.05),0 8px 24px rgba(1,33,105,.07);
}
*{box-sizing:border-box;margin:0}
html{scroll-behavior:smooth}
body{background:var(--bg);color:var(--ink);font:16px/1.55 -apple-system,BlinkMacSystemFont,"SF Pro Text","Segoe UI",Roboto,Helvetica,Arial,sans-serif;-webkit-font-smoothing:antialiased;padding-bottom:0}
b,strong{font-weight:650}
button{font:inherit;color:inherit;background:none;border:0;cursor:pointer}
input,select,textarea{font:inherit;color:var(--ink)}
:focus-visible{outline:3px solid rgba(22,155,215,.55);outline-offset:2px;border-radius:6px}
.num{font-variant-numeric:tabular-nums}
.sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.wrap{max-width:1120px;margin:0 auto;padding:0 20px}
[hidden]{display:none!important}

/* ---- header ---- */
.site-top{position:sticky;top:0;z-index:40;display:flex;align-items:center;gap:16px;min-height:62px;padding:8px 20px;background:rgba(246,249,252,.88);backdrop-filter:blur(12px);border-bottom:1px solid var(--line)}
.site-top>a img{display:block;height:34px;width:auto}
.site-top .nav-drop{margin:0}
.site-top{flex-wrap:nowrap;height:62px}
.site-top .draft,.site-top .reset-top{display:none}
.site-top .nav-drop-btn{white-space:nowrap}
.top-tools .reset{white-space:nowrap}
.top-tools{margin-left:auto;display:flex;align-items:center;gap:10px}
.pill{font-size:12px;color:var(--sub);background:var(--chip);border-radius:999px;padding:5px 12px;white-space:nowrap}
.reset{font-size:13px;font-weight:600;color:var(--sub);padding:9px 14px;min-height:44px;border-radius:999px}
.reset:hover{background:var(--chip);color:var(--ink)}

/* ---- hero ---- */
.hero{padding:40px 0 4px}
.hero h1{font-size:clamp(30px,5vw,46px);line-height:1.08;letter-spacing:-.025em;font-weight:700;color:var(--navy)}
.hero .lead{margin-top:12px;font-size:17px;color:var(--sub);max-width:58ch}
.pills{display:flex;flex-wrap:wrap;gap:8px;margin-top:18px}
.pills span{font-size:13px;color:var(--sub);background:var(--card);border:1px solid var(--line);border-radius:999px;padding:6px 12px}
.pills b{color:var(--ink)}

/* ---- stepper ---- */
.stepper{position:sticky;top:62px;z-index:30;background:rgba(246,249,252,.99);backdrop-filter:blur(12px);padding:14px 0 0;margin-top:22px}
.stepper .row{display:flex;gap:6px}
.stepper button{flex:1;display:flex;align-items:center;gap:8px;padding:8px;border-radius:var(--r-sm);font-size:13px;color:var(--faint);min-height:44px;text-align:left}
.stepper button:hover{background:var(--chip)}
.stepper .idx{width:26px;height:26px;flex:none;border-radius:50%;border:1.5px solid var(--line);display:grid;place-items:center;font-size:12px;font-weight:650;background:var(--card)}
.stepper button.active{color:var(--ink);font-weight:650}
.stepper button.active .idx{background:var(--navy);border-color:var(--navy);color:#fff}
.stepper button.done .idx{background:var(--tint);border-color:var(--cyan);color:var(--cyan-text)}
.track{height:3px;background:var(--line);border-radius:3px;margin-top:10px;overflow:hidden}
.track i{display:block;height:100%;background:var(--cyan);width:25%;transition:width .25s ease}

/* ---- layout ---- */
.layout{display:grid;grid-template-columns:minmax(0,1fr) 360px;gap:28px;align-items:start;padding:26px 0 120px}
.step-head h2{font-size:25px;letter-spacing:-.015em;color:var(--navy);line-height:1.2}
.step-head p{color:var(--sub);margin-top:6px}
.step{display:none;animation:in .22s ease}
.step.on{display:block}
@keyframes in{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:none}}
@media (prefers-reduced-motion:reduce){*{animation:none!important;transition:none!important;scroll-behavior:auto!important}}

/* ---- cameras ---- */
.grid{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin-top:18px}
.product{border:1px solid var(--line);border-radius:var(--r);padding:16px;background:var(--card);transition:box-shadow .18s,border-color .18s}
.product:hover{box-shadow:var(--shadow)}
.product.sel{border-color:var(--cyan);box-shadow:0 0 0 1px var(--cyan)}
.product .img{position:relative;background:var(--bg);border-radius:12px;display:grid;place-items:center;padding:10px;min-height:128px}
.product img{width:132px;height:100px;object-fit:contain}
.product .badge{position:absolute;top:8px;right:8px;font-size:11px;font-weight:650;color:var(--cyan-text);background:var(--tint);border-radius:999px;padding:3px 8px}
.product h3{font-size:16px;margin-top:12px;color:var(--navy)}
.product .desc{font-size:13px;color:var(--sub);margin-top:2px;min-height:38px}
.buy{display:flex;align-items:center;justify-content:space-between;margin-top:10px;gap:8px}
.price{font-size:15px;font-weight:650}
.price small{display:block;font-weight:400;color:var(--faint);font-size:12px}
.qty{display:flex;align-items:center;gap:4px}
.qty button{width:44px;height:44px;border-radius:50%;border:1px solid var(--line);font-size:20px;line-height:1;display:grid;place-items:center;background:var(--card);transition:background .15s}
.qty button:hover:not(:disabled){background:var(--tint);border-color:var(--cyan)}
.qty button.plus{background:var(--navy);border-color:var(--navy);color:#fff}
.qty button.plus:hover:not(:disabled){background:#001a52}
.qty button:disabled{opacity:.35;cursor:default}
.qty output{min-width:28px;text-align:center;font-weight:650;font-size:17px}
.statusline{display:flex;justify-content:space-between;align-items:center;margin-top:16px;font-size:14px;color:var(--sub)}
.statusline .warn{color:var(--warn);font-weight:600}
.foot-links{margin-top:16px;padding-top:14px;border-top:1px solid var(--line);font-size:14px;color:var(--sub);display:flex;flex-wrap:wrap;gap:6px 18px}
.link{color:var(--cyan-text);font-weight:600;min-height:44px;display:inline-flex;align-items:center}
a.link:hover,button.link:hover{text-decoration:underline}

/* ---- parts ---- */
.seg{display:flex;background:var(--chip);border-radius:var(--r-sm);padding:3px;gap:3px;margin-top:16px}
.seg button{flex:1;border-radius:8px;padding:8px 10px;font-size:14px;color:var(--sub);min-height:44px}
.seg button[aria-pressed=true]{background:var(--card);color:var(--navy);font-weight:650;box-shadow:0 1px 3px rgba(1,33,105,.14)}
.banner{display:flex;align-items:center;gap:10px;justify-content:space-between;background:var(--tint);border-radius:var(--r-sm);padding:10px 14px;font-size:14px;color:var(--sub);margin-top:14px}
.banner button{color:var(--cyan-text);font-weight:650;font-size:14px;white-space:nowrap;min-height:44px}
.rows{border:1px solid var(--line);border-radius:var(--r);margin-top:14px;overflow:hidden;background:var(--card)}
.prow{display:grid;grid-template-columns:36px minmax(0,1fr) auto;gap:12px;padding:14px 16px;align-items:center}
.prow+.prow{border-top:1px solid var(--line)}
.ic{width:36px;height:36px;border-radius:10px;background:var(--bg);display:grid;place-items:center;color:var(--sub)}
.ic svg{width:19px;height:19px}
.prow h4{font-size:15px;font-weight:650;color:var(--navy)}
.prow .sub{font-size:13px;color:var(--faint)}
.ctl{display:flex;flex-direction:column;align-items:flex-end;gap:4px}
.amt{font-size:13px;color:var(--sub)}
select,input[type=number],input[type=text],input[type=tel],input[type=date],textarea{border:1px solid #B8C4D0;border-radius:var(--r-sm);padding:10px 12px;background:var(--card);min-height:44px;width:100%;font-size:16px}
select:focus,input:focus,textarea:focus{border-color:var(--cyan);outline:none;box-shadow:0 0 0 3px rgba(22,155,215,.2)}
.prow select{width:min(220px,100%)}
.prow input[type=number]{width:110px;text-align:right}
.switch{position:relative;width:46px;height:28px;flex:none}
.switch input{position:absolute;opacity:0;inset:0;width:100%;height:100%;margin:0;cursor:pointer}
.switch i{position:absolute;inset:0;background:#C9D3DE;border-radius:999px;transition:background .18s;pointer-events:none}
.switch i::after{content:"";position:absolute;top:3px;left:3px;width:22px;height:22px;border-radius:50%;background:#fff;box-shadow:0 1px 3px rgba(0,0,0,.25);transition:transform .18s}
.switch input:checked+i{background:var(--cyan)}
.switch input:checked+i::after{transform:translateX(18px)}
.switch input:focus-visible+i{outline:3px solid rgba(22,155,215,.55);outline-offset:2px}
.chips{display:flex;gap:6px;flex-wrap:wrap;margin-top:8px}
.chips button{font-size:13px;border:1px solid var(--line);border-radius:999px;padding:8px 13px;background:var(--card);color:var(--sub);min-height:44px}
.chips button:hover,.chips button.on{border-color:var(--cyan);color:var(--cyan-text);background:var(--tint)}
.inline-warn{grid-column:1/-1;background:var(--warn-bg);color:var(--warn);font-size:13px;border-radius:8px;padding:8px 12px;display:flex;gap:10px;align-items:center;justify-content:space-between}
.inline-warn button{color:var(--warn);font-weight:650;text-decoration:underline;font-size:13px;min-height:44px}
.span2{grid-column:2/-1}
details.more{margin-top:14px;border:1px solid var(--line);border-radius:var(--r);background:var(--card)}
details.more summary{padding:14px 16px;font-size:15px;font-weight:650;color:var(--navy);cursor:pointer;list-style:none;display:flex;justify-content:space-between;align-items:center;min-height:48px}
details.more summary::-webkit-details-marker{display:none}
details.more summary::after{content:"+";font-size:20px;color:var(--faint)}
details.more[open] summary::after{content:"–"}
details.more .rows{border:0;border-top:1px solid var(--line);border-radius:0;margin:0}
.note{font-size:13px;color:var(--faint);margin-top:14px}

/* ---- installation & care ---- */
.install{display:flex;justify-content:space-between;gap:16px;align-items:flex-start;margin-top:18px;border:1px solid var(--line);border-radius:var(--r);padding:18px;background:var(--card)}
.install .big{font-size:28px;font-weight:700;letter-spacing:-.015em;color:var(--navy)}
.install .math{font-size:14px;color:var(--sub);margin-top:4px}
.tag{font-size:12px;font-weight:650;color:var(--good);background:var(--good-bg);border-radius:999px;padding:4px 10px;white-space:nowrap}
.checks{display:flex;flex-wrap:wrap;gap:8px;margin-top:14px}
.checks span{font-size:13px;color:var(--sub);background:var(--chip);border-radius:999px;padding:6px 12px}
.care-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin-top:18px}
.care{position:relative;border:1px solid var(--line);border-radius:var(--r);padding:16px;cursor:pointer;background:var(--card);transition:border-color .15s}
.care input{position:absolute;opacity:0;inset:0;width:100%;height:100%;margin:0;cursor:pointer}
.care.sel{border-color:var(--cyan);box-shadow:0 0 0 1px var(--cyan);background:var(--tint)}
.care:focus-within{outline:3px solid rgba(22,155,215,.55);outline-offset:2px}
.care .top-line{display:flex;justify-content:space-between;gap:8px;font-size:16px;font-weight:650;color:var(--navy)}
.care .fee{color:var(--cyan-text);white-space:nowrap}
.care ul{margin:10px 0 0;padding-left:18px;font-size:14px;color:var(--sub)}
.care li{margin:3px 0}
.warranty{margin-top:14px;font-size:14px;color:var(--sub);background:var(--good-bg);border-radius:var(--r-sm);padding:12px 14px}

/* ---- review & send ---- */
.review .rows{margin-top:16px}
.rgroup{padding:12px 16px 4px;font-size:11px;font-weight:650;letter-spacing:.08em;text-transform:uppercase;color:var(--faint)}
.rline{display:flex;justify-content:space-between;gap:12px;padding:9px 16px;font-size:14px}
.rline.adv{color:var(--faint);font-style:italic}
.rline.good{color:var(--good);font-weight:600}
.paynote{font-size:13px;color:var(--sub);margin-top:8px}
.schedule{margin-top:10px;border:1px solid var(--line);border-radius:var(--r-sm);overflow:hidden;background:var(--card)}
.schedule div{display:flex;justify-content:space-between;padding:9px 14px;font-size:14px}
.schedule div+div{border-top:1px solid var(--line)}
.form{margin-top:24px}
.form h3{font-size:18px;margin-bottom:12px;color:var(--navy)}
.fields{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.field{display:flex;flex-direction:column;gap:5px;font-size:14px;font-weight:600}
.field.full{grid-column:1/-1}
.field .err{color:var(--bad);font-size:13px;font-weight:400;display:none}
.field.bad input,.field.bad select{border-color:var(--bad)}
.field.bad .err{display:block}
.consent{display:flex;gap:10px;align-items:flex-start;margin-top:14px;font-size:14px;color:var(--sub)}
.consent input{width:22px;height:22px;margin-top:1px;accent-color:var(--navy);flex:none}
.err-line{color:var(--bad);font-size:13px;margin-top:6px}
.assure{margin-top:18px;border:1px solid var(--line);border-radius:var(--r);padding:16px;background:var(--card)}
.assure h4{font-size:14px;font-weight:650;margin-bottom:8px;color:var(--navy)}
.assure li{font-size:13px;color:var(--sub);margin:4px 0 4px 16px}
.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;background:var(--navy);color:#fff;font-weight:650;font-size:16px;border-radius:var(--r-sm);min-height:48px;padding:0 22px;transition:background .15s;width:100%;text-decoration:none}
.btn:hover{background:#001a52}
.btn.ghost{background:var(--card);color:var(--navy);border:1px solid var(--line)}
.btn.ghost:hover{background:var(--chip)}
.btn.wa{background:var(--good)}
.btn.wa:hover{background:#07563a}
.btn[disabled],.btn[aria-disabled=true]{opacity:.55;pointer-events:none}
.send-block{margin-top:18px;display:grid;gap:10px}
.micro{font-size:13px;color:var(--faint);text-align:center}
.status{margin-top:10px;font-size:14px;color:var(--sub);min-height:1.2em}
.status.bad{color:var(--bad)}
.success{margin-top:18px;border:1px solid #BFE3D2;background:#F0FAF5;border-radius:var(--r);padding:18px}
.success h4{color:var(--good);font-size:16px}
.success p{font-size:14px;color:var(--sub);margin-top:4px}
.success .btn{margin-top:12px;width:auto}
.trap{position:absolute;left:-9999px;width:1px;height:1px;overflow:hidden}

/* ---- step nav ---- */
.stepnav{display:flex;justify-content:space-between;gap:12px;margin-top:22px}
.stepnav .btn{width:auto;min-width:150px}

/* ---- summary ---- */
.summary{position:sticky;top:134px}
.summary .card{background:var(--card);border:1px solid var(--line);border-radius:var(--r);padding:20px;box-shadow:var(--shadow)}
.eyebrow{font-size:11px;font-weight:650;letter-spacing:.1em;color:var(--faint);text-transform:uppercase}
.head-row{display:flex;align-items:center;justify-content:space-between}
.close-sheet{display:none;color:var(--faint);font-size:24px;min-width:44px;min-height:44px}
.sline{display:flex;justify-content:space-between;gap:10px;font-size:14px;padding:5px 0;color:var(--sub)}
.sline .num{color:var(--ink);font-weight:500}
.sline.adv{color:var(--faint);font-style:italic}
.sline.good,.sline.good .num{color:var(--good);font-weight:600}
.sgroup{font-size:11px;font-weight:650;letter-spacing:.07em;text-transform:uppercase;color:var(--faint);margin:12px 0 2px}
.total-row{border-top:1px solid var(--line);margin-top:12px;padding-top:14px;display:flex;justify-content:space-between;align-items:baseline;gap:8px}
.total-row .lbl{font-size:14px;font-weight:650}
.total-row .val{font-size:28px;font-weight:700;letter-spacing:-.015em;color:var(--navy)}
.total-sub{font-size:13px;color:var(--faint);margin-top:4px}
.empty{font-size:14px;color:var(--faint);padding:14px 0 4px}
.wait{display:flex;gap:10px;margin-top:16px;background:var(--bg);border-radius:var(--r-sm);padding:12px;font-size:13px;color:var(--sub)}

/* ---- mobile bar and sheet ---- */
.mobilebar{display:none;position:fixed;left:0;right:0;bottom:0;z-index:50;background:rgba(255,255,255,.95);backdrop-filter:blur(12px);border-top:1px solid var(--line);padding:10px 16px calc(10px + env(safe-area-inset-bottom))}
.mobilebar .in{display:flex;align-items:center;gap:12px;max-width:1120px;margin:0 auto}
.mobilebar .t{flex:1;text-align:left;min-height:44px}
.mobilebar small{display:block;font-size:12px;color:var(--faint)}
.mobilebar strong{font-size:19px;color:var(--navy)}
.mobilebar .btn{width:auto;min-width:140px}
.scrim{display:none;position:fixed;inset:0;background:rgba(1,17,52,.45);z-index:55}
.scrim.on{display:block}
footer.foot{border-top:1px solid var(--line);padding:26px 0 40px;font-size:13px;color:var(--faint)}
footer.foot p{margin:4px 0}
footer.foot a{color:var(--cyan-text)}

dialog{border:0;border-radius:var(--r);padding:24px;max-width:380px;box-shadow:var(--shadow)}
dialog::backdrop{background:rgba(1,17,52,.45)}
dialog h3{font-size:18px;color:var(--navy)}
dialog p{font-size:14px;color:var(--sub);margin:8px 0 18px}
dialog .acts{display:flex;gap:10px}
.undo{position:fixed;left:50%;bottom:96px;transform:translateX(-50%);z-index:70;display:flex;gap:14px;align-items:center;background:var(--navy);color:#fff;border-radius:999px;padding:10px 12px 10px 18px;font-size:14px;box-shadow:var(--shadow)}
.undo button{color:#9FDCF7;font-weight:650;min-height:44px;padding:0 10px}

@media (max-width:960px){
  .layout{grid-template-columns:1fr;padding-bottom:150px}
  .summary{position:fixed;left:0;right:0;bottom:0;top:auto;z-index:60;transform:translateY(105%);transition:transform .25s ease;max-height:75vh;overflow:auto;padding:0 10px 10px}
  .summary.open{transform:none}
  .summary .card{border-radius:20px 20px 0 0}
  .close-sheet{display:block}
  .mobilebar{display:block}
  .stepper .lbl{display:none}
  .stepper button{justify-content:center}
  .stepper button.active .lbl{display:inline}
  .grid,.care-grid,.fields{grid-template-columns:1fr}
  .prow{grid-template-columns:36px minmax(0,1fr)}
  .ctl{grid-column:2;align-items:flex-start;width:100%}
  .prow select,.prow input[type=number]{width:100%}
  .product .desc{min-height:0}
  .pill.free{display:none}
}
@media (max-width:420px){
  .wrap{padding:0 16px}
  .site-top{padding:6px 12px;gap:8px}
  .site-top>a img{height:30px}
  .product img{width:112px;height:84px}
}
