/* Nadan landing: the app's features drawn in the landing's look.
   Each visual is a small piece of interface (week, swipe, tonight, match,
   dishes, Duo+) built in HTML and SVG with the dish photos of the app and the
   faces of Léa and Tom. Sizes are in cqi, so a visual scales with its own
   width. Animations follow the same rules as motion.css: they start with
   .is-on, pause off screen, and nothing moves with prefers-reduced-motion
   (the base styles below are the still pictures). */

:root {
  --sage: #5b7b5f;
  --sage-tint: #e6efe8;
  --sage-line: #c9d9cd;
  --rose-deep: #a35d52;
  --rose-tint: #f6e4df;
  --card: #fcfbf9;
}

.scene--week,
.scene--swipe,
.scene--tonight,
.scene--match,
.scene--dishes,
.scene--tasks,
.scene--trolley {
  container-type: inline-size;
}

.mock {
  font-family: var(--font-body);
  color: var(--ink);
  line-height: 1.3;
}

.mock p {
  margin: 0;
}

.mock img {
  display: block;
  max-width: none;
}

.mock-card {
  background: var(--card);
  border: 1px solid var(--border);
  box-shadow:
    0 1px 2px rgba(47, 52, 56, 0.05),
    0 18px 40px -18px rgba(47, 52, 56, 0.3);
}

/* ---------- Hero ---------- */

.hero {
  overflow-x: clip;
}

.hero__stage {
  position: relative;
}

/* ---------- The week ---------- */

.scene--week,
.scene--tonight,
.scene--dishes {
  display: flow-root;
}

.phone {
  position: relative;
  width: 86cqi;
  margin: 13cqi 0 2cqi;
  padding: 5cqi 4.5cqi 4.5cqi;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 7cqi;
  box-shadow:
    0 1px 2px rgba(47, 52, 56, 0.05),
    0 24px 50px -22px rgba(47, 52, 56, 0.35);
}

.phone__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 2cqi;
}

.phone__date {
  font-size: 2.8cqi;
  color: var(--muted);
}

.phone__title {
  font-family: var(--font-display);
  font-size: 6.6cqi;
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.phone__title em,
.plans__head h2 em {
  font-style: italic;
  color: var(--sage);
}

.duo {
  display: flex;
}

.duo img {
  width: 8.5cqi;
  height: 8.5cqi;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 0 0.6cqi var(--card);
}

.duo img + img {
  margin-left: -2.6cqi;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 1.2cqi;
  margin: 2.6cqi 0 3cqi;
  padding: 1.1cqi 2.8cqi 1.1cqi 2cqi;
  font-size: 2.9cqi;
  font-weight: 600;
  color: var(--sage);
  background: var(--sage-tint);
  border: 1px solid var(--sage-line);
  border-radius: var(--radius-pill);
}

.pill svg {
  width: 3.4cqi;
  height: 3.4cqi;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.week {
  display: grid;
  gap: 1.7cqi;
  margin: 0;
  padding: 0;
  list-style: none;
}

.week__row {
  display: grid;
  grid-template-columns: 7cqi 10cqi 1fr auto;
  align-items: center;
  gap: 2.6cqi;
  padding: 1.7cqi 2.6cqi 1.7cqi 2cqi;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 3.6cqi;
}

.week__row--tonight {
  border-color: var(--sage-line);
  box-shadow: 0 0 0 0.5cqi var(--sage-tint);
}

.week__day {
  font-family: var(--font-display);
  font-size: 4.4cqi;
  font-weight: 500;
  line-height: 1;
  text-align: center;
}

.week__day small {
  display: block;
  margin-bottom: 0.6cqi;
  font-family: var(--font-body);
  font-size: 2.4cqi;
  font-weight: 500;
  color: var(--muted);
}

.week__img {
  width: 10cqi;
  height: 10cqi;
  object-fit: cover;
  border-radius: 2.6cqi;
}

.week__img--icon {
  display: grid;
  place-items: center;
  background: var(--sage-tint);
}

.week__img--icon svg {
  width: 5.6cqi;
  height: 5.6cqi;
  fill: none;
  stroke: var(--sage);
  stroke-width: 1.8;
  stroke-linecap: round;
}

.week__txt {
  min-width: 0;
}

.week__txt b {
  display: block;
  font-size: 3.2cqi;
  font-weight: 600;
  line-height: 1.2;
}

.week__txt small {
  display: block;
  font-size: 2.6cqi;
  color: var(--muted);
}

.week__txt small.is-new {
  color: var(--rose-deep);
}

.week__who img {
  width: 6.4cqi;
  height: 6.4cqi;
  border-radius: 50%;
  background: var(--sage-tint);
}

/* "Your week is ready" arrives like a notification */
.notif {
  position: absolute;
  top: 0;
  right: 0;
  display: flex;
  align-items: center;
  gap: 2.4cqi;
  width: 60cqi;
  padding: 2.6cqi 3cqi;
  background: rgba(252, 251, 249, 0.94);
  border: 1px solid var(--border);
  border-radius: 4.6cqi;
  box-shadow: 0 18px 40px -16px rgba(47, 52, 56, 0.35);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.notif__icon {
  flex: none;
  display: grid;
  place-items: center;
  width: 8.4cqi;
  height: 8.4cqi;
  font-family: var(--font-display);
  font-size: 4.8cqi;
  font-weight: 600;
  color: #fff;
  background: var(--primary-deep);
  border-radius: 2.4cqi;
}

.notif__icon em {
  font-style: italic;
  color: #f2c5bd;
}

.notif__txt b {
  display: block;
  font-size: 3cqi;
  font-weight: 700;
}

.notif__txt small {
  display: block;
  font-size: 2.7cqi;
  color: var(--ink2);
}

/* ---------- The swipe ---------- */

.scene--swipe {
  aspect-ratio: 1 / 1.08;
}

.swipe {
  position: absolute;
  top: 9cqi;
  left: 19cqi;
  width: 62cqi;
  height: 80cqi;
}

.scard {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 5.5cqi;
  box-shadow:
    0 1px 2px rgba(47, 52, 56, 0.05),
    0 22px 44px -20px rgba(47, 52, 56, 0.35);
  transform-origin: 50% 0;
}

.scard img {
  width: 100%;
  height: 54cqi;
  object-fit: cover;
}

.scard__body {
  display: block;
  padding: 3cqi 4cqi;
}

.scard__body b {
  display: block;
  font-family: var(--font-display);
  font-size: 4.6cqi;
  font-weight: 500;
  line-height: 1.15;
}

.scard__body small {
  display: block;
  margin-top: 1cqi;
  font-size: 2.8cqi;
  color: var(--muted);
}

/* Still picture: c in front, b behind, a at the back */
.scard--a {
  z-index: 1;
  transform: translateY(-7cqi) scale(0.86);
}

.scard--b {
  z-index: 2;
  transform: translateY(-3.5cqi) scale(0.93);
}

.scard--c {
  z-index: 3;
}

.stamp {
  position: absolute;
  top: 5cqi;
  padding: 1cqi 2.8cqi;
  font-size: 3.6cqi;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: rgba(255, 255, 255, 0.9);
  border: 0.6cqi solid currentColor;
  border-radius: 2cqi;
  opacity: 0;
}

.stamp--keep {
  left: 5cqi;
  color: var(--sage);
  rotate: -12deg;
}

.stamp--swap {
  right: 5cqi;
  color: var(--rose-deep);
  rotate: 12deg;
}

.swipe-actions {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 5cqi;
}

.sbtn {
  display: grid;
  place-items: center;
  width: 13cqi;
  height: 13cqi;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 50%;
  box-shadow: 0 10px 20px -12px rgba(47, 52, 56, 0.4);
}

.sbtn svg {
  width: 5.6cqi;
  height: 5.6cqi;
  fill: none;
  stroke: var(--ink2);
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.sbtn--star {
  width: 10.5cqi;
  height: 10.5cqi;
  background: var(--rose-tint);
  border-color: #efcdc5;
}

.sbtn--star svg {
  width: 4.6cqi;
  height: 4.6cqi;
  stroke: var(--rose-deep);
}

.sbtn--yes {
  background: var(--sage);
  border-color: var(--sage);
}

.sbtn--yes svg {
  fill: #fff;
  stroke: #fff;
  stroke-width: 1.2;
}

/* ---------- Tonight ---------- */

.tonight {
  position: relative;
  width: 72cqi;
  margin: 2cqi 0 4cqi 3cqi;
  overflow: hidden;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 6cqi;
  box-shadow:
    0 1px 2px rgba(47, 52, 56, 0.05),
    0 24px 50px -22px rgba(47, 52, 56, 0.35);
}

.tonight__photo {
  position: relative;
  height: 38cqi;
}

.tonight__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.chip {
  position: absolute;
  top: 3cqi;
  left: 3cqi;
  padding: 0.7cqi 2.4cqi;
  font-size: 2.7cqi;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.92);
  border-radius: var(--radius-pill);
}

.tonight__steam {
  position: absolute;
  top: 1cqi;
  left: 50%;
  width: 26cqi;
  margin-left: -13cqi;
  overflow: visible;
  fill: none;
  stroke: rgba(255, 255, 255, 0.85);
  stroke-width: 3;
  stroke-linecap: round;
}

.tonight__steam path {
  opacity: 0;
  transform-box: fill-box;
  transform-origin: center;
}

.tonight__body {
  padding: 3.6cqi 4.5cqi 4.5cqi;
}

.tonight__name {
  font-family: var(--font-display);
  font-size: 5.6cqi;
  font-weight: 500;
  line-height: 1.15;
}

.tonight__meta {
  margin-top: 0.8cqi;
  font-size: 2.8cqi;
  color: var(--muted);
}

.tonight__label {
  margin-top: 3cqi;
  font-size: 2.4cqi;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--sage);
}

.tonight__line {
  margin-top: 0.6cqi;
  font-size: 3.1cqi;
}

.who {
  display: flex;
  gap: 2cqi;
  margin-top: 1.6cqi;
}

.who__chip {
  display: inline-flex;
  align-items: center;
  gap: 1.4cqi;
  padding: 0.9cqi 2.8cqi 0.9cqi 0.9cqi;
  font-size: 3cqi;
  font-weight: 600;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
}

.who__chip img {
  width: 5.6cqi;
  height: 5.6cqi;
  border-radius: 50%;
}

.who__chip.is-cook {
  background: var(--sage-tint);
  border-color: var(--sage-line);
}

.timer {
  position: absolute;
  top: 9cqi;
  right: 2cqi;
  display: grid;
  place-items: center;
  width: 30cqi;
  height: 30cqi;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 50%;
  box-shadow: 0 20px 40px -18px rgba(47, 52, 56, 0.4);
}

.timer svg {
  position: absolute;
  inset: 2.2cqi;
  width: calc(100% - 4.4cqi);
  height: calc(100% - 4.4cqi);
  rotate: -90deg;
  fill: none;
  stroke-width: 3.4;
  stroke-linecap: round;
}

.timer__track {
  stroke: var(--sage-tint);
}

.timer__ring {
  stroke: var(--sage);
  stroke-dasharray: 1;
  stroke-dashoffset: 0.35;
}

.timer__txt {
  text-align: center;
}

.timer__txt b {
  display: block;
  font-family: var(--font-display);
  font-size: 5cqi;
  font-weight: 500;
  line-height: 1.05;
}

.timer__txt small {
  display: block;
  font-size: 2.6cqi;
  color: var(--muted);
}

/* ---------- Groceries: the list next to the trolleys ---------- */

.glist {
  position: absolute;
  top: -15cqi;
  left: 31cqi;
  width: 38cqi;
  padding: 2.4cqi 3cqi 2.6cqi;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 3.4cqi;
  box-shadow: 0 18px 36px -18px rgba(47, 52, 56, 0.35);
  rotate: -3deg;
}

.glist__head {
  display: flex;
  justify-content: space-between;
  margin-bottom: 1.2cqi;
  font-size: 2.1cqi;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--sage);
}

.glist__item {
  display: flex;
  align-items: center;
  gap: 1.6cqi;
  padding: 0.7cqi 0;
  font-size: 2.6cqi;
}

.glist__box {
  flex: none;
  width: 3.2cqi;
  height: 3.2cqi;
  border: 0.35cqi solid var(--border2);
  border-radius: 50%;
  background: #fff no-repeat center / 70%;
}

.glist__item--1 .glist__box {
  background-color: var(--sage);
  border-color: var(--sage);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12.5l4.2 4.2L19 7' fill='none' stroke='%23fff' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

.glist__item--1 span + span {
  color: var(--muted);
  text-decoration: line-through;
}

/* ---------- The match ---------- */

.scene--match {
  aspect-ratio: 404 / 600;
}

.match-pair {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  aspect-ratio: 404 / 383;
}

.mcard {
  position: absolute;
  top: 1cqi;
  left: 22cqi;
  width: 56cqi;
  overflow: hidden;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 5cqi;
  box-shadow:
    0 1px 2px rgba(47, 52, 56, 0.05),
    0 24px 44px -20px rgba(47, 52, 56, 0.4);
}

.mcard img {
  width: 100%;
  height: 34cqi;
  object-fit: cover;
}

.mcard__body {
  display: block;
  padding: 2.6cqi 3.4cqi 3.4cqi;
}

.mcard__badge {
  display: inline-flex;
  align-items: center;
  gap: 1cqi;
  padding: 0.7cqi 2.2cqi 0.7cqi 1.6cqi;
  font-size: 2.8cqi;
  font-weight: 700;
  color: var(--rose-deep);
  background: var(--rose-tint);
  border-radius: var(--radius-pill);
}

.mcard__badge svg {
  width: 3.4cqi;
  height: 3.4cqi;
  fill: currentColor;
}

.mcard__body b {
  display: block;
  margin-top: 1.4cqi;
  font-family: var(--font-display);
  font-size: 4.8cqi;
  font-weight: 500;
  line-height: 1.15;
}

.vote {
  position: absolute;
  top: 22cqi;
  width: 14cqi;
  height: 14cqi;
}

.vote--lea {
  left: 3cqi;
}

.vote--tom {
  right: 3cqi;
}

.vote img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: #fff;
  box-shadow:
    0 0 0 0.8cqi #fff,
    0 12px 24px -12px rgba(47, 52, 56, 0.45);
}

.vote svg {
  position: absolute;
  right: -1.5cqi;
  bottom: -1cqi;
  width: 6.4cqi;
  height: 6.4cqi;
  padding: 1.2cqi;
  fill: #fff;
  background: var(--rose-deep);
  border-radius: 50%;
}

/* ---------- Dishes ---------- */

.mosaic {
  display: grid;
  margin: 2cqi 2cqi 13cqi;
  grid-template-columns: repeat(3, 1fr);
  gap: 3.4cqi;
  align-content: start;
}

.tile {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: #fff;
  border: 1.2cqi solid #fff;
  border-radius: 4cqi;
  box-shadow:
    0 1px 2px rgba(47, 52, 56, 0.06),
    0 16px 30px -16px rgba(47, 52, 56, 0.4);
}

.tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 2.8cqi;
}

.tile--1 {
  rotate: -3deg;
}

.tile--2 {
  rotate: 2deg;
  translate: 0 3cqi;
}

.tile--3 {
  rotate: -1.5deg;
}

.tile--4 {
  rotate: 2.5deg;
}

.tile--5 {
  rotate: -2deg;
  translate: 0 3cqi;
}

.tile--add {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1cqi;
  padding: 2cqi;
  text-align: center;
  background: #fbf7f4;
  border: 0.5cqi dashed var(--border2);
  rotate: 1.5deg;
}

.add__icon {
  display: grid;
  margin-bottom: 1cqi;
}

.add__plus,
.add__done {
  display: grid;
  place-items: center;
  grid-area: 1 / 1;
  width: 9cqi;
  height: 9cqi;
  border-radius: 50%;
}

.tile--add > b {
  font-size: 2.9cqi;
  font-weight: 700;
  line-height: 1.2;
}

.tile--add > small {
  font-size: 2.3cqi;
  color: var(--muted);
}

.add__plus {
  background: var(--sage-tint);
}

.add__done {
  background: var(--sage);
  opacity: 0;
}

.add__plus svg,
.add__done svg {
  width: 4.6cqi;
  height: 4.6cqi;
  fill: none;
  stroke: var(--sage);
  stroke-width: 2.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.add__done svg {
  stroke: #fff;
}

.link-pill {
  position: absolute;
  left: 4cqi;
  bottom: 1cqi;
  display: inline-flex;
  align-items: center;
  gap: 1.4cqi;
  padding: 1.6cqi 3.2cqi 1.6cqi 2.4cqi;
  font-size: 2.8cqi;
  font-weight: 600;
  color: var(--ink2);
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  box-shadow: 0 14px 28px -14px rgba(47, 52, 56, 0.4);
}

.link-pill svg {
  width: 3.8cqi;
  height: 3.8cqi;
  fill: none;
  stroke: var(--sage);
  stroke-width: 2.2;
  stroke-linecap: round;
}

@media (max-width: 799px) {
  .spotlight__visual--buddy .scene {
    width: min(100%, 18rem);
  }
}

/* ---------- Home: thank-you and dates over the task list ---------- */

.bubble {
  position: absolute;
  display: inline-flex;
  align-items: center;
  background: var(--card);
  border: 1px solid var(--border);
  box-shadow: 0 16px 32px -16px rgba(47, 52, 56, 0.4);
  white-space: nowrap;
}

.bubble--thanks {
  top: 2cqi;
  right: -3cqi;
  gap: 1.6cqi;
  padding: 1.8cqi 3.6cqi 1.8cqi 2.6cqi;
  font-size: 3.3cqi;
  font-weight: 600;
  background: var(--sage-tint);
  border-color: var(--sage-line);
  border-radius: var(--radius-pill);
}

.bubble--thanks svg {
  width: 4.2cqi;
  height: 4.2cqi;
  fill: var(--rose-deep);
}

.bubble--date {
  bottom: 4cqi;
  left: -3cqi;
  gap: 2.4cqi;
  padding: 2cqi 3.6cqi 2cqi 2cqi;
  border-radius: 4cqi;
}

.bubble__cal {
  display: grid;
  place-items: center;
  width: 10cqi;
  padding: 1cqi 0 1.2cqi;
  font-family: var(--font-display);
  font-size: 4.8cqi;
  font-weight: 500;
  line-height: 1;
  color: var(--rose-deep);
  background: var(--rose-tint);
  border-radius: 2.4cqi;
}

.bubble__cal small {
  margin-bottom: 0.4cqi;
  font-family: var(--font-body);
  font-size: 2.2cqi;
  font-weight: 700;
  text-transform: uppercase;
}

.bubble__txt b {
  display: block;
  font-size: 3.2cqi;
  font-weight: 700;
}

.bubble__txt small {
  display: block;
  font-size: 2.6cqi;
  color: var(--muted);
}

/* ---------- Duo+ ---------- */

.plans {
  padding-block: clamp(3.5rem, 9vw, 6rem);
}

.plans__head {
  max-width: 40rem;
  margin: 0 auto 2.5rem;
  text-align: center;
}

.plans__head h2 {
  margin: 0 0 0.75rem;
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3.6vw, 2.4rem);
  font-weight: 500;
  font-variation-settings: "opsz" 44;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.plans__head p:last-child {
  margin: 0;
  color: var(--ink2);
}

.plans__grid {
  display: grid;
  gap: 1.25rem;
  max-width: 52rem;
  margin-inline: auto;
}

@media (min-width: 760px) {
  .plans__grid {
    grid-template-columns: 1fr 1fr;
  }
}

.plan {
  position: relative;
  padding: 2rem 1.75rem 1.75rem;
  background: color-mix(in srgb, var(--surface) 85%, transparent);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-xl);
}

.plan h3 {
  margin: 0 0 0.35rem;
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 500;
}

.plan h3 em {
  font-style: italic;
  color: var(--rose-deep);
}

.plan__price {
  display: flex;
  align-items: baseline;
  gap: 0.45rem;
  margin: 0;
}

.plan__price span {
  font-family: var(--font-display);
  font-size: 2.4rem;
  font-weight: 600;
  line-height: 1.1;
}

.plan__price small {
  font-size: 0.95rem;
  color: var(--muted);
}

.plan__alt {
  margin: 0.15rem 0 0;
  font-size: 0.95rem;
  color: var(--ink2);
}

.plan__list {
  margin: 1.25rem 0 0;
  padding: 0;
  list-style: none;
}

.plan__list li {
  position: relative;
  margin: 0.6rem 0;
  padding-left: 2rem;
  font-size: 0.98rem;
  line-height: 1.45;
}

.plan__list li::before {
  content: "";
  position: absolute;
  top: 0.05rem;
  left: 0;
  width: 1.3rem;
  height: 1.3rem;
  border-radius: 50%;
  background: var(--sage-tint)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4L18 8' fill='none' stroke='%235b7b5f' stroke-width='2.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")
    no-repeat center / 72%;
}

.plan--plus {
  background: linear-gradient(160deg, #fcf6f3 0%, #f7e7e2 100%);
  border-color: #ecd0c8;
  box-shadow: 0 24px 50px -30px rgba(163, 93, 82, 0.45);
}

.plan--plus .plan__list li::before {
  background-color: #fff;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4L18 8' fill='none' stroke='%23a35d52' stroke-width='2.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

.plan__duo {
  position: absolute;
  top: 1.4rem;
  right: 1.4rem;
  display: flex;
  width: 6.5rem;
  height: 3.4rem;
  justify-content: flex-end;
  cursor: pointer;
}

.plan__duo img {
  width: 3.2rem;
  height: 3.2rem;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 0 3px #fff;
}

.plan__duo img + img {
  margin-left: -0.9rem;
}

.sparkle {
  position: absolute;
  fill: var(--rose);
}

.sparkle--1 {
  top: -0.6rem;
  left: 0.6rem;
  width: 1.2rem;
}

.sparkle--2 {
  bottom: -0.2rem;
  left: 0;
  width: 0.8rem;
}

.plans__note {
  margin: 1.25rem auto 0;
  max-width: 40rem;
  font-size: 0.875rem;
  text-align: center;
  color: var(--muted);
}

.plans__head.is-visible .spotlight__kicker::before {
  transform: scaleX(1);
}

/* ================= Motion ================= */

@media (prefers-reduced-motion: no-preference) {
  /* Week: the rows come in one by one, then Léa locks it in */
  .scene--week .week__row,
  .scene--week .pill,
  .scene--week .notif {
    opacity: 0;
  }

  .scene--week.is-on .week__row {
    animation: row-in 0.6s var(--ease-out) both;
  }

  .scene--week.is-on .week__row:nth-child(1) { animation-delay: 0.3s; }
  .scene--week.is-on .week__row:nth-child(2) { animation-delay: 0.45s; }
  .scene--week.is-on .week__row:nth-child(3) { animation-delay: 0.6s; }
  .scene--week.is-on .week__row:nth-child(4) { animation-delay: 0.75s; }
  .scene--week.is-on .week__row:nth-child(5) { animation-delay: 0.9s; }
  .scene--week.is-on .week__row:nth-child(6) { animation-delay: 1.05s; }

  .scene--week.is-on .week__row--tonight {
    animation:
      row-in 0.6s var(--ease-out) 0.3s both,
      glow 2.8s var(--soft) 2.2s infinite alternate;
  }

  .scene--week.is-on .pill {
    animation: pop 0.6s var(--spring) 1.6s both;
  }

  .scene--week.is-on .notif {
    animation:
      drop-in 0.9s var(--spring) 0.1s both,
      bob-soft 4s var(--soft) 1.2s infinite alternate;
  }

  /* Swipe: a deck of three cards, kept or swapped in turn */
  .scene--swipe.is-on .scard {
    animation: deck-right 9s var(--ease-out) infinite;
  }

  .scene--swipe.is-on .scard--b {
    animation-name: deck-left;
    animation-delay: -3s;
  }

  .scene--swipe.is-on .scard--c {
    animation-delay: -6s;
  }

  .scene--swipe.is-on .stamp {
    animation: stamp 9s var(--ease-out) infinite;
  }

  .scene--swipe.is-on .scard--b .stamp {
    animation-delay: -3s;
  }

  .scene--swipe.is-on .scard--c .stamp {
    animation-delay: -6s;
  }

  .scene--swipe.is-on .sbtn--yes {
    animation: press-yes 9s var(--ease-out) infinite;
  }

  .scene--swipe.is-on .sbtn--no {
    animation: press-no 9s var(--ease-out) infinite;
  }

  /* Tonight: steam on the plate, the timer runs */
  .scene--tonight .timer {
    opacity: 0;
  }

  .scene--tonight.is-on .timer {
    animation:
      pop 0.7s var(--spring) 0.6s both,
      bob-soft 3.6s var(--soft) 1.4s infinite alternate;
  }

  .scene--tonight.is-on .timer__ring {
    animation: countdown 14s linear 0.6s infinite;
  }

  .scene--tonight.is-on .tonight__steam path {
    animation: steam 3.4s ease-out 0.8s infinite;
  }

  .scene--tonight.is-on .tonight__steam path:nth-child(2) {
    animation-delay: 1.9s;
  }

  .scene--tonight.is-on .tonight__steam path:nth-child(3) {
    animation-delay: 2.8s;
  }

  .scene--tonight.is-on .who__chip.is-cook {
    animation: pick 0.7s var(--spring) 1.3s both;
  }

  /* Groceries: the list ticks itself off */
  .scene--trolley .glist {
    opacity: 0;
  }

  .scene--trolley.is-on .glist {
    animation:
      pop 0.7s var(--spring) 1.6s both,
      bob-soft 4.2s var(--soft) 2.4s infinite alternate;
  }

  .scene--trolley .glist__item .glist__box {
    background-color: #fff;
    border-color: var(--border2);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12.5l4.2 4.2L19 7' fill='none' stroke='%23fff' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  }

  .scene--trolley .glist__item span + span {
    color: var(--ink);
    text-decoration: line-through;
    text-decoration-color: transparent;
  }

  .scene--trolley.is-on .glist__box {
    animation: box-tick 8s var(--ease-out) 2.4s infinite;
  }

  .scene--trolley.is-on .glist__item span + span {
    animation: strike 8s var(--ease-out) 2.4s infinite;
  }

  .scene--trolley.is-on .glist__item--2 span {
    animation-delay: 3.2s;
  }

  .scene--trolley.is-on .glist__item--3 span {
    animation-delay: 4s;
  }

  /* Match: two hearts, then the dish both of them liked */
  .scene--match .vote,
  .scene--match .mcard {
    opacity: 0;
  }

  .scene--match.is-on .vote--lea {
    animation: pop 0.6s var(--spring) 0.9s both;
  }

  .scene--match.is-on .vote--tom {
    animation: pop 0.6s var(--spring) 1.25s both;
  }

  .scene--match.is-on .vote svg {
    animation: beat 2.4s ease-in-out 2.4s infinite;
  }

  .scene--match.is-on .mcard {
    animation:
      flip-in 0.9s var(--spring) 1.7s both,
      bob-soft 4.4s var(--soft) 2.8s infinite alternate;
  }

  .scene--match.is-on .mcard__badge svg {
    animation: beat 1.9s ease-in-out 2.6s infinite;
  }

  /* Dishes: the photos fan out, then a link becomes a recipe */
  .scene--dishes .tile {
    opacity: 0;
  }

  .scene--dishes.is-on .tile {
    animation: pop 0.6s var(--spring) both;
  }

  .scene--dishes.is-on .tile--1 { animation-delay: 0.15s; }
  .scene--dishes.is-on .tile--2 { animation-delay: 0.28s; }
  .scene--dishes.is-on .tile--3 { animation-delay: 0.41s; }
  .scene--dishes.is-on .tile--4 { animation-delay: 0.54s; }
  .scene--dishes.is-on .tile--5 { animation-delay: 0.67s; }
  .scene--dishes.is-on .tile--add { animation-delay: 0.8s; }

  .scene--dishes .link-pill {
    opacity: 0;
  }

  .scene--dishes.is-on .link-pill {
    animation: link-in 7s var(--ease-out) 1.4s infinite;
  }

  .scene--dishes.is-on .add__done {
    animation: added 7s var(--ease-out) 1.4s infinite;
  }

  .scene--dishes.is-on .add__plus {
    animation: plus-out 7s var(--ease-out) 1.4s infinite;
  }

  /* Home: a thank-you and a date pop over the list */
  .scene--tasks .bubble {
    opacity: 0;
  }

  .scene--tasks.is-on .bubble--thanks {
    animation:
      pop 0.6s var(--spring) 1.4s both,
      bob-soft 3.8s var(--soft) 2s infinite alternate;
  }

  .scene--tasks.is-on .bubble--date {
    animation:
      pop 0.6s var(--spring) 2.2s both,
      bob-soft 4.6s var(--soft) 2.8s infinite alternate-reverse;
  }

  .scene--tasks.is-on .bubble--thanks svg {
    animation: beat 2.2s ease-in-out 2.4s infinite;
  }

  /* Duo+: two sparkles */
  .plan__duo.is-on .sparkle {
    animation: twinkle 1.6s var(--soft) infinite alternate;
  }

  .plan__duo.is-on .sparkle--2 {
    animation-delay: 0.8s;
  }

  .plan__duo:hover img {
    animation: hop 0.7s var(--ease-out);
  }

  .plan__duo:hover img + img {
    animation-delay: 0.1s;
  }
}

@media (prefers-reduced-motion: reduce) {
  .link-pill {
    animation: none !important;
  }

  .link-pill {
    display: none;
  }
}

@keyframes row-in {
  from {
    opacity: 0;
    translate: -4cqi 0;
  }
  to {
    opacity: 1;
    translate: 0 0;
  }
}

@keyframes glow {
  from {
    box-shadow: 0 0 0 0.5cqi var(--sage-tint);
  }
  to {
    box-shadow: 0 0 0 1.4cqi var(--sage-tint);
  }
}

@keyframes drop-in {
  from {
    opacity: 0;
    transform: translateY(-8cqi) scale(0.92);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes bob-soft {
  from {
    translate: 0 0;
  }
  to {
    translate: 0 -1.6cqi;
  }
}

/* One card's 9 s life: back, middle, front, then out. Three cards share the
   cycle 3 s apart, so one leaves every 3 s. */
@keyframes deck-right {
  0% {
    z-index: 1;
    opacity: 0;
    transform: translateY(-7cqi) scale(0.86);
  }
  4%,
  30% {
    z-index: 1;
    opacity: 1;
    transform: translateY(-7cqi) scale(0.86);
  }
  36%,
  63% {
    z-index: 2;
    opacity: 1;
    transform: translateY(-3.5cqi) scale(0.93);
  }
  69%,
  88% {
    z-index: 3;
    opacity: 1;
    transform: none;
  }
  97% {
    z-index: 3;
    opacity: 0;
    transform: translate(120%, -4cqi) rotate(20deg);
  }
  100% {
    z-index: 1;
    opacity: 0;
    transform: translateY(-7cqi) scale(0.86);
  }
}

@keyframes deck-left {
  0% {
    z-index: 1;
    opacity: 0;
    transform: translateY(-7cqi) scale(0.86);
  }
  4%,
  30% {
    z-index: 1;
    opacity: 1;
    transform: translateY(-7cqi) scale(0.86);
  }
  36%,
  63% {
    z-index: 2;
    opacity: 1;
    transform: translateY(-3.5cqi) scale(0.93);
  }
  69%,
  88% {
    z-index: 3;
    opacity: 1;
    transform: none;
  }
  97% {
    z-index: 3;
    opacity: 0;
    transform: translate(-120%, -4cqi) rotate(-20deg);
  }
  100% {
    z-index: 1;
    opacity: 0;
    transform: translateY(-7cqi) scale(0.86);
  }
}

@keyframes stamp {
  0%,
  78% {
    opacity: 0;
    scale: 1.4;
  }
  83%,
  94% {
    opacity: 1;
    scale: 1;
  }
  100% {
    opacity: 0;
    scale: 1;
  }
}

/* Card c leaves at ~21 %, b at ~55 %, a at ~88 % of the 9 s cycle */
@keyframes press-yes {
  0%,
  17%,
  25%,
  84%,
  92%,
  100% {
    transform: none;
  }
  21%,
  88% {
    transform: scale(0.84);
  }
}

@keyframes press-no {
  0%,
  51%,
  59%,
  100% {
    transform: none;
    background: #fff;
  }
  55% {
    transform: scale(0.84);
    background: var(--rose-tint);
  }
}

@keyframes countdown {
  from {
    stroke-dashoffset: 0.02;
  }
  to {
    stroke-dashoffset: 1;
  }
}

@keyframes pick {
  0% {
    scale: 1;
  }
  45% {
    scale: 1.1;
  }
  100% {
    scale: 1;
  }
}

@keyframes box-tick {
  0%,
  8% {
    background-color: #fff;
    border-color: var(--border2);
    background-size: 0%;
  }
  14%,
  80% {
    background-color: var(--sage);
    border-color: var(--sage);
    background-size: 70%;
  }
  90%,
  100% {
    background-color: #fff;
    border-color: var(--border2);
    background-size: 0%;
  }
}

@keyframes strike {
  0%,
  8% {
    color: var(--ink);
    text-decoration-color: transparent;
  }
  14%,
  80% {
    color: var(--muted);
    text-decoration-color: var(--muted);
  }
  90%,
  100% {
    color: var(--ink);
    text-decoration-color: transparent;
  }
}

@keyframes flip-in {
  from {
    opacity: 0;
    transform: perspective(600px) rotateY(80deg) scale(0.8);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes link-in {
  0% {
    opacity: 0;
    transform: translateX(-8cqi);
  }
  8%,
  24% {
    opacity: 1;
    transform: none;
  }
  40% {
    opacity: 1;
    transform: translate(50cqi, -10cqi) scale(0.9);
  }
  46%,
  100% {
    opacity: 0;
    transform: translate(58cqi, -14cqi) scale(0.5);
  }
}

@keyframes added {
  0%,
  44% {
    opacity: 0;
    scale: 0.4;
  }
  50%,
  88% {
    opacity: 1;
    scale: 1;
  }
  96%,
  100% {
    opacity: 0;
    scale: 0.4;
  }
}

@keyframes plus-out {
  0%,
  42% {
    opacity: 1;
  }
  46%,
  92% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}
