/* FOVEA Systems - comparison entry, tray, one-screen compare view and RFQ dialog */

/* ---------- shared: add-to-compare control ---------- */
.cmp-add{display:inline-flex;align-items:center;gap:6px;font-family:'IBM Plex Mono',monospace;font-size:11px;letter-spacing:.12em;text-transform:uppercase;padding:7px 13px;border:1px solid currentColor;border-radius:999px;opacity:.72;cursor:pointer;white-space:nowrap;user-select:none;transition:opacity .25s,background .25s,color .25s,border-color .25s}
.cmp-add:hover{opacity:1;background:rgba(255,180,84,.16)}
.cmp-add[data-active="1"]{opacity:1;background:#0A0D13;color:#FFB454;border-color:#0A0D13}
.cmp-add i{font-style:normal;font-size:13px;line-height:1}
.cmp-add[data-active="1"] i{font-size:0}
.cmp-add[data-active="1"] i::after{content:"\2713";font-size:13px}
.cmp-add-lg{font-size:12px;padding:13px 20px;opacity:1}
.sh-top .cmp-add{margin-left:auto}
.rel-card .cmp-add{margin-top:16px;opacity:1}
.cmp-link{display:inline-flex!important}
.cmp-dot{display:inline-flex;align-items:center;justify-content:center;min-width:18px;height:18px;padding:0 5px;border-radius:999px;background:#FFB454;color:#0A0D13;font-family:'IBM Plex Mono',monospace;font-size:10px;font-style:normal;letter-spacing:0}

/* ---------- shared: floating compare tray ---------- */
.cm-tray{position:fixed;left:50%;bottom:24px;transform:translate(-50%,16px);z-index:1150;display:flex;align-items:center;gap:18px;padding:10px 10px 10px 22px;border-radius:10px;background:#0A0D13;color:#F5F3EE;border:1px solid rgba(255,180,84,.35);box-shadow:0 18px 60px rgba(0,0,0,.34);opacity:0;pointer-events:none;transition:opacity .3s,transform .3s;max-width:calc(100vw - 32px)}
.cm-tray[data-show="1"]{opacity:1;pointer-events:auto;transform:translate(-50%,0)}
.cm-tray-n{font-family:'IBM Plex Mono',monospace;font-size:12px;letter-spacing:.1em;white-space:nowrap}
.cm-tray-n b{color:#FFB454}
.cm-tray-go{display:inline-flex;align-items:center;gap:8px;background:#FFB454;color:#0A0D13;text-decoration:none;font-family:'IBM Plex Mono',monospace;font-size:11px;letter-spacing:.12em;text-transform:uppercase;padding:11px 18px;border-radius:6px;white-space:nowrap}
.cm-tray-go i{font-style:normal}
.cm-tray-x{background:none;border:0;color:rgba(245,243,238,.6);font-size:20px;line-height:1;cursor:pointer;padding:4px 8px}
.cm-tray-x:hover{color:#FFB454}

/* ---------- native cursor restore ----------
   fovea.css hides the system pointer in @media(pointer:fine) and relies on
   the #camCur viewfinder element. Pages/dialogs without that element must
   opt back into the native pointer, otherwise the mouse disappears entirely. */
/* Unified viewfinder cursor: the #camCur element (fovea.css) is the SINGLE site
   cursor on every page and every dialog — the page, the in-page comparison, the
   full-screen compare layer, and the RFQ / consult forms. No native-pointer
   overrides anywhere, so the mouse is the same reticle across the whole site.
   Form fields keep a visible blinking caret so typing is never ambiguous. */
.cv input,.cv textarea,.rfq input,.rfq textarea,.consult input,.consult textarea{caret-color:#0A0D13}
/* Force the viewfinder everywhere inside the dialogs too — no native hand/pointer
   on any button, switch or card — so the whole site shares one cursor. */
.cv *,.rfq *,.consult *{cursor:none!important}

/* ---------- one-screen compare view ---------- */
.cv{position:fixed;inset:0;z-index:1400;display:none;background:#0A0D13;color:#F5F3EE}
.cv[data-open="1"]{display:block}
.cv-bg{display:none}
.cv-shell{position:relative;z-index:1;height:100dvh;display:grid;grid-template-rows:auto auto minmax(0,1fr) auto;gap:clamp(9px,1.15vh,16px);padding:clamp(13px,2vh,26px) clamp(16px,2vw,34px) clamp(12px,1.8vh,22px);max-width:1840px;margin:0 auto}
/* The comparison layer shares the site viewfinder cursor (no native pointer). */

/* ---------- in-page section (detail page) ----------
   On the detail page the comparison is a real section in the document flow,
   not a pop-up layer. It stays one viewport tall, but runs wider than the
   rest of the page (.wrap is capped at 1360px site-wide). */
.cv-section{padding:0!important;background:#0A0D13;color:#F5F3EE;position:relative;overflow:hidden;z-index:2}
.cv-inline-host{width:100%}
.cv.cv-inline{position:relative;inset:auto;z-index:1;display:block;height:auto;background:transparent}
/* top padding clears the fixed 72px navigation; bottom stays tight so the
   amber CTA remains inside the viewport. */
.cv.cv-inline .cv-shell{height:100dvh;min-height:620px;max-width:1840px;padding:calc(72px + clamp(12px,1.8vh,24px)) clamp(16px,1.6vw,30px) clamp(12px,1.8vh,22px);margin:0 auto}
.cv.cv-inline .cv-x{display:none}
.cv.cv-inline .cv-top-r{gap:10px}
/* The detail page ships the viewfinder cursor and the in-page comparison keeps
   it too — the mouse is the same reticle everywhere on the site. */
/* The comparison is already on the page, so the floating tray and the
   back-to-top button must not cover its title or its amber CTA. */
body[data-cmp-inline="1"] .cm-tray{display:none!important}
body[data-cmp-inline="1"] #toTop{z-index:1}

.cv-top{display:flex;justify-content:space-between;align-items:flex-start;gap:24px}
.cv-kick{font-family:'IBM Plex Mono',monospace;font-size:10px;letter-spacing:.24em;color:#FFB454;text-transform:uppercase;display:flex;align-items:center;gap:10px}
.cv-kick::before{content:"";width:26px;height:1px;background:#FFB454}
.cv-top h2{font-size:clamp(24px,2.5vw,38px);font-weight:800;line-height:1.02;margin:8px 0 0;letter-spacing:-.02em}
.cv-top h2 em{color:#FFB454;font-style:italic}
.cv-top-r{display:flex;align-items:center;gap:16px;flex:0 0 auto}
.cv-count{font-family:'IBM Plex Mono',monospace;font-size:10px;letter-spacing:.14em;color:#AAB6CA;text-transform:uppercase;white-space:nowrap}
.cv-count b{color:#FFB454;font-size:15px}
.cv-x{width:46px;height:46px;flex:0 0 46px;border-radius:50%;border:1px solid rgba(245,243,238,.42);background:rgba(245,243,238,.06);color:#F5F3EE;font-size:26px;line-height:1;display:grid;place-items:center;cursor:pointer;transition:background .25s,color .25s,border-color .25s,transform .3s}
.cv-x:hover{background:#FFB454;border-color:#FFB454;color:#0A0D13;transform:rotate(90deg)}

.cv-cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:clamp(12px,1.6vw,26px);min-height:0}
.cv-card{position:relative;height:clamp(128px,17vh,186px);border-radius:clamp(14px,1.6vw,24px);overflow:hidden;transition:transform .35s cubic-bezier(.22,1,.36,1),box-shadow .35s,opacity .25s}
/* comparison cards keep the unified viewfinder cursor */
.cv-card[data-active="0"]{opacity:.52}
.cv-card[data-active="0"]:hover{opacity:.8}
.cv-card.drag{opacity:.35}
.cv-card.over{box-shadow:0 0 0 3px #FFB454}
.cv-card img{position:absolute;z-index:1;right:1%;bottom:-8%;width:58%;height:92%;object-fit:contain;object-position:right bottom;pointer-events:none}
.cv-card-txt{position:absolute;z-index:2;left:clamp(16px,1.8vw,28px);top:clamp(15px,1.8vh,26px);max-width:54%}
.cv-card-name{font-size:clamp(22px,2.3vw,34px);font-weight:800;line-height:1;letter-spacing:-.02em}
.cv-card-kind{font-family:'IBM Plex Mono',monospace;font-size:9.5px;letter-spacing:.12em;text-transform:uppercase;opacity:.72;margin-top:9px;line-height:1.4}
.cv-card-tag{font-family:'IBM Plex Mono',monospace;font-size:9px;letter-spacing:.14em;text-transform:uppercase;opacity:.6;margin-top:clamp(10px,1.9vh,22px)}
.cv-card-check{position:absolute;z-index:3;right:clamp(14px,1.6vw,24px);top:clamp(13px,1.6vh,22px);width:30px;height:30px;border-radius:50%;border:1px solid currentColor;display:grid;place-items:center;font-size:16px;cursor:pointer;background:rgba(255,255,255,.1)}
.cv-card[data-active="1"] .cv-card-check{background:#FFB454;border-color:#FFB454;color:#0A0D13}
.cv-empty{grid-column:1/-1;display:grid;place-items:center;font-family:'IBM Plex Mono',monospace;font-size:11px;color:#AAB6CA;text-align:center}

.cv-panel{min-height:0;display:grid;grid-template-rows:auto minmax(0,1fr);border-top:1px solid rgba(245,243,238,.14)}
.cv-panel-bar{display:flex;justify-content:space-between;align-items:center;gap:18px;border-bottom:1px solid rgba(245,243,238,.14);padding:clamp(7px,1.1vh,13px) 0}
.cv-groups{display:flex;flex-wrap:wrap;gap:clamp(14px,2.4vw,38px)}
.cv-group{background:none;border:0;color:rgba(245,243,238,.42);font-size:clamp(14px,1.35vw,20px);font-weight:600;cursor:pointer;padding:0 0 7px;border-bottom:2px solid transparent;transition:color .25s,border-color .25s;letter-spacing:-.01em;white-space:nowrap}
.cv-group:hover{color:rgba(245,243,238,.85)}
.cv-group[data-active="1"]{color:#FFB454;border-bottom-color:#FFB454}
.cv-switch{display:inline-flex;align-items:center;gap:8px;font-family:'IBM Plex Mono',monospace;font-size:10px;letter-spacing:.12em;text-transform:uppercase;color:#AAB6CA;cursor:pointer;white-space:nowrap}
.cv-switch input{accent-color:#FFB454;width:15px;height:15px;cursor:pointer}
.cv-rows{display:flex;flex-direction:column;justify-content:space-between;overflow:auto;scrollbar-width:none}
.cv-rows::-webkit-scrollbar{display:none}
.cv-row{flex:0 0 auto;display:grid;grid-template-columns:minmax(108px,15%) 1fr;gap:clamp(12px,2vw,32px);align-items:start;padding:clamp(7px,1.1vh,14px) 0;border-top:1px solid rgba(245,243,238,.1)}
.cv-row:first-child{border-top:0}
.cv-row-head{display:flex;flex-wrap:wrap;align-items:center;gap:8px;padding-top:7px}
.cv-row-label{font-family:'IBM Plex Mono',monospace;font-size:10px;letter-spacing:.16em;text-transform:uppercase;color:#AAB6CA;line-height:1.4}
.cv-row-tag{font-family:'IBM Plex Mono',monospace;font-size:8px;letter-spacing:.14em;color:#FFB454;border:1px solid rgba(255,180,84,.5);padding:3px 5px;border-radius:3px}
.cv-vals{display:grid;gap:clamp(14px,2.6vw,42px)}
.cv-val{min-width:0}
.cv-val-sys{font-family:'IBM Plex Mono',monospace;font-size:9px;letter-spacing:.14em;text-transform:uppercase;color:rgba(245,243,238,.42);margin-bottom:4px}
.cv-val-num{font-size:clamp(20px,2.1vw,33px);font-weight:700;letter-spacing:-.025em;line-height:1.05;color:#F5F3EE;overflow-wrap:break-word}
.cv-val-sub{font-size:11px;color:#AAB6CA;margin-top:5px;line-height:1.4}
.cv-best{display:inline-block;font-family:'IBM Plex Mono',monospace;font-size:8px;letter-spacing:.12em;color:#FFB454;border:1px solid rgba(255,180,84,.45);padding:2px 5px;border-radius:3px;margin-left:7px;vertical-align:middle}
.cv-no-diff{font-family:'IBM Plex Mono',monospace;font-size:11px;color:rgba(245,243,238,.5);padding:22px 0}

.cv-foot{display:flex;justify-content:space-between;align-items:center;gap:26px;flex-wrap:wrap;background:#FFB454;color:#0A0D13;border-radius:12px;padding:clamp(12px,1.7vh,20px) clamp(18px,2.2vw,32px)}
.cv-foot-l{display:flex;flex-direction:column;gap:5px;min-width:0}
.cv-foot-l b{font-size:clamp(17px,1.7vw,25px);font-weight:800;letter-spacing:-.01em;line-height:1.1}
.cv-foot-l span{font-size:11.5px;color:rgba(10,13,19,.72);line-height:1.4;max-width:56ch}
.cv-foot-r{display:flex;flex-direction:column;align-items:flex-start;gap:9px;flex:0 0 auto}
.cv-primary{background:#0A0D13;color:#FFB454;border:0;padding:12px 24px;font-size:13px;border-radius:5px;cursor:pointer;font-weight:600;white-space:nowrap;transition:transform .25s}
.cv-primary:hover{transform:translateY(-2px)}
.cv-links{display:flex;gap:20px;flex-wrap:wrap;font-family:'IBM Plex Mono',monospace;font-size:9px;letter-spacing:.12em;text-transform:uppercase}
.cv-links a{color:rgba(10,13,19,.68);text-decoration:none;border-bottom:1px solid rgba(10,13,19,.3);padding-bottom:2px;cursor:pointer}
.cv-links a:hover{color:#0A0D13;border-color:#0A0D13}

/* ---------- RFQ dialog ---------- */
.rfq{position:fixed;inset:0;z-index:1600;display:none;place-items:center;padding:20px}
.rfq[data-open="1"]{display:grid}
.rfq-bg{position:absolute;inset:0;background:rgba(10,13,19,.86);backdrop-filter:blur(6px)}
.rfq-card{position:relative;z-index:1;background:#F5F3EE;color:#0A0D13;width:min(680px,100%);max-height:88vh;overflow:auto;padding:clamp(24px,3vw,40px);border-radius:14px;box-shadow:0 40px 100px rgba(0,0,0,.5)}
/* RFQ form keeps the unified viewfinder cursor; the blinking caret (caret-color
   set above) still marks where you type. */
.rfq-head{display:flex;justify-content:space-between;align-items:flex-start;gap:20px;margin-bottom:22px}
.rfq-head h3{font-size:clamp(24px,2.6vw,34px);font-weight:800;margin:0;line-height:1.05}
.rfq-head p{font-size:12.5px;color:#5f6672;margin:9px 0 0;line-height:1.55;max-width:44ch}
.rfq-x{width:40px;height:40px;flex:0 0 40px;border-radius:50%;border:0;background:#0A0D13;color:#FFB454;font-size:24px;line-height:1;display:grid;place-items:center;cursor:pointer;transition:background .25s,color .25s,transform .3s}
.rfq-x:hover{background:#FFB454;color:#0A0D13;transform:rotate(90deg)}
.rfq-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px}
.rfq-f label{display:block;font-family:'IBM Plex Mono',monospace;font-size:10px;letter-spacing:.14em;text-transform:uppercase;color:#5f6672;margin-bottom:6px}
.rfq-f input,.rfq-f textarea,.rfq-f select{width:100%;border:1px solid rgba(10,13,19,.25);background:#fff;padding:11px 12px;font-size:14px;border-radius:5px;font-family:inherit;color:#0A0D13;caret-color:#0A0D13;transition:border-color .2s,box-shadow .2s}
.rfq-f input:focus,.rfq-f textarea:focus,.rfq-f select:focus{border-color:#0A0D13;outline:none;box-shadow:0 0 0 2px rgba(255,180,84,.85)}
.rfq-f input::placeholder,.rfq-f textarea::placeholder{color:#8b919b}
.rfq-f textarea{resize:vertical;min-height:76px}
.rfq-full{grid-column:1/-1}
.rfq-note{font-size:12px;color:#5f6672;line-height:1.6;margin:16px 0 0}
.rfq-actions{display:flex;align-items:center;gap:16px;flex-wrap:wrap;margin-top:22px}
.rfq-submit{background:#0A0D13;color:#FFB454;border:0;padding:14px 26px;font-size:14px;border-radius:5px;cursor:pointer;font-weight:600}
.rfq-copy{background:none;border:1px solid rgba(10,13,19,.3);padding:12px 18px;font-size:13px;border-radius:5px;cursor:pointer}
.rfq-done{font-family:'IBM Plex Mono',monospace;font-size:12px;letter-spacing:.06em;color:#0A0D13;background:rgba(255,180,84,.35);padding:12px 16px;border-radius:5px;margin-top:18px;line-height:1.7;display:none}
.rfq-done[data-show="1"]{display:block}
.rfq-done pre{white-space:pre-wrap;font-size:11px;max-height:180px;overflow:auto;margin:10px 0 0}

/* ---------- print (all groups, light paper) ---------- */
.cv-print{display:none}
@media print{
  header,.cm-tray,.rfq,.cv-bg,.cv-shell,.tap-ring,#toTop,#camCur{display:none!important}
  .cv{position:static!important;display:block!important;background:#fff!important;color:#0A0D13!important}
  .cv-print{display:block!important;padding:20px 26px;font-family:Arial,sans-serif;color:#0A0D13}
  .cv-print h1{font-size:24px;margin:0 0 6px}
  .cv-print h2{font-size:14px;margin:22px 0 6px;text-transform:uppercase;letter-spacing:.1em;border-bottom:1px solid #bbb;padding-bottom:5px}
  .cv-print p{font-size:11px;color:#444}
  .cv-print .cv-row,.cv-print .cv-val-num,.cv-print .cv-val-sub,.cv-print .cv-val-sys,.cv-print .cv-row-label{color:#0A0D13!important}
  .cv-print .cv-row{border-color:#ddd;padding:7px 0;break-inside:avoid}
  .cv-print .cv-val-num{font-size:16px}
  .cv-print .cv-best,.cv-print .cv-row-tag{border-color:#888;color:#444!important}
  .cv-print-note{margin-top:24px!important;font-size:10px!important}
  /* In-page mode: print only the comparison section, not the whole detail page. */
  body[data-cmp-inline="1"] > header,
  body[data-cmp-inline="1"] > footer,
  body[data-cmp-inline="1"] > section:not(.cv-section),
  body[data-cmp-inline="1"] > .cm-tray,
  body[data-cmp-inline="1"] > .consult,
  body[data-cmp-inline="1"] > .rfq{display:none!important}
}

/* ---------- responsive ---------- */
@media (max-width:900px){
  .cm-tray{gap:12px;padding:10px 10px 10px 16px;width:calc(100vw - 32px);justify-content:space-between}
  .cm-tray-n{font-size:11px}
  .cm-tray-go{padding:10px 12px;font-size:10px}
  .cv-shell{padding:12px 16px 14px;gap:10px}
  .cv.cv-inline .cv-shell{height:100dvh;min-height:0;padding:calc(73px + 8px) 16px 14px;gap:10px}
  .cv-top h2{font-size:22px}
  .cv-kick{font-size:9px}
  .cv-count{display:none}
  .cv-x{width:40px;height:40px;flex-basis:40px;font-size:23px}
  .cv-cards{display:flex;overflow-x:auto;scroll-snap-type:x mandatory;scrollbar-width:none;padding-bottom:4px}
  .cv-cards::-webkit-scrollbar{display:none}
  .cv-card{flex:0 0 76%;scroll-snap-align:start;height:clamp(116px,16vh,148px)}
  .cv-card-name{font-size:23px}
  .cv-card-tag{margin-top:8px}
  .cv-panel-bar{align-items:flex-start;flex-direction:column;gap:4px;padding:6px 0}
  .cv-groups{flex-wrap:nowrap;overflow-x:auto;scrollbar-width:none;gap:16px;padding-bottom:2px;max-width:100%}
  .cv-groups::-webkit-scrollbar{display:none}
  .cv-group{font-size:12.5px;padding-bottom:4px}
  .cv-switch{font-size:8.5px}
  .cv-rows{justify-content:space-between}
  .cv-row{grid-template-columns:1fr;gap:4px;padding:6px 0}
  .cv-row-head{padding-top:0;gap:6px}
  .cv-row-label{font-size:9px}
  .cv-vals{gap:8px}
  .cv-val-num{font-size:17px}
  .cv-val-sub{font-size:9px;margin-top:2px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  .cv-val-sys{font-size:7.5px;letter-spacing:.08em;margin-bottom:2px}
  .cv-foot{flex-direction:column;align-items:flex-start;gap:9px;padding:11px 14px}
  .cv-foot-l b{font-size:15px}
  .cv-foot-l span{font-size:10px}
  .cv-foot-r{flex-direction:row;align-items:center;flex-wrap:wrap;gap:10px;width:100%}
  .cv-primary{padding:10px 16px;font-size:11px}
  .cv-links{gap:10px;font-size:7.5px}
  .rfq-grid{grid-template-columns:1fr}
  .rfq-card{padding:22px;max-height:90vh}
  .sh-top .cmp-add{margin-left:auto}
}
@media (max-width:560px){
  .cmp-add{font-size:10px;padding:6px 10px}
  .sh-top{flex-wrap:wrap}
  .cv-top h2{font-size:19px}
  .cv-card{flex-basis:82%}
  .cv-links{gap:9px}
}
