/* Brand tokens from the quiz funnel (src/styles.css): sand, cream, ink, muted, blush; EB Garamond + Inter.
   The icon's orange→magenta→violet gradient appears once, as the rule under the name. */
:root {
  --sand: #f5efe7;
  --cream: #faf5ee;
  --ink: #1f2a37;
  --muted: #4a5560;
  --blush: #e8c8b8;
  --gradient: linear-gradient(90deg, #f5a00a, #d6496b 55%, #7b3fd0);
  --display: "EB Garamond", Georgia, "Times New Roman", serif;
  --body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
}

* { box-sizing: border-box; }

html { background: var(--sand); }

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  padding: 32px 16px;
  background: var(--sand);
  color: var(--ink);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

.card {
  width: 100%;
  max-width: 400px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 36px 28px 32px;
  background: var(--cream);
  border: 1px solid var(--blush);
  border-radius: 28px;
}

.icon {
  width: 96px;
  height: 96px;
  border-radius: 22.4%; /* the iOS icon squircle, near enough */
  box-shadow: 0 1px 2px rgba(31, 42, 55, .08), 0 8px 24px rgba(31, 42, 55, .10);
}

h1 {
  margin: 20px 0 0;
  font-family: var(--display);
  font-weight: 600;
  font-size: 40px;
  line-height: 1.05;
  letter-spacing: -0.01em;
}

h1::after {
  content: "";
  display: block;
  width: 44px;
  height: 3px;
  margin: 14px auto 0;
  border-radius: 2px;
  background: var(--gradient);
}

.tagline {
  margin: 14px 0 0;
  font-family: var(--display);
  font-weight: 500;
  font-size: 21px;
  line-height: 1.3;
  text-wrap: balance;
}

.lead {
  margin: 10px 0 0;
  max-width: 32ch;
  color: var(--muted);
  font-size: 15px;
  text-wrap: balance;
}

.cta {
  display: none;
  justify-items: center;
  gap: 12px;
  margin-top: 26px;
  width: 100%;
}

/* app.js sets data-device; without JavaScript the desktop block shows, minus the QR code */
html:not([data-device]) .cta-desktop,
html[data-device="desktop"] .cta-desktop,
html[data-device="ios"] .cta-ios,
html[data-device="android"] .cta-android { display: grid; }

.status, .hint, .note { margin: 0; font-size: 14px; color: var(--muted); }
.note { color: var(--ink); font-size: 15px; max-width: 30ch; text-wrap: balance; }

.qr {
  width: 176px;
  height: 176px;
  padding: 10px;
  background: #ffffff;
  border: 1px solid var(--blush);
  border-radius: 20px;
}
.qr:empty { display: none; }
.qr svg { display: block; width: 100%; height: 100%; }

.badge { display: inline-block; border-radius: 10px; line-height: 0; }
.badge img { display: block; height: auto; }

a { color: var(--ink); text-underline-offset: 3px; text-decoration-color: var(--blush); }
a:hover { text-decoration-color: var(--ink); }
a:focus-visible { outline: 2px solid #c68a6a; outline-offset: 3px; border-radius: 6px; }

.more { font-size: 15px; font-weight: 500; }

footer { font-size: 12px; color: var(--muted); text-align: center; }
footer a { color: var(--muted); }

@media (max-width: 360px) {
  .card { padding: 28px 20px 26px; }
  h1 { font-size: 34px; }
}
