/* Tavola Semplice funnel. Mobile first for readers 55+ (design review, sections 1 and 3):
   19px body (20px from 600px), line height 1.6, 680px text column, full-width 56px yellow
   buttons with a dark border, black text on white, same fonts and accents as the guide. */
:root {
  --ink: #1a1a1a; --muted: #4a4a4a; --paper: #fff; --tint: #faf6ee; --line: #d9d2c3;
  --terra: #9a3f1f; --olive: #4f5d23; --olive-soft: #ecefdc; --link: #174c88;
  --btn: #ffbd2b; --btn-hover: #ffcb55; --btn-border: #262000; --error: #b3261e;
  --gingham: repeating-linear-gradient(90deg, rgba(168,50,42,.85) 0 8px, transparent 8px 16px),
             repeating-linear-gradient(0deg, rgba(168,50,42,.55) 0 8px, transparent 8px 16px);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 1.1875rem/1.6 "Atkinson Hyperlegible", "Segoe UI", Roboto, Arial, sans-serif; }
@media (min-width: 600px) { body { font-size: 1.25rem; } }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--link); }
:focus-visible { outline: 3px solid #17518f; outline-offset: 4px; }

.wrap { max-width: 760px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 600px) { .wrap { padding: 0 24px; } }
.narrow, .prose { max-width: 680px; }
.prose p, .prose li { max-width: 68ch; }

.top { background: #fff; }
.top::before { content: ""; display: block; height: 12px; background: var(--gingham); background-color: #fff; }
.top .wrap { padding-top: 10px; padding-bottom: 10px; }
.wordmark { font-family: Lora, Georgia, serif; font-weight: 700; color: var(--olive); letter-spacing: .1em; text-transform: uppercase; font-size: 1rem; }

h1, h2, h3 { font-family: Lora, Georgia, serif; line-height: 1.2; color: var(--ink); }
h1 { font-size: 1.875rem; margin: .8em 0 .5em; }
h2 { font-size: 1.5625rem; margin: 2.4em 0 .5em; }
h2::before { content: ""; display: block; width: 2.2em; height: 4px; background: var(--olive); border-radius: 2px; margin-bottom: .45em; }
@media (min-width: 600px) { h1 { font-size: 2.5rem; } h2 { font-size: 1.875rem; margin-top: 2.8em; } }
p { margin: 0 0 1em; }
strong { font-weight: 700; }
.small { font-size: 1rem; color: var(--muted); }
.center { text-align: center; }
.kicker { font-weight: 700; color: var(--terra); text-transform: uppercase; letter-spacing: .06em; font-size: 1rem; margin: 1.2em 0 0; }
.byline { color: var(--muted); font-size: 1rem; margin-top: 1.2em; }

.ticks { list-style: none; padding: 0; margin: 0 0 1.2em; }
.ticks li { position: relative; padding-left: 1.7em; margin-bottom: .6em; }
.ticks li::before { content: "✓"; position: absolute; left: 0; top: 0; color: var(--olive); font-weight: 700; }

sup .cite { text-decoration: none; font-size: .75em; padding: 0 .25em; }
.sources ol { padding-left: 1.4em; font-size: 1rem; }
.sources li { margin-bottom: .7em; }
.sources .back { white-space: nowrap; }

figure { margin: 1.6em auto; }
.illus img { margin: 0 auto; }
.bundle img { margin: 0 auto; border-radius: 6px; }
.cover { margin: 1em auto 1.4em; border-radius: 4px; box-shadow: 6px 8px 18px rgba(60,40,10,.22); }

/* Buttons */
.cta { margin: 1.8em 0; text-align: center; }
.btn { display: block; width: 100%; min-height: 56px; padding: 14px 18px; border: 2px solid var(--btn-border); border-radius: 6px;
  background: var(--btn); color: #111; font: 700 1.25rem/1.25 "Atkinson Hyperlegible", Arial, sans-serif; text-align: center; text-decoration: none; cursor: pointer; }
.btn:hover { background: var(--btn-hover); }
.btn[disabled] { opacity: .7; cursor: progress; }
.btn-secondary { background: #fff; }
@media (min-width: 600px) { .btn { max-width: 480px; margin: 0 auto; } }
.cta-note { font-size: 1rem; color: var(--muted); margin: .5em 0 0; }

/* Forms */
form { margin: 1.2em 0; }
label { display: block; font-weight: 700; margin-bottom: .35em; }
input[type=email] { width: 100%; min-height: 52px; padding: 10px 14px; border: 2px solid #6b6b6b; border-radius: 6px; font: inherit; margin-bottom: 16px; background: #fff; }
.form-error { color: var(--error); font-weight: 700; margin-top: .6em; }
.form-ok { color: #1e6b3a; font-weight: 700; margin-top: .6em; }
.terms { font-size: 1.0625rem; color: var(--muted); margin: .7em 0 0; text-align: center; }

.note-box { background: var(--tint); border: 1.5px solid var(--line); border-radius: 6px; padding: 1em 1.1em; margin: 1.4em 0; }
.note-box p:last-child { margin-bottom: 0; }

/* Checkout */
.checkout { max-width: 640px; }
.summary { border: 1.5px solid var(--line); border-radius: 8px; padding: 1em; background: #fff; margin-bottom: 1.2em; }
.summary img { margin: 0 auto 1em; }
.total { font-size: 1.5rem; margin: .6em 0 0; }
.reassure { list-style: none; padding: 0; font-size: 1rem; color: var(--muted); text-align: center; }
.reassure li { margin: .3em 0; }

/* Upsell */
.price-box { font-size: 1.375rem; font-weight: 700; text-align: center; background: var(--olive-soft); border-radius: 8px; padding: .8em; }
.decline { display: inline-block; padding: 14px 8px; font-size: 1.125rem; color: var(--muted); }

/* Delivery */
.downloads .item { border: 1.5px solid var(--line); border-radius: 8px; padding: 1em; margin-bottom: 1em; }
.downloads .item h3 { margin: 0 0 .5em; font-size: 1.25rem; }
.downloads .btn { margin-bottom: .6em; }

.foot { margin-top: 4em; padding: 1.5em 0 2.5em; border-top: 1px solid var(--line); color: var(--muted); font-size: 1rem; }

.downloads .print-link { text-align: center; font-size: 1rem; margin: .2em 0 0; }
.downloads .print-link a { display: inline-block; padding: 10px 6px; }

/* Proposed warm theme (awaiting Julian's approval): cream paper, terracotta headings,
   olive accents, framed photos, like the guide. Activate with <body class="warm">. */
body.warm { background: #fbf6ec; }
body.warm h1 { color: #9a3f1f; }
body.warm h2 { color: #222019; }
body.warm .summary, body.warm .downloads .item { background: #fffdf8; }
body.warm .note-box { background: #fff; }
body.warm figure.photo img { border: 8px solid #fff; box-shadow: 3px 5px 14px rgba(60,40,10,.18); border-radius: 3px; }
body.warm figure.photo figcaption { font-family: Lora, Georgia, serif; font-size: 1rem; color: #4a443a; text-align: center; margin-top: .5em; }
body.warm .foot { background: #f3ead8; }

/* Photos (sales pages) */
figure.photo { margin: 1.6em 0; }
figure.photo img { width: 100%; border-radius: 6px; }

.paylogos { display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; margin: 1.2em 0 .4em; }
.paylogos img { display: inline-block; }
.secure-label { font-weight: 700; margin: 0 0 .6em; }

/* On-page Stripe checkout */
.checkout-form .express { margin: 1em 0 .4em; }
.pay-divider { display: flex; align-items: center; gap: .6em; color: var(--muted, #555); margin: .8em 0; font-size: .95em; }
.pay-divider::before, .pay-divider::after { content: ""; flex: 1; border-top: 1px solid #d8d2c4; }
.payment-element { margin: .6em 0 1.1em; min-height: 120px; }
.pay-loading { color: var(--muted, #555); }
.upsell-form .form-error { text-align: center; }

/* Review fixes, 6 Oct 2026 */
/* /guida: keep the email field and button on the first phone screen (also inside the Facebook app). */
.cover-optin { width: auto; max-height: 180px; margin: .6em auto 1em; }
@media (min-width: 600px) { .cover-optin { max-height: 320px; } }
/* The hidden attribute must win: no "oppure paga con carta" without a wallet button above it. */
.pay-divider[hidden] { display: none; }
/* Footnote numbers: a bigger tap area for older readers (about 32 px). */
sup .cite { display: inline-block; min-width: 1.6em; padding: .45em .3em; margin: -.45em 0; text-align: center; }
/* Order summary and letter mockups: smaller on the phone, as on NutritionFacile. */
.summary img.summary-img { max-height: 190px; width: auto; }
.bundle-small img { max-width: 420px; }
/* Short pages: the footer band reaches the bottom of the screen. */
body { min-height: 100vh; display: flex; flex-direction: column; }
body > main { flex: 1 0 auto; }

/* NutritionFacile-matched layouts, 6 Oct 2026 */
.revisit { margin: .4em 0 1.4em; }
figcaption.signature { text-align: center; font-weight: 700; color: var(--olive, #4f5d23); margin-top: .4em; font-size: .95em; }
.download-link { display: inline-block; padding: .6em .4em; font-weight: 700; }
.pay-note { text-align: center; color: var(--muted, #555); font-size: .95em; margin: .6em 0 0; }
.subhead { font-size: 1.05em; }
.upsell-cover { max-height: 220px; width: auto; }
.price-box .price-line { font-size: 1.5em; margin: 0 0 .2em; text-align: center; }
.price-box .price-line s { color: var(--muted, #6b6457); font-weight: 400; }
.price-box .small { margin: 0; text-align: center; }
hr.divider { border: 0; border-top: 2px dashed #d8cbb2; margin: 1.6em 0; }
.cta button.btn { width: 100%; }
.seal { width: 150px; height: 150px; margin: .4em auto 1.2em; border-radius: 50%; border: 5px double #9a7a12; background: #fbf0cf; color: #6b5408;
  display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; line-height: 1.15; font-size: .85em; }
.seal strong { font-family: Lora, Georgia, serif; font-size: 1.7em; color: #7a3216; margin: .1em 0; }
.crosssell { border: 1.5px solid var(--line); border-radius: 8px; padding: 1em; background: #fff; margin: 1.6em 0; }
.crosssell h2 { margin-top: .2em; }
.crosssell-img { max-height: 180px; width: auto; margin: 0 auto .6em; }
.btn-secondary { background: #fff; border: 2px solid currentColor; }
