/* Upland Nutrition — site styles (uplandnutrition.com) (mobile-first, no build step) */
@font-face { font-family: "Fraunces"; src: url("../fonts/fraunces.woff2") format("woff2"); font-weight: 300 900; font-display: swap; }
@font-face { font-family: "Source Sans 3"; src: url("../fonts/source-sans-3.woff2") format("woff2"); font-weight: 300 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Source Sans 3"; src: url("../fonts/source-sans-3-italic.woff2") format("woff2"); font-weight: 300 900; font-style: italic; font-display: swap; }

:root {
  --radius: 14px;
  --max: 1120px;
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Source Sans 3", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

/* PALETTE-DEFAULT:START (generated by tools/palettes.py; do not hand-edit) */
/* Default = Option C: Canyon Clay with Olive Sage, Sunrise Gold and Dusty Blush (chosen Oct 22, 2026) */
:root {
  --forest: #8c3d21;
  --forest-2: #a04a2a;
  --moss: #4a5424;
  --sage: #f4e4de;
  --sand: #fbf6ee;
  --tan: #f2e4d1;
  --tan-2: #e8d3b8;
  --clay: #8c3d21;
  --clay-dark: #6f2f18;
  --ink: #2b201b;
  --muted: #5b4c44;
  --line: #e3d1bb;
  --white: #fffdf9;
  --on-primary: #ffffff;
  --input-border: #9a8674;
  --band-bg: #8c3d21;
  --band-text: #fbeee4;
  --band-heading: #ffffff;
  --band-accent: #f2c97c;
  --tag50-bg: #e7ead5;
  --tag50-text: #4a5424;
  --footer-bg: #4f2414;
  --footer-text: #f3e3d6;
  --footer-muted: #dfc7b6;
  --footer-heading: #ffffff;
  --art-sun: #e2a53c;
  --art-hill-1: #e0bfb6;
  --art-hill-2: #b5bf8c;
  --art-hill-3: #c97a53;
  --art-hill-4: #8c3d21;
  --art-path: #f8e8d2;
  --art-pine: #4a5424;
  --art-bird: #8c3d21;
  --logo-bg: #8c3d21;
  --logo-ground: #b5bf8c;
  --icon-stroke: #8c3d21;
  --trust-icon: #7c4438;
  --on-accent: #2b201b;
  --warm-band: #fcf3e1;
  --acc1: #e2a53c;
  --acc1-light: #f2c97c;
  --acc1-tint: #f8e8c6;
  --acc1-deep: #74500b;
  --acc2: #7f8c50;
  --acc2-light: #b5bf8c;
  --acc2-tint: #e7ead5;
  --acc2-deep: #4a5424;
  --acc3: #c29084;
  --acc3-light: #e0bfb6;
  --acc3-tint: #f4e4de;
  --acc3-deep: #7c4438;
  --shadow: 0 1px 2px rgba(43,32,27,.06), 0 6px 20px rgba(43,32,27,.06);
  --focus-ring: rgba(140,61,33,.25);
  --check-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 10.5l3 3 7-7' fill='none' stroke='%238c3d21' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}
/* PALETTE-DEFAULT:END */

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--sand); color: var(--ink); font-family: var(--sans); font-size: 1.125rem; line-height: 1.6; }
img, svg { max-width: 100%; display: block; }
a { color: var(--forest); text-underline-offset: 3px; }
a:hover { color: var(--clay-dark); }
:focus-visible { outline: 3px solid var(--clay); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.15; color: var(--forest); margin: 0 0 .5em; font-variation-settings: "SOFT" 50, "WONK" 0; letter-spacing: -.01em; }
h1 { font-size: clamp(2.3rem, 7vw, 4rem); }
h2 { font-size: clamp(1.75rem, 4.5vw, 2.6rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; }
.skip { position: absolute; left: -999px; top: 0; background: var(--white); padding: .5rem 1rem; z-index: 99; }
.skip:focus { left: 1rem; top: 1rem; }

.wrap { width: min(100% - 2.5rem, var(--max)); margin-inline: auto; }
.narrow { width: min(100% - 2.5rem, 760px); margin-inline: auto; }
section { padding: 4rem 0; }
.eyebrow { font-family: var(--sans); font-weight: 700; letter-spacing: .12em; text-transform: uppercase; font-size: .8rem; color: var(--moss); margin-bottom: .75rem; }
.lead { font-size: 1.2rem; color: var(--muted); }
.muted { color: var(--muted); }
.small { font-size: .95rem; }

/* Dev banner (remove before launch) */
.dev-banner { background: #fff3c4; color: #4a3b00; font-size: .9rem; text-align: center; padding: .5rem 1rem; border-bottom: 1px solid #e6d58a; }
.dev-banner strong { font-weight: 700; }

/* Header */
.site-header { background: var(--sand); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1.25rem; padding: 1.15rem 0; }
.brand { display: flex; align-items: center; gap: .6rem; text-decoration: none; color: var(--forest); }
/* Logo rules (Upland Content): clear space >= sun width (0.45 x lockup height horizontal, 0.2 x stacked); lockup never below 32px tall. */
.brand-logo { display: block; height: 40px; width: auto; }
@media (min-width: 900px) { .brand-logo { height: 46px; } .site-header .wrap { padding: 1.3rem 0; } }
.brand-name { font-family: var(--serif); font-weight: 700; font-size: 1.25rem; line-height: 1; }
.nav { display: flex; align-items: center; gap: 1.25rem; }
.nav a.navlink { display: none; text-decoration: none; color: var(--ink); font-weight: 600; font-size: 1rem; }
.nav a.navlink:hover { color: var(--clay-dark); }
@media (min-width: 900px) { .nav a.navlink { display: inline; } }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-height: 48px; padding: .8rem 1.4rem; border-radius: 999px; font-weight: 700; font-size: 1.05rem; text-decoration: none; border: 2px solid transparent; cursor: pointer; font-family: var(--sans); line-height: 1.2; text-align: center; transition: background .15s, color .15s, border-color .15s; }
.btn-primary { background: var(--clay); color: var(--on-primary); }
.btn-primary:hover { background: var(--clay-dark); color: var(--on-primary); }
.btn-secondary { background: transparent; color: var(--forest); border-color: var(--forest); }
.btn-secondary:hover { background: var(--forest); color: var(--white); }
.btn-small { min-height: 42px; padding: .55rem 1.1rem; font-size: .95rem; }
.btn-light { background: var(--white); color: var(--forest); }
.btn-light:hover { background: var(--tan); color: var(--forest); }
.btn-row { display: flex; flex-wrap: wrap; gap: .75rem; }
.btn-block { width: 100%; }

/* Hero */
.hero { padding: 3rem 0 0; background: linear-gradient(180deg, var(--sand) 0%, var(--tan) 100%); overflow: hidden; }
.hero-grid { display: grid; gap: 2rem; align-items: center; }
.hero h1 { margin-bottom: .4em; }
.hero .lead { max-width: 36rem; }
.trust { font-size: .95rem; color: var(--muted); margin-top: 1rem; display: flex; gap: .5rem; align-items: flex-start; max-width: 34rem; }
.trust svg { width: 20px; height: 20px; flex: none; margin-top: .2rem; }
.hero-art { margin-top: 1rem; }
.hero-art svg { width: 100%; height: auto; }
@media (min-width: 900px) {
  .hero { padding-top: 4.5rem; }
  .hero-grid { grid-template-columns: 1.1fr .9fr; }
  .hero-art { margin-top: 0; align-self: end; }
}

/* Cards and grids */
.grid { display: grid; gap: 1.25rem; }
@media (min-width: 720px) { .grid-2 { grid-template-columns: repeat(2, 1fr); } .grid-3 { grid-template-columns: repeat(3, 1fr); } .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .grid-4 { grid-template-columns: repeat(4, 1fr); } }
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; box-shadow: var(--shadow); }
.card h3 { margin-bottom: .4em; }
.card p:last-child { margin-bottom: 0; }
.icon { width: 52px; height: 52px; border-radius: 14px; background: var(--sage); display: grid; place-items: center; margin-bottom: 1rem; }
.icon svg { width: 30px; height: 30px; }

.checklist { list-style: none; padding: 0; margin: 0 0 1.5rem; }
.checklist li { position: relative; padding-left: 2rem; margin-bottom: .7rem; }
.checklist li::before { content: ""; position: absolute; left: 0; top: .35rem; width: 1.2rem; height: 1.2rem; border-radius: 50%; background: var(--sage) var(--check-icon) center/80% no-repeat; }

.section-alt { background: var(--white); border-block: 1px solid var(--line); }
.section-green { background: var(--band-bg); color: var(--band-text); }
.section-green h2, .section-green h3 { color: var(--band-heading); }
.section-green .eyebrow { color: var(--band-accent); }
.section-green a { color: var(--band-heading); }
.section-head { max-width: 44rem; margin-bottom: 2.25rem; }

.track { border-top: 6px solid var(--moss); }
.track.t50 { border-top-color: var(--clay); }
.tag { display: inline-block; font-size: .8rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; background: var(--sage); color: var(--forest); padding: .2rem .6rem; border-radius: 999px; margin-bottom: .75rem; }
.t50 .tag { background: var(--tag50-bg); color: var(--tag50-text); }

.note { background: var(--tan); border-left: 4px solid var(--moss); padding: 1rem 1.25rem; border-radius: 0 10px 10px 0; color: var(--ink); }

/* Why section */
.why-grid { display: grid; gap: 2rem; align-items: start; }
@media (min-width: 900px) { .why-grid { grid-template-columns: 1.2fr .8fr; } }
.stat-card { background: var(--sage); border-radius: var(--radius); padding: 1.75rem; }
.stat-card .big { font-family: var(--serif); font-size: 1.6rem; color: var(--forest); line-height: 1.25; margin-bottom: .75rem; }
.sources { font-size: .9rem; color: var(--muted); }
.sources a { color: var(--muted); }

/* Steps */
.steps { counter-reset: step; }
.step { position: relative; padding-top: 3.25rem; }
.step::before { counter-increment: step; content: counter(step); position: absolute; top: 1.25rem; left: 1.5rem; width: 2.2rem; height: 2.2rem; border-radius: 50%; background: var(--forest); color: var(--on-primary); font-family: var(--serif); font-weight: 700; display: grid; place-items: center; }
.step { padding-top: 4.25rem; }

/* Signup */
.signup { display: grid; gap: 2rem; align-items: start; }
@media (min-width: 900px) { .signup { grid-template-columns: 1fr 1fr; } }
.form-card { background: var(--white); color: var(--ink); border-radius: var(--radius); padding: 1.5rem; box-shadow: var(--shadow); border: 1px solid var(--line); }
.form-card h3 { color: var(--forest); }
.field { margin-bottom: 1rem; }
.field label, .field legend { display: block; font-weight: 700; margin-bottom: .35rem; font-size: 1rem; color: var(--ink); }
.field .opt { font-weight: 400; color: var(--muted); }
.field input[type=text], .field input[type=email] { width: 100%; min-height: 48px; padding: .7rem .9rem; border: 1.5px solid var(--input-border); border-radius: 10px; font: inherit; background: #fff; color: var(--ink); }
.field input:focus { border-color: var(--forest); outline: 3px solid var(--focus-ring); }
fieldset.field { border: 0; padding: 0; margin: 0 0 1rem; }
.radio-row { display: grid; gap: .5rem; }
@media (min-width: 480px) { .radio-row { grid-template-columns: 1fr 1fr; } }
.radio { display: flex; align-items: center; gap: .6rem; border: 1.5px solid var(--line); border-radius: 10px; padding: .7rem .9rem; cursor: pointer; font-weight: 600; background: var(--sand); }
.radio input { width: 1.2rem; height: 1.2rem; accent-color: var(--forest); }
.radio:has(input:checked) { border-color: var(--forest); background: var(--sage); }
.fineprint { font-size: .9rem; color: var(--muted); margin-top: .9rem; margin-bottom: 0; }
.form-msg { display: none; margin-top: 1rem; background: #fff3c4; color: #4a3b00; border-radius: 10px; padding: .75rem 1rem; font-size: .95rem; }
.form-msg.show { display: block; }
.guide-list li { margin-bottom: .5rem; }
.section-green .checklist li::before { background-color: var(--band-accent); }

/* Pricing */
.price-card { display: flex; flex-direction: column; }
.price-card .price { font-family: var(--serif); font-size: 2.6rem; font-weight: 700; color: var(--forest); line-height: 1; margin: .25rem 0 .25rem; }
.price-card .per { font-size: 1rem; color: var(--muted); font-family: var(--sans); font-weight: 600; }
.price-card .sub { color: var(--muted); font-size: 1rem; margin-bottom: 1rem; }
.price-card ul { margin-bottom: 1.5rem; }
.price-card .btn { margin-top: auto; }
.price-card.featured { border: 2px solid var(--forest); position: relative; }
.badge { position: absolute; top: -.85rem; left: 1.5rem; background: var(--forest); color: var(--on-primary); font-size: .8rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; padding: .25rem .75rem; border-radius: 999px; }
.price-foot { text-align: center; margin-top: 1.5rem; }

/* FAQ */
.faq details { background: var(--white); border: 1px solid var(--line); border-radius: 12px; margin-bottom: .75rem; }
.faq summary { cursor: pointer; padding: 1.1rem 3rem 1.1rem 1.25rem; font-weight: 700; font-size: 1.1rem; list-style: none; position: relative; color: var(--forest); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 1.25rem; top: 50%; transform: translateY(-50%); font-size: 1.6rem; font-weight: 400; color: var(--moss); }
.faq details[open] summary::after { content: "–"; }
.faq .answer { padding: 0 1.25rem 1.1rem; color: var(--ink); }
.faq .answer p:last-child { margin-bottom: 0; }

/* Final CTA */
.final { text-align: center; }
.final .btn-row { justify-content: center; }

/* Disclaimer block */
.disclaimer-block { font-size: .98rem; color: var(--muted); }
.disclaimer-block h2 { font-size: 1.4rem; }
.disclaimer-block strong { color: var(--ink); }

/* Footer */
.site-footer { background: var(--footer-bg); color: var(--footer-text); padding: 3rem 0 2rem; font-size: 1rem; }
.site-footer a { color: var(--footer-heading); }
.footer-grid { display: grid; gap: 2rem; }
@media (min-width: 800px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; } }
.site-footer .brand { color: var(--footer-heading); }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: .45rem; }
.site-footer h3 { color: var(--footer-heading); font-size: 1.05rem; font-family: var(--sans); font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.footer-legal { border-top: 1px solid rgba(255,255,255,.15); margin-top: 2rem; padding-top: 1.25rem; font-size: .9rem; color: var(--footer-muted); }

/* Legal pages */
.legal-head { padding: 3rem 0 1.5rem; background: var(--tan); border-bottom: 1px solid var(--line); }
.draft-flag { display: inline-block; background: #fff3c4; color: #4a3b00; border: 1px solid #e6d58a; font-weight: 700; font-size: .85rem; letter-spacing: .06em; text-transform: uppercase; padding: .35rem .75rem; border-radius: 8px; margin-bottom: 1rem; }
.legal { padding: 2.5rem 0 4rem; }
.legal h2 { font-size: 1.5rem; margin-top: 2rem; }
.legal h3 { font-size: 1.15rem; margin-top: 1.5rem; }
.legal ul, .legal ol { padding-left: 1.3rem; }
.legal li { margin-bottom: .4rem; }
.legal .todo { background: #fff3c4; padding: 0 .25rem; border-radius: 3px; }

/* Starter guide page */
.guide-hero { padding: 2.5rem 0 3rem; background: linear-gradient(180deg, var(--sand), var(--tan)); }
.guide-grid { display: grid; gap: 2rem; align-items: start; }
@media (min-width: 900px) { .guide-grid { grid-template-columns: 1fr 1fr; } .guide-hero { padding: 4rem 0; } }
.cover-mock { background: var(--forest); color: var(--on-primary); border-radius: 12px; padding: 1.5rem; box-shadow: var(--shadow); max-width: 320px; aspect-ratio: 8.5/11; display: flex; flex-direction: column; justify-content: space-between; }
.cover-mock .t { font-family: var(--serif); font-size: 1.5rem; line-height: 1.15; }
.cover-mock small { color: var(--band-accent); font-weight: 700; letter-spacing: .1em; text-transform: uppercase; font-size: .7rem; }

/* --- fixes after screenshot review --- */
.form-card a, .section-green .form-card a { color: var(--forest); }
.radio input { margin: 0; }
.price-card .price { margin-bottom: 1rem; }
.site-footer .brand-logo { height: 104px; }
.site-footer .brand-footer + p { margin-top: 1.5rem !important; }
@media (max-width: 719px) {
  .feature-grid .card { display: grid; grid-template-columns: 44px 1fr; column-gap: 1rem; padding: 1.1rem 1.25rem; }
  .feature-grid .card .icon { width: 44px; height: 44px; margin: 0; grid-row: span 2; }
  .feature-grid .card .icon svg { width: 26px; height: 26px; }
  .feature-grid .card h3 { font-size: 1.15rem; margin-bottom: .2em; }
  .feature-grid { gap: .75rem; }
  section { padding: 3rem 0; }
}
.radio { line-height: 1.2; }
.radio input { flex: none; align-self: center; }
.guide-grid { grid-template-areas: "intro" "form" "list"; }
.g-intro { grid-area: intro; } .g-form { grid-area: form; } .g-list { grid-area: list; }
@media (min-width: 900px) { .guide-grid { grid-template-areas: "intro form" "list form"; row-gap: 0; } }
.radio input { position: relative; top: 2px; }

/* --- palette-driven illustration and icons (CSS fill/stroke override the SVG attributes) --- */
.art-sun { fill: var(--art-sun); }
.art-hill-1 { fill: var(--art-hill-1); }
.art-hill-2 { fill: var(--art-hill-2); }
.art-hill-3 { fill: var(--art-hill-3); }
.art-hill-4 { fill: var(--art-hill-4); }
.art-path { stroke: var(--art-path); }
.art-pine { fill: var(--art-pine); }
.art-bird { stroke: var(--art-bird); }
.icon svg { stroke: var(--icon-stroke); }
.trust svg { stroke: var(--trust-icon); }

/* --- color system: one core color + three warm accents (tokens generated by tools/palettes.py) ---
   Core (--forest/--clay are legacy names for the core color): header, headings, links, primary buttons, logo, signup band.
   acc1 sunrise, acc2 earth, acc3 calm: base = decoration only, tint = soft fill, deep = the only accent that carries text.
   All color tokens live in the generated PALETTE-DEFAULT block at the top of this file (default = Option C, Canyon Clay). */
.hero .eyebrow { display: inline-block; background: var(--acc1-tint); color: var(--acc1-deep); padding: .3rem .8rem; border-radius: 999px; }
.btn-primary:hover { box-shadow: 0 0 0 3px var(--acc1-light); }
.btn-secondary:hover { background: var(--acc1-tint); color: var(--forest); border-color: var(--forest); }
.feature-grid .card:nth-child(3n+1) .icon { background: var(--acc1-tint); --icon-stroke: var(--acc1-deep); }
.feature-grid .card:nth-child(3n+2) .icon { background: var(--acc2-tint); --icon-stroke: var(--acc2-deep); }
.feature-grid .card:nth-child(3n) .icon { background: var(--acc3-tint); --icon-stroke: var(--acc3-deep); }
.track { border-top-color: var(--acc3); }
.track.t50 { border-top-color: var(--acc2); }
.track .tag { background: var(--acc3-tint); color: var(--acc3-deep); }
.track.t50 .tag { background: var(--acc2-tint); color: var(--acc2-deep); }
.note { border-left-color: var(--acc2); }
.stat-card { background: var(--acc1-tint); border-left: 6px solid var(--acc1); }
#how { background: var(--warm-band); border-block: 1px solid var(--line); }
.steps .step:nth-child(3n+1)::before { background: var(--acc1-tint); color: var(--acc1-deep); box-shadow: inset 0 0 0 2px var(--acc1); }
.steps .step:nth-child(3n+2)::before { background: var(--acc2-tint); color: var(--acc2-deep); box-shadow: inset 0 0 0 2px var(--acc2); }
.steps .step:nth-child(3n)::before { background: var(--acc3-tint); color: var(--acc3-deep); box-shadow: inset 0 0 0 2px var(--acc3); }
.badge { background: var(--acc1); color: var(--on-accent); }
.price-card.featured { box-shadow: var(--shadow), inset 0 6px 0 var(--acc1); }

/* Footer social links (plain text links; see tools/social.py) */
.site-footer .social { margin-top: 1.5rem; }
.site-footer .social h3 { margin: 0 0 .5rem; }
.site-footer .social-list { display: flex; flex-wrap: wrap; gap: .25rem 1.25rem; }
.site-footer .social-list li { margin: 0; }
.site-footer .social-list a { display: inline-block; padding: .35rem 0; }  /* ~44px tap target with line-height */
.site-footer .footer-dshea { margin: .6rem 0 0; font-size: .85rem; }

/* Go-live additions (Oct 23, 2026) */
.consent { display: flex; gap: .7rem; align-items: flex-start; margin: .5rem 0 1rem; font-size: .95rem; line-height: 1.45; cursor: pointer; }
.consent input { width: 1.25rem; height: 1.25rem; flex: none; margin: .12rem 0 0; accent-color: var(--forest); }
.form-err { display: none; margin: .25rem 0 .75rem; color: #8a1c1c; font-weight: 600; font-size: .95rem; }
.form-err.show { display: block; }
.btn.is-disabled { opacity: .55; cursor: default; pointer-events: none; }
.member-teaser { display: grid; gap: 1.25rem; align-items: center; }
@media (min-width: 860px) { .member-teaser { grid-template-columns: 1.4fr 1fr; } }
.text-link { font-weight: 700; color: var(--forest); text-decoration: underline; text-underline-offset: 3px; }

/* buttons inside the clay band keep their own colors */
.section-green a.btn-light { color: var(--forest); }
.section-green a.btn-light:hover { color: var(--forest); }

/* Prices not announced yet (SHOW_PRICES off in tools/site_config.py) */
.price-card .price.price-soon { font-size: 1.7rem; line-height: 1.15; }
.price-card .price.price-soon .per { display: block; margin-top: .35rem; }
