/* Self-hosted fonts */
@font-face {
  font-family: 'IBM Plex Sans';
  src: url('../fonts/IBMPlexSans-400.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'IBM Plex Sans';
  src: url('../fonts/IBMPlexSans-500.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'IBM Plex Sans';
  src: url('../fonts/IBMPlexSans-600.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Poppins';
  src: url('../fonts/Poppins-600.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Poppins';
  src: url('../fonts/Poppins-700.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Poppins';
  src: url('../fonts/Poppins-400.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Poppins';
  src: url('../fonts/Poppins-500.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Caveat';
  src: url('../fonts/Caveat-700.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #EBF3FC;
  /* page sky */
  --panel: #E4EEFF;
  /* soft panels */
  --panel-deep: #DDE8FF;
  --white: #fff;
  --text: #0F2137;
  --muted: #51607A;
  --accent: #3B82F6;
  /* blue */
  --accent-2: #5AA6FF;
  --warning: #F5CC59;
  /* yellow button */
  --radius: 16px;
  --radius-xl: 20px;
  --container: 1200px;
  --shadow-lg: 0 10px 30px rgba(28, 58, 117, .12);
}

html,
body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Poppins', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  overflow-x: hidden;
}

h1,
h2,
h3 {
  font-family: 'Poppins', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}

h1 {
  letter-spacing: .2px
}

h2 {
  letter-spacing: .1px
}

.container {
  max-width: var(--container);
  margin-inline: auto;
  padding: 0 24px;
}

/* Hero background wrapper with illustration */
.hero-bg-wrapper {
  background: var(--bg);
  /* background-image: url('../images/header_illustration.svg'); */
  background-repeat: no-repeat;
  background-position: center top;
  background-size: cover;
  position: relative;
  width: 100%;
  overflow: hidden;
}

/* Header */
.site-header {
  background: transparent;
  position: relative;
  z-index: 10;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.brand {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.logo-img {
  height: 40px;
  width: auto;
}

.header-cta {
  background: var(--accent);
  color: white;
  font-size: 14px;
  font-weight: 600;
  padding: 12px 20px;
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.2s ease;
}

.header-cta:hover {
  background: var(--accent-2);
  transform: translateY(-1px);
}

.button {
  display: inline-block;
  padding: 12px 18px;
  border-radius: 12px;
  background: var(--accent);
  color: white;
  text-decoration: none;
  font-weight: 600;
  box-shadow: var(--shadow-lg);
}

.button.small {
  padding: 10px 14px;
  box-shadow: none;
}

.button:hover {
  filter: brightness(.96);
}

/* Hero */
.hero {
  padding: 30px 0 48px;
  /* background: radial-gradient(100% 70% at 50% 0%, var(--panel) 0%, rgba(0, 0, 0, 0) 60%); */
  text-align: center;
  position: relative;
  z-index: 10;
}

.hero-title {
  font-size: 54px;
  font-weight: 600;
  margin: 0 0 12px;
  font-family: "Poppins";
}

.hero-sub {
  color: #0E2E4D;
  font-size: 16px;
  font-weight: 400 !important;
  font-family: "Poppins";
  max-width: 720px;
  margin: 0 auto 28px;

}

.tool-shell {
  /* background: var(--white); */
  /* border: 2px solid var(--accent-2); */
  /* border-radius: var(--radius-xl); */
  /* box-shadow: var(--shadow-lg); */
  padding: 0;
  /* max-width: 960px; */
  margin: 0;
  position: relative;
  z-index: 20;
  width: 100%;
}

#tool-iframe {
  position: relative;
  z-index: 30;
}

/* Loader overlay for iframe */
/* New skeleton styles */
.tool-skeleton {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  z-index: 40;
  transition: opacity .2s ease;
}

.tool-skeleton.hidden {
  opacity: 0;
  pointer-events: none;
}

.skeleton-frame {
  width: 860px;
  height: 570px;
  position: relative;
  margin-left: 0px;
  top: -23px;
}

/* Mobile skeleton size */
@media (max-width: 768px) {
  .skeleton-frame {
    width: 370px;
    height: 735px;
    margin-left: 0;
    top: 0;
  }
}

.skeleton-image {
  width: 100%;
  height: 100%;
  /* object-fit: cover; */
  filter: blur(2px);
  transition: filter .2s ease;
}

.skeleton-overlay {
  position: absolute;
  inset: 0;
  /* background: rgba(14, 46, 77, 0.25); */
  display: grid;
  place-items: center;
  transition: opacity .2s ease;
}

.skeleton-text {
  color: #0E2E4D;
  font-weight: 700;
  font-size: 18px;
}

/* Unblur sequence: first remove blur/overlay, then we hide the skeleton */
.tool-skeleton.unblur .skeleton-image {
  filter: blur(0);
}

.tool-skeleton.unblur .skeleton-overlay {
  opacity: 0;
}

/* Debug mode: keep skeleton, hide iframe */
/* debug-skeleton removed */

/* Match iframe to tool's actual size and center it */
#tool-iframe {
  width: 900px;
  height: 675px;
  margin: 0 auto;
  display: block;
}

.tool-shell {
  display: grid;
  place-items: center;
}

/* Logos */
/* ===== Full-width logos marquee ===== */
.logos-marquee {
  /* make it bleed full width even if inside a .container */
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  width: 100vw;

  /* background: var(--panel, #E4EEFF);
  border-top: 1px solid #d8e6ff;
  border-bottom: 1px solid #d8e6ff; */
  padding: 28px 0;
  overflow: hidden;

  /* tune speeds here */
  --speed-row-1: 61s;
  --speed-row-2: 72s;
}

.marquee-row {
  /* edge fade */
  -webkit-mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
  overflow: hidden;
}

.marquee-track {
  display: flex;
  gap: 22px;
  width: max-content;
  padding: 10px 0;
  /* Defer animation until after full load to reduce TBT */
  animation: none;
  will-change: transform;
}

/* second row runs in reverse direction */
.marquee-row.reverse .marquee-track {
  animation: none;
}

/* Enable marquee animations only after onload */
html.ready .marquee-track {
  animation: marquee-ltr var(--speed-row-1) linear infinite;
}

html.ready .marquee-row.reverse .marquee-track {
  animation: marquee-rtl var(--speed-row-2) linear infinite;
}

/* Respect reduced motion preferences */
@media (prefers-reduced-motion: reduce) {

  .marquee-track,
  html.ready .marquee-track,
  html.ready .marquee-row.reverse .marquee-track {
    animation: none !important;
  }
}


/* logo pill styles (swap with real SVGs/images later) */
.logo {
  flex: 0 0 auto;
  height: 64px;
  min-width: 140px;
  padding: 0 18px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: transparent;
  color: #2B3B59;
  font-weight: 600;
  white-space: nowrap;
}

/* Marquee brand logos */
.logos-marquee .logo img {
  height: 56px;
  width: auto;
  display: block;
  opacity: 1;
  margin: 0 auto;
}

/* Animations (duplicate content in track, then move half its width) */
@keyframes marquee-ltr {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}

@keyframes marquee-rtl {
  0% {
    transform: translateX(-50%);
  }

  100% {
    transform: translateX(0);
  }
}

/* Responsive tweaks */
@media (max-width: 768px) {
  .logo {
    height: 56px;
    min-width: 120px;
    padding: 0 14px;
  }

  .logos-marquee {
    --speed-row-1: 26s;
    --speed-row-2: 30s;
  }
}

/* .logos {
  padding: 40px 0;
}

.logo-row {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 16px;
  align-items: center;
}

.logo-row li {
  background: var(--white);
  color: #2B3B59;
  border: 1px solid #d8e6ff;
  border-radius: 10px;
  height: 56px;
  display: grid;
  place-items: center;
  font-weight: 600;
  opacity: .9;
} */

/* Two-column feature sections */
.feature {
  padding: 80px 0;
}

/* .feature.alt {
  background: var(--panel);
} */

.col-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.col-grid .text h2 {
  font-size: clamp(26px, 3vw, 40px);
  margin: 0 0 23px;
}

.col-grid .text p {
  color: var(--muted);
  margin: 0 0 16px;
}

.checklist {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 8px;
}

.checklist li::before {
  content: '✔';
  margin-right: 8px;
  color: var(--accent);
}

.visual {
  display: flex;
  align-items: center;
  justify-content: center;
}

.feature-image {
  width: 100%;
  height: auto;
  max-height: 400px;
  object-fit: contain;
  border-radius: var(--radius);
}

.order-1 {
  order: -1;
}

.mock-card,
.mock-table {
  width: 100%;
  min-height: 260px;
  border-radius: var(--radius);
  border: 1px dashed #b9c9ef;
  background: linear-gradient(180deg, var(--white), var(--panel));
  display: grid;
  place-items: center;
  color: #6b7a99;
  font-weight: 600;
}

.tall {
  min-height: 320px;
}

/* Outreach (matches screenshot feel) */
.outreach {
  background: #DBE6FF;
  padding: 64px 0;
  margin-top: 100px;
}

.outreach .eyebrow {
  text-align: center;
  color: #0E2E4D;
  font-family: 'Caveat', cursive;
  font-weight: 700;
  font-size: 42px;
  margin: 0 0 6px;
}

.outreach-title {
  text-align: center;
  margin: 0 0 24px;
  font-size: 42px;
  font-weight: 500;
}

.outreach-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 980px;
  margin: 0 auto 18px;
}

.card {
  background: #B9C9EE;
  border: none;
  border-radius: 18px;
  padding: 22px;
  box-shadow: var(--shadow-lg);
}

.card h3 {
  margin: 16px 0 8px;
  font-size: 18px;
  text-align: center;
}

.card p.muted {
  text-align: center;
  margin: 0;
}

.oc-art {
  height: 240px;
  border-radius: 14px;
  margin-bottom: 16px;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Outreach card images */
.oc-image {
  width: 250px;
  height: 250px;
  object-fit: contain;
}

.outreach-copy {
  text-align: center;
  color: var(--muted);
  max-width: 860px;
  margin: 41px auto 41px;
}

.cta-yellow {
  background: var(--warning);
  color: #1b2437;
  display: inline-block;
  margin: 0 auto;
}

.outreach .button {
  display: block;
  width: max-content;
  border-radius: 999px;
  padding: 12px 22px;
}

/* Testimonials */
.testimonials {
  /* background: var(--panel); */
  padding: 72px 0;
  margin-top: 100px;
}

.testi-head {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 28px;
}

.testi-head h2 {
  margin: 0;
}

.stars {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  position: relative;
}

.stars img {
  width: 20px;
  height: 20px;
}

.stars-left {
  position: relative;
}

.stars-left img:nth-child(1) {
  position: relative;
  left: 11px;
}

.stars-left img:nth-child(2) {
  position: relative;
  left: -20px;
}

.stars-left img:nth-child(3) {
  position: relative;
  left: 6px;
}

.stars-right {
  position: relative;
}

.stars-right img:nth-child(1) {
  position: relative;
  right: 11px;
}

.stars-right img:nth-child(2) {
  position: relative;
  right: -20px;
}

.stars-right img:nth-child(3) {
  position: relative;
  right: 6px;
}

.testi-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(300px, 550px));
  justify-content: center;
  gap: 28px;
  margin-bottom: 48px;
  max-width: 100%;
}

.testi.card {
  width: 100%;
  max-width: 550px;
  height: 350px;
  border-radius: 16px;
  background: #fff;
  padding: 48px 32px;
  display: flex;
  flex-direction: column;
  box-shadow: none;
}

.testi .quote {
  font-size: 18px;
  line-height: 1.6;
  margin: 0 0 16px;
  color: #24324d;
  font-family: "IBM Plex Sans";
  font-weight: 500;
  flex: 1;
}

.who {
  display: grid;
  grid-template-columns: 48px 1fr auto;
  align-items: center;
  gap: 20px;
  margin-top: auto;
}

.avatar {
  width: 60px;
  height: 60px;
  overflow: hidden;
}

.avatar img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  display: block;
  object-fit: cover;
}

.logo {
  color: #7b8db8;
  font-weight: 700;
}

/* Testimonial company logos */
.testimonials .logo img {
  height: 24px;
  width: auto;
  display: block;
}

/* Spotlight quote block under testimonials */
.spotlight {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 100px;
  border-radius: 20px;
  padding: 24px;
}

.spot-avatar {
  height: 100%;
  display: flex;
  align-items: center;
}

.spot-avatar img {
  height: 100%;
  width: auto;
  border-radius: 50%;
  object-fit: cover;
}

.spot-txt .quote {
  font-size: 19px;
  font-weight: 500;
  font-family: 'IBM Plex Sans', sans-serif;
  line-height: 1.7;
  margin: 26px 0 10px;
  color: #24324d;
}

.spot-txt .quote:first-of-type {
  margin-top: 0;
}

.quote-mark {
  font-size: 60px;
  line-height: 1;
  vertical-align: top;
}

/* FAQ */
.faq {
  padding: 80px 0;
  background: var(--bg);
  margin-top: 100px;
}

/* Reduce rendering cost for offscreen content */
main>section:not(.hero) {
  content-visibility: auto;
  contain-intrinsic-size: 800px;
}

.faq h2 {
  text-align: center;
  margin: 0 0 48px;
  font-size: 42px;
}

.faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  background: transparent;
  border-bottom: 1px solid #d8e6ff;
  margin-bottom: 0;
  overflow: hidden;
}

.faq-item:first-child {
  border-top: 1px solid #d8e6ff;
}

.faq-question {
  width: 100%;
  padding: 24px 32px;
  background: none;
  border: none;
  text-align: left;
  font-size: 18px;
  font-weight: 600;
  font-family: 'IBM Plex Sans', sans-serif;
  color: var(--text);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background-color 0.2s ease;
}

.faq-question:hover {
  background-color: rgba(248, 250, 252, 0.5);
}

.faq-icon {
  font-size: 24px;
  font-weight: 300;
  color: var(--muted);
  transition: transform 0.2s ease;
}

.faq-answer {
  padding: 0 32px 24px;
  color: var(--muted);
  line-height: 1.6;
  display: none;
}

.faq-item.active .faq-answer {
  display: block;
}

.faq-answer p {
  margin: 0 0 16px;
}

.faq-answer ul {
  margin: 16px 0;
  padding-left: 20px;
}

.faq-answer li {
  margin-bottom: 8px;
}

.faq-answer a {
  color: var(--accent);
  text-decoration: none;
}

.faq-answer a:hover {
  text-decoration: underline;
}

/* Contact & footer */
.contact {
  padding: 80px 24px;
  text-align: center;
  background: linear-gradient(135deg, #B3CBFD 0%, #FFFFFF 100%);
  position: relative;
  overflow: hidden;
  margin: 130px 100px 80px;
  border-radius: 32px;
}

/* .contact::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='20' cy='20' r='15' fill='rgba(255,255,255,0.1)'/%3E%3Ccircle cx='80' cy='80' r='20' fill='rgba(255,255,255,0.05)'/%3E%3C/svg%3E");
  pointer-events: none;
} */

.contact h2 {
  color: var(--text);
  font-size: 42px;
  font-weight: 600;
  margin: 0 0 16px;
  position: relative;
  z-index: 1;
}

.contact-sub {
  color: #0E2E4D;
  font-family: 'Poppins', sans-serif;
  font-weight: 400;
  font-size: 18px;
  margin: 0 0 32px;
  position: relative;
  z-index: 1;
}

.cta-primary {
  background: var(--accent);
  color: white;
  font-size: 16px;
  font-weight: 600;
  padding: 16px 32px;
  border-radius: 4px;
  text-decoration: none;
  display: inline-block;
  box-shadow: 0 8px 24px rgba(59, 130, 246, 0.3);
  transition: all 0.2s ease;
  position: relative;
  z-index: 1;
}

.cta-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(59, 130, 246, 0.4);
}

.site-footer {
  border-top: 1px solid #d8e6ff;
  padding: 24px 0;
  color: var(--muted);
  text-align: center;
}

/* Responsive */
@media (max-width: 980px) {
  .col-grid {
    grid-template-columns: 1fr;
  }

  .order-1 {
    order: 0;
  }

  .tool-shell {
    max-width: 100%;
  }

  .outreach-cards {
    grid-template-columns: 1fr;
  }

  .testi-grid {
    grid-template-columns: 1fr;
  }

  .spotlight {
    grid-template-columns: 1fr;
  }

  .spot-avatar {
    justify-self: center;
  }

  /* Reset desktop margins for mobile */
  .feature {
    margin-top: 0;
  }

  .outreach {
    margin-top: 0;
  }

  .testimonials {
    margin-top: 0;
  }

  .faq {
    margin-top: 0;
  }

  /* Testimonials responsive */
  .testi-grid {
    grid-template-columns: 1fr;
    padding: 0 16px;
  }

  .testi.card {
    height: auto;
    min-height: 300px;
    padding: 32px 24px;
  }

  /* Contact section mobile adjustments */
  .contact {
    margin: 0 24px;
    padding: 60px 24px;
  }

  .contact h2 {
    font-size: 32px;
  }

  .contact-sub {
    font-size: 16px;
  }
}