/* Hatches — extends legal.css */

/* ---- the nest ---- */

.cards {
  display: grid;
  gap: 1rem;
  margin-top: clamp(1.5rem, 5vmin, 2.25rem);
}

.card {
  display: block;
  animation: hatch-in 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
  background: var(--card);
  border: 1px solid var(--rule);
  border-radius: 1.25rem;
  padding: clamp(1.35rem, 4vmin, 2rem);
  box-shadow: 0 18px 40px -28px var(--shadow);
  text-decoration: none;
  color: var(--ink);
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
              box-shadow 0.35s cubic-bezier(0.22, 1, 0.36, 1),
              border-color 0.35s ease;
}

/* hover lift only where there's a real pointer — otherwise a tap leaves the
   card stuck in its hover state on touch devices */
@media (hover: hover) {
  a.card:hover {
    transform: translateY(-3px);
    border-color: rgba(150, 96, 82, 0.34);
    box-shadow: 0 26px 48px -30px var(--shadow);
  }

  a.card:hover .more { padding-left: 0.3rem; }
  a.card:hover .more::after { transform: translateX(0.3rem); }
  a.card:hover .tag { transform: rotate(-2deg); }
}

/* cards arrive one after another, like they're climbing out */
.cards > *:nth-child(1) { animation-delay: 0.12s; }
.cards > *:nth-child(2) { animation-delay: 0.24s; }
.cards > *:nth-child(3) { animation-delay: 0.36s; }
.cards > *:nth-child(4) { animation-delay: 0.48s; }

@keyframes hatch-in {
  from { opacity: 0; transform: translateY(16px) scale(0.985); }
  to   { opacity: 1; transform: none; }
}

a.card:focus-visible {
  transform: translateY(-3px);
  border-color: rgba(150, 96, 82, 0.34);
  box-shadow: 0 26px 48px -30px var(--shadow);
}

a.card:active { transform: scale(0.99); }

.card h2 {
  margin: 0.5rem 0 0.4rem;
  font-size: 1.375rem;
  font-weight: 600;
}

.card p {
  margin: 0;
  color: var(--ink-soft);
}

.tag {
  display: inline-block;
  font-size: 0.75rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--ink-soft);
  border: 1px solid var(--rule);
  border-radius: 999px;
  padding: 0.15rem 0.6rem;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.card .more {
  display: inline-block;
  margin-top: 1rem;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--ink);
  transition: padding-left 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

/* the arrow lives here so it can scoot on its own */
.card .more::after {
  content: "→";
  display: inline-block;
  margin-left: 0.4rem;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---- the eggs that haven't hatched yet ---- */

.card.soon {
  background: transparent;
  border-style: dashed;
  box-shadow: none;
  text-align: center;
  color: var(--ink-soft);
}

.card.soon h2 { font-size: 1.0625rem; font-weight: 500; color: var(--ink-soft); }

.dots {
  display: flex;
  justify-content: center;
  gap: 0.4rem;
  margin-bottom: 0.25rem;
}

.dots i {
  width: 0.4rem;
  height: 0.5rem;
  border-radius: 50% 50% 48% 48% / 60% 60% 40% 40%;   /* tiny eggs */
  background: var(--ink-soft);
  opacity: 0.35;
  animation: breathe 2.4s ease-in-out infinite;
}

.dots i:nth-child(2) { animation-delay: 0.3s; }
.dots i:nth-child(3) { animation-delay: 0.6s; }

@keyframes breathe {
  0%, 100% { opacity: 0.25; transform: translateY(0) scale(1); }
  50%      { opacity: 0.6;  transform: translateY(-2px) scale(1.08); }
}

/* ---- product page ---- */

.hero-tag {
  margin: clamp(1.75rem, 5vmin, 2.75rem) 0 0;
}

.hero-tag + h1 {
  margin-top: 0.75rem;
}

/* the three promises, above the fold */

.props {
  display: grid;
  gap: 0.75rem;
  margin: clamp(1.5rem, 5vmin, 2rem) 0 0;
  padding: 0;
  list-style: none;
}

@media (min-width: 44rem) {
  .props { grid-template-columns: repeat(3, 1fr); }
}

.props li {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  padding: 0.85rem 1rem;
  background: var(--card);
  border: 1px solid var(--rule);
  border-radius: 0.9rem;
  line-height: 1.45;
}

.props strong {
  font-size: 0.9375rem;
  font-weight: 600;
}

.props span {
  font-size: 0.875rem;
  color: var(--ink-soft);
}

/* social proof — styled and ready; the markup stays commented out until
   there are real numbers to put in it */
.proof {
  margin: 1.25rem 0 0;
  text-align: center;
  font-size: 0.9375rem;
  color: var(--ink-soft);
}

.proof strong { color: var(--ink); }

.video {
  position: relative;
  margin: clamp(1.5rem, 5vmin, 2.25rem) 0 0;
  aspect-ratio: 16 / 9;
  border-radius: 1.25rem;
  overflow: hidden;
  border: 1px solid var(--rule);
  box-shadow: 0 24px 50px -30px var(--shadow);
  background: #2a1e1a;
}

.video iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.caption {
  margin: 0.85rem 0 0;
  text-align: center;
  font-size: 0.9375rem;
  color: var(--ink-soft);
  text-wrap: pretty;
}

.caption a {
  display: inline-block;
  padding: 0.4rem 0;   /* taller hit area without breaking the sentence flow */
}

.reasons {
  display: grid;
  gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

@media (min-width: 40rem) {
  .reasons { grid-template-columns: 1fr 1fr; }
}

.reasons li {
  margin: 0;
  background: var(--card);
  border: 1px solid var(--rule);
  border-radius: 1rem;
  padding: 1.15rem 1.25rem;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
              border-color 0.35s ease;
}

@media (hover: hover) {
  .reasons li:hover {
    transform: translateY(-2px);
    border-color: rgba(150, 96, 82, 0.3);
  }
}

.reasons h3 {
  margin: 0 0 0.35rem;
  font-size: 1rem;
  font-weight: 600;
}

.reasons p {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--ink-soft);
}

/* the screenshot of a finished song, under the steps */

.shot {
  margin: clamp(1.5rem, 5vmin, 2.25rem) 0 0;
  text-align: center;
}

.shot a {
  display: inline-block;
  width: 100%;
  max-width: 26rem;
  border-radius: 1rem;
  text-decoration: none;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
              box-shadow 0.35s ease;
  box-shadow: 0 20px 44px -30px var(--shadow);
}

@media (hover: hover) {
  .shot a:hover {
    transform: translateY(-3px);
    box-shadow: 0 28px 54px -30px var(--shadow);
  }
}

.shot img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--rule);
  border-radius: 1rem;
}

.shot figcaption {
  max-width: 30rem;
  margin: 0.9rem auto 0;
  font-size: 0.9375rem;
  color: var(--ink-soft);
  text-wrap: pretty;
}

.shot .zoom {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.875rem;
  opacity: 0.75;
}

.steps {
  counter-reset: step;
  list-style: none;
  margin: 0;
  padding: 0;
}

.steps li {
  position: relative;
  padding-left: 2.5rem;
  margin-bottom: 1rem;
}

.steps li::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0.05rem;
  width: 1.75rem;
  height: 1.75rem;
  display: grid;
  place-items: center;
  border-radius: 999px;
  border: 1px solid var(--rule);
  background: var(--card);
  font-size: 0.875rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: var(--ink-soft);
}

/* ---- call to action ---- */

.cta {
  margin-top: clamp(2rem, 6vmin, 3rem);
  text-align: center;
}

.button {
  display: inline-block;
  max-width: 100%;
  padding: 0.95rem clamp(1.25rem, 6vw, 1.9rem);
  border-radius: 999px;
  background: var(--ink);
  color: #fdf3ee;
  font-size: clamp(1rem, 4.2vw, 1.0625rem);
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1.35;
  text-decoration: none;
  text-wrap: balance;
  box-shadow: 0 16px 30px -16px var(--shadow);
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.3s ease;
}

@media (hover: hover) {
  .button:hover {
    transform: translateY(-2px);
    box-shadow: 0 22px 38px -18px var(--shadow);
  }
}

.button:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 22px 38px -18px var(--shadow);
}

.button:active { transform: scale(0.98); }

.cta .fineprint {
  margin: 0.9rem 0 0;
  font-size: 0.9375rem;
  color: var(--ink-soft);
}

/* ---- back link ---- */

.back {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin-top: 1.25rem;
  font-size: 0.9375rem;
  color: var(--ink-soft);
  text-decoration: none;
}

.back {
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.back:hover,
.back:focus-visible {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 0.2em;
  transform: translateX(-3px);   /* leans back towards the nest */
}

/* ---- respect the quiet setting ---- */

@media (prefers-reduced-motion: reduce) {
  .card,
  .dots i {
    animation: none !important;
  }

  *, *::before, *::after {
    transition-duration: 0.01ms !important;
  }
}
