:root {
  color-scheme: light;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #151515;
  background: #fbfbfa;
}

* {
  box-sizing: border-box;
}

body {
  min-height: 100svh;
  margin: 0;
  background:
    linear-gradient(120deg, color-mix(in srgb, var(--accent) 11%, transparent), transparent 38%),
    #fbfbfa;
}

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

.site-header {
  position: relative;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 72px;
  padding: 0 40px;
  border-bottom: 1px solid rgba(20, 20, 20, 0.08);
  background: color-mix(in srgb, #fbfbfa 94%, var(--accent));
}

.brand {
  display: inline-flex;
  align-items: center;
  flex: none;
}

.brand-wordmark {
  display: block;
  width: 198px;
  height: 46px;
  border-radius: 4px;
  object-fit: contain;
  object-position: left center;
}

nav {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  white-space: nowrap;
  scrollbar-width: none;
}

nav::-webkit-scrollbar {
  display: none;
}

.desktop-nav {
  overflow: visible;
}

nav a {
  border-radius: 999px;
  padding: 8px 12px;
  color: #595959;
  font-size: 13px;
  font-weight: 700;
}

nav .platform-menu {
  position: relative;
}

nav .platform-menu summary {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 8px 12px;
  color: #595959;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  list-style: none;
}

nav .platform-menu summary::-webkit-details-marker {
  display: none;
}

nav .platform-menu summary:hover {
  background: rgba(20, 20, 20, 0.05);
}

.platform-menu-panel {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  z-index: 80;
  display: grid;
  grid-template-columns: repeat(2, minmax(160px, 1fr));
  gap: 12px;
  width: min(420px, calc(100vw - 80px));
  max-height: min(520px, calc(100vh - 96px));
  overflow: auto;
  padding: 14px;
  border: 1px solid rgba(20, 20, 20, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 16px 40px rgba(20, 20, 20, 0.14);
  white-space: normal;
}

.desktop-nav .platform-menu:nth-last-of-type(-n + 2) .platform-menu-panel {
  right: 0;
  left: auto;
}

.platform-menu-group {
  display: grid;
  align-content: start;
  gap: 3px;
}

.platform-menu-group p {
  margin: 0 0 4px;
  color: #757575;
  font-size: 11px;
  font-weight: 900;
}

.platform-menu-group a {
  display: flex;
  align-items: center;
  gap: 8px;
  border-radius: 6px;
  padding: 8px;
  color: #2e2e2e;
}

.platform-menu-group a[aria-current="page"] {
  background: color-mix(in srgb, var(--accent) 12%, #fff);
  color: #1b1b1b;
}

nav a:hover {
  background: rgba(20, 20, 20, 0.05);
}

nav a[aria-current="page"],
nav a[aria-current="page"]:hover {
  background: var(--accent);
  color: white;
}

.language-switcher {
  position: relative;
  flex: none;
}

.desktop-language {
  flex: none;
}

.language-switcher summary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid rgba(20, 20, 20, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.64);
  color: #282828;
  cursor: pointer;
  list-style: none;
}

.language-label {
  display: none;
}

.language-switcher summary::-webkit-details-marker {
  display: none;
}

.language-switcher summary:hover {
  background: rgba(20, 20, 20, 0.05);
}

.globe-icon {
  display: inline-flex;
  width: 18px;
  height: 18px;
  line-height: 1;
}

.globe-icon svg {
  display: block;
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.language-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 20;
  display: grid;
  gap: 2px;
  width: min(260px, calc(100vw - 32px));
  max-height: min(420px, calc(100vh - 96px));
  overflow-y: auto;
  padding: 8px;
  border: 1px solid rgba(20, 20, 20, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 16px 40px rgba(20, 20, 20, 0.14);
  white-space: normal;
}

.language-menu a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-radius: 6px;
  padding: 9px 10px;
  color: #383838;
  font-size: 13px;
  font-weight: 800;
}

.language-menu a[aria-current="page"],
.language-menu a[aria-current="page"]:hover {
  background: rgba(20, 20, 20, 0.07);
  color: #1f1f1f;
}

.menu-code {
  color: currentColor;
  font-size: 11px;
  font-weight: 900;
  opacity: 0.72;
}

.site-menu {
  display: none;
}

.site-menu-button {
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(20, 20, 20, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.68);
  color: #202020;
  cursor: pointer;
  list-style: none;
}

.site-menu-toggle {
  display: none;
}

.site-menu-button:hover {
  background: rgba(20, 20, 20, 0.05);
}

.menu-icon {
  display: grid;
  gap: 4px;
  width: 18px;
}

.menu-icon span {
  display: block;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  width: min(920px, calc(100% - 80px));
  margin: 0 auto;
  padding: 24px 0 40px;
  border-top: 1px solid rgba(20, 20, 20, 0.1);
  color: #5f5f5f;
  font-size: 13px;
  font-weight: 700;
}

.site-footer a[aria-current="page"] {
  color: var(--accent);
}

.hero {
  padding: 46px 40px 22px;
}

.hero-inner,
.download-panel {
  width: min(920px, 100%);
  margin: 0 auto;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--accent);
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0;
}

h1 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(32px, 4.8vw, 52px);
  line-height: 1.1;
  letter-spacing: 0;
}

.lead {
  max-width: 580px;
  margin: 14px 0 0;
  color: #4c4c4c;
  font-size: 17px;
  line-height: 1.6;
}

.download-panel {
  padding: 0 40px 48px;
}

form {
  border-top: 3px solid var(--accent);
  padding-top: 24px;
}

label {
  display: block;
  margin-bottom: 10px;
  font-size: 13px;
  font-weight: 900;
}

.input-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
}

input,
select,
button,
.download-button {
  min-height: 54px;
  border: 1px solid rgba(20, 20, 20, 0.14);
  border-radius: 10px;
  font: inherit;
}

input,
select {
  width: 100%;
  background: white;
  padding: 0 16px;
  color: #171717;
}

button,
.download-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-color: var(--accent);
  background: var(--accent);
  color: white;
  padding: 0 22px;
  font-weight: 900;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}

button {
  width: auto;
}

button:hover,
.download-button:hover {
  background: color-mix(in srgb, var(--accent) 86%, #000);
  border-color: color-mix(in srgb, var(--accent) 86%, #000);
}

input:focus,
select:focus {
  outline: none;
  border-color: var(--accent);
}

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

#status {
  min-height: 24px;
  margin: 12px 0 0;
  color: #5c5c5c;
  font-size: 14px;
  line-height: 1.5;
}

#status[data-tone="success"] {
  color: #147a3d;
}

#status[data-tone="error"] {
  color: #b00020;
}

.status-message,
.status-action {
  display: block;
}

.status-action {
  color: #5c5c5c;
}

.platform-suggestion {
  margin: 8px 0 0;
  color: #606060;
  font-size: 13px;
  font-weight: 750;
  line-height: 1.5;
}

.platform-suggestion a {
  color: var(--accent);
  font-weight: 900;
}

.preview {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 18px;
  align-items: center;
  margin-top: 22px;
  padding-top: 22px;
  border-top: 1px solid rgba(20, 20, 20, 0.1);
}

.media {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 8px;
  background: #ececea;
}

.media img,
.thumb-fallback {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.thumb-fallback {
  background: color-mix(in srgb, var(--accent) 18%, #ececea);
}

.preview-body {
  display: grid;
  gap: 14px;
  min-width: 0;
}

.preview-body p {
  margin: 0;
  font-size: 17px;
  font-weight: 800;
  line-height: 1.45;
  overflow-wrap: anywhere;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.select-wrap {
  position: relative;
}

.select-wrap::after {
  position: absolute;
  top: 50%;
  right: 18px;
  width: 10px;
  height: 10px;
  border-right: 2px solid #222;
  border-bottom: 2px solid #222;
  content: "";
  pointer-events: none;
  transform: translateY(-65%) rotate(45deg);
}

select {
  appearance: none;
  padding-right: 48px;
  font-size: 18px;
  font-weight: 800;
}

.download-button {
  width: fit-content;
  min-width: 180px;
}

.download-button[aria-disabled="true"] {
  opacity: 0.72;
  pointer-events: none;
}

.download-progress {
  min-height: 22px;
  margin: 2px 0 0;
  color: #5c5c5c;
  font-size: 14px;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.download-progress[data-tone="done"] {
  color: #147a3d;
}

.download-progress[data-tone="error"] {
  color: #b00020;
}

.services {
  margin-top: 30px;
  padding-top: 26px;
  border-top: 1px solid rgba(20, 20, 20, 0.1);
}

.services-title {
  margin: 0 0 14px;
  color: #6a6a6a;
  font-size: 13px;
  font-weight: 800;
}

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

.services-explorer {
  display: grid;
  gap: 10px;
}

.service-category {
  border-top: 1px solid rgba(20, 20, 20, 0.08);
  padding-top: 10px;
}

.service-category:first-child {
  border-top: 0;
  padding-top: 0;
}

.service-category summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 38px;
  color: #333;
  font-size: 14px;
  font-weight: 900;
  cursor: pointer;
  list-style: none;
}

.service-category summary::-webkit-details-marker {
  display: none;
}

.service-category summary::after {
  width: 8px;
  height: 8px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  content: "";
  transform: rotate(45deg);
}

.service-category[open] summary::after {
  transform: rotate(225deg);
}

.service-category-body {
  display: grid;
  gap: 16px;
  padding: 8px 0 12px;
}

.service-group h3 {
  margin: 0 0 8px;
  color: #696969;
  font-size: 12px;
  font-weight: 900;
}

.compact-services {
  margin-top: 22px;
  padding-top: 20px;
}

.svc {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 54px;
  padding: 0 14px;
  border: 1px solid rgba(20, 20, 20, 0.14);
  border-radius: 10px;
  background: #fff;
  color: #1d1d1d;
  font-size: 14px;
  font-weight: 700;
}

.svc:hover {
  border-color: rgba(20, 20, 20, 0.3);
}

.brand-logo {
  display: block;
  flex: none;
  width: 24px;
  height: 24px;
}

.brand-logo-fallback {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  background: color-mix(in srgb, var(--accent) 14%, #ececea);
  color: #303030;
  font-size: 10px;
  font-weight: 950;
}

.brand-logo-wordmark {
  border-radius: 4px;
  color: #fff;
  font-size: 7px;
  letter-spacing: 0;
}

.brand-logo-bbc {
  background: #111;
}

.brand-logo-twitcasting {
  background: #1da1f2;
  font-size: 8px;
}

.brand-logo-seventeenlive {
  background: #00b4ff;
  font-size: 9px;
}

.brand-logo-mildom {
  background: #00b900;
  font-size: 10px;
}

.svc-name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.content-panel {
  width: min(920px, 100%);
  margin: 0 auto;
  padding: 0 40px 56px;
}

.info-compact {
  border-top: 1px solid rgba(20, 20, 20, 0.08);
  padding-top: 18px;
}

.info-compact > p {
  margin: 0;
  color: #4f4f4f;
  font-size: 14px;
  line-height: 1.55;
}

.compact-details {
  margin-top: 10px;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.compact-details summary {
  display: inline-flex;
  padding: 0;
  color: var(--accent);
  font-size: 13px;
  font-weight: 850;
}

.compact-columns {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  margin-top: 14px;
}

.compact-columns h2 {
  margin: 0 0 8px;
  color: #2d2d2d;
  font-size: 14px;
  line-height: 1.3;
}

.compact-columns ul {
  display: grid;
  gap: 6px;
  margin: 0;
  padding-left: 1.2em;
  color: #606060;
  font-size: 13px;
  line-height: 1.55;
}

.faq-section {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid rgba(20, 20, 20, 0.08);
}

.faq-section h2 {
  margin: 0 0 10px;
  color: #565656;
  font-size: 14px;
  font-weight: 850;
  line-height: 1.3;
}

.faq-list {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.faq-list details {
  border: 1px solid rgba(20, 20, 20, 0.12);
  border-radius: 8px;
  background: #fff;
}

.faq-list summary {
  cursor: pointer;
  padding: 11px 13px;
  font-size: 14px;
  font-weight: 850;
  line-height: 1.45;
}

.faq-list details p {
  margin: 0;
  padding: 0 13px 13px;
  color: #494949;
  font-size: 13px;
  line-height: 1.6;
}

.legal-page {
  width: min(760px, 100%);
  margin: 0 auto;
  padding: 48px 40px;
}

.legal-page h1 {
  font-size: clamp(28px, 4.5vw, 40px);
}

.legal-page .lead {
  margin-top: 14px;
}

.legal-section {
  margin-top: 30px;
}

.legal-section h2 {
  margin: 0 0 14px;
  font-size: 22px;
}

.legal-section ul {
  display: grid;
  gap: 10px;
  margin: 0;
  padding-left: 1.2em;
  color: #3f3f3f;
  font-size: 16px;
  line-height: 1.75;
}

.contact-mail {
  margin: 8px 0 0;
}

.contact-note {
  margin: 0;
  color: #5f5f5f;
  font-size: 15px;
  line-height: 1.65;
}

.contact-mail a {
  display: inline;
  color: var(--accent);
  font-size: 15px;
  font-weight: 800;
  overflow-wrap: anywhere;
}

@media (max-width: 720px) {
  body {
    display: flex;
    flex-direction: column;
  }

  body:has(.site-menu-toggle:checked) {
    overflow: hidden;
  }

  main {
    flex: 1 0 auto;
  }

  .site-header {
    align-items: center;
    flex-direction: row;
    gap: 12px;
    min-height: 64px;
    padding: 10px 16px 10px 12px;
  }

  .brand-wordmark {
    width: 172px;
    height: 40px;
  }

  .desktop-nav,
  .desktop-language {
    display: none;
  }

  .site-menu {
    display: block;
    position: relative;
    z-index: 30;
    margin-left: auto;
  }

  .site-menu-button {
    display: inline-flex;
  }

  .site-menu-backdrop {
    position: fixed;
    inset: 0;
    z-index: 40;
    background: rgba(20, 20, 20, 0.24);
    cursor: pointer;
    opacity: 0;
    pointer-events: none;
    transition: opacity 180ms ease;
  }

  .site-menu-panel {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 50;
    display: flex;
    flex-direction: column;
    width: min(320px, 86vw);
    height: 100svh;
    max-height: 100svh;
    overflow-y: auto;
    padding: 18px 14px 16px;
    border-right: 1px solid rgba(20, 20, 20, 0.12);
    background: #fff;
    box-shadow: 18px 0 46px rgba(20, 20, 20, 0.18);
    transform: translateX(-105%);
    transition: transform 220ms cubic-bezier(0.2, 0.8, 0.2, 1);
    will-change: transform;
  }

  .site-menu-toggle:checked ~ .site-menu-backdrop {
    opacity: 1;
    pointer-events: auto;
  }

  .site-menu-toggle:checked ~ .site-menu-panel {
    transform: translateX(0);
  }

  .mobile-nav {
    display: grid;
    gap: 4px;
    overflow: visible;
    white-space: normal;
  }

  .mobile-nav .platform-menu {
    position: static;
  }

  .mobile-nav .platform-menu summary {
    justify-content: space-between;
    width: 100%;
    border-radius: 6px;
    padding: 10px 12px;
  }

  .mobile-nav .platform-menu-panel {
    position: static;
    grid-template-columns: 1fr;
    width: 100%;
    max-height: none;
    margin: 2px 0 8px;
    padding: 8px;
    border-radius: 8px;
    box-shadow: none;
  }

  .mobile-nav a {
    display: flex;
    align-items: center;
    min-height: 42px;
    border-radius: 6px;
    padding: 10px 12px;
    color: #383838;
    font-size: 14px;
  }

  .mobile-language {
    margin-top: auto;
    padding-top: 12px;
    border-top: 1px solid rgba(20, 20, 20, 0.1);
  }

  .mobile-language .language-switcher {
    width: 100%;
  }

  .mobile-language .language-switcher summary {
    justify-content: space-between;
    width: 100%;
    height: 42px;
    padding: 0 12px;
    border-radius: 6px;
  }

  .mobile-language .language-label {
    display: inline;
    font-size: 13px;
    font-weight: 800;
  }

  .mobile-language .language-menu {
    position: static;
    width: 100%;
    max-height: 260px;
    margin-top: 8px;
    box-shadow: none;
    transform: none;
  }

  .hero {
    padding: 34px 20px 20px;
  }

  .lead {
    font-size: 16px;
  }

  .download-panel {
    padding: 0 20px 38px;
  }

  .content-panel {
    padding: 0 20px 44px;
  }

  .site-footer {
    width: calc(100% - 40px);
    padding-bottom: 32px;
  }

  .input-row,
  .preview {
    grid-template-columns: 1fr;
  }

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

  .compact-columns {
    grid-template-columns: 1fr;
  }

  button,
  .download-button {
    width: 100%;
  }

  .legal-page {
    padding: 36px 20px;
  }
}
