/* ==========================================================================
   Apexar marketing site — styles.css
   Palette: #1B4568 apex | #0D0D0D dark | #2A6A9E mid | #E8F0F7 ice | #F5F7FA cloud
   ========================================================================== */

:root {
  --apex: #1B4568;
  --dark: #0D0D0D;
  --mid: #2A6A9E;
  --ice: #E8F0F7;
  --cloud: #F5F7FA;
  --white: #ffffff;
  --text: #23303c;
  --text-muted: #5a6b7a;
  --border: #d7e2ec;
  --radius: 12px;
  --shadow-card: 0 1px 3px rgba(13, 13, 13, 0.06), 0 6px 20px rgba(27, 69, 104, 0.07);
  --shadow-card-hover: 0 2px 6px rgba(13, 13, 13, 0.07), 0 12px 32px rgba(27, 69, 104, 0.12);
  --nav-height: 72px;
  --max-width: 1160px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-height) + 16px);
}

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-weight: 400;
  font-size: 17px;
  line-height: 1.65;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-weight: 600;
  line-height: 1.2;
  color: var(--apex);
  letter-spacing: -0.02em;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: var(--mid);
  text-decoration: none;
}

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

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */

.btn {
  display: inline-block;
  font-family: inherit;
  font-size: 16px;
  font-weight: 600;
  line-height: 1;
  padding: 15px 28px;
  border-radius: 8px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
  white-space: nowrap;
}

.btn-primary {
  background: var(--apex);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--mid);
  transform: translateY(-1px);
}

.btn-secondary {
  background: transparent;
  color: var(--apex);
  border-color: var(--apex);
}

.btn-secondary:hover {
  background: var(--ice);
}

.btn-on-blue {
  background: var(--white);
  color: var(--apex);
}

.btn-on-blue:hover {
  background: var(--ice);
  transform: translateY(-1px);
}

.link-arrow {
  font-weight: 600;
  color: var(--mid);
}

.link-arrow:hover {
  color: var(--apex);
}

/* --------------------------------------------------------------------------
   Nav
   -------------------------------------------------------------------------- */

.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--nav-height);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.site-nav .container {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
}

.nav-sage-badge {
  height: 22px;
  width: auto;
  display: block;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.nav-logo svg,
.nav-logo img {
  height: 48px;
  width: auto;
}

.nav-logo .wordmark {
  font-size: 22px;
  font-weight: 600;
  color: var(--apex);
  letter-spacing: -0.02em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.nav-links a {
  font-size: 15.5px;
  font-weight: 500;
  color: var(--text);
  transition: color 0.15s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--apex);
}

.nav-cta {
  display: flex;
  align-items: center;
  gap: 16px;
}

.nav-login {
  font-size: 15.5px;
  font-weight: 500;
  color: var(--text);
  white-space: nowrap;
  transition: color 0.15s ease;
}

.nav-login:hover {
  color: var(--apex);
}

/* Shown inside the hamburger menu on mobile; hidden on desktop */
.nav-mobile-login {
  display: none;
}

.nav-cta .btn {
  padding: 12px 22px;
  font-size: 15px;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--apex);
  margin: 5px 0;
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

/* --------------------------------------------------------------------------
   Sections — shared
   -------------------------------------------------------------------------- */

section {
  padding: 96px 0;
}

.eyebrow {
  display: inline-block;
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--mid);
  margin-bottom: 16px;
}

.section-title {
  font-size: clamp(28px, 4vw, 40px);
  margin-bottom: 20px;
}

.section-intro {
  max-width: 720px;
  color: var(--text-muted);
  font-size: 18px;
}

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
  will-change: opacity, transform;
}

.reveal.in-view {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* Real product screenshots */
.product-shot {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-card);
  background: var(--white);
}

/* Framed "dialog" treatment for narrow/modal screenshots */
.feature-visual.dialog {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(160deg, var(--ice) 0%, var(--cloud) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px;
}

.feature-visual.dialog .zoom {
  border: none;
  background: transparent;
  border-radius: var(--radius);
  box-shadow: 0 8px 30px rgba(27, 69, 104, 0.16);
  max-width: 100%;
}

.feature-visual.dialog .zoom img {
  width: auto;
  max-width: 100%;
  max-height: 420px;
}

/* Placeholder blocks for product screenshots (16:9) */
.screenshot-placeholder {
  aspect-ratio: 16 / 9;
  width: 100%;
  border-radius: var(--radius);
  background: linear-gradient(160deg, var(--ice) 0%, var(--cloud) 100%);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--mid);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.04em;
  box-shadow: var(--shadow-card);
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */

.hero {
  position: relative;
  overflow: hidden;
  padding: 52px 0 80px;
  background:
    radial-gradient(56% 48% at 50% 6%, rgba(42, 106, 158, 0.13), rgba(42, 106, 158, 0) 72%),
    linear-gradient(180deg, var(--ice) 0%, var(--cloud) 46%, var(--white) 100%);
}

/* Faint dot grid that fades out before it reaches the copy */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(27, 69, 104, 0.07) 1.2px, transparent 1.2px);
  background-size: 24px 24px;
  -webkit-mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.6) 0%, rgba(0, 0, 0, 0) 68%);
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.6) 0%, rgba(0, 0, 0, 0) 68%);
  pointer-events: none;
}

.hero .container {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr;
  gap: 56px;
  text-align: center;
}

.hero h1 {
  font-size: clamp(34px, 5.2vw, 54px);
  max-width: 1080px;
  margin: 0 auto;
  text-wrap: balance;
}

.hero .subhead {
  max-width: 760px;
  margin: 24px auto 0;
  font-size: 19px;
  color: var(--text-muted);
}

.hero-pronounce {
  margin-top: 12px;
  font-size: 14.5px;
  color: var(--text-muted);
}

.hero-pronounce .phon {
  font-style: italic;
}

.hero-pronounce .say {
  color: var(--apex);
  font-weight: 600;
}

.hero-actions {
  margin-top: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
}

.hero-visual {
  max-width: 960px;
  margin: 0 auto;
  width: 100%;
}

/* --------------------------------------------------------------------------
   The gap (problem statement)
   -------------------------------------------------------------------------- */

.gap-section {
  background: var(--cloud);
}

.gap-section .container {
  max-width: 800px;
}

.gap-section p {
  font-size: 19px;
  margin-bottom: 20px;
  color: var(--text);
}

.gap-section p strong {
  color: var(--apex);
}

/* Hero dual pills — promise financial AND operational up front */
.hero-pills {
  margin-top: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 9px 18px;
  border-radius: 999px;
  background: var(--ice);
  border: 1px solid var(--border);
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  color: var(--apex);
  cursor: pointer;
  transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.hero-pill svg {
  width: 17px;
  height: 17px;
  stroke: var(--mid);
  transition: stroke 0.18s ease;
}

.hero-pill:hover {
  border-color: var(--mid);
}

.hero-pill.is-active {
  background: var(--apex);
  border-color: var(--apex);
  color: var(--white);
  box-shadow: 0 4px 12px rgba(27, 69, 104, 0.22);
}

.hero-pill.is-active svg {
  stroke: var(--white);
}

.hero-pill:focus-visible {
  outline: 3px solid rgba(42, 106, 158, 0.4);
  outline-offset: 2px;
}

.hero-pill-plus {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-muted);
}

/* --------------------------------------------------------------------------
   Balance band — Financial AND Operational, equal weight
   -------------------------------------------------------------------------- */

.balance-section {
  background: var(--white);
}

.balance-section .section-header {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 48px;
}

.balance-section .section-intro {
  margin: 0 auto;
}

.balance-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 0;
  align-items: stretch;
}

.balance-panel {
  background: var(--ice);
  padding: 40px 36px;
  border: 1px solid var(--border);
}

.balance-panel:first-child {
  border-radius: var(--radius) 0 0 var(--radius);
  border-right: none;
}

.balance-panel:last-child {
  border-radius: 0 var(--radius) var(--radius) 0;
  border-left: none;
}

.balance-plus {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  background: var(--apex);
  color: var(--white);
  font-size: 30px;
  font-weight: 600;
}

.balance-panel .panel-icon {
  width: 46px;
  height: 46px;
  border-radius: 10px;
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.balance-panel .panel-icon svg {
  width: 25px;
  height: 25px;
  stroke: var(--apex);
}

.balance-panel h3 {
  font-size: 22px;
  margin-bottom: 6px;
}

.balance-panel .panel-tag {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: 22px;
}

.balance-panel ul {
  list-style: none;
}

.balance-panel ul li {
  position: relative;
  padding: 9px 0 9px 28px;
  font-size: 15.5px;
  color: var(--text);
  border-top: 1px solid rgba(27, 69, 104, 0.09);
}

.balance-panel ul li:first-child {
  border-top: none;
}

.balance-panel ul li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 15px;
  width: 13px;
  height: 7px;
  border-left: 2px solid var(--mid);
  border-bottom: 2px solid var(--mid);
  transform: rotate(-45deg);
}

/* --------------------------------------------------------------------------
   Three lenses
   -------------------------------------------------------------------------- */

.lenses-section {
  background: var(--ice);
}

.lens-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 48px;
}

.lens-card {
  background: var(--white);
  border: 1px solid transparent;
  border-radius: var(--radius);
  padding: 36px 32px;
  box-shadow: var(--shadow-card);
  transition: box-shadow 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}

.lens-card:hover {
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-3px);
}

/* Focus mode: selected lens leads and gets a highlight ring; AI stays last */
.lens-financial { order: 1; }
.lens-operational { order: 2; }
.lens-ai { order: 3; }

[data-focus="operational"] .lens-operational { order: 1; }
[data-focus="operational"] .lens-financial { order: 2; }

[data-focus="financial"] .lens-financial,
[data-focus="operational"] .lens-operational {
  border-color: var(--mid);
  box-shadow: 0 0 0 3px rgba(42, 106, 158, 0.15), var(--shadow-card);
}

.lens-icon {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  background: var(--ice);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 22px;
}

.lens-icon svg {
  width: 26px;
  height: 26px;
  stroke: var(--apex);
}

.lens-card h3 {
  font-size: 21px;
  margin-bottom: 14px;
}

.lens-card p {
  font-size: 15.5px;
  color: var(--text-muted);
}

/* --------------------------------------------------------------------------
   Feature blocks (alternating)
   -------------------------------------------------------------------------- */

.features-section .section-header {
  margin-bottom: 24px;
}

.feature-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  padding: 48px 0;
}

.feature-block.media-left .feature-copy {
  order: 2;
}

.feature-copy h3 {
  font-size: clamp(24px, 3vw, 30px);
  margin-bottom: 18px;
}

.feature-copy p {
  color: var(--text-muted);
  font-size: 16.5px;
}

/* --------------------------------------------------------------------------
   Who it's for
   -------------------------------------------------------------------------- */

.audience-section {
  background: var(--cloud);
}

.audience-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 48px;
}

.audience-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 36px 32px;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.audience-card h3 {
  font-size: 20px;
}

.audience-card .label {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 4px 11px;
  border-radius: 6px;
  margin-bottom: 12px;
}

.audience-card .pain .label {
  background: #d9463f;
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(217, 70, 63, 0.28);
}

.audience-card .solution .label {
  background: var(--ice);
  color: var(--apex);
}

.audience-card p {
  font-size: 15.5px;
  color: var(--text-muted);
}

/* --------------------------------------------------------------------------
   App / install-as-an-app section
   -------------------------------------------------------------------------- */

.app-section {
  background: var(--ice);
}

.app-layout {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 64px;
  align-items: center;
  margin-top: 40px;
}

.app-copy .app-list {
  list-style: none;
  margin: 28px 0 32px;
}

.app-copy .app-list li {
  position: relative;
  padding: 12px 0 12px 40px;
  font-size: 16.5px;
  color: var(--text);
  border-top: 1px solid rgba(27, 69, 104, 0.1);
}

.app-copy .app-list li:first-child {
  border-top: none;
}

.app-copy .app-list li strong {
  color: var(--apex);
}

.app-copy .app-list li svg {
  position: absolute;
  left: 4px;
  top: 13px;
  width: 22px;
  height: 22px;
  stroke: var(--mid);
}

.browser-badges {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.browser-badges .badges-label {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-right: 4px;
}

.browser-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  border-radius: 999px;
  background: var(--white);
  border: 1px solid var(--border);
  font-size: 14px;
  font-weight: 600;
  color: var(--apex);
}

.browser-badge svg {
  width: 16px;
  height: 16px;
}

/* Device scene — browser window with an install affordance + phone */
.device-scene {
  position: relative;
  padding: 0 0 44px 44px;
}

.browser-mock {
  border-radius: 14px;
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--border);
  box-shadow: 0 18px 44px rgba(27, 69, 104, 0.18);
}

.browser-bar {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 11px 16px;
  background: #eef3f8;
  border-bottom: 1px solid var(--border);
}

.browser-dots {
  display: flex;
  gap: 7px;
  flex-shrink: 0;
}

.browser-dots span {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #cdd8e3;
}

.browser-url {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 7px 8px 7px 16px;
  font-size: 13px;
  color: var(--text-muted);
}

.browser-url .install-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--apex);
  color: var(--white);
  font-weight: 600;
  font-size: 12.5px;
  padding: 5px 11px;
  border-radius: 999px;
}

.browser-url .install-chip svg {
  width: 13px;
  height: 13px;
  stroke: var(--white);
}

.browser-body {
  display: block;
}

.browser-body img {
  display: block;
  width: 100%;
  height: auto;
}

.phone-mock {
  position: absolute;
  left: 0;
  bottom: -12px;
  width: 172px;
  background: var(--white);
  border: 7px solid var(--dark);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 18px 38px rgba(13, 13, 13, 0.26);
}

.phone-shot {
  display: block;
  width: 100%;
  height: auto;
}

.phone-app-bar {
  display: flex;
  align-items: center;
  gap: 7px;
  background: var(--apex);
  color: var(--white);
  padding: 12px 14px 10px;
}

.phone-app-bar svg {
  width: 15px;
  height: 15px;
}

.phone-app-bar span {
  font-size: 13px;
  font-weight: 600;
}

.phone-stats {
  padding: 6px 12px 14px;
}

.phone-stat {
  padding: 9px 0;
  border-top: 1px solid var(--border);
}

.phone-stat:first-child {
  border-top: none;
}

.phone-stat .k {
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.phone-stat .v {
  font-size: 16px;
  font-weight: 600;
  color: var(--apex);
}

.phone-stat .v.warn {
  color: #b0602f;
}

/* --------------------------------------------------------------------------
   Pricing
   -------------------------------------------------------------------------- */

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 18px;
  margin-top: 48px;
}

.pricing-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 22px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  text-align: center;
}

.pricing-card.coming-soon {
  opacity: 0.65;
}

.pricing-card .tier-name {
  font-size: 17px;
  font-weight: 600;
  color: var(--apex);
}

.pricing-card .tier-price {
  font-size: 28px;
  font-weight: 600;
  color: var(--dark);
}

.pricing-card .tier-price .period {
  font-size: 14px;
  font-weight: 400;
  color: var(--text-muted);
}

.pricing-card ul {
  list-style: none;
  text-align: left;
  font-size: 14px;
  color: var(--text-muted);
  flex-grow: 1;
}

.pricing-card ul li {
  padding: 6px 0 6px 24px;
  position: relative;
}

.pricing-card ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 11px;
  width: 14px;
  height: 8px;
  border-left: 2px solid var(--mid);
  border-bottom: 2px solid var(--mid);
  transform: rotate(-45deg) scale(0.8);
}

.pricing-card .btn {
  width: 100%;
  padding: 12px 0;
  font-size: 14.5px;
}

.pricing-card .btn[disabled] {
  cursor: default;
  background: var(--cloud);
  color: var(--text-muted);
  border: 1px solid var(--border);
}

.pricing-note {
  margin-top: 28px;
  text-align: center;
  font-size: 15px;
  color: var(--text-muted);
}

.pricing-note a {
  color: var(--mid);
  font-weight: 600;
}

.pricing-section .section-intro {
  max-width: none;
}

/* ---- 3-tier pricing ---- */
.pricing-grid-3 {
  grid-template-columns: repeat(3, 1fr);
  max-width: 1040px;
  margin-left: auto;
  margin-right: auto;
  align-items: start;
}

.tier-desc {
  font-size: 13.5px;
  color: var(--text-muted);
  margin-top: -8px;
}

.tier-price-custom {
  font-size: 24px;
}

.tier-billing {
  font-size: 12.5px;
  color: var(--text-muted);
  min-height: 15px;
  margin-top: -8px;
}

.pricing-card.featured {
  border: 2px solid var(--apex);
  box-shadow: var(--shadow-card-hover);
  position: relative;
}

.pricing-badge {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--apex);
  color: var(--white);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 999px;
  white-space: nowrap;
}

/* Pricing controls — Monthly/Annual + Financial/Operational/Both */
.pricing-controls {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin-top: 32px;
}

.pricing-controls-note {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 2px;
}

.scope-toggle,
.billing-toggle {
  display: flex;
  gap: 4px;
  width: max-content;
  max-width: 100%;
  padding: 5px;
  background: var(--ice);
  border: 1px solid var(--border);
  border-radius: 999px;
}

.scope-opt,
.billing-opt {
  border: none;
  background: transparent;
  font-family: inherit;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--text-muted);
  padding: 9px 22px;
  border-radius: 999px;
  cursor: pointer;
  transition: background-color 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
}

.scope-opt:hover,
.billing-opt:hover {
  color: var(--apex);
}

.scope-opt.is-active,
.billing-opt.is-active {
  background: var(--apex);
  color: var(--white);
  box-shadow: 0 2px 8px rgba(27, 69, 104, 0.22);
}

.scope-opt:focus-visible,
.billing-opt:focus-visible {
  outline: 3px solid rgba(42, 106, 158, 0.4);
  outline-offset: 2px;
}

/* --------------------------------------------------------------------------
   CTA band
   -------------------------------------------------------------------------- */

.cta-band {
  background: var(--apex);
  padding: 72px 0;
}

.cta-band .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}

.cta-band h2 {
  color: var(--white);
  font-size: clamp(26px, 3.5vw, 36px);
}

.cta-band-actions {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.cta-band-actions .link-arrow {
  color: var(--ice);
}

.cta-band-actions .link-arrow:hover {
  color: var(--white);
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

.site-footer {
  background: var(--dark);
  color: #9aa7b3;
  padding: 56px 0 40px;
  font-size: 15px;
}

.footer-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
  padding-bottom: 32px;
  border-bottom: 1px solid #262626;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-sage-badge {
  height: 26px;
  width: auto;
}

.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #ffffff;
  padding: 7px 14px;
  border-radius: 10px;
}

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

.footer-logo .wordmark {
  font-size: 20px;
  font-weight: 600;
  color: var(--white);
}

.footer-links {
  display: flex;
  gap: 28px;
  list-style: none;
  flex-wrap: wrap;
}

.footer-links a {
  color: #9aa7b3;
  transition: color 0.15s ease;
}

.footer-links a:hover {
  color: var(--white);
}

.footer-bottom {
  padding-top: 28px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 14px;
}

/* --------------------------------------------------------------------------
   Lens card link (home → features page)
   -------------------------------------------------------------------------- */

.lens-card {
  display: flex;
  flex-direction: column;
}

.lens-link {
  margin-top: auto;
  padding-top: 22px;
  font-size: 15px;
  font-weight: 600;
  color: var(--mid);
  align-self: flex-start;
  transition: color 0.15s ease;
}

.lens-link:hover {
  color: var(--apex);
}

/* --------------------------------------------------------------------------
   Features page
   -------------------------------------------------------------------------- */

.page-header {
  position: relative;
  overflow: hidden;
  padding: 88px 0 40px;
  text-align: center;
  background:
    radial-gradient(58% 60% at 50% 0%, rgba(42, 106, 158, 0.13), rgba(42, 106, 158, 0) 72%),
    linear-gradient(180deg, var(--ice) 0%, var(--cloud) 55%, var(--white) 100%);
}

.page-header::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(27, 69, 104, 0.07) 1.2px, transparent 1.2px);
  background-size: 24px 24px;
  -webkit-mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.55) 0%, rgba(0, 0, 0, 0) 70%);
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.55) 0%, rgba(0, 0, 0, 0) 70%);
  pointer-events: none;
}

.page-header .container {
  position: relative;
  z-index: 1;
}

.page-header h1 {
  font-size: clamp(32px, 4.5vw, 48px);
  max-width: 1040px;
  margin: 0 auto;
  text-wrap: balance;
}

.page-header .section-intro {
  margin: 20px auto 0;
}

/* Module jump nav */
.module-nav {
  position: sticky;
  top: var(--nav-height);
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.module-nav .container {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  padding-top: 16px;
  padding-bottom: 16px;
}

.module-nav a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 999px;
  background: var(--ice);
  border: 1px solid var(--border);
  font-size: 14.5px;
  font-weight: 600;
  color: var(--apex);
  transition: background-color 0.15s ease, border-color 0.15s ease;
}

.module-nav a:hover {
  background: var(--white);
  border-color: var(--mid);
}

.module-nav a .count {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--mid);
}

/* Flagship tools (Management Pack + Report Builder) */
.flagship {
  padding: 72px 0;
  background: var(--white);
  border-bottom: 1px solid var(--border);
}

.flagship-header {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 48px;
}

.flagship-header .section-intro {
  margin: 16px auto 0;
}

.flagship-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}

.flagship-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.flagship-visual {
  aspect-ratio: 3 / 2;
  background: linear-gradient(160deg, var(--ice) 0%, var(--cloud) 100%);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--mid);
  font-size: 14px;
  font-weight: 500;
}

.flagship-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
}

.flagship-body {
  padding: 28px 30px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.flagship-body .flagship-tag {
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--mid);
  margin-bottom: 10px;
}

.flagship-body h3 {
  font-size: 22px;
  margin-bottom: 12px;
}

.flagship-body > p {
  color: var(--text-muted);
  font-size: 15.5px;
  margin-bottom: 20px;
}

.flagship-points {
  list-style: none;
  margin-top: auto;
}

.flagship-points li {
  position: relative;
  padding: 9px 0 9px 28px;
  font-size: 15px;
  color: var(--text);
  border-top: 1px solid rgba(27, 69, 104, 0.09);
}

.flagship-points li:first-child {
  border-top: none;
}

.flagship-points li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 15px;
  width: 13px;
  height: 7px;
  border-left: 2px solid var(--mid);
  border-bottom: 2px solid var(--mid);
  transform: rotate(-45deg);
}

/* Module sections */
.module {
  padding: 72px 0;
}

.module.module--alt {
  background: var(--cloud);
}

/* Example-question chips (AI module) */
.ai-examples {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.ai-examples .q {
  display: inline-block;
  padding: 8px 15px;
  border-radius: 999px;
  background: var(--white);
  border: 1px solid var(--border);
  font-size: 14px;
  color: var(--apex);
  font-weight: 500;
}

.module-head {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 40px;
}

.module-head .module-icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: var(--ice);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.module-head .module-icon svg {
  width: 28px;
  height: 28px;
  stroke: var(--apex);
}

.module-head h2 {
  font-size: clamp(24px, 3vw, 32px);
  display: flex;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
}

.module-head h2 .module-count {
  font-size: 15px;
  font-weight: 600;
  color: var(--mid);
}

.module-head .module-via {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #2e7d4f;
  margin-top: 4px;
}

.module-head p {
  color: var(--text-muted);
  font-size: 16.5px;
  margin-top: 8px;
}

.module-figure {
  margin: 0 0 40px;
}

.module-figure.two-up {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  align-items: start;
}

/* Hover-zoom frame (zooms toward the cursor via JS-set transform-origin) */
.zoom {
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-card);
  background: var(--white);
  cursor: zoom-in;
}

.zoom img {
  display: block;
  width: 100%;
  height: auto;
  border: none;
  border-radius: 0;
  box-shadow: none;
  transform-origin: center center;
  transition: transform 0.35s ease;
}

.zoom:hover img {
  transform: scale(1.9);
}

@media (prefers-reduced-motion: reduce) {
  .zoom img { transition: none; }
  .zoom:hover img { transform: none; }
  .zoom { cursor: default; }
}

.module-figure img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-card);
  background: var(--white);
}

.report-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 18px;
}

.report-grid.single .report-card {
  flex-basis: 100%;
  max-width: none;
}

.report-card {
  flex: 1 1 300px;
  max-width: 358px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 24px;
  transition: box-shadow 0.18s ease, transform 0.18s ease;
}

.report-card:hover {
  box-shadow: var(--shadow-card);
  transform: translateY(-2px);
}

.report-card h3 {
  font-size: 17.5px;
  margin-bottom: 8px;
}

.report-card p {
  font-size: 14.5px;
  color: var(--text-muted);
  line-height: 1.55;
}

.report-card.todo {
  border-style: dashed;
  background: var(--cloud);
}

.report-card.todo p {
  font-style: italic;
}

/* --------------------------------------------------------------------------
   Contact page
   -------------------------------------------------------------------------- */

.contact-section {
  padding: 80px 0 96px;
  background: var(--cloud);
  min-height: calc(100vh - var(--nav-height));
}

.contact-layout {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 48px;
  margin-top: 48px;
  align-items: start;
}

.contact-form-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 40px;
  box-shadow: var(--shadow-card);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.form-group {
  margin-bottom: 22px;
}

.form-group label {
  display: block;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--apex);
  margin-bottom: 8px;
}

.form-group label .optional {
  font-weight: 400;
  color: var(--text-muted);
}

.form-group input,
.form-group textarea {
  width: 100%;
  font-family: inherit;
  font-size: 16px;
  color: var(--text);
  padding: 13px 15px;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  background: var(--white);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--mid);
  box-shadow: 0 0 0 3px rgba(42, 106, 158, 0.15);
}

.form-group textarea {
  resize: vertical;
  min-height: 140px;
}

/* Honeypot — off-screen, never shown to humans */
.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-status {
  margin-top: 16px;
  font-size: 15px;
  display: none;
}

.form-status.success {
  display: block;
  color: #2e7d4f;
}

.form-status.error {
  display: block;
  color: #b03a3a;
}

.contact-sidebar {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact-info-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow-card);
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.contact-info-card svg {
  width: 22px;
  height: 22px;
  stroke: var(--mid);
  flex-shrink: 0;
  margin-top: 3px;
}

.contact-info-card .info-label {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.contact-info-card .info-value {
  font-size: 16.5px;
  font-weight: 500;
  color: var(--apex);
}

/* --------------------------------------------------------------------------
   Registration / free-trial page
   -------------------------------------------------------------------------- */

.register-section {
  padding: 72px 0 88px;
  background:
    radial-gradient(52% 40% at 50% 0%, rgba(42, 106, 158, 0.10), rgba(42, 106, 158, 0) 70%),
    linear-gradient(180deg, var(--ice) 0%, var(--cloud) 40%, var(--white) 100%);
}

.register-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 36px;
}

.register-head .section-intro {
  margin: 16px auto 0;
}

.register-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  padding: 40px;
  max-width: 680px;
  margin: 0 auto;
}

.register-note {
  background: var(--cloud);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 22px 24px;
  margin: 6px 0 24px;
}

.register-note h3 {
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--mid);
  margin-bottom: 12px;
}

.register-note ul {
  list-style: none;
}

.register-note li {
  position: relative;
  padding: 6px 0 6px 26px;
  font-size: 14.5px;
  color: var(--text-muted);
}

.register-note li::before {
  content: "";
  position: absolute;
  left: 3px;
  top: 13px;
  width: 12px;
  height: 6px;
  border-left: 2px solid var(--mid);
  border-bottom: 2px solid var(--mid);
  transform: rotate(-45deg);
}

.register-accept {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 26px;
  font-size: 15.5px;
  font-weight: 500;
  color: var(--text);
  cursor: pointer;
}

.register-accept input {
  width: 20px;
  height: 20px;
  accent-color: var(--apex);
  flex-shrink: 0;
  cursor: pointer;
}

.register-card .btn-primary {
  width: 100%;
  padding: 16px 0;
  font-size: 16.5px;
}

/* --------------------------------------------------------------------------
   Resources / docs library
   -------------------------------------------------------------------------- */

.docs-section {
  padding: 56px 0 96px;
}

.doc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 20px;
}

.doc-empty {
  grid-column: 1 / -1;
  text-align: center;
  color: var(--text-muted);
  font-size: 16px;
  padding: 48px 0;
}

.doc-card {
  display: flex;
  gap: 18px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  transition: box-shadow 0.18s ease, transform 0.18s ease;
}

.doc-card:hover {
  box-shadow: var(--shadow-card);
  transform: translateY(-2px);
}

.doc-icon {
  flex-shrink: 0;
  width: 46px;
  height: 46px;
  border-radius: 10px;
  background: var(--ice);
  display: flex;
  align-items: center;
  justify-content: center;
}

.doc-icon svg {
  width: 24px;
  height: 24px;
  stroke: var(--apex);
}

.doc-body {
  flex-grow: 1;
  min-width: 0;
}

.doc-body h3 {
  font-size: 18px;
}

.doc-meta {
  font-size: 13.5px;
  color: var(--text-muted);
  margin: 5px 0 16px;
}

.doc-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.doc-actions .btn {
  padding: 9px 16px;
  font-size: 14px;
}

.doc-size {
  font-weight: 400;
  font-size: 12.5px;
  opacity: 0.75;
  margin-left: 5px;
}

/* --------------------------------------------------------------------------
   Back to top
   -------------------------------------------------------------------------- */

.back-to-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 90;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: none;
  background: var(--apex);
  color: var(--white);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 20px rgba(27, 69, 104, 0.3);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s, background-color 0.18s ease;
}

.back-to-top.show {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.back-to-top:hover {
  background: var(--mid);
}

.back-to-top svg {
  width: 20px;
  height: 20px;
  stroke: var(--white);
}

@media (prefers-reduced-motion: reduce) {
  .back-to-top { transition: opacity 0.2s ease, visibility 0.2s; transform: none; }
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 1020px) {
  .pricing-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 860px) {
  section {
    padding: 72px 0;
  }

  .nav-links {
    position: fixed;
    inset: var(--nav-height) 0 auto 0;
    flex-direction: column;
    gap: 0;
    background: var(--white);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 12px 24px rgba(13, 13, 13, 0.08);
    display: none;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links li {
    width: 100%;
    text-align: center;
  }

  .nav-links a {
    display: block;
    padding: 16px 0;
    font-size: 17px;
  }

  .nav-toggle {
    display: block;
  }

  .nav-login {
    display: none;          /* hide the top-right text link on mobile */
  }

  .nav-mobile-login {
    display: block;         /* surface Log in inside the hamburger menu */
  }

  .nav-toggle.open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .nav-toggle.open span:nth-child(2) {
    opacity: 0;
  }

  .nav-toggle.open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  .lens-grid,
  .audience-grid {
    grid-template-columns: 1fr;
  }

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

  .app-layout {
    grid-template-columns: 1fr;
    gap: 48px;
  }

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

  .module-figure.two-up {
    grid-template-columns: 1fr;
  }

  .pricing-grid-3 {
    grid-template-columns: 1fr;
    max-width: 440px;
  }

  .scope-toggle {
    flex-wrap: wrap;
    justify-content: center;
  }

  .device-scene {
    max-width: 460px;
    margin: 0 auto;
  }

  .balance-panel:first-child {
    border-radius: var(--radius) var(--radius) 0 0;
    border-right: 1px solid var(--border);
    border-bottom: none;
  }

  .balance-panel:last-child {
    border-radius: 0 0 var(--radius) var(--radius);
    border-left: 1px solid var(--border);
    border-top: none;
  }

  .balance-plus {
    width: 100%;
    height: 52px;
  }

  .feature-block {
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 36px 0;
  }

  .feature-block.media-left .feature-copy {
    order: 0;
  }

  .contact-layout {
    grid-template-columns: 1fr;
  }

  .form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .cta-band .container {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 640px) {
  .pricing-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    padding: 72px 0 64px;
  }

  .nav-cta .btn {
    padding: 10px 16px;
    font-size: 14px;
  }

  .contact-form-card {
    padding: 28px 22px;
  }
}
