/* ============================================
   FUISTO — Shared Design System
   Used by: index.html + all /apps/*/about/ and /apps/*/privacy/ pages
   (Note: existing Safe Click privacy page keeps its own inline styles —
   this file just supplies the two variables it already references:
   --font-sans and --color-text-primary)
   ============================================ */

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

:root {
  --font-sans: 'Inter', system-ui, sans-serif;

  /* Base palette (dark slate, matches Safe Click privacy page) */
  --color-bg: #0f172a;
  --color-bg-soft: #0a0a0f;
  --color-card-bg: #1e293b;
  --color-card-border: #293548;
  --color-border: #1e293b;

  --color-text-primary: #e2e8f0;
  --color-text-secondary: #64748b;
  --color-text-muted: #334155;
  --color-text-faint: #1e293b;

  /* Brand purple — used on the main landing page only */
  --brand-accent: #7c6ef5;
  --brand-accent-soft: #7c6ef512;
  --brand-accent-border: #7c6ef525;

  /* Default per-app accent (Safe Click blue). Override on other app pages
     by setting --app-accent / --app-accent-dark / --app-accent-soft on <body>. */
  --app-accent: #3b82f6;
  --app-accent-dark: #1d4ed8;
  --app-accent-soft: #1d4ed812;
  --app-accent-border: #1d4ed840;
}

body {
  font-family: var(--font-sans);
  background: var(--color-bg-soft);
  color: var(--color-text-primary);
}

/* ---------- Shared top nav (about/privacy sub-pages) ---------- */
.app-nav {
  display: flex; align-items: center; justify-content: space-between;
  max-width: 680px; margin: 0 auto;
  padding: 24px 24px 0;
}
.app-nav a.back-link {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 13px; color: var(--color-text-secondary);
  text-decoration: none;
}
.app-nav a.back-link:hover { color: var(--color-text-primary); }

/* ---------- Hero (about/privacy pages) ---------- */
.app-page { background: var(--color-bg); color: var(--color-text-primary); }

.app-hero {
  background: var(--color-bg);
  border-bottom: 0.5px solid var(--color-border);
  padding: 40px 32px 44px;
  text-align: center;
}

.app-logo { display: inline-flex; align-items: center; gap: 12px; margin-bottom: 28px; }

.app-logo-icon {
  width: 52px; height: 52px; border-radius: 13px;
  border: 1.5px solid #334155; background: var(--color-card-bg);
  overflow: hidden; display: flex; align-items: center; justify-content: center;
  padding: 6px;
}
.app-logo-icon img { width: 100%; height: 100%; object-fit: contain; border-radius: 8px; }

.app-logo-text { display: flex; flex-direction: column; align-items: flex-start; line-height: 1.1; }
.app-logo-name { font-size: 22px; font-weight: 500; letter-spacing: -0.3px; color: #f1f5f9; }
.app-logo-name .accent { color: var(--app-accent); }
.app-logo-sub { font-size: 11px; color: var(--color-text-muted); letter-spacing: 0.5px; margin-top: 2px; }

.app-hero h1 { font-size: 28px; font-weight: 500; color: #f1f5f9; margin-bottom: 12px; letter-spacing: -0.4px; }
.app-hero p.app-lead { font-size: 15px; color: var(--color-text-secondary); max-width: 440px; margin: 0 auto 20px; line-height: 1.65; }

.app-meta { display: inline-flex; gap: 20px; flex-wrap: wrap; justify-content: center; }
.app-chip { font-size: 12px; color: var(--color-text-muted); display: flex; align-items: center; gap: 5px; }

/* ---------- Body / cards ---------- */
.app-body { background: var(--color-bg); padding: 40px 24px 64px; }
.app-inner { max-width: 680px; margin: 0 auto; }

.section-label {
  font-size: 11px; font-weight: 500; text-transform: uppercase; letter-spacing: 1.5px;
  color: var(--color-text-faint); margin-bottom: 14px; margin-top: 36px;
}
.section-label:first-child { margin-top: 0; }

.card {
  background: var(--color-card-bg); border: 0.5px solid var(--color-card-border);
  border-radius: 14px; padding: 22px 24px; margin-bottom: 10px;
}
.card h2 { font-size: 15px; font-weight: 500; color: #e2e8f0; margin-bottom: 10px; }
.card p { font-size: 14px; line-height: 1.75; color: var(--color-text-secondary); }

.highlight {
  background: color-mix(in srgb, var(--app-accent) 8%, var(--color-bg));
  border: 0.5px solid var(--app-accent-border);
  border-radius: 9px; padding: 12px 16px;
  display: flex; align-items: flex-start; gap: 9px; margin-top: 12px;
}
.highlight span { font-size: 13px; color: var(--app-accent); line-height: 1.65; }

/* ---------- Feature list (about pages) ---------- */
.feature-list { display: flex; flex-direction: column; gap: 10px; }
.feature-item {
  display: flex; align-items: flex-start; gap: 12px;
  background: var(--color-card-bg); border: 0.5px solid var(--color-card-border);
  border-radius: 12px; padding: 16px 18px;
}
.feature-emoji { font-size: 18px; line-height: 1.4; }
.feature-text h3 { font-size: 14px; font-weight: 600; color: #e2e8f0; margin-bottom: 3px; }
.feature-text p { font-size: 13px; color: var(--color-text-secondary); line-height: 1.6; }

/* ---------- Screenshots gallery ----------
   Add <img class="app-screenshot" src="..." alt="..."> tags inside .screenshots
   Works with 1–5 images automatically. Leave empty (with just the HTML
   comment) if you have none — the section hides itself. */
.screenshots {
  display: flex; gap: 12px; overflow-x: auto; padding: 4px 0 10px;
  scrollbar-width: thin;
}
.screenshots:empty { display: none; }
.app-screenshot {
  height: 340px; width: auto; border-radius: 16px; flex-shrink: 0;
  border: 0.5px solid var(--color-card-border);
}

/* ---------- CTA buttons ---------- */
.cta-row { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin-top: 22px; }
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 14px; font-weight: 500; padding: 10px 22px; border-radius: 9px;
  text-decoration: none;
}
.btn-primary { background: var(--app-accent-dark); color: #eff6ff; }
.btn-secondary { background: transparent; border: 0.5px solid var(--color-card-border); color: var(--color-text-secondary); }
.btn-secondary:hover { color: var(--color-text-primary); border-color: #3f3f46; }

/* ---------- Contact card ---------- */
.contact-card {
  background: var(--color-card-bg); border: 0.5px solid var(--color-card-border);
  border-radius: 14px; padding: 28px 24px; text-align: center; margin-bottom: 10px;
}
.contact-card h2 { font-size: 16px; font-weight: 500; color: #e2e8f0; margin-bottom: 8px; }
.contact-card p { font-size: 14px; color: var(--color-text-secondary); margin-bottom: 18px; line-height: 1.65; }
.email-btn {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--app-accent-dark); color: #eff6ff;
  font-size: 14px; font-weight: 500; padding: 10px 22px; border-radius: 9px;
  text-decoration: none;
}

.app-footer {
  text-align: center; font-size: 12px; color: var(--color-text-muted);
  margin-top: 40px; padding-top: 22px; border-top: 0.5px solid var(--color-border);
}

/* ============================================
   MAIN LANDING PAGE (index.html)
   ============================================ */
.page {
  width: 100%; max-width: 900px; margin: 0 auto; padding: 48px 32px;
  display: flex; flex-direction: column; gap: 56px;
}
body.home { background: var(--color-bg-soft); min-height: 100vh; display: flex; align-items: center; justify-content: center; }

nav.site-nav { display: flex; align-items: center; justify-content: space-between; }
.logo { display: flex; align-items: center; gap: 11px; }
.logo-img-wrap {
  width: 40px; height: 40px; border-radius: 10px; overflow: hidden;
  background: #18181b; border: 0.5px solid #27272a;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.logo-img-wrap img { width: 40px; height: 40px; object-fit: cover; display: block; }
.logo-wordmark { font-size: 17px; font-weight: 700; color: #fafafa; letter-spacing: 0.02em; }

.nav-right { display: flex; align-items: center; gap: 16px; }
.nav-link { font-size: 13px; color: var(--color-text-secondary); text-decoration: none; }
.nav-link:hover { color: var(--color-text-primary); }
.nav-badge {
  font-size: 11px; color: var(--brand-accent); border: 0.5px solid var(--brand-accent-border);
  background: var(--brand-accent-soft); padding: 5px 12px; border-radius: 20px;
  font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase;
}

.hero { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 16px; }
.hero-eyebrow { font-size: 11px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--brand-accent); }
.hero h1 { font-size: 52px; font-weight: 800; color: #fafafa; letter-spacing: -0.03em; line-height: 1.08; }
.hero h1 em { font-style: normal; color: var(--brand-accent); }
.hero-sub { font-size: 15px; color: #52525b; max-width: 360px; line-height: 1.6; }

.featured-label { display: flex; align-items: center; gap: 8px; margin-bottom: -8px; }
.featured-label span { font-size: 11px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: #3f3f46; }
.featured-label::before, .featured-label::after { content: ''; flex: 1; height: 0.5px; background: #1c1c1f; }

.featured-card {
  background: #0f0f13; border: 0.5px solid #27272a; border-radius: 20px; padding: 32px;
  display: flex; align-items: center; gap: 28px; cursor: pointer;
  transition: border-color 0.2s, background 0.2s; text-decoration: none; color: inherit;
  position: relative; overflow: hidden;
}
.featured-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, #7c6ef530, transparent);
}
.featured-card:hover { border-color: #3f3f46; background: #111116; }
.featured-icon { width: 80px; height: 80px; border-radius: 18px; object-fit: cover; background: #1a1a20; flex-shrink: 0; border: 0.5px solid #27272a; }
.featured-body { flex: 1; }
.featured-tag {
  display: inline-block; font-size: 10px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--brand-accent); background: var(--brand-accent-soft); border: 0.5px solid var(--brand-accent-border);
  padding: 3px 10px; border-radius: 20px; margin-bottom: 10px;
}
.featured-name { font-size: 20px; font-weight: 700; color: #fafafa; margin-bottom: 6px; }
.featured-desc { font-size: 13px; color: #52525b; line-height: 1.65; max-width: 420px; }
.featured-arrow {
  width: 36px; height: 36px; border-radius: 50%; border: 0.5px solid #27272a;
  display: flex; align-items: center; justify-content: center; color: #52525b; flex-shrink: 0;
  transition: border-color 0.2s, color 0.2s;
}
.featured-card:hover .featured-arrow { border-color: var(--brand-accent); color: var(--brand-accent); }

.apps-section { display: flex; flex-direction: column; gap: 16px; }
.apps-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.app-card {
  background: #0f0f13; border: 0.5px solid #1c1c1f; border-radius: 16px; padding: 22px 20px;
  display: flex; align-items: center; gap: 16px; cursor: pointer; text-decoration: none; color: inherit;
  transition: border-color 0.2s, background 0.2s;
}
.app-card:hover { border-color: #2e2e33; background: #111116; }
.app-icon { width: 52px; height: 52px; border-radius: 13px; object-fit: cover; background: #1a1a20; flex-shrink: 0; border: 0.5px solid #27272a; }
.app-card-body { flex: 1; min-width: 0; }
.app-card-name { font-size: 14px; font-weight: 600; color: #e4e4e7; margin-bottom: 4px; }
.app-card-desc { font-size: 12px; color: #3f3f46; line-height: 1.5; }
.app-chevron { color: #2e2e33; flex-shrink: 0; transition: color 0.2s; }
.app-card:hover .app-chevron { color: #52525b; }

/* ---------- About section on index.html ---------- */
.about-section { display: flex; flex-direction: column; gap: 18px; }
.about-text { font-size: 14px; color: var(--color-text-secondary); line-height: 1.8; max-width: 620px; }
.about-stats { display: flex; gap: 28px; flex-wrap: wrap; margin-top: 6px; }
.about-stat { display: flex; flex-direction: column; gap: 2px; }
.about-stat b { font-size: 20px; color: #fafafa; font-weight: 700; }
.about-stat span { font-size: 11px; color: #3f3f46; text-transform: uppercase; letter-spacing: 0.08em; }

.site-footer {
  display: flex; align-items: center; justify-content: space-between;
  border-top: 0.5px solid #18181b; padding-top: 24px;
}
.footer-brand { display: flex; align-items: center; gap: 8px; }
.footer-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--brand-accent); opacity: 0.5; }
.footer-text { font-size: 12px; color: #3f3f46; }
.footer-right { font-size: 12px; color: #27272a; }

@media (max-width: 600px) {
  .apps-grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: 36px; }
  .featured-card { flex-direction: column; text-align: center; }
  .featured-arrow { display: none; }
  .about-stats { gap: 18px; }
}