/* ============================================================================
   sellfood-tool-landing.css
   Shared styles for all sellfood-tool-[name].html landing pages.
   Page-specific demo internals (result cards, charts, SVG, etc.) stay inline.
   ============================================================================ */

:root {
  --cream: #FAF6EF; --warm-white: #FDF9F3;
  --brown: #3B2314; --brown-mid: #6B3F26; --brown-light: #A0673A;
  --amber: #D4891A; --amber-light: #F0A830; --amber-pale: #FEF3DC;
  --sage: #7A8C6E; --sage-pale: #EDF2EA; --sage-dark: #4A7C3F;
  --terra: #C4614A; --terra-pale: #FCEAE6;
  --sky: #4A7FA5; --sky-pale: #E6F1F8;
  --text: #2A1A0E; --text-mid: #5C3D26; --text-light: #9A7B65;
  --border: #E8DDD0;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: 'DM Sans', sans-serif; background: var(--cream); color: var(--text); line-height: 1.6; }

/* ── HERO ── */
.hero { background: linear-gradient(135deg, var(--brown) 0%, var(--brown-mid) 100%); color: var(--cream); padding: 4.5rem 5% 4rem; position: relative; overflow: hidden; }
.hero::before { content: ''; position: absolute; top: -20%; right: -10%; width: 60%; height: 140%; background: radial-gradient(circle, rgba(212,137,26,0.18) 0%, transparent 60%); pointer-events: none; }
.hero-inner { max-width: 820px; margin: 0 auto; position: relative; text-align: center; }
.hero-eyebrow { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--amber); margin: 0 0 1rem; }
.hero-title { font-family: 'Playfair Display', serif; font-weight: 900; font-size: clamp(2rem, 5vw, 2.8rem); line-height: 1.1; margin: 0 0 1.25rem; }
.hero-subtitle { font-family: 'Lora', serif; font-style: italic; font-size: clamp(1rem, 2vw, 1.15rem); font-weight: 500; opacity: 0.88; margin: 0 auto 2rem; max-width: 640px; }
.hero-ctas { display: flex; gap: 0.75rem; justify-content: center; flex-wrap: wrap; }

/* ── BUTTONS ── */
.btn { display: inline-flex; align-items: center; gap: 0.4rem; padding: 0.75rem 1.5rem; border-radius: 10px; font-family: 'DM Sans', sans-serif; font-weight: 700; font-size: 0.9rem; text-decoration: none; border: 1.5px solid transparent; transition: transform 0.15s, background 0.15s, border-color 0.15s; cursor: pointer; }
.btn-primary { background: var(--amber); color: var(--brown); }
.btn-primary:hover { background: var(--amber-light); transform: translateY(-1px); }
.btn-outline { background: transparent; color: var(--cream); border-color: rgba(250,246,239,0.4); }
.btn-outline:hover { border-color: var(--amber); color: var(--amber); }
.btn-secondary { background: var(--brown); color: var(--cream); border-color: var(--border); }
.btn-secondary:hover { background: var(--brown-mid); transform: translateY(-1px); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }

/* ── SECTION CONTAINERS ── */
.section { padding: 4rem 5%; }
.section-inner { max-width: 960px; margin: 0 auto; }
.section-cream { background: var(--cream); }
.section-white { background: var(--warm-white); }
.section-dark { background: linear-gradient(135deg, var(--brown) 0%, var(--brown-mid) 100%); color: var(--cream); position: relative; overflow: hidden; }
.section-dark::before { content: ''; position: absolute; top: -40%; left: -10%; width: 50%; height: 180%; background: radial-gradient(circle, rgba(212,137,26,0.12) 0%, transparent 60%); pointer-events: none; }
.section-dark .section-inner { position: relative; }

.section-eyebrow { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--amber); margin: 0 0 0.75rem; text-align: center; }
.section-title { font-family: 'Playfair Display', serif; font-weight: 700; font-size: clamp(1.5rem, 3.5vw, 2rem); text-align: center; margin: 0 0 0.75rem; }
.section-desc { font-size: 0.95rem; color: var(--text-mid); text-align: center; max-width: 640px; margin: 0 auto 2.5rem; }
.section-dark .section-desc { color: rgba(250,246,239,0.8); }
.section-dark .section-title { color: var(--cream); }

/* ── EXPLAINER CARDS ── */
.explainer-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1.25rem; }
.explainer-card { background: white; border: 1px solid var(--border); border-radius: 14px; padding: 1.5rem; }
.explainer-card .ec-icon { font-size: 1.5rem; margin-bottom: 0.75rem; display: block; }
.explainer-card .ec-title { font-family: 'Lora', serif; font-weight: 600; font-size: 1rem; color: var(--brown); margin: 0 0 0.4rem; }
.explainer-card .ec-text { font-size: 0.85rem; color: var(--text-mid); margin: 0; line-height: 1.6; }

/* ── DEMO SHELL ── */
.demo-box { background: white; border: 1px solid var(--border); border-radius: 20px; padding: 2.5rem; box-shadow: 0 4px 24px rgba(59,35,20,0.08); }
.demo-controls { display: grid; grid-template-columns: 1fr 1fr auto; gap: 1rem; align-items: end; margin-bottom: 0; }
.demo-field label { display: block; font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-light); margin-bottom: 0.4rem; }
.demo-field select,
.demo-field input[type="text"],
.demo-field input[type="number"] { width: 100%; padding: 0.65rem 0.85rem; border: 1.5px solid var(--border); border-radius: 8px; font-family: 'DM Sans', sans-serif; font-size: 0.88rem; color: var(--text); background: white; }
.demo-field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%239A7B65' fill='none' stroke-width='1.5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 0.85rem center; cursor: pointer; }
.demo-field select:focus,
.demo-field input[type="text"]:focus,
.demo-field input[type="number"]:focus { border-color: var(--amber); outline: none; }
.btn-analyze { padding: 0.65rem 1.5rem; border: none; margin-bottom: 0; }

/* ── STEPS GRID ── */
.steps-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 2rem; counter-reset: step; }
.step-card { text-align: center; counter-increment: step; }
.step-card::before { content: counter(step); display: flex; align-items: center; justify-content: center; width: 48px; height: 48px; margin: 0 auto 1rem; border-radius: 50%; background: var(--amber); color: var(--brown); font-family: 'Playfair Display', serif; font-weight: 900; font-size: 1.25rem; }
.step-card h3 { font-family: 'Lora', serif; font-weight: 600; font-size: 1rem; margin: 0 0 0.35rem; }
.step-card p { font-size: 0.85rem; color: var(--text-mid); margin: 0; }

/* ── VERDICTS / CATEGORY LEGEND GRID ── */
.verdicts-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 1rem; }
.verdict-card { padding: 1.25rem; border-radius: 12px; text-align: center; }
.verdict-card.v-sage { background: var(--sage-pale); border: 1px solid var(--sage); }
.verdict-card.v-sky { background: var(--sky-pale); border: 1px solid var(--sky); }
.verdict-card.v-amber { background: var(--amber-pale); border: 1px solid var(--amber); }
.verdict-card.v-terra { background: var(--terra-pale); border: 1px solid var(--terra); }
.verdict-card .vc-icon { font-size: 1.5rem; margin-bottom: 0.5rem; display: block; }
.verdict-card .vc-label { font-family: 'Lora', serif; font-weight: 600; font-size: 0.95rem; color: var(--brown); margin: 0 0 0.25rem; }
.verdict-card .vc-desc { font-size: 0.78rem; color: var(--text-mid); margin: 0; }

/* ── STATS BAR ── */
.stats-bar { display: flex; justify-content: center; gap: 3rem; flex-wrap: wrap; margin-top: 2rem; }
.stat { text-align: center; }
.stat-num { font-family: 'Playfair Display', serif; font-weight: 900; font-size: 2rem; color: var(--amber); display: block; }
.stat-label { font-size: 0.78rem; color: rgba(250,246,239,0.7); text-transform: uppercase; letter-spacing: 0.06em; font-weight: 700; }

/* ── FOOTER ── */
.site-footer { background: var(--brown); color: rgba(250,246,239,0.45); padding: 3rem 5% 2rem; font-size: 0.82rem; }
.footer-inner { max-width: 1100px; margin: 0 auto; display: flex; flex-wrap: wrap; gap: 2rem; justify-content: space-between; }
.footer-brand { font-family: 'Playfair Display', serif; font-weight: 900; font-size: 1.15rem; color: var(--cream); }
.footer-brand .dot-com { color: var(--amber); }
.footer-tagline { font-family: 'Lora', serif; font-style: italic; margin-top: 0.35rem; opacity: 0.7; }
.footer-links { display: flex; flex-wrap: wrap; gap: 1rem 1.5rem; }
.footer-links a { color: rgba(250,246,239,0.7); text-decoration: none; font-weight: 500; }
.footer-links a:hover { color: var(--amber); }
.footer-legal { width: 100%; margin-top: 2rem; padding-top: 1.25rem; border-top: 1px solid rgba(250,246,239,0.1); font-size: 0.72rem; opacity: 0.5; }

/* ── RESPONSIVE BASE ── */
@media (max-width: 700px) {
  .hero { padding: 3rem 5% 2.5rem; }
  .section { padding: 3rem 5%; }
  .demo-controls { grid-template-columns: 1fr; }
  .demo-box { padding: 1.5rem; }
  .stats-bar { gap: 1.5rem; }
  .footer-inner { flex-direction: column; gap: 1.5rem; }
}
