:root {
  /* NourishMe Field Manual brand tokens.
     Source of truth: handoff/nourishme_logo_bowl/brand-tokens.css.
     Mirrored in lib/theme/nourishme_colors.dart (NMColors). */

  /* Surfaces */
  --paper:        #F4EFE6;
  --paper-hi:     #FBF7EF;
  --paper-lo:     #F2ECDE;
  --paper-deep:   #DDD3BD;

  /* Text */
  --ink:          #1F1B16;
  --ink-soft:     #4F4A41;
  --ink-mute:     #847E72;

  /* Brand */
  --pine:         #1E4A45;
  --pine-deep:    #0F2D2A;
  --amber:        #C8884A;
  --amber-warm:   #D89A5B;

  /* Functional */
  --rust:         #9C4623;
  --moss:         #4B5A47;
  --plum:         #6B4554;

  /* Lines */
  --rule:         #D5CEC0;

  /* Semantic aliases used throughout the existing CSS.
     Kept for backwards-compat; new code should use brand tokens directly. */
  --bg:           var(--paper-hi);
  --bg-soft:      var(--paper-lo);
  --text:         var(--ink);
  --muted:        var(--ink-soft);
  --accent:       var(--pine);
  --accent-dark:  #04201D;
  --accent-soft:  #C6E2DC;
  --secondary:    var(--amber);
  --secondary-soft:#FFE0B8;
  --border:       var(--rule);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1B1812;
    --bg-soft: #221E17;
    --text: #E8E2D4;
    --muted: #C8C0AE;
    --accent: #A6CCC4;
    --accent-dark: #C2E8E1;
    --accent-soft: #235650;
    --secondary: #FFC07A;
    --secondary-soft: #6B4F1E;
    --border: #4B4639;
  }
}

/* Self-hosted variable fonts. No external requests, GDPR-friendly.
   Latin subset only (covers ä/ö/ü/ß via U+0000-00FF). */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('fonts/inter-var.woff2') format('woff2');
}
@font-face {
  font-family: 'Newsreader';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('fonts/newsreader-var.woff2') format('woff2');
}
@font-face {
  font-family: 'Newsreader';
  font-style: italic;
  font-weight: 400 700;
  font-display: swap;
  src: url('fonts/newsreader-var-italic.woff2') format('woff2');
}

* { box-sizing: border-box; }
html { font-size: 16px; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  line-height: 1.55;
  font-feature-settings: "ss01", "cv11";
}

/* Editorial serif for headlines + pull-quotes. Inter for body. */
.serif { font-family: 'Newsreader', Georgia, 'Times New Roman', serif; }

/* Plain pages (privacy, support, impressum) keep simple centered layout */
body:not(.landing) {
  max-width: 720px;
  margin: 0 auto;
  padding: 2rem 1.25rem;
}

/* --- Landing page styling --- */

.landing { font-size: 1.05rem; position: relative; }

/* Site logo (top-left brand mark, mirrors lang-switch on the right) */
.site-logo {
  position: absolute;
  top: 1rem;
  left: 1.25rem;
  width: 36px;
  height: 36px;
  z-index: 10;
  display: block;
}
.site-logo img { width: 100%; height: 100%; display: block; }

/* Language switcher */
.lang-switch {
  position: absolute;
  top: 1rem;
  right: 1.25rem;
  font-size: 0.875rem;
  color: var(--muted);
  z-index: 10;
}
.lang-switch a { color: var(--muted); }
.lang-switch strong { color: var(--text); }

/* Inline language switch used on sub-pages (privacy, support, impressum) */
.lang-switch-inline {
  text-align: right;
  font-size: 0.875rem;
  color: var(--muted);
  margin-bottom: 0.5rem;
}
.lang-switch-inline a { color: var(--muted); }
.lang-switch-inline strong { color: var(--text); }
.lang-switch-inline .disabled {
  color: var(--border);
  text-decoration: line-through;
}

.landing h1 {
  font-family: 'Newsreader', Georgia, serif;
  font-size: 3.25rem;
  font-weight: 600;
  line-height: 1.08;
  margin: 0 0 1.25rem 0;
  letter-spacing: -0.015em;
}
.landing h1 em {
  font-style: italic;
  font-weight: 500;
  color: var(--accent-dark);
}
.landing h1 .accent { color: var(--accent); font-style: normal; }
.landing h2 {
  font-family: 'Newsreader', Georgia, serif;
  font-size: 2rem;
  font-weight: 600;
  line-height: 1.15;
  margin: 0 0 1rem 0;
  letter-spacing: -0.01em;
}
.landing h2 em {
  font-style: italic;
  font-weight: 500;
  color: var(--accent-dark);
}
.landing h3 { font-size: 1.0625rem; font-weight: 700; margin: 0 0 0.5rem 0; letter-spacing: -0.005em; }

/* Eyebrow: tiny caps tag above headlines ("BETA · JUNI 2026") */
.eyebrow {
  display: inline-block;
  font-family: 'Inter', sans-serif;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent-dark);
  background: var(--accent-soft);
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  margin: 0 0 1.5rem 0;
}

.landing p { margin: 0 0 1rem 0; }
.landing ul, .landing ol { margin: 0 0 1rem 0; padding-left: 1.25rem; }
.landing a { color: var(--accent-dark); text-decoration: none; }
.landing a:hover { text-decoration: underline; }

/* Hero */
.hero {
  max-width: 1100px;
  margin: 0 auto;
  padding: 4rem 1.5rem 3rem;
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 3rem;
  align-items: center;
}

.hero-text { min-width: 0; }
.hero-text .lede {
  font-family: 'Newsreader', Georgia, serif;
  font-size: 1.25rem;
  line-height: 1.5;
  font-weight: 400;
  color: var(--text);
  margin: 0 0 2rem 0;
}
.hero-text .lede em { font-style: italic; color: var(--accent-dark); }
.hero-text .secondary-link {
  display: inline-block;
  color: var(--accent-dark);
  font-weight: 500;
  font-size: 0.95rem;
  padding: 0.75rem 0.25rem;
  align-self: center;
}

.hero-photo {
  max-width: 380px;
  justify-self: end;
  width: 100%;
}
.hero-photo img {
  width: 100%;
  height: auto;
  border-radius: 14px;
  box-shadow: 0 24px 48px -20px rgba(0,0,0,0.22);
  display: block;
}

@media (max-width: 800px) {
  .hero {
    grid-template-columns: 1fr;
    padding: 2rem 1.25rem 1rem;
    gap: 2rem;
  }
  .hero-text { order: 2; }
  .hero-photo { order: 1; max-width: 280px; justify-self: center; }
  .landing h1 { font-size: 2.25rem; }
  .landing h2 { font-size: 1.625rem; }
  .pullquote { font-size: 1.05rem; margin-top: 2rem; }
  .story p.lead-line { font-size: 1.25rem; }
  .hero-text .lede { font-size: 1.1rem; }
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.75rem 1.25rem;
  border-radius: 10px;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  transition: transform 0.1s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }

.btn-primary {
  background: var(--accent);
  color: white !important;
}
.btn-primary:hover { background: var(--accent-dark); }

.btn-ghost {
  background: transparent;
  color: var(--text) !important;
  border: 1px solid var(--border);
}
.btn-ghost:hover { background: var(--bg-soft); }

.cta-row { display: flex; gap: 0.75rem; flex-wrap: wrap; align-items: center; }

/* Pull-quote (editorial). Used in hero + occasionally below sections. */
.pullquote {
  font-family: 'Newsreader', Georgia, serif;
  font-style: italic;
  font-size: 1.15rem;
  line-height: 1.5;
  color: var(--text);
  border-left: 3px solid var(--accent);
  padding: 0.5rem 0 0.5rem 1.25rem;
  margin: 2.5rem 0 0 0;
  max-width: 540px;
}
.pullquote .attribution {
  display: block;
  font-style: normal;
  font-family: 'Inter', sans-serif;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 0.85rem;
}

/* Story */
.story {
  max-width: 720px;
  margin: 0 auto;
  padding: 3rem 1.5rem;
}
.story > h2 { text-align: center; margin-bottom: 1.5rem; }
.story p { font-size: 1.1rem; line-height: 1.65; }
.story p.lead-line {
  font-family: 'Newsreader', Georgia, serif;
  font-size: 1.5rem;
  line-height: 1.35;
  font-weight: 500;
  margin-bottom: 1.5rem;
  text-align: center;
}
.story p.lead-line em { font-style: italic; color: var(--accent-dark); }
.story .signature {
  margin-top: 1.5rem;
  font-style: italic;
  color: var(--muted);
  text-align: center;
}

/* Audience */
.audience {
  max-width: 1100px;
  margin: 0 auto;
  padding: 3rem 1.5rem 1rem;
  text-align: center;
}
.audience > h2 { margin-bottom: 0.5rem; }
.audience-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem 1.25rem;
  margin: 2rem 0 1.25rem 0;
  text-align: left;
}
.audience-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 1rem;
  background: var(--bg-soft);
  border-radius: 12px;
  flex: 0 1 calc(33.333% - 0.85rem);
  min-width: 240px;
}
.audience-icon {
  font-size: 1.75rem;
  line-height: 1;
  flex-shrink: 0;
}
.audience-item div {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}
.audience-item strong {
  font-size: 1rem;
  font-weight: 600;
}
.audience-item span {
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.4;
}
.audience .audience-note {
  color: var(--muted);
  font-size: 1rem;
  max-width: 720px;
  margin: 1.5rem auto 0 auto;
  text-align: center;
}

@media (max-width: 800px) {
  .audience-item { flex: 0 1 100%; }
}

/* USPs */
.usps {
  background: var(--bg-soft);
  padding: 4rem 1.5rem;
}
.usps > h2 {
  text-align: center;
  max-width: 1100px;
  margin: 0 auto 2.5rem auto;
}
.card-grid {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.5rem;
}
.card h3 { color: var(--accent-dark); }
.card p { margin: 0; }

@media (max-width: 800px) {
  .card-grid { grid-template-columns: 1fr; }
}

/* How */
.how {
  max-width: 800px;
  margin: 0 auto;
  padding: 4rem 1.5rem;
}
.how > h2 { text-align: center; margin-bottom: 2rem; }
.steps {
  list-style: none;
  padding: 0;
  counter-reset: step;
}
.steps li {
  position: relative;
  padding: 1rem 0 1rem 3.5rem;
  border-bottom: 1px solid var(--border);
  counter-increment: step;
}
.steps li:last-child { border-bottom: none; }
.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 1rem;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  background: var(--accent);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1rem;
}
.steps li strong {
  display: block;
  font-size: 1.075rem;
  margin-bottom: 0.25rem;
}
.steps li span {
  color: var(--muted);
}

/* Beta CTA */
.beta {
  background: var(--accent-soft);
  text-align: center;
  padding: 4rem 1.5rem;
}
.beta h2 { text-align: center; margin-bottom: 0.75rem; }
.beta p { max-width: 600px; margin: 0 auto 1rem auto; text-align: center; }
.beta .cta-row { display: flex; justify-content: center; margin: 1.5rem auto 1.5rem auto; }
.small { font-size: 0.875rem; color: var(--muted); }

/* Trust */
.trust {
  max-width: 720px;
  margin: 0 auto;
  padding: 3rem 1.5rem;
}
.trust > h2 { text-align: center; margin-bottom: 1.5rem; }
.trust > p { text-align: center; }
.trust-list {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.5rem 1.5rem;
}
.trust-list li {
  padding-left: 1.25rem;
  position: relative;
}
.trust-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
}

@media (max-width: 600px) {
  .trust-list { grid-template-columns: 1fr; }
}

/* Footer */
.footer {
  max-width: 1100px;
  margin: 2rem auto 0 auto;
  padding: 2rem 1.5rem;
  border-top: 1px solid var(--border);
  text-align: center;
}
.footer-links {
  list-style: none;
  padding: 0;
  margin: 0 0 1rem 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem 1.5rem;
}
.footer-links a {
  color: var(--muted);
  font-size: 0.95rem;
}

/* Legacy support for non-landing pages */
header { margin-bottom: 2rem; padding-bottom: 1rem; border-bottom: 1px solid var(--border); }
body:not(.landing) header { border-bottom: 1px solid var(--border); }
nav.crumb {
  font-size: 0.875rem;
  color: var(--muted);
  margin-bottom: 1rem;
}
