/* ===========================================================
   Gusto — landing site
   Matches the app: warm cream canvas, terracotta anchor accent,
   Fraunces display + Figtree body, pill shapes, soft lifts.
   =========================================================== */

:root {
  /* palette — straight from app_theme.dart */
  --canvas:      #FBF6EC;
  --canvas-deep: #F3EBDA;
  --surface:     #FFFDF8;
  --ink:         #2B2722;
  --ink-soft:    #6B6256;
  --ink-faint:   #A89E8E;
  --brand:       #CE5736;
  --brand-deep:  #9C3D22;
  --brand-soft:  #F6DDD1;
  --line:        #E9DFCB;

  /* radii */
  --r-sm: 14px;
  --r-md: 22px;
  --r-lg: 30px;
  --pill: 999px;

  /* shadows */
  --shadow-soft: 0 10px 24px rgba(107, 91, 62, .10);
  --shadow-lift: 0 18px 34px rgba(107, 91, 62, .16);

  --maxw: 1160px;
  --ease: cubic-bezier(.22, 1, .36, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: "Figtree", system-ui, sans-serif;
  background: var(--canvas);
  color: var(--ink);
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  position: relative;
}

/* warm radial wash under everything */
body::before {
  content: "";
  position: fixed; inset: 0;
  background:
    radial-gradient(60vw 50vh at 78% -8%, rgba(206, 87, 54, .14), transparent 60%),
    radial-gradient(50vw 50vh at -10% 18%, rgba(224, 136, 59, .12), transparent 55%);
  z-index: -2;
  pointer-events: none;
}

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

/* ---------- typography ---------- */
.display {
  font-family: "Fraunces", serif;
  font-weight: 600;
  font-size: clamp(2.7rem, 6.4vw, 4.6rem);
  line-height: 1.02;
  letter-spacing: -.02em;
  color: var(--ink);
}
.display em {
  font-style: italic;
  color: var(--brand);
}
.display--md { font-size: clamp(2rem, 4vw, 3.1rem); line-height: 1.06; }

.lede {
  font-size: clamp(1.05rem, 1.4vw, 1.2rem);
  color: var(--ink-soft);
  max-width: 30rem;
  margin-top: 1.4rem;
}

/* section labels — colored bar + uppercase tracked text */
.label, .eyebrow {
  display: inline-flex; align-items: center; gap: .6rem;
  font-size: .76rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .16em;
  color: var(--brand-deep);
}
.label i, .eyebrow i {
  width: 26px; height: 3px; border-radius: 999px;
  background: var(--brand); display: inline-block;
}
.label--light { color: var(--brand-soft); }
.label--light i { background: var(--brand-soft); }

.section-head { text-align: center; max-width: 40rem; margin: 0 auto 3.2rem; }
.section-head .label, .section-head .eyebrow { margin-bottom: 1rem; }
.section-sub { color: var(--ink-soft); margin-top: 1rem; font-size: 1.08rem; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  font-family: "Figtree", sans-serif; font-weight: 700; font-size: 1rem;
  text-decoration: none; cursor: pointer; border: none;
  transition: transform .18s var(--ease), box-shadow .25s var(--ease), background .2s;
  white-space: nowrap;
}
.btn--pill { border-radius: var(--pill); padding: .95rem 1.6rem; }
.btn--brand {
  background: var(--brand); color: var(--canvas);
  box-shadow: var(--shadow-soft);
}
.btn--brand b { transition: transform .25s var(--ease); }
.btn--brand:hover { transform: translateY(-2px); box-shadow: var(--shadow-lift); background: #d8603e; }
.btn--brand:hover b { transform: translateX(4px); }
.btn--brand:active { transform: scale(.97); }
.btn--ghost {
  background: var(--surface); color: var(--ink);
  border: 1.5px solid var(--line);
}
.btn--ghost:hover { transform: translateY(-2px); border-color: var(--brand); color: var(--brand-deep); }

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; gap: 1.5rem;
  max-width: var(--maxw); margin: 0 auto;
  padding: 1rem clamp(1.2rem, 4vw, 2.5rem);
  transition: background .3s, box-shadow .3s, padding .3s;
}
.nav.scrolled {
  background: rgba(251, 246, 236, .82);
  backdrop-filter: blur(14px) saturate(1.2);
  box-shadow: 0 1px 0 var(--line);
  border-radius: 0 0 var(--r-md) var(--r-md);
}
.brand { display: flex; align-items: center; gap: .55rem; text-decoration: none; }
.brand__mark { width: 38px; height: 38px; border-radius: 11px; box-shadow: var(--shadow-soft); }
.brand__word {
  font-family: "Fraunces", serif; font-weight: 700; font-size: 1.5rem;
  color: var(--ink); letter-spacing: -.01em;
}
.nav__links { display: flex; gap: 1.8rem; margin-left: auto; }
.nav__links a {
  color: var(--ink-soft); text-decoration: none; font-weight: 600; font-size: .98rem;
  position: relative; transition: color .2s;
}
.nav__links a::after {
  content: ""; position: absolute; left: 0; bottom: -5px; height: 2px; width: 0;
  background: var(--brand); border-radius: 2px; transition: width .25s var(--ease);
}
.nav__links a:hover { color: var(--ink); }
.nav__links a:hover::after { width: 100%; }
.nav__cta { padding: .65rem 1.3rem; font-size: .95rem; }

/* ---------- hero ---------- */
.hero {
  max-width: var(--maxw); margin: 0 auto;
  padding: clamp(2.5rem, 6vw, 5rem) clamp(1.2rem, 4vw, 2.5rem) 2rem;
  display: grid; grid-template-columns: 1.05fr .95fr; gap: 2rem; align-items: center;
}
.eyebrow { margin-bottom: 1.4rem; }
.hero h1 { margin-bottom: .3rem; }
.hero__cta { display: flex; gap: .9rem; margin-top: 2rem; flex-wrap: wrap; }
.hero__trust {
  display: flex; align-items: center; gap: .7rem; margin-top: 1.8rem;
  color: var(--ink-soft); font-size: .95rem; font-style: italic;
}
.stars { color: var(--brand); letter-spacing: 2px; font-style: normal; }

/* hero art */
.hero__art { position: relative; min-height: 460px; display: grid; place-items: center; }
.blob {
  position: absolute; inset: 6% 4%;
  background:
    radial-gradient(circle at 50% 42%, rgba(206,87,54,.26), rgba(206,87,54,.08) 62%, transparent 72%);
  border-radius: 46% 54% 58% 42% / 52% 44% 56% 48%;
  filter: blur(2px);
  animation: morph 12s ease-in-out infinite;
}
@keyframes morph {
  0%,100% { border-radius: 46% 54% 58% 42% / 52% 44% 56% 48%; }
  50%     { border-radius: 58% 42% 45% 55% / 45% 58% 42% 55%; }
}
.mascot-stage { position: relative; z-index: 2; }
.mascot {
  width: clamp(230px, 30vw, 340px); display: block;
  filter: drop-shadow(0 26px 30px rgba(107,91,62,.22));
  animation: bob 3.2s ease-in-out infinite;
}
@keyframes bob {
  0%,100% { transform: translateY(0) rotate(-1deg); }
  50%     { transform: translateY(-14px) rotate(1deg); }
}

/* floating chips + recipe card around mascot */
.chip {
  position: absolute; z-index: 3;
  background: var(--surface); border: 1.5px solid var(--line);
  border-radius: var(--pill); padding: .6rem 1rem;
  font-weight: 600; font-size: .9rem; box-shadow: var(--shadow-soft);
  animation: floaty 5s ease-in-out infinite;
}
.chip--ask { top: 4%; left: -2%; color: var(--ink); }
.chip--reply {
  bottom: 7%; right: -2%; background: var(--brand); color: var(--canvas);
  border-color: transparent; animation-delay: 1.5s;
}
@keyframes floaty { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

.card-float {
  position: absolute; z-index: 3; right: -6%; top: 38%;
  width: 230px; background: var(--surface);
  border: 1.5px solid var(--line); border-radius: var(--r-md);
  padding: .9rem; display: flex; gap: .75rem; align-items: center;
  box-shadow: var(--shadow-lift); animation: floaty 6s ease-in-out infinite .8s;
}
.rc__emoji {
  font-size: 1.9rem; width: 52px; height: 52px; flex: none;
  display: grid; place-items: center; border-radius: var(--r-sm);
  background: linear-gradient(160deg, rgba(206,87,54,.26), rgba(206,87,54,.09));
}
.rc__title { font-family: "Fraunces", serif; font-weight: 600; font-size: 1rem; line-height: 1.1; }
.rc__tag { font-size: .78rem; color: var(--ink-soft); margin: .2rem 0 .45rem; }
.rc__pills { display: flex; gap: .35rem; }
.rc__pills span {
  font-size: .68rem; font-weight: 700; background: var(--canvas-deep);
  padding: .2rem .5rem; border-radius: var(--pill); color: var(--ink-soft);
}

/* ---------- marquee ---------- */
.marquee {
  overflow: hidden; border-block: 1.5px solid var(--line);
  background: var(--canvas-deep); margin: 1rem 0 5rem;
  padding: .85rem 0; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee__track {
  display: flex; gap: 1.6rem; width: max-content;
  animation: scroll 32s linear infinite;
  font-family: "Fraunces", serif; font-weight: 600; font-size: 1.15rem;
  color: var(--brand-deep);
}
.marquee__track span:nth-child(even) { color: var(--ink-faint); }
@keyframes scroll { to { transform: translateX(-50%); } }

/* ---------- how it works ---------- */
.how, .recipes { max-width: var(--maxw); margin: 0 auto; padding: 4rem clamp(1.2rem, 4vw, 2.5rem) 5rem; }
.steps { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.step {
  background: var(--surface); border: 1.5px solid var(--line);
  border-radius: var(--r-lg); padding: 2rem 1.6rem; position: relative;
  box-shadow: var(--shadow-soft); transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.step:hover { transform: translateY(-6px); box-shadow: var(--shadow-lift); }
.step__num {
  font-family: "Fraunces", serif; font-weight: 700; font-size: 1rem;
  color: var(--brand); border: 1.5px solid var(--brand-soft);
  width: 46px; height: 46px; border-radius: var(--pill);
  display: grid; place-items: center; background: var(--brand-soft);
}
.step__mascot {
  position: absolute; top: 1.4rem; right: 1.4rem; width: 66px;
  filter: drop-shadow(0 8px 12px rgba(107,91,62,.2));
}
.step h3 { font-family: "Fraunces", serif; font-weight: 600; font-size: 1.35rem; margin: 1.2rem 0 .5rem; }
.step p { color: var(--ink-soft); font-size: .98rem; }

/* ---------- recipes grid ---------- */
.recipe-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; }
.recipe {
  background: var(--surface); border: 1.5px solid var(--line);
  border-radius: var(--r-lg); overflow: hidden;
  box-shadow: var(--shadow-soft);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.recipe:hover { transform: translateY(-7px) rotate(-.6deg); box-shadow: var(--shadow-lift); }
.recipe__hero {
  font-size: 3.4rem; height: 130px; display: grid; place-items: center;
  background:
    radial-gradient(circle at 50% 60%, color-mix(in srgb, var(--accent) 28%, transparent), color-mix(in srgb, var(--accent) 8%, transparent) 70%);
}
.recipe:hover .recipe__hero { animation: wiggle .6s var(--ease); }
@keyframes wiggle { 25% { transform: rotate(-6deg) scale(1.08);} 60% { transform: rotate(5deg) scale(1.06);} }
.recipe__meta { padding: 1.1rem 1.2rem 1.4rem; }
.recipe__meta h3 { font-family: "Fraunces", serif; font-weight: 600; font-size: 1.18rem; line-height: 1.12; }
.recipe__meta p { color: var(--ink-soft); font-size: .88rem; margin: .4rem 0 .9rem; }
.recipe__pills { display: flex; gap: .4rem; }
.recipe__pills span {
  font-size: .72rem; font-weight: 700; background: var(--canvas-deep);
  padding: .28rem .6rem; border-radius: var(--pill); color: var(--ink-soft);
}

/* ---------- cook mode ---------- */
.cookmode { padding: 1rem clamp(1.2rem, 4vw, 2.5rem) 5rem; }
.cookmode__inner {
  max-width: var(--maxw); margin: 0 auto;
  background:
    radial-gradient(80% 120% at 100% 0%, #b94428, transparent 55%),
    linear-gradient(160deg, #a23f23, #7e2f17);
  color: var(--canvas); border-radius: 40px;
  padding: clamp(2.2rem, 5vw, 4rem);
  display: grid; grid-template-columns: 1.1fr .9fr; gap: 3rem; align-items: center;
  box-shadow: var(--shadow-lift); position: relative; overflow: hidden;
}
.cookmode__inner::after {
  content: "🍜"; position: absolute; font-size: 13rem; right: -2rem; bottom: -3rem;
  opacity: .08; transform: rotate(-12deg);
}
.cookmode__copy h2 { color: var(--canvas); margin: 1rem 0 1.2rem; }
.cookmode__copy > p { color: #f4ddcf; max-width: 32rem; font-size: 1.06rem; }
.ticks { list-style: none; margin-top: 1.6rem; display: grid; gap: .7rem; }
.ticks li { position: relative; padding-left: 2rem; color: #fbeee6; font-weight: 500; }
.ticks li::before {
  content: "✓"; position: absolute; left: 0; top: -1px;
  width: 22px; height: 22px; border-radius: 999px;
  background: var(--brand-soft); color: var(--brand-deep);
  font-size: .75rem; font-weight: 800; display: grid; place-items: center;
}

/* chat demo */
.chatdemo {
  background: rgba(251,246,236,.08); border: 1.5px solid rgba(251,246,236,.18);
  border-radius: var(--r-lg); padding: 1.3rem;
  display: flex; flex-direction: column; gap: .7rem; position: relative; z-index: 1;
}
.bubble {
  max-width: 84%; padding: .75rem 1.05rem; font-size: .95rem; line-height: 1.4;
  border-radius: 20px;
}
.bubble--a {
  background: var(--surface); color: var(--ink); align-self: flex-start;
  border-bottom-left-radius: 6px; box-shadow: var(--shadow-soft);
}
.bubble--u {
  background: var(--brand); color: var(--canvas); align-self: flex-end;
  border-bottom-right-radius: 6px; font-weight: 600;
}
.typing { display: inline-flex; gap: 5px; padding: .15rem 0; }
.typing i {
  width: 8px; height: 8px; border-radius: 999px; background: var(--ink-faint);
  animation: blink 1.3s infinite both;
}
.typing i:nth-child(2) { animation-delay: .2s; }
.typing i:nth-child(3) { animation-delay: .4s; }
@keyframes blink { 0%,60%,100% { opacity: .3; transform: translateY(0);} 30% { opacity: 1; transform: translateY(-4px);} }

/* ---------- CTA ---------- */
.cta { padding: 1rem clamp(1.2rem, 4vw, 2.5rem) 6rem; }
.cta__card {
  max-width: 720px; margin: 0 auto; text-align: center;
  background: var(--surface); border: 1.5px solid var(--line);
  border-radius: 40px; padding: clamp(2.4rem, 5vw, 3.6rem) 2rem;
  box-shadow: var(--shadow-lift); position: relative;
}
.cta__mascot {
  width: 120px; margin: -5.5rem auto .6rem; display: block;
  filter: drop-shadow(0 14px 18px rgba(107,91,62,.22));
  animation: bob 3.4s ease-in-out infinite;
}
.cta__card h2 { font-style: italic; }
.cta__card > p { color: var(--ink-soft); max-width: 34rem; margin: 1rem auto 2rem; font-size: 1.08rem; }
.cta__buttons { display: flex; gap: .8rem; justify-content: center; flex-wrap: wrap; }
.store-btn {
  display: inline-flex; align-items: center; gap: .4rem;
  background: var(--ink); color: var(--canvas); text-decoration: none;
  padding: .8rem 1.4rem; border-radius: var(--pill); font-weight: 600; font-size: .9rem;
  transition: transform .18s var(--ease), box-shadow .25s;
  box-shadow: var(--shadow-soft);
}
.store-btn b { font-weight: 800; }
.store-btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-lift); }
.store-btn--alt { background: var(--brand); }
.cta__fine { display: block; margin-top: 1.2rem; color: var(--ink-faint); font-size: .85rem; }

/* ---------- footer ---------- */
.footer {
  max-width: var(--maxw); margin: 0 auto; text-align: center;
  padding: 3rem clamp(1.2rem, 4vw, 2.5rem) 4rem;
  border-top: 1.5px solid var(--line);
}
.footer__brand { display: inline-flex; align-items: center; gap: .5rem; }
.footer__brand img { width: 32px; height: 32px; border-radius: 9px; }
.footer__brand span { font-family: "Fraunces", serif; font-weight: 700; font-size: 1.3rem; }
.footer__tag { color: var(--ink-soft); margin: .5rem 0 1.3rem; font-style: italic; }
.footer__links { display: flex; gap: 1.5rem; justify-content: center; flex-wrap: wrap; margin-bottom: 1.5rem; }
.footer__links a { color: var(--ink-soft); text-decoration: none; font-weight: 600; font-size: .92rem; }
.footer__links a:hover { color: var(--brand-deep); }
.footer small { color: var(--ink-faint); }

/* ---------- floaties (background emoji) ---------- */
.floaties { position: fixed; inset: 0; z-index: -1; pointer-events: none; }
.floaties span {
  position: absolute; left: var(--x); bottom: -10vh; font-size: 1.6rem;
  opacity: .5; transform: scale(var(--s));
  animation: rise 18s linear infinite; animation-delay: var(--d);
}
@keyframes rise {
  0%   { transform: translateY(0) scale(var(--s)) rotate(0); opacity: 0; }
  10%  { opacity: .5; }
  90%  { opacity: .5; }
  100% { transform: translateY(-118vh) scale(var(--s)) rotate(240deg); opacity: 0; }
}

/* ---------- reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s var(--ease), transform .7s var(--ease); transition-delay: var(--delay, 0s); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- responsive ---------- */
@media (max-width: 920px) {
  .hero { grid-template-columns: 1fr; text-align: center; }
  .eyebrow, .hero__cta, .hero__trust { justify-content: center; }
  .lede { margin-inline: auto; }
  .hero__art { min-height: 420px; margin-top: 1rem; }
  .recipe-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr; }
  .cookmode__inner { grid-template-columns: 1fr; }
  .nav__links { display: none; }
}
@media (max-width: 540px) {
  .recipe-grid { grid-template-columns: 1fr; }
  .card-float { right: 0; width: 200px; }
  .chip--ask { left: 0; }
  .chip--reply { right: 0; }
  .nav__cta { margin-left: auto; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}
