:root {
  --brown-dark:  #3e2716;
  --brown-mid:   #785a3a;
  --brown-light: #a8896c;
  --cream:       #fdf6ee;
  --cream-dark:  #f0e4d4;
  --accent:      #c4753b;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: 'DM Sans', sans-serif;
  font-weight: 500;
  background: var(--cream);
  color: var(--brown-dark);
  min-height: 100vh;
  overflow-x: hidden;
  line-height: 1.5;
}

body::before {
  content: '';
  position: fixed;
  top: -120px;
  left: -80px;
  width: 380px;
  height: 380px;
  background: rgba(135, 195, 210, 0.25);
  border-radius: 50%;
  z-index: 0;
}
body::after {
  content: '';
  position: fixed;
  bottom: -100px;
  right: -60px;
  width: 320px;
  height: 320px;
  background: rgba(230, 160, 170, 0.2);
  border-radius: 50%;
  z-index: 0;
}

.container {
  position: relative;
  z-index: 1;
  max-width: 960px;
  margin: 0 auto;
  padding: 60px 24px 40px;
}

/* -------- HERO -------- */
.hero {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 56px;
  align-items: center;
  margin: 0 auto 56px;
  max-width: 880px;     /* match the cards below */
}
.hero-text {
  text-align: left;
}

.brand {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 32px;
}
.app-icon {
  width: 100px;
  height: 100px;
  border-radius: 22px;
  box-shadow: 0 4px 20px rgba(62, 39, 22, 0.15);
  display: block;
  flex-shrink: 0;
}
.brand-stack {
  display: flex;
  flex-direction: column;
  justify-content: center;
}
h1 {
  font-family: 'DM Serif Display', serif;
  font-size: 3rem;
  color: var(--brown-dark);
  letter-spacing: 1px;
  margin-bottom: 4px;
  line-height: 1;
}
.subtitle {
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--brown-mid);
}

.tagline {
  font-family: 'DM Serif Display', serif;
  font-size: 2.0rem;
  color: var(--brown-dark);
  margin-bottom: 28px;
  line-height: 1.2;
}
.tagline-sub {
  font-style: italic;
  font-size: 1.5rem;
  color: var(--accent);
}
.tagline-tail {
  /* "find yours" — brown, inline at the end of the amber phrase above */
  color: var(--brown-dark);
  font-style: italic;
  font-size: 1.5rem;
}

.description {
  font-size: 1.02rem;
  font-weight: 500;
  line-height: 1.65;
  color: var(--brown-mid);
  margin-bottom: 32px;
}

/* store row — Apple badge, Google badge, APK button, all in one line */
.store-buttons {
  display: flex;
  gap: 12px;
  flex-wrap: nowrap;
  align-items: center;
}
.store-badge {
  display: inline-block;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
  border-radius: 8px;
}
.store-badge:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(62, 39, 22, 0.2);
}
.store-badge img {
  display: block;
  height: 50px;
  width: auto;
}

/* APK button — styled like the old custom store buttons */
.apk-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px;
  border-radius: 12px;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
  background: var(--brown-dark);
  color: var(--cream);
  white-space: nowrap;
}
.apk-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(62, 39, 22, 0.2);
}
.apk-btn svg {
  width: 26px;
  height: 26px;
  fill: currentColor;
  flex-shrink: 0;
}
.apk-btn .btn-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.1;
}
.apk-btn .btn-pre {
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  opacity: 0.85;
}
.apk-btn .btn-main {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  margin-top: 2px;
}

/* -------- hero image — 30% smaller (was 340 → 270) -------- */
.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}
.hero-shot {
  display: block;
  width: 100%;
  max-width: 240px;
  height: auto;
  border-radius: 16px;
  box-shadow: 0 10px 36px rgba(62, 39, 22, 0.16);
}

/* -------- pitch card — same width as the modes row -------- */
.pitch {
  background: white;
  border-radius: 16px;
  padding: 32px 36px;
  margin: 0 auto 48px;
  max-width: 880px;
  box-shadow: 0 2px 12px rgba(62, 39, 22, 0.06);
  text-align: center;
}
.pitch-eyebrow {
  font-family: 'DM Sans', sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 16px;
}
.pitch-headline {
  font-family: 'DM Serif Display', serif;
  font-size: 1.5rem;
  line-height: 1.35;
  color: var(--brown-dark);
  margin-bottom: 16px;
}
.pitch-headline em {
  font-style: italic;
  color: var(--accent);
}
.pitch-body {
  font-size: 1rem;
  font-weight: 500;
  color: var(--brown-mid);
  line-height: 1.65;
  max-width: 640px;
  margin: 0 auto;
}

/* -------- section titles -------- */
.section-title {
  font-family: 'DM Serif Display', serif;
  font-size: 1.6rem;
  color: var(--brown-dark);
  margin: 0 auto 18px;
  text-align: center;
  letter-spacing: 0.01em;
}

/* -------- feature cards -------- */
.features {
  display: grid;
  gap: 16px;
  margin-bottom: 40px;
  text-align: left;
  max-width: 880px;
  margin-left: auto;
  margin-right: auto;
}
.features-three { grid-template-columns: repeat(3, 1fr); }
.features-two   { grid-template-columns: repeat(2, 1fr); }  /* same 880px width */

.feature {
  background: white;
  border-radius: 16px;
  padding: 22px;
  box-shadow: 0 2px 12px rgba(62, 39, 22, 0.06);
  display: flex;
  flex-direction: column;
}
.feature-icon {
  font-size: 1.6rem;
  margin-bottom: 10px;
  line-height: 1;
}
.feature-shot {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  height: auto;
  object-fit: contain;
  border-radius: 8px;
  margin-bottom: 12px;
  background: transparent;
}
.feature h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--brown-dark);
  margin-bottom: 6px;
}
.feature p {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--brown-mid);
  line-height: 1.55;
}

/* -------- closing -------- */
.closing {
  font-family: 'DM Serif Display', serif;
  font-style: italic;
  font-size: 1.3rem;
  color: var(--brown-dark);
  margin: 24px auto 40px;
  max-width: 520px;
  line-height: 1.4;
  text-align: center;
}
.closing-pre {
  font-family: 'DM Sans', sans-serif;
  font-style: normal;
  font-weight: 500;
  font-size: 1.0rem;
  color: var(--brown-mid);
  margin: 0 auto 8px;
  max-width: 560px;
}

/* -------- footer -------- */
.footer {
  padding-top: 32px;
  border-top: 1px solid var(--cream-dark);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--brown-mid);
  text-align: center;
}
.footer a {
  color: var(--brown-mid);
  text-decoration: none;
}
.footer a:hover { text-decoration: underline; }

/* -------- responsive -------- */

/* Tablet and below: hero stacks but brand/text go FIRST, image BELOW */
@media (max-width: 880px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  /* Image goes AFTER text (don't reorder it above) */
  .hero-visual { order: 2; }
  .hero-text   { order: 1; text-align: center; }
  .brand { justify-content: center; }
  .store-buttons { justify-content: center; }

  /* Constrain hero image so it doesn't go huge when single-column */
  .hero-shot { max-width: 215px; }

  /* Modes: switch to 2 columns first, not single */
  .features-three {
    grid-template-columns: repeat(2, 1fr);
  }
  /* Center the lonely third card so it doesn't look orphaned */
  .features-three .feature:nth-child(3):last-child {
    grid-column: 1 / -1;
    max-width: calc(50% - 8px);
    margin: 0 auto;
  }
  /* Cap screenshot inside each card so it doesn't fill the wide 2-up column */
  .feature-shot {
    max-width: 240px;
    margin-left: auto;
    margin-right: auto;
  }
  /* daily-play (2 cards) keeps 2 columns at this width — already fits */
}

/* Phones: single column, but with sane image sizing */
@media (max-width: 640px) {
  .features-three,
  .features-two {
    grid-template-columns: 1fr;
    max-width: 420px;   /* keep cards from going full width on phones */
  }
  /* Reset the tablet-only "center the lonely third card" rule */
  .features-three .feature:nth-child(3):last-child {
    grid-column: auto;
    max-width: none;
    margin: 0;
  }
  /* Constrain the mode screenshots inside their cards */
  .feature-shot {
    max-width: 280px;
    margin-left: auto;
    margin-right: auto;
  }
}

@media (max-width: 560px) {
  h1 { font-size: 2.2rem; }
  .app-icon { width: 80px; height: 80px; }
  .tagline { font-size: 1.45rem; }      /* 2.0 × 0.73 */
  .tagline-sub { font-size: 1.25rem; }  /* 1.5 × 0.85 */
  .tagline-tail { font-size: 1.25rem; } /* 1.5 × 0.85 */
  .container { padding: 40px 20px 32px; }
  .pitch { padding: 24px; }
  .brand { gap: 14px; }
  .hero-shot { max-width: 200px; }
  .store-buttons { flex-wrap: wrap; }
}

/* -------- entrance animation: more pronounced -------- */
@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes rise-rotate {
  from {
    opacity: 0;
    transform: translateY(40px) rotate(-3deg) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) rotate(0) scale(1);
  }
}
@keyframes float {
  0%, 100% { transform: translateY(0) rotate(0); }
  50%      { transform: translateY(-18px) rotate(-1.5deg); }
}
@keyframes pulse-glow {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(62, 39, 22, 0);
  }
  50% {
    box-shadow: 0 0 0 8px rgba(62, 39, 22, 0.08);
  }
}

.hero-text > * {
  animation: rise 1s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.hero-text > *:nth-child(1) { animation-delay: 0.0s; }
.hero-text > *:nth-child(2) { animation-delay: 0.15s; }
.hero-text > *:nth-child(3) { animation-delay: 0.3s; }
.hero-text > *:nth-child(4) { animation-delay: 0.45s; }

/* Hero image: stronger entrance, then continuous gentle float */
.hero-visual {
  animation: rise-rotate 1.1s cubic-bezier(0.22, 1, 0.36, 1) 0.25s both;
}
.hero-shot {
  animation: float 3.5s ease-in-out infinite 0.8s;
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}
.hero-shot:hover {
  animation-play-state: paused;
  transform: translateY(-12px) rotate(-1.5deg) scale(1.02);
}

/* gentle hover lift on feature cards */
.feature {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.feature:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 28px rgba(62, 39, 22, 0.1);
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition-duration: 0.01ms !important;
  }
  .hero-shot:hover { transform: none; }
  .feature:hover { transform: none; }
}
