* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --primary: #f88e87;
  --primary-hover: #ed7d76;
  --primary-soft: rgba(248, 142, 135, 0.16);
  --background: #f8f8f8;
  --surface: #ffffff;
  --surface-secondary: #f7f7f8;
  --text: #141414;
  --text-secondary: #737373;
  --border: rgba(0, 0, 0, 0.1);
  --shadow: 0 18px 55px rgba(0, 0, 0, 0.14);
}

@media (prefers-color-scheme: dark) {
  :root {
    --background: #1c1c1e;
    --surface: #242424;
    --surface-secondary: #2c2c2e;
    --text: #ffffff;
    --text-secondary: #a4a4a8;
    --border: rgba(255, 255, 255, 0.12);
    --shadow: 0 18px 55px rgba(0, 0, 0, 0.34);
  }
}

html {
  min-height: 100%;
  background: var(--background);
}

body {
  min-height: 100vh;
  color: var(--text);
  background:
    radial-gradient(circle at 20% 5%, var(--primary-soft), transparent 28rem),
    var(--background);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

[hidden] {
  display: none !important;
}

.page-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(0, 25rem);
  gap: 1rem;
  justify-content: center;
  align-content: center;
  padding: 2rem;
}

.card,
.testing-card {
  background: var(--surface);
  border: 0.5px solid var(--border);
  box-shadow: var(--shadow);
}

.card {
  width: 100%;
  border-radius: 1.25rem;
  padding: 2rem;
}

.brand-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.app-icon {
  width: 4.25rem;
  height: 4.25rem;
  border-radius: 1.1rem;
  object-fit: cover;
  box-shadow: 0 5px 16px rgba(0, 0, 0, 0.14);
}

.environment-badge,
.eyebrow {
  color: var(--primary-hover);
  font-size: 0.72rem;
  line-height: 1rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.environment-badge {
  border-radius: 999px;
  background: var(--primary-soft);
  padding: 0.35rem 0.65rem;
}

h1 {
  font-size: 1.5rem;
  line-height: 1.85rem;
  font-weight: 600;
  letter-spacing: -0.025em;
  margin-bottom: 0.65rem;
}

h2 {
  font-size: 1rem;
  line-height: 1.35rem;
  font-weight: 600;
  margin-top: 0.25rem;
}

.subtitle,
.note,
.testing-description {
  color: var(--text-secondary);
}

.subtitle {
  font-size: 0.925rem;
  line-height: 1.45rem;
  margin-bottom: 1.5rem;
}

.actions,
.testing-actions {
  display: grid;
  gap: 0.75rem;
}

.button,
.text-button {
  text-decoration: none;
  transition: opacity 160ms ease, background-color 160ms ease, transform 160ms ease;
}

.button {
  min-height: 3.5rem;
  border: 1px solid transparent;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  padding: 0.6rem 1rem;
  color: var(--text);
  font-size: 0.95rem;
  font-weight: 600;
  text-align: center;
}

.button:hover,
.text-button:hover {
  opacity: 0.84;
}

.button:active,
.text-button:active {
  transform: translateY(1px);
}

.button:focus-visible,
.text-button:focus-visible {
  outline: 3px solid var(--primary-soft);
  outline-offset: 3px;
}

.button-primary {
  color: #ffffff;
  background: var(--primary);
}

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

.button-secondary {
  border-color: var(--border);
  background: var(--surface-secondary);
}

.store-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem;
}

.store-actions .button {
  border-radius: 0.9rem;
  justify-content: flex-start;
  text-align: left;
}

.store-actions small,
.store-actions strong {
  display: block;
}

.store-actions small {
  color: var(--text-secondary);
  font-size: 0.65rem;
  font-weight: 500;
  line-height: 0.9rem;
}

.store-actions strong {
  font-size: 0.82rem;
  line-height: 1.05rem;
}

.platform-mark {
  width: 1.25rem;
  color: var(--text);
  font-size: 1.15rem;
  text-align: center;
}

.platform-mark-play {
  font-size: 0.95rem;
}

.note {
  font-size: 0.78rem;
  line-height: 1.2rem;
  margin-top: 1.25rem;
  text-align: center;
}

.status-panel .button {
  width: 100%;
}

.page-shell.has-testing-tools {
  grid-template-columns: minmax(0, 25rem) minmax(0, 17rem);
}

.testing-card {
  align-self: center;
  border-radius: 1rem;
  padding: 1.25rem;
}

.testing-description {
  font-size: 0.8rem;
  line-height: 1.2rem;
  margin-top: 0.4rem;
}

.testing-group {
  margin-top: 1rem;
}

.testing-platform {
  color: var(--text-secondary);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.testing-actions {
  margin-top: 0.45rem;
}

.text-button {
  min-height: 2.75rem;
  display: flex;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  color: var(--text);
  background: var(--surface-secondary);
  padding: 0.65rem 0.8rem;
  font-size: 0.82rem;
  font-weight: 600;
}

@media (max-width: 47rem) {
  .page-shell,
  .page-shell.has-testing-tools {
    grid-template-columns: minmax(0, 25rem);
    align-content: start;
    padding: 1.25rem;
  }

  .testing-card {
    width: 100%;
  }
}

@media (max-width: 25rem) {
  .page-shell {
    padding: 0.75rem;
  }

  .card {
    padding: 1.4rem;
  }

  .store-actions {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .button,
  .text-button {
    transition: none;
  }
}
