/* ==========================================================================
   AILuce - shared stylesheet
   Tokens: --charcoal --gray --light --teal --white --teal-dark (nothing else)
   ========================================================================== */

@font-face {
  font-family: 'Clash Display';
  src: url('../fonts/ClashDisplay-Variable.woff2') format('woff2');
  font-weight: 200 700;
  font-display: swap;
}
@font-face {
  font-family: 'General Sans';
  src: url('../fonts/GeneralSans-Variable.woff2') format('woff2');
  font-weight: 200 700;
  font-display: swap;
}

:root {
  --charcoal: #2F2F2F;
  --gray: #B6B6B6;
  --light: #DFE3E7;
  --teal: #58C2B0;
  --white: #FFFFFF;
  --teal-dark: #3FA593;

  --font-display: 'Clash Display', 'Avenir Next', 'Segoe UI', system-ui, sans-serif;
  --font-body: 'General Sans', -apple-system, 'Segoe UI', system-ui, sans-serif;

  --container: 1200px;
  --radius: 14px;
  --ease: cubic-bezier(.22, .61, .36, 1);
}

/* Reset ------------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  background: var(--white);
  color: var(--charcoal);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  font-weight: 430;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
ul[role="list"], ol[role="list"] { list-style: none; }

::selection { background: var(--teal); color: var(--charcoal); }

/* Focus ------------------------------------------------------------------ */
:focus-visible {
  outline: 2px solid var(--teal-dark);
  outline-offset: 3px;
  border-radius: 4px;
}
.dark :focus-visible { outline-color: var(--teal); }

/* Skip link */
.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--teal); color: var(--charcoal);
  padding: .6rem 1.2rem; font-weight: 600; z-index: 200; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

/* Type scale ------------------------------------------------------------- */
h1, h2, h3, .display {
  font-family: var(--font-display);
  font-weight: 560;
  letter-spacing: -0.02em;
  line-height: 1.08;
  text-wrap: balance;
}
h1 { font-size: clamp(2.4rem, 1.2rem + 5.2vw, 4.3rem); }
h2 { font-size: clamp(1.8rem, 1.1rem + 3vw, 2.9rem); }
h3 { font-size: clamp(1.25rem, 1rem + 1vw, 1.6rem); letter-spacing: -0.01em; }

.eyebrow {
  display: inline-flex; align-items: center; gap: .6rem;
  font-family: var(--font-body);
  font-size: .78rem;
  font-weight: 650;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--charcoal);
}
.eyebrow::before {
  content: "";
  width: 22px; height: 3px; border-radius: 2px;
  background: var(--teal);
  flex: none;
}
.dark .eyebrow { color: var(--light); }

.lede {
  font-size: clamp(1.05rem, 1rem + .4vw, 1.22rem);
  color: rgba(47, 47, 47, .72);
  max-width: 60ch;
}
.dark .lede { color: rgba(223, 227, 231, .82); }
.muted { color: rgba(47, 47, 47, .72); }
.dark .muted { color: rgba(223, 227, 231, .75); }

.accent { color: var(--teal); }

/* Layout ------------------------------------------------------------------ */
.container { max-width: var(--container); margin-inline: auto; padding-inline: clamp(1.25rem, 4vw, 2.5rem); }
.section { padding-block: clamp(4rem, 6vw + 1.5rem, 7rem); }
.section-tint { background: rgba(223, 227, 231, .38); }
.section-head { max-width: 46rem; margin-bottom: clamp(2.25rem, 4vw, 3.5rem); }
.section-head .eyebrow { margin-bottom: 1rem; }
.section-head .lede { margin-top: 1.1rem; }

.dark {
  background: var(--charcoal);
  color: var(--light);
}
.dark h1, .dark h2, .dark h3 { color: var(--white); }

/* Buttons ------------------------------------------------------------------ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  font-weight: 620; font-size: 1rem;
  padding: .85rem 1.6rem;
  border-radius: 10px;
  text-decoration: none;
  transition: transform .18s var(--ease), box-shadow .18s var(--ease), background-color .18s var(--ease), border-color .18s var(--ease), color .18s var(--ease);
  will-change: transform;
}
.btn:active { transform: translateY(1px) scale(.98); }

.btn-primary {
  background: var(--teal);
  color: var(--charcoal);
  box-shadow: 0 2px 14px rgba(88, 194, 176, .35);
}
.btn-primary:hover {
  background: var(--teal-dark);
  color: var(--white);
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 8px 28px rgba(88, 194, 176, .45);
}

.btn-ghost {
  color: var(--charcoal);
  border: 1px solid rgba(47, 47, 47, .25);
  background: transparent;
}
.btn-ghost:hover {
  transform: translateY(-2px) scale(1.02);
  border-color: var(--teal);
  color: var(--teal-dark);
  box-shadow: 0 6px 22px rgba(88, 194, 176, .25);
}
.dark .btn-ghost { color: var(--light); border-color: rgba(223, 227, 231, .3); }
.dark .btn-ghost:hover { color: var(--teal); border-color: var(--teal); }

.btn-link {
  display: inline-flex; align-items: center; gap: .4rem;
  color: var(--charcoal); font-weight: 620; text-decoration: none;
  border-bottom: 2px solid var(--teal);
  padding-bottom: 2px;
  transition: color .18s var(--ease), gap .18s var(--ease), border-color .18s var(--ease);
}
.btn-link:hover { color: var(--teal-dark); gap: .65rem; }

/* Coming soon badge --------------------------------------------------------- */
.badge-soon {
  display: inline-block;
  font-size: .68rem; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--charcoal);
  background: var(--teal);
  padding: .28rem .65rem;
  border-radius: 100px;
  vertical-align: middle;
}

/* Header ------------------------------------------------------------------ */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  transition: background-color .3s var(--ease), border-color .3s var(--ease), box-shadow .3s var(--ease);
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  background: rgba(255, 255, 255, .85);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom-color: rgba(47, 47, 47, .1);
  box-shadow: 0 2px 20px rgba(47, 47, 47, .06);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 72px;
}
.logo { display: inline-flex; align-items: center; text-decoration: none; }
.logo img { height: 34px; width: auto; }
.logo .logo-img-light { display: none; }

/* dark-hero pages (class on header): light logo + light links until scrolled */
.site-header.on-dark:not(.scrolled) .logo-img-dark { display: none; }
.site-header.on-dark:not(.scrolled) .logo-img-light { display: block; }

.nav-desktop { display: none; }
.nav-desktop a {
  text-decoration: none; color: rgba(47, 47, 47, .78); font-size: .95rem; font-weight: 520;
  padding: .4rem .8rem; border-radius: 8px;
  transition: color .18s var(--ease);
}
.nav-desktop a:hover, .nav-desktop a[aria-current="page"] { color: var(--charcoal); }
.site-header.on-dark:not(.scrolled) .nav-desktop a { color: rgba(223, 227, 231, .8); }
.site-header.on-dark:not(.scrolled) .nav-desktop a:hover,
.site-header.on-dark:not(.scrolled) .nav-desktop a[aria-current="page"] { color: var(--white); }

.header-cta { display: none; }

.nav-toggle {
  display: inline-flex; flex-direction: column; justify-content: center; gap: 5px;
  width: 44px; height: 44px; align-items: center;
  border-radius: 10px;
}
.nav-toggle span {
  display: block; width: 20px; height: 2px; background: var(--charcoal);
  transition: transform .25s var(--ease), opacity .25s var(--ease), background-color .25s var(--ease);
}
.site-header.on-dark:not(.scrolled) .nav-toggle span { background: var(--light); }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-mobile {
  position: fixed; inset: 72px 0 auto 0; z-index: 99;
  background: rgba(255, 255, 255, .97);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(47, 47, 47, .1);
  padding: 1rem clamp(1.25rem, 4vw, 2.5rem) 2rem;
  display: none;
}
.nav-mobile.open { display: block; }
.nav-mobile a {
  display: block; padding: .9rem 0; text-decoration: none;
  color: var(--charcoal); font-family: var(--font-display); font-size: 1.3rem; font-weight: 520;
  border-bottom: 1px solid rgba(47, 47, 47, .08);
}
.nav-mobile .btn { margin-top: 1.25rem; width: 100%; }
.nav-mobile a.btn-primary {
  color: var(--charcoal);
  font-family: var(--font-body); font-size: 1rem;
  border-bottom: 0;
}
.nav-mobile a.btn-primary:hover { color: var(--white); }

@media (min-width: 900px) {
  .nav-desktop { display: flex; gap: .25rem; }
  .header-cta { display: inline-flex; }
  .nav-toggle, .nav-mobile { display: none !important; }
}

/* Hero (homepage, dark) ------------------------------------------------------ */
.hero {
  position: relative;
  padding-top: clamp(7.5rem, 12vh + 4rem, 11rem);
  padding-bottom: clamp(2.5rem, 5vw, 5rem);
  overflow: hidden;
}
.hero-glow {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(640px 420px at 78% 18%, rgba(88, 194, 176, .14), transparent 70%),
    radial-gradient(900px 600px at 15% 95%, rgba(88, 194, 176, .06), transparent 70%);
}
.hero-grid { position: relative; display: grid; gap: 2.5rem; align-items: center; }
@media (min-width: 900px) {
  .hero-grid { grid-template-columns: 1fr 1fr; gap: 3.5rem; }
}
.hero .eyebrow { margin-bottom: 1.25rem; }
.hero h1 { margin-bottom: 1.1rem; }
.hero .rotate-line {
  font-size: clamp(1.1rem, 1rem + .6vw, 1.35rem);
  font-weight: 520;
  color: rgba(223, 227, 231, .85);
  margin-bottom: 1.4rem;
  min-height: 1.7em;
}
.rotate-word {
  display: inline-block;
  color: var(--teal);
  font-weight: 650;
  transition: opacity .3s var(--ease), transform .3s var(--ease);
}
.rotate-word.swap { opacity: 0; transform: translateY(8px); }
.hero .lede { margin-bottom: 1.9rem; max-width: 46ch; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: .9rem; }

/* Hero load sequence */
.hero-seq > * { opacity: 0; transform: translateY(18px); }
.hero-loaded .hero-seq > * { animation: rise .55s var(--ease) forwards; }
.hero-loaded .hero-seq > *:nth-child(1) { animation-delay: .05s; }
.hero-loaded .hero-seq > *:nth-child(2) { animation-delay: .15s; }
.hero-loaded .hero-seq > *:nth-child(3) { animation-delay: .28s; }
.hero-loaded .hero-seq > *:nth-child(4) { animation-delay: .4s; }
.hero-loaded .hero-seq > *:nth-child(5) { animation-delay: .5s; }
.hero-visual { opacity: 0; }
.hero-loaded .hero-visual { animation: fadein .7s var(--ease) .4s forwards; }

@keyframes rise { to { opacity: 1; transform: none; } }
@keyframes fadein { to { opacity: 1; } }

/* Pipeline diagram ------------------------------------------------------------ */
.pipeline { width: 100%; height: auto; }
.pipeline .pipe {
  stroke: rgba(223, 227, 231, .16);
  stroke-width: 1.5;
  fill: none;
}
.pipeline .in-node rect, .pipeline .out-node rect {
  fill: rgba(223, 227, 231, .06);
  stroke: rgba(223, 227, 231, .22);
  stroke-width: 1;
  rx: 7;
}
.pipeline .out-node rect { stroke: rgba(88, 194, 176, .45); }
.pipeline .node-text {
  font-family: var(--font-body); font-size: 11.5px; font-weight: 520;
  fill: var(--light); letter-spacing: .02em;
}
.pipeline .out-node .node-text { fill: var(--teal); font-weight: 650; }
.pipeline .core-ring {
  fill: none; stroke: var(--teal); stroke-width: 1.5;
  opacity: .5;
}
.pipeline .core-circle { fill: var(--teal); }
.pipeline .core-glow { fill: var(--teal); opacity: .18; }
.pipeline .core-text {
  font-family: var(--font-display); font-size: 12px; font-weight: 650;
  fill: var(--charcoal); letter-spacing: .04em;
}
.pipeline .dot { fill: var(--teal); }
.pipeline .dot-trail { fill: var(--teal); opacity: .35; }

.pipeline .core-glow { animation: corePulse 3.2s ease-in-out infinite; transform-origin: center; transform-box: fill-box; }
.pipeline .core-ring { animation: ringPulse 3.2s ease-in-out infinite; transform-origin: center; transform-box: fill-box; }
@keyframes corePulse {
  0%, 100% { transform: scale(1); opacity: .18; }
  50% { transform: scale(1.25); opacity: .3; }
}
@keyframes ringPulse {
  0%, 100% { transform: scale(1); opacity: .5; }
  50% { transform: scale(1.12); opacity: .8; }
}

/* Trust bar + metrics band (continues the dark hero) ----------------------- */
.dark-band { padding-bottom: clamp(3.5rem, 6vw, 5.5rem); }
.trust-bar {
  border-top: 1px solid rgba(223, 227, 231, .12);
  padding-block: 1.4rem;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}
.trust-inner {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
  gap: 1rem 2.5rem; text-align: center;
}
.trust-rating {
  display: inline-flex; align-items: center; gap: .6rem;
  text-decoration: none; font-weight: 620; color: var(--white);
  transition: color .18s var(--ease);
}
.trust-rating:hover { color: var(--teal); }
.trust-rating .stars { color: var(--teal); letter-spacing: .1em; }
.trust-note { color: rgba(223, 227, 231, .7); font-size: .95rem; }

.metrics {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 2.25rem 1.5rem;
}
@media (min-width: 800px) { .metrics { grid-template-columns: repeat(4, 1fr); } }
.metric .num {
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(2.2rem, 1.5rem + 2.5vw, 3.3rem);
  letter-spacing: -0.02em; line-height: 1;
  color: var(--teal);
  margin-bottom: .5rem;
}
.metric .label { color: rgba(223, 227, 231, .75); font-size: .95rem; max-width: 22ch; }

/* Cards ------------------------------------------------------------ */
.card {
  position: relative;
  background: var(--white);
  border: 1px solid rgba(47, 47, 47, .12);
  border-radius: var(--radius);
  padding: clamp(1.75rem, 3vw, 2.5rem);
  transition: transform .18s var(--ease), border-color .18s var(--ease), box-shadow .18s var(--ease);
}
.card:hover {
  transform: translateY(-4px);
  border-color: var(--teal);
  box-shadow: 0 12px 36px rgba(88, 194, 176, .18);
}

.feature-grid { display: grid; gap: 1.5rem; }
@media (min-width: 900px) { .feature-grid { grid-template-columns: 1fr 1fr; } }

.card .eyebrow { margin-bottom: .9rem; font-size: .72rem; }
.card h3 { margin-bottom: 1rem; font-size: clamp(1.4rem, 1.15rem + 1.1vw, 1.9rem); }
.card p { color: rgba(47, 47, 47, .72); }
.card p + p { margin-top: .9rem; }

.check-list { list-style: none; margin-block: 1.5rem; display: grid; gap: .7rem; }
.check-list li { display: flex; gap: .7rem; align-items: flex-start; color: var(--charcoal); font-size: .98rem; }
.check-list svg { flex: none; width: 18px; height: 18px; margin-top: .22em; color: var(--teal-dark); }

.result-line {
  border-left: 3px solid var(--teal);
  padding: .35rem 0 .35rem 1rem;
  margin-block: 1.4rem;
  color: var(--charcoal);
  font-size: .98rem;
}

/* Product cards + mockups ---------------------------------------------------- */
.product-grid { display: grid; gap: 1.5rem; margin-top: 1.5rem; }
@media (min-width: 900px) { .product-grid { grid-template-columns: 1fr 1fr; } }
.product-card .mini-stats { display: flex; flex-wrap: wrap; gap: .5rem; margin-block: 1.25rem; }
.mini-stats span {
  font-size: .8rem; font-weight: 620; color: var(--teal-dark);
  border: 1px solid rgba(88, 194, 176, .5);
  padding: .3rem .7rem; border-radius: 100px;
}

.mockup-wrap { margin-top: 1.5rem; }
.mockup {
  width: 100%; height: auto;
  border-radius: 10px;
  border: 1px solid rgba(47, 47, 47, .14);
  box-shadow: 0 10px 30px rgba(47, 47, 47, .1);
}
.mockup-caption {
  font-size: .8rem; color: rgba(47, 47, 47, .6);
  margin-top: .6rem; letter-spacing: .04em; text-transform: uppercase; font-weight: 600;
}

/* mockup idle animations */
.wavebar { animation: wave 1.6s ease-in-out infinite; transform-origin: center bottom; transform-box: fill-box; }
.wavebar:nth-of-type(2) { animation-delay: .15s; }
.wavebar:nth-of-type(3) { animation-delay: .3s; }
.wavebar:nth-of-type(4) { animation-delay: .45s; }
.wavebar:nth-of-type(5) { animation-delay: .6s; }
.wavebar:nth-of-type(6) { animation-delay: .75s; }
@keyframes wave {
  0%, 100% { transform: scaleY(.4); }
  50% { transform: scaleY(1); }
}
.toast-slide { animation: toastLoop 6s var(--ease) infinite; }
@keyframes toastLoop {
  0%, 12% { opacity: 0; transform: translateY(8px); }
  20%, 80% { opacity: 1; transform: translateY(0); }
  90%, 100% { opacity: 0; transform: translateY(8px); }
}
.ring-pulse { animation: mockRing 3s ease-in-out infinite; transform-origin: center; transform-box: fill-box; }
@keyframes mockRing {
  0%, 100% { opacity: .9; transform: scale(1); }
  50% { opacity: .4; transform: scale(1.15); }
}
.card-approve { animation: approveLoop 7s var(--ease) infinite; }
@keyframes approveLoop {
  0%, 30% { transform: translateX(0); opacity: 1; }
  45%, 75% { transform: translateX(14px); opacity: .35; }
  90%, 100% { transform: translateX(0); opacity: 1; }
}
.meter-fill { animation: meterLoop 5s ease-in-out infinite; transform-origin: left center; transform-box: fill-box; }
@keyframes meterLoop {
  0%, 100% { transform: scaleX(.86); }
  50% { transform: scaleX(1); }
}

/* Dev services strip */
.dev-strip {
  margin-top: 1.5rem;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 1.25rem;
  background: var(--white);
  border: 1px solid rgba(47, 47, 47, .12);
  border-radius: var(--radius);
  padding: 1.5rem clamp(1.5rem, 3vw, 2.5rem);
  transition: border-color .18s var(--ease), box-shadow .18s var(--ease);
}
.dev-strip:hover { border-color: var(--teal); box-shadow: 0 8px 24px rgba(88, 194, 176, .14); }
.dev-strip h3 { font-size: 1.25rem; margin-bottom: .3rem; }
.dev-strip p { color: rgba(47, 47, 47, .72); font-size: .95rem; }

/* Steps ------------------------------------------------------------ */
.steps { display: grid; gap: 1.5rem; }
@media (min-width: 800px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.step {
  position: relative;
  background: var(--white);
  border: 1px solid rgba(47, 47, 47, .12);
  border-radius: var(--radius);
  padding: 2rem 1.75rem;
  transition: transform .18s var(--ease), border-color .18s var(--ease), box-shadow .18s var(--ease);
}
.step:hover { transform: translateY(-4px); border-color: var(--teal); box-shadow: 0 12px 36px rgba(88, 194, 176, .16); }
.step-num {
  display: inline-grid; place-items: center;
  width: 44px; height: 44px; border-radius: 12px;
  font-family: var(--font-display); font-weight: 650; font-size: 1.2rem;
  background: rgba(88, 194, 176, .14);
  border: 1px solid rgba(88, 194, 176, .5);
  color: var(--teal-dark);
  margin-bottom: 1.25rem;
}
.step h3 { font-size: 1.35rem; margin-bottom: .75rem; }
.step p { color: rgba(47, 47, 47, .72); font-size: .97rem; }

/* Case study ------------------------------------------------------------ */
.case-card {
  background:
    radial-gradient(700px 300px at 85% 0%, rgba(88, 194, 176, .12), transparent 70%),
    var(--white);
  border: 1px solid rgba(88, 194, 176, .5);
  border-radius: var(--radius);
  padding: clamp(2rem, 4vw, 3.5rem);
}
.case-card h2 { margin-block: .9rem 1.25rem; max-width: 22ch; }
.case-card p { color: rgba(47, 47, 47, .72); max-width: 62ch; margin-bottom: 1.75rem; }

/* Team ------------------------------------------------------------ */
.team-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.25rem; }
@media (min-width: 700px) { .team-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1000px) { .team-grid { grid-template-columns: repeat(5, 1fr); } }
.team-card { text-align: center; }
.team-photo {
  aspect-ratio: 1;
  border-radius: 12px;
  border: 1px solid rgba(47, 47, 47, .12);
  background:
    radial-gradient(120px 120px at 50% 30%, rgba(88, 194, 176, .16), transparent),
    var(--light);
  display: grid; place-items: center;
  margin-bottom: .8rem;
  overflow: hidden;
  transition: border-color .18s var(--ease), transform .18s var(--ease), box-shadow .18s var(--ease);
}
.team-card:hover .team-photo { border-color: var(--teal); transform: translateY(-4px); box-shadow: 0 10px 26px rgba(88, 194, 176, .18); }
.team-photo img { width: 100%; height: 100%; object-fit: cover; }
.team-photo .initial {
  font-family: var(--font-display); font-size: 2.2rem; font-weight: 600;
  color: var(--teal-dark);
}
.team-card .name { font-weight: 640; font-size: .98rem; }
.team-card .role { color: rgba(47, 47, 47, .65); font-size: .84rem; margin-top: .15rem; }
.team-card .role a { color: var(--teal-dark); font-weight: 600; }

/* FAQ ------------------------------------------------------------ */
.faq-list { max-width: 46rem; display: grid; gap: .75rem; }
.faq-item {
  background: var(--white);
  border: 1px solid rgba(47, 47, 47, .12);
  border-radius: 12px;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.faq-item[open] { border-color: var(--teal); box-shadow: 0 6px 20px rgba(88, 194, 176, .12); }
.faq-item summary {
  list-style: none;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  cursor: pointer;
  padding: 1.15rem 1.4rem;
  font-weight: 620; font-size: 1.02rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "";
  flex: none; width: 10px; height: 10px;
  border-right: 2px solid var(--teal-dark);
  border-bottom: 2px solid var(--teal-dark);
  transform: rotate(45deg);
  transition: transform .25s var(--ease);
  margin-top: -4px;
}
.faq-item[open] summary::after { transform: rotate(-135deg); margin-top: 4px; }
.faq-body-wrap { overflow: hidden; transition: height .3s var(--ease); }
.faq-item .faq-body { padding: 0 1.4rem 1.3rem; color: rgba(47, 47, 47, .72); }

/* Final CTA (dark) ------------------------------------------------------------ */
.final-cta {
  text-align: center;
  position: relative;
  overflow: hidden;
}
.final-cta::before {
  content: "";
  position: absolute; inset: auto 0 0 0; height: 70%;
  background: radial-gradient(600px 300px at 50% 100%, rgba(88, 194, 176, .18), transparent 70%);
  pointer-events: none;
}
.final-cta .container { position: relative; }
.final-cta h2 { max-width: 22ch; margin-inline: auto; margin-bottom: 1.25rem; }
.final-cta p { max-width: 52ch; margin-inline: auto; color: rgba(223, 227, 231, .8); margin-bottom: 2rem; }
.final-cta .micro { font-size: .88rem; margin-top: 1.25rem; margin-bottom: 0; color: rgba(223, 227, 231, .65); }

/* Waitlist block ------------------------------------------------------------ */
.waitlist-form {
  display: flex; flex-wrap: wrap; gap: .75rem; justify-content: center;
  max-width: 32rem; margin-inline: auto;
}
.waitlist-form input[type="email"] {
  flex: 1 1 240px;
  background: var(--white);
  border: 1px solid rgba(47, 47, 47, .2);
  border-radius: 10px;
  color: var(--charcoal);
  font: inherit;
  padding: .8rem 1rem;
  transition: border-color .18s var(--ease), box-shadow .18s var(--ease);
}
.dark .waitlist-form input[type="email"] {
  background: rgba(255, 255, 255, .08);
  border-color: rgba(223, 227, 231, .3);
  color: var(--white);
}
.waitlist-form input[type="email"]:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(88, 194, 176, .25);
}

/* Footer ------------------------------------------------------------ */
.site-footer {
  border-top: 1px solid rgba(47, 47, 47, .1);
  padding-block: 3.5rem 2.5rem;
  font-size: .95rem;
  background: rgba(223, 227, 231, .3);
}
.footer-grid { display: grid; gap: 2.5rem; }
@media (min-width: 800px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr 1.4fr; } }
.footer-brand .logo img { height: 30px; width: auto; }
.footer-brand p { color: rgba(47, 47, 47, .7); max-width: 30ch; margin-top: 1rem; }
.footer-col h4 {
  font-family: var(--font-body); font-size: .78rem; font-weight: 650;
  letter-spacing: .14em; text-transform: uppercase; color: rgba(47, 47, 47, .55);
  margin-bottom: 1rem;
}
.footer-col ul { list-style: none; display: grid; gap: .6rem; }
.footer-col a { color: var(--charcoal); text-decoration: none; transition: color .18s var(--ease); }
.footer-col a:hover { color: var(--teal-dark); }
.footer-social { display: flex; gap: .9rem; margin-top: 1.25rem; }
.footer-social a {
  display: grid; place-items: center; width: 38px; height: 38px;
  border: 1px solid rgba(47, 47, 47, .18); border-radius: 10px;
  color: rgba(47, 47, 47, .65);
  transition: color .18s var(--ease), border-color .18s var(--ease), transform .18s var(--ease);
}
.footer-social a:hover { color: var(--teal-dark); border-color: var(--teal); transform: translateY(-2px); }
.footer-social svg { width: 17px; height: 17px; }
.footer-bottom {
  margin-top: 3rem; padding-top: 1.5rem;
  border-top: 1px solid rgba(47, 47, 47, .1);
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem;
  color: rgba(47, 47, 47, .6); font-size: .85rem;
}

/* Booking modal ------------------------------------------------------------ */
.book-modal {
  border: 1px solid rgba(47, 47, 47, .15);
  border-radius: 16px;
  background: var(--white);
  color: var(--charcoal);
  padding: 0;
  width: min(920px, calc(100vw - 2rem));
  height: min(700px, calc(100vh - 4rem));
  margin: auto;
}
.book-modal::backdrop { background: rgba(47, 47, 47, .6); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.book-modal-bar {
  display: flex; justify-content: space-between; align-items: center;
  padding: .8rem 1.2rem;
  border-bottom: 1px solid rgba(47, 47, 47, .1);
}
.book-modal-bar strong { font-family: var(--font-display); font-weight: 600; }
.book-close {
  width: 36px; height: 36px; border-radius: 8px;
  display: grid; place-items: center;
  border: 1px solid rgba(47, 47, 47, .18);
  transition: border-color .18s var(--ease), color .18s var(--ease);
}
.book-close:hover { border-color: var(--teal); color: var(--teal-dark); }
.book-modal iframe { width: 100%; height: calc(100% - 57px); border: 0; background: var(--white); }

/* Cal.com inline embed (contact page) ---------------------------------------- */
.cal-embed {
  width: 100%;
  height: min(760px, 80vh);
  border: 1px solid rgba(47, 47, 47, .15);
  border-radius: 14px;
  background: var(--white);
}

/* Forms ------------------------------------------------------------ */
.form-grid { display: grid; gap: 1.1rem; }
.form-field label { display: block; font-weight: 620; font-size: .92rem; margin-bottom: .4rem; }
.form-field input, .form-field textarea {
  width: 100%;
  background: var(--white);
  border: 1px solid rgba(47, 47, 47, .2);
  border-radius: 10px;
  color: var(--charcoal);
  font: inherit;
  padding: .8rem 1rem;
  transition: border-color .18s var(--ease), box-shadow .18s var(--ease);
}
.form-field input:focus, .form-field textarea:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(88, 194, 176, .22);
}
.form-field textarea { min-height: 140px; resize: vertical; }
.form-status { display: none; padding: 1rem 1.2rem; border-radius: 10px; font-weight: 520; }
.form-status.show { display: block; }
.form-status.ok { background: rgba(88, 194, 176, .14); border: 1px solid var(--teal); color: var(--charcoal); }
.form-status.err { background: rgba(47, 47, 47, .05); border: 1px solid rgba(47, 47, 47, .3); color: var(--charcoal); }
.dark .form-status.ok { color: var(--white); }
.dark .form-status.err { color: var(--white); border-color: rgba(223, 227, 231, .4); }
.hp-field { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }

/* Page hero (interior pages, light) ------------------------------------------ */
.page-hero {
  padding-top: clamp(8rem, 12vh + 4rem, 11rem);
  padding-bottom: clamp(2rem, 4vw, 4rem);
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(700px 400px at 80% 0%, rgba(88, 194, 176, .1), transparent 70%),
    linear-gradient(180deg, rgba(223, 227, 231, .5), rgba(255, 255, 255, 0));
}
.page-hero .eyebrow { margin-bottom: 1.1rem; }
.page-hero h1 { max-width: 18ch; margin-bottom: 1.4rem; }
.page-hero .lede { margin-bottom: 2rem; }

/* Item grid ------------------------------------------------------------ */
.item-grid { display: grid; gap: 1.25rem; }
@media (min-width: 700px) { .item-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .item-grid { grid-template-columns: repeat(3, 1fr); } }
.item-card {
  background: var(--white);
  border: 1px solid rgba(47, 47, 47, .12);
  border-radius: 12px;
  padding: 1.6rem;
  transition: transform .18s var(--ease), border-color .18s var(--ease), box-shadow .18s var(--ease);
}
.item-card:hover { transform: translateY(-4px); border-color: var(--teal); box-shadow: 0 10px 28px rgba(88, 194, 176, .16); }
.item-card strong { display: block; margin-bottom: .4rem; font-size: 1.02rem; }
.item-card p { color: rgba(47, 47, 47, .7); font-size: .93rem; }
.item-icon {
  width: 38px; height: 38px; border-radius: 10px;
  display: grid; place-items: center;
  background: rgba(88, 194, 176, .12);
  border: 1px solid rgba(88, 194, 176, .45);
  color: var(--teal-dark);
  margin-bottom: 1rem;
}
.item-icon svg { width: 19px; height: 19px; }

/* Scroll reveal ------------------------------------------------------------ */
.reveal { opacity: 0; transform: translateY(20px); }
.reveal.in-view { animation: rise .5s ease-out forwards; }
.reveal-group.in-view > * { opacity: 0; transform: translateY(20px); animation: rise .5s ease-out forwards; }
.reveal-group.in-view > *:nth-child(1) { animation-delay: 0s; }
.reveal-group.in-view > *:nth-child(2) { animation-delay: .07s; }
.reveal-group.in-view > *:nth-child(3) { animation-delay: .14s; }
.reveal-group.in-view > *:nth-child(4) { animation-delay: .21s; }
.reveal-group.in-view > *:nth-child(5) { animation-delay: .28s; }
.reveal-group.in-view > *:nth-child(6) { animation-delay: .35s; }

/* No-JS: never hide content */
.no-js .reveal, .no-js .hero-seq > *, .no-js .hero-visual { opacity: 1 !important; transform: none !important; }
.no-js .reveal-group > * { opacity: 1 !important; transform: none !important; }

/* Lucy chat widget ------------------------------------------------------------ */
.lucy-fab {
  position: fixed; right: 1.25rem; bottom: 1.25rem; z-index: 150;
  width: 58px; height: 58px; border-radius: 50%;
  background: var(--teal);
  color: var(--charcoal);
  display: grid; place-items: center;
  box-shadow: 0 6px 24px rgba(88, 194, 176, .45);
  transition: transform .18s var(--ease), background-color .18s var(--ease), box-shadow .18s var(--ease);
}
.lucy-fab:hover { transform: scale(1.08); background: var(--teal-dark); color: var(--white); }
.lucy-fab svg { width: 26px; height: 26px; }
.lucy-fab.pulse { animation: lucyPulse 2s var(--ease) 3; }
@keyframes lucyPulse {
  0%, 100% { box-shadow: 0 6px 24px rgba(88, 194, 176, .45); }
  50% { box-shadow: 0 6px 24px rgba(88, 194, 176, .45), 0 0 0 12px rgba(88, 194, 176, .18); }
}

.lucy-panel {
  position: fixed; right: 1.25rem; bottom: 5.75rem; z-index: 151;
  width: min(360px, calc(100vw - 2rem));
  height: min(540px, calc(100vh - 8rem));
  background: var(--white);
  border: 1px solid rgba(47, 47, 47, .14);
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(47, 47, 47, .25);
  display: none;
  flex-direction: column;
  overflow: hidden;
}
.lucy-panel.open { display: flex; }
@media (max-width: 520px) {
  .lucy-panel {
    right: 0; left: 0; bottom: 0;
    width: 100%;
    height: min(78vh, 560px);
    border-radius: 16px 16px 0 0;
  }
}

.lucy-head {
  display: flex; align-items: center; gap: .75rem;
  padding: .9rem 1.1rem;
  background: var(--charcoal);
  color: var(--white);
}
.lucy-avatar {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--teal);
  display: grid; place-items: center;
  color: var(--charcoal);
  font-family: var(--font-display); font-weight: 650;
}
.lucy-head-info { flex: 1; line-height: 1.25; }
.lucy-head-info strong { font-family: var(--font-display); font-size: 1.05rem; display: block; }
.lucy-head-info span { font-size: .78rem; color: rgba(223, 227, 231, .75); }
.lucy-close {
  width: 34px; height: 34px; border-radius: 8px;
  display: grid; place-items: center;
  color: var(--light);
  transition: background-color .18s var(--ease);
}
.lucy-close:hover { background: rgba(255, 255, 255, .12); }

.lucy-body {
  flex: 1;
  overflow-y: auto;
  padding: 1rem;
  display: flex; flex-direction: column; gap: .6rem;
  background: rgba(223, 227, 231, .25);
}
.lucy-msg {
  max-width: 85%;
  padding: .65rem .9rem;
  border-radius: 14px;
  font-size: .93rem;
  line-height: 1.5;
}
.lucy-msg.from-lucy {
  align-self: flex-start;
  background: var(--white);
  border: 1px solid rgba(47, 47, 47, .1);
  border-bottom-left-radius: 4px;
  color: var(--charcoal);
}
.lucy-msg.from-user {
  align-self: flex-end;
  background: var(--teal);
  color: var(--charcoal);
  border-bottom-right-radius: 4px;
  font-weight: 520;
}
.lucy-msg a { color: var(--teal-dark); font-weight: 640; }
.lucy-msg.from-lucy a { text-decoration: underline; }

.lucy-typing {
  align-self: flex-start;
  display: inline-flex; gap: 4px;
  padding: .8rem 1rem;
  background: var(--white);
  border: 1px solid rgba(47, 47, 47, .1);
  border-radius: 14px; border-bottom-left-radius: 4px;
}
.lucy-typing span {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--gray);
  animation: typing 1.1s ease-in-out infinite;
}
.lucy-typing span:nth-child(2) { animation-delay: .18s; }
.lucy-typing span:nth-child(3) { animation-delay: .36s; }
@keyframes typing {
  0%, 100% { transform: translateY(0); opacity: .5; }
  40% { transform: translateY(-4px); opacity: 1; }
}

.lucy-chips {
  display: flex; flex-wrap: wrap; gap: .4rem;
  padding: .3rem 0 .1rem;
}
.lucy-chip {
  font-size: .8rem; font-weight: 620;
  color: var(--teal-dark);
  border: 1px solid rgba(88, 194, 176, .55);
  background: var(--white);
  border-radius: 100px;
  padding: .32rem .75rem;
  transition: background-color .15s var(--ease), color .15s var(--ease), border-color .15s var(--ease);
}
.lucy-chip:hover { background: var(--teal); color: var(--charcoal); border-color: var(--teal); }

.lucy-input-row {
  display: flex; gap: .5rem;
  padding: .75rem;
  border-top: 1px solid rgba(47, 47, 47, .1);
  background: var(--white);
}
.lucy-input-row input {
  flex: 1;
  border: 1px solid rgba(47, 47, 47, .18);
  border-radius: 10px;
  padding: .6rem .85rem;
  font: inherit; font-size: .93rem;
  color: var(--charcoal);
}
.lucy-input-row input:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(88, 194, 176, .2);
}
.lucy-send {
  width: 42px; border-radius: 10px;
  background: var(--teal);
  color: var(--charcoal);
  display: grid; place-items: center;
  transition: background-color .15s var(--ease), color .15s var(--ease);
}
.lucy-send:hover { background: var(--teal-dark); color: var(--white); }
.lucy-send svg { width: 18px; height: 18px; }

/* Trustpilot slots ------------------------------------------------------------ */
.trustbox { display: flex; align-items: center; justify-content: center; }
.trust-link {
  display: inline-flex; align-items: center; gap: .45rem;
  font-weight: 620; text-decoration: none;
  color: var(--white);
  transition: color .18s var(--ease);
}
.trust-link:hover { color: var(--teal); }
.trust-link svg { width: 15px; height: 15px; flex: none; }
.trustbox-sm .trust-link { color: inherit; font-weight: 520; font-size: .85rem; }
.trustbox-sm .trust-link:hover { color: var(--teal-dark); }

/* Review carousel ------------------------------------------------------------ */
.reviews-viewport { position: relative; }
.reviews-track {
  display: flex;
  gap: 1.25rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  padding: 1rem .25rem 1.5rem;
}
.reviews-track::-webkit-scrollbar { display: none; }
.review-slide {
  flex: 0 0 100%;
  scroll-snap-align: center;
  background: var(--white);
  border: 1px solid rgba(47, 47, 47, .12);
  border-radius: var(--radius);
  padding: 1.75rem;
  transition: transform .3s var(--ease), border-color .3s var(--ease), box-shadow .3s var(--ease);
  display: flex; flex-direction: column; gap: 1rem;
}
@media (min-width: 900px) {
  .review-slide { flex-basis: calc((100% - 2.5rem) / 3); }
}
.review-slide.is-active {
  transform: scale(1.03);
  border-color: var(--teal);
  box-shadow: 0 12px 36px rgba(88, 194, 176, .16);
}
.review-stars { display: flex; gap: 3px; color: var(--teal); }
.review-stars svg { width: 18px; height: 18px; }
.review-text { color: rgba(47, 47, 47, .78); font-size: .97rem; flex: 1; }
.review-meta { font-size: .88rem; }
.review-meta .who { font-weight: 640; color: var(--charcoal); }
.review-meta .what { color: rgba(47, 47, 47, .6); margin-top: .1rem; }

.reviews-controls {
  display: flex; align-items: center; justify-content: center; gap: 1.25rem;
}
.review-arrow {
  display: none;
  width: 42px; height: 42px; border-radius: 50%;
  border: 1px solid rgba(47, 47, 47, .2);
  place-items: center;
  color: var(--charcoal);
  transition: border-color .18s var(--ease), color .18s var(--ease), background-color .18s var(--ease);
}
.review-arrow:hover { border-color: var(--teal); color: var(--teal-dark); background: rgba(88, 194, 176, .08); }
.review-arrow svg { width: 18px; height: 18px; }
@media (min-width: 900px) { .review-arrow { display: grid; } }
.review-dots { display: flex; gap: .5rem; }
.review-dot {
  width: 9px; height: 9px; border-radius: 50%;
  background: rgba(47, 47, 47, .2);
  transition: background-color .18s var(--ease), transform .18s var(--ease);
  padding: 0;
}
.review-dot[aria-current="true"] { background: var(--teal); transform: scale(1.25); }

/* Services page ------------------------------------------------------------ */
.svc-block {
  display: grid;
  gap: 2rem;
  align-items: center;
  padding-block: clamp(2.5rem, 4vw, 4rem);
}
.svc-block + .svc-block { border-top: 1px solid rgba(47, 47, 47, .08); }
@media (min-width: 900px) {
  .svc-block { grid-template-columns: 1fr 1fr; gap: 4rem; }
  .svc-block.flip .svc-visual { order: 2; }
}
.svc-visual { order: -1; }
@media (min-width: 900px) { .svc-visual { order: 0; } }
.svc-visual svg {
  width: 100%; height: auto;
  border-radius: 12px;
  border: 1px solid rgba(47, 47, 47, .12);
  box-shadow: 0 10px 30px rgba(47, 47, 47, .08);
}
.svc-copy .eyebrow { margin-bottom: .9rem; }
.svc-copy h2 { font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.3rem); margin-bottom: 1rem; }
.svc-copy p { color: rgba(47, 47, 47, .72); }
.svc-copy .check-list { margin-block: 1.4rem; }

/* Services page idle animations */
.node-pulse { animation: svcNodePulse 3s ease-in-out infinite; transform-origin: center; transform-box: fill-box; }
@keyframes svcNodePulse {
  0%, 100% { opacity: .35; transform: scale(1); }
  50% { opacity: .75; transform: scale(1.3); }
}
.msg-seq { opacity: 0; animation: svcMsgSeq 9s var(--ease) infinite; }
.msg-seq.m2 { animation-delay: 1.2s; }
.msg-seq.m3 { animation-delay: 2.4s; }
.msg-seq.m4 { animation-delay: 3.6s; }
@keyframes svcMsgSeq {
  0%, 4% { opacity: 0; transform: translateY(6px); }
  10%, 85% { opacity: 1; transform: translateY(0); }
  92%, 100% { opacity: 0; }
}
.gauge-arc {
  stroke-dasharray: 264;
  stroke-dashoffset: 264;
  animation: svcGauge 2.2s var(--ease) .4s forwards;
}
@keyframes svcGauge { to { stroke-dashoffset: 26; } }
.screen-slide { animation: svcScreens 8s var(--ease) infinite; }
@keyframes svcScreens {
  0%, 28% { transform: translateX(0); }
  38%, 62% { transform: translateX(-108px); }
  72%, 92% { transform: translateX(-216px); }
  100% { transform: translateX(0); }
}
.deal-slide { animation: svcDeal 7s var(--ease) infinite; }
@keyframes svcDeal {
  0%, 25% { transform: translateX(0); }
  40%, 70% { transform: translateX(148px); }
  85%, 100% { transform: translateX(0); opacity: 1; }
}
.check-pop { opacity: 0; animation: svcCheck 7s var(--ease) infinite; }
@keyframes svcCheck {
  0%, 42% { opacity: 0; transform: scale(.6); }
  48%, 70% { opacity: 1; transform: scale(1); }
  85%, 100% { opacity: 0; }
}
.assemble { opacity: 0; animation: svcAssemble 8s var(--ease) infinite; }
.assemble.a2 { animation-delay: .5s; }
.assemble.a3 { animation-delay: 1s; }
.assemble.a4 { animation-delay: 1.5s; }
@keyframes svcAssemble {
  0% { opacity: 0; transform: translateY(10px); }
  8%, 88% { opacity: 1; transform: translateY(0); }
  96%, 100% { opacity: 0; }
}

/* Reduced motion ------------------------------------------------------------ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .reveal, .reveal-group > *, .hero-seq > *, .hero-visual { opacity: 1 !important; transform: none !important; }
  .pipeline .dot, .pipeline .dot-trail { display: none; }
  .faq-body-wrap { transition: none; }
  .lucy-fab.pulse { animation: none; }
  .msg-seq, .assemble, .check-pop { animation: none; opacity: 1; transform: none; }
  .deal-slide, .screen-slide { animation: none; }
  .gauge-arc { animation: none; stroke-dashoffset: 26; }
  .reviews-track { scroll-behavior: auto; }
}
