/* Canonical site chrome — header/footer/app-cta only.
   Shared by homepage inject + static shells. Tokens match blog-post.css.
   Does NOT reset html/body (safe on Framer homepage).
*/

/* Brand tokens scoped so Framer page body is untouched */
:root {
  --bg: #ffffff;
  --bg-dark: #1a1a2e;
  --bg-dark-2: #12121f;
  --fg: #0f1018;
  --fg-muted: #5a5a6e;
  --fg-inverse: #f0f7ff;
  --accent: #ff6942;
  --accent-hover: #e55a35;
  --accent-soft: rgba(255, 105, 66, 0.12);
  --border: rgba(15, 16, 24, 0.08);
  --max-w: 720px;
  --max-w-wide: 1120px;
  /* Framer site body: TWK Lausanne; Inter as fallback only */
  --font-body: "TWK Lausanne 400", "TWK Lausanne 400 Placeholder", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-display: "TWK Lausanne 600", "TWK Lausanne 600 Placeholder", "TWK Lausanne 500", "Inter", -apple-system, sans-serif;
  --font-light: "TWK Lausanne 300", "TWK Lausanne 300 Placeholder", "Inter", -apple-system, sans-serif;
  --font-mono: "Fragment Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --radius-pill: 999px;
  --radius-btn: 10px;
  --shadow-soft: 0 8px 28px rgba(15, 16, 24, 0.06);
}

/* Hide Framer footer only — nav is recreated as .site-header SSOT */
.framer-Gf1fB.framer-sQpIx { display: none !important; }
/* Hide native Framer nav: we apply an enhanced clone of it everywhere */
.framer-x4jrfc-container,
nav.framer-bjIcv,
nav.framer-1kalim8 {
  display: none !important;
  visibility: hidden !important;
  height: 0 !important;
  overflow: hidden !important;
  pointer-events: none !important;
}

/*
 * Header SSOT = enhanced homepage Framer nav
 * Source: framer-x4jrfc-container / framer-bjIcv
 * - fixed, centered 92% / max 1200px, 70px row
 * - transparent over dark hero (homepage)
 * - dark glass only on light product pages (readability enhance)
 * - Inter Medium white links, -0.01em
 * - orange Download CTA (product enhance)
 * - one folded hamburger ≤960px
 */
:root {
  --nav-h: 70px;
}

/* Product pages need top offset; Framer homepage hero already has spacing */
body { padding-top: calc(var(--nav-h) + 16px); }
body:has(#main .framer-E6EPM) { padding-top: 0; }

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: transparent;
  border: none;
  color: #fff;
  pointer-events: none;
  padding: 0;
}
.site-header__inner {
  pointer-events: auto;
  box-sizing: border-box;
  width: 92%;
  max-width: 1200px;
  height: var(--nav-h);
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  flex-flow: row;
  align-items: center;
  justify-content: space-between;
  gap: 0;
  position: relative;
  /* Framer default: fully transparent */
  background: transparent;
  border: none;
  border-radius: 0;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
/* Light product pages: same bar, enhanced with dark glass so white links stay legible */
body:not(:has(#main .framer-E6EPM)) .site-header {
  padding-top: 10px;
}
body:not(:has(#main .framer-E6EPM)) .site-header__inner {
  height: 56px;
  background: rgba(0, 0, 0, 0.78);
  backdrop-filter: saturate(140%) blur(18px);
  -webkit-backdrop-filter: saturate(140%) blur(18px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.site-header__brand {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  order: 1;
  text-decoration: none;
  color: #fff;
}
.site-header__brand:hover { color: #fff; text-decoration: none; }
.site-header__logo {
  height: 20px;
  width: auto;
  display: block;
}
.site-header__actions {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
  order: 3;
  margin-left: 16px;
}
.site-header__nav {
  display: flex;
  flex-flow: row;
  align-items: center;
  justify-content: center;
  gap: 24px;
  flex: 1 1 auto;
  order: 2;
  min-width: 0;
}
.site-header__nav a {
  font-family: "Inter", "Inter Placeholder", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-weight: 500;
  font-size: 14px;
  letter-spacing: -0.01em;
  line-height: 1em;
  color: rgb(255, 255, 255);
  text-decoration: none;
  white-space: nowrap;
  border-radius: 8px;
  padding: 6px 4px;
  transition: opacity 0.15s ease;
  opacity: 1;
}
.site-header__nav a:hover {
  opacity: 0.75;
  color: #fff;
  text-decoration: none;
}
.site-header__nav a[aria-current="page"] {
  opacity: 1;
  box-shadow: inset 0 -2px 0 var(--accent);
}
.site-header__nav-cta { display: none; }

.site-header__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--accent);
  color: #fff !important;
  padding: 10px 16px;
  border-radius: 10px;
  font-family: "Inter", "Inter Placeholder", -apple-system, sans-serif;
  font-weight: 600;
  font-size: 13px;
  letter-spacing: -0.01em;
  text-decoration: none !important;
  white-space: nowrap;
  transition: background 0.15s ease, transform 0.12s ease;
}
.site-header__cta:hover {
  background: var(--accent-hover);
  color: #fff !important;
  text-decoration: none !important;
  transform: translateY(-1px);
}

.site-header__toggle {
  display: none;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.08);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}
.site-header__toggle-bar {
  display: block;
  width: 16px;
  height: 2px;
  border-radius: 2px;
  background: #fff;
  transition: transform 0.18s ease, opacity 0.18s ease;
}
.site-header.is-open .site-header__toggle-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.site-header.is-open .site-header__toggle-bar:nth-child(2) { opacity: 0; }
.site-header.is-open .site-header__toggle-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
html.site-nav-open { overflow: hidden; }

/* Folded menu — single hamburger panel */
@media (max-width: 960px) {
  body { padding-top: 72px; }
  body:has(#main .framer-E6EPM) { padding-top: 0; }
  .site-header__toggle { display: inline-flex; }
  .site-header__cta { display: none; }
  .site-header__inner {
    height: auto;
    min-height: 56px;
    flex-wrap: wrap;
    padding: 10px 16px;
  }
  body:not(:has(#main .framer-E6EPM)) .site-header__inner {
    height: auto;
  }
  .site-header__nav {
    display: none;
    order: 4;
    flex: 1 0 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
  }
  .site-header.is-open .site-header__nav { display: flex; }
  .site-header__nav a {
    padding: 14px 2px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 16px;
    line-height: 1.2;
    box-shadow: none !important;
  }
  .site-header__nav-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 12px;
    background: var(--accent);
    color: #fff !important;
    padding: 12px 16px;
    border-radius: 10px;
    font-weight: 600;
    border-bottom: 0 !important;
  }
  .site-header__nav-cta:hover { background: var(--accent-hover); color: #fff !important; }
}


/* ------------- Footer (navy + wordmark, homepage-aligned) ------------- */
.site-footer {
  background: var(--bg-dark);
  color: var(--fg-inverse);
  padding: 64px 24px 40px;
  font-family: var(--font-light);
}
.site-footer a {
  color: rgba(240, 247, 255, 0.7);
  text-decoration: none;
  transition: color 0.15s ease;
}
.site-footer a:hover {
  color: #fff;
  text-decoration: none;
}
.site-footer__inner {
  max-width: var(--max-w-wide);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(220px, 1.1fr) repeat(3, 1fr);
  gap: 40px 32px;
  align-items: start;
}
.site-footer__brand-block {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.site-footer__brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}
.site-footer__brand:hover { text-decoration: none; }
.site-footer__logo {
  height: 28px;
  width: auto;
  display: block;
}
.site-footer__tagline {
  opacity: 0.65;
  font-size: 13px;
  line-height: 1.55;
  max-width: 280px;
  margin: 0;
  color: rgba(240, 247, 255, 0.7);
}
.site-footer__cta {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  background: var(--accent);
  color: #fff !important;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  padding: 10px 16px;
  border-radius: var(--radius-btn);
  text-decoration: none !important;
  transition: background 0.15s ease, transform 0.12s ease;
}
.site-footer__cta:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
  color: #fff !important;
}
.site-footer__social {
  display: flex;
  flex-wrap: nowrap;
  gap: 8px;
  margin-top: 4px;
}
.site-footer__social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 6px;
  background: rgba(240, 247, 255, 0.08);
  color: rgba(240, 247, 255, 0.8) !important;
  text-decoration: none !important;
}
.site-footer__social a:hover {
  background: var(--accent-soft);
  color: #fff !important;
}
.site-footer__social a svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
}
.site-footer__cols {
  display: contents;
}
.site-footer__col {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.site-footer__col-title {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-family: var(--font-display);
  color: rgba(240, 247, 255, 0.45);
  margin: 0 0 14px;
  font-weight: 600;
}
.site-footer__col a {
  display: block;
  font-size: 14px;
  margin-bottom: 10px;
  line-height: 1.4;
}
.site-footer__bottom {
  max-width: var(--max-w-wide);
  margin: 40px auto 0;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 13px;
  color: rgba(240, 247, 255, 0.5);
}
.site-footer__bottom-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}
.site-footer__bottom-links a {
  color: rgba(240, 247, 255, 0.55);
  font-size: 13px;
}
.site-footer__bottom-links a:hover { color: #fff; }


/* ------------- App CTA band ------------- */
.app-cta {
  background: linear-gradient(160deg, #1a1a2e 0%, #12121f 55%, #1a1220 100%);
  padding: 72px 24px;
  text-align: center;
  color: var(--fg-inverse);
  position: relative;
  overflow: hidden;
}
.app-cta::before {
  content: "";
  position: absolute;
  inset: -40% auto auto 50%;
  transform: translateX(-50%);
  width: 640px;
  height: 320px;
  background: radial-gradient(ellipse at center, rgba(255, 101, 41, 0.18), transparent 70%);
  pointer-events: none;
}
.app-cta__inner {
  max-width: 640px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}
.app-cta__heading {
  font-family: var(--font-display);
  font-size: clamp(24px, 3.5vw, 32px);
  font-weight: 600;
  margin: 0 0 14px;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: #fff;
}
.app-cta__sub {
  font-size: 16px;
  opacity: 0.72;
  margin: 0 0 28px;
  line-height: 1.6;
  color: rgba(240, 247, 255, 0.78);
}
.app-cta__buttons {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}
.app-cta__btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 24px;
  border-radius: var(--radius-btn);
  font-size: 15px;
  font-weight: 600;
  font-family: var(--font-display);
  text-decoration: none !important;
  transition: opacity 0.15s, transform 0.12s, background 0.15s;
}
.app-cta__btn:hover {
  opacity: 0.95;
  transform: translateY(-1px);
  text-decoration: none !important;
}
.app-cta__btn--apple {
  background: var(--accent);
  color: #fff !important;
}
.app-cta__btn--apple:hover {
  background: var(--accent-hover);
  color: #fff !important;
}
.app-cta__btn--ghost {
  background: rgba(255, 255, 255, 0.08);
  color: #fff !important;
  border: 1px solid rgba(255, 255, 255, 0.14);
}


@media (prefers-reduced-motion: reduce) {
  .app-cta__btn,
  .site-header__cta,
  .site-footer__cta,
  .site-header__toggle-bar {
    transition: none;
  }
  .app-cta__btn:hover,
  .site-header__cta:hover,
  .site-footer__cta:hover {
    transform: none;
  }
}
@media (max-width: 900px) {
  .site-footer__inner {
    grid-template-columns: 1fr 1fr;
  }
  .site-footer__brand-block {
    grid-column: 1 / -1;
  }
}
@media (max-width: 720px) {
  .site-footer__inner {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .site-footer__social { flex-wrap: wrap; }
  .site-footer__bottom { flex-direction: column; align-items: flex-start; }
}
