:root {
  --cream: #f3f3ec;
  --pine: #2b3c31;
  --sage: #5f7e68;
  --gold: #b79346;
  --muted: rgba(43, 60, 49, 0.7);
}

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

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  min-height: 100dvh;
  color: var(--pine);
  font-family:
    -apple-system,
    BlinkMacSystemFont,
    "SF Pro Text",
    "SF Pro Display",
    "Helvetica Neue",
    Helvetica,
    Arial,
    sans-serif;
  -webkit-font-smoothing: antialiased;
  background: var(--cream);
}

/* Keep the page fully visible. In-app browsers often block redirects; a
   faded page looked like a blank white screen on Instagram. */

.page {
  min-height: 100dvh;
  width: min(100%, 26rem);
  margin: 0 auto;
  padding:
    max(2rem, 6vh) 1.5rem
    calc(1.35rem + env(safe-area-inset-bottom));
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.brand-block {
  flex: 1;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding-bottom: 1rem;
}

.icon-wrap {
  animation: fade-up 0.55s ease both;
}

.app-icon {
  display: block;
  width: min(7.5rem, 28vw);
  height: auto;
  aspect-ratio: 1;
  border-radius: 22.5%;
  background: var(--sage);
  box-shadow:
    0 18px 36px rgba(43, 60, 49, 0.14),
    0 2px 8px rgba(43, 60, 49, 0.08);
}

.hero {
  margin-top: 1.75rem;
  animation: fade-up 0.55s ease 0.08s both;
}

.title {
  margin: 0;
  font-size: clamp(1.7rem, 6.5vw, 2.15rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: var(--pine);
}

.title .accent {
  color: var(--sage);
}

.lede {
  margin: 0.85rem auto 0;
  max-width: 18rem;
  font-size: clamp(1.05rem, 3.8vw, 1.2rem);
  line-height: 1.35;
  font-weight: 400;
  color: var(--muted);
}

.dock {
  margin-top: auto;
  width: 100%;
  padding-top: 2rem;
  animation: fade-up 0.55s ease 0.18s both;
}

.btn {
  appearance: none;
  border: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 3.4rem;
  padding: 1rem 1.25rem;
  border-radius: 0.875rem;
  background: var(--sage);
  color: #fff;
  font: inherit;
  font-size: 1.0625rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  text-decoration: none;
  transition: background 0.18s ease, transform 0.15s ease;
}

.btn:hover {
  background: #536f5b;
}

.btn:active {
  transform: scale(0.985);
}

.hint {
  margin: 0.75rem 0 0;
  font-size: 0.875rem;
  font-weight: 500;
  color: rgba(43, 60, 49, 0.48);
}

@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero,
  .icon-wrap,
  .dock {
    animation: none !important;
  }

  .btn {
    transition: none;
  }
}
