/* ─────────────────────────────────────────────────────────────
   app.topzmedia.com
   Layout after scalers.org: centred composition, one accent,
   pill CTAs, rule-divided column rows, alternating dark bands.
   Accent #24D6FF · Display Merriweather · Body Inter
   ───────────────────────────────────────────────────────────── */

:root {
  --base: #08090b;
  --band: #0e1013;
  --surface: #141619;
  --surface-2: #191c20;
  --line: #23262b;
  --line-soft: #1a1d21;

  --ink: #ffffff;
  --ink-2: #c3c9d1;
  --ink-3: #99a1ab;

  --accent: #24d6ff;
  --accent-hi: #6fe4ff;
  --accent-ink: #04222c;

  --radius: 999px;
  --maxw: 1200px;

  --sans: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --display: Merriweather, Georgia, "Times New Roman", serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--base);
  color: var(--ink-2);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

/* ── Type ───────────────────────────────────────────────────── */

h1,
h2,
h3,
h4 {
  font-family: var(--display);
  font-weight: 900;
  color: var(--ink);
  line-height: 1.14;
  margin: 0 0 20px;
  letter-spacing: -0.015em;
}

h1 {
  font-size: clamp(36px, 5.6vw, 64px);
}

h2 {
  font-size: clamp(28px, 4vw, 46px);
}

h3 {
  font-size: 19px;
  font-weight: 700;
  line-height: 1.3;
}

/* Accent-coloured emphasis inside a headline — the reference's signature move. */
.hl {
  color: var(--accent);
  font-style: italic;
}

p {
  margin: 0 0 18px;
}

.lede {
  font-size: clamp(16.5px, 1.5vw, 19px);
  color: var(--ink-2);
  line-height: 1.75;
}

/* Small tracked uppercase label above a section heading */
.label {
  display: block;
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.28em;
  color: var(--accent);
  margin: 0 0 18px;
}

.label-muted {
  color: var(--ink-3);
  letter-spacing: 0.22em;
}

/* ── Centred section scaffold ───────────────────────────────── */

section {
  padding: 96px 0;
  position: relative;
}

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

.center {
  text-align: center;
}

.sec-head {
  max-width: 760px;
  margin: 0 auto 56px;
  text-align: center;
}

.sec-head p {
  margin: 0;
}

/* ── Header ─────────────────────────────────────────────────── */

.site-head {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(8, 9, 11, 0.9);
  backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid var(--line-soft);
}

.site-head .wrap {
  display: flex;
  align-items: center;
  gap: 20px;
  height: 72px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  flex: 0 0 auto;
}

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

.brand img {
  width: 30px;
  height: 30px;
  /* Source mark is black-on-transparent — invert to a white badge. */
  filter: invert(1);
}

.brand-name {
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink);
}

.nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 30px;
}

.nav a {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-2);
}

.nav a:hover {
  color: var(--ink);
  text-decoration: none;
}

/* ── Buttons (pill) ─────────────────────────────────────────── */

.btn {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 15px 34px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  color: var(--ink);
  background: transparent;
  white-space: nowrap;
  transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.btn:hover {
  text-decoration: none;
  border-color: var(--accent);
  color: var(--accent);
}

/* `.nav a` (0,1,1) beats `.btn-accent` (0,1,0); two classes settles it so the
   header CTA keeps its dark-on-accent text. */
.btn.btn-accent,
.nav a.btn.btn-accent {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-ink);
}

.btn.btn-accent:hover,
.nav a.btn.btn-accent:hover {
  background: var(--accent-hi);
  border-color: var(--accent-hi);
  color: var(--accent-ink);
  text-decoration: none;
}

.site-head .btn {
  padding: 12px 24px;
  font-size: 12px;
}

/* ── Hero ───────────────────────────────────────────────────── */

.hero {
  position: relative;
  padding: 120px 0 104px;
  overflow: hidden;
  text-align: center;
  border-bottom: 1px solid var(--line-soft);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(58% 62% at 50% 8%, rgba(36, 214, 255, 0.16), transparent 68%),
    radial-gradient(70% 60% at 50% 108%, rgba(36, 214, 255, 0.09), transparent 70%),
    linear-gradient(180deg, #0d1116 0%, var(--base) 74%);
  pointer-events: none;
}

.hero .wrap {
  position: relative;
}

.hero h1 {
  max-width: 17ch;
  margin-left: auto;
  margin-right: auto;
}

.hero .lede {
  max-width: 62ch;
  margin: 0 auto;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
  margin-top: 38px;
}

/* ── Hero screenshot ────────────────────────────────────────── */

.hero-shot {
  position: relative;
  max-width: 1060px;
  margin: 62px auto 0;
  padding: 0;
}

.hero-shot img {
  width: 100%;
  height: auto;
  display: block;
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 34px 90px rgba(0, 0, 0, 0.6);
}

.hero-shot figcaption {
  margin-top: 16px;
  font-size: 13px;
  color: var(--ink-3);
}

/* ── Readout strip ──────────────────────────────────────────── */

.readout {
  margin: 56px auto 0;
  max-width: 940px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.readout div {
  padding: 26px 18px;
  border-right: 1px solid var(--line-soft);
  text-align: center;
}

.readout div:last-child {
  border-right: 0;
}

.readout dt {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 10px;
}

.readout dd {
  font-family: var(--display);
  font-size: 26px;
  font-weight: 900;
  margin: 0;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

.readout dd.on {
  color: var(--accent);
}

/* ── Rule-divided column row ────────────────────────────────── */

.cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  max-width: 1080px;
  margin: 0 auto;
}

.cols > div {
  padding: 0 34px;
  text-align: center;
  border-right: 1px solid var(--line);
}

.cols > div:last-child {
  border-right: 0;
}

.cols h3 {
  margin-bottom: 10px;
}

.cols p {
  color: var(--ink-3);
  font-size: 15px;
  margin: 0;
}

/* ── Module grid ────────────────────────────────────────────── */

.group {
  margin-bottom: 56px;
}

.group:last-child {
  margin-bottom: 0;
}

.group > .label {
  text-align: center;
  margin-bottom: 26px;
}

/* Flex rather than grid so a short final row (or a 3-card sibling row) centres
   instead of hugging the left edge. */
.grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
}

.grid .card {
  flex: 1 1 272px;
  max-width: 330px;
}

.card {
  display: block;
  padding: 30px 26px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  color: var(--ink-2);
  text-align: center;
  transition: border-color 0.15s ease, background 0.15s ease, transform 0.15s ease;
}

.card:hover {
  text-decoration: none;
  border-color: var(--accent);
  background: var(--surface-2);
  transform: translateY(-2px);
}

.chip {
  display: inline-block;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.16em;
  padding: 5px 11px;
  border-radius: var(--radius);
  border: 1px solid rgba(36, 214, 255, 0.35);
  color: var(--accent);
  background: rgba(36, 214, 255, 0.08);
  margin-bottom: 16px;
}

.card h3 {
  margin: 0 0 10px;
  font-size: 18px;
}

.card p {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.65;
  color: var(--ink-3);
}

.card .more {
  display: inline-block;
  margin-top: 18px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
}

/* ── Interior page head ─────────────────────────────────────── */

.page-head {
  position: relative;
  padding: 76px 0 68px;
  overflow: hidden;
  text-align: center;
  border-bottom: 1px solid var(--line-soft);
}

.page-head::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(56% 68% at 50% 0%, rgba(36, 214, 255, 0.13), transparent 70%),
    linear-gradient(180deg, #0d1116 0%, var(--base) 82%);
  pointer-events: none;
}

.page-head .wrap {
  position: relative;
}

.page-head .lede {
  max-width: 62ch;
  margin: 0 auto;
}

.crumb {
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 20px;
}

.crumb a {
  color: var(--ink-3);
}

.crumb a:hover {
  color: var(--accent);
}

/* ── Feature list ───────────────────────────────────────────── */

.feature-list {
  list-style: none;
  padding: 0;
  margin: 0 auto;
  max-width: 760px;
  border-top: 1px solid var(--line);
}

.feature-list li {
  padding: 22px 0 22px 34px;
  border-bottom: 1px solid var(--line);
  color: var(--ink-2);
  position: relative;
  font-size: 16px;
  text-align: left;
}

.feature-list li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 31px;
  width: 14px;
  height: 2px;
  background: var(--accent);
}

/* ── Prose (legal) ──────────────────────────────────────────── */

.prose {
  max-width: 760px;
  margin: 0 auto;
  text-align: left;
}

.prose h2 {
  font-size: 24px;
  margin-top: 52px;
  margin-bottom: 14px;
}

.prose h3 {
  font-size: 17px;
  margin-top: 30px;
  margin-bottom: 8px;
}

.prose p,
.prose li {
  color: var(--ink-2);
  font-size: 15.5px;
}

.prose ul,
.prose ol {
  padding-left: 20px;
  margin: 0 0 20px;
}

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

.prose table {
  width: 100%;
  border-collapse: collapse;
  margin: 0 0 22px;
  font-size: 14.5px;
}

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

.prose th {
  background: var(--surface);
  color: var(--ink);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 800;
}

.tablewrap {
  overflow-x: auto;
}

.updated {
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.callout {
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  border-radius: 10px;
  background: var(--surface);
  padding: 20px 22px;
  margin: 0 0 24px;
}

.callout p:last-child {
  margin-bottom: 0;
}

/* ── Footer ─────────────────────────────────────────────────── */

.site-foot {
  padding: 40px 0 44px;
  background: var(--base);
  border-top: 2px solid var(--accent);
}

.foot-bar {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  text-align: center;
  padding-bottom: 30px;
  border-bottom: 1px solid var(--line-soft);
}

.foot-links {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
  justify-content: center;
}

.foot-links a {
  font-size: 13px;
  color: var(--ink-3);
}

.foot-links a:hover {
  color: var(--accent);
  text-decoration: none;
}

.foot-contact {
  font-size: 13px;
  color: var(--ink-3);
}

.disclaimer {
  padding-top: 26px;
  max-width: 96ch;
  margin: 0 auto;
}

.disclaimer p {
  color: var(--ink-3);
  font-size: 12.5px;
  line-height: 1.7;
  margin: 0 0 10px;
}

.legal-line {
  margin-top: 18px;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--ink-3);
  text-transform: uppercase;
}

/* ── Responsive ─────────────────────────────────────────────── */

@media (max-width: 900px) {
  .cols {
    grid-template-columns: 1fr;
  }
  .cols > div {
    border-right: 0;
    border-bottom: 1px solid var(--line);
    padding: 30px 0;
  }
  .cols > div:last-child {
    border-bottom: 0;
  }
  .readout {
    grid-template-columns: repeat(2, 1fr);
  }
  .readout div:nth-child(2) {
    border-right: 0;
  }
  .readout div:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line-soft);
  }
}

@media (max-width: 640px) {
  section {
    padding: 68px 0;
  }
  .hero {
    padding: 84px 0 72px;
  }
  .nav {
    gap: 16px;
  }
  .nav a.hide-sm {
    display: none;
  }
  .site-head .wrap {
    height: 64px;
    gap: 12px;
    padding: 0 16px;
  }
  .site-head .btn {
    padding: 10px 16px;
    font-size: 11px;
    letter-spacing: 0.06em;
  }
}

/* Small phones: brand + link + CTA do not fit. Keep brand and CTA. */
@media (max-width: 460px) {
  .nav a:not(.btn) {
    display: none;
  }
}

@media (max-width: 365px) {
  .brand img {
    width: 26px;
    height: 26px;
  }
  .brand-name {
    font-size: 12px;
    letter-spacing: 0.12em;
  }
}

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