/* ============================================================
   VAGPULSE — site-polish.css
   ADDITIVE overrides. Safe to append after styles.css?v=5.
   No ids/classes/data-* renamed or removed; no JS-driven
   properties fought (transforms set by app.js are untouched).
   ============================================================ */

/* ── 0. shared tokens: one radius + shadow language across all cards ── */
:root{
  --r-md:14px; --r-lg:16px;
  --card-line:rgba(124,175,255,.16);          /* one border color for every card */
  --card-line-hover:rgba(91,160,255,.45);     /* one hover color (was green on .cablecard) */
  --shadow-card:0 18px 44px -24px rgba(16,16,16,.75);
}

/* ── 1. type hierarchy: balanced headings, calmer body measure ── */
h1,h2,h3{text-wrap:balance}                       /* why: no orphan words in big display type */
.lead,.section-head p,.scan-tip{text-wrap:pretty}
.section-head p{font-size:1.06rem;max-width:640px;margin-left:auto;margin-right:auto}
.section-head p b,.lead b{color:#dbe9ff}          /* why: bolds were same color as body — now read as emphasis */
.section-head h2{letter-spacing:.01em}

/* ── 2. tighter vertical rhythm (page was very airy between sections) ── */
.section{padding-top:4.75rem;padding-bottom:4.75rem}
.section-head{margin-bottom:2.6rem}
.featrow{margin-bottom:3.4rem}                    /* why: 4rem gaps made Capabilities feel endless */
.cta{padding-top:5rem;padding-bottom:5rem}
.hero-center{padding-top:4.75rem}                 /* why: leaves headroom for the incoming .preorder-bar
                                                     without pushing the app frame below the fold */

/* ── 3. buttons: consistent radius, real hover/active/focus states ── */
.btn{border-radius:12px;letter-spacing:.01em;-webkit-tap-highlight-color:transparent}
.btn-primary:hover{transform:translateY(-1.5px);
  box-shadow:0 16px 36px -10px rgba(32,128,255,.6),inset 0 1px 0 rgba(255,255,255,.22)}
.btn:active{transform:translateY(0) scale(.985)}  /* why: click feedback was missing */
.btn-ghost{background:rgba(124,175,255,.05);border-color:rgba(124,175,255,.22)}
.btn-ghost:hover{background:rgba(32,128,255,.10);border-color:var(--accent2);color:#dbe9ff}

/* ── 4. keyboard focus (there was none anywhere on the page) ── */
a:focus-visible,button:focus-visible,summary:focus-visible{
  outline:2px solid var(--accent2);outline-offset:3px;border-radius:8px}
.seg button:focus-visible,.sf-tab:focus-visible{outline-offset:1px}
.sf-tab,.seg button,summary{-webkit-tap-highlight-color:transparent}

/* ── 5. nav: subtle depth + animated link underline ── */
.nav{background:rgba(26,32,42,.82);box-shadow:0 12px 32px -22px rgba(16,16,16,.85)}
.nav-links a:not(.btn){position:relative;padding:.25rem 0;transition:color .15s}
.nav-links a:not(.btn)::after{content:"";position:absolute;left:0;right:100%;bottom:-2px;height:2px;
  border-radius:2px;background:linear-gradient(90deg,var(--accent),var(--lime));transition:right .22s ease}
.nav-links a:not(.btn):hover::after{right:0}     /* why: hover was a bare color swap */

/* ── 6. hero: glassy eyebrow + divided stats ── */
.eyebrow{background:rgba(32,128,255,.07);border-color:rgba(91,160,255,.28);
  -webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px)}
.hero-stats{gap:0}
.hero-stats>div{padding-left:1.5rem;padding-right:1.5rem;border-left:1px solid rgba(124,175,255,.18)}
.hero-stats>div:first-child{border-left:none}     /* why: stats floated loose; dividers group them */

/* ── 7. cards: ONE card language (bg2 gradient / --card-line / --r-md / lift) ── */
.card,.step,.ms,.faq details,.cablecard{border-radius:var(--r-md);border-color:var(--card-line)}
.card,.step{box-shadow:var(--shadow-card)}
.card:hover{border-color:var(--card-line-hover)}
.step{transition:border-color .2s,transform .2s}
.step:hover{border-color:var(--card-line-hover);transform:translateY(-2px)}
.ms{transition:border-color .2s,transform .2s}
.ms:hover{border-color:var(--card-line-hover);transform:translateY(-2px)}
/* body-scoped: .cablecard is (re)declared in an inline <style> INSIDE <body>,
   which beats head styles in the cascade — extra specificity needed here */
body .cablecard{border-color:var(--card-line);transition:border-color .2s,transform .2s,box-shadow .2s}
body .cablecard:hover{border-color:var(--card-line-hover);transform:translateY(-2px);
  box-shadow:var(--shadow-card)}                  /* why: old hover flashed GREEN — off-palette */
.card-ic{background:linear-gradient(160deg,#22314a,#1e2938);border-color:rgba(91,160,255,.22)}
.feat-tag{background:rgba(182,255,58,.06)}        /* why: chip was hollow; faint fill anchors it */

/* ── 8. screenshot frames: consistent radius + hover ring (bare stays bare) ── */
.shotframe,.scanwrap,.shotcard{border-radius:var(--r-lg)}
.shotcard{transition:transform .15s ease-out,box-shadow .25s}
.shotcard:not(.bare):hover{box-shadow:0 40px 90px -40px rgba(16,16,16,.9),0 0 0 1px rgba(91,160,255,.32)}
.sf-tab{transition:background .15s,color .15s}
.sf-tab:hover:not(.on){background:rgba(124,175,255,.08)}

/* ── 9. comparison table: column framing + row hover + dimmed competitors ── */
.compare th,.compare td{border-bottom-color:rgba(36,51,69,.7)}
.compare td:not(.hl):not(:first-child){color:var(--faint)}  /* why: hierarchy — VAGPULSE column pops */
.compare th.hl,.compare td.hl{border-left:1px solid rgba(32,128,255,.30);border-right:1px solid rgba(32,128,255,.30)}
.compare thead th.hl{border-top:1px solid rgba(32,128,255,.30);border-radius:10px 10px 0 0;
  background:linear-gradient(180deg,#23364f,#1e2c40)}
.compare tbody tr:last-child td.hl{border-bottom:1px solid rgba(32,128,255,.30);border-radius:0 0 10px 10px}
.compare tbody tr{transition:background .15s}
.compare tbody tr:hover{background:rgba(91,160,255,.05)}
.compare tbody tr:hover td.hl{background:#22334c}

/* ── 10. pricing card: blue glow ring, cleaner list, cable line leads ── */
.price{box-shadow:0 30px 70px -30px rgba(32,128,255,.4),0 0 0 1px rgba(91,160,255,.18)}
.price .tag{font-family:var(--head);text-transform:uppercase;letter-spacing:.08em;
  box-shadow:0 6px 18px -6px var(--accent)}
.price li{border-bottom-color:rgba(37,48,65,.9)}
.price li:last-child{border-bottom:none}
.price li b{color:var(--txt)}
.price li:first-child{color:var(--txt)}           /* why: "cable included" is the differentiator */
.price li:first-child:before{color:var(--lime)}
.price-amt{letter-spacing:-.02em}

/* ── 11. FAQ: hover + open affordance ── */
.faq details{transition:border-color .2s,background .2s}
.faq details:hover{border-color:var(--card-line-hover)}
.faq details[open]{border-color:rgba(91,160,255,.4);background:linear-gradient(180deg,var(--bg2),#1f2b3c)}
.faq summary{transition:color .15s}
.faq summary:hover{color:var(--accent2)}

/* ── 12. small accents ── */
.trust{background:linear-gradient(90deg,rgba(36,47,62,.2),rgba(36,47,62,.6),rgba(36,47,62,.2));
  font-family:var(--head);font-weight:600;color:#7e93aa}   /* why: ties the strip to the display face */
.dyno-readout div:last-child b{color:var(--lime)}          /* why: "+36%" is the money number */
.footer{padding-top:3rem;background:linear-gradient(180deg,transparent,rgba(26,32,42,.6))}
.footlinks a{transition:color .15s}
.footlinks a:hover{color:#dbe9ff}

/* ── 13. themed scrollbars on the two horizontal scrollers ── */
.table-wrap,.sf-tabs{scrollbar-width:thin;scrollbar-color:#34445b transparent}
.table-wrap::-webkit-scrollbar,.sf-tabs::-webkit-scrollbar{height:8px}
.table-wrap::-webkit-scrollbar-thumb,.sf-tabs::-webkit-scrollbar-thumb{background:#34445b;border-radius:4px}
.table-wrap::-webkit-scrollbar-track,.sf-tabs::-webkit-scrollbar-track{background:transparent}

/* ── 14. back-to-top: bottom-RIGHT (was centered — collided with CTAs) ── */
.totop{left:auto;right:1.4rem;bottom:1.4rem;transform:translateY(12px)}
.totop.show{transform:translateY(0)}              /* JS only toggles .show — safe */

/* ── 15. PREORDER-READY (new decorative classes; markup lands separately) ── */
/* announcement bar — place as first child of <body>, before the nav; it
   scrolls away naturally while the sticky nav keeps top:0 */
.preorder-bar{display:flex;align-items:center;justify-content:center;gap:.6rem;flex-wrap:wrap;
  padding:.55rem 5vw;text-align:center;font-size:.9rem;font-weight:600;color:#eaf6d2;
  background:linear-gradient(90deg,rgba(143,212,0,.16),rgba(32,128,255,.14) 60%,rgba(143,212,0,.16));
  border-bottom:1px solid rgba(182,255,58,.25)}
.preorder-bar b{color:var(--lime)}
.preorder-bar a{color:var(--lime);font-weight:700;text-decoration:underline;text-underline-offset:3px}
.preorder-bar a:hover{color:#d3ff7a}
/* pill chip for pricing card / hero ("Cable ships end of August") */
.preorder-pill{display:inline-flex;align-items:center;gap:.4rem;margin:.2rem 0 .9rem;padding:.3rem .8rem;
  border:1px solid rgba(182,255,58,.35);border-radius:30px;background:rgba(182,255,58,.08);
  color:var(--lime);font-family:var(--head);font-size:.78rem;letter-spacing:.08em;text-transform:uppercase}
/* standalone screenshot frame — replaces the inline-styled transmission wrapper */
.shot-solo{max-width:920px;margin:0 auto 28px;padding:0 20px}
.shot-solo img{display:block;width:100%;border-radius:var(--r-lg);
  border:1px solid rgba(124,175,255,.22);box-shadow:0 24px 60px -24px rgba(16,16,16,.7)}

/* ── 16. mobile polish ── */
@media(max-width:880px){
  .nav{padding:.7rem 5vw}
}
@media(max-width:640px){
  .section{padding-top:3.6rem;padding-bottom:3.6rem}   /* why: desktop air reads as emptiness on phones */
  .hero-center{padding-top:3.4rem}
  .cta{padding-top:4rem;padding-bottom:4rem}
  .hero-stats{flex-wrap:wrap;justify-content:center}
  .hero-stats>div{padding-left:1rem;padding-right:1rem}
  .config{padding:1.3rem}
  .featrow{margin-bottom:2.8rem;gap:1.4rem}
  .compare{font-size:.88rem}
  .trust{gap:.8rem;font-size:.72rem}
  .totop{right:1rem;bottom:1rem;width:42px;height:42px}
}
@media(max-width:420px){
  .hero-stats>div{border-left:none}                    /* why: dividers dangle once stats wrap */
}

/* ── 17. respect reduced motion for the new micro-interactions ── */
@media(prefers-reduced-motion:reduce){
  .btn-primary:hover,.btn:active,.step:hover,.ms:hover,.cablecard:hover{transform:none}
  .nav-links a:not(.btn)::after{transition:none}
}

/* ── polish pass (on live base): trust row, mobile nav, image CLS ───────────── */
.trust-row{display:flex;flex-wrap:wrap;gap:.4rem 1.1rem;justify-content:center;
  margin:.9rem 0 0;font-size:.8rem;color:#8fa3b8;line-height:1.4;text-align:center}
.trust-row span{white-space:nowrap;display:inline-flex;align-items:center;gap:.3rem}
.trust-row a{color:#9fc3e8;text-decoration:none}
.trust-row a:hover{text-decoration:underline}
.sf-img{aspect-ratio:1280/808}
.nav-toggle{display:none;background:none;border:0;cursor:pointer;padding:.45rem;
  flex-direction:column;gap:5px;margin-left:auto}
.nav-toggle span{display:block;width:22px;height:2px;background:#cfe0f2;border-radius:2px;transition:.2s}
@media (max-width:880px){
  .nav-toggle{display:flex}
  .nav-links{position:absolute;top:100%;left:0;right:0;flex-direction:column;align-items:stretch;
    gap:0;background:#0e1826;border-bottom:1px solid rgba(120,150,190,.18);
    max-height:0;overflow:hidden;transition:max-height .25s ease;padding:0}
  .nav.nav-open .nav-links{max-height:360px}
  .nav-links a:not(.btn){display:block!important;padding:.85rem 1.2rem;
    border-top:1px solid rgba(120,150,190,.10)}
  .nav-links a.btn{display:block;margin:.65rem 1.2rem .95rem;text-align:center}
  .nav.nav-open .nav-toggle span:nth-child(1){transform:translateY(7px) rotate(45deg)}
  .nav.nav-open .nav-toggle span:nth-child(2){opacity:0}
  .nav.nav-open .nav-toggle span:nth-child(3){transform:translateY(-7px) rotate(-45deg)}
}
