/* ==========================================================================
   IPTV Andorra — Pro Theme Architecture (Sleek Tech Hardware Lab)
   Domain: https://iptvandorra.online/
   ========================================================================== */

/* 01. Tokens & Reset */
:root {
  --neu: #f2f5f8;
  --papel: #ffffff;
  --boira: #e2e8ef;
  --granit: #121926;
  --granit2: #1d2738;
  --granit3: #28344a;
  --ink: #121926;
  --ink2: #394557;
  --mut: #5d6878;
  --blau: #10069f;
  --blau-d: #0a0466;
  --blau-l: #5b6cff;
  --groc: #fedd00;
  --groc-d: #b89c00;
  --vermell: #d50032;
  --vermell-d: #8a0020;
  --pi: #1e5a46;
  --pi-l: #2f8a6b;
  --line: rgba(18, 25, 38, .12);
  --line-dark: rgba(255, 255, 255, .14);
  --wa: #25d366;
  --wa-d: #16a34a;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --shadow-sm: 0 8px 24px -16px rgba(18, 25, 38, .28);
  --shadow-md: 0 20px 44px -26px rgba(18, 25, 38, .42);
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Instrument Sans", system-ui, -apple-system, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  overflow-x: clip;
}

body {
  font-family: var(--font-body);
  background: var(--neu);
  color: var(--ink);
  line-height: 1.7;
  font-size: 17px;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--blau);
  text-decoration: none;
  font-weight: 600;
}

a:hover {
  text-decoration: underline;
}

a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 3px solid rgba(16, 6, 159, .35);
  outline-offset: 2px;
  border-radius: 6px;
}

.sec.dark a:not(.btn),
.phero--dark a:not(.btn):not(.crumbs a),
.bento-card--dark p a,
.lab-output a:not(.btn) {
  color: var(--groc);
}

.sec.dark a:not(.btn):hover,
.phero--dark a:not(.btn):not(.crumbs a):hover,
.bento-card--dark p a:hover,
.lab-output a:not(.btn):hover {
  color: #fff380;
}

.sec.dark a:focus-visible,
.phero--dark a:focus-visible,
.cta a:focus-visible,
.hub-cta a:focus-visible,
.ftr a:focus-visible {
  outline-color: var(--groc);
}

img, svg {
  max-width: 100%;
  height: auto;
  display: block;
}

button, input, select {
  font-family: inherit;
}

/* 02. Typography & Containers */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.1;
  color: var(--ink);
  letter-spacing: -.02em;
}

.wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.skip {
  position: absolute;
  left: -9999px;
}

.skip:focus {
  left: 12px;
  top: 12px;
  background: var(--papel);
  color: var(--ink);
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  border: 2px solid var(--blau);
  z-index: 999;
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--blau);
  background: rgba(16, 6, 159, .08);
  border: 1px solid rgba(16, 6, 159, .2);
  padding: 5px 11px;
  border-radius: 6px;
  margin-bottom: 14px;
}

.tag.t-y {
  color: var(--groc);
  background: rgba(254, 221, 0, .1);
  border-color: rgba(254, 221, 0, .3);
}

.tag.t-red {
  color: #fff;
  background: var(--vermell);
  border-color: var(--vermell);
}

.spec-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: .04em;
  padding: 4px 9px;
  border-radius: 6px;
  background: var(--neu);
  border: 1px solid var(--line);
  color: var(--ink2);
}

.spec-chip--blue {
  background: rgba(16, 6, 159, .08);
  border-color: rgba(16, 6, 159, .2);
  color: var(--blau-d);
}

.spec-chip--green {
  background: rgba(30, 90, 70, .1);
  border-color: rgba(30, 90, 70, .25);
  color: var(--pi);
}

.spec-chip--gold {
  background: rgba(254, 221, 0, .18);
  border-color: rgba(184, 156, 0, .35);
  color: var(--ink);
}

.spec-chip--dark {
  background: var(--granit2);
  border-color: #334058;
  color: #d6e0f0;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 700;
  border-radius: 10px;
  padding: 12px 22px;
  font-size: 15.5px;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
  border: 0;
  cursor: pointer;
  text-align: center;
  line-height: 1.2;
}

.btn:hover {
  text-decoration: none;
  transform: translateY(-2px);
}

.btn-lg {
  padding: 15px 28px;
  font-size: 16.5px;
}

.btn-sm {
  padding: 9px 15px;
  font-size: 14px;
}

.btn-wa {
  background: var(--wa);
  color: #03230f;
}

.btn-wa:hover {
  box-shadow: 0 10px 26px -8px rgba(37, 211, 102, .7);
}

.btn-red {
  background: var(--vermell);
  color: #fff;
  box-shadow: 0 4px 0 var(--vermell-d);
}

.btn-red:hover {
  box-shadow: 0 7px 0 var(--vermell-d);
}

.btn-blue {
  background: var(--blau);
  color: #fff;
  box-shadow: 0 4px 0 var(--blau-d);
}

.btn-blue:hover {
  box-shadow: 0 7px 0 var(--blau-d);
}

.btn-ghost {
  border: 1.5px solid var(--ink);
  color: var(--ink);
  background: transparent;
}

.btn-ghost:hover {
  background: var(--ink);
  color: #fff;
}

.btn-ghost-light {
  border: 1.5px solid rgba(255, 255, 255, .45);
  color: #fff;
  background: rgba(255, 255, 255, .06);
}

.btn-ghost-light:hover {
  background: rgba(255, 255, 255, .15);
  border-color: #fff;
}

.wa-ico {
  width: 18px;
  height: 18px;
  fill: currentColor;
  flex: none;
}

.center {
  text-align: center;
  margin-top: 34px;
}

.small {
  font-size: 13.5px;
  color: var(--mut);
}

.crumbs {
  font-size: 14px;
  color: var(--mut);
  margin-bottom: 16px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}

.crumbs a {
  color: var(--mut);
  font-weight: 600;
}

.crumbs a:hover {
  color: var(--blau);
}

.crumbs span {
  opacity: .55;
}

.crumbs--light {
  color: #b7c4e0;
}

.crumbs--light a {
  color: #dbe4f8;
}

.crumbs--light a:hover {
  color: var(--groc);
}

/* 03. Header & Navigation */
.flagbar {
  height: 5px;
  background: linear-gradient(90deg, var(--blau) 0 33.33%, var(--groc) 33.33% 66.66%, var(--vermell) 66.66%);
}

.hdr {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(242, 245, 248, .92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.hdr .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
  gap: 16px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 21px;
  letter-spacing: -.02em;
  white-space: nowrap;
}

.logo:hover {
  text-decoration: none;
}

.logo .mark {
  width: 36px;
  height: 36px;
  flex: none;
}

.logo b {
  color: var(--blau);
  font-weight: 800;
}

.logo sup {
  font-family: var(--font-mono);
  font-size: 9.5px;
  font-weight: 600;
  color: var(--vermell);
  letter-spacing: 0;
  margin-left: 3px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: 14.5px;
}

.nav a {
  color: var(--ink2);
  font-weight: 600;
  padding: 6px 2px;
  position: relative;
}

.nav a:hover,
.nav a[aria-current="page"] {
  color: var(--blau);
  text-decoration: none;
}

.nav a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 2px;
  background: var(--blau);
  border-radius: 2px;
}

.hdr-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  border: 1.5px solid var(--line);
  background: var(--papel);
  color: var(--ink);
  cursor: pointer;
}

.nav-toggle svg {
  width: 22px;
  height: 22px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
}

.mnav-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(18, 25, 38, .55);
  z-index: 80;
  opacity: 0;
  pointer-events: none;
  transition: opacity .22s ease;
}

.mnav-backdrop.is-open {
  opacity: 1;
  pointer-events: auto;
}

.mnav {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(320px, 86vw);
  background: var(--papel);
  z-index: 90;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  border-left: 1px solid var(--line);
  transform: translateX(100%);
  transition: transform .25s ease;
  overflow-y: auto;
}

.mnav.is-open {
  transform: translateX(0);
}

.mnav-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.mnav-close {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--neu);
  color: var(--ink);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

.mnav-links {
  display: grid;
  gap: 4px;
}

.mnav-links a {
  padding: 11px 12px;
  border-radius: 10px;
  color: var(--ink);
  font-weight: 600;
  font-size: 15.5px;
}

.mnav-links a:hover,
.mnav-links a[aria-current="page"] {
  background: var(--neu);
  color: var(--blau);
  text-decoration: none;
}

.mnav-sub {
  margin-top: 4px;
  padding-top: 12px;
  border-top: 1px dashed var(--line);
  display: grid;
  gap: 4px;
}

.mnav-sub span {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--mut);
  padding: 0 12px 4px;
}

.mnav-sub a {
  padding: 8px 12px;
  border-radius: 8px;
  color: var(--ink2);
  font-size: 14px;
}

/* 04. Hero & Alternating Bands */
.sec {
  padding: 84px 0;
  position: relative;
}

.sec--tight {
  padding: 58px 0;
}

.sec.boira {
  background: var(--boira);
}

.sec.paper {
  background: var(--papel);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.sec.dark {
  background: var(--granit);
  color: #c8d0dc;
}

.sec.dark h2,
.sec.dark h3 {
  color: #fff;
}

.sec-h {
  max-width: 780px;
  margin-bottom: 40px;
}

.sec-h h2 {
  font-size: clamp(28px, 3.8vw, 44px);
  margin-bottom: 14px;
}

.sec-h p {
  color: var(--ink2);
  font-size: 17.5px;
}

.sec.dark .sec-h p {
  color: #aeb8c7;
}

/* Homepage Hero */
.hero {
  position: relative;
  color: #fff;
  padding: 80px 0 132px;
  overflow: hidden;
  background: #0a0466;
}

.peaks {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.snow circle {
  animation: fall 9s linear infinite;
}

.snow circle:nth-child(2n) {
  animation-duration: 12s;
  animation-delay: -4s;
}

.snow circle:nth-child(3n) {
  animation-duration: 15s;
  animation-delay: -7s;
}

@keyframes fall {
  0% { transform: translateY(-40px); }
  100% { transform: translateY(420px); }
}

.hero-g {
  position: relative;
  display: grid;
  grid-template-columns: 1.25fr .85fr;
  gap: 44px;
  align-items: center;
}

.kick {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 13.5px;
  font-weight: 600;
  font-family: var(--font-mono);
  background: rgba(255, 255, 255, .1);
  border: 1px solid rgba(255, 255, 255, .2);
  padding: 7px 14px;
  border-radius: 999px;
  margin-bottom: 20px;
  color: #eef2ff;
}

.dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 0 4px rgba(74, 222, 128, .25);
}

.hero h1 {
  color: #fff;
  font-size: clamp(34px, 4.8vw, 56px);
  font-weight: 800;
  margin-bottom: 18px;
}

.hero .sub {
  font-size: 18.5px;
  color: #e3e7f5;
  max-width: 640px;
  text-shadow: 0 1px 12px rgba(10, 4, 102, .9);
}

.hero .sub strong {
  color: var(--groc);
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 28px 0;
}

.tbadges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  max-width: 660px;
}

.tbadges span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, .09);
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 999px;
  padding: 7px 14px 7px 9px;
  font-size: 13.5px;
  font-weight: 700;
  color: #eef1fb;
}

.tbadges svg {
  width: 20px;
  height: 20px;
  flex: none;
  fill: none;
  stroke: var(--groc);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.tbadges svg.cc {
  width: 34px;
  height: 22px;
  stroke: none;
  border-radius: 4px;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .25);
}

.hisp {
  margin-top: 14px;
  font-size: 14px;
  font-weight: 600;
  color: #c9d0ea;
}

.hisp small {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--groc);
  margin-right: 6px;
}

/* Lab Live Telemetry Board */
.board {
  background: #0b0f18;
  border: 1px solid #2a3550;
  border-radius: 16px;
  box-shadow: 0 30px 70px -20px rgba(0, 0, 0, .6);
  font-family: var(--font-mono);
  overflow: hidden;
}

.board-h {
  display: flex;
  justify-content: space-between;
  padding: 14px 18px;
  background: var(--groc);
  color: #121926;
  font-weight: 700;
  font-size: 12.5px;
  letter-spacing: .08em;
}

.board-l {
  list-style: none;
  padding: 6px 0;
}

.board-l li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 18px;
  border-bottom: 1px dashed #1e2738;
  font-size: 14px;
  color: #e6eaf2;
}

.st {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #4ade80;
  flex: none;
  animation: blink 2s infinite;
}

.board-l li:nth-child(2n) .st {
  animation-delay: -.7s;
}

@keyframes blink {
  50% { opacity: .35; }
}

.board-l .ch {
  flex: 1;
}

.board-l .q {
  font-size: 11px;
  padding: 2px 7px;
  border-radius: 4px;
  background: #1d2738;
  color: #9fb0cc;
}

.board-l .q.k4 {
  background: var(--vermell);
  color: #fff;
}

.board-f {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 6px 12px;
  padding: 14px 18px;
  background: #121926;
  font-size: 12.5px;
  color: #8c98ad;
}

.board-f b {
  color: var(--groc);
}

/* Minimalist Left-Aligned Lab Page Hero (Stage 1 Hubs) */
.phero {
  position: relative;
  padding: 56px 0 52px;
  background:
    radial-gradient(760px 320px at 94% -10%, rgba(16, 6, 159, .14), transparent 62%),
    radial-gradient(640px 280px at -6% 110%, rgba(213, 0, 50, .1), transparent 60%),
    linear-gradient(180deg, #ffffff 0%, var(--neu) 100%);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}

.phero--dark {
  background:
    radial-gradient(700px 340px at 92% -10%, rgba(91, 108, 255, .28), transparent 60%),
    linear-gradient(155deg, var(--blau-d) 0%, var(--granit) 72%);
  color: #dbe4f5;
  border-bottom: 1px solid #26334d;
}

.phero--dark h1 {
  color: #fff;
}

.phero--dark .phero-lead {
  color: #c8d4ec;
}

.phero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, .7fr);
  gap: 36px;
  align-items: center;
}

.phero h1 {
  font-size: clamp(31px, 4.4vw, 50px);
  font-weight: 800;
  margin-bottom: 16px;
  max-width: 820px;
}

.phero-lead {
  font-size: 18px;
  color: var(--ink2);
  max-width: 720px;
}

.phero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.spec-tiles {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.spec-tile {
  background: var(--papel);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 16px;
  position: relative;
  overflow: hidden;
}

.spec-tile::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--blau);
}

.spec-tile:nth-child(2)::before { background: var(--groc); }
.spec-tile:nth-child(3)::before { background: var(--vermell); }
.spec-tile:nth-child(4)::before { background: var(--pi-l); }

.spec-tile b {
  display: block;
  font-family: var(--font-display);
  font-size: 26px;
  line-height: 1.05;
  color: var(--ink);
}

.spec-tile span {
  display: block;
  margin-top: 4px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--mut);
}

.phero--dark .spec-tile {
  background: rgba(29, 39, 56, .85);
  border-color: rgba(255, 255, 255, .14);
}

.phero--dark .spec-tile b {
  color: #fff;
}

.phero--dark .spec-tile span {
  color: #aebcd4;
}

/* 05. Pricing Plans & Cards */
.passes,
.plans,
.plans-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

.pass,
.plan {
  position: relative;
  background: var(--papel);
  border-radius: 18px;
  padding: 30px 22px 24px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: transform .22s ease, box-shadow .22s ease;
}

.pass:hover,
.plan:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.pass::before,
.plan::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 7px;
  border-radius: 18px 18px 0 0;
  background: linear-gradient(90deg, var(--blau) 0 33.3%, var(--groc) 33.3% 66.6%, var(--vermell) 66.6%);
}

.pass.hot,
.plan.plan--featured,
.plan.hot {
  background: var(--granit);
  color: #c8d0dc;
  border-color: var(--granit);
  transform: scale(1.02);
}

.pass.hot:hover,
.plan.plan--featured:hover,
.plan.hot:hover {
  transform: scale(1.02) translateY(-5px);
}

.pass.hot h3,
.pass.hot .val,
.plan.plan--featured h3,
.plan.plan--featured .val,
.plan.hot h4,
.plan.hot .p {
  color: #fff;
}

.hole {
  position: absolute;
  top: 18px;
  right: 20px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--neu);
  box-shadow: inset 0 2px 3px rgba(0, 0, 0, .2);
}

.badge {
  position: absolute;
  top: -13px;
  left: 20px;
  background: var(--vermell);
  color: #fff;
  font-size: 11.5px;
  font-family: var(--font-mono);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  padding: 4px 12px;
  border-radius: 999px;
}

.ph {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--mut);
  margin-bottom: 10px;
}

.pass.hot .ph,
.plan.plan--featured .ph {
  color: #8c98ad;
}

.pl {
  color: var(--blau);
  font-weight: 700;
}

.pass.hot .pl,
.plan.plan--featured .pl {
  color: var(--groc);
}

.pass h3,
.plan h3 {
  font-size: 23px;
}

.val {
  font-family: var(--font-display);
  font-size: 56px;
  font-weight: 800;
  line-height: 1;
  margin: 10px 0 4px;
  color: var(--blau-d);
}

.val sup {
  font-size: 24px;
  vertical-align: top;
  margin-left: 2px;
}

.per {
  font-size: 13.5px;
  color: var(--mut);
}

.pass.hot .per,
.plan.plan--featured .per {
  color: #9aa6b8;
}

.save {
  display: inline-block;
  margin: 12px 0 4px;
  align-self: flex-start;
  background: rgba(30, 90, 70, .12);
  color: var(--pi);
  font-weight: 700;
  font-size: 12.5px;
  font-family: var(--font-mono);
  padding: 4px 10px;
  border-radius: 6px;
}

.pass.hot .save,
.plan.plan--featured .save {
  background: var(--groc);
  color: #121926;
}

.save.ghost {
  background: var(--boira);
  color: var(--ink2);
}

.pass ul,
.plan ul {
  list-style: none;
  margin: 16px 0;
  font-size: 14.5px;
  flex: 1;
}

.pass li,
.plan li {
  padding: 6px 0 6px 24px;
  position: relative;
  border-bottom: 1px dashed var(--line);
}

.pass.hot li,
.plan.plan--featured li {
  border-color: rgba(255, 255, 255, .12);
}

.pass li::before,
.plan li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 13px;
  width: 11px;
  height: 6px;
  border-left: 2.5px solid var(--pi-l);
  border-bottom: 2.5px solid var(--pi-l);
  transform: rotate(-45deg);
}

/* Barcode decoration without inline styles */
.bc {
  display: flex;
  gap: 2px;
  height: 24px;
  margin: 4px 0 16px;
  opacity: .55;
}

.bc i {
  display: block;
  background: currentColor;
  height: 100%;
  width: 2px;
}

.bc i:nth-child(2n) { width: 1px; }
.bc i:nth-child(3n) { width: 3px; }
.bc i:nth-child(5n) { width: 1px; }

.pass .btn,
.plan .btn {
  width: 100%;
}

.paynote {
  display: flex;
  align-items: center;
  gap: 12px;
  justify-content: center;
  margin-top: 30px;
  font-size: 14.5px;
  color: var(--ink2);
  text-align: center;
  flex-wrap: wrap;
}

.cards {
  width: 56px;
  height: 20px;
  flex: none;
}

.trust-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 28px;
}

.trust-item {
  background: var(--papel);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 16px;
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.trust-item svg {
  width: 24px;
  height: 24px;
  flex: none;
  stroke: var(--blau);
  fill: none;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.trust-item strong {
  display: block;
  font-size: 14.5px;
  line-height: 1.3;
  color: var(--ink);
}

.trust-item span {
  font-size: 13px;
  color: var(--mut);
}

/* Compact 4-plan strip (Articles & Local pages) */
.plans-compact {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin: 22px 0;
}

.plan-mini {
  position: relative;
  background: var(--papel);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 24px 16px 18px;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 6px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease;
}

.plan-mini::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 5px;
  background: linear-gradient(90deg, var(--blau) 0 33.3%, var(--groc) 33.3% 66.6%, var(--vermell) 66.6%);
}

.plan-mini:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.plan-mini.hot {
  background: var(--granit);
  border-color: var(--granit);
  color: #dbe4f2;
}

.plan-mini h3,
.plan-mini h4,
.plan-mini .plan-title {
  font-family: var(--font-mono);
  font-size: 12.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--mut);
  margin: 0;
}

.plan-mini.hot h3,
.plan-mini.hot h4,
.plan-mini.hot .plan-title {
  color: var(--groc);
}

.plan-mini .p {
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 800;
  color: var(--blau-d);
  line-height: 1.05;
}

.plan-mini.hot .p {
  color: #fff;
}

.plan-mini .p small {
  display: block;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  color: var(--mut);
  margin-top: 2px;
}

.plan-mini.hot .p small {
  color: #aeb8c7;
}

.plan-mini .btn {
  width: 100%;
  margin-top: auto;
  padding: 10px 12px;
  font-size: 14px;
}

/* 06. Bento / Device / App Grids, Cine, Metrics, Topology, Scorecard */
.poster-h {
  color: #fff;
  font-size: 19px;
  margin: 28px 0 12px;
}

.poster-carousel {
  list-style: none;
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding: 0 10px;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
  margin: 20px 0 34px;
  padding: 12px 4px 22px;
  scrollbar-width: thin;
  scrollbar-color: var(--groc) rgba(255, 255, 255, .08);
}

.poster-carousel:focus-visible {
  outline: 2px solid var(--groc);
  outline-offset: 4px;
  border-radius: 12px;
}

.poster-carousel::-webkit-scrollbar { height: 8px; }
.poster-carousel::-webkit-scrollbar-track { background: rgba(255, 255, 255, .08); border-radius: 8px; }
.poster-carousel::-webkit-scrollbar-thumb { background: var(--groc); border-radius: 8px; }

.poster-carousel li {
  flex: 0 0 clamp(195px, 24vw, 275px);
  scroll-snap-align: start;
  border-radius: 16px;
  overflow: hidden;
  background: #0b1c14;
  box-shadow: 0 18px 36px -14px rgba(0, 0, 0, .8), 0 0 0 1px rgba(255, 255, 255, .08);
  transition: transform .3s ease, box-shadow .3s ease;
}

.poster-carousel img {
  width: 100%;
  aspect-ratio: 2/3;
  object-fit: cover;
  transition: transform .35s ease;
}

.poster-carousel li:hover,
.poster-carousel li:focus-within {
  transform: translateY(-7px) scale(1.02);
  box-shadow: 0 28px 50px -16px rgba(0, 0, 0, .92), 0 0 0 2px var(--groc);
}

.poster-carousel li:hover img {
  transform: scale(1.05);
}

.vgrid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.vcard {
  position: relative;
  border-radius: 20px;
  padding: 24px 22px 22px;
  min-height: 240px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .14);
  isolation: isolate;
  transition: transform .25s ease;
}

.vcard:hover { transform: translateY(-5px); }
.vcard::before { content: ""; position: absolute; inset: 0; z-index: -1; }
.vcard::after {
  content: "";
  position: absolute;
  right: -30px;
  bottom: -12px;
  width: 200px;
  height: 90px;
  z-index: -1;
  opacity: .16;
  background: #fff;
  clip-path: polygon(0 100%, 22% 38%, 34% 62%, 55% 0, 74% 52%, 84% 34%, 100% 100%);
}

.v-act::before { background: linear-gradient(145deg, #ff1f5a 0%, #d50032 45%, #5a0016 100%); }
.v-thr::before { background: linear-gradient(145deg, #2a3550 0%, #121926 55%, #05070c 100%); }
.v-sci::before { background: linear-gradient(145deg, #5b6cff 0%, #10069f 55%, #05023d 100%); }
.v-fam::before { background: linear-gradient(145deg, #fff27a 0%, #fedd00 55%, #d4b400 100%); }
.v-doc::before { background: linear-gradient(145deg, #2f8a6b 0%, #1e5a46 55%, #0a2a20 100%); }
.v-dra::before { background: linear-gradient(145deg, #8f6ad8 0%, #4a2a8c 55%, #1d0f3d 100%); }

.vcard svg {
  width: 42px;
  height: 42px;
  margin-bottom: auto;
  stroke: #fff;
  fill: none;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.v-fam svg { stroke: #121926; }
.sec.dark .vcard h3 { color: #fff; font-size: 22px; margin: 22px 0 6px; }
.sec.dark .v-fam h3,
.v-fam p { color: #121926 !important; }
.vcard p { font-size: 14.5px; color: rgba(255, 255, 255, .88); line-height: 1.5; }

.vtags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.vtags b { font: 600 11px var(--font-mono); letter-spacing: .04em; padding: 4px 8px; border-radius: 6px; background: rgba(0, 0, 0, .28); color: #fff; }
.v-fam .vtags b { background: rgba(18, 25, 38, .12); color: #121926; }
.vtags b:first-child { background: var(--groc); color: #121926; }
.v-fam .vtags b:first-child { background: #fff; }

.cinefacts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 22px;
}

.cinefacts div {
  border: 1px solid var(--line-dark);
  border-radius: 16px;
  padding: 16px;
}

.cinefacts b {
  display: block;
  font-family: var(--font-display);
  font-size: 24px;
  color: var(--groc);
}

.cinefacts span {
  font-size: 14px;
  color: #aeb8c7;
}

.vnote {
  margin-top: 16px;
  font-size: 13.5px;
  color: #8c98ad;
}

/* Metrics & Pillars */
.metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.metric {
  background: var(--papel);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 28px 18px 22px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.metric::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 6px;
  background: linear-gradient(90deg, var(--blau) 0 33.3%, var(--groc) 33.3% 66.6%, var(--vermell) 66.6%);
}

.metric b {
  display: block;
  font: 800 clamp(28px, 3.4vw, 42px)/1.05 var(--font-display);
  color: var(--blau);
  letter-spacing: -.03em;
}

.metric:nth-child(2) b { color: var(--pi); }
.metric:nth-child(3) b { color: var(--ink); }
.metric:nth-child(4) b { color: var(--vermell); }

.metric span {
  display: block;
  margin-top: 8px;
  font: 600 12px var(--font-mono);
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--mut);
}

.pillars {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 22px;
}

.pillar {
  background: var(--papel);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 28px 24px;
  box-shadow: var(--shadow-sm);
}

.pillar .pi {
  width: 54px;
  height: 54px;
  border-radius: 14px;
  background: linear-gradient(145deg, var(--blau), var(--blau-d));
  display: grid;
  place-items: center;
  margin-bottom: 16px;
}

.pillar .pi svg {
  width: 28px;
  height: 28px;
  stroke: var(--groc);
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.pillar h3 {
  font-size: 21px;
  margin-bottom: 10px;
}

.pillar p {
  color: var(--ink2);
  font-size: 15.5px;
}

.pillar ul {
  list-style: none;
  margin-top: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.pillar li {
  font: 600 11.5px var(--font-mono);
  background: var(--boira);
  color: var(--blau-d);
  border-radius: 6px;
  padding: 4px 8px;
}

/* Bento Hub Grid (Homepage Topical Authority + General Lab Cards) */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 18px;
}

.bento-card {
  grid-column: span 4;
  background: var(--papel);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: relative;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.bento-card--wide {
  grid-column: span 6;
}

.bento-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: rgba(16, 6, 159, .32);
}

.bento-card--dark {
  background: var(--granit);
  border-color: #28344a;
  color: #cbd5e4;
}

.bento-card--dark h3,
.bento-card--dark h3 a {
  color: #fff;
}

.bento-card--dark p {
  color: #aeb8c7;
}

.bento-ico {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(16, 6, 159, .08);
  border: 1px solid rgba(16, 6, 159, .18);
  display: grid;
  place-items: center;
}

.bento-ico svg {
  width: 24px;
  height: 24px;
  stroke: var(--blau);
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.bento-card--dark .bento-ico {
  background: rgba(254, 221, 0, .12);
  border-color: rgba(254, 221, 0, .3);
}

.bento-card--dark .bento-ico svg {
  stroke: var(--groc);
}

.bento-card h3 {
  font-size: 21px;
  line-height: 1.22;
}

.bento-card h3 a {
  color: inherit;
}

.bento-card h3 a::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 18px;
}

.bento-card h3 a:hover {
  text-decoration: none;
  color: var(--blau);
}

.bento-card--dark h3 a:hover {
  color: var(--groc);
}

.bento-card p {
  font-size: 15px;
  color: var(--ink2);
  line-height: 1.55;
}

.bento-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: auto;
  padding-top: 8px;
}

.bento-more {
  font-size: 14px;
  font-weight: 700;
  color: var(--blau);
  margin-top: 4px;
}

.bento-card--dark .bento-more {
  color: var(--groc);
}

/* Device & App Grids */
.device-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.device-card {
  background: var(--papel);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: transform .2s ease, box-shadow .2s ease;
}

.device-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.device-card.is-hidden {
  display: none;
}

.device-ico {
  width: 54px;
  height: 54px;
  border-radius: 14px;
  background: var(--neu);
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
}

.device-ico svg {
  width: 30px;
  height: 30px;
}

.device-card h3 {
  font-size: 20px;
}

.device-card p {
  font-size: 14.5px;
  color: var(--ink2);
  line-height: 1.55;
}

.device-specs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: auto;
  padding-top: 8px;
  border-top: 1px dashed var(--line);
}

.app-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.app-card {
  background: var(--papel);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: transform .2s ease, box-shadow .2s ease;
}

.app-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.app-head {
  display: flex;
  align-items: center;
  gap: 14px;
}

.app-tile {
  width: 58px;
  height: 58px;
  border-radius: 16px;
  flex: none;
  overflow: hidden;
  box-shadow: 0 10px 20px -10px rgba(18, 25, 38, .45);
}

.app-tile svg {
  width: 100%;
  height: 100%;
}

.app-head h3 {
  font-size: 21px;
}

.app-head span {
  display: block;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--mut);
  margin-top: 2px;
}

.app-card p {
  font-size: 15px;
  color: var(--ink2);
  line-height: 1.55;
}

.app-rec-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.app-rec {
  background: var(--granit2);
  border: 1px solid #2e3d59;
  border-radius: 16px;
  padding: 20px;
}

.app-rec h3 {
  font-size: 19px;
  color: #fff;
  margin-bottom: 6px;
}

.app-rec .rec-pick {
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--groc);
  margin-bottom: 8px;
  display: block;
}

.app-rec p {
  font-size: 14.5px;
  color: #b7c3d6;
}

/* Topology & Parishes Scorecard */
.topo {
  background: #0b0f18;
  border: 1px solid #2a3550;
  border-radius: 20px;
  padding: 24px;
  margin: 0 0 38px;
}

.topo svg { width: 100%; height: auto; }
.topo .lk path { fill: none; stroke: #334058; stroke-width: 3; stroke-dasharray: 6 6; }
.topo .pk circle { fill: var(--groc); }
.topo .pk circle.b { fill: #4ade80; }
.topo .nd rect { fill: var(--granit2); stroke: #4b5a78; stroke-width: 1.5; }
.topo .nd.y rect { fill: var(--blau); stroke: var(--groc); }
.topo .nd.r rect { fill: var(--vermell-d); stroke: var(--vermell); }
.topo text { fill: #fff; font-family: var(--font-body); font-size: 14px; font-weight: 700; text-anchor: middle; }
.topo text.s { font-size: 11px; font-weight: 500; fill: #9fb0cc; font-family: var(--font-mono); }
.topo figcaption { font-size: 13.5px; color: #8c98ad; margin-top: 14px; }

.par-h {
  font-size: 25px;
  margin-bottom: 18px;
}

.pars {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 14px;
}

.par {
  background: var(--granit2);
  border: 1px solid #2a3550;
  border-radius: 14px;
  padding: 18px;
  position: relative;
  overflow: hidden;
}

.par::after {
  content: "";
  position: absolute;
  right: -10px;
  bottom: -14px;
  width: 110px;
  height: 50px;
  background: rgba(255, 255, 255, .04);
  clip-path: polygon(0 100%, 35% 20%, 55% 55%, 75% 0, 100% 100%);
}

.par .alt { font-family: var(--font-mono); font-size: 12px; color: var(--groc); }
.par h3 { font-size: 19px; margin: 4px 0 8px; }
.par .png { font-family: var(--font-mono); font-size: 15px; color: #4ade80; font-weight: 600; }
.par .png small { color: #8c98ad; font-weight: 400; font-size: 12px; }
.par p { font-size: 14px; color: #aeb8c7; }

/* Local Network Scorecard (Light & Dark variants) */
.scorecard {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.score-card {
  background: var(--papel);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.score-top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
}

.score-top h3 {
  font-size: 19px;
}

.score-val {
  font-family: var(--font-mono);
  font-size: 16px;
  font-weight: 700;
  color: var(--pi);
}

.score-bar {
  height: 8px;
  border-radius: 99px;
  background: var(--boira);
  overflow: hidden;
}

.score-bar i {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--blau), var(--pi-l));
  border-radius: 99px;
}

.score-bar--98 i { width: 98%; }
.score-bar--95 i { width: 95%; }
.score-bar--92 i { width: 92%; }
.score-bar--88 i { width: 88%; }
.score-bar--82 i { width: 82%; }
.score-bar--74 i { width: 74%; }

.score-card p {
  font-size: 14.5px;
  color: var(--ink2);
}

/* Comparison Tables */
.tbl,
.table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: var(--papel);
}

.tbl + .bento-grid,
.table-wrap + .bento-grid,
.tbl + .scorecard,
.bento-grid + .box,
.box + .cta {
  margin-top: 24px;
}

.tbl table,
.table-wrap table {
  width: 100%;
  border-collapse: collapse;
  min-width: 660px;
  font-size: 15px;
}

.tbl th,
.tbl td,
.table-wrap th,
.table-wrap td {
  padding: 14px 16px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.tbl thead th,
.table-wrap thead th {
  background: var(--granit);
  color: #fff;
  font-family: var(--font-display);
  font-size: 15.5px;
}

.tbl thead th.me,
.table-wrap thead th.me {
  background: var(--blau);
  color: var(--groc);
}

.tbl td.me,
.table-wrap td.me {
  background: rgba(16, 6, 159, .05);
  font-weight: 700;
  color: var(--blau-d);
}

.tbl tbody tr:hover td,
.table-wrap tbody tr:hover td {
  background: rgba(254, 221, 0, .08);
}

/* 07. Interactive Calculator, Setup Tabs, Filters & Glossary */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 26px;
}

.filter-pill,
.jump-pill {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 14px;
  border: 1.5px solid var(--line);
  background: var(--papel);
  color: var(--ink2);
  border-radius: 999px;
  padding: 8px 16px;
  cursor: pointer;
  transition: background .18s ease, color .18s ease, border-color .18s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.filter-pill:hover,
.jump-pill:hover {
  border-color: var(--blau);
  color: var(--blau);
  text-decoration: none;
}

.filter-pill[aria-pressed="true"],
.filter-pill.is-active {
  background: var(--granit);
  color: #fff;
  border-color: var(--granit);
}

/* Homepage Estimator & Data Calc */
.est {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 28px;
  background: var(--papel);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 30px;
  box-shadow: var(--shadow-sm);
}

.est-f {
  display: grid;
  gap: 18px;
}

.est-f label,
.calc label,
.lab-form label {
  display: grid;
  gap: 7px;
  font-weight: 600;
  font-size: 15px;
}

.est-f output,
.calc output,
.lab-form output {
  font-family: var(--font-mono);
  color: var(--blau);
  font-weight: 700;
}

select,
input[type="search"] {
  font: inherit;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1.5px solid var(--line);
  background: var(--neu);
  color: var(--ink);
  width: 100%;
}

select:focus,
input:focus {
  outline: 3px solid rgba(16, 6, 159, .22);
  border-color: var(--blau);
}

input[type="range"] {
  accent-color: var(--blau);
  width: 100%;
}

fieldset {
  border: 0;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

legend {
  font-weight: 600;
  font-size: 15px;
  margin-bottom: 8px;
  width: 100%;
}

.chip {
  display: inline-flex !important;
  align-items: center;
  gap: 6px;
  padding: 9px 16px;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  cursor: pointer;
  font-weight: 600;
  background: var(--neu);
}

.chip:has(input:checked) {
  background: var(--blau);
  color: #fff;
  border-color: var(--blau);
}

.chip input {
  accent-color: var(--groc);
}

.est-r {
  background: var(--neu);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.gauge {
  position: relative;
  max-width: 260px;
  margin: 0 auto;
  width: 100%;
}

#gArc {
  transition: stroke-dashoffset .6s, stroke .3s;
}

.g-v {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 4px;
  text-align: center;
}

.g-v b {
  display: block;
  font-family: var(--font-display);
  font-size: 34px;
  line-height: 1;
}

.g-v span {
  font-size: 13px;
  color: var(--mut);
}

.r-l {
  display: grid;
  gap: 8px;
}

.r-l div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px dashed var(--line);
  padding-bottom: 7px;
  font-size: 15px;
}

.r-l dt { color: var(--mut); }
.r-l dd { font-weight: 700; text-align: right; }

.r-tip {
  font-size: 14.5px;
  color: var(--ink2);
  background: var(--papel);
  border-left: 4px solid var(--groc);
  padding: 10px 14px;
  border-radius: 6px;
}

.two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 44px;
  align-items: center;
}

.two h2 {
  font-size: clamp(28px, 3.6vw, 40px);
  margin-bottom: 14px;
}

.two p {
  color: var(--ink2);
}

.ticks {
  list-style: none;
  margin-top: 18px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.ticks li {
  font-family: var(--font-mono);
  font-size: 13px;
  background: var(--boira);
  padding: 6px 12px;
  border-radius: 6px;
}

.calc {
  background: var(--granit);
  color: #dbe2ec;
  border-radius: 20px;
  padding: 28px;
  display: grid;
  gap: 18px;
}

.calc select {
  background: var(--granit2);
  color: #fff;
  border-color: #334058;
}

.calc output { color: var(--groc); }
.calc input[type="range"] { accent-color: var(--groc); }

.calc-r {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.calc-r div {
  background: var(--granit2);
  border-radius: 12px;
  padding: 16px;
  text-align: center;
}

.calc-r b {
  display: block;
  font-family: var(--font-display);
  font-size: 30px;
  color: #fff;
}

.calc-r span {
  font-size: 13px;
  color: #8c98ad;
}

.calc-n {
  font-size: 14px;
  color: #aeb8c7;
}

/* Dedicated 4K Speed & Buffer Calculator Page */
.lab-calc {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  background: var(--papel);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 32px;
  box-shadow: var(--shadow-sm);
}

.lab-form {
  display: grid;
  gap: 20px;
}

.lab-output {
  background: var(--granit);
  color: #dbe4f2;
  border-radius: 18px;
  padding: 26px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.lab-output-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--line-dark);
  padding-bottom: 12px;
}

.lab-output-head span {
  font-family: var(--font-mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--groc);
}

.lab-kpis {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.lab-kpi {
  background: var(--granit2);
  border: 1px solid #2e3d59;
  border-radius: 14px;
  padding: 16px;
}

.lab-kpi b {
  display: block;
  font-family: var(--font-display);
  font-size: 32px;
  line-height: 1.05;
  color: #fff;
}

.lab-kpi span {
  display: block;
  margin-top: 4px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: #9cb0cc;
  text-transform: uppercase;
}

.lab-kpi--accent b {
  color: var(--groc);
}

.lab-rec {
  background: rgba(30, 90, 70, .24);
  border: 1px solid rgba(47, 138, 107, .45);
  border-radius: 12px;
  padding: 14px 16px;
}

.lab-rec strong {
  display: block;
  font-family: var(--font-mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: #6ee7b7;
  margin-bottom: 4px;
}

.lab-rec p {
  font-size: 14.5px;
  color: #e2ecf8;
}

.lab-output .small,
.lab-notes {
  font-size: 13.5px;
  color: #b7c4da;
  line-height: 1.55;
}

.filter-status {
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--mut);
  margin: -14px 0 20px;
}

/* Setup Tabs */
.setup {
  display: grid;
  grid-template-columns: 240px 1fr 310px;
  gap: 22px;
  align-items: start;
}

.tabs {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.tabs button {
  text-align: left;
  font-weight: 700;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1.5px solid var(--line);
  background: var(--papel);
  cursor: pointer;
  color: var(--ink);
  white-space: nowrap;
}

.tabs button span {
  display: block;
  font-weight: 500;
  font-size: 12.5px;
  color: var(--mut);
}

.tabs button[aria-selected="true"] {
  background: var(--blau);
  border-color: var(--blau);
  color: #fff;
}

.tabs button[aria-selected="true"] span {
  color: var(--groc);
}

.tabp {
  background: var(--papel);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 26px;
}

.tabp h3 { font-size: 23px; }
.tabp .meta { font-size: 13.5px; color: var(--mut); margin: 4px 0 16px; }

.tabp ol {
  list-style: none;
  counter-reset: s;
  display: grid;
  gap: 10px;
}

.tabp li {
  counter-increment: s;
  position: relative;
  padding: 12px 14px 12px 52px;
  border-radius: 10px;
  background: var(--neu);
  cursor: pointer;
  font-size: 15px;
  transition: background .2s;
}

.tabp li::before {
  content: counter(s);
  position: absolute;
  left: 12px;
  top: 11px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--blau);
  color: #fff;
  font-weight: 700;
  display: grid;
  place-items: center;
  font-size: 13px;
}

.tabp li[aria-checked="true"] {
  background: rgba(30, 90, 70, .12);
  text-decoration: line-through;
  text-decoration-color: rgba(30, 90, 70, .5);
}

.tabp li[aria-checked="true"]::before {
  content: "✓";
  background: var(--pi);
}

.tabp li:focus-visible { outline: 3px solid var(--groc); }

.tprog {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 16px;
}

.tprog div {
  flex: 1;
  height: 8px;
  border-radius: 99px;
  background: var(--boira);
  overflow: hidden;
}

.tprog i {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--pi), var(--pi-l));
  transition: width .3s;
}

.tp-t {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--mut);
}

.xc {
  background: var(--granit);
  border-radius: 18px;
  padding: 22px;
  color: #c8d0dc;
  display: grid;
  gap: 12px;
  font-size: 14px;
}

.xc-h {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: #8c98ad;
  margin-bottom: 4px;
}

.xc-h span { width: 10px; height: 10px; border-radius: 50%; background: var(--vermell); }
.xc-h span:nth-child(2) { background: var(--groc); }
.xc-h span:nth-child(3) { background: #4ade80; margin-right: 6px; }
.xc label { display: grid; gap: 5px; font-size: 12.5px; color: #8c98ad; }
.xc input { font: inherit; font-family: var(--font-mono); font-size: 13.5px; padding: 10px 12px; border-radius: 8px; border: 1px solid #334058; background: var(--granit2); color: #fff; }
.xc p { font-size: 13.5px; }
.xc strong { color: var(--groc); }

/* Glossary Grid */
.glossary-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.term-card {
  background: var(--papel);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 24px;
  scroll-margin-top: 96px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.term-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
}

.term-card h2,
.term-card h3 {
  font-size: 22px;
}

.term-anchor {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--mut);
}

.term-card p {
  font-size: 15.5px;
  color: var(--ink2);
}

.term-tip {
  background: var(--neu);
  border-left: 4px solid var(--blau);
  padding: 12px 14px;
  border-radius: 8px;
  font-size: 14px;
  color: var(--ink2);
  margin-top: auto;
}

.term-tip p {
  font-size: 14px;
  color: var(--ink2);
  margin: 0;
}

/* Categorized FAQ Cards & Accordions */
.faq-w { max-width: 920px; }

.faq-group {
  margin-bottom: 36px;
  scroll-margin-top: 96px;
}

.faq-group-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--line);
}

.faq-group-head h2 {
  font-size: 24px;
}

.faq {
  display: grid;
  gap: 10px;
}

.faq details {
  background: var(--papel);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 2px 20px;
}

.faq summary {
  cursor: pointer;
  font-weight: 700;
  font-size: 16.5px;
  padding: 15px 30px 15px 0;
  list-style: none;
  position: relative;
  color: var(--ink);
}

.faq summary::-webkit-details-marker { display: none; }

.faq summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 12px;
  font-size: 23px;
  line-height: 1;
  color: var(--blau);
  transition: transform .2s ease;
}

.faq details[open] summary::after {
  transform: rotate(45deg);
  color: var(--vermell);
}

.faq details p {
  padding: 0 0 16px;
  color: var(--ink2);
  font-size: 15.5px;
}

/* Profile / Author & About Lab */
.author-hero-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 28px;
  align-items: center;
  background: var(--papel);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 32px;
  box-shadow: var(--shadow-sm);
}

.author-avatar {
  width: 112px;
  height: 112px;
  border-radius: 24px;
  overflow: hidden;
  flex: none;
  box-shadow: 0 16px 32px -14px rgba(16, 6, 159, .5);
}

.author-avatar svg {
  width: 100%;
  height: 100%;
}

.author-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.lab-rig-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.lab-rig {
  background: var(--papel);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 20px;
}

.lab-rig strong {
  display: block;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--blau);
  text-transform: uppercase;
  margin-bottom: 6px;
}

.lab-rig h3 {
  font-size: 18px;
  margin-bottom: 6px;
}

.lab-rig p {
  font-size: 14px;
  color: var(--ink2);
}

/* 08. Editorial Articles, Blog Hub & Legal Pages */
.gcards,
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
  gap: 18px;
}

.gcard,
.blog-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: var(--papel);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 24px 22px 20px 26px;
  color: var(--ink);
  transition: transform .2s ease, box-shadow .2s ease;
  overflow: hidden;
}

.gcard::before,
.blog-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 6px;
  background: linear-gradient(180deg, var(--blau) 0 33.3%, var(--groc) 33.3% 66.6%, var(--vermell) 66.6%);
}

.gcard:hover,
.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.blog-card.is-hidden {
  display: none;
}

.gmeta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

.gcat {
  font: 600 11px var(--font-mono);
  letter-spacing: .07em;
  text-transform: uppercase;
  background: var(--granit);
  color: #fff;
  padding: 4px 10px;
  border-radius: 999px;
}

.gread {
  font: 600 12px var(--font-mono);
  letter-spacing: .06em;
  color: var(--vermell);
}

.gcard h3,
.blog-card h2 {
  font-size: 20px;
  line-height: 1.24;
}

.gcard h3 a,
.blog-card h2 a {
  color: var(--ink);
}

.gcard h3 a:hover,
.blog-card h2 a:hover {
  text-decoration: none;
  color: var(--blau);
}

.gcard h3 a::after,
.blog-card h2 a::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 18px;
}

.gcard p,
.blog-card p {
  font-size: 15px;
  color: var(--ink2);
  line-height: 1.55;
}

.gcard .more,
.blog-card .m {
  margin-top: auto;
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  color: var(--blau);
  font-weight: 700;
  padding-top: 10px;
  border-top: 1px dashed var(--line);
}

.blog-card .m span {
  color: var(--mut);
  font-weight: 600;
  font-size: 13px;
}

/* Article Hero & Grid */
.ahero {
  padding: 54px 0 46px;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(800px 380px at 95% -20%, rgba(213, 0, 50, .18) 0%, transparent 60%),
    radial-gradient(760px 360px at -8% 120%, rgba(91, 108, 255, .18) 0%, transparent 62%),
    linear-gradient(175deg, #ffffff 0%, var(--boira) 100%);
  border-bottom: 1px solid var(--line);
}

.ahero .wrap { position: relative; z-index: 1; }
.ahero h1 { font-size: clamp(30px, 4.4vw, 48px); max-width: 920px; }
.ahero .lead { font-size: 18.5px; color: var(--ink2); max-width: 820px; margin-top: 16px; }

.ameta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 20px;
  font-size: 14px;
  color: var(--mut);
}

.ameta strong,
.ameta a {
  color: var(--ink);
  font-weight: 700;
}

.ameta a:hover {
  color: var(--blau);
}

.agrid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 44px;
  padding: 36px 0 72px;
}

.prose {
  max-width: 860px;
}

.prose h2 {
  font-size: clamp(24px, 2.8vw, 33px);
  margin: 46px 0 14px;
  padding-top: 8px;
  scroll-margin-top: 90px;
}

.prose h2::before {
  content: "";
  display: block;
  width: 44px;
  height: 4px;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--blau) 0 33%, var(--groc) 33% 66%, var(--vermell) 66%);
  margin-bottom: 12px;
}

.prose h3 {
  font-size: 21px;
  margin: 28px 0 10px;
  color: var(--blau-d);
}

.prose p {
  margin: 0 0 16px;
  color: #232c3a;
}

.prose ul,
.prose ol {
  margin: 0 0 18px 22px;
  color: #232c3a;
}

.prose li {
  margin-bottom: 8px;
}

.prose code {
  font-family: var(--font-mono);
  font-size: 14px;
  background: var(--boira);
  border: 1px solid var(--line);
  padding: 2px 7px;
  border-radius: 6px;
  color: #8f0c22;
}

.prose pre {
  background: var(--granit);
  border-radius: 14px;
  padding: 18px;
  overflow: auto;
  margin: 0 0 22px;
  font-size: 14px;
  line-height: 1.6;
}

.prose pre code {
  background: none;
  border: 0;
  padding: 0;
  color: var(--groc);
}

.prose table {
  width: 100%;
  border-collapse: collapse;
  margin: 0 0 24px;
  font-size: 15px;
  display: block;
  overflow-x: auto;
  background: var(--papel);
  border-radius: 14px;
  border: 1px solid var(--line);
}

.prose th,
.prose td {
  padding: 11px 14px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.prose th {
  background: var(--granit);
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  white-space: nowrap;
}

.prose tr:hover td {
  background: rgba(16, 6, 159, .05);
}

.toc {
  background: var(--papel);
  border: 1px solid var(--line);
  border-top: 5px solid var(--vermell);
  border-radius: 16px;
  padding: 20px 22px;
  margin: 0 0 28px;
}

.toc strong {
  font-family: var(--font-display);
  display: block;
  margin-bottom: 10px;
  font-size: 18px;
}

.toc ol {
  margin: 0 0 0 20px;
}

.toc li {
  margin: 6px 0;
  font-size: 15.5px;
}

.box {
  border-radius: 14px;
  padding: 18px 20px;
  margin: 0 0 22px;
  border: 1px solid var(--line);
  background: var(--papel);
}

.box.tip { border-left: 5px solid var(--blau-l); background: #eef1ff; }
.box.warn { border-left: 5px solid var(--vermell); background: #fdeaef; }
.box.expert { border-left: 5px solid var(--pi); background: #e6f2ed; }
.box p:last-child { margin: 0; }

.box-t {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 6px;
  display: block;
  font-size: 17.5px;
}

.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 14px;
  margin: 0 0 26px;
}

.stat {
  background: var(--granit);
  border-radius: 14px;
  padding: 16px;
  color: #c4c9ef;
}

.stat b {
  display: block;
  font-family: var(--font-mono);
  font-size: 22px;
  color: var(--groc);
}

.stat span {
  font-size: 13.5px;
}

.cta,
.hub-cta {
  margin: 36px 0;
  border-radius: 22px;
  padding: 34px 28px;
  background:
    radial-gradient(520px 230px at 100% 0%, rgba(213, 0, 50, .3), transparent 70%),
    linear-gradient(135deg, var(--granit) 0%, var(--blau-d) 100%);
  color: #fff;
  text-align: center;
}

.cta h2,
.cta h3,
.hub-cta h2 {
  margin: 0 0 10px;
  color: #fff;
  font-size: clamp(24px, 3vw, 32px);
}

.cta h2::before { display: none; }

.cta p,
.hub-cta p {
  color: #d6dbf5;
  margin: 0 auto 20px;
  max-width: 620px;
}

.cta .row,
.hub-cta .row {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.author-box {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  background: var(--papel);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 20px;
  margin-top: 38px;
}

.author-box .av {
  width: 54px;
  height: 54px;
  border-radius: 14px;
  background: var(--blau);
  box-shadow: 0 0 0 3px var(--neu), 0 0 0 5px var(--vermell);
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  color: #fff;
  font-weight: 800;
  flex: none;
}

.author-box p {
  font-size: 14.5px;
  margin: 4px 0 0;
  color: var(--mut);
}

.aside .stick {
  position: sticky;
  top: 90px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.side {
  background: var(--papel);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 20px;
}

.side.buy {
  background: var(--granit);
  color: #d6dbf5;
  border: 0;
}

.side.buy h3,
.side.buy h4,
.side.buy .side-title,
.side.buy .price { color: #fff; }
.side h3,
.side h4,
.side .side-title { font-family: var(--font-display); font-weight: 700; font-size: 17px; margin-bottom: 12px; color: var(--ink); }
.side ul { list-style: none; }
.side li { margin: 8px 0; font-size: 14.5px; line-height: 1.45; }
.side .price { font-family: var(--font-display); font-size: 34px; font-weight: 800; }
.side .price small { font-size: 14px; color: #a7b1c2; font-family: var(--font-body); }
.side .btn { width: 100%; margin-top: 12px; }

.cards-ico {
  display: flex;
  gap: 8px;
  margin-top: 12px;
  font-size: 12px;
  color: #a7b1c2;
  align-items: center;
  flex-wrap: wrap;
}

.cards-ico span {
  border: 1px solid rgba(255, 255, 255, .25);
  border-radius: 6px;
  padding: 3px 8px;
  font-weight: 700;
  color: #fff;
}

.related {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 14px;
  margin-top: 16px;
}

.related a {
  display: block;
  background: var(--papel);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px;
  color: var(--ink);
  font-weight: 700;
  font-family: var(--font-display);
  font-size: 16.5px;
  line-height: 1.3;
  border-left: 4px solid var(--vermell);
}

.related a:hover {
  border-left-color: var(--blau);
  text-decoration: none;
}

.related a small {
  display: block;
  font-family: var(--font-mono);
  color: var(--blau);
  font-size: 11px;
  letter-spacing: .07em;
  text-transform: uppercase;
  margin-bottom: 5px;
}

/* Legal Layout */
.lhero {
  padding: 52px 0 34px;
  background: linear-gradient(175deg, #ffffff, var(--boira));
  border-bottom: 1px solid var(--line);
}

.lhero h1 {
  font-size: clamp(30px, 4.4vw, 46px);
}

.lhero p {
  color: var(--mut);
  margin-top: 10px;
}

.legal {
  max-width: 860px;
  padding: 38px 20px 80px;
}

.legal h2 {
  font-size: 24px;
  margin: 34px 0 12px;
}

.legal p,
.legal li {
  color: #232c3a;
  margin-bottom: 12px;
}

.legal ul,
.legal ol {
  margin: 0 0 16px 22px;
}

.legal .box {
  border-left: 5px solid var(--blau);
  margin: 18px 0;
}

.legal nav.lnk {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 38px;
}

.legal nav.lnk a {
  border: 1.5px solid var(--line);
  border-radius: 999px;
  padding: 7px 14px;
  font-size: 14px;
  background: var(--papel);
}

/* Final CTA Banner */
.final {
  background: var(--blau);
  color: #fff;
  padding: 72px 0 108px;
  position: relative;
  overflow: hidden;
}

.final::before {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 66px;
  background: var(--granit);
  clip-path: polygon(0 100%, 0 60%, 12% 20%, 22% 55%, 34% 10%, 46% 60%, 58% 25%, 70% 65%, 82% 15%, 92% 50%, 100% 30%, 100% 100%);
}

.final-g {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
}

.final h2 {
  color: #fff;
  font-size: clamp(26px, 3.8vw, 42px);
  margin-bottom: 10px;
}

.final p {
  color: #d9def0;
  max-width: 620px;
}

.final-c {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* 09. Footer, Sticky CTA & WhatsApp Float */
.ftr {
  background: var(--granit);
  padding: 64px 0 110px;
  font-size: 14.5px;
  color: #a7b1c2;
  position: relative;
}

.ftr::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -38px;
  height: 40px;
  background: var(--granit);
  clip-path: polygon(0 100%, 0 70%, 6% 40%, 11% 62%, 18% 18%, 24% 55%, 31% 30%, 37% 60%, 44% 8%, 50% 48%, 57% 26%, 63% 58%, 70% 14%, 77% 50%, 83% 32%, 90% 62%, 95% 40%, 100% 66%, 100% 100%);
}

.ftr .logo { color: #fff; }
.ftr .logo b { color: var(--groc); }

.ftr-desc {
  margin-top: 14px;
  max-width: 360px;
  line-height: 1.6;
}

.ftr-disc {
  margin-top: 22px;
  font-size: 12.5px;
  opacity: .75;
}

.fgrid {
  display: grid;
  grid-template-columns: 1.8fr 1fr 1fr 1fr;
  gap: 28px;
}

.ftr h5,
.ftr .ftr-h {
  font-family: var(--font-display);
  color: #fff;
  font-size: 16px;
  margin-bottom: 12px;
  font-weight: 700;
}

.ftr ul { list-style: none; }
.ftr li { margin: 7px 0; }
.ftr a { color: #a7b1c2; font-weight: 500; }
.ftr a:hover { color: #fff; }

.fbot {
  margin-top: 28px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, .12);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 13px;
}

/* Sticky Conversion Pill (#cta-sticky) on non-homepage pages */
#cta-sticky {
  position: fixed;
  left: 18px;
  bottom: 18px;
  z-index: 55;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: var(--granit);
  color: #fff;
  border: 1px solid rgba(254, 221, 0, .45);
  border-radius: 999px;
  padding: 10px 18px 10px 14px;
  box-shadow: 0 14px 32px rgba(18, 25, 38, .42);
  font-size: 14px;
  font-weight: 700;
  opacity: 0;
  transform: translateY(20px);
  pointer-events: none;
  transition: opacity .25s ease, transform .25s ease;
}

#cta-sticky.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

#cta-sticky:hover {
  text-decoration: none;
  border-color: var(--groc);
  transform: translateY(-2px);
}

#cta-sticky .cta-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--groc);
  flex: none;
}

#cta-sticky .cta-badge {
  background: var(--vermell);
  color: #fff;
  font-family: var(--font-mono);
  font-size: 12px;
  padding: 3px 9px;
  border-radius: 999px;
}

/* Floating WhatsApp */
.wa-float {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 60;
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  filter: drop-shadow(0 14px 26px rgba(18, 25, 38, .42));
  transition: transform .25s ease;
}

.wa-float:hover {
  transform: translateY(-3px);
  text-decoration: none;
}

.wa-float .wa-pill {
  position: relative;
  display: block;
  background: var(--wa);
  color: #03230f;
  font-weight: 700;
  font-size: 14.5px;
  line-height: 1.35;
  padding: 11px 20px;
  border-radius: 999px;
  white-space: nowrap;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35);
}

.wa-float .wa-pill::after {
  content: "";
  position: absolute;
  right: -6px;
  top: 50%;
  width: 13px;
  height: 13px;
  background: var(--wa);
  border-radius: 2px;
  transform: translateY(-50%) rotate(45deg);
}

.wa-float .wa-circ {
  position: relative;
  flex: none;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 25%, #4ee38a, #25d366 55%, #16a34a);
  display: grid;
  place-items: center;
  box-shadow: 0 0 0 4px rgba(37, 211, 102, .2);
}

.wa-float .wa-circ::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid var(--wa);
  animation: ping 2.2s infinite;
  pointer-events: none;
}

.wa-float .wa-circ svg {
  width: 30px;
  height: 30px;
  fill: #fff;
}

.wa-float:hover .wa-pill,
.wa-float:hover .wa-pill::after {
  background: #2ee072;
}

@keyframes ping {
  0% { transform: scale(1); opacity: .8; }
  100% { transform: scale(1.45); opacity: 0; }
}

/* 10. Responsive Breakpoints */
@media (max-width: 1024px) {
  .nav { display: none; }
  .nav-toggle { display: inline-flex; }
  .hero-g,
  .phero-grid,
  .setup,
  .agrid,
  .lab-calc {
    grid-template-columns: 1fr;
  }
  .aside { display: none; }
  .tabs { flex-direction: row; overflow-x: auto; padding-bottom: 4px; }
  .passes,
  .plans,
  .plans-grid,
  .device-grid,
  .trust-strip,
  .lab-rig-grid,
  .plans-compact {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .bento-card,
  .bento-card--wide {
    grid-column: span 6;
  }
  .app-grid,
  .app-rec-grid,
  .scorecard,
  .pillars {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .metrics,
  .cinefacts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .vgrid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .sec { padding: 60px 0; }
  .est,
  .two,
  .glossary-grid,
  .author-hero-card,
  .fgrid {
    grid-template-columns: 1fr;
  }
  .bento-card,
  .bento-card--wide {
    grid-column: span 12;
  }
  .app-grid,
  .app-rec-grid,
  .scorecard,
  .pillars {
    grid-template-columns: 1fr;
  }
  #cta-sticky {
    left: 14px;
    bottom: 92px;
    font-size: 13.5px;
    padding: 9px 14px;
  }
}

@media (max-width: 600px) {
  .hdr .btn {
    padding: 9px 13px;
    font-size: 13.5px;
    white-space: nowrap;
  }
  .logo { font-size: 18px; }
  .logo sup { display: none; }
  .passes,
  .plans,
  .plans-grid,
  .device-grid,
  .trust-strip,
  .lab-rig-grid,
  .plans-compact,
  .vgrid,
  .spec-tiles,
  .lab-kpis {
    grid-template-columns: 1fr;
  }
  .pass.hot,
  .plan.plan--featured,
  .plan.hot {
    transform: none;
  }
  .est,
  .lab-calc {
    padding: 20px;
  }
  .wa-float {
    right: 12px;
    bottom: 12px;
    gap: 10px;
  }
  .wa-float .wa-pill {
    font-size: 13px;
    padding: 9px 15px;
  }
  .wa-float .wa-circ {
    width: 50px;
    height: 50px;
  }
  .wa-float .wa-circ svg {
    width: 26px;
    height: 26px;
  }
  #cta-sticky {
    left: 12px;
    bottom: 76px;
    max-width: calc(100vw - 24px);
  }
}

@media (max-width: 380px) {
  .hdr .wrap { gap: 8px; padding: 0 14px; }
  .logo { font-size: 16.5px; gap: 7px; }
  .logo .mark { width: 30px; height: 30px; }
  .hdr .btn { padding: 8px 11px; font-size: 13px; }
}

@media (max-width: 340px) {
  .wa-float .wa-pill { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
