:root {
  --primary: #f9b009;
  --primary-pressed: #c08800;
  --primary-soft: #fff8e6;

  --text-primary: #343741;
  --text-secondary: #64748b;
  --text-muted: #94a3b8;

  --background: #ffffff;
  --surface: #f8fafc;
  --border: #dce3ec;
  --border-strong: #bdc8d7;

  --success: #06af71;
  --success-soft: #e8faf4;

  --shadow-sm: 0 1px 2px rgba(52, 55, 65, 0.06), 0 2px 8px rgba(52, 55, 65, 0.04);
  --shadow-md: 0 6px 18px rgba(52, 55, 65, 0.09), 0 18px 44px rgba(52, 55, 65, 0.08);

  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue",
    system-ui, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --primary-pressed: #ffc633;
    --primary-soft: #3a2f11;

    --text-primary: #e8eaed;
    --text-secondary: #9aa0a8;
    --text-muted: #6b7178;

    --background: #16181c;
    --surface: #1e2127;
    --border: #353a43;
    --border-strong: #434954;

    --success: #2fd396;
    --success-soft: #10352a;

    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
    --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.5);
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 28px 18px 40px;
  min-height: 100vh;
  background: var(--surface);
  color: var(--text-secondary);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  display: flex;
  flex-direction: column;
  align-items: center;
}

img {
  max-width: 100%;
  height: auto;
}

.masthead {
  margin-bottom: 18px;
}

.masthead img {
  height: 30px;
  width: auto;
}

.card {
  width: 100%;
  max-width: 460px;
  padding: 28px 26px 30px;
  border: 1px solid var(--border);
  border-radius: 22px;
  background: var(--background);
  box-shadow: var(--shadow-md);
  text-align: center;
}

h1 {
  margin: 16px 0 6px;
  color: var(--text-primary);
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.025em;
  text-wrap: balance;
  overflow-wrap: break-word;
}

.meta {
  margin: 3px 0;
  color: var(--text-secondary);
  font-size: 0.96rem;
  overflow-wrap: break-word;
}

.price {
  margin: 10px 0 2px;
  color: var(--text-primary);
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin: 12px 0 0;
  padding: 5px 13px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
}

.status::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
}

.status.open {
  background: var(--success-soft);
  color: var(--success);
}

.status.closed {
  background: var(--surface);
  color: var(--text-muted);
}

.hero-logo {
  width: 92px;
  height: 92px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--surface);
  border: 1px solid var(--border);
}

.hero-photo {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: 16px;
  background: var(--surface);
  border: 1px solid var(--border);
}

.get-app {
  margin-top: 26px;
  padding-top: 22px;
  border-top: 1px solid var(--border);
}

.get-app-lead {
  margin: 0 0 16px;
  color: var(--text-primary);
  font-weight: 600;
}

.store-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

.store-badges img {
  display: block;
  height: 46px;
  width: auto;
}

.footer {
  margin-top: 22px;
  color: var(--text-muted);
  font-size: 0.85rem;
  text-align: center;
}

.footer a {
  color: var(--text-muted);
}

@media (max-width: 420px) {
  .card {
    padding: 24px 20px 26px;
    border-radius: 18px;
  }

  .store-badges img {
    height: 42px;
  }
}
