/* =========================================================
   RESMAN WEBSITE — 2026 EDITION
   Design system: dark hero + light content + red accent
   ========================================================= */

/* ── TOKENS ──────────────────────────────────────────────── */
:root {
  /* Brand */
  --red:         #EB4135;
  --red-dark:    #c73328;
  --red-glow:    rgba(235,65,53,.3);
  --red-soft:    rgba(235,65,53,.10);
  --red-border:  rgba(235,65,53,.22);

  /* Dark surface (hero, analytics, CTA) */
  --dark:        #050507;
  --dark-2:      #0d0d10;
  --dark-3:      #16161a;
  --dark-4:      #1e1e24;
  --dark-border: rgba(255,255,255,.06);
  --dark-text:   #f0f0f2;
  --dark-muted:  #7a7a8e;

  /* Light surface */
  --light:       #f8f9fb;
  --white:       #ffffff;
  --light-border:rgba(15,23,42,.07);
  --text:        #0f172a;
  --muted:       #5f6d8c;

  /* Radius */
  --r-xs:  8px;
  --r-sm:  12px;
  --r-md:  18px;
  --r-lg:  24px;
  --r-xl:  32px;
  --r-2xl: 44px;

  /* Motion */
  --ease:    cubic-bezier(.22,1,.36,1);
  --ease-in: cubic-bezier(.4,0,1,1);

  /* Layout */
  --container: min(1200px, 94vw);
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  touch-action: manipulation;
  -ms-touch-action: manipulation;
}

body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--white);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  line-height: 1.65;
  overflow-x: hidden;
}

h1,h2,h3,h4,h5 {
  font-family: 'Clash Display', 'Inter', system-ui, sans-serif;
  margin-top: 0;
  letter-spacing: -.015em;
}

p { margin: 0; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; }
ul { list-style: none; padding: 0; margin: 0; }

.container { width: var(--container); margin-inline: auto; }
main { display: flex; flex-direction: column; gap: 0; }

/* The hero section itself fills the viewport, so body doesn't need padding-top */
body { padding-top: 0; }

/* ── TYPOGRAPHY SCALE ────────────────────────────────────── */
.section-title {
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.1;
  color: var(--text);
  margin-bottom: 18px;
  font-weight: 600;
}
.section-title.centered { text-align: center; }

.section-sub {
  font-size: 1.05rem;
  color: var(--muted);
  max-width: 600px;
  line-height: 1.7;
}
.section-sub.centered { text-align: center; margin-inline: auto; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: .8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--red);
  margin-bottom: 16px;
}
.eyebrow.light { color: rgba(235,65,53,.8); }

.br-lg { display: none; }
@media (min-width: 900px) { .br-lg { display: block; } }

/* ── BUTTONS ─────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: var(--r-sm);
  border: 1px solid transparent;
  font-weight: 600;
  font-size: .95rem;
  padding: 11px 22px;
  cursor: pointer;
  transition: transform .18s var(--ease), box-shadow .18s var(--ease),
              background .18s, border-color .18s, color .18s;
  white-space: nowrap;
}
.btn.sm { padding: 8px 16px; font-size: .875rem; }
.btn.lg { padding: 14px 28px; font-size: 1rem; }
.btn.xl { padding: 16px 34px; font-size: 1.05rem; }
.btn.full-width { width: 100%; justify-content: center; }

/* Primary (red) */
.btn.primary {
  background: var(--red);
  color: #fff;
  box-shadow: 0 16px 30px -12px var(--red-glow);
}
.btn.primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 22px 38px -10px var(--red-glow);
}
.btn.primary:active { transform: translateY(0); }

/* Ghost (light red tint) */
.btn.ghost {
  background: var(--red-soft);
  color: var(--red);
  border-color: var(--red-border);
}
.btn.ghost:hover { background: rgba(235,65,53,.16); }

/* Hero ghost (dark bg) */
.btn.hero-ghost {
  background: rgba(255,255,255,.08);
  color: rgba(255,255,255,.88);
  border-color: rgba(255,255,255,.14);
}
.btn.hero-ghost:hover {
  background: rgba(255,255,255,.14);
  border-color: rgba(255,255,255,.28);
}

/* Outline */
.btn.outline {
  background: transparent;
  color: var(--red);
  border-color: var(--red-border);
}
.btn.outline:hover {
  border-color: var(--red);
  transform: translateY(-1px);
}

/* CTA section buttons */
.cta-primary-btn {
  background: #fff;
  color: var(--red);
  border-color: rgba(255,255,255,.6);
  box-shadow: 0 14px 30px -10px rgba(0,0,0,.3);
}
.cta-primary-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 38px -10px rgba(0,0,0,.4);
}
.cta-ghost-btn {
  background: transparent;
  color: rgba(255,255,255,.85);
  border-color: rgba(255,255,255,.3);
  padding: 14px 28px;
  font-size: 1rem;
  font-weight: 600;
  border-radius: var(--r-sm);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: background .18s, border-color .18s;
}
.cta-ghost-btn:hover {
  background: rgba(255,255,255,.1);
  border-color: rgba(255,255,255,.55);
}

/* ─────────────────────────────────────────────────────────────
   NAV
   ───────────────────────────────────────────────────────────── */
.topbar {
  position: fixed;
  top: 0;
  inset-inline: 0;
  z-index: 100;
  /* All color properties transition together for a smooth theme swap */
  transition:
    background .35s var(--ease),
    box-shadow  .35s var(--ease),
    border-color .35s var(--ease);
}

/* ── DARK MODE (default: over hero / dark sections) ─────── */
/* At the very top — fully transparent */
.topbar {
  background: transparent;
  border-bottom: 1px solid transparent;
}
/* Scrolled past ~30px and still over a dark section */
.topbar.scrolled {
  background: rgba(8, 8, 12, .82);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255,255,255,.06);
  box-shadow: 0 1px 0 rgba(255,255,255,.04);
}

/* ── LIGHT MODE (over white/light sections) ──────────────── */
.topbar.nav-light {
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(15, 23, 42, .07);
  box-shadow: 0 1px 16px rgba(15, 23, 42, .06);
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-block: 20px;
}

/* ── LOGO SWAP ───────────────────────────────────────────── */
.brand { display: inline-flex; align-items: center; }
.brand-logo { width: 148px; height: auto; }

/* Both logos exist in DOM; only the right one is visible */
.logo-light-bg { display: none; }
.logo-dark-bg  { display: block; }

.topbar.nav-light .logo-dark-bg  { display: none; }
.topbar.nav-light .logo-light-bg { display: block; }

/* ── NAV LINKS ───────────────────────────────────────────── */
.nav-links {
  display: flex;
  gap: 32px;
  font-size: .9rem;
  font-weight: 500;
  color: rgba(255,255,255,.6);
  transition: color .35s;
}
.nav-links a {
  position: relative;
  padding-bottom: 3px;
  transition: color .2s;
}
.nav-links a::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 1.5px;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .22s var(--ease);
}
.nav-links a:hover::after { transform: scaleX(1); }

/* Dark mode links */
.nav-links a:hover { color: #fff; }

/* Light mode links */
.topbar.nav-light .nav-links { color: rgba(15,23,42,.55); }
.topbar.nav-light .nav-links a:hover { color: var(--text); }

/* ── NAV CTA BUTTONS ─────────────────────────────────────── */
.nav-cta { display: flex; align-items: center; gap: 10px; }

/* On dark bg the ghost btn is already styled; on light bg override */
.topbar.nav-light .nav-cta .btn.ghost {
  background: var(--red-soft);
  color: var(--red);
  border-color: var(--red-border);
}
.topbar.nav-light .nav-cta .btn.ghost:hover {
  background: rgba(235,65,53,.16);
}

/* ── HAMBURGER ───────────────────────────────────────────── */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.hamburger span {
  display: block;
  width: 22px; height: 2px;
  background: rgba(255,255,255,.8);
  border-radius: 2px;
  transition: transform .22s var(--ease), opacity .22s, background .35s;
}
/* Hamburger on light bg: dark bars */
.topbar.nav-light .hamburger span { background: rgba(15,23,42,.65); }

.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile drawer */
.nav-drawer {
  display: none;
  flex-direction: column;
  gap: 24px;
  padding: 0 24px;
  background: var(--dark-2);
  border-top: 1px solid var(--dark-border);
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height .3s var(--ease), opacity .2s var(--ease), padding .3s var(--ease);
}
.nav-drawer.open {
  max-height: 600px;
  opacity: 1;
  padding: 24px;
}
.drawer-nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.drawer-nav a {
  display: block;
  padding: 12px 0;
  color: rgba(255,255,255,.75);
  font-size: 1.1rem;
  font-weight: 500;
  border-bottom: 1px solid var(--dark-border);
  transition: color .18s;
}
.drawer-nav a:last-child { border-bottom: none; }
.drawer-nav a:hover { color: #fff; }
.drawer-cta { display: flex; flex-direction: column; gap: 10px; }

@media (max-width: 860px) {
  .nav-links, .nav-cta { display: none; }
  .hamburger { display: flex; }
  .nav-drawer { display: flex; }
}


/* ─────────────────────────────────────────────────────────────
   HERO
   ───────────────────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--dark);
  padding-block: 120px 60px;
}

/* Background */
.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.hero-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  animation: blob-drift 14s ease-in-out infinite alternate;
}
.hero-blob-1 {
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(235,65,53,.18) 0%, transparent 70%);
  top: -150px; left: -100px;
  animation-delay: 0s;
}
.hero-blob-2 {
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(235,65,53,.10) 0%, transparent 70%);
  bottom: -100px; right: -80px;
  animation-delay: -7s;
}

@keyframes blob-drift {
  0%   { transform: translate(0, 0) scale(1); }
  40%  { transform: translate(40px, -30px) scale(1.06); }
  100% { transform: translate(-20px, 30px) scale(.94); }
}

.hero-grid-overlay {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 50%, black 30%, transparent 100%);
}

/* Hero copy */
.hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 820px;
  gap: 0;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(235,65,53,.12);
  border: 1px solid rgba(235,65,53,.22);
  color: rgba(255,255,255,.75);
  font-size: .78rem;
  font-weight: 500;
  padding: 6px 14px;
  border-radius: 100px;
  margin-bottom: 28px;
  letter-spacing: .04em;
}
.badge-pulse {
  width: 7px; height: 7px;
  background: var(--red);
  border-radius: 50%;
  animation: pulse-ring 2.2s ease-in-out infinite;
}
@keyframes pulse-ring {
  0%,100% { box-shadow: 0 0 0 0 rgba(235,65,53,.6); }
  50%      { box-shadow: 0 0 0 5px rgba(235,65,53,0); }
}

.hero-title {
  font-size: clamp(2.6rem, 6vw, 5rem);
  line-height: 1.04;
  font-weight: 700;
  color: #fff;
  margin-bottom: 22px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.hero-title em {
  font-style: normal;
  background: linear-gradient(135deg, #EB4135 20%, #ff6b5e 80%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-sub {
  font-size: 1.1rem;
  color: rgba(255,255,255,.55);
  max-width: 560px;
  line-height: 1.7;
  margin-bottom: 36px;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 20px;
}

.hero-disclaimer {
  font-size: .82rem;
  color: rgba(255,255,255,.3);
  letter-spacing: .02em;
}

/* Floating KPI cards */
.hero-floats {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
}

.kpi-card {
  position: absolute;
  background: rgba(255,255,255,.04);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: var(--r-md);
  padding: 16px 18px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  pointer-events: none;
  animation: float-idle 6s ease-in-out infinite;
}
.kpi-card .kpi-icon { font-size: 1.4rem; line-height: 1; }
.kpi-label { font-size: .72rem; color: rgba(255,255,255,.45); margin-bottom: 4px; text-transform: uppercase; letter-spacing: .06em; }
.kpi-value { font-size: .95rem; font-weight: 600; color: #fff; margin-bottom: 4px; }
.kpi-delta { font-size: .72rem; font-weight: 600; }
.kpi-delta.up { color: #4ade80; }
.kpi-delta.warn { color: #fbbf24; }

.kpi-1 { left: 2%; top: 25%; animation-delay: 0s; }
.kpi-2 { right: 2%; top: 32%; animation-delay: -2s; }
.kpi-3 { left: 5%; bottom: 18%; animation-delay: -4s; }

@keyframes float-idle {
  0%,100% { transform: translateY(0); }
  50%      { transform: translateY(-10px); }
}

@media (max-width: 1100px) {
  .hero-floats { display: none; }
}

/* Scroll cue */
.scroll-cue {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255,255,255,.25);
  animation: bounce-down 2.4s ease-in-out infinite;
  z-index: 2;
  transition: color .2s;
}
.scroll-cue:hover { color: rgba(255,255,255,.5); }
@keyframes bounce-down {
  0%,100% { transform: translateX(-50%) translateY(0); }
  50%      { transform: translateX(-50%) translateY(8px); }
}

/* Reveal animations */
[data-animate] {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}
[data-animate].visible {
  opacity: 1;
  transform: none;
}
[data-delay="0.1"] { transition-delay: .1s; }
[data-delay="0.25"] { transition-delay: .25s; }
[data-delay="0.4"] { transition-delay: .4s; }
[data-delay="0.5"] { transition-delay: .5s; }
[data-delay="0.7"] { transition-delay: .7s; }
[data-delay="0.9"] { transition-delay: .9s; }
[data-delay="1.1"] { transition-delay: 1.1s; }

[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .65s var(--ease), transform .65s var(--ease);
}
[data-reveal].revealed {
  opacity: 1;
  transform: none;
}


/* ─────────────────────────────────────────────────────────────
   MARQUEE
   ───────────────────────────────────────────────────────────── */
.marquee-band {
  background: var(--dark-2);
  border-block: 1px solid var(--dark-border);
  padding-block: 14px;
  overflow: hidden;
  white-space: nowrap;
}
.marquee-track {
  display: inline-flex;
  gap: 18px;
  animation: marquee-scroll 30s linear infinite;
  font-size: .85rem;
  font-weight: 500;
  color: rgba(255,255,255,.38);
  letter-spacing: .04em;
}
.marquee-track span { flex-shrink: 0; }
.marquee-track .sep { color: var(--red); opacity: .5; }

@keyframes marquee-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}


/* ─────────────────────────────────────────────────────────────
   SECTIONS — SHARED
   ───────────────────────────────────────────────────────────── */
.section {
  padding-block: 120px;
}

/* ─────────────────────────────────────────────────────────────
   PROBLEM / PAIN POINTS
   ───────────────────────────────────────────────────────────── */
.pain-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 56px;
}

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

.pain-card {
  background: var(--white);
  border: 1px solid var(--light-border);
  border-radius: var(--r-lg);
  padding: 28px;
  box-shadow: 0 4px 20px rgba(15,23,42,.04);
  transition: box-shadow .22s, transform .22s;
}
.pain-card:hover {
  box-shadow: 0 12px 32px rgba(15,23,42,.09);
  transform: translateY(-3px);
}
.pain-icon { font-size: 2rem; margin-bottom: 14px; }
.pain-card h3 {
  font-size: 1.1rem;
  margin-bottom: 10px;
  color: var(--text);
}
.pain-card p {
  font-size: .92rem;
  color: var(--muted);
  line-height: 1.6;
}


/* ─────────────────────────────────────────────────────────────
   PRODUCT / PILLARS
   ───────────────────────────────────────────────────────────── */
.pillars-section { padding-block: 120px 0; }

.pillars-showcase {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: flex-start;
  margin-top: 80px;
  width: var(--container);
  margin-inline: auto;
}

/* Sticky left panel */
.pillar-sticky-wrap {
  position: sticky;
  top: 100px;
  height: fit-content;
}

.pillar-sticky {
  background: var(--dark-2);
  border: 1px solid var(--dark-border);
  border-radius: var(--r-xl);
  overflow: hidden;
  box-shadow: 0 40px 80px -30px rgba(0,0,0,.6);
}

.pillar-mockup {
  position: relative;
  min-height: 420px;
}

.pmock {
  position: absolute;
  inset: 0;
  display: none;
  flex-direction: column;
}
.pmock.active { display: flex; }

/* Mockup chrome */
.pmock-header {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 12px 16px;
  background: var(--dark-3);
  border-bottom: 1px solid var(--dark-border);
  font-size: .78rem;
  color: rgba(255,255,255,.3);
}
.pmock-url { flex: 1; text-align: center; }
.dot { width: 10px; height: 10px; border-radius: 50%; }
.dot-r { background: #ff5f56; }
.dot-y { background: #ffbd2e; }
.dot-g { background: #27c93f; }

/* Dashboard mockup */
.pmock-body {
  flex: 1;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.pmock-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.pmock-stat {
  background: var(--dark-4);
  border-radius: var(--r-md);
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.pmock-stat span { font-size: .7rem; color: var(--dark-muted); }
.pmock-stat strong { font-size: 1.2rem; font-weight: 700; color: #fff; }
.pmock-stat em { font-style: normal; font-size: .7rem; font-weight: 600; }
.pmock-stat em.up { color: #4ade80; }
.pmock-stat em.down { color: #f87171; }

.pmock-chart {
  flex: 1;
  background: var(--dark-4);
  border-radius: var(--r-md);
  padding: 16px;
  display: flex;
  align-items: flex-end;
  gap: 8px;
  min-height: 160px;
}
.pbar {
  flex: 1;
  background: rgba(235,65,53,.2);
  height: var(--h);
  border-radius: 6px 6px 0 0;
  position: relative;
  transition: height .6s var(--ease);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  padding-bottom: 8px;
}
.pbar.active { background: var(--red); }
.pbar span { font-size: .65rem; color: rgba(255,255,255,.4); position: absolute; bottom: -20px; }

/* Shop mockup */
.pmock-shop {
  padding: 20px;
  gap: 16px;
}
.shop-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--dark-border);
}
.shop-logo { font-size: 2rem; }
.shop-name { font-size: 1rem; font-weight: 600; color: #fff; }
.shop-open { font-size: .75rem; color: #4ade80; }
.shop-items { display: flex; flex-direction: column; gap: 2px; flex: 1; }
.shop-item {
  display: flex;
  align-items: center;
  padding: 12px 14px;
  background: var(--dark-4);
  border-radius: var(--r-sm);
  gap: 12px;
  font-size: .88rem;
  color: rgba(255,255,255,.8);
}
.shop-item span:first-child { flex: 1; }
.shop-price { color: var(--red); font-weight: 600; }
.shop-add {
  width: 26px; height: 26px;
  background: var(--red-soft);
  border: 1px solid var(--red-border);
  color: var(--red);
  border-radius: 6px;
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}
.shop-cta-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--dark-4);
  border-radius: var(--r-sm);
  padding: 12px 14px;
  font-size: .82rem;
  color: rgba(255,255,255,.5);
}
.shop-checkout {
  background: var(--red);
  color: #fff;
  border: none;
  border-radius: var(--r-xs);
  padding: 8px 14px;
  font-size: .82rem;
  font-weight: 600;
  cursor: pointer;
}

/* POS mockup */
.pmock-pos {
  padding: 20px;
  gap: 16px;
}
.pos-items { display: flex; flex-direction: column; gap: 6px; flex: 1; }
.pos-item {
  padding: 13px 16px;
  background: var(--dark-4);
  border-radius: var(--r-sm);
  font-size: .9rem;
  color: rgba(255,255,255,.65);
  border: 1px solid transparent;
}
.pos-item.pos-active {
  background: var(--red-soft);
  border-color: var(--red-border);
  color: #fff;
}
.pos-total {
  display: flex;
  justify-content: space-between;
  padding: 14px 16px;
  background: var(--dark-4);
  border-radius: var(--r-sm);
  font-size: .9rem;
  color: rgba(255,255,255,.5);
}
.pos-total strong { font-size: 1.2rem; color: #fff; }
.pos-pay {
  background: var(--red);
  color: #fff;
  border: none;
  border-radius: var(--r-sm);
  padding: 14px;
  font-size: .95rem;
  font-weight: 600;
  width: 100%;
  cursor: pointer;
}

/* Pillars list (right) */
.pillars-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.pillar-item {
  padding: 40px 0;
  border-bottom: 1px solid var(--light-border);
  cursor: default;
  transition: opacity .3s;
}
.pillar-item:first-child { padding-top: 0; }
.pillar-item:last-child { border-bottom: none; }
.pillar-item:not(.active) { opacity: .45; }
.pillar-item:hover { opacity: .8; }
.pillar-item.active { opacity: 1; }

.pillar-num {
  font-size: .75rem;
  font-weight: 700;
  color: var(--red);
  letter-spacing: .12em;
  margin-bottom: 10px;
}
.pillar-item h3 {
  font-size: 1.6rem;
  margin-bottom: 12px;
  color: var(--text);
}
.pillar-item p {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 20px;
}
.pillar-feats {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.pillar-feats li {
  font-size: .9rem;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 10px;
}
.pillar-feats li::before {
  content: '';
  width: 16px;
  height: 16px;
  background: var(--red-soft);
  border: 1.5px solid var(--red);
  border-radius: 50%;
  flex-shrink: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='10' height='8' viewBox='0 0 10 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 4l2.5 2.5L9 1' stroke='%23EB4135' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
}

/* Responsive: stack on mobile */
@media (max-width: 900px) {
  .pillars-showcase {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .pillar-sticky-wrap { position: relative; top: 0; }
  .pillar-item { opacity: 1 !important; }
}


/* ─────────────────────────────────────────────────────────────
   VIDEO / DEMO
   ───────────────────────────────────────────────────────────── */
.demo-section { background: var(--light); }

.browser-wrap {
  width: var(--container);
  margin-inline: auto;
  margin-top: 56px;
  border-radius: var(--r-xl);
  overflow: hidden;
  box-shadow:
    0 0 0 1px rgba(15,23,42,.07),
    0 60px 120px -30px rgba(15,23,42,.18);
}

.browser-chrome {
  background: #e5e7eb;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid rgba(0,0,0,.06);
}
.browser-dots {
  display: flex;
  gap: 6px;
}
.browser-dots span {
  width: 12px; height: 12px;
  border-radius: 50%;
  background: #d1d5db;
}
.browser-dots span:nth-child(1) { background: #ff5f56; }
.browser-dots span:nth-child(2) { background: #ffbd2e; }
.browser-dots span:nth-child(3) { background: #27c93f; }
.browser-url-bar {
  flex: 1;
  background: #fff;
  border-radius: 8px;
  padding: 5px 12px;
  font-size: .78rem;
  color: #6b7280;
  text-align: center;
  border: 1px solid rgba(0,0,0,.06);
}
.browser-actions { color: #9ca3af; font-size: 1.1rem; }

.video-container {
  position: relative;
  aspect-ratio: 16/9;
  background: var(--dark);
  overflow: hidden;
}

/* Video poster (pre-click) */
.video-poster {
  position: absolute;
  inset: 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.poster-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #0d0d10 0%, #1a1a24 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.poster-glow {
  position: absolute;
  width: 400px; height: 400px;
  background: radial-gradient(circle, var(--red-glow) 0%, transparent 70%);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

/* Animated dashboard inside poster */
.poster-dashboard {
  width: 90%;
  max-width: 700px;
  background: var(--dark-3);
  border: 1px solid var(--dark-border);
  border-radius: var(--r-lg);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  opacity: .6;
}
.pd-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.pd-metric {
  background: var(--dark-4);
  border-radius: var(--r-sm);
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.pd-metric span { font-size: .7rem; color: var(--dark-muted); }
.pd-metric strong { font-size: 1.15rem; font-weight: 700; color: #fff; }
.pd-metric small { font-size: .7rem; font-weight: 600; }
.pd-metric small.up { color: #4ade80; }
.pd-metric small.warn { color: #fbbf24; }
.pd-chart {
  height: 80px;
  display: flex;
  align-items: flex-end;
  gap: 8px;
}
.pd-bar {
  flex: 1;
  height: var(--h);
  background: rgba(235,65,53,.25);
  border-radius: 4px 4px 0 0;
}
.pd-bar.active { background: var(--red); }

/* Play overlay */
.play-overlay {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  color: #fff;
}
.play-ring {
  width: 72px; height: 72px;
  background: rgba(235,65,53,.9);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 0 12px rgba(235,65,53,.2);
  transition: transform .22s var(--ease), box-shadow .22s;
}
.video-poster:hover .play-ring {
  transform: scale(1.1);
  box-shadow: 0 0 0 18px rgba(235,65,53,.15);
}
.play-overlay span { font-size: .9rem; color: rgba(255,255,255,.65); }

/* Video iframe */
.video-frame {
  position: absolute;
  inset: 0;
}
.video-frame iframe {
  width: 100%;
  height: 100%;
  border: none;
}


/* ─────────────────────────────────────────────────────────────
   ANALYTICS (dark section)
   ───────────────────────────────────────────────────────────── */
.analytics-section {
  background: var(--dark);
  padding-block: 120px;
}

.analytics-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.analytics-copy h2 {
  font-size: clamp(2rem, 3.5vw, 3rem);
  color: #fff;
  margin-bottom: 16px;
}
.analytics-copy p {
  color: var(--dark-muted);
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 28px;
}

.check-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 36px;
}
.check-list li {
  font-size: .93rem;
  color: rgba(255,255,255,.7);
  display: flex;
  align-items: center;
  gap: 10px;
}
.check-list li::before {
  content: '✓';
  color: var(--red);
  font-weight: 700;
  font-size: .85rem;
  width: 20px;
  height: 20px;
  background: var(--red-soft);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* Analytics panel widget */
.analytics-panel {
  background: var(--dark-3);
  border: 1px solid var(--dark-border);
  border-radius: var(--r-xl);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  box-shadow: 0 40px 80px -30px rgba(0,0,0,.5);
}

.ap-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.ap-title {
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--dark-muted);
  font-weight: 600;
}
.ap-live {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: .75rem;
  color: #4ade80;
  font-weight: 500;
}
.live-dot {
  width: 7px; height: 7px;
  background: #4ade80;
  border-radius: 50%;
  animation: pulse-ring 2s infinite;
}

.ap-revenue { display: flex; flex-direction: column; gap: 4px; }
.ap-rev-label { font-size: .8rem; color: var(--dark-muted); }
.ap-rev-val {
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--red);
  letter-spacing: -.02em;
}
.ap-rev-delta { font-size: .8rem; color: #4ade80; font-weight: 600; }

.ap-label { font-size: .75rem; color: var(--dark-muted); text-transform: uppercase; letter-spacing: .1em; }

.ap-bars { display: flex; flex-direction: column; gap: 12px; }
.ap-bar-row {
  display: grid;
  grid-template-columns: 72px 1fr 36px;
  align-items: center;
  gap: 12px;
}
.ap-branch { font-size: .82rem; color: rgba(255,255,255,.6); }
.ap-track {
  height: 8px;
  background: var(--dark-4);
  border-radius: 100px;
  overflow: hidden;
}
.ap-fill {
  height: 100%;
  background: var(--red);
  border-radius: 100px;
  width: 0;
  transition: width 1.2s var(--ease);
}
.ap-fill.animated { width: var(--t); }
.ap-pct { font-size: .78rem; color: var(--dark-muted); text-align: right; }

.ap-note {
  font-size: .82rem;
  color: var(--dark-muted);
  padding-top: 12px;
  border-top: 1px solid var(--dark-border);
}

@media (max-width: 860px) {
  .analytics-grid { grid-template-columns: 1fr; gap: 48px; }
}


/* ─────────────────────────────────────────────────────────────
   PRICING
   ───────────────────────────────────────────────────────────── */
.pricing-section { background: var(--light); }

.billing-toggle {
  display: flex;
  gap: 4px;
  background: var(--white);
  border: 1px solid var(--light-border);
  border-radius: var(--r-sm);
  padding: 4px;
  width: fit-content;
  margin: 32px auto 56px;
  box-shadow: 0 2px 8px rgba(15,23,42,.05);
}
.btoggle {
  padding: 9px 20px;
  border-radius: 9px;
  border: none;
  background: none;
  font-size: .88rem;
  font-weight: 500;
  color: var(--muted);
  cursor: pointer;
  transition: background .2s, color .2s, box-shadow .2s;
  display: flex;
  align-items: center;
  gap: 8px;
}
.btoggle.active {
  background: var(--red);
  color: #fff;
  box-shadow: 0 4px 12px -4px var(--red-glow);
}
.save-chip {
  background: rgba(255,255,255,.25);
  color: rgba(255,255,255,.9);
  padding: 2px 8px;
  border-radius: 100px;
  font-size: .72rem;
  font-weight: 600;
}
.btoggle:not(.active) .save-chip {
  background: var(--red-soft);
  color: var(--red);
}

/* Pricing grid */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  align-items: stretch;
}

/* Skeleton */
.pricing-skeleton {
  background: var(--white);
  border: 1px solid var(--light-border);
  border-radius: var(--r-xl);
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  animation: skeleton-pulse 1.6s ease-in-out infinite;
}
.featured-sk {
  border-color: var(--red-border);
  background: #fff8f7;
}
@keyframes skeleton-pulse {
  0%,100% { opacity: 1; }
  50%      { opacity: .5; }
}
.sk-h { height: 24px; background: #e9ecef; border-radius: 8px; width: 60%; }
.sk-l { height: 16px; background: #e9ecef; border-radius: 6px; }
.sk-l.short { width: 70%; }

/* Actual pricing card */
.pricing-card {
  background: var(--white);
  border: 1px solid var(--light-border);
  border-radius: var(--r-xl);
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  box-shadow: 0 4px 20px rgba(15,23,42,.04);
  transition: box-shadow .22s, transform .22s;
  animation: card-appear .4s var(--ease) both;
}
.pricing-card:hover {
  box-shadow: 0 16px 40px rgba(15,23,42,.1);
  transform: translateY(-4px);
}
.pricing-card.featured {
  background: #fff8f7;
  border-color: var(--red-border);
  position: relative;
}

@keyframes card-appear {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: none; }
}

.pc-top { display: flex; align-items: center; justify-content: space-between; }
.pc-name { font-size: 1.1rem; font-weight: 700; color: var(--text); }
.pc-badge {
  background: var(--red);
  color: #fff;
  font-size: .7rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 100px;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.pc-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 4px;
}
.pc-trial-badge {
  background: var(--red-soft);
  color: var(--red-dark);
  font-size: .68rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 100px;
  border: 1px solid var(--red-border);
  letter-spacing: .02em;
}
.pc-discount-badge {
  background: #fef9c3;
  color: #854d0e;
  font-size: .68rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 100px;
  border: 1px solid #fde68a;
}

.pc-price {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 4px;
}
.pc-amount {
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--red);
  letter-spacing: -.02em;
}
.pc-period { font-size: .88rem; color: var(--muted); }

.pc-tagline { font-size: .88rem; color: var(--muted); line-height: 1.5; }

.pc-features {
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}
.pc-features li {
  font-size: .88rem;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 10px;
}
.pc-features li::before {
  content: '✓';
  color: var(--red);
  font-weight: 700;
  font-size: .8rem;
  width: 18px;
  height: 18px;
  background: var(--red-soft);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.pricing-footer-note {
  text-align: center;
  margin-top: 40px;
  color: var(--muted);
  font-size: .9rem;
}
.pricing-footer-note a { color: var(--red); font-weight: 500; }
.pricing-footer-note a:hover { text-decoration: underline; }


/* ─────────────────────────────────────────────────────────────
   TESTIMONIALS
   ───────────────────────────────────────────────────────────── */
.testi-section { background: var(--white); }

.testi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-top: 56px;
}

.testi-card {
  background: var(--light);
  border: 1px solid var(--light-border);
  border-radius: var(--r-xl);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: box-shadow .22s, transform .22s;
}
.testi-card:hover {
  box-shadow: 0 12px 32px rgba(15,23,42,.08);
  transform: translateY(-3px);
}

.testi-stars { color: #f59e0b; font-size: 1rem; letter-spacing: 2px; }
.testi-card p {
  font-size: .93rem;
  color: var(--muted);
  line-height: 1.7;
  flex: 1;
}

.testi-author {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 16px;
  border-top: 1px solid var(--light-border);
}
.testi-av {
  width: 40px; height: 40px;
  background: var(--red);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: .78rem;
  font-weight: 700;
  flex-shrink: 0;
}
.testi-author strong { display: block; font-size: .9rem; color: var(--text); }
.testi-author span { font-size: .78rem; color: var(--muted); }


/* ─────────────────────────────────────────────────────────────
   CTA BANNER
   ───────────────────────────────────────────────────────────── */
.cta-section {
  background: var(--red);
  padding-block: 120px;
}

.cta-inner {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.cta-eyebrow {
  font-size: .75rem;
  text-transform: uppercase;
  letter-spacing: .14em;
  color: rgba(255,255,255,.6);
  font-weight: 600;
}

.cta-inner h2 {
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  color: #fff;
  max-width: 680px;
  line-height: 1.1;
  margin-bottom: 0;
}
.cta-inner p {
  color: rgba(255,255,255,.7);
  font-size: 1.05rem;
  max-width: 540px;
  line-height: 1.7;
}

.cta-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 8px;
}

.cta-legal {
  font-size: .8rem;
  color: rgba(255,255,255,.4);
}


/* ─────────────────────────────────────────────────────────────
   FOOTER
   ───────────────────────────────────────────────────────────── */
.footer {
  background: var(--dark);
  color: rgba(255,255,255,.5);
  padding-top: 80px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 60px;
  border-bottom: 1px solid var(--dark-border);
}

.footer-brand p {
  font-size: .88rem;
  color: rgba(255,255,255,.4);
  margin-top: 14px;
  max-width: 260px;
  line-height: 1.65;
}
.footer-logo { width: 130px; }

.footer-socials {
  display: flex;
  gap: 12px;
  margin-top: 20px;
}
.footer-socials a {
  width: 36px; height: 36px;
  background: var(--dark-3);
  border: 1px solid var(--dark-border);
  border-radius: var(--r-xs);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,.5);
  transition: background .2s, color .2s, border-color .2s;
}
.footer-socials a:hover {
  background: var(--red-soft);
  border-color: var(--red-border);
  color: var(--red);
}

.footer-col h4 {
  font-size: .8rem;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: rgba(255,255,255,.5);
  font-weight: 600;
  margin-bottom: 18px;
  font-family: 'Inter', sans-serif;
}
.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.footer-col ul li a {
  font-size: .88rem;
  color: rgba(255,255,255,.38);
  transition: color .18s;
}
.footer-col ul li a:hover { color: rgba(255,255,255,.85); }

.footer-bottom {
  padding-block: 18px;
}
.footer-bottom-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  font-size: .82rem;
  color: rgba(255,255,255,.25);
}
.footer-bottom-inner a {
  color: rgba(255,255,255,.35);
  transition: color .18s;
}
.footer-bottom-inner a:hover { color: rgba(255,255,255,.7); }

@media (max-width: 860px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom-inner { flex-direction: column; align-items: flex-start; }
}


/* ─────────────────────────────────────────────────────────────
   SECTIONS — MISC LAYOUT
   ───────────────────────────────────────────────────────────── */
.section > .container {
  display: flex;
  flex-direction: column;
}

/* Grids always take full container width */
.pain-grid,
.testi-grid,
.pricing-grid,
.billing-toggle,
.pillars-showcase,
.pillar-sticky-wrap,
.pillars-list {
  align-self: stretch;
}

/* Center eyebrow, centered headings, centered subs */
.section > .container .eyebrow { align-self: flex-start; }
.section > .container .eyebrow + .section-title.centered,
.section > .container .section-title.centered { align-self: center; }
.section > .container .section-sub.centered { align-self: center; }
.section > .container .section-title:not(.centered) { align-self: flex-start; }
.section > .container .billing-toggle { align-self: center; }
.section > .container .pricing-footer-note { align-self: stretch; }


/* ─────────────────────────────────────────────────────────────
   REDUCED MOTION
   ───────────────────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}


/* ─────────────────────────────────────────────────────────────
   MOBILE OPTIMIZATIONS
   ───────────────────────────────────────────────────────────── */
@media (max-width: 860px) {
  /* Tighter section spacing on mobile */
  .section { padding-block: 72px; }
  .pillars-section { padding-block: 72px 0; }

  /* Minimum 44px tap targets for all interactive elements */
  .btn { min-height: 44px; }
  .drawer-nav a { min-height: 44px; display: flex; align-items: center; }

  /* Hero subtitle: slightly smaller for mobile readability */
  .hero-sub { font-size: 1rem; }
}

@media (max-width: 560px) {
  .section { padding-block: 56px; }
  .pillars-section { padding-block: 56px 0; }
  .hero-sub { font-size: 0.9375rem; line-height: 1.6; }
  .hero-actions { gap: 10px; }
  .hero-actions .btn { width: 100%; justify-content: center; }
}
