@font-face {
  font-family: "Bricolage";
  src: url("./assets/fonts/BricolageGrotesque-ExtraBold.ttf") format("truetype");
  font-weight: 800;
  font-display: swap;
}

:root {
  --ink: #fafafa;
  --ink-elevated: #ffffff;
  --navy: #12213d;
  --navy-soft: #1b2f54;
  --text-primary: #0a0a0a;
  --text-secondary: rgba(10, 10, 10, 0.62);
  --text-tertiary: rgba(10, 10, 10, 0.4);
  --border: rgba(10, 10, 10, 0.08);
  --border-strong: rgba(10, 10, 10, 0.14);
  --azure: #2f6fe0;
  --azure-soft: #6ea8ff;
  --amber: #cf7f16;
  --green: #2f9e52;
  --rose: #e0435a;
  --font-display: "Bricolage", "Arial Black", sans-serif;
  --font-body: "Manrope", -apple-system, BlinkMacSystemFont, sans-serif;
  --max: 1120px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--ink);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img,
svg {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
}

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Nav ---------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 250, 250, 0.78);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  max-width: var(--max);
  margin: 0 auto;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.brand-mark {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.brand-mark svg {
  width: 18px;
  height: 18px;
}

.wordmark {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 19px;
  letter-spacing: -0.2px;
  white-space: nowrap;
}

.wordmark span {
  color: var(--azure);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-links a:not(.btn) {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  transition: color 150ms ease;
}

.nav-links a:not(.btn):hover {
  color: var(--text-primary);
}

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

@media (max-width: 720px) {
  .nav-links-anchors {
    display: none;
  }
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 14.5px;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition:
    transform 150ms ease,
    opacity 150ms ease,
    background 150ms ease;
  font-family: var(--font-body);
}

.btn:active {
  transform: scale(0.97);
}

.btn-primary {
  background: var(--azure);
  color: #ffffff;
}

.btn-primary:hover {
  opacity: 0.9;
}

.btn-ghost {
  background: transparent;
  color: var(--text-primary);
  border-color: var(--border-strong);
}

.btn-ghost:hover {
  background: rgba(10, 10, 10, 0.04);
}

.btn-block {
  width: 100%;
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  padding: 88px 0 96px;
  overflow: hidden;
}

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

@media (max-width: 860px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 48px;
    text-align: center;
  }
  .hero-actions,
  .eyebrow {
    justify-content: center;
  }
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(110, 168, 255, 0.12);
  border: 1px solid rgba(110, 168, 255, 0.3);
  color: var(--azure);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.3px;
  margin-bottom: 22px;
}

.eyebrow-dot {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--azure);
}

h1 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  line-height: 1.05;
  letter-spacing: -1px;
  margin: 0 0 22px;
  text-wrap: balance;
}

h1 span {
  color: var(--azure);
  font-style: italic;
}

.hero-sub {
  font-size: 18px;
  color: var(--text-secondary);
  max-width: 480px;
  margin: 0 0 34px;
}

@media (max-width: 860px) {
  .hero-sub {
    max-width: none;
    margin-left: auto;
    margin-right: auto;
  }
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

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

/* ---------- Hero visual: meal photo + AI estimate card ---------- */

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

.meal-card {
  position: relative;
  width: 320px;
  max-width: 100%;
  border-radius: 26px;
  overflow: hidden;
  box-shadow:
    0 30px 60px -24px rgba(18, 33, 61, 0.4),
    0 6px 16px -6px rgba(18, 33, 61, 0.18);
  animation: riseIn 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.meal-photo {
  width: 100%;
  height: 340px;
  object-fit: cover;
  display: block;
}

.meal-estimate {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 14px;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(12px);
  border-radius: 18px;
  padding: 16px 18px;
  box-shadow: 0 14px 28px -10px rgba(0, 0, 0, 0.3);
}

.meal-estimate-header {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 10.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #2f6fe0;
  margin-bottom: 7px;
}

.meal-estimate-dot {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: #2f6fe0;
}

.meal-estimate-name {
  font-weight: 800;
  font-size: 15.5px;
  color: #0a0a0a;
  margin-bottom: 9px;
}

.meal-estimate-macros {
  display: flex;
  gap: 13px;
  flex-wrap: wrap;
}

.meal-estimate-macros span {
  font-size: 12px;
  color: rgba(10, 10, 10, 0.55);
}

.meal-estimate-macros strong {
  color: #0a0a0a;
  font-weight: 800;
}

@keyframes riseIn {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  .meal-card {
    animation: none;
  }
}

.float-chip {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  border-radius: 999px;
  background: var(--ink-elevated);
  border: 1px solid var(--border-strong);
  font-size: 12.5px;
  font-weight: 700;
  box-shadow: 0 8px 24px -8px rgba(18, 33, 61, 0.2);
  white-space: nowrap;
}

.float-chip-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
}

.chip-protein {
  top: 8%;
  left: -6%;
}
.chip-protein .float-chip-dot {
  background: var(--azure);
}

.chip-fiber {
  bottom: 16%;
  right: -8%;
}
.chip-fiber .float-chip-dot {
  background: var(--green);
}

@media (max-width: 860px) {
  .float-chip {
    display: none;
  }
}

/* ---------- Section scaffolding ---------- */

section {
  padding: 88px 0;
  position: relative;
}

/* Photo texture behind a section, with cards floating above it on their own
   frosted-glass layer (see .step/.feature) for a real sense of depth. The
   scrim is a top-heavy gradient rather than a flat wash: strong right behind
   the unprotected kicker/h2/subhead text at the top of the section, opening
   up to reveal the photo clearly further down where the cards carry their
   own contrast instead. */
.section-photo {
  isolation: isolate;
  overflow: hidden;
}

.section-photo::before {
  content: "";
  position: absolute;
  /* Deliberately wider than the section (not just a small bleed) — these
     photos are landscape-ish (1.5:1) and most sections are much wider than
     tall, so background-size: cover alone leaves no horizontal slack for
     background-position to pan across (it ends up cropping top/bottom, not
     left/right, and pans invisibly). Making the box itself 40% wider than
     the section and panning IT via transform guarantees a visible shift
     regardless of section/image aspect ratio. */
  top: -10px;
  bottom: -10px;
  left: -20%;
  right: -20%;
  z-index: -2;
  background-size: cover;
  background-position: center;
  filter: blur(1px) saturate(1.2);
}

.section-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(
    180deg,
    rgba(250, 250, 250, 0.95) 0%,
    rgba(250, 250, 250, 0.86) 16%,
    rgba(250, 250, 250, 0.4) 38%,
    rgba(250, 250, 250, 0.28) 100%
  );
}

/* Varied horizontal framing per section so the three don't all read as the
   same centered, symmetrical treatment — panning the oversized box (see
   .section-photo::before) via transform, since background-position has no
   room to work with here (see comment above). */
#why.section-photo::before {
  background-image: url("./assets/meals/noodles.jpg");
  transform: translateX(-14%);
}

#how-it-works.section-photo::before {
  background-image: url("./assets/meals/steak-salad.jpg");
  transform: translateX(14%);
}

#features.section-photo::before {
  background-image: url("./assets/meals/poke-bowl.jpg");
  transform: translateX(-9%);
}

.section-head {
  max-width: 620px;
  margin: 0 0 52px;
}

.section-head.center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.why-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}

@media (max-width: 780px) {
  .why-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

.why-copy {
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.84), rgba(255, 255, 255, 0.7));
  backdrop-filter: blur(20px) saturate(1.4);
  -webkit-backdrop-filter: blur(20px) saturate(1.4);
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 20px;
  padding: 32px;
  box-shadow:
    0 24px 48px -20px rgba(18, 33, 61, 0.3),
    0 2px 10px -2px rgba(18, 33, 61, 0.12);
  transition:
    transform 220ms ease,
    box-shadow 220ms ease;
}

.why-copy:hover {
  transform: translateY(-6px);
  box-shadow:
    0 32px 60px -20px rgba(18, 33, 61, 0.36),
    0 4px 14px -2px rgba(18, 33, 61, 0.16);
}

.why-copy h2 {
  font-size: clamp(1.4rem, 2.6vw, 1.9rem);
}

.kicker {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: var(--azure);
  margin: 0 0 12px;
}

h2 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.9rem, 3.4vw, 2.5rem);
  letter-spacing: -0.6px;
  margin: 0 0 14px;
  text-wrap: balance;
}

.section-sub {
  color: var(--text-secondary);
  font-size: 16.5px;
  margin: 0;
}

/* ---------- How it works ---------- */

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

@media (max-width: 780px) {
  .steps {
    grid-template-columns: 1fr;
  }
}

.step {
  /* Frosted glass rather than flat opaque — lets a soft hint of the photo
     behind it show through, which is what actually sells the card as a
     separate layer floating above the background instead of just another
     flat panel. */
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.82), rgba(255, 255, 255, 0.68));
  backdrop-filter: blur(20px) saturate(1.4);
  -webkit-backdrop-filter: blur(20px) saturate(1.4);
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 20px;
  padding: 30px 26px;
  position: relative;
  box-shadow:
    0 24px 48px -20px rgba(18, 33, 61, 0.3),
    0 2px 10px -2px rgba(18, 33, 61, 0.12);
  transition:
    transform 220ms ease,
    box-shadow 220ms ease;
}

.step:hover {
  transform: translateY(-6px);
  box-shadow:
    0 32px 60px -20px rgba(18, 33, 61, 0.36),
    0 4px 14px -2px rgba(18, 33, 61, 0.16);
}

.step-num {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 13px;
  color: var(--text-tertiary);
  margin-bottom: 18px;
}

.step h3 {
  font-size: 18px;
  margin: 0 0 10px;
  font-weight: 700;
}

.step p {
  color: var(--text-secondary);
  font-size: 14.5px;
  margin: 0;
}

.step-example {
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(47, 111, 224, 0.06);
  border: 1px solid rgba(47, 111, 224, 0.16);
  color: var(--text-secondary);
  font-size: 13px;
  font-style: italic;
  line-height: 1.6;
}

/* ---------- Features ---------- */

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

@media (max-width: 780px) {
  .features {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 540px) {
  .features {
    grid-template-columns: 1fr;
  }
}

.feature {
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 18px;
  padding: 24px;
  /* Frosted glass, same reasoning as .step — a soft hint of the photo shows
     through, which is what makes the card read as a floating layer rather
     than a flat panel sitting on a flat background. */
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.82), rgba(255, 255, 255, 0.68));
  backdrop-filter: blur(20px) saturate(1.4);
  -webkit-backdrop-filter: blur(20px) saturate(1.4);
  box-shadow:
    0 24px 48px -20px rgba(18, 33, 61, 0.3),
    0 2px 10px -2px rgba(18, 33, 61, 0.12);
  transition:
    transform 220ms ease,
    box-shadow 220ms ease;
}

.feature:hover {
  transform: translateY(-6px);
  box-shadow:
    0 32px 60px -20px rgba(18, 33, 61, 0.36),
    0 4px 14px -2px rgba(18, 33, 61, 0.16);
}

.feature-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.feature-icon svg {
  width: 20px;
  height: 20px;
}

.feature h3 {
  font-size: 16px;
  margin: 0 0 8px;
  font-weight: 700;
}

.feature p {
  font-size: 14px;
  color: var(--text-secondary);
  margin: 0;
}

/* ---------- Pricing ---------- */

.pricing-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: stretch;
}

@media (max-width: 720px) {
  .pricing-grid {
    grid-template-columns: 1fr;
  }
}

.plan {
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.plan-pro {
  /* This card stays dark navy regardless of the page's light theme, so its
     text/border tokens are overridden locally to the original dark-mode
     values — everything inside keeps using var(--text-secondary) etc.,
     it just resolves differently here than on the light page around it. */
  --text-primary: #fafafa;
  --text-secondary: rgba(250, 250, 250, 0.66);
  --text-tertiary: rgba(250, 250, 250, 0.4);
  --border: rgba(250, 250, 250, 0.12);
  --border-strong: rgba(250, 250, 250, 0.2);
  --azure: #6ea8ff;
  background: linear-gradient(160deg, var(--navy-soft), var(--navy) 70%);
  border-color: rgba(110, 168, 255, 0.35);
  position: relative;
}

.plan-badge {
  position: absolute;
  top: 24px;
  right: 24px;
  background: var(--azure-soft);
  color: #071021;
  font-size: 11.5px;
  font-weight: 800;
  padding: 5px 11px;
  border-radius: 999px;
  letter-spacing: 0.2px;
}

.plan-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.plan-price {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 40px;
  letter-spacing: -1px;
  color: var(--text-primary);
}

.plan-price span {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 15px;
  color: var(--text-tertiary);
  letter-spacing: 0;
}

.plan-annual {
  font-size: 13px;
  color: var(--text-tertiary);
  margin-top: -12px;
}

.plan-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
}

.plan-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14.5px;
  color: var(--text-secondary);
}

.plan-list li svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  margin-top: 3px;
  color: var(--azure);
}

/* ---------- Waitlist / final CTA ---------- */

.cta {
  /* Stays a dark navy card regardless of the page's light theme — same
     local-token-override approach as .plan-pro above. */
  --text-primary: #fafafa;
  --text-secondary: rgba(250, 250, 250, 0.66);
  --text-tertiary: rgba(250, 250, 250, 0.4);
  --border: rgba(250, 250, 250, 0.12);
  --border-strong: rgba(250, 250, 250, 0.2);
  --azure: #6ea8ff;
  border-radius: 28px;
  background: var(--navy);
  border: 1px solid rgba(110, 168, 255, 0.25);
  padding: 64px 40px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 0%, rgba(110, 168, 255, 0.18), transparent 60%);
}

.cta > * {
  position: relative;
}

.cta h2 {
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
  color: var(--text-primary);
}

.cta p {
  color: var(--text-secondary);
  max-width: 440px;
  margin: 0 auto 30px;
}

.waitlist-form {
  display: flex;
  gap: 10px;
  max-width: 420px;
  margin: 0 auto;
}

@media (max-width: 520px) {
  .waitlist-form {
    flex-direction: column;
  }
}

.waitlist-form input {
  flex: 1;
  padding: 13px 18px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: rgba(250, 250, 250, 0.06);
  color: var(--text-primary);
  font-size: 15px;
  font-family: var(--font-body);
}

.waitlist-form input::placeholder {
  color: var(--text-tertiary);
}

.waitlist-form input:focus {
  outline: none;
  border-color: var(--azure);
}

.waitlist-status {
  margin-top: 14px;
  font-size: 13.5px;
  min-height: 18px;
}

.waitlist-status.ok {
  color: var(--green);
}

.waitlist-status.err {
  color: var(--rose);
}

/* ---------- Footer ---------- */

footer {
  border-top: 1px solid var(--border);
  padding: 40px 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 18px;
}

.footer-links {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-links a {
  color: var(--text-tertiary);
  text-decoration: none;
  font-size: 13.5px;
}

.footer-links a:hover {
  color: var(--text-secondary);
}

.footer-copy {
  font-size: 13px;
  color: var(--text-tertiary);
}

/* ---------- Legal pages ---------- */

.legal {
  max-width: 760px;
  margin: 0 auto;
  padding: 64px 24px 96px;
}

.legal h1 {
  font-size: clamp(2rem, 4vw, 2.6rem);
}

.legal .updated {
  color: var(--text-tertiary);
  font-size: 13.5px;
  margin-bottom: 40px;
}

.legal h2 {
  font-size: 20px;
  margin-top: 40px;
}

.legal p,
.legal li {
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.7;
}

.legal ul {
  padding-left: 20px;
}

.legal .callout {
  background: var(--ink-elevated);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 18px 20px;
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 32px;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 28px;
}

.back-link:hover {
  color: var(--text-primary);
}
