/* The public site: the landing page (/), /tools and /blog. Colours are the App Store screenshots' bands; headlines are set like them too. */
:root {
  --flour: #F7F2EA;
  --cream: #FFF8EE;
  --card: #FFFDF9;
  --cocoa: #3A2519;
  --crust-ink: #825235;
  --muted: #756B65;
  --soft: #EAD8C8;
  --sprout: #6B9447;
  --sprout-ink: #4A6E30;
  --leaf: #43642F;
  --blush: #F4DDD0;
  --pea: #E4EBCF;
  --oat: #F6E9D6;
  --display: ui-rounded, "Arial Rounded MT Bold", "SF Pro Rounded", "Nunito", system-ui, sans-serif;
  --body: "Avenir Next", Avenir, "Segoe UI", Roboto, system-ui, sans-serif;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }

body {
  margin: 0;
  background: var(--flour);
  color: var(--cocoa);
  font: 1.125rem/1.55 var(--body);
  -webkit-text-size-adjust: 100%;
}

h1, h2 { font-family: var(--display); font-weight: 800; letter-spacing: -0.02em; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(2.5rem, 6.2vw, 4.5rem); line-height: 1.02; }
h2 { font-size: clamp(2rem, 4.4vw, 3.25rem); line-height: 1.05; }
p { margin: 0 0 1em; }
a { color: inherit; }
a:focus-visible, summary:focus-visible, input:focus-visible { outline: 3px solid var(--sprout); outline-offset: 3px; }

.wrap { width: 100%; max-width: 72rem; margin: 0 auto; padding-inline: max(1rem, env(safe-area-inset-left)) max(1rem, env(safe-area-inset-right)); }
@media (min-width: 40rem) { .wrap { padding-inline: 2rem; } }

/* Header */
.nav { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: max(1rem, env(safe-area-inset-top)) 1rem; }
.brand { display: flex; align-items: center; gap: 0.625rem; font: 800 1.25rem var(--display); text-decoration: none; }
.brand img { border-radius: 0.6rem; }
.get { flex: none; white-space: nowrap; padding: 0.5rem 1rem; border-radius: 999px; background: var(--sprout); color: #fff; font-weight: 700; font-size: 1rem; text-decoration: none; }
@media (max-width: 24rem) {
  .brand { font-size: 1.125rem; gap: 0.5rem; }
  .brand img { width: 2rem; height: 2rem; }
  .get { padding-inline: 0.875rem; font-size: 0.9375rem; }
}

/* The App Store button */
.store {
  display: inline-flex; align-items: center; justify-content: center; min-height: 3.5rem; padding: 0.75rem 1.75rem; border-radius: 999px;
  background: var(--cocoa); color: var(--cream); font: 800 1.125rem var(--display); text-decoration: none; white-space: nowrap;
}
@media (max-width: 30rem) { .store { width: 100%; padding-inline: 1rem; font-size: clamp(1rem, 5vw, 1.125rem); } }
.store:hover { background: #24170F; }
.fine { margin-top: 0.875rem; font-size: 0.9375rem; color: var(--muted); }

/* Hero: the copy, and a shared list you can tick */
.hero { display: grid; gap: 2.5rem; align-items: center; padding-block: 2rem 4.5rem; }
.lede { max-width: 34rem; margin: 1.25rem 0 1.75rem; font-size: 1.25rem; color: #5A463A; }
@media (min-width: 45rem) {
  .hero { grid-template-columns: 1fr 1fr; padding-block: 2.5rem 5rem; }
  .hero h1 { font-size: clamp(2.5rem, 5.4vw, 4.5rem); }
}
@media (min-width: 64rem) {
  .hero { grid-template-columns: 1.15fr 0.85fr; gap: 4rem; padding-block: 3rem 6rem; }
}

.demo { width: 100%; max-width: 26rem; justify-self: center; }
.peek {
  display: block; width: 9.5rem; height: auto; margin: 0 1.5rem -4.25rem auto; position: relative;
  animation: peek 0.7s 0.3s cubic-bezier(0.3, 1.4, 0.5, 1) both;
}
@keyframes peek { from { transform: translateY(45%); } }

.sheet, .stock {
  position: relative; padding-bottom: 0.25rem; overflow: hidden;
  background: var(--card); border-radius: 1.75rem;
  box-shadow: 0 0 0 1px rgb(234 216 200 / 0.8), 0 30px 60px -30px rgb(58 37 25 / 0.45);
  counter-reset: got;
}
.sheet-title { margin: 0; padding: 1.25rem 1.25rem 0; font: 800 1.5rem var(--display); }
.sheet-from { margin: 0 0 0.25rem; padding: 0 1.25rem; font-size: 0.875rem; color: var(--muted); }
.aisle { margin: 0; padding: 0.875rem 1.25rem 0.25rem; font-size: 0.8125rem; font-weight: 700; color: var(--crust-ink); }
.sheet label {
  display: flex; align-items: center; gap: 0.875rem; min-height: 3rem; padding: 0.25rem 1.25rem;
  border-top: 1px solid var(--soft); cursor: pointer; font-size: 1rem;
}
.sheet .aisle + label { border-top: 0; }
.sheet small { margin-left: 0.25rem; color: var(--muted); font-size: 0.875rem; }
.sheet input[type="checkbox"] {
  appearance: none; flex: none; display: grid; place-content: center; width: 1.625rem; height: 1.625rem; margin: 0;
  border: 2px solid #B9825A; border-radius: 50%; background: var(--card); cursor: pointer;
  transition: background-color 0.15s, border-color 0.15s;
}
.sheet input[type="checkbox"]:checked { background: var(--sprout); border-color: var(--sprout); counter-increment: got; }
.sheet input[type="checkbox"]:checked::before { content: "✓"; color: #fff; font-weight: 800; font-size: 0.9rem; line-height: 1; }
.sheet input[type="checkbox"]:checked + span { text-decoration: line-through; color: var(--muted); }

.basket, .basket-done {
  display: flex; align-items: center; gap: 0.625rem; min-height: 3.5rem; margin: 0.5rem 0.75rem 0.5rem; padding: 0.5rem 1rem;
  border-radius: 999px; background: var(--flour); font-weight: 700; color: var(--crust-ink); font-size: 1rem;
}
.basket { display: block; line-height: 2.5rem; }
.count::before { content: counter(got); }
.basket-done { display: none; background: #E8F0DC; color: var(--sprout-ink); }
.basket-done img { width: 2.75rem; height: auto; margin: -0.5rem 0; }
.sheet:not(:has(input:not(:checked))) .basket { display: none; }
.sheet:not(:has(input:not(:checked))) .basket-done { display: flex; }
.demo-note { margin: 1rem 0 0; text-align: center; font-size: 0.9375rem; color: var(--muted); }

/* Feature bands: each one is a screenshot colour, with the phone cut off by the band's bottom edge */
.band { overflow: hidden; }
.band-in { display: grid; gap: 2.5rem; padding-top: 4.5rem; }
.copy { align-self: center; max-width: 32rem; }
.copy h2 { margin-bottom: 1.25rem; }
.copy a { font-weight: 700; }
.sidekick { display: none; width: 11rem; height: auto; margin-top: 1.5rem; }
.phone {
  justify-self: center; width: min(19rem, 100%, 82vw); aspect-ratio: 600 / 1040; overflow: hidden;
  border: 0.625rem solid var(--cocoa); border-bottom: 0; border-radius: 3rem 3rem 0 0; background: var(--cocoa);
}
.phone img { display: block; width: 100%; height: auto; border-radius: 2.4rem 2.4rem 0 0; }
@media (min-width: 45rem) {
  .band-in { grid-template-columns: 1fr 1fr; padding-top: 5rem; }
  .copy { padding-bottom: 5rem; }
  .flip .copy { order: 2; }
  .sidekick { display: block; width: 8rem; }
}
@media (min-width: 64rem) {
  .band-in { gap: 4rem; padding-top: 6rem; }
  .copy { padding-bottom: 6rem; }
  .sidekick { width: 11rem; }
}

.leaf { background: var(--leaf); color: var(--cream); }
.leaf .phone, .cocoa .phone { border-color: #1F140D; }
.blush { background: var(--blush); }
.pea { background: var(--pea); }
.oat { background: var(--oat); }

/* Prices and questions */
.prices, .faq { max-width: 46rem; padding-block: 5rem 0; }
.prices h2, .faq h2 { margin-bottom: 1rem; }
.prices dl { margin: 1.5rem 0 0; border-top: 2px solid var(--cocoa); }
.prices dl div { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.25rem 1rem; padding: 1rem 0; border-bottom: 1px solid var(--soft); }
.prices dt { font: 800 1.25rem var(--display); }
.prices dd { margin: 0; }

.faq { padding-bottom: 5rem; }
.faq details { border-bottom: 1px solid var(--soft); }
.faq details:first-of-type { border-top: 2px solid var(--cocoa); }
.faq summary { padding: 1.125rem 2rem 1.125rem 0; font-weight: 700; cursor: pointer; list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0.25rem; top: 0.875rem; font: 800 1.5rem var(--display); color: var(--sprout); }
.faq details[open] summary::after { content: "–"; }
.faq details p { max-width: 38rem; color: #5A463A; }
.faq a { color: var(--crust-ink); font-weight: 700; }

/* Last call */
.cocoa { background: var(--cocoa); color: var(--cream); }
.outro { display: grid; justify-items: center; gap: 1.5rem; padding-block: 4rem 5rem; text-align: center; }
.outro img { width: 9rem; height: auto; }
.outro .store { background: var(--sprout); color: #fff; }
.outro .store:hover { background: var(--sprout-ink); }

/* Footer */
.foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.5rem 1.5rem; padding-block: 1.5rem max(1.5rem, env(safe-area-inset-bottom)); font-size: 0.9375rem; color: var(--muted); }
.foot p { margin: 0; }
.foot ul { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; margin: 0; padding: 0; list-style: none; }
.foot a { color: var(--crust-ink); font-weight: 700; }

/* Tool and article pages */
.page { max-width: 46rem; padding-block: 1.5rem 4rem; }
.page h1 { font-size: clamp(2.25rem, 5.5vw, 3.25rem); line-height: 1.05; }
.page h2 { font-size: 1.625rem; margin: 2.5rem 0 0.75rem; }
.page h3 { font: 800 1.125rem var(--display); margin: 1.5rem 0 0.25rem; }
.page p a { color: var(--crust-ink); font-weight: 700; }
.byline { margin: 0.75rem 0 0; font-size: 0.9375rem; color: var(--muted); }

.pill, .quiet {
  min-height: 3rem; padding: 0.75rem 1.5rem; border: 0; border-radius: 999px; cursor: pointer;
  font: 800 1.0625rem var(--display); white-space: nowrap;
}
.pill { background: var(--sprout); color: #fff; }
.pill:hover { background: var(--sprout-ink); }
.quiet { background: var(--soft); color: var(--crust-ink); }
.pill:focus-visible, .quiet:focus-visible, .move:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid var(--sprout); outline-offset: 2px; }
.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }

/* The /tools and /blog indexes */
.index { margin: 2rem 0; padding: 0; list-style: none; border-top: 2px solid var(--cocoa); }
.index li { padding: 1.25rem 0; border-bottom: 1px solid var(--soft); }
.page .index h2 { margin: 0 0 0.375rem; font-size: 1.5rem; }
.index h2 a { text-decoration: none; }
.index h2 a:hover { text-decoration: underline; }
.index p { margin: 0; color: #5A463A; }
.index .byline { margin-top: 0.5rem; color: var(--muted); }

/* The sorter */
.field-label { display: block; margin-bottom: 0.5rem; font-weight: 700; }
.sorter textarea {
  display: block; width: 100%; min-height: 12rem; margin-bottom: 1rem; padding: 1rem 1.25rem; resize: vertical;
  border: 2px solid var(--soft); border-radius: 1.25rem; background: var(--card); color: var(--cocoa); font: inherit;
}
.sorter textarea::placeholder { color: var(--muted); opacity: 0.6; }
.result { margin-top: 3rem; }
.result-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.75rem 1rem; }
.page .result-head h2 { margin: 0; }
.status { min-height: 1.5em; margin: 0.75rem 0; font-weight: 700; color: var(--crust-ink); }
.aisle-head { display: flex; align-items: center; gap: 0.25rem; padding-right: 0.75rem; }
.page h3.aisle { margin: 0; font: 700 0.8125rem var(--body); }
.aisle-head .aisle { flex: 1; }
.move {
  flex: none; width: 2.5rem; height: 2.5rem; margin-top: 0.5rem; border: 0; border-radius: 50%; cursor: pointer;
  background: var(--flour); color: var(--crust-ink); font: 800 1rem var(--display);
}
.move:disabled { opacity: 0.35; cursor: default; }
.sheet .row { display: flex; align-items: center; gap: 0.5rem; padding-right: 0.75rem; border-top: 1px solid var(--soft); }
.sheet .aisle-head + .row { border-top: 0; }
.sheet .row label { flex: 1; min-width: 0; border-top: 0; overflow-wrap: anywhere; }
.sheet select {
  flex: none; max-width: 8.5rem; padding: 0.375rem 0.5rem; border: 1px solid var(--soft); border-radius: 0.625rem;
  background: var(--flour); color: var(--crust-ink); font: 600 0.875rem var(--body);
}
/* While you shop, the sorter's rows are just ticks: Edit sections brings back the pickers and arrows.
   Items under Other keep their picker, since they're the ones that usually need one. */
#sheet:not(.editing) [role="group"]:not([aria-labelledby="aisle-other"]) select, #sheet:not(.editing) .move { display: none; }
#sheet:not(.editing) .aisle-head { padding-top: 0.75rem; }
.notes { margin-top: 3rem; }

/* The dinner builder */
.picker { margin: 0 0 1.5rem; padding: 0; border: 0; }
.picker legend { padding: 0; }
.meals { display: grid; gap: 0.625rem; }
@media (min-width: 36rem) { .meals { grid-template-columns: 1fr 1fr; } }
.meal {
  position: relative; display: block; padding: 0.875rem 1.125rem; border-radius: 1.25rem; cursor: pointer;
  background: var(--card); box-shadow: 0 0 0 1px rgb(234 216 200 / 0.8);
}
.meal input { position: absolute; inset: 0; margin: 0; opacity: 0; cursor: pointer; }
.meal strong { display: block; font: 800 1.0625rem var(--display); }
.meal span { display: block; margin-top: 0.125rem; font-size: 0.875rem; color: var(--muted); }
.meal:has(:checked) { background: #EEF4E6; box-shadow: 0 0 0 2px var(--sprout); }
.meal:has(:focus-visible) { outline: 3px solid var(--sprout); outline-offset: 2px; }
.servings { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 1rem; margin-bottom: 1rem; }
.servings .field-label { margin: 0; }
.stepper { display: inline-flex; align-items: center; gap: 0.75rem; }
.stepper .move { margin: 0; }
.stepper output { min-width: 2ch; text-align: center; font: 800 1.5rem var(--display); }
.amount { display: flex; flex: none; align-items: center; gap: 0.375rem; font-size: 0.875rem; color: var(--muted); }
.amount input {
  width: 4.75rem; padding: 0.375rem 0.5rem; border: 1px solid var(--soft); border-radius: 0.625rem; text-align: right;
  background: var(--flour); color: var(--cocoa); font: 600 0.9375rem var(--body);
}
.amount input:focus-visible { outline: 3px solid var(--sprout); outline-offset: 2px; }
.sheet .row:has(:checked) .amount { opacity: 0.45; }
.method ol { padding-left: 1.5rem; }
.method li { margin-bottom: 0.625rem; }

/* The pantry checklist */
.sr { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.stock-row {
  display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 0.375rem 0.5rem; min-height: 3.25rem;
  padding: 0.375rem 0.5rem 0.375rem 1.25rem; border-top: 1px solid var(--soft);
}
.stock .aisle + .stock-row { border-top: 0; }
.stock-row:has([value="low"]:checked) { background: #FCF4DD; }
.stock-row:has([value="out"]:checked) { background: #FBE7E3; }
.stock-name { overflow-wrap: anywhere; }
.levels { display: inline-flex; padding: 0.1875rem; border-radius: 999px; background: var(--flour); box-shadow: inset 0 0 0 1px var(--soft); }
.levels label { position: relative; padding: 0.375rem 0.75rem; border-radius: 999px; font-size: 0.8125rem; font-weight: 700; color: var(--muted); cursor: pointer; }
.levels input { position: absolute; inset: 0; margin: 0; opacity: 0; cursor: pointer; }
.levels label:has(:checked) { background: var(--card); color: var(--cocoa); box-shadow: 0 1px 2px rgb(58 37 25 / 0.15); }
.levels label:has([value="low"]:checked) { background: #F4DE9E; color: #6B4E0E; }
.levels label:has([value="out"]:checked) { background: #EFC1B8; color: #7D2E22; }
.levels label:has(:focus-visible) { outline: 3px solid var(--sprout); outline-offset: 1px; }
.remove { width: 2.25rem; height: 2.25rem; border: 0; border-radius: 50%; background: none; color: var(--muted); font-size: 1.375rem; line-height: 1; cursor: pointer; }
.remove:hover { background: var(--flour); }
@media (max-width: 30rem) {
  .stock-row { grid-template-columns: 1fr auto; }
  .levels { grid-row: 2; grid-column: 1 / -1; justify-self: start; }
}
.add { display: flex; gap: 0.5rem; margin-top: 1rem; }
.add input {
  flex: 1; min-width: 0; min-height: 3rem; padding: 0 1.25rem; border: 2px solid var(--soft); border-radius: 999px;
  background: var(--card); color: var(--cocoa); font: inherit;
}
.add input::placeholder { color: var(--muted); opacity: 0.7; }
.link { padding: 0; border: 0; background: none; color: var(--crust-ink); font: inherit; font-weight: 700; text-decoration: underline; cursor: pointer; }
.remove:focus-visible, .add input:focus-visible, .link:focus-visible { outline: 3px solid var(--sprout); outline-offset: 2px; }
.empty { margin: 0; padding: 1rem 1.25rem; color: var(--muted); }
.restock ul { margin: 0; padding: 0 1.25rem 0.5rem; list-style: none; }
.restock li { padding: 0.625rem 0; border-top: 1px solid var(--soft); }
.restock li:first-child { border-top: 0; }

/* Before and after, in the article */
.compare { display: grid; gap: 1rem; margin: 1.5rem 0 2rem; }
.compare > div { padding: 1rem 1.25rem; border-radius: 1.25rem; background: var(--card); box-shadow: 0 0 0 1px rgb(234 216 200 / 0.8); }
.compare-title { margin: 0 0 0.5rem; font: 800 1.0625rem var(--display); }
.compare ul { margin: 0; padding-left: 1.25rem; }
.compare dl { margin: 0; }
.compare dt { margin-top: 0.5rem; font-size: 0.8125rem; font-weight: 700; color: var(--crust-ink); }
.compare dt:first-child { margin-top: 0; }
.compare dd { margin: 0; }
@media (min-width: 36rem) { .compare { grid-template-columns: 1fr 1fr; } }

/* Tables in guides: wide ones scroll inside their box, never the page */
.table { overflow-x: auto; margin: 1rem 0 1.5rem; }
.page table { width: 100%; border-collapse: collapse; font-size: 0.9375rem; }
.page th, .page td { padding: 0.5rem 0.75rem 0.5rem 0; border-bottom: 1px solid var(--soft); text-align: left; vertical-align: top; }
.page th { border-bottom: 2px solid var(--cocoa); font-size: 0.8125rem; color: var(--crust-ink); }
.page .restock .aisle { padding-top: 0.875rem; }
.page tbody th { padding-top: 1rem; }
/* A comma-separated list to copy into the app */
.paste { padding: 1rem 1.25rem; border-radius: 1.25rem; background: var(--card); box-shadow: 0 0 0 1px rgb(234 216 200 / 0.8); }
/* The priced weeks, phone first: the week at a glance, each meal folded, the shop folded, and a bar to copy the list */
.week h1 { margin-bottom: 0.5rem; }
.week a.pill, .week a.quiet { display: inline-flex; align-items: center; justify-content: center; text-decoration: none; }
.week a.pill { color: #fff; }
.week .glance, .week .dish { border-radius: 1.25rem; background: var(--card); box-shadow: 0 0 0 1px rgb(234 216 200 / 0.8); }
.week .glance { margin: 1.25rem 0 2rem; padding: 0; list-style: none; }
.week .glance li + li { border-top: 1px solid var(--soft); }
.week .glance a { display: flex; gap: 0.75rem; align-items: baseline; min-height: 2.75rem; padding: 0.75rem 1rem; color: inherit; text-decoration: none; }
.week .glance .day { flex: none; width: 2.5rem; font-weight: 700; color: var(--crust-ink); }
.week .glance .what { flex: 1; }
.week .glance .left .what { color: var(--muted); }
.week .cost, .week .price { font-weight: 700; color: var(--sprout-ink); white-space: nowrap; }
.week .dish { margin: 0.75rem 0; }
.week .dish summary { display: flex; gap: 0.875rem; align-items: center; padding: 0.625rem 1rem 0.625rem 0.625rem; cursor: pointer; list-style: none; }
.week .dish summary::-webkit-details-marker { display: none; }
.week .dish summary img { flex: none; width: 4.5rem; height: 4.5rem; border-radius: 0.875rem; object-fit: cover; }
.week .dish .what { flex: 1; font-weight: 700; line-height: 1.3; }
.week .dish .day { display: block; font-size: 0.8125rem; font-weight: 400; color: var(--muted); }
.week .dish[open] summary { border-bottom: 1px solid var(--soft); }
.week .dish .uses { margin: 0.875rem 1rem 0; color: var(--muted); }
.week .dish ol { margin: 0.5rem 0 0; padding: 0 1rem 1rem 2.25rem; }
.week .shop { margin: 2rem 0; }
.week .shop summary { cursor: pointer; }
.week .shop summary h2 { display: inline; }
.week .actions .pill, .week .actions .quiet { min-height: 2.75rem; }
/* The /weeks index: one card per week, the meals' photos as a strip, the price first */
.wk-list { display: grid; gap: 1rem; margin: 1.5rem 0 2.5rem; padding: 0; list-style: none; }
@media (min-width: 40rem) { .wk-list { grid-template-columns: 1fr 1fr; } }
.wk a { display: block; height: 100%; overflow: hidden; border-radius: 1.5rem; background: var(--card); box-shadow: 0 0 0 1px rgb(234 216 200 / 0.8); color: inherit; text-decoration: none; }
.wk a:hover { box-shadow: 0 0 0 2px var(--sprout); }
.wk a:focus-visible { outline: 3px solid var(--sprout); outline-offset: 2px; }
.wk .shots { display: grid; grid-template-columns: repeat(4, 1fr); }
.wk .shots img { display: block; width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; }
.wk-body { display: block; padding: 1rem 1.25rem 1.25rem; }
.wk-top { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; }
.wk-price { font: 800 2.25rem/1 var(--display); color: var(--sprout-ink); }
/* Every card has the tag and only the first shows it, so it moves down while the Worker hides a week that's still to open. */
.wk:not(:first-child) .tag { display: none; }
.wk .tag { padding: 0.25rem 0.75rem; border-radius: 999px; background: var(--pea); color: var(--leaf); font: 800 0.8125rem var(--display); }
.wk h2 { margin: 0.5rem 0 0.25rem; font: 800 1.25rem var(--display); }
.wk-meta, .wk-meals, .wk-date { display: block; }
.wk-meta { font-weight: 700; color: var(--crust-ink); }
.wk-meals { margin-top: 0.375rem; }
.wk-date { margin-top: 0.625rem; font-size: 0.875rem; color: var(--muted); }
.weeks .how { padding-left: 1.25rem; }
.weeks .how li + li { margin-top: 0.5rem; }
.dock { position: sticky; bottom: 0; z-index: 5; display: flex; gap: 0.75rem; padding: 0.75rem 1rem calc(0.75rem + env(safe-area-inset-bottom)); background: rgb(247 242 234 / 0.95); border-top: 1px solid var(--soft); }
.dock .pill, .dock .quiet { flex: 1; min-height: 2.75rem; text-align: center; text-decoration: none; }
.dock .pill { color: #fff; }
@media (min-width: 36rem) {
  .article .restock { columns: 2; column-gap: 0; }
  .article .restock > div { break-inside: avoid; }
}

/* A phone screenshot in a guide */
.shot { margin: 1.25rem auto 2rem; max-width: 16rem; text-align: center; }
.shot img { display: block; width: 100%; height: auto; border: 0.3rem solid var(--cocoa); border-radius: 1.25rem; }
.shot figcaption { margin-top: 0.6rem; font-size: 0.875rem; color: var(--muted); }

/* The app, after the useful part */
.app-note { display: grid; grid-template-columns: 6rem 1fr; gap: 1.25rem; align-items: start; margin-top: 3.5rem; padding: 1.5rem; border-radius: 1.75rem; background: var(--pea); }
.app-note img { width: 100%; height: auto; }
.app-note .app-shot { border: 0.3rem solid var(--cocoa); border-radius: 1rem; }
.page .app-note h2 { margin-top: 0; }
/* zoomed: the top half of the phone, big enough to read, rising from the bottom of the card */
.app-note.zoomed { grid-template-columns: 1fr 1fr; gap: 1.5rem; align-items: center; padding-bottom: 0; overflow: hidden; }
.app-note.zoomed .app-shot { align-self: end; border-bottom: 0; border-radius: 2.25rem 2.25rem 0 0; }
.app-note.zoomed > div { padding-bottom: 1.5rem; }
@media (max-width: 30rem) {
  .app-note { grid-template-columns: 1fr; }
  .app-note img { width: 5rem; }
  .app-note.zoomed { grid-template-columns: 1fr; }
  .app-note.zoomed > div { padding-bottom: 0; }
  .app-note.zoomed img { order: 1; width: 100%; max-width: 18rem; justify-self: center; }
}

@media print {
  .nav, .page h1, .lede, .sorter, .result-head .actions, .status, .page .fine, .notes, .app-note, .foot,
  .sheet select, .move, .basket, .basket-done, .add, .remove, .picker, .servings, .ingredients { display: none !important; }
  .page .result-head h2 { margin: 1.5rem 0 0.5rem; font-size: 14pt; }
  .stock { border-radius: 0; box-shadow: none; }
  .stock-row { min-height: 0; padding: 0.15rem 0; border-top: 0; background: none !important; }
  .levels { box-shadow: none; background: none; }
  .levels label { padding: 0 0.5rem; background: none !important; color: var(--cocoa) !important; box-shadow: none !important; }
  .levels label::before { content: "○ "; }
  .levels label:has(:checked)::before { content: "● "; }
  body { background: #fff; font-size: 11pt; }
  .page, .result { margin: 0; padding: 0; max-width: none; }
  .print-list > :not(.list-title, .sheet) { display: none !important; }
  .sheet { columns: 2; column-gap: 2rem; border-radius: 0; box-shadow: none; }
  .sheet [role="group"] { break-inside: avoid; }
  .sheet .row { border-top: 0; }
  .sheet .row label { min-height: 0; padding: 0.2rem 0; }
  .aisle { padding: 0.75rem 0 0.2rem !important; }
  .restock ul { padding: 0; }
  .restock li { padding: 0.15rem 0; border-top: 0; }
  .restock li::before { content: "○ "; }
  .sheet input[type="checkbox"]:checked::before { color: var(--cocoa); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* The waitlist, in place of the App Store where it can't help yet (site/waitlist.js) */
.waitlist { width: min(28rem, calc(100% - 2rem)); padding: 1.75rem; border: 0; border-radius: 1.5rem; background: var(--card); color: var(--cocoa); box-shadow: 0 1.5rem 4rem rgba(58, 37, 25, 0.25); }
.waitlist::backdrop { background: rgba(58, 37, 25, 0.35); }
.waitlist h2 { font-size: 1.75rem; margin-bottom: 0.75rem; }
.waitlist input[type="email"] { width: 100%; min-height: 3rem; padding: 0.625rem 1rem; border: 2px solid var(--soft); border-radius: 0.875rem; background: #fff; color: var(--cocoa); font: inherit; }
.waitlist-actions { display: flex; gap: 0.75rem; margin-top: 1rem; }
.waitlist-actions button { flex: 1; }
.waitlist button:disabled { opacity: 0.6; }
.waitlist-more { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.5rem; }
.waitlist-more a { display: block; padding: 0.75rem 1rem; border-radius: 0.875rem; background: var(--oat); color: var(--cocoa); font-weight: 600; text-decoration: none; }
.waitlist-more a:hover { background: var(--soft); }
