/* Castor — marketing landing
   Brand: carbon black · metallic silver · signal red */

:root {
  --bg: #050506;
  --bg-elev: #0c0d10;
  --ink: #e8ecf2;
  --muted: #8b95a5;
  --steel: #b8c0cc;
  --red: #e2253a;
  --red-deep: #9a1524;
  --red-soft: rgba(226, 37, 58, 0.18);
  /* The app's own UI accent (guide, clock, focus) — used only inside the
     mock TV screen so the preview looks like the real product. */
  --app-blue: #3d9bff;
  --app-row: #161b22;
  --app-selected: #f4f7fb;
  --app-on-light: #0b1b3a;
  --line: rgba(255, 255, 255, 0.08);
  --header-h: 72px;
  --font-display: "Michroma", system-ui, sans-serif;
  --font-body: "Rajdhani", system-ui, sans-serif;
  --max: 1120px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  /* Keep anchored sections clear of the sticky header. */
  scroll-padding-top: calc(var(--header-h) + 52px);
}

@media (min-width: 900px) {
  html {
    scroll-padding-top: calc(var(--header-h) + 8px);
  }
}

/* Keyboard focus — visible on every interactive control */
a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -100%;
  z-index: 100;
  padding: 0.7rem 1rem;
  background: var(--red);
  color: #fff;
  font-family: var(--font-display);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.skip-link:focus {
  top: 1rem;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background: var(--bg);
  font-family: var(--font-body);
  font-size: 1.125rem;
  font-weight: 500;
  line-height: 1.55;
  letter-spacing: 0.01em;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  color: var(--ink);
}

h1,
h2,
h3,
strong {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: 0.04em;
  line-height: 1.15;
}

h1 {
  font-size: clamp(1.55rem, 3.4vw, 2.55rem);
  margin: 0 0 1rem;
  max-width: 16ch;
}

h2 {
  font-size: clamp(1.3rem, 2.6vw, 2rem);
  margin: 0 0 0.85rem;
  max-width: 22ch;
}

h3 {
  font-size: clamp(0.95rem, 1.6vw, 1.1rem);
  margin: 0 0 0.65rem;
}

p {
  margin: 0;
}

code {
  font-family: ui-monospace, "Cascadia Code", Consolas, monospace;
  font-size: 0.9em;
  color: var(--steel);
}

em {
  font-style: normal;
  color: var(--steel);
}

/* Atmosphere */
.noise {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 50;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.hex-field {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 0;
  opacity: 0.22;
  background-image: linear-gradient(180deg, transparent 0%, var(--bg) 78%),
    radial-gradient(ellipse 80% 50% at 70% 20%, var(--red-soft), transparent 55%),
    radial-gradient(
      ellipse 60% 40% at 15% 90%,
      rgba(184, 192, 204, 0.05),
      transparent 50%
    ),
    repeating-linear-gradient(
      60deg,
      transparent 0,
      transparent 18px,
      rgba(255, 255, 255, 0.015) 18px,
      rgba(255, 255, 255, 0.015) 19px
    ),
    repeating-linear-gradient(
      -60deg,
      transparent 0,
      transparent 18px,
      rgba(255, 255, 255, 0.015) 18px,
      rgba(255, 255, 255, 0.015) 19px
    );
}

main,
.site-footer {
  position: relative;
  z-index: 1;
}

/* Header — sticky, blurred, with a scrollable section nav on small screens */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(5, 5, 6, 0.82);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-areas:
    "brand cta"
    "nav nav";
  align-items: center;
  column-gap: 1rem;
  row-gap: 0.55rem;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0.85rem 1.5rem 0.7rem;
}

.header-inner > .wordmark {
  grid-area: brand;
}

.header-inner > .site-nav {
  grid-area: nav;
}

.header-inner > .header-cta {
  grid-area: cta;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-family: var(--font-display);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--steel);
}

.wordmark img {
  width: 36px;
  height: 36px;
  object-fit: contain;
}

.site-nav {
  display: flex;
  gap: 1.35rem;
  overflow-x: auto;
  white-space: nowrap;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  margin-inline: -1.5rem;
  padding: 0.1rem 1.5rem 0.25rem;
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 1.5rem, #000 calc(100% - 1.5rem), transparent);
  mask-image: linear-gradient(90deg, transparent, #000 1.5rem, #000 calc(100% - 1.5rem), transparent);
}

.site-nav::-webkit-scrollbar {
  display: none;
}

.site-nav a {
  flex-shrink: 0;
  padding: 0.15rem 0;
  border-bottom: 1px solid transparent;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}

.site-nav a:hover {
  color: var(--ink);
  border-color: var(--red);
}

@media (min-width: 900px) {
  .header-inner {
    grid-template-columns: auto 1fr auto;
    grid-template-areas: "brand nav cta";
    column-gap: 1.5rem;
    padding-block: 1rem;
  }
  .site-nav {
    justify-content: flex-end;
    overflow: visible;
    margin-inline: 0;
    padding: 0;
    gap: 1.5rem;
    -webkit-mask-image: none;
    mask-image: none;
  }
}

/* Buttons — sharp clip, not pills */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.45rem;
  font-family: var(--font-display);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border: 1px solid transparent;
  background: transparent;
  color: inherit;
  cursor: pointer;
  clip-path: polygon(
    0 0,
    calc(100% - 12px) 0,
    100% 12px,
    100% 100%,
    12px 100%,
    0 calc(100% - 12px)
  );
  transition: background 0.25s var(--ease), color 0.25s var(--ease),
    border-color 0.25s var(--ease), transform 0.25s var(--ease);
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: linear-gradient(135deg, var(--red) 0%, var(--red-deep) 100%);
  color: #fff;
}

.btn-primary:hover {
  background: linear-gradient(135deg, #f03348 0%, var(--red) 100%);
  color: #fff;
}

.btn-ghost {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.22);
  color: var(--steel);
}

.btn-ghost:hover {
  border-color: var(--red);
  color: var(--ink);
}

.btn.copied {
  border-color: var(--red);
  color: var(--ink);
}

/* Hero */
.hero {
  display: grid;
  gap: 2.5rem;
  align-items: center;
  max-width: var(--max);
  margin: 0 auto;
  padding: 1.5rem 1.5rem 3.5rem;
  min-height: calc(100svh - var(--header-h));
}

@media (min-width: 960px) {
  .hero {
    grid-template-columns: 0.95fr 1.05fr;
    gap: 2rem;
    padding-top: 0.5rem;
    padding-bottom: 2.5rem;
  }
}

/* Each hero child rises on its own, staggered. */
.hero-copy > * {
  opacity: 0;
  transform: translateY(28px);
  animation: rise 0.9s var(--ease) forwards;
}

.hero-copy > :nth-child(1) { animation-delay: 0.1s; }
.hero-copy > :nth-child(2) { animation-delay: 0.22s; }
.hero-copy > :nth-child(3) { animation-delay: 0.34s; }
.hero-copy > :nth-child(4) { animation-delay: 0.46s; }
.hero-copy > :nth-child(5) { animation-delay: 0.58s; }

/* castor-logo-t.png is the mark + wordmark on a transparent field (derived
   from the black-field master), so it sits on the page with no visible box. */
.hero-brand {
  width: min(100%, 300px);
  margin: 0 0 1.35rem -0.5rem;
  filter: drop-shadow(0 12px 40px rgba(226, 37, 58, 0.22));
}

@media (min-width: 960px) {
  .hero-brand {
    width: min(100%, 360px);
  }
}

.hero-lede {
  color: var(--muted);
  font-size: 1.15rem;
  max-width: 38ch;
  margin-bottom: 1.75rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

/* One job in the first viewport: start the trial. Download lives under
   Setup (#install) so it does not compete with WhatsApp conversion. */
.btn-hero {
  padding: 1rem 1.75rem;
  font-size: 0.72rem;
}

.hero-note {
  margin-top: 1.1rem;
  color: var(--muted);
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  max-width: 42ch;
}

.hero-secondary {
  display: block;
  margin-top: 0.55rem;
  color: var(--steel);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}

.hero-secondary:hover {
  color: var(--ink);
}

.hero-stage {
  position: relative;
  opacity: 0;
  transform: translateY(36px) scale(0.98);
  animation: rise 1.1s var(--ease) 0.35s forwards;
  transition: transform 0.35s var(--ease);
}

@keyframes rise {
  to {
    opacity: 1;
    transform: none;
  }
}

/* Product TV visual */
.tv {
  position: relative;
  width: min(100%, 640px);
  margin-inline: auto;
}

.tv-bezel {
  padding: 14px;
  background: linear-gradient(160deg, #2a2d33 0%, #12141a 45%, #0a0b0e 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  clip-path: polygon(
    0 0,
    calc(100% - 18px) 0,
    100% 18px,
    100% 100%,
    18px 100%,
    0 calc(100% - 18px)
  );
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55);
}

.tv-screen {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #07090d;
  border: 1px solid rgba(255, 255, 255, 0.04);
}

.tv-shot {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top left;
}

.screen-shine {
  pointer-events: none;
  position: absolute;
  inset: 0;
  background: linear-gradient(
    125deg,
    rgba(255, 255, 255, 0.06) 0%,
    transparent 38%,
    transparent 62%,
    rgba(226, 37, 58, 0.05) 100%
  );
  animation: breathe 5.5s ease-in-out infinite;
}

@keyframes breathe {
  0%,
  100% {
    opacity: 0.55;
  }
  50% {
    opacity: 1;
  }
}

.tv-stand {
  width: 28%;
  height: 10px;
  margin: 10px auto 0;
  background: linear-gradient(90deg, #1a1c21, #3a3e46, #1a1c21);
  clip-path: polygon(8% 0, 92% 0, 100% 100%, 0 100%);
}

.tv-glow {
  position: absolute;
  left: 10%;
  right: 10%;
  bottom: -28px;
  height: 48px;
  background: radial-gradient(
    ellipse at center,
    rgba(226, 37, 58, 0.35),
    transparent 70%
  );
  filter: blur(12px);
  animation: breathe 5.5s ease-in-out infinite;
}

.guide {
  display: grid;
  grid-template-columns: 44px 1fr;
  height: 100%;
  font-size: 0.72rem;
}

.guide-rail {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.55rem;
  padding: 0.85rem 0;
  background: rgba(0, 0, 0, 0.45);
  border-right: 1px solid var(--line);
}

.rail-dot {
  width: 8px;
  height: 8px;
  border-radius: 1px;
  background: rgba(255, 255, 255, 0.18);
}

.rail-dot.active {
  background: var(--app-blue);
  box-shadow: 0 0 10px rgba(61, 155, 255, 0.6);
}

.guide-body {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.guide-cats {
  display: flex;
  gap: 0.65rem;
  padding: 0.55rem 0.75rem;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.65rem;
}

.guide-cats .on {
  color: var(--ink);
  border-bottom: 2px solid var(--app-blue);
}

.guide-clock {
  margin-left: auto;
  color: var(--app-blue);
  letter-spacing: 0.04em;
}

.guide-rows {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.g-row {
  display: grid;
  grid-template-columns: 64px 1fr 1fr;
  gap: 2px;
  flex: 1;
  min-height: 0;
}

.ch,
.prog {
  display: flex;
  align-items: center;
  padding: 0 0.55rem;
  background: #12161c;
}

.ch {
  color: var(--muted);
  font-size: 0.62rem;
  letter-spacing: 0.04em;
  border-right: 1px solid var(--line);
}

.prog {
  color: var(--steel);
  background: var(--app-row);
  margin-left: 1px;
}

/* The focused cell mirrors the app: white bar, dark text, blue progress. */
.prog.on {
  background: var(--app-selected);
  color: var(--app-on-light);
  font-weight: 600;
  position: relative;
}

.prog.on::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  height: 2px;
  width: 38%;
  background: var(--app-blue);
  animation: progress 14s linear infinite;
}

@keyframes progress {
  from {
    width: 30%;
  }
  to {
    width: 62%;
  }
}

/* Sections shared */
.section {
  max-width: var(--max);
  margin: 0 auto;
  padding: 4rem 1.5rem;
}

.section-head {
  margin-bottom: 2.25rem;
}

.eyebrow {
  font-family: var(--font-display);
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 0.75rem;
}

.section-lede {
  color: var(--muted);
  max-width: 48ch;
  font-size: 1.1rem;
}

.fineprint {
  margin-top: 1.5rem;
  color: var(--muted);
  font-size: 0.98rem;
  max-width: 62ch;
}

.fineprint a {
  color: var(--steel);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Reveal — only hidden when JS is running to reveal it again */
.js .reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.js .reveal.in {
  opacity: 1;
  transform: none;
}

/* Stat strip */
.stat-strip {
  border-block: 1px solid var(--line);
  background: linear-gradient(
    180deg,
    rgba(226, 37, 58, 0.06),
    transparent 80%
  );
}

.stat-strip-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 1.75rem 1.5rem;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

@media (min-width: 720px) {
  .stat-strip-inner {
    grid-template-columns: repeat(4, 1fr);
  }
}

.stat {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.stat strong {
  font-size: clamp(1.2rem, 2.2vw, 1.55rem);
  color: var(--ink);
}

.stat span {
  color: var(--muted);
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* Activation path chooser — human question before the tech panels */
.path-chooser {
  display: grid;
  gap: 0.85rem;
  margin-bottom: 1.5rem;
}

@media (min-width: 720px) {
  .path-chooser {
    grid-template-columns: 1fr 1fr;
  }
}

.path-pick {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.4rem;
  width: 100%;
  padding: 1.25rem 1.2rem;
  text-align: left;
  font: inherit;
  color: inherit;
  cursor: pointer;
  background: var(--bg-elev);
  border: 1px solid var(--line);
  clip-path: polygon(
    0 0,
    calc(100% - 16px) 0,
    100% 16px,
    100% 100%,
    16px 100%,
    0 calc(100% - 16px)
  );
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease),
    transform 0.2s var(--ease);
}

.path-pick:hover {
  border-color: rgba(255, 255, 255, 0.28);
  transform: translateY(-1px);
}

.path-pick[aria-pressed="true"] {
  border-color: rgba(226, 37, 58, 0.55);
  background: linear-gradient(
    165deg,
    rgba(226, 37, 58, 0.14) 0%,
    #0a0c10 60%
  );
}

.path-pick-title {
  font-family: var(--font-display);
  font-size: clamp(0.78rem, 1.5vw, 0.92rem);
  letter-spacing: 0.04em;
  color: var(--ink);
}

.path-pick-lede {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.4;
}

/* After a choice: chosen panel stays; the other softens (still reachable) */
.server-grid[data-path-active] .server-panel {
  transition: opacity 0.35s var(--ease), transform 0.35s var(--ease),
    border-color 0.35s var(--ease);
}

.server-grid[data-path-active] .server-panel.is-dimmed {
  opacity: 0.38;
}

.server-grid[data-path-active] .server-panel.is-chosen {
  opacity: 1;
  border-color: rgba(226, 37, 58, 0.45);
}

/* Server panels */
.server-grid {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 800px) {
  .server-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.server-panel {
  padding: 1.75rem 1.5rem;
  background: linear-gradient(165deg, #12151b 0%, #0a0c10 100%);
  border: 1px solid var(--line);
  clip-path: polygon(
    0 0,
    calc(100% - 22px) 0,
    100% 22px,
    100% 100%,
    22px 100%,
    0 calc(100% - 22px)
  );
}

.server-panel-vip {
  border-color: rgba(226, 37, 58, 0.35);
  background: linear-gradient(
    165deg,
    rgba(226, 37, 58, 0.1) 0%,
    #0a0c10 55%
  );
}

.server-badge {
  display: inline-block;
  margin-bottom: 0.85rem;
  padding: 0.3rem 0.65rem;
  font-family: var(--font-display);
  font-size: 0.55rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--steel);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.badge-vip,
.price-card-featured .server-badge {
  color: #fff;
  border-color: transparent;
  background: linear-gradient(135deg, var(--red), var(--red-deep));
}

.server-lede {
  color: var(--muted);
  margin-bottom: 1.1rem;
}

.check-list {
  margin: 0 0 1.5rem;
  padding: 0;
  list-style: none;
}

.check-list li {
  position: relative;
  padding-left: 1.35rem;
  margin-bottom: 0.55rem;
  color: var(--steel);
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 0.55rem;
  height: 0.55rem;
  background: var(--red);
  clip-path: polygon(0 0, 100% 0, 100% 70%, 70% 100%, 0 100%);
}

/* Features */
.feature-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 960px) {
  .feature-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.feature {
  padding: 1.25rem 1.1rem;
  border-top: 1px solid var(--line);
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.02),
    transparent 70%
  );
}

.feature p {
  color: var(--muted);
  font-size: 1rem;
}

.feature-grid-heroes {
  margin-bottom: 1.25rem;
}

.feature-hero {
  padding: 1.4rem 1.2rem;
}

.feature-hero h3 {
  font-size: clamp(1rem, 1.7vw, 1.15rem);
}

.also-included {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
}

.also-included summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.15rem;
  font-family: var(--font-display);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--steel);
}

.also-included summary::-webkit-details-marker {
  display: none;
}

.also-included summary::after {
  content: "+";
  color: var(--red);
  font-size: 1.1rem;
  transition: transform 0.25s var(--ease);
}

.also-included[open] summary::after {
  transform: rotate(45deg);
}

.also-included summary:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 2px;
}

.also-list {
  margin: 0;
  padding: 0 1.15rem 1.25rem;
  list-style: none;
  columns: 1;
  gap: 2rem;
}

@media (min-width: 720px) {
  .also-list {
    columns: 2;
  }
}

.also-list li {
  break-inside: avoid;
  padding: 0.45rem 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 1rem;
}

.also-list strong {
  font-family: var(--font-body);
  font-weight: 700;
  letter-spacing: 0.01em;
  color: var(--ink);
}

/* Devices */
.device-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .device-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 960px) {
  .device-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.device {
  padding: 1.25rem 1.15rem;
  border: 1px solid var(--line);
  background: var(--bg-elev);
}

.device p {
  color: var(--muted);
  font-size: 1rem;
}

/* Setup */
.setup-block {
  margin-bottom: 1.5rem;
  padding: 1.5rem;
  border: 1px solid var(--line);
  background: linear-gradient(160deg, #12151b, #090b0e);
}

.setup-block-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem 1rem;
}

.setup-block-head h3 {
  margin-bottom: 0;
}

/* Live "v1.0.452 · 95 MB" pill, filled from /app/version.json */
.version-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.3rem 0.7rem;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  color: var(--steel);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
}

.version-pill::before {
  content: "";
  width: 6px;
  height: 6px;
  background: var(--red);
  box-shadow: 0 0 8px rgba(226, 37, 58, 0.7);
}

.version-pill[hidden] {
  display: none;
}

.steps {
  margin: 0.75rem 0 0;
  padding-left: 1.25rem;
  color: var(--muted);
}

.steps li {
  margin-bottom: 0.55rem;
}

/* Exact on-screen button names from the app, so readers can find them */
.ui-label {
  font-family: var(--font-body);
  font-weight: 700;
  letter-spacing: 0.01em;
  color: var(--ink);
  padding: 0.05rem 0.4rem;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.04);
  white-space: nowrap;
}

.steps a {
  color: var(--steel);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.install-url-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

.install-url-row code {
  flex: 1 1 200px;
  padding: 0.75rem 1rem;
  background: #07090d;
  border: 1px solid var(--line);
  color: var(--ink);
  font-size: 0.95rem;
}

.setup-split {
  display: grid;
  gap: 1rem;
  margin-bottom: 1rem;
}

@media (min-width: 800px) {
  .setup-split {
    grid-template-columns: 1fr 1fr;
  }
}

.setup-card {
  padding: 1.4rem 1.25rem;
  border: 1px solid var(--line);
  background: var(--bg-elev);
}

.setup-card > p {
  color: var(--muted);
  margin-bottom: 0.75rem;
}

/* Regions */
.region-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .region-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 960px) {
  .region-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.region {
  padding: 1.25rem;
  border-left: 2px solid var(--red);
  background: rgba(255, 255, 255, 0.02);
}

.region > p {
  color: var(--muted);
  font-size: 0.98rem;
  margin-bottom: 0.75rem;
}

.region ul {
  margin: 0;
  padding-left: 1.1rem;
  color: var(--steel);
  font-size: 0.98rem;
}

.region li {
  margin-bottom: 0.25rem;
}

/* Compare table */
.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
}

.compare-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 1rem;
  min-width: 520px;
}

.compare-table th,
.compare-table td {
  padding: 0.95rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.compare-table thead th {
  font-family: var(--font-display);
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--steel);
  background: #0e1116;
}

.compare-table thead th:nth-child(2) {
  color: var(--red);
}

.compare-table tbody th {
  font-family: var(--font-body);
  font-weight: 600;
  color: var(--ink);
  width: 28%;
}

.compare-table td {
  color: var(--muted);
}

.compare-table tbody tr:last-child th,
.compare-table tbody tr:last-child td {
  border-bottom: none;
}

/* Pricing */
.price-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .price-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 960px) {
  .price-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.price-card {
  display: flex;
  flex-direction: column;
  padding: 1.5rem 1.25rem;
  border: 1px solid var(--line);
  background: var(--bg-elev);
  clip-path: polygon(
    0 0,
    calc(100% - 16px) 0,
    100% 16px,
    100% 100%,
    16px 100%,
    0 calc(100% - 16px)
  );
}

.price-card-featured {
  border-color: rgba(226, 37, 58, 0.45);
  background: linear-gradient(
    165deg,
    rgba(226, 37, 58, 0.14),
    #0a0c10 60%
  );
}

.price {
  font-family: var(--font-display);
  font-size: 2.4rem;
  letter-spacing: 0.04em;
  margin: 0.35rem 0 0.25rem;
  color: #fff;
}

.price span {
  font-size: 1.1rem;
  vertical-align: super;
  color: var(--steel);
}

.price-note {
  color: var(--muted);
  margin-bottom: 1.25rem;
  flex: 1;
}

.reseller {
  margin-top: 2.5rem;
  padding: 1.75rem 1.5rem;
  border: 1px solid var(--line);
  background: linear-gradient(120deg, #10131a, #08090c);
}

.reseller p {
  color: var(--muted);
  max-width: 58ch;
  margin-bottom: 1.15rem;
}

/* Support */
.support-grid {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 800px) {
  .support-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.support-card {
  padding: 1.5rem;
  border: 1px solid var(--line);
  background: var(--bg-elev);
}

.support-card > p {
  color: var(--muted);
  margin-bottom: 1.1rem;
}

.contact-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 0.5rem;
}

.chip {
  display: inline-flex;
  align-items: center;
  padding: 0.55rem 0.9rem;
  font-family: var(--font-display);
  font-size: 0.58rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--steel);
  border: 1px solid rgba(255, 255, 255, 0.18);
  clip-path: polygon(
    0 0,
    calc(100% - 8px) 0,
    100% 8px,
    100% 100%,
    8px 100%,
    0 calc(100% - 8px)
  );
  transition: border-color 0.2s var(--ease), color 0.2s var(--ease),
    background 0.2s var(--ease);
}

.chip:hover {
  border-color: var(--red);
  color: var(--ink);
}

.chip-wa {
  border-color: rgba(226, 37, 58, 0.45);
  background: rgba(226, 37, 58, 0.12);
  color: #fff;
}

/* FAQ accordion */
.faq-list {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--line);
}

.faq-item {
  border-bottom: 1px solid var(--line);
}

.faq-item summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.15rem 0.15rem;
  font-family: var(--font-display);
  font-size: clamp(0.78rem, 1.4vw, 0.92rem);
  letter-spacing: 0.04em;
  color: var(--ink);
  transition: color 0.2s var(--ease);
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  flex-shrink: 0;
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--red);
  transition: transform 0.25s var(--ease);
}

.faq-item[open] summary::after {
  transform: rotate(45deg);
}

.faq-item summary:hover {
  color: var(--steel);
}

.faq-item summary:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 4px;
}

.faq-body {
  padding: 0 0.15rem 1.25rem;
  color: var(--muted);
  max-width: 62ch;
}

.faq-body p + p {
  margin-top: 0.75rem;
}

.faq-body a {
  color: var(--steel);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Final CTA */
.cta-final {
  padding-bottom: 5rem;
}

.cta-panel {
  padding: 2.5rem 1.75rem;
  text-align: center;
  background: linear-gradient(
    145deg,
    rgba(226, 37, 58, 0.16) 0%,
    #0c0e12 42%,
    #08090c 100%
  );
  border: 1px solid rgba(226, 37, 58, 0.28);
  clip-path: polygon(
    0 0,
    calc(100% - 28px) 0,
    100% 28px,
    100% 100%,
    28px 100%,
    0 calc(100% - 28px)
  );
}

.cta-panel h2 {
  max-width: none;
  margin-inline: auto;
}

.cta-panel > p {
  color: var(--muted);
  max-width: 42ch;
  margin: 0 auto 1.5rem;
}

.cta-panel .hero-actions {
  justify-content: center;
  margin-bottom: 1.35rem;
}

.cta-panel .contact-chips {
  justify-content: center;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 2rem 1.5rem 2.75rem;
}

.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: flex-start;
}

@media (min-width: 720px) {
  .footer-inner {
    flex-direction: row;
    align-items: center;
    flex-wrap: wrap;
  }
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  color: var(--muted);
  font-size: 0.95rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

@media (min-width: 720px) {
  .footer-links {
    margin-left: auto;
  }
}

.footer-links a:hover {
  color: var(--ink);
}

.footer-copy {
  width: 100%;
  color: var(--muted);
  font-size: 0.9rem;
}

/* Sticky WhatsApp — phones past the hero (desktop already has header CTA) */
.wa-fab {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 30;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.2rem;
  font-family: var(--font-display);
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #fff;
  background: linear-gradient(135deg, var(--red) 0%, var(--red-deep) 100%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  clip-path: polygon(
    0 0,
    calc(100% - 10px) 0,
    100% 10px,
    100% 100%,
    10px 100%,
    0 calc(100% - 10px)
  );
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45);
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
}

.wa-fab.is-visible {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}

@media (max-width: 899px) {
  .wa-fab {
    display: inline-flex;
  }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .hero-copy > *,
  .hero-stage,
  .reveal,
  .screen-shine,
  .tv-glow,
  .prog.on::after {
    animation: none !important;
    transition: none !important;
    opacity: 1;
    transform: none;
  }
}
