/* =========================================================
   SmackLip — styles.css
   Brand: chocolate brown #3D1800, warm orange accents,
   playful headings (Ngaco — license-free, self-hosted),
   modern body type (Plus Jakarta Sans).
   ========================================================= */

/* ---------- Custom fonts ---------- */
/* Ngaco — license-free playful display font, used for all SmackLip headings.
   Self-hosted so we don't depend on Google Fonts and incur no licensing cost. */
@font-face {
  font-family: 'Ngaco';
  src: url('../fonts/Ngaco.woff2') format('woff2'),
       url('../fonts/Ngaco.ttf')   format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
/* Squareheads — capital "J" renders the SmackLip tongue/lick rating glyph. */
@font-face {
  font-family: 'Squareheads';
  src: url('../fonts/Squareheads.woff2') format('woff2'),
       url('../fonts/Squareheads.ttf')   format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* ---------- Design tokens ---------- */
:root {
  /* Brand */
  --brand-chocolate:        #3D1800;
  --brand-chocolate-deep:   #2A0F00;
  --brand-chocolate-soft:   #5C2B0F;
  --brand-orange:           #E5641E;
  --brand-orange-bright:    #F77B2A;
  --brand-orange-glow:      #FFB37A;
  --brand-cream:            #FFF8F1;
  --brand-cream-warm:       #FCEFDD;
  --brand-cream-deep:       #F2DDC1;

  /* Functional */
  --bg:                     var(--brand-cream);
  --bg-warm:                var(--brand-cream-warm);
  --surface:                #FFFFFF;
  --surface-glass:          rgba(255, 255, 255, 0.62);
  --surface-glass-dark:     rgba(61, 24, 0, 0.55);
  --ink:                    var(--brand-chocolate);
  --ink-soft:               #5C3A1F;
  --ink-mute:               #8A6A50;
  --line:                   rgba(61, 24, 0, 0.10);
  --line-strong:            rgba(61, 24, 0, 0.20);

  /* Typography */
  --font-display:           'Ngaco', 'Fredoka', 'Lilita One', system-ui, sans-serif;
  --font-body:              'Plus Jakarta Sans', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* Type scale */
  --fs-7xl: clamp(3.5rem, 9vw, 7rem);
  --fs-6xl: clamp(3rem, 7.5vw, 5.5rem);
  --fs-5xl: clamp(2.5rem, 6vw, 4.25rem);
  --fs-4xl: clamp(2rem, 4.5vw, 3rem);
  --fs-3xl: clamp(1.5rem, 3vw, 2.25rem);
  --fs-2xl: clamp(1.25rem, 2.2vw, 1.625rem);
  --fs-xl:  clamp(1.125rem, 1.6vw, 1.25rem);
  --fs-lg:  1.0625rem;
  --fs-md:  1rem;
  --fs-sm:  0.9375rem;
  --fs-xs:  0.8125rem;

  /* Layout */
  --container:              1200px;
  --container-narrow:       880px;
  --radius-sm:              10px;
  --radius:                 18px;
  --radius-lg:              28px;
  --radius-xl:              36px;
  --shadow-sm:              0 2px 6px rgba(61, 24, 0, 0.06);
  --shadow:                 0 12px 36px rgba(61, 24, 0, 0.10);
  --shadow-lg:              0 28px 80px rgba(61, 24, 0, 0.18);
  --shadow-glow:            0 12px 60px rgba(229, 100, 30, 0.28);

  /* Motion */
  --ease:                   cubic-bezier(.2, .7, .2, 1);
  --ease-out:               cubic-bezier(.16, 1, .3, 1);
  --ease-spring:            cubic-bezier(.34, 1.56, .64, 1);
  --t-fast:                 180ms;
  --t-med:                  340ms;
  --t-slow:                 640ms;
}

/* ---------- Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0ms !important; transition-duration: 0ms !important; }
}
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--fs-md);
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; transition: color var(--t-fast) var(--ease); }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
input, textarea, select { font: inherit; }

/* Selection */
::selection { background: var(--brand-orange); color: var(--brand-cream); }

/* ---------- Typography ---------- */
.display, h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: -0.01em;
  line-height: 1.05;
  color: var(--ink);
  margin: 0 0 0.5em;
}
h1 { font-size: var(--fs-7xl); }
h2 { font-size: var(--fs-5xl); }
h3 { font-size: var(--fs-3xl); }
h4 { font-family: var(--font-body); font-weight: 700; font-size: var(--fs-xl); margin: 0 0 .5em; }
p  { margin: 0 0 1em; color: var(--ink-soft); }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: var(--fs-xs);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brand-orange);
}
.eyebrow::before {
  content: "";
  width: 28px; height: 2px;
  background: currentColor;
  border-radius: 2px;
}
.lede { font-size: var(--fs-2xl); color: var(--ink-soft); line-height: 1.45; }

/* Gradient ink */
.text-gradient {
  background: linear-gradient(120deg, var(--brand-orange) 0%, var(--brand-orange-bright) 50%, var(--brand-chocolate) 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}

/* ---------- Layout helpers ---------- */
.container       { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 clamp(1rem, 4vw, 2rem); }
.container-narrow{ width: 100%; max-width: var(--container-narrow); margin: 0 auto; padding: 0 clamp(1rem, 4vw, 2rem); }
section          { padding: clamp(4rem, 10vw, 8rem) 0; position: relative; }
.section-tight   { padding: clamp(3rem, 6vw, 5rem) 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  padding: .95rem 1.5rem;
  border-radius: 999px;
  font-weight: 700; font-size: var(--fs-md);
  letter-spacing: -0.005em;
  transition: transform var(--t-med) var(--ease-spring),
              background var(--t-med) var(--ease),
              box-shadow var(--t-med) var(--ease),
              color var(--t-fast) var(--ease);
  will-change: transform;
}
.btn-primary {
  background: linear-gradient(135deg, var(--brand-orange) 0%, var(--brand-orange-bright) 100%);
  color: #fff;
  box-shadow: var(--shadow-glow), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}
.btn-primary:hover { transform: translateY(-2px) scale(1.02); box-shadow: 0 18px 70px rgba(229, 100, 30, 0.42), inset 0 1px 0 rgba(255, 255, 255, 0.3); }
.btn-primary:active { transform: translateY(0) scale(0.99); }
.btn-secondary {
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 1px 0 rgba(61, 24, 0, 0.05), 0 8px 24px rgba(61, 24, 0, 0.06);
  border: 1px solid var(--line);
}
.btn-secondary:hover { transform: translateY(-1px); border-color: var(--line-strong); }
.btn-ghost { color: var(--ink); padding: .6rem 1rem; }
.btn-ghost:hover { color: var(--brand-orange); }
.btn-arrow { transition: transform var(--t-fast) var(--ease); display: inline-block; }
.btn:hover .btn-arrow { transform: translateX(3px); }

/* ---------- Top nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  padding: 1rem 0;
  transition: padding var(--t-med) var(--ease), background var(--t-med) var(--ease), box-shadow var(--t-med) var(--ease);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem;
  background: var(--surface-glass);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: .55rem .65rem .55rem 1.25rem;
  box-shadow: var(--shadow-sm);
}
.nav.scrolled { padding: .6rem 0; }
.nav.scrolled .nav-inner { box-shadow: var(--shadow); background: rgba(255, 255, 255, 0.85); }
.nav-brand { display: flex; align-items: center; gap: .65rem; font-family: var(--font-display); font-size: 1.4rem; color: var(--ink); }
.nav-brand img { width: 36px; height: 36px; object-fit: contain; }
.nav-links { display: flex; align-items: center; gap: .25rem; }
.nav-links a {
  padding: .5rem .95rem; border-radius: 999px;
  font-size: var(--fs-sm); font-weight: 600; color: var(--ink-soft);
  transition: color var(--t-fast) var(--ease), background var(--t-fast) var(--ease);
}
.nav-links a:hover { color: var(--ink); background: rgba(61, 24, 0, 0.06); }
.nav-cta { padding: .55rem 1.1rem; }
.nav-toggle { display: none; padding: .5rem; border-radius: 12px; }
.nav-toggle svg { width: 24px; height: 24px; }

/* ---------- Hero ---------- */
.hero {
  min-height: 100svh;
  display: grid; align-items: center;
  padding-top: 8rem; padding-bottom: 4rem;
  position: relative; overflow: hidden;
  background:
    radial-gradient(circle at 18% 25%, rgba(247, 123, 42, 0.18), transparent 55%),
    radial-gradient(circle at 82% 70%, rgba(229, 100, 30, 0.13), transparent 50%),
    linear-gradient(180deg, var(--brand-cream) 0%, var(--brand-cream-warm) 100%);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.hero-copy h1 { margin: 0 0 1.25rem; }
.hero-copy h1 .glyph { display: inline-block; transition: transform var(--t-med) var(--ease-spring); }
.hero-copy h1:hover .glyph { transform: translateY(-4px) rotate(-3deg); }
.hero-lede { margin-bottom: 2.25rem; max-width: 36ch; }
.hero-cta { display: flex; gap: .9rem; flex-wrap: wrap; align-items: center; }
.hero-meta { margin-top: 1.5rem; display: flex; align-items: center; gap: .75rem; color: var(--ink-mute); font-size: var(--fs-xs); letter-spacing: .04em; }
.hero-meta-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--brand-orange); box-shadow: 0 0 0 4px rgba(229, 100, 30, 0.18); }

/* Hero visual: animated phone with shimmering glow */
.hero-visual {
  position: relative;
  aspect-ratio: 9/12;
  display: grid; place-items: center;
}
.hero-visual::before {
  content: ""; position: absolute; inset: 8% 4%;
  background: radial-gradient(circle at 50% 40%, rgba(247, 123, 42, 0.32), transparent 60%);
  filter: blur(40px);
  z-index: 0;
}
.phone {
  position: relative; z-index: 2;
  width: min(380px, 84%);
  aspect-ratio: 9 / 19.5;
  background: linear-gradient(180deg, #1B0A02 0%, #2A0F00 100%);
  border-radius: 44px;
  padding: 12px;
  box-shadow:
    var(--shadow-lg),
    inset 0 0 0 2px rgba(255, 184, 130, 0.08),
    inset 0 0 0 6px rgba(0, 0, 0, 0.25);
  animation: float 6s ease-in-out infinite;
}
.phone-screen {
  width: 100%; height: 100%;
  border-radius: 32px;
  background: linear-gradient(180deg, var(--brand-cream) 0%, #FFE4C4 100%);
  overflow: hidden; position: relative;
}
.phone-notch {
  position: absolute; top: 8px; left: 50%; transform: translateX(-50%);
  width: 100px; height: 26px; border-radius: 14px;
  background: #1B0A02;
  z-index: 3;
}
.phone-content { padding: 56px 18px 18px; }
.phone-greeting { font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-mute); }
.phone-title { font-family: var(--font-display); font-size: 26px; line-height: 1.1; color: var(--ink); margin: 6px 0 14px; }
.dish-card {
  background: var(--surface);
  border-radius: 18px;
  padding: 14px;
  margin-bottom: 12px;
  box-shadow: 0 6px 18px rgba(61, 24, 0, 0.10);
  border: 1px solid var(--line);
  display: grid; grid-template-columns: 56px 1fr; gap: 12px; align-items: center;
}
.dish-thumb { width: 56px; height: 56px; border-radius: 14px; background: linear-gradient(135deg, #FF9F66, #E5641E); position: relative; overflow: hidden; }
.dish-thumb::after { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 30% 30%, rgba(255,255,255,0.5), transparent 50%); }
.dish-thumb.b { background: linear-gradient(135deg, #FFD08A, #C46B22); }
.dish-thumb.c { background: linear-gradient(135deg, #FFE6B0, #8B4F26); }
.dish-name { font-size: 14px; font-weight: 700; color: var(--ink); margin: 0 0 2px; }
.dish-meta { font-size: 11px; color: var(--ink-mute); }
.dish-rating { display: flex; align-items: center; gap: 4px; margin-top: 4px; }
/* SmackLip tongue rating glyph — Squareheads font, capital J. */
.tongue {
  font-family: 'Squareheads', 'Ngaco', sans-serif;
  font-weight: 400;
  font-size: 14px;
  line-height: 1;
  display: inline-block;
  color: var(--brand-orange);
  -webkit-font-smoothing: antialiased;
}
.tongue::before { content: "J"; }
.tongue.muted { color: rgba(229, 100, 30, 0.25); }
.dish-score { margin-left: auto; font-family: var(--font-display); font-size: 22px; color: var(--brand-orange); }
/* Prevent dish text / score from clipping past the phone edge on narrow screens */
.dish-card > div { min-width: 0; }
.dish-name { overflow-wrap: anywhere; }
.dish-rating { flex-wrap: wrap; row-gap: 2px; }
.dish-score { white-space: nowrap; }

@keyframes float { 0%,100% { transform: translateY(0) rotate(-2deg);} 50% { transform: translateY(-12px) rotate(0deg);} }
.hero-blob {
  position: absolute; z-index: 1; pointer-events: none;
  width: 520px; height: 520px;
  background: radial-gradient(circle at 30% 30%, rgba(229, 100, 30, 0.4), transparent 60%);
  filter: blur(80px);
}
.hero-blob.left { top: -120px; left: -160px; }
.hero-blob.right { bottom: -120px; right: -160px; background: radial-gradient(circle at 70% 70%, rgba(61, 24, 0, 0.20), transparent 60%); }

/* Marquee strip below hero */
.marquee {
  background: var(--brand-chocolate);
  color: var(--brand-cream);
  padding: 1.4rem 0;
  overflow: hidden;
  border-top: 1px solid rgba(255, 184, 130, 0.18);
  border-bottom: 1px solid rgba(255, 184, 130, 0.18);
}
.marquee-track {
  display: flex; gap: 3rem;
  animation: marquee 40s linear infinite;
  white-space: nowrap;
}
.marquee span {
  font-family: var(--font-display); font-size: 1.5rem;
  letter-spacing: .02em;
  display: inline-flex; align-items: center; gap: 1.5rem;
}
.marquee .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--brand-orange); display: inline-block; }
@keyframes marquee { from { transform: translateX(0);} to { transform: translateX(-50%);} }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease-out), transform .9s var(--ease-out); }
.reveal.in { opacity: 1; transform: none; }
.reveal-stagger > * { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease-out), transform .8s var(--ease-out); }
.reveal-stagger.in > * { opacity: 1; transform: none; }
.reveal-stagger.in > *:nth-child(1) { transition-delay: 0ms; }
.reveal-stagger.in > *:nth-child(2) { transition-delay: 80ms; }
.reveal-stagger.in > *:nth-child(3) { transition-delay: 160ms; }
.reveal-stagger.in > *:nth-child(4) { transition-delay: 240ms; }
.reveal-stagger.in > *:nth-child(5) { transition-delay: 320ms; }
.reveal-stagger.in > *:nth-child(6) { transition-delay: 400ms; }

/* ---------- Section: problem ---------- */
.problem { background: var(--brand-cream); }
.problem-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.problem-receipt {
  position: relative;
  background: #fff;
  border-radius: 6px;
  padding: 2rem 2rem 3rem;
  box-shadow: var(--shadow-lg);
  font-family: 'Courier New', monospace;
  font-size: 14px;
  color: var(--ink);
  transform: rotate(-2deg);
  transition: transform var(--t-med) var(--ease-spring);
}
.problem-receipt:hover { transform: rotate(-1deg) translateY(-4px); }
.problem-receipt::before, .problem-receipt::after {
  content: ""; position: absolute; left: 0; right: 0; height: 16px;
  background-image: linear-gradient(45deg, transparent 50%, #fff 50%), linear-gradient(-45deg, transparent 50%, #fff 50%);
  background-size: 16px 16px; background-repeat: repeat-x;
}
.problem-receipt::before { top: -16px; background-position: 0 0; }
.problem-receipt::after  { bottom: -16px; background-position: 0 16px; transform: scaleY(-1); }
.problem-receipt .row { display: flex; justify-content: space-between; padding: 6px 0; border-bottom: 1px dashed rgba(0,0,0,.15); }
.problem-receipt .row:last-of-type { border-bottom: 0; }
.problem-receipt .total { font-weight: 700; font-size: 18px; padding-top: 14px; }
.problem-receipt .strike { text-decoration: line-through; color: var(--ink-mute); }
.problem-receipt .stamp {
  position: absolute; right: -20px; top: 30px;
  background: var(--brand-orange); color: #fff;
  padding: 12px 18px; border-radius: 8px;
  font-family: var(--font-display); font-size: 18px;
  transform: rotate(8deg);
  box-shadow: var(--shadow);
}

/* ---------- Section: how it works ---------- */
.how { background: linear-gradient(180deg, var(--brand-cream) 0%, var(--brand-cream-warm) 100%); }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; margin-top: 3.5rem; }
.step {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 2rem;
  position: relative;
  transition: transform var(--t-med) var(--ease-spring), box-shadow var(--t-med) var(--ease), border-color var(--t-med) var(--ease);
}
.step:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); border-color: rgba(229, 100, 30, 0.4); }
.step-num {
  font-family: var(--font-display);
  font-size: 4rem; line-height: 1; color: var(--brand-orange);
  margin-bottom: .25rem;
  display: inline-block;
}
.step-num::after { content: ""; display: block; width: 32px; height: 4px; border-radius: 4px; background: var(--brand-orange); margin-top: .25rem; }
.step h3 { font-size: var(--fs-2xl); margin: .5rem 0 .75rem; }
.step p { font-size: var(--fs-md); margin: 0; }

/* Slider visual in step 1 — looks like a real form control */
.taste-sliders { display: grid; gap: 14px; margin-top: 1.5rem; }
.taste-slider {
  display: grid;
  grid-template-columns: 86px 1fr 32px;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  color: var(--ink-soft);
}
.taste-slider .label { font-weight: 700; color: var(--ink); letter-spacing: .01em; }
.taste-slider .value {
  font-family: var(--font-display);
  font-size: 15px;
  color: var(--brand-orange);
  text-align: right;
}
.taste-slider .track {
  position: relative;
  height: 8px;
  background: rgba(61, 24, 0, 0.08);
  border-radius: 999px;
  box-shadow: inset 0 1px 2px rgba(61, 24, 0, 0.06);
}
.taste-slider .fill {
  position: absolute;
  top: 0; bottom: 0; left: 0;
  width: 100%;
  border-radius: 999px;
  transform-origin: left;
  transform: scaleX(0); /* animated by JS */
  background: linear-gradient(90deg, var(--brand-orange), var(--brand-orange-bright));
}
.taste-slider .thumb {
  position: absolute;
  top: 50%;
  width: 18px; height: 18px;
  margin-left: -9px; margin-top: -9px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid var(--brand-orange);
  box-shadow: 0 2px 8px rgba(229, 100, 30, 0.35), 0 0 0 4px rgba(229, 100, 30, 0.10);
  transition: transform var(--t-fast) var(--ease-spring), box-shadow var(--t-fast) var(--ease);
  z-index: 2;
}
.step:hover .taste-slider .thumb { transform: scale(1.1); }

/* Per-axis gradient hints — stays in brand palette but each feels distinct */
.taste-slider[data-axis="salty"]      .fill { background: linear-gradient(90deg, #C4A98A, #5C3A1F); }
.taste-slider[data-axis="salty"]      .thumb { border-color: #5C3A1F; box-shadow: 0 2px 8px rgba(92, 58, 31, .4), 0 0 0 4px rgba(92, 58, 31, .12); }

.taste-slider[data-axis="spicy"]      .fill { background: linear-gradient(90deg, #FFB37A, #C82E10); }
.taste-slider[data-axis="spicy"]      .thumb { border-color: #C82E10; box-shadow: 0 2px 8px rgba(200, 46, 16, .4), 0 0 0 4px rgba(200, 46, 16, .12); }

.taste-slider[data-axis="umami"]      .fill { background: linear-gradient(90deg, #A87648, #2A0F00); }
.taste-slider[data-axis="umami"]      .thumb { border-color: #2A0F00; box-shadow: 0 2px 8px rgba(42, 15, 0, .4), 0 0 0 4px rgba(42, 15, 0, .12); }

.taste-slider[data-axis="sweet"]      .fill { background: linear-gradient(90deg, #FFD8B0, #E5641E); }
.taste-slider[data-axis="sweet"]      .thumb { border-color: #E5641E; box-shadow: 0 2px 8px rgba(229, 100, 30, .4), 0 0 0 4px rgba(229, 100, 30, .12); }

.taste-slider[data-axis="sour"]       .fill { background: linear-gradient(90deg, #FFE066, #E89B0A); }
.taste-slider[data-axis="sour"]       .thumb { border-color: #E89B0A; box-shadow: 0 2px 8px rgba(232, 155, 10, .4), 0 0 0 4px rgba(232, 155, 10, .12); }

.taste-slider[data-axis="bitter"]     .fill { background: linear-gradient(90deg, #B8B07A, #4F4622); }
.taste-slider[data-axis="bitter"]     .thumb { border-color: #4F4622; box-shadow: 0 2px 8px rgba(79, 70, 34, .4), 0 0 0 4px rgba(79, 70, 34, .12); }

.taste-slider[data-axis="rich"] .fill { background: linear-gradient(90deg, #F6E27A, #C8902B); }
.taste-slider[data-axis="rich"] .thumb { border-color: #C8902B; box-shadow: 0 2px 8px rgba(200, 144, 43, .4), 0 0 0 4px rgba(200, 144, 43, .12); }

@media (max-width: 420px) {
  .taste-slider { grid-template-columns: 70px 1fr 28px; gap: 8px; font-size: 11px; }
  .taste-slider .value { font-size: 13px; }
}

/* ---------- Section: features ---------- */
.features { background: var(--brand-cream); }
.features-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1.5rem;
  margin-top: 3.5rem;
}
.feat {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 2.25rem;
  border: 1px solid var(--line);
  position: relative;
  overflow: hidden;
  transition: transform var(--t-med) var(--ease-spring), box-shadow var(--t-med) var(--ease);
}
.feat:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.feat-1 { grid-column: span 7; min-height: 360px; background: linear-gradient(135deg, var(--brand-chocolate) 0%, var(--brand-chocolate-soft) 100%); color: var(--brand-cream); border-color: transparent; }
.feat-2 { grid-column: span 5; }
.feat-3 { grid-column: span 5; }
.feat-4 { grid-column: span 7; background: linear-gradient(135deg, var(--brand-orange) 0%, var(--brand-orange-bright) 100%); color: #fff; border-color: transparent; }
/* Row 3: My Proud Palate (rich, long content) + Wine Module */
.feat-5 { grid-column: span 7; }
.feat-wine { grid-column: span 5; background: linear-gradient(135deg, #6B1F3A 0%, #A0344F 100%); color: #fff; border-color: transparent; }
.feat-wine p { color: rgba(255, 255, 255, 0.92); opacity: 1; }
.feat-wine .feat-tm { color: #F5C5A0; }
.feat-wine .feat-price { color: #FFD7BB; }
/* Row 4: Dietary safety + Aging well */
.feat-6 { grid-column: span 6; }
.feat-7 { grid-column: span 6; }
.feat h3 { color: inherit; font-size: var(--fs-3xl); margin-bottom: .75rem; }
.feat p { color: inherit; opacity: .85; font-size: var(--fs-md); }
.feat-1 p, .feat-4 p { color: rgba(255, 255, 255, 0.92); opacity: 1; }
.feat-tm { font-size: var(--fs-xs); color: var(--brand-orange); font-weight: 700; letter-spacing: .12em; text-transform: uppercase; margin-bottom: .5rem; }
.feat-1 .feat-tm, .feat-4 .feat-tm { color: var(--brand-orange-glow); }

/* Tongue rating visual */
.rating-row { display: flex; align-items: center; gap: 6px; margin-top: 1.5rem; }
.rating-row .tongue { font-size: 26px; letter-spacing: 4px; }
/* A1: Tongue glyphs inside the brown "Tongue Rating" tile render in brand-orange-bright
   so they read as SmackLip identity, not generic white badges (Mike, 2026-05-14). */
.feat-1 .tongue { color: var(--brand-orange-bright); }
.feat-1 .tongue.muted { color: rgba(247, 123, 42, 0.35); }

/* My Proud Palate + Wine module tile internals */
.feat-dims {
  list-style: none;
  padding: 0;
  margin: 0.75rem 0 1rem;
  font-size: var(--fs-sm);
  line-height: 1.55;
  color: inherit;
  opacity: .9;
}
.feat-dims li {
  position: relative;
  padding-left: 1.1rem;
  margin-bottom: .25rem;
}
.feat-dims li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .55em;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--brand-orange);
}
.feat-1 .feat-dims li::before,
.feat-4 .feat-dims li::before { background: var(--brand-orange-glow); }
.feat-price {
  font-size: var(--fs-sm);
  margin-top: .75rem !important;
  opacity: 1 !important;
  color: var(--brand-orange);
  font-weight: 600;
}
.feat-1 .feat-price,
.feat-4 .feat-price { color: var(--brand-orange-glow); }
.feat-future {
  display: inline-block;
  margin-left: .35rem;
  padding: 1px 8px;
  border-radius: 999px;
  background: rgba(229, 100, 30, 0.12);
  color: var(--brand-orange);
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  vertical-align: middle;
}

/* Taste Buddies overlap avatars */
.buddies { display: flex; align-items: center; margin-top: 1.5rem; }
.buddy {
  width: 56px; height: 56px; border-radius: 50%;
  background: linear-gradient(135deg, #FFB37A, #E5641E);
  border: 3px solid #fff;
  display: grid; place-items: center;
  font-family: var(--font-display); color: #fff; font-size: 1.25rem;
  margin-left: -16px;
  box-shadow: 0 4px 12px rgba(61, 24, 0, .12);
  transition: transform var(--t-fast) var(--ease-spring);
}
.buddy:first-child { margin-left: 0; }
.buddy:hover { transform: translateY(-4px) scale(1.06); }
.buddy.b2 { background: linear-gradient(135deg, #FCEFDD, #C46B22); color: var(--ink); }
.buddy.b3 { background: linear-gradient(135deg, #8B4F26, #3D1800); }
.buddy.b4 { background: linear-gradient(135deg, #F77B2A, #E5641E); }
/* A7: Diverse photo-real Taste Buddies avatars. Maintain circular framing + overlap. */
.buddy-img {
  object-fit: cover;
  background: #FCEFDD;
  display: block;
  padding: 0;
}

/* ---------- Section: stats ---------- */
.stats { background: var(--brand-chocolate); color: var(--brand-cream); }
.stats h2 { color: var(--brand-cream); }
.stats-eyebrow { color: var(--brand-orange-glow); }
.stats p { color: rgba(252, 239, 221, 0.8); }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; margin-top: 3rem; }
.stat { padding: 1.75rem 0; border-top: 1px solid rgba(255, 184, 130, 0.18); }
.stat-num { font-family: var(--font-display); font-size: clamp(3rem, 6vw, 4.5rem); line-height: 1; color: var(--brand-orange-glow); margin-bottom: .5rem; }
.stat-label { font-size: var(--fs-xs); letter-spacing: .14em; text-transform: uppercase; color: var(--brand-cream); margin-bottom: .35rem; font-weight: 700; }
.stat p { font-size: var(--fs-sm); margin: 0; }

/* ---------- Section: 1% pledge ---------- */
.pledge {
  background: linear-gradient(180deg, var(--brand-cream-warm) 0%, var(--brand-cream) 100%);
  padding: clamp(3rem, 8vw, 5rem) 0;
}
.pledge-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  padding: clamp(2rem, 4vw, 3rem);
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}
.pledge-card::before {
  content: "";
  position: absolute;
  top: -40%; right: -10%;
  width: 320px; height: 320px;
  background: radial-gradient(circle, rgba(229, 100, 30, 0.10), transparent 70%);
  pointer-events: none;
}
.pledge-badge {
  position: relative;
  width: clamp(140px, 18vw, 200px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand-orange) 0%, var(--brand-orange-bright) 100%);
  display: grid;
  place-items: center;
  text-align: center;
  color: #fff;
  flex-shrink: 0;
  box-shadow: var(--shadow-glow), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}
.pledge-badge-num {
  font-family: var(--font-display);
  font-size: clamp(3rem, 6vw, 4.5rem);
  line-height: 1;
  display: inline-flex;
  align-items: flex-start;
  gap: 2px;
}
.pledge-badge-pct {
  font-size: 0.45em;
  margin-top: 0.45em;
}
.pledge-badge-label {
  position: absolute;
  bottom: 18%;
  font-family: var(--font-body);
  font-weight: 800;
  font-size: clamp(.65rem, 1vw, .8rem);
  letter-spacing: .2em;
  opacity: 0.9;
}
.pledge-copy h2 {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  margin: .5rem 0 1rem;
}
.pledge-copy .eyebrow {
  color: var(--brand-orange);
}
.pledge-meta {
  font-size: var(--fs-sm);
  color: var(--ink-mute);
  margin-top: 1.25rem;
}
.pledge-meta a {
  color: var(--brand-orange);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* P12_A_MARK inaugural-partner — Alameda Food Bank callout inside the 1% Pledge card */
.inaugural-partner {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.4rem;
  align-items: center;
  margin: 1.5rem 0;
  padding: 1.25rem 1.4rem;
  background: var(--brand-cream-warm);
  border-left: 4px solid var(--brand-orange);
  border-radius: 8px;
}
.inaugural-partner-logo {
  width: 96px;
  height: auto;
  max-width: 96px;
  border-radius: 6px;
  background: #fff;
  padding: 6px;
  box-shadow: 0 2px 8px rgba(60, 24, 0, 0.08);
  flex-shrink: 0;
}
.inaugural-partner-copy {
  margin: 0;
  font-size: var(--fs-sm);
  line-height: 1.55;
  color: var(--ink);
}
.inaugural-partner-copy p {
  margin: 0 0 0.85rem;
}
.inaugural-partner-eyebrow {
  display: block;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand-orange);
  margin-bottom: 0.3rem;
}
.inaugural-partner-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.55rem 1.1rem;
  background: var(--brand-orange);
  color: #fff;
  font-weight: 700;
  font-size: 0.9rem;
  text-decoration: none;
  border-radius: 999px;
  transition: background 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
  box-shadow: 0 4px 14px rgba(229, 100, 30, 0.25);
}
.inaugural-partner-cta:hover {
  background: #C9531A;
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(229, 100, 30, 0.32);
}
.inaugural-partner-cta:focus-visible {
  outline: 3px solid rgba(229, 100, 30, 0.4);
  outline-offset: 2px;
}
@media (max-width: 720px) {
  .pledge-card { grid-template-columns: 1fr; text-align: center; padding: 2rem 1.5rem; }
  .pledge-badge { margin: 0 auto; }
  .pledge-copy .eyebrow::before { display: none; }
  .inaugural-partner {
    grid-template-columns: 1fr;
    gap: 0.85rem;
    text-align: center;
    border-left: none;
    border-top: 4px solid var(--brand-orange);
  }
  .inaugural-partner-logo { margin: 0 auto; }
}

/* ---------- Inaugural partner card (P12.A) ---------- */
.inaugural-partner {
  margin: 1.5rem 0 1.25rem;
  padding: 1.25rem 1.5rem;
  background: var(--brand-cream-warm);
  border-left: 4px solid var(--brand-orange);
  border-radius: 12px;
}
.inaugural-partner-eyebrow {
  display: block;
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brand-orange);
  margin-bottom: 0.85rem;
}
.inaugural-partner-row {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.25rem;
  align-items: center;
}
.inaugural-partner-logo {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.6rem;
  display: grid;
  place-items: center;
  width: clamp(120px, 18vw, 170px);
}
.inaugural-partner-logo img {
  display: block;
  max-width: 100%;
  height: auto;
}
.inaugural-partner-copy p {
  margin: 0 0 0.9rem;
}
.inaugural-partner-copy p:last-of-type {
  margin-bottom: 1rem;
}
.inaugural-partner-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--brand-orange);
  color: #fff;
  padding: 0.65rem 1.25rem;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
  font-size: 0.95rem;
  transition: background 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}
.inaugural-partner-cta:hover,
.inaugural-partner-cta:focus-visible {
  background: var(--brand-orange-bright, var(--brand-orange));
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(229, 100, 30, 0.25);
  text-decoration: none;
  color: #fff;
}
@media (max-width: 560px) {
  .inaugural-partner-row { grid-template-columns: 1fr; text-align: center; }
  .inaugural-partner-logo { margin: 0 auto; }
}

/* ---------- Section: for restaurants ---------- */
.partners { background: var(--brand-cream-warm); }
.partners-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.partner-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
}
.partner-bullets { list-style: none; padding: 0; margin: 1.5rem 0 0; display: grid; gap: 1rem; }
.partner-bullets li {
  display: grid; grid-template-columns: 28px 1fr; gap: .75rem; align-items: start;
  color: var(--ink-soft); font-size: var(--fs-md);
}
.partner-bullets li::before {
  content: ""; width: 22px; height: 22px;
  background: var(--brand-orange);
  border-radius: 50%;
  margin-top: 2px;
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><polyline points='20 6 9 17 4 12'/></svg>") center / 14px no-repeat;
          mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><polyline points='20 6 9 17 4 12'/></svg>") center / 14px no-repeat;
}
.partner-cta { display: flex; gap: .9rem; margin-top: 2rem; flex-wrap: wrap; }

/* ---------- Section: waitlist ---------- */
.waitlist {
  background:
    radial-gradient(circle at 80% 20%, rgba(247, 123, 42, 0.18), transparent 50%),
    radial-gradient(circle at 10% 80%, rgba(229, 100, 30, 0.10), transparent 50%),
    var(--brand-cream);
  text-align: center;
}
.waitlist-card {
  /* scroll-margin-top clears the fixed .nav (≈ 64-80px tall) so clicking
     #waitlist lands the form *below* the nav rather than behind it. */
  scroll-margin-top: 100px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  padding: clamp(2.5rem, 5vw, 4rem);
  box-shadow: var(--shadow-lg);
  max-width: 720px;
  margin: 3rem auto 0;
  text-align: center;
}
.form-row {
  display: grid; grid-template-columns: 1fr auto;
  gap: .65rem;
  background: var(--bg-warm);
  border-radius: 999px;
  padding: .35rem;
  border: 1px solid var(--line);
  margin: 1.5rem auto 0;
  max-width: 520px;
}
.form-row input {
  border: 0; background: transparent;
  padding: .9rem 1.25rem; outline: none;
  font-size: var(--fs-md); color: var(--ink);
}
.form-row input::placeholder { color: var(--ink-mute); }
.form-success {
  display: none;
  margin-top: 1.5rem;
  background: rgba(229, 100, 30, 0.10);
  color: var(--brand-orange);
  padding: 1rem 1.25rem;
  border-radius: var(--radius);
  border: 1px solid rgba(229, 100, 30, 0.24);
  font-weight: 600;
}
.form-success.show { display: block; }
.form-fineprint { font-size: var(--fs-xs); color: var(--ink-mute); margin-top: 1rem; }

/* ---------- FAQ ---------- */
.faq { background: var(--brand-cream); }
.faq-list { max-width: 820px; margin: 3rem auto 0; }
.faq-item {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  margin-bottom: .75rem;
  transition: box-shadow var(--t-med) var(--ease), border-color var(--t-med) var(--ease);
}
.faq-item[open] { box-shadow: var(--shadow); border-color: rgba(229, 100, 30, 0.32); }
.faq-item summary {
  cursor: pointer; list-style: none;
  display: flex; justify-content: space-between; align-items: center;
  font-weight: 700; font-size: var(--fs-lg); color: var(--ink);
  padding: .25rem 0;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  font-family: var(--font-display);
  font-size: 1.75rem; line-height: 1;
  color: var(--brand-orange);
  transition: transform var(--t-med) var(--ease-spring);
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-body { color: var(--ink-soft); padding-top: 1rem; max-width: 70ch; }

/* ---------- Footer ---------- */
.footer {
  background: var(--brand-chocolate-deep);
  color: var(--brand-cream);
  padding: 4rem 0 2rem;
}
.footer h4 { color: var(--brand-cream); font-size: var(--fs-md); margin-bottom: 1rem; letter-spacing: .04em; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 3rem; margin-bottom: 3rem; }
.footer a { color: rgba(252, 239, 221, 0.75); display: block; padding: .35rem 0; font-size: var(--fs-sm); }
.footer a:hover { color: var(--brand-orange-glow); }
.footer-brand img { width: 56px; height: 56px; }
.footer-brand p { color: rgba(252, 239, 221, 0.7); max-width: 36ch; margin-top: 1rem; font-size: var(--fs-sm); }

/* Social icons under the brand tagline (P12.C) */
.footer-socials {
  display: flex;
  gap: 0.75rem;
  margin-top: 1.15rem;
}
.footer-social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: var(--brand-cream);
  transition: background var(--t-fast) var(--ease), color var(--t-fast) var(--ease), transform var(--t-fast) var(--ease);
  text-decoration: none;
}
.footer-social-link:hover,
.footer-social-link:focus-visible {
  background: var(--brand-orange);
  color: #fff;
  transform: translateY(-1px);
  outline: none;
}
.footer-social-link svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
  display: block;
}

.footer-meta {
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem;
  padding-top: 2rem; border-top: 1px solid rgba(255, 184, 130, 0.14);
  font-size: var(--fs-xs); color: rgba(252, 239, 221, 0.6);
}
.footer-meta span { letter-spacing: .04em; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero-grid, .problem-grid, .partners-grid { grid-template-columns: 1fr; }
  .hero-visual { order: -1; min-height: auto; aspect-ratio: auto; }
  .steps { grid-template-columns: 1fr; }
  .features-grid { grid-template-columns: 1fr; }
  .feat-1, .feat-2, .feat-3, .feat-4, .feat-5, .feat-wine, .feat-6, .feat-7 { grid-column: span 1; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .nav-links { display: none; }
  .nav-toggle { display: inline-grid; place-items: center; }
  /* Constrain the phone so it doesn't spill over the hero copy below it */
  .phone { width: min(280px, 70%); }
}
@media (max-width: 560px) {
  .stats-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero { padding-top: 6rem; padding-bottom: 2rem; }
  h1 { font-size: clamp(2.75rem, 11vw, 4rem); }
  .form-row { grid-template-columns: 1fr; border-radius: var(--radius); }
  .form-row .btn { border-radius: var(--radius); }
  .form-row input { padding: .85rem 1rem; }
  /* Hide the CTA pill in the nav on phones — the hamburger menu has it */
  .nav-cta { display: none !important; }
  /* Tighter nav pill on phones */
  .nav-inner { padding: .45rem .55rem .45rem 1rem; }
  .nav-brand { font-size: 1.2rem; }
  .nav-brand img { width: 30px; height: 30px; }
  /* Smaller phone illustration on phones to leave clear space for the hero text */
  .phone { width: min(240px, 64%); }
  /* scale the phone's inner UI so dish names + scores fit the smaller frame */
  .phone-content { padding: 50px 12px 12px; }
  .phone-title { font-size: 22px; }
  .dish-card { padding: 11px; gap: 9px; grid-template-columns: 46px 1fr; }
  .dish-thumb { width: 46px; height: 46px; }
  .dish-name { font-size: 12.5px; }
  .dish-meta { font-size: 10px; }
  .dish-rating { gap: 3px; }
  .tongue { font-size: 12px; }
  .dish-score { font-size: 18px; }
  .hero-visual { padding: 1rem 0 1.5rem; }
  .hero-blob { display: none; } /* tame the orange glow on small screens */
}

/* ---------- Mobile menu ---------- */
.menu-overlay {
  position: fixed; inset: 0; z-index: 49;
  background: rgba(61, 24, 0, 0.96);
  backdrop-filter: blur(20px);
  display: none;
  padding: 6rem 2rem 2rem;
}
.menu-overlay.open { display: block; }
.menu-overlay a {
  display: block;
  font-family: var(--font-display); font-size: 2.5rem; line-height: 1.4;
  color: var(--brand-cream);
  padding: .5rem 0;
  border-bottom: 1px solid rgba(255, 184, 130, 0.14);
}
.menu-overlay a:hover { color: var(--brand-orange-glow); }
