.showcase {
  background: var(--bg);
}

.site-shell {
  width: min(1120px, calc(100% - 64px));
  margin-inline: auto;
}

.showcase-header {
  display: flex;
  align-items: center;
  gap: 32px;
  min-height: 104px;
  border-bottom: 1px solid var(--border);
}

.company-link {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-right: auto;
  color: var(--text);
  font-size: 1.2rem;
  font-weight: 750;
  text-decoration: none;
  min-width: 0;
}

.company-link img {
  display: block;
  width: 76px;
  height: 76px;
  border-radius: 12px;
  flex-shrink: 0;
}

.showcase-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
}

.showcase-footer a {
  color: var(--text);
  text-decoration: none;
}

.showcase-footer a:hover {
  text-decoration: underline;
}

.showcase-header .language-switch {
  margin: 0;
  border: 0;
  border-left: 1px solid var(--border);
  border-radius: 0;
  padding-left: 20px;
  background: transparent;
}

.showcase-header .language-switch a[aria-current="page"] {
  background: transparent;
  color: var(--accent-strong);
  text-decoration: underline;
  text-underline-offset: 6px;
}

.intro-section {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  align-items: center;
  gap: 32px;
  padding-block: clamp(48px, 7vw, 88px);
}

.showcase h1 {
  font-size: clamp(2.3rem, 5vw, 4.3rem);
  white-space: normal;
  line-height: 1.06;
  text-wrap: balance;
}

.showcase h2 {
  font-size: clamp(1.65rem, 3.4vw, 2.65rem);
  letter-spacing: -0.035em;
  margin: 0 0 24px;
}

.showcase h3 {
  line-height: 1.25;
}

.showcase p {
  color: var(--muted);
}

.showcase .eyebrow {
  font-size: 0.75rem;
  margin: 0 0 18px;
}

.intro {
  font-size: clamp(1.1rem, 2.1vw, 1.45rem);
  line-height: 1.5;
  max-width: 34em;
}

.back-link a {
  display: inline-block;
  padding-block: 10px;
  font-weight: 650;
}

.app-showcase,
.product-section {
  padding-block: 8px 40px;
}

.app-showcase {
  padding-top: 40px;
}

.featured-app {
  display: grid;
  grid-template-columns: minmax(0, 1.8fr) minmax(0, 1fr);
  border: 1px solid var(--border);
  background: color-mix(in srgb, var(--accent) 5%, var(--bg));
  border-radius: 20px;
  overflow: hidden;
}

.featured-content {
  padding: clamp(24px, 4vw, 40px);
}

.app-heading {
  display: flex;
  align-items: center;
  gap: 24px;
}

.app-icon {
  width: 112px;
  height: 112px;
  object-fit: contain;
  border-radius: 24px;
  flex: 0 0 auto;
}

.app-heading h1 {
  color: var(--text);
  line-height: 1.25;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  letter-spacing: -0.035em;
  margin: 0 0 8px;
}

.app-heading .eyebrow {
  margin-bottom: 8px;
}

.app-subtitle {
  margin: 0;
}

.featured-content > p {
  margin-block: 24px;
  font-size: 1.1rem;
}

.benefits {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 0;
  margin: 24px 0 28px;
  list-style: none;
}

.benefits li {
  padding: 9px 14px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
  font-size: 0.9rem;
}

.button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 24px;
  padding: 14px 24px;
  min-height: 48px;
  border-radius: 12px;
  background: var(--accent-strong);
  color: var(--bg);
  font-weight: 700;
  text-decoration: none;
}

.button:hover {
  background: var(--accent);
}

.store-link {
  display: block;
  width: fit-content;
  margin-top: 12px;
  padding-block: 10px;
  color: #0154df;
  font-size: 1.125rem;
  font-weight: 650;
  text-decoration: underline;
}

@media (prefers-color-scheme: dark) {
  .store-link {
    color: #6cafff;
  }
}

.game-links {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 32px;
  background: var(--accent-strong);
  color: var(--bg);
}

.game-links p,
.game-links .eyebrow {
  color: inherit;
}

.game-links a {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding-block: 18px;
  color: inherit;
  border-bottom: 1px solid currentColor;
  font-size: 1.35rem;
  font-weight: 650;
  text-decoration: none;
}

.game-links a:hover span:first-child {
  text-decoration: underline;
}

.game-links p:last-child {
  margin-bottom: 0;
  font-size: 0.95rem;
}

.statement {
  text-align: center;
  padding-block: 16px 40px;
}

.statement h2 {
  margin-bottom: 8px;
  font-size: clamp(1.5rem, 3vw, 2rem);
}

.statement p {
  margin: 0;
  font-size: 1.1rem;
}

.product-icon {
  width: min(100%, 280px);
  height: auto;
  justify-self: center;
  border-radius: 50px;
}

.mode-intro {
  grid-template-columns: 1fr;
  align-items: start;
  padding-top: 32px;
}

.screenshot-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  margin-top: 24px;
}

.store-screenshot {
  min-width: 0;
  margin: 0;
}

.store-screenshot a,
.store-screenshot img {
  display: block;
  width: 100%;
  border-radius: 16px;
}

.store-screenshot img {
  height: auto;
  border: 1px solid var(--border);
}

.store-screenshot figcaption {
  margin-top: 12px;
  color: var(--muted);
  font-size: 0.9rem;
}

.store-screenshot h3 {
  margin-bottom: 8px;
}

.store-screenshot p {
  margin: 0;
}

html.screenshot-open {
  overflow: hidden;
}

.screenshot-dialog {
  width: min(900px, calc(100% - 24px));
  max-width: none;
  max-height: 90vh;
  max-height: 90dvh;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--dialog-bg);
  color: var(--text);
  overscroll-behavior: contain;
}

.screenshot-dialog::backdrop {
  background: rgb(0 0 0 / 75%);
}

.screenshot-dialog-heading {
  position: sticky;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 16px;
  background: var(--dialog-bg);
  border-bottom: 1px solid var(--border);
}

.screenshot-dialog-heading h2 {
  margin: 0;
  font-size: 1.1rem;
  overflow-wrap: anywhere;
}

.screenshot-dialog button {
  flex-shrink: 0;
  width: 1.5em;
  height: 1.5em;
  min-width: 48px;
  min-height: 48px;
  padding: 0;
  border: 1px solid var(--control-border);
  border-radius: 50%;
  background: var(--surface-strong);
  color: var(--text);
  font: inherit;
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
}

.screenshot-dialog button:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

.screenshot-dialog > img {
  display: block;
  width: 100%;
  height: auto;
}

.mode-navigation {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
  margin-bottom: 32px;
}

.mode-navigation a {
  padding-block: 10px;
  font-weight: 650;
}

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

.mode-grid article,
.feature-grid article {
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--surface);
}

.mode-grid article {
  border-top: 4px solid var(--accent);
}

.mode-grid h3,
.feature-grid h3 {
  margin: 0 0 12px;
  font-size: 1.2rem;
}

.mode-grid p,
.feature-grid p {
  margin: 0;
}

.privacy-note {
  padding: 28px;
  border-radius: 16px;
  background: color-mix(in srgb, var(--accent) 7%, var(--bg));
}

.privacy-note h2 {
  font-size: 1.5rem;
  margin-bottom: 12px;
}

.privacy-note a {
  display: inline-block;
  padding-block: 8px;
  margin-right: 24px;
}

.contact-section {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 32px;
  padding-block: 32px;
  border-top: 1px solid var(--border);
}

.contact-section .eyebrow {
  margin-bottom: 8px;
}

.contact-section h2 {
  font-size: 1.4rem;
  margin-bottom: 0;
}

.contact-section > a {
  padding-block: 12px;
}

.showcase-footer {
  justify-content: space-between;
  gap: 16px 32px;
  padding: 22px 0 max(24px, env(safe-area-inset-bottom));
  border-top: 1px solid var(--border);
  text-align: left;
  font-size: 0.8rem;
}

.showcase-footer nav {
  gap: 8px 18px;
}

.showcase a:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 5px;
}

.skip-link {
  position: absolute;
  top: 8px;
  left: 16px;
  transform: translateY(-200%);
  z-index: 10;
  padding: 12px 20px;
  background: var(--surface-strong);
}

.skip-link:focus {
  transform: translateY(0);
}

.showcase section[id],
.showcase article[id] {
  scroll-margin-top: 24px;
}

@media (max-width: 800px) {
  .site-shell {
    width: calc(100% - 40px);
  }

  .featured-app {
    grid-template-columns: 1fr;
  }

  .game-links {
    padding: 24px;
  }

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

@media (max-width: 560px) {
  .site-shell {
    width: calc(100% - 32px);
  }

  .showcase-header {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 0 12px;
    padding-bottom: 12px;
  }

  .company-link {
    grid-column: 1 / -1;
    font-size: 1.05rem;
    margin-right: 0;
  }

  .company-link img {
    width: 64px;
    height: 64px;
  }

  .showcase-header .language-switch {
    grid-column: 2;
    padding-left: 8px;
  }

  .intro-section {
    grid-template-columns: 1fr;
    gap: 28px;
    padding-block: 40px;
  }

  .app-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 18px;
  }

  .app-icon {
    width: 88px;
    height: 88px;
  }

  .button {
    width: 100%;
    gap: 12px;
    padding-inline: 16px;
  }

  .mode-grid,
  .feature-grid,
  .screenshot-grid {
    grid-template-columns: 1fr;
  }

  .product-icon {
    width: 160px;
    border-radius: 32px;
    justify-self: start;
  }
}
