/* Second-pass polish: resilient rendering and richer product storytelling. */
.reveal {
  opacity: 1;
  transform: none;
}

.hero .reveal {
  opacity: 1 !important;
  transform: none !important;
}

.brand-logo {
  width: 38px;
  height: 38px;
  display: block;
  object-fit: cover;
  border-radius: 11px;
  box-shadow: 0 8px 20px #173b6730;
}

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 100;
  padding: 10px 14px;
  border-radius: 9px;
  color: #fff;
  background: #173b6b;
  font-weight: 700;
  transform: translateY(-150%);
}
.skip-link:focus { transform: none; }
.mobile-nav a > span { display: none; }
.mobile-nav-actions { display: contents; }

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 22px;
  padding: 7px 12px 7px 9px;
  border: 1px solid #d8e3f0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.85);
  color: #4f5e78;
  font-size: 11px;
  font-weight: 700;
  box-shadow: 0 8px 22px #25476f0d;
}

.hero-pill span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #28a679;
  box-shadow: 0 0 0 4px #daf3ea;
}

.hero-pill b { color: #3971ad; }

.outcome-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  max-width: 1220px;
  margin: 0 auto;
  padding: 60px max(4vw, 25px);
  gap: 20px;
}

.outcome-strip article {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding-right: 18px;
  border-right: 1px solid #e0e5ed;
}

.outcome-strip article:last-child { border: 0; }
.outcome-strip strong {
  font: 800 34px Manrope, sans-serif;
  color: #3269a7;
  letter-spacing: -1.5px;
}
.outcome-strip span { color: #70798c; font-size: 12px; line-height: 1.45; }

.product-map { background: linear-gradient(180deg, #fff, #f6f8fc); }
.product-map-grid {
  max-width: 1240px;
  margin: auto;
  display: flex;
  align-items: stretch;
  gap: 12px;
}
.product-map-grid article {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 25px 20px;
  background: #fff;
  border: 1px solid #e1e6ee;
  border-radius: 16px;
  box-shadow: 0 10px 28px #1c38580a;
}
.product-map-grid article > span {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  flex: none;
  border-radius: 11px;
  background: #e7eff9;
  color: #3970aa;
  font: 700 11px Manrope, sans-serif;
}
.product-map-grid h3 { margin: 0 0 4px; font: 700 17px Manrope, sans-serif; }
.product-map-grid p { margin: 0; color: #747d90; font-size: 11px; line-height: 1.4; }
.product-map-grid > i { align-self: center; color: #9eb1c8; font-size: 18px; font-style: normal; }

.faq-section {
  display: grid;
  grid-template-columns: 0.75fr 1.25fr;
  gap: 9vw;
  max-width: 1350px;
  margin: auto;
}
.faq-intro h2 { text-align: left; }
.faq-intro p { color: #687187; margin-bottom: 25px; }
.faq-list details { border-bottom: 1px solid #dfe4ec; padding: 0; }
.faq-list summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 23px 2px;
  cursor: pointer;
  list-style: none;
  font: 700 16px Manrope, sans-serif;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary span {
  display: grid;
  place-items: center;
  width: 29px;
  height: 29px;
  flex: none;
  border-radius: 50%;
  background: #edf2f8;
  color: #3970a9;
  font-size: 19px;
  transition: transform 0.2s;
}
.faq-list details[open] summary span { transform: rotate(45deg); }
.faq-list details p { margin: -5px 45px 23px 2px; color: #687187; font-size: 14px; }

.site-header a:focus-visible,
.site-header button:focus-visible,
.button:focus-visible,
.text-link:focus-visible,
summary:focus-visible { outline: 3px solid #8db9e7; outline-offset: 4px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

@media (max-width: 1050px) {
  .outcome-strip { grid-template-columns: 1fr 1fr; }
  .outcome-strip article:nth-child(2) { border: 0; }
  .product-map-grid { display: grid; grid-template-columns: 1fr 1fr; }
  .product-map-grid > i { display: none; }
  .faq-section { grid-template-columns: 1fr; gap: 45px; }
}

@media (max-width: 680px) {
  html { scroll-padding-top: 68px; }
  body { overflow-x: hidden; }
  body.menu-open { overflow: hidden; }
  .site-header {
    padding-inline: 18px;
    box-shadow: 0 4px 20px rgba(24, 49, 82, 0.05);
  }
  .brand { gap: 8px; font-size: 22px; }
  .brand-logo { width: 34px; height: 34px; border-radius: 10px; }
  .header-actions { margin-left: auto; gap: 10px; }
  .menu-button {
    width: 44px;
    height: 44px;
    padding: 0;
    border: 1px solid #dde5ef;
    border-radius: 12px;
    background: #f7f9fc;
    position: relative;
  }
  .menu-button span {
    position: absolute;
    left: 12px;
    width: 18px;
    height: 2px;
    border-radius: 2px;
    background: #172343;
    transition: transform .2s ease, opacity .2s ease, top .2s ease;
  }
  .menu-button span:nth-child(1) { top: 14px; }
  .menu-button span:nth-child(2) { top: 20px; }
  .menu-button span:nth-child(3) { top: 26px; }
  .menu-button[aria-expanded="true"] span:nth-child(1) { top: 20px; transform: rotate(45deg); }
  .menu-button[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .menu-button[aria-expanded="true"] span:nth-child(3) { top: 20px; transform: rotate(-45deg); }
  .mobile-nav {
    height: calc(100dvh - 68px);
    padding: 18px 20px max(24px, env(safe-area-inset-bottom));
    border: 0;
    background: #fff;
    box-shadow: none;
    overflow-y: auto;
    overscroll-behavior: contain;
  }
  .mobile-nav.open { display: flex; }
  .mobile-nav > a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 56px;
    padding: 10px 4px;
    border-bottom: 1px solid #e8ecf2;
    font: 700 18px Manrope, sans-serif;
  }
  .mobile-nav a > span { display: inline; color: #7590af; font-size: 16px; }
  .mobile-nav-actions {
    display: grid;
    grid-template-columns: 1fr 1.25fr;
    gap: 10px;
    margin-top: auto;
  }
  .mobile-nav-actions a {
    min-height: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    border: 1px solid #dce4ee;
    border-radius: 12px;
    font-weight: 700;
  }
  .mobile-nav-actions .button { color: #fff; border: 0; padding: 12px; }
  .hero {
    padding: 34px 20px 46px;
    background: radial-gradient(circle at 50% 10%, #edf7ff 0, transparent 40%), linear-gradient(180deg, #f8fbff, #fff 76%);
  }
  .hero-pill { margin-bottom: 14px; padding-block: 6px; font-size: 9.5px; white-space: nowrap; }
  .hero .eyebrow { max-width: 330px; margin: 0 auto 16px; line-height: 1.45; }
  .hero h1 { font-size: clamp(37px, 10.5vw, 42px); line-height: 1.02; letter-spacing: -2.2px; }
  .hero-copy > p { margin: 20px auto 22px; font-size: 15.5px; line-height: 1.55; }
  .hero-actions { gap: 8px; }
  .hero-actions .button { width: 100%; min-height: 50px; padding-block: 12px; }
  .hero-actions .text-link { padding: 8px; border-bottom: 0; text-decoration: underline; text-underline-offset: 5px; }
  .workflow-copy .text-link,
  .faq-intro .text-link,
  .cta-actions > a:last-child,
  footer div a {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
  }
  .faq-intro .text-link { padding-right: 10px; }
  footer div { align-items: center; }
  .trust-row { margin-top: 17px; align-items: flex-start; width: fit-content; margin-inline: auto; text-align: left; }
  .trust-row span { display: flex; align-items: baseline; }
  .product-stage { margin-top: 42px; width: calc(100% + 12px); margin-left: -6px; }
  .dashboard-window { border-radius: 14px; box-shadow: 0 24px 55px #19375b20; }
  .window-bar { height: 34px; }
  .dashboard-body { min-height: 274px; }
  .mock-main { min-width: 0; padding: 12px; }
  .mock-heading strong { font-size: 14px; }
  .mock-heading button { padding: 7px 8px; }
  .metric-grid { margin: 14px 0; }
  .metric-grid article { min-width: 0; padding: 10px; }
  .metric-grid strong { font-size: 13px; }
  .bars { height: 80px; }
  .proof-strip { padding: 28px 20px; }
  .proof-strip p { line-height: 1.55; }
  .proof-strip div { gap: 12px 20px; }
  .section { padding: 68px 20px; }
  .section-heading { margin-bottom: 34px; }
  .section h2, .cta-section h2 { font-size: 32px; line-height: 1.1; letter-spacing: -1.6px; }
  .section-heading p, .workflow-copy > p { font-size: 16px; }
  .feature-grid { gap: 14px; }
  .feature-card { min-height: 0; padding: 24px; border-radius: 17px; }
  .feature-card h3 { margin: 16px 0 8px; font-size: 19px; }
  .feature-card p { font-size: 15px; }
  .mini-invoice { margin-top: 24px; padding: 14px; gap: 5px 10px; }
  .mini-invoice strong { font-size: 14px; }
  .workflow { gap: 34px; }
  .steps li { gap: 16px; padding: 22px 0; }
  .steps h3 { font-size: 18px; }
  .sector-row article { padding: 24px; }
  .outcome-strip { grid-template-columns: 1fr; padding: 38px 24px; gap: 0; }
  .outcome-strip article,
  .outcome-strip article:nth-child(2) {
    justify-content: flex-start;
    border-right: 0;
    border-bottom: 1px solid #e0e5ed;
    padding: 18px 0;
  }
  .outcome-strip article:last-child { border: 0; }
  .outcome-strip strong { min-width: 64px; font-size: 30px; }
  .product-map-grid { grid-template-columns: 1fr; }
  .product-map-grid article { padding: 20px; }
  .faq-list summary { min-height: 64px; padding: 18px 2px; font-size: 15px; line-height: 1.4; }
  .faq-list details p { margin-right: 4px; line-height: 1.65; }
  .faq-section { padding-top: 62px; gap: 28px; }
  .cta-section { margin: 54px 14px; padding: 38px 22px; border-radius: 22px; }
  .cta-section p { font-size: 15px; }
  footer { padding: 38px 20px max(38px, env(safe-area-inset-bottom)); gap: 20px; }
}

@media (max-width: 370px) {
  .hero { padding-inline: 16px; }
  .hero-pill { font-size: 8.7px; }
  .hero h1 { font-size: 35px; }
  .section { padding-inline: 16px; }
}

@media (min-width: 371px) and (max-width: 680px) {
  .outcome-strip {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    padding-block: 32px;
  }
  .outcome-strip article,
  .outcome-strip article:nth-child(2) {
    display: block;
    min-height: 122px;
    padding: 18px;
    border: 1px solid #e0e5ed;
    border-radius: 15px;
    background: #fff;
  }
  .outcome-strip article:last-child { border: 1px solid #e0e5ed; }
  .outcome-strip strong { display: block; margin-bottom: 8px; }
  .sector-row {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }
  .sector-row article { min-height: 185px; padding: 20px; }
}
