/* ═══════════════════════════════════════════════════════
   WISE APPLE — HOMEPAGE VARIANT index_l
   Optitrade-inspired long-form CONVERSION FUNNEL
   Extends the shared design tokens in styles.css. Adds only
   new section styles; never overrides shared component classes
   in a breaking way. All colors pull from :root tokens.
   ═══════════════════════════════════════════════════════ */

/* ── Shared helpers for the funnel page ── */
.l-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: var(--accent-dim);
  border: 1px solid var(--accent-mid);
  border-radius: var(--r-pill);
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 22px;
}

.l-section {
  padding: var(--section-pad) 0;
}
.l-section--surface {
  background: var(--bg-surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

/* Compliance disclaimer — inline + footer variants */
.l-disclaimer {
  display: block;
  max-width: 760px;
  margin: 28px auto 0;
  padding: 14px 18px;
  background: rgba(255,255,255,.025);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--text-3);
  text-align: center;
}
.l-disclaimer strong { color: var(--text-2); font-weight: 700; }

/* Qualifier chip that always rides near the "no caps" spear */
.l-qualifier {
  display: inline-block;
  margin: 18px auto 0;
  padding: 10px 18px;
  border-radius: var(--r-pill);
  background: rgba(255,255,255,.04);
  border: 1px dashed var(--border-strong);
  font-size: 13.5px;
  color: var(--text-2);
  line-height: 1.5;
}
.l-qualifier strong { color: var(--text); font-weight: 700; }

/* ═══════════════════════════════════════════════════════
   HERO ADDITIONS (spear)
   ═══════════════════════════════════════════════════════ */
.l-hero-spear {
  font-family: var(--font-display);
  font-size: clamp(15px, 2.2vw, 21px);
  font-weight: 600;
  color: var(--accent);
  letter-spacing: .3px;
  margin: 0 auto 18px;
}

.l-hero-trustrow {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  justify-content: center;
  margin: 4px auto 30px;
  max-width: 760px;
}
.l-hero-trustrow span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-2);
}
.l-hero-trustrow svg { color: var(--accent); flex-shrink: 0; }

/* ═══════════════════════════════════════════════════════
   REPEATING CTA BANDS
   ═══════════════════════════════════════════════════════ */
.l-ctaband {
  position: relative;
  padding: clamp(40px, 6vw, 64px) 0;
  text-align: center;
  overflow: hidden;
}
.l-ctaband__glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 760px;
  height: 320px;
  background: radial-gradient(ellipse, var(--accent-dim) 0%, transparent 70%);
  opacity: .4;
  pointer-events: none;
}
.l-ctaband__inner { position: relative; z-index: 1; }
.l-ctaband__title {
  font-family: var(--font-display);
  font-size: clamp(24px, 3.4vw, 36px);
  font-weight: 700;
  letter-spacing: -.8px;
  line-height: 1.15;
  margin-bottom: 12px;
}
.l-ctaband__sub {
  font-size: clamp(15px, 1.8vw, 18px);
  color: var(--text-2);
  max-width: 560px;
  margin: 0 auto 26px;
}
.l-ctaband__actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}
.l-ctaband__note {
  margin-top: 16px;
  font-size: 13px;
  color: var(--text-3);
}

/* ═══════════════════════════════════════════════════════
   NUMBERED "HOW IT WORKS" (vertical, Optitrade style)
   ═══════════════════════════════════════════════════════ */
.l-steps {
  display: grid;
  gap: 18px;
  max-width: 880px;
  margin: 0 auto;
}
.l-step {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 22px;
  align-items: start;
  padding: 26px 28px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  transition: all var(--t-med) var(--ease);
}
.l-step:hover {
  border-color: var(--accent-mid);
  background: var(--bg-card-hover);
  transform: translateX(4px);
}
.l-step__num {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  color: var(--accent);
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: var(--accent-dim);
  border: 1px solid var(--accent-mid);
}
.l-step__title {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -.4px;
  margin-bottom: 6px;
}
.l-step__desc {
  font-size: 15px;
  color: var(--text-2);
  line-height: 1.65;
}

/* ═══════════════════════════════════════════════════════
   EVIDENCE / BACKTEST SHOWCASE
   ═══════════════════════════════════════════════════════ */
.l-evidence {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 56px;
  align-items: center;
}
.l-evidence__frame {
  position: relative;
  border-radius: var(--r-md);
  overflow: hidden;
  border: 1px solid var(--border-strong);
  background: var(--bg-card);
  box-shadow: 0 24px 70px rgba(0,0,0,.4);
}
.l-evidence__frame img { width: 100%; display: block; }
.l-evidence__metrics {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin-top: 26px;
}
.l-metric {
  padding: 18px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
}
.l-metric__label {
  font-size: 13px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: .3px;
  margin-bottom: 6px;
}
.l-metric__desc {
  font-size: 13.5px;
  color: var(--text-2);
  line-height: 1.55;
}

/* ═══════════════════════════════════════════════════════
   PROBLEMS SOLVED (before / after)
   ═══════════════════════════════════════════════════════ */
.l-problems {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.l-problem {
  padding: 30px 28px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  transition: all var(--t-med) var(--ease);
}
.l-problem:hover {
  border-color: var(--border-strong);
  transform: translateY(-4px);
  box-shadow: 0 14px 44px rgba(0,0,0,.3);
}
.l-problem__pain {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--text-2);
  margin-bottom: 18px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--border);
}
.l-problem__pain svg { color: #ff8d8d; flex-shrink: 0; margin-top: 2px; }
.l-problem__fix {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.l-problem__fix svg { color: var(--accent); flex-shrink: 0; margin-top: 3px; }
.l-problem__fix-title {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -.3px;
  margin-bottom: 6px;
}
.l-problem__fix-desc {
  font-size: 14px;
  color: var(--text-2);
  line-height: 1.6;
}

/* ═══════════════════════════════════════════════════════
   RIGOR / RISK GUARDS
   ═══════════════════════════════════════════════════════ */
.l-rigor {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  max-width: 980px;
  margin: 0 auto;
}
.l-rigor__card {
  display: grid;
  grid-template-columns: 46px 1fr;
  gap: 18px;
  padding: 26px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  transition: all var(--t-med) var(--ease);
}
.l-rigor__card:hover { border-color: var(--accent-mid); background: var(--bg-card-hover); }
.l-rigor__icon {
  width: 46px;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: var(--accent-dim);
  color: var(--accent);
}
.l-rigor__title {
  font-family: var(--font-display);
  font-size: 16.5px;
  font-weight: 700;
  letter-spacing: -.3px;
  margin-bottom: 6px;
}
.l-rigor__desc {
  font-size: 14px;
  color: var(--text-2);
  line-height: 1.6;
}

/* ═══════════════════════════════════════════════════════
   TECHNOLOGY / CREDIBILITY
   ═══════════════════════════════════════════════════════ */
.l-tech {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.l-tech__list {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-top: 26px;
}
.l-tech__item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.l-tech__badge {
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 11px;
  background: var(--accent-dim);
  border: 1px solid var(--accent-mid);
  color: var(--accent);
}
.l-tech__item h4 {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 4px;
}
.l-tech__item p { font-size: 14px; color: var(--text-2); line-height: 1.6; }

.l-tech__panel {
  padding: 34px;
  background: linear-gradient(180deg, rgba(123,255,130,.04), var(--bg-card) 45%);
  border: 1px solid var(--accent-mid);
  border-radius: var(--r-lg);
  box-shadow: 0 0 50px rgba(123,255,130,.06);
}
.l-tech__stat {
  text-align: center;
  padding: 18px 0;
  border-bottom: 1px solid var(--border);
}
.l-tech__stat:last-child { border-bottom: none; }
.l-tech__stat-num {
  font-family: var(--font-display);
  font-size: clamp(34px, 4.5vw, 46px);
  font-weight: 700;
  letter-spacing: -1.5px;
  color: var(--accent);
  line-height: 1;
  display: block;
}
.l-tech__stat-label {
  display: block;
  margin-top: 8px;
  font-size: 14px;
  color: var(--text-2);
}

/* ═══════════════════════════════════════════════════════
   WHAT YOU GET — checklist grid
   ═══════════════════════════════════════════════════════ */
.l-getlist {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px 32px;
  max-width: 960px;
  margin: 0 auto;
}
.l-get {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 18px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  transition: all var(--t-fast) var(--ease);
}
.l-get:hover { border-color: var(--accent-mid); background: var(--bg-card-hover); }
.l-get__check {
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--accent-dim);
  color: var(--accent);
  margin-top: 1px;
}
.l-get__title { font-weight: 700; font-size: 15.5px; margin-bottom: 3px; }
.l-get__desc { font-size: 13.5px; color: var(--text-2); line-height: 1.55; }

/* ═══════════════════════════════════════════════════════
   WHY WE BUILT THIS (replaces fake reviews)
   ═══════════════════════════════════════════════════════ */
.l-why {
  max-width: 860px;
  margin: 0 auto;
  padding: 40px clamp(24px, 5vw, 52px);
  background: linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.015));
  border: 1px solid var(--border-strong);
  border-radius: var(--r-xl);
}
.l-why__quote {
  font-family: var(--font-display);
  font-size: clamp(20px, 2.6vw, 28px);
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: -.5px;
  margin-bottom: 22px;
}
.l-why__quote .gradient-text { font-weight: 700; }
.l-why__body {
  font-size: 16px;
  color: var(--text-2);
  line-height: 1.75;
}
.l-why__body p { margin-bottom: 14px; }
.l-why__body p:last-child { margin-bottom: 0; }
.l-why__sign {
  margin-top: 26px;
  padding-top: 22px;
  border-top: 1px solid var(--border);
  font-size: 14px;
  color: var(--text-3);
}
.l-why__sign strong { color: var(--text); font-weight: 700; }

/* ═══════════════════════════════════════════════════════
   FREE-TIER GUARANTEE (replaces lifetime guarantee)
   ═══════════════════════════════════════════════════════ */
.l-guarantee {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
  padding: 44px clamp(24px, 5vw, 48px);
  background: linear-gradient(180deg, rgba(123,255,130,.05), var(--bg-card) 60%);
  border: 1px solid var(--accent-mid);
  border-radius: var(--r-xl);
  box-shadow: 0 0 50px rgba(123,255,130,.07);
}
.l-guarantee__seal {
  width: 72px;
  height: 72px;
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--accent-dim);
  border: 1px solid var(--accent-mid);
  color: var(--accent);
}
.l-guarantee__title {
  font-family: var(--font-display);
  font-size: clamp(24px, 3.2vw, 34px);
  font-weight: 700;
  letter-spacing: -.6px;
  margin-bottom: 14px;
}
.l-guarantee__desc {
  font-size: 16px;
  color: var(--text-2);
  line-height: 1.7;
  max-width: 560px;
  margin: 0 auto;
}

/* ═══════════════════════════════════════════════════════
   PRICING LADDER (3 cards)
   ═══════════════════════════════════════════════════════ */
.l-pricing-toggle {
  display: inline-flex;
  gap: 4px;
  padding: 5px;
  margin: 0 auto 14px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-pill);
}
.l-pricing-note {
  text-align: center;
  font-size: 13.5px;
  color: var(--text-3);
  margin-bottom: 40px;
}
.l-plans {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  max-width: 1000px;
  margin: 0 auto;
  align-items: stretch;
}
.l-plan {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 34px 30px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  transition: all var(--t-med) var(--ease);
}
.l-plan:hover { border-color: var(--border-strong); transform: translateY(-4px); }
.l-plan--featured {
  border-color: var(--accent-mid);
  background: linear-gradient(180deg, rgba(123,255,130,.05) 0%, var(--bg-card) 42%);
  box-shadow: 0 0 44px rgba(123,255,130,.09);
}
.l-plan__badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  padding: 5px 16px;
  background: var(--accent);
  color: #0a0a0f;
  font-size: 11.5px;
  font-weight: 800;
  border-radius: var(--r-pill);
  text-transform: uppercase;
  letter-spacing: .6px;
  white-space: nowrap;
}
.l-plan__name {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 4px;
}
.l-plan__tag { font-size: 13.5px; color: var(--text-3); margin-bottom: 18px; }
.l-plan__price { display: flex; align-items: baseline; gap: 4px; margin-bottom: 4px; }
.l-plan__amount {
  font-family: var(--font-display);
  font-size: 42px;
  font-weight: 700;
  letter-spacing: -1.5px;
}
.l-plan__period { font-size: 15px; color: var(--text-3); }
.l-plan__annual { font-size: 12.5px; color: var(--accent); font-weight: 600; min-height: 18px; margin-bottom: 22px; }
.l-plan__features {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 11px;
  margin-bottom: 26px;
}
.l-plan__features li {
  font-size: 13.8px;
  color: var(--text-2);
  line-height: 1.5;
  padding-left: 24px;
  position: relative;
}
.l-plan__features li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 4px;
  width: 15px;
  height: 15px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237bff82' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6L9 17l-5-5'/%3E%3C/svg%3E") center / contain no-repeat;
}
.l-plan__features li.is-muted { color: var(--text-3); }
.l-plan__features li.is-muted::before {
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* ═══════════════════════════════════════════════════════
   FAQ ACCORDION (keyboard-accessible)
   ═══════════════════════════════════════════════════════ */
.l-faq {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.l-faq__item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  overflow: hidden;
  transition: border-color var(--t-fast) var(--ease);
}
.l-faq__item.is-open { border-color: var(--accent-mid); }
.l-faq__trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 22px 24px;
  background: transparent;
  border: none;
  cursor: pointer;
  text-align: left;
  font-family: var(--font-display);
  font-size: 16.5px;
  font-weight: 600;
  letter-spacing: -.2px;
  color: var(--text);
  transition: color var(--t-fast);
}
.l-faq__trigger:hover { color: var(--accent); }
.l-faq__trigger:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: -2px;
  border-radius: var(--r-md);
}
.l-faq__icon {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  position: relative;
  transition: transform var(--t-med) var(--ease);
}
.l-faq__icon::before,
.l-faq__icon::after {
  content: '';
  position: absolute;
  background: var(--accent);
  border-radius: 2px;
  top: 50%;
  left: 50%;
}
.l-faq__icon::before { width: 14px; height: 2px; transform: translate(-50%, -50%); }
.l-faq__icon::after  { width: 2px; height: 14px; transform: translate(-50%, -50%); transition: transform var(--t-med) var(--ease); }
.l-faq__item.is-open .l-faq__icon::after { transform: translate(-50%, -50%) scaleY(0); }
.l-faq__panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--t-med) var(--ease);
}
.l-faq__panel-inner {
  padding: 0 24px 24px;
  font-size: 15px;
  color: var(--text-2);
  line-height: 1.7;
}
.l-faq__panel-inner a { color: var(--accent); text-decoration: underline; }

/* ═══════════════════════════════════════════════════════
   FINAL CTA additions
   ═══════════════════════════════════════════════════════ */
.l-final-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  justify-content: center;
  margin: 0 auto 30px;
  max-width: 640px;
}
.l-final-list span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-2);
}
.l-final-list svg { color: var(--accent); flex-shrink: 0; }

/* Footer compliance block */
.l-footer-legal {
  max-width: 900px;
  margin: 0 auto 28px;
  padding: 20px 22px;
  background: rgba(255,255,255,.02);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  font-size: 12px;
  line-height: 1.7;
  color: var(--text-3);
  text-align: center;
}
.l-footer-legal strong { color: var(--text-2); }

/* ═══════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .l-evidence { grid-template-columns: 1fr; gap: 40px; }
  .l-evidence__visual { order: -1; }
  .l-tech { grid-template-columns: 1fr; gap: 44px; }
  .l-problems { grid-template-columns: 1fr; max-width: 520px; margin: 0 auto; }
  .l-plans { grid-template-columns: 1fr; max-width: 440px; }
  .l-plan--featured { order: -1; }
}

@media (max-width: 768px) {
  .l-rigor { grid-template-columns: 1fr; }
  .l-getlist { grid-template-columns: 1fr; }
  .l-step { grid-template-columns: 50px 1fr; gap: 16px; padding: 22px 20px; }
  .l-step__num { width: 48px; height: 48px; font-size: 19px; }
  .l-evidence__metrics { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 480px) {
  .l-evidence__metrics { grid-template-columns: 1fr; }
  .l-why { padding: 30px 22px; }
  .l-faq__trigger { font-size: 15px; padding: 18px 18px; }
  .l-faq__panel-inner { padding: 0 18px 20px; }
}
