/* ── TallyConnect Growth Tools — Shared Design System ── */
/* Matches tallyconnect.app exactly                       */

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

:root {
  --bg:          #09090B;
  --card:        #0F1613;
  --border:      #1a2e1f;
  --accent:      #22c55e;
  --accent-hover:#4ade80;
  --accent-dark: #16a34a;
  --text:        #F8FAFC;
  --text-dim:    #94A3B8;
  --text-muted:  #475569;
  --on-accent:   #000;
  --glow-sm:     0 0 20px rgba(34,197,94,0.10);
  --glow-md:     0 0 40px rgba(34,197,94,0.08);
  --glow-ring:   0 0 0 2px rgba(34,197,94,0.25);
  --radius-sm:   8px;
  --radius-md:   12px;
  --radius-lg:   16px;
  --radius-xl:   24px;
  --font:        system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --mono:        ui-monospace, monospace;
}

html { font-size: 16px; }

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

/* ── Layout ── */
.container {
  width: min(900px, 92vw);
  margin: 0 auto;
  padding: 0 5%;
}

/* ── Typography ── */
h1, h2, h3 { color: var(--text); line-height: 1.1; }
h1 { font-size: clamp(2rem, 5vw, 3.2rem); font-weight: 900; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.4rem, 3vw, 2rem); font-weight: 800; letter-spacing: -0.01em; }
h3 { font-size: 1.1rem; font-weight: 700; }

p { color: var(--text-dim); line-height: 1.7; }

.eyebrow {
  font-family: var(--mono);
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
  margin-bottom: 12px;
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 15px 36px;
  border-radius: var(--radius-sm);
  border: none;
  font-family: var(--font);
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
}

.btn-primary {
  background: var(--accent);
  color: var(--on-accent);
}
.btn-primary:hover { background: var(--accent-hover); }

.btn-ghost {
  background: transparent;
  color: var(--text-dim);
  border: 1px solid var(--border);
}
.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent-hover);
}

.btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* ── Cards ── */
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.card:hover {
  border-color: var(--accent);
  box-shadow: var(--glow-sm);
}

/* ── Form Inputs ── */
input[type="text"],
input[type="email"],
select,
textarea {
  width: 100%;
  padding: 12px 16px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-family: var(--font);
  font-size: 0.95rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}
input:focus, select:focus, textarea:focus {
  border-color: var(--accent);
  box-shadow: var(--glow-ring);
  outline: none;
}
input::placeholder, textarea::placeholder { color: var(--text-muted); }

label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-dim);
  margin-bottom: 6px;
}

/* ── Progress Bar ── */
.progress-bar {
  width: 100%;
  height: 4px;
  background: var(--border);
  border-radius: 2px;
  overflow: hidden;
}
.progress-bar-fill {
  height: 100%;
  background: var(--accent);
  border-radius: 2px;
  transition: width 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

/* ── Badges ── */
.badge {
  display: inline-block;
  font-family: var(--mono);
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  padding: 4px 10px;
  border-radius: 4px;
  background: rgba(34,197,94,0.08);
  border: 1px solid rgba(34,197,94,0.2);
  color: var(--accent);
}
.badge--yellow { background: rgba(234,179,8,0.08); border-color: rgba(234,179,8,0.2); color: #eab308; }
.badge--orange { background: rgba(249,115,22,0.08); border-color: rgba(249,115,22,0.2); color: #f97316; }
.badge--red    { background: rgba(239,68,68,0.08); border-color: rgba(239,68,68,0.2); color: #ef4444; }

/* ── Status Dot ── */
.status-dot {
  display: inline-block;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 6px var(--accent);
}

/* ── Divider ── */
.divider {
  height: 1px;
  background: var(--border);
  margin: 32px 0;
}

/* ── Header / Nav ── */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 5%;
  background: rgba(9,9,11,0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.site-header .logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  font-size: 1.15rem;
  color: var(--text);
  text-decoration: none;
  letter-spacing: -0.01em;
}
.site-header .logo .dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--accent);
  display: inline-block;
  box-shadow: 0 0 8px var(--accent);
}
.site-header .nav-links { display: flex; gap: 24px; align-items: center; }
.site-header .nav-links a {
  color: var(--text-dim);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 500;
  transition: color 0.2s;
}
.site-header .nav-links a:hover { color: var(--accent-hover); }
.site-header .nav-cta {
  display: inline-block;
  padding: 9px 22px;
  font-size: 0.88rem;
  font-weight: 700;
  border-radius: 8px;
  border: none;
  background: var(--accent);
  color: #000;
  text-decoration: none;
  cursor: pointer;
}
.site-header .nav-cta:hover { background: var(--accent-hover); }
.site-header .menu-btn {
  display: none;
  background: none;
  border: none;
  color: var(--text-dim);
  font-size: 1.2rem;
  cursor: pointer;
  padding: 6px;
  line-height: 1;
}

/* ── Mobile Menu ── */
.mobile-menu {
  display: none;
  position: fixed;
  top: 60px;
  left: 0;
  right: 0;
  z-index: 99;
  background: rgba(9,9,11,0.98);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 16px 5%;
  flex-direction: column;
  gap: 0;
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  display: block;
  padding: 14px 6px;
  color: var(--text-dim);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  border-bottom: 1px solid var(--border);
  transition: color 0.2s;
}
.mobile-menu a:last-child { border-bottom: none; }
.mobile-menu a:hover { color: var(--accent-hover); }

/* ── Free Tools Dropdown ── */
.tools-dropdown { position: relative; }
.tools-dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  padding-top: 12px;
  z-index: 101;
}
.tools-dropdown:hover .tools-dropdown-menu { display: block; }
.tools-dropdown-inner {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 8px 0;
  min-width: 220px;
  box-shadow: 0 16px 48px rgba(0,0,0,.5);
}
.tools-dropdown-inner a {
  display: block;
  padding: 10px 18px;
  color: var(--text-dim);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 500;
  transition: color 0.15s, background 0.15s;
}
.tools-dropdown-inner a:hover {
  color: var(--text);
  background: rgba(34,197,94,0.06);
}

@media (max-width: 840px) {
  .site-header .nav-links { display: none; }
  .site-header .menu-btn { display: block; }
}

/* ── Footer ── */
.site-footer {
  padding: 40px 5%;
  border-top: 1px solid var(--border);
  background: #060608;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 80px;
}
.site-footer .footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}
.site-footer .footer-brand .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  display: inline-block;
  box-shadow: 0 0 6px var(--accent);
}
.site-footer .footer-brand span {
  color: var(--text);
  font-weight: 800;
  font-size: 0.95rem;
}
.site-footer .footer-links {
  display: flex;
  gap: 20px;
  font-size: 0.82rem;
  flex-wrap: wrap;
}
.site-footer a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s;
}
.site-footer a:hover { color: var(--accent); }

/* ── Responsive ── */
@media (max-width: 640px) {
  .container { padding: 0 4%; }
  .card { padding: 24px 20px; }
  .btn { padding: 13px 28px; font-size: 0.95rem; }
  .site-header nav { gap: 16px; }
  .site-header nav a { font-size: 0.82rem; }
}

/* ── Reduced Motion ── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* ── Print ── */
@media print {
  body { background: #fff; color: #000; }
  .site-header, .site-footer, .btn, .no-print { display: none !important; }
  .card { border: 1px solid #ddd; background: #fff; }
  p, label { color: #333; }
  h1, h2, h3 { color: #000; }
}
