:root{
  --cream:#EFFBF7;
  --cream-2:#E1F5EF;
  --olive:#2B3A3C;
  --olive-2:#1B2628;
  --terracotta:#FE92B6;
  --butter:#FFD642;
  --berry:#DDE524;
  --teal:#50D4D8;
  --chili:#FF5A36;
  --ink:#333333;
  --paper:#fff;

  --font-display:'Fredoka', 'Roboto', sans-serif;
  --font-body:'Roboto', sans-serif;
}
*{box-sizing:border-box; margin:0; padding:0;}
html{scroll-behavior:smooth;}
body{
  font-family:var(--font-body);
  background:var(--cream);
  color:var(--ink);
  overflow-x:hidden;
}
h1,h2,h3{font-family:var(--font-display); font-weight:700; line-height:1.05; letter-spacing:-0.01em;}
.mono{font-family:var(--font-body); font-weight:500;}
a{text-decoration:none; color:inherit;}
img{display:block; max-width:100%;}
button{font-family:inherit; border:none; cursor:pointer;}
.wrap{max-width:1180px; margin:0 auto; padding:0 28px;}

/* NAV */
nav{
  position:sticky; top:0; z-index:60;
  display:flex; align-items:center; justify-content:space-between;
  padding:18px 28px;
  background:rgba(255,255,255,0.85);
  backdrop-filter:blur(10px);
  border-bottom:1px solid rgba(43,58,60,0.08);
}
.logo{font-family:var(--font-display); font-weight:700; font-size:22px; color:var(--olive); display:flex; align-items:center; gap:8px;}
.logo-dot{width:10px; height:10px; border-radius:50%; background:var(--terracotta); display:inline-block;}
.pillnav{display:flex; gap:6px; background:var(--cream-2); padding:6px; border-radius:999px; box-shadow:0 2px 10px rgba(43,58,60,0.08);}
.pillnav a{padding:9px 18px; border-radius:999px; font-size:14px; font-weight:700; color:var(--olive); transition:background .25s, color .25s;}
.pillnav a:hover{background:var(--olive); color:var(--cream);}
.cta-pill{
  background:var(--chili); color:#fff !important; padding:12px 24px; border-radius:999px;
  font-weight:800; font-size:14px; box-shadow:0 6px 16px rgba(255,90,54,0.4);
  transition:transform .2s, box-shadow .2s; display:inline-block; white-space:nowrap;
}
.cta-pill:hover{transform:translateY(-2px) rotate(-1deg); box-shadow:0 10px 22px rgba(255,90,54,0.5);}
.cta-pill.small{padding:10px 20px; font-size:13px;}
.cta-pill.outline{
  background:var(--paper); color:var(--olive) !important; box-shadow:0 4px 14px rgba(43,58,60,0.15);
  border:2px solid rgba(43,58,60,0.12);
}
.cta-pill.outline:hover{box-shadow:0 8px 20px rgba(43,58,60,0.2);}
@media(max-width:760px){ .pillnav{display:none;} }

/* HERO — bold diagonal color-block background */
.hero{
  position:relative;
  padding:64px 0 0;
  overflow:hidden;
}
.hero-blocks{
  position:absolute; inset:0; z-index:0;
  background:linear-gradient(115deg,
    var(--chili) 0%, var(--chili) 32%,
    var(--butter) 32%, var(--butter) 58%,
    var(--berry) 58%, var(--berry) 100%);
}
.hero-decor{position:absolute; inset:0; z-index:1; pointer-events:none;}
.decor{
  position:absolute; font-size:52px; opacity:.55; filter:drop-shadow(0 8px 14px rgba(0,0,0,0.15));
  animation:decor-float 6s ease-in-out infinite;
}
.decor.d1{top:6%; left:4%; font-size:60px; animation-delay:0s;}
.decor.d2{top:14%; left:22%; font-size:40px; animation-delay:.6s;}
.decor.d3{top:60%; left:6%; font-size:46px; animation-delay:1.2s;}
.decor.d4{top:8%; right:8%; font-size:64px; animation-delay:1.8s;}
.decor.d5{top:38%; right:3%; font-size:44px; animation-delay:2.4s;}
.decor.d6{bottom:8%; right:16%; font-size:50px; animation-delay:3s;}
.decor.d7{bottom:4%; left:30%; font-size:38px; animation-delay:3.6s;}
.decor.d8{top:48%; left:44%; font-size:34px; opacity:.35; animation-delay:4.2s;}
.decor.d9{bottom:20%; right:38%; font-size:36px; opacity:.4; animation-delay:4.8s;}
@keyframes decor-float{0%,100%{transform:translateY(0) rotate(-6deg);} 50%{transform:translateY(-16px) rotate(6deg);}}

.hero-inner{
  position:relative; z-index:2;
  display:grid; grid-template-columns:1.05fr 0.95fr; gap:40px; align-items:center;
  padding:56px 28px 110px;
}
@media(max-width:900px){
  .hero-inner{grid-template-columns:1fr; text-align:center; padding-bottom:90px;}
}

.eyebrow{
  display:inline-flex; align-items:center; gap:8px;
  font-family:var(--font-body); font-size:12px; letter-spacing:0.08em; text-transform:uppercase;
  background:rgba(255,255,255,0.75); color:var(--olive); font-weight:800; padding:8px 16px; border-radius:999px; margin-bottom:22px;
  box-shadow:0 4px 12px rgba(0,0,0,0.1);
}
.hero h1{
  font-size:clamp(38px,6vw,68px); color:var(--olive-2); max-width:560px; margin:0 0 20px;
  text-shadow:3px 3px 0 rgba(255,255,255,0.5);
}
@media(max-width:900px){ .hero h1{max-width:none; margin-left:auto; margin-right:auto;} }
.hero h1 em{font-style:normal; color:var(--paper); -webkit-text-stroke:2px var(--olive-2);}
.hero p.sub{font-size:17px; color:#2c2c22; max-width:460px; margin:0 0 30px; line-height:1.55; font-weight:500;}
@media(max-width:900px){ .hero p.sub{margin-left:auto; margin-right:auto;} }

.match-form{
  display:flex; gap:10px; flex-wrap:wrap; max-width:480px; margin:0 0 8px;
}
@media(max-width:900px){ .match-form{margin-left:auto; margin-right:auto; justify-content:center;} }
.match-form input{
  flex:1; min-width:220px; padding:14px 20px; border-radius:999px; border:2px solid rgba(43,58,60,0.15);
  font-size:15px; font-family:var(--font-body); background:var(--paper); color:var(--ink);
  box-shadow:0 4px 14px rgba(0,0,0,0.08);
}
.match-form input:focus{outline:none; border-color:var(--chili);}
.hint{font-size:12px; color:#3a3a2e; font-weight:600; margin-bottom:26px;}

.hero-badges{display:flex; gap:10px; flex-wrap:wrap;}
@media(max-width:900px){ .hero-badges{justify-content:center;} }
.hero-badges span{
  background:rgba(255,255,255,0.8); color:var(--olive-2); font-size:12px; font-weight:700;
  padding:8px 14px; border-radius:999px; box-shadow:0 4px 10px rgba(0,0,0,0.1);
}

.hero-visual{display:flex; justify-content:center;}

/* Plated ingredient bowl signature */
.plate-stage{position:relative; width:320px; height:320px; margin:0 auto; transform:rotate(3deg);}

.plate-glow{
  position:absolute; inset:-30px;
  background:radial-gradient(circle, rgba(255,255,255,0.55) 0%, rgba(255,255,255,0.15) 45%, rgba(255,255,255,0) 72%);
  filter:blur(18px);
  border-radius:50%;
  animation:glow-pulse 5s ease-in-out infinite;
}
@keyframes glow-pulse{0%,100%{transform:scale(1); opacity:0.9;} 50%{transform:scale(1.06); opacity:1;}}

.plate-ring{
  position:absolute; inset:0;
  border-radius:50%;
  background:var(--paper);
  padding:9px;
  box-shadow:
    0 24px 50px -12px rgba(43,58,60,0.4),
    0 0 0 1px rgba(43,58,60,0.06),
    inset 0 0 0 1px rgba(255,255,255,0.8);
}
.plate-photo{
  width:100%; height:100%;
  object-fit:cover;
  border-radius:50%;
  box-shadow:inset 0 0 0 3px rgba(255,255,255,0.9), inset 0 6px 24px rgba(0,0,0,0.18);
  display:block;
}

.ingredient{
  position:absolute; width:56px; height:56px; border-radius:16px;
  display:flex; align-items:center; justify-content:center; font-size:26px;
  box-shadow:0 10px 22px rgba(43,58,60,0.3), inset 0 1px 0 rgba(255,255,255,0.5);
  animation:bob 3.4s ease-in-out infinite;
  z-index:2;
}
.ing1{background:var(--butter); top:-6px; left:8px; animation-delay:0s;}
.ing2{background:var(--berry); top:6px; right:-2px; animation-delay:.7s;}
.ing3{background:var(--teal); bottom:22px; left:-18px; animation-delay:1.4s;}
.ing4{background:var(--terracotta); color:#fff; bottom:-10px; right:40px; animation-delay:2.1s;}
.ing5{background:var(--paper); bottom:44px; right:-16px; width:46px; height:46px; font-size:22px; animation-delay:2.8s;}
@keyframes bob{0%,100%{transform:translateY(0) rotate(-4deg);} 50%{transform:translateY(-14px) rotate(4deg);}}

@media(max-width:480px){
  .plate-stage{width:240px; height:240px;}
  .ingredient{width:46px; height:46px; font-size:20px;}
}

.zigzag{display:block; width:100%; position:relative; z-index:3;}
.zigzag-hero{margin-top:-2px;}

/* SPOTLIGHT — torn-paper strip */
.spotlight{background:var(--paper); position:relative; padding:0 0 40px;}
.spotlight-inner{
  display:flex; align-items:center; gap:36px; flex-wrap:wrap;
  padding:36px 28px 46px;
}
.spotlight-thumbs{display:flex; gap:-10px; flex-shrink:0;}
.spotlight-thumb{
  width:104px; height:104px; object-fit:cover; border-radius:20px;
  box-shadow:0 10px 22px rgba(43,58,60,0.2);
  border:4px solid var(--paper);
}
.spotlight-thumb:first-child{transform:rotate(-6deg); margin-right:-24px; position:relative; z-index:2;}
.spotlight-thumb:last-child{transform:rotate(5deg); position:relative; z-index:1;}
.spotlight-eyebrow{
  display:inline-block; font-size:12px; text-transform:uppercase; letter-spacing:.08em;
  font-weight:800; color:var(--chili); margin-bottom:6px;
}
.spotlight-title{font-size:24px; color:var(--olive); margin-bottom:8px;}
.spotlight-copy{font-size:14px; color:#5b5a4f; max-width:420px; margin-bottom:16px; line-height:1.5;}
.zigzag-spotlight{margin-bottom:-2px;}

/* CATEGORIES */
.categories{padding:20px 0 40px;}
.section-head{display:flex; align-items:baseline; justify-content:space-between; margin-bottom:30px; flex-wrap:wrap; gap:10px;}
.section-head h2{font-size:32px; color:var(--olive);}
.section-head .count{font-family:var(--font-body); font-size:13px; color:#7a9294;}
.tag-row{display:flex; gap:12px; flex-wrap:wrap;}
.tag{
  padding:13px 22px; border-radius:999px; font-weight:800; font-size:14px;
  display:flex; align-items:center; gap:8px; cursor:pointer; border:none;
  transition:transform .2s, box-shadow .2s;
  box-shadow:0 4px 12px rgba(43,58,60,0.1);
}
.tag:hover{transform:translateY(-3px) rotate(-1deg);}
.tag.active{box-shadow:0 0 0 3px rgba(43,58,60,0.25) inset;}
.tag.butter{background:var(--butter); color:#4a3600;}
.tag.berry{background:var(--berry); color:#4a4a06;}
.tag.teal{background:var(--teal); color:#0a3835;}
.tag.olive{background:var(--olive); color:var(--cream);}
.tag.chili{background:var(--chili); color:#fff;}
.tag.terracotta{background:var(--terracotta); color:#4a1330;}

/* RECIPE GRID */
.recipes{padding:10px 0 90px;}
.api-warning{
  background:#FFF4E0; border:1px solid #F2C94C; color:#6b4e00; padding:14px 18px;
  border-radius:14px; font-size:14px; margin-bottom:26px;
}
.api-warning code{background:rgba(0,0,0,0.08); padding:2px 6px; border-radius:6px;}
.grid{display:grid; grid-template-columns:repeat(4,1fr); gap:22px;}
@media(max-width:980px){.grid{grid-template-columns:repeat(2,1fr);}}
@media(max-width:560px){.grid{grid-template-columns:1fr;}}

.card{
  border-radius:28px; overflow:visible;
  padding:22px 20px 24px;
  display:flex; flex-direction:column; align-items:center; text-align:center;
  position:relative;
  box-shadow:0 10px 26px rgba(43,58,60,0.16);
  transition:transform .25s, box-shadow .25s;
  cursor:pointer;
}
.card:hover{transform:translateY(-8px) rotate(-0.6deg); box-shadow:0 20px 40px rgba(43,58,60,0.26);}
.card:focus-visible{outline:3px solid var(--olive-2); outline-offset:3px;}

.card.cat-mains{background:var(--teal); color:#0a3835;}
.card.cat-breakfast{background:var(--butter); color:#4a3600;}
.card.cat-vegan{background:var(--berry); color:#4a4a06;}
.card.cat-desserts{background:var(--terracotta); color:#4a1330;}
.card.cat-spicy{background:var(--chili); color:#fff;}
.card.cat-quick{background:var(--olive); color:var(--cream);}

.card-photo-wrap{
  width:118px; height:118px; border-radius:50%;
  background:var(--paper); padding:6px;
  box-shadow:0 10px 22px rgba(0,0,0,0.22);
  margin-bottom:14px; flex-shrink:0;
}
.card-img-round{width:100%; height:100%; object-fit:cover; border-radius:50%;}

.card-tag-chip{
  font-family:var(--font-body); font-size:10px; text-transform:uppercase; letter-spacing:.06em;
  font-weight:800; background:rgba(255,255,255,0.55); padding:4px 12px; border-radius:999px;
  margin-bottom:8px; display:inline-block;
}
.card.cat-quick .card-tag-chip, .card.cat-spicy .card-tag-chip{background:rgba(255,255,255,0.22); color:#fff;}

.card-title{font-family:var(--font-display); font-weight:600; font-size:18px; margin:4px 0 8px; line-height:1.2;}
.card-desc{
  font-size:12.5px; line-height:1.45; opacity:.85; margin-bottom:10px;
  display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden;
}
.card-meta{display:flex; gap:14px; font-family:var(--font-body); font-size:12px; opacity:.85; margin-bottom:14px; justify-content:center;}

.card-cta{
  background:var(--paper); color:var(--olive-2); font-weight:800; font-size:12.5px;
  padding:10px 20px; border-radius:999px; box-shadow:0 4px 10px rgba(0,0,0,0.18);
}

.card-match-badge{
  position:absolute; top:12px; right:14px;
  background:var(--paper); color:var(--olive-2); font-size:11px; font-weight:800;
  padding:5px 11px; border-radius:999px; box-shadow:0 4px 10px rgba(0,0,0,0.25);
}
.card-missing-text{font-size:11px; opacity:.8; margin-top:-4px; margin-bottom:10px;}

.empty-state{grid-column:1/-1; text-align:center; padding:40px; color:#7a9294; font-size:15px;}

.load-more-wrap{display:flex; justify-content:center; margin-top:36px;}

/* STREAK BLOCK — bold pink */
.streak-block{background:var(--terracotta); color:#4a1330; padding:90px 0; position:relative; overflow:hidden;}
.streak-inner{display:grid; grid-template-columns:1fr 1fr; gap:60px; align-items:center;}
@media(max-width:820px){.streak-inner{grid-template-columns:1fr;}}
.streak-block h2{color:#4a1330; font-size:36px; margin-bottom:16px;}
.streak-block p{color:#6e2244; font-size:16px; line-height:1.6; max-width:440px;}
.streak-card{background:rgba(255,255,255,0.55); border:1px solid rgba(255,255,255,0.7); border-radius:22px; padding:26px;}
.streak-top{display:flex; justify-content:space-between; align-items:center; margin-bottom:18px;}
.streak-num{font-family:var(--font-display); font-weight:700; font-size:30px; color:#4a1330;}
.week-row{display:flex; gap:8px;}
.day{flex:1; text-align:center;}
.day span{display:block; font-family:var(--font-body); font-size:10px; color:#8a4a68; margin-bottom:6px;}
.day-dot{width:100%; aspect-ratio:1; border-radius:8px; background:rgba(255,255,255,0.5);}
.day-dot.on{background:var(--teal);}

/* FAQ BLOCK — teal */
.faq-block{background:var(--teal); padding:90px 0; color:#0a3835;}
.faq-block h2{color:#0a3835; font-size:34px; margin-bottom:34px;}
.faq-item{border-bottom:1px solid rgba(10,56,53,0.25); padding:20px 0;}
.faq-q{display:flex; justify-content:space-between; align-items:center; cursor:pointer; font-weight:800; font-size:17px;}
.faq-plus{font-size:22px; transition:transform .3s;}
.faq-item.open .faq-plus{transform:rotate(45deg);}
.faq-a{max-height:0; overflow:hidden; transition:max-height .35s ease; font-size:15px; line-height:1.6; color:rgba(10,56,53,0.85);}
.faq-item.open .faq-a{max-height:200px; padding-top:14px;}

/* FOOTER */
footer{background:var(--olive-2); color:#c6dee0; padding:56px 0 30px; font-size:13px;}
.footer-top{display:flex; justify-content:space-between; align-items:center; flex-wrap:wrap; gap:20px; padding-bottom:30px; border-bottom:1px solid rgba(255,255,255,0.1); margin-bottom:26px;}
.footer-logo{font-family:var(--font-display); font-weight:700; font-size:20px; color:var(--cream);}

/* RECIPE MODAL */
.modal-overlay{
  position:fixed; inset:0; z-index:200;
  background:rgba(27,38,40,0.6);
  display:flex; align-items:center; justify-content:center;
  padding:24px;
  backdrop-filter:blur(3px);
}
.modal-overlay[hidden]{display:none;}
.modal-card{
  position:relative;
  background:var(--paper);
  border-radius:28px;
  max-width:640px; width:100%;
  max-height:88vh; overflow-y:auto;
  box-shadow:0 30px 70px rgba(0,0,0,0.4);
  animation:modal-pop .25s ease;
}
@keyframes modal-pop{from{opacity:0; transform:translateY(16px) scale(.98);} to{opacity:1; transform:translateY(0) scale(1);}}
.modal-close{
  position:absolute; top:16px; right:16px; z-index:2;
  width:38px; height:38px; border-radius:50%;
  background:rgba(255,255,255,0.9); color:var(--olive);
  font-size:22px; line-height:1; display:flex; align-items:center; justify-content:center;
  box-shadow:0 4px 14px rgba(0,0,0,0.2);
}
.modal-close:hover{background:#fff;}
.modal-img{width:100%; height:220px; object-fit:cover; display:block; border-radius:28px 28px 0 0;}
.modal-body{padding:24px 28px 30px;}
.modal-tag-chip{
  background:var(--cream-2); color:var(--olive); font-size:11px; text-transform:uppercase;
  letter-spacing:.06em; font-weight:800; padding:5px 13px; border-radius:999px; display:inline-block;
}
.modal-title{font-size:28px; color:var(--olive); margin:10px 0 12px; font-family:var(--font-display);}
.modal-meta{display:flex; gap:14px; font-size:13px; color:#7a9294; margin-bottom:14px;}
.modal-match-wrap{margin-bottom:16px;}
.modal-match-wrap .card-match-badge{position:static; display:inline-block; margin-right:8px; box-shadow:0 4px 10px rgba(0,0,0,0.15); background:var(--cream-2);}
.modal-match-wrap .card-missing-text{display:block; margin-top:8px;}
.modal-description{font-size:15px; line-height:1.6; color:var(--ink); margin-bottom:6px;}
.modal-subhead{
  font-family:var(--font-body); font-size:13px; text-transform:uppercase;
  letter-spacing:.06em; color:var(--chili); font-weight:800;
  margin:22px 0 10px;
}
.modal-ingredients{list-style:none; display:flex; flex-wrap:wrap; gap:8px;}
.modal-ingredients li{
  background:var(--cream-2); color:var(--olive);
  padding:7px 14px; border-radius:999px; font-size:13px; font-weight:600;
}
.modal-steps{padding-left:22px; display:flex; flex-direction:column; gap:12px;}
.modal-steps li{font-size:15px; line-height:1.55; color:var(--ink); padding-left:4px;}

@media(max-width:560px){
  .modal-card{max-height:92vh;}
  .modal-title{font-size:22px;}
  .modal-body{padding:20px 20px 26px;}
}

@media(prefers-reduced-motion: reduce){
  .ingredient{animation:none;}
  .plate-glow{animation:none;}
  .decor{animation:none;}
  html{scroll-behavior:auto;}
}
