/* Tiny Talks — download page (download.tinytalksdiaries.com). Phone first. */

:root {
  --mint: #46c195;
  --mint-deep: #1b6b52;
  --mint-soft: #e3f6ec;
  --mint-wash: #f1faf6;
  --pink-soft: #fde7ec;
  --ink: #17251f;
  --ink-2: #4a5a53;
  --ink-3: #7b8a83;
  --line: #e2ece7;
  --card: #ffffff;
  --shadow: 0 1px 2px rgba(23, 37, 31, 0.04), 0 10px 30px rgba(23, 37, 31, 0.08);
  --font: "Nunito", ui-rounded, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100vh; display: flex; flex-direction: column;
  font: 16px/1.5 var(--font); color: var(--ink); -webkit-font-smoothing: antialiased;
  background:
    radial-gradient(560px 380px at 0% 0%, #d8f3e6 0%, transparent 70%),
    radial-gradient(480px 340px at 100% 12%, #fde3ea 0%, transparent 70%),
    #f6faf8;
  background-repeat: no-repeat;
}
h1, h2, p { margin: 0; }
a { color: var(--mint-deep); }
[hidden] { display: none !important; }

.bar { padding: calc(14px + env(safe-area-inset-top, 0px)) 20px 0; max-width: 520px; width: 100%; margin: 0 auto; }
.brand { display: inline-flex; align-items: center; gap: 9px; font-weight: 900; font-size: 18px; letter-spacing: -0.01em; }
.brand img { display: block; }

.page { width: 100%; max-width: 520px; margin: 0 auto; padding: 0 18px 24px; flex: 1; }

/* ---------- hero ---------- */

.hero { text-align: center; padding-top: 6px; }
.visual { position: relative; height: 250px; margin: 0 auto 6px; max-width: 360px; }
.disc {
  position: absolute; border-radius: 50%; overflow: hidden; background: #fff;
  box-shadow: 0 0 0 7px rgba(255, 255, 255, 0.7), 0 18px 40px rgba(23, 37, 31, 0.12);
  animation: float 6s ease-in-out infinite;
}
.disc img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.35); display: block; }
.disc.girl { width: 190px; height: 190px; left: 50%; top: 24px; margin-left: -150px; background: var(--pink-soft); }
.disc.boy { width: 138px; height: 138px; left: 50%; top: 96px; margin-left: 32px; background: var(--mint-soft); animation-delay: -3s; }
@keyframes float { 50% { transform: translateY(-8px); } }
.bubble {
  position: absolute; background: #fff; color: var(--ink); font-weight: 800; font-size: 13.5px;
  padding: 8px 12px; border-radius: 16px; box-shadow: var(--shadow); white-space: nowrap;
}
.bubble.one { top: 6px; right: 6%; border-bottom-left-radius: 4px; }
.bubble.two { bottom: 4px; left: 2%; border-bottom-right-radius: 4px; }

.hero h1 { font-size: 34px; line-height: 1.1; font-weight: 900; letter-spacing: -0.03em; margin-top: 6px; }
.hero h1 em { font-style: normal; color: var(--mint); display: inline-block; }
.lead { margin: 12px auto 0; max-width: 420px; color: var(--ink-2); font-size: 17px; font-weight: 600; }

/* ---------- store buttons ---------- */

.stores { display: grid; gap: 10px; margin: 24px auto 0; max-width: 340px; }
.store {
  display: flex; align-items: center; justify-content: center; gap: 12px;
  min-height: 60px; padding: 10px 20px; border-radius: 18px;
  background: #111; color: #fff; text-decoration: none; text-align: left;
  box-shadow: 0 10px 24px rgba(17, 17, 17, 0.18);
  transition: transform 0.08s ease;
}
.store:active { transform: scale(0.98); }
.store svg { width: 26px; height: 26px; fill: currentColor; flex: none; }
.store span { display: grid; line-height: 1.1; font-size: 20px; font-weight: 800; }
.store small { font-size: 11.5px; font-weight: 700; opacity: 0.8; text-transform: uppercase; letter-spacing: 0.04em; }
.store.primary { background: linear-gradient(180deg, #4fcd9f, var(--mint)); box-shadow: 0 10px 24px rgba(70, 193, 149, 0.38); }
.store.soon { background: #e9efec; color: var(--ink-3); box-shadow: none; cursor: default; }

.qr {
  display: flex; align-items: center; gap: 16px; text-align: left;
  margin: 22px auto 0; max-width: 380px; padding: 14px; border-radius: 20px;
  background: var(--card); box-shadow: var(--shadow);
}
.qr img { flex: none; border-radius: 10px; }
.qr p { color: var(--ink-2); font-weight: 600; font-size: 15px; }
.qr strong { color: var(--ink); }

/* ---------- features ---------- */

.features { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 30px; }
.feature { background: var(--card); border-radius: 20px; padding: 16px 14px; box-shadow: var(--shadow); }
.feature .emoji {
  width: 42px; height: 42px; border-radius: 14px; display: grid; place-items: center; font-size: 22px;
  background: var(--mint-wash); margin-bottom: 10px;
}
.feature h2 { font-size: 15.5px; font-weight: 900; line-height: 1.25; }
.feature p { margin-top: 4px; color: var(--ink-2); font-size: 13.5px; font-weight: 600; line-height: 1.4; }

.foot {
  display: flex; gap: 8px; justify-content: center; color: var(--ink-3); font-size: 13px; font-weight: 600;
  padding: 8px 20px calc(24px + env(safe-area-inset-bottom, 0px));
}
.foot a { color: var(--ink-3); }

@media (min-width: 640px) {
  .hero h1 { font-size: 42px; }
  .visual { height: 280px; }
  .features { grid-template-columns: repeat(2, 1fr); }
}
