/* Launch UI dark direction: pricing page. Builds on tokens.css + home.css
   (badge, tile, ripple, case card, chart, FAQ accordion, mockup frame, CTA glow). */

/* Nav bits this page's script relies on: the dropdown opens by class, the shadow by class. */
#jt-nav #free-tools-dropdown.is-open { display: block !important; }
#jt-nav.is-scrolled { box-shadow: 0 2px 20px rgba(0,0,0,0.4) !important; }

/* ── Pricing: hero + plans in one ──────────────────────────────────── */
.lx-pr { position: relative; padding: calc(68px + 56px) 0 var(--section-y); overflow: hidden; }
.lx-pr-glow {
  position: absolute; left: 50%; top: 20px; width: min(1100px, 140vw); height: 460px; transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(251,146,60,0.2), rgba(251,146,60,0.05) 60%, transparent 100%); pointer-events: none;
}
.lx-pr .lx-wrap { position: relative; }
.lx-pr-head { display: flex; flex-direction: column; align-items: center; gap: 20px; text-align: center; margin-bottom: 36px; }
.lx-pr-title { font-size: clamp(36px, 5vw, 60px); font-weight: 600; line-height: 1.02; letter-spacing: -0.04em; margin: 0; max-width: 820px; text-wrap: balance; }
.lx-pr-lede { max-width: 560px; font-size: 18px; line-height: 1.5; }

.lx-audience-wrap { display: flex; align-items: center; justify-content: center; gap: 14px; flex-wrap: wrap; }
.lx-audience-label { font-size: 14px; font-weight: 500; color: var(--muted); }
.lx-audience { display: inline-grid; grid-template-columns: repeat(3, auto); gap: 4px; padding: 4px; border-radius: 9999px; background: var(--surface-1); box-shadow: inset 0 0 0 1px var(--border-2); }
.lx-audience-opt {
  padding: 8px 20px; border: 0; border-radius: 9999px; background: transparent; color: var(--muted); cursor: pointer;
  font-family: var(--font); font-size: 14px; font-weight: 500; transition: background 0.15s, color 0.15s, box-shadow 0.15s;
}
.lx-audience-opt:hover { color: var(--fg); }
.lx-audience-opt.is-active { color: var(--on-light); background: var(--grad-primary); box-shadow: var(--shadow-btn), 0 0 20px rgba(251,146,60,0.25); }
.lx-coverage { text-align: center; font-size: 14px; line-height: 1.5; color: var(--muted); margin: 14px auto 40px; max-width: 560px; min-height: 42px; transition: opacity 0.12s ease; }
.lx-coverage.is-swapping { opacity: 0; }

.lx-plan-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; align-items: stretch; max-width: 1040px; margin: 0 auto; }
.lx-plan-grid .lx-plan-price, .lx-plan-grid [data-first] { transition: opacity 0.12s ease; }
.lx-plan-grid.is-swapping .lx-plan-price, .lx-plan-grid.is-swapping [data-first] { opacity: 0; }
.lx-plan { display: flex; flex-direction: column; padding: 28px; box-shadow: inset 0 0 0 1px rgba(250,250,250,0.06); }
.lx-plan.is-featured {
  background: radial-gradient(120% 60% at 50% 0%, rgba(251,146,60,0.32) 0%, rgba(251,146,60,0.06) 60%, transparent 100%), rgba(250,250,250,0.03);
  box-shadow: inset 0 0 0 1px rgba(253,186,116,0.25), inset 0 1px 0 rgba(253,186,116,0.7), 0 25px 50px -12px rgba(251,146,60,0.2);
}
.lx-plan.is-suggested { box-shadow: inset 0 0 0 1px rgba(253,186,116,0.8), 0 0 0 4px rgba(251,146,60,0.18), 0 25px 50px -12px rgba(251,146,60,0.25); }
.lx-plan-name { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 15px; font-weight: 600; color: var(--fg); }
.lx-plan.is-featured .lx-plan-name { color: var(--accent-soft); }
.lx-plan-tag { font-size: 11px; font-weight: 600; padding: 3px 9px; border-radius: 9999px; color: var(--accent-soft); background: rgba(251,146,60,0.14); box-shadow: inset 0 0 0 1px rgba(253,186,116,0.35); }
.lx-plan-vol { font-size: 13px; color: var(--muted); margin: 6px 0 24px; }
.lx-plan-amount { display: flex; align-items: baseline; gap: 6px; }
.lx-plan-price { font-size: 44px; font-weight: 600; letter-spacing: -0.04em; line-height: 1; color: var(--fg); font-variant-numeric: tabular-nums; }
.lx-plan-per { font-size: 14px; color: var(--muted); }
.lx-plan-first { font-size: 13px; color: var(--muted); margin: 10px 0 24px; padding-bottom: 24px; border-bottom: 1px solid var(--border-1); }
.lx-plan-first span { color: var(--fg); font-weight: 600; font-variant-numeric: tabular-nums; }
.lx-plan-list { list-style: none; margin: 0 0 28px; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.lx-plan-list li { display: flex; gap: 10px; font-size: 14px; line-height: 1.5; color: var(--muted); }
.lx-plan-list li::before {
  content: ""; width: 16px; height: 16px; flex-shrink: 0; margin-top: 2px;
  background: no-repeat center/16px url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23FDBA74' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E");
}
.lx-plan-list li.lx-plan-inherit { color: var(--fg); font-weight: 600; }
.lx-plan-list li.lx-plan-inherit::before { display: none; }
.lx-plan .lx-btn { margin-top: auto; }
.lx-btn-block { width: 100%; }

.lx-plans-note { text-align: center; font-size: 13px; color: var(--muted); margin: 24px 0 0; }
.lx-enterprise { display: flex; align-items: center; justify-content: center; gap: 16px; flex-wrap: wrap; margin: 20px auto 0; text-align: center; }
.lx-enterprise p { margin: 0; font-size: 15px; color: var(--muted); }
.lx-enterprise strong { color: var(--fg); font-weight: 600; }
.lx-enterprise-cta { background: none; border: 0; padding: 0; cursor: pointer; font-family: var(--font); font-size: 15px; font-weight: 600; color: var(--fg); text-decoration: underline; text-decoration-color: rgba(250,250,250,0.3); text-underline-offset: 3px; }
.lx-enterprise-cta:hover { text-decoration-color: var(--accent-soft); }
.lx-enterprise.is-suggested { box-shadow: 0 0 0 4px rgba(251,146,60,0.18); border-radius: var(--r-tile); padding: 8px 16px; }

.lx-trustline { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px 32px; margin-top: 48px; padding-top: 32px; border-top: 1px solid var(--border-1); }
.lx-trustline span { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 500; color: var(--muted); }
.lx-trustline .lx-icon { width: 18px; height: 18px; }

.lx-compare-details { margin-top: 32px; }
.lx-compare-details > summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 8px;
  font-size: 14px; font-weight: 500; color: var(--muted); padding: 8px;
}
.lx-compare-details > summary::-webkit-details-marker { display: none; }
.lx-compare-details > summary:hover { color: var(--fg); }
.lx-compare-details[open] > summary .lx-faq-chev { transform: rotate(180deg); }
.lx-compare-details .lx-compare-wrap { margin-top: 16px; }

/* ── Guarantee ─────────────────────────────────────────────────────── */
.lx-guarantee { display: grid; grid-template-columns: 1.1fr 1fr; gap: 24px; align-items: center; padding: 48px; }
.lx-guarantee-copy { display: flex; flex-direction: column; align-items: flex-start; gap: 20px; position: relative; z-index: 1; }
.lx-guarantee .lx-illus { min-height: 380px; }
.lx-guarantee-note { margin: 0; font-size: 14px; line-height: 1.55; color: var(--muted); }

/* ── How it works: timeline ────────────────────────────────────────── */
.lx-timeline { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; position: relative; }
.lx-timeline::before {
  content: ""; position: absolute; left: 24px; right: 24px; top: 32px; height: 1px;
  background: linear-gradient(90deg, rgba(253,186,116,0.9), rgba(251,146,60,0.5) 60%, rgba(250,250,250,0.08));
  box-shadow: 0 0 12px rgba(251,146,60,0.6);
}
.lx-tl-step { position: relative; padding: 56px 24px 24px; }
.lx-tl-node {
  position: absolute; left: 24px; top: 24px; width: 17px; height: 17px; border-radius: 50%;
  background: var(--bg); border: 1px solid rgba(253,186,116,0.7); box-shadow: 0 0 12px rgba(251,146,60,0.6);
}
.lx-tl-node::after { content: ""; position: absolute; inset: 4px; border-radius: 50%; background: var(--accent-soft); }
.lx-tl-when { font-size: 12px; font-weight: 600; color: var(--accent-soft); margin-bottom: 8px; }
.lx-tl-step .lx-h3 { margin-bottom: 10px; }

/* ── Plans ─────────────────────────────────────────────────────────── */
.lx-plan { display: flex; flex-direction: column; gap: 0; min-height: 0; }
.lx-plan-price { font-size: 36px; font-weight: 600; letter-spacing: -0.04em; color: var(--fg); font-variant-numeric: tabular-nums; }
.lx-plan-per { font-size: 14px; color: var(--muted); }
.lx-plan .lx-price-body { margin-bottom: 20px; }
.lx-plan-inherit { font-size: 13px; font-weight: 600; color: var(--fg); margin: 0 0 10px; padding-top: 16px; border-top: 1px solid var(--border-1); }
.lx-plan-list { list-style: none; margin: 0 0 24px; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.lx-plan-list li { display: flex; gap: 10px; font-size: 14px; line-height: 1.5; color: var(--muted); }
.lx-plan-list li::before {
  content: ""; width: 16px; height: 16px; flex-shrink: 0; margin-top: 2px;
  background: no-repeat center/16px url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23FDBA74' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E");
}
.lx-plan .lx-btn { margin-top: auto; }
.lx-btn-block { width: 100%; }

/* Compare table */
.lx-compare-wrap { overflow-x: auto; border-radius: var(--r-tile); box-shadow: inset 0 0 0 1px var(--border-1); background: var(--surface-1); }
.lx-compare { width: 100%; min-width: 720px; border-collapse: collapse; font-size: 14px; }
.lx-compare th, .lx-compare td { padding: 14px 20px; text-align: center; border-bottom: 1px solid var(--border-1); }
.lx-compare tbody tr:last-child td, .lx-compare tbody tr:last-child th { border-bottom: 0; }
.lx-compare thead th { font-weight: 600; color: var(--fg); vertical-align: bottom; }
.lx-compare thead th span { display: block; font-size: 12px; font-weight: 500; color: var(--muted); margin-top: 4px; }
.lx-compare thead th.is-featured { color: var(--accent-soft); }
.lx-compare tbody th { text-align: left; font-weight: 500; color: var(--muted); width: 40%; }
.lx-compare .is-featured-col { background: rgba(251,146,60,0.05); }
.lx-yes { display: inline-block; width: 16px; height: 16px; vertical-align: middle;
  background: no-repeat center/16px url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23FDBA74' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E");
  filter: drop-shadow(0 0 4px rgba(251,146,60,0.6)); }
.lx-no { display: inline-block; width: 12px; height: 1px; vertical-align: middle; background: rgba(250,250,250,0.2); }


/* ── Final: inline chat with horizon glow ──────────────────────────── */
.lx-p-final { padding-bottom: 200px; }
.lx-p-final-cta { margin-top: 32px; align-items: center; justify-content: center; }
.lx-p-final-cta .lx-body { margin: 0; }

/* ── Review form (modal), dark ─────────────────────────────────────── */
#setup-review-overlay {
  position: fixed; inset: 0; background: rgba(9,9,11,0.72); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  display: flex; align-items: center; justify-content: center; padding: 24px; z-index: 1000;
  opacity: 0; visibility: hidden; transition: opacity 0.2s ease-out, visibility 0s linear 0.2s;
}
#setup-review-overlay.is-open { opacity: 1; visibility: visible; transition: opacity 0.2s ease-out; }
#setup-review-modal {
  position: relative; width: 100%; max-width: 720px; max-height: 90vh; padding: 36px 40px 28px;
  display: flex; flex-direction: column; overflow: hidden; border-radius: var(--r-frame);
  background: radial-gradient(120% 40% at 50% 0%, rgba(251,146,60,0.16), transparent 70%), #0F0F12;
  box-shadow: inset 0 0 0 1px var(--border-2), inset 0 1px 0 rgba(253,186,116,0.5), 0 40px 80px rgba(0,0,0,0.6);
  transform: scale(0.96) translateY(8px); transition: transform 0.2s ease-out;
}
#setup-review-overlay.is-open #setup-review-modal { transform: scale(1) translateY(0); }
#sr-form-view, #sr-success-view { transition: opacity 0.15s ease-out; }
#sr-form-view.sr-fading-out, #sr-success-view.sr-fading-in-start { opacity: 0; }
#sr-scroll { overflow-y: auto; padding-right: 4px; color-scheme: dark; scrollbar-width: thin; scrollbar-color: rgba(250,250,250,0.16) transparent; }
/* WebKit/Blink fallback: no white track, no arrow buttons, a slim dim thumb. */
#sr-scroll::-webkit-scrollbar { width: 6px; background: transparent; }
#sr-scroll::-webkit-scrollbar-track { background: transparent; }
#sr-scroll::-webkit-scrollbar-button { display: none; width: 0; height: 0; }
#sr-scroll::-webkit-scrollbar-thumb { background: rgba(250,250,250,0.16); border-radius: 9999px; }
#sr-scroll::-webkit-scrollbar-thumb:hover { background: rgba(250,250,250,0.28); }
#sr-close {
  position: absolute; top: 14px; right: 14px; width: 32px; height: 32px; display: flex; align-items: center; justify-content: center;
  background: none; border: none; border-radius: var(--r-btn); cursor: pointer; color: var(--muted); transition: background 0.15s, color 0.15s;
}
#sr-close:hover { background: var(--surface-2); color: var(--fg); }
.sr-eyebrow { font-size: 13px; font-weight: 600; color: var(--accent-soft); margin-bottom: 12px; }
.sr-title { font-size: 36px; font-weight: 600; letter-spacing: -0.03em; line-height: 1.05; color: var(--fg); margin: 0 0 12px; max-width: 600px; text-wrap: balance; }
.sr-sub { font-size: 17px; line-height: 1.5; color: var(--muted); margin: 0 0 20px; max-width: 520px; text-wrap: pretty; }
.sr-calc-line { display: none; font-size: 13px; color: var(--accent-soft); margin: 0 0 20px; }
.sr-calc-line.is-visible { display: block; }
.sr-field { margin-bottom: 16px; }
.sr-label { display: block; font-size: 14px; font-weight: 600; color: var(--fg); margin-bottom: 8px; }
.sr-input, .sr-textarea {
  width: 100%; height: 48px; padding: 0 14px; border-radius: var(--r-btn);
  background: var(--surface-2); border: 1px solid var(--border-2); color: var(--fg);
  font-family: var(--font); font-size: 15px; transition: border-color 0.15s, box-shadow 0.15s;
}
.sr-textarea { height: 160px; padding: 12px 14px; line-height: 1.5; resize: none; }
.sr-input::placeholder, .sr-textarea::placeholder { color: var(--muted); opacity: 0.8; }
.sr-input:focus, .sr-textarea:focus { outline: none; border-color: rgba(253,186,116,0.6); box-shadow: 0 0 0 3px rgba(251,146,60,0.2); }
.sr-input.sr-error, .sr-textarea.sr-error { border-color: rgba(248,113,113,0.7); }
.sr-attach-row { margin-top: 8px; }
.sr-attach-link { background: none; border: none; padding: 0; cursor: pointer; font-family: var(--font); font-size: 14px; font-weight: 500; color: var(--accent-soft); }
.sr-attach-link:hover { text-decoration: underline; text-underline-offset: 3px; }
.sr-attach-link .sr-optional { color: var(--muted); font-weight: 400; margin-left: 6px; }
.sr-attach-selected { font-size: 14px; color: var(--muted); display: none; align-items: center; gap: 10px; }
.sr-attach-remove { background: none; border: none; padding: 0; cursor: pointer; font-size: 13px; color: var(--muted); text-decoration: underline; text-underline-offset: 3px; }
.sr-attach-error, .sr-form-error { font-size: 13px; color: var(--danger); margin-top: 6px; display: none; }
.sr-form-error { font-size: 14px; margin: 0 0 16px; }
.sr-attach-error.is-visible, .sr-form-error.is-visible { display: block; }
.sr-submit {
  width: 100%; height: 48px; border-radius: var(--r-btn); border: 0; margin-top: 4px; cursor: pointer;
  background: var(--grad-primary); color: var(--on-light); box-shadow: var(--shadow-btn);
  font-family: var(--font); font-size: 15px; font-weight: 500; transition: background 0.15s, box-shadow 0.15s;
}
.sr-submit:hover:not(:disabled) { background: var(--fg); box-shadow: var(--shadow-btn), 0 0 24px rgba(251,146,60,0.25); }
.sr-submit:disabled { opacity: 0.7; cursor: default; }
.sr-reassure { font-size: 13px; line-height: 1.55; color: var(--muted); margin-top: 12px; text-align: center; }
.sr-reassure-meta { font-size: 12px; color: var(--muted); margin-top: 6px; text-align: center; opacity: 0.85; }
.sr-success { text-align: center; padding: 12px 0 4px; display: none; }
.sr-success-headline { font-size: 28px; font-weight: 600; letter-spacing: -0.02em; color: var(--fg); margin: 0 0 16px; }
.sr-success-body { font-size: 16px; line-height: 1.55; color: var(--muted); margin: 0 auto 28px; max-width: 480px; text-wrap: pretty; }
.sr-success-secondary { font-size: 13px; color: var(--muted); margin-top: 12px; }

/* ── Responsive ────────────────────────────────────────────────────── */
@media (max-width: 1100px) {
  .lx-guarantee { grid-template-columns: 1fr; padding: 32px; }
  .lx-guarantee .lx-illus { min-height: 320px; }
}
@media (max-width: 900px) {
  .lx-plan-grid { grid-template-columns: 1fr; max-width: 480px; }
  .lx-pr { padding-top: calc(68px + 40px); }
  .lx-timeline { grid-template-columns: 1fr; }
  .lx-timeline::before { left: 32px; right: auto; top: 24px; bottom: 24px; width: 1px; height: auto;
    background: linear-gradient(180deg, rgba(253,186,116,0.9), rgba(251,146,60,0.5) 60%, rgba(250,250,250,0.08)); }
  .lx-tl-step { padding: 20px 20px 20px 64px; }
  .lx-tl-node { left: 24px; top: 24px; }
    .lx-p-final { padding-bottom: 140px; }
}
@media (max-width: 560px) {
  .lx-audience-label { width: 100%; text-align: center; }
  .lx-audience-opt { padding: 8px 16px; }
}
@media (max-width: 700px) {
  /* The plan cards already list every feature; a 5-column table does not fit a phone. */
  .lx-compare-head, .lx-compare-wrap { display: none; }
  #setup-review-overlay { align-items: flex-end; padding: 8px; }
  #setup-review-modal { max-width: none; width: 100%; max-height: calc(100vh - 16px); padding: 28px 20px 20px; }
  .sr-title { font-size: 28px; }
  .sr-sub { font-size: 15px; }
}
