:root {
  --paper: #f6f5fb;
  --white: #ffffff;
  --ink: #2a2440;
  --ink-soft: #6b6584;
  --line: rgb(42 36 64 / 0.1);

  --lilac: #ddd5f6;
  --peach: #ffdac8;
  --mint: #cdeedd;
  --butter: #f8ecb0;
  --sky: #d3e5f7;
  --rose: #ffd6da;

  --lilac-deep: #9d8ce3;
  --peach-deep: #f2a07f;
  --mint-deep: #6fc29a;
  --rose-deep: #e86f80;

  --serif: "Newsreader", Georgia, serif;
  --sans: "Geist", system-ui, sans-serif;
  --measure: 34rem;
  --gutter: clamp(1.25rem, 5vw, 4rem);
  --wide: 76rem;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
p,
ol,
ul,
figure {
  margin: 0;
}

a {
  color: inherit;
}

:focus-visible {
  outline: 2px solid var(--lilac-deep);
  outline-offset: 3px;
}

h1,
h2 {
  font-family: var(--serif);
  font-weight: 380;
  font-optical-sizing: auto;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

h2 {
  font-size: clamp(2.2rem, 4.5vw, 3.6rem);
  line-height: 1.04;
}

h3 {
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.3;
}

main > section {
  max-width: var(--wide);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* Soft pastel light drifting behind the hero */

.wash {
  position: absolute;
  inset: 0 0 auto;
  height: 980px;
  overflow: hidden;
  pointer-events: none;
  z-index: -1;
}

.wash span {
  position: absolute;
  width: 46vw;
  aspect-ratio: 1;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.75;
  animation: drift 26s ease-in-out infinite alternate;
}

.wash span:nth-child(1) {
  top: -10%;
  left: -8%;
  background: var(--lilac);
}

.wash span:nth-child(2) {
  top: 15%;
  right: -12%;
  background: var(--peach);
  animation-duration: 32s;
  animation-delay: -8s;
}

.wash span:nth-child(3) {
  top: 50%;
  left: 30%;
  width: 34vw;
  background: var(--mint);
  animation-duration: 38s;
  animation-delay: -14s;
}

@keyframes drift {
  to {
    transform: translate(6vw, 4vw) scale(1.12);
  }
}

/* Voice mark: three rings that move as one */

.mark {
  position: relative;
  display: inline-block;
  flex: none;
  width: 2.75rem;
  aspect-ratio: 1;
}

.mark i {
  position: absolute;
  inset: 0;
  border: 1.5px solid var(--peach-deep);
  border-radius: 50%;
  animation: breathe 3.6s ease-in-out infinite;
}

.mark i:nth-child(2) {
  inset: 13%;
  border-color: var(--lilac-deep);
  animation-delay: -0.4s;
}

.mark i:nth-child(3) {
  inset: 27%;
  border-color: var(--mint-deep);
  animation-delay: -0.8s;
}

.mark--small {
  width: 1.4rem;
}

.mark--small i {
  animation: none;
}

@keyframes breathe {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.06) translate(1%, -1%);
  }
}

@keyframes hear {
  0% {
    transform: scale(0.9);
    opacity: 1;
  }
  100% {
    transform: scale(1.25);
    opacity: 0.35;
  }
}

@keyframes talk {
  0%,
  100% {
    transform: scale(1) translate(0, 0);
  }
  30% {
    transform: scale(1.14) translate(2%, -2%);
  }
  65% {
    transform: scale(0.92) translate(-2%, 1%);
  }
}

@keyframes think {
  to {
    transform: rotate(360deg) scale(0.94);
  }
}

[data-state="hearing"] .mark i {
  animation: hear 0.9s ease-out infinite;
}

[data-state="thinking"] .mark i {
  border-style: dashed;
  animation: think 1.2s linear infinite;
}

[data-state="speaking"] .mark i {
  animation: talk 0.6s ease-in-out infinite;
}

[data-state="emergency"] .mark i {
  border-color: var(--rose-deep);
  animation: hear 0.7s ease-out infinite;
}

[data-state] .mark i:nth-child(2) {
  animation-delay: -0.15s;
}

[data-state] .mark i:nth-child(3) {
  animation-delay: -0.3s;
}

/* Header */

.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  max-width: var(--wide);
  margin-inline: auto;
  padding: 1.5rem var(--gutter);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  text-decoration: none;
}

.top nav {
  display: flex;
  gap: 0.35rem;
  padding: 0.3rem;
  border-radius: 999px;
  background: rgb(255 255 255 / 0.6);
  backdrop-filter: blur(12px);
  font-size: 0.92rem;
}

.top nav a {
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  color: var(--ink-soft);
  text-decoration: none;
  transition:
    background 0.2s,
    color 0.2s;
}

.top nav a:hover {
  background: var(--white);
  color: var(--ink);
}

/* Hero */

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) auto;
  gap: clamp(2.5rem, 6vw, 6rem);
  align-items: center;
  padding-block: clamp(2.5rem, 6vw, 5rem) clamp(4rem, 8vw, 7rem);
}

.hero h1 {
  font-size: clamp(3.2rem, 7vw, 6.2rem);
  line-height: 0.98;
  animation: rise 1s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

.lede {
  max-width: var(--measure);
  margin-top: 1.75rem;
  color: var(--ink-soft);
  font-size: 1.18rem;
  animation: rise 1s 0.12s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.5rem;
  margin-top: 2.25rem;
  animation: rise 1s 0.24s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
}

.button {
  display: inline-block;
  padding: 0.9rem 1.6rem;
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper);
  font-weight: 500;
  text-decoration: none;
  box-shadow: 0 10px 24px -10px rgb(42 36 64 / 0.5);
  transition: transform 0.2s;
}

.button:hover {
  transform: translateY(-2px);
}

/* Phone */

.phone {
  position: relative;
  width: 340px;
  height: 680px;
  padding: 12px;
  border-radius: 56px;
  background: var(--ink);
  box-shadow:
    0 50px 100px -40px rgb(42 36 64 / 0.55),
    0 0 0 1px rgb(255 255 255 / 0.1) inset;
  animation: float-in 1.2s 0.2s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

@keyframes float-in {
  from {
    opacity: 0;
    transform: translateY(40px) rotate(2deg);
  }
}

.phone__island {
  position: absolute;
  top: 22px;
  left: 50%;
  width: 96px;
  height: 28px;
  border-radius: 20px;
  background: var(--ink);
  transform: translateX(-50%);
  z-index: 2;
}

/* The kitchen (shared by the phone and the demo board) */

.kit {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  background: var(--white);
  transition: background 0.4s;
}

.kit--phone {
  height: 100%;
  padding: 3.6rem 1.25rem 1.25rem;
  border-radius: 44px;
  overflow: hidden;
  font-size: 0.9rem;
}

.kit--board {
  height: 38rem;
  padding: clamp(1.25rem, 3vw, 2rem);
  border-radius: 2rem;
  box-shadow:
    0 0 0 1px var(--line),
    0 40px 80px -50px rgb(42 36 64 / 0.45);
}

.kit.is-emergency {
  background: #fff4f5;
}

.kit__head {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.kit__recipe {
  font-weight: 600;
  line-height: 1.3;
}

.kit__status {
  color: var(--ink-soft);
  font-size: 0.85em;
}

.is-emergency .kit__status {
  color: var(--rose-deep);
  font-weight: 600;
}

.kit__step {
  padding: 1rem 1.1rem;
  border-radius: 1.25rem;
  background: var(--paper);
}

.kit__count {
  color: var(--ink-soft);
  font-size: 0.8em;
}

.kit__title {
  margin-top: 0.15rem;
  font-family: var(--serif);
  font-size: 1.45em;
  line-height: 1.15;
}

.kit__bar {
  display: flex;
  gap: 4px;
  margin-top: 0.85rem;
}

.kit__bar i {
  flex: 1;
  height: 4px;
  border-radius: 4px;
  background: var(--line);
  transition: background 0.4s;
}

.kit__bar i.is-done {
  background: var(--mint-deep);
}

.kit__bar i.is-now {
  background: linear-gradient(90deg, var(--lilac-deep), var(--lilac), var(--lilac-deep));
  background-size: 200% 100%;
  animation: shimmer 1.8s linear infinite;
}

@keyframes shimmer {
  to {
    background-position: -200% 0;
  }
}

.kit__timers {
  display: grid;
  gap: 0.5rem;
  padding: 0;
  list-style: none;
}

.timer {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.75rem;
  padding: 0.55rem 0.9rem 0.55rem 0.6rem;
  border-radius: 999px;
  background: var(--peach);
  animation: pop 0.45s cubic-bezier(0.3, 1.4, 0.5, 1) both;
}

.timer:nth-child(2n) {
  background: var(--sky);
}

.timer.is-done {
  background: var(--mint);
  animation: done 0.6s ease 3;
}

@keyframes pop {
  from {
    opacity: 0;
    transform: scale(0.85);
  }
}

@keyframes done {
  50% {
    transform: scale(1.03);
  }
}

.timer__ring {
  width: 2rem;
  height: 2rem;
  transform: rotate(-90deg);
}

.timer__ring circle {
  fill: none;
  stroke-width: 3.5;
}

.timer__ring .track {
  stroke: rgb(255 255 255 / 0.7);
}

.timer__ring .fill {
  stroke: var(--ink);
  stroke-dasharray: 100;
  stroke-linecap: round;
}

.timer__name {
  font-weight: 500;
}

.timer__clock {
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.kit__talk {
  display: flex;
  flex: 1;
  flex-direction: column;
  justify-content: flex-end;
  gap: 0.55rem;
  min-height: 0;
  padding: 0;
  overflow: hidden;
  list-style: none;
}

.line {
  max-width: 88%;
  padding: 0.6rem 0.95rem;
  border-radius: 1.2rem;
  line-height: 1.45;
  animation: pop 0.35s cubic-bezier(0.3, 1.3, 0.5, 1) both;
}

.line--you {
  align-self: flex-end;
  border-bottom-right-radius: 0.35rem;
  background: var(--lilac);
}

.line--copilot {
  align-self: flex-start;
  border-bottom-left-radius: 0.35rem;
  background: var(--paper);
}

.is-emergency .line--copilot:last-child {
  background: var(--rose);
}

/* Ribbon of things people say */

.ribbon {
  padding-block: 1rem;
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}

.ribbon__track {
  display: flex;
  gap: 0.75rem;
  width: max-content;
  animation: slide 60s linear infinite;
}

.ribbon:hover .ribbon__track {
  animation-play-state: paused;
}

.ribbon span {
  padding: 0.6rem 1.2rem;
  border-radius: 999px;
  background: var(--lilac);
  font-family: var(--serif);
  font-size: 1.25rem;
  font-style: italic;
  white-space: nowrap;
}

.ribbon .p2 {
  background: var(--peach);
}

.ribbon .p3 {
  background: var(--mint);
}

.ribbon .p4 {
  background: var(--butter);
}

.ribbon .p5 {
  background: var(--sky);
}

@keyframes slide {
  to {
    transform: translateX(calc(-50% - 0.375rem));
  }
}

/* Demo */

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

.demo__intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 1.5rem clamp(2rem, 6vw, 6rem);
  align-items: end;
}

.demo__intro p {
  max-width: var(--measure);
  color: var(--ink-soft);
}

.demo__stage {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: start;
  margin-top: 3rem;
}

.say {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.say button {
  padding: 0.75rem 1.15rem;
  border: 0;
  border-radius: 999px;
  background: var(--white);
  box-shadow: 0 0 0 1px var(--line);
  color: var(--ink);
  font: inherit;
  font-family: var(--serif);
  font-size: 1.1rem;
  font-style: italic;
  text-align: left;
  cursor: pointer;
  transition:
    background 0.2s,
    transform 0.2s;
}

.say button:hover {
  background: var(--lilac);
  transform: translateY(-2px);
}

.say button:active {
  transform: scale(0.97);
}

.say .say--alert {
  background: var(--rose);
  box-shadow: none;
}

.say .say--alert:hover {
  background: #ffc3c9;
}

.say .say--calm {
  background: var(--mint);
  box-shadow: none;
}

.say .say--quiet {
  background: transparent;
  box-shadow: none;
  color: var(--ink-soft);
  font-family: var(--sans);
  font-size: 0.95rem;
  font-style: normal;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.say .say--quiet:hover {
  background: transparent;
}

.say [hidden] {
  display: none;
}

/* 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;
}

/* 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;
  }
}
