/* JALETWEAKS theme layer – loaded after app.css */

/* ---- Brand palette: Blue Violet #8A2BE2 ----------------------------------
   The original build used Tailwind's blue / cyan / indigo / sky / slate scales.
   Re-pointing those variables recolours every utility class at once. */
:root {
  --jale-brand: #8a2be2;

  --color-blue-200: #e3d0fb;
  --color-blue-300: #cdb0f7;
  --color-blue-400: #b583f2;
  --color-blue-500: #9d55ec;
  --color-blue-600: #8a2be2;   /* Blue Violet – buttons, accents */
  --color-blue-700: #7322c0;
  --color-blue-950: #1b0a36;

  --color-cyan-200: #e6d4fc;
  --color-cyan-300: #d9bcfa;
  --color-cyan-400: #c58bf7;
  --color-cyan-500: #b06af2;
  --color-cyan-600: #9a4ce6;
  --color-cyan-900: #3a1a66;
  --color-cyan-950: #240f45;

  --color-indigo-300: #c4b0f8;
  --color-indigo-400: #9f86f0;
  --color-indigo-500: #7c5ce6;
  --color-indigo-950: #17103a;

  --color-sky-100: #f2eaff;
  --color-sky-200: #e6d6fd;
  --color-sky-400: #b98bf5;
  --color-sky-900: #351a5f;

  /* neutral greys get a faint violet cast instead of blue */
  --color-slate-200: oklch(92.9% .013 295);
  --color-slate-300: oklch(86.9% .022 295);
  --color-slate-400: oklch(70.4% .04 295);
  --color-slate-500: oklch(55.4% .046 295);
  --color-slate-600: oklch(44.6% .043 295);
  --color-slate-700: oklch(37.2% .044 295);
  --color-slate-800: oklch(27.9% .041 295);
  --color-slate-900: oklch(20.8% .042 295);
  --color-slate-950: oklch(12.9% .042 295);
}

html { scroll-behavior: smooth; }
section[id], div[id="home"] { scroll-margin-top: 120px; }

/* ---- Pricing cards ---------------------------------------------------- */
.jale-plans {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.5rem;
  align-items: stretch;
  max-width: 28rem;
  margin: 0 auto;
}
@media (min-width: 1024px) {
  .jale-plans { grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: none; }
  .jale-lift { translate: 0 -0.5rem; }
}
.jale-pricemeta {
  display: flex; justify-content: flex-end; align-items: center; gap: .4rem;
  margin-top: .45rem;
}
.jale-off {
  font: 800 11px/1 ui-monospace, SFMono-Regular, Menlo, monospace;
  padding: .3rem .45rem; border-radius: .4rem;
  color: #fff; background: var(--jale-brand);
  box-shadow: 0 0 12px rgba(138, 43, 226, .55);
}
.jale-tag {
  font: 800 10px/1 var(--font-sans, system-ui), sans-serif; letter-spacing: .08em;
  padding: .3rem .45rem; border-radius: .4rem;
  color: #e3d0fb; border: 1px solid rgba(181, 131, 242, .45); background: rgba(138, 43, 226, .14);
}
.jale-plan-sub {
  font-size: .75rem; color: var(--color-slate-400); margin: -.25rem 0 .75rem;
}

/* ---- FAQ accordion ---------------------------------------------------- */
.jale-faq-answer { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .3s ease; }
.jale-faq-answer > div { overflow: hidden; min-height: 0; }
.jale-faq-item.open { background: #0e0a18; border-color: rgba(138, 43, 226, .55); box-shadow: 0 10px 25px rgba(0, 0, 0, .5); }
.jale-faq-item.open .jale-faq-answer { grid-template-rows: 1fr; }
.jale-faq-chev { transition: transform .3s ease, color .2s; }
.jale-faq-item.open .jale-faq-chev { transform: rotate(180deg); color: var(--color-blue-400); border-color: rgba(138, 43, 226, .4); }
.jale-faq-item button:focus-visible,
button:focus-visible, a:focus-visible { outline: 2px solid var(--color-blue-400); outline-offset: 2px; }

/* ---- Mobile menu (open state) ----------------------------------------- */
#mobile-menu.is-open { opacity: 1 !important; translate: 0 0 !important; pointer-events: auto !important; }

/* ---- Dashboard demo: "tweaks off" state ------------------------------- */
#dashboard-preview.tweaks-off .tabular-nums,
#dashboard-preview.tweaks-off [class*="font-mono"] { filter: saturate(.4); }

/* ---- Toast ------------------------------------------------------------ */
#jale-toast {
  position: fixed; left: 50%; bottom: 1.5rem; transform: translate(-50%, 1rem);
  background: #14091f; color: #fff; border: 1px solid rgba(138, 43, 226, .6);
  padding: .7rem 1.1rem; border-radius: .75rem; font-size: .85rem; font-weight: 600;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .6), 0 0 20px rgba(138, 43, 226, .35);
  opacity: 0; pointer-events: none; transition: opacity .25s, transform .25s; z-index: 100;
}
#jale-toast.show { opacity: 1; transform: translate(-50%, 0); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .jale-faq-answer, .jale-faq-chev, #jale-toast { transition: none; }
}


/* ---- Free download banner (under the paid packages) -------------------- */
.jale-free {
  display: flex; align-items: center; gap: 1.5rem;
  margin: 2.5rem auto 0; padding: 1.6rem 1.75rem;
  border-radius: 1.25rem; border: 1px solid rgba(255, 255, 255, .1);
  background: linear-gradient(135deg, rgba(27, 14, 38, .85), rgba(12, 8, 16, .9));
  box-shadow: 0 18px 50px rgba(0, 0, 0, .45);
  transition: border-color .3s ease, box-shadow .3s ease;
}
@media (hover: hover) {
  .jale-free:hover { border-color: rgba(181, 131, 242, .45); box-shadow: 0 20px 60px rgba(0, 0, 0, .55), 0 0 40px rgba(138, 43, 226, .16); }
}
.jale-free__icon {
  flex: none; width: 3.4rem; height: 3.4rem; display: grid; place-items: center;
  border-radius: .95rem; color: var(--color-cyan-400);
  background: rgba(138, 43, 226, .12); border: 1px solid rgba(181, 131, 242, .35);
  box-shadow: inset 0 0 20px rgba(138, 43, 226, .15);
}
.jale-free__body { flex: 1 1 auto; min-width: 0; }
.jale-free__head { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem .75rem; margin-bottom: .55rem; }
.jale-free__head h3 {
  margin: 0; color: #fff; font-weight: 900; font-size: 1.05rem; letter-spacing: -.01em; text-transform: uppercase; line-height: 1.2;
}
.jale-free__badge {
  display: inline-flex; align-items: center; gap: .35rem;
  padding: .28rem .65rem; border-radius: 999px;
  font: 800 11px/1 var(--font-sans, system-ui), sans-serif; letter-spacing: .04em;
  color: #34d399; background: rgba(16, 185, 129, .12); border: 1px solid rgba(16, 185, 129, .45);
}
.jale-free__body p { margin: 0 0 .7rem; max-width: 46rem; font-size: .92rem; line-height: 1.55; color: var(--color-slate-300); }
.jale-free__meta { display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; font-size: .72rem; color: var(--color-slate-400); }
.jale-free__meta span { display: inline-flex; align-items: center; gap: .4rem; }
.jale-free__ok svg { color: #34d399; }
.jale-free__cta { flex: none; display: flex; flex-direction: column; align-items: center; gap: .55rem; }
.jale-free__cta small { font: 500 10px/1.2 ui-monospace, SFMono-Regular, Menlo, monospace; color: var(--color-slate-500); text-align: center; }
@media (max-width: 820px) {
  .jale-free { flex-direction: column; align-items: stretch; text-align: left; padding: 1.35rem; gap: 1.1rem; max-width: 28rem; }
  .jale-free__icon { width: 3rem; height: 3rem; }
  .jale-free__cta { align-items: stretch; }
  .jale-free__cta .jale-btn { width: 100%; }
}

/* ---- Hero: free boost button + phone tuning ---------------------------- */
.jale-btn--free {
  color: #6ee7b7; background: rgba(16, 185, 129, .1); border: 1px solid rgba(16, 185, 129, .5);
  box-shadow: 0 8px 24px rgba(16, 185, 129, .12);
}
@media (hover: hover) {
  .jale-btn--free:hover { background: rgba(16, 185, 129, .2); border-color: rgba(52, 211, 153, .85); box-shadow: 0 14px 34px rgba(16, 185, 129, .25); }
}
.jale-hero-cta { flex-wrap: wrap !important; }
@media (max-width: 639px) {
  .jale-hero-cta .jale-btn { min-height: 54px; padding: .9rem 1.1rem; font-size: .78rem; }
  .jale-btn { white-space: normal; text-align: center; }
  .jale-free__head h3 { font-size: .95rem; }
  .jale-free__body p { font-size: .85rem; }
  .jale-free__meta { flex-direction: column; gap: .4rem; }
  .jale-free__cta small { font-size: 9.5px; }
}
@media (max-width: 380px) {
  .jale-btn { letter-spacing: .08em; }
}

/* ---- Free download: dark blue accent ----------------------------------- */
.jale-btn--blue {
  color: #fff; border: 1px solid rgba(96, 140, 255, .45);
  background: linear-gradient(135deg, #1d4ed8, #1e3a8a 60%, #172554);
  box-shadow: 0 12px 30px rgba(30, 64, 175, .45), inset 0 1px 0 rgba(255, 255, 255, .18);
}
.jale-btn--blue::after {
  content: ""; position: absolute; inset: 0; transform: translateX(-130%) skewX(-22deg);
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .22), transparent);
}
@media (hover: hover) {
  .jale-btn--blue:hover { box-shadow: 0 18px 44px rgba(37, 99, 235, .5), inset 0 1px 0 rgba(255, 255, 255, .25); border-color: rgba(147, 180, 255, .7); }
  .jale-btn--blue:hover::after { transform: translateX(130%) skewX(-22deg); transition: transform .8s ease; }
}
