:root {
  --bg: #0f1117;
  --card: #171a23;
  --card-light: #202432;
  --text: #f4f6fb;
  --muted: #a8afc3;
  --accent: #7c5cff;
  --border: rgba(255, 255, 255, 0.1);
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

body,
button,
a,
h1,
h2,
h3,
p,
span,
strong,
th,
td {
  white-space: pre-line;
}

body {
  margin: 0;
  font-family: Inter, Arial, sans-serif;
  background: radial-gradient(circle at top, #1d2140 0%, var(--bg) 45%);
  color: var(--text);
  line-height: 1.5;
}

.hero {
  text-align: center;
  padding: 64px 20px 28px;
}

h1 {
  margin: 0;
  font-size: clamp(2.5rem, 7vw, 5rem);
  letter-spacing: -0.06em;
}

.subtitle {
  color: var(--muted);
  margin-top: 14px;
}

main {
  width: min(1100px, calc(100% - 32px));
  margin: 0 auto;
}

.alphabet {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(10px);
}

.letter {
  min-width: 38px;
  height: 38px;
  padding: 0 12px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--card);
  color: var(--text);
  cursor: pointer;
  transition: 0.2s ease;
}

.letter:hover:not(:disabled),
.letter.active {
  background: var(--accent);
  border-color: var(--accent);
  transform: translateY(-2px);
}

.letter:disabled {
  opacity: 0.25;
  cursor: not-allowed;
}

.app-header {
  text-align: center;
  padding: 46px 0 24px;
}

.app-logo-shell {
  width: min(250px, 55vw);
  aspect-ratio: 1;
  margin: 0 auto 24px;
  padding: 1px;
  border: 5px solid var(--border);
  border-radius: 55px;
  background: rgba(255, 255, 255, 0.04);
  display: grid;
  place-items: center;
}

.app-logo {
  width: 100%;
  height: 100%;
  object-fit:fill;
  display:flexbox;
  border-radius: 45px;
}

.app-header h2 {
  font-size: clamp(2rem, 6vw, 4rem);
  margin: 0;
}

.app-header p {
  color: var(--muted);
  margin-top: 10px;
  font-size: 1.05rem;
}

.content-block {
  display: grid;
  gap: 24px;
  align-items: center;
  margin: 24px 0;
}

.content-block.image-left {
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
}

.content-block.image-right {
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
}

.image-card {
  position: relative;
  width: min(100%, 280px);
  aspect-ratio: 9 / 19.5;
  margin: 0 auto;
  border: 1px solid var(--border);
  border-radius: 28px;
  background: linear-gradient(135deg, var(--card-light), #2c3150);
  overflow: hidden;
}

.text-card {
  min-height: 300px;
  border: 1px solid var(--border);
  border-radius: 28px;
  background: var(--card);
  overflow: hidden;
}

.app-image {
  width: 100%;
  height: 100%;
  min-height: 100%;
  object-fit: cover;
  display: block;
}

.image-placeholder {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  text-align: center;
}

.text-card {
  padding: 42px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.text-card h3 {
  margin: 0 0 14px;
  font-size: 1.7rem;
  text-align: center;
}

.text-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
  text-align: justify;
  text-wrap: pretty;
}

.summary-panel {
  margin: 24px 0 0;
}

.summary-table-shell {
  width: 100%;
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: 28px;
  background: var(--card);
}

.summary-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 680px;
}

.summary-table th,
.summary-table td {
  padding: 22px 24px;
  text-align: center;
  border-bottom: 1px solid var(--border);
}

.summary-table thead th {
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background: rgba(255, 255, 255, 0.03);
}

.summary-table tbody td {
  color: var(--text);
  font-size: 1rem;
  vertical-align: middle;
}

.summary-table tbody tr:last-child td {
  border-bottom: none;
}

.summary-logo-shell {
  width: 68px;
  height: 68px;
  margin: 0 auto;
  border-radius: 18px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.05);
  display: grid;
  place-items: center;
  overflow: hidden;
}

.summary-logo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.summary-bool {
  margin: 0 auto;
  display: inline-block;
  font-size: 0.95rem;
  font-weight: 400;
  color: var(--text);
}

.store-links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin: 24px 0 0;
}

.store-card {
  min-height: 240px;
  padding: 28px 30px;
  border: 1px solid var(--border);
  border-radius: 28px;
  background: var(--card);
  color: var(--text);
  text-decoration: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  text-align: center;
  transition: 0.2s ease;
}

.store-card:hover:not(.is-disabled) {
  transform: translateY(-2px);
  border-color: var(--accent);
  background: var(--card-light);
}

.store-card.is-disabled {
  opacity: 0.55;
  cursor: default;
  pointer-events: none;
}

.store-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.store-icon-shell {
  width: 72px;
  height: 72px;
  border-radius: 20px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.06);
  display: grid;
  place-items: center;
}

.store-icon {
  width: 72px;
  height: 72px;
  display: block;
}

.store-icon-apple {
  color: var(--text);
}

.store-label {
  color: var(--text);
  font-size: 1.2rem;
  font-weight: 700;
}

.store-body {
  display: grid;
  place-items: center;
  min-height: 136px;
}

.store-qr-shell {
  width: 136px;
  height: 136px;
  border-radius: 0px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  display: grid;
  place-items: center;
}

.store-qr {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  background: #fff;
}

.store-status {
  padding: 12px 16px;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.4;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  text-align: center;
}

.footer-panel {
  padding: 54px 20px 70px;
}

.footer-row {
  width: min(1100px, calc(100% - 32px));
  margin: 0 auto;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
}

.footer-action,
.privacy-action {
  color: var(--text);
  text-decoration: none;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--card);
  transition: 0.2s ease;
}

.footer-action,
.privacy-action,
.support-option,
.support-cancel {
  min-height: 52px;
  padding: 14px 22px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  font: inherit;
  text-decoration: none;
  text-align: center;
  cursor: pointer;
  transition: 0.2s ease;
}

.footer-action:hover,
.privacy-action:hover,
.support-option:hover,
.support-cancel:hover {
  background: var(--accent);
  border-color: var(--accent);
}

.privacy-action {
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding-inline: 24px;
}

.footer-eyebrow {
  margin: 0;
  color: var(--accent);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.support-dialog {
  width: min(460px, calc(100% - 24px));
  padding: 0;
  border: none;
  background: transparent;
}

.support-dialog::backdrop {
  background: rgba(8, 10, 16, 0.7);
  backdrop-filter: blur(6px);
}

.support-dialog-card {
  margin: 0;
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: 28px;
  background: var(--card);
  display: grid;
  gap: 18px;
}

.support-dialog-header h3 {
  margin: 8px 0 0;
  font-size: 1.5rem;
}

.support-options {
  display: grid;
  gap: 12px;
}

.support-option {
  display: block;
}

@media (max-width: 980px) {
  main {
    width: min(100%, calc(100% - 28px));
  }

  .content-block.image-left,
  .content-block.image-right {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr);
  }

  .text-card {
    padding: 32px;
  }

  .text-card h3 {
    font-size: 1.45rem;
  }

  .summary-table th,
  .summary-table td {
    padding: 16px 14px;
  }

  .store-card {
    min-height: 220px;
    padding: 24px;
  }
}

@media (max-width: 760px) {
  body {
    font-size: 16px;
  }

  .hero {
    padding: 44px 16px 18px;
  }

  h1 {
    font-size: clamp(2.2rem, 12vw, 3.5rem);
  }

  .subtitle {
    max-width: 28ch;
    margin: 12px auto 0;
    font-size: 0.98rem;
    line-height: 1.5;
  }

  main {
    width: min(100%, calc(100% - 20px));
  }

  .alphabet {
    gap: 10px;
    padding: 14px;
    border-radius: 18px;
  }

  .letter {
    min-width: 42px;
    height: 42px;
    padding: 0 10px;
    font-size: 0.95rem;
  }

  .app-header {
    padding: 32px 0 18px;
  }

  .app-logo-shell {
    width: min(168px, 50vw);
    margin-bottom: 16px;
    border-radius: 36px;
  }

  .app-logo {
    border-radius: 30px;
  }

  .app-header h2 {
    font-size: clamp(1.8rem, 10vw, 2.6rem);
  }

  .app-header p {
    max-width: 24ch;
    margin: 8px auto 0;
    font-size: 0.98rem;
    line-height: 1.55;
  }

  .content-block {
    gap: 16px;
    margin: 18px 0;
  }

  .content-block.image-left,
  .content-block.image-right {
    grid-template-columns: 1fr;
  }

  .image-card {
    width: min(100%, 280px);
    border-radius: 24px;
  }

  .text-card {
    min-height: auto;
    padding: 22px 18px;
    border-radius: 24px;
  }

  .text-card h3 {
    margin-bottom: 12px;
    font-size: 1.28rem;
    text-align: left;
  }

  .text-card p {
    font-size: 0.98rem;
    line-height: 1.7;
    text-align: justify;
  }

  .image-right .text-card {
    order: 2;
  }

  .image-right .image-card {
    order: 1;
  }

  .summary-panel {
    margin-top: 18px;
  }

  .summary-table-shell {
    overflow: visible;
    padding: 10px;
    border-radius: 24px;
  }

  .summary-table {
    min-width: 0;
    border-collapse: separate;
    border-spacing: 0;
  }

  .summary-table thead {
    display: none;
  }

  .summary-table tbody,
  .summary-table tr {
    display: block;
  }

  .summary-table tbody tr {
    border: 1px solid var(--border);
    border-radius: 20px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.02);
  }

  .summary-table tbody td {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 14px 16px;
    font-size: 0.96rem;
    text-align: right;
  }

  .summary-table tbody td::before {
    content: attr(data-label);
    color: var(--muted);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    text-align: left;
  }

  .summary-table tbody td:first-child {
    justify-content: center;
    padding-top: 18px;
    padding-bottom: 18px;
  }

  .summary-table tbody td:first-child::before {
    display: none;
  }

  .summary-logo-shell {
    width: 78px;
    height: 78px;
  }

  .store-links {
    grid-template-columns: 1fr;
    gap: 16px;
    margin-top: 18px;
  }

  .store-card {
    min-height: auto;
    padding: 22px 18px;
    border-radius: 24px;
    gap: 16px;
  }

  .store-label {
    font-size: 1.08rem;
  }

  .store-body {
    min-height: 112px;
  }

  .store-qr-shell {
    width: 120px;
    height: 120px;
  }

  .store-status {
    font-size: 0.82rem;
    letter-spacing: 0.06em;
  }

  .footer-panel {
    padding: 28px 14px 46px;
  }

  .footer-row {
    width: 100%;
    gap: 12px;
  }

  .footer-action,
  .privacy-action {
    width: 100%;
    justify-content: center;
    padding: 14px 16px;
    font-size: 0.96rem;
  }

  .support-dialog {
    width: calc(100% - 16px);
  }

  .support-dialog-card {
    padding: 20px;
    gap: 14px;
    border-radius: 22px;
  }

  .support-dialog-header h3 {
    font-size: 1.25rem;
  }
}

@media (max-width: 440px) {
  .alphabet {
    gap: 8px;
    padding: 12px 10px;
  }

  .letter {
    min-width: 38px;
    height: 38px;
    font-size: 0.88rem;
  }

  .text-card {
    padding: 20px 16px;
  }

  .text-card h3 {
    font-size: 1.16rem;
  }

  .text-card p {
    font-size: 0.94rem;
  }

  .summary-table tbody td {
    padding: 12px 14px;
    font-size: 0.92rem;
  }

  .store-card {
    padding: 18px 16px;
  }
}
