:root {
  color-scheme: light;
  --bg: #fbfcf7;
  --card: #ffffff;
  --cream: #fdeedb;
  --green: #2fb463;
  --green-dark: #178547;
  --text: #111815;
  --muted: #66706b;
  --border: rgba(17, 24, 21, 0.08);
  --shadow: 0 24px 70px rgba(22, 48, 33, 0.1);
}

* {
  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(--text);
  background:
    radial-gradient(circle at top left, rgba(47, 180, 99, 0.12), transparent 32rem),
    linear-gradient(180deg, #fbfff8 0%, var(--bg) 46%, #fff8ef 100%);
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 18px 0;
  backdrop-filter: blur(18px);
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.logo-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  color: #fff;
  background: var(--green);
  border-radius: 13px;
  box-shadow: 0 12px 24px rgba(47, 180, 99, 0.26);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 18px;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 650;
}

.nav-links a:hover {
  color: var(--green-dark);
}

main {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(320px, 0.72fr);
  gap: 42px;
  align-items: center;
  padding: 72px 0 56px;
}

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

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

h1 {
  max-width: 760px;
  margin-bottom: 22px;
  font-size: clamp(3rem, 7vw, 6.6rem);
  line-height: 0.92;
  letter-spacing: -0.08em;
}

.hero-text {
  max-width: 640px;
  color: var(--muted);
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  line-height: 1.65;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 22px;
  border-radius: 999px;
  font-weight: 800;
}

.button.primary {
  color: #fff;
  background: var(--green);
  box-shadow: 0 16px 32px rgba(47, 180, 99, 0.24);
}

.button.secondary {
  color: var(--green-dark);
  background: #fff;
  border: 1px solid var(--border);
}

.section-heading {
  max-width: 720px;
  padding: 30px 0 18px;
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.5rem);
  line-height: 1;
  letter-spacing: -0.07em;
}

.hero-card {
  display: grid;
  place-items: center;
  padding: 28px;
  background:
    linear-gradient(145deg, rgba(253, 238, 219, 0.96), rgba(255, 255, 255, 0.72)),
    radial-gradient(circle at 20% 10%, rgba(47, 180, 99, 0.22), transparent 16rem);
  border: 1px solid rgba(47, 180, 99, 0.12);
  border-radius: 42px;
  box-shadow: var(--shadow);
}

.phone-frame {
  width: min(310px, 100%);
  padding: 14px;
  background: #151b18;
  border-radius: 38px;
  box-shadow: 0 24px 52px rgba(0, 0, 0, 0.22);
}

.app-preview {
  min-height: 470px;
  padding: 24px;
  background: #f7fbf4;
  border-radius: 28px;
}

.preview-pill {
  width: 68px;
  height: 7px;
  margin: 0 auto 30px;
  background: rgba(0, 0, 0, 0.12);
  border-radius: 999px;
}

.app-preview h2 {
  margin-bottom: 22px;
  font-size: 2.25rem;
  line-height: 1;
  letter-spacing: -0.06em;
}

.ingredient-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 22px;
}

.ingredient-row span {
  padding: 8px 11px;
  color: var(--green-dark);
  background: rgba(47, 180, 99, 0.11);
  border-radius: 999px;
  font-size: 0.86rem;
  font-weight: 750;
}

.recipe-card {
  display: grid;
  gap: 6px;
  margin-top: 12px;
  padding: 16px;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 14px 34px rgba(21, 37, 27, 0.08);
}

.recipe-card span {
  color: var(--muted);
  font-size: 0.9rem;
}

.recipe-card.muted {
  opacity: 0.74;
}

.features {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  padding: 24px 0 56px;
}

.feature-card,
.support-card,
.legal-card {
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid var(--border);
  box-shadow: 0 18px 48px rgba(18, 34, 25, 0.06);
}

.feature-card {
  padding: 24px;
  border-radius: 28px;
}

.feature-icon {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  margin-bottom: 18px;
  color: #fff;
  background: var(--green);
  border-radius: 15px;
  font-weight: 900;
}

.feature-card h2,
.support-card h2,
.info-card h2,
.screen-card h3 {
  margin-bottom: 10px;
  font-size: 1.35rem;
  letter-spacing: -0.04em;
}

.feature-card p,
.support-card p,
.info-card p,
.screen-card p,
.legal-card p,
.legal-card li {
  color: var(--muted);
  line-height: 1.7;
}

.step-label {
  margin-bottom: 6px;
  color: var(--green-dark) !important;
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

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

.screen-card,
.info-card {
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid var(--border);
  box-shadow: 0 18px 48px rgba(18, 34, 25, 0.06);
}

.screen-card {
  padding: 14px;
  border-radius: 30px;
}

.screen-card h3 {
  margin: 18px 6px 8px;
}

.screen-card p {
  margin: 0 6px 8px;
  font-size: 0.95rem;
}

.screen-preview {
  position: relative;
  min-height: 300px;
  padding: 18px;
  overflow: hidden;
  background:
    radial-gradient(circle at 20% 10%, rgba(47, 180, 99, 0.16), transparent 10rem),
    linear-gradient(180deg, #f8fff4, #fff8ef);
  border: 10px solid #17201b;
  border-radius: 34px;
}

.screen-preview::before {
  position: absolute;
  top: 12px;
  left: 50%;
  width: 54px;
  height: 6px;
  content: "";
  background: rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  transform: translateX(-50%);
}

.screen-top {
  width: 52%;
  height: 18px;
  margin: 24px 0 18px;
  background: rgba(17, 24, 21, 0.12);
  border-radius: 999px;
}

.camera-box,
.detail-hero {
  height: 138px;
  background: var(--cream);
  border: 1px solid rgba(47, 180, 99, 0.12);
  border-radius: 24px;
}

.thumb-row {
  display: flex;
  gap: 8px;
  margin-top: 14px;
}

.thumb-row span {
  width: 44px;
  height: 44px;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 10px 24px rgba(20, 31, 25, 0.08);
}

.ingredient-line,
.detail-line {
  height: 42px;
  margin-top: 16px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 10px 24px rgba(20, 31, 25, 0.08);
}

.ingredient-line:first-child,
.detail-line:first-of-type {
  margin-top: 32px;
}

.ingredient-line.short,
.detail-line.short {
  width: 72%;
}

.mini-recipe {
  height: 74px;
  margin-top: 18px;
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 10px 24px rgba(20, 31, 25, 0.08);
}

.mini-recipe:first-child {
  margin-top: 36px;
}

.mini-recipe.muted {
  opacity: 0.68;
}

.detail-hero {
  margin-top: 34px;
  height: 116px;
}

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

.info-card {
  padding: 28px;
  border-radius: 30px;
}

.info-card a,
.support-card a:not(.button) {
  color: var(--green-dark);
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.support-card {
  margin-bottom: 72px;
  padding: 30px;
  border-radius: 30px;
}

.support-card .button {
  margin-top: 8px;
}

.legal-page {
  max-width: 860px;
  padding: 42px 0 72px;
}

.back-link {
  display: inline-flex;
  margin-bottom: 18px;
  color: var(--green-dark);
  font-weight: 800;
}

.legal-card {
  padding: clamp(24px, 5vw, 54px);
  border-radius: 34px;
}

.legal-card h1 {
  margin-bottom: 12px;
  font-size: clamp(2.4rem, 6vw, 4.2rem);
}

.legal-card h2 {
  margin: 34px 0 10px;
  font-size: 1.28rem;
  letter-spacing: -0.03em;
}

.legal-card a {
  color: var(--green-dark);
  font-weight: 750;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.updated {
  margin-bottom: 28px;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 28px 0 34px;
  color: var(--muted);
  border-top: 1px solid var(--border);
  font-size: 0.94rem;
}

.site-footer div {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.site-footer a:hover {
  color: var(--green-dark);
}

@media (max-width: 860px) {
  .site-header,
  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .hero {
    grid-template-columns: 1fr;
    padding-top: 42px;
  }

  .hero-card {
    order: -1;
  }

  .features {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 520px) {
  .site-header {
    position: static;
  }

  .nav-links {
    width: 100%;
    justify-content: space-between;
    gap: 10px;
  }

  h1 {
    font-size: 3.4rem;
  }

  .hero-card {
    padding: 14px;
    border-radius: 30px;
  }

  .phone-frame {
    border-radius: 32px;
  }

  .app-preview {
    min-height: 410px;
  }

  .screens-grid,
  .info-grid {
    grid-template-columns: 1fr;
  }

  .screen-preview {
    min-height: 260px;
  }
}
