/* Fonts are the app's own (flutter-app/assets/fonts), Latin-subset to woff2. */
@font-face {
  font-family: "Fraunces";
  src: url("/static/fonts/Fraunces-Bold.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}

@font-face {
  font-family: "Plus Jakarta Sans";
  src: url("/static/fonts/PlusJakartaSans-Regular.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Plus Jakarta Sans";
  src: url("/static/fonts/PlusJakartaSans-SemiBold.woff2") format("woff2");
  font-weight: 600;
  font-display: swap;
}

@font-face {
  font-family: "Plus Jakarta Sans";
  src: url("/static/fonts/PlusJakartaSans-ExtraBold.woff2") format("woff2");
  font-weight: 800;
  font-display: swap;
}

@font-face {
  font-family: "JetBrains Mono";
  src: url("/static/fonts/JetBrainsMono-Medium.woff2") format("woff2");
  font-weight: 500;
  font-display: swap;
}

/* Brand palette (docs/product/brand) plus the app's Countdown state colours. */
:root {
  --night: #1f2a24;
  --night-deep: #141b17;
  --fridge-light: #ffe7a8;
  --basil: #0b6b4b;
  --mint: #61e8a8;
  --saffron: #fea92f;
  --tomato: #d9452b;
  --cream: #fff6e5;
  --ink: #18231e;
  --ink-soft: #3c5146;
  --chilli: #ff6c5d;
  --apricot: #ffb700;
  --display: "Fraunces", Georgia, serif;
  --body: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;

  color-scheme: light;
  font-family: var(--body);
  color: var(--ink);
  background: var(--cream);
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  line-height: 1.65;
  background: var(--cream);
}

/* ---------------------------------------------------------------------------
   Legal pages: calm cream, the app's type.
   --------------------------------------------------------------------------- */

header,
main,
footer {
  width: min(100% - 2rem, 48rem);
  margin-inline: auto;
}

header {
  padding-block: 1.5rem;
  border-bottom: 1px solid #ead9b8;
}

header a {
  color: inherit;
  font-family: var(--display);
  font-size: 1.25rem;
  text-decoration: none;
}

nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 0.75rem;
}

a {
  color: var(--basil);
}

nav a {
  color: var(--basil);
  font-family: var(--body);
  font-size: 1rem;
  font-weight: 600;
}

nav a[aria-current="page"] {
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

main {
  min-height: 70vh;
  padding-block: 2rem 3rem;
}

h1,
h2,
h3 {
  font-family: var(--display);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

h1 {
  font-size: clamp(2.25rem, 7vw, 3.25rem);
  margin-block: 0 0.5rem;
}

button {
  min-height: 48px;
  padding: 0.7rem 1.25rem;
  border: 0;
  border-radius: 999px;
  color: #fff;
  background: var(--basil);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-block: 1rem;
}

.notice {
  padding: 1rem 1.25rem;
  border-left: 4px solid var(--saffron);
  border-radius: 0 14px 14px 0;
  background: #fdeccc;
}

.status {
  min-height: 1.65em;
}

footer {
  padding-block: 1.5rem;
  border-top: 1px solid #ead9b8;
  font-size: 0.9rem;
}

:focus-visible {
  outline: 3px solid var(--saffron);
  outline-offset: 3px;
}

/* ---------------------------------------------------------------------------
   Landing page
   --------------------------------------------------------------------------- */

.landing {
  overflow-x: clip;
}

.landing main,
.landing .topbar,
.landing .site-footer {
  width: auto;
  margin: 0;
  padding: 0;
  min-height: 0;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 20;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  color: var(--night);
  background: var(--saffron);
  font-weight: 600;
}

.skip-link:focus {
  top: 1rem;
}

/* Top bar */
.landing .topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem clamp(1rem, 4vw, 3rem);
  background: rgb(31 42 36 / 90%);
  backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid rgb(255 246 229 / 8%);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--cream);
  font-family: var(--display);
  font-size: 1.15rem;
  text-decoration: none;
}

.brand img {
  border-radius: 9px;
}

.topbar nav {
  margin: 0;
  gap: 1.25rem;
}

.topbar nav a {
  color: rgb(255 246 229 / 80%);
  font-size: 0.95rem;
  text-decoration: none;
}

.topbar nav a:hover {
  color: var(--mint);
}

/* Hero */
.hero {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(2rem, 5vw, 4rem);
  min-height: calc(100svh - 4rem);
  padding: clamp(3rem, 8vw, 6rem) clamp(1rem, 6vw, 5rem);
  color: var(--cream);
  background:
    radial-gradient(60rem 40rem at 80% 110%, rgb(254 169 47 / 18%), transparent 60%),
    linear-gradient(180deg, var(--night) 0%, var(--night-deep) 100%);
}

.hero-glow {
  position: absolute;
  z-index: -1;
  right: 5%;
  top: 15%;
  width: min(42rem, 70vw);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgb(255 231 168 / 30%) 0%, rgb(254 169 47 / 8%) 40%, transparent 70%);
  filter: blur(10px);
  opacity: 0;
  animation: glow-on 1.2s 0.9s ease-out forwards, flicker 6s 3s ease-in-out infinite;
}

.wordmark {
  display: block;
  width: min(100%, 22rem);
  height: auto;
  margin-bottom: 2rem;
}

.hero h1 {
  margin: 0;
}

.struck {
  position: relative;
  display: inline-block;
  margin: 0;
  color: rgb(255 246 229 / 45%);
  font-size: clamp(1.25rem, 3vw, 1.75rem);
  font-weight: 600;
}

.struck::after {
  content: "";
  position: absolute;
  left: -2%;
  top: 52%;
  width: 104%;
  height: 3px;
  border-radius: 3px;
  background: var(--tomato);
  transform: scaleX(0);
  transform-origin: left;
  animation: strike 0.6s 0.4s cubic-bezier(0.7, 0, 0.3, 1) forwards;
}

.headline {
  margin: 0.25rem 0 0.75rem;
  font-family: var(--display);
  font-size: clamp(2.75rem, 7.5vw, 5.5rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.025em;
  opacity: 0;
  transform: translateY(16px);
  animation: rise 0.8s 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

.headline em {
  font-style: normal;
  color: var(--mint);
  text-shadow: 0 0 40px rgb(97 232 168 / 45%);
}

.tagline {
  margin: 0 0 1rem;
  color: var(--saffron);
  font-size: clamp(1.1rem, 2.5vw, 1.35rem);
  font-weight: 800;
  letter-spacing: 0.01em;
}

.lede {
  max-width: 34rem;
  margin: 0 0 2rem;
  color: rgb(255 246 229 / 78%);
  font-size: clamp(1.05rem, 2vw, 1.2rem);
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.5rem;
}

.store-link {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  min-height: 52px;
  padding: 0.8rem 1.5rem;
  border-radius: 999px;
  color: var(--night);
  background: var(--mint);
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 10px 30px -8px rgb(97 232 168 / 55%);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.store-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 40px -8px rgb(97 232 168 / 70%);
}

.store-link.dark {
  color: var(--cream);
  background: var(--night);
  box-shadow: 0 10px 30px -10px rgb(31 42 36 / 50%);
}

.ghost-link {
  color: var(--cream);
  font-weight: 600;
  text-decoration-color: rgb(255 246 229 / 35%);
  text-underline-offset: 5px;
}

.ghost-link:hover {
  text-decoration-color: var(--mint);
}

/* The fridge: door swings open, the light comes on, the food pops in. */
.hero-art {
  position: relative;
}

.fridge {
  display: block;
  width: min(100%, 30rem);
  margin-inline: auto;
  overflow: visible;
  filter: drop-shadow(0 30px 50px rgb(0 0 0 / 35%));
}

.fridge-door-closed {
  transform-box: fill-box;
  transform-origin: right center;
  animation: door-close-out 0.45s 0.3s ease-in forwards;
}

.fridge-door-open {
  transform-box: fill-box;
  transform-origin: left center;
  transform: scaleX(0);
  animation: door-open-in 0.5s 0.75s cubic-bezier(0.2, 1.4, 0.4, 1) forwards;
}

.fridge-spill {
  opacity: 0;
  animation: glow-on 1s 0.8s ease-out forwards;
}

.fridge-items > * {
  transform-box: fill-box;
  transform-origin: center;
  transform: scale(0);
  animation: pop 0.45s cubic-bezier(0.3, 1.6, 0.5, 1) forwards, bob 4s ease-in-out infinite;
}

.fridge-items > :nth-child(1) { animation-delay: 1s, 2.2s; }
.fridge-items > :nth-child(2) { animation-delay: 1.1s, 2.6s; }
.fridge-items > :nth-child(3) { animation-delay: 1.2s, 3s; }
.fridge-items > :nth-child(4) { animation-delay: 1.3s, 2.4s; }
.fridge-items > :nth-child(5) { animation-delay: 1.4s, 2.8s; }
.fridge-items > :nth-child(6) { animation-delay: 1.5s, 3.2s; }

/* Floating Countdown chips around the fridge */
.float-chips {
  margin: 0;
  padding: 0;
  list-style: none;
}

.chip {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 0.9rem;
  border: 1px solid rgb(255 246 229 / 12%);
  border-radius: 14px;
  color: var(--cream);
  background: rgb(26 30 27 / 75%);
  backdrop-filter: blur(10px);
  box-shadow: 0 12px 30px -10px rgb(0 0 0 / 50%);
  font-weight: 600;
  font-size: 0.95rem;
  white-space: nowrap;
  opacity: 0;
  animation: chip-in 0.6s cubic-bezier(0.2, 1.3, 0.4, 1) forwards, float 5s ease-in-out infinite;
}

.chip b {
  margin-left: 0.25rem;
  font-family: var(--mono);
  font-weight: 500;
  font-size: 0.8rem;
}

.chip .dot,
.dot {
  width: 0.6rem;
  height: 0.6rem;
  flex: none;
  border-radius: 50%;
}

.chip-urgent { left: 0; top: 18%; animation-delay: 1.8s, 2.4s; }
.chip-soon { right: 0; top: 42%; animation-delay: 2s, 3.1s; }
.chip-fresh { left: 8%; bottom: 8%; animation-delay: 2.2s, 2.7s; }

.chip-urgent .dot, .dot.urgent { background: var(--chilli); }
.chip-soon .dot, .dot.soon { background: var(--apricot); }
.chip-fresh .dot, .dot.fresh { background: var(--mint); }
.chip-urgent b, b.urgent { color: var(--chilli); }
.chip-soon b, b.soon { color: var(--apricot); }
.chip-fresh b, b.fresh { color: var(--mint); }

/* Marquee */
.marquee {
  overflow: hidden;
  padding-block: 1rem;
  color: var(--night);
  background: var(--saffron);
  transform: rotate(-1.5deg) scale(1.02);
  margin-block: -1rem;
  position: relative;
  z-index: 2;
  box-shadow: 0 10px 30px -10px rgb(0 0 0 / 30%);
}

.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee 40s linear infinite;
}

.marquee span {
  padding-inline: 1.25rem;
  font-family: var(--display);
  font-size: clamp(1.25rem, 3vw, 1.75rem);
  white-space: nowrap;
}

.marquee span::after {
  content: "•";
  margin-left: 2.5rem;
  color: var(--tomato);
}

/* How it works */
.how {
  padding: clamp(5rem, 10vw, 8rem) clamp(1rem, 6vw, 5rem) clamp(4rem, 8vw, 6rem);
  text-align: center;
}

.overline {
  margin: 0;
  color: var(--basil);
  font-family: var(--mono);
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.how h2 {
  margin: 0.5rem auto 3.5rem;
  max-width: 18ch;
  font-size: clamp(2.25rem, 6vw, 3.75rem);
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1rem, 3vw, 2rem);
  max-width: 72rem;
  margin-inline: auto;
  text-align: left;
}

.step {
  padding: 1rem 1rem 1.75rem;
  border-radius: 28px;
  background: #fff;
  box-shadow: 0 1px 0 #ead9b8, 0 20px 50px -30px rgb(31 42 36 / 35%);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.step:hover,
.js .step.reveal.is-visible:hover {
  transform: translateY(-6px);
  box-shadow: 0 1px 0 #ead9b8, 0 30px 60px -30px rgb(31 42 36 / 45%);
}

.step h3 {
  margin: 0.25rem 0.5rem 0.5rem;
  font-size: 1.6rem;
}

.step > p {
  margin: 0 0.5rem;
  color: var(--ink-soft);
}

.step > .step-num {
  margin-top: 1.25rem;
  color: var(--basil);
  font-family: var(--mono);
  font-size: 0.85rem;
}

.vignette {
  position: relative;
  overflow: hidden;
  height: 18rem;
  border-radius: 20px;
  background: #111412;
  color: #f2f4ef;
}

/* 1. Scan viewfinder */
.scan .shelf {
  position: absolute;
  inset: 22% 10% 22%;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  align-items: end;
  gap: 8%;
  border-bottom: 4px solid #3a332a;
  background: linear-gradient(180deg, rgb(255 231 168 / 6%), rgb(255 231 168 / 16%));
  padding-inline: 4%;
}

.food {
  display: block;
  border-radius: 10px;
}

.f1 { height: 40%; border-radius: 50%; aspect-ratio: 1; background: #f2ead7; }
.f2 { height: 55%; background: #f6f1e4; }
.f3 { height: 80%; border-radius: 40% 40% 12px 12px; background: #3d8b4f; }
.f4 { height: 95%; background: #e8eef2; }

.box {
  position: absolute;
  padding: 0.15rem 0.45rem;
  border: 2px solid var(--mint);
  border-radius: 6px;
  color: #111412;
  background: var(--mint);
  font-family: var(--mono);
  font-size: 0.7rem;
  font-weight: 500;
  white-space: nowrap;
  opacity: 0;
  transform: scale(0.6);
}

.b1 { left: 8%; top: 44%; }
.b2 { left: 30%; top: 30%; }
.b3 { left: 50%; top: 18%; }
.b4 { right: 6%; top: 10%; }

.sweep {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 30%;
  background: linear-gradient(180deg, transparent, rgb(97 232 168 / 35%));
  border-bottom: 2px solid var(--mint);
  transform: translateY(-100%);
}

.corner {
  position: absolute;
  width: 1.5rem;
  height: 1.5rem;
  border: 3px solid var(--fridge-light);
}

.tl { left: 6%; top: 7%; border-right: 0; border-bottom: 0; border-radius: 8px 0 0; }
.tr { right: 6%; top: 7%; border-left: 0; border-bottom: 0; border-radius: 0 8px 0 0; }
.bl { left: 6%; bottom: 7%; border-right: 0; border-top: 0; border-radius: 0 0 0 8px; }
.br { right: 6%; bottom: 7%; border-left: 0; border-top: 0; border-radius: 0 0 8px; }

/* 2. Countdown chart + rows */
.countdown {
  padding: 8% 8% 0;
}

.chart {
  display: flex;
  align-items: flex-end;
  gap: 6%;
  height: 36%;
  padding: 0 2%;
}

.bar {
  display: flex;
  flex: 1;
  flex-direction: column-reverse;
  gap: 3px;
  height: 100%;
  justify-content: flex-start;
  transform-origin: bottom;
}

.bar i {
  display: block;
  height: 30%;
  border-radius: 6px;
}

.bar i.urgent { background: var(--chilli); }
.bar i.soon { background: var(--apricot); }
.bar i.fresh { background: var(--mint); opacity: 0.85; }

.d1 i:first-child { height: 45%; }
.d3 i { height: 55%; }
.d4 i { height: 25%; }
.d6 i, .d7 i { height: 20%; }

.days {
  display: flex;
  justify-content: space-between;
  margin-top: 0.4rem;
  color: #a7afa8;
  font-family: var(--mono);
  font-size: 0.6rem;
  text-transform: uppercase;
}

.rows {
  margin: 0.8rem 0 0;
  padding: 0;
  list-style: none;
}

.rows li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.35rem;
  padding: 0.4rem 0.65rem;
  border-radius: 14px;
  background: #1a1e1b;
  font-size: 0.85rem;
  font-weight: 600;
  opacity: 0;
  transform: translateX(-12px);
}

.rows b {
  margin-left: auto;
  font-family: var(--mono);
  font-size: 0.75rem;
  font-weight: 500;
}

/* 3. Recipe meal card */
.recipe {
  display: grid;
  place-content: center;
  gap: 1rem;
  padding: 8%;
  background:
    radial-gradient(circle at 70% 20%, rgb(97 232 168 / 18%), transparent 55%),
    #111412;
}

.meal {
  padding: 1.1rem 1.25rem;
  border-radius: 20px;
  color: #10261b;
  background: var(--mint);
  box-shadow: 0 20px 40px -18px rgb(97 232 168 / 60%);
  transform: rotate(-3deg) translateY(20px);
  opacity: 0;
}

.meal p {
  margin: 0;
}

.meal-over {
  font-family: var(--mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.meal-title {
  margin-block: 0.2rem !important;
  font-family: var(--display);
  font-size: 1.35rem;
  line-height: 1.15;
}

.meal-meta {
  font-size: 0.8rem;
  font-weight: 600;
}

.pips {
  display: flex;
  gap: 0.3rem;
  margin-top: 0.6rem;
}

.pips span {
  width: 1.4rem;
  height: 0.4rem;
  border-radius: 99px;
  background: #10261b;
}

.cta-pill {
  justify-self: center;
  padding: 0.5rem 1.1rem;
  border-radius: 99px;
  color: #111412;
  background: var(--fridge-light);
  font-size: 0.85rem;
  font-weight: 800;
  opacity: 0;
}

/* Vignette animations run once the card scrolls into view (or straight
   away without JS). */
.is-visible .box,
html:not(.js) .box {
  animation: pop 0.4s cubic-bezier(0.3, 1.6, 0.5, 1) forwards;
}

.is-visible .b1 { animation-delay: 0.9s; }
.is-visible .b2 { animation-delay: 1.2s; }
.is-visible .b3 { animation-delay: 1.5s; }
.is-visible .b4 { animation-delay: 1.8s; }

.is-visible .sweep {
  animation: sweep 2.4s 0.2s ease-in-out infinite;
}

.is-visible .bar,
html:not(.js) .bar {
  animation: grow 0.7s cubic-bezier(0.2, 1.2, 0.4, 1) backwards;
}

.is-visible .d2 { animation-delay: 0.08s; }
.is-visible .d3 { animation-delay: 0.16s; }
.is-visible .d4 { animation-delay: 0.24s; }
.is-visible .d5 { animation-delay: 0.32s; }
.is-visible .d6 { animation-delay: 0.4s; }
.is-visible .d7 { animation-delay: 0.48s; }

.is-visible .rows li,
html:not(.js) .rows li {
  animation: slide-in 0.5s ease-out forwards;
}

.is-visible .rows li:nth-child(1) { animation-delay: 0.6s; }
.is-visible .rows li:nth-child(2) { animation-delay: 0.75s; }
.is-visible .rows li:nth-child(3) { animation-delay: 0.9s; }

.is-visible .meal,
html:not(.js) .meal {
  animation: deal 0.7s 0.3s cubic-bezier(0.2, 1.3, 0.4, 1) forwards;
}

.is-visible .cta-pill,
html:not(.js) .cta-pill {
  animation: glow-on 0.5s 0.9s ease-out forwards;
}

/* Reveal on scroll */
.js .reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

.steps .step:nth-child(2) { transition-delay: 0.1s; }
.steps .step:nth-child(3) { transition-delay: 0.2s; }

/* Closer */
.closer {
  display: grid;
  justify-items: center;
  padding: clamp(4rem, 10vw, 7rem) 1rem clamp(5rem, 10vw, 8rem);
  text-align: center;
  background:
    radial-gradient(36rem 22rem at 50% 30%, rgb(254 169 47 / 20%), transparent 70%),
    var(--cream);
}

.closer-icon {
  margin-bottom: 2rem;
  border-radius: 28px;
  box-shadow: 0 30px 60px -25px rgb(31 42 36 / 60%);
}

.struck.dark {
  color: #8a928c;
}

.js .struck.dark::after {
  animation: none;
}

.js .struck.dark.is-visible::after {
  animation: strike 0.6s 0.4s cubic-bezier(0.7, 0, 0.3, 1) forwards;
}

.headline.dark {
  margin-bottom: 2rem;
  color: var(--ink);
  opacity: 1;
  transform: none;
  animation: none;
}

.headline.dark em {
  color: var(--basil);
  text-shadow: none;
}

.js .headline.dark {
  opacity: 0;
  transform: translateY(28px);
}

.js .headline.dark.is-visible {
  opacity: 1;
  transform: none;
}

/* Footer */
.landing .site-footer {
  padding: 2rem clamp(1rem, 6vw, 5rem);
  color: rgb(255 246 229 / 70%);
  background: var(--night);
}

.site-footer nav {
  justify-content: center;
  margin: 0;
  gap: 0.5rem 1.75rem;
}

.site-footer nav a {
  color: rgb(255 246 229 / 80%);
  font-size: 0.95rem;
}

.site-footer nav a:hover {
  color: var(--mint);
}

/* Keyframes */
@keyframes strike { to { transform: scaleX(1); } }
@keyframes rise { to { opacity: 1; transform: none; } }
@keyframes glow-on { to { opacity: 1; } }
@keyframes flicker { 0%, 100% { opacity: 1; } 50% { opacity: 0.8; } }
@keyframes door-close-out { to { transform: scaleX(0); } }
@keyframes door-open-in { to { transform: scaleX(1); } }
@keyframes pop { to { opacity: 1; transform: scale(1); } }
@keyframes bob { 0%, 100% { translate: 0 0; } 50% { translate: 0 -2px; } }
@keyframes chip-in { from { opacity: 0; scale: 0.7; } to { opacity: 1; scale: 1; } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes marquee { to { transform: translateX(-50%); } }
@keyframes sweep { 0% { transform: translateY(-100%); } 60%, 100% { transform: translateY(340%); } }
@keyframes grow { from { transform: scaleY(0); } }
@keyframes slide-in { to { opacity: 1; transform: none; } }
@keyframes deal { to { opacity: 1; transform: rotate(-3deg); } }

/* Responsive */
@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: 0;
    text-align: left;
  }

  .hero-art {
    max-width: 26rem;
    width: 100%;
    margin-inline: auto;
  }

  .steps {
    grid-template-columns: 1fr;
    max-width: 30rem;
  }
}

@media (max-width: 480px) {
  .topbar nav a[href="/privacy"] {
    display: none;
  }

  .chip {
    font-size: 0.8rem;
    padding: 0.4rem 0.7rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-delay: 0s !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0s !important;
  }

  .marquee-track {
    animation: none;
  }

  .sweep {
    display: none;
  }
}
