/* ==========================================================================
   IPTV Brunei — Pro Theme Stylesheet (/assets/theme.css)
   Archetype: Pill-Navigation Hero + Modular Grid Cards + Interactive Comparison Band + Structured Knowledge FAQ
   Personality: Modern SaaS Studio (16px cards, soft diffused shadows, generous breathing room, crisp pill badges)
   Brand Identity: Istana Gold (#f7d417 / #8f6400), Brunei River Teal (#0d6d6e), Warm Ivory (#fbf7ea) & Deep Obsidian (#13110b)
   ========================================================================== */

/* --------------------------------------------------------------------------
   01. Tokens & Reset
   -------------------------------------------------------------------------- */
:root {
  --sand: #fbf7ea;
  --paper: #fffdf6;
  --shell: #f2eacf;
  --ink: #17150f;
  --ink2: #3d392b;
  --night: #13110b;
  --night2: #1e1b12;
  --blk: #17150f;
  --mut: #656051;
  --aqua: #0d6d6e;
  --aqua-d: #08504f;
  --river: #0d6d6e;
  --river2: #3cc2b4;
  --gold: #8f6400;
  --gold-d: #5a3f00;
  --dome: #d9a521;
  --yel: #f7d417;
  --conch: #f7d417;
  --coral: #ce1126;
  --crest: #ce1126;
  --cream: #fff8dc;
  --wa: #25d366;
  --line: rgba(23, 21, 15, 0.12);
  --line-dark: rgba(255, 255, 255, 0.12);
  --radius: 16px;
  --radius-lg: 22px;
  --radius-pill: 999px;
  --shadow-sm: 0 4px 14px -6px rgba(23, 21, 15, 0.1);
  --shadow-md: 0 14px 34px -16px rgba(23, 21, 15, 0.18);
  --shadow-lg: 0 26px 56px -26px rgba(23, 21, 15, 0.28);
  --font-display: "Fraunces", Georgia, serif;
  --font-sans: "Figtree", system-ui, -apple-system, sans-serif;
  --font-mono: "DM Mono", ui-monospace, monospace;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
  overflow-x: clip;
}

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

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

a {
  color: var(--aqua-d);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.18s ease;
}

a:hover {
  text-decoration: underline;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--aqua);
  outline-offset: 2px;
}

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

.wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 22px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

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

.skip:focus {
  left: 12px;
  top: 12px;
  background: var(--ink);
  color: var(--yel);
  padding: 10px 16px;
  border-radius: 10px;
  z-index: 999;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 700;
  border-radius: 12px;
  padding: 12px 22px;
  font-size: 15px;
  line-height: 1.25;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, border-color 0.18s ease;
  border: 0;
  cursor: pointer;
  font-family: inherit;
  text-decoration: none;
}

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

.btn-wa {
  background: var(--wa);
  color: #03230f;
  box-shadow: 0 6px 18px -8px rgba(37, 211, 102, 0.6);
}

.btn-wa:hover {
  box-shadow: 0 12px 28px -8px rgba(37, 211, 102, 0.75);
}

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

.btn-gold:hover {
  box-shadow: 0 6px 0 var(--gold-d);
}

.btn-yel {
  background: var(--yel);
  color: var(--ink);
  box-shadow: 0 4px 0 #a58a00;
}

.btn-yel:hover {
  box-shadow: 0 6px 0 #a58a00;
}

.btn-dark {
  background: var(--ink);
  color: var(--yel);
  box-shadow: var(--shadow-sm);
}

.btn-dark:hover {
  background: #282419;
}

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

.btn-ghost:hover {
  background: rgba(23, 21, 15, 0.05);
}

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

.btn-ghost-light:hover {
  background: rgba(255, 255, 255, 0.12);
}

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

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

.pill-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  background: rgba(13, 109, 110, 0.1);
  color: var(--aqua-d);
  border: 1px solid rgba(13, 109, 110, 0.2);
}

.pill-badge--gold {
  background: rgba(247, 212, 23, 0.18);
  color: var(--gold-d);
  border-color: rgba(143, 100, 0, 0.28);
}

.pill-badge--dark {
  background: rgba(247, 212, 23, 0.14);
  color: var(--yel);
  border-color: rgba(247, 212, 23, 0.3);
}

/* --------------------------------------------------------------------------
   03. Header & Navigation
   -------------------------------------------------------------------------- */
.flagbar {
  height: 6px;
  background: linear-gradient(100deg, var(--yel) 0 38%, #fff 38% 44%, var(--ink) 44% 52%, var(--yel) 52% 100%);
  border-bottom: 1px solid var(--line);
}

.hdr {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(251, 247, 234, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}

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

.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: -0.02em;
  flex: none;
}

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

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

.logo b {
  color: var(--aqua-d);
}

/* Modern SaaS Studio Pill Navigation */
.nav {
  display: flex;
  align-items: center;
  gap: 4px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  padding: 4px;
  box-shadow: var(--shadow-sm);
}

.nav a {
  color: var(--ink2);
  font-size: 14px;
  font-weight: 600;
  padding: 7px 13px;
  border-radius: var(--radius-pill);
  white-space: nowrap;
  transition: background 0.18s ease, color 0.18s ease;
}

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

.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: 11px;
  border: 1.5px solid var(--line);
  background: var(--paper);
  color: var(--ink);
  cursor: pointer;
}

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

.mobile-nav {
  display: none;
  position: fixed;
  top: 78px;
  left: 14px;
  right: 14px;
  z-index: 65;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: var(--shadow-lg);
}

.mobile-nav.is-open {
  display: block;
}

.mobile-nav-list {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 14px;
}

.mobile-nav-list a {
  display: block;
  padding: 10px 14px;
  border-radius: 10px;
  background: var(--sand);
  border: 1px solid var(--line);
  color: var(--ink);
  font-size: 14.5px;
  font-weight: 600;
}

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

.mobile-nav .btn {
  width: 100%;
}

.nav-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(19, 17, 11, 0.45);
  z-index: 55;
  backdrop-filter: blur(2px);
}

.nav-backdrop.is-open {
  display: block;
}

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

.sec--tight-top {
  padding-top: 56px;
}

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

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

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

.sec.night,
.sec--night {
  background: radial-gradient(900px 420px at 90% 0%, rgba(217, 165, 33, 0.2), transparent 62%),
    radial-gradient(760px 380px at 0% 100%, rgba(13, 109, 110, 0.32), transparent 60%),
    linear-gradient(180deg, var(--night) 0%, #0b0a06 100%);
  color: #d4ccb0;
}

.sec.night h2,
.sec.night h3,
.sec.night h4,
.sec--night h2,
.sec--night h3,
.sec--night h4 {
  color: #fff;
}

.sec.night a:not(.btn),
.sec--night a:not(.btn) {
  color: var(--yel);
}

.sec.river,
.sec--river {
  background: linear-gradient(180deg, #0a4f50 0%, #073b3c 100%);
  color: #cfe9e5;
}

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

.sec.river a:not(.btn),
.sec--river a:not(.btn) {
  color: var(--yel);
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 12px;
}

.kicker::before {
  content: "";
  width: 22px;
  height: 8px;
  background: linear-gradient(100deg, var(--yel) 0 30%, #fff 30% 50%, #000 50% 75%, var(--yel) 75%);
  border-radius: 2px;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.15);
}

.sec.night .kicker,
.sec.river .kicker,
.sec--night .kicker,
.sec--river .kicker {
  color: var(--yel);
}

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

.sec-h.center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.sec-h h2 {
  font-size: clamp(28px, 3.8vw, 44px);
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}

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

.sec.night .sec-h p,
.sec--night .sec-h p {
  color: #c9c1a4;
}

.sec.river .sec-h p,
.sec--river .sec-h p {
  color: #bfe0db;
}

.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow-md);
}

.sec.night .card,
.sec--night .card {
  background: rgba(255, 255, 255, 0.045);
  border-color: var(--line-dark);
  box-shadow: none;
}

/* Homepage Hero */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--night);
  color: #e9e2c8;
  padding: 64px 0 0;
}

.hero::before {
  content: "";
  position: absolute;
  inset: -40% -10% auto -30%;
  height: 180%;
  background: linear-gradient(118deg, transparent 0 31%, rgba(255, 255, 255, 0.07) 31% 35%, rgba(0, 0, 0, 0.6) 35% 41%, transparent 41%),
    linear-gradient(118deg, rgba(247, 212, 23, 0.1) 0 31%, transparent 31%);
  pointer-events: none;
}

.hero::after {
  content: "";
  position: absolute;
  right: -60px;
  top: -80px;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(217, 165, 33, 0.33), transparent 65%);
  pointer-events: none;
}

.hero .wrap {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.12fr 0.88fr;
  gap: 48px;
  align-items: center;
}

.hero-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}

.hero-pills a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 13px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #ece6cf;
  font-size: 13px;
  font-weight: 600;
}

.hero-pills a:hover {
  background: var(--yel);
  color: var(--ink);
  border-color: var(--yel);
  text-decoration: none;
}

.hero h1 {
  color: #fff;
  font-size: clamp(34px, 4.9vw, 60px);
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin: 8px 0 18px;
}

.hero h1 .hl {
  color: var(--yel);
  font-style: italic;
}

.hero h1 small {
  display: block;
  font-family: var(--font-sans);
  font-size: clamp(16px, 1.65vw, 19.5px);
  font-weight: 600;
  letter-spacing: 0;
  color: #cfc6a6;
  margin-top: 14px;
  line-height: 1.45;
}

.hero .lede {
  font-size: 17.5px;
  color: #d7cfb1;
  max-width: 600px;
  margin-bottom: 24px;
}

.hero .lede strong {
  color: #fff;
}

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

.hero .btn-gold {
  background: var(--yel);
  color: var(--ink);
  box-shadow: 0 4px 0 #a58a00;
}

.hero .btn-gold:hover {
  box-shadow: 0 7px 0 #a58a00;
}

.hero .btn-ghost {
  border-color: #e9e2c8;
  color: #fff;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--yel);
}

.hero-tag i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #3ddc84;
  box-shadow: 0 0 0 0 rgba(61, 220, 132, 0.7);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  70% {
    box-shadow: 0 0 0 10px rgba(61, 220, 132, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(61, 220, 132, 0);
  }
}

.hero-trust {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 4px;
  max-width: 620px;
}

.hero-trust div {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 14px;
  padding: 9px 13px;
  font-size: 12.5px;
  color: #cfc6a6;
  line-height: 1.25;
}

.hero-trust b {
  display: block;
  color: #fff;
  font-size: 13.5px;
}

.hero-trust .ic {
  width: 34px;
  height: 34px;
  flex: none;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: rgba(247, 212, 23, 0.15);
  color: var(--yel);
}

.hero-trust .ic svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.hero-trust .cards {
  font: 800 10px var(--font-sans);
  letter-spacing: 0.04em;
  width: auto;
  padding: 0 7px;
  color: var(--ink);
  background: var(--yel);
}

/* Hero Live BNT Board */
.board {
  position: relative;
  background: linear-gradient(180deg, #24200f, #17140a);
  border: 1px solid rgba(247, 212, 23, 0.28);
  border-radius: var(--radius-lg);
  padding: 22px;
  box-shadow: 0 40px 80px -40px #000, inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.board-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #bfb48c;
}

.board-top b {
  color: var(--yel);
  font-size: 20px;
  letter-spacing: 0.04em;
}

.board-screen {
  display: grid;
  grid-template-columns: 124px 1fr;
  gap: 16px;
  align-items: center;
  background: #0c0b07;
  border-radius: 16px;
  padding: 12px;
  margin-bottom: 14px;
}

.board-art {
  position: relative;
  width: 124px;
  height: 184px;
  border-radius: 12px;
  overflow: hidden;
  display: grid;
  place-items: center;
  background: radial-gradient(90% 70% at 50% 15%, #2f8f5b, transparent 70%), linear-gradient(180deg, #0f5132, #082a1b);
}

.board-art::after {
  content: "4K · 50fps";
  position: absolute;
  left: 8px;
  bottom: 8px;
  font: 500 10px var(--font-mono);
  background: var(--yel);
  color: var(--ink);
  padding: 2px 6px;
  border-radius: 4px;
}

.board-art svg {
  width: 84%;
  height: auto;
  opacity: 0.9;
}

.board-screen .live {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: var(--crest);
  color: #fff;
  font: 700 11.5px var(--font-mono);
  letter-spacing: 0.1em;
  padding: 4px 9px;
  border-radius: 6px;
  margin-bottom: 10px;
}

.board-screen .live::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #fff;
  animation: blink 1.2s infinite;
}

@keyframes blink {
  50% {
    opacity: 0.2;
  }
}

.board-screen h2,
.board-screen h3 {
  color: #fff;
  font-size: 20px;
  margin-bottom: 6px;
}

.board-screen p {
  font-size: 13.5px;
  color: #b9af8d;
  line-height: 1.5;
}

.meter {
  display: flex;
  gap: 4px;
  align-items: flex-end;
  height: 28px;
  margin-top: 12px;
}

.meter span {
  flex: 1;
  background: linear-gradient(180deg, var(--yel), var(--dome));
  border-radius: 2px;
  animation: eq 1.4s infinite ease-in-out;
}

.meter span:nth-child(2n) {
  animation-delay: 0.2s;
}

.meter span:nth-child(3n) {
  animation-delay: 0.45s;
}

.meter span:nth-child(5n) {
  animation-delay: 0.7s;
}

@keyframes eq {
  0%,
  100% {
    height: 30%;
  }
  50% {
    height: 100%;
  }
}

.fix {
  list-style: none;
  display: grid;
  gap: 8px;
}

.fix li {
  display: grid;
  grid-template-columns: 62px 1fr auto;
  gap: 12px;
  align-items: center;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 12px;
  padding: 10px 12px;
  font-size: 14px;
  color: #e5ddc0;
}

.fix li time {
  font: 500 16.5px var(--font-mono);
  color: var(--yel);
}

.fix li small {
  font: 500 11px var(--font-mono);
  letter-spacing: 0.06em;
  color: #8f8668;
  text-transform: uppercase;
}

.board-note {
  font-size: 12.5px;
  color: #8f8668;
  margin-top: 12px;
}

.dome-line {
  position: relative;
  z-index: 1;
  margin-top: 52px;
  height: 104px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 110' preserveAspectRatio='none'%3E%3Cpath d='M0 110V96h1200v14z' fill='%23fbf7ea'/%3E%3Cg fill='%23fbf7ea' fill-opacity='.10'%3E%3Cpath d='M40 96l26-18 26 18zM110 96l30-20 30 20zM190 96l24-16 24 16zM260 96l28-19 28 19zM330 96l22-15 22 15z'/%3E%3C/g%3E%3Cg stroke='%23fbf7ea' stroke-opacity='.12' stroke-width='3'%3E%3Cpath d='M48 96v14M84 96v14M118 96v14M162 96v14M196 96v14M232 96v14M266 96v14M310 96v14M336 96v14M368 96v14'/%3E%3C/g%3E%3Cpath d='M720 96V70h220v26zM770 70V52h120v18zM762 54q68-90 136 0z' fill='%23fbf7ea' fill-opacity='.10'/%3E%3Cpath d='M776 54q54-70 108 0z' fill='%23d9a521' fill-opacity='.55'/%3E%3Cpath d='M829 4h2v12h-2z' fill='%23d9a521'/%3E%3Cpath d='M970 96V14h12v82zM968 14q8-16 16 0z' fill='%23fbf7ea' fill-opacity='.12'/%3E%3Cpath d='M736 70q10-14 20 0zM904 70q10-14 20 0z' fill='%23fbf7ea' fill-opacity='.10'/%3E%3C/svg%3E")
    bottom / 100% 100% no-repeat;
}

/* Pill-Navigation Hero for Stage 1 Visual Landing Pages */
.phero {
  padding: 54px 0 48px;
  position: relative;
  overflow: hidden;
  background: radial-gradient(960px 420px at 94% -10%, rgba(247, 212, 23, 0.3), transparent 58%),
    radial-gradient(680px 320px at 0% 110%, rgba(13, 109, 110, 0.16), transparent 60%),
    linear-gradient(175deg, #fefbf0 0%, #f3ead0 100%);
  border-bottom: 1px solid var(--line);
}

.phero--dark {
  background: radial-gradient(900px 400px at 92% 0%, rgba(247, 212, 23, 0.18), transparent 60%),
    radial-gradient(700px 340px at 0% 100%, rgba(13, 109, 110, 0.28), transparent 60%),
    linear-gradient(180deg, var(--night) 0%, #1a170e 100%);
  color: #e2dac0;
  border-bottom-color: var(--line-dark);
}

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

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

.phero--dark .crumbs,
.phero--dark .crumbs a {
  color: #b4ac91;
}

.phero h1 {
  font-size: clamp(30px, 4.4vw, 50px);
  font-weight: 800;
  max-width: 900px;
  margin-top: 10px;
}

.phero .lead {
  font-size: 18.5px;
  color: var(--ink2);
  max-width: 800px;
  margin-top: 14px;
}

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

.pill-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 22px;
}

.pill-nav a,
.pill-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  background: var(--paper);
  border: 1.5px solid var(--line);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.18s ease;
}

.pill-nav a:hover,
.pill-btn:hover,
.pill-btn[aria-pressed="true"],
.pill-nav a.is-active {
  background: var(--ink);
  color: var(--yel);
  border-color: var(--ink);
  text-decoration: none;
}

.phero--dark .pill-nav a {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.16);
  color: #ece6cf;
}

.phero--dark .pill-nav a:hover {
  background: var(--yel);
  color: var(--ink);
  border-color: var(--yel);
}

/* --------------------------------------------------------------------------
   05. Pricing Plans & Cards
   -------------------------------------------------------------------------- */
.plans4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  align-items: end;
}

.pl {
  position: relative;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  padding: 32px 22px 24px;
  text-align: left;
  margin-top: 44px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

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

.pl::before {
  content: "";
  position: absolute;
  left: -1px;
  right: -1px;
  top: -44px;
  height: 45px;
  background: var(--shell);
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
}

.pl::after {
  content: "";
  position: absolute;
  left: 50%;
  top: -30px;
  width: 16px;
  height: 16px;
  margin-left: -8px;
  border-radius: 50%;
  background: var(--paper);
  box-shadow: inset 0 0 0 2px var(--line);
}

.pl.hot {
  background: var(--night);
  color: #e5ddc0;
  border-color: var(--night);
  transform: translateY(-12px);
  box-shadow: 0 36px 64px -34px rgba(0, 0, 0, 0.72);
}

.pl.hot:hover {
  transform: translateY(-16px);
}

.pl.hot::before {
  background: var(--yel);
}

.pl.hot::after {
  background: var(--night);
  box-shadow: none;
}

.pl .badge {
  position: absolute;
  top: 12px;
  right: 14px;
  font: 500 11px var(--font-mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: var(--crest);
  color: #fff;
  padding: 4px 9px;
  border-radius: var(--radius-pill);
}

.pl h3 {
  font-size: 21px;
  margin-bottom: 6px;
}

.pl.hot h3 {
  color: #fff;
}

.pl .amt {
  font-family: var(--font-display);
  font-size: 50px;
  font-weight: 800;
  line-height: 1;
  color: var(--ink);
  letter-spacing: -0.03em;
  margin: 10px 0 4px;
}

.pl.hot .amt {
  color: var(--yel);
}

.pl .amt sup {
  font-size: 21px;
  vertical-align: 26px;
  margin-right: 2px;
}

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

.pl.hot .per {
  color: #b6ac88;
}

.pl ul {
  list-style: none;
  margin-bottom: 22px;
  font-size: 14.5px;
}

.pl li {
  padding: 7px 0;
  border-bottom: 1px dashed var(--line);
  display: flex;
  gap: 9px;
}

.pl.hot li {
  border-color: rgba(255, 255, 255, 0.12);
}

.pl li::before {
  content: "✓";
  color: var(--river);
  font-weight: 800;
}

.pl.hot li::before {
  color: var(--yel);
}

.pl .btn {
  width: 100%;
}

/* Modern SaaS Studio Modular Pricing Cards (.plans / .plan / .plan--featured) */
.plans {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin: 22px 0 28px;
  align-items: stretch;
}

.plan {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--paper);
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 22px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.plan:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: rgba(13, 109, 110, 0.35);
}

.plan.hot,
.plan--featured {
  background: var(--night);
  border-color: var(--yel);
  color: #e5ddc0;
  transform: translateY(-6px);
  box-shadow: 0 28px 56px -24px rgba(19, 17, 11, 0.78), 0 0 0 1px rgba(247, 212, 23, 0.4);
}

.plan.hot:hover,
.plan--featured:hover {
  transform: translateY(-10px);
  border-color: var(--yel);
  box-shadow: 0 34px 62px -24px rgba(19, 17, 11, 0.86), 0 0 0 1.5px var(--yel);
}

.plan--featured .plan-badge {
  position: absolute;
  top: -13px;
  left: 20px;
  background: var(--yel);
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
}

.plan h3,
.plan h4 {
  font-size: 18px;
  color: var(--ink);
  margin-bottom: 6px;
}

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

.plan .p {
  font-family: var(--font-display);
  font-size: 40px;
  font-weight: 800;
  line-height: 1.05;
  color: var(--ink);
  margin: 8px 0 4px;
}

.plan.hot .p,
.plan--featured .p {
  color: var(--yel);
}

.plan .p small {
  font-size: 14px;
  color: var(--mut);
  font-weight: 500;
  font-family: var(--font-sans);
}

.plan.hot .p small,
.plan--featured .p small {
  color: #c9c3ab;
}

.plan-sub {
  font-size: 13.5px;
  color: var(--mut);
  margin-bottom: 16px;
}

.plan--featured .plan-sub {
  color: #bdb495;
}

.plan-list {
  list-style: none;
  margin: 0 0 20px;
  padding: 0;
  font-size: 14.5px;
  text-align: left;
}

.plan-list li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 6px 0;
  border-bottom: 1px dashed var(--line);
}

.plan--featured .plan-list li {
  border-color: rgba(255, 255, 255, 0.12);
}

.plan-list li::before {
  content: "✓";
  color: var(--aqua);
  font-weight: 800;
  flex: none;
}

.plan--featured .plan-list li::before {
  color: var(--yel);
}

.plan .btn {
  width: 100%;
  margin-top: auto;
}

.pay-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 22px;
  justify-content: center;
  align-items: center;
  margin-top: 32px;
  padding: 16px 22px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink2);
  font-size: 14px;
}

.pay-row .cc {
  font: 800 14px var(--font-sans);
  letter-spacing: 0.04em;
  border: 1px solid var(--line);
  background: var(--sand);
  border-radius: 8px;
  padding: 5px 11px;
  color: var(--ink);
}

.pay-row .cc.v {
  color: #1a1f71;
}

.pay-row .cc.m {
  color: #eb001b;
}

.guarantee-band {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 22px;
  align-items: center;
  background: linear-gradient(135deg, #e3f2f0 0%, #fffdf6 100%);
  border: 1.5px solid rgba(13, 109, 110, 0.25);
  border-radius: var(--radius);
  padding: 26px 28px;
  margin-top: 28px;
}

.guarantee-ico {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: var(--aqua);
  color: #fff;
  display: grid;
  place-items: center;
  flex: none;
}

.guarantee-ico svg {
  width: 30px;
  height: 30px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.guarantee-band h3 {
  font-size: 21px;
  margin-bottom: 6px;
}

.guarantee-band p {
  font-size: 15px;
  color: var(--ink2);
}

/* --------------------------------------------------------------------------
   06. Bento / Device / App Grids
   -------------------------------------------------------------------------- */
/* Cinema Poster Carousel */
.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: 28px 0 36px;
  padding: 14px 4px 24px;
  scrollbar-width: thin;
  scrollbar-color: var(--yel) rgba(255, 255, 255, 0.08);
}

.poster-carousel::-webkit-scrollbar {
  height: 8px;
}

.poster-carousel::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 8px;
}

.poster-carousel::-webkit-scrollbar-thumb {
  background: var(--yel);
  border-radius: 8px;
}

.poster-carousel li {
  flex: 0 0 clamp(200px, 26vw, 290px);
  scroll-snap-align: start;
  border-radius: var(--radius);
  overflow: hidden;
  background: #0b1c14;
  box-shadow: 0 18px 36px -14px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(255, 255, 255, 0.08);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

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

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

.poster-carousel li:hover img,
.poster-carousel li:focus-within img {
  transform: scale(1.06);
}

/* VOD Genre Cards */
.vod {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.vcard {
  background: #0e0c07;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.vcard:hover {
  transform: translateY(-5px);
  border-color: rgba(247, 212, 23, 0.55);
}

.vart {
  position: relative;
  aspect-ratio: 16 / 9;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.vart::before {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(118deg, transparent 0 26px, rgba(255, 255, 255, 0.045) 26px 30px);
  pointer-events: none;
}

.vart::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 45%, rgba(8, 7, 3, 0.88));
}

.vart svg {
  position: relative;
  width: 38%;
  max-width: 150px;
  height: auto;
  opacity: 0.92;
  filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.35));
}

.v-act {
  background: radial-gradient(80% 90% at 70% 20%, #ff4b3e, transparent 60%), linear-gradient(135deg, #8a0f1c, #2a0608);
}

.v-thr {
  background: radial-gradient(80% 90% at 30% 20%, #3d5a80, transparent 60%), linear-gradient(135deg, #16213a, #05070f);
}

.v-sci {
  background: radial-gradient(70% 90% at 75% 25%, #3cc2b4, transparent 60%), linear-gradient(135deg, #0d4f5c, #071a22);
}

.v-fam {
  background: radial-gradient(80% 90% at 30% 25%, #ffe066, transparent 60%), linear-gradient(135deg, #e07a1f, #8a3c06);
}

.v-doc {
  background: radial-gradient(80% 90% at 70% 25%, #7fd6a0, transparent 60%), linear-gradient(135deg, #0d6d6e, #063435);
}

.v-reg {
  background: radial-gradient(80% 90% at 30% 25%, #f7d417, transparent 60%), linear-gradient(135deg, #8f6400, #2e2000);
}

.vb {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.vb span {
  font: 500 10.5px var(--font-mono);
  letter-spacing: 0.06em;
  background: rgba(8, 7, 3, 0.6);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.25);
  padding: 3px 7px;
  border-radius: 6px;
}

.vb span.k {
  background: var(--yel);
  color: var(--ink);
  border-color: var(--yel);
}

.vt {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 12px;
  z-index: 2;
  font: 800 20px var(--font-display);
  color: #fff;
  letter-spacing: -0.01em;
  line-height: 1.15;
}

.vbody {
  padding: 16px 18px 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
}

.vbody p {
  font-size: 14.5px;
  color: #c4bb9c;
  line-height: 1.6;
}

.vmeta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: auto;
}

.vmeta span {
  font: 500 11.5px var(--font-mono);
  color: var(--river2);
  background: rgba(60, 194, 180, 0.1);
  border-radius: 6px;
  padding: 3px 8px;
}

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

.cin-stats div {
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius);
  padding: 16px;
  background: rgba(255, 255, 255, 0.04);
}

.cin-stats b {
  display: block;
  font: 800 21px var(--font-display);
  color: #fff;
}

.cin-stats span {
  font-size: 13.5px;
  color: #b6ac88;
}

/* KPI Stats Strip */
.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 26px;
}

.stat {
  position: relative;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px 18px;
  text-align: center;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.stat::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 5px;
  background: linear-gradient(100deg, var(--yel) 0 40%, #fff 40% 55%, var(--ink) 55% 72%, var(--yel) 72%);
}

.stat b {
  display: block;
  font: 800 clamp(28px, 3.2vw, 42px) var(--font-display);
  letter-spacing: -0.03em;
  color: var(--ink);
  line-height: 1.05;
}

.stat b em {
  font-style: normal;
  color: var(--gold);
}

.stat span {
  display: block;
  margin-top: 8px;
  font: 500 12px var(--font-mono);
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--river);
}

/* Tech Pillars */
.tpil {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.tp {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

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

.pic {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: var(--night);
  color: var(--yel);
  box-shadow: 0 0 0 4px rgba(247, 212, 23, 0.16);
}

.tp:nth-child(2) .pic {
  background: var(--gold);
  color: #fff;
  box-shadow: 0 0 0 4px rgba(143, 100, 0, 0.14);
}

.tp:nth-child(3) .pic {
  background: var(--river);
  color: #fff;
  box-shadow: 0 0 0 4px rgba(13, 109, 110, 0.14);
}

.pic svg {
  width: 26px;
  height: 26px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.85;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.tp h3 {
  font-size: 20px;
}

.tp p {
  font-size: 15px;
  color: var(--ink2);
  line-height: 1.62;
}

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

.tp li {
  font: 700 12px var(--font-sans);
  background: var(--sand);
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  padding: 4px 10px;
  color: var(--ink);
}

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

.bento-grid--3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.bento-grid--2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.dcard,
.acard,
.hub-tile {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.dcard:hover,
.acard:hover,
.hub-tile:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: rgba(13, 109, 110, 0.35);
}

.dcard.is-hidden {
  display: none;
}

.dcard-head,
.acard-head {
  display: flex;
  align-items: center;
  gap: 14px;
}

.dcard-ico {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: var(--sand);
  border: 1px solid var(--line);
  color: var(--aqua-d);
  flex: none;
}

.dcard-ico svg {
  width: 28px;
  height: 28px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.app-tile {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  color: #fff;
  flex: none;
  box-shadow: 0 10px 20px -10px rgba(0, 0, 0, 0.35);
}

.app-tile svg {
  width: 30px;
  height: 30px;
}

.app-tile--tivimate {
  background: linear-gradient(135deg, #0d6d6e, #052e30);
}

.app-tile--smarters {
  background: linear-gradient(135deg, #b88200, #5a3f00);
}

.app-tile--ibo {
  background: linear-gradient(135deg, #ce1126, #6b0813);
}

.app-tile--xciptv {
  background: linear-gradient(135deg, #1d4ed8, #0f172a);
}

.app-tile--vlc {
  background: linear-gradient(135deg, #ea580c, #7c2d12);
}

.app-tile--smartone {
  background: linear-gradient(135deg, #0f766e, #1e293b);
}

.dcard h3,
.acard h3,
.hub-tile h3 {
  font-size: 19px;
  line-height: 1.25;
}

.dcard-sub,
.acard-sub {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--mut);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.dcard p,
.acard p,
.hub-tile p {
  font-size: 14.5px;
  color: var(--ink2);
  line-height: 1.6;
}

.dcard p a,
.acard p a,
.gterm p a,
.faq details p a,
.faqs details p a,
.prose p a,
.prose li a,
.page p a,
.page li a {
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1.5px;
  text-decoration-color: rgba(8, 80, 79, 0.38);
}

.dcard p a:hover,
.acard p a:hover,
.gterm p a:hover,
.faq details p a:hover,
.faqs details p a:hover,
.prose p a:hover,
.prose li a:hover,
.page p a:hover,
.page li a:hover {
  text-decoration-color: var(--aqua-d);
}

.filter-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--mut);
  margin-bottom: 18px;
}

.filter-status strong {
  color: var(--aqua-d);
}

.hub-links-strip {
  margin-top: 22px;
  padding: 16px 20px;
  border-radius: var(--radius);
  background: rgba(255, 253, 246, 0.88);
  border: 1px solid var(--line);
  font-size: 15px;
  color: var(--ink2);
  line-height: 1.65;
  box-shadow: var(--shadow-sm);
}

.hub-links-strip a {
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(8, 80, 79, 0.38);
}

.spec-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: auto;
  padding-top: 4px;
}

.spec-chips span {
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 500;
  padding: 4px 9px;
  border-radius: var(--radius-pill);
  background: var(--sand);
  border: 1px solid var(--line);
  color: var(--ink2);
}

.spec-chips span.chip-hi {
  background: rgba(13, 109, 110, 0.11);
  border-color: rgba(13, 109, 110, 0.25);
  color: var(--aqua-d);
}

.spec-chips span.chip-gold {
  background: rgba(247, 212, 23, 0.24);
  border-color: rgba(143, 100, 0, 0.26);
  color: var(--gold-d);
}

.hub-tile a.tile-link {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 700;
  color: var(--aqua-d);
}

.hub-tile a.tile-link::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: var(--radius);
}

/* Dark Device-to-App Recommendation Band */
.rec-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.rec-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  padding: 22px;
}

.rec-card small {
  display: block;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--yel);
  margin-bottom: 6px;
}

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

.rec-card p {
  font-size: 14.5px;
  color: #cfc6a6;
}

/* Comparison Tables */
.tblwrap,
.table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--paper);
  box-shadow: var(--shadow-sm);
}

.tblwrap + .bento-grid,
.tblwrap + .plans {
  margin-top: 28px;
}

.table-wrap {
  margin: 0 0 24px;
}

.cmp {
  width: 100%;
  min-width: 560px;
  border-collapse: separate;
  border-spacing: 0;
  background: var(--paper);
  font-size: 15px;
}

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

.cmp thead th {
  background: var(--ink);
  color: #fff;
  font-family: var(--font-display);
  font-size: 16px;
}

.cmp thead th.us {
  background: var(--yel);
  color: var(--ink);
}

.cmp td.us {
  background: #fffbe3;
  font-weight: 700;
}

.cmp tr:last-child td,
.cmp tr:last-child th {
  border-bottom: 0;
}

/* Districts & Local Coverage */
.districts {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.dist {
  border-radius: var(--radius);
  padding: 24px;
  background: var(--paper);
  border: 1px solid var(--line);
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
}

.dist::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: var(--yel);
}

.dist--teal::before {
  background: var(--aqua);
}

.dist--red::before {
  background: var(--coral);
}

.dist--ink::before {
  background: var(--ink);
}

.dist h3 {
  font-size: 21px;
  margin-bottom: 4px;
}

.dist .t {
  font: 500 11.5px var(--font-mono);
  color: var(--mut);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 12px;
  display: block;
}

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

.dist b.ms {
  display: inline-block;
  margin-top: auto;
  padding-top: 12px;
  font: 500 13px var(--font-mono);
  color: var(--river);
}

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

.gterm {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.gterm-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}

.gterm h2,
.gterm h3 {
  font-size: 20px;
  margin: 0;
}

.gterm-tip {
  background: var(--sand);
  border-left: 4px solid var(--aqua);
  border-radius: 0 10px 10px 0;
  padding: 10px 14px;
  font-size: 14px;
  color: var(--ink2);
  margin-top: auto;
}

/* Author Profile & Testing Lab */
.profile-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 28px;
  align-items: center;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-md);
}

.avatar-lg {
  width: 112px;
  height: 112px;
  border-radius: 24px;
  flex: none;
  box-shadow: var(--shadow-md);
}

.cred-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.about {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}

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

.about p {
  margin-bottom: 14px;
  color: var(--ink2);
}

.pillars {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.pillars div {
  background: var(--sand);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
}

.pillars b {
  display: block;
  font-family: var(--font-display);
  font-size: 18px;
  margin-bottom: 4px;
}

.pillars span {
  font-size: 14.5px;
  color: var(--ink2);
}

/* --------------------------------------------------------------------------
   07. Interactive Calculator & Filters
   -------------------------------------------------------------------------- */
/* Dedicated 4K Speed & Buffer Calculator (/speed-calculator/) */
.calc-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 28px;
  align-items: start;
}

.calc-panel {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-md);
}

.calc-field {
  border: 0;
  margin-bottom: 22px;
}

.calc-field:last-child {
  margin-bottom: 0;
}

.calc-field legend,
.calc-label {
  display: block;
  font-weight: 800;
  font-size: 15px;
  color: var(--ink);
  margin-bottom: 10px;
}

.calc-result {
  background: var(--night);
  color: #e5ddc0;
  border-radius: var(--radius-lg);
  padding: 28px;
  position: sticky;
  top: 94px;
  box-shadow: var(--shadow-lg);
}

.calc-result-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line-dark);
}

.calc-result-head h2 {
  color: #fff;
  font-size: 22px;
}

.calc-metrics {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 18px;
}

.calc-metric {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 14px;
  padding: 15px;
}

.calc-metric span {
  display: block;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #b6ac88;
  margin-bottom: 4px;
}

.calc-metric b {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 800;
  color: var(--yel);
  line-height: 1.1;
}

.calc-metric--wide {
  grid-column: 1 / -1;
}

.calc-metric--wide b {
  font-size: 21px;
  color: #58e0a0;
}

.calc-advice {
  background: rgba(247, 212, 23, 0.08);
  border: 1px solid rgba(247, 212, 23, 0.25);
  border-radius: 14px;
  padding: 14px 16px;
  font-size: 14.5px;
  color: #ece6cf;
  margin-bottom: 18px;
}

.calc-result .btn {
  width: 100%;
}

/* Homepage Bandwidth Estimator */
.est {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 28px;
}

.est fieldset {
  border: 0;
  margin-bottom: 22px;
}

.est fieldset.last-field {
  margin-bottom: 0;
}

.est legend,
.lbl {
  font-weight: 800;
  font-size: 15px;
  margin-bottom: 10px;
  display: block;
}

.seg {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.seg button {
  background: var(--sand);
  border: 1.5px solid var(--line);
  color: var(--ink);
  font: 700 14px var(--font-sans);
  padding: 9px 14px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: all 0.16s ease;
}

.seg button[aria-pressed="true"] {
  background: var(--ink);
  color: var(--yel);
  border-color: var(--ink);
}

.sec.night .seg button,
.sec.river .seg button {
  background: rgba(255, 255, 255, 0.07);
  color: #ece6cf;
  border-color: rgba(255, 255, 255, 0.18);
}

.sec.night .seg button[aria-pressed="true"],
.sec.river .seg button[aria-pressed="true"] {
  background: var(--yel);
  color: var(--ink);
  border-color: var(--yel);
}

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

.range input {
  flex: 1;
  accent-color: var(--gold);
}

.range output {
  font: 500 16px var(--font-mono);
  min-width: 96px;
  text-align: right;
}

.ctr {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.ctr div {
  background: var(--sand);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px;
  text-align: center;
}

.ctr label {
  display: block;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--ink2);
  margin-bottom: 6px;
}

.ctr .n {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.ctr button {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  border: 1.5px solid var(--line);
  background: var(--paper);
  font-size: 18px;
  font-weight: 800;
  cursor: pointer;
  color: var(--ink);
}

.ctr output {
  font: 500 22px var(--font-mono);
  min-width: 24px;
}

.res {
  background: var(--night);
  color: #e5ddc0;
  border-radius: var(--radius-lg);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: sticky;
  top: 96px;
}

.gauge {
  position: relative;
  width: 220px;
  height: 120px;
  margin: 0 auto;
}

.gauge svg {
  width: 100%;
  height: 100%;
}

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

.gauge .val b {
  display: block;
  font: 800 34px var(--font-display);
  color: #fff;
}

.gauge .val span {
  font-size: 12.5px;
  color: #a89f7f;
  font-family: var(--font-mono);
}

.res .verdict {
  font-weight: 800;
  font-size: 19px;
  color: #fff;
  text-align: center;
}

.res .verdict.ok {
  color: #58e0a0;
}

.res .verdict.warn {
  color: var(--yel);
}

.res .verdict.bad {
  color: #ff6b6b;
}

.res dl {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px 12px;
  font-size: 14.5px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 14px;
}

.res dt {
  color: #a89f7f;
}

.res dd {
  font-family: var(--font-mono);
  color: #fff;
  text-align: right;
}

.res .tip {
  font-size: 14.5px;
  background: rgba(247, 212, 23, 0.08);
  border: 1px solid rgba(247, 212, 23, 0.25);
  border-radius: 14px;
  padding: 12px 14px;
  color: #e5ddc0;
}

/* Network Peering Topology */
.topo-wrap {
  background: rgba(0, 0, 0, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-lg);
  padding: 20px;
  overflow-x: auto;
}

.topo {
  min-width: 820px;
  width: 100%;
  height: auto;
  display: block;
}

.topo .lnk {
  fill: none;
  stroke: rgba(255, 255, 255, 0.18);
  stroke-width: 3;
  stroke-linecap: round;
}

.topo .lnk.on {
  stroke: var(--yel);
  stroke-dasharray: 8 10;
  animation: flow 1.2s linear infinite;
}

.topo .lnk.alt.on {
  stroke: var(--river2);
}

.topo .lnk.cut {
  stroke: #ff6b6b;
  stroke-dasharray: 3 9;
}

@keyframes flow {
  to {
    stroke-dashoffset: -36;
  }
}

.topo .node rect {
  fill: #0b3f40;
  stroke: rgba(255, 255, 255, 0.25);
  stroke-width: 1.5;
}

.topo .node.on rect {
  stroke: var(--yel);
}

.topo .node.home rect {
  fill: var(--yel);
}

.topo .node.home text {
  fill: var(--ink);
}

.topo text {
  fill: #fff;
  font: 700 14px var(--font-sans);
}

.topo text.sub {
  fill: #9fd0c9;
  font: 500 11.5px var(--font-mono);
}

.topo .node.home text.sub {
  fill: #4a4224;
}

.netctl {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 26px;
  align-items: center;
  margin-bottom: 18px;
}

.toggle {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  cursor: pointer;
}

.toggle input {
  width: 20px;
  height: 20px;
  accent-color: #ff6b6b;
}

.lat {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
  margin-top: 18px;
}

.lat div {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  padding: 14px;
  text-align: center;
}

.lat b {
  display: block;
  font: 500 24px var(--font-mono);
  color: #fff;
}

.lat span {
  font-size: 13px;
  color: #a7d3cd;
}

.lat .far b {
  color: #ff9d9d;
}

.netnote {
  margin-top: 16px;
  font-size: 15.5px;
  color: #cfe9e5;
  background: rgba(0, 0, 0, 0.18);
  border-left: 4px solid var(--yel);
  padding: 12px 16px;
  border-radius: 0 12px 12px 0;
}

/* Setup Tabs + Xtream Builder */
.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}

.tabs [role="tab"] {
  background: rgba(255, 255, 255, 0.06);
  border: 1.5px solid rgba(255, 255, 255, 0.15);
  color: #e5ddc0;
  font: 700 14px var(--font-sans);
  padding: 9px 16px;
  border-radius: var(--radius-pill);
  cursor: pointer;
}

.tabs [role="tab"][aria-selected="true"] {
  background: var(--yel);
  color: var(--ink);
  border-color: var(--yel);
}

.setup-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 24px;
}

.tabp ol {
  padding-left: 0;
  list-style: none;
  counter-reset: s;
}

.tabp li {
  counter-increment: s;
  position: relative;
  padding: 12px 0 12px 50px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  color: #ddd5b8;
}

.tabp li::before {
  content: counter(s);
  position: absolute;
  left: 0;
  top: 12px;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: rgba(247, 212, 23, 0.12);
  border: 1px solid rgba(247, 212, 23, 0.4);
  color: var(--yel);
  font: 500 15px var(--font-mono);
  display: grid;
  place-items: center;
}

.tabp li b {
  color: #fff;
}

.tabp code,
.xc code {
  font-family: var(--font-mono);
  background: rgba(255, 255, 255, 0.08);
  padding: 2px 6px;
  border-radius: 5px;
  color: var(--yel);
  font-size: 0.92em;
}

.xc h3 {
  font-size: 21px;
  margin-bottom: 4px;
}

.xc .xc-lead {
  font-size: 14.5px;
  color: #cfc6a6;
}

.xc label {
  display: block;
  font-size: 13.5px;
  font-weight: 700;
  color: #cfc6a6;
  margin: 12px 0 6px;
}

.xc input {
  width: 100%;
  padding: 11px 13px;
  border-radius: 11px;
  border: 1.5px solid rgba(255, 255, 255, 0.16);
  background: rgba(0, 0, 0, 0.25);
  color: #fff;
  font: 500 14.5px var(--font-mono);
}

.xc pre {
  margin-top: 14px;
  white-space: pre-wrap;
  word-break: break-all;
  background: #0b0a06;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 12px;
  font: 500 13px var(--font-mono);
  color: #9fe8c4;
  min-height: 70px;
}

.xc .btn {
  margin-top: 12px;
  width: 100%;
}

.xc p.fine {
  font-size: 12.5px;
  color: #9b9274;
  margin-top: 10px;
}

/* Monsoon Checklist */
.rain-wrap {
  position: relative;
}

.rain {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.45;
  background-image: repeating-linear-gradient(105deg, transparent 0 22px, rgba(13, 109, 110, 0.07) 22px 23px);
}

.storm {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 26px;
}

.chk {
  list-style: none;
  display: grid;
  gap: 10px;
}

.chk li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px 16px;
}

.chk input {
  margin-top: 5px;
  width: 20px;
  height: 20px;
  accent-color: var(--river);
  flex: none;
}

.chk label {
  cursor: pointer;
}

.chk label b {
  display: block;
  font-size: 15.5px;
}

.chk label span {
  font-size: 14.5px;
  color: var(--ink2);
}

.score {
  background: linear-gradient(180deg, #0a4f50, #073b3c);
  color: #cfe9e5;
  border-radius: var(--radius-lg);
  padding: 28px;
  text-align: center;
  position: sticky;
  top: 96px;
  align-self: start;
}

.score .pc {
  font: 800 62px var(--font-display);
  color: var(--yel);
  line-height: 1;
}

.score .bar {
  height: 12px;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 99px;
  overflow: hidden;
  margin: 16px 0;
}

.score .bar span {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--river2), var(--yel));
  transition: width 0.4s;
}

.score h3 {
  color: #fff;
  margin-bottom: 8px;
}

.score a {
  color: var(--yel);
}

.score-sub {
  font-size: 14px;
  margin-top: 14px;
  color: #a7d3cd;
}

/* --------------------------------------------------------------------------
   08. Editorial Articles & Legal
   -------------------------------------------------------------------------- */
.ahero {
  padding: 54px 0 44px;
  position: relative;
  overflow: hidden;
  background: radial-gradient(1000px 420px at 92% -15%, #fbeaa6 0%, transparent 60%),
    radial-gradient(700px 320px at 0% 115%, #cfe9e6 0%, transparent 60%),
    linear-gradient(175deg, #fefbf0 0%, #f3ead0 100%);
  border-bottom: 1px solid var(--line);
}

.ahero::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  width: min(600px, 64%);
  height: 120px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 600 120' preserveAspectRatio='none'%3E%3Cpath d='M0 120v-4h600v4z' fill='%230d6d6e' fill-opacity='.18'/%3E%3Cpath d='M20 100l18-12 18 12v8H20zM70 98l20-13 20 13v10H70zM126 101l16-10 16 10v7h-32zM172 99l19-12 19 12v9h-38z' fill='%2317150f' fill-opacity='.10'/%3E%3Cpath d='M24 108v8M52 108v8M74 108v8M106 108v8M130 108v8M154 108v8M176 108v8M206 108v8' stroke='%2317150f' stroke-opacity='.12' stroke-width='2'/%3E%3Cpath d='M360 116V92h160v24zM404 92V76h72v16zM398 78q42-62 84 0z' fill='%2317150f' fill-opacity='.11'/%3E%3Cpath d='M406 78q34-50 68 0z' fill='%238f6400' fill-opacity='.30'/%3E%3Cpath d='M439 28h2v-12h-2z' fill='%2317150f' fill-opacity='.2'/%3E%3Cpath d='M536 116V30h8v86zM534 30q6-14 12 0z' fill='%2317150f' fill-opacity='.12'/%3E%3Cpath d='M372 92q8-12 16 0zM492 92q8-12 16 0z' fill='%2317150f' fill-opacity='.11'/%3E%3C/svg%3E")
    bottom right / 100% 100% no-repeat;
  pointer-events: none;
}

.crumbs {
  font-size: 14px;
  color: var(--mut);
  margin-bottom: 16px;
}

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

.crumbs span {
  margin: 0 6px;
  opacity: 0.55;
}

.tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fff;
  background: var(--gold);
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  margin-bottom: 14px;
}

.ahero h1 {
  font-size: clamp(30px, 4.4vw, 48px);
  font-weight: 800;
  max-width: 920px;
}

.lead {
  font-size: 18.5px;
  color: var(--ink2);
  max-width: 820px;
  margin-top: 16px;
}

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

.meta strong {
  color: var(--ink);
  font-weight: 600;
}

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

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

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

.prose p {
  margin: 0 0 18px;
  color: #2e2b20;
}

.prose ul,
.prose ol {
  margin: 0 0 20px 22px;
  color: #2e2b20;
}

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

.prose strong {
  color: var(--ink);
}

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

.prose pre {
  background: var(--ink);
  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: #f6d58a;
}

.prose table {
  width: 100%;
  min-width: 520px;
  border-collapse: collapse;
  margin: 0 0 24px;
  font-size: 15px;
  background: var(--paper);
  border-radius: 14px;
  border: 1px solid var(--line);
}

.prose .table-wrap table {
  margin: 0;
  border: 0;
  border-radius: 0;
}

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

.prose tr:last-child td,
.prose tr:last-child th {
  border-bottom: 0;
}

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

.prose tr:hover td {
  background: rgba(13, 109, 110, 0.06);
}

.prose .plans {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.prose .plan {
  text-align: center;
  padding: 20px 18px;
}

.prose .plan.hot {
  transform: none;
}

.prose .plan.hot:hover {
  transform: translateY(-4px);
}

.prose .plan .p {
  font-size: 32px;
}

.prose .stats {
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
}

.prose .stat {
  padding: 16px;
}

.prose .stat b {
  font-family: var(--font-mono);
  font-size: 23px;
  color: var(--aqua-d);
}

.prose .stat span {
  font-family: var(--font-sans);
  font-size: 13.5px;
  text-transform: none;
  letter-spacing: 0;
  color: var(--mut);
}

.toc {
  background: var(--paper);
  border: 1px solid var(--line);
  border-left: 5px solid var(--aqua);
  border-radius: var(--radius);
  padding: 20px 24px;
  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: var(--radius);
  padding: 20px 22px;
  margin: 0 0 24px;
  border: 1px solid var(--line);
  background: var(--paper);
}

.box.tip {
  border-left: 5px solid var(--aqua);
  background: #e3f2f0;
}

.box.warn {
  border-left: 5px solid var(--coral);
  background: #fff1ec;
}

.box.expert {
  border-left: 5px solid var(--conch);
  background: #fff7cf;
}

.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;
}

/* Guides Cards */
.ggrid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
  gap: 18px;
}

.gc {
  position: relative;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.gc::before {
  content: "";
  position: absolute;
  left: 22px;
  right: 22px;
  top: 0;
  height: 3px;
  border-radius: 0 0 3px 3px;
  background: linear-gradient(90deg, var(--gold), var(--yel));
}

.gc:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: rgba(143, 100, 0, 0.4);
}

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

.gc .cat {
  font: 500 11px var(--font-mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fff;
  background: var(--gold);
  padding: 4px 10px;
  border-radius: var(--radius-pill);
}

.gc .rt {
  font: 500 12px var(--font-mono);
  letter-spacing: 0.1em;
  color: var(--river);
}

.gc h3 {
  font-size: 18.5px;
  line-height: 1.3;
}

.gc h3 a {
  color: var(--ink);
}

.gc h3 a:hover {
  text-decoration: none;
}

.gc h3 a::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: var(--radius);
}

.gc p {
  font-size: 14.5px;
  color: var(--ink2);
  line-height: 1.6;
}

.gc .more {
  margin-top: auto;
  font-weight: 800;
  font-size: 14px;
  color: var(--gold);
}

/* Article Hub Specific */
.hub-feat {
  position: relative;
  background: var(--paper);
  border: 1px solid var(--line);
  border-left: 7px solid var(--gold);
  border-radius: var(--radius-lg);
  padding: 30px 32px;
  margin: 26px 0 34px;
  box-shadow: var(--shadow-md);
}

.hub-feat h2 {
  font-size: 30px;
  margin: 12px 0;
}

.hub-feat h2 a {
  color: var(--ink);
}

.hub-feat-desc {
  color: var(--ink2);
  margin-bottom: 14px;
}

.hub-feat-meta {
  color: var(--mut);
  font-size: 14px;
  margin-bottom: 18px;
}

.hub-feat-meta b {
  color: var(--aqua-d);
}

.hub-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 24px;
}

.hub-filter button {
  background: var(--paper);
  border: 1.5px solid var(--line);
  color: var(--ink);
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  font: 600 14px var(--font-sans);
  cursor: pointer;
}

.hub-filter button[aria-pressed="true"] {
  background: var(--ink);
  color: var(--yel);
  border-color: var(--ink);
}

.hub-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
  gap: 20px;
  padding-bottom: 30px;
}

.hcard {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 11px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px 24px 20px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.hcard.is-hidden {
  display: none;
}

.hcard::before {
  content: "";
  position: absolute;
  left: 24px;
  right: 24px;
  top: 0;
  height: 3px;
  border-radius: 0 0 3px 3px;
  background: linear-gradient(90deg, var(--gold), var(--conch));
}

.hcard:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: rgba(143, 100, 0, 0.4);
}

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

.hc-top--start {
  justify-content: flex-start;
}

.hc-cat {
  font: 700 11px var(--font-mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fff;
  background: var(--gold);
  padding: 4px 10px;
  border-radius: var(--radius-pill);
}

.hc-rt {
  font: 700 12px var(--font-mono);
  letter-spacing: 0.1em;
  color: var(--aqua-d);
}

.hcard h3 {
  font-size: 19px;
  line-height: 1.3;
}

.hcard h3 a {
  color: var(--ink);
}

.hcard h3 a:hover {
  text-decoration: none;
}

.hcard h3 a::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: var(--radius);
}

.hcard p {
  color: var(--mut);
  font-size: 14.5px;
  line-height: 1.55;
}

.hcard .more {
  margin-top: auto;
  font-weight: 800;
  font-size: 14px;
  color: var(--gold);
}

.hub-intro {
  max-width: 860px;
  color: var(--ink2);
  padding: 10px 0 36px;
}

.hub-intro h2 {
  font-size: 27px;
  margin: 28px 0 10px;
}

.hub-intro p {
  margin-bottom: 12px;
}

.hub-cta {
  background: var(--night);
  color: #ece6cf;
  border-radius: var(--radius-lg);
  padding: 36px;
  text-align: center;
  margin: 20px 0 64px;
  position: relative;
  overflow: hidden;
}

.hub-cta h2 {
  font-size: 30px;
  margin-bottom: 10px;
  color: #fff;
}

.hub-cta p {
  color: #d6cfb4;
  margin: 0 auto 20px;
  max-width: 660px;
}

.hub-cta .btn {
  margin: 5px;
}

/* FAQ Accordions */
.faq details,
.faqs details {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin-bottom: 10px;
  padding: 0 22px;
  box-shadow: var(--shadow-sm);
}

.faqs {
  max-width: 900px;
  margin: 0 auto;
}

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

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

.faq summary::after,
.faqs summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 14px;
  font: 500 24px var(--font-mono);
  color: var(--aqua-d);
}

.faq details[open] summary::after,
.faqs details[open] summary::after {
  content: "–";
}

.faq details p,
.faqs details p {
  padding-bottom: 18px;
  margin: 0;
  color: var(--ink2);
  font-size: 15.5px;
}

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

.faq-group h2 {
  font-size: 25px;
  margin-bottom: 14px;
}

/* Author Box, Sidebar, CTA Box & Related */
.author {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  margin-top: 36px;
}

.author .av {
  width: 54px;
  height: 54px;
  border-radius: 14px;
  background: linear-gradient(160deg, var(--gold), var(--aqua));
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-weight: 800;
  color: #fff;
  flex: none;
}

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

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

.side {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow-sm);
}

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

.side.buy h3,
.side.buy h4,
.side.buy .price {
  color: #fff;
}

.side h3,
.side h4 {
  font-size: 17px;
  margin-bottom: 12px;
}

.side ul {
  list-style: none;
}

.side li {
  margin: 9px 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: #c9c3ab;
  font-family: var(--font-sans);
}

.side .btn {
  width: 100%;
  margin-top: 12px;
}

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

.cards-ico span {
  border: 1px solid rgba(255, 255, 255, 0.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: 16px;
  margin-top: 16px;
}

.related a {
  display: block;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  color: var(--ink);
  font-weight: 700;
  font-family: var(--font-display);
  font-size: 16.5px;
  line-height: 1.35;
  border-top: 4px solid var(--gold);
  box-shadow: var(--shadow-sm);
}

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

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

.cta {
  margin: 40px 0;
  border-radius: var(--radius-lg);
  padding: 34px 32px 42px;
  background: radial-gradient(500px 200px at 100% 0%, rgba(247, 212, 23, 0.26), transparent 70%),
    radial-gradient(420px 200px at 0% 100%, rgba(13, 109, 110, 0.42), transparent 70%),
    var(--blk);
  color: #fff;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 8px;
  background: linear-gradient(100deg, var(--yel) 0 40%, #fff 40% 47%, #000 47% 54%, var(--yel) 54%);
  opacity: 0.9;
  pointer-events: none;
}

.cta > * {
  position: relative;
}

.cta h2,
.cta h3 {
  margin: 0 0 10px;
  color: #fff;
}

.cta p {
  color: #ece6cf;
  margin: 0 auto 18px;
  max-width: 620px;
}

.cta a:not(.btn) {
  color: #fff;
  text-decoration: underline;
}

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

.cta .btn-gold {
  background: var(--yel);
  color: var(--ink);
  box-shadow: 0 4px 0 #a58a00;
}

.cta .btn-ghost {
  border-color: #fff;
  color: #fff;
}

/* Legal Pages */
.page {
  max-width: 860px;
  padding: 36px 22px 84px;
}

.page h2 {
  font-size: 26px;
  margin: 36px 0 12px;
}

.page h3 {
  font-size: 19px;
  margin: 22px 0 8px;
}

.page p,
.page li {
  color: var(--ink2);
  margin-bottom: 12px;
}

.page ul {
  padding-left: 22px;
  margin-bottom: 14px;
}

.page .upd {
  color: var(--mut);
  font-size: 14px;
}

.note {
  background: #e3f2f0;
  border: 1px solid var(--line);
  border-left: 5px solid var(--aqua);
  border-radius: 12px;
  padding: 16px 18px;
  margin: 22px 0;
}

/* --------------------------------------------------------------------------
   09. Footer, Sticky CTA & WhatsApp
   -------------------------------------------------------------------------- */
.final {
  background: var(--night);
  color: #e5ddc0;
  text-align: center;
  padding: 82px 0;
  position: relative;
  overflow: hidden;
}

.final::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(118deg, rgba(247, 212, 23, 0.12) 0 30%, rgba(255, 255, 255, 0.06) 30% 34%, rgba(0, 0, 0, 0.5) 34% 40%, transparent 40%);
}

.final .wrap {
  position: relative;
}

.final h2 {
  color: #fff;
  font-size: clamp(30px, 4.2vw, 48px);
  margin-bottom: 14px;
}

.final p {
  max-width: 640px;
  margin: 0 auto 24px;
  color: #cfc6a6;
  font-size: 17.5px;
}

.final .btn {
  margin: 5px;
}

.final .btn-gold {
  background: var(--yel);
  color: var(--ink);
  box-shadow: 0 4px 0 #a58a00;
}

.ftr {
  background: var(--ink);
  padding: 56px 0 112px;
  font-size: 14.5px;
  color: #c9c3ab;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.ftr .logo {
  color: #fff;
}

.ftr .logo b {
  color: var(--yel);
}

.ftr-desc {
  margin-top: 14px;
  max-width: 340px;
  color: #bfb89e;
  line-height: 1.6;
}

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

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

.ftr ul {
  list-style: none;
}

.ftr li {
  margin: 7px 0;
}

.ftr a {
  color: #c9c3ab;
  font-weight: 500;
}

.ftr a:hover {
  color: var(--yel);
}

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

/* Floating Sticky CTA Bar (non-homepage pages) */
#cta-sticky {
  position: fixed;
  left: 18px;
  bottom: 18px;
  z-index: 58;
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--night);
  color: #fff;
  border: 1px solid rgba(247, 212, 23, 0.35);
  border-radius: var(--radius-pill);
  padding: 8px 10px 8px 18px;
  box-shadow: 0 18px 36px -12px rgba(0, 0, 0, 0.65);
  transform: translateY(140%);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

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

#cta-sticky .cta-sticky-txt {
  font-size: 13.5px;
  color: #e5ddc0;
  white-space: nowrap;
}

#cta-sticky .cta-sticky-txt strong {
  color: var(--yel);
}

#cta-sticky .btn {
  padding: 8px 15px;
  font-size: 13.5px;
  border-radius: var(--radius-pill);
}

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

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

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

.wa-float .wa-pill::after {
  content: "";
  position: absolute;
  right: -6px;
  top: 50%;
  width: 14px;
  height: 14px;
  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, 0.2);
}

.wa-float .wa-circ::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid var(--wa);
  animation: waping 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 waping {
  0% {
    transform: scale(1);
    opacity: 0.8;
  }
  100% {
    transform: scale(1.45);
    opacity: 0;
  }
}

/* --------------------------------------------------------------------------
   10. Responsive Breakpoints
   -------------------------------------------------------------------------- */
.est > *,
.calc-grid > *,
.setup-grid > *,
.storm > *,
.about > *,
.hero .wrap > * {
  min-width: 0;
}

@media (max-width: 1024px) {
  .nav {
    display: none;
  }
  .nav-toggle {
    display: inline-flex;
  }
  .hero .wrap,
  .est,
  .calc-grid,
  .setup-grid,
  .storm,
  .about,
  .agrid {
    grid-template-columns: 1fr;
  }
  .aside {
    display: none;
  }
  .plans4,
  .plans,
  .prose .plans,
  .districts,
  .bento-grid,
  .bento-grid--3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .vod,
  .rec-grid,
  .stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .tpil {
    grid-template-columns: 1fr;
  }
  .res,
  .calc-result,
  .score {
    position: static;
  }
  .pl.hot,
  .plan--featured,
  .plan.hot {
    transform: none;
  }
  .pl.hot:hover,
  .plan--featured:hover,
  .plan.hot:hover {
    transform: translateY(-4px);
  }
  .guarantee-band {
    grid-template-columns: 1fr;
    text-align: left;
  }
}

@media (max-width: 900px) {
  #cta-sticky {
    gap: 10px;
    padding: 7px 9px 7px 14px;
  }
  #cta-sticky .cta-sticky-txt {
    font-size: 12.5px;
  }
  #cta-sticky .btn {
    padding: 7px 12px;
    font-size: 12.5px;
  }
  .wa-float .wa-pill {
    font-size: 13px;
    padding: 9px 14px;
  }
  .wa-float .wa-circ {
    width: 50px;
    height: 50px;
  }
  .wa-float .wa-circ svg {
    width: 26px;
    height: 26px;
  }
}

@media (max-width: 760px) {
  .sec {
    padding: 64px 0;
  }
  .ftr {
    padding-bottom: 152px;
  }
  .fgrid {
    grid-template-columns: 1fr 1fr;
  }
  .glossary-grid,
  .bento-grid--2 {
    grid-template-columns: 1fr;
  }
  .profile-card {
    grid-template-columns: 1fr;
    padding: 24px;
  }
  #cta-sticky {
    left: 12px;
    right: 12px;
    bottom: 92px;
    justify-content: space-between;
    border-radius: 16px;
    padding: 10px 14px;
  }
  #cta-sticky .cta-sticky-txt {
    white-space: normal;
    font-size: 13px;
  }
}

@media (max-width: 600px) {
  .hdr .btn {
    white-space: nowrap;
    padding: 9px 13px;
    font-size: 13.5px;
  }
  .logo {
    font-size: 18.5px;
  }
  .hero {
    padding-top: 40px;
  }
  .plans4,
  .plans,
  .prose .plans,
  .districts,
  .pillars,
  .vod,
  .rec-grid,
  .bento-grid,
  .bento-grid--3,
  .ctr,
  .ggrid,
  .hub-grid,
  .fgrid {
    grid-template-columns: 1fr;
  }
  .lat,
  .cin-stats,
  .calc-metrics,
  .mobile-nav-list {
    grid-template-columns: 1fr 1fr;
  }
  .board-screen {
    grid-template-columns: 96px 1fr;
  }
  .board-art {
    width: 96px;
    height: 142px;
  }
  .card,
  .calc-panel,
  .calc-result,
  .hub-feat {
    padding: 20px;
  }
  #cta-sticky {
    bottom: 76px;
  }
  .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;
  }
}

@media (max-width: 420px) {
  .hero-trust,
  .stats {
    grid-template-columns: 1fr;
  }
}

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

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