/* ==========================================================================
   S1 Hero - General (Homepage B)
   Navy section: background is set in the HubSpot Design Manager UI, NOT here.
   Resolved values: H1 48px, __inner 1320px, hero padding 72px 64px.
   ========================================================================== */
:root {
  --navy:      #074675;
  --navy-dark: #052f4f;
  --off-white: #F6F9FC;
  --aqua:      #1ED1FD;
  --blue-grey: #6B98AF;
  --lt-blue:   #ACC4D4;
  --text:      #4a5b6d;
  --hairline:  #E3EAF2;
  --font-h:    'Roboto', system-ui, sans-serif;
  --font-sub:  'Catamaran', system-ui, sans-serif;
  --font-body: 'Open Sans', system-ui, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body { touch-action: pan-x pan-y; overflow-x: hidden; max-width: 100%; }

/* Screen-reader-only text */
.hb-visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

/* Eyebrow */
.hb-eyebrow { display: inline-flex; align-items: center; gap: 12px; font-family: var(--font-body); font-weight: 700; font-size: 12px; letter-spacing: 0.22em; text-transform: uppercase; margin-bottom: 28px; }
.hb-eyebrow::before { content: ''; display: inline-block; width: 28px; height: 2px; background: var(--aqua); flex-shrink: 0; }
.hb-eyebrow--light { color: var(--aqua); }

/* Section: no background here (HubSpot controls navy) */
.hb-hero { padding: 72px 64px; color: var(--off-white); }
.hb-hero__inner { max-width: 1320px; margin: 0 auto; display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 64px; align-items: center; }

.hb-hero__h1 { font-family: var(--font-h); font-weight: 900; font-size: 48px; line-height: 1.04; letter-spacing: -0.025em; color: var(--off-white); margin-bottom: 24px; }
.hb-hero__h1-accent { color: var(--aqua); }
.hb-hero__sub { font-family: var(--font-sub); font-size: 20px; line-height: 1.55; color: var(--lt-blue); max-width: 540px; margin-bottom: 40px; }
.hb-hero__ctas { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; }

/* Primary button */
.hb-hero .hb-btn-primary { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-family: var(--font-body); font-weight: 700; font-size: 15px; padding: 14px 28px; min-height: 48px; background: var(--aqua); color: var(--navy); border: 1px solid var(--aqua); border-radius: 4px; text-decoration: none; transition: filter 0.15s; }
.hb-hero .hb-btn-primary:hover { filter: brightness(1.08); }
.hb-hero .hb-btn-primary:focus-visible { outline: 3px solid var(--off-white); outline-offset: 3px; }

/* ── Hero card: frosted glass ──────────────────────────────────────────────
   Matches the live twosense.ai homepage hero card (aqua number rings, off-white
   titles, lt-blue body), with a translucent glass panel and a soft aqua glow
   behind it so it reads as a SaaS product graphic rather than a flat box.
   The glow is a decorative element behind the card, not a section background. */
.hb-hero__right { position: relative; padding: 8px 0; }
.hb-hero__right::before { content: ''; position: absolute; z-index: 0; top: 50%; left: 50%; width: 80%; height: 70%; transform: translate(-50%, -50%); background: radial-gradient(closest-side, rgba(30, 209, 253, 0.22), rgba(30, 209, 253, 0)); filter: blur(30px); pointer-events: none; }
.hb-hero-card { position: relative; z-index: 1; max-width: 520px; margin-left: auto; padding: 32px; border-radius: 16px;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.10) 0%, rgba(255, 255, 255, 0.04) 100%);
  border: 1px solid rgba(172, 196, 212, 0.28);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 24px 60px rgba(0, 0, 0, 0.25);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
.hb-hero-card__list { list-style: none; }
.hb-hero-card__row { display: flex; align-items: flex-start; gap: 16px; padding: 18px 0; border-bottom: 1px solid rgba(172, 196, 212, 0.14); }
.hb-hero-card__row:first-child { padding-top: 0; }
.hb-hero-card__row:last-child { border-bottom: none; padding-bottom: 0; }
.hb-hero-card__icon { width: 40px; height: 40px; border-radius: 50%; background: rgba(30, 209, 253, 0.15); border: 1.5px solid rgba(30, 209, 253, 0.5); display: flex; align-items: center; justify-content: center; flex-shrink: 0; font-family: var(--font-h); font-weight: 900; font-size: 15px; color: var(--aqua); }
.hb-hero-card__content { flex: 1; min-width: 0; }
.hb-hero-card__title { font-family: var(--font-body); font-weight: 700; font-size: 15px; line-height: 1.35; color: var(--off-white); }
.hb-hero-card__body { font-family: var(--font-sub); font-size: 14px; line-height: 1.55; color: var(--lt-blue); }

/* Theme override: HubSpot's theme adds margins to h3/p/li. Scoped to .hb-hero so these win. */
.hb-hero .hb-hero-card__list, .hb-hero .hb-hero-card__row, .hb-hero .hb-hero-card__title, .hb-hero .hb-hero-card__body { margin-top: 0; margin-left: 0; margin-right: 0; }
.hb-hero .hb-hero-card__list { margin-bottom: 0; padding: 0; }
.hb-hero .hb-hero-card__row { margin-bottom: 0; }
.hb-hero .hb-hero-card__title { margin-bottom: 6px; }
.hb-hero .hb-hero-card__body { margin-bottom: 0; }
.hb-hero .hb-hero__h1 { margin-top: 0; }
.hb-hero .hb-hero__sub { margin-top: 0; }

/* Signals: aqua and amber on navy glass, both above 4.5:1 */
.hb-hero-card__signal { display: inline-flex; align-items: center; gap: 6px; margin-top: 10px; font-family: var(--font-body); font-weight: 700; font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; }
.hb-hero-card__signal::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; flex-shrink: 0; }
.hb-hero-card__signal--active { color: var(--aqua); }
.hb-hero-card__signal--alert { color: #f4a836; }

/* Fallback where backdrop-filter isn't supported: slightly more opaque panel */
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .hb-hero-card { background: rgba(7, 70, 117, 0.85); }
}

/* 1024px */
@media (max-width: 1024px) {
  .hb-hero__inner { gap: 40px; }
}

/* 768px: stack, copy above card */
@media (max-width: 768px) {
  .hb-hero { padding: 60px 24px !important; }
  .hb-hero__inner { grid-template-columns: 1fr !important; gap: 40px !important; }
  .hb-eyebrow { font-size: 10px !important; letter-spacing: 0.1em !important; white-space: normal !important; overflow-wrap: break-word !important; }
  .hb-hero__h1 { font-size: 28px !important; }
  .hb-hero__sub { font-size: 17px !important; max-width: 100% !important; margin-bottom: 32px !important; }
  .hb-hero__ctas { flex-direction: column !important; align-items: stretch !important; }
  .hb-hero .hb-btn-primary { width: 100% !important; justify-content: center !important; }
  .hb-hero__right { padding: 0 !important; }
  .hb-hero__right .hb-hero-card { max-width: none !important; margin-left: 0 !important; }
  .hb-hero-card { padding: 24px !important; }
  .hb-hero-card__row { gap: 14px !important; }
}

@media (prefers-reduced-motion: reduce) {
  .hb-hero .hb-btn-primary { transition: none; }
}