/* ============================================================
   MINIMAL APPZ — GLOBAL DESIGN SYSTEM
   Pattern derived from the TrueFocus landing page.
   Shared by: index.html, privacy.html, smarteat.html, truefocus.html
   ============================================================ */

:root {
  --bg: #090909;
  --bg-alt: #0f0f0f;
  --card: #141414;
  --card-hover: #161616;
  --border: #232323;
  --border-hover: #2e2e2e;
  --text: #ffffff;
  --muted: #B5B5B5;
  --dim: #2a2a2a;
  --blue: #4A8DFF;
  --blue-soft: rgba(74, 141, 255, 0.1);
  --green: #4ADE80;
  --green-soft: rgba(74, 222, 128, 0.1);
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
}

* , *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
.wrap { max-width: 1280px; margin: 0 auto; padding-left: 24px; padding-right: 24px; }

/* ── Section label ── */
.section-label {
  color: var(--blue);
  font-size: 10px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  margin-bottom: 20px;
  font-weight: 500;
  display: block;
}
.section-label.green { color: var(--green); }

/* ── NAV ── */
.site-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  transition: background .3s, border-color .3s, backdrop-filter .3s;
  border-bottom: 1px solid transparent;
}
.site-nav.scrolled {
  background: rgba(9,9,9,0.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}
.site-nav .wrap {
  height: 64px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px;
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; min-width: 0; flex-shrink: 0; }
.brand img { width: 28px; height: 28px; border-radius: 10px; flex-shrink: 0; }
.brand span { font-weight: 600; font-size: 14px; letter-spacing: -0.01em; color: var(--text); white-space: nowrap; }
.nav-links { display: flex; align-items: center; gap: 32px; white-space: nowrap; }
.nav-links a {
  color: var(--muted); font-size: 14px; text-decoration: none;
  transition: color .2s;
}
.nav-links a:hover { color: var(--text); }
.nav-divider { width: 1px; height: 16px; background: var(--border); display: inline-block; }
.nav-right { display: flex; align-items: center; gap: 16px; flex-shrink: 0; }

/* Hamburger toggle — hidden on desktop, shown on mobile */
.nav-toggle {
  display: none;
  width: 38px; height: 38px; flex-shrink: 0;
  align-items: center; justify-content: center;
  background: transparent; border: 1px solid var(--border); border-radius: 10px;
  cursor: pointer; padding: 0;
}
.nav-toggle svg { width: 18px; height: 18px; color: var(--text); }

/* Mobile dropdown panel */
.nav-mobile-panel {
  display: none;
  position: fixed; top: 64px; left: 0; right: 0; z-index: 99;
  background: rgba(9,9,9,0.98);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  padding: 8px 24px 24px;
  flex-direction: column; gap: 2px;
  max-height: calc(100vh - 64px);
  overflow-y: auto;
}
.nav-mobile-panel.open { display: flex; }
.nav-mobile-panel a {
  color: var(--muted); text-decoration: none; font-size: 15px;
  padding: 15px 2px; border-bottom: 1px solid var(--border);
}
.nav-mobile-panel a:last-of-type { border-bottom: none; }
.nav-mobile-panel .btn { margin-top: 14px; justify-content: center; width: 100%; }

@media (max-width: 680px) {
  .nav-links { display: none !important; }
  .nav-right .btn { display: none; }
  .nav-toggle { display: flex; }
}
@media (min-width: 681px) {
  .nav-mobile-panel { display: none !important; }
}

/* ── Buttons ── */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  border-radius: 999px; font-weight: 500; text-decoration: none;
  padding: 12px 24px; font-size: 14px;
  transition: background .2s, border-color .2s, transform .2s;
  cursor: pointer; border: none;
}
.btn svg { width: 16px; height: 16px; flex-shrink: 0; }
.btn-white { background: #fff; color: #090909; }
.btn-white:hover { background: #e8e8e8; }
.btn-blue { background: var(--blue); color: #fff; }
.btn-blue:hover { background: #3a7de0; }
.btn-green { background: var(--green); color: #06240f; }
.btn-green:hover { background: #3fc972; }
.btn-outline { border: 1px solid var(--border); color: var(--text); background: transparent; }
.btn-outline:hover { border-color: var(--border-hover); }
.btn-large { padding: 16px 32px; font-size: 15px; gap: 12px; }
.btn-large svg { width: 20px; height: 20px; }

/* ── Generic layout helpers ── */
.section { border-top: 1px solid var(--border); padding: 96px 24px; }
.section-tight { padding: 80px 24px; }
.center { text-align: center; }
.max-narrow { max-width: 640px; margin: 0 auto; }
.max-mid { max-width: 780px; margin: 0 auto; }

h1, h2, h3, h4 { font-weight: 600; letter-spacing: -0.02em; }

.h-xl { font-size: clamp(38px, 6vw, 64px); line-height: 1.05; letter-spacing: -0.04em; }
.h-lg { font-size: clamp(32px, 4.5vw, 52px); line-height: 1.06; letter-spacing: -0.04em; }
.h-md { font-size: clamp(24px, 3vw, 32px); line-height: 1.15; letter-spacing: -0.02em; }

.p-lead { color: var(--muted); font-size: 18px; line-height: 1.7; }
.p-body { color: var(--muted); font-size: 15px; line-height: 1.75; }

/* ── Cards ── */
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px;
  transition: border-color .3s, transform .3s, background .3s;
}
.card:hover { border-color: var(--border-hover); background: var(--card-hover); transform: translateY(-2px); }
.icon-box {
  width: 36px; height: 36px; border-radius: 12px;
  background: #1c1c1c; border: 1px solid #2a2a2a;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
}
.icon-box svg { width: 16px; height: 16px; color: var(--muted); }

/* ── Footer ── */
.site-footer { border-top: 1px solid var(--border); padding: 56px 24px 40px; }
.site-footer .wrap {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px;
}
.footer-brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.footer-brand img { width: 22px; height: 22px; border-radius: 8px; }
.footer-brand span { font-weight: 600; font-size: 14px; color: var(--text); }
.footer-links { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; }
.footer-links a { color: var(--muted); font-size: 13px; text-decoration: none; transition: color .2s; }
.footer-links a:hover { color: var(--text); }
.footer-copy { color: var(--muted); font-size: 12px; }
.footer-note {
  max-width: 1280px; margin: 24px auto 0; padding-top: 24px;
  border-top: 1px solid var(--border); color: #6b6b6b; font-size: 12px; line-height: 1.7;
}

/* ── Star rating ── */
.stars { display: flex; gap: 3px; }
.stars svg { width: 14px; height: 14px; }
.star-fill { color: var(--blue); fill: var(--blue); }
.star-empty { color: var(--border); fill: none; }

/* ── Utility ── */
.pill {
  display: inline-flex; align-items: center; gap: 8px;
  border: 1px solid var(--border); border-radius: 999px;
  padding: 7px 16px; font-size: 12px; color: var(--muted);
}
.dot { width: 5px; height: 5px; border-radius: 50%; background: var(--blue); }
.dot.green { background: var(--green); }

@media (max-width: 640px) {
  .section { padding: 64px 20px; }
}
