/* Matches the app's dark "night garage" theme (Downshift/Theme/AppTheme.swift). */
:root {
  color-scheme: dark;
  --bg: #05080f;
  --surface: #0f1724;
  --surface-high: #162133;
  --border: rgba(255, 255, 255, 0.08);
  --text: #f4f7fb;
  --text-2: #a3afc2;
  --text-3: #66738a;
  --primary: #2e9bff;
  --primary-bright: #5cc8ff;
  --primary-deep: #1554d1;
  --accent: #ff2d46;
}

* { box-sizing: border-box; }

html, body { margin: 0; }

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  padding: 32px 16px;
  background: radial-gradient(120% 60% at 50% 0%, #0d1a33 0%, var(--bg) 60%) var(--bg);
  color: var(--text);
  font: 16px/1.5 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
}

.card {
  width: 100%;
  max-width: 440px;
  padding: 28px 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 700;
  text-decoration: none;
}

.brand img { border-radius: 9px; }

.eyebrow {
  margin: 24px 0 4px;
  color: var(--primary-bright);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

h1 {
  margin: 0 0 12px;
  font-size: 28px;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.when { margin: 0; font-weight: 600; }

.facts { margin: 4px 0 0; color: var(--text-2); }

.note {
  margin: 16px 0 0;
  padding: 10px 12px;
  background: var(--surface-high);
  border-radius: 10px;
  color: var(--text-2);
}

.body {
  margin: 16px 0 0;
  color: var(--text-2);
  white-space: pre-line;
  overflow-wrap: anywhere;
}

.actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 28px;
}

.button {
  display: block;
  padding: 14px 16px;
  border-radius: 14px;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
}

.button.primary {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-deep) 100%);
  color: #fff;
}

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

.button:focus-visible { outline: 2px solid var(--primary-bright); outline-offset: 2px; }

/* Show the store for the viewer's platform; desktop sees both and no "open". */
.is-ios .store-android,
.is-android .store-ios,
.is-desktop .open-app { display: none; }

footer { color: var(--text-3); font-size: 13px; }
footer a { color: var(--text-2); }
