/* ==========================================================================
   Success Layer — sales-page components
   Loaded ONLY by index.html, features.html and pricing.html (after style.css).
   Every class here is new, so FAQ, Blog, blog-posts and legal pages are
   unaffected. Tokens come from style.css; no new colours are introduced.
   ========================================================================== */

/* ---------- supplemental helpers (previously inline on index.html) ---------- */
.fl-legal { display: block; margin-top: 6px; font-size: .82rem; opacity: .72; line-height: 1.55; }
.nav-cta { white-space: nowrap; }
.risk-line { margin-top: 12px; font-size: 13px; color: var(--ink-faint); line-height: 1.55; }
.risk-line strong { color: var(--ink-soft); font-weight: 600; }
.center { text-align: center; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.cta-row.center { justify-content: center; }
.cta-block { margin-top: clamp(32px, 4vw, 48px); text-align: center; }
.cta-block .risk-line { margin-top: 12px; }
#how, #product, #demo, #proof, #compare, #cost, #pricing, #faq { scroll-margin-top: 96px; }

/* ---------- HERO ---------- */
.sales-hero { padding-top: calc(var(--nav-space) + clamp(20px, 4vw, 56px)); padding-bottom: clamp(48px, 6vw, 88px); position: relative; overflow: hidden; }
.sales-hero::before { content: ""; position: absolute; inset: -20% -10% auto 30%; height: 620px; background: var(--hero-glow); pointer-events: none; }
.sales-hero .wrap { position: relative; display: grid; grid-template-columns: 1.08fr .92fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.sales-hero h1 { margin: 20px 0 22px; }
.sales-hero h1 .accent-word { color: var(--accent); }
.sales-hero .sub { font-size: clamp(16px, 1.55vw, 18.5px); color: var(--ink-soft); line-height: 1.65; max-width: 560px; }
.sales-hero .cta-row { margin-top: 30px; }
.founder-line { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); max-width: 520px; font-size: 13.5px; color: var(--ink-soft); line-height: 1.6; }
.founder-line strong { color: var(--ink); font-weight: 650; }

.device { position: relative; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.device .phone { width: min(320px, 100%); }
.device-cap { font-size: 12.5px; color: var(--ink-faint); text-align: center; max-width: 320px; line-height: 1.5; }

/* ---------- TRUST / FIT BAR ---------- */
.fitbar { border-block: 1px solid var(--line); background: var(--bg-sunk); padding: 22px 0; }
.fitbar .wrap { text-align: center; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px 28px; }
.fitbar .fit-label { font-size: 11.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-faint); }
.fitbar ul { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 26px; }
.fitbar li { font-family: 'Manrope', sans-serif; font-weight: 700; font-size: 15px; color: var(--ink-soft); letter-spacing: -.01em; }

/* ---------- PAIN ---------- */
.pain h3 { font-size: 19px; }
.pain .when { display: block; font-size: 11.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); margin-bottom: 12px; }

/* ---------- HOW IT WORKS (a week, not an implementation) ---------- */
.week { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--bg-elev); overflow: hidden; }
.week-step { padding: clamp(26px, 3vw, 36px); border-left: 1px solid var(--line); }
.week-step:first-child { border-left: none; }
.week-step .day { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); }
.week-step .day b { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--accent-soft); font-size: 12.5px; letter-spacing: 0; }
.week-step h3 { font-size: 19px; margin: 16px 0 10px; line-height: 1.3; }
.week-step p { font-size: 14.5px; color: var(--ink-soft); line-height: 1.65; }
.week-note { max-width: 720px; margin: 24px auto 0; text-align: center; font-size: 14.5px; color: var(--ink-soft); line-height: 1.65; }

/* ---------- BENEFITS ---------- */
.benefits { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.benefit { padding: 28px 26px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-elev); }
.benefit h3 { font-size: 18.5px; line-height: 1.3; margin-bottom: 10px; }
.benefit p { font-size: 14.5px; color: var(--ink-soft); line-height: 1.65; }
.benefit .cap { display: block; margin-top: 14px; font-size: 12.5px; font-weight: 600; color: var(--ink-faint); }
.benefit .cap::before { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); margin-right: 8px; vertical-align: 1px; }

/* ---------- CLICKABLE DEMO ---------- */
.demo { display: grid; grid-template-columns: 1fr minmax(260px, 340px); gap: clamp(28px, 5vw, 64px); align-items: center; }
.demo-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.demo-tab {
  padding: 10px 16px; border-radius: 999px; border: 1px solid var(--line-strong);
  font-size: 14px; font-weight: 600; color: var(--ink-soft); background: var(--bg);
  transition: color .2s var(--ease), background-color .2s var(--ease), border-color .2s var(--ease);
  min-height: 44px;
}
.demo-tab:hover { color: var(--ink); border-color: var(--ink-faint); }
.demo-tab[aria-selected="true"] { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.demo-panel h3 { font-size: clamp(21px, 2.3vw, 26px); line-height: 1.25; margin-bottom: 12px; }
.demo-panel p { font-size: 15.5px; color: var(--ink-soft); line-height: 1.7; max-width: 560px; }
.demo-panel ul { list-style: none; margin-top: 16px; display: grid; gap: 8px; }
.demo-panel li { position: relative; padding-left: 22px; font-size: 14.5px; color: var(--ink-soft); line-height: 1.55; }
.demo-panel li::before { content: ""; position: absolute; left: 2px; top: 9px; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.demo-panel[hidden] { display: none; }
.demo-note { margin-top: 22px; font-size: 12.5px; color: var(--ink-faint); line-height: 1.55; }
.demo .phone-screen img { transition: opacity .35s var(--ease); transform: none; }

/* ---------- PROOF ---------- */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-bottom: 20px; }
.stat { padding: 28px 26px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--bg-elev); }
.stat .num { font-family: 'Manrope', sans-serif; font-weight: 800; font-size: clamp(34px, 4vw, 46px); letter-spacing: -.035em; line-height: 1; color: var(--accent); }
.stat .lbl { margin-top: 10px; font-size: 14.5px; color: var(--ink-soft); line-height: 1.55; }
.proof-note { max-width: 760px; margin: 26px auto 0; text-align: center; font-size: 14px; color: var(--ink-faint); line-height: 1.65; }
.proof-card a { color: var(--accent); font-weight: 600; }

/* ---------- COMPARISON TABLE ---------- */
.cmp-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--bg-elev); }
.cmp { width: 100%; min-width: 640px; border-collapse: collapse; font-size: 14.5px; }
.cmp caption { text-align: left; padding: 0; }
.cmp th, .cmp td { padding: 16px 20px; text-align: left; vertical-align: top; border-top: 1px solid var(--line); line-height: 1.55; }
.cmp thead th { border-top: none; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-faint); background: var(--bg-sunk); }
.cmp thead th.us { color: var(--accent); }
.cmp tbody th { font-weight: 600; color: var(--ink); width: 26%; }
.cmp td { color: var(--ink-soft); }
.cmp td.us { color: var(--ink); font-weight: 500; background: var(--accent-soft); }

/* ---------- COST CALCULATOR ---------- */
.calc { display: grid; grid-template-columns: 1.1fr .9fr; gap: 0; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; background: var(--bg-elev); }
.calc-inputs { padding: clamp(24px, 3.2vw, 38px); display: grid; gap: 22px; }
.calc-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; }
.calc-field label { font-size: 14px; font-weight: 600; color: var(--ink); line-height: 1.4; }
.calc-val {
  flex-shrink: 0; font-family: 'Manrope', sans-serif; font-weight: 800; font-size: 16px;
  letter-spacing: -.01em; color: var(--accent); font-variant-numeric: tabular-nums; white-space: nowrap;
}
.calc-field .hint { display: block; font-size: 12.5px; color: var(--ink-faint); margin-top: 3px; line-height: 1.45; }
.calc-scale { display: flex; justify-content: space-between; font-size: 11.5px; color: var(--ink-faint); margin-top: -4px; }

/* Range slider: 44px-tall hit area, 6px track filled up to the thumb via --fill (set by home.js). */
.calc-field input[type="range"] {
  -webkit-appearance: none; appearance: none;
  display: block; width: 100%; height: 44px; margin: 2px 0 0; padding: 0;
  background: transparent; cursor: pointer; touch-action: pan-y;
  --fill: 50%;
}
.calc-field input[type="range"]:focus { outline: none; }
.calc-field input[type="range"]::-webkit-slider-runnable-track {
  height: 6px; border-radius: 999px;
  background: linear-gradient(to right, var(--accent) 0 var(--fill), var(--line-strong) var(--fill) 100%);
}
.calc-field input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 22px; height: 22px; margin-top: -8px; border-radius: 50%;
  background: var(--bg-elev); border: 2px solid var(--accent);
  box-shadow: 0 2px 6px rgba(12,17,23,.18);
  transition: transform .15s var(--ease), box-shadow .15s var(--ease);
}
.calc-field input[type="range"]::-moz-range-track { height: 6px; border-radius: 999px; background: var(--line-strong); }
.calc-field input[type="range"]::-moz-range-progress { height: 6px; border-radius: 999px; background: var(--accent); }
.calc-field input[type="range"]::-moz-range-thumb {
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--bg-elev); border: 2px solid var(--accent);
  box-shadow: 0 2px 6px rgba(12,17,23,.18);
}
.calc-field input[type="range"]:hover::-webkit-slider-thumb,
.calc-field input[type="range"]:active::-webkit-slider-thumb { transform: scale(1.12); }
.calc-field input[type="range"]:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 5px var(--accent-ring); }
.calc-field input[type="range"]:focus-visible::-moz-range-thumb { box-shadow: 0 0 0 5px var(--accent-ring); }
.calc-out { padding: clamp(24px, 3.2vw, 38px); background: var(--bg-contrast); color: var(--ink-oncontrast); display: flex; flex-direction: column; justify-content: center; gap: 22px; }
.calc-out .k { font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-oncontrast-soft); }
.calc-out .v { font-family: 'Manrope', sans-serif; font-weight: 800; font-size: clamp(30px, 3.6vw, 42px); letter-spacing: -.03em; line-height: 1.1; margin-top: 6px; }
.calc-out p { font-size: 13.5px; color: var(--ink-oncontrast-soft); line-height: 1.6; }
.calc-foot { max-width: 780px; margin: 20px auto 0; text-align: center; font-size: 13.5px; color: var(--ink-faint); line-height: 1.65; }

/* ---------- PRICING (founding-partner pilot) ---------- */
.pilot { display: grid; grid-template-columns: 1.15fr .85fr; gap: 20px; align-items: stretch; }
.pilot-card { position: relative; padding: clamp(28px, 3.4vw, 42px); border: 2px solid var(--accent); border-radius: var(--radius-lg); background: var(--bg-elev); box-shadow: var(--shadow-md); }
.pilot-card .badge { display: inline-block; font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--on-accent); background: var(--accent); padding: 5px 12px; border-radius: 999px; }
.pilot-card h3 { font-size: clamp(22px, 2.4vw, 28px); margin: 18px 0 6px; }
.pilot-card .for { font-size: 15px; color: var(--ink-soft); line-height: 1.6; }
.pilot-card .price { margin: 22px 0; padding: 16px 18px; border-radius: var(--radius); background: var(--accent-soft); font-size: 15px; color: var(--ink); line-height: 1.55; }
.pilot-card .price strong { font-family: 'Manrope', sans-serif; font-weight: 800; }
.pilot-card ul { list-style: none; display: grid; gap: 0; margin-bottom: 26px; }
.pilot-card li { position: relative; padding: 10px 0 10px 28px; border-top: 1px solid var(--line); font-size: 14.5px; color: var(--ink-soft); line-height: 1.55; }
.pilot-card li:first-child { border-top: none; }
.pilot-card li::before { content: ""; position: absolute; left: 3px; top: 16px; width: 11px; height: 6px; border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(-45deg); }
.pilot-side { display: grid; gap: 20px; }
.pilot-side .card h3 { font-size: 17px; }

/* ---------- FAQ on sales pages ---------- */
.sales-faq .faq-list { max-width: 820px; }

/* ---------- FOOTER (sales pages) ---------- */
.site-footer .wrap { display: block; }
.site-footer { border-top: 1px solid var(--line); background: var(--bg); padding: clamp(44px, 5vw, 64px) 0 34px; }
.site-footer .cols { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 28px; }
.site-footer .promise { font-family: 'Manrope', sans-serif; font-weight: 700; font-size: 17px; line-height: 1.4; letter-spacing: -.01em; max-width: 320px; margin-top: 14px; }
.site-footer h4 { font-size: 11.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-faint); margin-bottom: 12px; }
.site-footer ul { list-style: none; display: grid; gap: 8px; }
.site-footer ul a { font-size: 14px; color: var(--ink-soft); }
.site-footer ul a:hover { color: var(--accent); }
.site-footer .legal-line { margin-top: 34px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 12.5px; color: var(--ink-faint); line-height: 1.6; }

/* ---------- FEATURES PAGE ---------- */
.feat-row { display: grid; grid-template-columns: 1fr minmax(240px, 320px); gap: clamp(28px, 5vw, 72px); align-items: center; padding: clamp(40px, 5vw, 64px) 0; border-top: 1px solid var(--line); }
.feat-row:first-of-type { border-top: none; padding-top: 0; }
.feat-row.flip { grid-template-columns: minmax(240px, 320px) 1fr; }
.feat-row.flip .feat-media { order: -1; }
.feat-row h2 { font-family: 'Manrope', sans-serif; font-weight: 800; font-size: clamp(24px, 2.8vw, 32px); letter-spacing: -.025em; line-height: 1.15; margin: 14px 0 14px; }
.feat-row p { font-size: 16px; color: var(--ink-soft); line-height: 1.7; margin-bottom: 14px; max-width: 580px; }
.feat-row ul { list-style: none; display: grid; gap: 8px; margin-top: 6px; }
.feat-row li { position: relative; padding-left: 22px; font-size: 15px; color: var(--ink-soft); line-height: 1.6; }
.feat-row li::before { content: ""; position: absolute; left: 2px; top: 10px; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.feat-media { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.feat-media .phone { width: min(300px, 100%); }
.feat-media .phone-screen img { opacity: 1; transform: none; }

/* ---------- MOBILE STICKY CTA ---------- */
.mobile-cta { display: none; }
@media (max-width: 860px) {
  .mobile-cta {
    display: flex; align-items: center; gap: 12px;
    position: fixed; z-index: 98; left: 0; right: 0; bottom: 0;
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
    background: rgba(var(--bg-rgb), .94);
    backdrop-filter: saturate(180%) blur(14px); -webkit-backdrop-filter: saturate(180%) blur(14px);
    border-top: 1px solid var(--line);
  }
  .mobile-cta .btn { flex: 1; min-height: 48px; }
  .mobile-cta span { font-size: 11.5px; color: var(--ink-faint); line-height: 1.35; max-width: 120px; }
  body.menu-open .mobile-cta { display: none; }
  body.has-mobile-cta { padding-bottom: 76px; }
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 1000px) {
  .sales-hero .wrap { grid-template-columns: 1fr; }
  .device { margin-top: 8px; }
  .device .phone { width: min(280px, 76%); }
  .benefits { grid-template-columns: repeat(2, 1fr); }
  .demo { grid-template-columns: 1fr; }
  .demo .device { order: 2; }
  .pilot { grid-template-columns: 1fr; }
  .calc { grid-template-columns: 1fr; }
  .site-footer .cols { grid-template-columns: 1fr 1fr; }
  .feat-row, .feat-row.flip { grid-template-columns: 1fr; }
  .feat-row.flip .feat-media { order: 0; }
}
@media (max-width: 860px) {
  .week { grid-template-columns: 1fr; }
  .week-step { border-left: none; border-top: 1px solid var(--line); }
  .week-step:first-child { border-top: none; }
  .stats { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .benefits { grid-template-columns: 1fr; }
  .site-footer .cols { grid-template-columns: 1fr; }
  .sales-hero .cta-row .btn { width: 100%; }
  .fitbar li { font-size: 14px; }
}
