/* ========================================================================
   FingerprintSwitcher — landing page styles
   Palette: orange / white / black.  Pure HTML+CSS, no JS.
   ======================================================================== */

:root {
  --black:       #0A0A0A;
  --ink:         #1A1A1A;
  --ink-2:       #222;
  --white:       #FFFFFF;
  --cream:       #FAF8F5;
  --muted:       #6B6B6B;
  --muted-dk:    #A0A0A0;
  --orange:      #FF6B1A;
  --orange-deep: #E8510B;
  --orange-soft: #FFE4D1;
  --border:      #ECECEC;
  --border-dk:   #262626;

  --grad-orange: linear-gradient(135deg, #FF6B1A 0%, #FB3D00 100%);
  --grad-orange-soft: linear-gradient(135deg, rgba(255,107,26,.15) 0%, rgba(251,61,0,.05) 100%);

  --radius:   14px;
  --radius-lg: 22px;
  --radius-sm: 8px;

  --ease: cubic-bezier(.2,.8,.2,1);

  --shadow-soft: 0 10px 40px -15px rgba(0,0,0,.18);
  --shadow-card: 0 6px 20px -8px rgba(0,0,0,.12), 0 1px 2px rgba(0,0,0,.04);
  --shadow-orange: 0 12px 30px -10px rgba(255,107,26,.55);

  --wrap: 1180px;

  --font-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Inter, Roboto, system-ui, sans-serif;
  --font-mono: 'SF Mono', Menlo, Consolas, 'Liberation Mono', monospace;
}

/* ---------- reset & base ---------- */
*,*::before,*::after { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  overflow-x: clip;
}
body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--black);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  width: 100%;
  overflow-x: clip;
}
main { overflow-x: clip; }
.section, .hero, .cta-band, .foot, .nav { width: 100%; max-width: 100vw; }
.signals, .signals-orbit { overflow-x: clip; }
img,svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
a:focus-visible, button:focus-visible, .tab-label:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 3px;
  border-radius: 6px;
}
ul,ol { margin: 0; padding: 0; list-style: none; }
h1,h2,h3,h4 { margin: 0; font-weight: 700; letter-spacing: -0.02em; line-height: 1.15; }
h2 { font-size: clamp(1.8rem, 3.2vw, 2.6rem); }
h3 { font-size: 1.2rem; }
p  { margin: 0 0 .8em; }

code {
  font-family: var(--font-mono);
  font-size: 0.92em;
  background: rgba(255,107,26,.08);
  color: var(--orange-deep);
  padding: .1em .35em;
  border-radius: 4px;
}
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }

/* ---------- icons ---------- */
.ico     { width: 28px; height: 28px; color: currentColor; }
.ico-sm  { width: 18px; height: 18px; vertical-align: -3px; color: currentColor; }
.ico-xs  { width: 14px; height: 14px; vertical-align: -2px; color: currentColor; }

/* ---------- buttons ---------- */
.btn {
  --b-bg: var(--white);
  --b-col: var(--ink);
  display: inline-flex;
  align-items: center;
  gap: .55em;
  padding: .72em 1.3em;
  font-weight: 600;
  font-size: 1rem;
  border-radius: 999px;
  background: var(--b-bg);
  color: var(--b-col);
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease),
              background .25s var(--ease), color .25s var(--ease),
              border-color .25s var(--ease);
  white-space: nowrap;
}
.btn-sm  { padding: .55em 1.1em; font-size: .92rem; }
.btn-lg  { padding: .9em 1.6em;  font-size: 1.05rem; }
.btn-block {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  text-align: center;
}

.btn-primary {
  --b-bg: var(--grad-orange);
  --b-col: #fff;
  background: var(--grad-orange);
  box-shadow: var(--shadow-orange);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 18px 40px -10px rgba(255,107,26,.7); }
.btn-primary:active { transform: translateY(0); }

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: rgba(0,0,0,.15);
}
.btn-ghost:hover { border-color: var(--orange); color: var(--orange); }

/* dark-section ghost */
.hero .btn-ghost,
.section-dark .btn-ghost,
.cta-band .btn-ghost,
.plan-free .btn-ghost {
  color: var(--white);
  border-color: rgba(255,255,255,.3);
  background: rgba(255,255,255,.04);
}
.hero .btn-ghost:hover,
.section-dark .btn-ghost:hover,
.plan-free .btn-ghost:hover {
  border-color: var(--orange);
  color: var(--orange);
  background: rgba(255,107,26,.08);
}

/* ---------- nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(10,10,10,.72);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.nav-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 64px;
  color: var(--white);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  letter-spacing: -.01em;
  color: var(--white);
}
.brand-mark {
  width: 34px; height: 34px;
  display: inline-grid; place-items: center;
  background: var(--grad-orange);
  border-radius: 10px;
  color: var(--white);
  box-shadow: 0 4px 14px -4px rgba(255,107,26,.6);
}
.brand-mark .ico { width: 22px; height: 22px; }
.brand-text-accent { color: var(--orange); }

.nav-links {
  display: flex;
  gap: 22px;
  margin-left: auto;
  font-size: .95rem;
}
.nav-links a {
  color: rgba(255,255,255,.78);
  transition: color .2s;
}
.nav-links a:hover { color: var(--white); }

@media (max-width: 960px) {
  .nav-links { display: none; }
  .nav-inner .btn-primary { margin-left: auto; }
}

/* ---------- hero ---------- */
.hero {
  position: relative;
  background: var(--black);
  color: var(--white);
  overflow: hidden;
  padding: 80px 0 100px;
}
.hero-bg { position: absolute; inset: 0; pointer-events: none; }
.hero-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 52px 52px;
  mask-image: radial-gradient(ellipse at 50% 30%, #000 40%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 30%, #000 40%, transparent 80%);
}
.hero-glow {
  position: absolute;
  width: 620px; height: 620px;
  border-radius: 50%;
  filter: blur(80px);
  opacity: .55;
}
.hero-glow-a { background: radial-gradient(circle, rgba(255,107,26,.55), transparent 60%);
               top: -180px; right: -120px; }
.hero-glow-b { background: radial-gradient(circle, rgba(251,61,0,.35), transparent 60%);
               bottom: -200px; left: -140px; }

.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 60px;
  align-items: center;
}
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; gap: 40px; }
}

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 12px;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 999px;
  font-size: .82rem;
  color: rgba(255,255,255,.82);
  background: rgba(255,255,255,.04);
  margin-bottom: 20px;
}
.dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--orange);
  box-shadow: 0 0 0 0 rgba(255,107,26,.6);
  animation: pulse 2.2s ease-out infinite;
}

/* inline library-name links inside hero eyebrow + Free plan feature */
.eyebrow-link,
.plan-link {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px dashed currentColor;
  padding-bottom: 1px;
  transition: color .2s, border-color .2s;
}
.eyebrow-link:hover,
.plan-link:hover {
  color: var(--orange);
  border-bottom-color: var(--orange);
  border-bottom-style: solid;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(255,107,26,.6); }
  80%  { box-shadow: 0 0 0 10px rgba(255,107,26,0); }
  100% { box-shadow: 0 0 0 0 rgba(255,107,26,0); }
}

.headline {
  font-size: clamp(2.1rem, 5.4vw, 3.8rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin: 0 0 18px;
}
.headline-accent {
  background: var(--grad-orange);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.sub {
  color: rgba(255,255,255,.72);
  font-size: 1.08rem;
  max-width: 560px;
  margin-bottom: 30px;
}
.sub strong { color: var(--white); }

.hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 28px; }

.hero-trust {
  display: flex; flex-wrap: wrap; gap: 8px;
  font-size: .78rem;
  color: rgba(255,255,255,.7);
}
.hero-trust li {
  padding: 5px 10px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 999px;
  background: rgba(255,255,255,.03);
}

/* hero art — animated fingerprint scanner */
.hero-art {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 360px;
}
.scanner {
  position: relative;
  width: min(440px, 95%);
  aspect-ratio: 1;
}
.print-svg {
  width: 100%; height: 100%;
  filter: drop-shadow(0 10px 40px rgba(255,107,26,.35));
  animation: sway 9s ease-in-out infinite;
}
@keyframes sway {
  0%,100% { transform: rotate(-2deg); }
  50%     { transform: rotate(2deg); }
}
.print-ridges path { stroke-dasharray: 1 0; }
.print-dots circle { animation: dotpulse 3.5s ease-in-out infinite; }
.print-dots circle:nth-child(2) { animation-delay: .6s; }
.print-dots circle:nth-child(3) { animation-delay: 1.2s; }
.print-dots circle:nth-child(4) { animation-delay: 1.8s; }
.print-dots circle:nth-child(5) { animation-delay: 2.4s; }
@keyframes dotpulse {
  0%,100% { opacity: .2; r: 2; }
  50%     { opacity: 1;  r: 3.4; }
}
.scan-line {
  position: absolute;
  left: 10%; right: 10%;
  top: 50%;
  height: 2px;
  background: linear-gradient(90deg, transparent, #FF6B1A, transparent);
  box-shadow: 0 0 14px rgba(255,107,26,.9);
  animation: scan 4s ease-in-out infinite;
}
@keyframes scan {
  0%,100% { top: 18%; opacity: .4; }
  50%     { top: 82%; opacity: 1; }
}
.scan-ring {
  position: absolute;
  inset: 8%;
  border-radius: 50%;
  border: 1px dashed rgba(255,107,26,.35);
  animation: spin 18s linear infinite;
}
@keyframes spin {
  to { transform: rotate(360deg); }
}

.chip {
  position: absolute;
  padding: 6px 12px;
  font-size: .78rem;
  font-weight: 600;
  color: var(--white);
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,107,26,.45);
  border-radius: 999px;
  backdrop-filter: blur(6px);
  animation: float 6s ease-in-out infinite;
}
.chip-1 { top: 8%;  left: -4%;  animation-delay: 0s; }
.chip-2 { top: 28%; right: -6%; animation-delay: 1.4s; }
.chip-3 { bottom: 22%; left: -2%; animation-delay: 2.6s; }
.chip-4 { bottom: 6%; right: 4%; animation-delay: 3.8s; }
@keyframes float {
  0%,100% { transform: translateY(0); }
  50%     { transform: translateY(-10px); }
}

/* ---------- generic section ---------- */
.section { padding: 100px 0; position: relative; }
.section-light { background: var(--white); color: var(--ink); }
.section-cream { background: var(--cream); color: var(--ink); }
.section-dark  { background: var(--black); color: var(--white); }

.section-head { text-align: center; max-width: 760px; margin: 0 auto 56px; }
.section-head-dark { color: var(--white); }
.section-head h2 { margin-bottom: 16px; }
.section-head .lede { color: var(--muted); font-size: 1.08rem; }
.section-head-dark .lede { color: rgba(255,255,255,.72); }

.kicker {
  display: inline-block;
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 14px;
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
@media (max-width: 860px) {
  .grid-2 { grid-template-columns: 1fr; gap: 48px; }
  .section { padding: 72px 0; }
}

em { color: var(--orange); font-style: normal; font-weight: 700; }
.hl { color: var(--orange); font-weight: 700; }

/* ---------- steps ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  counter-reset: s;
}
@media (max-width: 820px) { .steps { grid-template-columns: 1fr; } }

.step {
  position: relative;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 28px 30px;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s var(--ease);
  overflow: hidden;
}
.step::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--grad-orange);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .5s var(--ease);
}
.step:hover { transform: translateY(-6px); box-shadow: var(--shadow-soft); border-color: rgba(255,107,26,.25); }
.step:hover::before { transform: scaleX(1); }

.step-num {
  font-family: var(--font-mono);
  font-size: .78rem;
  color: var(--muted);
  letter-spacing: .1em;
}
.step-icon {
  display: inline-grid;
  place-items: center;
  width: 52px; height: 52px;
  border-radius: 14px;
  background: var(--orange-soft);
  color: var(--orange-deep);
  margin: 14px 0 18px;
}
.step h3 { margin-bottom: 8px; }
.step p  { color: var(--muted); margin: 0; }

/* ---------- fingerprinting explainer ---------- */
.learn-more { display: flex; gap: 18px; flex-wrap: wrap; margin-top: 18px; }

.link-inline {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--orange-deep);
  font-weight: 600;
  padding-bottom: 2px;
  border-bottom: 1px solid transparent;
  transition: border-color .2s, gap .2s;
}
.link-inline:hover { border-bottom-color: var(--orange); gap: 10px; }
.link-lg { font-size: 1.05rem; }

.link-compact { display: inline; }
.link-compact .nw { white-space: nowrap; }
.link-compact .arr {
  display: inline-block;
  width: 16px; height: 16px;
  vertical-align: -3px;
  transition: transform .25s var(--ease);
}
.link-compact:hover .arr { transform: translateX(4px); }

.steps-cta { text-align: center; margin-top: 40px; }

/* ---------- signals visualisation ---------- */
.signals {
  display: grid;
  place-items: center;
  padding: 20px 0;
}
.signals-orbit {
  position: relative;
  width: 100%;
  max-width: 480px;
  aspect-ratio: 1;
}
.signals-orbit::before,
.signals-orbit::after {
  content: "";
  position: absolute;
  inset: 8%;
  border-radius: 50%;
  border: 1px dashed rgba(255,107,26,.35);
  animation: spin 30s linear infinite;
  pointer-events: none;
}
.signals-orbit::after {
  inset: 24%;
  border-color: rgba(255,107,26,.25);
  animation-duration: 22s;
  animation-direction: reverse;
}

.signals-center {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 128px;
  height: 128px;
  margin: -64px 0 0 -64px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  background: var(--white);
  border: 2px solid var(--orange);
  border-radius: 50%;
  color: var(--orange-deep);
  font-weight: 700;
  font-size: .95rem;
  z-index: 3;
  box-shadow: 0 0 0 10px rgba(255,107,26,.08);
}
.signals-center .ico {
  width: 44px;
  height: 44px;
  color: var(--orange);
  /* fingerprint paths are right-biased; nudge left so visual weight centres */
  transform: translateX(-3px);
}
.signals-center span {
  line-height: 1;
  text-align: center;
  width: 100%;
}

/* the pills wrapper is a layout passthrough on desktop — position:static
   means absolute children resolve to .signals-orbit as containing block   */
.signals-pills { position: static; }

.signal {
  position: absolute;
  padding: 8px 14px;
  font-size: .85rem;
  font-weight: 600;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 999px;
  box-shadow: var(--shadow-card);
  color: var(--ink);
  white-space: nowrap;
  animation: signal-float 8s ease-in-out infinite;
  transform: translate(-50%, -50%);
  z-index: 2;
}
@keyframes signal-float {
  0%,100% { transform: translate(-50%, -50%); }
  50%     { transform: translate(-50%, calc(-50% - 8px)); }
}
/* 8 pills placed evenly around the orbit (centre = 50%/50%)             */
.s-1 { top: 3%;   left: 50%; }                           /* 12 o'clock */
.s-2 { top: 17%;  left: 85%; animation-delay: .5s; }     /* 1:30 */
.s-3 { top: 50%;  left: 97%; animation-delay: 1s; }      /* 3 o'clock */
.s-4 { top: 83%;  left: 85%; animation-delay: 1.5s; }    /* 4:30 */
.s-5 { top: 97%;  left: 50%; animation-delay: 2s; }      /* 6 o'clock */
.s-6 { top: 83%;  left: 15%; animation-delay: 2.5s; }    /* 7:30 */
.s-7 { top: 50%;  left: 3%;  animation-delay: 3s; }      /* 9 o'clock */
.s-8 { top: 17%;  left: 15%; animation-delay: 3.5s; }    /* 10:30 */

/* mobile: drop the orbit, stack the icon + pill cloud */
@media (max-width: 720px) {
  .signals-orbit {
    aspect-ratio: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 22px;
    padding: 10px 0;
  }
  .signals-orbit::before,
  .signals-orbit::after { display: none; }
  .signals-center {
    position: static;
    margin: 0;
    width: 120px;
    height: 120px;
  }
  .signals-pills {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    max-width: 100%;
  }
  .signal {
    position: static;
    transform: none;
    animation: none;
    font-size: .82rem;
    padding: 7px 12px;
  }
}

/* ---------- code tabs ---------- */
.tabs { max-width: 1080px; margin: 0 auto; }
.tab-input { position: absolute; opacity: 0; pointer-events: none; }

.tab-labels {
  display: inline-flex;
  gap: 4px;
  padding: 6px;
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: 999px;
  margin-bottom: 22px;
}
.tab-label {
  padding: 10px 20px;
  font-weight: 600;
  border-radius: 999px;
  color: var(--muted);
  cursor: pointer;
  transition: background .2s, color .2s, box-shadow .2s;
  user-select: none;
  font-size: .95rem;
}
.tab-label:hover { color: var(--ink); }

/* active tab styling — driven purely by :checked sibling */
#tab-pup:checked  ~ .tab-labels label[for="tab-pup"],
#tab-play:checked ~ .tab-labels label[for="tab-play"],
#tab-sel:checked  ~ .tab-labels label[for="tab-sel"] {
  background: var(--grad-orange);
  color: var(--white);
  box-shadow: 0 4px 14px -4px rgba(255,107,26,.55);
}

.panel {
  display: none;
  animation: panel-in .35s var(--ease);
}
@keyframes panel-in {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: none; }
}
#tab-pup:checked  ~ .panel-pup,
#tab-play:checked ~ .panel-play,
#tab-sel:checked  ~ .panel-sel { display: block; }

.panel-install {
  position: relative;
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--ink);
  color: var(--white);
  border-radius: var(--radius);
  padding: 12px 60px 12px 18px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}
.panel-install .label {
  font-family: var(--font-mono);
  font-size: .72rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--orange);
  flex-shrink: 0;
}
.panel-install pre {
  margin: 0;
  flex: 1 1 100%;
  min-width: 0;
  overflow-x: auto;
  max-width: 100%;
}
.panel-install code {
  background: transparent;
  color: var(--white);
  padding: 0;
  font-size: .95rem;
  white-space: pre;
}

.diff {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
@media (max-width: 860px) { .diff { grid-template-columns: 1fr; } }

.diff-col {
  position: relative;
  background: var(--ink);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}
.diff-col header {
  display: flex; align-items: center; gap: 8px;
  padding: 12px 90px 12px 16px;
  background: #131313;
  color: rgba(255,255,255,.7);
  font-size: .82rem;
  font-weight: 600;
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.dot-red, .dot-green {
  width: 10px; height: 10px; border-radius: 50%;
}
.dot-red   { background: #E8510B; }
.dot-green { background: #22c55e; }

.diff-col pre {
  margin: 0;
  padding: 18px 20px;
  overflow-x: auto;
  overflow-y: hidden;
  max-width: 100%;
  font-family: var(--font-mono);
  font-size: .88rem;
  line-height: 1.65;
  color: #E4E4E4;
  scrollbar-color: rgba(255,107,26,.5) transparent;
  scrollbar-width: thin;
}
.diff-col pre::-webkit-scrollbar { height: 6px; }
.diff-col pre::-webkit-scrollbar-track { background: transparent; }
.diff-col pre::-webkit-scrollbar-thumb {
  background: rgba(255,107,26,.4);
  border-radius: 3px;
}
.diff-col code { background: transparent; color: inherit; padding: 0; border-radius: 0; }
.c-kw  { color: #FFAB70; }
.c-str { color: #9ECE6A; }
.c-fn  { color: #7AA2F7; }
.hl-word {
  background: rgba(255,107,26,.22);
  color: #FFD1B3;
  padding: 0 4px;
  border-radius: 3px;
  font-weight: 600;
}
.add {
  display: inline-block;
  background: rgba(255,107,26,.14);
  border-left: 3px solid var(--orange);
  padding-left: 8px;
  margin-left: -11px;
}

/* ---------- copy button ---------- */
.copy-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  font-family: var(--font-sans);
  font-size: .74rem;
  font-weight: 600;
  letter-spacing: .02em;
  color: rgba(255,255,255,.72);
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 6px;
  cursor: pointer;
  transition: color .2s, background .2s, border-color .2s, transform .15s;
  z-index: 4;
  opacity: .85;
}
.copy-btn:hover {
  color: var(--white);
  background: rgba(255,107,26,.18);
  border-color: rgba(255,107,26,.6);
  opacity: 1;
}
.copy-btn:active { transform: translateY(1px); }
.copy-btn.copied {
  color: #22c55e;
  background: rgba(34,197,94,.12);
  border-color: rgba(34,197,94,.5);
}
.copy-btn .copy-ico {
  width: 13px;
  height: 13px;
  color: currentColor;
  display: inline-block;
}
.copy-btn .copy-label { line-height: 1; }

/* on the install bar the button floats over the gradient edge */
.panel-install .copy-btn { top: 50%; transform: translateY(-50%); }
.panel-install .copy-btn:active { transform: translateY(calc(-50% + 1px)); }

@media (max-width: 480px) {
  .copy-btn .copy-label { display: none; }
  .copy-btn { padding: 6px 8px; }
}

.note {
  margin-top: 18px;
  padding: 14px 16px;
  background: var(--orange-soft);
  border: 1px solid rgba(255,107,26,.25);
  border-radius: var(--radius-sm);
  color: var(--ink);
  font-size: .95rem;
}
.note strong { color: var(--orange-deep); }
.note code { background: rgba(255,255,255,.55); color: var(--ink); }

.panel > .link-inline { margin-top: 14px; display: inline-flex; }

/* ---------- GitHub callout ---------- */
.gh-callout {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-top: 22px;
  padding: 20px 22px;
  background: var(--cream);
  border: 1px solid var(--border);
  border-left: 4px solid var(--ink);
  border-radius: var(--radius);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-left-color .25s var(--ease);
}
.gh-callout:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-card);
  border-left-color: var(--orange);
}
.gh-callout .gh-ico {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  color: var(--ink);
  margin-top: 2px;
}
.gh-callout .gh-body { flex: 1; min-width: 0; }
.gh-callout h4 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--ink);
  margin: 0 0 6px;
}
.gh-callout p {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: .92rem;
  line-height: 1.55;
}
.gh-callout .link-inline {
  display: inline;
  align-items: initial;
  gap: 0;
  line-height: 1.45;
  overflow-wrap: anywhere;
}
.gh-callout .link-inline svg {
  display: inline-block;
  width: 14px;
  height: 14px;
  vertical-align: -2px;
  margin-left: 4px;
}
.gh-callout .link-inline strong { font-weight: 700; }

@media (max-width: 520px) {
  .gh-callout { padding: 16px 18px; gap: 12px; }
  .gh-callout .gh-ico { width: 26px; height: 26px; }
}

.fine {
  text-align: center;
  color: var(--muted);
  font-size: .9rem;
  margin-top: 32px;
}

/* ---------- database / stat ---------- */
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 18px 0;
}
.chips li {
  padding: 7px 14px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: .88rem;
  font-weight: 500;
  transition: transform .2s, border-color .2s, color .2s;
}
.chips li:hover { transform: translateY(-2px); border-color: var(--orange); color: var(--orange-deep); }

.stat { display: grid; place-items: center; }
.stat-card {
  position: relative;
  padding: 56px 48px;
  background: var(--black);
  color: var(--white);
  border-radius: var(--radius-lg);
  display: grid;
  place-items: center;
  text-align: center;
  box-shadow: 0 30px 60px -20px rgba(0,0,0,.45);
  overflow: hidden;
  min-width: min(420px, 100%);
}
.stat-card::before {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: inherit;
  background: var(--grad-orange);
  z-index: -1;
  filter: blur(30px);
  opacity: .35;
}
.stat-num {
  font-size: clamp(3rem, 7vw, 4.6rem);
  font-weight: 800;
  letter-spacing: -.04em;
  background: var(--grad-orange);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  line-height: 1;
  animation: count-grow 1s var(--ease) .2s both;
}
.stat-plus { color: var(--orange); -webkit-text-fill-color: var(--orange); }
@keyframes count-grow {
  from { transform: scale(.7); opacity: 0; }
  to   { transform: scale(1);  opacity: 1; }
}
.stat-label {
  margin-top: 10px;
  font-size: 1.05rem;
  color: rgba(255,255,255,.78);
}
.stat-live {
  margin-top: 20px;
  font-size: .82rem;
  color: rgba(255,255,255,.55);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.live-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: #22c55e;
  animation: pulse-green 2s ease-in-out infinite;
}
@keyframes pulse-green {
  0%,100% { box-shadow: 0 0 0 0 rgba(34,197,94,.6); }
  50%     { box-shadow: 0 0 0 8px rgba(34,197,94,0); }
}

/* ---------- pricing ---------- */
.plans {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.25fr);
  gap: 22px;
  max-width: 1020px;
  margin: 0 auto;
}
@media (max-width: 760px) { .plans { grid-template-columns: minmax(0, 1fr); } }

.plan {
  position: relative;
  background: var(--ink);
  border: 1px solid var(--border-dk);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  transition: transform .3s var(--ease), border-color .3s;
  min-width: 0;
  max-width: 100%;
}
.plan:hover { transform: translateY(-6px); }

.plan header { margin-bottom: 24px; }
.plan h3 { font-size: 1.1rem; color: rgba(255,255,255,.7); margin-bottom: 10px; font-weight: 500; }
.plan .price {
  display: inline-flex;
  align-items: baseline;
  gap: 2px;
  color: var(--white);
  font-weight: 800;
  letter-spacing: -.03em;
}
.p-cur { font-size: 1.4rem; color: rgba(255,255,255,.6); margin-right: 4px; }
.p-val { font-size: 3.2rem; line-height: 1; }
.p-per { font-size: 1rem; font-weight: 500; color: rgba(255,255,255,.6); margin-left: 6px; }

.plan-sub { color: rgba(255,255,255,.5); margin: 6px 0 0; font-size: .92rem; }

.plan-feats {
  display: grid; gap: 12px;
  margin: 0 0 28px;
  color: rgba(255,255,255,.85);
  font-size: .95rem;
}
.plan-feats li {
  display: block;
  position: relative;
  padding-left: 28px;
  min-width: 0;
}
.plan-feats li > svg {
  position: absolute;
  left: 0;
  top: 4px;
  color: #22c55e;
}
.plan-feats li.muted { color: rgba(255,255,255,.45); }
.plan-feats li.muted > svg { color: rgba(255,255,255,.3); }
.plan-feats code {
  background: rgba(255,255,255,.08);
  color: var(--orange);
  white-space: nowrap;
  display: inline-block;
  max-width: 100%;
}

.plan-premium {
  background: linear-gradient(160deg, #2a1505 0%, var(--ink) 60%);
  border-color: var(--orange);
  box-shadow: 0 30px 60px -25px rgba(255,107,26,.5);
}
.plan-badge {
  position: absolute;
  top: -12px; right: 28px;
  padding: 5px 12px;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  background: var(--grad-orange);
  color: var(--white);
  border-radius: 999px;
  box-shadow: 0 6px 16px -6px rgba(255,107,26,.7);
}

.price-row { display: grid; gap: 6px; }
.price-alt {
  font-size: .9rem;
  color: rgba(255,255,255,.6);
}
.price-alt strong { color: var(--white); }
.save {
  display: inline-block;
  margin-left: 6px;
  padding: 2px 8px;
  font-size: .72rem;
  font-weight: 700;
  background: rgba(34,197,94,.15);
  color: #22c55e;
  border-radius: 999px;
  letter-spacing: .06em;
  text-transform: uppercase;
}

/* ---------- inline PerfectCanvas link (reuses wherever mentioned) ---------- */
.pc-link {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px dashed currentColor;
  padding-bottom: 1px;
  transition: color .2s, border-color .2s;
}
.pc-link:hover {
  color: var(--orange);
  border-bottom-color: var(--orange);
  border-bottom-style: solid;
}
.section-dark .pc-link:hover,
.plan .pc-link:hover { color: var(--orange); }

/* ---------- Reliability / PerfectCanvas section ---------- */
.reliability-compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  max-width: 1020px;
  margin: 0 auto 40px;
}
@media (max-width: 760px) {
  .reliability-compare { grid-template-columns: 1fr; }
}

.rel-card {
  position: relative;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 28px 28px;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s var(--ease);
  overflow: hidden;
  min-width: 0;
}
.rel-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .5s var(--ease);
}
.rel-card-bad::before  { background: linear-gradient(90deg, #9c9c9c 0%, #6b6b6b 100%); }
.rel-card-good::before { background: var(--grad-orange); }
.rel-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-soft); }
.rel-card:hover::before { transform: scaleX(1); }
.rel-card-good { border-color: rgba(255,107,26,.35); }

.rel-tag {
  display: inline-block;
  padding: 5px 10px;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  border-radius: 999px;
  margin-bottom: 16px;
}
.rel-tag-bad  { background: rgba(10,10,10,.06); color: var(--muted); }
.rel-tag-good { background: var(--orange-soft); color: var(--orange-deep); }

.rel-ico {
  width: 64px;
  height: 64px;
  color: var(--ink);
  display: block;
  margin: 0 0 18px;
}
.rel-card-good .rel-ico { color: var(--ink); }

.rel-card h3 { margin-bottom: 10px; font-size: 1.2rem; }
.rel-card > p { color: var(--muted); margin-bottom: 18px; }
.rel-card code,
.rel-list code {
  background: transparent;
  color: var(--ink);
  padding: 0;
  font-size: .92em;
  font-weight: 600;
  border-radius: 0;
  overflow-wrap: anywhere;
  word-break: break-word;
}
.rel-card-good code,
.rel-list-good code { color: var(--orange-deep); }

.rel-list {
  display: grid;
  gap: 10px;
  font-size: .92rem;
  color: var(--ink);
  padding-top: 6px;
  border-top: 1px dashed var(--border);
}
.rel-list li {
  position: relative;
  padding-left: 26px;
  line-height: 1.5;
  min-width: 0;
}
.rel-list li .ico-sm {
  position: absolute;
  left: 0;
  top: 3px;
  flex-shrink: 0;
}
.rel-list-bad .ico-sm  { color: #9a9a9a; }
.rel-list-good .ico-sm { color: #22c55e; }
.rel-list-bad li { color: var(--muted); }

/* PerfectCanvas spotlight */
.pc-card {
  position: relative;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px 40px 36px;
  max-width: 1020px;
  margin: 0 auto;
  overflow: hidden;
  box-shadow: 0 20px 60px -30px rgba(255,107,26,.35);
}
.pc-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: var(--grad-orange);
}
.pc-badge {
  position: absolute;
  top: 18px;
  right: 22px;
  padding: 5px 11px;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  background: var(--grad-orange);
  color: var(--white);
  border-radius: 999px;
  box-shadow: 0 6px 16px -6px rgba(255,107,26,.55);
}
.pc-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 44px;
  align-items: center;
}
@media (max-width: 820px) {
  .pc-grid { grid-template-columns: 1fr; gap: 32px; }
  .pc-card { padding: 36px 24px 28px; }
  .pc-badge { top: 14px; right: 14px; }
}

.pc-copy .kicker { margin-bottom: 10px; }
.pc-copy h3 {
  font-size: clamp(1.4rem, 2.4vw, 1.9rem);
  letter-spacing: -.02em;
  margin-bottom: 14px;
}
.pc-copy p { color: var(--muted); }
.pc-copy strong { color: var(--ink); }

.pc-visual { padding: 4px 0; }

.pc-steps {
  display: grid;
  gap: 12px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.pc-step {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  align-items: flex-start;
  padding: 16px 18px;
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform .3s var(--ease),
              box-shadow .3s var(--ease),
              border-color .3s var(--ease);
}
.pc-step::before {
  content: "";
  position: absolute;
  top: 0; bottom: 0; left: 0;
  width: 3px;
  background: var(--grad-orange);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform .45s var(--ease);
}
.pc-step:hover {
  transform: translateX(3px);
  border-color: rgba(255,107,26,.3);
  box-shadow: var(--shadow-card);
}
.pc-step:hover::before { transform: scaleY(1); }

.pc-step-icon {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--orange-soft);
  color: var(--orange-deep);
  flex-shrink: 0;
}
.pc-step-icon svg { width: 22px; height: 22px; }

.pc-step-body { min-width: 0; }
.pc-step-num {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: .68rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 2px;
}
.pc-step-body h4 {
  margin: 0 0 4px;
  font-size: .98rem;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -.01em;
}
.pc-step-body p {
  margin: 0;
  font-size: .86rem;
  color: var(--muted);
  line-height: 1.45;
}

/* ---------- BrowserAutomationStudio (BAS) section ---------- */
.bas-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 56px;
  align-items: center;
  max-width: 1120px;
  margin: 0 auto;
}
@media (max-width: 900px) {
  .bas-grid { grid-template-columns: 1fr; gap: 40px; }
}

.bas-copy .kicker { margin-top: 14px; margin-bottom: 12px; display: block; }
.bas-copy h2 {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  letter-spacing: -.02em;
  margin-bottom: 16px;
}
.bas-copy .lede { color: var(--muted); margin-bottom: 18px; }
.bas-copy .lede strong { color: var(--ink); }
.bas-copy p { color: var(--muted); margin-bottom: 16px; }
.bas-copy code {
  background: rgba(255,107,26,.08);
  color: var(--orange-deep);
  padding: 1px 5px;
  font-size: .88em;
}

.bas-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--orange-deep);
  background: var(--orange-soft);
  border-radius: 999px;
}

/* BAS screenshot from official site */
.bas-visual {
  position: relative;
  min-width: 0;
  display: flex;
  justify-content: center;
}
.bas-visual a {
  display: block;
  border-radius: 3px;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
  box-shadow:
    0 50px 100px -20px rgba(0,0,0,.45),
    0 20px 40px -10px rgba(0,0,0,.3),
    0 6px 16px -4px rgba(0,0,0,.2);
}
.bas-visual a:hover {
  transform: translateY(-4px);
  box-shadow:
    0 60px 120px -20px rgba(0,0,0,.55),
    0 24px 50px -10px rgba(0,0,0,.4),
    0 8px 20px -4px rgba(0,0,0,.25);
}
.bas-shot {
  width: 100%;
  max-width: 560px;
  height: auto;
  display: block;
  border-radius: 3px;
}

/* ---------- final CTA band ---------- */
.cta-band {
  background:
    radial-gradient(600px 300px at 50% 0%, rgba(255,107,26,.35), transparent 70%),
    var(--black);
  color: var(--white);
  padding: 90px 0;
  text-align: center;
  border-top: 1px solid rgba(255,255,255,.05);
}
.cta-inner { max-width: 760px; margin: 0 auto; }
.cta-inner h2 { margin-bottom: 12px; }
.cta-inner p {
  color: rgba(255,255,255,.72);
  margin-bottom: 28px;
  font-size: 1.05rem;
}

/* ---------- footer ---------- */
.foot {
  background: var(--black);
  color: rgba(255,255,255,.75);
  padding: 70px 0 0;
  border-top: 1px solid rgba(255,255,255,.06);
}
.foot-inner {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 48px;
  padding-bottom: 48px;
}
@media (max-width: 780px) { .foot-inner { grid-template-columns: 1fr; } }

.foot-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  color: var(--white);
}
.foot-cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
@media (max-width: 600px) { .foot-cols { grid-template-columns: 1fr; gap: 24px; } }

.foot-cols h4 {
  font-size: .78rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 14px;
}
.foot-cols a {
  display: block;
  padding: 4px 0;
  color: rgba(255,255,255,.72);
  font-size: .94rem;
  transition: color .2s;
}
.foot-cols a:hover { color: var(--orange); }

.foot-bottom {
  border-top: 1px solid rgba(255,255,255,.06);
  padding: 20px 0;
  color: rgba(255,255,255,.45);
  font-size: .85rem;
}

/* ---------- scroll reveal (progressive enhancement) ---------- */
@supports (animation-timeline: view()) {
  .reveal {
    animation: reveal-in linear both;
    animation-timeline: view();
    animation-range: entry 0% cover 30%;
  }
  @keyframes reveal-in {
    from { opacity: 0; transform: translateY(24px); }
    to   { opacity: 1; transform: none; }
  }
}

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1 !important; transform: none !important; }
}

/* ---------- utility / small screens ---------- */
@media (max-width: 540px) {
  .wrap { padding: 0 18px; }
  .hero { padding: 60px 0 70px; }
  .hero-trust { font-size: .72rem; }
  .tab-labels { flex-wrap: wrap; border-radius: var(--radius); }
  .panel-install { flex-direction: column; align-items: flex-start; }
}

/* ---------- large screens (≥1600 px): widen containers ---------- */
@media (min-width: 1600px) {
  .wrap { max-width: 1360px; }
  .tabs { max-width: 1240px; }
  .plans,
  .reliability-compare,
  .pc-card { max-width: 1200px; }
  .section { padding: 120px 0; }
  .hero { padding: 100px 0 120px; }
  .scanner { width: min(500px, 95%); }
  .signals-orbit { max-width: 520px; }
  .stat-card { min-width: min(460px, 100%); padding: 64px 56px; }
  .headline { font-size: clamp(2.6rem, 5vw, 5rem); }
  .stat-num { font-size: clamp(3.4rem, 6.4vw, 5.6rem); }
  .pc-copy h3 { font-size: clamp(1.6rem, 2.2vw, 2.2rem); }
  .cta-band h2,
  .cta-inner h2 { font-size: clamp(2rem, 3vw, 3rem); }
}

/* ---------- ultra-wide (≥2000 px): scale the rem base too ---------- */
@media (min-width: 2000px) {
  html { font-size: 17px; }
  .wrap { max-width: 1520px; }
  .tabs { max-width: 1360px; }
  .plans,
  .reliability-compare,
  .pc-card { max-width: 1320px; }
  .section { padding: 140px 0; }
  .hero { padding: 120px 0 140px; }
  .scanner { width: min(580px, 95%); }
  .signals-orbit { max-width: 580px; }
  .stat-card { min-width: min(520px, 100%); padding: 80px 72px; }
}

/* ---------- 4K+ (≥2800 px): one more step ---------- */
@media (min-width: 2800px) {
  html { font-size: 19px; }
  .wrap { max-width: 1760px; }
  .tabs { max-width: 1540px; }
  .plans,
  .reliability-compare,
  .pc-card { max-width: 1480px; }
  .scanner { width: min(660px, 95%); }
  .signals-orbit { max-width: 640px; }
}
