/* ==========================================================================
   Toral Panel — public home page (Frontend\Landing)
   --------------------------------------------------------------------------
   Built on the Userside theme tokens (toral-userside-tokens.css) and on top
   of the sign-in page's own layers (toral-userside-auth.css): the public
   header, the sign-in card and the animated background are theirs and are
   not restyled here, except for where they sit.

   Performance rules, the same as the sign-in background's:
   - only `transform` / `opacity` are animated;
   - no blur filters, no backdrop-filter, no web fonts of its own, no images
     except the platform logos (lazy);
   - everything stops under prefers-reduced-motion.
   ========================================================================== */

.lp { display: block; }
.lp *, .lp *::before, .lp *::after { box-sizing: border-box; }
.lp-wrap { max-width: 1200px; margin: 0 auto; padding: 0 18px; }

/* --------------------------------------------------------------------------
   1. Hero
   The sign-in page's background layer fills the hero instead of the window,
   and its waves are taller so they rise to the middle of the card.
   -------------------------------------------------------------------------- */
.lp-hero { position: relative; overflow: hidden; padding: 40px 0 150px; color: var(--tp-us-text); }
.lp-hero .tp-authbg { position: absolute; inset: 0; }
.lp-hero .tp-authbg-wave { height: 76%; min-height: 0; }
.lp-hero .tp-authbg-line { height: 88%; min-height: 0; }

/* the waves end in the page colour instead of a hard edge */
.lp-hero-fade {
  position: absolute; left: 0; right: 0; bottom: 0; height: 22%; z-index: 1; pointer-events: none;
  background: linear-gradient(to bottom, transparent, var(--tp-us-app-bg));
}

.lp-hero-grid {
  position: relative; z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
  grid-template-areas: "badge form" "text form";
  column-gap: 44px;
  align-items: start;
}
.lp-hero-badge { grid-area: badge; align-self: end; }
.lp-hero-text  { grid-area: text; }
.lp-hero-form  { grid-area: form; align-self: center; scroll-margin-top: 16px; }

/* The header above already shows the logo, so the card's own logo is not
   repeated here. The card itself is untouched. */
.lp-hero .tp-auth-brand { display: none; }
.lp-hero .tp-auth { margin: 0; max-width: 440px; }

.lp-badge {
  display: inline-flex; gap: 8px; align-items: center;
  padding: 5px 14px; border-radius: var(--tp-us-radius-pill, 999px);
  background: var(--tp-us-surface); border: 1px solid var(--tp-us-border); color: var(--tp-us-text);
  font-size: 13.5px; font-weight: 600; box-shadow: 0 6px 18px rgba(0, 0, 0, .06);
}
.lp-badge i { width: 8px; height: 8px; border-radius: 50%; background: #10b981; box-shadow: 0 0 8px #10b981; flex: none; }

.lp-h1 { margin: 14px 0 10px; line-height: 1.35; }
.lp-h1 small  { display: block; margin-bottom: 6px; font-size: 16px; font-weight: 700; color: var(--tp-us-b-600); }
.lp-h1 strong { display: block; font-size: 46px; font-weight: 800; color: var(--tp-us-b-800); }
/* the orange of the logo */
.lp-h1 em     { display: block; margin-top: 6px; font-style: normal; font-size: 24px; font-weight: 800; color: #fa8400; }

.lp-lead { max-width: 540px; margin: 0; color: var(--tp-us-text-soft); font-size: 16.5px; line-height: 1.85; }

.lp-ticks {
  list-style: none; padding: 0; margin: 22px 0 26px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 10px 18px;
  font-size: 14.5px; font-weight: 600; color: var(--tp-us-text);
}
.lp-ticks li { display: flex; gap: 9px; align-items: center; }
.lp-ticks li::before {
  content: "✓"; flex: none; display: grid; place-items: center;
  width: 22px; height: 22px; border-radius: 50%;
  background: color-mix(in srgb, #10b981 16%, #fff); color: #059669; font-size: 12px; font-weight: 800;
}

.lp-cta { display: flex; gap: 10px; flex-wrap: wrap; }
.lp-cta .tp-btn { min-height: 46px; padding-inline: 22px; font-size: 14.5px; }

/* --------------------------------------------------------------------------
   2. Numbers
   -------------------------------------------------------------------------- */
.lp-stats { position: relative; z-index: 3; margin-top: -92px; }
.lp-stats-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); overflow: hidden;
  background: var(--tp-us-surface); border-radius: 18px; box-shadow: 0 18px 40px rgba(0, 26, 153, .12);
}
.lp-stat { padding: 22px 12px; text-align: center; border-inline-start: 1px solid var(--tp-us-border); }
.lp-stat:first-child { border-inline-start: 0; }
.lp-stat b { display: block; font-size: 30px; font-weight: 800; line-height: 1.5; color: var(--tp-us-b-700); }
.lp-stat span { color: var(--tp-us-text-soft); font-size: 13.5px; }

/* --------------------------------------------------------------------------
   3. Sections
   -------------------------------------------------------------------------- */
.lp-sec { padding: 76px 0 0; }
.lp-head { max-width: 700px; margin: 0 auto 38px; text-align: center; }
.lp-head small { color: var(--tp-us-b-600); font-weight: 700; font-size: 13.5px; }
.lp-head h2 { margin: 6px 0 8px; font-size: 29px; line-height: 1.6; color: var(--tp-us-text); }
.lp-head p { margin: 0; color: var(--tp-us-text-soft); }

/* features: one soft colour per box */
.lp-feat { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.lp-f {
  --c: var(--tp-us-b-600);
  padding: 22px; border-radius: 18px;
  background: color-mix(in srgb, var(--c) 6%, #fff);
  border: 1px solid color-mix(in srgb, var(--c) 28%, #fff);
  transition: transform .2s, box-shadow .2s;
}
.lp-f:hover { transform: translateY(-4px); box-shadow: 0 14px 30px color-mix(in srgb, var(--c) 18%, transparent); }
.lp-ico {
  width: 48px; height: 48px; margin-bottom: 12px; border-radius: 14px;
  display: grid; place-items: center;
  background: color-mix(in srgb, var(--c) 14%, #fff); color: var(--c);
}
.lp-ico svg { width: 25px; height: 25px; }
.lp-f h3 { margin: 0 0 6px; font-size: 17px; color: var(--tp-us-text); }
.lp-f p { margin: 0; color: var(--tp-us-text-soft); font-size: 14px; line-height: 1.85; }
.c-green { --c: #10b981; } .c-blue { --c: var(--tp-us-b-600); } .c-amber { --c: #f59e0b; }
.c-violet { --c: #8b5cf6; } .c-teal { --c: #14b8a6; } .c-pink { --c: #ec4899; }
.c-indigo { --c: #6366f1; } .c-sky { --c: #0ea5e9; } .c-orange { --c: #f97316; }

/* how to buy: ring + live card */
.lp-how { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 36px; align-items: center; }
.lp-ring { width: 100%; max-width: 460px; margin: 0 auto; }
.lp-ring-svg { display: block; width: 100%; height: auto; overflow: hidden; }
.lp-ring-svg text { font-family: var(--tp-us-font); }
.lp-seg-n { font-size: 12px; font-weight: 700; opacity: .8; }
.lp-seg-t { font-size: 17px; font-weight: 800; }
.lp-seg-s { font-size: 12px; font-weight: 500; opacity: .92; }
.lp-ring-c1 { font-size: 15px; font-weight: 600; fill: var(--tp-us-text-soft); }
.lp-ring-c2 { font-size: 25px; font-weight: 800; fill: var(--tp-us-b-800); }

.lp-live {
  width: 100%; max-width: 470px; margin: 0 auto; padding: 22px;
  background: var(--tp-us-surface); border: 1px solid var(--tp-us-border); border-radius: 22px;
  box-shadow: 0 18px 40px rgba(0, 26, 153, .10);
}
.lp-live-h { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.lp-live-h b { font-size: 16px; }
.lp-dot { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 700; color: #0a8f5f; }
.lp-dot::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #10b981; animation: lp-pulse 1.6s ease-in-out infinite; }
@keyframes lp-pulse { 50% { opacity: .25; } }
.lp-order { display: flex; gap: 12px; align-items: center; padding: 14px; border-radius: 14px; background: var(--tp-us-app-bg); }
.lp-order img { width: 40px; height: 40px; flex: none; }
.lp-order-m { flex: 1; min-width: 0; }
.lp-order-m b, .lp-order-m span { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lp-order-m b { font-size: 14.5px; }
.lp-order-m span { font-size: 12.5px; color: var(--tp-us-text-soft); text-align: start; }
[dir="rtl"] .lp-order-m span { text-align: right; }
.lp-pill { position: relative; flex: none; width: 104px; height: 28px; }
.lp-pill i {
  position: absolute; inset: 0; border-radius: 99px; opacity: 0;
  font: 700 12px/28px var(--tp-us-font); font-style: normal; text-align: center;
  animation: lp-status 9s infinite;
}
.lp-pill i:nth-child(1) { background: #fff3d6; color: #a16207; animation-delay: 0s; }
.lp-pill i:nth-child(2) { background: #dbe4ff; color: var(--tp-us-b-700); animation-delay: 3s; }
.lp-pill i:nth-child(3) { background: #d6f5e8; color: #047857; animation-delay: 6s; }
@keyframes lp-status { 0%, 30% { opacity: 1; } 33.4%, 100% { opacity: 0; } }
.lp-bar { height: 10px; margin: 16px 0 8px; border-radius: 99px; background: #e6eaf8; overflow: hidden; }
.lp-bar i {
  display: block; width: 100%; height: 100%; border-radius: 99px; transform-origin: right;
  background: linear-gradient(90deg, var(--tp-us-cyan), var(--tp-us-b-600));
  animation: lp-fill 9s ease-in-out infinite;
}
[dir="ltr"] .lp-bar i { transform-origin: left; }
@keyframes lp-fill { 0%, 8% { transform: scaleX(.02); } 33% { transform: scaleX(.15); } 62% { transform: scaleX(.7); } 66.6%, 100% { transform: scaleX(1); } }
.lp-live-row { display: flex; justify-content: space-between; gap: 10px; font-size: 12.5px; color: var(--tp-us-text-soft); }
.lp-live-feed { margin-top: 16px; display: grid; gap: 8px; }
.lp-live-feed > div {
  display: flex; gap: 10px; align-items: center; padding: 9px 12px;
  border: 1px solid var(--tp-us-border); border-radius: 12px; font-size: 13px;
}
.lp-live-feed img, .lp-feed-ico svg { width: 22px; height: 22px; flex: none; }
.lp-feed-ico { color: #14b8a6; display: inline-flex; }
.lp-live-feed small { margin-inline-start: auto; color: var(--tp-us-text-dim, #8a91ad); font-size: 11.5px; white-space: nowrap; }

/* platforms */
/* flex, not grid: a short last row is centred instead of hanging at the start */
.lp-plats { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }
.lp-p {
  flex: 0 1 172px; min-width: 0;
  display: block; padding: 18px 10px 16px; text-align: center; text-decoration: none; color: inherit;
  background: var(--tp-us-surface); border: 1px solid var(--tp-us-border); border-radius: 16px;
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
.lp-p:hover { transform: translateY(-4px); box-shadow: 0 14px 28px rgba(0, 26, 153, .10); border-color: var(--tp-us-b-400); color: inherit; text-decoration: none; }
.lp-p img { display: block; width: 48px; height: 48px; margin: 0 auto 8px; }
.lp-p b { display: block; font-size: 14.5px; }
.lp-p small { display: block; font-size: 12px; color: var(--tp-us-text-soft); }
.lp-price {
  display: inline-block; margin-top: 8px; padding: 3px 10px; border-radius: 99px;
  background: color-mix(in srgb, #10b981 12%, #fff); color: #047857; font-size: 12.5px; font-weight: 700;
}
.lp-price--plain { background: color-mix(in srgb, var(--tp-us-b-600) 10%, #fff); color: var(--tp-us-b-700); }

/* comparison */
.lp-cmp { max-width: 880px; margin: 0 auto; overflow: hidden; background: var(--tp-us-surface); border-radius: 18px; box-shadow: 0 18px 40px rgba(0, 26, 153, .08); }
.lp-cmp table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.lp-cmp th, .lp-cmp td { padding: 13px 16px; border-bottom: 1px solid var(--tp-us-border); text-align: center; }
.lp-cmp tbody th { text-align: start; font-weight: 500; }
.lp-cmp thead th { background: var(--tp-us-app-bg); }
.lp-cmp thead th.us { background: var(--tp-us-b-600); color: #fff; }
.lp-cmp tr:last-child th, .lp-cmp tr:last-child td { border-bottom: 0; }
.lp-cmp .y { color: #059669; font-weight: 800; }
.lp-cmp .n { color: #dc2626; font-weight: 800; }

/* API band */
.lp-band {
  display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: 30px; align-items: center;
  padding: 42px; border-radius: 26px; color: #fff;
  background: linear-gradient(135deg, var(--tp-us-b-800), var(--tp-us-b-700));
}
.lp-band h2 { margin: 0 0 8px; font-size: 26px; color: #fff; }
.lp-band p { margin: 0; color: rgba(255, 255, 255, .85); }
.lp-band .lp-band-cta { margin-top: 18px; }
.lp-code {
  padding: 16px; border-radius: 14px; background: rgba(0, 0, 0, .28); color: #b9c6ff;
  font: 13px/1.9 Consolas, "Courier New", monospace; text-align: left; overflow-wrap: anywhere;
}
.lp-code b { color: #ffd166; font-weight: 400; }
.lp-btn-light {
  display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 0 22px;
  border-radius: var(--tp-us-radius-md, 10px); background: #fff; color: var(--tp-us-b-700);
  font-weight: 700; font-size: 14.5px; text-decoration: none; transition: transform .15s;
}
.lp-btn-light:hover { transform: translateY(-2px); color: var(--tp-us-b-700); text-decoration: none; }

/* reviews */
.lp-rev { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.lp-r { position: relative; margin: 0; padding: 22px; background: var(--tp-us-surface); border: 1px solid var(--tp-us-border); border-radius: 18px; }
.lp-r::before {
  content: "\201D"; position: absolute; top: 2px; inset-inline-start: 16px;
  font: 64px/1 Georgia, serif; color: color-mix(in srgb, var(--tp-us-b-600) 18%, #fff);
}
.lp-r blockquote { margin: 18px 0 14px; font-size: 14.5px; line-height: 1.9; color: var(--tp-us-text); }
.lp-r figcaption { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--tp-us-text-soft); }
.lp-r figcaption b { display: block; font-size: 14px; color: var(--tp-us-text); }
.lp-av {
  width: 36px; height: 36px; flex: none; border-radius: 50%; display: grid; place-items: center;
  font-weight: 800; color: #fff; background: linear-gradient(135deg, var(--tp-us-b-500), var(--tp-us-cyan));
}

/* FAQ */
.lp-faq { max-width: 840px; margin: 0 auto; display: grid; gap: 10px; }
.lp-faq details { padding: 2px 18px; background: var(--tp-us-surface); border: 1px solid var(--tp-us-border); border-radius: 14px; }
.lp-faq summary { display: flex; justify-content: space-between; gap: 10px; padding: 13px 0; font-weight: 700; cursor: pointer; list-style: none; }
.lp-faq summary::-webkit-details-marker { display: none; }
.lp-faq summary::after { content: "+"; flex: none; color: var(--tp-us-b-600); font-size: 22px; line-height: 1; }
.lp-faq details[open] summary::after { content: "\2013"; }
.lp-faq p { margin: 0 0 14px; color: var(--tp-us-text-soft); font-size: 14.5px; line-height: 1.9; }

/* closing call to action */
.lp-final {
  padding: 46px 24px; text-align: center; color: #fff; border-radius: 26px;
  background: linear-gradient(135deg, var(--tp-us-b-600), var(--tp-us-b-500));
}
.lp-final h2 { margin: 0 0 6px; font-size: 29px; color: #fff; }
.lp-final p { margin: 0 0 20px; color: rgba(255, 255, 255, .88); }

/* --------------------------------------------------------------------------
   4. Footer
   -------------------------------------------------------------------------- */
.lp-foot { margin-top: 76px; padding: 46px 0 22px; background: var(--tp-us-chrome-bg); color: rgba(255, 255, 255, .78); font-size: 14px; }
.lp-foot-cols { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 26px; }
.lp-foot h4 { margin: 0 0 10px; font-size: 15px; color: #fff; }
.lp-foot p { margin: 0; line-height: 1.9; }
.lp-foot ul { list-style: none; margin: 0; padding: 0; }
.lp-foot li { margin: 7px 0; }
.lp-foot a { color: inherit; text-decoration: none; }
.lp-foot a:hover { color: #fff; }
.lp-foot-logo { display: block; height: 34px; width: auto; margin-bottom: 12px; }
.lp-soc { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.lp-soc a {
  width: 40px; height: 40px; display: grid; place-items: center; border-radius: 12px;
  background: rgba(255, 255, 255, .12); color: #fff; transition: background .2s;
}
.lp-soc a:hover { background: rgba(255, 255, 255, .22); }
.lp-enamad { display: inline-block; padding: 6px; border-radius: 14px; background: #fff; }
.lp-enamad img { display: block; width: 110px; height: auto; cursor: pointer; }
.lp-copy { margin-top: 28px; padding-top: 16px; border-top: 1px solid rgba(255, 255, 255, .14); text-align: center; font-size: 12.5px; }

/* --------------------------------------------------------------------------
   5. Motion off when asked
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  .lp-dot::before, .lp-pill i, .lp-bar i { animation: none !important; }
  .lp-pill i:nth-child(3) { opacity: 1; }
  .lp-bar i { transform: none; }
  .lp-f, .lp-p, .lp-btn-light { transition: none; }
}

/* --------------------------------------------------------------------------
   6. Smaller screens
   -------------------------------------------------------------------------- */
@media (max-width: 920px) {
  .lp-hero { padding: 22px 0 130px; }
  .lp-hero-grid { grid-template-columns: minmax(0, 1fr); grid-template-areas: "badge" "form" "text"; row-gap: 18px; }
  .lp-hero-badge { align-self: start; text-align: center; }
  .lp-hero-form { justify-self: center; width: 100%; }
  .lp-hero .tp-auth { margin-inline: auto; }
  .lp-hero-text { text-align: center; }
  .lp-lead { margin-inline: auto; }
  .lp-h1 small { font-size: 14px; } .lp-h1 strong { font-size: 34px; } .lp-h1 em { font-size: 19px; }
  .lp-ticks { grid-template-columns: 1fr; max-width: 330px; margin-inline: auto; text-align: start; }
  .lp-cta { justify-content: center; }
  .lp-cta .tp-btn { flex: 1 1 100%; }
  /* the card comes first on a phone, so the waves sit lower, behind it */
  .lp-hero .tp-authbg-wave { height: 60%; } .lp-hero .tp-authbg-line { height: 70%; }

  .lp-feat { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lp-how { grid-template-columns: minmax(0, 1fr); }
  .lp-rev { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 860px) {
  .lp-band { grid-template-columns: minmax(0, 1fr); padding: 26px; }
}

@media (max-width: 760px) {
  .lp-stats-grid { grid-template-columns: 1fr 1fr; }
  .lp-stat:nth-child(3) { border-inline-start: 0; }
  .lp-stat:nth-child(n+3) { border-top: 1px solid var(--tp-us-border); }
  .lp-foot-cols { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 600px) {
  .lp-sec { padding-top: 56px; }
  .lp-head { margin-bottom: 26px; }
  .lp-head h2, .lp-final h2 { font-size: 23px; }
  .lp-band h2 { font-size: 22px; }
  .lp-final { padding: 34px 18px; }
  .lp-band .lp-btn-light { width: 100%; }
  .lp-feat, .lp-rev { grid-template-columns: minmax(0, 1fr); }
  .lp-p { flex-basis: calc(50% - 7px); }
  .lp-live { padding: 16px; }
  .lp-pill { width: 96px; }
  .lp-cmp table { font-size: 13px; }
  .lp-cmp th, .lp-cmp td { padding: 10px 8px; }
  .lp-cmp tbody th { width: 44%; }
}

@media (max-width: 420px) {
  .lp-badge { font-size: 12.5px; padding: 5px 10px; }
}
