*, *::before, *::after { box-sizing: border-box; }
body { font-variant-numeric: tabular-nums; }
.page { min-height: 100vh; display: flex; flex-direction: column; overflow-x: hidden; }
.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.muted { color: var(--color-text-muted); font-weight: 400; }
[hidden] { display: none !important; }

.nav { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.wordmark { display: inline-flex; font-family: var(--font-display); font-size: 30px; line-height: 1; white-space: nowrap; text-decoration: none; transform: rotate(-2deg);
  filter: drop-shadow(rgba(31, 42, 34, .16) 0 1px 1px) drop-shadow(rgba(31, 42, 34, .1) 0 4px 8px); }
.wordmark span:first-child { padding: 5px 7px 6px 10px; background: var(--color-surface); color: var(--color-text); border-radius: 4px 0 0 4px; border-right: 1px dashed rgba(31, 42, 34, .4);
  box-shadow: inset 0 0 0 1px var(--color-border-subtle);
  -webkit-mask: radial-gradient(3px at 100% 0, #0000 98%, #000) top / 100% 51% no-repeat, radial-gradient(3px at 100% 100%, #0000 98%, #000) bottom / 100% 51% no-repeat;
  mask: radial-gradient(3px at 100% 0, #0000 98%, #000) top / 100% 51% no-repeat, radial-gradient(3px at 100% 100%, #0000 98%, #000) bottom / 100% 51% no-repeat; }
.wordmark span:last-child { padding: 5px 9px 6px 7px; background: var(--color-accent); color: var(--color-on-accent); border-radius: 0 4px 4px 0;
  -webkit-mask: radial-gradient(3px at 0 0, #0000 98%, #000) top / 100% 51% no-repeat, radial-gradient(3px at 0 100%, #0000 98%, #000) bottom / 100% 51% no-repeat;
  mask: radial-gradient(3px at 0 0, #0000 98%, #000) top / 100% 51% no-repeat, radial-gradient(3px at 0 100%, #0000 98%, #000) bottom / 100% 51% no-repeat; }
.tag { display: inline-flex; align-items: center; height: 24px; padding: 0 10px; border-radius: 5px; background: var(--color-surface-sunken); color: var(--color-text-muted); font: 600 12px/1 var(--font-ui); white-space: nowrap;
  -webkit-mask: radial-gradient(4px at 0 50%, #0000 98%, #000) left / 51% 100% no-repeat, radial-gradient(4px at 100% 50%, #0000 98%, #000) right / 51% 100% no-repeat;
  mask: radial-gradient(4px at 0 50%, #0000 98%, #000) left / 51% 100% no-repeat, radial-gradient(4px at 100% 50%, #0000 98%, #000) right / 51% 100% no-repeat; }

.hero { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 48px; align-items: center; padding-top: 40px; padding-bottom: 64px; }
.pitch { display: flex; flex-direction: column; gap: 20px; max-width: 540px; }
h1 { margin: 0; font-family: var(--font-display); font-weight: 400; font-size: var(--type-web-hero-size); line-height: var(--type-web-hero-line); letter-spacing: -.015em; text-wrap: balance; }
h1 em { font-style: normal; color: var(--color-primary); }
.lede { margin: 0; font: 400 18px/28px var(--font-ui); color: var(--color-text-muted); text-wrap: pretty; }

.card { background: var(--color-surface); border-radius: var(--radius-xl); box-shadow: var(--elevation-2); }
.form { display: flex; flex-direction: column; gap: 12px; padding: 16px; }
.goals { border: 0; margin: 4px 0; padding: 0; min-width: 0; }
.goals legend { padding: 0; margin-bottom: 10px; font: 600 15px/20px var(--font-ui); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; cursor: pointer; }
.chip input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.chip span { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 16px; border-radius: 8px; background: var(--color-surface); color: var(--color-text);
  box-shadow: inset 0 0 0 1px var(--color-border-subtle); font: 600 14px/1 var(--font-ui); white-space: nowrap;
  -webkit-mask: radial-gradient(circle 5px at 0 50%, #0000 98%, #000) left / 51% 100% no-repeat, radial-gradient(circle 5px at 100% 50%, #0000 98%, #000) right / 51% 100% no-repeat;
  mask: radial-gradient(circle 5px at 0 50%, #0000 98%, #000) left / 51% 100% no-repeat, radial-gradient(circle 5px at 100% 50%, #0000 98%, #000) right / 51% 100% no-repeat;
  transition: background var(--motion-fast), box-shadow var(--motion-instant); }
.chip:hover span { background: var(--color-surface-sunken); }
.chip input:checked + span { padding-left: 12px; background: var(--color-accent); color: var(--color-on-accent); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .3), inset 0 -2px 0 rgba(0, 0, 0, .08); }
.chip input:checked + span::before { content: ""; width: 14px; height: 14px; background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / contain no-repeat; }
.chip input:focus-visible + span { outline: 2px solid var(--color-focus); outline-offset: 2px; }

.field { display: flex; align-items: center; min-height: 54px; border-radius: 16px; background: var(--color-surface); box-shadow: inset 0 0 0 1px var(--color-border-subtle), var(--elevation-1); padding-right: 14px; gap: 8px; transition: box-shadow var(--motion-fast); }
.field:focus-within { box-shadow: inset 0 0 0 2px var(--color-primary), var(--elevation-1); }
.field.invalid, .field.invalid:focus-within { box-shadow: inset 0 0 0 2px var(--color-error), var(--elevation-1); }
.field-stub { flex: none; width: 50px; align-self: stretch; display: flex; align-items: center; justify-content: center; color: var(--color-text-muted); border-right: 1.5px dashed color-mix(in oklch, var(--color-border), var(--color-surface) 35%); }
.field input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; color: var(--color-text); font: 500 16px/24px var(--font-ui); padding: 14px 0 14px 4px; }
.field input::placeholder { color: var(--color-text-muted); }
.field-error { margin: -4px 0 0 4px; font: 500 14px/20px var(--font-ui); color: var(--color-error); }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.button { display: flex; width: 100%; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 20px; border: 0; border-radius: 12px; cursor: pointer;
  font: 700 15px/1 var(--font-ui); letter-spacing: .02em; background: var(--color-primary); color: #F2F7F0; text-shadow: rgba(0, 0, 0, .18) 0 1px 0;
  box-shadow: rgba(255, 255, 255, .22) 0 1px 0 inset, rgba(0, 0, 0, .12) 0 -2px 0 inset, rgba(31, 42, 34, .14) 0 1px 2px, rgba(30, 122, 76, .16) 0 4px 10px;
  transition: transform var(--motion-instant) var(--ease-standard), background var(--motion-fast); -webkit-tap-highlight-color: transparent; }
.button:hover { background: var(--color-primary-pressed); color: #F2F7F0; }
.button:active { transform: scale(.97); }
.button[disabled] { opacity: .6; cursor: progress; }

.sent { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px; padding: 28px 24px; outline: 0; }
.sent h2 { margin: 8px 0 0; font: 400 26px/32px var(--font-display); }
.sent p { margin: 0; color: var(--color-text-muted); max-width: 380px; text-wrap: pretty; }
.sent strong { color: var(--color-text); overflow-wrap: anywhere; }

.fineprint { display: flex; flex-direction: column; gap: 6px; }
.fineprint p { margin: 0; }
.perk { display: flex; align-items: stretch; margin: 0; min-height: 44px; border-radius: 12px; background: var(--color-surface); box-shadow: inset 0 0 0 1px var(--color-border-subtle); overflow: hidden; font: 400 15px/20px var(--font-ui); }
.perk > span:last-child { align-self: center; padding: 10px 14px; }
.perk-stub { flex: none; width: 50px; display: flex; align-items: center; justify-content: center; background: var(--color-accent); color: var(--color-on-accent); border-right: 1.5px dashed rgba(31, 42, 34, .35); }
.consent { font: 400 13px/19px var(--font-ui); color: var(--color-text-muted); }

.visual { position: relative; display: flex; justify-content: center; padding: 96px 0 40px; }
.mascot { position: absolute; top: 0; left: 50%; margin-left: -40px; width: 150px; height: auto; }
.label { position: relative; width: 300px; background: var(--color-surface); border-radius: var(--radius-xl); padding: 16px 20px 20px; box-shadow: var(--elevation-2); }
.kicker { margin-top: 4px; font: 700 11px/14px var(--font-ui); letter-spacing: .12em; text-transform: uppercase; color: var(--color-text-link); }
.kicker.muted { margin: 0; color: var(--color-text-muted); font-weight: 700; letter-spacing: .1em; }
.label h3 { margin: 2px 0 0; font: 600 20px/26px var(--font-ui); }
.serving { font: 400 13px/18px var(--font-ui); color: var(--color-text-muted); }
.rule-thick { height: var(--rule-thick); background: var(--label-rule); margin: 10px 0 2px; }
.rule-medium { height: var(--rule-medium); background: var(--label-rule); }
.row { display: flex; align-items: center; gap: 10px; min-height: 40px; border-bottom: var(--rule-hairline) solid var(--color-border-subtle); font: 400 15px/20px var(--font-ui); }
.row:last-of-type { border-bottom: 0; }
.row > span:first-of-type { flex: 1; }
.row.energy { align-items: baseline; min-height: 42px; padding-top: 6px; border-bottom: 0; font: 700 17px/22px var(--font-ui); }
.num { white-space: nowrap; }
.dot { width: 10px; height: 10px; border-radius: 2px; flex: none; }
.dot.protein { background: var(--color-macro-protein); }
.dot.carbs { background: var(--color-macro-carbs); }
.dot.fat { background: var(--color-macro-fat); }
.approx { color: var(--estimate-ink); font-weight: 700; margin-right: .2em; cursor: help; }
.label-foot { display: flex; align-items: center; gap: 8px; margin-top: 12px; }
.estimate { display: inline-flex; align-items: center; gap: 5px; min-height: 26px; padding: 0 10px 0 8px; border-radius: 8px; background: var(--color-surface-sunken); color: var(--color-text-muted); font: 600 12px/1 var(--font-ui); }
.estimate b { font: 800 14px/1 var(--font-ui); }
.shelf { position: absolute; right: max(0px, calc(50% - 290px)); bottom: -14px; display: flex; width: 284px; transform: rotate(-3deg);
  filter: drop-shadow(rgba(31, 42, 34, .14) 0 2px 3px) drop-shadow(rgba(31, 42, 34, .08) 0 8px 14px); }
.shelf-main { flex: 1; display: flex; flex-direction: column; gap: 3px; padding: 11px 14px 12px; background: var(--color-surface); border-radius: 8px 0 0 8px; border-right: 1.5px dashed rgba(31, 42, 34, .35);
  -webkit-mask: radial-gradient(7px at 100% 0, #0000 98%, #000) top / 100% 51% no-repeat, radial-gradient(7px at 100% 100%, #0000 98%, #000) bottom / 100% 51% no-repeat;
  mask: radial-gradient(7px at 100% 0, #0000 98%, #000) top / 100% 51% no-repeat, radial-gradient(7px at 100% 100%, #0000 98%, #000) bottom / 100% 51% no-repeat; }
.shelf-name { font: 600 14px/18px var(--font-ui); }
.shelf-unit { font: 400 12px/15px var(--font-ui); color: var(--color-text-muted); }
.shelf-protein { display: flex; white-space: nowrap; justify-content: space-between; gap: 8px; margin-top: 5px; padding-top: 5px; border-top: var(--rule-medium) solid var(--label-rule); font: 700 12px/15px var(--font-ui); color: var(--color-text); }
.shelf-stub { position: relative; display: flex; flex-direction: column; align-items: flex-end; justify-content: flex-end; gap: 2px; padding: 22px 14px 12px 12px; background: var(--color-accent); color: var(--color-on-accent); border-radius: 0 8px 8px 0;
  -webkit-mask: radial-gradient(7px at 0 0, #0000 98%, #000) top / 100% 51% no-repeat, radial-gradient(7px at 0 100%, #0000 98%, #000) bottom / 100% 51% no-repeat;
  mask: radial-gradient(7px at 0 0, #0000 98%, #000) top / 100% 51% no-repeat, radial-gradient(7px at 0 100%, #0000 98%, #000) bottom / 100% 51% no-repeat; }
.shelf-stub::before { content: ""; position: absolute; top: 9px; right: 11px; width: 9px; height: 9px; border-radius: 50%; background: var(--color-bg); box-shadow: inset 0 1px 2px rgba(31, 42, 34, .35); }
.shelf-price { font-family: var(--font-display); font-size: 32px; line-height: 1; }
.shelf-price small { font-size: .6em; vertical-align: .42em; }
.shelf-when { font: 600 11px/14px var(--font-ui); }

.app { display: flex; align-items: center; justify-content: center; gap: 56px; flex-wrap: wrap; padding-bottom: 64px; }
.app-shot { width: 280px; height: auto; filter: drop-shadow(rgba(31, 42, 34, .12) 0 8px 24px); }
.app-copy { max-width: 400px; display: flex; flex-direction: column; gap: 12px; }
.app-copy h2 { margin: 0; font: 400 clamp(30px, 4vw, 40px)/1.1 var(--font-display); }
.app-copy p { margin: 0; font: 400 18px/28px var(--font-ui); color: var(--color-text-muted); text-wrap: pretty; }
.features { padding-bottom: 56px; }
.tear { border-top: 1.5px dashed color-mix(in oklch, var(--color-border), var(--color-bg) 35%); }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 32px; padding-top: 20px; }
.feature { display: flex; flex-direction: column; gap: 8px; }
.key { width: 48px; height: 48px; margin-bottom: 4px; border-radius: 14px; background: var(--color-surface); color: var(--color-primary); display: flex; align-items: center; justify-content: center;
  box-shadow: inset 0 0 0 1px var(--color-border-subtle), inset 0 -2px 0 rgba(31, 42, 34, .05), 0 1px 2px rgba(31, 42, 34, .08); }
.feature h2 { margin: 0; font: 400 24px/30px var(--font-display); }
.feature p { margin: 0; font: 400 16px/24px var(--font-ui); color: var(--color-text-muted); text-wrap: pretty; }
.cta { width: auto; max-width: 280px; margin: 20px auto 0; text-decoration: none; }
.calm { margin: 40px 0 0; font: 500 15px/22px var(--font-ui); color: var(--color-text-muted); text-align: center; text-wrap: balance; }

.footer { margin-top: auto; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; padding-top: 20px; padding-bottom: 20px; border-top: 1px solid var(--color-border-subtle); font: 400 13px/18px var(--font-ui); color: var(--color-text-muted); }
.footer .grow { flex: 1 1 240px; }
.footer a { color: inherit; }
.appicon { flex: none; display: block; }

.doc { max-width: 720px; padding-top: 24px; padding-bottom: 64px; }
.doc h1 { font-size: clamp(34px, 5vw, 48px); margin-bottom: 8px; }
.doc h2 { margin: 32px 0 8px; font: 600 20px/26px var(--font-ui); }
.doc p, .doc li { font: 400 16px/26px var(--font-ui); }
.doc ul { padding-left: 20px; }
.center { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 12px; padding-top: 48px; padding-bottom: 80px; max-width: 560px; }
.center p { margin: 0; font: 400 18px/28px var(--font-ui); color: var(--color-text-muted); text-wrap: pretty; }
.center .button { width: auto; text-decoration: none; margin-top: 12px; }

@media (max-width: 520px) {
  .hero { padding-top: 16px; gap: 24px; }
  .visual { transform: scale(.9); margin: -16px 0; }
  .visual { padding-bottom: 96px; }
  .shelf { right: max(0px, calc(50% - 175px)); }
}
