/* FAK LABS — Core Design System v2.0
 * Mobile-first. Two breakpoints: 680px, 1024px.
 * 8px spacing base. Violet for actions only.
 */

/* ============ TOKENS ============ */
:root {
  /* Colors */
  --violet: #6d4aff;
  --violet-dark: #5a3de0;
  --violet-soft: #f0edff;
  --ink: #111111;
  --body: #444444;
  --muted: #888888;
  --line: #e8e8e8;
  --surface: #ffffff;
  --bg: #fafafa;
  --success: #16a34a;
  --dark-bg: #0f0f14;

  /* Spacing (8px base) */
  --sp1: 8px;
  --sp2: 16px;
  --sp3: 24px;
  --sp4: 32px;
  --sp6: 48px;
  --sp12: 96px;

  /* Typography */
  --font: 'Inter', 'Helvetica Neue', Helvetica, Arial, sans-serif;

  /* Layout */
  --max-width: 1200px;
  --radius: 12px;
  --radius-sm: 8px;
}

/* ============ RESET ============ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--body);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--violet); text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

/* ============ TYPOGRAPHY ============ */
h1, h2, h3 { color: var(--ink); line-height: 1.15; letter-spacing: -0.02em; }
.hero-headline { font-size: 32px; line-height: 1.1; letter-spacing: -0.03em; font-weight: 700; }
.section-headline { font-size: 24px; line-height: 1.2; letter-spacing: -0.02em; font-weight: 700; }
.card-title { font-size: 18px; line-height: 1.3; font-weight: 600; }
.positioning { font-size: 13px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); font-weight: 600; }
.proof-line { font-size: 16px; color: var(--body); line-height: 1.6; }
.caption { font-size: 13px; color: var(--muted); line-height: 1.5; }

/* ============ LAYOUT ============ */
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 20px; }
.section { padding: var(--sp6) 0; }  /* 48px mobile */

/* ============ HEADER ============ */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  height: 56px;
}
.site-header .container {
  height: 56px;
  display: flex; align-items: center; justify-content: space-between;
}
.logo { font-weight: 700; font-size: 18px; color: var(--ink); display: flex; align-items: center; gap: 8px; }
.logo span { color: var(--violet); }

/* ============ HERO ============ */
.hero { background: var(--surface); padding: var(--sp6) 0; }
.hero .positioning { margin-bottom: var(--sp2); }
.hero-headline { margin-bottom: var(--sp2); }
.hero .proof-line { margin-bottom: var(--sp3); max-width: 36ch; }
.hero-cta { display: flex; gap: var(--sp2); flex-wrap: wrap; margin-bottom: var(--sp3); }
.hero-search { margin-top: var(--sp2); }

/* ============ BUTTONS ============ */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 24px;
  border-radius: var(--radius-sm);
  font-size: 15px; font-weight: 700;
  border: none; cursor: pointer;
  text-decoration: none;
  transition: background 0.15s;
}
.btn-primary { background: var(--violet); color: white; }
.btn-primary:hover { background: var(--violet-dark); }
.btn-secondary {
  background: transparent; color: var(--violet);
  border: 1px solid var(--violet);
}

/* ============ SEARCH ============ */
.search-field {
  width: 100%; height: 56px;
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 0 44px 0 48px;  /* room for icon left, clear button right */
  font-size: 16px;  /* prevents iOS zoom */
  background: var(--surface);
}
.search-field:focus {
  border-color: var(--violet); outline: none;
  box-shadow: 0 0 0 3px rgba(109, 74, 255, 0.1);
}
.search-wrap { position: relative; }
.search-wrap .icon {
  position: absolute; left: 16px; top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
  pointer-events: none;
  width: 20px; height: 20px;
}
.search-clear-btn {
  position: absolute; right: 12px; top: 50%;
  transform: translateY(-50%);
  background: var(--bg); border: none; border-radius: 50%;
  width: 28px; height: 28px;
  font-size: 14px; color: var(--muted);
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
.search-clear-btn:hover { background: var(--line); color: var(--ink); }

/* ============ PRODUCT CARDS ============ */
.products-grid { display: grid; gap: var(--sp2); }
.product-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: var(--sp3);
}
.product-card .tier-label {
  font-size: 12px; text-transform: uppercase; letter-spacing: 0.06em;
  color: var(--violet); font-weight: 700; margin-bottom: var(--sp1);
}
.product-card h3 { margin-bottom: var(--sp1); }
.product-card .metric {
  font-size: 13px; color: var(--muted);
  margin-bottom: var(--sp2);
}
.product-card p { margin-bottom: var(--sp2); }
.product-card .btn { width: 100%; }

/* Tier 1 cards get violet top border */
.product-card.tier-1 { border-top: 3px solid var(--violet); }

/* ============ CATEGORY PILLS ============ */
.category-scroll {
  display: flex; gap: var(--sp1);
  overflow-x: auto; padding-bottom: var(--sp1);
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.category-scroll::-webkit-scrollbar { display: none; }
.category-pill {
  flex-shrink: 0;
  min-height: 44px; padding: 0 16px;
  border: 1px solid var(--line); border-radius: 999px;
  background: var(--surface);
  font-size: 14px; color: var(--body);
  display: inline-flex; align-items: center;
}
.category-pill .count { color: var(--muted); margin-left: 4px; font-size: 13px; }
.category-pill.active { background: var(--ink); color: white; border-color: var(--ink); }
.category-pill.active .count { color: #aaa; }

/* ============ PRICING ============ */
.pricing-grid { display: grid; gap: var(--sp2); }
.price-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: var(--sp3);
  text-align: center;
}
.price-card.featured { border: 2px solid var(--violet); }
.price-card .plan { font-size: 14px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: var(--sp1); }
.price-card .amount { font-size: 36px; font-weight: 700; color: var(--ink); }
.price-card .per { font-size: 14px; color: var(--muted); }
.price-card ul { list-style: none; margin: var(--sp2) 0; text-align: left; }
.price-card li { padding: var(--sp1) 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.price-card li:last-child { border: none; }

/* ============ TRUST METRICS ============ */
.metrics { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp2); }
.metric-item { text-align: center; padding: var(--sp2); }
.metric-item .number { font-size: 28px; font-weight: 700; color: var(--ink); }
.metric-item .label { font-size: 13px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.05em; }

/* ============ STICKY CTA ============ */
.sticky-cta {
  position: fixed; bottom: 0; left: 0; right: 0;
  background: var(--violet); color: white;
  padding: 12px 20px;
  display: flex; align-items: center; justify-content: space-between;
  z-index: 90;
  transform: translateY(100%);
  transition: transform 0.3s;
}
.sticky-cta.visible { transform: translateY(0); }
.sticky-cta .text { font-weight: 700; font-size: 15px; }
.sticky-cta .dismiss {
  background: none; border: none; color: white;
  font-size: 20px; padding: 8px;
}

/* ============ FAK BOT WIDGET ============ */
#fakbot-stats .fb-stats {
  display: flex; gap: 16px; flex-wrap: wrap;
  margin-bottom: 4px;
}
#fakbot-stats .fb-stat {
  display: flex; flex-direction: column;
}
#fakbot-stats .fb-stat b {
  font-size: 20px; font-weight: 700; color: var(--ink);
  letter-spacing: -0.02em;
}
#fakbot-stats .fb-stat span {
  font-size: 11px; text-transform: uppercase;
  letter-spacing: 0.06em; color: var(--muted);
}

/* ============ FOOTER ============ */
.site-footer {
  background: var(--surface);
  border-top: 1px solid var(--line);
  padding: var(--sp4) 0;
  text-align: center;
}
.site-footer .tagline { font-weight: 600; color: var(--ink); margin-bottom: var(--sp2); }
.site-footer nav { display: flex; gap: var(--sp2); justify-content: center; flex-wrap: wrap; margin-bottom: var(--sp2); }
.site-footer nav a { color: var(--body); font-size: 14px; }

/* ============ TABLET (681-1024px) ============ */
@media (min-width: 681px) {
  .products-grid { grid-template-columns: 1fr 1fr; }
  .pricing-grid { grid-template-columns: 1fr 1fr 1fr; }
  .metrics { grid-template-columns: repeat(4, 1fr); }
}

/* ============ DESKTOP (1025px+) ============ */
@media (min-width: 1025px) {
  .section { padding: var(--sp12) 0; }  /* 96px */
  .hero-headline { font-size: 56px; }
  .section-headline { font-size: 36px; }
  .hero { padding: var(--sp12) 0; }
  .site-header, .site-header .container { height: 72px; }
}
