/* ============================================================
   BUILD YOUR SYSTEM — instant sizer / quote tool
   Reuses VOLT instrument language: datasheet headers, hairline
   borders, mono labels, ink console panels, volt-yellow accents.
   ============================================================ */

.bys-body{ background:var(--paper); }

/* ---- solid header variant (no yellow hero behind it) ---- */
.header--solid{ position:sticky; top:0; background:var(--paper); border-bottom:1.5px solid var(--ink); }
.header--solid .nav-desk a{ color:var(--ink); }

/* ============================================================
   INTRO BAND
   ============================================================ */
.bys-intro{ background:#ECEFF2; border-bottom:1.5px solid var(--ink); padding:clamp(40px,6vh,72px) 18px clamp(30px,4vh,48px); }
.bys-intro-inner{ max-width:1180px; margin:0 auto; text-align:center; }
.bys-eyebrow{ font-family:var(--font-mono); font-weight:700; font-size:11px; letter-spacing:0.22em; text-transform:uppercase; color:var(--n-500); margin-bottom:clamp(20px,3vh,36px); }
.bys-rule{ position:relative; display:flex; align-items:center; justify-content:center; height:1px; background:var(--ink); }
.bys-rule .ends{ position:absolute; left:0; right:0; top:50%; transform:translateY(-50%); display:flex; justify-content:space-between; font-family:var(--font-mono); font-weight:700; font-size:11px; letter-spacing:0.1em; color:var(--n-500); }
.bys-rule .ends span{ background:#ECEFF2; padding:0 12px; }
.bys-rule .ends span:last-child{ display:none; }
@media(min-width:680px){ .bys-rule .ends span:last-child{ display:inline; } }
.bys-title{ position:relative; z-index:2; background:#ECEFF2; padding:0 22px; font-family:var(--font-sans); font-weight:700; font-size:clamp(34px,6vw,62px); letter-spacing:-0.035em; line-height:0.9; text-transform:lowercase; }
.bys-sub{ max-width:52ch; margin:clamp(34px,5vh,50px) auto 0; font-size:clamp(15px,1.7vw,18px); line-height:1.5; color:var(--n-600); text-wrap:pretty; }

/* ---- progress stepper ---- */
.bys-steps{ display:flex; align-items:stretch; justify-content:center; gap:0; max-width:560px; margin:clamp(26px,4vh,40px) auto 0; border:1.5px solid var(--ink); background:var(--paper); }
.bys-step{ flex:1; display:flex; align-items:center; gap:9px; padding:11px 14px; border-left:1.5px solid var(--ink); font-family:var(--font-mono); transition:background var(--dur-fast) var(--ease-standard); }
.bys-step:first-child{ border-left:none; }
.bys-step .n{ width:22px; height:22px; flex:none; border:1.5px solid var(--ink); border-radius:999px; display:flex; align-items:center; justify-content:center; font-size:11px; font-weight:700; }
.bys-step .t{ font-size:10.5px; letter-spacing:0.08em; text-transform:uppercase; font-weight:700; color:var(--n-500); white-space:nowrap; }
.bys-step.active{ background:var(--volt); }
.bys-step.active .n{ background:var(--ink); color:var(--volt); }
.bys-step.active .t{ color:var(--ink); }
.bys-step.done .n{ background:var(--ink); color:var(--volt); }
.bys-step.done .t{ color:var(--ink); }
@media(max-width:560px){ .bys-step .t{ display:none; } .bys-step{ justify-content:center; } }

/* ============================================================
   WIZARD STAGE
   ============================================================ */
.bys-stage{ max-width:1180px; margin:0 auto; padding:clamp(34px,5vh,56px) 18px clamp(48px,8vh,90px); }
.bys-panel{ display:none; animation:bysIn .35s var(--ease-out) both; }
.bys-panel.active{ display:block; }
@keyframes bysIn{ from{ opacity:0; transform:translateY(10px); } to{ opacity:1; transform:none; } }

.bys-h{ font-family:var(--font-sans); font-weight:700; font-size:clamp(24px,3.2vw,32px); letter-spacing:-0.025em; line-height:1.05; margin-bottom:8px; }
.bys-p{ font-size:15px; line-height:1.5; color:var(--n-600); max-width:56ch; margin-bottom:clamp(22px,3.5vh,32px); text-wrap:pretty; }
.bys-p .ai-tag{ display:inline-flex; align-items:center; gap:5px; font-family:var(--font-mono); font-size:10px; font-weight:700; letter-spacing:0.06em; text-transform:uppercase; color:var(--ink); background:var(--volt); border:1px solid var(--ink); padding:2px 7px; border-radius:3px; white-space:nowrap; }
.bys-p .ai-tag svg{ width:11px; height:11px; }

/* ---- STEP 1 · upload ---- */
.bys-grid2{ display:grid; grid-template-columns:1fr; gap:22px; }
@media(min-width:780px){ .bys-grid2{ grid-template-columns:1.1fr 0.9fr; gap:34px; align-items:start; } }

.drop{
  border:1.5px dashed var(--ink); background:var(--paper);
  border-radius:8px; padding:34px 24px; text-align:center;
  display:flex; flex-direction:column; align-items:center; gap:14px;
  transition:background var(--dur-fast) var(--ease-standard), border-color var(--dur-fast) var(--ease-standard);
  cursor:pointer;
}
.drop.drag{ background:var(--volt); border-style:solid; }
.drop .dico{ width:54px; height:54px; border:1.5px solid var(--ink); border-radius:10px; display:flex; align-items:center; justify-content:center; }
.drop .dico svg{ width:26px; height:26px; }
.drop .dh{ font-weight:700; font-size:17px; letter-spacing:-0.01em; }
.drop .dp{ font-size:13px; color:var(--n-600); line-height:1.45; max-width:34ch; }
.drop .dbtn{ font-family:var(--font-sans); font-weight:700; font-size:13px; color:var(--volt); background:var(--ink); border:none; border-radius:5px; padding:11px 18px; }
.drop .dnote{ font-family:var(--font-mono); font-size:10px; letter-spacing:0.04em; color:var(--n-500); display:flex; align-items:center; gap:6px; }
.drop .dnote svg{ width:12px; height:12px; }

/* reading + detected state */
.bys-detect{ border:1.5px solid var(--ink); background:var(--ink); color:var(--paper); border-radius:8px; overflow:hidden; }
.bys-detect .dt-top{ padding:13px 16px; display:flex; align-items:center; gap:10px; border-bottom:1px solid rgba(255,255,255,0.15); }
.bys-detect .dt-top .fz{ width:32px; height:32px; flex:none; background:var(--volt); color:var(--ink); border-radius:6px; display:flex; align-items:center; justify-content:center; }
.bys-detect .dt-top .fz svg{ width:17px; height:17px; }
.bys-detect .dt-name{ font-family:var(--font-mono); font-size:12px; font-weight:700; }
.bys-detect .dt-sub{ font-family:var(--font-mono); font-size:9.5px; letter-spacing:0.06em; text-transform:uppercase; color:var(--n-400); margin-top:2px; display:flex; align-items:center; gap:5px; }
.bys-detect .dt-sub .pulse{ width:6px; height:6px; border-radius:999px; background:var(--volt); animation:bysPulse 1s infinite; }
@keyframes bysPulse{ 0%,100%{ opacity:1; } 50%{ opacity:0.3; } }
.bys-detect .dt-body{ padding:16px; display:flex; flex-direction:column; gap:14px; }
.dt-field{ display:flex; flex-direction:column; gap:6px; }
.dt-field label{ font-family:var(--font-mono); font-size:9.5px; letter-spacing:0.12em; text-transform:uppercase; color:var(--n-400); display:flex; justify-content:space-between; }
.dt-field label .det{ color:var(--volt); }
.dt-input{ display:flex; align-items:center; border:1.5px solid rgba(255,255,255,0.3); border-radius:6px; background:rgba(255,255,255,0.04); }
.dt-input .pre{ font-family:var(--font-mono); font-weight:700; font-size:16px; padding:0 0 0 13px; color:var(--n-300); }
.dt-input input{ flex:1; min-width:0; background:none; border:none; outline:none; color:#fff; font-family:var(--font-mono); font-weight:700; font-size:16px; padding:12px 13px; }
.dt-input .suf{ font-family:var(--font-mono); font-size:11px; color:var(--n-400); padding:0 13px 0 0; }

/* ---- option tiles (goal / home size / solar) ---- */
.bys-field{ margin-bottom:clamp(22px,3.5vh,30px); }
.bys-field > .fl{ font-family:var(--font-mono); font-weight:700; font-size:11px; letter-spacing:0.12em; text-transform:uppercase; color:var(--n-500); margin-bottom:12px; display:flex; align-items:center; gap:8px; }
.bys-field > .fl .num{ width:20px; height:20px; border:1.5px solid var(--ink); border-radius:999px; display:inline-flex; align-items:center; justify-content:center; font-size:10px; color:var(--ink); }
.opts{ display:grid; grid-template-columns:repeat(auto-fit,minmax(150px,1fr)); gap:0; border:1.5px solid var(--ink); border-right:none; border-bottom:none; }
.opt{ text-align:left; background:var(--paper); border-right:1.5px solid var(--ink); border-bottom:1.5px solid var(--ink); padding:16px 16px; cursor:pointer; display:flex; flex-direction:column; gap:7px; transition:background var(--dur-fast) var(--ease-standard); }
.opt:hover{ background:var(--n-050); }
.opt.sel{ background:var(--volt); }
.opt .oi{ width:34px; height:34px; border:1.5px solid var(--ink); display:flex; align-items:center; justify-content:center; }
.opt.sel .oi{ background:var(--ink); color:var(--volt); }
.opt .oi svg{ width:18px; height:18px; }
.opt .oh{ font-weight:700; font-size:15px; letter-spacing:-0.01em; }
.opt .od{ font-size:12.5px; line-height:1.4; color:var(--n-600); }
.opt.sel .od{ color:var(--ink); }

/* segmented (solar yes/no) */
.seg{ display:inline-flex; border:1.5px solid var(--ink); }
.seg button{ background:var(--paper); border:none; border-left:1.5px solid var(--ink); padding:11px 22px; font-family:var(--font-sans); font-weight:700; font-size:14px; cursor:pointer; }
.seg button:first-child{ border-left:none; }
.seg button.sel{ background:var(--ink); color:var(--volt); }

/* ---- nav buttons ---- */
.bys-nav{ display:flex; gap:10px; margin-top:clamp(26px,4vh,38px); align-items:center; }
.bys-btn{ display:inline-flex; align-items:center; justify-content:center; gap:9px; font-family:var(--font-sans); font-weight:700; font-size:14px; border-radius:5px; padding:14px 22px; border:1.5px solid var(--ink); cursor:pointer; transition:transform var(--dur-fast) var(--ease-standard), box-shadow var(--dur-fast) var(--ease-standard), background var(--dur-fast) var(--ease-standard); }
.bys-btn svg{ width:17px; height:17px; }
.bys-btn.primary{ background:var(--volt); color:var(--ink); box-shadow:4px 4px 0 0 var(--ink); }
.bys-btn.primary:hover{ transform:translate(2px,2px); box-shadow:0 0 0 0 var(--ink); }
.bys-btn.primary:disabled{ opacity:0.4; pointer-events:none; box-shadow:none; }
.bys-btn.ghost{ background:none; color:var(--ink); }
.bys-btn.ghost:hover{ background:var(--n-050); }
.bys-skip{ margin-left:auto; font-family:var(--font-mono); font-size:11px; letter-spacing:0.06em; text-transform:uppercase; color:var(--n-500); background:none; border:none; cursor:pointer; }
.bys-skip:hover{ color:var(--ink); }

/* ============================================================
   STEP 3 · RESULTS
   ============================================================ */
.bys-result{ display:grid; grid-template-columns:1fr; gap:0; border:1.5px solid var(--ink); }
@media(min-width:880px){ .bys-result{ grid-template-columns:1fr 380px; } }

/* left: recommendation */
.res-main{ padding:clamp(22px,3.5vh,32px); }
.res-tag{ font-family:var(--font-mono); font-weight:700; font-size:10px; letter-spacing:0.16em; text-transform:uppercase; color:var(--n-500); margin-bottom:10px; }
.res-name{ font-family:var(--font-sans); font-weight:700; font-size:clamp(28px,3.6vw,40px); letter-spacing:-0.03em; line-height:1; }
.res-config{ font-family:var(--font-mono); font-size:13px; color:var(--ink); margin-top:10px; letter-spacing:0.01em; }
.res-config b{ background:var(--volt); padding:1px 5px; }
.res-copy{ font-size:14px; line-height:1.5; color:var(--n-600); margin-top:14px; max-width:46ch; text-wrap:pretty; }

.res-specs{ display:grid; grid-template-columns:repeat(3,1fr); border:1.5px solid var(--ink); margin-top:22px; }
.res-spec{ padding:14px 14px; border-left:1.5px solid var(--ink); }
.res-spec:first-child{ border-left:none; }
.res-spec .v{ font-family:var(--font-mono); font-weight:700; font-size:21px; letter-spacing:-0.02em; font-variant-numeric:tabular-nums; }
.res-spec .k{ font-family:var(--font-mono); font-size:9px; letter-spacing:0.08em; text-transform:uppercase; color:var(--n-500); margin-top:3px; }

/* battery bar */
.res-batt{ margin-top:22px; }
.res-batt .bl{ font-family:var(--font-mono); font-size:9.5px; letter-spacing:0.12em; text-transform:uppercase; color:var(--n-500); margin-bottom:8px; display:flex; justify-content:space-between; }
.res-batt-stack{ display:flex; gap:4px; height:46px; border:2px solid var(--ink); padding:4px; background:#0d1013; }
.res-mod{ flex:1; position:relative; background:#15191d; overflow:hidden; }
.res-mod .f{ position:absolute; inset:0; background:linear-gradient(0deg,#C8E000,#E5FF03); transform:scaleY(0); transform-origin:bottom; transition:transform .5s var(--ease-out); }
.res-mod.on .f{ transform:scaleY(1); }
.res-mod.ghost{ opacity:0.5; border:1px dashed rgba(255,255,255,0.25); }

/* right: price + rebates console */
.res-side{ background:var(--ink); color:var(--paper); padding:clamp(20px,3vh,26px); display:flex; flex-direction:column; }
.res-side .sl{ font-family:var(--font-mono); font-size:9.5px; letter-spacing:0.14em; text-transform:uppercase; color:var(--n-400); }
.price-row{ display:flex; align-items:baseline; justify-content:space-between; padding:11px 0; border-bottom:1px solid rgba(255,255,255,0.12); font-family:var(--font-mono); }
.price-row .lab{ font-size:12px; color:var(--n-300); display:flex; align-items:center; gap:7px; }
.price-row .lab small{ color:var(--n-500); font-size:10px; }
.price-row .val{ font-size:14px; font-weight:700; color:#fff; font-variant-numeric:tabular-nums; }
.price-row .val.minus{ color:var(--volt); }
.price-row.total{ border-bottom:none; padding-top:15px; }
.price-row.total .lab{ font-size:11px; letter-spacing:0.1em; text-transform:uppercase; color:var(--n-400); }
.price-row.total .val{ font-size:27px; letter-spacing:-0.02em; }
.res-finance{ font-family:var(--font-mono); font-size:11px; color:var(--n-300); margin:4px 0 0; }
.res-finance b{ color:var(--volt); }
.res-savings{ margin-top:16px; border:1px solid rgba(255,255,255,0.18); border-radius:6px; padding:13px 14px; display:flex; gap:16px; }
.res-savings div{ font-family:var(--font-mono); }
.res-savings .v{ font-weight:700; font-size:17px; color:var(--volt); font-variant-numeric:tabular-nums; }
.res-savings .k{ font-size:9px; letter-spacing:0.08em; text-transform:uppercase; color:var(--n-400); margin-top:3px; }
.res-cta{ margin-top:18px; display:flex; flex-direction:column; gap:9px; }
.res-cta .bys-btn{ width:100%; }
.res-cta .bys-btn.primary{ box-shadow:4px 4px 0 0 var(--volt); border-color:var(--volt); }
.res-cta .bys-btn.primary:hover{ box-shadow:0 0 0 0 var(--volt); }
.res-cta .bys-btn.line{ background:none; color:#fff; border-color:rgba(255,255,255,0.4); }
.res-cta .bys-btn.line:hover{ background:rgba(255,255,255,0.08); }
.res-fine{ font-family:var(--font-mono); font-size:9.5px; line-height:1.5; letter-spacing:0.02em; color:var(--n-500); margin-top:14px; text-align:center; }

/* demo ribbon */
.bys-demo-ribbon{ display:inline-flex; align-items:center; gap:7px; font-family:var(--font-mono); font-size:10px; font-weight:700; letter-spacing:0.1em; text-transform:uppercase; color:var(--ink); background:var(--volt); border:1.5px solid var(--ink); padding:6px 11px; border-radius:4px; margin-bottom:20px; }
.bys-demo-ribbon svg{ width:13px; height:13px; }

@media (prefers-reduced-motion: reduce){
  .bys-panel, .res-mod .f{ animation:none !important; transition:none !important; }
}
