/* Stikki: same palette and type as the app. */
:root {
  --ink: #2b2340;
  --ink-soft: #6b6380;
  --cream: #fff0c9;
  --cream-deep: #ffe3a3;
  --mint: #3fcf9a;
  --mint-light: #c8f3e0;
  --mint-deep: #1e9e72;
  --coral: #ff5e57;
  --coral-light: #ffd9d6;
  --coral-deep: #d63c38;
  --butter: #ffc93c;
  --white: #ffffff;
  --radius: 28px;
  --pop: cubic-bezier(0.34, 1.56, 0.64, 1);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  color: var(--ink);
  font-family: 'Nunito', system-ui, sans-serif;
  font-weight: 600;
  font-size: 17px;
  line-height: 1.55;
  overflow-x: hidden;
  /* Cream paper with a faint dot grid, like a sticker sheet. */
  background-color: var(--cream);
  background-image: radial-gradient(rgba(43, 35, 64, 0.07) 1.5px, transparent 1.6px);
  background-size: 26px 26px;
}
h1, h2, h3, .display { font-family: 'Fredoka', 'Nunito', sans-serif; font-weight: 700; line-height: 1.04; letter-spacing: -0.01em; margin: 0; }
a { color: inherit; }
img { max-width: 100%; height: auto; display: block; }
button { font: inherit; color: inherit; }

/* Only the visitor's language is shown. */
html[lang='es'] [lang='en'], html[lang='en'] [lang='es'] { display: none !important; }

.wrap { width: min(1100px, 100% - 32px); margin: 0 auto; }

header.top { display: flex; align-items: center; justify-content: space-between; padding: 20px 0; position: relative; z-index: 2; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-family: 'Fredoka', sans-serif; font-weight: 700; font-size: 26px; }
.brand img { width: 42px; height: 42px; border-radius: 12px; }
.lang { display: flex; gap: 4px; background: var(--white); border-radius: 999px; padding: 4px; }
.lang button { border: 0; background: transparent; font-size: 14px; color: var(--ink-soft); padding: 6px 12px; border-radius: 999px; cursor: pointer; }
html[lang='es'] .lang [data-set='es'], html[lang='en'] .lang [data-set='en'] { background: var(--ink); color: var(--white); }

/* Clay button, like the app's: a coloured face over a darker lip. */
.btn {
  display: inline-flex; align-items: center; gap: 12px; text-decoration: none; border: 0;
  background: var(--ink); color: var(--white); font-family: 'Fredoka', sans-serif; font-weight: 700; font-size: 19px;
  padding: 12px 26px 12px 12px; border-radius: 999px; box-shadow: 0 6px 0 #120e1d;
}
.btn img { width: 46px; height: 46px; border-radius: 13px; }
.btn small { font-family: 'Nunito', sans-serif; font-weight: 600; font-size: 13px; opacity: 0.75; display: block; }

/* ---------- Hero ---------- */
.hero { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 32px; align-items: center; padding: 8px 0 72px; }
.hero h1 { font-size: clamp(50px, 7.6vw, 96px); }
/* "verde" and "rojo" are stuck on like stickers. */
.tag {
  display: inline-block; padding: 0 0.2em 0.06em; border-radius: 0.24em; color: var(--white);
  border: 0.07em solid var(--white); box-shadow: 0 0.06em 0.18em rgba(43, 35, 64, 0.2);
  animation: stick 0.6s var(--pop) both;
}
.tag.g { background: var(--mint); transform: rotate(-3deg); animation-delay: 0.25s; }
.tag.r { background: var(--coral); transform: rotate(2.5deg); animation-delay: 0.55s; }
@keyframes stick { from { transform: scale(1.5) rotate(-14deg); opacity: 0; } }
.hero p.lead { font-size: 21px; color: var(--ink-soft); max-width: 32ch; margin: 22px 0 30px; }

.stage { position: relative; justify-self: center; width: min(290px, 74vw); }
.phone {
  position: relative; z-index: 1; border-radius: 44px; background: var(--ink); padding: 9px;
  box-shadow: 0 34px 60px -24px rgba(43, 35, 64, 0.5); transform: rotate(3deg);
  animation: rise 0.9s var(--pop) 0.1s both;
}
/* Width drives the size and the aspect ratio keeps the screenshot unstretched. */
.phone img { width: 100%; height: auto; aspect-ratio: 600 / 1304; object-fit: cover; border-radius: 36px; }
@keyframes rise { from { transform: translateY(60px) rotate(8deg); opacity: 0; } }
/* Stickers drifting around the phone. */
.float { position: absolute; z-index: 2; width: 96px; filter: drop-shadow(0 8px 10px rgba(43, 35, 64, 0.18)); animation: bob 5s ease-in-out infinite; }
.float.f1 { top: 6%; left: -28%; animation-delay: -1s; }
.float.f2 { top: 32%; right: -30%; width: 84px; animation-delay: -2.4s; }
.float.f3 { bottom: 12%; left: -26%; width: 88px; animation-delay: -3.3s; }
.float.f4 { bottom: -4%; right: -18%; width: 112px; z-index: 3; animation-delay: -0.4s; }
@keyframes bob {
  0%, 100% { transform: translateY(0) rotate(-6deg); }
  50% { transform: translateY(-14px) rotate(5deg); }
}

/* ---------- Try it ---------- */
.section-title { text-align: center; font-size: clamp(36px, 5vw, 58px); }
.section-sub { text-align: center; color: var(--ink-soft); font-size: 19px; margin: 10px auto 34px; max-width: 46ch; }

.demo {
  display: grid; grid-template-columns: auto 1fr; gap: 28px; align-items: stretch;
  background: var(--white); border-radius: 40px; padding: clamp(18px, 3vw, 34px);
  border-bottom: 8px solid rgba(43, 35, 64, 0.08); transition: background-color 0.5s;
}
.demo.is-green { background: #e6faf1; }
.demo.is-red { background: #fff0ee; }

.thermo { position: relative; width: 74px; display: flex; flex-direction: column; align-items: center; }
.thermo .tube { position: relative; width: 40px; flex: 1; min-height: 230px; background: #f1eef3; border-radius: 20px 20px 0 0; border: 6px solid var(--white); border-bottom: 0; box-shadow: 0 6px 14px rgba(43, 35, 64, 0.1); overflow: hidden; }
.thermo .liquid { position: absolute; left: 0; right: 0; bottom: 0; height: var(--level, 50%); background: var(--butter); transition: height 0.7s var(--pop), width 0.7s var(--pop), background-color 0.5s; }
.thermo .bulb { position: relative; width: 74px; height: 74px; margin-top: -4px; border-radius: 50%; border: 6px solid var(--white); background: var(--butter); box-shadow: 0 6px 14px rgba(43, 35, 64, 0.12); transition: background-color 0.5s, transform 0.25s var(--pop); }
.thermo .bulb.gulp { transform: scale(1.14); }

.demo-main { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.demo-top { display: flex; align-items: center; gap: 18px; }
.demo-mascot { width: 128px; height: 128px; flex: none; }
.demo-mascot img { width: 100%; height: 100%; object-fit: contain; }
.demo-mascot img.react { animation: squash 0.5s var(--pop); }
@keyframes squash { 30% { transform: scale(1.18, 0.86) translateY(8px); } 60% { transform: scale(0.94, 1.08) translateY(-6px); } }
.demo-headline { font-size: clamp(30px, 4vw, 44px); transition: color 0.4s; }
.counts { display: flex; gap: 10px; margin-top: 10px; }
.count { min-width: 54px; height: 54px; border-radius: 27px; display: grid; place-items: center; color: var(--white); font-family: 'Fredoka', sans-serif; font-weight: 700; font-size: 24px; border: 5px solid var(--white); box-shadow: 0 4px 10px rgba(43, 35, 64, 0.15); }
.count.g { background: var(--mint); }
.count.r { background: var(--coral); }
.count.bump { animation: squash 0.4s var(--pop); }

.taps { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.tap { border: 0; cursor: pointer; border-radius: 30px; padding: 0 0 8px; -webkit-tap-highlight-color: transparent; }
.tap span {
  display: flex; align-items: center; justify-content: center; gap: 10px; height: 76px; border-radius: 30px;
  font-family: 'Fredoka', sans-serif; font-weight: 700; font-size: 26px; color: var(--white);
  border: 3px solid rgba(255, 255, 255, 0.55); transition: transform 0.1s;
}
.tap span img { width: 50px; height: 50px; border-radius: 50%; background: rgba(255, 255, 255, 0.92); padding: 2px; }
.tap.red { background: var(--coral-deep); }
.tap.red span { background: linear-gradient(#ff8a84, var(--coral)); }
.tap.green { background: var(--mint-deep); }
.tap.green span { background: linear-gradient(#7ee3bc, var(--mint)); }
.tap:active span { transform: translateY(6px); }
.tap:focus-visible { outline: 4px solid var(--ink); outline-offset: 3px; }

.week { display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px; background: var(--cream); border-radius: 24px; padding: 12px; }
.day { display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 13px; color: var(--ink-soft); }
.day i { width: 100%; max-width: 46px; aspect-ratio: 1; border-radius: 50%; background: rgba(43, 35, 64, 0.07); border: 4px solid transparent; }
.day i.g { background: var(--mint); border-color: var(--white); }
.day i.r { background: var(--coral); border-color: var(--white); }
.day i.today { box-shadow: 0 0 0 3px var(--ink); }
.day i.land { animation: stick 0.55s var(--pop); }
.demo-actions { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.close-day { border: 0; cursor: pointer; background: var(--ink); color: var(--white); border-radius: 999px; padding: 10px 18px; font-family: 'Fredoka', sans-serif; font-weight: 700; font-size: 16px; }
.close-day:disabled { opacity: 0.35; cursor: default; }
.demo-note { color: var(--ink-soft); font-size: 14px; }

/* Reward unlocked, popping up from the bottom. */
.unlock { position: fixed; left: 50%; bottom: 24px; z-index: 20; transform: translate(-50%, 160%); display: flex; align-items: center; gap: 12px; background: var(--white); border: 4px solid var(--mint); border-radius: 26px; padding: 10px 20px 10px 10px; box-shadow: 0 18px 40px -12px rgba(43, 35, 64, 0.45); transition: transform 0.5s var(--pop); width: max-content; max-width: calc(100% - 32px); }
.unlock.show { transform: translate(-50%, 0); }
.unlock img { width: 64px; }
.unlock b { font-family: 'Fredoka', sans-serif; font-size: 20px; display: block; }

/* ---------- Sticker strips ---------- */
.strips { padding: 90px 0 20px; overflow: hidden; }
.strip { display: flex; gap: 22px; width: max-content; animation: slide 60s linear infinite; padding: 10px 0; }
.strip.rev { animation-direction: reverse; animation-duration: 70s; }
.strip img { width: 110px; height: 110px; object-fit: contain; filter: drop-shadow(0 6px 8px rgba(43, 35, 64, 0.15)); }
.strip img:nth-child(odd) { transform: rotate(-6deg); }
.strip img:nth-child(even) { transform: rotate(5deg); }
@keyframes slide { to { transform: translateX(-50%); } }

/* ---------- Family + band ---------- */
.family { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; padding: 80px 0 70px; }
.card { background: var(--white); border-radius: var(--radius); padding: 24px; border-bottom: 6px solid rgba(43, 35, 64, 0.08); }
.card img { width: 92px; height: 92px; object-fit: contain; margin: -56px 0 6px -6px; transform: rotate(-8deg); }
.card h3 { font-size: 24px; margin-bottom: 6px; }
.card p { margin: 0; color: var(--ink-soft); }
.card.mint { background: var(--mint-light); }
.card.coral { background: var(--coral-light); }
.card.butter { background: #fff7dd; }

.band { background: var(--ink); color: var(--white); border-radius: 40px; padding: 44px; display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: center; margin-bottom: 70px; }
.band h2 { font-size: clamp(32px, 4vw, 48px); }
.band p { color: rgba(255, 255, 255, 0.75); margin: 12px 0 0; max-width: 46ch; }
.band img { width: 160px; animation: bob 6s ease-in-out infinite; }

footer { padding: 28px 0 48px; color: var(--ink-soft); font-size: 15px; display: flex; flex-wrap: wrap; gap: 8px 22px; justify-content: space-between; }
footer nav { display: flex; gap: 18px; flex-wrap: wrap; }

/* Sections slide up as they come into view (only once the script marks the page as ready). */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.7s, transform 0.7s var(--pop); }
.js .reveal.in { opacity: 1; transform: none; }

/* ---------- Legal and support pages ---------- */
.doc { background: var(--white); border-radius: 36px; padding: clamp(24px, 5vw, 56px); margin: 12px 0 40px; }
.doc h1 { font-size: clamp(34px, 5vw, 52px); margin-bottom: 6px; }
.doc .updated { color: var(--ink-soft); font-size: 14px; margin: 0 0 28px; }
.doc h2 { font-size: 24px; margin: 34px 0 8px; }
.doc p, .doc li { max-width: 70ch; }
.doc ul { padding-left: 22px; }
.doc table { border-collapse: collapse; width: 100%; margin: 8px 0; font-size: 15px; }
.doc th, .doc td { text-align: left; padding: 10px 12px; border-bottom: 2px solid var(--cream); vertical-align: top; }
.doc th { font-family: 'Fredoka', sans-serif; }
.mail { display: inline-block; background: var(--cream); border-radius: 999px; padding: 4px 14px; text-decoration: none; font-weight: 700; }

@media (max-width: 820px) {
  .hero { grid-template-columns: 1fr; gap: 56px; padding-top: 0; }
  .stage { width: min(240px, 60vw); }
  .float { width: 70px; }
  .float.f2 { width: 62px; }
  .float.f4 { width: 84px; }
  .demo { grid-template-columns: 1fr; }
  /* On phones the thermometer lies down above the buttons. */
  .thermo { flex-direction: row; width: 100%; height: 60px; }
  .thermo .tube { min-height: 0; height: 40px; flex: 1; order: 2; margin-left: -6px; border: 6px solid var(--white); border-left: 0; border-radius: 0 20px 20px 0; }
  .thermo .liquid { top: 0; right: auto; height: auto; width: var(--level, 50%); }
  .thermo .bulb { width: 60px; height: 60px; margin: 0; flex: none; order: 1; z-index: 1; }
  .demo-mascot { width: 92px; height: 92px; }
  .tap span { height: 66px; font-size: 22px; }
  .tap span img { width: 42px; height: 42px; }
  .family { grid-template-columns: 1fr; gap: 50px; }
  .band { grid-template-columns: 1fr; padding: 30px; }
  .band img { width: 110px; }
  .strip img { width: 84px; height: 84px; }
  .doc table, .doc thead, .doc tbody, .doc tr, .doc th, .doc td { display: block; }
  .doc thead { display: none; }
  .doc td:first-child { font-weight: 800; padding-bottom: 0; border: 0; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}
