:root {
  --tomato: #b5442b;
  --tomato-dark: #772817;
  --leaf: #386a5b;
  --ink: #211815;
  --muted: #6b5c54;
  --cream: #fff8ee;
  --paper: #fffcf7;
  --line: #e7d7c9;
  --gold: #c9973d;
  --charcoal: #171717;
  --shadow: 0 24px 80px rgba(33, 24, 21, 0.18);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--cream);
}

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

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font: inherit;
}

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

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  padding: 14px clamp(18px, 4vw, 64px);
  color: white;
  transition: background 180ms ease, color 180ms ease, box-shadow 180ms ease;
}

.site-header.is-scrolled,
.site-header.is-open {
  color: var(--ink);
  background: rgba(255, 248, 238, 0.94);
  box-shadow: 0 12px 36px rgba(33, 24, 21, 0.1);
  backdrop-filter: blur(14px);
}

.brand,
.site-nav {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  font-weight: 900;
  letter-spacing: 0;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  color: white;
  background: var(--tomato);
  font-size: 0.78rem;
  box-shadow: 0 10px 24px rgba(181, 68, 43, 0.28);
}

.brand-mark svg {
  width: 27px;
  height: 27px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.8;
}

.brand-mark .apple-mark,
.app-icon .apple-mark {
  fill: currentColor;
  stroke: none;
}

.apple-leaf {
  opacity: 0.92;
}

.apple-body {
  opacity: 1;
}

.site-nav {
  gap: 10px;
  font-size: 0.94rem;
  font-weight: 750;
}

.site-nav a {
  padding: 10px 12px;
  border-radius: 8px;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  background: rgba(181, 68, 43, 0.12);
  outline: none;
}

.nav-cta {
  color: white;
  background: var(--tomato);
}

.site-nav .nav-cta:hover,
.site-nav .nav-cta:focus-visible {
  background: var(--tomato-dark);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 8px;
  color: inherit;
  background: rgba(255, 255, 255, 0.14);
}

.nav-toggle span:not(.sr-only) {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  background: currentColor;
}

.hero {
  position: relative;
  display: grid;
  min-height: min(760px, 88svh);
  overflow: hidden;
  color: white;
}

.hero-media,
.hero-scrim {
  position: absolute;
  inset: 0;
}

.hero-media {
  background:
    linear-gradient(90deg, rgba(20, 13, 11, 0.84), rgba(20, 13, 11, 0.34) 48%, rgba(20, 13, 11, 0.08)),
    url("assets/meal-prep-hero.png") center / cover no-repeat;
  transform: scale(1.01);
}

.hero-scrim {
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.15), rgba(0, 0, 0, 0.34));
}

.hero-inner {
  position: relative;
  z-index: 1;
  align-self: center;
  width: min(1120px, calc(100% - 36px));
  margin: 0 auto;
  padding-top: 72px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(3.2rem, 9vw, 8rem);
  line-height: 0.88;
  letter-spacing: 0;
}

.hero-copy {
  max-width: 600px;
  margin: 26px 0 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  line-height: 1.48;
}

.hero-actions,
.form-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-actions {
  margin-top: 32px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-weight: 900;
  cursor: pointer;
}

.button.primary {
  color: white;
  background: var(--tomato);
  box-shadow: 0 18px 44px rgba(181, 68, 43, 0.28);
}

.button.primary:hover,
.button.primary:focus-visible {
  background: var(--tomato-dark);
  outline: none;
}

.button.secondary {
  color: white;
  border-color: rgba(255, 255, 255, 0.42);
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(12px);
}

.button.secondary:hover,
.button.secondary:focus-visible {
  background: rgba(255, 255, 255, 0.2);
  outline: none;
}

.button.quiet {
  color: var(--tomato-dark);
  border-color: var(--line);
  background: var(--paper);
}

.button.quiet:hover,
.button.quiet:focus-visible {
  border-color: var(--tomato);
  outline: none;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  max-width: 620px;
  margin: 42px 0 0;
}

.hero-stats div {
  padding: 14px 16px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.11);
  backdrop-filter: blur(12px);
}

.hero-stats dt {
  font-size: 1.3rem;
  font-weight: 950;
}

.hero-stats dd {
  margin: 4px 0 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.88rem;
}

.band {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}

.section {
  padding: clamp(72px, 9vw, 118px) 0;
}

.section-inner {
  width: min(1120px, calc(100% - 36px));
  margin: 0 auto;
}

.intro {
  padding: 36px 0;
}

.intro-grid,
.preview-grid,
.cta-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.82fr);
  gap: clamp(28px, 6vw, 72px);
  align-items: center;
}

.intro h2,
.section-heading h2,
.cta-grid h2 {
  margin: 0;
  font-size: clamp(2rem, 4.3vw, 4rem);
  line-height: 1;
  letter-spacing: 0;
}

.intro p:not(.eyebrow),
.section-heading p,
.cta-grid p {
  margin: 0;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.65;
}

.section-heading {
  max-width: 760px;
  margin: 0 auto 34px;
  text-align: center;
}

.section-heading.align-left {
  max-width: 560px;
  margin: 0;
  text-align: left;
}

.section-heading p:not(.eyebrow) {
  margin-top: 20px;
}

.personalization-section {
  background: #fffdf9;
}

.profile-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.profile-panel {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  box-shadow: 0 14px 36px rgba(33, 24, 21, 0.06);
}

.profile-panel h3 {
  margin: 0 0 14px;
  color: var(--tomato-dark);
  font-size: 1.26rem;
}

.profile-panel ul {
  display: grid;
  gap: 10px;
  margin: 0;
  padding-left: 20px;
  color: var(--muted);
  line-height: 1.58;
}

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

.step,
.feature-card {
  min-height: 250px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  box-shadow: 0 14px 36px rgba(33, 24, 21, 0.06);
}

.step span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 8px;
  color: white;
  background: var(--leaf);
  font-weight: 950;
}

.step h3,
.feature-card h3 {
  margin: 22px 0 10px;
  font-size: 1.32rem;
}

.step p,
.feature-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.62;
}

.accent {
  background:
    linear-gradient(180deg, rgba(56, 106, 91, 0.08), rgba(56, 106, 91, 0)),
    var(--cream);
}

.feature-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.feature-card {
  min-height: 210px;
  border-top: 5px solid var(--tomato);
}

.feature-card:nth-child(even) {
  border-top-color: var(--leaf);
}

.health-note {
  max-width: 780px;
  margin: 24px auto 0;
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.6;
  text-align: center;
}

.preview-section {
  background: var(--charcoal);
  color: white;
}

.preview-section .eyebrow {
  color: #f2bd5b;
}

.preview-section .section-heading p {
  color: rgba(255, 255, 255, 0.72);
}

.phone-shell {
  justify-self: center;
  width: min(360px, 100%);
  padding: 14px;
  border-radius: 36px;
  background: #101010;
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.38);
}

.phone-top {
  width: 88px;
  height: 6px;
  margin: 0 auto 12px;
  border-radius: 999px;
  background: #2b2b2b;
}

.phone-screen {
  display: grid;
  gap: 14px;
  min-height: 580px;
  padding: 22px;
  border-radius: 24px;
  color: var(--ink);
  background: var(--cream);
}

.app-row,
.chip-row,
.form-row {
  align-items: center;
}

.app-row {
  display: flex;
  gap: 10px;
  font-size: 1.15rem;
}

.app-icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  color: white;
  background: var(--tomato);
}

.app-icon svg {
  width: 27px;
  height: 27px;
}

.input-block,
.plan-card {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
}

.input-block span,
.plan-card small,
.form-note {
  color: var(--muted);
  font-size: 0.86rem;
}

.input-block strong {
  display: block;
  margin-top: 8px;
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip-row span {
  padding: 9px 11px;
  border-radius: 999px;
  color: var(--tomato-dark);
  background: #f8dfd5;
  font-size: 0.88rem;
  font-weight: 850;
}

.metrics-panel {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.metrics-panel div {
  padding: 10px;
  border: 1px solid #bdd6cc;
  border-radius: 8px;
  background: #f6fffb;
}

.metrics-panel span,
.metrics-panel strong {
  display: block;
}

.metrics-panel span {
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 800;
  text-transform: uppercase;
}

.metrics-panel strong {
  margin-top: 4px;
  color: #14382f;
  font-size: 0.98rem;
}

.plan-card {
  color: #14382f;
  background: #dfefe9;
  border-color: #bdd6cc;
}

.plan-card p {
  margin: 8px 0 0;
  line-height: 1.55;
}

.mock-button {
  min-height: 52px;
  padding: 0 12px;
  border: 0;
  border-radius: 8px;
  color: white;
  background: var(--tomato);
  font-size: 0.95rem;
  font-weight: 900;
}

.cta-section {
  background: var(--paper);
}

.cta-link {
  margin-top: 24px;
}

.signup-form {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  box-shadow: var(--shadow);
}

.signup-form label {
  display: block;
  margin-bottom: 10px;
  font-weight: 900;
}

.update-card h3 {
  margin: 0 0 10px;
  font-size: 1.5rem;
}

.update-card p {
  margin: 0 0 18px;
  color: var(--muted);
  line-height: 1.62;
}

.signup-form input {
  flex: 1 1 220px;
  min-width: 0;
  min-height: 52px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: var(--cream);
}

.signup-form input:focus {
  border-color: var(--tomato);
  outline: 3px solid rgba(181, 68, 43, 0.18);
}

.form-note {
  margin: 12px 0 0;
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
  padding: 24px clamp(18px, 4vw, 64px);
  color: rgba(255, 255, 255, 0.72);
  background: #171717;
}

.site-footer span:first-child {
  color: white;
  font-weight: 950;
}

.instructions-page {
  background: var(--paper);
}

.instructions-page .site-header {
  position: sticky;
}

.instructions-hero {
  padding: 132px 0 72px;
  background:
    linear-gradient(180deg, rgba(181, 68, 43, 0.08), rgba(56, 106, 91, 0.06)),
    var(--cream);
}

.instructions-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.68fr);
  gap: clamp(28px, 6vw, 72px);
  align-items: center;
}

.instructions-hero h1 {
  max-width: 780px;
  margin: 0;
  font-size: clamp(2.6rem, 6vw, 5.6rem);
  line-height: 0.96;
}

.instructions-hero p {
  max-width: 680px;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 1.14rem;
  line-height: 1.65;
}

.instructions-toc {
  position: sticky;
  top: 72px;
  z-index: 10;
  padding: 12px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 252, 247, 0.95);
  backdrop-filter: blur(14px);
}

.toc-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.toc-grid a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--tomato-dark);
  background: white;
  font-weight: 900;
  text-align: center;
}

.toc-grid a:hover,
.toc-grid a:focus-visible {
  border-color: var(--tomato);
  outline: none;
}

.instruction-grid,
.prompt-list,
.system-grid,
.report-grid {
  display: grid;
  gap: 18px;
}

.instruction-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.instruction-card,
.prompt-card,
.system-card,
.report-panel {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  box-shadow: 0 14px 36px rgba(33, 24, 21, 0.06);
}

.instruction-card span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 8px;
  color: white;
  background: var(--leaf);
  font-weight: 950;
}

.instruction-card h2,
.prompt-card h3,
.system-card h3,
.report-panel h3,
.quick-start h2 {
  margin: 18px 0 10px;
  color: var(--ink);
}

.quick-start h2 {
  margin-top: 0;
}

.instruction-card p,
.prompt-card p,
.system-card p,
.quick-start p {
  margin: 0;
  color: var(--muted);
  line-height: 1.62;
}

.instruction-card ul,
.report-panel ul {
  display: grid;
  gap: 10px;
  margin: 16px 0 0;
  padding-left: 20px;
  color: var(--muted);
  line-height: 1.56;
}

.examples-section {
  background: var(--cream);
}

.system-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.system-card {
  min-height: 230px;
  border-top: 5px solid var(--leaf);
}

.system-card:nth-child(odd) {
  border-top-color: var(--tomato);
}

.report-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.report-panel {
  min-height: 260px;
}

.report-panel h3 {
  margin-top: 0;
  color: var(--tomato-dark);
}

.prompt-list {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.prompt-card {
  min-height: 250px;
}

.instructions-launch {
  justify-self: start;
}

.faq-hero .section-inner {
  max-width: 980px;
}

.faq-hero h1 {
  max-width: 820px;
  margin: 0;
  font-size: clamp(2.6rem, 6vw, 5.6rem);
  line-height: 0.96;
}

.faq-hero p {
  max-width: 720px;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 1.14rem;
  line-height: 1.65;
}

.faq-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.faq-item {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  box-shadow: 0 14px 36px rgba(33, 24, 21, 0.06);
}

.faq-item h2 {
  margin: 0 0 10px;
  color: var(--tomato-dark);
  font-size: 1.25rem;
}

.faq-item p {
  margin: 0;
  color: var(--muted);
  line-height: 1.62;
}

.inline-action {
  display: inline-flex;
  margin-top: 16px;
  color: var(--tomato-dark);
  font-weight: 900;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

.inline-action:hover,
.inline-action:focus-visible {
  color: var(--tomato);
  outline: none;
}

@media (max-width: 900px) {
  .nav-toggle {
    display: block;
  }

  .site-nav {
    position: absolute;
    top: calc(100% + 8px);
    right: 18px;
    left: 18px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    color: var(--ink);
    background: var(--paper);
    box-shadow: var(--shadow);
  }

  .site-nav.is-open {
    display: flex;
  }

  .intro-grid,
  .preview-grid,
  .cta-grid,
  .instructions-hero-grid,
  .toc-grid,
  .instruction-grid,
  .prompt-list,
  .system-grid,
  .report-grid,
  .faq-grid {
    grid-template-columns: 1fr;
  }

  .steps,
  .feature-grid,
  .profile-grid {
    grid-template-columns: 1fr;
  }

  .step,
  .feature-card {
    min-height: auto;
  }

  .phone-shell {
    justify-self: start;
  }
}

@media (max-width: 640px) {
  .hero {
    min-height: 86svh;
  }

  .hero-media {
    background:
      linear-gradient(180deg, rgba(20, 13, 11, 0.84), rgba(20, 13, 11, 0.52), rgba(20, 13, 11, 0.22)),
      url("assets/meal-prep-hero.png") 62% center / cover no-repeat;
  }

  .hero h1 {
    font-size: clamp(3rem, 16vw, 5.2rem);
  }

  .hero-stats {
    grid-template-columns: 1fr;
    max-width: 320px;
  }

  .button,
  .hero-actions,
  .form-row,
  .signup-form button {
    width: 100%;
  }

  .phone-screen {
    min-height: 520px;
    padding: 18px;
  }
}
