/* TrueFares marketing site — shared design tokens.
 *
 * The fragment HTML pages reference these variables via var(--*).
 * Tweaked from a default light palette so the green accent reads
 * the same as the app and the type lockup matches DM Sans / Serif.
 */

@import url("https://fonts.googleapis.com/css2?family=DM+Serif+Display:ital@0;1&family=DM+Sans:wght@300;400;500;700&display=swap");

:root {
  /* Dark theme by default — matches the app's chrome.
   *
   * Naming convention is shared with the original light fragments:
   * "primary" = the most foreground surface (cards, hero), "tertiary"
   * = the page bg behind everything. So values get DARKER from
   * primary → tertiary in dark mode, the opposite of light mode.
   */

  /* Backgrounds (foreground card → page bg) */
  --color-background-primary:   #1e293b;  /* slate-800 — cards, hero, math box */
  --color-background-secondary: #111827;  /* slate-900 — middle tier (stack items) */
  --color-background-tertiary:  #0b1220;  /* hand-tuned dark — page bg */

  /* Borders */
  --color-border-secondary: #334155;      /* slate-700 — visible dividers, ghost CTA */
  --color-border-tertiary:  #1f2937;      /* slate-800 — subtle hairlines */

  /* Text (most prominent → de-emphasized) */
  --color-text-primary:   #f1f5f9;        /* slate-100 — body, headings */
  --color-text-secondary: #cbd5e1;        /* slate-300 — supporting copy */
  --color-text-tertiary:  #94a3b8;        /* slate-400 — labels, eyebrow text */

  /* Brand greens (from the marketing design system) */
  --color-brand-primary: #1D9E75;   /* main green — wordmark dot, italic accents */
  --color-brand-dark:    #0F6E56;   /* darker green — positive values, "active" labels */
  --color-brand-darker:  #085041;   /* darkest — primary CTA bg */
  --color-brand-tint:    #E1F5EE;   /* lightest tint — feature icon bgs, button text */
  --color-brand-soft:    #5DCAA5;   /* mid — badge borders */

  /* Status colors (from the marketing design system) */
  --color-negative: #993C1D;        /* red-brown for negative values */

  /* Generic accent — used by base.css's <a> styling.
     Aliased to brand-primary so links pick up the same green. */
  --color-accent: var(--color-brand-primary);
  --color-accent-hover: var(--color-brand-dark);

  /* Typography */
  --font-sans: "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --font-serif: "DM Serif Display", Georgia, "Times New Roman", serif;

  /* Radii */
  --border-radius-sm: 4px;
  --border-radius-md: 8px;
  --border-radius-lg: 16px;
}

/* Minimal reset so the fragment styles aren't fighting browser defaults. */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
}

body {
  background: var(--color-background-tertiary);
  color: var(--color-text-primary);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img,
svg {
  max-width: 100%;
  display: block;
}

a {
  color: var(--color-accent);
  text-decoration: none;
}

a:hover {
  color: var(--color-accent-hover);
  text-decoration: underline;
}

/* Site chrome — shared header (sub-pages) and meta footer. The
 * homepage's hero already has its own .tf-wordmark, so it skips the
 * site header but still gets the meta footer for LLC attribution. */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 2rem;
  border-bottom: 0.5px solid var(--color-border-tertiary);
  background: var(--color-background-primary);
}
.site-header .wordmark {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'DM Serif Display', var(--font-serif), serif;
  font-size: 18px;
  letter-spacing: -0.3px;
  color: var(--color-text-primary);
  text-decoration: none;
}
.site-header .wordmark-mark {
  width: 22px;
  height: 22px;
  display: block;
}
.site-header .wordmark:hover {
  text-decoration: none;
  color: var(--color-text-primary);
}
.site-header .back-link {
  font-size: 13px;
  color: var(--color-text-secondary);
}
.site-header .back-link:hover {
  color: var(--color-accent);
}

.site-footer-meta {
  padding: 1rem 2rem 1.5rem;
  text-align: center;
  font-size: 11px;
  color: var(--color-text-tertiary);
  border-top: 0.5px solid var(--color-border-tertiary);
  background: var(--color-background-tertiary);
}
.site-footer-meta a {
  color: var(--color-text-tertiary);
}
