@font-face {
  font-family: "Geist";
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url(/fonts/geist-normal-latin-ext.woff2) format("woff2");
  unicode-range:
    U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Geist";
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url(/fonts/geist-normal-latin.woff2) format("woff2");
  unicode-range:
    U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215,
    U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Newsreader";
  font-style: italic;
  font-weight: 300 500;
  font-display: swap;
  src: url(/fonts/newsreader-italic-latin-ext.woff2) format("woff2");
  unicode-range:
    U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Newsreader";
  font-style: italic;
  font-weight: 300 500;
  font-display: swap;
  src: url(/fonts/newsreader-italic-latin.woff2) format("woff2");
  unicode-range:
    U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215,
    U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Newsreader";
  font-style: normal;
  font-weight: 300 600;
  font-display: swap;
  src: url(/fonts/newsreader-normal-latin-ext.woff2) format("woff2");
  unicode-range:
    U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Newsreader";
  font-style: normal;
  font-weight: 300 600;
  font-display: swap;
  src: url(/fonts/newsreader-normal-latin.woff2) format("woff2");
  unicode-range:
    U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215,
    U+FEFF, U+FFFD;
}

: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-icon {
  flex: none;
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 22%;
}

.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;
}
