/* ═══════════════════════════════════════════════════════════
   si187 Apps — Shared Site Stylesheet
   Covers: CSS vars, reset, typography, nav, footer, utilities
   All interior pages import this file.
   ═══════════════════════════════════════════════════════════ */

/* ── Brand palette ── */
:root {
  --bg:          #050E05;
  --bg-card:     #091409;
  --bg-raised:   #0D1A0D;
  --bg-border:   #142014;
  --green:       #39FF7A;
  --green-dim:   #1A7A3A;
  --magenta:     #C084C8;
  --magenta-dim: #7A5080;
  --text1:       #F0F5F0;
  --text2:       #8AAA8A;
  --text3:       #3A5A3A;
}

/* ── Reset ── */
*, *::before, *::after { margin:0; padding:0; box-sizing:border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  background: var(--bg);
  color: var(--text1);
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
body::before {
  content: '';
  position: fixed; inset: 0; pointer-events: none; z-index: 0;
  background: repeating-linear-gradient(
    0deg, transparent, transparent 3px,
    rgba(57,255,122,0.007) 3px, rgba(57,255,122,0.007) 4px
  );
}
img, svg { display: block; }
a { color: inherit; }
.sr-only { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0; }

/* ── Scroll reveal ── */
.reveal { opacity:0; transform:translateY(24px); transition: opacity 0.55s ease, transform 0.55s ease; }
.reveal.visible { opacity:1; transform:translateY(0); }
.reveal-d1 { transition-delay: 0.08s; }
.reveal-d2 { transition-delay: 0.16s; }
.reveal-d3 { transition-delay: 0.24s; }
.reveal-d4 { transition-delay: 0.32s; }
.reveal-d5 { transition-delay: 0.40s; }

/* ── Fingerprint mark ── */
.fp-mark svg { display:block; }

/* ── Pulse dot animation ── */
@keyframes pulse-dot {
  0%, 100% { box-shadow: 0 0 8px rgba(57,255,122,0.8); }
  50%       { box-shadow: 0 0 18px rgba(57,255,122,1); }
}
@keyframes slowspin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

/* ════════════════════════════════════════
   NAVIGATION
   ════════════════════════════════════════ */
nav {
  position: fixed; top:0; left:0; right:0; z-index:200;
  display: flex; align-items:center; justify-content:space-between;
  padding: 18px 56px;
  background: rgba(5,14,5,0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(20,32,20,0.8);
  transition: padding 0.3s;
}
nav.scrolled { padding: 12px 56px; }

.nav-logo { display:flex; align-items:center; gap:12px; text-decoration:none; }
.nav-wordmark { font-family:'Syne',sans-serif; font-size:17px; font-weight:800; color:var(--text1); letter-spacing:-0.3px; line-height:1; }
.nav-wordmark em { font-style:normal; color:var(--green); }

.nav-links { display:flex; align-items:center; gap:32px; list-style:none; }
.nav-links a { font-size:14px; font-weight:500; color:var(--text2); text-decoration:none; transition:color 0.15s; }
.nav-links a:hover, .nav-links a.active { color:var(--text1); }
.nav-links a.active { color:var(--green); }

.nav-cta { background:var(--green) !important; color:var(--bg) !important; padding:9px 18px !important; border-radius:8px !important; font-weight:600 !important; font-size:13px !important; transition:opacity 0.15s !important; }
.nav-cta:hover { opacity:0.85 !important; }

.nav-toggle { display:none; flex-direction:column; gap:5px; background:none; border:none; cursor:pointer; padding:12px; min-width:44px; min-height:44px; align-items:center; justify-content:center; }
.nav-toggle span { display:block; width:22px; height:2px; background:var(--text2); border-radius:2px; transition:0.3s; }

.mobile-nav { display:none; position:fixed; top:0; left:0; right:0; bottom:0; z-index:300; background:var(--bg); flex-direction:column; align-items:center; justify-content:center; gap:32px; }
.mobile-nav.open { display:flex; }
.mobile-nav a { font-family:'Syne',sans-serif; font-size:28px; font-weight:800; color:var(--text1); text-decoration:none; letter-spacing:-1px; transition:color 0.15s; }
.mobile-nav a:hover { color:var(--green); }
.mobile-nav-close { position:absolute; top:24px; right:24px; background:none; border:none; cursor:pointer; color:var(--text2); font-size:28px; line-height:1; }

/* ════════════════════════════════════════
   PAGE HERO (interior pages — smaller than homepage)
   ════════════════════════════════════════ */
.page-hero {
  padding: 140px 56px 80px;
  max-width: 1200px; margin: 0 auto;
  position: relative; z-index:1;
}
.page-hero-eyebrow {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px; letter-spacing:4px; text-transform:uppercase;
  color: var(--magenta); margin-bottom:20px;
}
.page-hero h1 {
  font-family: 'Syne', sans-serif;
  font-size: clamp(48px, 7vw, 96px);
  font-weight: 800; letter-spacing:-3.5px; line-height:0.92;
  color: var(--text1); margin-bottom:28px;
}
.page-hero h1 em { font-style:normal; color:var(--green); }
.page-hero-sub {
  font-size: clamp(16px, 1.8vw, 20px);
  color: var(--magenta); max-width:520px; line-height:1.65;
}
.page-hero-bg {
  position:absolute; inset:0; pointer-events:none; z-index:0;
}

/* ════════════════════════════════════════
   SECTION / LAYOUT UTILITIES
   ════════════════════════════════════════ */
.section-wrap { padding:80px 56px; max-width:1200px; margin:0 auto; position:relative; z-index:1; }
.section-wrap--narrow { padding:80px 56px; max-width:860px; margin:0 auto; position:relative; z-index:1; }
.section-divider { border:none; border-top:1px solid var(--bg-border); position:relative; z-index:1; }

.eyebrow { font-family:'JetBrains Mono',monospace; font-size:10px; letter-spacing:4px; text-transform:uppercase; color:var(--magenta); margin-bottom:16px; display:block; }
.section-title { font-family:'Syne',sans-serif; font-size:clamp(30px,4vw,50px); font-weight:800; letter-spacing:-1.5px; line-height:1.05; color:var(--text1); margin-bottom:48px; }
.section-title em { font-style:normal; color:var(--green); }

/* ── Buttons ── */
.btn-primary { display:inline-flex; align-items:center; gap:8px; background:var(--green); color:var(--bg); padding:14px 26px; border-radius:10px; font-weight:700; font-size:15px; text-decoration:none; letter-spacing:-0.2px; transition:opacity 0.15s, transform 0.15s; }
.btn-primary:hover { opacity:0.88; transform:translateY(-1px); }
.btn-ghost { display:inline-flex; align-items:center; gap:8px; background:transparent; color:var(--text2); padding:14px 24px; border-radius:10px; border:1px solid var(--bg-border); font-weight:500; font-size:15px; text-decoration:none; transition:color 0.15s, border-color 0.15s; }
.btn-ghost:hover { color:var(--text1); border-color:var(--text3); }
.btn-text { display:inline-flex; align-items:center; gap:8px; color:var(--green); font-size:14px; font-weight:600; text-decoration:none; transition:gap 0.2s; }
.btn-text:hover { gap:13px; }

/* ── Cards ── */
.card { background:var(--bg-card); border:1px solid var(--bg-border); border-radius:16px; padding:28px; transition:border-color 0.2s; }
.card:hover { border-color:var(--text3); }

/* ── Pull quotes ── */
.pull-quote { font-family:'Syne',sans-serif; font-size:clamp(22px,3vw,36px); font-weight:800; letter-spacing:-1px; line-height:1.2; color:var(--text1); border-left:3px solid var(--green); padding-left:28px; margin:48px 0; }
.pull-quote em { font-style:normal; color:var(--green); }

/* ── Tags / badges ── */
.tag { display:inline-flex; align-items:center; gap:6px; font-family:'JetBrains Mono',monospace; font-size:10px; letter-spacing:1.5px; text-transform:uppercase; padding:4px 10px; border-radius:6px; }
.tag-green { background:rgba(57,255,122,0.1); border:1px solid rgba(57,255,122,0.2); color:var(--green); }
.tag-magenta { background:rgba(192,132,200,0.1); border:1px solid rgba(192,132,200,0.2); color:var(--magenta); }
.tag-dim { background:var(--bg-raised); border:1px solid var(--bg-border); color:var(--text3); }

/* ───────── Unified download buttons ───────── */
.store-badges {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 24px;
}

.dl-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  width: 200px;
  height: 56px;
  padding: 0 16px;
  box-sizing: border-box;
  background: #000;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 10px;
  text-decoration: none;
  transition: transform 0.15s ease, border-color 0.15s ease, background 0.15s ease;
  font-family: 'Inter', system-ui, sans-serif;
}

.dl-btn:hover,
.dl-btn:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(57, 255, 122, 0.4);
  background: #0a0a0a;
}

.dl-btn-icon {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  fill: currentColor;
}

.dl-btn-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
  overflow: hidden;
}

.dl-btn-prefix {
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.4px;
  opacity: 0.75;
  text-transform: uppercase;
  white-space: nowrap;
}

.dl-btn-store {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.2px;
  line-height: 1.15;
  white-space: nowrap;
}

/* Compact variant — used on homepage WC26 card */
.store-badges-compact .dl-btn {
  width: 170px;
  height: 48px;
  gap: 10px;
  padding: 0 14px;
}
.store-badges-compact .dl-btn-icon {
  width: 24px;
  height: 24px;
}
.store-badges-compact .dl-btn-store { font-size: 15px; }
.store-badges-compact .dl-btn-prefix { font-size: 9px; }

@media (max-width: 480px) {
  .dl-btn {
    width: 178px;
    height: 50px;
    gap: 10px;
  }
  .dl-btn-icon { width: 24px; height: 24px; }
  .dl-btn-store { font-size: 15px; }
  .store-badges-compact .dl-btn { width: 168px; height: 44px; }
}

/* ════════════════════════════════════════
   FOOTER
   --text3 (#3A5A3A) is illegible on dark bg.
   All muted footer text uses magenta at reduced opacity.
   ════════════════════════════════════════ */
footer {
  padding:44px 56px;
  border-top:1px solid rgba(192,132,200,0.12);
  display:flex; justify-content:space-between; align-items:flex-start;
  flex-wrap:wrap; gap:40px; position:relative; z-index:1;
}

.footer-col { display:flex; flex-direction:column; gap:16px; }

.footer-brand { display:flex; align-items:center; gap:12px; }
.footer-name { font-family:'Syne',sans-serif; font-size:16px; font-weight:800; color:var(--text1); }
.footer-name em { font-style:normal; color:var(--green); }
.footer-tagline { font-family:'JetBrains Mono',monospace; font-size:9px; letter-spacing:2px; color:var(--magenta); opacity:0.5; text-transform:uppercase; margin-top:3px; }

.footer-nav-label { font-family:'JetBrains Mono',monospace; font-size:9px; letter-spacing:3px; color:var(--magenta); opacity:0.45; text-transform:uppercase; margin-bottom:4px; }
.footer-nav-links { list-style:none; display:flex; flex-direction:column; gap:10px; }
.footer-nav-links a { font-size:14px; color:var(--text2); text-decoration:none; transition:color 0.15s; }
.footer-nav-links a:hover { color:var(--magenta); }

.footer-social { display:flex; gap:16px; }
.footer-social a { display:flex; align-items:center; justify-content:center; width:44px; height:44px; border:1px solid rgba(192,132,200,0.2); border-radius:8px; color:var(--magenta); opacity:0.5; text-decoration:none; font-size:14px; transition:opacity 0.15s, border-color 0.15s; }
.footer-social a:hover { opacity:1; border-color:rgba(192,132,200,0.5); }

.footer-bottom { width:100%; border-top:1px solid rgba(192,132,200,0.10); padding-top:24px; display:flex; justify-content:space-between; align-items:center; flex-wrap:wrap; gap:12px; }
.footer-copy { font-family:'JetBrains Mono',monospace; font-size:10px; color:var(--magenta); opacity:0.4; letter-spacing:0.5px; }
.footer-legal { display:flex; gap:8px; flex-wrap:wrap; }
.footer-legal a { font-size:13px; color:var(--magenta); opacity:0.45; text-decoration:none; transition:opacity 0.15s; padding:6px 8px; }
.footer-legal a:hover { opacity:1; }

/* ════════════════════════════════════════
   RESPONSIVE
   ════════════════════════════════════════ */
@media (max-width:900px) {
  nav { padding:16px 24px; }
  nav.scrolled { padding:12px 24px; }
  .nav-links { display:none; }
  .nav-toggle { display:flex; }
  .page-hero { padding:110px 24px 60px; }
  .section-wrap { padding:60px 24px; }
  .section-wrap--narrow { padding:60px 24px; }
  footer { padding:40px 24px; flex-direction:column; }
}
@media (max-width:540px) {
  .page-hero h1 { letter-spacing:-2px; }
}

/* ════════════════════════════════════════════════════════════
   ADDITIONS — May 2026 update
   Cookie banner, accessibility, mobile fixes
   ════════════════════════════════════════════════════════════ */

/* ── Skip link (accessibility) ──
   Hidden via clip technique so iOS overscroll cannot reveal it.
   Becomes visible only on keyboard focus. */
.skip-link {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.skip-link:focus {
  position: fixed;
  top: 12px;
  left: 16px;
  width: auto;
  height: auto;
  margin: 0;
  overflow: visible;
  clip: auto;
  white-space: normal;
  z-index: 9999;
  background: var(--green);
  color: var(--bg);
  padding: 12px 20px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  outline: 2px solid var(--magenta);
  outline-offset: 2px;
}

/* ── Focus styles (accessibility) ── */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ── Reduced motion ── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1 !important; transform: none !important; }
}

/* Cookie banner CSS lives in /assets/css/cookie-banner.css —
   linked separately so pages can include it without site.css. */

/* ════════════════════════════════════════
   MOBILE NAV FOCUS TRAP & UX
   ════════════════════════════════════════ */
.mobile-nav.open { display: flex; }
.mobile-nav a:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 4px;
}

/* ════════════════════════════════════════
   MOBILE TYPOGRAPHY FIXES
   ════════════════════════════════════════ */
@media (max-width: 540px) {
  /* Tighter hero headline on small phones */
  .hero h1, .page-hero h1 {
    letter-spacing: -1.5px !important;
  }
  /* Stats strip — better mobile padding */
  .stat-item { padding: 22px 16px !important; }
  .stat-num { font-size: 30px !important; letter-spacing: -1.5px !important; }
}
@media (max-width: 380px) {
  .hero h1, .page-hero h1 {
    font-size: clamp(40px, 13vw, 60px) !important;
    letter-spacing: -1px !important;
  }
}
