/* Synced — marketing site shared styles */

@import url('./tokens.css');
@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,400;9..144,500;9..144,600;9..144,700&family=Montserrat:wght@400;500;600;700;800&display=swap');

:root {
  --site-pad: clamp(24px, 5vw, 80px);
  --max-w: 1280px;
  --radius-card: 24px;

  /* Marketing-bolder color extensions */
  --warm-cream: #FDF6E9;
  --warm-cream-2: #FBE9C8;
  --soft-pink: #FFE5DC;
  --soft-mint: #DBF0E2;
  --soft-sky:  #D7EAFE;
  --soft-lavender: #E8E2F8;
  --ink: #0B1228;
  --ink-2: #1c264a;
  --paper: #FDFAF4;
  --paper-2: #F6F1E7;

  --serif: 'Fraunces', 'Times New Roman', serif;
}

* { box-sizing: border-box; }
html, body {
  margin: 0;
  padding: 0;
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body {
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }

/* ============ TYPE ============ */
.eyebrow {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brand-primary);
  opacity: 0.7;
}
.display {
  font-family: var(--serif);
  font-weight: 500;
  line-height: 0.95;
  letter-spacing: -0.025em;
  color: var(--ink);
  font-size: clamp(48px, 9vw, 132px);
  margin: 0;
}
.display em {
  font-style: italic;
  font-weight: 400;
  color: var(--brand-primary);
}
h1, h2, h3, h4 { color: var(--ink); }
.h1 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(40px, 6.4vw, 92px);
  line-height: 1.0;
  letter-spacing: -0.02em;
  margin: 0;
}
.h1 em { font-style: italic; font-weight: 400; color: var(--brand-primary); }
.h2 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(32px, 4.4vw, 64px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 0;
}
.h2 em { font-style: italic; font-weight: 400; color: var(--brand-primary); }
.h3 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(24px, 2.6vw, 36px);
  line-height: 1.1;
  letter-spacing: -0.01em;
  margin: 0;
}
.lead {
  font-size: clamp(17px, 1.4vw, 22px);
  line-height: 1.5;
  color: var(--grey-70);
  font-weight: 400;
  max-width: 60ch;
  margin: 0;
}
.subtle { color: var(--grey-60); }

/* ============ BUTTONS ============ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  border-radius: 999px;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: -0.005em;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform .25s cubic-bezier(.2,.8,.2,1), background-color .2s, color .2s, box-shadow .25s, border-color .2s;
  text-decoration: none;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn .arrow {
  display: inline-block;
  transition: transform .25s cubic-bezier(.2,.8,.2,1);
}
.btn:hover .arrow { transform: translateX(4px); }

.btn-primary {
  background: var(--brand-primary);
  color: white;
  box-shadow: 0 4px 16px rgba(28,38,74,0.18);
}
.btn-primary:hover {
  background: #0f1735;
  box-shadow: 0 10px 28px rgba(28,38,74,0.30);
}
.btn-secondary {
  background: white;
  color: var(--brand-primary);
  border-color: var(--grey-10);
}
.btn-secondary:hover { border-color: var(--ink); }
.btn-ghost {
  background: transparent;
  color: var(--ink);
  padding: 14px 4px;
}
.btn-ghost:hover { color: var(--brand-primary); }

.btn-cyan {
  background: var(--mark-cyan);
  color: var(--ink-2);
}
.btn-cyan:hover {
  background: #4eb1c9;
  box-shadow: 0 10px 28px rgba(105, 196, 216, 0.4);
}

.btn-cream {
  background: var(--brand-tertiary);
  color: var(--ink-2);
}
.btn-cream:hover {
  background: var(--brand-tertiary-darker);
  box-shadow: 0 10px 28px rgba(254, 240, 207, 0.6);
}

/* ============ NAV ============ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 14px var(--site-pad);
  transition: background-color .3s, backdrop-filter .3s, box-shadow .3s, border-color .3s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(253, 250, 244, 0.85);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-bottom-color: rgba(11, 18, 40, 0.06);
}

/* ---- Dark-background variant ---- */
.nav.on-dark {
  /* Soft cream/glass panel even at the top so text reads against dark hero */
  background: rgba(11, 18, 40, 0.55);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid rgba(253, 246, 230, 0.08);
}
.nav.on-dark .nav-logo { color: var(--warm-cream); }
.nav.on-dark .nav-links a { color: var(--warm-cream); opacity: 0.92; }
.nav.on-dark .nav-links a:hover { background: rgba(253, 246, 230, 0.14); opacity: 1; }
.nav.on-dark .nav-links a.active { color: var(--mark-cyan); opacity: 1; }
.nav.on-dark .nav-btn-secondary {
  background: transparent;
  color: var(--warm-cream);
  border-color: rgba(253, 246, 230, 0.35);
}
.nav.on-dark .nav-btn-secondary:hover {
  background: rgba(253, 246, 230, 0.12);
  border-color: var(--warm-cream);
}
.nav.on-dark .nav-btn-primary {
  background: var(--mark-cyan);
  color: var(--ink);
  box-shadow: 0 4px 16px rgba(105, 196, 216, 0.35);
}
.nav.on-dark .nav-btn-primary:hover {
  background: #7fd1e2;
  box-shadow: 0 10px 28px rgba(105, 196, 216, 0.5);
}
.nav.on-dark.scrolled {
  background: rgba(11, 18, 40, 0.78);
  border-bottom-color: rgba(253, 246, 230, 0.12);
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 20px;
  letter-spacing: -0.02em;
  color: var(--brand-primary);
}
.nav-logo img { height: 26px; width: auto; display: block; }
.nav-spacer { flex: 1; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav-links a {
  padding: 10px 14px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  color: var(--grey-80);
  transition: background-color .2s, color .2s;
}
.nav-links a:hover { background: rgba(11,18,40,0.05); color: var(--ink); }
.nav-links a.active { color: var(--brand-primary); font-weight: 600; }
.nav-cta {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* ---- Mobile burger button + slide-down panel ---- */
.nav-burger {
  display: none;
  background: transparent;
  border: 1px solid var(--grey-10);
  border-radius: 999px;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--ink);
  padding: 0;
}
.nav.on-dark .nav-burger {
  border-color: rgba(253, 246, 230, 0.35);
  color: var(--warm-cream);
}
.nav-mobile-panel {
  position: fixed;
  inset: 0;
  top: 0;
  background: rgba(11, 18, 40, 0.4);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 99;
  animation: navfade .2s ease-out;
}
@keyframes navfade { from { opacity: 0; } to { opacity: 1; } }
.nav-mobile-inner {
  position: absolute;
  top: 64px;
  left: 12px;
  right: 12px;
  background: var(--paper);
  border-radius: 24px;
  box-shadow: 0 30px 60px rgba(11, 18, 40, 0.25);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  animation: navslide .3s cubic-bezier(.2,.8,.2,1);
}
@keyframes navslide { from { opacity: 0; transform: translateY(-12px); } to { opacity: 1; transform: translateY(0); } }
.nav-mobile-links { display: flex; flex-direction: column; }
.nav-mobile-links a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 14px;
  border-radius: 14px;
  font-size: 17px;
  font-weight: 500;
  color: var(--ink);
  border-bottom: 1px solid rgba(11, 18, 40, 0.06);
}
.nav-mobile-links a:last-child { border-bottom: none; }
.nav-mobile-links a.active { color: var(--brand-primary); font-weight: 600; }
.nav-mobile-cta { display: flex; flex-direction: column; gap: 8px; padding: 0 4px 4px; }
.nav-mobile-cta .btn { width: 100%; padding: 14px 18px; font-size: 15px; }

@media (max-width: 1024px) {
  .nav-burger { display: inline-flex; }
}

/* ============ AUDIENCE TOGGLE ============ */
.audience-toggle {
  display: inline-flex;
  background: white;
  border: 1px solid var(--grey-10);
  border-radius: 999px;
  padding: 4px;
  gap: 4px;
  box-shadow: 0 2px 8px rgba(11,18,40,0.04);
}
.audience-toggle button {
  border: none;
  background: transparent;
  padding: 8px 18px;
  border-radius: 999px;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 13px;
  color: var(--grey-60);
  cursor: pointer;
  transition: background-color .2s, color .2s;
}
.audience-toggle button.active {
  background: var(--brand-primary);
  color: white;
}

/* ============ SECTIONS ============ */
section { position: relative; }
.section {
  padding: clamp(72px, 12vh, 160px) var(--site-pad);
  max-width: var(--max-w);
  margin: 0 auto;
}
.section-full {
  padding: clamp(72px, 12vh, 160px) var(--site-pad);
}
.section-tight { padding-top: clamp(40px, 6vh, 80px); padding-bottom: clamp(40px, 6vh, 80px); }

/* ============ FOOTER ============ */
.footer {
  background: var(--ink);
  color: white;
  padding: 80px var(--site-pad) 32px;
}
.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
  gap: 40px;
}
.footer-brand .footer-logo {
  display: block;
  margin-bottom: 16px;
  align-self: flex-start;
}
.footer-brand .footer-logo img {
  height: 22.4px;
  width: auto;
  display: block;
}
.footer-brand p {
  color: rgba(255,255,255,0.6);
  font-size: 14px;
  max-width: 28ch;
  line-height: 1.5;
}
.footer h4 {
  color: white;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 600;
  margin: 0 0 16px;
}
.footer ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.footer ul a { color: rgba(255,255,255,0.7); font-size: 14px; transition: color .2s; }
.footer ul a:hover { color: white; }
.footer-bottom {
  max-width: var(--max-w);
  margin: 64px auto 0;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  font-size: 12px;
  color: rgba(255,255,255,0.5);
  flex-wrap: wrap;
}

@media (max-width: 860px) {
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

/* ============ MOTION HELPERS ============ */
/* Reveal-on-scroll: JS sets inline opacity/transform on below-fold elements,
   then clears them when the element enters view. Default state = visible so any
   non-JS or static-render environment shows full content. */
.reveal {
  transition: opacity .9s cubic-bezier(.2,.8,.2,1), transform .9s cubic-bezier(.2,.8,.2,1);
}
.reveal.delay-1 { transition-delay: .08s; }
.reveal.delay-2 { transition-delay: .16s; }
.reveal.delay-3 { transition-delay: .24s; }
.reveal.delay-4 { transition-delay: .32s; }
.reveal.delay-5 { transition-delay: .40s; }

@keyframes float-slow {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  50% { transform: translate(0, -12px) rotate(-1deg); }
}
@keyframes float-mid {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  50% { transform: translate(0, -8px) rotate(1deg); }
}
@keyframes pulse-ring {
  0% { box-shadow: 0 0 0 0 rgba(105, 196, 216, 0.5); }
  100% { box-shadow: 0 0 0 24px rgba(105, 196, 216, 0); }
}

@keyframes shimmer {
  0% { background-position: -200% center; }
  100% { background-position: 200% center; }
}

/* ============ MARQUEE ============ */
.marquee {
  display: flex;
  overflow: hidden;
  gap: 80px;
  mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}
.marquee-track {
  display: flex;
  gap: 80px;
  flex-shrink: 0;
  animation: marquee-scroll 40s linear infinite;
}
@keyframes marquee-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(calc(-100% - 80px)); }
}

/* ============ DECOR ============ */
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.7;
  pointer-events: none;
  z-index: 0;
}

.dot-grid {
  background-image: radial-gradient(circle, rgba(28,38,74,0.12) 1px, transparent 1px);
  background-size: 20px 20px;
}

/* ============ CARD ============ */
.surface {
  background: white;
  border-radius: var(--radius-card);
  box-shadow: 0 10px 40px rgba(11, 18, 40, 0.06), 0 2px 8px rgba(11, 18, 40, 0.04);
}

.tag-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  background: white;
  border: 1px solid var(--grey-10);
  font-size: 12px;
  font-weight: 600;
  color: var(--grey-70);
}
.tag-pill .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--mark-cyan);
}

/* ============ UTIL ============ */
.row { display: flex; }
.col { display: flex; flex-direction: column; }
.center { display: flex; align-items: center; justify-content: center; }
.gap-8 { gap: 8px; } .gap-12 { gap: 12px; } .gap-16 { gap: 16px; } .gap-24 { gap: 24px; } .gap-32 { gap: 32px; } .gap-48 { gap: 48px; }
.mt-8 { margin-top: 8px; } .mt-16 { margin-top: 16px; } .mt-24 { margin-top: 24px; } .mt-32 { margin-top: 32px; } .mt-48 { margin-top: 48px; } .mt-64 { margin-top: 64px; }
.mb-8 { margin-bottom: 8px; } .mb-16 { margin-bottom: 16px; } .mb-24 { margin-bottom: 24px; } .mb-32 { margin-bottom: 32px; } .mb-48 { margin-bottom: 48px; } .mb-64 { margin-bottom: 64px; }
.flex-1 { flex: 1; }
.text-center { text-align: center; }

/* ============ MATERIAL SYMBOLS ICONS ============ */
.mi {
  font-family: 'Material Symbols Outlined';
  font-weight: normal;
  font-style: normal;
  font-size: 20px;
  line-height: 1;
  letter-spacing: normal;
  text-transform: none;
  display: inline-block;
  white-space: nowrap;
  word-wrap: normal;
  direction: ltr;
  -webkit-font-feature-settings: 'liga';
  -webkit-font-smoothing: antialiased;
  font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}
.mi-fill { font-variation-settings: 'FILL' 1, 'wght' 400, 'GRAD' 0, 'opsz' 24; }

/* ============================================================
   RESPONSIVE — tablet & mobile
   Targets inline grid styles via attribute selectors. React
   serializes style props as kebab-case CSS with NO quotes around
   values — e.g. style="grid-template-columns: repeat(6, 1fr)" —
   so selectors must match that form.
   ============================================================ */

/* ---- Tablet: 1024px and below ---- */
@media (max-width: 1024px) {
  /* Hide desktop nav links + book-a-demo CTA; burger handles it */
  .nav-links { display: none !important; }
  .nav-cta { display: none !important; }
  /* 2-column hero/content splits → single column */
  [style*="grid-template-columns: 1.05fr 1fr"],
  [style*="grid-template-columns: 1.1fr 1fr"],
  [style*="grid-template-columns: 1.2fr 1fr"],
  [style*="grid-template-columns: 1fr 1.1fr"],
  [style*="grid-template-columns: 1fr 1.2fr"],
  [style*="grid-template-columns: 1fr 1.3fr"],
  [style*="grid-template-columns: 220px 1fr"] {
    grid-template-columns: 1fr !important;
    gap: 40px !important;
  }
  /* 4-up grids → 2-up */
  [style*="grid-template-columns: repeat(4, 1fr)"] {
    grid-template-columns: repeat(2, 1fr) !important;
  }
  /* 6-up bento → 2-up */
  [style*="grid-template-columns: repeat(6, 1fr)"] {
    grid-template-columns: repeat(2, 1fr) !important;
  }
  [style*="grid-template-columns: repeat(6, 1fr)"] > * {
    grid-column: span 2 !important;
  }
  /* Pricing 3-up */
  [style*="grid-template-columns: 1fr 1fr 1fr"] {
    grid-template-columns: 1fr !important;
    gap: 40px !important;
  }
}

/* ---- Mobile: 720px and below ---- */
@media (max-width: 720px) {
  :root {
    --site-pad: 20px;
  }

  .display { font-size: clamp(40px, 11vw, 64px) !important; line-height: 1.0 !important; }
  .h1 { font-size: clamp(32px, 9vw, 48px) !important; line-height: 1.05 !important; }
  .h2 { font-size: clamp(26px, 7vw, 36px) !important; }
  .h3 { font-size: clamp(20px, 5vw, 26px) !important; }
  .lead { font-size: 16px !important; line-height: 1.55 !important; }

  .nav { padding: 10px 16px !important; gap: 12px !important; }
  .nav-logo { font-size: 17px !important; }
  .nav-logo img { height: 22px !important; }
  .footer-brand .footer-logo img { height: 17.6px !important; }

  .btn { padding: 12px 18px !important; font-size: 14px !important; }

  /* All 2-up grids → single column */
  [style*="grid-template-columns: 1fr 1fr"] {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }
  /* 3-up grids → single column */
  [style*="grid-template-columns: repeat(3, 1fr)"] {
    grid-template-columns: 1fr !important;
    gap: 20px !important;
  }
  /* 4-up grids → 2-up tight */
  [style*="grid-template-columns: repeat(4, 1fr)"] {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 12px !important;
  }
  [style*="grid-template-columns: repeat(6, 1fr)"] {
    grid-template-columns: 1fr !important;
  }
  [style*="grid-template-columns: repeat(6, 1fr)"] > * {
    grid-column: span 1 !important;
  }

  .footer { padding: 56px 20px 24px !important; }
  .footer-inner { grid-template-columns: 1fr 1fr !important; gap: 28px !important; }
  .footer-brand { grid-column: 1 / -1 !important; }
  .footer-bottom { flex-direction: column !important; align-items: flex-start !important; gap: 12px !important; }

  .audience-toggle button { padding: 8px 14px !important; font-size: 12px !important; }

  /* Hide the dashboard left rail on ProviderOS hero on mobile */
  [style*="grid-template-columns: 220px 1fr"] > div:first-child {
    display: none !important;
  }

  /* Sticky sidebars unstick */
  [style*="position: sticky"] {
    position: static !important;
  }

  /* Pricing featured card lift */
  [style*="transform: translateY(-12px)"] {
    transform: none !important;
  }

  /* Floating decoration cards clutter on mobile */
  [style*="animation: float-mid"],
  [style*="animation: float-slow"] {
    display: none !important;
  }

  /* Phone mockup container shrink */
  [style*="height: 520px"] { height: 420px !important; }
}

/* ---- Tiny mobile: 380px and below ---- */
@media (max-width: 380px) {
  :root { --site-pad: 16px; }
  .display { font-size: 38px !important; }
  .h1 { font-size: 30px !important; }
}
