:root {
  --bg-dark: #0A2B42;
  --bg-mid: #1A476D;
  --bg-panel: #0f3a52;
  --aurora-green: #00C29E;
  --aurora-teal: #009688;
  --accent-outline: #69B3D3;
  --text-white: #FFFFFF;
  --text-muted: rgba(255, 255, 255, 0.86);
  --text-dim: rgba(255, 255, 255, 0.68);
  --border-subtle: rgba(255, 255, 255, 0.14);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
  background:
    radial-gradient(1200px 560px at 8% -10%, rgba(0, 194, 158, 0.24), transparent 55%),
    radial-gradient(900px 460px at 98% 0%, rgba(105, 179, 211, 0.17), transparent 60%),
    linear-gradient(160deg, var(--bg-mid) 0%, var(--bg-dark) 42%, #071b2d 100%);
  color: var(--text-white);
  line-height: 1.5;
}

body.no-scroll {
  overflow: hidden;
}

a {
  color: var(--aurora-green);
}

.container {
  width: min(1120px, 92vw);
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(8px);
  background: rgba(10, 43, 66, 0.7);
  border-bottom: 1px solid var(--border-subtle);
}

.header-inner {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--text-white);
  text-decoration: none;
  font-weight: 700;
}

.brand img {
  width: 38px;
  height: 38px;
  border-radius: 9px;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.header-nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 600;
}

.header-nav a:hover {
  color: var(--aurora-green);
}

.hero {
  padding: 4.8rem 0 3.3rem;
}

/* ---------------------------------------------------------------------------
   Hero screenshot layout: set exactly ONE class on <section class="hero …">
   - hero-viz-a  Subtle single frame (lighter panel)
   - hero-viz-b  Floating shot (no outer card; shadow + glow only) — default; pricing in .hero-cta-band
   - hero-viz-c  Stacked: headline and CTA first, then full-width centred image
   --------------------------------------------------------------------------- */

.hero.hero-viz-a .hero-card {
  background: rgba(15, 58, 82, 0.42);
  border-color: rgba(255, 255, 255, 0.1);
}

.hero.hero-viz-b .hero-card {
  background: transparent;
  border: none;
  padding: 0;
  box-shadow: none;
}

.hero.hero-viz-b .hero-shot img {
  border: none;
  border-radius: 12px;
  box-shadow:
    0 24px 56px rgba(0, 0, 0, 0.48),
    0 0 0 1px rgba(105, 179, 211, 0.22);
}

.hero.hero-viz-c .hero-grid {
  grid-template-columns: 1fr;
  gap: 2rem;
}

.hero.hero-viz-c .hero-visual {
  max-width: min(920px, 100%);
  margin-inline: auto;
  order: 2;
}

.hero.hero-viz-c .hero-grid > div:first-child {
  order: 1;
}

.hero.hero-viz-c .hero-card {
  background: transparent;
  border: none;
  padding: 0;
}

.hero.hero-viz-c .hero-shot img {
  border: none;
  border-radius: 12px;
  box-shadow:
    0 20px 48px rgba(0, 0, 0, 0.45),
    0 0 0 1px rgba(105, 179, 211, 0.2);
}

.hero.hero-viz-c .hero-shot figcaption {
  text-align: center;
}

.hero-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 1.1rem;
  align-items: start;
}

.hero-copy {
  min-width: 0;
}

.hero-cta-band {
  margin-top: 1.85rem;
}

.hero-cta-inner {
  max-width: 38rem;
  margin-inline: auto;
  text-align: center;
}

.hero-cta-inner .price-row {
  margin-top: 0;
  justify-content: center;
  text-align: left;
}

.hero-cta-inner .post-purchase-note,
.hero-cta-inner .free-note {
  max-width: 48ch;
  margin-left: auto;
  margin-right: auto;
}

.eyebrow {
  margin: 0;
  color: var(--accent-outline);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 0.83rem;
}

h1 {
  margin: 0.5rem 0 0;
  font-size: clamp(2rem, 3.8vw, 3.2rem);
  line-height: 1.1;
}

.lead {
  margin-top: 1rem;
  color: var(--text-muted);
  max-width: 62ch;
  font-size: 1.08rem;
}

.platform-row {
  margin-top: 0.9rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.platform-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.32rem 0.62rem;
  border-radius: 999px;
  border: 1px solid rgba(105, 179, 211, 0.45);
  background: rgba(0, 150, 136, 0.14);
  color: #cffaf2;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.capability-row {
  margin-top: 0.7rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.feature-chip {
  display: inline-flex;
  align-items: center;
  padding: 0.34rem 0.62rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(10, 43, 66, 0.55);
  color: var(--text-muted);
  font-size: 0.81rem;
  font-weight: 600;
}

.price-row {
  margin-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.4rem;
  padding: 1rem 1.1rem;
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  background: rgba(15, 58, 82, 0.72);
}

.price-label {
  margin: 0;
  color: var(--text-dim);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.price {
  margin: 0.1rem 0;
  font-size: 2rem;
  font-weight: 800;
  color: var(--aurora-green);
  line-height: 1;
}

.price-note {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.93rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  padding: 0.78rem 1.1rem;
  text-decoration: none;
  font-weight: 700;
  touch-action: manipulation;
  transition: transform 0.12s ease, box-shadow 0.12s ease, filter 0.2s ease;
}

.btn-primary {
  color: #062336;
  background: linear-gradient(135deg, var(--aurora-green), #2fd4c7);
  box-shadow: 0 10px 30px rgba(0, 194, 158, 0.28);
}

.btn-primary:hover {
  transform: translateY(-1px);
  filter: brightness(1.03);
}

.brand:focus-visible,
.header-nav a:focus-visible {
  outline: 2px solid var(--accent-outline);
  outline-offset: 3px;
  border-radius: 8px;
}

.btn:focus-visible {
  outline: 3px solid var(--accent-outline);
  outline-offset: 2px;
}

.free-note {
  margin-top: 0.75rem;
  color: var(--text-muted);
}

.post-purchase-note {
  margin-top: 0.65rem;
  margin-bottom: 0;
  color: var(--text-dim);
  font-size: 0.9rem;
}

.hero-card {
  background: rgba(15, 58, 82, 0.76);
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  padding: 0.75rem 0.75rem 0.7rem;
}

/* Two-column hero: copy column is taller; centre the screenshot so gap is split above/below. */
.hero-visual {
  align-self: center;
}

.hero-shot {
  margin: 0;
}

.hero-shot img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 10px;
  border: 1px solid rgba(105, 179, 211, 0.5);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.38);
}

.hero-shot-trigger {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: zoom-in;
}

.hero-shot-trigger:focus-visible {
  outline: 3px solid var(--accent-outline);
  outline-offset: 2px;
  border-radius: 10px;
}

.hero-shot figcaption {
  margin-top: 0.45rem;
  color: var(--text-dim);
  font-size: 0.85rem;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(3, 14, 24, 0.92);
  display: grid;
  place-items: center;
  padding: 2rem;
}

.lightbox[hidden] {
  display: none;
}

.lightbox img {
  max-width: min(1400px, 94vw);
  max-height: 88vh;
  width: auto;
  height: auto;
  border-radius: 12px;
  border: 1px solid rgba(105, 179, 211, 0.5);
  box-shadow: 0 22px 56px rgba(0, 0, 0, 0.6);
}

.lightbox-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  padding: 0.5rem 0.7rem;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(10, 43, 66, 0.85);
  color: var(--text-white);
  font-weight: 700;
  cursor: pointer;
}

.lightbox-close:focus-visible {
  outline: 3px solid var(--accent-outline);
  outline-offset: 2px;
}

.hero-benefits {
  margin-top: 1rem;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.8rem;
}

.benefit-pill {
  background: rgba(15, 58, 82, 0.72);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  padding: 0.8rem 0.85rem;
  color: var(--text-muted);
  font-size: 0.93rem;
}

.benefit-pill strong {
  color: #dbfff8;
}

.section {
  padding: 2.4rem 0;
}

.section h2 {
  margin: 0;
  font-size: clamp(1.45rem, 2.3vw, 2rem);
}

.section-intro {
  margin-top: 0.6rem;
  color: var(--text-muted);
}

.feature-grid {
  margin-top: 1.2rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.95rem;
}

.feature-card {
  background: rgba(15, 58, 82, 0.74);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 1rem;
}

.feature-card h3 {
  margin: 0;
  font-size: 1.06rem;
}

.feature-card p {
  margin: 0.5rem 0 0;
  color: var(--text-muted);
}

.section-alt {
  background: rgba(10, 33, 49, 0.45);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.legal-doc {
  max-width: 48rem;
  margin: 0 auto;
}

.legal-doc h1 {
  margin: 0;
  font-size: clamp(1.45rem, 2.4vw, 1.95rem);
  line-height: 1.2;
}

.legal-doc-meta {
  margin: 0.55rem 0 0;
  color: var(--text-dim);
  font-size: 0.9rem;
}

.legal-doc-meta code {
  font-size: 0.86em;
  padding: 0.12rem 0.35rem;
  border-radius: 6px;
  background: rgba(5, 23, 38, 0.65);
  border: 1px solid var(--border-subtle);
}

.legal-doc section {
  margin-top: 1.45rem;
}

.legal-doc h2 {
  margin: 0 0 0.45rem;
  font-size: 1.06rem;
  font-weight: 700;
  color: #dbfff8;
  letter-spacing: normal;
  text-transform: none;
}

.legal-doc p {
  margin: 0.45rem 0 0;
  color: var(--text-muted);
}

.legal-doc ul {
  margin: 0.45rem 0 0;
  padding-left: 1.25rem;
  color: var(--text-muted);
}

.legal-doc li + li {
  margin-top: 0.28rem;
}

.compare-table-wrap {
  margin-top: 1rem;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.compare-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 740px;
  border: 1px solid var(--border-subtle);
}

.compare-table-caption {
  caption-side: top;
  text-align: left;
  padding: 0 0 0.65rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-muted);
}

.compare-table th,
.compare-table td {
  padding: 0.78rem 0.8rem;
  text-align: left;
  border-bottom: 1px solid var(--border-subtle);
}

.compare-table thead th {
  background: rgba(0, 150, 136, 0.18);
  color: var(--text-white);
}

.compare-table tbody td {
  background: rgba(15, 58, 82, 0.62);
  color: var(--text-muted);
}

.compare-table tbody tr td:last-child {
  color: #bbf8ec;
  font-weight: 600;
}

.cta-box {
  padding: 1.5rem;
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  background: linear-gradient(140deg, rgba(0, 150, 136, 0.2), rgba(15, 58, 82, 0.78));
}

.cta-box p {
  color: var(--text-muted);
}

.microcopy {
  margin-top: 0.85rem;
  color: var(--text-dim);
  font-size: 0.92rem;
}

.site-footer {
  padding: 1.15rem 0 2rem;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  border-top: 1px solid var(--border-subtle);
  color: var(--text-dim);
  padding-top: 0.9rem;
}

.footer-inner p {
  margin: 0;
}

.legal-note {
  margin-top: 0.4rem;
}

.legal-note p {
  margin: 0;
  color: var(--text-dim);
  font-size: 0.83rem;
}

.download-alert {
  margin-top: 1rem;
  padding: 0.8rem 0.9rem;
  border-radius: 10px;
  border: 1px solid rgba(105, 179, 211, 0.45);
  background: rgba(15, 58, 82, 0.72);
  color: var(--text-muted);
}

.download-grid {
  margin-top: 1rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
}

.download-card {
  background: rgba(15, 58, 82, 0.74);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 1rem;
}

.download-card h3 {
  margin: 0;
}

.download-card p {
  margin: 0.55rem 0 0;
  color: var(--text-muted);
}

.download-meta code {
  color: #cffaf2;
}

.download-card .btn {
  margin-top: 0.8rem;
}

.download-card .btn[aria-disabled="true"] {
  pointer-events: none;
  opacity: 0.55;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.9rem;
}

.info-grid-full {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.info-card {
  background: rgba(15, 58, 82, 0.72);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 1rem;
}

.info-card h2 {
  font-size: 1.18rem;
}

.info-card ul {
  margin: 0.7rem 0 0;
  padding-left: 1.1rem;
  color: var(--text-muted);
}

.info-card li + li {
  margin-top: 0.35rem;
}

.checksum-block {
  margin: 0.8rem 0 0;
  padding: 0.8rem;
  background: rgba(5, 23, 38, 0.78);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  color: #c8ece5;
  font-size: 0.82rem;
  line-height: 1.5;
  overflow-x: auto;
}

@media (max-width: 980px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }

  /* Stacked layout already single column; keep natural order on small screens */
  .hero.hero-viz-c .hero-visual,
  .hero.hero-viz-c .hero-grid > div:first-child {
    order: unset;
  }

  .hero-benefits {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .download-grid {
    grid-template-columns: 1fr;
  }

  .info-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .container {
    width: 100%;
    max-width: 1120px;
    padding-inline: max(1.05rem, calc(env(safe-area-inset-left, 0px) + 0.65rem))
      max(1.05rem, calc(env(safe-area-inset-right, 0px) + 0.65rem));
  }

  .header-inner {
    flex-direction: column;
    align-items: stretch;
    gap: 0.65rem;
    min-height: unset;
    padding-block: 0.7rem;
  }

  .brand {
    flex: none;
    min-width: 0;
    min-height: 44px;
  }

  .brand span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .header-nav {
    flex: none;
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.45rem;
  }

  .header-nav a {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0.38rem 0.45rem;
    border-radius: 10px;
    border: 1px solid var(--border-subtle);
    background: rgba(15, 58, 82, 0.55);
    font-weight: 700;
    font-size: 0.875rem;
    color: var(--text-white);
    text-align: center;
    line-height: 1.25;
  }

  .header-nav a:hover {
    color: var(--aurora-green);
    background: rgba(15, 58, 82, 0.82);
  }

  .hero {
    padding: 3.15rem 0 2.15rem;
  }

  .hero-grid {
    gap: 0.85rem;
  }

  .hero-shot figcaption {
    margin-top: 0.35rem;
  }

  .hero-cta-band {
    margin-top: 1.1rem;
  }

  .hero-cta-inner .price-row {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
    padding: 0.75rem 0.9rem 0.9rem;
    gap: 0.75rem;
  }

  .hero-cta-inner .price-row > div:first-of-type {
    text-align: center;
  }

  .hero-cta-inner .price-label {
    color: rgba(255, 255, 255, 0.84);
    font-size: 0.8rem;
  }

  .hero-cta-inner .price-note {
    font-size: 0.88rem;
  }

  .hero-cta-inner .price-row .btn-primary {
    width: 100%;
    max-width: 17rem;
    margin-inline: auto;
    padding-block: 0.68rem;
  }

  .hero-cta-inner .post-purchase-note,
  .hero-cta-inner .free-note {
    max-width: none;
    text-align: center;
  }

  h1 {
    font-size: clamp(1.65rem, 6.2vw, 2.35rem);
  }

  .lead {
    font-size: 1.02rem;
  }

  .section {
    padding: 1.85rem 0;
  }

  /* Direct section titles only (not nested legal-doc clause headings on eula.html). */
  .section > .container > h2 {
    font-size: clamp(1.28rem, 5vw, 1.75rem);
  }

  .feature-card {
    padding: 0.9rem 0.85rem;
  }

  .cta-box {
    padding: 1.1rem 1rem 1.15rem;
    text-align: center;
  }

  .cta-box h2 {
    font-size: clamp(1.22rem, 4.8vw, 1.62rem);
  }

  .cta-box .btn-primary {
    width: 100%;
    max-width: min(22rem, 100%);
    margin-inline: auto;
    box-sizing: border-box;
  }

  .cta-box .microcopy {
    text-align: left;
    max-width: 52ch;
    margin-left: auto;
    margin-right: auto;
  }

  .cta-box p {
    overflow-wrap: anywhere;
  }

  .microcopy,
  .post-purchase-note,
  .free-note,
  .legal-note p {
    overflow-wrap: anywhere;
  }

  .compare-table th,
  .compare-table td {
    padding: 0.55rem 0.62rem;
    font-size: 0.88rem;
  }

  .compare-table-caption {
    font-size: 0.88rem;
    padding-bottom: 0.55rem;
  }

  .legal-doc h1 {
    font-size: clamp(1.25rem, 4.5vw, 1.65rem);
  }
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 680px) {
  .feature-grid {
    grid-template-columns: 1fr;
  }

  .hero-benefits {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    flex-direction: column;
  }
}
