/* Features */

main > .features {
  padding-bottom: clamp(5rem, 9vw, 8rem);
}

.tiles {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
  margin-top: 3rem;
}

.tile {
  padding: clamp(1.5rem, 3vw, 2.25rem);
  border-radius: 2rem;
}

.tile p {
  max-width: var(--measure);
  margin-top: 0.5rem;
  color: rgb(42 36 64 / 0.72);
}

.tile--mint {
  background: var(--mint);
}

.tile--butter {
  background: var(--butter);
}

.tile--sky {
  background: var(--sky);
}

.tile--lilac {
  background: var(--lilac);
}

.viz {
  display: grid;
  place-items: center;
  height: 11rem;
  margin-bottom: 1.5rem;
  border-radius: 1.25rem;
  background: rgb(255 255 255 / 0.55);
}

.viz--rings svg {
  width: 8.5rem;
  transform: rotate(-90deg);
}

.viz--rings circle {
  fill: none;
  stroke: var(--ink);
  stroke-width: 6;
  stroke-linecap: round;
  stroke-dasharray: 100;
  animation: countdown 7s linear infinite;
}

.viz--rings .r2 {
  stroke: var(--mint-deep);
  animation-duration: 4.5s;
}

.viz--rings .r3 {
  stroke: var(--peach-deep);
  animation-duration: 10s;
}

@keyframes countdown {
  from {
    stroke-dashoffset: 0;
  }
  to {
    stroke-dashoffset: 100;
  }
}

.viz--voice {
  gap: 0.9rem;
  align-content: center;
}

.bubble {
  padding: 0.6rem 1rem;
  border-radius: 1.2rem 1.2rem 1.2rem 0.35rem;
  background: var(--white);
  font-size: 0.95rem;
  animation: speak-in 4s ease-in-out infinite;
}

@keyframes speak-in {
  0%,
  8% {
    opacity: 0;
    transform: translateY(8px) scale(0.95);
  }
  18%,
  80% {
    opacity: 1;
    transform: none;
  }
  100% {
    opacity: 0;
  }
}

.bars {
  display: flex;
  align-items: center;
  gap: 5px;
  height: 2.5rem;
}

.bars i {
  width: 5px;
  height: 100%;
  border-radius: 5px;
  background: var(--ink);
  animation: bar 1s ease-in-out infinite;
  transform-origin: center;
}

.bars i:nth-child(2) {
  animation-delay: -0.2s;
}
.bars i:nth-child(3) {
  animation-delay: -0.5s;
}
.bars i:nth-child(4) {
  animation-delay: -0.1s;
}
.bars i:nth-child(5) {
  animation-delay: -0.7s;
}
.bars i:nth-child(6) {
  animation-delay: -0.35s;
}
.bars i:nth-child(7) {
  animation-delay: -0.6s;
}

@keyframes bar {
  0%,
  100% {
    transform: scaleY(0.25);
  }
  50% {
    transform: scaleY(1);
  }
}

.viz--import {
  position: relative;
}

.scribble {
  position: absolute;
  display: grid;
  gap: 9px;
  width: 60%;
  animation: tidy-out 6s ease-in-out infinite;
}

.scribble i {
  height: 7px;
  border-radius: 7px;
  background: rgb(42 36 64 / 0.25);
}

.scribble i:nth-child(2) {
  width: 85%;
}
.scribble i:nth-child(3) {
  width: 92%;
}
.scribble i:nth-child(4) {
  width: 55%;
}

@keyframes tidy-out {
  0%,
  30% {
    opacity: 1;
    filter: none;
  }
  42%,
  92% {
    opacity: 0;
    filter: blur(6px);
  }
  100% {
    opacity: 1;
  }
}

.checks {
  display: grid;
  gap: 0.45rem;
  padding: 0;
  list-style: none;
  font-size: 0.95rem;
}

.checks li {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.3rem 0.9rem 0.3rem 0.35rem;
  border-radius: 999px;
  background: var(--white);
  animation: check-in 6s ease-in-out infinite;
}

.checks li::before {
  content: "✓";
  display: grid;
  place-items: center;
  width: 1.4rem;
  height: 1.4rem;
  border-radius: 50%;
  background: var(--ink);
  color: var(--white);
  font-size: 0.75rem;
}

.checks li:nth-child(2) {
  animation-name: check-in-2;
}
.checks li:nth-child(3) {
  animation-name: check-in-3;
}

@keyframes check-in {
  0%,
  38% {
    opacity: 0;
    transform: translateX(-10px);
  }
  46%,
  90% {
    opacity: 1;
    transform: none;
  }
  100% {
    opacity: 0;
  }
}

@keyframes check-in-2 {
  0%,
  46% {
    opacity: 0;
    transform: translateX(-10px);
  }
  54%,
  90% {
    opacity: 1;
    transform: none;
  }
  100% {
    opacity: 0;
  }
}

@keyframes check-in-3 {
  0%,
  54% {
    opacity: 0;
    transform: translateX(-10px);
  }
  62%,
  90% {
    opacity: 1;
    transform: none;
  }
  100% {
    opacity: 0;
  }
}

.viz--lang {
  gap: 0.6rem;
  align-content: center;
}

.viz--lang p {
  display: grid;
  font-family: var(--serif);
  font-size: 1.5rem;
  font-style: italic;
  text-align: center;
}

.viz--lang span {
  grid-area: 1 / 1;
  animation: swap 6s ease-in-out infinite;
}

.viz--lang span + span {
  animation-delay: -3s;
}

.viz--lang p + p span {
  font-size: 1.05rem;
  color: var(--ink-soft);
  animation-delay: -0.4s;
}

.viz--lang p + p span + span {
  animation-delay: -3.4s;
}

@keyframes swap {
  0%,
  42% {
    opacity: 1;
    transform: none;
    filter: none;
  }
  50%,
  92% {
    opacity: 0;
    transform: translateY(-8px);
    filter: blur(4px);
  }
}

/* Safety */

main > .safety {
  margin-bottom: clamp(4rem, 8vw, 6rem);
}

.safety__panel {
  padding: clamp(1.5rem, 5vw, 4rem);
  border-radius: 2rem;
  background: var(--peach);
}

.safety__cols {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2rem clamp(2.5rem, 6vw, 6rem);
  margin-top: 2.5rem;
}

.safety__cols > div {
  padding-top: 1.1rem;
  border-top: 1px solid rgb(42 36 64 / 0.25);
}

.safety__cols p {
  max-width: var(--measure);
  margin-top: 0.5rem;
  color: rgb(42 36 64 / 0.75);
}

/* Footer */

.foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  max-width: var(--wide);
  margin-inline: auto;
  padding: 2rem var(--gutter) 3rem;
  border-top: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: 0.92rem;
}

.foot__line {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}

.foot .foot__line a {
  color: var(--ink);
  text-underline-offset: 3px;
}

.foot__links {
  display: inline-flex;
  gap: 1.25rem;
}

.foot .foot__links a {
  color: inherit;
  text-underline-offset: 3px;
}

/* Small screens */

@media (max-width: 900px) {
  .hero,
  .demo__intro,
  .demo__stage {
    grid-template-columns: 1fr;
  }

  .phone {
    justify-self: center;
  }

  .top nav {
    display: none;
  }

  .wash span {
    width: 80vw;
  }
}

@media (max-width: 640px) {
  .tiles,
  .safety__cols {
    grid-template-columns: 1fr;
  }

  .phone {
    width: 100%;
    height: 640px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms;
    animation-iteration-count: 1;
  }

  .bubble,
  .checks li,
  .viz--lang span {
    animation: none;
  }

  .scribble,
  .viz--lang span + span {
    display: none;
  }
}

/* Hero tagline, launch badge, facts, how it works, who, FAQ */

.eyebrow {
  margin: 0.75rem 0 0;
  font-family: var(--serif);
  font-size: 1.35rem;
  font-style: italic;
  color: var(--ink-soft);
}

.badge {
  padding: 0.55rem 1rem;
  border-radius: 999px;
  background: var(--white);
  border: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.notify {
  color: var(--ink);
  font-weight: 500;
}

/* Added sections use the landing page's own pieces: serif h2, pastel 2rem panels, white cards, soft ink text. */

main > .facts,
main > .how,
main > .who,
main > .faq {
  padding-bottom: clamp(5rem, 9vw, 8rem);
}

main > .facts dl {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  margin: 3rem 0 0;
  padding: clamp(1.5rem, 4vw, 3rem);
  border-radius: 2rem;
  background: var(--lilac);
}

main > .facts dl > dt {
  padding-top: 1.1rem;
  border-top: 1px solid rgb(42 36 64 / 0.25);
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

main > .facts dl > dd {
  margin: -0.75rem 0 0;
  color: rgb(42 36 64 / 0.75);
}

@media (min-width: 52rem) {
  main > .facts dl {
    grid-template-columns: 11rem 1fr;
    gap: 0;
  }
  main > .facts dl > dt,
  main > .facts dl > dd {
    margin: 0;
    padding: 1.1rem 0;
    border-top: 1px solid rgb(42 36 64 / 0.25);
  }
  main > .facts dl > dt:first-of-type,
  main > .facts dl > dd:first-of-type {
    border-top: 0;
    padding-top: 0;
  }
}

main > .how ol {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
  margin: 3rem 0 0;
  padding: 0;
  list-style: none;
  counter-reset: how;
}

main > .how li {
  padding: clamp(1.5rem, 3vw, 2.25rem);
  border-radius: 2rem;
  background: var(--mint);
  counter-increment: how;
}

main > .how li:nth-child(2) {
  background: var(--butter);
}

main > .how li:nth-child(3) {
  background: var(--sky);
}

main > .how li h3::before {
  content: counter(how);
  display: grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  margin-bottom: 1.25rem;
  border-radius: 50%;
  background: var(--white);
  font-family: var(--serif);
  font-size: 1.15rem;
  font-weight: 500;
}

main > .how li p {
  max-width: var(--measure);
  margin-top: 0.5rem;
  color: rgb(42 36 64 / 0.72);
}

.safety__note {
  max-width: var(--measure);
  margin-top: 2.5rem;
  padding-top: 1.1rem;
  border-top: 1px solid rgb(42 36 64 / 0.25);
  color: rgb(42 36 64 / 0.75);
}

main > .who {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr);
  gap: 1.5rem clamp(2.5rem, 6vw, 6rem);
  align-items: start;
}

main > .who p {
  padding: clamp(1.5rem, 4vw, 3rem);
  border-radius: 2rem;
  background: var(--rose);
  font-family: var(--serif);
  font-size: clamp(1.2rem, 2vw, 1.45rem);
  line-height: 1.45;
  color: var(--ink);
}

/* FAQ: a quiet accordion of white cards, with a round plus that turns into a minus */

.faq__list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem 1.25rem;
  align-items: start;
  margin-top: 3rem;
}

main > .faq details {
  border-radius: 1.5rem;
  background: var(--white);
  border: 1px solid var(--line);
  -webkit-tap-highlight-color: transparent;
}

main > .faq details[open] {
  background: var(--lilac);
  border-color: transparent;
}

main > .faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.15rem 1.25rem 1.15rem 1.5rem;
  cursor: pointer;
  list-style: none;
}

main > .faq summary::-webkit-details-marker {
  display: none;
}

main > .faq summary::after {
  content: "+";
  flex: none;
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: var(--paper);
  font-size: 1.25rem;
  line-height: 1;
  color: var(--lilac-deep);
}

main > .faq details[open] summary::after {
  content: "\2212";
  background: var(--white);
}

main > .faq summary h3 {
  font-size: 1.05rem;
}

main > .faq details p {
  padding: 0 1.5rem 1.35rem;
  max-width: var(--measure);
  color: rgb(42 36 64 / 0.75);
}

main > .faq > p {
  margin-top: 2rem;
  color: var(--ink-soft);
}

main > .faq > p a {
  text-decoration-color: var(--lilac-deep);
  text-underline-offset: 0.2em;
}

@media (max-width: 52rem) {
  main > .how ol,
  .faq__list,
  main > .who {
    grid-template-columns: 1fr;
  }
}

main > .facts dl > dt:first-of-type {
  padding-top: 0;
  border-top: 0;
}

/* Tap/hover/focus belong to the whole rounded card: no rectangular tap flash or outline on the summary,
   only colour changes (no border, padding, weight or transform changes, so nothing reflows). */
main > .faq summary {
  -webkit-tap-highlight-color: transparent;
  border-radius: inherit;
  outline: none;
  user-select: none;
}

main > .faq summary:focus,
main > .faq summary:focus-visible {
  outline: none;
}

main > .faq details:has(summary:focus-visible) {
  box-shadow:
    0 0 0 2px var(--paper),
    0 0 0 4px var(--lilac-deep);
}

@media (hover: hover) {
  main > .faq details:not([open]):hover {
    background: rgb(221 213 246 / 0.45);
  }
}

main > .faq details:not([open]):has(summary:active) {
  background: rgb(221 213 246 / 0.6);
}

main > .faq summary::after {
  transition: none;
}
