:root {
  color-scheme: dark;
  --page: #080a0a;
  --page-soft: #0f1211;
  --ink: #f2f6f3;
  --muted: #9ba7a2;
  --muted-2: #68736f;
  --line: rgba(255, 255, 255, 0.08);
  --card: #1a1f1e;
  --card-2: #242b29;
  --screen: #111312;
  --screen-2: #131816;
  --green: #77c7a3;
  --green-2: #153a2f;
  --blue: #8bd3ff;
  --blue-bg: #183944;
  --amber: #ffd27a;
  --rose: #ff8d8d;
  --aqua: #76e4d5;
  --ink-soft: #dbe7e1;
  --shadow: 0 30px 90px rgba(0, 0, 0, 0.45);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}

body {
  margin: 0;
  min-height: 100svh;
  overflow-x: clip;
  background:
    linear-gradient(135deg, rgba(118, 228, 213, 0.12), transparent 34%),
    linear-gradient(180deg, rgba(119, 199, 163, 0.08), transparent 520px),
    var(--page);
  color: var(--ink);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

button,
input,
select {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  border: 0;
  cursor: pointer;
}

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

.skip-link {
  position: fixed;
  left: 16px;
  top: 12px;
  z-index: 10000;
  transform: translateY(-140%);
  border-radius: 999px;
  background: var(--green);
  color: #09110e;
  font-weight: 900;
  padding: 10px 14px;
}

.skip-link:focus {
  transform: translateY(0);
}

a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 3px solid rgba(119, 199, 163, 0.85);
  outline-offset: 3px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 16px max(18px, env(safe-area-inset-right)) 16px max(18px, env(safe-area-inset-left));
  background: rgba(8, 10, 10, 0.78);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

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

.brand {
  gap: 12px;
  font-size: 18px;
  font-weight: 850;
}

.brand-mark {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--green), var(--aqua));
  color: #0d1511;
  font-weight: 900;
}

.site-nav {
  flex: 1;
  justify-content: center;
  gap: 6px;
}

.site-nav a {
  border-radius: 999px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 750;
  padding: 9px 13px;
}

.site-nav a:hover {
  background: rgba(255, 255, 255, 0.06);
  color: var(--ink);
}

.nav-cta,
.primary-link,
.secondary-link {
  align-items: center;
  border-radius: 999px;
  display: inline-flex;
  justify-content: center;
  font-weight: 900;
  min-height: 46px;
  padding: 0 18px;
}

.nav-cta,
.primary-link {
  background: var(--green);
  color: #0d1511;
  box-shadow: 0 16px 34px rgba(119, 199, 163, 0.18);
}

.nav-cta:hover,
.primary-link:hover {
  background: #91d7b8;
}

.secondary-link {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.07);
  color: var(--ink);
}

.secondary-link:hover {
  background: rgba(255, 255, 255, 0.12);
}

.hero-section {
  display: grid;
  grid-template-columns: minmax(300px, 0.92fr) minmax(340px, 0.9fr);
  gap: clamp(28px, 5vw, 76px);
  align-items: center;
  width: min(1240px, calc(100% - 40px));
  min-height: min(820px, calc(100svh - 67px));
  margin: 0 auto;
  padding: clamp(30px, 4vw, 54px) 0 clamp(44px, 6vw, 74px);
}

.hero-copy {
  max-width: 650px;
  align-self: center;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--green);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.hero-section h1 {
  margin: 0;
  max-width: 690px;
  color: #fff;
  font-size: clamp(44px, 7vw, 82px);
  line-height: 0.98;
}

.hero-lede,
.section-heading p {
  margin: 22px 0 0;
  color: var(--ink-soft);
  font-size: clamp(17px, 1.5vw, 20px);
  line-height: 1.55;
}

.badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 24px;
}

.badge-row span,
.planned-card > span {
  border: 1px solid rgba(119, 199, 163, 0.22);
  border-radius: 999px;
  background: rgba(21, 58, 47, 0.46);
  color: #bdebd5;
  font-size: 12px;
  font-weight: 900;
  padding: 8px 10px;
}

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

.mock-note {
  max-width: 560px;
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 14px;
  font-weight: 750;
  line-height: 1.45;
}

.pillar-card,
.feature-card,
.planned-card,
.signal-panel,
.week-budget-card,
.recipe-panel,
.stacked-list,
.stats-grid article,
.waitlist-form {
  border: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.045), transparent),
    rgba(20, 25, 24, 0.82);
  box-shadow: 0 18px 55px rgba(0, 0, 0, 0.22);
}

.hero-visual {
  position: relative;
  display: grid;
  justify-items: center;
  min-width: 0;
  padding: 24px 0;
}

.mock-shell {
  position: relative;
  z-index: 2;
  display: grid;
  justify-self: center;
  place-items: center;
  width: min(400px, calc(100vw - 32px));
  isolation: isolate;
}

.mock-static-preview {
  display: none;
  width: 100%;
}

.static-phone-frame {
  width: 100%;
  height: min(640px, 74svh);
  overflow: hidden;
  border: 8px solid #202423;
  border-radius: 42px;
  background: var(--screen);
  box-shadow: var(--shadow);
}

.static-phone-screen {
  height: 100%;
  overflow: hidden;
  background: var(--screen);
  color: #e5e7eb;
  padding: 40px 18px 20px;
}

.static-preview-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
}

.static-preview-header strong,
.static-diary-title {
  display: block;
  color: var(--green);
  font-size: 28px;
  font-weight: 900;
  line-height: 1;
}

.static-preview-header span:not(.static-heart) {
  display: block;
  color: var(--muted);
  font-size: 13px;
  font-weight: 750;
  margin-top: 5px;
}

.static-heart {
  border-radius: 999px;
  background: #1a2b25;
  color: var(--green);
  font-size: 13px;
  font-weight: 900;
  padding: 10px 12px;
}

.static-date-row {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 5px;
  margin: 22px 0 20px;
  text-align: center;
}

.static-date-row span,
.static-date-row strong {
  display: grid;
  min-height: 48px;
  place-items: center;
  border-radius: 17px;
  color: #cbd2cf;
  font-size: 16px;
  font-weight: 900;
}

.static-date-row strong {
  background: var(--green);
  color: #111312;
}

.static-summary-card,
.static-week-card,
.static-meal-card {
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--card);
  padding: 16px;
}

.static-summary-top,
.static-week-card > div:first-child,
.static-meal-card {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
}

.static-summary-top span,
.static-week-card span,
.static-macros span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.static-summary-top strong {
  display: block;
  color: #fff;
  font-size: 29px;
  line-height: 1;
  margin-top: 8px;
}

.static-summary-top div:last-child {
  text-align: right;
}

.static-summary-top div:last-child strong {
  color: var(--green);
}

.static-summary-top small {
  color: var(--muted);
  font-size: 12px;
}

.static-progress,
.static-week-bars {
  overflow: hidden;
  border-radius: 999px;
  background: #2a302e;
}

.static-progress {
  height: 10px;
  margin-top: 16px;
}

.static-progress span {
  display: block;
  width: 14%;
  height: 100%;
  border-radius: inherit;
  background: var(--green);
}

.static-macros,
.static-week-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 18px;
}

.static-week-card {
  margin-top: 18px;
}

.static-week-card strong {
  color: #fff;
  font-size: 13px;
}

.static-week-bars {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 1px;
  height: 6px;
  margin-top: 12px;
}

.static-week-bars span {
  background: #2a302e;
}

.static-week-bars span:first-child,
.static-week-bars span:nth-child(2) {
  background: var(--amber);
}

.static-week-stats {
  color: #fff;
  font-size: 12px;
  font-weight: 850;
}

.static-diary-title {
  color: #fff;
  font-size: 22px;
  margin-top: 24px;
}

.static-meal-card {
  align-items: center;
  margin-top: 12px;
}

.static-meal-card span,
.static-meal-card strong {
  color: #fff;
  font-weight: 900;
}

.mock-fullsize-button {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 7;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  border: 1px solid rgba(119, 199, 163, 0.35);
  border-radius: 999px;
  background: rgba(17, 19, 18, 0.88);
  color: var(--green);
  font-size: 12px;
  font-weight: 900;
  padding: 0 13px;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(14px);
}

.mock-fullsize-button:hover {
  background: rgba(21, 58, 47, 0.96);
}

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

.section-heading {
  min-width: 0;
  max-width: 720px;
}

.section-heading.compact {
  margin: 0 auto;
  text-align: center;
}

.section-heading h2 {
  margin: 0;
  color: #fff;
  font-size: clamp(31px, 4.5vw, 54px);
  line-height: 1.04;
  overflow-wrap: anywhere;
}

.pillar-section,
.feature-section,
.split-section,
.budget-section,
.flex-days-section,
.story-section,
.cooking-section,
.planned-section,
.engineering-section,
.waitlist-section {
  border-top: 1px solid var(--line);
  padding: clamp(62px, 8vw, 112px) 0;
}

.pillar-section,
.budget-section,
.flex-days-section,
.story-section,
.planned-section,
.engineering-section {
  background: rgba(15, 18, 17, 0.5);
}

.pillar-grid,
.feature-grid,
.budget-summary-grid,
.planned-grid,
.stats-grid {
  display: grid;
  gap: 16px;
  margin-top: 34px;
}

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

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

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

.planned-grid,
.stats-grid,
.split-grid,
.budget-grid,
.flex-days-grid,
.story-grid,
.waitlist-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(22px, 5vw, 58px);
  align-items: center;
}

.pillar-card,
.feature-card,
.planned-card {
  border-radius: 24px;
  padding: 22px;
}

.feature-card.small {
  min-height: 160px;
}

.pillar-card span {
  color: var(--green);
  font-size: 13px;
  font-weight: 900;
}

.pillar-card h3,
.feature-card h3,
.planned-card h3 {
  margin: 18px 0 9px;
  color: #fff;
  font-size: 21px;
  line-height: 1.15;
}

.pillar-card p,
.feature-card p,
.planned-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.signal-panel,
.week-budget-card,
.flex-visual-card,
.recipe-panel,
.stacked-list {
  display: grid;
  gap: 12px;
  border-radius: 28px;
  padding: 18px;
}

.signal-row,
.signal-result,
.budget-summary-grid div,
.recipe-panel div,
.stacked-list div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.045);
  padding: 16px;
}

.signal-result {
  background: linear-gradient(135deg, rgba(119, 199, 163, 0.24), rgba(139, 211, 255, 0.13));
}

.budget-points {
  display: grid;
  gap: 10px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}

.budget-points li {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.045);
  color: var(--ink-soft);
  font-weight: 800;
  line-height: 1.45;
  padding: 13px 14px 13px 40px;
}

.budget-points li::before {
  content: "";
  position: absolute;
  top: 18px;
  left: 18px;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--green);
  box-shadow: 0 0 18px rgba(119, 199, 163, 0.55);
}

.budget-note {
  display: inline-block;
  width: auto;
  max-width: 100%;
  border: 1px solid rgba(119, 199, 163, 0.25);
  border-radius: 999px;
  background: rgba(21, 58, 47, 0.38);
  color: #bdebd5 !important;
  font-size: 14px !important;
  font-weight: 900;
  margin-top: 20px !important;
  overflow-wrap: anywhere;
  padding: 9px 12px;
  white-space: normal;
}

.week-budget-card {
  position: relative;
  overflow: hidden;
  border-radius: 30px;
  padding: 20px;
}

.week-budget-card::before {
  content: "";
  position: absolute;
  inset: -28% -18% auto auto;
  width: 220px;
  height: 220px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(118, 228, 213, 0.18), transparent 68%);
  pointer-events: none;
}

.week-card-header {
  position: relative;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.week-card-header span {
  border: 1px solid rgba(119, 199, 163, 0.24);
  border-radius: 999px;
  background: rgba(21, 58, 47, 0.45);
  color: var(--green);
  flex: 0 0 auto;
  font-size: 12px;
  font-weight: 900;
  padding: 8px 10px;
}

.week-card-header strong {
  max-width: 330px;
  color: #fff;
  font-size: clamp(23px, 2.6vw, 34px);
  line-height: 1.04;
  text-align: right;
}

.budget-summary-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 22px;
}

.budget-summary-grid div {
  align-items: flex-start;
  flex-direction: column;
  gap: 8px;
}

.budget-summary-grid span,
.budget-day span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.budget-summary-grid strong {
  color: #fff;
  font-size: 18px;
  line-height: 1.15;
}

.budget-progress {
  position: relative;
  height: 12px;
  overflow: hidden;
  border-radius: 999px;
  background: #222a28;
  margin-top: 18px;
}

.budget-progress span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--green), var(--aqua));
}

.week-budget-days {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 8px;
  margin-top: 18px;
}

.budget-day {
  position: relative;
  min-height: 134px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.045);
  padding: 12px;
}

.budget-day::after {
  content: "";
  position: absolute;
  right: 10px;
  bottom: 10px;
  left: 10px;
  height: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
}

.budget-day.under::after {
  background: linear-gradient(90deg, var(--green) 72%, rgba(255, 255, 255, 0.1) 72%);
}

.budget-day.over::after {
  background: linear-gradient(90deg, var(--rose) 100%, var(--rose) 100%);
}

.budget-day.adjusted::after {
  background: linear-gradient(90deg, var(--amber) 61%, rgba(255, 255, 255, 0.1) 61%);
}

.budget-day strong {
  display: block;
  color: #fff;
  font-size: 13px;
  line-height: 1.2;
  margin-top: 12px;
  overflow-wrap: anywhere;
}

.budget-day b {
  display: inline-flex;
  border-radius: 999px;
  color: #0d1511;
  font-size: 11px;
  font-weight: 950;
  margin-top: 13px;
  padding: 5px 7px;
}

.budget-day.under b,
.budget-day:not(.over):not(.adjusted) b {
  background: var(--green);
}

.budget-day.over b {
  background: var(--rose);
}

.budget-day.adjusted b {
  background: var(--amber);
}

.budget-flow-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.budget-flow-chip {
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 900;
  padding: 9px 11px;
  animation: budgetPulse 4.8s ease-in-out infinite;
}

.budget-flow-chip.balanced {
  animation-delay: -2.1s;
}

.flex-days-grid {
  align-items: start;
}

.flex-days-cards {
  margin-top: clamp(26px, 4vw, 42px);
}

.flex-visual-card {
  min-width: 0;
  position: relative;
  overflow: hidden;
}

.flex-visual-card::before {
  content: "";
  position: absolute;
  inset: auto -22% -34% auto;
  width: 250px;
  height: 250px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(255, 210, 122, 0.18), transparent 68%);
  pointer-events: none;
}

.flex-card-header {
  position: relative;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.flex-card-header span {
  border: 1px solid rgba(255, 210, 122, 0.28);
  border-radius: 999px;
  background: rgba(79, 58, 24, 0.46);
  color: var(--amber);
  flex: 0 0 auto;
  font-size: 12px;
  font-weight: 900;
  padding: 8px 10px;
}

.flex-card-header strong {
  max-width: 290px;
  color: #fff;
  font-size: clamp(24px, 2.6vw, 34px);
  line-height: 1.04;
  overflow-wrap: anywhere;
  text-align: right;
}

.flex-meter {
  position: relative;
  height: 12px;
  overflow: hidden;
  border-radius: 999px;
  background: #242a28;
  margin-top: 26px;
}

.flex-meter span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--amber), var(--green));
}

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

.flex-metrics div {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.045);
  padding: 14px;
}

.flex-metrics span {
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  line-height: 1.25;
  overflow-wrap: anywhere;
  text-transform: uppercase;
}

.flex-metrics strong {
  display: block;
  color: #fff;
  font-size: 18px;
  line-height: 1.2;
  margin-top: 10px;
}

.flex-visual-card p {
  position: relative;
  margin: 18px 0 0;
  color: var(--ink-soft);
  line-height: 1.55;
}

.signal-row span,
.signal-result span,
.recipe-panel span,
.stacked-list span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 850;
}

.signal-row strong,
.signal-result strong,
.recipe-panel strong,
.stacked-list strong {
  color: #fff;
  text-align: right;
}

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

.stats-grid article {
  border-radius: 22px;
  padding: 20px;
}

.stats-grid span {
  color: var(--green);
  font-size: 13px;
  font-weight: 900;
}

.stats-grid strong {
  display: block;
  margin-top: 12px;
  color: #fff;
  font-size: 18px;
  line-height: 1.25;
}

.timeline-list {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  margin: 36px 0 0;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: var(--line);
  list-style: none;
}

.timeline-list li {
  min-height: 180px;
  background:
    linear-gradient(180deg, rgba(119, 199, 163, 0.06), transparent),
    #111514;
  color: var(--ink-soft);
  font-weight: 800;
  line-height: 1.35;
  padding: 22px;
}

.timeline-list span {
  display: block;
  margin-bottom: 40px;
  color: var(--green);
  font-size: 13px;
  font-weight: 900;
}

.planned-card > span {
  display: inline-flex;
  width: max-content;
  margin-bottom: 6px;
}

.waitlist-section {
  padding-bottom: clamp(72px, 10vw, 128px);
  background:
    linear-gradient(180deg, rgba(119, 199, 163, 0.08), transparent 55%),
    #0c0f0e;
}

.waitlist-form {
  border-radius: 28px;
  padding: 22px;
}

.waitlist-form label,
.platform-choice legend {
  color: #fff;
  font-weight: 900;
}

.field-row {
  display: flex;
  gap: 10px;
  margin-top: 10px;
}

.field-row input {
  width: 100%;
  min-width: 0;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  font-weight: 800;
  min-height: 52px;
  padding: 0 17px;
}

.field-row input::placeholder {
  color: #7c8782;
}

.platform-choice {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  border: 0;
  margin: 18px 0 0;
  padding: 0;
}

.platform-choice legend {
  flex: 0 0 100%;
  margin-bottom: 2px;
}

.platform-choice label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.055);
  color: var(--ink-soft);
  font-size: 14px;
  padding: 10px 12px;
}

.platform-choice input {
  accent-color: var(--green);
}

.form-note,
.form-status {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.form-status {
  min-height: 20px;
  font-weight: 800;
}

.form-status.error {
  color: #ffb0b0;
}

.form-status.success {
  color: var(--green);
}

.phone-mount {
  display: grid;
  place-items: center;
  width: 100%;
}

.phone-frame {
  position: relative;
  width: min(400px, calc(100vw - 32px));
  height: min(850px, calc(100svh - 118px));
  min-height: 680px;
  overflow: hidden;
  border: 8px solid #202423;
  border-radius: 48px;
  background: var(--screen);
  box-shadow: var(--shadow);
}

.phone-screen {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  min-height: 0;
  overflow: hidden;
  background: var(--screen);
  color: #e5e7eb;
}

.phone-main,
.sheet-scroll,
.receipt-scroll,
.food-scroll {
  scrollbar-width: none;
}

.phone-main::-webkit-scrollbar,
.sheet-scroll::-webkit-scrollbar,
.receipt-scroll::-webkit-scrollbar,
.food-scroll::-webkit-scrollbar {
  display: none;
}

.phone-main {
  position: relative;
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  padding-bottom: 104px;
  -webkit-overflow-scrolling: touch;
}

.is-animated-render .phone-tab {
  animation: fadeIn 180ms ease-out;
}

.is-quiet-render *,
.is-quiet-render *::before,
.is-quiet-render *::after {
  animation: none !important;
  transition-duration: 0.001ms !important;
  transition-delay: 0ms !important;
}

.app-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  padding: 42px 20px 18px;
}

.app-header.center {
  align-items: center;
}

.app-header h2 {
  margin: 0;
  color: var(--green);
  font-size: 29px;
  line-height: 1.05;
}

.app-header p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 14px;
  font-weight: 650;
}

.header-actions {
  display: flex;
  gap: 10px;
}

.icon-button,
.cart-button {
  position: relative;
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 999px;
  background: var(--card);
  color: #cdd5d1;
}

.icon-button:hover,
.cart-button:hover {
  background: var(--card-2);
}

.cart-count {
  position: absolute;
  top: -4px;
  right: -4px;
  display: grid;
  width: 18px;
  height: 18px;
  place-items: center;
  border: 2px solid var(--screen);
  border-radius: 999px;
  background: var(--green);
  color: #111312;
  font-size: 10px;
  font-weight: 900;
}

.heart-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 38px;
  border-radius: 999px;
  padding: 0 13px;
  background: #1a2b25;
  color: var(--green);
  font-size: 14px;
  font-weight: 850;
}

.date-rail {
  display: flex;
  justify-content: space-between;
  gap: 5px;
  overflow-x: auto;
  padding: 0 18px 20px;
  scrollbar-width: none;
}

.date-rail::-webkit-scrollbar {
  display: none;
}

.date-button {
  display: grid;
  min-width: 42px;
  justify-items: center;
  gap: 8px;
  background: transparent;
  color: #cbd2cf;
}

.date-button span:first-child {
  color: var(--muted-2);
  font-size: 12px;
  font-weight: 850;
}

.date-button span:last-child {
  display: grid;
  width: 48px;
  height: 54px;
  place-items: center;
  border-radius: 18px;
  font-size: 17px;
  font-weight: 850;
}

.date-button.active span:first-child {
  color: var(--green);
}

.date-button.active span:last-child {
  background: var(--green);
  color: #111312;
}

.summary-card,
.meal-card,
.stock-card,
.shopping-card,
.receipt-card,
.food-macro-card,
.food-input-card,
.action-card,
.recipe-card,
.settings-row {
  background: var(--card);
  border: 1px solid var(--line);
}

.summary-card {
  margin: 0 20px 18px;
  border-radius: 24px;
  padding: 18px;
}

.summary-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 12px;
}

.metric-label {
  margin: 0 0 5px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.metric-value {
  display: flex;
  align-items: baseline;
  gap: 5px;
}

.metric-value strong {
  color: #fff;
  font-size: 30px;
  line-height: 1;
}

.metric-value span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.metric-value.green strong,
.metric-value.green span,
.metric-label.green {
  color: var(--green);
}

.progress-track {
  width: 100%;
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: #2a302e;
}

.progress-fill {
  height: 100%;
  border-radius: inherit;
  background: var(--green);
  transition: width 240ms ease;
}

.macro-progress-row {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  margin-top: 22px;
}

.macro-progress-item {
  flex: 1;
  min-width: 0;
}

.macro-progress-item p {
  overflow: hidden;
  margin: 0 0 8px;
  color: #e5e7eb;
  font-size: 12px;
  font-weight: 750;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.macro-track {
  width: 100%;
  height: 6px;
  overflow: hidden;
  border-radius: 999px;
  background: #2a302e;
  margin-bottom: 5px;
}

.macro-fill {
  height: 100%;
  border-radius: inherit;
  transition: width 240ms ease;
}

.macro-progress-item span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
}

.macro-progress-item strong {
  color: #fff;
}

.macro-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 14px;
}

.macro-row div,
.macro-chip {
  border-radius: 12px;
  background: #202725;
  padding: 9px;
}

.macro-row span,
.stock-meta,
.receipt-meta,
.tiny-label {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.macro-row strong {
  display: block;
  color: #fff;
  font-size: 14px;
  margin-top: 3px;
}

.week-strip {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 8px;
  margin: 0 20px 20px;
}

.week-strip div {
  display: flex;
  align-items: end;
  height: 42px;
  border-radius: 10px;
  overflow: hidden;
  background: #1a1f1e;
}

.week-strip span {
  display: block;
  width: 100%;
  min-height: 2px;
  border-radius: inherit;
  background: var(--green);
}

.weekly-card {
  margin: 0 20px 28px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--card);
  padding: 18px;
}

.weekly-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.weekly-title {
  display: flex;
  align-items: center;
  min-width: 0;
  gap: 8px;
  color: #fff;
  font-size: 14px;
  font-weight: 900;
}

.weekly-title .icon {
  color: var(--amber);
}

.weekly-kcal {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

.weekly-kcal strong {
  color: #fff;
}

.weekly-segments {
  display: flex;
  gap: 2px;
  width: 100%;
  height: 6px;
  overflow: hidden;
  border-radius: 999px;
  margin-bottom: 18px;
}

.weekly-segments div {
  flex: 1;
  overflow: hidden;
  background: #2a302e;
}

.weekly-segments span {
  display: block;
  height: 100%;
  background: var(--amber);
}

.weekly-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
}

.weekly-metric {
  min-width: 0;
  padding: 0 5px;
  text-align: center;
}

.weekly-metric + .weekly-metric {
  border-left: 1px solid #2a302e;
}

.weekly-metric-label {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  color: var(--muted);
  font-size: 9.5px;
  font-weight: 900;
  text-transform: uppercase;
}

.weekly-metric-label span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.weekly-metric-label.blue .icon:first-child {
  color: #60a5fa;
}

.weekly-metric-label.amber .icon:first-child {
  color: var(--amber);
}

.weekly-metric-label.ice .icon:first-child {
  color: #bfdbfe;
}

.weekly-metric strong {
  display: block;
  color: #fff;
  font-size: 16px;
  margin-top: 5px;
}

.section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 0 20px;
  margin: 0 0 12px;
}

.section-title h3 {
  margin: 0;
  color: #fff;
  font-size: 20px;
}

.section-title p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.meal-list,
.stock-list,
.recipe-list,
.settings-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 0 20px;
}

.meal-card {
  position: relative;
  overflow: visible;
  border-radius: 24px;
}

.meal-top,
.stock-top,
.shopping-row,
.settings-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.meal-top {
  width: 100%;
  padding: 15px;
  background: transparent;
  color: inherit;
  cursor: pointer;
  text-align: left;
}

.meal-left,
.stock-left,
.shopping-left,
.settings-left {
  display: flex;
  align-items: center;
  min-width: 0;
  gap: 12px;
}

.meal-icon,
.settings-icon {
  display: grid;
  width: 40px;
  height: 40px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 999px;
  background: var(--card-2);
  color: var(--green);
}

.meal-name,
.stock-name,
.shopping-name {
  overflow: hidden;
  color: #fff;
  font-size: 16px;
  font-weight: 850;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.meal-actions {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
}

.meal-cals {
  color: #d7dedb;
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
}

.round-plus {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 999px;
  background: var(--card-2);
  color: var(--green);
}

.round-plus.open {
  background: var(--green);
  color: #111312;
}

.round-plus.open svg {
  transform: rotate(45deg);
}

.meal-menu {
  position: absolute;
  top: 40px;
  right: 8px;
  z-index: 8;
  width: 178px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #1e2422;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
  animation: menuIn 140ms ease-out;
}

.meal-menu button {
  display: flex;
  align-items: center;
  width: 100%;
  gap: 12px;
  padding: 13px 16px;
  background: transparent;
  color: #e5e7eb;
  text-align: left;
}

.meal-menu button:hover {
  background: #28302d;
}

.meal-items {
  border-top: 1px solid var(--line);
  padding: 8px 14px 14px;
}

.meal-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 9px;
}

.emoji-box {
  display: grid;
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--card-2);
  font-size: 23px;
}

.red-pepper-visual {
  position: relative;
  display: block;
  width: 28px;
  height: 30px;
  transform: rotate(-12deg);
}

.red-pepper-visual::before {
  content: "";
  position: absolute;
  right: 5px;
  bottom: 1px;
  width: 17px;
  height: 23px;
  border-radius: 54% 46% 58% 42% / 46% 44% 56% 54%;
  background:
    radial-gradient(circle at 34% 28%, rgba(255, 255, 255, 0.28), transparent 19%),
    linear-gradient(145deg, #ff6b6b 0%, #dd2525 48%, #9f1212 100%);
  box-shadow: inset -4px -5px 8px rgba(83, 0, 0, 0.32);
}

.red-pepper-visual::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 11px;
  width: 12px;
  height: 9px;
  border-radius: 80% 20% 80% 20%;
  background: linear-gradient(135deg, #7ed06d, #2f7f3d);
  transform: rotate(18deg);
}

.search-row {
  display: flex;
  gap: 12px;
  padding: 0 20px 24px;
}

.search-box {
  display: flex;
  align-items: center;
  flex: 1;
  gap: 10px;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--card);
  padding: 13px 14px;
}

.search-box input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: #fff;
  font-weight: 700;
}

.search-box input::placeholder {
  color: #67716d;
}

.filter-button {
  display: grid;
  width: 52px;
  height: 52px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--card);
  color: #aeb8b3;
}

.stock-list {
  padding-bottom: 18px;
}

.stock-card {
  border-radius: 24px;
  padding: 14px;
  color: inherit;
  text-align: left;
  transition:
    border-color 160ms ease,
    transform 160ms ease;
}

.stock-card:hover {
  border-color: rgba(255, 255, 255, 0.15);
}

.stock-brand,
.shopping-brand {
  overflow: hidden;
  color: var(--muted);
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.stock-center,
.shopping-center {
  min-width: 0;
  flex: 1;
}

.stock-actions {
  display: flex;
  flex: 0 0 auto;
  gap: 8px;
}

.stock-cart,
.stock-eat,
.unit-button,
.small-action,
.save-button,
.verify-button,
.swap-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 13px;
  font-weight: 850;
}

.stock-cart {
  width: 42px;
  height: 42px;
  background: var(--blue-bg);
  color: var(--blue);
}

.stock-cart.added {
  background: var(--green-2);
  color: var(--green);
}

.stock-eat {
  height: 42px;
  padding: 0 14px;
  background: var(--green);
  color: #111312;
  font-size: 14px;
}

.stock-progress {
  margin-top: 14px;
}

.stock-progress-top {
  display: flex;
  align-items: end;
  justify-content: space-between;
  margin-bottom: 7px;
}

.stock-progress-top strong {
  color: var(--green);
  font-size: 12px;
}

.stock-progress-top span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}

.stock-details {
  display: grid;
  gap: 12px;
  border-top: 1px solid var(--line);
  margin-top: 14px;
  padding-top: 14px;
  animation: fadeIn 160ms ease-out;
}

.detail-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.macro-chip strong {
  display: block;
  color: #fff;
  font-size: 14px;
  margin-top: 4px;
}

.detail-actions {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.small-action {
  gap: 8px;
  min-height: 40px;
  background: #202725;
  color: #dfe7e3;
}

.app-placeholder {
  padding: 42px 20px 120px;
}

.recipe-card {
  border-radius: 24px;
  padding: 16px;
}

.recipe-card h3,
.settings-row h3 {
  margin: 0;
  color: #fff;
  font-size: 17px;
}

.recipe-card p,
.settings-row p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.recipe-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.recipe-meta span {
  border-radius: 999px;
  background: #202725;
  color: #d4ddd8;
  font-size: 12px;
  font-weight: 800;
  padding: 7px 10px;
}

.settings-row {
  border-radius: 18px;
  padding: 14px;
}

.bottom-nav {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 14;
  display: flex;
  justify-content: space-between;
  gap: 4px;
  border-top: 1px solid var(--line);
  background: var(--screen);
  box-shadow: 0 -12px 30px rgba(0, 0, 0, 0.6);
  padding: 12px 15px 24px;
}

.nav-button {
  display: grid;
  width: 72px;
  height: 64px;
  place-items: center;
  border-radius: 16px;
  background: transparent;
  color: #6e7773;
  font-size: 9px;
  font-weight: 900;
  text-transform: uppercase;
}

.nav-button.active {
  background: var(--green-2);
  color: var(--green);
}

.nav-button span {
  display: block;
  margin-top: 3px;
}

.fab-layer,
.fab-menu,
.modal-layer,
.receipt-layer,
.food-layer,
.shopping-layer {
  position: absolute;
}

.fab-layer {
  right: 20px;
  bottom: 112px;
  z-index: 18;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
}

.fab-menu {
  right: 0;
  bottom: 78px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  animation: slideUp 180ms ease-out;
}

.fab-option {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  min-width: 210px;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #1e2422;
  color: #fff;
  padding: 11px 13px 11px 17px;
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.35);
}

.fab-option span:first-child {
  font-size: 14px;
  font-weight: 850;
}

.fab-option span:last-child {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 999px;
  background: var(--card-2);
  color: var(--green);
}

.fab-main {
  display: grid;
  width: 64px;
  height: 64px;
  place-items: center;
  border: 1px solid rgba(119, 199, 163, 0.22);
  border-radius: 23px;
  background: #163d31;
  color: var(--green);
  box-shadow: 0 18px 30px rgba(0, 0, 0, 0.5);
  transition:
    transform 180ms ease,
    background 180ms ease;
}

.fab-main.open {
  transform: rotate(45deg) scale(0.96);
  border-color: rgba(255, 255, 255, 0.1);
  background: var(--card-2);
  color: #d6dedb;
}

.click-away {
  position: absolute;
  inset: 0;
  z-index: 16;
  background: transparent;
}

.modal-layer,
.shopping-layer {
  inset: 0;
  z-index: 30;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.62);
  backdrop-filter: blur(7px);
}

.bottom-sheet {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  max-height: 86%;
  border-radius: 28px 28px 0 0;
  background: var(--screen);
  box-shadow: 0 -18px 50px rgba(0, 0, 0, 0.55);
  animation: sheetIn 230ms ease-out;
}

.sheet-handle {
  align-self: center;
  width: 48px;
  height: 6px;
  border-radius: 999px;
  background: #55605b;
  margin: 12px 0 4px;
}

.sheet-header,
.receipt-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 16px 22px;
}

.sheet-header h2,
.receipt-header h2 {
  margin: 0;
  color: #fff;
  font-size: 24px;
}

.sheet-scroll,
.receipt-scroll,
.food-scroll {
  flex: 1;
  overflow-y: auto;
}

.sheet-scroll {
  padding: 0 14px 28px;
}

.sheet-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  gap: 14px;
  border-radius: 18px;
  background: transparent;
  color: inherit;
  padding: 12px;
  text-align: left;
}

.sheet-item:hover {
  background: var(--card);
}

.receipt-layer,
.food-layer {
  inset: 0;
  z-index: 40;
  display: flex;
  flex-direction: column;
  background: var(--screen);
  animation: sheetIn 230ms ease-out;
}

.receipt-header {
  padding-top: 42px;
}

.receipt-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.save-button {
  gap: 7px;
  min-height: 38px;
  padding: 0 12px;
  background: var(--green-2);
  color: var(--green);
  font-size: 13px;
}

.save-button[disabled] {
  opacity: 0.45;
  cursor: not-allowed;
  filter: grayscale(0.5);
}

.receipt-scroll {
  padding: 0 20px 34px;
}

.receipt-original,
.store-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--card);
  color: #e5e7eb;
  padding: 15px;
}

.receipt-original {
  margin-bottom: 18px;
}

.store-card {
  justify-content: flex-start;
  border-radius: 24px;
  background: transparent;
  margin-bottom: 24px;
}

.store-icon {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border-radius: 14px;
  background: var(--green-2);
  color: var(--green);
}

.store-card h3 {
  margin: 0;
  color: #fff;
  font-size: 20px;
}

.store-card p {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.receipt-title {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.receipt-list {
  display: grid;
  gap: 12px;
  margin-bottom: 26px;
}

.receipt-card {
  border-radius: 24px;
  padding: 15px;
}

.receipt-card-inner {
  display: flex;
  gap: 13px;
}

.receipt-media {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 0 0 auto;
  gap: 8px;
}

.receipt-emoji-wrap {
  position: relative;
}

.receipt-emoji {
  display: grid;
  width: 50px;
  height: 50px;
  place-items: center;
  border-radius: 14px;
  background: var(--card-2);
  font-size: 25px;
}

.receipt-alert {
  position: absolute;
  right: -4px;
  bottom: -4px;
  display: grid;
  width: 22px;
  height: 22px;
  place-items: center;
  border: 3px solid var(--screen);
  border-radius: 999px;
  background: #a3b8b0;
  color: #111312;
  font-size: 10px;
  font-weight: 900;
}

.receipt-qty {
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--screen);
  color: #d8dfdc;
  font-size: 10px;
  font-weight: 900;
  padding: 4px 8px;
}

.receipt-body {
  min-width: 0;
  flex: 1;
}

.receipt-topline {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

.receipt-topline h4 {
  margin: 0;
  color: #fff;
  font-size: 15px;
  line-height: 1.25;
}

.receipt-topline strong {
  color: #fff;
  font-size: 16px;
  white-space: nowrap;
}

.receipt-brand {
  margin: 5px 0 4px;
  color: var(--muted);
  font-size: 12px;
}

.ocr-row {
  display: flex;
  align-items: center;
  gap: 5px;
  color: var(--muted);
  font-size: 12px;
  margin-bottom: 10px;
}

.receipt-macros {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 13px;
}

.receipt-macros span {
  border-radius: 7px;
  background: var(--card-2);
  color: #dce3e0;
  font-size: 10px;
  font-weight: 900;
  padding: 5px 7px;
}

.receipt-macros span:first-child {
  background: var(--green-2);
  color: var(--green);
}

.receipt-card-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.unit-button {
  min-width: 72px;
  min-height: 40px;
  background: #1e2e38;
  color: #b9dfff;
  padding: 0 11px;
  font-size: 13px;
}

.receipt-action-buttons {
  display: flex;
  gap: 8px;
}

.swap-button,
.verify-button {
  width: 46px;
  height: 46px;
  background: var(--card-2);
  color: #cbd3cf;
}

.verify-button {
  color: #717b76;
}

.verify-button.next {
  color: var(--green);
  box-shadow: 0 0 0 2px var(--green), 0 0 18px rgba(119, 199, 163, 0.3);
  transform: scale(1.04);
}

.verify-button.verified {
  background: var(--green);
  color: #111312;
}

.receipt-summary {
  border-top: 1px dashed rgba(255, 255, 255, 0.22);
  padding: 22px 0 32px;
}

.receipt-summary-row {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.receipt-summary h3 {
  margin: 0;
  color: #fff;
  font-size: 20px;
}

.receipt-summary p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.receipt-summary strong {
  color: #fff;
  font-size: 23px;
}

.receipt-line {
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-size: 13px;
  margin-top: 8px;
}

.receipt-line b {
  color: #dfe7e3;
}

.food-layer {
  z-index: 45;
  background: var(--screen-2);
}

.food-scroll {
  padding: 42px 20px 138px;
}

.food-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.food-title-row {
  display: flex;
  align-items: center;
  min-width: 0;
  gap: 14px;
}

.food-emoji {
  display: grid;
  width: 64px;
  height: 64px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #1a221f;
  font-size: 38px;
}

.food-kicker {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--green);
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.food-kicker span {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--green);
}

.food-header h2 {
  overflow-wrap: anywhere;
  margin: 5px 0 0;
  color: #fff;
  font-size: 22px;
  line-height: 1.05;
  text-transform: uppercase;
}

.food-macro-card {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-radius: 24px;
  margin-top: 28px;
  padding: 16px;
}

.food-macro-card div {
  text-align: center;
}

.food-macro-card div + div {
  border-left: 1px solid var(--line);
}

.food-macro-card span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.food-macro-card strong {
  display: block;
  color: #fff;
  font-size: 16px;
  margin-top: 4px;
}

.food-macro-card div:first-child strong {
  color: var(--green);
}

.food-input-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border-radius: 28px;
  margin-top: 16px;
  padding: 14px 18px;
}

.amount-display {
  display: flex;
  align-items: baseline;
  min-width: 0;
  gap: 12px;
}

.amount-display strong {
  color: #fff;
  font-size: 40px;
  line-height: 1;
}

.unit-select {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: transparent;
  color: #d8e0dc;
  font-size: 15px;
  font-weight: 800;
}

.amount-presets {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  margin-top: 16px;
  scrollbar-width: none;
}

.amount-presets::-webkit-scrollbar {
  display: none;
}

.preset-button {
  flex: 0 0 auto;
  border-radius: 999px;
  background: #212a26;
  color: #d8e0dc;
  font-size: 13px;
  font-weight: 800;
  padding: 10px 14px;
  white-space: nowrap;
}

.preset-button.active {
  background: var(--green);
  color: #111312;
}

.amount-total {
  flex: 0 0 auto;
  margin-left: auto;
  color: #d8e0dc;
  font-size: 13px;
  font-weight: 850;
  white-space: nowrap;
}

.food-actions-grid {
  display: grid;
  grid-template-columns: 0.9fr 2fr;
  gap: 10px;
  margin-top: 26px;
}

.action-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  border-radius: 24px;
  color: #e5e7eb;
  padding: 14px;
}

.action-card-icon {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 13px;
  background: #212a26;
  color: var(--green);
}

.meal-select {
  max-width: 130px;
  border: 0;
  outline: 0;
  background: transparent;
  color: #e5e7eb;
  cursor: pointer;
  font-weight: 850;
}

.meal-select option {
  background: #1a221f;
}

.info-card {
  display: flex;
  align-items: center;
  gap: 13px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: #1a221f;
  margin-top: 12px;
  padding: 14px;
}

.info-card p {
  margin: 0;
  color: #e5e7eb;
  font-size: 14px;
  font-weight: 800;
}

.info-card span {
  display: block;
  color: var(--muted-2);
  font-size: 12px;
  margin-top: 3px;
}

.food-footer {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  background: linear-gradient(180deg, transparent, var(--screen-2) 32%);
  padding: 56px 20px 28px;
  pointer-events: none;
}

.log-button {
  width: 100%;
  min-height: 54px;
  border-radius: 999px;
  background: var(--green);
  color: #111312;
  font-size: 18px;
  font-weight: 900;
  pointer-events: auto;
}

.shopping-layer {
  z-index: 38;
}

.shopping-fullscreen {
  inset: 0;
  display: block;
  background: #0a0a0a;
  animation: slideFromRight 230ms ease-out;
}

.shopping-screen {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  background: var(--screen);
}

.shopping-header {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
  gap: 14px;
  border-bottom: 1px solid var(--line);
  padding: 42px 20px 15px;
}

.shopping-header h2 {
  margin: 0;
  color: #fff;
  font-size: 24px;
  line-height: 1.1;
}

.back-button {
  display: grid;
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 999px;
  background: transparent;
  color: #d6dedb;
}

.back-button:hover {
  background: var(--card);
}

.shopping-scroll {
  flex: 1;
  overflow-y: auto;
  padding: 22px 20px 92px;
  scrollbar-width: none;
}

.shopping-scroll::-webkit-scrollbar {
  display: none;
}

.shopping-section-title {
  margin: 0 0 13px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.smart-title {
  display: flex;
  align-items: center;
  gap: 7px;
}

.smart-title .icon {
  color: var(--amber);
}

.shopping-buy-list,
.shopping-suggestion-list {
  display: grid;
  gap: 9px;
}

.shopping-buy-list {
  margin-bottom: 34px;
}

.shopping-buy-item,
.shopping-suggestion {
  display: flex;
  align-items: center;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--card);
  color: inherit;
  padding: 14px;
  text-align: left;
}

.shopping-buy-item {
  gap: 14px;
}

.shopping-buy-item:hover,
.shopping-suggestion:hover {
  background: #212825;
}

.shopping-check {
  display: grid;
  width: 24px;
  height: 24px;
  flex: 0 0 auto;
  place-items: center;
  border: 2px solid #6d7772;
  border-radius: 999px;
}

.shopping-buy-item:hover .shopping-check {
  border-color: var(--green);
}

.shopping-emoji {
  display: grid;
  width: 48px;
  height: 48px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 14px;
  background: var(--card-2);
  font-size: 25px;
}

.shopping-buy-item .shopping-emoji {
  margin-left: auto;
}

.shopping-suggestion {
  justify-content: space-between;
  gap: 12px;
  border-style: dashed;
  background: rgba(26, 31, 30, 0.5);
}

.shopping-suggestion-left {
  display: flex;
  align-items: center;
  min-width: 0;
  gap: 13px;
}

.shopping-alert,
.shopping-muted {
  display: block;
  margin-top: 3px;
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.shopping-alert {
  color: var(--rose);
}

.shopping-muted {
  color: var(--muted-2);
}

.suggestion-add {
  display: grid;
  width: 40px;
  height: 40px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 999px;
  background: #163d31;
  color: var(--green);
}

.suggestion-add:hover {
  background: #1a4a3b;
}

.shopping-empty {
  display: grid;
  justify-items: center;
  border: 1px dashed var(--line);
  border-radius: 24px;
  background: var(--card);
  color: var(--muted);
  padding: 34px 18px;
  text-align: center;
}

.shopping-empty p {
  margin: 10px 0 0;
  font-weight: 750;
}

.shopping-card {
  border-radius: 18px;
  margin-bottom: 10px;
  padding: 13px;
}

.remove-button {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border-radius: 12px;
  background: #2a2424;
  color: var(--rose);
}

.low-stock-section {
  border-top: 1px solid var(--line);
  margin-top: 14px;
  padding-top: 16px;
}

.low-stock-section h3 {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 13px;
  text-transform: uppercase;
}

.empty-note {
  border: 1px dashed var(--line);
  border-radius: 18px;
  color: var(--muted);
  padding: 16px;
  text-align: center;
}

.overlay-top {
  z-index: 6;
}

.icon {
  display: block;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.icon-fill {
  fill: currentColor;
}

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

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes menuIn {
  from {
    opacity: 0;
    transform: translateY(-5px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes sheetIn {
  from {
    transform: translateY(100%);
  }
  to {
    transform: translateY(0);
  }
}

@keyframes slideFromRight {
  from {
    transform: translateX(100%);
  }
  to {
    transform: translateX(0);
  }
}

@keyframes budgetPulse {
  0%,
  100% {
    transform: translateX(0);
    border-color: rgba(255, 255, 255, 0.1);
  }

  50% {
    transform: translateX(8px);
    border-color: rgba(119, 199, 163, 0.42);
  }
}

@media (max-width: 1120px) {
  .hero-section {
    grid-template-columns: minmax(0, 1fr);
    min-height: auto;
    padding-top: 54px;
  }

  .hero-copy {
    max-width: 820px;
  }

  .hero-visual {
    order: 2;
  }

  .pillar-grid,
  .feature-grid.four,
  .stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .timeline-list {
    grid-template-columns: 1fr;
  }

  .timeline-list li {
    min-height: 0;
  }

  .timeline-list span {
    margin-bottom: 20px;
  }
}

@media (max-width: 920px) {
  .site-header {
    align-items: center;
    gap: 12px;
    padding: 13px 16px;
  }

  .site-nav {
    display: none;
  }

  .hero-section {
    width: min(100% - 28px, 680px);
  }

  .split-grid,
  .budget-grid,
  .flex-days-grid,
  .story-grid,
  .waitlist-grid,
  .planned-grid,
  .feature-grid {
    grid-template-columns: 1fr;
  }

  .split-grid.reverse .recipe-panel {
    order: 2;
  }

  .field-row {
    flex-direction: column;
  }

  .field-row .primary-link {
    width: 100%;
  }

  .phone-frame {
    height: 780px;
    max-height: calc(100svh - 96px);
    min-height: 650px;
  }
}

@media (max-width: 640px) {
  html {
    scroll-padding-top: 76px;
  }

  .nav-cta {
    display: none;
  }

  .hero-section {
    width: 100%;
    padding: 34px 0 58px;
  }

  .hero-copy,
  .section-inner {
    width: min(100% - 28px, 520px);
  }

  .hero-copy {
    margin: 0 auto;
  }

  .pillar-grid,
  .feature-grid.four,
  .stats-grid {
    grid-template-columns: 1fr;
  }

  .hero-actions .primary-link,
  .hero-actions .secondary-link {
    width: 100%;
  }

  .hero-visual {
    padding: 8px 0 0;
  }

  body:not(.mock-is-fullsize) .phone-mount {
    display: none;
  }

  body:not(.mock-is-fullsize) .mock-static-preview {
    display: block;
  }

  body:not(.mock-is-fullsize) .mock-shell {
    width: min(370px, calc(100vw - 28px));
  }

  .section-heading.compact {
    text-align: left;
  }

  .week-card-header,
  .flex-card-header {
    flex-direction: column;
  }

  .week-card-header strong,
  .flex-card-header strong {
    max-width: 100%;
    text-align: left;
  }

  .budget-note {
    border-radius: 18px;
    width: 100%;
  }

  .budget-summary-grid,
  .week-budget-days {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .budget-day {
    min-height: 118px;
  }

  .flex-metrics {
    grid-template-columns: 1fr;
  }

  .signal-row,
  .signal-result,
  .recipe-panel div,
  .stacked-list div {
    align-items: flex-start;
    flex-direction: column;
  }

  .signal-row strong,
  .signal-result strong,
  .recipe-panel strong,
  .stacked-list strong {
    text-align: left;
  }
}

@media (max-width: 480px) {
  .phone-mount,
  .phone-frame {
    width: 100%;
  }

  .phone-frame {
    border: 0;
    border-radius: 0;
    box-shadow: none;
    height: 82svh;
    min-height: 650px;
  }

  .app-header h2 {
    font-size: 27px;
  }

  .stock-actions {
    gap: 6px;
  }

  .stock-eat {
    padding: 0 12px;
  }

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

  .budget-summary-grid {
    grid-template-columns: 1fr;
  }
}

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

body.mock-is-fullsize {
  overflow: hidden;
}

body.mock-is-fullsize .mock-shell {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  max-height: 100dvh;
  place-items: stretch;
  background: var(--screen);
}

body.mock-is-fullsize .mock-shell:fullscreen,
body.mock-is-fullsize .mock-shell:-webkit-full-screen {
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  max-height: 100dvh;
  background: var(--screen);
}

body.mock-is-fullsize .phone-mount {
  width: 100%;
  height: 100%;
  min-height: 0;
}

body.mock-is-fullsize .phone-frame {
  width: 100vw;
  height: 100%;
  min-height: 0;
  max-height: none;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

body.mock-is-fullsize .phone-main {
  padding-bottom: 18px;
}

body.mock-is-fullsize .bottom-nav {
  position: relative;
  right: auto;
  bottom: auto;
  left: auto;
  align-items: center;
  flex: 0 0 auto;
  height: auto;
  min-height: calc(86px + env(safe-area-inset-bottom));
  width: 100%;
  padding: 8px 12px max(10px, env(safe-area-inset-bottom));
  box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.65);
}

body.mock-is-fullsize .nav-button {
  width: min(78px, 24vw);
  height: 62px;
}

body.mock-is-fullsize .mock-fullsize-button {
  position: relative;
  top: auto;
  right: auto;
  z-index: 1002;
  justify-self: end;
  margin: max(8px, env(safe-area-inset-top)) max(10px, env(safe-area-inset-right)) 6px 10px;
  min-height: 34px;
  background: rgba(26, 31, 30, 0.9);
}

@media (min-width: 641px) {
  body.mock-is-fullsize .mock-shell {
    grid-template-rows: minmax(0, 1fr);
    place-items: center;
    padding: 24px;
    background:
      radial-gradient(circle at 50% 18%, rgba(119, 199, 163, 0.12), transparent 34%),
      #080a0a;
  }

  body.mock-is-fullsize .mock-shell:fullscreen,
  body.mock-is-fullsize .mock-shell:-webkit-full-screen {
    display: grid;
    place-items: center;
    padding: 24px;
    background:
      radial-gradient(circle at 50% 18%, rgba(119, 199, 163, 0.12), transparent 34%),
      #080a0a;
  }

  body.mock-is-fullsize .phone-mount {
    width: min(400px, calc(100vw - 64px));
    height: min(850px, calc(100dvh - 64px));
  }

  body.mock-is-fullsize .phone-frame {
    width: 100%;
    height: 100%;
    min-height: 0;
    border: 8px solid #202423;
    border-radius: 48px;
    box-shadow: var(--shadow);
  }

  body.mock-is-fullsize .phone-main {
    padding-bottom: 104px;
  }

  body.mock-is-fullsize .bottom-nav {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    height: auto;
    min-height: 0;
    width: 100%;
    padding: 12px 15px 24px;
  }

  body.mock-is-fullsize .nav-button {
    width: 72px;
    height: 64px;
  }

  body.mock-is-fullsize .mock-fullsize-button {
    position: fixed;
    top: 18px;
    right: 18px;
    margin: 0;
  }
}
