/* ==========================================================================
   PicyFood — feature pages
   meal-planner, recipe-search, recipe-nutrition, shopping-list.

   Loaded after styles.css. Colours come from its tokens. The only literals
   here are the phone bezel and shadows, which are the same in both themes.
   ========================================================================== */

.fp { --bezel: #0E0B0C; --bezel-edge: #40373A; }

/* styles.css numbers every <h2> and rules off every <section> inside <main>,
   for the legal pages. Undo that here at the same specificity, so the classes
   below still win. */
:where(.fp) main { padding: 0; }
:where(.fp) main section { padding: 0; border: 0; }
:where(.fp) main h2 {
  display: block; margin: 0; counter-increment: none;
  font-size: clamp(1.75rem, 3.6vw, 2.5rem); line-height: 1.14;
}
:where(.fp) main h2::before { content: none; }
:where(.fp) main h3 { margin: 0; font-size: 1.1rem; font-weight: 600; }
:where(.fp) main ul, :where(.fp) main ol { margin: 0; padding: 0; list-style: none; }
:where(.fp) main li { margin: 0; }
.fp [id] { scroll-margin-top: 88px; }

/* --- header bar ---------------------------------------------------------- */
.fp .nav {
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--paper) 84%, transparent);
  -webkit-backdrop-filter: saturate(1.4) blur(14px); backdrop-filter: saturate(1.4) blur(14px);
}
.nav-links { display: flex; gap: 26px; margin-left: auto; }
.nav-links a { font-size: .92rem; font-weight: 500; color: var(--muted); text-decoration: none; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--ink); }
.nav .btn { margin-left: 8px; }
@media (max-width: 940px) {
  .nav-links { display: none; }
  .nav .btn { margin-left: auto; }
}

/* --- hero ---------------------------------------------------------------- */
.fp-hero {
  padding: 64px 0 88px; overflow: hidden;
  background:
    radial-gradient(900px 540px at 86% 10%, color-mix(in srgb, var(--coral) 14%, transparent), transparent 70%),
    radial-gradient(640px 420px at 0% 100%, color-mix(in srgb, var(--rose) 10%, transparent), transparent 70%);
}
.fp-hero-in { display: grid; grid-template-columns: 1.05fr .95fr; gap: 40px; align-items: center; }
.fp-hero h1 { font-size: clamp(2.3rem, 5.6vw, 3.7rem); line-height: 1.06; margin: 14px 0 20px; }
.accent { color: var(--coral); }
.fp-lede { font-size: 1.12rem; color: var(--muted); max-width: 44ch; margin: 0 0 30px; }
.fp-fine { font-size: .85rem; color: var(--muted); margin: 16px 0 0; }
@media (max-width: 900px) {
  .fp-hero { padding: 40px 0 64px; }
  .fp-hero-in { grid-template-columns: 1fr; gap: 52px; }
}

/* Store buttons — same look as the landing page. */
.store-row { display: flex; gap: 12px; flex-wrap: wrap; }
.store {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--ink); color: var(--paper);
  padding: 11px 20px; border-radius: var(--r-md); text-decoration: none;
  transition: transform .14s ease;
}
a.store:hover { transform: translateY(-1px); }
.store svg { width: 20px; height: 20px; flex: none; fill: currentColor; }
.store-txt { display: flex; flex-direction: column; line-height: 1.15; text-align: left; }
.store-txt small { font-size: .64rem; opacity: .8; }
.store-txt strong { font-size: .95rem; font-weight: 600; }
/* No listing yet: outlined and not a link. */
.store.soon { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--faint); cursor: default; }

/* --- phone + stage ------------------------------------------------------- */
.stage { position: relative; display: grid; place-items: center; padding: 12px 0; }
.stage::before {
  content: ""; position: absolute; width: min(600px, 130%); aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--coral) 30%, transparent), transparent);
}
.device {
  position: relative; z-index: 1; width: min(300px, 74vw); flex: none;
  border-radius: 46px; padding: 9px; background: var(--bezel);
  box-shadow:
    0 0 0 1.5px var(--bezel-edge),
    0 50px 90px -40px rgba(28,15,13,.6),
    0 34px 70px -34px color-mix(in srgb, var(--coral) 55%, transparent);
}
.device img { width: 100%; height: auto; border-radius: 37px; }

/* Two phones: the second sits behind, turned away. */
.stage.duo .device { margin-left: 22%; }
.stage.duo .device.back {
  position: absolute; z-index: 0; margin: 0; width: min(256px, 62vw);
  left: 2%; top: 9%; transform: rotate(-7deg);
}
@media (max-width: 560px) {
  .stage.duo .device { margin-left: 0; }
  .stage.duo .device.back { display: none; }
}

/* The shopping list has no screenshot; its stage holds a list card instead. */
.stage.has-sheet { padding: 44px 0 52px; }

/* A number lifted out of the screenshot. */
.float {
  position: absolute; z-index: 2; display: flex; flex-direction: column; line-height: 1.2;
  background: var(--paper); border: 1px solid var(--hair); border-radius: 18px;
  padding: 12px 18px 13px; box-shadow: 0 22px 44px -20px rgba(28,15,13,.4);
}
.float b { font-size: 1.2rem; font-weight: 700; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.float span { font-size: .74rem; color: var(--muted); font-weight: 500; }
.float.tl { top: 15%; left: 2%; }
.float.br { bottom: 13%; right: 2%; }
@media (max-width: 560px) {
  .float { padding: 9px 13px 10px; border-radius: 15px; }
  .float b { font-size: 1rem; }
  .float.tl { left: -2px; top: 9%; }
  .float.br { right: -2px; bottom: 9%; }
}
/* Around a list card the badges sit on the corners, clear of its text. */
.stage.has-sheet .float.tl { top: 0; left: -6px; }
.stage.has-sheet .float.br { bottom: 0; right: -6px; }

/* --- sections ------------------------------------------------------------ */
.fp-band { padding: 92px 0; }
.fp-band.tint { background: var(--paper); border-block: 1px solid var(--hair); }
@media (max-width: 720px) { .fp-band { padding: 60px 0; } }
.fp-head { max-width: 60ch; display: flex; flex-direction: column; gap: 12px; margin: 0 0 40px; }
.fp-head p, .row-copy p { color: var(--muted); font-size: 1.04rem; margin: 0; }
.fp-head.center { margin-inline: auto; text-align: center; align-items: center; }
.fp-head .meta, .row-copy .meta { font-size: .72rem; color: var(--coral-ink); }
.more-link { font-weight: 600; text-decoration: none; }
.more-link:hover { text-decoration: underline; }

/* Copy on one side, a visual on the other. Copy comes first in the source, so
   it leads on a phone; .flip puts the visual on the left on wide screens. */
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.row > * { min-width: 0; }
.row-copy { display: flex; flex-direction: column; gap: 16px; align-items: flex-start; }
.row-copy .fp-fine { margin: 0; }
.row-copy .tbl { width: 100%; margin: 0; }
@media (min-width: 901px) { .row.flip > .row-copy { order: 2; } }
@media (max-width: 900px) { .row { grid-template-columns: 1fr; gap: 44px; } }

/* --- tiles --------------------------------------------------------------- */
.bento { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
@media (max-width: 900px) { .bento { grid-template-columns: 1fr; } }
.tile {
  background: var(--paper); border: 1px solid var(--hair); border-radius: 26px;
  padding: 28px; display: flex; flex-direction: column; gap: 10px; min-width: 0;
}
.tint .tile { background: var(--sand); }
.tile p { color: var(--muted); font-size: .95rem; margin: 0; }
.tile .ui { margin-top: auto; padding-top: 18px; }
a.tile { text-decoration: none; color: inherit; transition: transform .14s ease, border-color .14s ease; }
a.tile:hover { transform: translateY(-2px); border-color: var(--coral); }
a.tile .more-link { margin-top: auto; padding-top: 8px; color: var(--coral-ink); }
.ic {
  width: 44px; height: 44px; border-radius: 14px; background: var(--grad);
  display: grid; place-items: center; margin-bottom: 6px; flex: none;
}
.ic svg { width: 21px; height: 21px; fill: #fff; }
.step-n {
  width: 44px; height: 44px; border-radius: 14px; background: var(--grad); color: #fff;
  display: grid; place-items: center; font-weight: 700; font-size: 1.05rem; margin-bottom: 6px;
}

/* A visual built from the app's own UI rather than a screenshot. */
.panel { position: relative; display: grid; place-items: center; padding: 10px 0; }
.panel::before {
  content: ""; position: absolute; width: min(560px, 120%); aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--coral) 22%, transparent), transparent);
}
.sheet {
  position: relative; width: 100%; max-width: 460px; background: var(--paper);
  border: 1px solid var(--hair); border-radius: 30px; padding: 28px;
  box-shadow: 0 44px 80px -44px rgba(28,15,13,.45);
  display: flex; flex-direction: column; gap: 18px;
}
.tint .sheet { background: var(--sand); }
.sheet-title { font-weight: 700; font-size: 1.1rem; letter-spacing: -.02em; line-height: 1.3; }
.sheet-title small { font-weight: 400; font-size: .82rem; color: var(--faint); margin-left: 6px; letter-spacing: 0; }
.sheet-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.sheet-note { font-size: .78rem; color: var(--muted); margin: 0; }
@media (max-width: 480px) { .sheet { padding: 20px; border-radius: 24px; } }

/* --- app UI pieces ------------------------------------------------------- */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips li {
  background: var(--sunk); border-radius: 999px; padding: 8px 16px;
  font-size: .88rem; font-weight: 500; white-space: nowrap;
}
.chips b { font-weight: 600; color: var(--muted); font-variant-numeric: tabular-nums; margin-left: 4px; }

/* calories / protein / carbs / fat keep one colour each, as in the app */
.kcal { --c: var(--coral); } .pro { --c: var(--veg-fg); } .carb { --c: var(--gf-fg); } .fat { --c: var(--df-fg); }
.dot::before {
  content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%;
  background: var(--c); margin-right: 6px; vertical-align: 1px;
}
.macros { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.macro {
  background: var(--paper); border: 1px solid var(--hair); border-radius: 16px;
  padding: 14px 4px 12px; text-align: center; min-width: 0;
}
.macro b { display: block; font-size: 1.08rem; font-weight: 700; letter-spacing: -.02em; white-space: nowrap; font-variant-numeric: tabular-nums; }
.macro span { font-size: .76rem; color: var(--muted); }
@media (max-width: 420px) { .macros { grid-template-columns: repeat(2, 1fr); } }

.seg { display: inline-flex; background: var(--sunk); border-radius: 11px; padding: 3px; font-size: .8rem; font-weight: 500; }
.seg span { padding: 5px 14px; border-radius: 9px; color: var(--muted); }
.seg .on { background: var(--paper); color: var(--coral-ink); }

.week { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; text-align: center; }
.week span { padding: 8px 0 14px; border-radius: 14px; position: relative; }
.week i { display: block; font-style: normal; font-size: .66rem; color: var(--faint); }
.week b { font-size: .98rem; font-weight: 700; }
.week .has::after {
  content: ""; position: absolute; left: 50%; bottom: 6px; width: 4px; height: 4px;
  margin-left: -2px; border-radius: 50%; background: var(--coral);
}
.week .on { background: var(--coral); color: #fff; }
.week .on i { color: #fff; }
.week .on::after { background: #fff; }

.slots { display: flex; flex-direction: column; gap: 10px; }
.slot { display: flex; align-items: center; gap: 12px; font-weight: 600; font-size: .95rem; }
.slot-ic { width: 34px; height: 34px; border-radius: 11px; display: grid; place-items: center; flex: none; background: var(--bg); }
.slot-ic svg { width: 17px; height: 17px; fill: var(--fg); }
.s-b { --bg: var(--gf-bg); --fg: var(--gf-fg); }
.s-l { --bg: var(--veg-bg); --fg: var(--veg-fg); }
.s-d { --bg: var(--df-bg); --fg: var(--df-fg); }
.slot em {
  font-style: normal; font-size: .72rem; font-weight: 600; min-width: 22px; text-align: center;
  padding: 2px 7px; border-radius: 8px; background: var(--bg); color: var(--fg);
}

.entry { background: var(--veg-bg); border-radius: 18px; padding: 14px 16px; display: flex; flex-direction: column; gap: 6px; }
.entry strong { font-size: .9rem; line-height: 1.35; }
.entry span { font-size: .78rem; color: var(--muted); display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: center; }
.entry em { font-style: normal; font-weight: 600; color: var(--veg-fg); }

.sliders { display: flex; flex-direction: column; gap: 14px; }
.slider-top { display: flex; justify-content: space-between; font-size: .92rem; font-weight: 500; }
.slider-top em { font-style: normal; color: var(--faint); font-weight: 400; }
.track { height: 6px; border-radius: 3px; background: var(--hair); margin: 14px 10px 12px; position: relative; }
.track::before, .track::after {
  content: ""; position: absolute; top: 50%; width: 20px; height: 20px; margin-top: -10px;
  border-radius: 50%; background: #fff; box-shadow: 0 2px 6px rgba(28,15,13,.28);
}
.track::before { left: -10px; } .track::after { right: -10px; }
.slider-ends { display: flex; justify-content: space-between; font-size: .72rem; color: var(--faint); }

/* shopping list */
.list-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.list-head strong { font-weight: 700; font-size: 1.1rem; letter-spacing: -.02em; }
.list-head span { font-size: .8rem; color: var(--muted); }
.list .li { display: flex; align-items: center; gap: 12px; padding: 11px 0; border-top: 1px solid var(--hair); font-size: .94rem; }
.box { width: 19px; height: 19px; border-radius: 6px; border: 1.8px solid var(--faint); flex: none; position: relative; }
.li.done .box { background: var(--coral); border-color: var(--coral); }
.li.done .box::after {
  content: ""; position: absolute; left: 5.5px; top: 2px; width: 4px; height: 9px;
  border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(42deg);
}
.li-name { flex: 1; }
.li.done .li-name { color: var(--muted); text-decoration: line-through; }
.li-from { font-size: .7rem; letter-spacing: .05em; text-transform: uppercase; color: var(--faint); font-weight: 600; }

/* recipes with their numbers */
table.rtable { min-width: 0; font-size: .92rem; }
.rtable th, .rtable td { padding: 13px 14px 13px 0; vertical-align: middle; }
.rtable th:last-child, .rtable td:last-child { padding-right: 0; }
.rtable th { border-bottom-width: 1px; border-bottom-color: var(--hair); }
.rtable th:not(:first-child), .rtable td:not(:first-child) { white-space: nowrap; font-variant-numeric: tabular-nums; }
.rtable td:first-child { font-weight: 500; }
.pill { display: inline-block; background: var(--sunk); border-radius: 999px; padding: 3px 10px; font-weight: 600; font-size: .84rem; }
@media (max-width: 480px) {
  .rtable { font-size: .84rem; }
  .rtable th, .rtable td { padding-right: 8px; }
  .rtable th { font-size: .6rem; letter-spacing: .04em; }
  .rtable th .dot::before { display: none; }
  .pill { padding: 3px 7px; font-size: .8rem; }
}

.rcards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
@media (max-width: 900px) { .rcards { grid-template-columns: 1fr; } }
.rcard-macros { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-top: auto; padding-top: 14px; }
.rcard-macros div { display: flex; flex-direction: column; font-size: .76rem; color: var(--muted); }
.rcard-macros b { font-size: 1rem; color: var(--ink); font-weight: 700; }

/* --- closing call to action ---------------------------------------------- */
.fp-cta {
  background: var(--ink); color: var(--paper); border-radius: 30px; padding: 68px 32px;
  text-align: center; display: flex; flex-direction: column; align-items: center; gap: 18px;
  position: relative; overflow: hidden;
}
.fp-cta::before {
  content: ""; position: absolute; left: 50%; top: -260px; width: 640px; height: 460px; margin-left: -320px;
  border-radius: 50%; background: radial-gradient(closest-side, color-mix(in srgb, var(--coral) 46%, transparent), transparent);
}
.fp-cta > * { position: relative; }
.fp-cta h2 { color: var(--paper); }
.fp-cta p { color: color-mix(in srgb, var(--paper) 70%, transparent); margin: 0; max-width: 46ch; font-size: 1.04rem; }
.fp-cta .store-row { justify-content: center; margin-top: 6px; }
.fp-cta .store { background: var(--paper); color: var(--ink); }
.fp-cta .store.soon { background: transparent; color: var(--paper); }
.fp-cta .meta { color: var(--coral); }
@media (max-width: 720px) { .fp-cta { padding: 48px 22px; border-radius: 26px; } }
