/* ============================================
   TGLeads — Shared Design System
   Font: Instrument Serif (display) + DM Sans (body)
   Palette: Near-black bg, bone white text, electric green accent
   ============================================ */
@import url('https://fonts.googleapis.com/css2?family=Instrument+Serif:ital@0;1&family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;1,9..40,300&display=swap');

:root {
  --bg:       #0c0c0b;
  --bg2:      #131312;
  --bg3:      #1a1a18;
  --border:   #222220;
  --border2:  #2e2e2b;
  --text:     #e8e6e0;
  --muted:    #6b6960;
  --muted2:   #3d3d3a;
  --green:    #a8ff78;
  --green2:   #4ade80;
  --orange:   #ff8c42;
  --red:      #ff6b6b;
  --blue:     #60a5fa;
  --radius:   10px;
  --font-display: 'Instrument Serif', Georgia, serif;
  --font-body:    'DM Sans', system-ui, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* ── Shared UI ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 0.4rem; padding: 0.65rem 1.4rem; border-radius: 8px;
  font-size: 13.5px; font-weight: 500; cursor: pointer; border: none;
  font-family: var(--font-body); transition: all 0.18s; text-decoration: none;
  white-space: nowrap;
}
.btn-primary { background: var(--green); color: #0c0c0b; }
.btn-primary:hover { background: #c4ff9e; transform: translateY(-1px); }
.btn-outline { background: transparent; border: 1px solid var(--border2); color: var(--muted); }
.btn-outline:hover { border-color: #555; color: var(--text); }
.btn-ghost  { background: transparent; color: var(--muted); }
.btn-ghost:hover { color: var(--text); }
.btn-danger { background: rgba(255,107,107,0.1); color: var(--red); border: 1px solid rgba(255,107,107,0.2); }
.btn-lg { padding: 0.85rem 2rem; font-size: 15px; border-radius: 10px; }
.btn-full { width: 100%; }

input, select, textarea {
  width: 100%; padding: 0.7rem 1rem;
  background: var(--bg2); border: 1px solid var(--border);
  border-radius: 8px; color: var(--text);
  font-family: var(--font-body); font-size: 14px;
  outline: none; transition: border-color 0.15s;
}
input:focus, select:focus, textarea:focus { border-color: var(--border2); }
label {
  display: block; font-size: 11.5px; color: var(--muted);
  letter-spacing: 0.05em; text-transform: uppercase;
  margin-bottom: 5px; font-weight: 500;
}
.form-group { margin-bottom: 1.15rem; }
.form-hint { font-size: 11.5px; color: var(--muted2); margin-top: 5px; line-height: 1.5; }
.form-hint a { color: var(--muted); text-decoration: underline; }

.card {
  background: var(--bg2); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.5rem;
}
.flash {
  border: 1px solid; padding: 0.8rem 1.1rem; border-radius: 8px;
  font-size: 13.5px; margin-bottom: 1.25rem;
  background: rgba(255,255,255,0.02);
}
.pill {
  display: inline-flex; align-items: center; gap: 0.25rem;
  padding: 2px 9px; border-radius: 100px;
  font-size: 11px; font-weight: 500;
}
.pill-green  { background: rgba(168,255,120,0.08); color: var(--green2); }
.pill-orange { background: rgba(255,140,66,0.1);  color: var(--orange); }
.pill-blue   { background: rgba(96,165,250,0.08); color: var(--blue); }
.pill-red    { background: rgba(255,107,107,0.1); color: var(--red); }

table { width: 100%; border-collapse: collapse; }
thead th {
  font-size: 10.5px; color: var(--muted2); font-weight: 500;
  letter-spacing: 0.07em; text-transform: uppercase;
  text-align: left; padding: 0 0 0.8rem;
  border-bottom: 1px solid var(--border);
}
tbody td {
  padding: 0.7rem 0; border-bottom: 1px solid rgba(255,255,255,0.03);
  color: var(--muted); font-size: 13px; vertical-align: middle;
}
tbody tr:last-child td { border-bottom: none; }
tbody tr:hover td { color: var(--text); }

.section-label {
  font-size: 10.5px; color: var(--muted2); font-weight: 500;
  letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 1rem;
}

/* ── App Nav ── */
.app-nav {
  border-bottom: 1px solid var(--border);
  padding: 0 1.5rem; position: sticky; top: 0;
  background: rgba(12,12,11,0.92); backdrop-filter: blur(12px);
  z-index: 100;
}
.app-nav-inner {
  max-width: 960px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between; height: 54px;
}
.app-nav-logo { font-size: 15px; font-weight: 600; letter-spacing: -0.02em; color: var(--text); }
.app-nav-logo span { color: var(--green); }
.app-nav-links { display: flex; align-items: center; gap: 1.5rem; }
.app-nav-links a { font-size: 13px; color: var(--muted); transition: color 0.15s; }
.app-nav-links a:hover { color: var(--text); }

/* ── Page wrapper ── */
.app-page { max-width: 960px; margin: 0 auto; padding: 2rem 1.5rem; }

/* ── Public Nav ── */
.pub-nav {
  padding: 0 2rem; position: fixed; top: 0; left: 0; right: 0;
  background: rgba(12,12,11,0.85); backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255,255,255,0.04); z-index: 100;
}
.pub-nav-inner {
  max-width: 1100px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between; height: 60px;
}
.pub-logo {
  font-family: var(--font-display); font-size: 1.3rem;
  color: var(--text); letter-spacing: -0.01em;
}
.pub-logo em { color: var(--green); font-style: normal; }
.pub-nav-links { display: flex; align-items: center; gap: 2rem; }
.pub-nav-links a { font-size: 13.5px; color: var(--muted); transition: color 0.15s; }
.pub-nav-links a:hover { color: var(--text); }
.pub-nav-cta { display: flex; align-items: center; gap: 0.75rem; }

/* ── Footer ── */
.pub-footer {
  border-top: 1px solid var(--border);
  padding: 3rem 2rem;
  font-size: 13px; color: var(--muted2);
}
.pub-footer-inner {
  max-width: 1100px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 1rem;
}
.pub-footer-links { display: flex; gap: 1.5rem; }
.pub-footer-links a { color: var(--muted2); transition: color 0.15s; }
.pub-footer-links a:hover { color: var(--muted); }

@media (max-width: 640px) {
  .pub-nav-links { display: none; }
  .app-nav-links a:not(:last-child):not(.pill) { display: none; }
  .app-page { padding: 1.5rem 1rem; }
  .pub-footer-inner { flex-direction: column; align-items: flex-start; }
}
