:root {
  --red: #E22248;
  --red-dark: #B81A3A;
  --red-light: #F04D6E;
  --bg: #FFF8F3;
  --bg-elevated: #FFFFFF;
  --text: #1A1A1A;
  --text-muted: #555;
  --border: rgba(0, 0, 0, 0.08);
  --shadow: 0 8px 40px rgba(0, 0, 0, 0.06);
  --shadow-strong: 0 20px 60px rgba(226, 34, 72, 0.15);
  --radius: 20px;
  --radius-lg: 28px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0D0D0F;
    --bg-elevated: #17171A;
    --text: #F5F2EE;
    --text-muted: #A8A29E;
    --border: rgba(255, 255, 255, 0.08);
    --shadow: 0 8px 40px rgba(0, 0, 0, 0.5);
    --shadow-strong: 0 20px 80px rgba(226, 34, 72, 0.25);
  }
}

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

html, body {
  margin: 0;
  padding: 0;
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body {
  overflow-x: hidden;
}

/* ============ LANDING PAGE (/) ============ */

.landing {
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.landing::before {
  content: '';
  position: absolute;
  top: -300px;
  right: -300px;
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, rgba(226, 34, 72, 0.18) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.landing-header {
  padding: 14px 24px;
  position: relative;
  z-index: 2;
}

.wordmark {
  height: 32px;
  width: auto;
  display: block;
}

@media (prefers-color-scheme: dark) {
  .wordmark {
    filter: invert(1);
  }
}

.landing-main {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 24px;
  gap: 20px;
  position: relative;
  z-index: 1;
  max-width: 1100px;
  margin: 0 auto;
  width: 100%;
}

.landing-hero-image {
  width: 100%;
  max-width: 480px;
  height: auto;
  display: block;
  filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.15));
  animation: float-in 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes float-in {
  0% { opacity: 0; transform: translateY(16px); }
  100% { opacity: 1; transform: translateY(0); }
}

.landing-text {
  text-align: center;
  max-width: 520px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.eyebrow {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(226, 34, 72, 0.12);
  color: var(--red);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.headline {
  font-size: clamp(32px, 6vw, 48px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.025em;
  margin: 0;
  color: var(--text);
}

.headline em {
  font-style: normal;
  color: var(--red);
}

.subhead {
  font-size: 17px;
  line-height: 1.55;
  color: var(--text-muted);
  margin: 0;
  max-width: 440px;
}

.store-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 8px;
}

.store-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  background: #000;
  color: #FFF;
  border-radius: 14px;
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.store-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

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

.store-btn svg {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}

.store-btn .store-label {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.15;
}

.store-btn .store-small {
  font-size: 10px;
  font-weight: 500;
  opacity: 0.85;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.store-btn .store-big {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.landing-footer {
  padding: 14px 24px 18px;
  text-align: center;
  color: var(--text-muted);
  font-size: 13px;
  position: relative;
  z-index: 1;
}

.landing-footer a {
  color: var(--text-muted);
  text-decoration: none;
  border-bottom: 1px dashed transparent;
  transition: border-color 0.15s;
}

.landing-footer a:hover {
  border-bottom-color: var(--text-muted);
}

/* Desktop: side-by-side */
@media (min-width: 900px) {
  .landing-header {
    padding: 28px 24px;
  }

  .landing-main {
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 80px;
    padding: 40px 24px;
  }

  .landing-footer {
    padding: 28px 24px;
  }

  .landing-text {
    text-align: left;
    align-items: flex-start;
    flex: 1;
  }

  .store-row {
    justify-content: flex-start;
  }

  .landing-hero-image {
    flex: 1;
    max-width: 520px;
  }
}

/* ============ DEEP-LINK FALLBACK PAGE ============ */

.redirect {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 24px;
  gap: 20px;
}

.redirect-card {
  width: 100%;
  max-width: 420px;
  background: var(--bg-elevated);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 40px 28px 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  border: 1px solid var(--border);
  animation: rise-in 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes rise-in {
  0% { opacity: 0; transform: translateY(20px) scale(0.98); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}

.redirect-icon {
  width: 88px;
  height: 88px;
  border-radius: 22px;
  box-shadow: 0 8px 24px rgba(226, 34, 72, 0.25);
  object-fit: cover;
}

.redirect-title {
  font-size: 24px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.015em;
  margin: 0;
  text-align: center;
  color: var(--text);
}

.redirect-subtitle {
  font-size: 15px;
  line-height: 1.45;
  color: var(--text-muted);
  margin: 0;
  text-align: center;
  max-width: 320px;
}

.redirect-cta {
  display: block;
  width: 100%;
  padding: 16px;
  background: var(--red);
  color: #FFF;
  border: none;
  border-radius: 14px;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.005em;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.1s, background 0.2s, box-shadow 0.2s;
  box-shadow: 0 6px 20px rgba(226, 34, 72, 0.35);
  margin-top: 4px;
}

.redirect-cta:hover {
  background: var(--red-dark);
  box-shadow: 0 10px 28px rgba(226, 34, 72, 0.4);
}

.redirect-cta:active {
  transform: scale(0.98);
}

.redirect-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 500;
  margin: 4px 0;
}

.redirect-divider::before,
.redirect-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

.redirect-stores {
  display: flex;
  gap: 10px;
  width: 100%;
  justify-content: center;
  flex-wrap: wrap;
}

.redirect-stores .store-btn {
  flex: 1;
  min-width: 140px;
  padding: 12px 16px;
  justify-content: center;
}

.redirect-stores .store-btn .store-big {
  font-size: 14px;
}

.redirect-branding {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  font-size: 13px;
}

.redirect-branding img {
  height: 18px;
}

@media (prefers-color-scheme: dark) {
  .redirect-branding img {
    filter: invert(1);
  }
}
