/* ==========================================================================
   Kitchen: Recipe Finder — landing page
   Brand tokens mirror the Flutter app (core/theme/app_colors.dart).
   ========================================================================== */

:root {
  --brand: #219c62;
  --brand-dark: #17794c;
  --brand-darker: #115c39;
  --brand-soft: #e6f6ee;

  --bg: #f7f9f8;
  --bg-alt: #eef3f0;
  --surface: #ffffff;
  --text: #12201a;
  --text-muted: #57685f;
  --border: #e0e9e4;

  --blue: #2d6cdf;
  --amber: #e2a53a;
  --red: #e0574f;
  --teal: #1fa2a6;
  --navy: #3a4a6b;

  --r-xl: 26px;
  --r-lg: 20px;
  --r-md: 16px;
  --r-sm: 12px;

  --shadow-sm: 0 2px 8px rgba(13, 20, 27, 0.06);
  --shadow-md: 0 10px 28px rgba(13, 20, 27, 0.09);
  --shadow-lg: 0 24px 60px rgba(13, 20, 27, 0.16);

  --maxw: 1160px;
  --gutter: 20px;
}

:root[data-theme="dark"],
html:not([data-theme="light"]) body.auto-dark {
  color-scheme: dark;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0d141b;
    --bg-alt: #111a22;
    --surface: #16212b;
    --text: #f1f6f3;
    --text-muted: #9cb0a6;
    --border: #23323d;
    --brand-soft: #143327;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.35);
    --shadow-md: 0 10px 28px rgba(0, 0, 0, 0.45);
    --shadow-lg: 0 24px 60px rgba(0, 0, 0, 0.55);
    color-scheme: dark;
  }
}

:root[data-theme="dark"] {
  --bg: #0d141b;
  --bg-alt: #111a22;
  --surface: #16212b;
  --text: #f1f6f3;
  --text-muted: #9cb0a6;
  --border: #23323d;
  --brand-soft: #143327;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.35);
  --shadow-md: 0 10px 28px rgba(0, 0, 0, 0.45);
  --shadow-lg: 0 24px 60px rgba(0, 0, 0, 0.55);
}

/* --------------------------------------------------------------- base ---- */

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Poppins", "Segoe UI", system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }

h1, h2, h3, h4 { line-height: 1.18; letter-spacing: -0.02em; margin: 0; }

p { margin: 0; }

svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

a { color: inherit; }

:focus-visible {
  outline: 2.5px solid var(--brand);
  outline-offset: 3px;
  border-radius: 6px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 10px;
  background: var(--brand);
  color: #fff;
  padding: 10px 18px;
  border-radius: var(--r-sm);
  z-index: 200;
  font-weight: 600;
  text-decoration: none;
}
.skip-link:focus { left: 16px; }

.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.container.narrow { max-width: 760px; }

section { padding: 76px 0; }

/* ------------------------------------------------------------- header ---- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.site-header.scrolled {
  border-bottom-color: var(--border);
  box-shadow: var(--shadow-sm);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 74px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  color: var(--text);
}

.brand-mark {
  border-radius: 11px;
  box-shadow: var(--shadow-sm);
}

.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-text strong { font-size: 18px; font-weight: 700; letter-spacing: -0.02em; }
.brand-text small { font-size: 11px; color: var(--text-muted); font-weight: 500; letter-spacing: 0.04em; text-transform: uppercase; white-space: nowrap; }

.nav-links { display: flex; gap: 30px; }

.nav-links a {
  text-decoration: none;
  color: var(--text-muted);
  font-size: 15px;
  font-weight: 500;
  transition: color 0.15s ease;
}
.nav-links a:hover { color: var(--brand); }

.header-actions { display: flex; align-items: center; gap: 9px; }

.icon-btn {
  width: 40px;
  height: 40px;
  padding: 9px;
  border-radius: var(--r-sm);
  border: 1.5px solid var(--border);
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  display: inline-flex;
  transition: border-color 0.15s ease, color 0.15s ease;
}
.icon-btn:hover { border-color: var(--brand); color: var(--brand); }

.icon-moon { display: none; }
:root[data-theme="dark"] .icon-sun { display: none; }
:root[data-theme="dark"] .icon-moon { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .icon-sun { display: none; }
  :root:not([data-theme="light"]) .icon-moon { display: block; }
  :root[data-theme="light"] .icon-sun { display: block; }
  :root[data-theme="light"] .icon-moon { display: none; }
}

.nav-toggle { display: none; }

.mobile-menu {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 8px var(--gutter) 18px;
  border-bottom: 1px solid var(--border);
  background: var(--bg);
}
.mobile-menu[hidden] { display: none; }
.mobile-menu a {
  padding: 12px 10px;
  text-decoration: none;
  font-weight: 500;
  border-radius: var(--r-sm);
}
.mobile-menu a:hover { background: var(--brand-soft); color: var(--brand-dark); }
.mobile-menu .btn { margin-top: 8px; }

/* ------------------------------------------------------------ buttons ---- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border: none;
  border-radius: var(--r-md);
  padding: 13px 24px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  transition: transform 0.12s ease, background 0.15s ease, box-shadow 0.12s ease, border-color 0.15s ease;
}

.btn svg { width: 18px; height: 18px; flex: none; }

.btn-lg { padding: 16px 30px; font-size: 16px; }
.btn-sm { padding: 10px 18px; font-size: 14px; }
.btn-block { width: 100%; }
.btn-block + .btn-block { margin-top: 10px; }

/* "Chunky" press feel, same as the app's ChunkyButton */
.btn-primary {
  background: var(--brand);
  color: #fff;
  box-shadow: 0 5px 0 var(--brand-darker);
}
.btn-primary:hover { background: var(--brand-dark); }
.btn-primary:active { transform: translateY(3px); box-shadow: 0 2px 0 var(--brand-darker); }

.btn-ghost {
  background: var(--surface);
  color: var(--text);
  border: 1.5px solid var(--border);
}
.btn-ghost:hover { border-color: var(--brand); color: var(--brand); }

.btn-light {
  background: #fff;
  color: var(--brand-dark);
  box-shadow: 0 5px 0 rgba(0, 0, 0, 0.18);
}
.btn-light:hover { background: #f3f6f4; }
.btn-light:active { transform: translateY(3px); box-shadow: 0 2px 0 rgba(0, 0, 0, 0.18); }

.btn-outline-light {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border: 1.5px solid rgba(255, 255, 255, 0.55);
}
.btn-outline-light:hover { background: rgba(255, 255, 255, 0.18); }

/* Google Play badge */
.btn-store {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  padding: 12px 24px 12px 19px;
  border-radius: var(--r-md);
  background: #11171c;
  border: 1.5px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 5px 0 #04080b;
  color: #fff;
  text-decoration: none;
  transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.15s ease;
}
.btn-store:hover { background: #1b242b; }
.btn-store:active { transform: translateY(3px); box-shadow: 0 2px 0 #04080b; }

.play-icon { width: 24px; height: 24px; flex: none; }
.play-icon path { stroke: none; }

.btn-store-text {
  display: flex;
  flex-direction: column;
  line-height: 1.14;
  text-align: left;
}
.btn-store-text small {
  font-size: 9.5px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0.85;
}
.btn-store-text strong { font-size: 16.5px; font-weight: 700; letter-spacing: -0.01em; }

.chip .play-icon { width: 17px; height: 17px; }

/* --------------------------------------------------------------- hero ---- */

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--brand-soft);
  color: var(--brand-dark);
  font-size: 13px;
  font-weight: 600;
  padding: 8px 15px;
  border-radius: 999px;
  margin-bottom: 20px;
}
.eyebrow svg { width: 16px; height: 16px; flex: none; }

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .eyebrow { color: #7fd8ab; }
}
:root[data-theme="dark"] .eyebrow { color: #7fd8ab; }

.hero { padding: 64px 0 40px; }

.hero-grid {
  display: grid;
  grid-template-columns: 1.02fr 0.98fr;
  gap: 56px;
  align-items: center;
}

.hero h1 {
  font-size: clamp(34px, 5vw, 56px);
  font-weight: 800;
  margin-bottom: 20px;
}
.hero h1 span { color: var(--brand); }

.lead {
  font-size: 17px;
  color: var(--text-muted);
  max-width: 520px;
  margin-bottom: 30px;
}

.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 16px; }

.hero-note { font-size: 13px; color: var(--text-muted); }

/* ---------------------------------------------------- hero app preview --- */

.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 560px;
}

.glow {
  position: absolute;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(33, 156, 98, 0.28), transparent 68%);
  filter: blur(18px);
  z-index: 0;
}

.chip {
  position: absolute;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0;
  padding: 11px 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  box-shadow: var(--shadow-md);
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
}
.chip strong { font-weight: 700; }
.chip svg { width: 17px; height: 17px; flex: none; }
.chip .star { color: var(--amber); fill: var(--amber); stroke: var(--amber); }
.chip .heart { color: var(--red); fill: var(--red); stroke: var(--red); }

.chip-rating { top: 208px; left: 0; animation: float 6s ease-in-out infinite; }
.chip-fav { bottom: 104px; right: 0; animation: float 6s ease-in-out 1.6s infinite; }

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-9px); }
}

.phone {
  position: relative;
  z-index: 2;
  width: 292px;
  height: 600px;
  padding: 11px;
  border-radius: 46px;
  background: linear-gradient(170deg, #26313a, #10181f);
  box-shadow: var(--shadow-lg), 0 0 0 1px rgba(255, 255, 255, 0.06) inset;
}

.phone-notch {
  position: absolute;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: 96px;
  height: 22px;
  border-radius: 999px;
  background: #0b1116;
  z-index: 4;
}

.phone-screen {
  position: relative;
  height: 100%;
  border-radius: 36px;
  background: #f7f9f8;
  color: #12201a;
  padding: 40px 14px 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.app-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.app-top h3 { font-size: 19px; font-weight: 800; }
.app-top p { font-size: 10.5px; color: #6b7c73; }

.app-dice {
  width: 32px;
  height: 32px;
  flex: none;
  padding: 7px;
  border-radius: 11px;
  background: #eaf0ec;
  color: #3d4f45;
}

.app-search {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 13px;
  border-radius: 14px;
  background: #eaf0ec;
  color: #7b8b82;
  font-size: 11.5px;
}
.app-search svg { width: 15px; height: 15px; flex: none; }

.app-chips { display: flex; gap: 6px; overflow: hidden; }
.app-chip {
  padding: 6px 13px;
  border-radius: 999px;
  background: #eaf0ec;
  color: #52635a;
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
}
.app-chip.active { background: var(--brand); color: #fff; }

.app-hero-card {
  position: relative;
  height: 140px;
  border-radius: 18px;
  overflow: hidden;
  flex: none;
}
.app-hero-card img { width: 100%; height: 100%; object-fit: cover; }
.app-hero-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(6, 12, 9, 0.88) 8%, rgba(6, 12, 9, 0.1) 62%);
}

.app-badge {
  position: absolute;
  top: 11px;
  left: 11px;
  z-index: 2;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--brand);
  color: #fff;
  font-size: 8.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.app-play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -60%);
  z-index: 2;
  width: 42px;
  height: 42px;
  padding: 9px;
  border-radius: 50%;
  background: rgba(10, 16, 12, 0.5);
  border: 1.5px solid rgba(255, 255, 255, 0.85);
  color: #fff;
}

.app-hero-meta { position: absolute; left: 13px; right: 13px; bottom: 11px; z-index: 2; color: #fff; }
.app-hero-meta h4 { font-size: 15px; font-weight: 800; }
.app-hero-meta p { display: flex; align-items: center; gap: 5px; font-size: 10.5px; opacity: 0.92; }
.app-hero-meta .star { width: 12px; height: 12px; color: var(--amber); fill: var(--amber); stroke: var(--amber); }

.app-pick {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 13px;
  border-radius: 18px;
  background: linear-gradient(135deg, #2bb572, var(--brand));
  box-shadow: 0 4px 0 var(--brand-darker);
  color: #fff;
  flex: none;
}
.app-pick-icon {
  width: 32px;
  height: 32px;
  flex: none;
  padding: 7px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.24);
}
.app-pick h4 { font-size: 13.5px; font-weight: 800; }
.app-pick p { font-size: 10px; opacity: 0.92; }

.app-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.app-mini { height: 70px; border-radius: 14px; overflow: hidden; }
.app-mini img { width: 100%; height: 100%; object-fit: cover; }

.app-nav {
  margin-top: auto;
  margin-inline: -4px;
  margin-bottom: 12px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2px;
  padding: 7px 6px;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 -2px 16px rgba(13, 20, 27, 0.1);
}
.app-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 7px 2px;
  border-radius: 14px;
  font-size: 8.5px;
  font-weight: 600;
  color: #6b7c73;
}
.app-nav-item svg { width: 17px; height: 17px; }
.app-nav-item.active { background: var(--brand); color: #fff; }

/* -------------------------------------------------------------- stats ---- */

.stats-band { padding: 0 0 36px; }

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  padding: 26px;
  border-radius: var(--r-xl);
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  text-align: center;
}
.stats-grid div { display: flex; flex-direction: column; gap: 2px; }
.stats-grid strong { font-size: clamp(22px, 3vw, 30px); font-weight: 800; color: var(--brand); }
.stats-grid span { font-size: 13px; color: var(--text-muted); }

/* ----------------------------------------------------------- sections ---- */

.section-head { text-align: center; max-width: 640px; margin: 0 auto 46px; }
.section-head h2 { font-size: clamp(27px, 3.6vw, 40px); font-weight: 800; margin-bottom: 12px; }
.section-head p { color: var(--text-muted); font-size: 16px; }

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.feature-card {
  padding: 28px 26px;
  border-radius: var(--r-xl);
  background: var(--surface);
  border: 1px solid var(--border);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: color-mix(in srgb, var(--brand) 34%, var(--border));
}
.feature-card h3 { font-size: 17.5px; margin-bottom: 9px; }
.feature-card p { color: var(--text-muted); font-size: 14.5px; }

.feature-icon {
  display: inline-flex;
  width: 50px;
  height: 50px;
  padding: 13px;
  border-radius: 15px;
  color: #fff;
  margin-bottom: 18px;
}
.i-green { background: var(--brand); }
.i-blue  { background: var(--blue); }
.i-red   { background: var(--red); }
.i-amber { background: var(--amber); }
.i-teal  { background: var(--teal); }
.i-navy  { background: var(--navy); }

/* ------------------------------------------------------------ recipes ---- */

.recipes { background: var(--bg-alt); }

.recipe-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.recipe-card {
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.recipe-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.recipe-card img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; }

.recipe-body { padding: 15px 16px 18px; }
.recipe-body h3 { font-size: 15.5px; margin: 7px 0 3px; }
.recipe-body p { font-size: 13px; color: var(--text-muted); }

.tag {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--brand-soft);
  color: var(--brand-dark);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .tag { color: #7fd8ab; }
}
:root[data-theme="dark"] .tag { color: #7fd8ab; }

.recipe-more {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: linear-gradient(150deg, var(--brand), var(--brand-dark));
  border: none;
  color: #fff;
}
.recipe-more .recipe-body { padding: 26px 20px; }
.recipe-more strong { display: block; font-size: 22px; font-weight: 800; margin-bottom: 8px; }
.recipe-more p { color: rgba(255, 255, 255, 0.88); font-size: 13.5px; margin-bottom: 16px; }
.recipe-more .btn-primary { background: #fff; color: var(--brand-dark); box-shadow: 0 4px 0 rgba(0, 0, 0, 0.18); }
.recipe-more .btn-primary:hover { background: #f1f5f2; }

/* -------------------------------------------------------------- steps ---- */

.steps {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  counter-reset: step;
}

.step-card {
  position: relative;
  padding: 30px 26px;
  border-radius: var(--r-xl);
  background: var(--surface);
  border: 1px solid var(--border);
}
.step-card h3 { font-size: 17px; margin-bottom: 9px; }
.step-card p { font-size: 14.5px; color: var(--text-muted); }

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  margin-bottom: 16px;
  border-radius: 12px;
  background: var(--brand-soft);
  color: var(--brand-dark);
  font-weight: 800;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .step-number { color: #7fd8ab; }
}
:root[data-theme="dark"] .step-number { color: #7fd8ab; }

.step-visual { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }

.mini-pill,
.id-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-muted);
}
.mini-pill svg, .id-badge svg { width: 15px; height: 15px; flex: none; }

.id-badge {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  letter-spacing: 0.06em;
}

/* ---------------------------------------------------------------- faq ---- */

.faq { display: flex; flex-direction: column; gap: 10px; }

.faq details {
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  background: var(--surface);
  overflow: hidden;
  transition: border-color 0.15s ease;
}
.faq details[open] { border-color: color-mix(in srgb, var(--brand) 42%, var(--border)); }

.faq summary {
  padding: 17px 20px;
  font-weight: 600;
  font-size: 15.5px;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  font-size: 22px;
  font-weight: 400;
  color: var(--brand);
  line-height: 1;
  transition: transform 0.2s ease;
}
.faq details[open] summary::after { content: "−"; }

.faq p { padding: 0 20px 19px; color: var(--text-muted); font-size: 14.5px; }
.faq code {
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  background: var(--bg-alt);
  padding: 2px 6px;
  border-radius: 6px;
  font-size: 13px;
}

/* ---------------------------------------------------------------- cta ---- */

.cta-section { padding-top: 20px; }

.cta-band {
  position: relative;
  padding: 58px 40px;
  border-radius: 32px;
  background: linear-gradient(135deg, var(--brand), var(--brand-darker));
  color: #fff;
  text-align: center;
  overflow: hidden;
}
.cta-band::before {
  content: "";
  position: absolute;
  top: -70px;
  right: -50px;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.09);
}
.cta-band h2 { position: relative; font-size: clamp(25px, 3.4vw, 36px); font-weight: 800; margin-bottom: 14px; }
.cta-band > p { position: relative; max-width: 540px; margin: 0 auto 28px; opacity: 0.93; }
.cta-actions { position: relative; display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ------------------------------------------------------------- footer ---- */

.site-footer { border-top: 1px solid var(--border); padding: 52px 0 28px; }

.footer-grid {
  display: flex;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
  margin-bottom: 34px;
}

.footer-brand { max-width: 300px; }
.footer-brand .brand { margin-bottom: 14px; }
.footer-brand p { font-size: 14px; color: var(--text-muted); }

.footer-col { display: flex; flex-direction: column; gap: 10px; }
.footer-col h4 { font-size: 14px; margin-bottom: 4px; }
.footer-col a { font-size: 14px; color: var(--text-muted); text-decoration: none; }
.footer-col a:hover { color: var(--brand); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding-top: 22px;
  border-top: 1px solid var(--border);
  font-size: 13px;
  color: var(--text-muted);
}

/* ------------------------------------------------------------- motion ---- */

/* Content is visible by default — it only starts hidden once JS has confirmed
   it can drive the animation, so a script failure can never blank the page. */
.js-reveal .reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}
.js-reveal .reveal.visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}

/* --------------------------------------------------------- responsive ---- */

@media (max-width: 1000px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; text-align: center; }
  .hero-copy { display: flex; flex-direction: column; align-items: center; }
  .lead { margin-inline: auto; }
  .hero-actions { justify-content: center; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .recipe-grid { grid-template-columns: repeat(3, 1fr); }
  .steps { grid-template-columns: 1fr; }
  .chip-rating { left: 6%; }
  .chip-fav { right: 6%; }
}

@media (max-width: 760px) {
  section { padding: 56px 0; }
  .nav-links { display: none; }
  /* keep the header on one line — the sub-label is decorative */
  .brand-text small { display: none; }
  .header-actions { gap: 7px; }
  .nav-toggle { display: inline-flex; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 20px 10px; }
  .feature-grid { grid-template-columns: 1fr; }
  .recipe-grid { grid-template-columns: repeat(2, 1fr); }
  .cta-band { padding: 42px 22px; border-radius: 26px; }
  .chip { font-size: 12px; padding: 9px 13px; }
  .chip-rating { left: 0; top: 30px; }
  .chip-fav { right: 0; bottom: 56px; }
  .hero-visual { min-height: 520px; }
  .phone { width: 262px; height: 548px; }
}

@media (max-width: 420px) {
  .recipe-grid { grid-template-columns: 1fr; }
  .btn-lg { width: 100%; }
}
