/* Fitogenix — unified visual system (app + web + social)
   Base: the native app's palette, type and shapes (fitogenix-native).
   Kept from the brand guide: uppercase headlines, dark/light
   section rhythm, verdict seals, deer watermark.
   The website loads this file first; component layout lives in /styles.css. */

:root {
  /* Greens — core identity (same values as the app) */
  --fx-deep:       #1a5c35;  /* primary brand green, wordmark, buttons on light */
  --fx-green:      #2d7a4f;  /* hover, secondary emphasis */
  --fx-leaf:       #4dc93a;  /* accent / highlight, buttons on dark */
  --fx-leaf2:      #6bdb52;
  --fx-leaf-pale:  #eef8eb;  /* tint backgrounds */
  --fx-leaf-pale2: #d4edd0;

  /* Neutrals */
  --fx-white:  #ffffff;      /* cards */
  --fx-page:   #f0f2f0;      /* light page background */
  --fx-gray:   #e8e8ed;
  --fx-border: #dde8dd;
  --fx-border2:#c8d8c8;
  --fx-ink:    #0f1a10;      /* text, and the background of dark sections */
  --fx-ink-2:  #172519;      /* raised surface on dark */
  --fx-text2:  #243526;
  --fx-muted:  #4a6450;
  --fx-faint:  #9ab09a;
  --fx-line-dark: rgba(255,255,255,.10);

  /* Status — only for warnings and problems */
  --fx-warn:      #d97706;  --fx-warn-bg:   #fffbeb;
  --fx-danger:    #dc2626;  --fx-danger-bg: #fef2f2;
  --fx-good-bg:   #f0fdf4;

  /* Type */
  --fx-font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif; /* the one typeface, app + web */
  --fx-display: var(--fx-font); /* headlines, numbers, labels */
  --fx-body:    var(--fx-font); /* everything else */
  --fx-h1: clamp(52px, 7.6vw, 112px);
  --fx-h2: clamp(40px, 5.2vw, 80px);
  --fx-h3: clamp(26px, 2.6vw, 40px);

  /* Shape and depth (same scale as the app) */
  --fx-r-sm: 12px; --fx-r-md: 16px; --fx-r-lg: 24px; --fx-r-xl: 28px; --fx-r-full: 999px;
  --fx-shadow-card: 0 2px 14px rgba(0,0,0,.05);
  --fx-shadow-elev: 0 6px 18px rgba(0,0,0,.12);

  /* Space */
  --fx-pad: clamp(20px, 5vw, 64px);
}

body { margin: 0; background: var(--fx-page); color: var(--fx-text2); font-family: var(--fx-body); font-size: 17px; line-height: 1.6; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility; }
button, input, select, textarea { font-family: inherit; }
a { color: var(--fx-deep); }
a:hover { color: var(--fx-green); }

/* Dark sections */
.fx-dark { background: var(--fx-ink); color: #fff; }
.fx-dark a { color: var(--fx-leaf); }
.fx-dark a:hover { color: #fff; }

/* Headlines: uppercase condensed, one key word recolored */
.fx-h1, .fx-h2, .fx-h3 { font-family: var(--fx-display); font-weight: 800; text-transform: uppercase; line-height: .92; letter-spacing: -.005em; margin: 0; color: var(--fx-ink); text-wrap: balance; }
.fx-dark .fx-h1, .fx-dark .fx-h2, .fx-dark .fx-h3 { color: #fff; }
.fx-h1 { font-size: var(--fx-h1); }
.fx-h2 { font-size: var(--fx-h2); }
.fx-h3 { font-size: var(--fx-h3); font-weight: 700; line-height: 1; }
.fx-em { color: var(--fx-deep); }
.fx-dark .fx-em { color: var(--fx-leaf); }
.fx-em--alert, .fx-dark .fx-em--alert { color: var(--fx-danger); }

/* Small label above a headline */
.fx-label { font-family: var(--fx-body); font-size: 13px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--fx-deep); }
.fx-dark .fx-label { color: var(--fx-leaf); }

/* Buttons */
.fx-btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; background: var(--fx-deep); color: #fff; font-family: var(--fx-body); font-weight: 700; font-size: 16px; line-height: 1; padding: 16px 24px; border: 0; border-radius: var(--fx-r-md); cursor: pointer; text-decoration: none; box-shadow: 0 1px 2px rgba(15,26,16,.12); transition: background .2s, transform .2s; }
.fx-btn:hover { background: var(--fx-green); color: #fff; transform: translateY(-1px); }
.fx-btn:active { transform: translateY(0); }
.fx-dark .fx-btn { background: var(--fx-leaf); color: var(--fx-ink); }
.fx-dark .fx-btn:hover { background: var(--fx-leaf2); color: var(--fx-ink); }

/* Flagged ingredient */
.fx-tag-alert { display: inline-block; background: var(--fx-danger); color: #fff; font-family: var(--fx-display); font-weight: 700; text-transform: uppercase; letter-spacing: .01em; border-radius: 6px; padding: .14em .42em .08em; }

/* Lists: separated rows inside one floating card */
.fx-list { list-style: none; background: var(--fx-white); border-radius: var(--fx-r-lg); box-shadow: var(--fx-shadow-card); padding: 8px 28px; }
.fx-list > * { padding: 22px 0; }
.fx-list > * + * { border-top: 1px solid var(--fx-border); }
.fx-dark .fx-list { background: var(--fx-ink-2); box-shadow: none; border: 1px solid var(--fx-line-dark); }
.fx-dark .fx-list > * + * { border-top-color: var(--fx-line-dark); }

/* Deer watermark: icon-forest.png on light (7%), icon-leaf.png on dark (6%) */
.fx-watermark { position: absolute; opacity: .07; pointer-events: none; }
