/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #faf4ee;          /* warm cream, matches app screenshots */
  --bg-grad: #f3e8dc;
  --surface: #ffffff;
  --ink: #2a2420;
  --ink-soft: #6b5e54;
  --ink-muted: #a39a90;
  --accent: #d4a59a;       /* dusty rose, matches app buttons */
  --accent-hover: #c89388;
  --line: rgba(42, 36, 32, 0.08);
  --shadow-sm: 0 1px 3px rgba(42, 36, 32, 0.06);
  --shadow-md: 0 10px 30px rgba(42, 36, 32, 0.08);
  --shadow-lg: 0 20px 50px rgba(42, 36, 32, 0.12);
}

html, body {
  height: 100%;
}

body {
  background: linear-gradient(160deg, var(--bg) 0%, var(--bg-grad) 100%);
  color: var(--ink);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  display: grid;
  place-items: center;
  padding: 24px;
  overflow: hidden;
}

a { color: inherit; text-decoration: none; }

/* ---------- Card ---------- */
.card {
  background: var(--surface);
  border-radius: 32px;
  padding: 48px 40px 36px;
  width: 100%;
  max-width: 440px;
  text-align: center;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(255, 255, 255, 0.8);
  animation: rise 0.5s ease-out;
}

@keyframes rise {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ---------- App icon ---------- */
.icon {
  display: block;
  width: 96px;
  height: 96px;
  margin: 0 auto 22px;
  border-radius: 22px;
  object-fit: cover;
  box-shadow: 0 8px 20px rgba(212, 165, 154, 0.25), 0 1px 2px rgba(42, 36, 32, 0.08);
}

/* ---------- Text ---------- */
h1 {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-weight: 600;
  font-size: 38px;
  letter-spacing: -0.025em;
  color: var(--ink);
  margin-bottom: 8px;
}

.tagline {
  font-size: 14px;
  color: var(--ink-soft);
  margin-bottom: 28px;
  letter-spacing: 0.005em;
}

/* ---------- Button ---------- */
.btn {
  display: inline-block;
  padding: 14px 32px;
  background: var(--accent);
  color: #fff;
  font-weight: 500;
  font-size: 15px;
  letter-spacing: 0.01em;
  border-radius: 999px;
  box-shadow: var(--shadow-md);
  transition: transform 0.15s ease, background 0.15s ease, box-shadow 0.2s ease;
  margin-bottom: 24px;
}

.btn:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
  box-shadow: var(--shadow-lg);
}

.btn:active { transform: translateY(0); }

/* ---------- Redirect note ---------- */
.redirect-note {
  font-size: 13px;
  color: var(--ink-soft);
  line-height: 1.7;
}

#countdown {
  display: inline-block;
  min-width: 1ch;
  font-weight: 600;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}

.muted {
  color: var(--ink-muted);
  font-size: 12.5px;
}

.muted a {
  color: var(--accent);
  border-bottom: 1px solid transparent;
  transition: border-color 0.15s ease;
}
.muted a:hover { border-bottom-color: var(--accent); }

/* ---------- In-app browser toggle ---------- */
/* Default: assume real browser. Show browser-only, hide in-app-only. */
.in-app-only { display: none; }
.browser-only { display: block; }

/* When the <html> element has .in-app, swap them. */
html.in-app .in-app-only { display: block; }
html.in-app .browser-only { display: none; }

/* ---------- In-app instruction styling ---------- */
.instruction {
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink);
  margin-bottom: 18px;
  padding: 18px 20px;
  background: rgba(212, 165, 154, 0.10);
  border: 1px solid rgba(212, 165, 154, 0.25);
  border-radius: 16px;
}

.instruction strong {
  color: var(--accent);
  font-weight: 600;
}

/* The "⋯" glyph stays in body color/font, no emphasis. */
.instruction .dots {
  color: inherit;
  font: inherit;
  font-weight: inherit;
}

.arrow-up {
  font-size: 38px;
  color: var(--accent);
  line-height: 1;
  animation: bounce 1.4s ease-in-out infinite;
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); opacity: 0.85; }
  50%      { transform: translateY(-6px); opacity: 1; }
}

/* ---------- Responsive ---------- */
@media (max-width: 480px) {
  .card { padding: 36px 28px 28px; border-radius: 26px; }
  .icon { width: 84px; height: 84px; border-radius: 20px; }
  h1 { font-size: 34px; }
}
