/* Splitify site chrome: nav, mobile menu, store buttons, footer.
   Loaded by every page. Content styles live in site.css. */
/* Splitify shared styles for content + landing pages */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --teal-800: #0a6b65;
  --teal-700: #0e867e;
  --teal-600: #0D9488;
  --teal-500: #14b8a6;
  --teal-400: #2dd4bf;
  --teal-100: #ccfbf1;
  --teal-50: #f0fdfa;
  --dark: #0f172a;
  --dark-600: #1e293b;
  --gray-700: #334155;
  --gray-500: #64748b;
  --gray-300: #cbd5e1;
  --gray-200: #e2e8f0;
  --gray-100: #f1f5f9;
  --white: #ffffff;
  --amber: #D97706;

  /* type scale: every text style resolves to one of these */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, 'SF Mono', Menlo, Consolas, monospace;
  --fs-body: 1.03rem;      /* paragraphs, lists, quotes, FAQ answers */
  --fs-secondary: 0.95rem; /* tables, TOC, buttons, related links */
  --fs-small: 0.88rem;     /* captions, footer, card copy */
  --fs-micro: 0.8rem;      /* breadcrumbs, footer bottom */
  --green: #16A34A;
  --red: #DC2626;
}

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-sans);
  color: var(--dark);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ── NAV (canonical: shared with the homepage) ── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(0,0,0,0.06);
  transition: box-shadow 0.3s;
}
.nav.scrolled { box-shadow: 0 1px 12px rgba(0,0,0,0.08); }
.nav-inner {
  max-width: 1200px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 24px; height: 64px;
}
.nav-logo {
  font-weight: 600; font-size: 1.35rem; color: var(--teal-700);
  text-decoration: none; display: flex; align-items: center; gap: 8px;
}
.nav-logo img, .nav-logo svg { width: 32px; height: 32px; border-radius: 8px; }
.nav-links { display: flex; gap: 32px; align-items: center; }
.nav-links a {
  text-decoration: none; color: var(--gray-700); font-size: 0.9rem;
  font-weight: 500; transition: color 0.2s; position: relative;
}
.nav-links a:hover { color: var(--teal-700); }
.nav-cta {
  background: var(--teal-700) !important; color: var(--white) !important;
  padding: 8px 20px !important; border-radius: 8px !important;
  font-weight: 600 !important; transition: all 0.2s !important;
}
.nav-cta:hover { background: var(--teal-800) !important; transform: translateY(-1px); }

.hamburger { display: none; background: none; border: none; cursor: pointer; padding: 4px; }
.hamburger svg { width: 28px; height: 28px; color: var(--dark); }

.mobile-menu {
  display: none; position: fixed; top: 64px; left: 0; right: 0; bottom: 0;
  background: var(--white); z-index: 999; padding: 24px;
  flex-direction: column; gap: 0; overflow-y: auto;
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  text-decoration: none; color: var(--dark); font-size: 1rem;
  font-weight: 500; padding: 16px 0; border-bottom: 1px solid var(--gray-100);
}
.mobile-menu .nav-cta {
  text-align: center; margin-top: auto; border-radius: 12px !important;
  border-bottom: none; padding: 16px 0; font-weight: 600; font-size: 1rem;
}

/* ── STORE BUTTONS ── */
.store-row { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.store-btn {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--white); color: var(--dark); text-decoration: none;
  padding: 14px 28px; border-radius: 12px; font-weight: 600; font-size: 0.95rem;
  box-shadow: 0 4px 16px rgba(0,0,0,0.12);
  transition: transform 0.2s, box-shadow 0.2s;
}
.store-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,0.18); }
.store-btn svg { width: 24px; height: 24px; flex-shrink: 0; }
.store-btn-text { display: flex; flex-direction: column; line-height: 1.2; text-align: left; }
.store-btn-text small { font-size: 0.7rem; opacity: 0.7; font-weight: 400; display: block; }
.store-btn-text span { font-size: 1rem; font-weight: 700; }

/* ── FOOTER (canonical: shared with the homepage) ── */
.footer { background: var(--dark); color: rgba(255,255,255,0.6); padding: 60px 24px 32px; margin-top: 72px; }
.footer-inner {
  max-width: 1200px; margin: 0 auto;
  display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px;
}
.footer-brand p { margin-top: 12px; font-size: 0.9rem; line-height: 1.7; max-width: 300px; }
.footer h4 {
  color: var(--white); font-size: 0.9rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.06em; margin-bottom: 16px;
}
.footer-links { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-links a { color: rgba(255,255,255,0.6); text-decoration: none; font-size: 0.9rem; transition: color 0.2s; }
.footer-links a:hover { color: var(--teal-400); }
.footer-bottom {
  max-width: 1200px; margin: 40px auto 0; padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.08);
  display: flex; justify-content: space-between; align-items: center;
  font-size: 0.85rem; flex-wrap: wrap; gap: 16px;
}

@media (max-width: 900px) {
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 32px; }
}
@media (max-width: 768px) {
  .nav-links { display: none; }
  .hamburger { display: block; }
  .footer { padding: 40px 16px 24px; }
  .footer-inner { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .store-btn { padding: 12px 20px; font-size: 0.9rem; width: 100%; justify-content: center; }
}
@media (max-width: 380px) {
  .nav-inner { padding: 0 16px; }
  .store-btn { padding: 12px 16px; }
  .store-btn-text span { font-size: 0.9rem; }
}
