/* ============ Talio Brand — Shared Tokens ============ */
@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,500;0,9..144,600;0,9..144,700;0,9..144,800;1,9..144,600&family=Nunito:wght@400;500;600;700;800;900&family=JetBrains+Mono:wght@400;500&display=swap');

:root {
  /* Sky palette — pulled from app background */
  --sky-top:    #ffe2ea;
  --sky-mid:    #fdd4de;
  --sky-low:    #fbc5d3;
  --cream:      #fff6ee;
  --cream-warm: #ffeddc;
  --cream-edge: #f6e2cf;

  /* Ink */
  --ink:        #3a2540;   /* deep plum */
  --ink-2:      #5c4263;
  --ink-3:      #7f6884;
  --ink-mute:   #a895ad;

  /* Accents — from the app's chip buttons */
  --coral:      #ff5f88;   /* pink/coral */
  --coral-dk:   #e43d6c;
  --violet:     #8b5cf6;
  --violet-dk:  #6b3fd4;
  --tangerine:  #ff8a3d;
  --tangerine-dk: #ea6a1a;
  --sky-blue:   #3fa8ff;
  --sky-blue-dk:#1a86e0;
  --leaf:       #2aac6a;
  --leaf-dk:    #1f8b54;
  --gold:       #f5c43a;
  --gold-dk:    #d9a019;

  /* Type */
  --serif: 'Fraunces', 'Georgia', serif;
  --sans:  'Nunito', -apple-system, BlinkMacSystemFont, sans-serif;
  --mono:  'JetBrains Mono', ui-monospace, monospace;

  --r-sm: 12px;
  --r-md: 18px;
  --r-lg: 28px;
  --r-xl: 40px;

  --shadow-soft: 0 4px 18px -4px rgba(60, 30, 50, 0.10), 0 2px 6px rgba(60, 30, 50, 0.06);
  --shadow-card: 0 18px 44px -18px rgba(60, 30, 50, 0.22), 0 2px 8px rgba(60, 30, 50, 0.06);
  --shadow-pop:  0 24px 60px -20px rgba(60, 30, 50, 0.35), 0 4px 12px rgba(60, 30, 50, 0.10);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { font-family: var(--sans); color: var(--ink); -webkit-font-smoothing: antialiased; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input, textarea { font-family: inherit; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

/* ============ Sky Backdrop + Deco ============ */
.sky-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 120% 80% at 20% 0%, #ffe9f0 0%, transparent 55%),
    radial-gradient(ellipse 100% 70% at 90% 20%, #ffd9e5 0%, transparent 50%),
    linear-gradient(180deg, var(--sky-top) 0%, var(--sky-mid) 55%, var(--sky-low) 100%);
  overflow: hidden;
  z-index: 0;
}
.sky-bg::after {
  /* very subtle paper grain */
  content: "";
  position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255,255,255,0.35) 1px, transparent 1px);
  background-size: 3px 3px;
  opacity: 0.12;
  mix-blend-mode: overlay;
  pointer-events: none;
}

.deco { position: absolute; pointer-events: none; user-select: none; }
.deco img { width: 100%; height: 100%; object-fit: contain; }

/* floating */
@keyframes bob { 0%,100% { transform: translateY(0) } 50% { transform: translateY(-10px) } }
@keyframes drift-a { 0% { transform: translateX(0) } 100% { transform: translateX(60px) } }
@keyframes drift-b { 0% { transform: translateX(0) } 100% { transform: translateX(-50px) } }
@keyframes twinkle { 0%,100% { opacity: 0.55; transform: scale(1) } 50% { opacity: 1; transform: scale(1.15) } }
@keyframes sway { 0%,100% { transform: rotate(-2deg) } 50% { transform: rotate(2deg) } }
@keyframes glow-pulse { 0%,100% { filter: drop-shadow(0 0 12px rgba(255,220,120,.4)) } 50% { filter: drop-shadow(0 0 28px rgba(255,220,120,.75)) } }

/* ============ Reusable buttons ============ */
.btn-pill {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 26px;
  border-radius: 999px;
  font-family: var(--sans);
  font-weight: 800;
  font-size: 16px;
  color: white;
  background: linear-gradient(180deg, var(--tangerine) 0%, var(--tangerine-dk) 100%);
  box-shadow: 0 4px 0 rgba(160, 60, 10, 0.28), 0 10px 24px -8px rgba(255,138,61,.55);
  transition: transform .12s ease, box-shadow .12s ease;
  border: 2px solid rgba(255,255,255,.5);
}
.btn-pill:hover { transform: translateY(-1px); }
.btn-pill:active { transform: translateY(2px); box-shadow: 0 2px 0 rgba(160,60,10,.28), 0 4px 10px -4px rgba(255,138,61,.55); }

.btn-ghost {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 22px;
  border-radius: 999px;
  background: rgba(255,255,255,.7);
  border: 2px solid rgba(58, 37, 64, 0.12);
  font-weight: 700; font-size: 15px;
  color: var(--ink);
}

/* Input pill */
.input-pill {
  display: flex; align-items: center; gap: 10px;
  background: white;
  border: 2px solid rgba(58,37,64,.08);
  border-radius: 999px;
  padding: 8px 8px 8px 20px;
  box-shadow: var(--shadow-soft);
}
.input-pill input {
  flex: 1; border: none; outline: none; background: transparent;
  font-family: var(--sans); font-size: 16px; color: var(--ink); font-weight: 600;
}
.input-pill input::placeholder { color: var(--ink-mute); font-weight: 500; }

/* Chip buttons matching app */
.chip-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 18px;
  border-radius: 999px;
  font-weight: 800; font-size: 14px;
  color: white;
  border: 2px solid rgba(255,255,255,.35);
  box-shadow: 0 3px 0 rgba(0,0,0,.15), 0 6px 14px -6px rgba(0,0,0,.22);
}
.chip--coral     { background: linear-gradient(180deg, var(--coral) 0%, var(--coral-dk) 100%); }
.chip--violet    { background: linear-gradient(180deg, var(--violet) 0%, var(--violet-dk) 100%); }
.chip--tangerine { background: linear-gradient(180deg, var(--tangerine) 0%, var(--tangerine-dk) 100%); }
.chip--sky       { background: linear-gradient(180deg, var(--sky-blue) 0%, var(--sky-blue-dk) 100%); }
.chip--leaf      { background: linear-gradient(180deg, var(--leaf) 0%, var(--leaf-dk) 100%); }
.chip--gold      { background: linear-gradient(180deg, var(--gold) 0%, var(--gold-dk) 100%); color: #4a3308; }

/* Brand mark */
.talio-mark {
  display: inline-flex; align-items: center;
}
.talio-mark img {
  height: 70px;
  width: auto;
  display: block;
  filter: drop-shadow(0 4px 12px rgba(60,30,50,.16));
}
.talio-mark .logo { display: none; }
.talio-mark .wordmark { display: none; }

/* thought bubble */
.thought {
  position: relative;
  background: #fff7ef;
  border: 2px solid rgba(58,37,64,.08);
  border-radius: 22px;
  padding: 14px 18px;
  font-weight: 700; font-size: 15px;
  color: var(--ink);
  box-shadow: var(--shadow-soft);
  line-height: 1.3;
}
.thought::before, .thought::after {
  content: "";
  position: absolute;
  background: #fff7ef;
  border: 2px solid rgba(58,37,64,.08);
  border-radius: 50%;
}
.thought.tb-left::before { width: 14px; height: 14px; left: -6px; bottom: -10px; }
.thought.tb-left::after  { width: 8px; height: 8px;  left: -16px; bottom: -22px; }

.sparkle {
  position: absolute; pointer-events: none;
  background: radial-gradient(circle, rgba(255,255,255,1) 0%, rgba(255,220,130,.7) 40%, transparent 70%);
  border-radius: 50%;
  animation: twinkle 2.6s ease-in-out infinite;
}

/* App store badges */
.store-badge {
  display: inline-flex; align-items: center; gap: 10px;
  height: 54px;
  padding: 0 20px;
  border-radius: 14px;
  background: #1a1028;
  color: white;
  box-shadow: var(--shadow-soft);
  transition: transform .12s;
  white-space: nowrap;
  flex-shrink: 0;
}
.store-badge > div { white-space: nowrap; }
.store-badge:hover { transform: translateY(-2px); }
.store-badge .store-sub { font-size: 10px; opacity: .8; line-height: 1.1; letter-spacing: .04em; text-transform: uppercase; font-weight: 700; }
.store-badge .store-name { font-family: var(--serif); font-weight: 700; font-size: 18px; line-height: 1.1; letter-spacing: -0.01em; }
.store-badge svg { flex-shrink: 0; }
