/* Demo flow, sits on top of styles.css */

body.demo { padding-bottom: 2rem; }

.demo-top {
  padding: 1.1rem 0 0.4rem;
}

.demo-top .brand {
  width: min(10.5rem, 46vw);
  margin: 0 auto 0.9rem;
}

.progress {
  display: flex;
  gap: 0.4rem;
  justify-content: center;
  margin: 0 auto 0.5rem;
  width: min(18rem, 86vw);
}

.progress span {
  height: 0.45rem;
  flex: 1;
  border-radius: 999px;
  background: #e8d7c6;
}

.progress span.is-done,
.progress span.is-on { background: var(--ink); }

.progress span.is-on { background: var(--coral); }

.step { display: none; padding: 0.5rem 0 1rem; }
.step.is-on { display: block; }

.step h1 {
  font-size: clamp(1.85rem, 8vw, 2.6rem);
  margin: 0.4rem 0 0.7rem;
}

.step .lede { margin-bottom: 1.4rem; }

.step-card {
  background: var(--white);
  border-radius: 1.5rem;
  padding: 1.35rem 1.2rem 1.5rem;
  box-shadow: 0 0 0 3px rgba(67, 33, 13, 0.06);
}

.demo input[type="text"],
.demo input[type="date"] {
  width: 100%;
  font: inherit;
  font-size: 1.125rem;
  padding: 0.95rem 1rem;
  border: 2px solid #d7c4b0;
  border-radius: 0.9rem;
  background: var(--white);
  color: var(--ink);
  margin-bottom: 1.1rem;
}

.demo input[type="text"]:focus,
.demo input[type="date"]:focus {
  outline: 3px solid var(--sky);
  border-color: var(--ink);
}

.demo label.label { margin-top: 0.2rem; }

a.btn, button.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  text-align: center;
}

.btn-sage { background: var(--sage); }
.btn-plum { background: var(--plum); }
.btn-sky { background: var(--sky); }

.btn-row { margin-top: 1.1rem; }

.lah-card {
  border-radius: 1.4rem;
  padding: 1.2rem 1.15rem 1.3rem;
  margin: 0.4rem 0 1.2rem;
  background: var(--sage);
}

.lah-card.is-coral { background: var(--coral); }
.lah-card.is-plum { background: var(--plum); }
.lah-card.is-sky { background: var(--sky); }

.lah-card .card-name {
  font-weight: 800;
  font-size: 1.15rem;
  margin-bottom: 0.15rem;
}

.lah-card .card-days {
  font-weight: 800;
  font-size: clamp(3rem, 16vw, 4.4rem);
  line-height: 0.95;
  letter-spacing: -0.04em;
}

.lah-card .card-days span {
  display: block;
  font-size: 1.05rem;
  letter-spacing: 0;
  font-weight: 700;
  margin-top: 0.15rem;
}

.lah-card img {
  display: block;
  width: min(14.5rem, 80%);
  height: auto;
  margin: 0.4rem auto 0.2rem;
  background: transparent;
}

.check-list { list-style: none; display: grid; gap: 0.7rem; margin: 0.8rem 0 1rem; }

.check-item {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  background: var(--white);
  border-radius: 1.1rem;
  padding: 0.95rem 1rem;
  border: 3px solid transparent;
  width: 100%;
  font: inherit;
  font-weight: 800;
  font-size: 1.12rem;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
  min-height: 3.5rem;
}

.check-item .box {
  width: 1.45rem;
  height: 1.45rem;
  border: 2px solid var(--ink);
  border-radius: 0.35rem;
  flex: 0 0 auto;
  background: var(--white);
  position: relative;
}

.check-item.is-ticked {
  background: var(--sage);
  border-color: var(--ink);
}

.check-item.is-ticked .box::after {
  content: "";
  position: absolute;
  left: 0.4rem;
  top: 0.12rem;
  width: 0.4rem;
  height: 0.75rem;
  border: solid var(--ink);
  border-width: 0 3px 3px 0;
  transform: rotate(45deg);
}

.fish-pop {
  position: fixed;
  left: 50%;
  top: 42%;
  transform: translate(-50%, 20px);
  background: var(--coral);
  color: var(--ink);
  font-weight: 800;
  font-size: 1.6rem;
  padding: 0.7rem 1.1rem;
  border-radius: 999px;
  box-shadow: 0 8px 24px rgba(67, 33, 13, 0.18);
  opacity: 0;
  pointer-events: none;
  z-index: 20;
}

.fish-pop.is-on {
  animation: fishUp 1.15s ease-out forwards;
}

@keyframes fishUp {
  0% { opacity: 0; transform: translate(-50%, 24px) scale(0.8); }
  18% { opacity: 1; transform: translate(-50%, 0) scale(1); }
  100% { opacity: 0; transform: translate(-50%, -70px) scale(1); }
}

.pose {
  width: min(16rem, 82%);
  margin: 0.2rem auto 0.8rem;
}

.pose.is-bounce { animation: bounce 0.55s ease; }

@keyframes bounce {
  0% { transform: translateY(8px) scale(0.96); }
  50% { transform: translateY(-8px) scale(1.03); }
  100% { transform: translateY(0) scale(1); }
}

.fish-count {
  text-align: center;
  font-weight: 800;
  font-size: 1.2rem;
  margin-bottom: 0.8rem;
}

.tummy {
  background: var(--white);
  border-radius: 1.2rem;
  padding: 0.9rem 1rem 1rem;
  margin: 0.8rem 0 1.1rem;
}

.tummy-label {
  display: flex;
  justify-content: space-between;
  font-weight: 800;
  margin-bottom: 0.45rem;
}

.tummy-bar {
  height: 1.15rem;
  border-radius: 999px;
  background: #ead7c8;
  overflow: hidden;
}

.tummy-bar > i {
  display: block;
  height: 100%;
  width: 0;
  background: #4f8a4a;
  border-radius: inherit;
  transition: width 2.2s ease;
}
.tummy-bar > i.is-full { width: 100%; }

.box-wrap { text-align: center; margin: 0.4rem 0 1rem; }

.mystery {
  width: 8.5rem;
  height: 8.5rem;
  margin: 0.4rem auto 0.8rem;
  border-radius: 50%;
  background: var(--plum);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3.4rem;
  font-weight: 800;
  color: var(--ink);
  box-shadow: 0 0 0 8px rgba(185, 154, 199, 0.35);
}

.mystery.is-shake { animation: shake 0.7s ease; }

@keyframes shake {
  0%, 100% { transform: rotate(0); }
  20% { transform: rotate(-12deg) scale(1.05); }
  40% { transform: rotate(12deg); }
  60% { transform: rotate(-8deg); }
  80% { transform: rotate(8deg); }
}

.odds.demo-odds { margin-top: 0.4rem; }
.odds.demo-odds li {
  opacity: 0.55;
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.odds.demo-odds li.is-lit { opacity: 1; transform: scale(1.02); }
.odds.demo-odds li.is-won {
  opacity: 1;
  border: 3px solid var(--ink);
  transform: scale(1.03);
}

.reward {
  display: none;
  background: var(--white);
  border-radius: 1.3rem;
  padding: 1.1rem 1rem;
  margin: 0.8rem 0 1rem;
  text-align: center;
}
.reward.is-on { display: block; }
.reward .tier {
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 0.3rem;
}
.reward h2 { font-size: 1.7rem; margin-bottom: 0.4rem; }

.note {
  font-size: 1.02rem;
  color: var(--ink-soft);
  text-align: center;
  margin: 0.3rem 0 1rem;
}

@media (prefers-reduced-motion: reduce) {
  .fish-pop.is-on, .pose.is-bounce, .mystery.is-shake { animation: none; opacity: 1; transform: none; }
  .tummy-bar > i { transition: none; }
}


/* Feed-first homepage */
.step-feed h1 {
  font-size: clamp(1.65rem, 7vw, 2.25rem);
  line-height: 1.12;
  margin: 0.15rem 0 0.85rem;
}

.hungry-line {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--ink);
  margin-bottom: 0.6rem;
}

.step-feed .pose {
  width: min(14.5rem, 72%);
  margin: 0.1rem auto 0.35rem;
}

.fish-meter {
  text-align: center;
  margin: 0 0 1.1rem;
}

.fish-num {
  font-weight: 800;
  font-size: clamp(4rem, 20vw, 5.4rem);
  line-height: 0.88;
  letter-spacing: -0.05em;
}

.fish-unit {
  font-weight: 800;
  font-size: 1.25rem;
  margin-top: 0.15rem;
}

.fish-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  width: 100%;
  font: inherit;
  font-weight: 800;
  font-size: 1.35rem;
  color: var(--ink);
  background: transparent;
  border: 0;
  cursor: pointer;
  padding: 0.2rem 0 0.6rem;
}

.fish-bubble {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 7.25rem;
  height: 7.25rem;
  border-radius: 50%;
  background: var(--coral);
  box-shadow: 0 8px 22px rgba(67, 33, 13, 0.12);
}

.fish-btn:focus-visible .fish-bubble,
.fish-btn:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 4px;
}

.fish-btn:active .fish-bubble {
  transform: scale(0.96);
}

.text-skip {
  font: inherit;
  font-weight: 800;
  color: var(--ink);
  background: none;
  border: 0;
  padding: 0.4rem 0.2rem;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

footer {
  padding: 1.5rem 0 2.5rem;
  text-align: center;
}
