/* NEO App configurator card — .neo-config-card in neo-app.html #neo-pricing. Behaviour: neo-pricing.js.
   One configuration flow in three sections on a single surface:
   package (combobox + plan badge) · resources (stepper pills, gradient sliders with package
   markers, min/max scale, supported stack) · cost (large tabular price, CTA, basis
   and top-up note on a faint green wash).
   Site identity kept: Geist, the palette tokens, square corners, hairlines, the 2px green top accent
   of a featured plan card, the plan badge, the contact-field input state (#cf-email) for the
   package field and the header-search panel for its popover. Hairlines are softened, borders are
   used only where a control needs an edge, and depth is one very soft shadow. */

.neo-config-card{
  --cc-pad:28px;
  --cc-hair:color-mix(in srgb,var(--line) 70%,transparent);
  --cc-wash:color-mix(in srgb,var(--primary-soft) 60%,var(--surface));
  --cc-chip:color-mix(in srgb,var(--ink) 5%,var(--surface));
  --cc-thumb:20px;
  --cc-ease:var(--m-out,cubic-bezier(.16,1,.3,1));
  position:relative;display:flex;flex-direction:column;min-width:0;
  background:var(--surface);border:1px solid var(--line);
  box-shadow:0 1px 0 #1012110a,0 32px 64px -48px #10121138
}
[data-theme=dark] .neo-config-card{box-shadow:0 32px 64px -40px #000000a6}
.neo-config-card::before{content:"";position:absolute;z-index:2;top:-1px;left:-1px;right:-1px;height:2px;background:linear-gradient(90deg,var(--primary),var(--accent));pointer-events:none}

/* sections */
.neo-config-sec{display:flex;flex-direction:column;gap:14px;min-width:0;padding:24px var(--cc-pad)}
.neo-config-sec+.neo-config-sec{border-top:1px solid var(--cc-hair)}
.neo-config-label{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:24px}
.neo-sec-title{display:inline-flex;align-items:center;margin:0;font-size:12px;line-height:16px;font-weight:600;letter-spacing:.065em;color:var(--ink)}
label.neo-sec-title{cursor:pointer}

/* package */
.neo-pkg-tag{display:inline-flex;align-items:center;gap:6px;min-height:22px;padding:2px 10px 2px 8px;border-radius:999px;background:color-mix(in srgb,var(--primary) 12%,transparent);color:var(--primary-text);font-size:11px;line-height:18px;font-weight:600;letter-spacing:.04em;text-transform:uppercase;transition:background .25s,color .25s}
.neo-pkg-tag::before{content:"";width:5px;height:5px;border-radius:50%;background:currentColor;flex-shrink:0}
.neo-pkg-desc{margin:-4px 0 0;font-size:13px;line-height:20px;color:var(--muted)}
.neo-select{position:relative}
/* native select = no-JS fallback; the combobox replaces it (contact field look + active state) */
.neo-pkg-select{width:100%;min-height:52px;margin:0;padding:13px 14px;border:1px solid var(--line);border-radius:0;background:var(--paper);color:var(--ink);font:600 16px/1.5 var(--font);cursor:pointer;transition:border-color .2s,background .2s}
.neo-pkg-select:focus-visible{outline:none;border-color:var(--primary);background:var(--surface)}
.neo-pkg-select[hidden]{display:none}
.neo-combo{display:grid;grid-template-columns:minmax(0,1fr) 16px;align-items:center;gap:14px;min-height:52px;padding:12px 14px 12px 16px;border:1px solid var(--line);border-radius:0;background:var(--paper);color:var(--ink);cursor:pointer;-webkit-user-select:none;user-select:none;transition:border-color .2s,background .2s}
.neo-combo[hidden]{display:none}
.neo-combo:hover{border-color:#91BDA7}
[data-theme=dark] .neo-combo:hover{border-color:#477E63}
.neo-combo:focus-visible,.neo-select.is-open .neo-combo{outline:none;border-color:var(--primary);background:var(--surface)}
.neo-combo-main{display:flex;align-items:baseline;gap:10px;min-width:0}
.neo-combo-name{font-size:17px;line-height:24px;font-weight:600;letter-spacing:-.01em;white-space:nowrap}
.neo-combo-spec{min-width:0;font-size:14px;line-height:20px;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-variant-numeric:tabular-nums}
.neo-select-chev{width:16px;height:16px;fill:none;stroke:var(--muted);stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round;pointer-events:none;transition:transform .25s var(--cc-ease),stroke .2s}
.neo-select.is-open .neo-select-chev{transform:rotate(180deg);stroke:var(--primary-text)}
.neo-combo:focus-visible .neo-select-chev{stroke:var(--primary-text)}
/* listbox popover (header-search panel) */
@keyframes neo-pop-in{from{opacity:0;transform:translateY(-6px)}to{opacity:1;transform:none}}
@keyframes neo-pop-up{from{opacity:0;transform:translateY(6px)}to{opacity:1;transform:none}}
.neo-listbox{position:absolute;left:0;right:0;top:calc(100% + 6px);z-index:40;max-height:min(372px,60vh);margin:0;padding:6px;overflow:auto;overscroll-behavior:contain;list-style:none;background:var(--surface);border:1px solid var(--line);box-shadow:0 28px 56px -32px #10121166;animation:neo-pop-in .28s var(--cc-ease) both}
[data-theme=dark] .neo-listbox{box-shadow:0 28px 56px -28px #000}
.neo-listbox[hidden]{display:none}
.neo-select.is-up .neo-listbox{top:auto;bottom:calc(100% + 6px);animation-name:neo-pop-up}
.neo-opt{display:grid;grid-template-columns:minmax(0,1fr) auto 16px;align-items:center;gap:12px;min-height:52px;padding:8px 12px;cursor:pointer;transition:background .15s,box-shadow .15s}
.neo-opt+.neo-opt{box-shadow:inset 0 1px var(--cc-hair)}
.neo-opt.is-active{background:var(--paper);box-shadow:inset 2px 0 var(--primary)}
.neo-opt[aria-selected=true]{background:var(--primary-soft)}
.neo-opt-main{display:flex;flex-direction:column;min-width:0}
.neo-opt-name{display:flex;align-items:center;flex-wrap:wrap;gap:2px 8px;font-size:14px;line-height:20px;font-weight:600;color:var(--ink)}
.neo-opt[aria-selected=true] .neo-opt-name{color:var(--primary-text)}
.neo-opt-tag{font-size:11px;line-height:16px;font-weight:400;letter-spacing:.04em;text-transform:uppercase;color:var(--muted)}
.neo-opt-spec{font-size:12px;line-height:18px;color:var(--muted);font-variant-numeric:tabular-nums}
.neo-opt-rate{font-size:13px;line-height:20px;font-weight:600;color:var(--ink);white-space:nowrap;font-variant-numeric:tabular-nums}
.neo-opt-rate small{font-size:12px;font-weight:400;color:var(--muted)}
.neo-opt-check{width:16px;height:16px;fill:none;stroke:var(--primary-text);stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;opacity:0;transition:opacity .2s}
.neo-opt[aria-selected=true] .neo-opt-check{opacity:1}

/* resources */
.neo-stepper-group{gap:18px}
.neo-step-list{display:flex;flex-direction:column;gap:18px}
.neo-step-row{display:flex;flex-direction:column;gap:8px;min-width:0}
.neo-step-head{display:flex;align-items:center;justify-content:space-between;gap:16px;min-width:0}
.neo-step-head label{display:flex;flex-direction:column;min-width:0;font-size:14px;line-height:20px;font-weight:600;color:var(--ink);cursor:pointer}
.neo-step-head small{font-size:12px;line-height:16px;font-weight:400;color:var(--muted)}
/* stepper pill: − value + */
.neo-stepper{display:inline-grid;grid-template-columns:34px minmax(88px,auto) 34px;flex:none;height:36px;border:1px solid var(--line);background:var(--paper);transition:border-color .2s,background .2s}
.neo-stepper:hover{border-color:#91BDA7}
[data-theme=dark] .neo-stepper:hover{border-color:#477E63}
.neo-stepper:focus-within{border-color:var(--primary);background:var(--surface)}
.neo-step-btn{display:grid;place-items:center;width:100%;height:100%;padding:0;border:0;border-radius:0;background:none;color:var(--ink);cursor:pointer;transition:background .2s,color .2s}
.neo-step-btn svg{width:14px;height:14px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round}
.neo-step-btn:hover:not(:disabled){background:var(--soft);color:var(--primary-text)}
.neo-step-btn:active:not(:disabled){background:color-mix(in srgb,var(--primary) 18%,var(--surface))}
.neo-step-btn:disabled{color:var(--muted);opacity:.38;cursor:not-allowed}
.neo-step-btn:focus-visible{outline:2px solid var(--primary);outline-offset:-2px}
.neo-step-val{display:grid;place-items:center;padding:0 10px;box-shadow:inset 1px 0 var(--cc-hair),inset -1px 0 var(--cc-hair);font-size:14px;line-height:20px;font-weight:600;color:var(--ink);white-space:nowrap;font-variant-numeric:tabular-nums}
/* slider: 6px track, green gradient fill to the thumb centre, package markers on the track */
.neo-step-control{position:relative;height:24px}
.neo-step-range{--fill:0%;--fill-n:0;--t:var(--cc-thumb);position:relative;z-index:1;display:block;-webkit-appearance:none;appearance:none;width:100%;min-width:0;height:24px;margin:0;background:none;cursor:pointer}
.neo-step-range::-webkit-slider-runnable-track{height:6px;border-radius:999px;background:linear-gradient(90deg,var(--primary),var(--accent)) left center/calc(var(--t) / 2 + (100% - var(--t)) * var(--fill-n)) 100% no-repeat,color-mix(in srgb,var(--line) 75%,var(--surface))}
.neo-step-range::-moz-range-track{height:6px;border-radius:999px;background:color-mix(in srgb,var(--line) 75%,var(--surface))}
.neo-step-range::-moz-range-progress{height:6px;border-radius:999px;background:linear-gradient(90deg,var(--primary),var(--accent))}
.neo-step-range::-webkit-slider-thumb{-webkit-appearance:none;box-sizing:border-box;width:var(--t);height:var(--t);margin-top:calc((6px - var(--t)) / 2);border:2px solid var(--primary);border-radius:50%;background:var(--surface);box-shadow:0 1px 3px #10121129;transition:box-shadow .2s,transform .2s var(--cc-ease)}
.neo-step-range::-moz-range-thumb{box-sizing:border-box;width:var(--t);height:var(--t);border:2px solid var(--primary);border-radius:50%;background:var(--surface);box-shadow:0 1px 3px #10121129;transition:box-shadow .2s,transform .2s var(--cc-ease)}
.neo-step-range:hover::-webkit-slider-thumb{box-shadow:0 0 0 6px color-mix(in srgb,var(--primary) 14%,transparent)}
.neo-step-range:hover::-moz-range-thumb{box-shadow:0 0 0 6px color-mix(in srgb,var(--primary) 14%,transparent)}
.neo-step-range:active::-webkit-slider-thumb{transform:scale(1.1);box-shadow:0 0 0 8px color-mix(in srgb,var(--primary) 18%,transparent)}
.neo-step-range:active::-moz-range-thumb{transform:scale(1.1);box-shadow:0 0 0 8px color-mix(in srgb,var(--primary) 18%,transparent)}
.neo-step-range:focus-visible{outline:none}
.neo-step-range:focus-visible::-webkit-slider-thumb{box-shadow:0 0 0 3px var(--surface),0 0 0 5px var(--primary)}
.neo-step-range:focus-visible::-moz-range-thumb{box-shadow:0 0 0 3px var(--surface),0 0 0 5px var(--primary)}
.neo-step-marks{position:absolute;z-index:2;top:50%;left:calc(var(--cc-thumb) / 2);right:calc(var(--cc-thumb) / 2);height:0;pointer-events:none}
.neo-step-marks i{position:absolute;left:var(--at);top:-2px;width:4px;height:4px;margin-left:-2px;border-radius:50%;background:color-mix(in srgb,var(--muted) 55%,transparent);transition:background .2s,opacity .2s}
.neo-step-marks i.is-passed{background:var(--surface);opacity:.9}
.neo-step-marks i.is-on{opacity:0}
.neo-step-scale{display:flex;justify-content:space-between;gap:12px;margin-top:-4px;font-size:11px;line-height:14px;color:var(--muted);font-variant-numeric:tabular-nums}
/* supported stack */
.neo-tech{display:flex;align-items:center;flex-wrap:wrap;gap:8px 12px;padding-top:16px;border-top:1px dashed var(--cc-hair)}
.neo-tech-label{font-size:12px;line-height:18px;color:var(--muted)}
.neo-tech-row{display:flex;flex-wrap:wrap;gap:6px;margin:0;padding:0;list-style:none}
.neo-tech-badge{padding:3px 9px;background:var(--cc-chip);font-size:12px;line-height:18px;color:var(--ink)}

/* cost */
.neo-config-footer{gap:14px;background:linear-gradient(180deg,var(--cc-wash),var(--surface) 140%)}
.neo-price-row{display:flex;align-items:flex-end;justify-content:space-between;flex-wrap:wrap;gap:16px 24px}
.neo-price-block{display:flex;flex-direction:column;gap:4px;min-width:0}
.neo-price-rate{display:block;font-size:40px;line-height:44px;font-weight:600;letter-spacing:-.04em;color:var(--ink);white-space:nowrap;font-variant-numeric:tabular-nums}
.neo-price-rate small{margin-left:2px;font-size:15px;font-weight:400;letter-spacing:0;color:var(--muted)}
@keyframes neo-bump{from{opacity:.4;transform:translateY(4px)}to{opacity:1;transform:none}}
.neo-price-rate.is-bump{animation:neo-bump .4s var(--cc-ease)}
.neo-price-month{font-size:14px;line-height:20px;font-weight:500;color:var(--ink);font-variant-numeric:tabular-nums}
.neo-config-cta{flex:none;min-height:52px}
.neo-price-basis{padding-top:14px;border-top:1px dashed var(--cc-hair);font-size:12px;line-height:18px;color:var(--muted);font-variant-numeric:tabular-nums}
.neo-split-hint{display:flex;align-items:flex-start;gap:8px;margin:-6px 0 0;font-size:12px;line-height:18px;color:var(--muted)}
.neo-split-hint svg{flex:none;width:16px;height:16px;margin-top:1px;fill:none;stroke:currentColor;stroke-width:1.4;stroke-linecap:round}

/* responsive */
@media(max-width:1200px){
  .neo-price-row{flex-direction:column;align-items:stretch}
  .neo-config-cta{width:100%}
}
@media(max-width:700px){
  .neo-config-card{--cc-pad:20px}
  .neo-config-sec{padding-top:20px;padding-bottom:20px}
  .neo-combo-main{flex-direction:column;gap:0}
  .neo-combo-spec{font-size:13px;line-height:18px}
  .neo-stepper{grid-template-columns:36px minmax(80px,auto) 36px;height:40px}
  .neo-price-rate{font-size:34px;line-height:40px}
}
@media(prefers-reduced-motion:reduce){
  .neo-listbox,.neo-price-rate.is-bump{animation:none}
  .neo-select-chev,.neo-step-range::-webkit-slider-thumb{transition:none}
}
