/* =======================================================================
   On Top Rank — Landing styles
   Material Design 3 inspired: Roboto type, tonal color system, elevation
   scale, 8dp spacing grid, rounded surfaces, accessible contrast.
   ======================================================================= */

/* ── Design tokens ───────────────────────────────────────────────── */
:root {
  /* Primary palette — matches app brand */
  --md-primary:           #6C5CE7;
  --md-primary-hover:     #5B4CDB;
  --md-primary-pressed:   #4B3DCB;
  --md-on-primary:        #FFFFFF;
  --md-primary-container: #EDE9FE;
  --md-on-primary-container: #2A1F8A;

  /* Neutrals / surfaces */
  --md-surface:           #FFFFFF;
  --md-surface-variant:   #F4F5F9;
  --md-surface-tinted:    #F7F6FE;   /* very light primary tint */
  --md-background:        #FFFFFF;
  --md-outline:           #DADCE2;
  --md-outline-subtle:    #ECEEF3;

  /* Text */
  --md-on-surface:        #15181E;
  --md-on-surface-2:      #3B4048;
  --md-on-surface-3:      #5E6470;
  --md-on-surface-muted:  #7A818D;

  /* Semantic */
  --md-success:           #1E8E3E;
  --md-success-bg:        #E6F4EA;
  --md-warn:              #C67700;
  --md-warn-bg:           #FEF4E3;
  --md-error:             #D93025;
  --md-error-bg:          #FCE8E6;

  /* Elevation */
  --md-elev-1: 0 1px 2px rgba(15,22,36,0.06), 0 1px 3px rgba(15,22,36,0.05);
  --md-elev-2: 0 2px 4px rgba(15,22,36,0.06), 0 4px 10px rgba(15,22,36,0.06);
  --md-elev-3: 0 4px 8px rgba(15,22,36,0.07), 0 10px 24px rgba(15,22,36,0.08);
  --md-elev-4: 0 8px 16px rgba(15,22,36,0.08), 0 20px 40px rgba(15,22,36,0.10);

  /* Radii */
  --r-xs: 6px;
  --r-sm: 10px;
  --r-md: 14px;
  --r-lg: 20px;
  --r-xl: 28px;
  --r-full: 999px;

  /* Spacing — 8dp grid */
  --s-1: 4px;
  --s-2: 8px;
  --s-3: 12px;
  --s-4: 16px;
  --s-5: 24px;
  --s-6: 32px;
  --s-7: 48px;
  --s-8: 64px;
  --s-9: 96px;

  /* Typography */
  --ff-display: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --ff-body:    'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;

  /* ── Legacy aliases — kept so blog.css / admin pages stay styled ── */
  --bg:           var(--md-background);
  --surface:      var(--md-surface);
  --surface-2:   var(--md-surface-variant);
  --text:         var(--md-on-surface);
  --muted:        var(--md-on-surface-muted);
  --border:       var(--md-outline-subtle);
  --brand:        var(--md-primary);
  --brand-2:      #A58BFF;
  --ok:           var(--md-success);
  --max:          1180px;
  --container-x:  var(--s-5);
  --section-y:    var(--s-8);
  --radius:       var(--r-lg);
  --radius-sm:    var(--r-sm);
  --ease:         cubic-bezier(.2,.7,.2,1);
  --s-10:         80px;
  --s-12:         96px;
  --s-16:         128px;
}

/* ── Reset ───────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--ff-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--md-on-surface);
  background: var(--md-background);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; }
h1, h2, h3, h4 { font-family: var(--ff-display); margin: 0; line-height: 1.15; letter-spacing: -0.01em; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }

.material-symbols-rounded {
  font-variation-settings: 'FILL' 0, 'wght' 500, 'GRAD' 0, 'opsz' 24;
  font-size: 20px;
  vertical-align: middle;
  line-height: 1;
}

/* ── Layout ──────────────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 var(--s-5);
}
.section { padding: var(--s-9) 0; }
.section.tinted { background: var(--md-surface-tinted); }

.section-head {
  max-width: 760px;
  margin: 0 auto var(--s-7);
  text-align: center;
}
.section-head .eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--md-primary);
  background: var(--md-primary-container);
  padding: 6px 12px;
  border-radius: var(--r-full);
  margin-bottom: var(--s-4);
}
.section-head h2 {
  font-size: clamp(28px, 3.6vw, 40px);
  font-weight: 700;
  color: var(--md-on-surface);
  margin-bottom: var(--s-3);
}
.section-head p { color: var(--md-on-surface-3); font-size: 17px; }

/* ── Navigation ──────────────────────────────────────────────────── */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  padding: 12px 0;
  background: rgba(255,255,255,0.85);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}
.nav-inner {
  position: relative;
  display: flex;
  align-items: center;
  gap: var(--s-5);
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 var(--s-5);
}
.nav.scrolled {
  border-bottom-color: var(--md-outline-subtle);
  box-shadow: var(--md-elev-1);
}
.nav .brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--ff-display);
  font-weight: 700;
  font-size: 18px;
  color: var(--md-on-surface);
}
/* Rounded logo mark — matches the radius language used on cards, chips and
   buttons so the nav feels consistent with the rest of the page. */
.nav .brand img {
  border-radius: var(--r-sm);
  display: block;
}
/* Mobile: hide the wordmark so only the logo sits in the nav — less clutter
   next to the burger and CTA on small screens. */
@media (max-width: 720px) {
  .nav .brand span { display: none; }
}
.nav-links {
  display: flex;
  gap: var(--s-3);
  margin-left: var(--s-5);
  flex: 1;
}
.nav-links a {
  position: relative;
  padding: 10px 12px;
  border-radius: var(--r-full);
  color: var(--md-on-surface-2);
  font-size: 14px;
  font-weight: 500;
  transition: background .2s ease, color .2s ease;
}
.nav-links a:hover { background: var(--md-surface-variant); color: var(--md-on-surface); }
.nav-links a.active { background: var(--md-primary-container); color: var(--md-on-primary-container); }
.nav-cta { display: inline-flex; gap: var(--s-2); }

.nav-burger {
  display: none;
  flex-direction: column;
  gap: 4px;
  width: 40px; height: 40px;
  align-items: center; justify-content: center;
  background: transparent;
  border: 0;
  border-radius: var(--r-full);
  cursor: pointer;
}
.nav-burger:hover { background: var(--md-surface-variant); }
.nav-burger span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--md-on-surface);
  border-radius: 2px;
  transition: transform .2s ease;
}

@media (max-width: 960px) {
  .nav-links {
    position: absolute;
    top: calc(100% + 12px);
    left: var(--s-5); right: var(--s-5);
    border-radius: var(--r-lg);
    flex-direction: column;
    gap: 0;
    padding: var(--s-3) var(--s-5) var(--s-4);
    background: var(--md-surface);
    border-bottom: 1px solid var(--md-outline-subtle);
    box-shadow: var(--md-elev-2);
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: transform .2s ease, opacity .2s ease;
  }
  .nav.open .nav-links { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .nav-links a { padding: 14px 12px; border-radius: var(--r-sm); }
  /* Hide the nav CTA entirely on mobile — the burger menu already exposes
     the same "Claim free profile" action, so showing it twice is noise. */
  .nav-cta { display: none; }
  .nav-burger { display: inline-flex; margin-left: auto; }
}

/* ── Buttons ─────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 22px;
  border: 1px solid transparent;
  border-radius: 12px;
  font-family: var(--ff-body);
  font-weight: 600;
  font-size: 14px;
  line-height: 1.4;
  cursor: pointer;
  transition: background .15s ease, color .15s ease, box-shadow .15s ease,
              border-color .15s ease, transform .06s ease;
  white-space: nowrap;
}
.btn:focus-visible { outline: 3px solid rgba(108,92,231,0.35); outline-offset: 2px; }
.btn:active { transform: translateY(1px); }
.btn .material-symbols-rounded { font-size: 18px; }

.btn-primary {
  background: var(--md-primary);
  color: var(--md-on-primary);
  box-shadow: var(--md-elev-1);
}
.btn-primary:hover { background: var(--md-primary-hover); box-shadow: var(--md-elev-2); }
.btn-primary:active { background: var(--md-primary-pressed); }

.btn-outlined {
  background: transparent;
  color: var(--md-primary);
  border-color: var(--md-outline);
}
.btn-outlined:hover { background: var(--md-primary-container); border-color: transparent; }

.btn-text, .btn-ghost {
  background: transparent;
  color: var(--md-on-surface-2);
}
.btn-text:hover, .btn-ghost:hover { background: var(--md-surface-variant); color: var(--md-on-surface); }

.btn-lg { padding: 14px 26px; font-size: 15px; }
.btn-full { width: 100%; }

/* ── Hero ────────────────────────────────────────────────────────── */
.hero {
  position: relative;
  padding: var(--s-9) 0 var(--s-8);
  background:
    radial-gradient(1100px 520px at 78% -20%, rgba(108,92,231,0.10), transparent 62%),
    linear-gradient(180deg, #FFFFFF 0%, #FAFAFE 100%);
  overflow: hidden;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1.02fr 0.98fr;
  gap: var(--s-8);
  align-items: center;
}
.hero-copy .chip { margin-bottom: var(--s-5); }
.hero-copy h1.display {
  font-size: clamp(38px, 5.6vw, 64px);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.05;
  margin-bottom: var(--s-5);
}
.hero-copy .accent {
  background: linear-gradient(90deg, #6C5CE7 0%, #A58BFF 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-copy .lede {
  font-size: 18px;
  color: var(--md-on-surface-3);
  max-width: 580px;
  margin-bottom: var(--s-6);
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-3);
  margin-bottom: var(--s-6);
}
/* Mobile: center the hero CTAs and stretch the primary button so it anchors
   the section visually. The secondary "Watch demo" link stays compact and
   sits centered underneath. */
@media (max-width: 720px) {
  .hero-actions {
    align-items: center;
    justify-content: center;
    flex-direction: column;
  }
  .hero-actions > .btn {
    width: 100%;
    justify-content: center;
  }
  .hero-actions > .btn-ghost,
  .hero-actions > a:not(.btn) {
    width: auto;
    align-self: center;
  }
}
.trust-strip {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-4) var(--s-5);
  padding-top: var(--s-5);
  border-top: 1px solid var(--md-outline-subtle);
}
.trust-strip li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--md-on-surface-3);
  font-weight: 500;
}
.trust-strip .material-symbols-rounded { font-size: 18px; color: var(--md-primary); }

/* Hero art */
.hero-art { position: relative; }
.device {
  background: var(--md-surface);
  border-radius: var(--r-xl);
  border: 1px solid var(--md-outline-subtle);
  box-shadow: var(--md-elev-4);
  overflow: hidden;
}
.device-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  background: var(--md-surface-variant);
  border-bottom: 1px solid var(--md-outline-subtle);
  font-size: 13px;
  font-weight: 500;
  color: var(--md-on-surface-3);
}
.device-dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--md-primary);
  box-shadow: 0 0 0 3px rgba(108,92,231,0.2);
}
.device-body { padding: var(--s-5); display: flex; flex-direction: column; gap: var(--s-4); }

.md-card {
  background: var(--md-surface);
  border: 1px solid var(--md-outline-subtle);
  border-radius: var(--r-lg);
  padding: var(--s-5);
}
.md-card.elev-1 { box-shadow: var(--md-elev-1); }
.md-card.elev-2 { box-shadow: var(--md-elev-2); }
.md-card-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: var(--s-3);
}
.md-card-head strong { display: block; font-size: 15px; }
.md-card-head small { display: block; font-size: 12px; color: var(--md-on-surface-muted); }
.md-card-head .chip { margin-left: auto; }

.md-avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center; justify-content: center;
  flex-shrink: 0;
}
.md-avatar-primary { background: var(--md-primary); color: white; }
.md-avatar-tonal { background: var(--md-primary-container); color: var(--md-on-primary-container); }

.rating-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: var(--s-3);
}
.stars { display: inline-flex; color: #F5A524; }
.stars .material-symbols-rounded { font-size: 18px; font-variation-settings: 'FILL' 1; }
.rating-num { font-weight: 700; }
.rating-sub { font-size: 13px; color: var(--md-on-surface-muted); }

.md-body { font-size: 14px; color: var(--md-on-surface-2); margin-bottom: var(--s-3); }
.md-body.small { font-size: 13px; margin-bottom: 0; }
.chip-row { display: flex; flex-wrap: wrap; gap: 8px; }

/* ── Chips ───────────────────────────────────────────────────────── */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: var(--r-full);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.2;
}
.chip .material-symbols-rounded { font-size: 16px; }
.chip-tonal { background: var(--md-primary-container); color: var(--md-on-primary-container); }
.chip-success { background: var(--md-success-bg); color: var(--md-success); }

/* ── Grids ───────────────────────────────────────────────────────── */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--s-5); }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-5); }
@media (max-width: 960px) { .grid-2, .grid-3 { grid-template-columns: 1fr; } }

/* ── Feature cards ───────────────────────────────────────────────── */
.feature {
  background: var(--md-surface);
  border: 1px solid var(--md-outline-subtle);
  border-radius: var(--r-lg);
  padding: var(--s-6);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.feature:hover {
  transform: translateY(-2px);
  box-shadow: var(--md-elev-2);
  border-color: transparent;
}
.feature h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: var(--s-2);
  color: var(--md-on-surface);
}
.feature p { color: var(--md-on-surface-3); font-size: 15px; }

.md-icon {
  display: inline-flex;
  align-items: center; justify-content: center;
  width: 48px; height: 48px;
  border-radius: var(--r-md);
  margin-bottom: var(--s-4);
}
.md-icon .material-symbols-rounded { font-size: 24px; }
.md-icon-primary {
  background: var(--md-primary-container);
  color: var(--md-on-primary-container);
}
.md-icon-warn { color: var(--md-warn); font-size: 24px; }

/* ── Problem section ─────────────────────────────────────────────── */
.problem-grid { gap: var(--s-4); }
.problem-item {
  display: flex;
  align-items: flex-start;
  gap: var(--s-4);
  background: var(--md-surface);
  border: 1px solid var(--md-outline-subtle);
  border-radius: var(--r-lg);
  padding: var(--s-5);
}
.problem-item h4 { font-size: 16px; font-weight: 600; margin-bottom: 4px; }
.problem-item p { font-size: 14px; color: var(--md-on-surface-3); }
.problem-item .material-symbols-rounded {
  font-size: 24px;
  flex-shrink: 0;
  margin-top: 2px;
}
.problem-item.highlight {
  background: var(--md-primary-container);
  border-color: transparent;
}
.problem-item.highlight h4 { color: var(--md-on-primary-container); }
.problem-item.highlight p { color: var(--md-on-primary-container); opacity: 0.85; }

/* ── Steps ───────────────────────────────────────────────────────── */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--s-5);
}
.step-card {
  position: relative;
  background: var(--md-surface);
  border: 1px solid var(--md-outline-subtle);
  border-radius: var(--r-lg);
  padding: var(--s-6);
  transition: box-shadow .2s ease, transform .2s ease;
}
.step-card:hover { box-shadow: var(--md-elev-2); transform: translateY(-2px); }
.step-num {
  position: absolute;
  top: var(--s-5);
  right: var(--s-5);
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--md-primary-container);
  color: var(--md-on-primary-container);
  font-weight: 700;
  font-size: 14px;
  display: inline-flex;
  align-items: center; justify-content: center;
}
.step-icon {
  color: var(--md-primary);
  font-size: 32px !important;
  margin-bottom: var(--s-4);
  display: block;
}
.step-card h3 { font-size: 17px; font-weight: 600; margin-bottom: var(--s-2); }
.step-card p { color: var(--md-on-surface-3); font-size: 14px; }

@media (max-width: 960px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }

/* ── Callout ─────────────────────────────────────────────────────── */
.callout {
  display: flex;
  align-items: flex-start;
  gap: var(--s-4);
  margin-top: var(--s-6);
  padding: var(--s-5);
  background: var(--md-primary-container);
  border-radius: var(--r-lg);
  color: var(--md-on-primary-container);
}
.callout .material-symbols-rounded { font-size: 24px; flex-shrink: 0; }
.callout p { font-size: 14px; line-height: 1.6; }

/* ── Split section ───────────────────────────────────────────────── */
.split {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: var(--s-8);
  align-items: center;
}
@media (max-width: 960px) { .split { grid-template-columns: 1fr; } }

.split-copy h2 {
  font-size: clamp(28px, 3.6vw, 40px);
  font-weight: 700;
  margin-bottom: var(--s-3);
}
.split-copy .lede {
  font-size: 17px;
  color: var(--md-on-surface-3);
  margin-bottom: var(--s-5);
}
.split-copy .eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--md-primary);
  background: var(--md-primary-container);
  padding: 6px 12px;
  border-radius: var(--r-full);
  margin-bottom: var(--s-4);
}
.check-list {
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
  margin-bottom: var(--s-5);
}
.check-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 15px;
  color: var(--md-on-surface-2);
}
.check-list .material-symbols-rounded {
  font-size: 22px;
  color: var(--md-primary);
  flex-shrink: 0;
}
.muted { color: var(--md-on-surface-muted); font-size: 14px; margin-bottom: var(--s-5); }

.pack-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-4);
  max-width: 360px;
  margin: 0 auto;
}
.pack-node {
  aspect-ratio: 1;
  display: flex;
  align-items: center; justify-content: center;
  border-radius: var(--r-lg);
  background: var(--md-surface);
  box-shadow: var(--md-elev-1);
  color: var(--md-primary);
}
.pack-node .material-symbols-rounded { font-size: 28px; }
.pack-node.center {
  background: var(--md-primary);
  color: white;
  box-shadow: var(--md-elev-3);
  transform: scale(1.1);
}

/* ── Stat banner ─────────────────────────────────────────────────── */
.stat-banner {
  margin-top: var(--s-7);
  padding: var(--s-6);
  background: var(--md-primary);
  color: white;
  border-radius: var(--r-xl);
  display: flex;
  align-items: center;
  gap: var(--s-5);
  box-shadow: var(--md-elev-3);
}
.stat-banner strong {
  font-family: var(--ff-display);
  font-size: clamp(48px, 6vw, 72px);
  font-weight: 800;
  line-height: 1;
}
.stat-banner span { font-size: 16px; opacity: 0.95; }

/* ── Comparison table ────────────────────────────────────────────── */
.table-wrap {
  background: var(--md-surface);
  border-radius: var(--r-lg);
  border: 1px solid var(--md-outline-subtle);
  box-shadow: var(--md-elev-1);
  overflow: hidden;
  overflow-x: auto;
}
.md-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  min-width: 720px;
}
.md-table thead th {
  background: var(--md-surface-variant);
  text-align: left;
  padding: var(--s-4) var(--s-5);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.02em;
  color: var(--md-on-surface-2);
  border-bottom: 1px solid var(--md-outline-subtle);
}
.md-table tbody td {
  padding: var(--s-4) var(--s-5);
  border-bottom: 1px solid var(--md-outline-subtle);
  color: var(--md-on-surface-2);
}
.md-table tbody tr:last-child td { border-bottom: 0; }
.md-table .highlight-col {
  background: rgba(108,92,231,0.05);
  color: var(--md-on-surface);
  font-weight: 500;
  border-left: 2px solid var(--md-primary);
  border-right: 2px solid var(--md-primary);
}

.cell-yes, .cell-no, .cell-warn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: var(--r-full);
  font-size: 12px;
  font-weight: 500;
}
.cell-yes { background: var(--md-success-bg); color: var(--md-success); }
.cell-warn { background: var(--md-warn-bg); color: var(--md-warn); }
.cell-no { background: var(--md-error-bg); color: var(--md-error); }

/* ── Pricing ─────────────────────────────────────────────────────── */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--s-4);
}
@media (max-width: 1100px) { .pricing-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px)  { .pricing-grid { grid-template-columns: 1fr; } }

.price-card {
  position: relative;
  background: var(--md-surface);
  border: 1px solid var(--md-outline-subtle);
  border-radius: var(--r-lg);
  padding: var(--s-6);
  display: flex;
  flex-direction: column;
  transition: box-shadow .2s ease, transform .2s ease, border-color .2s ease;
}
.price-card:hover { box-shadow: var(--md-elev-2); transform: translateY(-2px); }
.price-card h3 { font-size: 18px; font-weight: 600; margin-bottom: var(--s-3); }
.price-card .price {
  font-family: var(--ff-display);
  font-size: 36px;
  font-weight: 800;
  margin-bottom: var(--s-4);
  line-height: 1;
}
.price-card .price span {
  font-size: 14px;
  font-weight: 400;
  color: var(--md-on-surface-muted);
  margin-left: 4px;
}
.price-card ul {
  display: flex;
  flex-direction: column;
  gap: var(--s-2);
  margin-bottom: var(--s-5);
  flex: 1;
}
.price-card ul li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 14px;
  color: var(--md-on-surface-2);
}
.price-card ul .material-symbols-rounded {
  font-size: 18px;
  color: var(--md-primary);
  flex-shrink: 0;
  margin-top: 2px;
}
.price-card.featured {
  border-color: var(--md-primary);
  box-shadow: var(--md-elev-2);
}
.price-card .ribbon {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--md-primary);
  color: white;
  font-size: 12px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: var(--r-full);
  box-shadow: var(--md-elev-2);
}
.pricing-footnote {
  margin-top: var(--s-6);
  text-align: center;
  color: var(--md-on-surface-muted);
  font-size: 14px;
}

/* ── Testimonials ────────────────────────────────────────────────── */
.quote {
  background: var(--md-surface);
  border: 1px solid var(--md-outline-subtle);
  border-radius: var(--r-lg);
  padding: var(--s-6);
  margin: 0;
}
.quote blockquote {
  margin: 0 0 var(--s-5) 0;
  font-size: 16px;
  color: var(--md-on-surface);
  line-height: 1.6;
  quotes: none;
}
.quote figcaption {
  display: flex;
  align-items: center;
  gap: 12px;
}
.quote figcaption strong { display: block; font-size: 14px; }
.quote figcaption small { display: block; font-size: 12px; color: var(--md-on-surface-muted); }

/* ── FAQ ─────────────────────────────────────────────────────────── */
.faq {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: var(--s-2);
}
.faq details {
  background: var(--md-surface);
  border: 1px solid var(--md-outline-subtle);
  border-radius: var(--r-md);
  padding: var(--s-4) var(--s-5);
  transition: box-shadow .15s ease, border-color .15s ease;
}
.faq details[open] { border-color: var(--md-primary); box-shadow: var(--md-elev-1); }
.faq summary {
  cursor: pointer;
  font-weight: 500;
  font-size: 15px;
  color: var(--md-on-surface);
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--s-3);
  padding: 4px 0;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: 'expand_more';
  font-family: 'Material Symbols Rounded';
  font-size: 20px;
  color: var(--md-on-surface-3);
  font-variation-settings: 'FILL' 0, 'wght' 500;
  transition: transform .2s ease;
}
.faq details[open] summary::after { transform: rotate(180deg); color: var(--md-primary); }
.faq details p {
  margin-top: var(--s-3);
  color: var(--md-on-surface-3);
  font-size: 14.5px;
  line-height: 1.7;
}

/* ── Blog teaser ─────────────────────────────────────────────────── */
.latest-blog .grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-5);
  margin-top: var(--s-5);
}
@media (max-width: 960px) { .latest-blog .grid { grid-template-columns: 1fr; } }
.view-all { margin-top: var(--s-6); text-align: center; }

/* ── Final CTA ───────────────────────────────────────────────────── */
.cta {
  padding: var(--s-9) 0;
  background:
    radial-gradient(700px 400px at 20% 20%, rgba(108,92,231,0.14), transparent 60%),
    radial-gradient(600px 400px at 85% 80%, rgba(108,92,231,0.12), transparent 60%),
    linear-gradient(180deg, #FFFFFF 0%, #F7F6FE 100%);
  text-align: center;
}
.cta h2 {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 800;
  margin-bottom: var(--s-4);
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}
.cta p {
  font-size: 17px;
  color: var(--md-on-surface-3);
  max-width: 620px;
  margin: 0 auto var(--s-6);
}
.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-3);
  justify-content: center;
}

/* ── Footer ──────────────────────────────────────────────────────── */
.footer {
  padding: var(--s-8) 0 var(--s-5);
  background: #15181E;
  color: #B9BFCD;
}
.foot-grid {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 var(--s-5);
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1fr;
  gap: var(--s-7);
}
@media (max-width: 800px) { .foot-grid { grid-template-columns: 1fr; gap: var(--s-5); } }
.foot-bottom { text-align: left; }
@media (max-width: 600px) {
  .foot-bottom { flex-direction: column; align-items: flex-start; gap: var(--s-2); }
}
.footer .brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: white;
  font-family: var(--ff-display);
  font-weight: 700;
  margin-bottom: var(--s-3);
}
.footer h4 {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: white;
  margin-bottom: var(--s-3);
}
.footer a {
  display: block;
  color: #B9BFCD;
  font-size: 14px;
  padding: 4px 0;
  transition: color .15s ease;
}
.footer a:hover { color: white; }
.footer .muted { color: #8892A3; }
.foot-bottom {
  max-width: 1180px;
  margin: var(--s-6) auto 0;
  padding: var(--s-4) var(--s-5) 0;
  border-top: 1px solid rgba(255,255,255,0.08);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--s-3);
  font-size: 13px;
}

/* ── Reveal on scroll ────────────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .5s ease, transform .5s ease;
}
.reveal.in { opacity: 1; transform: translateY(0); }

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

/* ── Hero responsive ─────────────────────────────────────────────── */
@media (max-width: 960px) {
  .hero { padding: var(--s-7) 0 var(--s-7); }
  .hero-inner { grid-template-columns: 1fr; gap: var(--s-6); }
  .hero-art { display: none; }
  .section { padding: var(--s-8) 0; }
}

/* ── Focus rings (a11y) ──────────────────────────────────────────── */
a:focus-visible, summary:focus-visible {
  outline: 3px solid rgba(108,92,231,0.35);
  outline-offset: 2px;
  border-radius: 4px;
}

/* Legacy stubs */
.bg-orb, .pill { display: none; }

/* ── App-exchange additions ──────────────────────────────────────── */
.hero-chips { margin-top: var(--s-5); }

.section-tight { padding: var(--s-6) 0; }

.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--s-3);
  background: var(--md-surface);
  border: 1px solid var(--md-outline-subtle);
  border-radius: var(--r-lg);
  padding: var(--s-5) var(--s-4);
  box-shadow: var(--md-elev-1);
}
.stats-row .stat {
  text-align: center;
  padding: var(--s-2) var(--s-3);
  border-right: 1px solid var(--md-outline-subtle);
}
.stats-row .stat:last-child { border-right: none; }
.stats-row .stat strong {
  display: block;
  font-size: 1.6rem;
  font-weight: 800;
  line-height: 1.1;
  color: var(--md-primary);
  letter-spacing: -0.02em;
}
.stats-row .stat span {
  display: block;
  margin-top: 4px;
  font-size: 0.82rem;
  color: var(--md-on-surface-3);
}

.pack-card { max-width: 400px; }
.pack-progress {
  height: 8px;
  border-radius: var(--r-full);
  background: var(--md-surface-variant);
  overflow: hidden;
  margin: var(--s-3) 0 var(--s-3);
}
.pack-progress > span {
  display: block;
  height: 100%;
  border-radius: var(--r-full);
  background: var(--md-primary);
}

@media (max-width: 720px) {
  .stats-row { grid-template-columns: repeat(2, 1fr); gap: var(--s-2); }
  .stats-row .stat:nth-child(2) { border-right: none; }
}

/* ══════════════════════════════════════════════════════════════════
   Realrun-style redesign layer
   ══════════════════════════════════════════════════════════════════ */

/* Slightly flatter, softer surfaces overall */
.md-card { border-radius: 16px; }
.feature { border-radius: 16px; box-shadow: none; }
.feature:hover { box-shadow: var(--md-elev-2); }

/* ── Product window mockup (hero + splits) ───────────────────────── */
.app-window {
  border-radius: 18px;
  background: var(--md-surface);
  border: 1px solid var(--md-outline-subtle);
  box-shadow: 0 24px 60px rgba(28,26,68,0.16), 0 4px 14px rgba(28,26,68,0.06);
  overflow: hidden;
}
.app-window .win-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 11px 14px;
  background: var(--md-surface-variant);
  border-bottom: 1px solid var(--md-outline-subtle);
}
.app-window .win-bar i {
  width: 10px; height: 10px; border-radius: 50%;
  background: #D6D9E2; display: inline-block;
}
.app-window .win-bar i:nth-child(1) { background: #FF6058; }
.app-window .win-bar i:nth-child(2) { background: #FFBD2E; }
.app-window .win-bar i:nth-child(3) { background: #29C940; }
.app-window .win-bar span {
  margin-left: 8px; font-size: 12px; color: var(--md-on-surface-muted);
  font-weight: 500;
}
.app-window .win-body { padding: 16px; display: flex; flex-direction: column; gap: 12px; }

/* A compact app-listing row used inside the mockups */
.mock-row {
  display: flex; align-items: center; gap: 12px;
  padding: 12px; border-radius: 14px;
  border: 1px solid var(--md-outline-subtle);
  background: var(--md-surface);
}
.mock-row .mr-ico {
  width: 42px; height: 42px; border-radius: 12px; flex-shrink: 0;
  display: grid; place-items: center; color: #fff;
}
.mock-row .mr-ico .material-symbols-rounded { font-size: 22px; }
.mock-row .mr-main { flex: 1; min-width: 0; }
.mock-row .mr-main strong { display: block; font-size: 14px; font-weight: 700; }
.mock-row .mr-main small { display: block; font-size: 12px; color: var(--md-on-surface-3); }
.mr-badge {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 12px; font-weight: 700; color: var(--md-primary);
  background: var(--md-primary-container); padding: 5px 9px; border-radius: var(--r-full);
}
.mr-badge .material-symbols-rounded { font-size: 14px; }

.ico-violet { background: linear-gradient(135deg,#6C5CE7,#8B7CF7); }
.ico-green  { background: linear-gradient(135deg,#2BB673,#22c55e); }
.ico-blue   { background: linear-gradient(135deg,#3B82F6,#22B6CE); }
.ico-dark   { background: linear-gradient(135deg,#1F2430,#3B4048); }

/* ── Works-with strip ────────────────────────────────────────────── */
.works-with {
  padding: var(--s-6) 0;
  border-top: 1px solid var(--md-outline-subtle);
  border-bottom: 1px solid var(--md-outline-subtle);
  background: var(--md-surface);
}
.works-with .ww-inner {
  display: flex; align-items: center; justify-content: center;
  flex-wrap: wrap; gap: var(--s-5) var(--s-7);
}
.works-with .ww-label {
  font-size: 13px; font-weight: 600; color: var(--md-on-surface-muted);
  letter-spacing: 0.02em;
}
.ww-item {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 15px; font-weight: 700; color: var(--md-on-surface-2);
}
.ww-item .material-symbols-rounded { font-size: 22px; color: var(--md-on-surface-3); }
.ww-item .ww-logo { flex-shrink: 0; display: block; }

/* ── Big-number stat band ────────────────────────────────────────── */
.stat-band { background: var(--md-on-surface); color: #fff; padding: 24px 0; }
.stat-band .sb-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: var(--s-4); text-align: center; align-items: center;
}
.stat-band .sb {
  padding: 2px var(--s-3);
  border-right: 1px solid rgba(255,255,255,0.10);
}
.stat-band .sb:last-child { border-right: none; }
.stat-band .sb strong {
  display: block; font-family: var(--ff-display);
  font-size: clamp(19px, 2vw, 24px); font-weight: 800; line-height: 1.15;
  letter-spacing: -0.02em;
}
.stat-band .sb span {
  display: block; margin-top: 5px; font-size: 12px;
  color: rgba(255,255,255,0.6);
}

/* ── How it works — numbered steps with screenshot ───────────────── */
.how-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-5);
}
.how-step {
  background: var(--md-surface);
  border: 1px solid var(--md-outline-subtle);
  border-radius: 20px;
  overflow: hidden;
  display: flex; flex-direction: column;
}
.how-step .hs-shot {
  padding: var(--s-5) var(--s-5) 0;
  background: linear-gradient(180deg, var(--md-surface-tinted), var(--md-surface));
  border-bottom: 1px solid var(--md-outline-subtle);
}
.how-step .hs-body { padding: var(--s-5); }
.how-step .hs-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 30px; height: 30px; border-radius: 9px;
  background: var(--md-primary); color: #fff;
  font-weight: 800; font-size: 15px; margin-bottom: 12px;
}
.how-step h3 { font-size: 18px; font-weight: 700; margin-bottom: 8px; }
.how-step p { color: var(--md-on-surface-3); font-size: 14.5px; line-height: 1.6; }

/* mini shot inside a step */
.shot {
  background: var(--md-surface);
  border: 1px solid var(--md-outline-subtle);
  border-radius: 14px 14px 0 0;
  border-bottom: none;
  box-shadow: 0 -1px 0 rgba(0,0,0,0.02);
  padding: 14px;
  transform: translateY(1px);
}
.shot .shot-line {
  height: 10px; border-radius: var(--r-full); background: var(--md-surface-variant);
  margin-bottom: 9px;
}
.shot .shot-line.short { width: 55%; }
.shot .shot-line.mid { width: 78%; }
.shot .shot-chip {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 12px; font-weight: 700; color: var(--md-primary);
  background: var(--md-primary-container); padding: 6px 10px; border-radius: var(--r-full);
}
.shot .shot-chip .material-symbols-rounded { font-size: 15px; }
.shot .shot-row {
  display: flex; align-items: center; gap: 10px; margin-bottom: 10px;
}
.shot .shot-ico {
  width: 34px; height: 34px; border-radius: 10px; flex-shrink: 0;
  display: grid; place-items: center; color: #fff;
}
.shot .shot-ico .material-symbols-rounded { font-size: 18px; }
.shot .shot-stars { color: #F5A623; letter-spacing: 1px; font-size: 14px; }

/* ── Dual-audience split alternation ─────────────────────────────── */
.split.reverse { direction: rtl; }
.split.reverse > * { direction: ltr; }

/* ── Testimonials with avatars ───────────────────────────────────── */
.quote { border-radius: 16px; }
.quote .q-head { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.quote .avatar {
  width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center; color: #fff; font-weight: 800; font-size: 16px;
  flex-shrink: 0;
}
.quote .q-stars { color: #F5A623; font-size: 15px; letter-spacing: 1px; margin-left: auto; }
.quote figcaption { margin-top: 0; }

/* ── Responsive ──────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .how-grid { grid-template-columns: 1fr; }
  .stat-band .sb-grid { grid-template-columns: repeat(2, 1fr); gap: var(--s-4); }
  .stat-band .sb:nth-child(2) { border-right: none; }
  .stat-band .sb { border-bottom: 1px solid rgba(255,255,255,0.12); padding-bottom: var(--s-4); }
  .stat-band .sb:nth-last-child(-n+2) { border-bottom: none; }
}
@media (max-width: 720px) {
  .app-window { display: block; }
  .works-with .ww-inner { gap: var(--s-4); }
}

/* ── Footer contact form ─────────────────────────────────────────── */
.foot-contact h4 { margin-bottom: 12px; }
.foot-form { display: flex; flex-direction: column; gap: 8px; }
.foot-form input,
.foot-form textarea {
  width: 100%;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 10px;
  color: #E8EAF0;
  font-family: var(--ff-body);
  font-size: 13.5px;
  line-height: 1.5;
  padding: 10px 12px;
  outline: none;
  transition: border-color .15s ease, background .15s ease;
}
.foot-form textarea { resize: vertical; min-height: 76px; }
.foot-form input::placeholder,
.foot-form textarea::placeholder { color: #6B7280; }
.foot-form input:focus,
.foot-form textarea:focus {
  border-color: var(--md-primary);
  background: rgba(255,255,255,0.06);
}
.foot-form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.foot-form-btn { margin-top: 2px; width: 100%; }
.foot-form-status { font-size: 12.5px; margin: 4px 0 0; min-height: 15px; color: var(--md-on-surface-muted); }
.foot-form-status.ok { color: #34D399; }
.foot-form-status.err { color: #F87171; }
