:root {
  color-scheme: light;
  --ink: #183128;
  --muted: #637066;
  --paper: #fbfaf6;
  --surface: #ffffff;
  --line: #e2ded2;
  --green: #1f6f52;
  --green-dark: #143d30;
  --tomato: #d9482e;
  --saffron: #eba928;
  --mint: #e8f4ed;
  --shadow: 0 24px 80px rgba(25, 55, 43, 0.16);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--paper);
  color: var(--ink);
  margin: 0;
}

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

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

button,
input,
select {
  font: inherit;
}

.site-header {
  align-items: center;
  backdrop-filter: blur(18px);
  background: rgba(251, 250, 246, 0.88);
  border-bottom: 1px solid rgba(226, 222, 210, 0.8);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  left: 0;
  min-height: 72px;
  padding: 12px clamp(18px, 4vw, 56px);
  position: sticky;
  right: 0;
  top: 0;
  z-index: 20;
}

.brand {
  align-items: center;
  display: inline-flex;
  font-size: 1.05rem;
  font-weight: 900;
  gap: 10px;
  width: max-content;
}

.brand img {
  border-radius: 8px;
  height: 38px;
  width: 38px;
}

.nav-links,
.site-footer nav {
  align-items: center;
  display: flex;
  gap: clamp(16px, 3vw, 32px);
}

.nav-links a,
.site-footer a,
.login-link {
  color: #45584e;
  font-size: 0.94rem;
  font-weight: 750;
}

.login-link {
  border: 1px solid var(--line);
  border-radius: 8px;
  justify-self: end;
  padding: 10px 16px;
}

.hero-section {
  display: grid;
  min-height: max(620px, calc(100svh - 132px));
  overflow: hidden;
  padding: clamp(34px, 6vw, 80px) clamp(18px, 5vw, 72px);
  place-items: center;
  position: relative;
}

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

.hero-bg {
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.hero-scrim {
  background:
    linear-gradient(90deg, rgba(15, 36, 28, 0.84), rgba(15, 36, 28, 0.44) 52%, rgba(15, 36, 28, 0.18)),
    linear-gradient(0deg, rgba(251, 250, 246, 0.7), rgba(251, 250, 246, 0) 30%);
}

.hero-content {
  color: #fffdf7;
  justify-self: start;
  max-width: 720px;
  padding-bottom: 56px;
  position: relative;
  width: min(100%, 720px);
  z-index: 2;
}

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

.hero-content .eyebrow {
  color: #ffd26e;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  font-size: clamp(4rem, 14vw, 9.5rem);
  letter-spacing: 0;
  line-height: 0.88;
  margin-bottom: 24px;
}

h2 {
  font-size: clamp(2rem, 5vw, 4.4rem);
  letter-spacing: 0;
  line-height: 1;
  margin-bottom: 18px;
}

h3 {
  font-size: 1.25rem;
  line-height: 1.15;
  margin-bottom: 10px;
}

.hero-copy {
  color: rgba(255, 253, 247, 0.92);
  font-size: clamp(1.1rem, 2vw, 1.45rem);
  line-height: 1.45;
  max-width: 630px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.primary-action,
.secondary-action,
.waitlist-form button {
  align-items: center;
  border: 0;
  border-radius: 8px;
  cursor: pointer;
  display: inline-flex;
  font-weight: 900;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
}

.primary-action {
  background: var(--tomato);
  color: #ffffff;
  box-shadow: 0 14px 34px rgba(99, 26, 15, 0.24);
}

.secondary-action {
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.32);
  color: #ffffff;
}

.phone-preview {
  background: #fffdf9;
  border: 10px solid #17251d;
  border-radius: 30px;
  bottom: 32px;
  box-shadow: var(--shadow);
  display: grid;
  gap: 12px;
  padding: 16px;
  position: absolute;
  right: clamp(18px, 5vw, 72px);
  width: min(330px, 31vw);
  z-index: 3;
}

.phone-top {
  align-items: center;
  display: flex;
  justify-content: space-between;
}

.phone-top span,
.phone-band span,
.dish-card p,
.dish-score {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 750;
}

.phone-hero {
  aspect-ratio: 1.7;
  background: url("./assets/home-hero.png") center / cover;
  border-radius: 8px;
}

.phone-band {
  align-items: center;
  background: var(--mint);
  border-radius: 8px;
  display: flex;
  gap: 10px;
  padding: 12px;
}

.phone-band strong {
  color: var(--green);
  font-size: 1.75rem;
}

.phone-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.phone-chips span,
.ingredient-list button,
.dish-tag {
  border: 1px solid #d9ded7;
  border-radius: 8px;
  color: #34483d;
  font-size: 0.84rem;
  font-weight: 800;
  padding: 8px 10px;
}

.dish-card {
  background: #ffffff;
  border: 1px solid #dfe7e1;
  border-radius: 8px;
  display: grid;
  gap: 4px;
  padding: 12px;
}

.dish-card.compact {
  grid-template-columns: 1fr auto;
}

.proof-strip {
  background: var(--green-dark);
  color: #ffffff;
  display: grid;
  gap: 1px;
  grid-template-columns: repeat(3, 1fr);
}

.proof-strip div {
  background: rgba(255, 255, 255, 0.06);
  display: grid;
  gap: 4px;
  padding: 24px clamp(18px, 5vw, 56px);
}

.proof-strip strong {
  font-size: 1.1rem;
}

.proof-strip span {
  color: rgba(255, 255, 255, 0.74);
}

.section-block {
  padding: clamp(64px, 10vw, 128px) clamp(18px, 5vw, 72px);
}

.section-heading {
  max-width: 760px;
}

.section-heading p:not(.eyebrow),
.waitlist-section p {
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.65;
}

.feature-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 38px;
}

.feature-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  min-height: 230px;
  padding: 24px;
}

.feature-card p {
  align-self: end;
  color: var(--muted);
  line-height: 1.55;
  margin-bottom: 0;
}

.feature-icon {
  color: var(--tomato);
  font-weight: 950;
}

.photo-section {
  background: #f2f4eb;
}

.photo-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: 1.3fr 0.85fr 0.85fr;
  margin-top: 38px;
}

figure {
  margin: 0;
}

.photo-large,
.mock-screen {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}

.photo-large img {
  aspect-ratio: 1.42;
  height: 100%;
  object-fit: cover;
}

figcaption {
  background: #ffffff;
  color: var(--muted);
  font-weight: 800;
  padding: 14px 16px;
}

.mock-screen {
  display: grid;
  gap: 12px;
  min-height: 430px;
  padding: 18px;
}

.mock-screen.light {
  background: #fff8ec;
}

.screen-header {
  align-items: start;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.screen-header span {
  color: var(--muted);
  font-weight: 800;
}

.screen-header b {
  font-size: 1.8rem;
  line-height: 1;
}

.screen-row,
.grocery-item {
  align-items: center;
  background: #ffffff;
  border: 1px solid #dde4de;
  border-radius: 8px;
  color: #394b41;
  display: flex;
  font-weight: 850;
  min-height: 50px;
  padding: 12px 14px;
}

.screen-row.selected {
  background: var(--green);
  border-color: var(--green);
  color: #ffffff;
}

.screen-result {
  align-self: end;
  background: var(--green-dark);
  border-radius: 8px;
  color: #ffffff;
  display: grid;
  gap: 5px;
  padding: 18px;
}

.screen-result span {
  color: rgba(255, 255, 255, 0.76);
}

.demo-section {
  background: #ffffff;
}

.demo-layout {
  display: grid;
  gap: 22px;
  grid-template-columns: minmax(280px, 0.82fr) minmax(320px, 1.18fr);
  margin-top: 38px;
}

.demo-panel,
.results-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 22px;
}

.demo-panel {
  background: #fbfaf6;
  display: grid;
  gap: 18px;
}

label,
.field-label {
  color: #30463b;
  display: grid;
  font-weight: 900;
  gap: 8px;
}

select,
input {
  background: #ffffff;
  border: 1px solid #d7ded8;
  border-radius: 8px;
  color: var(--ink);
  min-height: 48px;
  padding: 0 12px;
  width: 100%;
}

.ingredient-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.ingredient-list button {
  background: #ffffff;
  cursor: pointer;
}

.ingredient-list button[aria-pressed="true"] {
  background: #fff1d6;
  border-color: var(--saffron);
  color: #6d430b;
}

.results-panel {
  background: var(--green-dark);
  color: #ffffff;
  display: grid;
  gap: 14px;
}

.result-card {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  display: grid;
  gap: 10px;
  padding: 18px;
}

.result-card header {
  align-items: start;
  display: flex;
  gap: 16px;
  justify-content: space-between;
}

.result-card h3 {
  margin-bottom: 4px;
}

.result-card p {
  color: rgba(255, 255, 255, 0.76);
  line-height: 1.55;
  margin-bottom: 0;
}

.dish-tag {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.16);
  color: #ffffff;
  white-space: nowrap;
}

.waitlist-section {
  align-items: center;
  background: var(--green);
  color: #ffffff;
  display: grid;
  gap: 32px;
  grid-template-columns: 1fr 0.9fr;
  padding: clamp(56px, 9vw, 98px) clamp(18px, 5vw, 72px);
}

.waitlist-section .eyebrow {
  color: #ffd26e;
}

.waitlist-section p {
  color: rgba(255, 255, 255, 0.8);
  max-width: 650px;
}

.waitlist-form {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  display: grid;
  gap: 12px;
  padding: 18px;
}

.waitlist-form label {
  color: #ffffff;
}

.waitlist-form div {
  display: grid;
  gap: 10px;
  grid-template-columns: 1fr auto;
}

.waitlist-form button {
  background: var(--saffron);
  color: #1e281f;
}

#formMessage {
  color: rgba(255, 255, 255, 0.82);
  min-height: 20px;
}

.site-footer {
  align-items: center;
  background: #13251d;
  color: #ffffff;
  display: flex;
  justify-content: space-between;
  padding: 24px clamp(18px, 5vw, 72px);
}

.site-footer span {
  font-weight: 950;
}

.site-footer a {
  color: rgba(255, 255, 255, 0.7);
}

@media (max-width: 980px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  .nav-links {
    display: none;
  }

  .hero-section {
    align-items: end;
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .hero-content {
    align-self: start;
    padding-bottom: 0;
  }

  .phone-preview {
    bottom: auto;
    justify-self: start;
    left: auto;
    margin-top: 28px;
    position: relative;
    right: auto;
    width: min(330px, calc(100vw - 36px));
  }

  .feature-grid,
  .photo-grid,
  .demo-layout,
  .waitlist-section {
    grid-template-columns: 1fr;
  }

  .mock-screen {
    min-height: 320px;
  }
}

@media (max-width: 680px) {
  .site-header {
    min-height: 64px;
    padding: 10px 14px;
  }

  .brand img {
    height: 34px;
    width: 34px;
  }

  .login-link {
    padding: 9px 12px;
  }

  .hero-section {
    padding: 28px 18px;
  }

  h1 {
    font-size: clamp(3.6rem, 19vw, 5.4rem);
  }

  h2 {
    font-size: clamp(2rem, 11vw, 3rem);
  }

  .hero-copy {
    font-size: 1rem;
  }

  .proof-strip {
    grid-template-columns: 1fr;
  }

  .feature-card {
    min-height: 190px;
    padding: 20px;
  }

  .waitlist-form div {
    grid-template-columns: 1fr;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
    gap: 16px;
  }
}
