:root {
  color-scheme: light;
  --text: #24292f;
  --muted: #66727b;
  --line: #d9e2e8;
  --soft: #f3f7fa;
  --panel: #ffffff;
  --dark: #15191d;
  --dark-panel: #20262b;
  --blue: #168bd2;
  --blue-dark: #075b91;
  --green: #13a538;
  --gold: #e6a427;
  --red: #cf2e2e;
  --shadow: 0 14px 34px rgba(26, 38, 49, 0.13);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background: #fff;
  color: var(--text);
  font-family: Arial, Helvetica, sans-serif;
}

a {
  color: inherit;
  text-decoration: none;
}

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

button,
input {
  font: inherit;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -50px;
  z-index: 20;
  padding: 10px 14px;
  border-radius: 6px;
  background: var(--dark);
  color: #fff;
}

.skip-link:focus {
  top: 16px;
}

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

.page-wrap {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.offer-bar {
  background: var(--green);
  color: #fff;
  font-size: 14px;
}

.offer-inner {
  min-height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  text-align: center;
}

.offer-inner a {
  text-decoration: underline;
  text-underline-offset: 3px;
  font-weight: 700;
}

.site-header {
  background: #fff;
  border-bottom: 1px solid var(--line);
}

.header-inner {
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 26px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: max-content;
  color: var(--blue-dark);
  font-size: 44px;
  font-weight: 800;
}

.brand-mark {
  width: 62px;
  height: 54px;
  object-fit: contain;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.main-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 18px;
  color: #33414a;
  font-size: 15px;
  font-weight: 700;
}

.main-nav a {
  padding: 8px 0;
  border-bottom: 2px solid transparent;
}

.main-nav a:hover,
.resource-links a:hover,
.footer-inner a:hover {
  border-color: var(--blue);
  color: var(--blue-dark);
}

.product-hero {
  padding: 34px 0 28px;
  background: var(--soft);
  border-bottom: 1px solid var(--line);
}

.product-hero-grid {
  display: grid;
  grid-template-columns: minmax(360px, 1.25fr) minmax(300px, 0.75fr);
  gap: 34px;
  align-items: center;
}

.screenshot-frame {
  margin: 0;
  overflow: hidden;
  border: 1px solid #aebbc4;
  border-radius: 6px;
  background: var(--dark);
  box-shadow: var(--shadow);
}

.screenshot-frame img {
  display: block;
  width: 100%;
  aspect-ratio: 3840 / 2058;
  object-fit: cover;
}

.hero-shot {
  align-self: center;
}

.product-summary {
  display: grid;
  justify-items: start;
  gap: 14px;
}

h1,
h2,
h3,
p {
  letter-spacing: 0;
}

h1 {
  margin: 0;
  color: #1b2a34;
  font-size: 56px;
  line-height: 0.96;
}

h2 {
  margin: 0;
  color: #1b2a34;
  font-size: clamp(30px, 4vw, 44px);
  line-height: 1.12;
}

h3 {
  margin: 0;
  color: #1d2a32;
  font-size: 22px;
  line-height: 1.2;
}

p {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.55;
}

.tagline {
  color: #34444d;
  font-size: 21px;
  line-height: 1.35;
}

.system-note,
.cloud-note {
  max-width: 420px;
}

.primary-button,
.purchase-button,
button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 6px;
  padding: 0 18px;
  background: var(--green);
  color: #fff;
  font-weight: 900;
  cursor: pointer;
}

.primary-button {
  min-width: 190px;
  font-size: 17px;
}

.primary-button:hover,
.purchase-button:hover,
button:hover {
  filter: brightness(0.95);
}

.version-list {
  display: grid;
  gap: 6px;
  margin: 4px 0;
}

.version-list div {
  display: grid;
  grid-template-columns: 74px 1fr;
  gap: 8px;
  color: var(--muted);
  font-size: 14px;
}

.version-list dt {
  font-weight: 800;
}

.version-list dd {
  margin: 0;
}

.cloud-link {
  color: var(--blue-dark);
  font-weight: 800;
}

.resource-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 8px;
  color: #4c5961;
  font-size: 14px;
}

.resource-links a,
.footer-inner a {
  border-bottom: 2px solid transparent;
}

.subscribe-panel label {
  color: #3a4750;
  font-size: 14px;
  font-weight: 800;
}

input {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid #b9c7cf;
  border-radius: 6px;
  background: #fff;
  color: var(--text);
  font-size: 16px;
}

input:focus {
  outline: 3px solid rgba(22, 139, 210, 0.22);
  border-color: var(--blue);
}

.content-section {
  padding: 66px 0;
}

.section-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 22px;
}

.section-topline > a {
  color: var(--blue-dark);
  font-weight: 800;
}

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

.feature-grid article,
.price-card,
.video-tile,
.broadcaster-grid article,
.contact-methods article {
  display: grid;
  align-content: start;
  gap: 12px;
  min-height: 100%;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--panel);
}

.feature-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.feature-title {
  display: grid;
  min-width: 0;
  gap: 10px;
}

.feature-icon {
  flex: 0 0 64px;
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  border: 1px solid #b9d9ea;
  border-radius: 6px;
  background: #eef8ff;
  color: var(--blue-dark);
}

.feature-icon svg {
  width: 52px;
  height: 52px;
}

.feature-icon rect,
.feature-icon circle,
.feature-icon path {
  fill: none;
  stroke: currentColor;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.feature-icon-voice {
  background: #edf9f2;
  border-color: #b8e2c5;
  color: #167a3a;
}

.feature-icon-cloud {
  background: #eef8ff;
  border-color: #b9d9ea;
  color: var(--blue-dark);
}

.feature-icon-advert {
  background: #fff5df;
  border-color: #ead19c;
  color: #8a5d00;
}

.feature-icon-player {
  background: #fff1f1;
  border-color: #efb8b8;
  color: #b52b2b;
}

.feature-icon-cart {
  background: #eefaf7;
  border-color: #b9ded7;
  color: #0f7469;
}

.feature-icon-clock {
  background: #eef8ff;
  border-color: #b9d9ea;
  color: #126fa2;
}

.feature-icon-library {
  background: #f2f0ff;
  border-color: #c8c1ec;
  color: #5046a0;
}

.feature-icon-stream {
  background: #f0fbff;
  border-color: #b7dfeb;
  color: #11758c;
}

.feature-icon-user {
  background: #f5f7fa;
  border-color: #cbd5dc;
  color: #425461;
}

.badge {
  width: max-content;
  padding: 5px 8px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 900;
}

.badge.premium {
  background: #fff3d8;
  color: #8a5d00;
}

.badge.included {
  background: #e6f5ff;
  color: var(--blue-dark);
}

.pricing-section,
.screenshots-section {
  background: var(--soft);
}

.pricing-intro {
  max-width: 820px;
  margin: 12px 0 24px;
}

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

.price-line {
  display: grid;
  gap: 2px;
  margin: 8px 0;
}

.price-line span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.price-line strong {
  color: var(--blue-dark);
  font-size: 40px;
  line-height: 1;
}

.price-line small {
  color: var(--muted);
  font-weight: 800;
}

.purchase-button {
  width: max-content;
  margin-top: 4px;
}

.checkout-panel {
  display: grid;
  grid-template-columns: minmax(260px, 0.7fr) minmax(320px, 1fr);
  gap: 26px;
  align-items: start;
  margin-top: 26px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
}

.subscribe-panel {
  display: grid;
  gap: 18px;
}

.subscribe-panel form {
  display: grid;
  gap: 16px;
}

.subscribe-panel label {
  display: grid;
  gap: 7px;
}

.quote-line {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: center;
  min-height: 44px;
  color: var(--text);
}

.paypal-box {
  min-height: 138px;
}

.result-box {
  display: grid;
  gap: 10px;
  padding: 16px;
  border-left: 4px solid var(--green);
  background: #edf7f1;
  color: var(--text);
}

.result-box code {
  display: block;
  width: max-content;
  max-width: 100%;
  padding: 10px 12px;
  border-radius: 6px;
  background: #fff;
  color: var(--blue-dark);
  overflow-wrap: anywhere;
  font-size: 18px;
}

.result-box.error {
  border-left-color: var(--red);
  background: #fff0ee;
  color: var(--red);
}

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

.video-tile {
  min-height: 210px;
  background: #101315;
  color: #fff;
}

.video-tile span {
  width: max-content;
  padding: 5px 8px;
  border-radius: 4px;
  background: var(--blue);
  color: #fff;
  font-size: 12px;
  font-weight: 900;
}

.video-tile h3 {
  color: #fff;
}

.video-tile p {
  color: #d5e1e7;
}

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

.screenshot-card {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  box-shadow: 0 12px 28px rgba(26, 38, 49, 0.08);
}

.screenshot-card:first-child {
  grid-column: 1 / -1;
}

.screenshot-card a {
  display: block;
  background: #101315;
}

.screenshot-card img {
  display: block;
  width: 100%;
  aspect-ratio: 3840 / 2058;
  object-fit: cover;
}

.screenshot-card figcaption {
  padding: 12px 14px;
  color: #1d2a32;
  font-weight: 900;
}

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

.broadcaster-grid strong {
  color: var(--blue-dark);
}

.contact-section {
  background: #fff;
  border-top: 1px solid var(--line);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr minmax(280px, 0.65fr);
  gap: 30px;
  align-items: start;
}

.contact-grid p {
  max-width: 720px;
  margin-top: 10px;
}

.contact-methods {
  display: grid;
  gap: 12px;
}

.contact-methods span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.contact-methods a {
  color: var(--blue-dark);
  font-weight: 900;
}

.admin-header-inner {
  min-height: 88px;
}

.admin-site-link {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: var(--blue-dark);
  font-weight: 900;
}

.admin-header-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.admin-section {
  min-height: calc(100vh - 88px);
  background: var(--soft);
}

.admin-login-section {
  display: grid;
  align-items: center;
}

.admin-login-wrap {
  display: grid;
  justify-items: center;
}

.admin-login-panel {
  width: min(100%, 420px);
  display: grid;
  gap: 16px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  box-shadow: var(--shadow);
}

.admin-login-logo {
  width: 92px;
  height: 82px;
  object-fit: contain;
}

.admin-login-panel h1 {
  font-size: 36px;
}

.admin-login-panel label {
  display: grid;
  gap: 7px;
  color: #3a4750;
  font-size: 14px;
  font-weight: 800;
}

.admin-login-error {
  padding: 12px;
  border-left: 4px solid var(--red);
  border-radius: 6px;
  background: #fff0ee;
  color: var(--red);
  font-weight: 800;
}

.admin-layout {
  display: grid;
  gap: 22px;
}

.admin-title h1 {
  font-size: clamp(38px, 5vw, 58px);
}

.admin-alert,
.admin-empty {
  padding: 16px;
  border-left: 4px solid var(--gold);
  border-radius: 6px;
  background: #fff8e8;
  color: #604300;
  font-weight: 800;
}

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

.admin-stats article,
.admin-panel {
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  box-shadow: 0 12px 28px rgba(26, 38, 49, 0.08);
}

.admin-stats article {
  display: grid;
  gap: 8px;
  padding: 20px;
}

.admin-stats strong {
  color: var(--blue-dark);
  font-size: 38px;
  line-height: 1;
}

.admin-stats span {
  color: #3a4750;
  font-weight: 900;
}

.admin-panel {
  display: grid;
  gap: 18px;
  padding: 22px;
}

.admin-panel-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.license-group {
  display: grid;
  gap: 12px;
}

.license-group + .license-group {
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.license-group-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: #1d2a32;
}

.license-group-heading span {
  padding: 5px 8px;
  border-radius: 4px;
  background: #e6f5ff;
  color: var(--blue-dark);
  font-size: 12px;
  font-weight: 900;
}

.admin-table-wrap {
  overflow-x: auto;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 860px;
  font-size: 14px;
}

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

.admin-table th {
  background: #f3f7fa;
  color: #33414a;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.admin-table tbody tr:hover {
  background: #f8fbfd;
}

.license-code {
  display: block;
  color: #1d2a32;
  overflow-wrap: anywhere;
}

.admin-muted {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  overflow-wrap: anywhere;
}

.status-pill {
  display: inline-flex;
  min-width: 76px;
  justify-content: center;
  padding: 6px 8px;
  border-radius: 999px;
  background: #edf2f5;
  color: #425461;
  font-size: 12px;
  font-weight: 900;
}

.status-active,
.status-trial,
.status-grace {
  background: #e8f7ee;
  color: #146f32;
}

.status-expired,
.status-cancelled,
.status-suspended {
  background: #fff0ee;
  color: var(--red);
}

.status-payment_failed {
  background: #fff8e8;
  color: #8a5d00;
}

.status-admin {
  background: #e6f5ff;
  color: var(--blue-dark);
}

.site-footer {
  padding: 24px 0;
  background: #15191d;
  color: #dce7ec;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  font-size: 14px;
}

.footer-inner nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 16px;
}

@media (max-width: 980px) {
  .header-inner {
    align-items: flex-start;
    flex-direction: column;
    padding: 14px 0;
  }

  .main-nav {
    justify-content: flex-start;
  }

  .product-hero-grid,
  .checkout-panel,
  .contact-grid {
    grid-template-columns: 1fr;
  }

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

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

@media (max-width: 760px) {
  .page-wrap {
    width: min(100% - 28px, 1180px);
  }

  .offer-inner {
    min-height: 34px;
    font-size: 13px;
  }

  .brand {
    font-size: 38px;
  }

  .brand-mark {
    width: 52px;
    height: 46px;
  }

  .main-nav {
    gap: 14px;
    font-size: 14px;
  }

  .product-hero {
    padding: 22px 0;
  }

  .product-hero-grid {
    gap: 22px;
  }

  .resource-links {
    gap: 6px;
  }

  .quote-line {
    grid-template-columns: 1fr;
  }

  .content-section {
    padding: 48px 0;
  }

  .section-topline {
    align-items: flex-start;
    flex-direction: column;
  }

  .feature-grid,
  .pricing-cards,
  .media-grid,
  .broadcaster-grid {
    grid-template-columns: 1fr;
  }

  .screenshot-gallery {
    grid-template-columns: 1fr;
  }

  .screenshot-card:first-child {
    grid-column: auto;
  }

  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .footer-inner nav {
    justify-content: flex-start;
  }

  .admin-header-inner {
    min-height: auto;
  }

  .admin-stats {
    grid-template-columns: 1fr;
  }

  .admin-panel {
    padding: 18px;
  }

  .license-group-heading {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 420px) {
  .offer-inner {
    flex-direction: column;
    gap: 2px;
    padding: 6px 0;
  }

  .primary-button,
  .purchase-button {
    width: 100%;
  }

  .checkout-panel,
  .feature-grid article,
  .price-card,
  .video-tile,
  .broadcaster-grid article {
    padding: 18px;
  }

  .feature-heading {
    gap: 12px;
  }

  .feature-icon {
    flex-basis: 56px;
    width: 56px;
    height: 56px;
  }

  .feature-icon svg {
    width: 46px;
    height: 46px;
  }
}
