/* Retailytics — marketing site */

:root {
  --primary: #00866c;
  --primary-dark: #006b56;
  --primary-light: #5fd9b9;
  --primary-subtle: #e8f9f3;
  --accent: #c38500;
  --accent-light: #ffb945;
  --ink: #191c1b;
  --ink-muted: #5c5f5e;
  --ink-soft: #8f9190;
  --surface: #ffffff;
  --surface-alt: #f9faf8;
  --surface-elevated: #ffffff;
  --border: #dde5e0;
  --border-strong: #c1c9c5;
  --success: #1e6e33;
  --danger: #ba1a1a;
  --shadow-sm: 0 1px 2px rgba(25, 28, 27, 0.06);
  --shadow-md: 0 8px 24px rgba(25, 28, 27, 0.08);
  --shadow-lg: 0 20px 48px rgba(25, 28, 27, 0.12);
  --shadow-xl: 0 32px 64px rgba(0, 107, 86, 0.14);
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-xl: 32px;
  --max-width: 1180px;
  --header-height: 72px;
  --font-sans: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --transition: 0.22s cubic-bezier(0.4, 0, 0.2, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body.nav-open {
  overflow: hidden;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  overflow-x: clip;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
  max-width: 100%;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--primary-dark);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: color var(--transition);
}

a:hover {
  color: var(--primary);
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  z-index: 9999;
  padding: 12px 20px;
  background: var(--primary-dark);
  color: #fff;
  border-radius: var(--radius-sm);
  font-weight: 600;
}

.skip-link:focus {
  top: 16px;
}

.container {
  width: min(100% - 1.25rem, var(--max-width));
  margin-inline: auto;
}

.section {
  padding: 3.5rem 0;
}

.section-alt {
  background: var(--surface-alt);
}

.section-header {
  max-width: 720px;
  margin-bottom: 3rem;
}

.section-label {
  display: inline-block;
  margin-bottom: 0.75rem;
  padding: 0.35rem 0.85rem;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--primary-dark);
  background: var(--primary-subtle);
  border-radius: 999px;
}

.section-title {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.section-lead {
  margin: 0;
  font-size: 1.125rem;
  color: var(--ink-muted);
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-height);
  padding-top: env(safe-area-inset-top, 0);
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid transparent;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  pointer-events: none;
}

.site-header.scrolled {
  border-color: var(--border);
  box-shadow: var(--shadow-sm);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  height: 100%;
  gap: 0.75rem;
}

.brand {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
  margin-right: auto;
}

.brand img {
  display: block;
  width: 148px;
  height: auto;
}

.nav-desktop {
  display: none;
  align-items: center;
  gap: 1.25rem;
}

.nav-desktop a {
  color: var(--ink-muted);
  text-decoration: none;
  font-size: 0.9375rem;
  font-weight: 500;
}

.nav-desktop a:hover {
  color: var(--primary-dark);
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  cursor: pointer;
  flex-shrink: 0;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 3px auto;
  background: var(--ink);
  border-radius: 1px;
  transition: transform var(--transition), opacity var(--transition);
}

.nav-toggle[aria-expanded="true"] {
  position: relative;
  z-index: 202;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

.nav-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(25, 28, 27, 0.5);
  opacity: 0;
  transition: opacity 0.25s ease;
  pointer-events: none;
}

.nav-backdrop.visible {
  display: block;
  opacity: 1;
  pointer-events: auto;
}

.nav-mobile {
  display: none;
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 201;
  width: min(88vw, 320px);
  padding: calc(var(--header-height) + env(safe-area-inset-top, 0px) + 0.75rem) 1rem calc(1.5rem + env(safe-area-inset-bottom, 0px));
  background: var(--surface);
  border-left: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  flex-direction: column;
  gap: 0.15rem;
  transform: translateX(100%);
  visibility: hidden;
  pointer-events: none;
  transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.28s;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.nav-mobile.open {
  transform: translateX(0);
  visibility: visible;
  pointer-events: auto;
}

.nav-mobile a {
  padding: 0.85rem 1rem;
  color: var(--ink);
  text-decoration: none;
  font-weight: 500;
  border-radius: var(--radius-sm);
  min-height: 44px;
  display: flex;
  align-items: center;
}

.nav-mobile a:hover,
.nav-mobile a.is-active {
  background: var(--primary-subtle);
  color: var(--primary-dark);
}

.nav-mobile-cta {
  margin-top: auto;
  width: 100%;
  min-height: 48px;
}

.nav-desktop a.is-active {
  color: var(--primary-dark);
  font-weight: 600;
}

.header-cta {
  display: none !important;
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.5rem;
  font-family: inherit;
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  border: none;
  border-radius: 999px;
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  box-shadow: 0 4px 14px rgba(0, 107, 86, 0.28);
}

.btn-primary:hover {
  color: #fff;
  box-shadow: 0 8px 22px rgba(0, 107, 86, 0.34);
}

.btn-secondary {
  color: var(--primary-dark);
  background: var(--surface);
  border: 1.5px solid var(--border-strong);
}

.btn-secondary:hover {
  color: var(--primary-dark);
  border-color: var(--primary-light);
  background: var(--primary-subtle);
}

.btn-ghost {
  color: var(--ink-muted);
  background: transparent;
  padding-inline: 1rem;
}

.btn-ghost:hover {
  color: var(--primary-dark);
  background: var(--surface-alt);
}

.btn-lg {
  padding: 1rem 1.75rem;
  font-size: 1rem;
}

/* Hero */

.hero {
  position: relative;
  padding: 2rem 0 3rem;
  overflow: hidden;
  background:
    radial-gradient(ellipse 80% 60% at 70% -10%, rgba(95, 217, 185, 0.22), transparent),
    radial-gradient(ellipse 50% 40% at 10% 80%, rgba(0, 134, 108, 0.08), transparent),
    linear-gradient(180deg, #f7fdfb 0%, var(--surface) 100%);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: center;
}

.hero-grid > *,
.solution-grid > * {
  min-width: 0;
}

.hero-visual {
  order: -1;
  position: relative;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
  padding: 0.45rem 0.9rem 0.45rem 0.55rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--primary-dark);
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid var(--border);
  border-radius: 999px;
}

.hero-eyebrow-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--success);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.45; }
}

.hero h1 {
  margin: 0 0 1.25rem;
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5.5vw, 3.75rem);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: var(--ink);
}

.hero h1 em {
  font-style: normal;
  color: var(--primary-dark);
}

.hero-lead {
  margin: 0 0 2rem;
  max-width: 540px;
  font-size: 1.2rem;
  color: var(--ink-muted);
}

.hero-actions {
  display: flex;
  flex-direction: column;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-bottom: 2rem;
}

.hero-actions .btn {
  width: 100%;
  min-height: 48px;
}

.hero-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.hero-stat:last-child {
  grid-column: 1 / -1;
}

.hero-stat strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.2;
}

.hero-stat span {
  font-size: 0.875rem;
  color: var(--ink-soft);
}

.hero-visual {
  position: relative;
}

.hero-screenshot {
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-xl);
}

.hero-badge {
  position: static;
  margin-top: 1rem;
  display: inline-block;
  max-width: 100%;
  padding: 0.85rem 1.1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  font-size: 0.875rem;
}

.hero-badge strong {
  display: block;
  color: var(--ink);
}

.hero-badge span {
  color: var(--ink-soft);
}

/* Problem cards */

.problem-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

.problem-card {
  padding: 1.75rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: transform var(--transition), box-shadow var(--transition);
}

.problem-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.problem-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  margin-bottom: 1.25rem;
  font-size: 1.4rem;
  background: #fff5f5;
  border-radius: var(--radius-md);
}

.problem-card h3 {
  margin: 0 0 0.65rem;
  font-size: 1.125rem;
  font-weight: 700;
}

.problem-card p {
  margin: 0;
  font-size: 0.975rem;
  color: var(--ink-muted);
}

/* Solution */

.solution-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: center;
}

.solution-points {
  display: grid;
  gap: 1.25rem;
  margin-top: 2rem;
}

.solution-point {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.solution-check {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--primary-dark);
  background: var(--primary-subtle);
  border-radius: 50%;
}

.solution-point h4 {
  margin: 0 0 0.25rem;
  font-size: 1rem;
  font-weight: 700;
}

.solution-point p {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--ink-muted);
}

.solution-image {
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
}

/* Features */

.features-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

.feature-card {
  padding: 1.5rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}

.feature-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1rem;
  font-weight: 700;
}

.feature-card p {
  margin: 0;
  font-size: 0.925rem;
  color: var(--ink-muted);
}

/* Showcase tabs */

.showcase {
  background: linear-gradient(180deg, var(--surface-alt) 0%, #eef7f3 100%);
}

.showcase-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.showcase-tabs-scroll {
  position: relative;
}

.showcase-tabs-scroll::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 2rem;
  background: linear-gradient(90deg, transparent, #eef7f3);
  pointer-events: none;
  opacity: 0;
  transition: opacity var(--transition);
}

.showcase-tabs-scroll.has-overflow::after {
  opacity: 1;
}

.showcase-tab {
  padding: 0.65rem 1.1rem;
  font-family: inherit;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--ink-muted);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  cursor: pointer;
  transition: all var(--transition);
}

.showcase-tab:hover,
.showcase-tab.active {
  color: var(--primary-dark);
  border-color: var(--primary-light);
  background: var(--primary-subtle);
}

.showcase-frame {
  position: relative;
  padding: 0.75rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
}

.showcase-frame img {
  width: 100%;
  border-radius: calc(var(--radius-xl) - 8px);
}

.showcase-caption {
  margin-top: 1rem;
  text-align: center;
  font-size: 0.9375rem;
  color: var(--ink-muted);
}

/* How it works */

.steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  counter-reset: step;
}

.step {
  position: relative;
  padding: 2rem 1.5rem;
  text-align: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}

.step::before {
  counter-increment: step;
  content: counter(step);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin: 0 auto 1.25rem;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  color: #fff;
  background: var(--primary);
  border-radius: 50%;
}

.step h3 {
  margin: 0 0 0.65rem;
  font-size: 1.125rem;
}

.step p {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--ink-muted);
}

/* Comparison */

.compare-scroll-hint {
  display: none;
  margin: 0 0 0.75rem;
  font-size: 0.8125rem;
  color: var(--ink-soft);
  text-align: center;
}

.compare-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}

.compare-table {
  width: 100%;
  min-width: 860px;
  border-collapse: collapse;
  font-size: 0.9375rem;
}

.compare-table th,
.compare-table td {
  padding: 1rem 1.15rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.compare-table thead th {
  background: var(--surface-alt);
  font-weight: 700;
  font-size: 0.875rem;
}

.compare-table th:first-child,
.compare-table td:first-child {
  font-weight: 600;
  color: var(--ink);
  min-width: 200px;
}

.compare-table .highlight {
  background: var(--primary-subtle);
}

.compare-table .highlight th {
  color: var(--primary-dark);
}

.compare-yes {
  color: var(--success);
  font-weight: 700;
}

.compare-no {
  color: var(--ink-soft);
}

.compare-partial {
  color: var(--accent);
  font-weight: 600;
}

/* Pricing */

.pricing-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  max-width: 820px;
  margin-inline: auto;
}

.pricing-card {
  position: relative;
  padding: 2rem;
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  transition: transform var(--transition), box-shadow var(--transition);
}

.pricing-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.pricing-card.featured {
  border-color: var(--primary);
  box-shadow: var(--shadow-lg);
}

.pricing-badge {
  position: absolute;
  top: -12px;
  right: 1.5rem;
  padding: 0.35rem 0.85rem;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #fff;
  background: var(--primary);
  border-radius: 999px;
}

.pricing-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.125rem;
  font-weight: 700;
}

.pricing-price {
  margin: 1rem 0;
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 600;
  line-height: 1;
  color: var(--ink);
}

.pricing-price span {
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 500;
  color: var(--ink-soft);
}

.pricing-desc {
  margin: 0 0 1.5rem;
  font-size: 0.9375rem;
  color: var(--ink-muted);
}

.pricing-features {
  margin: 0 0 1.75rem;
  padding: 0;
  list-style: none;
}

.pricing-features li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.65rem;
  font-size: 0.9375rem;
  color: var(--ink-muted);
}

.pricing-features li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--primary);
  font-weight: 700;
}

.pricing-custom {
  margin-top: 2rem;
  padding: 1.75rem;
  text-align: center;
  background: var(--surface-alt);
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius-lg);
}

.pricing-custom h3 {
  margin: 0 0 0.5rem;
  font-size: 1.125rem;
}

.pricing-custom p {
  margin: 0 0 1rem;
  color: var(--ink-muted);
}

/* FAQ */

.faq-list {
  max-width: 760px;
  margin-inline: auto;
}

.faq-item {
  border-bottom: 1px solid var(--border);
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 0;
  font-family: inherit;
  font-size: 1.05rem;
  font-weight: 600;
  text-align: left;
  color: var(--ink);
  background: none;
  border: none;
  cursor: pointer;
}

.faq-question::after {
  content: "+";
  flex-shrink: 0;
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--primary);
  transition: transform var(--transition);
}

.faq-item.open .faq-question::after {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}

.faq-item.open .faq-answer {
  max-height: var(--faq-height, 480px);
}

.faq-answer p {
  margin: 0 0 1.25rem;
  padding-right: 2rem;
  font-size: 0.975rem;
  color: var(--ink-muted);
}

/* CTA */

.cta {
  padding: 5rem 0;
  text-align: center;
  background: linear-gradient(135deg, var(--primary-dark) 0%, #005141 100%);
  color: #fff;
}

.cta h2 {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 600;
}

.cta p {
  margin: 0 auto 2rem;
  max-width: 560px;
  font-size: 1.125rem;
  opacity: 0.9;
}

.cta .btn-primary {
  background: #fff;
  color: var(--primary-dark);
  box-shadow: var(--shadow-md);
}

.cta .btn-primary:hover {
  color: var(--primary-dark);
}

.cta-email {
  margin-top: 1.25rem;
  font-size: 0.9375rem;
  opacity: 0.85;
}

.cta-email a {
  color: #fff;
  font-weight: 600;
}

/* Footer */

.site-footer {
  padding: 3rem 0 2rem;
  background: var(--ink);
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.9375rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-bottom: 2.5rem;
}

.footer-brand {
  display: inline-block;
  text-decoration: none;
}

.footer-brand img {
  display: block;
  width: 128px;
  height: auto;
}

.footer-brand-wrap p {
  margin: 0.75rem 0 0;
  max-width: 280px;
  line-height: 1.6;
}

.footer-col h4 {
  margin: 0 0 1rem;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
}

.footer-col a {
  display: block;
  margin-bottom: 0.6rem;
  color: rgba(255, 255, 255, 0.78);
  text-decoration: none;
}

.footer-col a:hover {
  color: var(--primary-light);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.875rem;
}

/* Heatmaps */

.heatmaps-section {
  background:
    radial-gradient(ellipse 70% 50% at 20% 0%, rgba(95, 217, 185, 0.12), transparent),
    var(--surface-alt);
}

.heatmap-why {
  margin-bottom: 3rem;
}

.heatmap-why-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

.heatmap-why-card {
  padding: 1.75rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}

.heatmap-why-card--positive {
  border-color: rgba(0, 134, 108, 0.28);
  background: linear-gradient(180deg, #f4fdfa 0%, var(--surface) 100%);
}

.heatmap-why-card h3 {
  margin: 0 0 1rem;
  font-size: 1.05rem;
  font-weight: 700;
}

.heatmap-why-card ul {
  margin: 0;
  padding-left: 1.15rem;
  color: var(--ink-muted);
  font-size: 0.95rem;
}

.heatmap-why-card li + li {
  margin-top: 0.55rem;
}

.heatmap-types {
  display: grid;
  gap: 2.5rem;
}

.heatmap-type {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  align-items: center;
  padding: 1.15rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-sm);
}

.heatmap-type--reverse {
  grid-template-columns: 1fr;
}

.heatmap-type--reverse .heatmap-type-copy,
.heatmap-type--reverse img {
  order: unset;
}

.heatmap-type img {
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
}

.heatmap-type-tag {
  display: inline-block;
  margin-bottom: 0.75rem;
  padding: 0.3rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--primary-dark);
  background: var(--primary-subtle);
  border-radius: 999px;
}

.heatmap-type h3 {
  margin: 0 0 0.75rem;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
}

.heatmap-type p {
  margin: 0 0 1rem;
  color: var(--ink-muted);
  font-size: 0.975rem;
}

.heatmap-type-list {
  margin: 0;
  padding-left: 1.15rem;
  color: var(--ink-muted);
  font-size: 0.925rem;
}

.heatmap-type-list li + li {
  margin-top: 0.45rem;
}

.feature-card--highlight {
  border-color: rgba(0, 134, 108, 0.22);
  background: linear-gradient(180deg, #f8fffc 0%, var(--surface) 100%);
}

.feature-card--highlight h3 {
  color: var(--primary-dark);
}

/* Reveal animation */

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive — mobile · tablet · desktop */

/* Tablet (640px+) */
@media (min-width: 640px) {
  .container {
    width: min(100% - 2rem, var(--max-width));
  }

  .hero-stats {
    grid-template-columns: repeat(3, 1fr);
  }

  .hero-stat:last-child {
    grid-column: auto;
  }
}

/* Tablet (768px+) */
@media (min-width: 768px) {
  .section {
    padding: 5rem 0;
  }

  .section-header {
    margin-bottom: 2.5rem;
  }

  .hero {
    padding: 3.5rem 0 4rem;
  }

  .hero-actions {
    flex-direction: row;
  }

  .hero-actions .btn {
    width: auto;
    min-height: 0;
  }

  .problem-grid,
  .features-grid,
  .steps {
    grid-template-columns: repeat(2, 1fr);
  }

  .heatmap-why-grid {
    grid-template-columns: 1fr 1fr;
  }

  .pricing-grid {
    grid-template-columns: repeat(2, 1fr);
    max-width: none;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .footer-brand-wrap {
    grid-column: 1 / -1;
  }

  .compare-scroll-hint {
    display: block;
  }

  .showcase-tabs {
    flex-wrap: wrap;
    overflow-x: visible;
  }
}

/* Desktop navigation (1024px+) */
@media (min-width: 1024px) {
  .nav-desktop {
    display: flex;
    gap: 2rem;
  }

  .nav-toggle,
  .nav-mobile,
  .nav-backdrop {
    display: none !important;
  }

  .header-cta {
    display: inline-flex !important;
  }

  .hero-grid {
    grid-template-columns: 1fr 1.1fr;
    gap: 3.5rem;
  }

  .hero {
    padding: 4.5rem 0 5rem;
  }

  .hero-visual {
    order: 0;
  }

  .hero-actions {
    flex-direction: row;
  }

  .hero-actions .btn {
    width: auto;
    min-height: 0;
  }

  .hero-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
  }

  .hero-stat:last-child {
    grid-column: auto;
  }

  .hero-badge {
    position: absolute;
    bottom: -1rem;
    left: -1rem;
    margin-top: 0;
  }

  .solution-grid {
    grid-template-columns: 1fr 1fr;
  }

  .problem-grid,
  .features-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .steps {
    grid-template-columns: repeat(3, 1fr);
  }

  .heatmap-why-grid {
    grid-template-columns: 1fr 1fr;
  }

  .heatmap-type {
    grid-template-columns: 1fr 1.15fr;
  }

  .heatmap-type--reverse {
    grid-template-columns: 1.15fr 1fr;
  }

  .heatmap-type--reverse .heatmap-type-copy {
    order: 2;
  }

  .heatmap-type--reverse img {
    order: 1;
  }

  .pricing-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: 1.5fr 1fr 1fr;
  }

  .compare-scroll-hint {
    display: none;
  }
}

/* Mobile + tablet navigation (< 1024px) */
@media (max-width: 1023px) {
  .nav-toggle {
    display: flex;
  }

  .nav-mobile {
    display: flex;
  }
}

/* Mobile-only polish (< 768px) */
@media (max-width: 767px) {
  :root {
    --header-height: 64px;
  }

  .brand img {
    width: 112px;
  }

  .hero h1 {
    font-size: clamp(1.85rem, 8vw, 2.5rem);
  }

  .hero-lead {
    font-size: 1rem;
    margin-bottom: 1.5rem;
    max-width: none;
  }

  .hero-eyebrow {
    font-size: 0.8125rem;
    max-width: 100%;
  }

  .hero-stat strong {
    font-size: 1.35rem;
  }

  .section-lead {
    font-size: 1rem;
  }

  .pricing-price {
    font-size: 2.5rem;
  }

  .pricing-card .btn,
  .pricing-custom .btn {
    width: 100%;
  }

  .pricing-custom {
    padding: 1.25rem;
  }

  .cta {
    padding: 3.5rem 0;
  }

  .cta .btn-primary {
    width: 100%;
    max-width: 320px;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  /* Showcase — horizontal scroll tabs */
  .showcase-tabs-scroll::after {
    opacity: 1;
  }

  .showcase-tabs {
    flex-wrap: nowrap;
    overflow-x: auto;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
    padding-bottom: 0.25rem;
    margin-inline: -0.25rem;
    padding-inline: 0.25rem;
    -webkit-overflow-scrolling: touch;
  }

  .showcase-tabs::-webkit-scrollbar {
    display: none;
  }

  .showcase-tab {
    flex-shrink: 0;
    scroll-snap-align: start;
    min-height: 44px;
  }

  .showcase-frame {
    padding: 0.5rem;
    border-radius: var(--radius-lg);
  }

  .showcase-frame img {
    border-radius: calc(var(--radius-lg) - 6px);
  }

  /* Comparison — stacked cards */
  .compare-scroll-hint {
    display: none;
  }

  .compare-wrap {
    overflow-x: visible;
    border: none;
    background: transparent;
    box-shadow: none;
  }

  .compare-table {
    min-width: 0;
  }

  .compare-table thead {
    display: none;
  }

  .compare-table tbody {
    display: grid;
    gap: 1rem;
  }

  .compare-table tr {
    display: block;
    padding: 1rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
  }

  .compare-table td {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
    padding: 0.55rem 0;
    border-bottom: 1px solid var(--border);
    text-align: left;
    font-size: 0.875rem;
    word-break: break-word;
  }

  .compare-table td:last-child {
    border-bottom: none;
  }

  .compare-table td:first-child {
    display: block;
    padding-top: 0;
    padding-bottom: 0.75rem;
    margin-bottom: 0.25rem;
    border-bottom: 1px solid var(--border);
    font-size: 0.95rem;
    font-weight: 700;
    min-width: 0;
  }

  .compare-table td:not(:first-child)::before {
    content: attr(data-label);
    font-weight: 600;
    color: var(--ink-muted);
    font-size: 0.8125rem;
  }

  .compare-table td.highlight {
    background: transparent;
  }

  .faq-question {
    font-size: 1rem;
    padding: 1rem 0;
    min-height: 48px;
  }

  .faq-answer p {
    padding-right: 0;
  }
}

/* Touch devices */
@media (hover: none) and (pointer: coarse) {
  .btn:hover,
  .problem-card:hover,
  .pricing-card:hover {
    transform: none;
  }

  .problem-card:active,
  .pricing-card:active {
    transform: scale(0.99);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .btn:hover,
  .problem-card:hover,
  .pricing-card:hover {
    transform: none;
  }
}
