:root {
  color-scheme: dark;
  --phlix-orange: #ff8a00;
  --phlix-coral: #ff5e62;
  --phlix-pink: #ff2dbb;
  --phlix-purple: #7b3fff;
  --phlix-ink: #0d0d16;
  --text: #ffffff;
  --muted: #d4cce3;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--phlix-ink);
  color: var(--text);
}

a {
  color: inherit;
}

.site-shell {
  min-height: 100vh;
}

.hero {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  background-image:
    linear-gradient(180deg, rgba(5, 2, 15, 0.86) 0%, rgba(22, 6, 46, 0.5) 38%, rgba(5, 2, 15, 0.96) 100%),
    radial-gradient(circle at 50% 18%, rgba(123, 63, 255, 0.42), rgba(13, 13, 22, 0) 42%),
    url("assets/concert-bg-portrait.jpg");
  background-position: center;
  background-size: cover;
}

.hero::after {
  position: absolute;
  inset: auto 0 0;
  height: 28vh;
  pointer-events: none;
  content: "";
  background: linear-gradient(180deg, rgba(13, 13, 22, 0), rgba(13, 13, 22, 0.95));
}

.hero__content {
  position: relative;
  z-index: 1;
  display: grid;
  min-height: 100vh;
  width: min(100%, 520px);
  margin: 0 auto;
  padding: 28px 22px 34px;
  align-content: space-between;
  gap: 34px;
}

.brand {
  display: flex;
  justify-content: center;
}

.brand__logo {
  width: min(210px, 58vw);
  height: auto;
  filter: drop-shadow(0 16px 24px rgba(0, 0, 0, 0.5));
}

.hero__copy {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.app-icon {
  width: 92px;
  height: 92px;
  margin-bottom: 18px;
  border-radius: 22px;
  box-shadow:
    0 22px 46px rgba(0, 0, 0, 0.48),
    0 0 44px rgba(255, 45, 187, 0.32);
}

.eyebrow {
  margin: 0 0 10px;
  color: #ffd7ef;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  font-size: clamp(56px, 18vw, 94px);
  line-height: 0.9;
  font-weight: 950;
  letter-spacing: 0;
  text-shadow: 0 18px 34px rgba(0, 0, 0, 0.55);
}

.lead {
  max-width: 420px;
  margin: 20px 0 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.45;
  font-weight: 700;
}

.download-panel {
  display: grid;
  gap: 14px;
}

.download-button {
  display: flex;
  align-items: center;
  min-height: 76px;
  padding: 13px 20px;
  gap: 15px;
  overflow: hidden;
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 22px;
  background:
    linear-gradient(135deg, rgba(255, 138, 0, 0.98), rgba(255, 94, 98, 0.95) 42%, rgba(255, 45, 187, 0.95) 100%);
  box-shadow:
    0 18px 42px rgba(0, 0, 0, 0.42),
    0 0 36px rgba(255, 94, 98, 0.22);
  transform: translateZ(0);
}

.download-button--android {
  background:
    linear-gradient(135deg, rgba(123, 63, 255, 0.98), rgba(255, 45, 187, 0.92) 52%, rgba(255, 138, 0, 0.96) 100%);
}

.download-button[aria-disabled="true"] {
  cursor: default;
}

.download-button__icon {
  display: grid;
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
  place-items: center;
}

.download-button__icon svg {
  display: block;
  width: 34px;
  height: 34px;
  fill: currentColor;
}

.download-button__small,
.download-button__label {
  display: block;
  letter-spacing: 0;
}

.download-button__small {
  font-size: 12px;
  line-height: 1.1;
  font-weight: 800;
  opacity: 0.86;
}

.download-button__label {
  margin-top: 3px;
  font-size: 23px;
  line-height: 1;
  font-weight: 950;
}

.qr-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 132px;
  align-items: center;
  padding: 18px 18px 18px 20px;
  gap: 18px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.055)),
    linear-gradient(135deg, rgba(255, 138, 0, 0.16), rgba(255, 45, 187, 0.12) 52%, rgba(123, 63, 255, 0.14));
  box-shadow:
    0 18px 42px rgba(0, 0, 0, 0.34),
    inset 0 1px 0 rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(16px);
}

.qr-panel img {
  display: block;
  width: 132px;
  height: 132px;
  filter:
    drop-shadow(0 12px 28px rgba(0, 0, 0, 0.38))
    drop-shadow(0 0 18px rgba(255, 255, 255, 0.1));
}

.qr-panel__title {
  margin: 0 0 5px;
  color: #ffffff;
  font-size: 19px;
  line-height: 1.15;
  font-weight: 950;
}

.qr-panel__text {
  max-width: 260px;
  margin: 0 0 12px;
  color: rgba(255, 255, 255, 0.74);
  font-size: 13px;
  line-height: 1.38;
  font-weight: 750;
}

.qr-panel a {
  color: rgba(255, 255, 255, 0.82);
  font-size: 13px;
  font-weight: 800;
  overflow-wrap: anywhere;
  text-decoration: none;
}

.qr-panel a:focus-visible,
.qr-panel a:hover {
  color: #ffffff;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.site-footer {
  text-align: center;
}

.site-footer a {
  color: rgba(255, 255, 255, 0.78);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
  text-decoration: none;
}

.site-footer a:focus-visible,
.site-footer a:hover {
  color: #ffffff;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.install-shell {
  display: grid;
  min-height: 100vh;
  padding: 24px;
  place-items: center;
  background-image:
    linear-gradient(180deg, rgba(5, 2, 15, 0.86) 0%, rgba(22, 6, 46, 0.55) 42%, rgba(5, 2, 15, 0.98) 100%),
    radial-gradient(circle at 50% 18%, rgba(255, 45, 187, 0.34), rgba(13, 13, 22, 0) 42%),
    url("assets/concert-bg-portrait.jpg");
  background-position: center;
  background-size: cover;
}

.install-card {
  width: min(100%, 460px);
  text-align: center;
}

.install-logo {
  width: min(220px, 64vw);
  height: auto;
  margin-bottom: 34px;
  filter: drop-shadow(0 16px 24px rgba(0, 0, 0, 0.5));
}

.install-card h1 {
  font-size: clamp(38px, 12vw, 64px);
  line-height: 0.98;
}

.install-lead {
  margin-right: auto;
  margin-left: auto;
}

.install-action {
  justify-content: center;
  margin-top: 28px;
  font-size: 20px;
  font-weight: 950;
}

.install-note {
  margin: 22px auto 0;
  max-width: 380px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 13px;
  line-height: 1.45;
  font-weight: 700;
}

.install-fallback {
  display: inline-flex;
  margin-top: 16px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 13px;
  font-weight: 900;
  text-decoration: none;
}

.install-fallback:focus-visible,
.install-fallback:hover {
  color: #ffffff;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.legal-page {
  background:
    linear-gradient(180deg, rgba(5, 2, 15, 0.96), rgba(13, 13, 22, 1)),
    radial-gradient(circle at 50% 0%, rgba(123, 63, 255, 0.28), rgba(13, 13, 22, 0) 42%);
}

.legal-shell {
  width: min(100%, 980px);
  margin: 0 auto;
  padding: 28px 18px 56px;
}

.legal-hero {
  padding: 10px 0 30px;
  text-align: center;
}

.legal-brand {
  display: inline-flex;
  margin-bottom: 30px;
}

.legal-brand img {
  width: min(190px, 58vw);
  height: auto;
}

.legal-eyebrow {
  margin: 0 0 10px;
  color: #ffd7ef;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.legal-hero h1 {
  max-width: 780px;
  margin: 0 auto;
  font-size: clamp(34px, 7vw, 60px);
  line-height: 1;
}

.legal-subtitle {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 18px;
  font-weight: 800;
}

.language-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 24px;
  gap: 10px;
}

.language-links a {
  min-width: 132px;
  padding: 11px 16px;
  color: #ffffff;
  font-weight: 900;
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
}

.language-links a:focus-visible,
.language-links a:hover {
  border-color: rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.14);
}

.legal-document {
  margin-top: 24px;
  padding: clamp(22px, 4vw, 46px);
  color: #16121d;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.42);
}

.legal-document + .legal-document {
  margin-top: 28px;
}

.legal-document h2,
.legal-document h3,
.legal-document h4,
.legal-document p,
.legal-document li,
.legal-document dt,
.legal-document dd,
.legal-document th,
.legal-document td {
  letter-spacing: 0;
}

.legal-document h2 {
  margin: 0 0 18px;
  color: #0b2545;
  font-size: clamp(26px, 5vw, 42px);
  line-height: 1.08;
}

.legal-document h3 {
  margin: 34px 0 12px;
  color: #1f4d78;
  font-size: 24px;
  line-height: 1.18;
}

.legal-document h4 {
  margin: 24px 0 8px;
  color: #2e5e8a;
  font-size: 18px;
  line-height: 1.22;
}

.legal-document p,
.legal-document li,
.legal-document dd,
.legal-document td {
  font-size: 16px;
  line-height: 1.62;
}

.legal-document p {
  margin: 0 0 13px;
}

.legal-document a {
  color: #6d28d9;
  font-weight: 800;
}

.legal-document ul,
.legal-document ol {
  margin: 0 0 16px;
  padding-left: 24px;
}

.legal-document li + li {
  margin-top: 6px;
}

.legal-meta {
  display: grid;
  margin: 0 0 26px;
  border: 1px solid #d9e2ee;
  border-radius: 8px;
  overflow: hidden;
}

.legal-meta div {
  display: grid;
  grid-template-columns: minmax(150px, 0.42fr) minmax(0, 1fr);
  border-bottom: 1px solid #d9e2ee;
}

.legal-meta div:last-child {
  border-bottom: 0;
}

.legal-meta dt,
.legal-meta dd {
  margin: 0;
  padding: 12px 14px;
}

.legal-meta dt {
  font-weight: 900;
  background: #eef3f8;
}

.legal-document table {
  width: 100%;
  margin: 16px 0 18px;
  border-collapse: collapse;
  table-layout: fixed;
}

.legal-document th,
.legal-document td {
  padding: 10px;
  vertical-align: top;
  border: 1px solid #cbd5e1;
}

.legal-document th {
  color: #0b2545;
  font-weight: 900;
  text-align: left;
  background: #e8eef5;
}

.legal-document td {
  overflow-wrap: anywhere;
}

@media (max-width: 640px) {
  .qr-panel {
    grid-template-columns: minmax(0, 1fr) 112px;
    padding: 16px;
    gap: 14px;
  }

  .qr-panel img {
    width: 112px;
    height: 112px;
  }

  .legal-meta div {
    grid-template-columns: 1fr;
  }

  .legal-meta dt {
    padding-bottom: 4px;
  }

  .legal-meta dd {
    padding-top: 4px;
  }

  .legal-document table,
  .legal-document thead,
  .legal-document tbody,
  .legal-document tr,
  .legal-document th,
  .legal-document td {
    display: block;
  }

  .legal-document thead {
    display: none;
  }

  .legal-document tr {
    border: 1px solid #cbd5e1;
  }

  .legal-document tr + tr {
    margin-top: 12px;
  }

  .legal-document td {
    border: 0;
    border-bottom: 1px solid #e5e7eb;
  }

  .legal-document td:last-child {
    border-bottom: 0;
  }
}

@media (min-width: 740px) {
  .hero {
    background-image:
      linear-gradient(90deg, rgba(5, 2, 15, 0.94) 0%, rgba(22, 6, 46, 0.64) 47%, rgba(5, 2, 15, 0.72) 100%),
      radial-gradient(circle at 31% 24%, rgba(123, 63, 255, 0.45), rgba(13, 13, 22, 0) 38%),
      url("assets/concert-bg-landscape.jpg");
  }

  .hero__content {
    width: min(100%, 1120px);
    grid-template-columns: minmax(0, 560px);
    justify-content: start;
    padding: 38px 56px 48px;
  }

  .brand,
  .hero__copy {
    align-items: flex-start;
    justify-content: flex-start;
    text-align: left;
  }

  .download-panel {
    grid-template-columns: repeat(2, minmax(0, 236px));
  }

  .qr-panel {
    width: min(100%, 430px);
  }

  .site-footer {
    grid-column: 1 / -1;
    text-align: left;
  }
}
