/* =========================================================
   JGDEngage — Shared Design System
   Light, airy, premium. Gradient used only as gentle accent.
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:ital,wght@0,400;0,500;0,600;0,700;0,800;1,500&display=swap');

:root{
  /* Brand gradient (from logo) */
  --purple: #8B5CF6;
  --pink: #C2488C;
  --orange: #E4703C;
  --gradient: linear-gradient(92deg, var(--purple) 0%, var(--pink) 52%, var(--orange) 100%);

  /* Icon accent colours (used sparingly — blobs, dots, thin lines) */
  --icon-pink: #D9689F;
  --icon-yellow: #F1CD68;
  --icon-sky: #6ED2F0;
  --icon-blue: #4FA8D8;

  /* Base */
  --bg: #FBFAF7;
  --bg-alt: #F5F1EA;
  --bg-deep: #F0EBE1;
  --card: #FFFFFF;
  --ink: #1E1B24;
  --ink-soft: #5B5766;
  --ink-faint: #8B8794;
  --line: #E9E3D8;
  --line-soft: #F0EBE0;

  --shadow-sm: 0 2px 10px -4px rgba(30,27,36,0.08);
  --shadow-md: 0 16px 40px -18px rgba(30,27,36,0.16);
  --shadow-lg: 0 30px 70px -25px rgba(30,27,36,0.22);

  --radius-sm: 12px;
  --radius-md: 20px;
  --radius-lg: 28px;
  --radius-pill: 999px;

  --container: 1220px;
  --pad: clamp(20px, 5vw, 64px);
  --section-pad: clamp(64px, 9vw, 128px);

  --ease: cubic-bezier(.22,.9,.32,1);
}

*,*::before,*::after{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }

/* Page loader — shown until the page has finished loading */
.page-loader{
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg);
  opacity: 1;
  visibility: visible;
  transition: opacity .45s var(--ease), visibility .45s var(--ease);
}
.page-loader-icon{
  width: 64px;
  height: 64px;
  animation: page-loader-pulse 1.1s ease-in-out infinite;
}
.page-loader.loaded{
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
@keyframes page-loader-pulse{
  0%, 100% { transform: scale(0.85); opacity: .7; }
  50% { transform: scale(1); opacity: 1; }
}
@media (prefers-reduced-motion: reduce){
  .page-loader-icon{ animation: none; }
}
body{
  margin:0;
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
  overflow-x: hidden;
}
img{ max-width:100%; display:block; }
a{ color: inherit; text-decoration: none; }
ul{ margin:0; padding:0; list-style:none; }
button{ font-family: inherit; }

.container{
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--pad);
}

/* ---------- Typography ---------- */
h1,h2,h3,h4{ margin:0; font-weight:700; letter-spacing:-0.02em; color: var(--ink); }
.eyebrow{ display:none; }
.h1{ font-size: clamp(2.4rem, 4.6vw, 4rem); line-height:1.06; font-weight:800; }
.h2{ font-size: clamp(1.9rem, 3.4vw, 2.7rem); line-height:1.12; font-weight:700; }
.h3{ font-size: clamp(1.2rem, 1.8vw, 1.5rem); line-height:1.3; font-weight:700; }
.lede{ font-size: clamp(1.05rem, 1.4vw, 1.25rem); color: var(--ink-soft); line-height:1.65; font-weight:500; }
p{ color: var(--ink-soft); line-height:1.7; margin:0; }
.small{ font-size:0.9rem; }

/* Gradient word — "engage" ONLY. The single signature brand moment. */
.grad{
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- Buttons ---------- */
.btn{
  display:inline-flex; align-items:center; justify-content:center; gap:10px;
  padding: 15px 30px;
  border-radius: var(--radius-pill);
  font-weight:700; font-size:0.98rem;
  border: none; cursor:pointer;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), background .35s var(--ease);
  white-space: nowrap;
}
.btn-primary{
  background: var(--ink);
  color: #fff;
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover{
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  background: #322D3D;
}
.btn-primary::after{
  content:''; width:6px; height:6px; border-radius:50%;
  background: var(--gradient);
  margin-left:2px;
}
.btn-ghost{
  background: transparent;
  color: var(--ink);
  border: 1.5px solid var(--line);
  padding: 13.5px 28px;
}
.btn-ghost:hover{ border-color: var(--ink); transform: translateY(-2px); }
.btn-sm{ padding: 10px 20px; font-size: 0.88rem; }
.btn-block{ width:100%; }

/* ---------- Header / Nav ---------- */
.site-header{
  position: sticky; top:0; z-index: 100;
  background: rgba(251,250,247,0.82);
  backdrop-filter: blur(14px) saturate(1.4);
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
  border-bottom: 1px solid transparent;
  transition: border-color .3s ease, box-shadow .3s ease;
}
.site-header.scrolled{
  border-bottom-color: var(--line);
  box-shadow: 0 8px 30px -20px rgba(30,27,36,0.25);
}
.nav-wrap{
  display:flex; align-items:center; justify-content:space-between;
  padding: 16px var(--pad);
  max-width: var(--container);
  margin: 0 auto;
}
.brand{ display:flex; align-items:center; gap:10px; }
.brand img{ height: 64px; width:auto; }
.brand-fallback{ font-weight:800; font-size:1.25rem; }
.brand-fallback .jgd{ color:var(--ink); }

.nav-links{ display:flex; align-items:center; gap:6px; }
.nav-links > li{ position:relative; }
.nav-links a.nav-link{
  display:flex; align-items:center; gap:6px;
  padding: 10px 16px;
  font-weight:600; font-size:0.95rem; color: var(--ink);
  border-radius: var(--radius-pill);
  transition: background .25s ease, color .25s ease;
}
.nav-links a.nav-link:hover{ background: var(--bg-alt); }
.nav-links a.nav-link.active{ color: var(--purple); }
.caret{ width:9px; height:9px; border-right:1.6px solid currentColor; border-bottom:1.6px solid currentColor; transform: rotate(45deg); margin-top:-4px; opacity:.6; transition: transform .25s ease; }
.has-dropdown:hover .caret{ transform: rotate(225deg); margin-top:2px; }

.dropdown{
  position:absolute; top: calc(100% + 8px); left:50%; transform: translateX(-50%) translateY(6px);
  background: var(--card);
  border:1px solid var(--line-soft);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding:10px;
  min-width: 240px;
  opacity:0; visibility:hidden;
  transition: opacity .25s ease, transform .25s ease, visibility .25s ease;
}
.has-dropdown:hover .dropdown, .has-dropdown:focus-within .dropdown{
  opacity:1; visibility:visible; transform: translateX(-50%) translateY(0);
}
.dropdown a{
  display:flex; flex-direction:column; gap:2px;
  padding: 11px 14px; border-radius: 12px;
  font-weight:600; font-size:0.92rem; color: var(--ink);
  transition: background .2s ease;
}
.dropdown a span{ font-weight:500; font-size:0.78rem; color: var(--ink-faint); }
.dropdown a:hover{ background: var(--bg-alt); }
.dropdown a.flagship span{ color: var(--pink); }

.nav-right{ display:flex; align-items:center; gap:14px; }
.nav-cta{ display:inline-flex; }

.nav-toggle{
  display:none; background:none; border:none; cursor:pointer; padding:8px;
  flex-direction:column; gap:5px;
}
.nav-toggle span{ width:22px; height:2px; background: var(--ink); border-radius:2px; }

/* ---------- Sections / layout helpers ---------- */
section{ padding: var(--section-pad) 0; position:relative; }
.section-tight{ padding-top: calc(var(--section-pad) * .5); padding-bottom: calc(var(--section-pad) * .5); }
.bg-alt{ background: var(--bg-alt); }
.bg-deep{ background: var(--bg-deep); }
.bg-ink{ background: var(--ink); color:#fff; }
.bg-ink p, .bg-ink .lede{ color: rgba(255,255,255,0.72); }
.bg-ink h1, .bg-ink h2, .bg-ink h3{ color:#fff; }

.grid{ display:grid; gap: 28px; }
.g2{ grid-template-columns: repeat(2, 1fr); }
.g3{ grid-template-columns: repeat(3, 1fr); }
.g4{ grid-template-columns: repeat(4, 1fr); }
.align-center{ align-items:center; }

.stack{ display:flex; flex-direction:column; }
.center-col{ text-align:center; max-width:760px; margin:0 auto; }

.card{
  position:relative;
  background: var(--card);
  border: 1.5px solid var(--line-soft);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  padding: 32px;
  transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .4s ease;
}
/* Gradient ring — appears as the card's outline on hover, drawn in the
   logo's purple -> pink -> orange colours via a mask-composite technique
   so it reads as a true 2px border, not a glow. */
.card::before{
  content:''; position:absolute; inset:-2px; border-radius:inherit;
  padding:2px; background: var(--gradient);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  opacity:0; transition: opacity .4s var(--ease);
  pointer-events:none;
}
.card:hover{
  transform: translateY(-7px) scale(1.012);
  box-shadow: 0 30px 60px -24px rgba(139,92,246,.22), var(--shadow-lg);
  border-color: transparent;
}
.card:hover::before{ opacity:1; }

/* decorative blobs (echo of logo icon, used sparingly) */
.blob{
  position:absolute; border-radius:50%; filter: blur(60px);
  opacity:.35; z-index:0; pointer-events:none;
}

/* ---------- Reveal on scroll ---------- */
[data-reveal]{
  opacity:0; transform: translateY(28px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
}
[data-reveal].in-view{ opacity:1; transform: translateY(0); }
[data-reveal="fade"]{ transform:none; }
[data-reveal-delay="1"]{ transition-delay: .08s; }
[data-reveal-delay="2"]{ transition-delay: .16s; }
[data-reveal-delay="3"]{ transition-delay: .24s; }
[data-reveal-delay="4"]{ transition-delay: .32s; }
[data-reveal-delay="5"]{ transition-delay: .4s; }

/* ---------- Logo carousel ---------- */
.carousel-strip{ overflow:hidden; position:relative; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.carousel-track{ display:flex; gap: 64px; width:max-content; animation: scrollX 32s linear infinite; align-items:center; }
.carousel-track.slow{ animation-duration: 46s; }
.carousel-track span{ font-weight:700; font-size:1.15rem; color: var(--ink-faint); letter-spacing:0.01em; opacity:.75; white-space:nowrap; }
.carousel-track img.carousel-logo{
  height:34px; width:auto; max-width:140px; object-fit:contain; flex-shrink:0;
  opacity:.6; filter:grayscale(100%); transition:opacity .2s ease, filter .2s ease;
}
.carousel-track img.carousel-logo:hover{ opacity:1; filter:grayscale(0%); }
@keyframes scrollX{ from{ transform: translateX(0);} to{ transform: translateX(-50%);} }

/* ---------- Footer ---------- */
.site-footer{ background: var(--ink); color: rgba(255,255,255,.7); padding: 72px 0 32px; }
.footer-top{ display:grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; padding-bottom:48px; border-bottom:1px solid rgba(255,255,255,.12); }
.footer-brand img{ height:46px; margin-bottom:16px; filter: brightness(0) invert(1); opacity:.95; }
.footer-brand p{ color: rgba(255,255,255,.55); max-width:280px; font-size:0.92rem; }
.footer-brand p a:hover{ color:#fff; }
.footer-col h4{ color:#fff; font-size:0.82rem; text-transform:uppercase; letter-spacing:0.07em; margin-bottom:18px; font-weight:700; }
.footer-col li{ margin-bottom:11px; }
.footer-col a{ color: rgba(255,255,255,.62); font-size:0.94rem; font-weight:500; transition:color .2s ease; }
.footer-col a:hover{ color:#fff; }
.footer-bottom{ display:flex; justify-content:space-between; align-items:center; padding-top:28px; flex-wrap:wrap; gap:12px; }
.footer-bottom p{ color: rgba(255,255,255,.4); font-size:0.85rem; }

/* ---------- Forms ---------- */
.field{ margin-bottom:20px; }
.field label{ display:block; font-weight:600; font-size:0.9rem; margin-bottom:8px; }
.field input, .field textarea{
  width:100%; padding:14px 16px; border-radius:14px;
  border:1.5px solid var(--line); background:#fff;
  font-family:inherit; font-size:0.98rem; color:var(--ink);
  transition: border-color .2s ease, box-shadow .2s ease;
}
.field input:focus, .field textarea:focus{
  outline:none; border-color: var(--purple);
  box-shadow: 0 0 0 4px rgba(139,92,246,0.12);
}
.field textarea{ resize:vertical; min-height:110px; }
.field-req::after{ content:' *'; color: var(--pink); }

/* ---------- Misc ---------- */
.tag{
  display:inline-flex; align-items:center; padding:6px 14px; border-radius:var(--radius-pill);
  background: var(--bg-alt); font-weight:600; font-size:0.82rem; color: var(--ink-soft);
  border:1px solid var(--line);
}
/* Bento service-card labels get a brighter, on-brand highlight instead of
   the flat neutral tag — these are the headline of each card. */
.bento-item .tag{
  background: linear-gradient(120deg, rgba(139,92,246,.16), rgba(194,72,140,.16) 55%, rgba(228,112,60,.16));
  color: var(--ink);
  font-weight:800;
  font-size:0.92rem;
  border-color: transparent;
  padding:8px 16px;
}

.blog-card{ display:flex; flex-direction:column; }
.blog-card .photo-placeholder{ border-radius: 18px; }
.blog-card h3{ line-height:1.3; }
.blog-card p{ color: var(--ink-soft); font-size:0.98rem; }

hr.rule{ border:none; border-top:1px solid var(--line); margin: 40px 0; }

.stat{ display:flex; flex-direction:column; gap:6px; }
.stat .num{ font-size: clamp(2.2rem, 4vw, 3.2rem); font-weight:800; letter-spacing:-0.02em; }
.stat .label{ color: var(--ink-soft); font-weight:600; font-size:0.95rem; }

.avatar{
  width:54px; height:54px; border-radius:50%;
  background: var(--gradient); flex-shrink:0;
  display:flex; align-items:center; justify-content:center;
  color:#fff; font-weight:700; font-size:1.05rem;
}

.placeholder-note{
  font-size:0.78rem; color: var(--ink-faint); font-style:italic; margin-top:6px;
}

/* Sticky mobile CTA */
.mobile-cta-bar{ display:none; }

/* ---------- Mobile nav panel ---------- */
.mobile-nav{
  position:fixed; inset:0; top:0; z-index:99;
  background: var(--bg);
  padding: 96px 28px 40px;
  transform: translateY(-8px);
  opacity:0; visibility:hidden;
  transition: opacity .3s ease, transform .3s ease, visibility .3s ease;
  overflow-y:auto;
}
.mobile-nav.open{ opacity:1; visibility:visible; transform:translateY(0); }
.mobile-nav a{
  display:block; padding: 16px 4px; font-weight:700; font-size:1.3rem;
  border-bottom:1px solid var(--line);
}
.mobile-nav .mobile-sub a{ font-size:1.02rem; font-weight:600; padding:12px 4px 12px 18px; color: var(--ink-soft); border-bottom:none; }
.mobile-nav .mobile-cta{ margin-top:28px; }
.mobile-group{ border-bottom:1px solid var(--line); padding-bottom:6px; margin-bottom:6px; }
.mobile-group-label{
  font-size:0.78rem; font-weight:700; letter-spacing:0.06em; text-transform:uppercase;
  color: var(--pink); padding:16px 4px 4px;
}
.nav-toggle.active span:nth-child(1){ transform: translateY(7px) rotate(45deg); }
.nav-toggle.active span:nth-child(2){ opacity:0; }
.nav-toggle.active span:nth-child(3){ transform: translateY(-7px) rotate(-45deg); }
.nav-toggle span{ transition: transform .25s ease, opacity .25s ease; }

/* ---------- Dashboard mockup (stand-in for real product screenshot) ---------- */
.mockup{
  background: var(--card);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow:hidden;
  transform: rotate(0.4deg);
}
.mockup-bar{
  display:flex; align-items:center; gap:7px;
  padding: 14px 18px; background: var(--bg-alt); border-bottom:1px solid var(--line-soft);
}
.mockup-bar span{ width:9px; height:9px; border-radius:50%; background: var(--line); }
.mockup-bar span:nth-child(1){ background:var(--icon-pink); }
.mockup-bar span:nth-child(2){ background:var(--icon-yellow); }
.mockup-bar span:nth-child(3){ background:var(--icon-sky); }
.mockup-url{ margin-left:10px; font-size:0.76rem; color:var(--ink-faint); font-weight:600; background:#fff; padding:4px 12px; border-radius:6px; border:1px solid var(--line-soft); }
.mockup-body{ padding: 26px; }
.mockup-stats{ display:grid; grid-template-columns: repeat(3,1fr); gap:12px; margin-bottom:22px; }
.mockup-stat{ background:var(--bg-alt); border-radius:14px; padding:14px 12px; text-align:center; }
.mockup-stat.accent{ background: linear-gradient(135deg, rgba(139,92,246,0.1), rgba(228,112,60,0.1)); }
.mockup-num{ font-size:1.5rem; font-weight:800; }
.mockup-lbl{ font-size:0.72rem; color:var(--ink-faint); font-weight:600; margin-top:2px; }
.mockup-chart{ display:flex; align-items:flex-end; gap:8px; height:90px; margin-bottom:22px; padding:0 4px; }
.mockup-chart .bar{ flex:1; background: var(--bg-deep); border-radius:6px 6px 2px 2px; }
.mockup-chart .bar.accent{ background: var(--gradient); }
.mockup-rows{ display:flex; flex-direction:column; gap:10px; }
.mockup-row{
  display:flex; align-items:center; gap:10px;
  font-size:0.84rem; font-weight:600; color:var(--ink-soft);
  background:var(--bg-alt); padding:10px 12px; border-radius:10px;
}
.mockup-row .dot{ width:8px; height:8px; border-radius:50%; flex-shrink:0; }
.dot.ok{ background:#3FB985; }
.dot.warn{ background:#E4A63C; }
.tag-mini{ margin-left:auto; font-size:0.68rem; font-weight:700; text-transform:uppercase; letter-spacing:.03em; background:#fff; padding:3px 9px; border-radius:999px; color: var(--purple); }
.tag-mini.warn{ color:#B8791F; }

/* ---------- How it works ---------- */
.how-steps{ display:grid; grid-template-columns:repeat(3,1fr); gap:32px; margin-top:56px; }
.how-num{ font-size:0.85rem; font-weight:800; color: var(--pink); letter-spacing:.05em; margin-bottom:14px; }
.how-payoff{
  margin-top:48px; background:var(--card); border:1px solid var(--line-soft);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-md);
  display:grid; grid-template-columns: 1fr 1.2fr; align-items:center; gap:40px;
  padding: 44px;
}
.how-payoff-visual .mockup{ transform:none; }

/* ---------- Bento grid (What it does) ---------- */
.bento{
  display:grid;
  grid-template-columns: repeat(6, 1fr);
  grid-template-rows: auto auto;
  grid-template-areas:
    "a a a a b b"
    "c c d d d d";
  gap: 24px;
  align-items:stretch;
}
.bento-item{ display:flex; flex-direction:column; justify-content:flex-start; cursor:pointer; }
.bento-a{ grid-area:a; }
.bento-b{ grid-area:b; }
.bento-c{ grid-area:c; }
.bento-d{ grid-area:d; }

/* Product cards on Home link out to their product pages */
.card-arrow{
  margin-top:22px; align-self:flex-start;
  width:38px; height:38px; border-radius:50%;
  display:flex; align-items:center; justify-content:center;
  background: var(--bg-alt); color: var(--ink);
  transition: background .35s var(--ease), color .35s var(--ease), transform .35s var(--ease);
}
.card-arrow svg{ width:17px; height:17px; }
.card:hover .card-arrow{ background: var(--gradient); color:#fff; transform: translateX(5px); }

/* ---------- Why list ---------- */
.why-list{ display:flex; flex-direction:column; gap:30px; }
.why-item{ display:flex; gap:20px; align-items:flex-start; padding-bottom:28px; border-bottom:1px solid var(--line); }
.why-item:last-child{ border-bottom:none; padding-bottom:0; }
.why-num{ font-size:1.4rem; font-weight:800; color: var(--ink-faint); flex-shrink:0; width:40px; }

/* ---------- Healthcare hooks grid ---------- */
.hc-hooks{
  display:grid; grid-template-columns: repeat(2, 1fr);
  gap:24px; margin-top:52px;
}
.hc-hook-wide{ grid-column: 1 / -1; display:flex; align-items:center; justify-content:space-between; min-height:200px; }
.photo-placeholder.hc-hook-image{ width:280px; height:180px; flex-shrink:0; }
.hc-owner-feature{
  margin-top:24px; background:var(--card); border:1px solid var(--line-soft);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-md);
  display:grid; grid-template-columns: 1fr 1.1fr; align-items:center; gap:40px;
  padding:44px;
}

/* ---------- Industry hook rows (lighter pages) ---------- */
.hooks-layout{
  display:grid; grid-template-columns: 1.3fr 0.9fr;
  gap:56px; align-items:start; margin-top:52px;
}
.hooks-layout .hooks-alt{ margin-top:0; }
.hooks-visual{ position:sticky; top:110px; }
.hooks-visual .photo-placeholder{ box-shadow: var(--shadow-md); }
.hooks-alt{ display:flex; flex-direction:column; gap:0; margin-top:52px; }
.hook-row{
  display:grid; grid-template-columns: 90px 1fr; gap:24px;
  padding: 32px 0; border-bottom:1px solid var(--line);
  align-items:flex-start;
}
.hook-row:last-child{ border-bottom:none; }
.hook-row .hook-icon{
  width:56px; height:56px; border-radius:16px;
  display:flex; align-items:center; justify-content:center;
  background: var(--bg-alt); font-size:1.4rem;
}
.hook-row.flagged .hook-icon{ background: linear-gradient(135deg, rgba(139,92,246,.14), rgba(228,112,60,.14)); }
.hook-icon .ink-icon{ color: var(--purple); }
.hook-row.flagged .hook-icon .ink-icon{ color: var(--pink); }

/* ---------- Pricing page ---------- */
.toggles{ display:flex; justify-content:center; gap:16px; flex-wrap:wrap; margin-top:36px; }
.toggle-group{
  display:inline-flex; background: var(--bg-alt); border-radius: var(--radius-pill);
  padding:5px; border:1px solid var(--line);
}
.toggle-btn{
  border:none; background:transparent; padding:10px 20px; border-radius: var(--radius-pill);
  font-weight:700; font-size:0.92rem; color: var(--ink-soft); cursor:pointer;
  display:inline-flex; align-items:center; gap:8px;
  transition: background .25s ease, color .25s ease, box-shadow .25s ease;
}
.toggle-btn.active{ background:#fff; color: var(--ink); box-shadow: var(--shadow-sm); }
.save-pill{ background: var(--gradient); color:#fff; font-size:0.68rem; padding:2px 8px; border-radius:999px; font-weight:800; }

.pricing-grid{
  display:grid; grid-template-columns: repeat(6, 1fr); gap:24px; margin-top:12px;
}
.price-card.span-3{ grid-column: span 3; }
.price-card.span-2{ grid-column: span 2; }
.price-block{ margin-top:22px; padding-top:18px; border-top:1px solid var(--line); min-height:66px; }
.price-row{ display:flex; align-items:baseline; gap:10px; flex-wrap:wrap; }
.price-strike{ font-size:1rem; color: var(--ink-faint); text-decoration: line-through; font-weight:600; }
.price-main{ font-size:1.9rem; font-weight:800; }
.price-per{ color: var(--ink-faint); font-weight:600; font-size:0.9rem; }
.price-note{ margin-top:6px; font-size:0.8rem; color: var(--pink); font-weight:600; min-height:16px; }

.faq-list{ max-width:760px; margin:48px auto 0; display:flex; flex-direction:column; }
.faq-item{ padding:26px 0; border-bottom:1px solid var(--line); }
.faq-item:last-child{ border-bottom:none; }

/* ---------- Results page ---------- */
.story-feature{
  display:grid; grid-template-columns: 1.1fr 1fr; gap:40px;
  padding:40px;
}
.story-feature.reverse{ grid-template-columns: 1fr 1.1fr; }
.story-feature.reverse .story-quote{ order:-1; }
.story-meta{ display:flex; flex-direction:column; gap:20px; }
.story-line{ padding-left:16px; border-left:2px solid var(--line); }
.story-label{ display:block; font-size:0.72rem; font-weight:800; text-transform:uppercase; letter-spacing:.06em; color: var(--purple); margin-bottom:4px; }
.story-quote{ background: var(--bg-alt); border-radius: var(--radius-md); padding:28px; }
.contact-card p{ font-weight:600; color: var(--ink-soft); }
.quote-chip{
  display:inline-block; background:#fff; border:1px solid var(--line-soft); border-radius: var(--radius-md);
  padding:16px 22px; font-weight:600; font-size:0.95rem; color: var(--ink-soft);
  box-shadow: var(--shadow-sm); white-space:normal; max-width:340px;
}

/* ---------- Hero wave (gradient, logo colours) ---------- */
.hero{ overflow:hidden; }
.hero-wave{
  position:absolute; left:0; right:0; bottom:0; width:100%; height:auto;
  z-index:0; pointer-events:none; line-height:0;
}
.hero-wave svg{ display:block; width:100%; height:auto; }
.hero > .container{ position:relative; z-index:1; }

/* ---------- Hero entrance animation (Home) ---------- */
.hero-headline .line{
  display:block; opacity:0; transform: translateY(26px);
  animation: heroLineIn .85s var(--ease) forwards;
}
.hero-headline .line:nth-child(1){ animation-delay:.12s; }
.hero-headline .line:nth-child(2){ animation-delay:.28s; }
@keyframes heroLineIn{ to{ opacity:1; transform:translateY(0); } }

.hero-fade-item{ opacity:0; transform: translateY(18px); animation: heroLineIn .8s var(--ease) forwards; }
.hero-fade-item.d1{ animation-delay:.05s; }
.hero-fade-item.d2{ animation-delay:.5s; }
.hero-fade-item.d3{ animation-delay:.62s; }
.hero-fade-item.d4{ animation-delay:.74s; }

.grad-shimmer{
  background-size: 200% auto;
  animation: shimmer 5s linear infinite;
}
@keyframes shimmer{ 0%{ background-position:0% 50%; } 100%{ background-position:200% 50%; } }

/* ---------- Avatar / photo placeholders ---------- */
.avatar-img{
  width:54px; height:54px; border-radius:50%; flex-shrink:0;
  object-fit:cover; background:var(--bg-alt); border:1px solid var(--line-soft);
}
.photo-placeholder{
  border-radius: var(--radius-md); overflow:hidden; border:1px solid var(--line-soft);
  box-shadow: var(--shadow-sm); width:100%; display:block;
}
.photo-placeholder img{ width:100%; height:100%; object-fit:cover; display:block; }
.photo-placeholder.ratio-wide{ aspect-ratio: 16/10; }
.photo-placeholder.ratio-square{ aspect-ratio: 1/1; }
.photo-placeholder.ratio-tall{ aspect-ratio: 4/5; }

/* ---------- Blog / article pages ---------- */
.back-link{ display:inline-flex; align-items:center; gap:6px; font-weight:700; font-size:0.9rem; color: var(--ink-soft); transition: color .2s ease; }
.back-link:hover{ color: var(--purple); }

.blog-hero{ position:relative; padding-top:clamp(120px,14vw,168px); padding-bottom:clamp(48px,6vw,72px); overflow:hidden; }
.blog-hero .bg-image{ position:absolute; inset:0; z-index:0; }
.blog-hero .bg-image .photo-placeholder{ width:100%; height:100%; border-radius:0; border:none; box-shadow:none; }
.blog-hero .bg-image img{ opacity:.14; }
.blog-hero .bg-image::after{
  content:''; position:absolute; inset:0;
  background: linear-gradient(180deg, rgba(251,250,247,.55) 0%, var(--bg) 88%);
}
.blog-hero .container{ position:relative; z-index:1; }
.blog-meta{ margin-top:16px; font-size:0.9rem; font-weight:600; color: var(--ink-faint); }

.blog-layout{ display:grid; grid-template-columns: 1fr 280px; gap:56px; align-items:start; }
.blog-content{ max-width:720px; }
.blog-content h2{ font-size:clamp(1.5rem,2.4vw,1.9rem); font-weight:800; margin:44px 0 16px; line-height:1.25; scroll-margin-top:110px; }
.blog-content h2:first-child{ margin-top:0; }
.blog-content h3{ font-size:1.15rem; font-weight:700; margin:28px 0 10px; }
.blog-content p{ color: var(--ink-soft); font-size:1.02rem; line-height:1.75; margin-bottom:16px; }
.blog-content ul, .blog-content ol{ color: var(--ink-soft); font-size:1.02rem; line-height:1.75; margin:0 0 20px; padding-left:22px; }
.blog-content li{ margin-bottom:8px; }
.blog-content strong{ color: var(--ink); font-weight:700; }
.blog-content blockquote{
  margin:28px 0; padding:22px 26px; border-radius:var(--radius-md);
  background: var(--bg-alt); border-left:4px solid transparent;
  border-image: var(--gradient) 1;
  font-size:1.08rem; font-weight:600; color:var(--ink); font-style:normal;
}
.blog-content table{ width:100%; border-collapse:collapse; margin:24px 0 28px; font-size:0.95rem; }
.blog-content th, .blog-content td{ text-align:left; padding:12px 16px; border-bottom:1px solid var(--line); }
.blog-content th{ color:var(--ink-faint); text-transform:uppercase; font-size:0.76rem; letter-spacing:0.06em; font-weight:700; }
.blog-content td{ color: var(--ink-soft); }

.blog-toc{ position:sticky; top:110px; background:var(--card); border:1px solid var(--line-soft); border-radius:var(--radius-md); padding:24px; box-shadow:var(--shadow-sm); }
.toc-label{ font-size:0.76rem; text-transform:uppercase; letter-spacing:0.07em; font-weight:700; color:var(--ink-faint); margin-bottom:14px; }
.blog-toc nav{ display:flex; flex-direction:column; gap:11px; }
.blog-toc nav a{ font-size:0.92rem; font-weight:600; color:var(--ink-soft); transition:color .2s ease; }
.blog-toc nav a:hover{ color: var(--purple); }

.faq-list{ max-width:760px; }
.faq-item{ border-bottom:1px solid var(--line); padding:20px 0; }
.faq-item summary{ cursor:pointer; font-weight:700; font-size:1.02rem; list-style:none; display:flex; justify-content:space-between; align-items:center; gap:16px; }
.faq-item summary::-webkit-details-marker{ display:none; }
.faq-item summary::after{ content:'+'; font-size:1.4rem; font-weight:400; color:var(--purple); flex-shrink:0; transition:transform .3s var(--ease); }
.faq-item[open] summary::after{ transform:rotate(45deg); }
.faq-item p{ margin-top:12px; color:var(--ink-soft); line-height:1.7; max-width:640px; }

.blog-hero-icon{
  width:60px; height:60px; border-radius:50%;
  background: var(--gradient); color:#fff;
  display:flex; align-items:center; justify-content:center;
  margin:0 auto 18px; position:relative; z-index:1;
  box-shadow: 0 14px 30px -10px rgba(139,92,246,.45);
}
.blog-hero-icon svg{ width:28px; height:28px; }

/* ---------- Standard CTA card (used by cta_section() sitewide) ---------- */
.cta-card{
  position:relative; overflow:hidden; text-align:center;
  background-color: var(--bg-alt);
  background-image: radial-gradient(circle, rgba(30,27,36,0.08) 1.5px, transparent 1.5px);
  background-size: 24px 24px;
  border-radius: var(--radius-lg);
  padding: clamp(36px,5vw,52px) clamp(28px,5vw,56px);
  box-shadow: var(--shadow-md);
}
.cta-card::before{
  content:''; position:absolute; inset:0; border-radius:inherit; padding:2px;
  background: var(--gradient);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  opacity:.5; pointer-events:none;
}
.cta-icon{
  position:relative; z-index:1;
  width:60px; height:60px; border-radius:50%;
  background: var(--gradient); color:#fff;
  display:flex; align-items:center; justify-content:center;
  margin:0 auto 18px;
  box-shadow: 0 14px 30px -10px rgba(139,92,246,.45);
}
.cta-icon svg{ width:26px; height:26px; }
.cta-card h2, .cta-card p, .cta-card > div{ position:relative; z-index:1; }

/* ---------- Hero animated product stage (right column) ---------- */
.hero-stage{ width:100%; }
.hero-stage-tabs{ display:flex; gap:10px; margin-bottom:18px; transition:opacity .3s ease, visibility .3s ease, transform .3s ease; }
.hero-stage-tabs.tabs-hidden{ opacity:0; visibility:hidden; transform:translateY(-6px); pointer-events:none; }
.stage-tab{
  font-size:0.8rem; font-weight:700; color:var(--ink-faint);
  background:#fff; border:1px solid var(--line-soft); border-radius:var(--radius-pill);
  display:inline-flex; align-items:center; gap:7px;
  padding:7px 18px 7px 14px; cursor:pointer; user-select:none;
  transition: background .3s ease, color .3s ease, border-color .3s ease, box-shadow .3s ease, transform .15s ease;
}
.stage-tab svg{ width:15px; height:15px; flex-shrink:0; }
.stage-tab:hover{ transform:translateY(-1px); box-shadow:var(--shadow-sm); }
.stage-tab.active{ background:var(--gradient); color:#fff; border-color:transparent; box-shadow:0 10px 22px -10px rgba(139,92,246,.4); }

.hero-stage-viewport{ position:relative; height:460px; }
.hero-scene{
  position:absolute; inset:0;
  display:flex; align-items:center; justify-content:center;
  opacity:0; visibility:hidden; transition:opacity .8s ease;
  pointer-events:none;
}
.hero-scene.active{ opacity:1; visibility:visible; pointer-events:auto; }
.scene-screen{ position:relative; width:100%; max-width:400px; transition:max-width .4s ease; }
.hero-scene[data-scene="dashboard"] .scene-screen{ max-width:480px; }

.event-card{
  position:absolute; z-index:4;
  display:flex; align-items:center; gap:10px;
  background:#fff; border-radius:var(--radius-md);
  padding:11px 16px 11px 13px; box-shadow: 0 18px 36px -16px rgba(139,92,246,.4), var(--shadow-md);
  width:min(220px,68vw); opacity:0;
  animation-name: eventInLeft; animation-duration:4.8s; animation-timing-function: ease-in-out; animation-iteration-count:infinite;
}
.event-card::before{ content:''; position:absolute; left:0; top:9px; bottom:9px; width:4px; border-radius:4px; background:var(--gradient); }
.event-card.side-left{ left:-30px; }
.event-card.side-right{ right:-30px; animation-name: eventInRight; }
@keyframes eventInLeft{
  0%{ opacity:0; transform:translateX(-24px) scale(.94); }
  12%{ opacity:1; transform:translateX(0) scale(1); }
  80%{ opacity:1; transform:translateX(0) scale(1); }
  100%{ opacity:0; transform:translateX(14px) scale(.98); }
}
@keyframes eventInRight{
  0%{ opacity:0; transform:translateX(24px) scale(.94); }
  12%{ opacity:1; transform:translateX(0) scale(1); }
  80%{ opacity:1; transform:translateX(0) scale(1); }
  100%{ opacity:0; transform:translateX(-14px) scale(.98); }
}
.event-icon{ width:34px; height:34px; border-radius:50%; background:var(--bg-alt); display:flex; align-items:center; justify-content:center; color:var(--purple); flex-shrink:0; position:relative; animation: iconPulse 2.4s ease-in-out infinite; }
.event-icon svg{ width:17px; height:17px; }
.event-icon.ring::after{ content:''; position:absolute; inset:-4px; border-radius:50%; border:2px solid var(--purple); opacity:0; animation: ringPulse 1.6s ease-out infinite; }
@keyframes ringPulse{ 0%{ transform:scale(.7); opacity:.7; } 100%{ transform:scale(1.5); opacity:0; } }
@keyframes iconPulse{ 0%,100%{ transform:scale(1); } 50%{ transform:scale(1.12); } }
.event-body{ min-width:0; }
.event-label{ font-size:0.64rem; font-weight:800; text-transform:uppercase; letter-spacing:.04em; color:var(--purple); }
.event-title{ font-size:0.85rem; font-weight:800; color:var(--ink); margin-top:2px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.event-sub{ font-size:0.73rem; color:var(--ink-soft); margin-top:1px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.event-dot{ width:8px; height:8px; border-radius:50%; margin-left:auto; flex-shrink:0; }
.event-dot.ok{ background:#3FB985; }
.event-dot.pending{ background:#E4A63C; }

.flash-highlight{ animation: flashHighlight 4.8s ease-in-out infinite; }
@keyframes flashHighlight{ 0%,68%{ background:var(--bg-alt); } 80%{ background:rgba(139,92,246,.16); } 100%{ background:var(--bg-alt); } }

.mockup-stats-5{ grid-template-columns:repeat(5,1fr); }

.pipeline{ display:grid; grid-template-columns:repeat(3,1fr); gap:10px; }
.pipeline-col{ background:var(--bg-alt); border-radius:14px; padding:12px 10px; min-height:150px; }
.pipeline-col h4{ font-size:0.68rem; text-transform:uppercase; letter-spacing:.04em; color:var(--ink-faint); font-weight:700; margin:0 0 10px; }
.pipeline-card{ background:#fff; border-radius:10px; padding:9px 10px; font-size:0.78rem; font-weight:700; color:var(--ink); box-shadow:var(--shadow-sm); margin-bottom:8px; }
.pipeline-card span{ display:block; font-size:0.7rem; font-weight:600; color:var(--ink-faint); margin-top:2px; }

.phone-mockup{ width:200px; margin:0 auto; background:var(--ink); border-radius:30px; padding:8px; box-shadow:var(--shadow-lg); }
.phone-screen{ background:#ECE9E1; border-radius:20px; overflow:hidden; height:310px; display:flex; flex-direction:column; }
.phone-header{ background:#075E54; color:#fff; padding:9px 13px; font-size:0.78rem; font-weight:700; display:flex; align-items:center; gap:8px; }
.phone-header img{ width:22px; height:22px; border-radius:50%; background:#fff; padding:2px; flex-shrink:0; }
.phone-body{ flex:1; padding:11px; display:flex; flex-direction:column; gap:7px; overflow:hidden; justify-content:flex-end; }
.chat-bubble{ max-width:82%; padding:7px 11px; border-radius:14px; font-size:0.72rem; line-height:1.35; opacity:0; animation: bubbleIn .5s ease forwards; animation-fill-mode:forwards; }
.chat-bubble.in{ background:#fff; align-self:flex-start; border-bottom-left-radius:4px; }
.chat-bubble.out{ background:#DCF8C6; align-self:flex-end; border-bottom-right-radius:4px; }
@keyframes bubbleIn{ from{ opacity:0; transform:translateY(8px); } to{ opacity:1; transform:translateY(0); } }
.chat-ticks{ font-size:0.58rem; color:#4FA8D8; margin-top:2px; text-align:right; }
.typing-dots{ display:inline-flex; gap:3px; background:#fff; padding:7px 11px; border-radius:14px; align-self:flex-start; opacity:0; animation: bubbleIn .5s ease forwards; }
.typing-dots span{ width:5px; height:5px; border-radius:50%; background:var(--ink-faint); display:inline-block; animation: typingBounce 1s ease-in-out infinite; }
.typing-dots span:nth-child(2){ animation-delay:.15s; }
.typing-dots span:nth-child(3){ animation-delay:.3s; }
@keyframes typingBounce{ 0%,60%,100%{ transform:translateY(0); } 30%{ transform:translateY(-3px); } }

.chatbot-panel{ display:none; }

.hero-stage-caption{ text-align:center; margin-top:14px; font-weight:700; color:var(--ink-soft); font-size:0.86rem; }

@media (prefers-reduced-motion: reduce){
  .hero-scene{ transition:none; }
  .event-card, .event-icon, .event-icon.ring::after, .flash-highlight, .chat-bubble, .typing-dots, .typing-dots span{ animation:none !important; opacity:1 !important; transform:none !important; }
}

@media (max-width:900px){
  .hero-stage-viewport{ height:auto; min-height:0; padding:20px 0; }
  .hero-scene{ position:relative; display:none; }
  .hero-scene.active{ display:flex; }
  .event-card{ display:none; }
  .phone-mockup{ width:190px; }
  .phone-screen{ height:290px; }
  .mockup-stats-5{ grid-template-columns:repeat(3,1fr); }
}
@media (max-width:480px){
  .mockup-stats-5{ grid-template-columns:repeat(2,1fr); }
  .pipeline{ grid-template-columns:1fr; }
}

/* ---------- Responsive ---------- */
@media (max-width: 980px){
  .g2, .g3, .g4{ grid-template-columns: 1fr; }
  .nav-links{ display:none; }
  .nav-toggle{ display:flex; }
  .footer-top{ grid-template-columns: 1fr 1fr; }
  section{ padding: calc(var(--section-pad) * .72) 0; }
  .how-steps{ grid-template-columns: 1fr; gap:36px; }
  .how-payoff{ grid-template-columns: 1fr; padding: 28px; }
  .bento{
    grid-template-columns: 1fr 1fr;
    grid-template-areas:
      "a a"
      "b b"
      "c c"
      "d d";
  }
  .hc-hooks{ grid-template-columns: 1fr; }
  .hc-hook-wide{ grid-column: 1 / -1; flex-direction:column; align-items:flex-start !important; min-height:0; }
  .photo-placeholder.hc-hook-image{ width:100% !important; height:220px; }
  .hc-owner-feature{ grid-template-columns: 1fr; padding:28px; }
  .hook-row{ grid-template-columns: 1fr; }
  .hooks-layout{ grid-template-columns: 1fr; gap:32px; }
  .hooks-visual{ position:static; order:-1; max-width:420px; }
  .blog-layout{ grid-template-columns: 1fr; gap:28px; }
  .blog-toc{ position:static; order:-1; }
  .blog-toc nav{ flex-direction:row; flex-wrap:wrap; gap:10px 18px; }
  .pricing-grid{ grid-template-columns: 1fr 1fr; }
  .price-card.span-3, .price-card.span-2{ grid-column: span 1; }
}
@media (max-width: 640px){
  .pricing-grid{ grid-template-columns: 1fr; }
}
@media (max-width: 900px){
  .story-feature, .story-feature.reverse{ grid-template-columns: 1fr; padding:28px; }
  .story-feature.reverse .story-quote{ order:0; }
}

/* ---------- Small phones ---------- */
@media (max-width: 480px){
  :root{ --pad: 18px; }
  .brand img{ height:46px; }
  .footer-brand img{ height:34px; }
  .nav-wrap{ padding: 12px var(--pad); }
  .btn{ padding: 13px 22px; font-size:0.92rem; }
  .h1{ font-size: clamp(1.9rem, 8vw, 2.6rem); }
  .h2{ font-size: clamp(1.6rem, 7vw, 2rem); }
  .mockup-body{ padding:18px; }
  .mockup-stats{ gap:8px; }
  .mockup-num{ font-size:1.2rem; }
  .card{ padding:24px; }
  .how-payoff, .hc-owner-feature{ padding:22px; }
  .toggles{ flex-direction:column; align-items:center; }
  .price-main{ font-size:1.6rem; }
  .story-quote, .story-feature{ padding:20px; }
  .hero-wave{ opacity:.7; }
  .blog-hero{ padding-top:104px; }
  .faq-item summary{ font-size:0.96rem; }
  .blog-content table{ font-size:0.86rem; }
  .blog-content th, .blog-content td{ padding:9px 8px; }
  .hc-hook-wide{ flex-direction:column; align-items:flex-start !important; min-height:0; }
  .photo-placeholder.hc-hook-image{ width:100% !important; height:220px; }
}

/* ---------- Tablet fine-tuning ---------- */
@media (max-width: 1080px) and (min-width: 981px){
  .container{ padding: 0 32px; }
}
@media (max-width: 980px) and (min-width: 641px){
  .g4{ grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px){
  .footer-top{ grid-template-columns: 1fr; }
  .footer-bottom{ flex-direction:column; align-items:flex-start; }
  .nav-right .btn-primary span.long{ display:none; }
  .bento{ grid-template-columns: 1fr; grid-template-areas: "a" "b" "c" "d"; }
  .mockup{ transform:none; }
}
