/* One quiet motion rhythm, extending the existing lavender design. */
/* Equal side tracks center the label in the whole button, not beside its arrow. */
.hero-actions .button-primary,
.hero-actions .button-quiet,
.closing-section .button-primary,
.beta-copy .button {
  --button-icon-size: 36px;
  display: inline-grid;
  grid-template-columns: var(--button-icon-size) minmax(0,1fr) var(--button-icon-size);
  align-items: center;
  justify-content: center;
  column-gap: 10px;
  padding-inline: 14px;
  text-align: center;
}
.button.button-primary > .button-label,
.hero-actions .button-quiet > .button-label,
.beta-copy .button > .button-label {
  grid-column: 2;
  grid-row: 1;
  display: block;
  width: auto;
  min-width: 0;
  height: auto;
  background: none;
  border: 0;
  border-radius: 0;
  font: inherit;
  line-height: 1.55;
  text-align: center;
  transform: none;
}
.hero-actions .button-primary > [aria-hidden],
.hero-actions .button-quiet > [aria-hidden],
.closing-section .button-primary > [aria-hidden],
.beta-copy .button > [aria-hidden] {
  grid-column: 3;
  grid-row: 1;
  width: var(--button-icon-size);
  height: var(--button-icon-size);
  display: grid;
  place-items: center;
}
@media(max-width:700px) {
  .hero-actions { align-items: center; justify-content: center; }
  .hero-actions .button-primary,
  .hero-actions .button-quiet,
  .closing-section .button-primary,
  .beta-copy .button {
    --button-icon-size: 28px;
    column-gap: 8px;
    padding-inline: 10px;
  }
  .hero-actions .button-quiet { width: min(100%,350px); }
}
.hero-actions .button-quiet {
  --button-icon-size: 20px;
  grid-template-columns: minmax(0,max-content) var(--button-icon-size);
  column-gap: 8px;
}
.hero-actions .button-quiet > .button-label { grid-column: 1; }
.hero-actions .button-quiet > [aria-hidden] {
  grid-column: 2;
  align-self: center;
  line-height: 1;
  transform: none;
}
.hero-actions .button-quiet > [aria-hidden] svg { display: block; }
/* A warm accent distinguishes the beta action from the lavender information card. */
.beta-copy .button {
  width: 100%;
  max-width: 420px;
  min-height: 76px;
  padding-block: 16px;
  border: 1px solid #ffe3a9;
  border-radius: 18px;
  background: linear-gradient(115deg,#ffe3a0,#ffc66b);
  color: #3a2148;
  font-size: 1.0625rem;
  font-weight: 650;
  box-shadow: 0 4px 0 #af743b,0 12px 28px #15091d4d,inset 0 1px 0 #fff1cd;
  transition: transform .25s ease,box-shadow .25s ease,background .25s ease;
}
.beta-copy .button > [aria-hidden] {
  background: #4b2b60;
  border: 1px solid #68457b;
  border-radius: 10px;
  color: #fff1cf;
}
@media(hover:hover) and (pointer:fine) {
  .beta-copy .button:hover {
    background: linear-gradient(115deg,#ffe9b5,#ffd184);
    box-shadow: 0 5px 0 #af743b,0 17px 34px #15091d66,inset 0 1px 0 #fff6db;
    transform: translateY(-2px);
  }
}
.beta-copy .button:active {
  transform: translateY(2px);
  box-shadow: 0 1px 0 #af743b,0 6px 15px #15091d40;
}
.beta-copy .button:focus-visible {
  outline: 3px solid #fff1cf;
  outline-offset: 5px;
}
@media(max-width:700px) {
  .beta-copy .button { font-size: 1rem; min-height: 72px; }
}
/* The tall mobile beta section has three independent entrance boundaries. */
.motion-ready .beta-reveal {
  opacity: 0;
  transition: opacity 1.1s cubic-bezier(.33,0,.4,1);
}
.motion-ready .beta-reveal.is-visible { opacity: 1; }
.motion-paused .beta-reveal { opacity: 1 !important; transition: none !important; }
@media(prefers-reduced-motion:reduce) {
  .motion-ready .beta-reveal { opacity: 1; transition: none; }
}
.motion-ready .reveal,
.motion-ready .reveal.is-visible {
  transform: none;
  transition: opacity .85s cubic-bezier(.22,.68,.24,1);
}
.motion-ready .reveal.is-visible > :not(.beta-glow):not(.ingredient-accent):not(.margin-food) {
  animation: soft-content-arrive .9s cubic-bezier(.22,.68,.24,1) backwards;
}
.motion-ready .reveal.is-visible > :nth-child(2) { animation-delay: .08s; }
.motion-ready .reveal.is-visible > :nth-child(3) { animation-delay: .14s; }
.motion-ready .reveal.is-visible > :nth-child(4) { animation-delay: .2s; }
@keyframes soft-content-arrive {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: none; }
}
/* Height is animated by motion.js; avoid a competing answer animation. */
.faq-list details[open] .faq-answer { animation: none; }
.faq-list details > summary > span,
.sample-recipe > summary > span { transition: transform .4s cubic-bezier(.22,.68,.24,1); }
details[data-closing] > summary > span { transform: rotate(0deg) !important; }
.welcome[open] { animation: soft-dialog-arrive .4s cubic-bezier(.22,.68,.24,1) both; }
.welcome[open]::backdrop { animation: soft-backdrop-arrive .4s ease both; }
.mobile-menu:not([hidden]) { animation: soft-content-arrive .35s cubic-bezier(.22,.68,.24,1) both; }
@keyframes soft-dialog-arrive {
  from { opacity: 0; transform: translateY(12px) scale(.98); }
  to { opacity: 1; transform: none; }
}
@keyframes soft-backdrop-arrive { from { opacity: 0; } to { opacity: 1; } }

/* Sparse edge particles: never block a control or cross the reading column. */
.ambient-field {
  position: fixed;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  user-select: none;
  z-index: 2;
  contain: strict;
  mask-image: linear-gradient(90deg,#000,transparent 24%,transparent 76%,#000);
}
.ambient-speck {
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: var(--size);
  height: var(--size);
  border-radius: 50%;
  color: #ad88d1;
  background: currentColor;
  box-shadow: 0 0 9px #ac84d14d;
  opacity: .4;
  animation: ambient-wander var(--duration) ease-in-out var(--delay) infinite alternate;
}
.ambient-speck.is-spark {
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
.ambient-speck.is-spark::before,
.ambient-speck.is-spark::after {
  content: '';
  position: absolute;
  inset: 0 40%;
  border-radius: 50%;
  background: currentColor;
}
.ambient-speck.is-spark::after { transform: rotate(90deg); }
@keyframes ambient-wander {
  0% { transform: translate3d(0,0,0) rotate(0); opacity: .18; }
  32% { transform: translate3d(var(--dx),-35px,0) rotate(35deg); opacity: .5; }
  68% { transform: translate3d(calc(var(--dx) * -.5),var(--dy),0) rotate(80deg); opacity: .3; }
  100% { transform: translate3d(calc(var(--dx) * .6),-90px,0) rotate(120deg); opacity: .42; }
}
@media(max-width:700px) {
  .ambient-field { mask-image: linear-gradient(90deg,#000,transparent 12%,transparent 88%,#000); }
  .ambient-speck:nth-child(n+9) { display: none; }
}
.motion-paused .ambient-field { visibility: hidden; }
.motion-paused .welcome[open],
.motion-paused .welcome[open]::backdrop,
.motion-paused .mobile-menu:not([hidden]),
.motion-paused .reveal.is-visible > * { animation: none !important; }
@media(prefers-reduced-motion:reduce) {
  .ambient-field { display: none; }
  .motion-ready .reveal.is-visible > *,
  .welcome[open],.welcome[open]::backdrop,.mobile-menu:not([hidden]) { animation: none !important; }
}
