/* Before90 — product page theme

   Provenance: breath/docs/design.md §2.
   The hero uses the app's dark surface.base and the real breath core/mid/deep
   colors. The screenshot remains the only representation of the app UI.
*/
:root {
  --paper: #EFF3F7;
  --ink: #0B1119;
  --ink-2: #3A4654;
  --ink-3: #617080;
  --line: #D6E0E8;
  --line-strong: #BCCBD6;
  --accent: #2F94AA;
  --accent-dark: #1F4E72;
  --font-display: ui-rounded, 'SF Pro Rounded', 'Noto Sans SC', sans-serif;
  --font-body: ui-rounded, 'SF Pro Rounded', 'Noto Sans SC', sans-serif;
  --font-mono: 'IBM Plex Mono', 'Noto Sans SC', monospace;
  --before90-night: #0B1119;
  --before90-raised: #121821;
  --before90-core: #9EE0EB;
  --before90-mid: #5CA8BD;
  --before90-deep: #295C85;
  --before90-action: #11708C;
}

.before90-page {
  background: var(--paper);
}

.before90-page .navbar.scrolled {
  background: rgba(239, 243, 247, 0.92);
}

.before90-page ::selection {
  background: var(--before90-mid);
  color: #fff;
}

.before90-page .app-hero {
  position: relative;
  isolation: isolate;
  padding: 148px 24px 96px;
  overflow: hidden;
  color: #F3F7FA;
  background: var(--before90-night);
}

.before90-page .app-hero::before {
  content: '';
  position: absolute;
  z-index: -1;
  top: -250px;
  right: -130px;
  width: 690px;
  height: 690px;
  border: 1px solid rgba(158, 224, 235, 0.26);
  border-radius: 50%;
  box-shadow: 0 0 0 40px rgba(92, 168, 189, 0.08), 0 0 0 108px rgba(92, 168, 189, 0.04);
}

.before90-page .app-hero-inner {
  position: relative;
  z-index: 1;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.72fr);
  gap: clamp(48px, 9vw, 118px);
  align-items: center;
}

.before90-page .hero-content {
  max-width: 620px;
}

.before90-page .hero-eyebrow {
  color: var(--before90-core);
}

.before90-page .hero-eyebrow::before {
  background: var(--before90-core);
}

.before90-page .app-hero-icon {
  width: 92px;
  height: 92px;
  margin-bottom: 28px;
  border: 0;
  border-radius: 24%;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.34);
}

.before90-page .app-hero-title {
  max-width: 12ch;
  margin: 28px 0 32px;
  font-size: clamp(3.3rem, 6.8vw, 5.8rem);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.04;
}

.before90-page .app-hero-subtitle {
  max-width: 560px;
  margin-bottom: 36px;
  color: rgba(243, 247, 250, 0.75);
  font-size: 1rem;
  line-height: 1.82;
}

.before90-page .app-hero-cta {
  gap: 24px;
}

.before90-page .app-hero-cta .text-link {
  color: var(--before90-core);
}

.before90-page .app-badge img {
  height: 42px;
}

.before90-page .app-hero-shot {
  position: relative;
  max-width: 350px;
  justify-self: end;
  margin-right: 22px;
}

.before90-page .app-hero-shot::before {
  content: '';
  position: absolute;
  z-index: -1;
  inset: 13% -20% 12% -20%;
  border: 2px solid rgba(92, 168, 189, 0.82);
  border-radius: 50%;
  transform: rotate(18deg);
}

.before90-page .app-hero-shot::after {
  content: '';
  position: absolute;
  top: 4%;
  right: -14%;
  width: 14px;
  height: 14px;
  border: 3px solid var(--before90-core);
  border-radius: 50%;
  box-shadow: 0 0 0 8px rgba(158, 224, 235, 0.12);
}

.before90-page .app-hero-shot .shot-frame {
  padding: 11px;
  border-color: rgba(158, 224, 235, 0.28);
  border-radius: 34px;
  background: var(--before90-raised);
  box-shadow: 0 36px 62px rgba(0, 0, 0, 0.38);
  transform: rotate(-1.2deg);
}

.before90-page .app-hero-shot .shot-frame img {
  border-radius: 25px;
}

.before90-page .app-shots {
  background: var(--paper);
}

.before90-page .app-shots .section-container {
  padding-top: 104px;
  padding-bottom: 104px;
}

.before90-page .app-shots .section-head {
  margin-bottom: 34px;
}

.before90-page .app-shots-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.before90-page .app-shot {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: #F8FBFD;
}

.before90-page .app-shot:nth-child(2) {
  transform: translateY(28px);
  border-color: rgba(92, 168, 189, 0.5);
}

.before90-page .app-shot .shot-frame {
  padding: 8px;
  border: 0;
  border-radius: 18px;
  background: var(--before90-night);
  box-shadow: none;
}

.before90-page .app-shot .shot-frame img {
  border-radius: 12px;
}

.before90-page .app-shot figcaption {
  margin: 16px 2px 2px;
  color: var(--ink-2);
}

.before90-page .app-features {
  background: #F8FBFD;
}

.before90-page .app-features .section-head {
  margin-bottom: 34px;
}

.before90-page .app-features-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.before90-page .app-feature-item {
  min-height: 224px;
  padding: 26px 24px 24px;
  border: 1px solid var(--line);
  border-top: 3px solid var(--before90-mid);
  border-radius: 18px;
  background: #FFFFFF;
}

.before90-page .app-feature-item:nth-child(4) {
  border-top-color: var(--before90-deep);
}

.before90-page .app-feature-item:nth-child(5) {
  border-top-color: var(--before90-core);
}

.before90-page .app-feature-item .mono-label {
  color: var(--before90-deep);
}

.before90-page .app-feature-item h2,
.before90-page .app-feature-item h3 {
  font-size: 1.22rem;
  font-weight: 500;
}

.before90-page .app-feature-item p {
  color: var(--ink-2);
}

.before90-page .app-links {
  color: #F3F7FA;
  background: var(--before90-night);
  --ink: #F3F7FA;
  --ink-2: #C2D0D9;
  --ink-3: #91A3AF;
  --line: #263541;
  --accent: var(--before90-core);
}

.before90-page .app-links .section-rule {
  background: var(--line);
}

.before90-page .app-links .section-rule::after {
  background: var(--accent);
}

.before90-page .app-links .app-link-row {
  padding: 24px 20px;
  border-bottom-color: var(--line);
  border-radius: 14px;
}

.before90-page .app-links .app-link-row:hover {
  padding-left: 28px;
  background: var(--before90-raised);
}

.before90-page .app-links .app-link-row-arrow {
  color: var(--accent);
}

@media (max-width: 1024px) {
  .before90-page .app-hero-inner {
    grid-template-columns: minmax(0, 1fr) minmax(280px, 0.7fr);
    gap: 50px;
  }

  .before90-page .app-hero-shot {
    max-width: 310px;
    margin-right: 8px;
  }

  .before90-page .app-hero-title {
    font-size: clamp(3rem, 6.8vw, 5.1rem);
  }
}

@media (max-width: 900px) {
  .before90-page .app-hero-inner {
    grid-template-columns: 1fr;
    gap: 58px;
  }

  .before90-page .app-hero-shot {
    justify-self: start;
    max-width: min(350px, 86vw);
    margin-right: 0;
  }

  .before90-page .app-features-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .before90-page .app-hero {
    padding: 120px 20px 76px;
  }

  .before90-page .app-hero-title {
    font-size: clamp(3rem, 14vw, 4.8rem);
  }

  .before90-page .app-shots .section-container {
    padding-top: 76px;
    padding-bottom: 76px;
  }

  .before90-page .app-shot {
    flex-basis: 82%;
  }

  .before90-page .app-shot:nth-child(2) {
    transform: none;
  }

  .before90-page .app-features-grid {
    grid-template-columns: 1fr;
  }

  .before90-page .app-feature-item {
    min-height: 0;
  }
}
