/* foodifyai.app v3 — secondary pages (guides, legal, support, 404).
   Loaded after site.css and reads its tokens. Prose layout only: flat tone
   steps, no gradients, no resting shadows, no hairline rules. */

/* ------------------------------------------------------------ article area */
.page { background: var(--cream); color: var(--forest); padding-block: clamp(1.5rem, 1rem + 2.5vw, 3.5rem) clamp(3.5rem, 2.5rem + 5vw, 7rem); }
.page .wrap { max-width: 1120px; }

.crumbs ol { list-style: none; margin: 0 0 clamp(1.5rem, 1rem + 2vw, 2.75rem); padding: 0; display: flex; flex-wrap: wrap; gap: 0.25rem 0; font-size: 1rem; line-height: 1.4; }
.crumbs li { display: inline-flex; align-items: baseline; }
.crumbs li + li::before { content: "/"; margin-inline: 0.6em; color: var(--green-2); }
.crumbs a { color: var(--green); }
.crumbs [aria-current] { color: var(--forest); }

.page-head { max-width: 46rem; margin-bottom: clamp(2rem, 1.5rem + 2vw, 3.5rem); }
.page-head h1 { font-size: clamp(2.375rem, 1.6rem + 3.4vw, 4.25rem); line-height: 1; letter-spacing: -0.035em; max-width: 18ch; }
.page-head .lead { margin: 1.5rem 0 0; max-width: 40ch; }
.page-head .meta { margin: 1.25rem 0 0; font-size: 1rem; color: var(--green); }

/* ------------------------------------------------------------ prose */
.prose { max-width: 68ch; font-size: var(--step-body); line-height: 1.6; }
.prose p, .prose li { max-width: none; }
.prose > :first-child { margin-top: 0; }
.prose h2 { font-size: clamp(1.75rem, 1.35rem + 1.5vw, 2.5rem); line-height: 1.1; letter-spacing: -0.03em; margin: 3.25rem 0 1rem; }
.prose h3 { font-size: 1.375rem; line-height: 1.25; letter-spacing: -0.015em; margin: 2.25rem 0 0.6rem; }
.prose h2 + h3 { margin-top: 1.25rem; }
.prose p { margin: 0 0 1.1em; }
.prose ul, .prose ol { margin: 0 0 1.25em; padding-left: 1.4em; display: grid; gap: 0.6em; }
.prose ul li::marker { color: var(--orange); }
.prose ol li::marker { color: var(--green); font-weight: 700; }
.prose li > ul, .prose li > ol { margin: 0.6em 0 0; }
.prose strong, .prose b { font-weight: 700; }
.prose a { color: var(--green); text-decoration-color: var(--leaf); }
.prose a:hover { color: var(--forest); text-decoration-color: var(--orange); }
.prose address { font-style: normal; }

/* Callouts: one flat tone block each. */
.callout { margin: 2rem 0; padding: 1.25rem 1.5rem; border-radius: var(--radius); background: var(--leaf); color: var(--forest); }
.callout > :first-child { margin-top: 0; }
.callout p:last-child { margin-bottom: 0; }
.callout.sky { background: var(--sky); }
.callout.soft { background: var(--cream-2); }

/* Tables: header on forest, rows on alternating cream tones. */
.table-scroll { margin: 2rem 0; overflow-x: auto; border-radius: var(--radius); background: var(--cream-2); -webkit-overflow-scrolling: touch; }
.table-scroll:focus-visible { outline-offset: 0; }
.prose table { width: 100%; min-width: 36rem; border-collapse: collapse; font-size: 1rem; line-height: 1.45; }
.prose th, .prose td { padding: 0.85rem 1rem; text-align: left; vertical-align: top; }
.prose thead th { background: var(--forest); color: var(--cream); font-weight: 700; }
.prose tbody tr:nth-child(odd) { background: var(--cream); }
.prose tbody tr:nth-child(even) { background: var(--cream-2); }
.prose tbody th { font-weight: 700; }

/* Screens: real app screens as flat cards next to their caption. */
.shot { margin: 2.5rem 0; padding: clamp(1.25rem, 1rem + 1.5vw, 2rem); border-radius: var(--radius); background: var(--cream-2); display: grid; grid-template-columns: minmax(0, 220px) 1fr; gap: clamp(1.25rem, 1rem + 1.5vw, 2rem); align-items: end; }
.shot img { width: 100%; max-width: 300px; height: auto; }
.shot figcaption { font-size: 1rem; line-height: 1.5; max-width: 32ch; }
@media (max-width: 599px) {
  .shot { grid-template-columns: 1fr; justify-items: center; text-align: left; }
  .shot img { max-width: min(260px, 72vw); }
  .shot figcaption { justify-self: stretch; max-width: none; }
}

/* FAQ inside an article reuses the homepage details pattern. */
.prose .faq-list { margin: 1.5rem 0 0; }
.prose .faq-list summary { font-size: var(--step-body); }
.prose .faq-list .answer p { max-width: none; }
.prose .faq-list .answer p:last-child { margin-bottom: 0; }

/* ------------------------------------------------------------ end-of-article CTA */
.cta-block { max-width: 68ch; margin-top: clamp(3rem, 2rem + 3vw, 4.5rem); padding: clamp(1.5rem, 1rem + 3vw, 3rem); border-radius: var(--radius); background: var(--green); color: var(--cream); display: grid; grid-template-columns: auto 1fr; gap: 1.25rem 1.5rem; align-items: start; }
.cta-block .icon { width: 64px; height: 64px; border-radius: 16px; }
.cta-block h2 { font-size: clamp(1.75rem, 1.35rem + 1.5vw, 2.5rem); line-height: 1.05; letter-spacing: -0.03em; }
.cta-block p { margin: 0.75rem 0 0; }
.cta-block .store { margin-top: 1.5rem; }
.cta-block .store img { height: 56px; width: auto; }
.cta-block .fine { font-size: 1rem; margin-top: 1.25rem; }
.cta-block a:not(.store) { color: var(--cream); text-decoration-color: var(--leaf); }
@media (max-width: 599px) { .cta-block { grid-template-columns: 1fr; } }

/* ------------------------------------------------------------ related + hub lists */
.related { background: var(--cream); padding-block: 0 clamp(4rem, 3rem + 5vw, 8rem); }
.related .wrap { max-width: 1120px; }
.related h2 { font-size: clamp(1.75rem, 1.35rem + 1.5vw, 2.5rem); line-height: 1.1; letter-spacing: -0.03em; }
.related .guide-list { margin-top: 1.5rem; }
.guide-list span { font-size: 1rem; }
.hub .guide-list { margin-top: 0; }

/* ------------------------------------------------------------ legal pages */
.legal-doc .toc { margin: 0 0 2.5rem; padding: 1.25rem 1.5rem; border-radius: var(--radius); background: var(--cream-2); }
.legal-doc .toc h2 { margin: 0 0 0.75rem; font-size: 1.375rem; letter-spacing: -0.015em; }
.legal-doc .toc ol { margin: 0; padding: 0; list-style: none; gap: 0.35em; }
.legal-doc h2 { scroll-margin-top: 1.5rem; }
.legal-doc h3 { scroll-margin-top: 1.5rem; }

/* ------------------------------------------------------------ support */
.support-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--gap); align-items: start; }
.panel { padding: clamp(1.25rem, 1rem + 2vw, 2.25rem); border-radius: var(--radius); background: var(--cream-2); }
.panel h2 { font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); line-height: 1.1; letter-spacing: -0.025em; margin-bottom: 1rem; }
.panel + .panel { margin-top: var(--gap); }
.panel.tone { background: var(--sky); }
.panel p { max-width: none; }
.panel ul.links { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.5rem; }
.panel ul.links a { display: block; padding: 0.75rem 1rem; border-radius: 14px; background: var(--cream); text-decoration: none; font-weight: 500; transition: background-color 0.2s; }
.panel ul.links a:hover { background: var(--leaf); }
.form label { display: block; margin: 1.1rem 0 0.4rem; font-size: 1rem; font-weight: 700; }
.form label:first-of-type { margin-top: 0; }
.form .opt { font-weight: 400; color: var(--green); }
.form input[type="text"], .form input[type="email"], .form select, .form textarea {
  width: 100%; min-height: 52px; padding: 0.75rem 1rem; border: 0; border-radius: 14px;
  background: var(--cream); color: var(--forest); font: 400 1rem/1.4 var(--font);
}
.form input:focus, .form select:focus, .form textarea:focus { outline: 3px solid var(--orange); outline-offset: 2px; }
.form textarea { min-height: 160px; resize: vertical; line-height: 1.5; }
.form select { appearance: none; -webkit-appearance: none; padding-right: 2.75rem; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath d='M1.5 1.5 7 7l5.5-5.5' fill='none' stroke='%23123D2B' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 1rem center; }
.form .hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.form .btn { margin-top: 1.5rem; width: 100%; border: 0; cursor: pointer; }
.form .btn[disabled] { opacity: 0.7; cursor: progress; transform: none; }
.form .note { margin: 1rem 0 0; font-size: 1rem; }
.form-error { margin: 1rem 0 0; padding: 0.85rem 1rem; border-radius: 14px; background: var(--orange); color: var(--forest); font-size: 1rem; }
.success { text-align: left; }
.success h2 { margin-bottom: 0.75rem; }
.success img { width: 120px; height: auto; margin-bottom: 1rem; }
.mail-row { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem; }
.mail-row a { font-weight: 700; font-size: var(--step-body); }
.copy { min-height: 44px; padding: 0.4rem 1rem; border: 0; border-radius: 999px; background: var(--forest); color: var(--cream); font: 500 1rem var(--font); cursor: pointer; }
.copy:hover { background: var(--green); }
.panel .reply { margin: 1rem 0 0; font-size: 1rem; }
.support-faq { margin-top: clamp(3rem, 2rem + 3vw, 5rem); }
.support-faq > h2 { font-size: clamp(1.75rem, 1.35rem + 1.5vw, 2.5rem); line-height: 1.1; letter-spacing: -0.03em; margin-bottom: 1.5rem; }
.support-faq .faq-list .answer p { max-width: 62ch; }
@media (max-width: 899px) { .support-grid { grid-template-columns: 1fr; } }

/* ------------------------------------------------------------ 404 */
.lost { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--gap); align-items: center; }
.lost img { width: min(100%, 300px); justify-self: center; }
.lost .actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 2rem; }
.btn.alt { background: var(--cream-2); color: var(--forest); }
.btn.alt:hover { background: var(--leaf); }
@media (max-width: 899px) { .lost { grid-template-columns: 1fr; } .lost img { width: min(60%, 220px); } }
