/* Tiny Plate Protein: shared styles
   Palette: pistachio page, spinach ink, yolk action, beet protein numbers, porcelain plates.
   Type: Young Serif for display, Atkinson Hyperlegible for body (chosen for readability, audience skews 35 to 64). */

:root {
  --pistachio: #E9EFDC;
  --pistachio-deep: #D9E3C6;
  --spinach: #1E3A2F;
  --spinach-soft: #4A6356;
  --yolk: #F4C542;
  --yolk-deep: #E2AE1E;
  --beet: #8A2B55;
  --porcelain: #FFFFFF;
  --rim: #CFD8BD;
  --bump: #FFF6D6;
  --danger: #9B1C1C;

  --display: "Young Serif", Georgia, "Times New Roman", serif;
  --body: "Atkinson Hyperlegible", "Segoe UI", system-ui, -apple-system, sans-serif;

  --step--1: 0.9rem;
  --step-0: 1.125rem;
  --step-1: 1.35rem;
  --step-2: 1.7rem;
  --step-3: 2.2rem;
  --step-4: clamp(2.3rem, 6vw, 3.4rem);

  --measure: 40rem;
  --space: 1.5rem;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--pistachio);
  color: var(--spinach);
  font-family: var(--body);
  font-size: var(--step-0);
  line-height: 1.6;
}

img { max-width: 100%; height: auto; display: block; }

/* Author styles like .btn set display and would otherwise override the hidden attribute. */
[hidden] { display: none !important; }

a { color: var(--spinach); text-underline-offset: 0.2em; }
a:hover { color: var(--beet); }

:focus-visible {
  outline: 3px solid var(--beet);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip {
  position: absolute; left: -999px; top: 0;
  background: var(--spinach); color: var(--porcelain); padding: 0.5rem 1rem;
}
.skip:focus { left: 1rem; top: 1rem; z-index: 10; }

.wrap {
  width: 100%;
  max-width: var(--measure);
  margin: 0 auto;
  padding: 0 1.25rem;
}
.wrap--wide { max-width: 64rem; }

/* Header */
.site-header { padding: 1.25rem 0; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; max-width: 64rem; }
.brand {
  display: inline-flex; align-items: center; gap: 0.6rem;
  font-family: var(--display); font-size: var(--step-1);
  text-decoration: none; color: var(--spinach);
}
.brand svg { width: 34px; height: 34px; flex: none; }
.header-note { font-size: var(--step--1); color: var(--spinach-soft); }

/* Type */
h1, h2, h3 {
  font-family: var(--display);
  font-weight: 400;
  line-height: 1.15;
  margin: 0 0 0.75rem;
  letter-spacing: -0.01em;
}
h1 { font-size: var(--step-4); }
h2 { font-size: var(--step-3); margin-top: 0.5rem; }
h3 { font-size: var(--step-1); }
p { margin: 0 0 1rem; }
.lede { font-size: var(--step-1); line-height: 1.45; color: var(--spinach-soft); }
.small { font-size: var(--step--1); color: var(--spinach-soft); }

section { padding: 2.75rem 0; }
section + section { border-top: 1px solid var(--rim); }

/* Plates: the signature element. Each plate shows protein grams for a tiny portion. */
.plates {
  display: flex; flex-wrap: wrap; gap: 1.25rem;
  margin: 2rem 0 1rem;
  list-style: none; padding: 0;
}
.plate {
  --size: 9.5rem;
  width: var(--size); height: var(--size);
  border-radius: 50%;
  background: var(--porcelain);
  box-shadow:
    0 0 0 0.55rem var(--porcelain),
    0 0 0 0.62rem var(--rim),
    0 0.9rem 1.2rem -0.6rem rgba(30, 58, 47, 0.28);
  display: grid; place-content: center; text-align: center;
  padding: 1rem;
  margin: 0.7rem;
}
.plate--small { --size: 7.5rem; }
.plate__grams {
  font-family: var(--display);
  font-size: 2.6rem; line-height: 1;
  color: var(--beet);
}
.plate--small .plate__grams { font-size: 2rem; }
.plate__dish { font-size: 0.82rem; line-height: 1.3; margin-top: 0.35rem; color: var(--spinach); }

.shots { list-style: none; padding: 0; margin: 2rem 0 1rem; display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); }
.shots figure { margin: 0; }
.shots img { display: block; width: 100%; height: auto; border-radius: 12px; }
.shots figcaption { margin-top: 0.5rem; font-size: 0.95rem; line-height: 1.3; color: var(--spinach); display: flex; align-items: baseline; gap: 0.5rem; }
.shots .plate__grams { font-size: 1.6rem; }

@media (prefers-reduced-motion: no-preference) {
  .plates .plate {
    animation: set-down 520ms cubic-bezier(.2,.8,.2,1) both;
  }
  .plates li:nth-child(2) .plate { animation-delay: 110ms; }
  .plates li:nth-child(3) .plate { animation-delay: 220ms; }
  .plates li:nth-child(4) .plate { animation-delay: 330ms; }
}
@keyframes set-down {
  from { opacity: 0; transform: translateY(-10px) scale(0.96); }
  to { opacity: 1; transform: none; }
}

/* Buttons */
.btn {
  display: inline-block;
  font-family: var(--body); font-weight: 700; font-size: var(--step-1);
  line-height: 1.25; text-align: center; text-decoration: none;
  background: var(--yolk); color: var(--spinach);
  border: 2px solid var(--spinach);
  border-radius: 999px;
  padding: 0.95rem 1.8rem;
  cursor: pointer;
  box-shadow: 0 4px 0 var(--spinach);
  transition: transform 80ms ease, box-shadow 80ms ease, background 120ms ease;
  width: 100%;
  max-width: 30rem;
}
.btn:hover { background: var(--yolk-deep); color: var(--spinach); }
.btn:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--spinach); }
.btn[disabled], .btn[aria-busy="true"] { opacity: 0.6; cursor: progress; }
.btn--ink { background: var(--spinach); color: var(--porcelain); box-shadow: 0 4px 0 #0f221a; }
.btn--ink:hover { background: #2b4d3f; color: var(--porcelain); }

.decline {
  display: inline-block; margin-top: 1rem;
  background: none; border: 0; padding: 0.25rem;
  font: inherit; font-size: var(--step--1);
  color: var(--spinach-soft); text-decoration: underline; cursor: pointer;
}

.form-error {
  color: var(--danger); font-size: var(--step--1); margin-top: 0.75rem; min-height: 1.2em;
}

/* Forms */
.optin {
  background: var(--porcelain);
  border: 2px solid var(--spinach);
  border-radius: 1.25rem;
  padding: 1.5rem;
  margin: 1.5rem 0;
}
.field { margin-bottom: 1rem; }
.field label { display: block; font-weight: 700; margin-bottom: 0.3rem; }
.field input {
  width: 100%; font: inherit;
  padding: 0.8rem 1rem;
  border: 2px solid var(--rim); border-radius: 0.75rem;
  background: var(--porcelain); color: var(--spinach);
}
.field input:focus { border-color: var(--spinach); outline: none; box-shadow: 0 0 0 3px var(--yolk); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Buy block */
.buy {
  background: var(--porcelain);
  border-radius: 1.25rem;
  border: 2px solid var(--spinach);
  padding: 1.5rem;
  margin: 2rem 0;
}
.price { font-family: var(--display); font-size: var(--step-3); margin: 0 0 0.25rem; }
.price small { font-family: var(--body); font-size: var(--step--1); color: var(--spinach-soft); }
.bump {
  display: flex; gap: 0.85rem; align-items: flex-start;
  background: var(--bump);
  border: 2px dashed var(--beet);
  border-radius: 0.9rem;
  padding: 1rem;
  margin: 1.25rem 0;
  cursor: pointer;
}
.bump input { width: 1.4rem; height: 1.4rem; margin-top: 0.2rem; accent-color: var(--beet); flex: none; }
.bump strong { color: var(--beet); }
.trust { font-size: var(--step--1); color: var(--spinach-soft); margin-top: 0.9rem; }

/* Lists */
.checks { list-style: none; padding: 0; margin: 0 0 1rem; }
.checks li { position: relative; padding-left: 2rem; margin-bottom: 0.7rem; }
.checks li::before {
  content: ""; position: absolute; left: 0; top: 0.35rem;
  width: 1.1rem; height: 1.1rem; border-radius: 50%;
  background: var(--porcelain); box-shadow: 0 0 0 2px var(--rim), inset 0 0 0 4px var(--porcelain), inset 0 0 0 20px var(--beet);
}
.crosses { list-style: none; padding: 0; }
.crosses li { padding-left: 2rem; position: relative; margin-bottom: 0.6rem; }
.crosses li::before { content: "\00D7"; position: absolute; left: 0.3rem; top: -0.1rem; font-size: 1.4rem; color: var(--spinach-soft); }

/* Comparison: protein per bite */
.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin: 1.5rem 0; }
.compare > div { background: var(--porcelain); border-radius: 1rem; padding: 1.1rem; }
.compare .num { font-family: var(--display); font-size: 2rem; color: var(--beet); display: block; }
@media (max-width: 520px) { .compare { grid-template-columns: 1fr; } }

/* Quick answer blocks for search and AI engines */
.answer {
  border-left: 4px solid var(--yolk);
  background: var(--porcelain);
  padding: 1rem 1.2rem;
  border-radius: 0 0.9rem 0.9rem 0;
  margin: 1.25rem 0;
}
.answer h3 { font-size: var(--step-0); font-family: var(--body); font-weight: 700; margin-bottom: 0.35rem; }
.answer p { margin: 0; }

/* Recipes */
.recipe {
  background: var(--porcelain);
  border-radius: 1.25rem;
  padding: 1.4rem;
  margin: 1.5rem 0;
}
.recipe__meta { display: flex; flex-wrap: wrap; gap: 0.5rem 1.25rem; font-size: var(--step--1); color: var(--spinach-soft); margin-bottom: 0.9rem; }
.recipe__meta b { color: var(--beet); font-size: var(--step-0); }
.recipe ol, .recipe ul { padding-left: 1.2rem; margin: 0 0 1rem; }
.recipe h4 { font-family: var(--body); font-size: var(--step-0); margin: 0.75rem 0 0.35rem; }

/* Photo slots: replace with real food photography */
.photo-slot {
  aspect-ratio: 4 / 3;
  border-radius: 1rem;
  background:
    repeating-linear-gradient(135deg, var(--pistachio) 0 12px, var(--pistachio-deep) 12px 24px);
  display: grid; place-items: center; text-align: center;
  padding: 1rem; margin: 1.25rem 0;
  font-size: var(--step--1); color: var(--spinach-soft);
  border: 2px dashed var(--rim);
}

/* FAQ */
.faq details {
  background: var(--porcelain);
  border-radius: 0.9rem;
  margin-bottom: 0.75rem;
  padding: 0.2rem 1.2rem;
}
.faq summary {
  cursor: pointer; font-weight: 700; padding: 0.9rem 0; list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; float: right; font-family: var(--display); font-size: 1.3rem; line-height: 1; }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { padding-bottom: 0.9rem; margin: 0; }

/* Upsell pages */
.progress {
  display: flex; gap: 0.4rem; list-style: none; padding: 0; margin: 0 0 1.5rem;
  font-size: var(--step--1); color: var(--spinach-soft);
}
.progress li { flex: 1; border-top: 4px solid var(--rim); padding-top: 0.35rem; }
.progress li.done { border-color: var(--spinach); color: var(--spinach); }
.progress li.now { border-color: var(--yolk-deep); color: var(--spinach); font-weight: 700; }
.offer-card {
  background: var(--porcelain);
  border-radius: 1.25rem;
  padding: 1.5rem;
  margin: 1.5rem 0;
}

/* Thank you */
.downloads { list-style: none; padding: 0; margin: 1rem 0; }
.downloads li {
  background: var(--porcelain); border-radius: 0.9rem;
  padding: 1rem 1.2rem; margin-bottom: 0.75rem;
  display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap;
}
.downloads a.get {
  font-weight: 700; background: var(--yolk); border: 2px solid var(--spinach);
  border-radius: 999px; padding: 0.45rem 1.1rem; text-decoration: none;
}

.downloads li.coach { background: #FFF6D6; border: 2px solid var(--yolk); }
.downloads .badge {
  display: inline-block; background: var(--spinach); color: #FFFFFF; font-size: var(--step--1);
  font-weight: 700; border-radius: 999px; padding: 0.1rem 0.7rem; margin-right: 0.5rem;
}
.coach-box .wrap {
  background: var(--porcelain); border-radius: 1.25rem; padding: 1.5rem; border: 2px solid var(--yolk);
}
.coach-steps { padding-left: 1.3rem; }
.coach-steps li { margin-bottom: 0.6rem; }

/* Footer */
.site-footer {
  background: var(--spinach); color: #DCE6D3;
  padding: 2.5rem 0 3rem; margin-top: 3rem;
  font-size: var(--step--1);
}
.site-footer a { color: #FFFFFF; }
.site-footer p { max-width: 44rem; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 0.5rem 1.25rem; margin-bottom: 1rem; }

@media (max-width: 520px) {
  h1 { font-size: 2.05rem; }
  section { padding: 2rem 0; }
  .plates { flex-wrap: nowrap; justify-content: space-between; align-items: center; gap: 0; margin: 1.25rem 0 0.75rem; }
  .plate { --size: calc((100vw - 2.5rem) / 3 - 1.1rem); margin: 0.55rem; padding: 0.4rem; }
  .plate--small { --size: calc(((100vw - 2.5rem) / 3 - 1.1rem) * 0.86); }
  .plate__grams, .plate--small .plate__grams { font-size: 1.55rem; }
  .plate__dish { font-size: 0.66rem; margin-top: 0.2rem; }
  .btn { font-size: var(--step-0); padding: 0.9rem 1.2rem; }
  .buy, .optin, .offer-card { padding: 1.15rem; }
}

/* Embedded checkout and plan chooser */
.checkout-mount { margin: 1.25rem 0 0.5rem; min-height: 8rem; }
.checkout-mount[hidden] { display: none; }
.plans { border: 0; padding: 0; margin: 0 0 1.25rem; display: grid; gap: 0.75rem; }
.plans legend { padding: 0; margin-bottom: 0.5rem; }
.plan { display: flex; gap: 0.85rem; align-items: center; background: var(--porcelain); border: 2px solid var(--rim); border-radius: 0.9rem; padding: 0.9rem 1rem; cursor: pointer; }
.plan:has(input:checked) { border-color: var(--spinach); background: var(--bump); }
.plan input { width: 1.3rem; height: 1.3rem; accent-color: var(--beet); flex: none; }
[data-message] { font-weight: 700; margin-top: 0.75rem; }

/* Pip mascot beside page headings */
.hero-pip { float: right; height: auto; margin: 0 0 0.5rem 1rem; }
@media (max-width: 480px) { .hero-pip { width: 72px; } }

.recipe__img { display: block; width: 100%; height: auto; border-radius: 12px; margin: 0 0 1rem; }
