/* Friends & Allies — Demand-Gen Demo brand styles
   Matches the live FA-Website / FA-Gym Figma-synced tokens (Jost + teal/burgundy palette). */

:root {
  /* Live FA palette (css/brand-tokens.css, Figma-synced) */
  --teal: #3B8995;
  --teal-dark: #2C6A74;
  --burgundy: #4D192D;
  --coral: #E47D7D;
  --mustard: #F5D17B;
  --forest: #1B3022;
  --sky: #A9D1E9;
  --peach: #F2A07B;
  --mint: #70C1B3;
  --lavender: #8E7DBE;

  --bg-cream: #F9F9F7;
  --text-main: #2D2D2D;
  --text-muted: #6B6B6B;
  --white: #FFFFFF;
  --gray-light: #E8E8E6;
  --gray-medium: #B5B5B2;

  --success: #28a745;
  --warning: #E0A800;
  --danger: #dc3545;

  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2rem;
  --space-xl: 3rem;

  --radius-sm: 6px;
  --radius-md: 14px;
  --radius-lg: 24px;
  --radius-round: 999px;

  --shadow-sm: 0 2px 10px rgba(0,0,0,0.06);
  --shadow-md: 0 10px 30px rgba(0,0,0,0.10);
  --shadow-lg: 0 20px 60px rgba(77,25,45,0.16);

  --font: 'Jost', system-ui, sans-serif;
  --transition: 0.25s ease;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg-cream);
  color: var(--text-main);
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { font-weight: 700; line-height: 1.15; letter-spacing: 0.01em; color: var(--burgundy); }
h1 { font-size: clamp(2rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); }
p { color: var(--text-main); }
a { color: var(--teal); text-decoration: none; }

.wrap { max-width: 1100px; margin: 0 auto; padding: 0 var(--space-md); }
.narrow { max-width: 640px; }

/* ---- Demo banner ---- */
.demo-banner {
  background: repeating-linear-gradient(45deg, var(--burgundy), var(--burgundy) 14px, #5c2138 14px, #5c2138 28px);
  color: var(--white);
  text-align: center;
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 7px 12px;
  font-weight: 600;
}
.demo-banner b { color: var(--mustard); }

/* ---- Top bar ---- */
.topbar {
  display: flex; align-items: center; justify-content: space-between;
  padding: var(--space-sm) var(--space-md);
  background: var(--white); box-shadow: var(--shadow-sm);
  position: sticky; top: 0; z-index: 50;
}
.topbar__logo { display: flex; align-items: center; gap: 10px; font-weight: 700; color: var(--burgundy); }
.topbar__logo img { height: 34px; width: auto; }
.topbar__nav { display: flex; gap: var(--space-md); align-items: center; }
.topbar__nav a { color: var(--text-muted); font-weight: 500; font-size: 0.95rem; }
.topbar__nav a:hover { color: var(--teal); }

/* ---- Buttons ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font); font-weight: 600; font-size: 1.05rem;
  padding: 16px 30px; border: none; border-radius: var(--radius-round);
  cursor: pointer; transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
  text-align: center;
}
.btn--primary { background: var(--teal); color: var(--white); box-shadow: 0 8px 20px rgba(59,137,149,0.35); }
.btn--primary:hover { background: var(--teal-dark); transform: translateY(-2px); box-shadow: 0 12px 26px rgba(59,137,149,0.45); }
.btn--coral { background: var(--coral); color: var(--white); box-shadow: 0 8px 20px rgba(228,125,125,0.35); }
.btn--coral:hover { background: #d96868; transform: translateY(-2px); }
.btn--burgundy { background: var(--burgundy); color: var(--white); }
.btn--burgundy:hover { background: #61203a; transform: translateY(-2px); }
.btn--ghost { background: transparent; color: var(--burgundy); border: 2px solid var(--gray-light); }
.btn--ghost:hover { border-color: var(--teal); color: var(--teal); }
.btn--block { width: 100%; }
.btn--lg { padding: 19px 38px; font-size: 1.15rem; }

/* ---- Cards ---- */
.card { background: var(--white); border-radius: var(--radius-lg); box-shadow: var(--shadow-md); overflow: hidden; }
.pill { display: inline-block; padding: 5px 14px; border-radius: var(--radius-round); font-size: 0.78rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; }
.pill--cold { background: var(--sky); color: #1c4a66; }
.pill--warm { background: var(--peach); color: #7a3417; }
.pill--mustard { background: var(--mustard); color: #6b531a; }
.pill--mint { background: var(--mint); color: #14463c; }

.muted { color: var(--text-muted); }
.center { text-align: center; }
.strike { text-decoration: line-through; color: var(--gray-medium); font-weight: 500; }

/* ---- Steps ---- */
.steps { display: flex; gap: 8px; justify-content: center; margin: var(--space-md) 0 var(--space-lg); flex-wrap: wrap; }
.step-dot { display: flex; align-items: center; gap: 8px; font-size: 0.85rem; color: var(--gray-medium); font-weight: 600; }
.step-dot__num { width: 26px; height: 26px; border-radius: 50%; background: var(--gray-light); color: var(--gray-medium); display: grid; place-items: center; font-size: 0.8rem; }
.step-dot--active .step-dot__num { background: var(--teal); color: var(--white); }
.step-dot--active { color: var(--teal); }
.step-dot--done .step-dot__num { background: var(--success); color: var(--white); }

/* ---- Form ---- */
.field { margin-bottom: var(--space-md); text-align: left; }
.field label { display: block; font-weight: 600; margin-bottom: 6px; font-size: 0.95rem; }
.field input, .field select {
  width: 100%; padding: 14px 16px; border: 2px solid var(--gray-light); border-radius: var(--radius-md);
  font-family: var(--font); font-size: 1rem; transition: border var(--transition); background: var(--white);
}
.field input:focus, .field select:focus { outline: none; border-color: var(--teal); }
.checkbox-row { display: flex; align-items: flex-start; gap: 10px; text-align: left; font-size: 0.92rem; }
.checkbox-row input { width: 20px; height: 20px; margin-top: 3px; accent-color: var(--teal); }

/* ---- Hero ---- */
.hero { padding: var(--space-xl) 0; }
.hero__eyebrow { font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--teal); font-size: 0.9rem; }
.hero__lead { font-size: 1.2rem; color: var(--text-muted); margin-top: var(--space-sm); }

/* ---- Price block ---- */
.price { font-size: 3rem; font-weight: 700; color: var(--burgundy); line-height: 1; }
.price small { font-size: 1rem; color: var(--text-muted); font-weight: 500; }

/* ---- Tracking console (floating) ---- */
#tc {
  position: fixed; right: 16px; bottom: 16px; width: 330px; max-width: calc(100vw - 32px);
  background: #11181c; color: #d6f3ef; border-radius: 14px; box-shadow: 0 14px 40px rgba(0,0,0,0.4);
  font-family: 'SF Mono', ui-monospace, Menlo, monospace; font-size: 12px; z-index: 200; overflow: hidden;
  transform: translateY(0); transition: transform 0.3s ease;
}
#tc.collapsed { transform: translateY(calc(100% - 38px)); }
#tc__head { display: flex; align-items: center; justify-content: space-between; padding: 9px 12px; background: #0b1115; cursor: pointer; }
#tc__title { display: flex; align-items: center; gap: 7px; font-weight: 700; letter-spacing: 0.03em; color: #6fe3cf; }
#tc__dot { width: 8px; height: 8px; border-radius: 50%; background: #2ee6a6; box-shadow: 0 0 8px #2ee6a6; animation: pulse 1.6s infinite; }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.35; } }
#tc__feed { max-height: 230px; overflow-y: auto; padding: 8px 12px; }
.tc__line { padding: 4px 0; border-bottom: 1px solid rgba(255,255,255,0.05); animation: slidein 0.3s ease; }
.tc__line:last-child { border-bottom: none; }
.tc__tag { font-weight: 700; }
.tc__tag--ga { color: #f9ab55; }
.tc__tag--ads { color: #6fb3ff; }
.tc__tag--meta { color: #8aa4ff; }
.tc__tag--conv { color: #2ee6a6; }
.tc__meta { color: #8aa39d; }
@keyframes slidein { from { opacity: 0; transform: translateX(10px); } to { opacity: 1; transform: translateX(0); } }

/* ---- Toast ---- */
.toast {
  position: fixed; top: 80px; left: 50%; transform: translateX(-50%) translateY(-20px);
  background: var(--forest); color: var(--white); padding: 14px 22px; border-radius: var(--radius-round);
  box-shadow: var(--shadow-md); z-index: 300; opacity: 0; transition: all 0.3s ease; font-weight: 600;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ---- Grid ---- */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-lg); }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-md); }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-md); }
@media (max-width: 860px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } .topbar__nav a:not(.btn) { display: none; } }

/* ---- Stat cards (dashboard) ---- */
.stat { background: var(--white); border-radius: var(--radius-md); padding: var(--space-md); box-shadow: var(--shadow-sm); border-top: 4px solid var(--teal); }
.stat__label { font-size: 0.85rem; color: var(--text-muted); font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; }
.stat__value { font-size: 2.4rem; font-weight: 700; color: var(--burgundy); line-height: 1.1; margin-top: 4px; }
.stat__sub { font-size: 0.85rem; color: var(--success); font-weight: 600; margin-top: 4px; }
.stat--coral { border-top-color: var(--coral); }
.stat--mustard { border-top-color: var(--mustard); }
.stat--burgundy { border-top-color: var(--burgundy); }

.bar { height: 12px; border-radius: var(--radius-round); background: var(--gray-light); overflow: hidden; }
.bar__fill { height: 100%; border-radius: var(--radius-round); transition: width 1s ease; }

.feed-item { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--gray-light); }
.feed-item:last-child { border-bottom: none; }
.feed-item__icon { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; font-size: 1.1rem; flex-shrink: 0; }

/* ---- Feature blocks (replaces emoji tiles) ---- */
.feature { text-align: left; padding-top: var(--space-xs); border-top: 2px solid var(--gray-light); }
.feature__eyebrow { display: block; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--teal); margin-bottom: 6px; }
.feature b { display: block; color: var(--burgundy); font-size: 1.05rem; }
.feature p { font-size: 0.9rem; margin-top: 2px; }

.section { padding: var(--space-xl) 0; }
footer.site { text-align: center; padding: var(--space-lg); color: var(--text-muted); font-size: 0.9rem; }
