:root {
  --cream: #fff8f2;
  --cream-deep: #f3e6d8;
  --charcoal: #2d2d2d;
  --muted: #5c564f;
  --violet: #6e39d8;
  --violet-deep: #4f24a8;
  --yellow: #ffc83d;
  --coral: #ff6b6b;
  --white: #ffffff;
  --shadow: 0 24px 60px rgba(45, 45, 45, 0.12);
  --radius: 18px;
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Manrope", sans-serif;
}

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

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  font-family: var(--font-body);
  color: var(--charcoal);
  background: var(--cream);
  overflow-x: hidden;
}

body.has-fancy-cursor,
body.has-fancy-cursor * {
  cursor: none !important;
}

.atmosphere {
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(ellipse 70% 55% at 15% 20%, rgba(255, 200, 61, 0.35), transparent 55%),
    radial-gradient(ellipse 55% 50% at 88% 18%, rgba(255, 107, 107, 0.18), transparent 50%),
    radial-gradient(ellipse 60% 45% at 70% 85%, rgba(110, 57, 216, 0.12), transparent 55%),
    linear-gradient(165deg, #fff8f2 0%, #f7eadc 48%, #efe0d0 100%);
}

.grain {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.35;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.45'/%3E%3C/svg%3E");
  mix-blend-mode: soft-light;
}

/* Custom sniff cursor */
.cursor {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 10000;
  width: 0;
  height: 0;
  pointer-events: none;
  opacity: 0;
  transition: opacity 200ms ease;
}

body.has-fancy-cursor .cursor {
  opacity: 1;
}

.cursor-dot {
  position: absolute;
  width: 10px;
  height: 10px;
  margin: -5px 0 0 -5px;
  border-radius: 50%;
  background: var(--violet);
  box-shadow: 0 0 0 3px rgba(255, 200, 61, 0.45);
  transform: translate3d(var(--x, -100px), var(--y, -100px), 0);
}

.cursor-ring {
  position: absolute;
  width: 36px;
  height: 36px;
  margin: -18px 0 0 -18px;
  border-radius: 50%;
  border: 2px solid rgba(110, 57, 216, 0.45);
  transform: translate3d(var(--rx, -100px), var(--ry, -100px), 0);
  transition: width 180ms ease, height 180ms ease, margin 180ms ease, border-color 180ms ease;
}

body.cursor-hover .cursor-ring {
  width: 54px;
  height: 54px;
  margin: -27px 0 0 -27px;
  border-color: rgba(255, 200, 61, 0.8);
}

body.cursor-hover .cursor-dot {
  background: var(--yellow);
}

/* Floating snack crumbs */
.crumbs {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.crumb {
  position: absolute;
  border-radius: 50%;
  opacity: 0.55;
  animation: crumb-float linear infinite;
  will-change: transform;
}

.crumb.c1 {
  background: var(--yellow);
}
.crumb.c2 {
  background: var(--violet);
}
.crumb.c3 {
  background: var(--coral);
}

@keyframes crumb-float {
  0% {
    transform: translate3d(0, 110vh, 0) rotate(0deg);
    opacity: 0;
  }
  8% {
    opacity: 0.55;
  }
  92% {
    opacity: 0.45;
  }
  100% {
    transform: translate3d(var(--drift, 40px), -12vh, 0) rotate(360deg);
    opacity: 0;
  }
}

/* Confetti burst on successful signup */
.confetti {
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  overflow: hidden;
}

.confetti-piece {
  position: absolute;
  width: 8px;
  height: 12px;
  border-radius: 2px;
  animation: confetti-pop 900ms cubic-bezier(0.2, 0.7, 0.2, 1) forwards;
}

@keyframes confetti-pop {
  0% {
    transform: translate3d(0, 0, 0) rotate(0deg) scale(1);
    opacity: 1;
  }
  100% {
    transform: translate3d(var(--dx), var(--dy), 0) rotate(var(--rot)) scale(0.4);
    opacity: 0;
  }
}

.feature {
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}

.feature:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 36px rgba(45, 45, 45, 0.1);
  border-color: rgba(110, 57, 216, 0.22);
}

.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem clamp(1.25rem, 4vw, 4rem) 0;
}

.top-brand {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
  color: var(--charcoal);
  text-decoration: none;
}

.top-brand:hover {
  color: var(--violet-deep);
}

.langs {
  display: inline-flex;
  gap: 0.25rem;
  padding: 0.25rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.45);
  border: 1px solid rgba(45, 45, 45, 0.08);
  backdrop-filter: blur(8px);
}

.lang {
  display: inline-flex;
  align-items: center;
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--muted);
  text-decoration: none;
  font: 600 0.78rem/1 var(--font-body);
  letter-spacing: 0.06em;
  padding: 0.55rem 0.7rem;
  border-radius: 999px;
  cursor: pointer;
  transition: background 180ms ease, color 180ms ease;
}

.lang[aria-pressed="true"],
.lang[aria-current="page"] {
  background: var(--charcoal);
  color: var(--cream);
}

.lang:hover {
  color: var(--charcoal);
}

.lang[aria-pressed="true"]:hover,
.lang[aria-current="page"]:hover {
  color: var(--cream);
}

.hero {
  min-height: min(760px, calc(100svh - 5.5rem));
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 1.5rem;
  padding: 1.5rem clamp(1.25rem, 4vw, 4rem) 2rem;
  max-width: 1180px;
  margin: 0 auto;
}

.features {
  max-width: 1000px;
  margin: 0 auto;
  padding: 1rem clamp(1.25rem, 4vw, 4rem) 3rem;
}

.features h2 {
  margin: 0 0 1.5rem;
  text-align: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  letter-spacing: -0.02em;
  color: var(--charcoal);
}

.feature-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.feature {
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(45, 45, 45, 0.08);
  border-radius: var(--radius);
  padding: 1.4rem;
  backdrop-filter: blur(6px);
}

.feature h3 {
  margin: 0 0 0.5rem;
  font-size: 1.08rem;
  font-weight: 700;
  color: var(--violet-deep);
}

.feature p {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--muted);
}

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

.hero-copy {
  max-width: 34rem;
  min-width: 0;
  animation: rise 700ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.eyebrow {
  margin: 0 0 0.85rem;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--violet);
}

.brand {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(3.4rem, 9vw, 6.2rem);
  line-height: 0.92;
  letter-spacing: -0.03em;
  color: var(--charcoal);
}

.claim {
  margin: 1rem 0 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.25rem, 2.4vw, 1.7rem);
  line-height: 1.25;
  color: var(--charcoal);
  max-width: 18ch;
}

.lede {
  margin: 1rem 0 0;
  font-size: 1.05rem;
  line-height: 1.55;
  color: var(--muted);
  max-width: 36ch;
}

.waitlist {
  margin-top: 1.75rem;
  max-width: 28rem;
}

.waitlist-row {
  display: flex;
  gap: 0.55rem;
  align-items: stretch;
}

.waitlist input {
  flex: 1;
  min-width: 0;
  border: 1.5px solid rgba(45, 45, 45, 0.14);
  background: rgba(255, 255, 255, 0.72);
  color: var(--charcoal);
  border-radius: 999px;
  padding: 0.95rem 1.15rem;
  font: 500 1rem/1.2 var(--font-body);
  outline: none;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.waitlist input:focus {
  border-color: var(--violet);
  box-shadow: 0 0 0 4px rgba(110, 57, 216, 0.15);
}

.waitlist button {
  appearance: none;
  border: 0;
  cursor: pointer;
  white-space: nowrap;
  border-radius: 999px;
  padding: 0.95rem 1.25rem;
  background: var(--violet);
  color: var(--white);
  font: 700 0.95rem/1.1 var(--font-body);
  transition: transform 160ms ease, background 160ms ease, box-shadow 160ms ease;
  box-shadow: 0 10px 24px rgba(110, 57, 216, 0.28);
}

.waitlist button:hover {
  background: var(--violet-deep);
  transform: translateY(-1px);
}

.waitlist button:active {
  transform: translateY(1px) scale(0.98);
}

.waitlist button:disabled {
  opacity: 0.7;
  cursor: wait;
  transform: none;
}

.waitlist-note {
  margin: 0.75rem 0 0;
  font-size: 0.86rem;
  color: var(--muted);
}

.privacy {
  margin: 0.45rem 0 0;
  font-size: 0.78rem;
  line-height: 1.45;
  color: var(--muted);
  opacity: 0.9;
}

.social-proof {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin: 1rem 0 0;
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(110, 57, 216, 0.14);
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--violet-deep);
}

.social-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #2f9e5c;
  box-shadow: 0 0 0 0 rgba(47, 158, 92, 0.45);
  animation: pulse-dot 1.8s ease-out infinite;
}

@keyframes pulse-dot {
  0% {
    box-shadow: 0 0 0 0 rgba(47, 158, 92, 0.45);
  }
  70% {
    box-shadow: 0 0 0 8px rgba(47, 158, 92, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(47, 158, 92, 0);
  }
}

.demo {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0.5rem clamp(1.25rem, 4vw, 4rem) 2.5rem;
}

.demo h2 {
  margin: 0 0 1.4rem;
  text-align: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  letter-spacing: -0.02em;
}

.demo-flow {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  counter-reset: sniff;
}

.demo-step {
  text-align: center;
}

.demo-card {
  position: relative;
  height: 140px;
  margin-bottom: 0.85rem;
  border-radius: var(--radius);
  border: 1px solid rgba(45, 45, 45, 0.08);
  background: rgba(255, 255, 255, 0.65);
  display: grid;
  place-items: center;
  overflow: hidden;
}

.demo-plate {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 35%, #ff6b6b 0 14%, transparent 15%),
    radial-gradient(circle at 62% 42%, #ffc83d 0 16%, transparent 17%),
    radial-gradient(circle at 48% 62%, #7ecf8a 0 18%, transparent 19%),
    radial-gradient(circle at 50% 50%, #fff 0 46%, #e8d8c8 47% 100%);
  box-shadow: inset 0 0 0 6px #f4ebe2;
  animation: plate-spin 5s ease-in-out infinite;
}

.demo-sniff img {
  width: 72px;
  height: 72px;
  border-radius: 22%;
  animation: sniff-bob 2.4s ease-in-out infinite;
}

.demo-scan {
  position: absolute;
  left: 18%;
  right: 18%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--violet), transparent);
  animation: scan-line 2.2s ease-in-out infinite;
}

.demo-kcal-num {
  font-family: var(--font-display);
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--violet-deep);
  animation: kcal-pop 2.8s ease-in-out infinite;
}

.demo-kcal-unit {
  display: block;
  margin-top: -0.2rem;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.demo-step h3 {
  margin: 0 0 0.35rem;
  font-size: 1.05rem;
  color: var(--charcoal);
}

.demo-step p {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.45;
  color: var(--muted);
}

@keyframes plate-spin {
  0%,
  100% {
    transform: rotate(-4deg) scale(1);
  }
  50% {
    transform: rotate(4deg) scale(1.04);
  }
}

@keyframes sniff-bob {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-7px);
  }
}

@keyframes scan-line {
  0% {
    top: 22%;
    opacity: 0;
  }
  20% {
    opacity: 1;
  }
  80% {
    opacity: 1;
  }
  100% {
    top: 78%;
    opacity: 0;
  }
}

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

.stores {
  text-align: center;
  padding: 0 clamp(1.25rem, 4vw, 4rem) 2.8rem;
}

.stores-label {
  margin: 0 0 0.85rem;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.store-badges {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  justify-content: center;
}

.store-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  min-width: 148px;
  padding: 0.65rem 0.95rem;
  border-radius: 14px;
  background: rgba(45, 45, 45, 0.88);
  color: #fff;
  opacity: 0.72;
  user-select: none;
}

.store-badge small {
  display: block;
  font-size: 0.68rem;
  opacity: 0.75;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.store-badge strong {
  display: block;
  font-size: 0.98rem;
  font-weight: 700;
  line-height: 1.1;
}

@media (max-width: 760px) {
  .demo-flow {
    grid-template-columns: 1fr;
  }
}

.waitlist-status {
  margin: 0.85rem 0 0;
  font-size: 0.92rem;
  font-weight: 600;
}

.waitlist-status.ok {
  color: #1f7a45;
}

.waitlist-status.err {
  color: var(--coral);
}

.hero-visual {
  display: grid;
  place-items: center;
  position: relative;
  min-width: 0;
  min-height: 280px;
  animation: rise 900ms 80ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.hero-visual::before {
  content: "";
  position: absolute;
  width: min(78%, 420px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 200, 61, 0.55) 0%, transparent 68%);
  filter: blur(8px);
  z-index: 0;
}

.mascot-tilt {
  position: relative;
  z-index: 1;
  width: min(100%, 460px);
  transform-style: preserve-3d;
  transition: transform 140ms ease-out;
  will-change: transform;
}

.mascot {
  position: relative;
  z-index: 1;
  width: 100%;
  height: auto;
  object-fit: contain;
  border-radius: 28% / 24%;
  filter: drop-shadow(var(--shadow));
  animation: bob 3.6s ease-in-out infinite;
}

.inline-link,
.text-link {
  color: var(--violet-deep);
  font-weight: 700;
  text-decoration: none;
  border-bottom: 1px solid rgba(79, 36, 168, 0.28);
}

.inline-link:hover,
.text-link:hover {
  color: var(--violet);
  border-bottom-color: rgba(110, 57, 216, 0.55);
}

.privacy .inline-link {
  margin-left: 0.35rem;
  font-size: inherit;
}

.features-more {
  margin: 1.5rem 0 0;
  text-align: center;
}

.foot {
  padding: 0 1.4rem 1.4rem;
  text-align: center;
}

.foot-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem 1.25rem;
  justify-content: center;
  margin: 0 0 0.85rem;
}

.foot p {
  margin: 0;
  font-size: 0.8rem;
  color: var(--muted);
}

.foot-link {
  color: var(--violet-deep);
  font-weight: 700;
  text-decoration: none;
  border-bottom: 1px solid rgba(79, 36, 168, 0.28);
  transition: color 160ms ease, border-color 160ms ease;
}

.foot-link:hover {
  color: var(--violet);
  border-bottom-color: rgba(110, 57, 216, 0.55);
}

.page-404 {
  text-align: center;
  padding-top: 3rem;
}

.page-404 .eyebrow {
  margin: 0 0 0.5rem;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--violet);
}

.page {
  max-width: 720px;
  margin: 0 auto;
  padding: 1.5rem clamp(1.25rem, 4vw, 4rem) 3.5rem;
  animation: rise 700ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.page h1 {
  margin: 0.35rem 0 0.75rem;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2rem, 5vw, 2.75rem);
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.page-lede {
  margin: 0 0 1.5rem;
  font-size: 1.05rem;
  line-height: 1.55;
  color: var(--muted);
}

.page-meta {
  margin: 0 0 1.75rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--muted);
}

.crumbs-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  align-items: center;
  margin: 0 0 0.5rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--muted);
}

.crumbs-nav a {
  color: var(--violet-deep);
  text-decoration: none;
}

.crumbs-nav a:hover {
  color: var(--violet);
}

.faq-list {
  display: grid;
  gap: 0.75rem;
}

.faq-item {
  border: 1px solid rgba(45, 45, 45, 0.1);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.62);
  padding: 0.15rem 1rem 0.85rem;
}

.faq-item summary {
  cursor: pointer;
  list-style: none;
  padding: 0.95rem 0 0.55rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.12rem;
  letter-spacing: -0.02em;
}

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

.faq-item summary::after {
  content: "+";
  float: right;
  color: var(--violet);
  font-weight: 700;
}

.faq-item[open] summary::after {
  content: "–";
}

.faq-item p {
  margin: 0 0 0.55rem;
  font-size: 0.98rem;
  line-height: 1.55;
  color: var(--muted);
}

.page-cta {
  margin: 2rem 0 0;
  text-align: center;
}

.btn-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.9rem 1.35rem;
  border-radius: 999px;
  background: var(--violet);
  color: var(--white);
  font: 700 0.95rem/1.1 var(--font-body);
  text-decoration: none;
  box-shadow: 0 10px 24px rgba(110, 57, 216, 0.28);
  transition: transform 160ms ease, background 160ms ease;
}

.btn-link:hover {
  background: var(--violet-deep);
  transform: translateY(-1px);
}

.prose h2 {
  margin: 1.75rem 0 0.55rem;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.prose p {
  margin: 0 0 0.85rem;
  font-size: 0.98rem;
  line-height: 1.6;
  color: var(--muted);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

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

@keyframes bob {
  0%,
  100% {
    transform: translateY(0) rotate(-1.5deg);
  }
  50% {
    transform: translateY(-10px) rotate(1.5deg);
  }
}

@media (max-width: 860px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: 0.5rem;
    gap: 0.5rem;
  }

  .hero-copy {
    order: 1;
    text-align: center;
    margin-inline: auto;
  }

  .claim,
  .lede {
    margin-inline: auto;
  }

  .waitlist {
    margin-inline: auto;
  }

  .hero-visual {
    order: 0;
    min-height: 220px;
  }

  .mascot-tilt {
    width: min(72vw, 300px);
  }

  .mascot {
    width: 100%;
  }

  .waitlist-row {
    flex-direction: column;
  }

  .waitlist button {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-copy,
  .hero-visual,
  .mascot,
  .crumb,
  .confetti-piece,
  .demo-plate,
  .demo-sniff img,
  .demo-scan,
  .demo-kcal-num,
  .social-dot {
    animation: none !important;
  }

  .mascot-tilt {
    transition: none !important;
  }

  body.has-fancy-cursor,
  body.has-fancy-cursor * {
    cursor: auto !important;
  }

  .cursor {
    display: none !important;
  }
}
