/*
 * Restrained visual refinement layer.
 *
 * This file intentionally loads after route-owned styles so generated design
 * files can keep their source parity. It changes finish and behavior only:
 * no content, palette, page structure, or component placement is altered.
 */

:root {
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.035);
  --shadow-md: 0 8px 22px -14px rgba(15, 23, 42, 0.22);
  --shadow-lg: 0 16px 38px -24px rgba(15, 23, 42, 0.26);
  --radius-lg: 14px;
}

body {
  line-height: 1.58;
  font-kerning: normal;
  text-rendering: optimizeLegibility;
}

p,
li {
  text-wrap: pretty;
}

.section-title,
.l-title,
.comparison-section-head h2,
.comparison-fit-card h2 {
  letter-spacing: -0.025em;
}

.section-lede,
.l-lede,
.comparison-section-head p,
.content-page-lede,
.thank-you-page__lead {
  line-height: 1.62;
}

/* Keep the header crisp and present without the familiar frosted-glass effect. */
.header {
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.header.scrolled {
  box-shadow: 0 5px 16px -16px rgba(15, 23, 42, 0.55);
}

/* Buttons should feel responsive without appearing to float above the page. */
.btn {
  box-shadow: none;
  transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease;
}

.btn:hover {
  box-shadow: none;
  transform: none;
}

.btn .arrow,
.btn:hover .arrow {
  transition: transform 160ms ease;
}

.btn:hover .arrow {
  transform: translateX(2px);
}

:where(a, button, input, select, textarea, summary):focus-visible {
  outline: 2px solid var(--brand-dark);
  outline-offset: 3px;
}

/* Reserve elevation for hierarchy, not for every hoverable content block. */
.lens,
.finding,
.tier,
.report,
.cap,
.method-step,
.motion-lift {
  transition: border-color 160ms ease, background-color 160ms ease;
}

.lens:hover,
.finding:hover,
.tier:hover,
.report:hover,
.cap:hover,
.method-step:hover,
.motion-lift:hover {
  border-color: var(--rule-2);
  box-shadow: none;
  transform: none;
}

.lens-icon,
.discovery-icon {
  border-radius: 8px;
}

.lens-badge,
.price-flow span {
  border-radius: 6px;
}

/* Home: retain the two-panel story while removing redundant elevation. */
.product-cards .tier,
.clarity-card,
.hubspot-mock,
.home-proof-card {
  box-shadow: none;
}

/* Pricing: the price card is the frame; its workflow labels need not be cards too. */
.price-card {
  background: #fff;
  box-shadow: var(--shadow-sm);
}

.price-flow {
  column-gap: 0;
}

.price-flow span {
  min-height: 28px;
  padding: 4px 8px;
  border-width: 0 0 1px;
  border-color: var(--rule);
  background: transparent;
}

.price-card.featured .price-flow span {
  border-color: rgba(234, 88, 12, 0.28);
  background: transparent;
}

/* Comparison: one visual frame per level, with editorial rows inside it. */
.comparison-hero {
  background: var(--bg-2);
}

.comparison-hero::before {
  content: none;
}

.comparison-snapshot {
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow: var(--shadow-sm);
  backdrop-filter: none;
}

.comparison-snapshot-head .live {
  border-radius: 6px;
}

.comparison-metric {
  border-width: 0 0 1px;
  border-radius: 0;
  background: transparent;
}

.comparison-signal-list {
  gap: 0;
}

.comparison-signal-list div {
  padding: 13px 2px;
  border-width: 0 0 1px;
  border-radius: 0;
  background: transparent;
}

.comparison-signal-list div:last-child {
  border-bottom: 0;
}

.comparison-table-wrap,
.comparison-card,
.comparison-fit-card {
  border-radius: var(--radius-lg);
}

.comparison-table-wrap,
.comparison-card {
  box-shadow: none;
}

.comparison-fit-section {
  background: var(--ink);
}

.comparison-fit-card li::before {
  width: 7px;
  height: 7px;
  border-radius: 50%;
}

/* Long-form routes should read as pages, not elevated modals. */
.content-page-shell,
.thank-you-page {
  background: var(--bg-2);
}

.content-page-panel,
.thank-you-page__surface {
  box-shadow: none;
}

@media (max-width: 960px) {
  .hero-left {
    text-align: left;
  }

  .hero-sub,
  .hero-cta {
    margin-left: 0;
    margin-right: 0;
    justify-content: flex-start;
  }
}

@media (max-width: 560px) {
  .comparison-hero-copy,
  .comparison-section-head {
    text-align: left;
  }

  .comparison-hero-copy .lede,
  .comparison-section-head,
  .comparison-section-head p,
  .comparison-hero-copy .cta-actions {
    margin-left: 0;
    margin-right: 0;
  }

  .comparison-snapshot,
  .comparison-fit-card,
  .comparison-card {
    padding: 22px 18px;
  }
}

@media (prefers-reduced-motion: no-preference) {
  html.rz-anim .hero-anim {
    transform: translateY(8px) !important;
    transition-duration: 420ms !important;
  }

  html.rz-anim .reveal {
    transform: translateY(6px) !important;
    transition-duration: 400ms !important;
    will-change: auto;
  }

  html.rz-anim .hubspot-mock-row,
  html.rz-anim .price-flow span {
    transform: none;
    transition: opacity 320ms ease;
  }
}
