:root {
  color-scheme: light;
  --ink: #18231f;
  --muted: #65716c;
  --line: #dfe6e1;
  --panel: #ffffff;
  --wash: #f5f7f4;
  --leaf: #2f7c57;
  --leaf-dark: #205b41;
  --tomato: #c74e37;
  --blue: #376d92;
  --shadow: 0 18px 45px rgba(28, 45, 38, 0.1);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  color: var(--ink);
  background: var(--wash);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.network-banner {
  position: sticky;
  top: 0;
  z-index: 90;
  padding: calc(10px + env(safe-area-inset-top)) 16px 10px;
  color: #fff;
  text-align: center;
  background: #8b3a2c;
  font-size: 0.88rem;
  font-weight: 800;
}

.network-banner[hidden] {
  display: none;
}

button,
input {
  font: inherit;
}

button,
a {
  touch-action: manipulation;
}

:focus-visible {
  outline: 3px solid #e9a13a;
  outline-offset: 3px;
}

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

.app-shell {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 24px 0 42px;
}

.native-app .app-shell {
  width: min(1120px, calc(100% - 24px));
  padding:
    max(12px, env(safe-area-inset-top))
    max(0px, env(safe-area-inset-right))
    calc(32px + env(safe-area-inset-bottom))
    max(0px, env(safe-area-inset-left));
}

.native-app.keyboard-open .app-shell {
  padding-bottom: 16px;
}

.native-store-build .demo-disclosure {
  display: none;
}

.is-offline [data-subscription-product],
.is-offline #account-sign-in,
.is-offline #account-create,
.is-offline #load-instacart-products {
  cursor: not-allowed;
  opacity: 0.55;
}

.top-bar {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
  margin-bottom: 28px;
  padding: 14px 16px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 8px 22px rgba(28, 45, 38, 0.05);
}

.subscription-button {
  display: grid;
  gap: 2px;
  min-width: 116px;
  min-height: 48px;
  padding: 7px 12px;
  color: var(--leaf-dark);
  text-align: left;
  background: #eef4ef;
  border: 1px solid #cbdad0;
  border-radius: 8px;
  cursor: pointer;
}

.subscription-button span {
  font-weight: 850;
}

.subscription-button small {
  color: var(--muted);
  font-size: 0.72rem;
}

.is-pro .subscription-button {
  color: white;
  background: var(--leaf-dark);
  border-color: var(--leaf-dark);
}

.is-pro .subscription-button small {
  color: #dcebe3;
}

.usage-banner {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  align-items: center;
  margin: -14px 0 18px;
  padding: 11px 14px;
  color: var(--muted);
  background: #eef4ef;
  border: 1px solid #d8e4db;
  border-radius: 8px;
  font-size: 0.86rem;
}

.usage-banner strong {
  color: var(--leaf-dark);
}

.usage-banner button {
  margin-left: auto;
  padding: 7px 11px;
  color: white;
  background: var(--leaf);
  border: 0;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 800;
}

.brand-row {
  display: flex;
  gap: 14px;
  align-items: center;
}

.brand-mark {
  display: grid;
  width: 50px;
  height: 50px;
  place-items: center;
  color: white;
  background: var(--leaf);
  border-radius: 8px;
  font-weight: 850;
}

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

h1 {
  margin-bottom: 0;
  font-size: 1.5rem;
}

.steps {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 6px;
  background: #eef4ef;
  border-radius: 8px;
}

.step,
.primary-action,
.ghost-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 15px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 800;
}

.paywall-dialog {
  width: min(640px, calc(100% - 24px));
  max-height: calc(100vh - 24px);
  padding: 0;
  color: var(--ink);
  background: transparent;
  border: 0;
}

.paywall-dialog::backdrop {
  background: rgba(24, 35, 31, 0.62);
  backdrop-filter: blur(3px);
}

.auth-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgb(19 30 24 / 70%);
}

.auth-card {
  position: relative;
  width: min(100%, 430px);
  padding: 28px;
  border-radius: 24px;
  background: var(--surface, #fff);
  box-shadow: 0 24px 70px rgb(0 0 0 / 25%);
}

.auth-card form {
  display: grid;
  gap: 16px;
  margin: 20px 0 12px;
}

.auth-card label {
  display: grid;
  gap: 7px;
  font-weight: 700;
}

.auth-card input {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #b8c7bc;
  border-radius: 12px;
  font: inherit;
}

.text-action {
  border: 0;
  background: transparent;
  color: #245d3c;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.paywall-card {
  position: relative;
  overflow-y: auto;
  max-height: calc(100vh - 24px);
  padding: 28px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow);
}

.paywall-card h2 {
  max-width: 500px;
  margin-bottom: 10px;
  font-size: clamp(1.8rem, 5vw, 2.8rem);
  line-height: 1.03;
}

.paywall-close {
  position: absolute;
  top: 14px;
  right: 14px;
  padding: 7px 9px;
  color: var(--muted);
  background: #f5f7f4;
  border: 1px solid var(--line);
  border-radius: 6px;
  cursor: pointer;
  font-weight: 750;
}

.paywall-reason,
.paywall-tagline,
.demo-disclosure,
.renewal-disclosure,
.purchase-status {
  color: var(--muted);
  line-height: 1.4;
}

.paywall-benefits {
  display: grid;
  gap: 8px;
  margin: 18px 0;
  padding-left: 22px;
}

.paywall-benefits li::marker {
  color: var(--leaf);
}

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

.subscription-option {
  display: grid;
  gap: 5px;
  padding: 16px;
  color: var(--ink);
  text-align: left;
  background: #f7faf8;
  border: 2px solid #d8e4db;
  border-radius: 8px;
  cursor: pointer;
}

.subscription-option:hover {
  border-color: var(--leaf);
}

.subscription-option strong {
  font-size: 1.1rem;
}

.subscription-option span {
  color: var(--leaf-dark);
  font-weight: 800;
}

.subscription-option small {
  color: var(--muted);
  line-height: 1.3;
}

.demo-disclosure {
  margin: 14px 0;
  padding: 10px 12px;
  background: #fff7e8;
  border: 1px solid #efd8a6;
  border-radius: 8px;
  font-size: 0.82rem;
}

.storekit-native .demo-disclosure {
  display: none;
}

.renewal-disclosure {
  font-size: 0.78rem;
}

.paywall-actions {
  display: flex;
  gap: 8px;
}

.paywall-legal {
  display: flex;
  gap: 16px;
  justify-content: center;
  margin-top: 14px;
}

.paywall-legal a {
  color: var(--leaf-dark);
  font-size: 0.84rem;
  font-weight: 800;
}

.purchase-status {
  min-height: 20px;
  margin: 12px 0 0;
  font-size: 0.86rem;
  font-weight: 700;
}

.step {
  color: var(--muted);
  background: transparent;
  border: 1px solid var(--line);
}

.step.is-active {
  color: white;
  background: var(--leaf-dark);
  border-color: var(--leaf-dark);
}

.page {
  display: none;
}

.page.is-active {
  display: block;
  min-height: 640px;
  padding: 26px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.intro {
  max-width: 720px;
  margin: 18px auto 22px;
  text-align: center;
}

.intro h2 {
  margin-bottom: 12px;
  font-size: clamp(2rem, 6vw, 4rem);
  line-height: 1;
}

.intro p:not(.eyebrow) {
  color: var(--muted);
  font-size: 1.05rem;
}

.intro .start-message {
  color: var(--leaf);
  font-size: clamp(2.4rem, 7vw, 4.8rem);
  font-weight: 850;
  line-height: 0.98;
  white-space: nowrap;
}

.setup-card {
  display: grid;
  grid-template-columns: 1fr;
  justify-items: center;
  gap: 16px;
  max-width: 680px;
  margin: 0 auto;
  padding: 28px;
  background: #fbfdfb;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.setup-card > label {
  display: block;
  width: min(100%, 420px);
}

.setup-card > label input,
.setup-card > label .money-field {
  min-height: 52px;
  margin-top: 9px;
  border-color: #d6e2da;
  box-shadow: 0 1px 0 rgba(31, 41, 35, 0.03);
}

.plan-history-panel {
  display: grid;
  gap: 14px;
  max-width: 760px;
  margin: 22px auto 0;
  padding: 20px;
  background: #f7faf8;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.plan-history-panel[hidden] {
  display: none;
}

.plan-history-panel h2 {
  margin-bottom: 5px;
  font-size: 1.35rem;
}

.plan-history-panel p {
  margin-bottom: 0;
  color: var(--muted);
}

.plan-history-list {
  display: grid;
  gap: 8px;
}

.plan-history-card {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  padding: 12px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.plan-history-card p {
  margin-top: 4px;
  font-size: 0.86rem;
  line-height: 1.35;
}

.plan-history-card button {
  flex: 0 0 auto;
  min-height: 38px;
  padding: 7px 10px;
  color: var(--leaf-dark);
  background: #eef4ef;
  border: 1px solid #cbdad0;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 800;
}

label,
legend {
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 800;
}

input {
  width: 100%;
  min-height: 44px;
  margin-top: 8px;
  padding: 10px 12px;
  color: var(--ink);
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  outline: none;
}

input:focus {
  border-color: var(--leaf);
  box-shadow: 0 0 0 3px rgba(47, 124, 87, 0.14);
}

.money-field {
  display: grid;
  grid-template-columns: 30px 1fr;
  align-items: center;
  margin-top: 8px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.money-field span {
  justify-self: center;
  color: var(--muted);
}

.money-field input {
  margin-top: 0;
  border: 0;
}

fieldset {
  grid-column: 1 / -1;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.segmented {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 4px;
  margin-top: 8px;
  padding: 4px;
  background: #eaf0ec;
  border-radius: 8px;
}

.segmented input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.segmented label {
  display: grid;
  min-height: 38px;
  place-items: center;
  color: var(--muted);
  border-radius: 6px;
  cursor: pointer;
}

.segmented input:checked + label {
  color: white;
  background: var(--leaf-dark);
}

.primary-action {
  color: white;
  background: var(--leaf);
  border: 1px solid var(--leaf);
}

.primary-action:hover {
  background: var(--leaf-dark);
  border-color: var(--leaf-dark);
}

.setup-card .primary-action {
  grid-column: 1 / -1;
  min-height: 48px;
}

.primary-action.compact {
  min-height: 42px;
}

.ghost-action {
  color: var(--leaf-dark);
  background: white;
  border: 1px solid var(--line);
}

.page-heading {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  margin-bottom: 18px;
}

.page-heading h2 {
  margin-bottom: 6px;
  font-size: clamp(1.7rem, 4vw, 2.8rem);
  line-height: 1.04;
}

.page-heading .primary-page-title {
  color: var(--leaf);
  font-size: clamp(2.3rem, 6vw, 4.2rem);
}

.page-heading p {
  max-width: 660px;
  margin-bottom: 0;
  color: var(--muted);
}

.meal-card,
.grocery-group,
.store-card,
.account-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
}

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

.account-card {
  display: grid;
  align-content: start;
  gap: 10px;
  padding: 18px;
}

.account-card h3 {
  margin-bottom: 2px;
}

.account-card dl {
  display: grid;
  gap: 8px;
  margin: 0;
}

.account-card dl div {
  display: grid;
  gap: 2px;
}

.account-card dt {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 850;
  text-transform: uppercase;
}

.account-card dd {
  margin: 0;
  font-weight: 750;
}

.account-card a {
  min-height: 42px;
  padding: 10px 12px;
  color: var(--leaf-dark);
  background: #eef4ef;
  border: 1px solid #d8e4db;
  border-radius: 8px;
  font-weight: 800;
  text-decoration: none;
}

.danger-card {
  border-color: #ecc8c1;
}

.danger-card p {
  color: var(--muted);
  line-height: 1.4;
}

.danger-action {
  min-height: 42px;
  padding: 0 14px;
  color: white;
  background: #a93e2d;
  border: 1px solid #a93e2d;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 800;
}

.health-disclaimer {
  margin-top: 18px;
  padding: 14px;
  color: #654d16;
  background: #fff7e8;
  border: 1px solid #efd8a6;
  border-radius: 8px;
  line-height: 1.45;
}

.legal-body {
  background: #f5f7f4;
}

.legal-document {
  width: min(760px, calc(100% - 28px));
  margin: 24px auto;
  padding: 28px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: var(--shadow);
}

.legal-document h1 {
  margin: 10px 0 20px;
  font-size: clamp(2rem, 6vw, 3.2rem);
}

.legal-document h2 {
  margin: 24px 0 7px;
  font-size: 1.18rem;
}

.legal-document p {
  color: var(--muted);
  line-height: 1.62;
}

.legal-document a {
  color: var(--leaf-dark);
  font-weight: 800;
}

.partner-body {
  background: #f5f7f4;
}

.partner-page {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 24px 0 54px;
}

.partner-hero {
  display: grid;
  gap: 42px;
  min-height: 88vh;
  padding: 18px 0 34px;
}

.partner-nav {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
}

.partner-brand {
  display: inline-flex;
  gap: 12px;
  align-items: center;
  color: var(--ink);
  font-weight: 900;
  text-decoration: none;
}

.partner-hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  width: 100%;
  gap: 28px;
  align-items: center;
  justify-items: center;
}

.partner-hero-copy {
  display: grid;
  width: 100%;
  gap: 18px;
  justify-items: center;
  text-align: center;
}

.partner-hero-copy h1 {
  width: 100%;
  max-width: none;
  font-size: clamp(1.35rem, 3.4vw, 2.45rem);
  line-height: 0.98;
  text-align: center;
  white-space: nowrap;
}

.partner-hero-eyebrow {
  font-size: clamp(1rem, 2.4vw, 2rem);
  line-height: 1.05;
  text-align: center;
  white-space: nowrap;
}

.partner-hero-copy p:not(.eyebrow),
.partner-band p,
.partner-cta p {
  max-width: 690px;
  margin-right: auto;
  margin-left: auto;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.6;
}

.partner-hero-copy .partner-hero-lead {
  color: var(--leaf-dark);
  font-weight: 850;
}

.partner-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

.partner-actions a,
.partner-nav a,
.partner-cta a {
  text-decoration: none;
}

.partner-snapshot {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  justify-self: center;
  width: min(100%, 820px);
  padding: 18px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.partner-snapshot div,
.partner-card {
  display: grid;
  gap: 8px;
  padding: 18px;
  background: #fbfdfb;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.partner-snapshot span {
  color: var(--tomato);
  font-size: 0.76rem;
  font-weight: 850;
  text-transform: uppercase;
}

.partner-snapshot strong {
  font-size: 1.35rem;
  line-height: 1.18;
}

.partner-section,
.partner-band,
.partner-cta {
  margin-top: 22px;
  padding: 34px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

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

.partner-section-heading h2,
.partner-band h2,
.partner-cta h2 {
  font-size: clamp(2rem, 5vw, 4rem);
  line-height: 1;
}

.partner-section-title {
  display: block;
  width: 100%;
  text-align: center;
  white-space: nowrap;
}

.accent-title {
  color: var(--tomato);
}

.partner-steps h2 {
  font-size: clamp(2.7rem, 6.5vw, 5.6rem);
  text-align: center;
  text-transform: uppercase;
}

.partner-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.partner-card {
  text-align: center;
}

.partner-card h3 {
  margin-bottom: 0;
  font-size: 1.2rem;
}

.partner-card p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.5;
}

.partner-band {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.72fr);
  justify-items: center;
  gap: 24px;
  align-items: center;
  text-align: center;
  color: white;
  background: var(--leaf-dark);
  border-color: var(--leaf-dark);
}

.partner-band .eyebrow,
.partner-band p {
  color: #dcebe3;
}

.partner-checklist {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.partner-checklist li {
  padding: 12px 14px;
  color: var(--ink);
  background: white;
  border-radius: 8px;
  font-weight: 850;
}

.partner-number-list {
  display: grid;
  width: min(100%, 680px);
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.partner-number-list li {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 12px 14px;
  color: var(--ink);
  background: white;
  border-radius: 8px;
  font-size: clamp(0.72rem, 1.08vw, 0.92rem);
  font-weight: 850;
  line-height: 1.35;
  text-align: left;
  white-space: nowrap;
}

.partner-number-list span {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  color: white;
  background: var(--tomato);
  border-radius: 8px;
  font-weight: 900;
}

.partner-number-list .long-step {
  font-size: clamp(0.64rem, 0.92vw, 0.82rem);
  white-space: normal;
}

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

.partner-feature-grid span {
  display: grid;
  min-height: 112px;
  align-content: center;
  padding: 16px;
  color: var(--leaf-dark);
  background: #eef4ef;
  border: 1px solid #d8e4db;
  border-radius: 8px;
  font-weight: 850;
  line-height: 1.25;
  text-align: center;
}

.partner-fit-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}

.partner-fit-list span {
  padding: 9px 12px;
  color: var(--leaf-dark);
  background: #eef4ef;
  border: 1px solid #d8e4db;
  border-radius: 999px;
  font-weight: 850;
}

.partner-cta {
  display: grid;
  justify-items: center;
  gap: 14px;
  text-align: center;
}

.partner-cta h2 {
  max-width: 880px;
  text-transform: uppercase;
}

.partner-cta p:not(.eyebrow) {
  color: var(--leaf-dark);
  font-weight: 850;
}

.partner-disclaimer {
  font-size: 0.9rem;
}

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

.empty-state {
  grid-column: 1 / -1;
  margin: 0;
  padding: 18px;
  color: var(--muted);
  background: #f7faf8;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-weight: 800;
}

.prep-tips-panel {
  display: grid;
  gap: 14px;
  margin-top: 18px;
  padding: 18px;
  background: #f7faf8;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.prep-tips-panel h3 {
  margin-bottom: 0;
  font-size: 1.25rem;
}

#prep-tips-content {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

#prep-tips-content article {
  padding: 14px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
}

#prep-tips-content h4 {
  margin: 0 0 8px;
  font-size: 0.9rem;
}

#prep-tips-content ul {
  display: grid;
  gap: 7px;
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.35;
}

.prep-loading {
  grid-column: 1 / -1;
  margin: 0;
  color: var(--muted);
  font-weight: 800;
}

.meal-card {
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(28, 45, 38, 0.06);
}

.meal-card img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: contain;
  object-position: center;
  background: #f1f4f2;
}

.meal-body {
  padding: 14px;
}

.meal-meta {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  color: var(--tomato);
  font-size: 0.76rem;
  font-weight: 850;
  text-transform: uppercase;
}

.meal-card h3 {
  margin: 9px 0 8px;
  font-size: 1.22rem;
  line-height: 1.18;
}

.meal-card p {
  margin-bottom: 12px;
  color: var(--muted);
  line-height: 1.42;
}

.favorite-action {
  width: 100%;
  min-height: 38px;
  margin-bottom: 14px;
  color: var(--leaf-dark);
  background: #eef4ef;
  border: 1px solid #d8e4db;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 850;
}

.favorite-action[aria-pressed="true"] {
  color: white;
  background: var(--tomato);
  border-color: var(--tomato);
}

.source-link {
  display: block;
  margin-top: 14px;
  color: var(--leaf-dark);
  font-weight: 850;
  text-align: center;
}

.source-link[hidden] {
  display: none;
}

.swap-meal-action {
  width: 100%;
  min-height: 40px;
  margin-top: 14px;
  color: var(--leaf-dark);
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  cursor: pointer;
  font-weight: 850;
}

.swap-meal-action:hover:not(:disabled) {
  background: #eef4ef;
  border-color: #cbdad0;
}

.swap-meal-action:disabled {
  cursor: wait;
  opacity: 0.72;
}

.meal-card h4 {
  margin: 0 0 8px;
  font-size: 0.84rem;
  text-transform: uppercase;
}

.meal-ingredients {
  display: grid;
  gap: 7px;
  margin: 0 0 14px;
  padding-left: 19px;
  color: var(--ink);
  line-height: 1.35;
}

.meal-ingredients li::marker {
  color: var(--leaf);
}

.meal-instructions {
  margin-bottom: 14px;
}

.meal-instructions ol {
  display: grid;
  gap: 7px;
  margin: 0 0 10px;
  padding-left: 19px;
  color: var(--ink);
  line-height: 1.38;
}

.meal-instructions li::marker {
  color: var(--tomato);
  font-weight: 700;
}

.instruction-status,
.instruction-note {
  margin: 0 0 7px;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.35;
}

.instruction-note strong {
  color: var(--ink);
}

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

.chip {
  padding: 5px 8px;
  color: var(--leaf-dark);
  background: #e7f0eb;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 850;
}

.grocery-list,
.store-list {
  display: grid;
  gap: 12px;
}

.grocery-list {
  max-width: 760px;
}

.grocery-group {
  padding: 18px 20px;
  box-shadow: 0 8px 20px rgba(28, 45, 38, 0.04);
}

.grocery-group h3 {
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
  font-size: 1.05rem;
}

.grocery-items {
  display: grid;
  gap: 0;
  padding: 0;
  list-style: none;
}

.grocery-items li {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding: 9px 0;
  border-bottom: 1px solid #edf1ee;
  background: transparent;
}

.grocery-items span {
  display: grid;
  gap: 3px;
}

.grocery-item-name {
  font-size: 1.12rem;
  font-weight: 800;
}

.grocery-items small {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 650;
}

.grocery-items li:last-child {
  border-bottom: 0;
}

.grocery-items strong {
  flex: 0 0 auto;
  color: var(--leaf-dark);
}

.store-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 16px;
}

.store-card h3 {
  margin-bottom: 4px;
  font-size: 1.08rem;
}

.store-card p {
  margin-bottom: 0;
  color: var(--muted);
}

.store-card .store-address {
  margin-bottom: 4px;
  color: var(--ink);
  font-weight: 650;
}

.store-price {
  text-align: right;
}

.store-price strong {
  display: block;
  font-size: 1.55rem;
}

.badge {
  display: inline-block;
  margin-top: 8px;
  padding: 5px 8px;
  color: white;
  background: var(--blue);
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 850;
}

.badge.best {
  background: var(--leaf);
}

.instacart-panel {
  display: grid;
  gap: 14px;
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.instacart-panel h3 {
  margin-bottom: 6px;
  font-size: 1.25rem;
}

.instacart-panel p:not(.eyebrow) {
  max-width: 680px;
  margin-bottom: 0;
  color: var(--muted);
}

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

.instacart-product {
  display: grid;
  gap: 10px;
  min-width: 0;
  padding: 12px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.instacart-product:hover {
  border-color: #cbdad0;
  box-shadow: 0 8px 20px rgba(28, 45, 38, 0.06);
}

.instacart-product a {
  display: grid;
  gap: 10px;
  min-width: 0;
  color: var(--ink);
  text-decoration: none;
}

.instacart-product img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: contain;
  background: #f7faf8;
  border-radius: 6px;
}

.instacart-product span {
  display: grid;
  gap: 4px;
}

.instacart-product strong {
  line-height: 1.22;
}

.instacart-product small {
  color: var(--muted);
  font-weight: 750;
}

.instacart-detail-action {
  width: 100%;
  padding: 9px 10px;
  color: var(--leaf-dark);
  font-weight: 800;
  background: #eef5f1;
  border: 1px solid #cbdad0;
  border-radius: 6px;
  cursor: pointer;
}

.instacart-detail-action:disabled {
  cursor: wait;
  opacity: 0.7;
}

.instacart-detail dl {
  display: grid;
  gap: 8px;
  margin: 0;
}

.instacart-detail div {
  display: grid;
  gap: 2px;
}

.instacart-detail dt {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 850;
  text-transform: uppercase;
}

.instacart-detail dd {
  margin: 0;
  color: var(--ink);
  font-size: 0.86rem;
  line-height: 1.32;
}

.page-footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 22px;
}

.split-footer {
  justify-content: space-between;
}

.next-action {
  min-width: 180px;
}

.pulse-action {
  animation: pulseGlow 1.8s ease-in-out infinite;
  box-shadow: 0 0 0 0 rgba(47, 124, 87, 0.4);
}

@keyframes pulseGlow {
  0% {
    box-shadow: 0 0 0 0 rgba(47, 124, 87, 0.38);
  }

  70% {
    box-shadow: 0 0 0 12px rgba(47, 124, 87, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(47, 124, 87, 0);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --ink: #eef5f1;
    --muted: #b4c0ba;
    --line: #405048;
    --panel: #1d2924;
    --wash: #111915;
    --leaf: #55a77d;
    --leaf-dark: #7cc69f;
    --tomato: #ef806b;
    --blue: #76add2;
    --shadow: 0 18px 45px rgba(0, 0, 0, 0.3);
  }

  body,
  .legal-body {
    background: var(--wash);
  }

  .top-bar,
  .page.is-active,
  .setup-card,
  .meal-card,
  .grocery-group,
  .store-card,
  .account-card,
  .paywall-card,
  .legal-document,
  .partner-section,
  .partner-cta,
  .partner-snapshot,
  #prep-tips-content article,
  .instacart-product,
  .plan-history-card {
    background: var(--panel);
  }

  input,
  .money-field,
  .ghost-action,
  .swap-meal-action {
    color: var(--ink);
    background: #17211d;
  }

  .steps,
  .segmented,
  .usage-banner,
  .favorite-action,
  .account-card a,
  .plan-history-card button,
  .chip {
    background: #26372f;
  }

  .empty-state,
  .prep-tips-panel,
  .subscription-option,
  .partner-snapshot div,
  .partner-card,
  .field,
  .group,
  .tip {
    background: #17211d;
  }

  .partner-band {
    color: #eef5f1;
    background: #1f4634;
    border-color: #315f48;
  }

  .partner-checklist li {
    color: var(--ink);
    background: #17211d;
  }

  .partner-number-list li,
  .partner-feature-grid span {
    color: var(--ink);
    background: #17211d;
    border-color: var(--line);
  }

  .demo-disclosure,
  .health-disclaimer {
    color: #f5dda2;
    background: #3b311d;
    border-color: #65532d;
  }
}

@media (max-width: 820px) {
  .app-shell {
    width: min(100% - 20px, 1120px);
    padding: 10px 0 28px;
  }

  .top-bar,
  .page-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .subscription-button {
    width: 100%;
  }

  .setup-card,
  .meal-grid,
  #prep-tips-content,
  .instacart-products,
  .subscription-options,
  .partner-hero-grid,
  .partner-card-grid,
  .partner-feature-grid,
  .partner-band,
  .account-grid {
    grid-template-columns: 1fr;
  }

  .usage-banner {
    margin-top: 0;
  }

  .usage-banner button {
    width: 100%;
    margin-left: 0;
  }

  .paywall-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .legal-document {
    margin: 10px auto;
    padding: 20px;
  }

  .steps {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
  }

  .step {
    width: 100%;
    min-height: 44px;
    padding: 8px 10px;
  }

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

  .segmented label {
    min-height: 44px;
    padding: 7px 8px;
    text-align: center;
  }

  .store-card {
    grid-template-columns: 1fr;
  }

  .store-price {
    text-align: left;
  }

  .page-footer,
  .split-footer,
  .plan-history-card {
    align-items: stretch;
    flex-direction: column;
  }

  .plan-history-card button {
    width: 100%;
  }

  .page-footer button,
  .page-heading button,
  .instacart-panel > button {
    width: 100%;
  }

  .partner-page {
    width: min(100% - 20px, 1120px);
    padding-top: 12px;
  }

  .partner-hero {
    gap: 24px;
    min-height: 0;
  }

  .partner-section,
  .partner-band,
  .partner-cta {
    padding: 22px;
  }

  .partner-snapshot {
    grid-template-columns: 1fr;
  }

  .partner-actions,
  .partner-nav {
    align-items: center;
    justify-content: center;
  }

  .partner-actions a,
  .partner-nav .ghost-action,
  .partner-cta a {
    width: min(100%, 360px);
  }

  .next-action {
    min-width: 0;
  }
}

@media (max-width: 520px) {
  .top-bar {
    gap: 14px;
    margin-bottom: 10px;
    padding: 12px;
  }

  .brand-row {
    gap: 10px;
  }

  .brand-mark {
    width: 44px;
    height: 44px;
  }

  .page.is-active {
    min-height: 0;
    padding: 18px 14px;
  }

  .intro {
    margin: 10px auto 18px;
  }

  .intro .start-message {
    font-size: clamp(2rem, 11vw, 3rem);
    line-height: 1.02;
    white-space: normal;
  }

  .setup-card {
    gap: 14px;
    padding: 16px;
  }

  .page-heading h2 {
    font-size: 1.75rem;
    overflow-wrap: anywhere;
  }

  .partner-hero-copy h1 {
    font-size: clamp(0.68rem, 3.25vw, 1.35rem);
    line-height: 1.05;
  }

  .partner-hero-eyebrow {
    font-size: clamp(0.76rem, 4.4vw, 1.4rem);
  }

  .partner-section-title {
    font-size: clamp(1.35rem, 8.5vw, 2.4rem);
  }

  .partner-hero-copy p:not(.eyebrow),
  .partner-band p,
  .partner-cta p {
    font-size: 1rem;
  }

  .partner-nav {
    flex-direction: column;
  }

  .partner-number-list li {
    grid-template-columns: 30px minmax(0, 1fr);
    gap: 10px;
    padding: 11px;
    font-size: 0.78rem;
    white-space: normal;
    overflow-wrap: normal;
  }

  .partner-number-list .long-step {
    font-size: clamp(0.64rem, 3.1vw, 0.78rem);
    line-height: 1.25;
  }

  .partner-number-list span {
    width: 30px;
    height: 30px;
  }

  .meal-card img {
    aspect-ratio: 4 / 3;
  }

  .meal-body,
  .prep-tips-panel {
    padding: 13px;
  }

  .favorite-action,
  .swap-meal-action {
    min-height: 44px;
  }

  .source-link {
    min-height: 44px;
    padding: 11px 8px;
  }

  .grocery-group {
    padding: 14px;
  }

  .grocery-items li {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }

  .grocery-items strong {
    align-self: flex-start;
  }

  .store-card {
    padding: 14px;
  }

  .chip {
    line-height: 1.25;
  }
}

@media (forced-colors: active) {
  .step.is-active,
  .primary-action,
  .danger-action,
  .is-pro .subscription-button {
    border: 2px solid ButtonText;
  }
}
