/* ═══════════════════════════════════════════════════
   CutBill — marketing.css
   Landing page only (index.php). Loaded after base.css.
   All marketing-specific section styles.
═══════════════════════════════════════════════════ */


/* ─────────────────────────────────────────
   HERO
───────────────────────────────────────── */
.hero {
  padding: 80px 48px 100px;
  text-align: center;
  position: relative;
}

.hero-eyebrow { margin-bottom: 28px; }

.hero h1 {
  font-family: var(--font);
  font-size: clamp(48px, 6.5vw, 86px);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.0;
  color: var(--ink);
  margin-bottom: 24px;
  max-width: 820px;
  margin-left: auto;
  margin-right: auto;
}

.hero h1 .gradient-text {
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-sub {
  font-size: 19px;
  font-weight: 400;
  color: var(--muted);
  line-height: 1.7;
  max-width: 540px;
  margin: 0 auto 40px;
}

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

.hero-trust {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 13px;
  color: var(--muted2);
  font-family: var(--font);
  font-weight: 500;
}
.trust-dot { width: 4px; height: 4px; background: var(--muted2); border-radius: 50%; }

/* Hero card float */
.hero-card-float {
  position: relative;
  max-width: 720px;
  margin: 64px auto 120px;
}

.hero-main-card {
  position: relative;
  z-index: 3;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(24px);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 32px;
  box-shadow: var(--shadow-xl),
              inset 0 1px 0 rgba(255,255,255,0.9);
}

.hero-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
}

.hch-left { display: flex; flex-direction: column; gap: 4px; }

.hch-label {
  font-family: var(--font);
  font-size: 11px;
  font-weight: 600;
  color: var(--muted2);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.hch-value {
  font-family: var(--mono);
  font-size: 40px;
  font-weight: 700;
  letter-spacing: -0.04em;
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hch-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background: rgba(0,194,168,0.1);
  border: 1px solid rgba(0,194,168,0.2);
  border-radius: var(--radius-pill);
  font-family: var(--font);
  font-size: 13px;
  font-weight: 700;
  color: #00a899;
}

.bill-rows { display: flex; flex-direction: column; gap: 10px; }

.bill-row-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  background: var(--off-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  transition: transform 0.2s, box-shadow 0.2s;
}
.bill-row-item:hover { transform: translateY(-1px); box-shadow: var(--shadow-md); }

.bill-row-icon {
  width: 40px; height: 40px;
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  font-weight: 800;
  font-size: 13px;
  font-family: var(--font);
  flex-shrink: 0;
}

.bill-row-info { flex: 1; }
.bill-row-name { font-family: var(--font); font-size: 14px; font-weight: 700; color: var(--ink); }
.bill-row-type { font-size: 12px; color: var(--muted2); margin-top: 1px; }

.bill-row-nums { text-align: right; }
.bill-row-was { font-family: var(--mono); font-size: 12px; color: var(--muted2); text-decoration: line-through; }
.bill-row-saved {
  font-family: var(--mono);
  font-size: 14px;
  font-weight: 700;
  color: #00a899;
}

/* Floating mini-cards — start hidden BEHIND the panel, slide out on trigger */
.float-card {
  position: absolute;
  z-index: 0;                /* behind main card (z-index:3) */
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 16px 22px;
  min-width: 150px;
  bottom: 80px;              /* tucked up inside the panel body */
  opacity: 0;
  transition: transform 0.85s cubic-bezier(0.22, 1, 0.36, 1),
              opacity 0.6s ease;
}

/* Hidden resting position: both centered under the panel, pulled up & scaled down */
.float-card-1 {
  left: 50%;
  transform: translate(-50%, 0) scale(0.85);
}
.float-card-2 {
  right: 50%;
  transform: translate(50%, 0) scale(0.85);
}

/* Revealed: slide out diagonally to opposite lower corners, then float */
.float-card.revealed.float-card-1 {
  opacity: 1;
  animation: floatIdleL 6s ease-in-out 0.85s infinite alternate;
  transform: translate(calc(-50% - 230px), 150px) rotate(-3deg);
}
.float-card.revealed.float-card-2 {
  opacity: 1;
  animation: floatIdleR 5.5s ease-in-out 0.85s infinite alternate;
  transform: translate(calc(50% + 230px), 168px) rotate(3deg);
}

/* Idle float keyframes pick up from the revealed resting transform */
@keyframes floatIdleL {
  0%   { transform: translate(calc(-50% - 230px), 150px) rotate(-3deg); }
  100% { transform: translate(calc(-50% - 230px), 158px) rotate(-1.5deg); }
}
@keyframes floatIdleR {
  0%   { transform: translate(calc(50% + 230px), 168px) rotate(3deg); }
  100% { transform: translate(calc(50% + 230px), 178px) rotate(1.5deg); }
}

.fc-label { font-size: 11px; color: var(--muted2); font-family: var(--font); font-weight: 500; margin-bottom: 2px; }
.fc-value { font-family: var(--mono); font-size: 20px; font-weight: 700; letter-spacing: -0.03em; }
.fc-value.green { color: #00a899; }
.fc-value.blue { background: var(--grad-text); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }

/* ─────────────────────────────────────────
   STATS BAR
───────────────────────────────────────── */
.stats-bar {
  padding: 0 48px;
  margin-bottom: 0;
}

.stats-bar-inner {
  max-width: 1100px;
  margin: 0 auto;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  overflow: hidden;
}

.stat-item {
  padding: 28px 32px;
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.stat-item:last-child { border-right: none; }

.stat-num {
  font-family: var(--mono);
  font-size: 34px;
  font-weight: 700;
  letter-spacing: -0.04em;
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1;
}

.stat-label { font-size: 13px; color: var(--muted); font-weight: 500; margin-top: 2px; }

/* ─────────────────────────────────────────
   HOW IT WORKS
───────────────────────────────────────── */
.how-section { background: var(--off-white); }

.section-header { text-align: center; margin-bottom: 64px; }

.section-title {
  font-family: var(--font);
  font-size: clamp(34px, 4vw, 52px);
  font-weight: 800;
  letter-spacing: -0.035em;
  color: var(--ink);
  line-height: 1.1;
  margin-bottom: 16px;
}

.section-sub {
  font-size: 17px;
  color: var(--muted);
  line-height: 1.7;
  max-width: 520px;
  margin: 0 auto;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.step-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.3s, transform 0.3s;
  position: relative;
  overflow: hidden;
}
.step-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); }

.step-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--grad);
  opacity: 0;
  transition: opacity 0.3s;
}
.step-card:hover::before { opacity: 1; }

.step-num {
  font-family: var(--font);
  font-size: 11px;
  font-weight: 700;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 16px;
  background: var(--accent-light);
  display: inline-block;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
}

.step-icon {
  width: 52px; height: 52px;
  border-radius: var(--radius-md);
  background: var(--grad-soft);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
}

.step-title {
  font-family: var(--font);
  font-size: 17px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}

.step-desc { font-size: 14px; color: var(--muted); line-height: 1.65; }

/* ─────────────────────────────────────────
   SIMULATOR
───────────────────────────────────────── */
.simulator-section { background: var(--white); }

.sim-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}

.sim-left { }
.sim-heading { margin-bottom: 24px; }

.sim-card {
  background: var(--off-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 32px;
  box-shadow: var(--shadow-md);
}

.sim-input-group { display: flex; flex-direction: column; gap: 6px; margin-bottom: 20px; }

.sim-label {
  font-family: var(--font);
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.sim-select, .sim-input-text {
  background: var(--white);
  border: 1px solid var(--border2);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--ink);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  width: 100%;
  -webkit-appearance: none;
}
.sim-select:focus, .sim-input-text:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(162,151,255,0.12);
}
.sim-select { cursor: pointer; background-image: url("data:image/svg+xml,%3Csvg width='10' height='6' viewBox='0 0 10 6' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L5 5L9 1' stroke='%236e7191' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 36px; }
.sim-select option { background: #fff; }

.range-slider {
  -webkit-appearance: none;
  width: 100%;
  height: 5px;
  border-radius: var(--radius-pill);
  background: var(--surface);
  outline: none;
  cursor: pointer;
  margin-top: 8px;
  transition: background 0.2s;
}
.range-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--grad);
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(162,151,255,0.5);
  transition: transform 0.15s;
}
.range-slider::-webkit-slider-thumb:hover { transform: scale(1.15); }
.range-slider::-moz-range-thumb {
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--grad);
  cursor: pointer;
  border: none;
  box-shadow: 0 2px 8px rgba(162,151,255,0.5);
}

.sim-result {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-top: 20px;
}

.sim-result-label {
  font-family: var(--font);
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 6px;
}

.sim-result-value {
  font-family: var(--mono);
  font-size: 44px;
  font-weight: 700;
  letter-spacing: -0.04em;
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1;
  margin-bottom: 4px;
}

.sim-result-sub { font-size: 13px; color: var(--muted2); }

/* Right: visual breakdown */
.sim-right { }

.sim-visual-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 32px;
  box-shadow: var(--shadow-lg);
}

.svc-title {
  font-family: var(--font);
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.bill-compare { display: flex; flex-direction: column; gap: 14px; }

.compare-row { display: flex; flex-direction: column; gap: 6px; }

.compare-label-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.compare-name { font-family: var(--font); font-size: 13px; font-weight: 600; color: var(--ink); }

.compare-vals { display: flex; gap: 12px; align-items: center; }
.compare-was { font-family: var(--mono); font-size: 12px; color: var(--muted2); text-decoration: line-through; }
.compare-now { font-family: var(--mono); font-size: 13px; font-weight: 700; color: #00a899; }

.compare-bar-track {
  height: 8px;
  background: var(--surface);
  border-radius: var(--radius-pill);
  overflow: hidden;
  position: relative;
}

.compare-bar-was {
  position: absolute;
  top: 0; left: 0; bottom: 0;
  background: rgba(255,64,64,0.2);
  border-radius: var(--radius-pill);
}
.compare-bar-now {
  position: absolute;
  top: 0; left: 0; bottom: 0;
  background: var(--grad);
  border-radius: var(--radius-pill);
  transition: width 0.8s cubic-bezier(0.16,1,0.3,1);
}

.sim-total-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

.sim-total-label { font-family: var(--font); font-size: 14px; font-weight: 600; color: var(--muted); }
.sim-total-value { font-family: var(--mono); font-size: 22px; font-weight: 700; color: #00a899; letter-spacing: -0.03em; }

/* ─────────────────────────────────────────
   FEATURES GRID
───────────────────────────────────────── */
.features-section { background: var(--off-white); }

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.feature-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.3s, transform 0.3s;
}
.feature-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); }

.feature-icon {
  width: 52px; height: 52px;
  border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
}
.fi-blue { background: rgba(162,151,255,0.12); }
.fi-purple { background: rgba(123,110,240,0.12); }
.fi-teal { background: rgba(0,194,168,0.1); }
.fi-orange { background: rgba(255,147,43,0.12); }
.fi-pink { background: rgba(255,76,154,0.1); }
.fi-green { background: rgba(52,199,89,0.1); }

.feature-title {
  font-family: var(--font);
  font-size: 17px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.02em;
  margin-bottom: 10px;
}
.feature-desc { font-size: 14px; color: var(--muted); line-height: 1.65; }

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

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 0;
}

.price-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 36px 32px;
  box-shadow: var(--shadow-sm);
  position: relative;
  transition: box-shadow 0.3s, transform 0.3s;
}
.price-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); }

.price-card.featured {
  background: var(--ink);
  border-color: transparent;
  box-shadow: var(--shadow-xl), 0 0 0 1px rgba(255,255,255,0.06) inset;
}
.price-card.featured:hover { box-shadow: 0 32px 80px rgba(0,0,0,0.25); }

.price-popular-pill {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--grad);
  color: #fff;
  font-family: var(--font);
  font-size: 11px;
  font-weight: 700;
  padding: 5px 14px;
  border-radius: var(--radius-pill);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
  box-shadow: 0 4px 12px rgba(162,151,255,0.45);
}

.plan-name {
  font-family: var(--font);
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 20px;
}
.price-card:not(.featured) .plan-name { color: var(--muted); }
.price-card.featured .plan-name { color: rgba(255,255,255,0.5); }

.plan-price {
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin-bottom: 8px;
}

.price-dollar {
  font-family: var(--mono);
  font-size: 20px;
  font-weight: 700;
}
.price-card:not(.featured) .price-dollar { color: var(--muted); }
.price-card.featured .price-dollar { color: rgba(255,255,255,0.6); }

.price-amount {
  font-family: var(--mono);
  font-size: 52px;
  font-weight: 700;
  letter-spacing: -0.05em;
  line-height: 1;
}
.price-card:not(.featured) .price-amount { color: var(--ink); }
.price-card.featured .price-amount { color: #fff; }

.price-period {
  font-size: 14px;
  color: var(--muted);
  font-family: var(--mono);
}
.price-card.featured .price-period { color: rgba(255,255,255,0.45); }

.plan-desc { font-size: 14px; color: var(--muted); line-height: 1.6; margin-bottom: 28px; min-height: 44px; }
.price-card.featured .plan-desc { color: rgba(255,255,255,0.5); }

.plan-divider { height: 1px; background: var(--border); margin-bottom: 24px; }
.price-card.featured .plan-divider { background: rgba(255,255,255,0.1); }

.plan-features { list-style: none; display: flex; flex-direction: column; gap: 12px; margin-bottom: 32px; }

.plan-features li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
}
.price-card:not(.featured) .plan-features li { color: var(--ink2); }
.price-card.featured .plan-features li { color: rgba(255,255,255,0.8); }

.plan-features li::before {
  content: '';
  width: 16px; height: 16px;
  border-radius: 50%;
  background: rgba(0,194,168,0.15);
  border: 1.5px solid rgba(0,194,168,0.4);
  flex-shrink: 0;
  margin-top: 1px;
  background-image: url("data:image/svg+xml,%3Csvg width='8' height='6' viewBox='0 0 8 6' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 3L3 5L7 1' stroke='%2300C2A8' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
}

.plan-features li.off { color: var(--muted2) !important; }
.plan-features li.off::before {
  background: var(--surface) !important;
  border-color: var(--border2) !important;
  background-image: url("data:image/svg+xml,%3Csvg width='8' height='8' viewBox='0 0 8 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M2 2L6 6M6 2L2 6' stroke='%239395b0' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: center !important;
}

.plan-btn {
  width: 100%;
  padding: 14px;
  border-radius: var(--radius-pill);
  font-family: var(--font);
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  border: none;
  transition: opacity 0.2s, transform 0.15s, box-shadow 0.2s;
}
.plan-btn-outline {
  background: transparent;
  border: 1.5px solid var(--border2);
  color: var(--ink2);
}
.plan-btn-outline:hover { border-color: var(--accent); background: var(--accent-light); }
.plan-btn-grad {
  background: var(--grad);
  color: #fff;
  box-shadow: 0 6px 20px rgba(162,151,255,0.4);
}
.plan-btn-grad:hover { opacity: 0.88; transform: translateY(-1px); box-shadow: 0 10px 28px rgba(162,151,255,0.48); }
.plan-btn-white {
  background: rgba(255,255,255,0.12);
  color: #fff;
  border: 1.5px solid rgba(255,255,255,0.2);
  backdrop-filter: blur(8px);
}
.plan-btn-white:hover { background: rgba(255,255,255,0.2); }

.price-zero {
  font-family: var(--font);
  font-size: 13px;
  font-weight: 600;
  color: var(--muted2);
  text-align: center;
  margin-top: 14px;
}
.price-card.featured .price-zero { color: rgba(255,255,255,0.35); }

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

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.testimonial-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.3s, transform 0.3s;
}
.testimonial-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); }

.t-stars { display: flex; gap: 3px; margin-bottom: 14px; }
.star { font-size: 15px; }

.t-quote {
  font-size: 15px;
  line-height: 1.7;
  color: var(--ink2);
  margin-bottom: 20px;
}
.t-quote strong { color: var(--ink); }

.t-author { display: flex; align-items: center; gap: 12px; }

.t-avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font);
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
}

.t-name { font-family: var(--font); font-size: 14px; font-weight: 700; color: var(--ink); }
.t-saved {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 700;
  color: #00a899;
  margin-top: 1px;
}

/* ─────────────────────────────────────────
   FAQ
───────────────────────────────────────── */
.faq-section { background: var(--white); }

.faq-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 780px;
  margin: 0 auto;
}

.faq-item {
  background: var(--off-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: pointer;
  transition: box-shadow 0.2s;
}
.faq-item:hover { box-shadow: var(--shadow-md); }
.faq-item.open { box-shadow: var(--shadow-md); }

.faq-q {
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.faq-q-text {
  font-family: var(--font);
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
}

.faq-icon {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--surface);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  transition: background 0.2s, transform 0.3s;
  font-size: 18px;
  color: var(--muted);
  line-height: 1;
}
.faq-item.open .faq-icon { background: var(--accent-light); color: var(--accent); transform: rotate(45deg); }

.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.16,1,0.3,1);
}
.faq-item.open .faq-a { max-height: 300px; }

.faq-a-inner {
  padding: 0 24px 20px;
  font-size: 14px;
  color: var(--muted);
  line-height: 1.7;
}


/* ─────────────────────────────────────────
   SCROLL TICKER
───────────────────────────────────────── */
.ticker-wrap {
  overflow: hidden;
  padding: 16px 0;
  background: var(--white);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.ticker-track {
  display: flex;
  gap: 48px;
  animation: tickerMove 24s linear infinite;
  white-space: nowrap;
}

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

.ticker-item {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font);
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  flex-shrink: 0;
}

.ticker-item .saved {
  background: var(--grad-soft);
  border: 1px solid rgba(162,151,255,0.18);
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  color: var(--accent);
  font-size: 12px;
}

/* ─── RESPONSIVE ─── */
@media (max-width: 1024px) {
  .steps-grid { grid-template-columns: repeat(2, 1fr); }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .pricing-grid { grid-template-columns: 1fr; max-width: 440px; margin: 0 auto; }
  .testimonials-grid { grid-template-columns: 1fr; }
  .sim-layout { grid-template-columns: 1fr; gap: 32px; }
  .stats-bar-inner { grid-template-columns: repeat(2, 1fr); }
  nav { padding: 0 24px; }
  .nav-links { display: none; }
  .nav-right { display: none; }
  .nav-toggle { display: inline-flex; }
  section { padding: 70px 24px; }
  .hero { padding: 60px 24px 80px; }
  .cta-inner { padding: 48px 32px; }
  footer { padding: 48px 24px 32px; }
  .footer-top { flex-direction: column; }
  .float-card { display: none; }
}

@media (max-width: 640px) {
  .steps-grid { grid-template-columns: 1fr; }
  .features-grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: 38px; }
  .stats-bar-inner { grid-template-columns: 1fr 1fr; }
}


/* ─── HERO TICKER ─── */
.ticker {
  display: inline-block;
  overflow: hidden;
  vertical-align: bottom;
  position: relative;
  line-height: 1;
  padding-bottom: 0.05em;
}
.ticker-word {
  display: inline-block;
  white-space: nowrap;
  transition: transform 0.35s cubic-bezier(0.65, 0, 0.35, 1), opacity 0.35s ease;
  will-change: transform, opacity;
}
.ticker-word.ticker-out {
  transform: translateY(-110%);
  opacity: 0;
}
.ticker-word.ticker-in {
  animation: tickerInUp 0.45s cubic-bezier(0.2, 0.8, 0.2, 1);
}
@keyframes tickerInUp {
  from { transform: translateY(110%); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .ticker-word, .ticker-word.ticker-out, .ticker-word.ticker-in {
    animation: none !important;
    transition: opacity 0.2s ease !important;
    transform: none !important;
  }
}


/* ═══════════════════════════════════════════════════
   LIVE DEMO — cinematic 4-scene pipeline
   Scenes: upload → scan → negotiate → result → loop
═══════════════════════════════════════════════════ */
.live-demo {
  position: relative;
  z-index: 3;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 24px 28px 28px;
  box-shadow: var(--shadow-lg);
  max-width: 760px;
  margin: 56px auto 24px;
}

.ld-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}
.ld-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.ld-eyebrow-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-light);
}
.ld-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  background: rgba(0,194,168,0.08);
  border: 1px solid rgba(0,194,168,0.25);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  color: #00a899;
  letter-spacing: 0.04em;
}
.ld-badge-pulse {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #00a899;
  animation: ldPulse 1.4s ease-in-out infinite;
}
@keyframes ldPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.85); }
}

/* ─── Stage ─── */
.ld-stage {
  position: relative;
  height: 320px;
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, #fafafe 0%, #f3f0fa 100%);
  border: 1px solid var(--border);
  overflow: hidden;
}

.ld-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(13,13,18,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(13,13,18,0.04) 1px, transparent 1px);
  background-size: 24px 24px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 50%, #000 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 50%, #000 30%, transparent 80%);
  pointer-events: none;
}

/* ─── Bill document ─── */
.ld-bill {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 280px;
  background: #fff;
  border: 1px solid var(--border2);
  border-radius: 14px;
  padding: 16px 18px 14px;
  box-shadow: 0 18px 42px rgba(13,13,18,0.14), 0 4px 10px rgba(13,13,18,0.08);
  opacity: 0;
  transform: translate(-50%, -50%) translateY(40px) scale(0.92);
  transition: transform 0.7s cubic-bezier(0.16,1,0.3,1), opacity 0.4s ease, width 0.6s cubic-bezier(0.16,1,0.3,1), left 0.6s cubic-bezier(0.16,1,0.3,1);
  z-index: 4;
}

.ld-bill-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 10px;
  border-bottom: 1px dashed var(--border2);
  margin-bottom: 10px;
}
.ld-bill-logo {
  width: 28px; height: 28px;
  border-radius: 7px;
  background: linear-gradient(135deg, #FF5D00, #FF7A2E);
  color: #fff;
  font-family: var(--font);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  justify-content: center;
}
.ld-bill-provider {
  font-family: var(--font);
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.01em;
  line-height: 1.1;
}
.ld-bill-account {
  font-family: var(--mono);
  font-size: 9.5px;
  color: var(--muted2);
  margin-top: 2px;
  letter-spacing: 0.02em;
}

.ld-bill-rows {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.ld-bill-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4px 6px;
  font-size: 11px;
  border-radius: 5px;
  transition: background 0.4s ease, color 0.4s ease;
}
.ld-bill-row.ld-bill-total {
  border-top: 1px solid var(--border);
  margin-top: 4px;
  padding-top: 8px;
  font-weight: 700;
}
.ld-bill-label {
  color: var(--ink2);
  font-family: var(--font);
}
.ld-bill-total .ld-bill-label {
  color: var(--ink);
  font-size: 12px;
  letter-spacing: -0.01em;
}
.ld-bill-amt {
  font-family: var(--mono);
  color: var(--ink);
  font-weight: 600;
  font-size: 11px;
  transition: color 0.4s ease, text-decoration 0.4s ease;
}
.ld-bill-total .ld-bill-amt {
  font-size: 13px;
  font-weight: 700;
}

/* Row highlight as scan passes */
.ld-bill-row.is-scanned {
  background: rgba(255,93,0,0.07);
}
.ld-bill-row.is-anomaly {
  background: rgba(255,93,0,0.12);
}
.ld-bill-row.is-anomaly .ld-bill-amt {
  color: var(--accent);
}

/* SAVED stamp */
.ld-bill-stamp {
  position: absolute;
  top: 50%;
  left: 50%;
  font-family: var(--font);
  font-size: 36px;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: #00a899;
  border: 3px solid #00a899;
  padding: 6px 18px;
  border-radius: 8px;
  transform: translate(-50%, -50%) rotate(-12deg) scale(2);
  opacity: 0;
  pointer-events: none;
  text-shadow: 0 0 8px rgba(0,194,168,0.3);
}

/* ─── Scan line ─── */
.ld-scan {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 280px;
  height: 3px;
  background: linear-gradient(90deg, transparent 0%, var(--accent) 20%, var(--accent2) 50%, var(--accent) 80%, transparent 100%);
  box-shadow: 0 0 18px var(--accent), 0 0 36px rgba(255,93,0,0.5);
  opacity: 0;
  transform: translate(-50%, -50%) translateY(-90px);
  z-index: 5;
  pointer-events: none;
  border-radius: 2px;
}

/* ─── Anomaly callouts ─── */
.ld-callout {
  position: absolute;
  top: 50%;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background: #fff;
  border: 1px solid var(--accent);
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(255,93,0,0.18);
  opacity: 0;
  z-index: 5;
  pointer-events: none;
  transition: opacity 0.4s ease, transform 0.5s cubic-bezier(0.16,1,0.3,1);
}
.ld-callout-icon {
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-family: var(--font);
  font-size: 13px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.ld-callout-title {
  font-family: var(--font);
  font-size: 11.5px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.01em;
  line-height: 1.1;
}
.ld-callout-sub {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--muted);
  margin-top: 2px;
}
.ld-callout-left {
  left: 16px;
  transform: translateY(-50%) translateX(-30px);
}
.ld-callout-right {
  right: 16px;
  transform: translateY(-50%) translateX(30px);
}

/* ─── Voice call panel ─── */
.ld-call {
  position: absolute;
  top: 50%;
  right: 24px;
  width: 280px;
  padding: 14px 16px;
  background: linear-gradient(180deg, #0d0d12 0%, #1a1a26 100%);
  border-radius: 14px;
  box-shadow: 0 14px 40px rgba(13,13,18,0.4);
  opacity: 0;
  transform: translateY(-50%) translateX(40px) scale(0.9);
  z-index: 6;
  pointer-events: none;
  transition: opacity 0.4s ease, transform 0.6s cubic-bezier(0.16,1,0.3,1);
}
.ld-call-header {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 700;
  color: #FF8A3D;
  letter-spacing: 0.08em;
  margin-bottom: 10px;
}
.ld-call-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #FF5D00;
  box-shadow: 0 0 8px var(--accent);
  animation: ldPulse 1s ease-in-out infinite;
}
.ld-call-wave {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  height: 26px;
  margin-bottom: 10px;
}
.ld-call-wave span {
  display: block;
  width: 3px;
  background: linear-gradient(180deg, var(--accent2), var(--accent));
  border-radius: 2px;
  opacity: 0.85;
}
.live-demo.scene-negotiate .ld-call-wave span {
  animation: ldWave 0.7s ease-in-out infinite alternate;
}
.ld-call-wave span:nth-child(1) { animation-delay: 0s; }
.ld-call-wave span:nth-child(2) { animation-delay: 0.08s; }
.ld-call-wave span:nth-child(3) { animation-delay: 0.16s; }
.ld-call-wave span:nth-child(4) { animation-delay: 0.24s; }
.ld-call-wave span:nth-child(5) { animation-delay: 0.32s; }
.ld-call-wave span:nth-child(6) { animation-delay: 0.4s; }
.ld-call-wave span:nth-child(7) { animation-delay: 0.32s; }
.ld-call-wave span:nth-child(8) { animation-delay: 0.24s; }
.ld-call-wave span:nth-child(9) { animation-delay: 0.16s; }
.ld-call-wave span:nth-child(10) { animation-delay: 0.08s; }
@keyframes ldWave {
  0% { height: 5px; }
  100% { height: 22px; }
}

.ld-call-bubbles {
  display: flex;
  flex-direction: column;
  gap: 6px;
  height: 80px;
  overflow: hidden;
}
.ld-bubble {
  font-family: var(--font);
  font-size: 11px;
  line-height: 1.3;
  padding: 6px 10px;
  border-radius: 8px;
  max-width: 90%;
  animation: ldBubbleIn 0.35s cubic-bezier(0.16,1,0.3,1) both;
}
.ld-bubble.ai {
  background: rgba(255,93,0,0.18);
  border: 1px solid rgba(255,93,0,0.35);
  color: #FFB36B;
  align-self: flex-start;
  border-top-left-radius: 3px;
}
.ld-bubble.rep {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.75);
  align-self: flex-end;
  border-top-right-radius: 3px;
}
@keyframes ldBubbleIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ─── Result banner ─── */
.ld-result {
  position: absolute;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  width: calc(100% - 36px);
  max-width: 460px;
  background: linear-gradient(135deg, #0d0d12 0%, #1f1f26 100%);
  border-radius: 14px;
  padding: 14px 20px;
  box-shadow: 0 18px 48px rgba(13,13,18,0.35);
  opacity: 0;
  z-index: 7;
  pointer-events: none;
  transition: opacity 0.5s ease, transform 0.7s cubic-bezier(0.16,1,0.3,1);
}
.ld-result-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}
.ld-result-label {
  font-family: var(--mono);
  font-size: 10px;
  color: rgba(255,255,255,0.5);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.ld-result-value {
  font-family: var(--mono);
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.03em;
  background: linear-gradient(135deg, #FFB36B, #FF8A3D);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1.05;
  margin: 2px 0;
}
.ld-result-sub {
  font-family: var(--font);
  font-size: 11px;
  color: rgba(255,255,255,0.55);
}
.ld-result-arrow {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: var(--grad);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  flex-shrink: 0;
  box-shadow: 0 6px 14px rgba(255,93,0,0.35);
}
.ld-result-arrow svg { width: 16px; height: 16px; }

/* ─── Sparkles ─── */
.ld-sparkles {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 8;
}
.ld-spark {
  position: absolute;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent2);
  opacity: 0;
  animation: ldSparkRise 1.6s cubic-bezier(0.16,1,0.3,1) forwards;
}
@keyframes ldSparkRise {
  0%   { opacity: 0; transform: translateY(0) scale(0.4); }
  20%  { opacity: 1; }
  100% { opacity: 0; transform: translateY(-180px) scale(1.2); }
}

/* ═══════════════════════════════════════════════════
   Scene state machine — JS toggles classes on .live-demo
═══════════════════════════════════════════════════ */

/* --- UPLOAD scene --- */
.live-demo.scene-upload .ld-bill {
  opacity: 1;
  transform: translate(-50%, -50%) translateY(0) scale(1);
}

/* --- SCAN scene (also keeps the bill on screen) --- */
.live-demo.scene-scan .ld-bill {
  opacity: 1;
  transform: translate(-50%, -50%) translateY(0) scale(1);
}
.live-demo.scene-scan .ld-scan {
  opacity: 1;
  animation: ldScanSweep 1.5s cubic-bezier(0.4, 0, 0.6, 1) forwards;
}
@keyframes ldScanSweep {
  0%   { transform: translate(-50%, -50%) translateY(-90px); opacity: 0; }
  10%  { opacity: 1; }
  90%  { opacity: 1; }
  100% { transform: translate(-50%, -50%) translateY(90px); opacity: 0; }
}
/* Callouts pop after scan finishes */
.live-demo.scene-scan .ld-callout-left {
  opacity: 1;
  transform: translateY(-50%) translateX(0);
  transition-delay: 1.5s;
}
.live-demo.scene-scan .ld-callout-right {
  opacity: 1;
  transform: translateY(-50%) translateX(0);
  transition-delay: 1.65s;
}

/* --- NEGOTIATE scene --- */
.live-demo.scene-negotiate .ld-bill {
  opacity: 1;
  width: 220px;
  left: 22%;
  transform: translate(-50%, -50%) scale(0.85);
}
.live-demo.scene-negotiate .ld-call {
  opacity: 1;
  transform: translateY(-50%) translateX(0) scale(1);
}

/* --- RESULT scene --- */
.live-demo.scene-result .ld-bill {
  opacity: 1;
  width: 280px;
  left: 50%;
  transform: translate(-50%, -50%) scale(1);
}
.live-demo.scene-result .ld-bill-stamp {
  opacity: 0.92;
  transform: translate(-50%, -50%) rotate(-12deg) scale(1);
  transition: opacity 0.5s ease, transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.live-demo.scene-result .ld-bill-total .ld-bill-amt {
  color: #00a899;
}
.live-demo.scene-result .ld-result {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* --- RESET (fade everything out before loop) --- */
.live-demo.scene-reset .ld-bill,
.live-demo.scene-reset .ld-call,
.live-demo.scene-reset .ld-result,
.live-demo.scene-reset .ld-callout {
  opacity: 0;
  transition: opacity 0.4s ease;
}

/* ─── Step indicator at bottom ─── */
.ld-steps {
  display: flex;
  align-items: center;
  margin-top: 18px;
  padding: 0 8px;
}
.ld-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  flex: 0 0 auto;
  opacity: 0.4;
  transition: opacity 0.4s ease, transform 0.4s cubic-bezier(0.16,1,0.3,1);
}
.ld-step.is-active {
  opacity: 1;
  transform: translateY(-2px);
}
.ld-step.is-done {
  opacity: 0.85;
}
.ld-step-icon {
  width: 36px; height: 36px;
  border-radius: 10px;
  background: var(--surface);
  border: 1.5px solid var(--border2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  transition: background 0.4s ease, border-color 0.4s ease, color 0.4s ease, box-shadow 0.4s ease;
}
.ld-step-icon svg { width: 18px; height: 18px; }
.ld-step.is-active .ld-step-icon {
  background: var(--grad);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 6px 18px rgba(255,93,0,0.4);
}
.ld-step.is-done .ld-step-icon {
  background: rgba(0,194,168,0.12);
  border-color: rgba(0,194,168,0.35);
  color: #00a899;
}
.ld-step-label {
  font-family: var(--font);
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: -0.005em;
}
.ld-step.is-active .ld-step-label {
  color: var(--ink);
}
.ld-step.is-done .ld-step-label {
  color: #00a899;
}
.ld-step-bar {
  flex: 1;
  height: 2px;
  background: var(--border2);
  margin: 0 8px;
  margin-bottom: 16px;
  border-radius: 2px;
  overflow: hidden;
  position: relative;
}
.ld-step-bar::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--grad);
  transform-origin: left center;
  transform: scaleX(0);
  transition: transform 0.6s cubic-bezier(0.65, 0, 0.35, 1);
}
.ld-step-bar.is-done::after {
  transform: scaleX(1);
}

/* ─── Responsive ─── */
@media (max-width: 720px) {
  .live-demo {
    padding: 18px 16px 20px;
    margin: 36px auto 12px;
  }
  .ld-stage {
    height: 360px;
  }
  .ld-bill {
    width: 240px;
  }
  .ld-scan {
    width: 240px;
  }
  .ld-callout {
    padding: 6px 10px;
  }
  .ld-callout-left { left: 8px; }
  .ld-callout-right { right: 8px; }
  /* On mobile, slide bill up instead of left during negotiate */
  .live-demo.scene-negotiate .ld-bill {
    width: 200px;
    left: 50%;
    top: 28%;
    transform: translate(-50%, -50%) scale(0.7);
  }
  .ld-call {
    width: calc(100% - 32px);
    right: 16px;
    top: auto;
    bottom: 70px;
    transform: translateX(0) translateY(20px) scale(0.95);
  }
  .live-demo.scene-negotiate .ld-call {
    transform: translateX(0) translateY(0) scale(1);
  }
  .ld-result-value { font-size: 22px; }
  .ld-step-label { font-size: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  .live-demo .ld-bill,
  .live-demo .ld-call,
  .live-demo .ld-result,
  .live-demo .ld-callout,
  .live-demo .ld-bill-stamp {
    transition: none !important;
  }
  .ld-scan, .ld-spark, .ld-call-wave span, .ld-call-dot, .ld-badge-pulse {
    animation: none !important;
  }
}


/* ═══════════════════════════════════════════════════
   POLISH PASS 1
   Refinements layered on top of the established design.
   Self-contained — overrides earlier rules where needed.
═══════════════════════════════════════════════════ */


/* ─── Ticker: fade edges + pause on hover ─── */
.ticker-wrap {
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 80px, #000 calc(100% - 80px), transparent 100%);
          mask-image: linear-gradient(90deg, transparent 0%, #000 80px, #000 calc(100% - 80px), transparent 100%);
}
.ticker-wrap:hover .ticker-track { animation-play-state: paused; }


/* ─── Steps connector line + step-number badge polish ─── */
.steps-grid {
  position: relative;
}
.steps-grid::before {
  /* Dashed track that all 4 steps sit on — aligned to icon center */
  content: '';
  position: absolute;
  top: 100px;
  left: 12.5%;
  right: 12.5%;
  height: 2px;
  background-image: linear-gradient(90deg, var(--border2) 0, var(--border2) 6px, transparent 6px, transparent 12px);
  background-size: 12px 2px;
  z-index: 0;
  pointer-events: none;
}
.steps-grid::after {
  /* Orange gradient overlay that draws across when the section enters view */
  content: '';
  position: absolute;
  top: 100px;
  left: 12.5%;
  right: 12.5%;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent2), var(--accent));
  z-index: 1;
  pointer-events: none;
  transform-origin: left center;
  transform: scaleX(0);
  transition: transform 2s cubic-bezier(0.65, 0, 0.35, 1) 0.3s;
  box-shadow: 0 0 12px rgba(255,93,0,0.4);
  border-radius: 2px;
}
.steps-grid.connector-drawn::after { transform: scaleX(1); }

/* Lift the step icon above the connector line and give it a subtle entrance bounce */
.step-card { position: relative; z-index: 2; }
.step-card .step-icon {
  position: relative;
  z-index: 3;
  background: #fff;
  /* Round halo so the connector line appears to pass behind the icon */
  box-shadow: 0 0 0 6px var(--white), 0 2px 12px rgba(255,93,0,0.12);
  transition: transform 0.4s cubic-bezier(0.16,1,0.3,1), box-shadow 0.3s ease;
}
.step-card:hover .step-icon {
  transform: scale(1.08) translateY(-2px);
  box-shadow: 0 0 0 6px var(--white), 0 8px 22px rgba(255,93,0,0.28);
}

/* Step number badge: a small gradient pill above each card */
.step-card .step-num {
  display: inline-block;
  background: var(--grad-soft);
  border: 1px solid rgba(255,93,0,0.18);
  color: var(--accent);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  margin-bottom: 18px;
}


/* ─── Pricing: featured card breathing glow + price emphasis ─── */
.price-card.featured {
  /* Subtle outer glow that breathes in and out */
  animation: priceBreathe 4s ease-in-out infinite;
}
@keyframes priceBreathe {
  0%, 100% { box-shadow: 0 18px 48px rgba(13,13,18,0.22), 0 0 0 0 rgba(255,93,0,0); }
  50%      { box-shadow: 0 22px 56px rgba(13,13,18,0.30), 0 0 38px 4px rgba(255,93,0,0.22); }
}

/* "Most Popular" pill — shimmer sweep */
.price-popular-pill {
  position: relative;
  overflow: hidden;
}
.price-popular-pill::after {
  content: '';
  position: absolute;
  top: 0;
  left: -120%;
  width: 60%;
  height: 100%;
  background: linear-gradient(110deg, transparent 0%, rgba(255,255,255,0.55) 50%, transparent 100%);
  animation: pillShimmer 3.5s linear infinite;
}
@keyframes pillShimmer {
  0%   { left: -120%; }
  60%  { left: 120%; }
  100% { left: 120%; }
}

/* Slight scale-on-hover for the featured price */
.price-card.featured .plan-price {
  transition: transform 0.3s cubic-bezier(0.16,1,0.3,1);
}
.price-card.featured:hover .plan-price {
  transform: scale(1.05);
}


/* ─── CTA button: shine sweep that runs periodically ─── */
.cta-section .btn-primary-dark {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.cta-section .btn-primary-dark::after {
  content: '';
  position: absolute;
  top: 0;
  left: -150%;
  width: 75%;
  height: 100%;
  background: linear-gradient(110deg, transparent 0%, rgba(255,255,255,0.45) 50%, transparent 100%);
  transform: skewX(-20deg);
  animation: ctaShine 4.5s ease-in-out infinite;
  pointer-events: none;
}
@keyframes ctaShine {
  0%, 60%  { left: -150%; }
  80%      { left: 130%; }
  100%     { left: 130%; }
}

/* CTA glow: subtle continuous drift so the background feels alive */
.cta-glow {
  animation: ctaGlowDrift 14s ease-in-out infinite alternate;
}
@keyframes ctaGlowDrift {
  0%   { transform: translate(-50%, -50%) scale(1); opacity: 1; }
  50%  { transform: translate(-48%, -52%) scale(1.08); opacity: 0.85; }
  100% { transform: translate(-52%, -48%) scale(0.96); opacity: 1; }
}


/* ─── Scroll cue: bouncing chevron pinned to viewport bottom ─── */
.scroll-cue {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  pointer-events: none;
  opacity: 0;
  animation: scrollCueIn 0.6s cubic-bezier(0.16,1,0.3,1) 1.8s forwards;
  transition: opacity 0.4s ease, transform 0.4s ease;
  z-index: 50;
}
.scroll-cue.is-hidden { opacity: 0 !important; transform: translateX(-50%) translateY(8px); }

.scroll-cue-label {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.scroll-cue-chevron {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1.5px solid var(--border2);
  background: rgba(255,255,255,0.6);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  animation: scrollCueBounce 1.8s cubic-bezier(0.65, 0, 0.35, 1) infinite;
}

@keyframes scrollCueIn {
  from { opacity: 0; transform: translateX(-50%) translateY(8px); }
  to   { opacity: 0.85; transform: translateX(-50%) translateY(0); }
}
@keyframes scrollCueBounce {
  0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
  40%                     { transform: translateY(6px); }
  60%                     { transform: translateY(3px); }
}

/* On mobile, push the scroll cue closer to the bottom edge so it doesn't crowd content */
@media (max-width: 720px) {
  .scroll-cue { bottom: 16px; }
  .scroll-cue-label { font-size: 9px; }
}

/* Hide steps connector on mobile (cards stack vertically) */
@media (max-width: 720px) {
  .steps-grid::before,
  .steps-grid::after { display: none; }
}


/* ─── Reduced motion respect ─── */
@media (prefers-reduced-motion: reduce) {
  .price-card.featured,
  .cta-glow,
  .scroll-cue-chevron,
  .scroll-cue,
  .cta-section .btn-primary-dark::after,
  .price-popular-pill::after {
    animation: none !important;
  }
  .steps-grid::after {
    transition: none !important;
    transform: scaleX(1);
  }
}
