/**
 * Advanced Shopping Feed — marketing landing
 * Visual system: same blue/cyan “futuristic dashboard” theme as the Commerce7 app (shopping-feed-ui.css)
 * Layout: SiteSeal-style sections (hero, pills, stats, problems, compare)
 * @version 3.0
 */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=IBM+Plex+Mono:wght@500;600&family=Instrument+Serif:ital@0;1&display=swap');

:root {
  --bg-deep: #020b1a;
  --bg-panel: #0a1628;
  --bg-panel-2: #0f1f35;
  --bg-elevated: rgba(10, 22, 40, 0.55);
  --border: rgba(96, 165, 250, 0.15);
  --border-strong: rgba(96, 165, 250, 0.28);
  --text: #f1f5f9;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
  --blue: #38bdf8;
  --blue-bright: #60a5fa;
  --blue-deep: #2563eb;
  --glow: rgba(56, 189, 248, 0.12);
  --accent-soft: rgba(56, 189, 248, 0.15);
  --accent-softer: rgba(56, 189, 248, 0.08);
  --radius: 16px;
  --radius-sm: 10px;
  --font: 'Inter', system-ui, -apple-system, sans-serif;
  --font-display: 'Instrument Serif', Georgia, serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, monospace;
  --max: 1080px;
  --grid-size: 48px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

/* Skip link — visible on keyboard focus (WCAG) */
.apf-skip {
  position: absolute;
  left: -9999px;
  top: 12px;
  z-index: 1000;
  padding: 12px 20px;
  background: var(--blue-deep);
  color: #fff;
  font-weight: 600;
  border-radius: var(--radius-sm);
  text-decoration: none;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
}

.apf-skip:focus {
  left: 16px;
  outline: 2px solid var(--blue-bright);
  outline-offset: 2px;
}

body.apf-theme,
body.apf-landing {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: var(--font);
  color: var(--text);
  font-size: 16px;
  background-color: var(--bg-deep);
  /* Grid + blue radial fades (matches in-app dashboard) */
  background-image:
    linear-gradient(rgba(56, 189, 248, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(56, 189, 248, 0.035) 1px, transparent 1px),
    radial-gradient(ellipse 85% 55% at 50% -18%, rgba(37, 99, 235, 0.28), transparent 58%),
    radial-gradient(ellipse 55% 45% at 100% 15%, rgba(56, 189, 248, 0.1), transparent 52%),
    radial-gradient(ellipse 50% 40% at 0% 80%, rgba(37, 99, 235, 0.06), transparent 50%);
  background-size: var(--grid-size) var(--grid-size), var(--grid-size) var(--grid-size), 100% 100%, 100% 100%, 100% 100%;
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  line-height: 1.55;
}

@media (max-width: 900px) {
  body.apf-theme,
  body.apf-landing {
    /* Fixed backgrounds hurt scroll perf on many mobile browsers */
    background-attachment: scroll;
  }
}

/* ——— Nav ——— */
.apf-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(2, 11, 26, 0.88);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 0 rgba(56, 189, 248, 0.04);
}

.apf-nav-inner {
  max-width: calc(var(--max) + 48px);
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.apf-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text);
}

.apf-logo {
  border-radius: 12px;
  box-shadow:
    0 0 0 1px var(--border),
    0 0 32px rgba(56, 189, 248, 0.22),
    0 8px 24px rgba(0, 0, 0, 0.4);
}

.apf-brand-name {
  font-weight: 700;
  font-size: 1.0625rem;
  letter-spacing: -0.02em;
}

.apf-brand-sub {
  font-size: 0.6875rem;
  font-family: var(--font-mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.apf-nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: center;
  font-size: 0.875rem;
  font-weight: 500;
}

.apf-nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.15s;
}

.apf-nav-links a:hover {
  color: var(--blue-bright);
}

.apf-nav-cta .apf-btn {
  padding: 9px 18px;
  font-size: 0.8125rem;
}

.apf-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.9375rem;
  text-decoration: none;
  border: 1px solid transparent;
  transition: transform 0.12s, box-shadow 0.2s, filter 0.15s;
}

.apf-btn:active {
  transform: scale(0.98);
}

.apf-btn-primary {
  background: linear-gradient(135deg, var(--blue-deep) 0%, #1d4ed8 55%, #1e40af 100%);
  color: #fff;
  box-shadow: 0 4px 24px rgba(37, 99, 235, 0.4), 0 0 0 1px rgba(96, 165, 250, 0.15);
}

.apf-btn-primary:hover {
  box-shadow: 0 8px 32px rgba(37, 99, 235, 0.5), 0 0 0 1px rgba(96, 165, 250, 0.25);
  filter: brightness(1.05);
}

.apf-btn-ghost {
  background: rgba(15, 31, 53, 0.45);
  border-color: var(--border-strong);
  color: var(--text);
}

.apf-btn-ghost:hover {
  border-color: var(--blue-bright);
  color: var(--blue-bright);
  background: rgba(56, 189, 248, 0.06);
}

.apf-btn-lg {
  padding: 15px 28px;
  font-size: 1.0625rem;
}

.apf-btn-block {
  width: 100%;
  box-sizing: border-box;
}

/* ——— Hero (split + premium window) ——— */
.apf-hero {
  position: relative;
  padding: 28px 24px 56px;
  overflow-x: clip;
}

.apf-hero::before {
  content: '';
  position: absolute;
  right: -20%;
  top: 10%;
  width: 55%;
  height: 70%;
  pointer-events: none;
  background: radial-gradient(ellipse at center, rgba(37, 99, 235, 0.14), transparent 65%);
  filter: blur(2px);
}

.apf-hero::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 80px;
  pointer-events: none;
  background: linear-gradient(to bottom, transparent, rgba(2, 11, 26, 0.85));
}

.apf-hero-inner {
  position: relative;
  z-index: 1;
  max-width: calc(var(--max) + 80px);
  margin: 0 auto;
}

.apf-hero-split {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 36px 44px;
  align-items: start;
  justify-items: stretch;
}

/* Below hero: feature pills on one full-width row, stats on the next */
.apf-hero-below {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-top: 36px;
  padding-top: 28px;
  border-top: 1px solid rgba(56, 189, 248, 0.12);
}

.apf-pills--hero {
  justify-content: flex-start;
}

@media (max-width: 1020px) {
  .apf-hero-split {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .apf-hero-below {
    margin-top: 28px;
    padding-top: 24px;
  }
}

.apf-hero-copy {
  min-width: 0;
}

.apf-kicker {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin: 0 0 18px;
}

.apf-kicker strong {
  color: var(--blue-bright);
  font-weight: 600;
}

.apf-h1 {
  margin: 0 0 14px;
  letter-spacing: -0.04em;
}

.apf-h1-line {
  display: block;
  font-size: clamp(2.35rem, 5.8vw, 3.65rem);
  font-weight: 800;
  line-height: 1.02;
  color: var(--text);
}

/* Solid paint + glow — background-clip:text was invisible in some browsers / overflow contexts */
.apf-h1-accent {
  display: block;
  margin-top: 2px;
  font-size: clamp(2.35rem, 5.8vw, 3.65rem);
  font-weight: 800;
  line-height: 1.02;
  color: #7dd3fc;
  text-shadow:
    0 0 42px rgba(56, 189, 248, 0.45),
    0 0 1px rgba(255, 255, 255, 0.15);
}

.apf-hero-sub {
  margin: 0 0 20px;
  font-size: clamp(1rem, 2vw, 1.1875rem);
  font-weight: 500;
  color: var(--text-muted);
  line-height: 1.45;
  max-width: 36rem;
}

.apf-microline {
  font-size: 0.8125rem;
  color: var(--text-dim);
  margin: 0 0 20px;
  font-family: var(--font-mono);
}

.apf-microline a {
  color: var(--blue);
}

.apf-lead {
  font-size: 1.0625rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin: 0 0 22px;
  max-width: 38rem;
}

.apf-lead a {
  color: var(--blue);
  text-decoration: underline;
  text-decoration-color: rgba(56, 189, 248, 0.45);
  text-underline-offset: 3px;
}

.apf-lead a:hover {
  color: var(--blue-bright);
}

.apf-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 22px;
}

.apf-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 0;
}

.apf-pill {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  padding: 9px 15px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(15, 31, 53, 0.5), rgba(2, 11, 26, 0.35));
  box-shadow: inset 0 1px 0 rgba(96, 165, 250, 0.06);
}

.apf-pill em {
  font-style: normal;
  color: var(--blue-bright);
}

.apf-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 14px 18px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

/* Hero: stats on their own full-width row under the pills */
.apf-stats--hero {
  padding-top: 24px;
  margin: 0;
  border-top: 1px solid rgba(56, 189, 248, 0.1);
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 14px 18px;
}

.apf-stat {
  padding: 14px 0 6px;
}

.apf-stat-value {
  font-size: clamp(2.125rem, 4.2vw, 2.875rem);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 1;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}

.apf-stat-value em {
  font-style: normal;
  color: var(--blue-bright);
}

.apf-stat-mixed {
  font-size: clamp(1.35rem, 2.5vw, 1.75rem) !important;
  letter-spacing: -0.03em !important;
}

.apf-stat-label {
  margin-top: 10px;
  font-size: 0.75rem;
  line-height: 1.4;
  color: var(--text-dim);
  max-width: 13rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* ——— Premium “app submission” window ——— */
.apf-hero-visual {
  min-width: 0;
  align-self: start;
  /* Line up window chrome with the H1 (skip the kicker height on the left) */
  margin-top: calc(0.6875rem * 1.55 + 18px);
  /* Pin to the right of the column so it doesn’t “float” in the middle */
  justify-self: end;
  width: 100%;
  max-width: 560px;
}

@media (max-width: 1020px) {
  .apf-hero-visual {
    margin-top: 0;
    justify-self: stretch;
    max-width: none;
  }
}

.apf-window-label {
  font-family: var(--font-mono);
  font-size: 0.625rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue);
  margin: 0 0 10px;
}

.apf-window {
  border-radius: 14px;
  border: 1px solid var(--border-strong);
  background: linear-gradient(165deg, rgba(15, 31, 53, 0.95) 0%, rgba(2, 11, 26, 0.98) 100%);
  box-shadow:
    0 0 0 1px rgba(56, 189, 248, 0.06),
    0 24px 80px rgba(0, 0, 0, 0.55),
    0 0 120px rgba(37, 99, 235, 0.12);
  overflow: hidden;
}

.apf-window-sm {
  box-shadow:
    0 0 0 1px rgba(56, 189, 248, 0.05),
    0 16px 48px rgba(0, 0, 0, 0.45);
}

.apf-window-chrome {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.25);
}

.apf-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
}
.apf-dot-red { background: #ff5f57; box-shadow: inset 0 -1px 0 rgba(0,0,0,0.2); }
.apf-dot-yellow { background: #febc2e; box-shadow: inset 0 -1px 0 rgba(0,0,0,0.15); }
.apf-dot-green { background: #28c840; box-shadow: inset 0 -1px 0 rgba(0,0,0,0.15); }

.apf-window-body img {
  display: block;
  width: 100%;
  height: auto;
  vertical-align: middle;
}

.apf-window-caption {
  margin: 14px 0 0;
  font-size: 0.8125rem;
  color: var(--text-dim);
  line-height: 1.5;
  max-width: 36rem;
}

/* ——— Emotional banner band ——— */
.apf-banner-band {
  position: relative;
  padding: 56px 24px 64px;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background:
    radial-gradient(ellipse 70% 80% at 85% 20%, rgba(37, 99, 235, 0.12), transparent 55%),
    radial-gradient(ellipse 50% 60% at 10% 90%, rgba(56, 189, 248, 0.06), transparent 50%),
    linear-gradient(180deg, rgba(10, 22, 40, 0.72) 0%, rgba(2, 11, 26, 0.94) 100%);
  overflow-x: clip;
}

.apf-banner-band::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(56, 189, 248, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(56, 189, 248, 0.04) 1px, transparent 1px);
  background-size: var(--grid-size) var(--grid-size);
  opacity: 0.7;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.15));
}

.apf-banner-stack {
  position: relative;
  z-index: 1;
}

.apf-banner-inner {
  display: grid;
  grid-template-columns: 1fr minmax(260px, 400px);
  gap: 40px 48px;
  align-items: start;
}

@media (max-width: 900px) {
  .apf-banner-inner {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

.apf-h2-tight {
  margin-bottom: 14px !important;
}

.apf-banner-lead {
  font-size: 1.0625rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin: 0;
  max-width: 38rem;
}

.apf-banner-art {
  text-align: right;
}

@media (max-width: 900px) {
  .apf-banner-art {
    text-align: center;
  }
}

.apf-banner-figure {
  margin: 0;
  max-width: 420px;
  margin-left: auto;
}

@media (max-width: 900px) {
  .apf-banner-figure {
    margin-left: auto;
    margin-right: auto;
  }
}

.apf-banner-frame {
  border-radius: 14px;
  border: 1px solid var(--border-strong);
  background: linear-gradient(165deg, rgba(15, 31, 53, 0.6) 0%, rgba(2, 11, 26, 0.85) 100%);
  padding: 10px;
  box-shadow:
    0 0 0 1px rgba(56, 189, 248, 0.06),
    0 24px 72px rgba(0, 0, 0, 0.5),
    0 0 100px rgba(37, 99, 235, 0.1);
}

.apf-banner-frame img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 8px;
}

.apf-banner-caption {
  margin: 14px 0 0;
  font-size: 0.8125rem;
  color: var(--text-dim);
  line-height: 1.45;
  text-align: right;
}

@media (max-width: 900px) {
  .apf-banner-caption {
    text-align: center;
  }
}

/* Indexable metrics row — mirrors marketing card stats without relying on the PNG */
.apf-banner-metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(148px, 1fr));
  gap: 14px;
  margin-top: 44px;
  padding-top: 36px;
  border-top: 1px solid rgba(56, 189, 248, 0.14);
}

.apf-metric {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 20px 14px 18px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background:
    linear-gradient(180deg, rgba(15, 31, 53, 0.55) 0%, rgba(2, 11, 26, 0.45) 100%);
  box-shadow:
    inset 0 1px 0 rgba(96, 165, 250, 0.08),
    0 12px 36px rgba(0, 0, 0, 0.25);
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}

.apf-metric::before {
  content: '';
  position: absolute;
  top: 0;
  left: 12%;
  right: 12%;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, transparent, rgba(56, 189, 248, 0.85), transparent);
  opacity: 0.85;
}

.apf-metric:hover {
  border-color: var(--border-strong);
  box-shadow:
    inset 0 1px 0 rgba(96, 165, 250, 0.1),
    0 16px 48px rgba(0, 0, 0, 0.35),
    0 0 40px rgba(56, 189, 248, 0.06);
  transform: translateY(-2px);
}

.apf-metric-value {
  font-size: clamp(1.75rem, 3.2vw, 2.35rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.05;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}

.apf-metric-value--sm {
  font-size: clamp(1.25rem, 2.2vw, 1.5rem);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.apf-metric-value--mixed {
  font-size: clamp(1.35rem, 2.4vw, 1.75rem);
  font-weight: 800;
}

.apf-metric-kicker {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 4px;
}

.apf-metric-label {
  margin-top: 6px;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  line-height: 1.35;
}

.apf-metric-hint {
  margin-top: 8px;
  font-size: 0.75rem;
  color: var(--text-dim);
  line-height: 1.4;
  max-width: 12rem;
}

@media (max-width: 480px) {
  .apf-banner-metrics {
    grid-template-columns: 1fr 1fr;
  }

  .apf-metric {
    padding: 16px 10px 14px;
  }
}

.apf-pill-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  padding: 10px 18px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--blue-bright);
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  background: rgba(15, 31, 53, 0.5);
}

.apf-pill-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--blue-bright);
  box-shadow: 0 0 12px rgba(96, 165, 250, 0.7);
}

/* ——— Bento showcase ——— */
.apf-bento {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}

.apf-bento-wide {
  grid-column: 1 / -1;
}

@media (max-width: 800px) {
  .apf-bento {
    grid-template-columns: 1fr;
  }
  .apf-bento-wide {
    grid-column: auto;
  }
}

.apf-bento-item {
  margin: 0;
}

.apf-bento-item figcaption {
  margin-top: 14px;
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.55;
  max-width: 52rem;
}

.apf-bento-item figcaption strong {
  color: var(--text);
}

/* ——— Real screenshots ——— */
.apf-realshots {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}

@media (max-width: 800px) {
  .apf-realshots {
    grid-template-columns: 1fr;
  }
}

.apf-realshot {
  margin: 0;
}

.apf-realshot figcaption {
  margin-top: 12px;
  font-size: 0.875rem;
  color: var(--text-dim);
}

.apf-studio-card-hook {
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.55;
  margin: 0 0 18px;
}

.apf-studio-card-hook strong {
  color: var(--text);
}

/* ——— Sections ——— */
.apf-section-label {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--blue);
  margin: 0 0 14px;
}

.apf-h2 {
  font-size: clamp(1.875rem, 3.8vw, 2.55rem);
  font-weight: 700;
  line-height: 1.1;
  margin: 0 0 18px;
  letter-spacing: -0.032em;
}

.apf-h2 em {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  color: var(--blue-bright);
}

.apf-section-lead {
  margin: 0 0 38px;
  color: var(--text-muted);
  font-size: 1.0625rem;
  line-height: 1.65;
  max-width: 40rem;
}

.apf-section {
  padding: 68px 24px;
}

.apf-section-alt {
  background: var(--bg-elevated);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  box-shadow: inset 0 1px 0 rgba(96, 165, 250, 0.04);
}

.apf-section-pain {
  position: relative;
  padding-top: 72px;
  padding-bottom: 76px;
}

.apf-section-pain::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  transform: translateX(-50%);
  width: min(720px, 90vw);
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(56, 189, 248, 0.35), transparent);
  pointer-events: none;
}

.apf-pain-header {
  position: relative;
  margin-bottom: 40px;
  padding: 28px 28px 30px 32px;
  border-radius: var(--radius);
  border: 1px solid var(--border-strong);
  background:
    radial-gradient(ellipse 80% 120% at 100% 0%, rgba(37, 99, 235, 0.12), transparent 55%),
    linear-gradient(165deg, rgba(15, 31, 53, 0.65) 0%, rgba(2, 11, 26, 0.5) 100%);
  box-shadow:
    0 0 0 1px rgba(56, 189, 248, 0.05),
    0 28px 72px rgba(0, 0, 0, 0.4);
}

.apf-pain-header::before {
  content: '';
  position: absolute;
  left: 0;
  top: 16px;
  bottom: 16px;
  width: 4px;
  border-radius: 4px;
  background: linear-gradient(180deg, #38bdf8, var(--blue-deep));
  box-shadow: 0 0 24px rgba(56, 189, 248, 0.45);
}

.apf-pain-lead {
  margin-bottom: 0 !important;
  max-width: 44rem;
}

.apf-h2-pain {
  line-height: 1.12;
}

.apf-container {
  max-width: var(--max);
  margin: 0 auto;
}

/* ——— Problem cards ——— */
.apf-problems {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

@media (max-width: 900px) {
  .apf-problems { grid-template-columns: 1fr; }
}

.apf-problem-card {
  position: relative;
  background: linear-gradient(180deg, rgba(15, 31, 53, 0.55) 0%, rgba(10, 22, 40, 0.72) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px 24px 24px;
  display: flex;
  flex-direction: column;
  min-height: 100%;
  overflow: hidden;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
  box-shadow:
    inset 0 1px 0 rgba(96, 165, 250, 0.05),
    0 0 0 1px rgba(56, 189, 248, 0.04);
}

.apf-problem-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--blue-deep), var(--blue), #7dd3fc);
  opacity: 0.85;
}

.apf-problem-card > * {
  position: relative;
  z-index: 1;
}

.apf-problem-card:hover {
  border-color: var(--border-strong);
  box-shadow:
    inset 0 1px 0 rgba(96, 165, 250, 0.08),
    0 0 0 1px rgba(56, 189, 248, 0.08),
    0 20px 56px rgba(0, 0, 0, 0.35),
    0 0 48px rgba(56, 189, 248, 0.1);
  transform: translateY(-3px);
}

.apf-problem-top {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.apf-problem-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.25rem;
  height: 2.25rem;
  padding: 0 8px;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 600;
  color: var(--blue-bright);
  letter-spacing: 0.06em;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: rgba(56, 189, 248, 0.08);
}

.apf-problem-emoji {
  font-size: 1.35rem;
  line-height: 1;
  margin-left: auto;
  opacity: 0.95;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.35));
}

.apf-problem-card h3 {
  margin: 0 0 12px;
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text);
}

.apf-problem-card > p:not(.apf-problem-resolve) {
  margin: 0 0 auto;
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.62;
  padding-bottom: 16px;
}

.apf-problem-resolve {
  margin: 0;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--blue);
}

/* ——— Features ——— */
.apf-features {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

@media (max-width: 700px) {
  .apf-features { grid-template-columns: 1fr; }
}

.apf-feature {
  padding: 22px 24px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: rgba(10, 22, 40, 0.35);
}

.apf-feature h3 {
  margin: 0 0 10px;
  font-size: 1.0625rem;
  font-weight: 600;
}

.apf-feature p {
  margin: 0;
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.62;
}

/* ——— Steps ——— */
.apf-steps {
  margin: 0;
  padding: 0;
  list-style: none;
}

.apf-steps li {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 22px 0;
  border-bottom: 1px solid var(--border);
  font-size: 1.0625rem;
  color: var(--text-muted);
  line-height: 1.55;
}

.apf-steps li:last-child {
  border-bottom: none;
}

.apf-step-num {
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  border-radius: 11px;
  background: var(--accent-soft);
  color: var(--blue-bright);
  font-weight: 700;
  font-size: 0.875rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.apf-code {
  font-family: var(--font-mono);
  font-size: 0.84em;
  background: var(--bg-panel-2);
  padding: 3px 8px;
  border-radius: 6px;
  color: var(--blue);
}

/* ——— Studio CTA ——— */
.apf-studio {
  padding: 60px 24px 76px;
  border-top: 1px solid var(--border);
}

.apf-studio-grid {
  display: grid;
  grid-template-columns: 1fr minmax(280px, 360px);
  gap: 48px;
  align-items: start;
}

@media (max-width: 800px) {
  .apf-studio-grid { grid-template-columns: 1fr; }
}

.apf-studio-body {
  color: var(--text-muted);
  line-height: 1.7;
  margin: 0 0 16px;
  font-size: 1.0625rem;
}

.apf-studio-body a {
  color: var(--blue-bright);
  text-decoration: none;
  font-weight: 600;
}

.apf-studio-body a:hover {
  text-decoration: underline;
}

.apf-studio-card {
  background: var(--bg-panel);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(56, 189, 248, 0.06);
}

.apf-studio-card-kicker {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue-bright);
  margin: 0 0 16px;
}

.apf-studio-card-note {
  font-size: 0.8125rem;
  color: var(--text-dim);
  margin: 14px 0 0;
  line-height: 1.55;
}

/* ——— Comparison table ——— */
.apf-compare-wrap {
  overflow-x: auto;
  margin-top: 8px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: rgba(2, 11, 26, 0.4);
}

.apf-compare {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}

.apf-compare th,
.apf-compare td {
  padding: 15px 18px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.apf-compare th {
  background: rgba(56, 189, 248, 0.06);
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.8125rem;
}

.apf-compare td {
  color: var(--text-muted);
}

.apf-compare tr:last-child td {
  border-bottom: none;
}

.apf-compare .apf-yes {
  color: var(--blue-bright);
  font-weight: 600;
}

.apf-compare .apf-no {
  color: var(--text-dim);
}

/* ——— Social proof / integrations ——— */
.apf-partners {
  padding: 40px 24px 48px;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: rgba(2, 11, 26, 0.5);
}

.apf-partners-title {
  font-size: 0.8125rem;
  font-family: var(--font-mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin: 0 0 10px;
  text-align: center;
}

.apf-partners-sub {
  text-align: center;
  max-width: 36rem;
  margin: 0 auto 28px;
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.apf-partners-row {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 12px 20px;
}

.apf-partner {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: rgba(15, 31, 53, 0.35);
}

.apf-partner-icon {
  flex-shrink: 0;
  display: block;
}

.apf-partner-glyph {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--blue-bright);
  line-height: 1;
  width: 22px;
  text-align: center;
}

.apf-partner-name {
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--text-muted);
  white-space: nowrap;
}

.apf-partner-em .apf-partner-name {
  color: var(--text);
  font-weight: 700;
  letter-spacing: 0.06em;
}

.apf-partners-foot {
  margin: 24px 0 0;
  text-align: center;
  font-size: 0.6875rem;
  color: var(--text-dim);
  line-height: 1.45;
  max-width: 40rem;
  margin-left: auto;
  margin-right: auto;
}

/* ——— Interface gallery (no per-image captions) ——— */
.apf-showcase-thesis {
  font-size: 1.0625rem;
  color: var(--text-muted);
  line-height: 1.65;
  max-width: 40rem;
  margin: 0 0 32px;
}

.apf-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

@media (max-width: 900px) {
  .apf-gallery {
    grid-template-columns: 1fr;
  }
}

.apf-gallery-item {
  min-width: 0;
}

.apf-section-lead-tight {
  margin-bottom: 22px !important;
}

.apf-realshot {
  margin: 0;
}

/* ——— Footer ——— */
.apf-footer {
  margin-top: auto;
  padding: 36px 24px 44px;
  border-top: 1px solid var(--border);
  background: rgba(2, 8, 18, 0.92);
}

.apf-footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  text-align: center;
}

.apf-footer p {
  margin: 0 0 10px;
  font-size: 0.875rem;
  color: var(--text-muted);
}

.apf-footer a {
  color: var(--blue-bright);
  text-decoration: none;
  font-weight: 500;
}

.apf-footer a:hover {
  text-decoration: underline;
  color: var(--blue);
}

.apf-footer-muted {
  font-size: 0.75rem !important;
  color: var(--text-dim) !important;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .apf-metric:hover,
  .apf-problem-card:hover {
    transform: none;
  }
}
