:root {
  --ivory: #FAF5EC;
  --tan: #F1E8D8;
  --ink: #201812;
  --muted: #6B5D4F;
  --orange: #FF4619;
  --gold: #FDBB30;
  --navy: #0C2340;
  --red: #E31937;
  --font-head: "Oswald", sans-serif;
  --font-body: "Karla", sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--ivory);
  color: var(--ink);
  font-family: var(--font-body);
  line-height: 1.55;
}

h1, h2, h3, .kicker, .badge, .btn, .wordmark, .nav-links a {
  font-family: var(--font-head);
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

h1 { font-size: clamp(2.2rem, 4.5vw, 3.4rem); font-weight: 700; margin: 0 0 1rem; line-height: 1.1; }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 700; margin: 0 0 1rem; }
h3 { font-size: 1.1rem; font-weight: 600; margin: 0.75rem 0 0.5rem; text-transform: none; }

p { margin: 0 0 1rem; }

a { color: inherit; }

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--navy);
  color: var(--ivory);
  padding: 0.75rem 1rem;
  z-index: 100;
}
.skip-link:focus { left: 0; }

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

section { padding: 4rem 1.5rem; max-width: 1100px; margin: 0 auto; }

/* Nav */
.nav {
  background: var(--ivory);
  border-bottom: 1px solid var(--tan);
  position: sticky;
  top: 0;
  z-index: 50;
}
.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}
.wordmark {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.2rem;
  text-decoration: none;
  letter-spacing: 0.03em;
}
.logo-img { display: block; width: auto; max-width: 100%; }
.logo-img--nav { height: 52px; }
.logo-img--footer { height: 72px; }
.nav-links { display: flex; gap: 1.5rem; align-items: center; flex-wrap: wrap; }
.nav-links a { text-decoration: none; font-size: 0.85rem; font-weight: 600; color: var(--ink); }
.nav-links a:hover { color: var(--orange); }
.nav-chef-moe { color: var(--navy) !important; font-weight: 700 !important; }

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.85rem 1.6rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.85rem;
  border: none;
  cursor: pointer;
  transition: transform 0.15s ease, opacity 0.15s ease;
}
.btn:hover { transform: translateY(-1px); opacity: 0.92; }
.btn-small { padding: 0.55rem 1.1rem; font-size: 0.75rem; }
.btn-navy { background: var(--navy); color: var(--ivory); }
.btn-red { background: var(--red); color: var(--ivory); }
.btn-gold { background: var(--gold); color: var(--ink); }
.btn-orange { background: var(--orange); color: var(--ivory); }
.btn-outline { background: transparent; color: var(--ink); border: 2px solid var(--ink); }

/* Hero */
.hero {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3rem;
  align-items: center;
  padding-top: 3.5rem;
}
.kicker { color: var(--muted); font-size: 0.8rem; font-weight: 600; margin-bottom: 0.5rem; }
.subhead { color: var(--muted); font-size: 1.05rem; max-width: 42ch; }

/* Placeholder boxes */
.placeholder-box {
  background: var(--tan);
  border: 2px dashed var(--muted);
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-weight: 600;
  min-height: 260px;
  text-align: center;
  gap: 0.35rem;
}
.placeholder-note { font-size: 0.75rem; font-weight: 400; text-transform: none; }
.placeholder-video { min-height: 320px; }

.hero-portrait {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 16px;
  object-fit: cover;
}

/* Start Here */
.start-here { text-align: center; }
.start-here-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 2rem;
  margin-top: 1.5rem;
  text-align: left;
}
.start-card {
  background: var(--tan);
  border-radius: 16px;
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.start-card-num {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-head);
  font-weight: 700;
  color: var(--ivory);
  margin-bottom: 0.25rem;
}
.start-card[data-accent="red"] .start-card-num { background: var(--red); }
.start-card[data-accent="navy"] .start-card-num { background: var(--navy); }
.start-card[data-accent="orange"] .start-card-num { background: var(--orange); }
.start-card h3 { text-transform: uppercase; margin: 0; font-size: 1.05rem; }
.start-card p { color: var(--muted); margin: 0; flex-grow: 1; }
.start-card .btn { align-self: flex-start; margin-top: 0.5rem; }

/* Recipe Finder */
.recipe-finder { text-align: center; }
.search-bar {
  display: flex;
  gap: 0.75rem;
  max-width: 560px;
  margin: 0 auto 2rem;
}
.search-bar input {
  flex: 1;
  padding: 0.85rem 1.1rem;
  border-radius: 999px;
  border: 2px solid var(--tan);
  background: var(--ivory);
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--ink);
}
.search-bar input:focus { outline: 2px solid var(--red); border-color: var(--red); }
.chip-row { display: flex; flex-wrap: wrap; gap: 0.6rem; justify-content: center; }
.chip {
  background: var(--tan);
  color: var(--ink);
  padding: 0.55rem 1.1rem;
  border-radius: 999px;
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 600;
  border: 2px solid transparent;
}
.chip:hover { border-color: var(--gold); }

/* Chef Moe Spotlight */
.chef-moe-spotlight {
  background: var(--surface, var(--tan));
  border-radius: 24px;
  text-align: center;
}
.spotlight-inner {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 2.5rem;
  align-items: center;
  text-align: left;
}
.spotlight-copy h2 { margin-top: 0.75rem; }
.badge--spotlight {
  background: var(--red);
  border-color: var(--red);
  color: var(--ivory);
  padding: 0.55rem 1.2rem;
}
.spotlight-pitch { max-width: 48ch; margin: 0 0 1.5rem; color: var(--muted); font-size: 1.05rem; }
.spotlight-subscribe-cta { margin-top: 1.25rem; font-size: 0.85rem; color: var(--muted); text-transform: none; }
.spotlight-subscribe-cta a { color: var(--gold); font-weight: 700; text-decoration: underline; }

.spotlight-visual { display: flex; flex-direction: column; gap: 1.5rem; }
.spotlight-portrait {
  display: block;
  width: 100%;
  max-width: 280px;
  height: auto;
  margin: 0 auto;
  border-radius: 16px;
  object-fit: cover;
  box-shadow: 0 12px 28px rgba(32, 24, 18, 0.22);
}
.spotlight-mockup { background: var(--ivory); border-radius: 16px; padding: 1.5rem; }
.spotlight-mockup-bubble {
  background: var(--tan);
  border-radius: 14px;
  padding: 0.9rem 1.1rem;
  font-size: 0.9rem;
  margin-bottom: 0.75rem;
}
.spotlight-mockup-bubble.question { border-left: 3px solid var(--red); font-weight: 700; }
.spotlight-mockup-bubble.answer { border-left: 3px solid var(--gold); color: var(--ink); margin-bottom: 0; }
.mockup-tabs { display: flex; gap: 0.5rem; justify-content: center; margin-bottom: 1rem; }
.mockup-tab {
  font-family: var(--font-head);
  text-transform: uppercase;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  padding: 0.4rem 1rem;
  border-radius: 999px;
  border: 2px solid var(--tan);
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}
.mockup-tab[data-example="rescue"].is-active { background: var(--red); border-color: var(--red); color: var(--ivory); }
.mockup-tab[data-example="build"].is-active { background: var(--gold); border-color: var(--gold); color: var(--ink); }
.badge {
  display: inline-block;
  background: var(--ivory);
  border: 2px solid var(--navy);
  color: var(--navy);
  padding: 0.4rem 1rem;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 700;
  margin-bottom: 2rem;
}
.chef-moe-chat { max-width: 640px; margin: 0 auto 2rem; text-align: left; }
.chat-transcript { display: flex; flex-direction: column; gap: 0.75rem; margin-bottom: 1rem; }

/* Each message is an avatar + bubble row — shared by the inline spotlight
   chat and the floating widget (both run through buildChefMoeChat), so
   this is one set of rules, not two. */
.chat-message { display: flex; align-items: flex-end; gap: 0.5rem; max-width: 100%; }
.chat-message--question { align-self: flex-end; flex-direction: row; }
.chat-message--answer { align-self: flex-start; flex-direction: row-reverse; }

.chat-avatar {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.chat-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.chat-avatar--user { background: var(--muted); }
.chat-avatar--user svg { width: 18px; height: 18px; fill: var(--ivory); }

.chat-bubble {
  background: var(--ivory);
  border-radius: 16px;
  padding: 0.85rem 1.1rem;
  max-width: 78%;
}
.chat-bubble.question {
  font-weight: 700;
  background: var(--navy);
  color: var(--ivory);
  border-bottom-right-radius: 4px;
}
.chat-bubble.answer {
  color: var(--ink);
  white-space: pre-wrap;
  background: var(--tan);
  border-bottom-left-radius: 4px;
}

/* Typing indicator — same message-row shape as a real answer, so it
   occupies the exact spot the reply will land in. */
.typing-dots { display: inline-flex; gap: 4px; align-items: center; padding: 0.15rem 0.25rem; }
.typing-dots span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--muted);
  animation: chefTypingBounce 1.2s infinite ease-in-out;
}
.typing-dots span:nth-child(2) { animation-delay: 0.15s; }
.typing-dots span:nth-child(3) { animation-delay: 0.3s; }
@keyframes chefTypingBounce {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.5; }
  30% { transform: translateY(-4px); opacity: 1; }
}
.chat-form { display: flex; gap: 0.6rem; align-items: flex-end; }
.chat-form .chat-send { flex-shrink: 0; }
.chat-input {
  flex: 1;
  min-width: 0;
  padding: 0.85rem 1.1rem;
  border-radius: 20px;
  border: 2px solid var(--ivory);
  background: var(--ivory);
  font-family: var(--font-body);
  /* Below 16px, iOS Safari auto-zooms the whole page on focus — reads as
     the field suddenly looking "cut off" and being awkward to tap back
     out of. 0.95rem (15.2px) was under that line. */
  font-size: 16px;
  color: var(--ink);
  resize: none;
  overflow-y: hidden;
  max-height: 150px;
  /* One line at this font-size/padding/border needs ~54px. JS (resizeInput
     in script.js) sets the real height once it can measure the element, but
     this floor keeps the box from ever rendering collapsed in the moment
     before that runs — that collapse is what clipped the placeholder and
     shrank the tap target on the floating widget. */
  min-height: 54px;
  line-height: 1.4;
  /* iOS Safari applies its own native textarea chrome on top of custom
     CSS unless appearance is explicitly reset — can silently change the
     rendered box vs. what the CSS declares. */
  -webkit-appearance: none;
  appearance: none;
}
.chat-input:focus { outline: 2px solid var(--navy); border-color: var(--navy); }
.chat-input:disabled { opacity: 0.6; }

.chat-mic-btn {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2px solid var(--tan);
  background: var(--ivory);
  color: var(--muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}
.chat-mic-btn svg { width: 20px; height: 20px; }
.chat-mic-btn:hover { border-color: var(--navy); color: var(--navy); }
.chat-mic-btn:disabled { opacity: 0.5; cursor: not-allowed; }
.chat-mic-btn.is-listening {
  background: var(--red);
  border-color: var(--red);
  color: var(--ivory);
  animation: chefMicPulse 1.4s infinite ease-in-out;
}
@keyframes chefMicPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(227, 25, 55, 0.45); }
  50% { box-shadow: 0 0 0 8px rgba(227, 25, 55, 0); }
}
.chat-status {
  min-height: 1.2em;
  font-size: 0.85rem;
  color: var(--muted);
  text-transform: none;
  margin: 0.5rem 0 0;
}
.chat-status[data-error] { color: var(--red); font-weight: 700; }
.chat-limit-reached {
  background: var(--ivory);
  border-radius: 14px;
  padding: 1.25rem;
  text-align: center;
  color: var(--muted);
  margin-top: 1rem;
}
.cta-caption { font-size: 0.8rem; color: var(--muted); margin-top: 0.6rem; text-transform: none; }

/* Chef Moe Method */
.chef-moe-method { background: var(--tan); border-radius: 24px; text-align: center; }
.method-subhead { max-width: 56ch; margin: 0 auto 2rem; color: var(--muted); font-size: 1.05rem; }
.method-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  text-align: left;
}
.method-step {
  background: var(--ivory);
  border-radius: 16px;
  padding: 1.5rem;
}
.method-step-num {
  display: inline-block;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  color: var(--ivory);
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  margin-bottom: 0.75rem;
}
.method-step[data-accent="navy"] .method-step-num { background: var(--navy); }
.method-step[data-accent="red"] .method-step-num { background: var(--red); }
.method-step[data-accent="gold"] .method-step-num { background: var(--gold); color: var(--ink); }
.method-step[data-accent="orange"] .method-step-num { background: var(--orange); }
.method-step h3 { text-transform: uppercase; margin: 0 0 0.4rem; font-size: 1.05rem; }
.method-step p { color: var(--muted); margin: 0; font-size: 0.92rem; }

/* Popular Recipes */
.section-heading { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 0.5rem; }
.see-all { text-decoration: none; font-weight: 700; font-size: 0.85rem; color: var(--orange); }
.recipe-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 2rem; margin-top: 1.5rem; }
.recipe-card { text-align: left; }
.recipe-photo {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 12px;
}
.recipe-actions { display: flex; gap: 0.6rem; flex-wrap: wrap; }

/* Video */
.latest-video { text-align: center; }
.video-wrap { max-width: 720px; margin: 0 auto 1.5rem; position: relative; }
.video-embed {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
  border-radius: 12px;
}

/* Cookbooks */
.cookbooks { text-align: center; }
.cookbook-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 2rem; margin-top: 1.5rem; }
.cookbook-card { text-align: center; }
.cookbook-cover {
  display: block;
  width: 100%;
  max-width: 260px;
  height: auto;
  aspect-ratio: 600 / 857;
  margin: 0 auto;
  border-radius: 6px;
  box-shadow: 0 12px 28px rgba(32, 24, 18, 0.22);
}
.cookbook-price { font-weight: 700; color: var(--muted); margin: 0.5rem 0; text-transform: none; }
.cookbook-bundle {
  max-width: 420px;
  margin: 2.5rem auto 0;
  padding: 2rem;
  background: var(--tan);
  border: 2px solid var(--gold);
  border-radius: 16px;
}
.bundle-heading { color: var(--muted); font-weight: 700; margin: 0 0 0.5rem; }
.bundle-price {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin: 0 0 1.25rem;
}
.bundle-price-strike {
  font-family: var(--font-head);
  text-transform: none;
  color: var(--muted);
  text-decoration: line-through;
  font-size: 1.1rem;
}
.bundle-price-current {
  font-family: var(--font-head);
  color: var(--ink);
  font-size: 1.7rem;
  font-weight: 700;
}
.bundle-badge {
  display: inline-block;
  background: var(--red);
  color: var(--ivory);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.7rem;
  letter-spacing: 0.05em;
  padding: 0.3rem 0.8rem;
  border-radius: 999px;
}

/* Newsletter */
.newsletter { background: var(--tan); border-radius: 24px; text-align: center; }
.newsletter-form { display: flex; gap: 0.75rem; max-width: 480px; margin: 0 auto; flex-wrap: wrap; justify-content: center; }
.newsletter-form input {
  flex: 1;
  min-width: 220px;
  padding: 0.85rem 1.1rem;
  border-radius: 999px;
  border: 2px solid var(--ivory);
  font-family: var(--font-body);
  font-size: 0.95rem;
}
.newsletter-confirm { margin-top: 1rem; font-weight: 700; color: var(--navy); }

/* About */
.about { background: var(--tan); border-radius: 24px; }
.about-inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3rem;
  align-items: center;
}
.about-copy p { color: var(--muted); font-size: 1.05rem; margin: 0; }
.about-photos { display: flex; gap: 1rem; }
.about-photo { margin: 0; flex: 1; min-width: 0; }
.about-photo img {
  display: block;
  width: 100%;
  height: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: center;
  border-radius: 16px;
}
.about-photo--watch img {
  /* Source photo is landscape (750x500); the 3:4 crop only shows the
     middle 50% of its width. Centered, that lands on the gun barrel and
     ocean and cuts the sailors on the left almost entirely out of frame. */
  object-position: left center;
}

/* Booking */
.booking-hero { text-align: center; padding-top: 3.5rem; }
.booking-hero .subhead { margin: 0 auto; text-align: center; }
.booking-form-card {
  background: var(--tan);
  border-radius: 24px;
  padding: 2.5rem;
  max-width: 760px;
  margin: 0 auto;
}
.form-honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
  margin-bottom: 1.25rem;
}
.form-group { display: flex; flex-direction: column; gap: 0.4rem; text-align: left; }
.form-group--full { margin-bottom: 1.5rem; }
.form-group label {
  font-family: var(--font-head);
  text-transform: uppercase;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: var(--ink);
}
.required { color: var(--red); margin-left: 0.2rem; }
.form-group input,
.form-group select,
.form-group textarea {
  padding: 0.75rem 1rem;
  border-radius: 10px;
  border: 2px solid var(--ivory);
  background: var(--ivory);
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--ink);
}
.form-group textarea { resize: vertical; min-height: 120px; }
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: 2px solid var(--navy);
  border-color: var(--navy);
}
.booking-error { color: var(--red); font-weight: 700; margin: 0 0 1rem; text-transform: none; }
.booking-confirm { text-align: center; }
.booking-confirm h2 { margin-bottom: 0.5rem; }

/* Chef Moe Unlimited */
.unlimited-compare { padding-top: 0; }
.compare-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 1.5rem;
  align-items: stretch;
  max-width: 760px;
  margin: 0 auto;
}
.compare-card { border-radius: 20px; padding: 1.75rem 1.5rem; text-align: center; }
.compare-before { background: var(--tan); border: 2px solid var(--muted); }
.compare-after { background: var(--navy); color: var(--ivory); border: 2px solid var(--gold); }
.compare-label {
  display: inline-block;
  font-family: var(--font-head);
  text-transform: uppercase;
  font-weight: 700;
  font-size: 0.7rem;
  letter-spacing: 0.05em;
  padding: 0.3rem 0.8rem;
  border-radius: 999px;
  margin-bottom: 0.75rem;
  background: var(--muted);
  color: var(--ivory);
}
.compare-after .compare-label { background: var(--gold); color: var(--ink); }
.compare-count { font-family: var(--font-head); font-size: 3rem; font-weight: 700; margin: 0; line-height: 1; }
.compare-count-label { font-size: 0.85rem; color: var(--muted); margin: 0.4rem 0 1.1rem; text-transform: none; }
.compare-after .compare-count-label { color: rgba(250, 245, 236, 0.75); }
.compare-list { list-style: none; margin: 0; padding: 0; text-align: left; font-size: 0.9rem; }
.compare-list li { margin-bottom: 0.5rem; padding-left: 1.4rem; position: relative; }
.compare-list li::before { content: "\2715"; position: absolute; left: 0; color: var(--red); font-weight: 700; }
.compare-after .compare-list li::before { content: "\2713"; color: var(--gold); }
.compare-arrow { display: flex; align-items: center; justify-content: center; font-family: var(--font-head); font-size: 1.6rem; font-weight: 700; color: var(--orange); }

.unlimited-layout {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2.5rem;
  align-items: start;
  max-width: 980px;
  margin: 0 auto;
}
.unlimited-card { text-align: center; max-width: none; }
.price-hero { background: var(--navy); color: var(--ivory); border-radius: 16px; padding: 1.75rem 1.5rem; margin-bottom: 1.75rem; }
.price-hero .price-currency { font-family: var(--font-head); font-size: 1.6rem; font-weight: 700; vertical-align: top; position: relative; top: 0.6rem; color: var(--gold); }
.price-hero .price-amount { font-family: var(--font-head); font-size: 4rem; font-weight: 700; line-height: 1; color: var(--gold); }
.price-hero .price-period { font-family: var(--font-head); font-size: 1rem; font-weight: 600; text-transform: uppercase; color: var(--ivory); margin-left: 0.2rem; }
.price-hero .price-caption { display: block; font-size: 0.8rem; text-transform: none; color: rgba(250, 245, 236, 0.75); margin-top: 0.5rem; font-family: var(--font-body); letter-spacing: normal; }

.unlimited-features {
  list-style: none;
  margin: 0 0 2rem;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  text-align: left;
  max-width: 460px;
  margin-left: auto;
  margin-right: auto;
}
.unlimited-features li {
  background: var(--ivory);
  border-radius: 12px;
  padding: 0.85rem 1.1rem;
  color: var(--ink);
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: 0.85rem;
}
.feature-icon {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--ivory);
}
.unlimited-features li[data-accent="navy"] .feature-icon { background: var(--navy); }
.unlimited-features li[data-accent="red"] .feature-icon { background: var(--red); }
.unlimited-features li[data-accent="gold"] .feature-icon { background: var(--gold); color: var(--ink); }
.unlimited-features li[data-accent="orange"] .feature-icon { background: var(--orange); }

.unlimited-visual { display: flex; flex-direction: column; gap: 1.5rem; }
.unlimited-portrait { display: block; width: 100%; max-width: 280px; height: auto; margin: 0 auto; border-radius: 16px; object-fit: cover; box-shadow: 0 12px 28px rgba(32, 24, 18, 0.22); }
.unlimited-mockup { max-width: none; margin: 0; background: var(--tan); border-radius: 16px; padding: 1.5rem; }
.mockup-label { font-size: 0.75rem; color: var(--muted); text-align: center; margin: 0 0 0.85rem; }
.unlimited-mockup .chat-bubble { background: var(--ivory); }
.unlimited-mockup .chat-bubble.question { border-left: 3px solid var(--navy); }
.unlimited-mockup .chat-bubble.answer { border-left: 3px solid var(--gold); }
.mockup-caption { font-size: 0.8rem; color: var(--muted); text-align: center; text-transform: none; margin: 0.75rem 0 0; }

.unlimited-manage { margin-top: 1rem; text-transform: none; }
.unlimited-manage a { color: var(--muted); font-size: 0.85rem; text-decoration: underline; }

/* Footer */
.site-footer {
  background: var(--ink);
  color: var(--ivory);
  padding: 3rem 1.5rem 2rem;
  text-align: center;
}
.site-footer .wordmark { color: var(--ivory); }
.footer-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  max-width: 1100px;
  margin: 1.5rem auto;
}
.social-links { display: flex; gap: 1.25rem; }
.social-links a { text-decoration: none; font-size: 0.85rem; font-weight: 600; color: var(--ivory); }
.social-links a:hover { color: var(--orange); }
.copyright { font-size: 0.75rem; color: var(--muted); }

/* Persistent Chef Moe widget */
.chef-moe-widget-btn {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--ivory);
  border: 3px solid var(--orange);
  font-family: var(--font-head);
  font-size: 0.6rem;
  font-weight: 700;
  text-transform: uppercase;
  line-height: 1.1;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(0,0,0,0.25);
  z-index: 60;
}
.chef-moe-widget-btn:hover { border-color: var(--gold); }

.chef-moe-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(32, 24, 18, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  z-index: 70;
}
.chef-moe-modal-overlay[hidden] { display: none; }
/* Both set display explicitly in their base rule, which otherwise beats
   the browser's default [hidden]{display:none} — same bug class, found
   while wiring up the mic button's hide-when-unsupported behavior; .chat-form
   turned out to have it too (pre-existing, found in the process, fixed
   alongside it since it's the identical root cause). */
.chat-form[hidden] { display: none; }
.chat-mic-btn[hidden] { display: none; }
.chef-moe-modal {
  background: var(--ivory);
  border-radius: 20px;
  max-width: 640px;
  width: 100%;
  max-height: 85vh;
  overflow-y: auto;
  padding: 2rem;
  position: relative;
}
.chef-moe-modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: transparent;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--muted);
  line-height: 1;
}

/* Below phone width, the widget becomes a genuine full-screen chat sheet —
   not the same centered card shrunk down. Verified against a real iPhone
   viewport with Playwright before this fix; screenshots on file. */
@media (max-width: 640px) {
  .chef-moe-modal-overlay { padding: 0; }
  .chef-moe-modal {
    max-width: none;
    width: 100%;
    height: 100vh;
    height: 100dvh;
    max-height: 100vh;
    max-height: 100dvh;
    border-radius: 0;
    display: flex;
    flex-direction: column;
    padding: 1.25rem 1.25rem calc(1rem + env(safe-area-inset-bottom));
    overflow: hidden;
  }
  .chef-moe-modal h2 { flex-shrink: 0; font-size: 1.3rem; margin: 0 0 0.5rem; }
  .chef-moe-modal .badge { flex-shrink: 0; margin-bottom: 0.75rem; }
  .chef-moe-modal .chef-moe-chat {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
  }
  .chef-moe-modal .chat-transcript {
    flex: 1;
    overflow-y: auto;
    min-height: 0;
    margin-bottom: 0.75rem;
  }
  .chef-moe-modal .chat-form,
  .chef-moe-modal .chat-status,
  .chef-moe-modal .chat-limit-reached {
    flex-shrink: 0;
  }
}

@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; }
  .hero-media { order: -1; }
  .about-inner { grid-template-columns: 1fr; }
  .compare-grid { grid-template-columns: 1fr; }
  .compare-arrow { transform: rotate(90deg); }
  .unlimited-layout { grid-template-columns: 1fr; }
  .unlimited-visual { order: -1; }
  .spotlight-inner { grid-template-columns: 1fr; }
}

/* Recipes: /recipes.html library page + individual recipe pages */
.breadcrumb { margin-bottom: 1rem; }
.breadcrumb a { text-decoration: none; font-weight: 700; font-size: 0.85rem; color: var(--orange); }

.recipe-hero-photo {
  display: block;
  width: 100%;
  height: auto;
  max-height: 480px;
  object-fit: cover;
  border-radius: 16px;
  margin-bottom: 1.5rem;
}

.recipe-intro { font-size: 1.1rem; color: var(--muted); max-width: 68ch; }

.recipe-meta-bar { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-bottom: 2rem; }
.chip--course { background: var(--navy); color: var(--ivory); }
.chip--under30 { background: var(--gold); color: var(--ink); }
.recipe-cost { margin: -1rem 0 2rem; }
.recipe-cost-range { font-weight: 700; margin: 0 0 0.25rem; }
.recipe-cost-note { font-size: 0.85rem; color: var(--muted); margin: 0; }
.meta-item {
  background: var(--tan);
  color: var(--ink);
  padding: 0.55rem 1.1rem;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
}

.recipe-detail { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 3rem; align-items: start; }

.ingredient-list { list-style: none; margin: 0; padding: 0; }
.ingredient-heading {
  font-family: var(--font-head);
  text-transform: uppercase;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--orange);
  margin: 1.25rem 0 0.5rem;
}
.ingredient-heading:first-child { margin-top: 0; }
.ingredient-item { display: flex; align-items: flex-start; gap: 0.65rem; padding: 0.45rem 0; border-bottom: 1px solid var(--tan); }
.ingredient-item input[type="checkbox"] { margin-top: 0.3rem; width: 18px; height: 18px; accent-color: var(--orange); flex-shrink: 0; }
.ingredient-item label { cursor: pointer; }
.ingredient-item:has(input:checked) label { color: var(--muted); text-decoration: line-through; }

.step-list { padding-left: 1.4rem; }
.step-list li { margin-bottom: 1rem; }

.chef-tip-box {
  background: var(--tan);
  border-left: 4px solid var(--gold);
  border-radius: 8px;
  padding: 1.25rem 1.5rem;
  margin: 1.5rem 0;
}
.chef-tip-box h3 { margin-top: 0; text-transform: uppercase; font-family: var(--font-head); font-size: 0.95rem; }
.chef-tip-box p { margin: 0; color: var(--muted); }

.more-like-this { text-align: left; }
#recipe-results .recipe-card a,
.more-like-this .recipe-card a { text-decoration: none; color: inherit; }

/* Library page */
.saved-recipes {
  background: var(--tan);
  border-radius: 18px;
  margin: 1rem 0 2.5rem;
  padding: 1.5rem;
}
.saved-recipes h2 { margin: 0; }
.saved-recipes-note,
.saved-recipes-empty { color: var(--muted); font-size: 0.9rem; }
.saved-recipes-empty { margin: 1rem 0 0; }
.saved-recipes .recipe-grid { grid-template-columns: repeat(auto-fit, minmax(190px, 260px)); gap: 1.25rem; }
.saved-recipe-card .btn { margin-top: 0.25rem; }
.recipe-library-controls { margin-bottom: 2rem; }
.filter-group { margin-bottom: 1rem; }
.filter-group-label { font-family: var(--font-head); text-transform: uppercase; font-size: 0.75rem; font-weight: 700; color: var(--muted); margin-bottom: 0.5rem; display: block; }
.chip[aria-pressed="true"] { background: var(--orange); color: var(--ivory); }
.recipe-count { color: var(--muted); font-size: 0.9rem; margin-bottom: 1rem; }
.no-results { color: var(--muted); text-align: center; padding: 3rem 0; }

@media (max-width: 860px) {
  .recipe-detail { grid-template-columns: 1fr; }
}
/* Recipe discovery */
:root { --wine: #652c36; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid #a86810; outline-offset: 4px; }
.nav-links { flex-wrap: nowrap; gap: 1.3rem; }
.nav-links a { white-space: nowrap; padding-block: .5rem; }
.nav-toggle { display: none; }
.library-main { padding-bottom: 4rem; }
.recipe-library { max-width: 1240px; padding: 2.8rem 2rem 1rem; }
.library-intro { display: grid; grid-template-columns: 1.15fr 1fr; gap: 2.5rem; align-items: center; margin-bottom: 2.5rem; }
.library-intro h1 { text-transform: none; font-size: clamp(2.3rem,4vw,3.4rem); color: var(--wine); }
.library-intro p { color: var(--muted); margin-bottom: .6rem; }
.library-intro .eyebrow { font-size: .72rem; color: var(--wine); font-weight: 700; letter-spacing: .15em; }
.library-search label { display:block; font-weight:700; font-size:.85rem; margin-bottom:.5rem; }
.library-search input { width:100%; border:1px solid #bdae98; border-radius:999px; background:#fffdf8; padding:1rem 1.3rem; font:inherit; min-width:0; }
.recipe-library .library-section { padding: 0; max-width: none; margin: 0 0 2.4rem; }
.recipe-library .section-heading { display:flex; align-items:baseline; justify-content:space-between; gap:1rem; margin-bottom:1.1rem; }
.recipe-library h2 { font-size:1.5rem; margin:0; }
.recipe-library .section-heading > span { font-size:.85rem; color:var(--muted); }
.recipe-library .recipe-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:1.25rem; }
.recipe-library .recipe-card { min-width:0; background:#fffdf8; border:1px solid #e5d8c7; border-radius:12px; overflow:hidden; box-shadow:0 3px 10px #20181205; }
.recipe-library .recipe-card a { display:block; text-decoration:none; height:100%; }
.recipe-library .recipe-photo { width:100%; height:auto; aspect-ratio:4/5; object-fit:cover; display:block; border-radius:0; margin:0; }
.recipe-library .recipe-card h3 { font-family:var(--font-body); font-size:1.03rem; line-height:1.35; letter-spacing:0; margin:.75rem .9rem .5rem; overflow-wrap:break-word; }
.recipe-library .card-meta { margin:0 .9rem .85rem; font-size:.78rem; color:var(--muted); }
.recipe-disclosure { display:block; color:var(--wine); font-size:.65rem; font-weight:700; margin:.65rem .9rem 0; }
.recipe-badge-under30 { display:inline-block; background:var(--gold); color:var(--ink); font-size:.7rem; font-weight:700; line-height:1.4; padding:.15rem .55rem; border-radius:999px; margin:.65rem .9rem 0; }
.recipe-library .saved-recipes { padding:1.15rem 1.3rem; margin:0 0 2.4rem; }
.recipe-library .saved-recipes h2 { font-size:1.1rem; }
.recipe-library .saved-recipes .section-heading { margin-bottom:.4rem; }
.saved-recipes .recipe-grid:not(:empty) { margin-top:1rem; }
.saved-recipes .recipe-card a { height:auto; }
.saved-recipes .reset-filters { margin:.25rem .9rem 1rem; }
.browse-section { border-top:1px solid #d8c6ab; padding-top:1.6rem !important; }
.category-scroll { display:flex; gap:.5rem; overflow-x:auto; overscroll-behavior-inline:contain; scroll-behavior:smooth; padding:.8rem .25rem 1rem; align-items:center; }
.category-scroll .chip, .more-categories .chip { flex:0 0 auto; white-space:nowrap; }
.recipe-library .chip { background:transparent; border:1px solid #baa991; color:var(--ink); min-height:44px; padding:.6rem 1rem; font-size:.85rem; white-space:nowrap; font-family:var(--font-body); cursor:pointer; }
.recipe-library .chip[aria-pressed=true], .recipe-library .chip.is-active { background:var(--wine); color:#fff8e9; border-color:var(--wine); box-shadow:inset 0 -3px 0 #dca54a; }
.recipe-library .chip:hover { border-color:var(--wine); }
.more-categories { display:flex; flex-wrap:wrap; gap:.55rem; padding:.8rem; border:1px solid #dfcfb6; background:var(--tan); border-radius:12px; margin-bottom:1rem; }
.secondary-filters { display:flex; gap:1rem; align-items:center; justify-content:space-between; }
.secondary-filters .chip-row { justify-content:flex-start; gap:.4rem; }
.secondary-filters .chip { min-height:40px; font-size:.78rem; padding:.5rem .75rem; }
.secondary-filters .filter-group { margin:0; }
.reset-filters { color:var(--wine); border:0; background:none; text-decoration:underline; font:inherit; font-size:.85rem; font-weight:700; min-height:44px; cursor:pointer; white-space:nowrap; }
.timing-note { font-size:.79rem; color:var(--muted); margin:1rem 0 1.8rem; }
.collection-description { color:var(--wine); font-weight:700; font-size:.95rem; }
.active-filters { display:flex; flex-wrap:wrap; align-items:center; gap:.45rem; margin:.75rem 0; }
.active-filters-label { font-size:.85rem; font-weight:700; color:var(--ink); }
.filter-clear { font:inherit; font-size:.85rem; font-weight:700; color:var(--wine); background:#fffdf8; border:1px solid var(--wine); border-radius:999px; padding:.35rem .8rem; cursor:pointer; min-height:36px; }
.filter-clear:focus-visible { outline:3px solid var(--gold); outline-offset:2px; }
.no-results-actions { display:flex; flex-wrap:wrap; gap:.5rem; margin-top:.5rem; }
/* Filter changes keep the tapped control in place via script.js; turn off browser
   scroll anchoring here so the two don't both adjust. */
.recipe-library { overflow-anchor:none; }
#results-heading { scroll-margin-top:90px; }
.search-preview { margin-top:.6rem; padding:.75rem .9rem; background:#fffdf8; border:1px solid #e5d8c7; border-radius:12px; }
.search-preview-count { margin:0 0 .4rem; font-weight:700; font-size:.9rem; color:var(--ink); }
.search-preview-list { list-style:none; margin:0 0 .6rem; padding:0; }
.search-preview-list li + li { border-top:1px solid #efe4d6; }
.search-preview-list a { display:block; padding:.5rem 0; color:var(--wine); font-weight:700; text-decoration:none; min-height:24px; }
.search-preview-list a:focus-visible { outline:3px solid var(--gold); outline-offset:2px; }
.results-heading { margin-top:1.5rem; }
.recipe-count { margin:0; }
.load-more-wrap { text-align:center; padding-top:1.8rem; }
.btn-wine { background:var(--wine); color:#fff8e9; min-width:180px; }
body:has(.library-main) .chef-moe-widget-btn { position:static; display:block; width:auto; height:auto; min-height:44px; border-radius:999px; margin:1rem auto; padding:.7rem 1.3rem; box-shadow:none; }
@media(max-width:900px) {
 .nav-inner { gap:.5rem; }
 .nav-links { gap:.85rem; }
 .library-intro { grid-template-columns:1fr; gap:1rem; }
 .recipe-library .recipe-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
}
@media(max-width:700px) {
 .nav-inner { padding:.6rem 1rem; }
 .logo-img--nav { height:44px; }
 .nav-toggle { display:block; background:var(--wine); color:var(--ivory); border:0; border-radius:999px; padding:.65rem 1.2rem; font:inherit; min-height:44px; }
 .nav-links { width:100%; display:none; padding:.5rem 0; flex-wrap:wrap; gap:.35rem 1.3rem; }
 .nav-links.is-open { display:flex; }
 .nav-links a { font-size:.85rem; min-height:44px; display:flex; align-items:center; }
 .recipe-library { padding:1.8rem 1rem 0; }
 .recipe-library .section-heading { align-items:flex-start; flex-direction:column; gap:.25rem; }
 .recipe-library .recipe-grid { gap:.75rem; }
 .recipe-library .recipe-card h3 { font-size:.94rem; margin:.6rem .7rem .4rem; }
 .recipe-library .card-meta, .recipe-disclosure, .recipe-badge-under30 { margin-inline:.7rem; }
 .recipe-library .library-section { margin-bottom:1.8rem; }
 .secondary-filters { align-items:flex-start; flex-direction:column; gap:.25rem; }
 .secondary-filters .chip-row { gap:.4rem; }
 .recipe-library .results-heading { flex-direction:row; align-items:center; }
 .category-scroll { margin-right:-.25rem; }
 .library-main { padding-bottom:1rem; }
}
@media(prefers-reduced-motion:reduce) { html,.category-scroll { scroll-behavior:auto; } }
