:root {
  --sans: var(--font);
}

.hero-cta {
  position: relative;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 5px;
  margin-top: 0;
  border: 1px solid var(--mw-border-strong);
  border-radius: 999px;
  background: rgba(241, 242, 233, 0.055);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.18), inset 0 1px rgba(255, 255, 255, 0.06);
}

.hero-cta-pill {
  position: absolute;
  z-index: 1;
  top: 5px;
  left: 0;
  width: 0;
  height: 44px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--mw-accent);
  box-shadow: 0 0 0 3px var(--mw-bg), 0 0 0 5px var(--mw-focus-ring), var(--mw-glow-accent);
  transition: transform 350ms cubic-bezier(0.16, 1, 0.3, 1), width 350ms ease;
  pointer-events: none;
}

.hero-cta-pill::after {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: rgba(255, 255, 255, 0.24);
  content: "";
  opacity: 0;
  transition: opacity 150ms ease;
}

.hero-cta.is-pressed .hero-cta-pill::after {
  opacity: 1;
}

.hero-cta-link {
  position: relative;
  z-index: 2;
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 0 20px;
  border-radius: 999px;
  color: var(--mw-text-secondary);
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  transition: color 180ms ease;
}

.hero-cta-link.is-active {
  color: var(--mw-text-inverse);
}

.hero-cta-link:focus-visible {
  outline: none;
}

.hero-cta-link:focus-visible .hero-cta-icon {
  transform: translateY(-1px);
}

.hero-cta:has(.hero-cta-link:focus-visible) .hero-cta-pill {
  box-shadow: 0 0 0 3px var(--mw-bg), 0 0 0 5px var(--mw-focus-ring), var(--mw-glow-accent);
}

.hero-cta-icon {
  transition: transform 180ms ease;
}

.hero-cta-link:not(.is-active):hover {
  color: var(--mw-text-primary);
}

.hero-cta-icon {
  font-size: 15px;
  line-height: 1;
}

.intro-section {
  display: block;
}

.intro-content {
  max-width: 790px;
}

.intro-heading .intro-kicker {
  max-width: none;
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 18px;
  color: var(--mw-text-secondary);
  font: 500 12px/1.4 var(--sans);
  letter-spacing: 0;
  text-transform: none;
}

.intro-heading .intro-kicker::before,
.principles-copy > .section-kicker::before,
.build-copy > .section-kicker::before {
  width: 22px;
  height: 1px;
  background: var(--mw-accent);
  content: "";
  flex: 0 0 auto;
}

.principles-copy > .section-kicker,
.build-copy > .section-kicker {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 22px;
  color: var(--mw-text-secondary);
  font: 500 12px/1.4 var(--sans);
  letter-spacing: 0;
  text-transform: none;
}

.hero-copy > .eyebrow {
  max-width: max-content;
  margin-bottom: 28px;
  padding: 7px 0 7px 12px;
  border-left: 2px solid var(--mw-accent);
  color: var(--mw-text-secondary);
  font: 500 12px/1.3 var(--sans);
  letter-spacing: 0.01em;
  text-transform: none;
}

.closing-cta > .section-kicker {
  color: var(--mw-text-secondary);
  font: 500 12px/1.4 var(--sans);
  letter-spacing: 0;
  text-transform: none;
}

.closing-cta > .section-kicker a {
  color: inherit;
  text-decoration: underline;
  text-decoration-color: rgb(184 192 173 / 55%);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: text-decoration-color 160ms ease;
}

.closing-cta > .section-kicker a:hover,
.closing-cta > .section-kicker a:focus-visible {
  text-decoration-color: currentColor;
}

.closing-cta > .section-kicker a:focus-visible {
  border-radius: 2px;
  outline: 2px solid var(--mw-accent);
  outline-offset: 3px;
}

.site-shell {
  max-width: 1680px;
  padding-right: 6%;
  padding-left: 6%;
}

/* Lift secondary copy and small labels for comfortable reading. */
.hero-footnote {
  color: var(--mw-text-secondary);
  font: 500 11px/1.5 var(--sans);
  letter-spacing: 0;
}

.hero-lede,
.intro-content > p,
.principles-copy > p,
.build-copy > p,
.closing-cta > p {
  color: var(--mw-text-secondary);
}

.intro-content > p {
  font-size: 15px;
}

.feature-card > p,
.principle-list p {
  color: var(--mw-text-secondary);
  font-size: 13px;
}

.principles-copy > p,
.build-copy > p {
  font-size: 14px;
}

.closing-cta > p {
  font-size: 13px;
}

.signal-strip {
  color: var(--mw-text-secondary);
  font-size: 10px;
}

.feature-number,
.log-header,
.log-item > span:first-child,
.log-item small,
.log-footer,
.footer > span,
.footer > small {
  color: var(--mw-text-secondary);
}

.feature-number {
  font-size: 9px;
}

.mini-insight b {
  font-size: 10px;
}

.mini-insight small,
.log-item small {
  color: var(--mw-text-secondary);
  font-size: 8px;
}

.log-status {
  color: var(--mw-status-healthy);
  font-size: 8px;
}

.log-item.future {
  opacity: 1;
}

.log-item.future > span:first-child,
.log-item.future small {
  color: var(--mw-text-secondary);
}

.footer > span,
.footer > small,
.footer a {
  font-size: 11px;
}

/* Supporting dashboard labels stay legible against their dark panels. */
.card-top,
.machine-title small,
.phone-greeting small,
.activity-head,
.process-name small,
.process-load small,
.metric small,
.card-bottom,
.floating-note small {
  color: var(--mw-text-secondary);
}

.card-top,
.machine-title small,
.phone-greeting small,
.activity-head,
.process-name small,
.process-load small,
.metric small,
.card-bottom,
.floating-note small {
  font-size: 8px;
}

.card-top b {
  font-size: 8px;
}

.metric-head {
  font-size: 9px;
}

.health-pill {
  color: var(--mw-status-healthy);
  font-size: 9px;
}

.phone-health small,
.phone-caption,
.phone-action,
.phone-action small {
  color: #46533e;
}

.phone-health small,
.phone-caption,
.phone-action small {
  font-size: 8px;
}

.phone-action {
  font-size: 8px;
}

.intro-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 380px);
  align-items: center;
  gap: clamp(36px, 6vw, 88px);
}

.intro-illustration {
  width: 100%;
  margin: 0;
}

.intro-illustration-art {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 14px;
}

.intro-illustration-art img {
  display: block;
  width: 100%;
  height: auto;
}

.phone-status {
  position: absolute;
  right: 4%;
  bottom: 8%;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 14px;
  border: 1px solid var(--mw-accent-border);
  border-radius: 8px;
  background: var(--mw-surface-card);
  color: var(--mw-text-primary);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.24);
  font: 500 11px/1.35 var(--sans);
}

.phone-status-indicator {
  width: 8px;
  height: 8px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--mw-accent);
  box-shadow: var(--mw-glow-accent);
}

.phone-status b,
.phone-status small {
  display: block;
}

.phone-status small {
  margin-top: 3px;
  color: var(--mw-text-secondary);
  font: 400 9px/1.3 var(--mono);
}

.intro-illustration figcaption {
  margin: 13px 3px 0;
  color: var(--mw-text-secondary);
  font: 500 13px/1.55 var(--sans);
}

@media (max-width: 850px) {
  .intro-section {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
  }

  .intro-illustration {
    width: min(100%, 380px);
    margin-left: auto;
  }
}

@media (max-width: 700px) {
  .intro-section {
    display: block;
  }

  .intro-illustration {
    width: min(100%, 340px);
    margin: 35px auto 0;
  }

  .intro-illustration figcaption {
    font-size: 12px;
  }

  .phone-status {
    right: 3%;
    bottom: 6%;
    gap: 7px;
    padding: 8px 10px;
    font-size: 10px;
  }

  .phone-status small {
    font-size: 8px;
  }

  .signal-strip {
    font-size: 9px;
  }

  .intro-content > p {
    font-size: 14px;
  }

  .feature-card > p,
  .principle-list p,
  .principles-copy > p,
  .build-copy > p {
    font-size: 13px;
  }
}

@media (max-width: 980px) {
  .site-shell {
    padding-right: 5%;
    padding-left: 5%;
  }
}

@media (max-width: 700px) {
  .site-shell {
    padding-right: 22px;
    padding-left: 22px;
  }
}

@media (max-width: 700px) {
  .hero-cta {
    display: flex;
    width: 100%;
    justify-content: space-between;
  }

  .hero-cta-link {
    flex: 1 1 auto;
    gap: 7px;
    padding: 0 12px;
    font-size: 10px;
  }

  .hero-cta-icon {
    font-size: 13px;
  }
}

@media (max-width: 380px) {
  .hero-cta-link {
    gap: 5px;
    padding-right: 7px;
    padding-left: 7px;
    font-size: 9px;
  }

  .hero-cta-icon {
    font-size: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-cta-pill,
  .hero-cta-pill::after,
  .hero-cta-link {
    transition: none;
  }
}
