/* =====================================================================
   Landing page.

   Loaded only by this page, so nothing here reaches the application. It
   shares the sign-in screen's palette and its drifting orbs so the two
   read as one product.
   ===================================================================== */

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
img { max-width: 100%; }
html { scroll-behavior: smooth; }

.lp {
  --ink:      #0b1f33;
  --ink-2:    #10364a;
  --accent:   #14b8a6;
  --accent-2: #0f766e;
  --text:     #0f172a;
  --muted:    #64748b;
  --line:     #e2e8f0;
  --paper:    #ffffff;
  --tint:     #f8fafc;

  font-family: "Segoe UI", system-ui, -apple-system, Helvetica, Arial, sans-serif;
  color: var(--text);
  background: var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.lp-wrap { max-width: 1120px; margin: 0 auto; padding: 0 1.25rem; }

/* ---------------------------------------------------------------- top bar */
.lp-nav {
  position: sticky; top: 0; z-index: 20;
  background: rgba(11, 31, 51, .92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}
.lp-nav .lp-wrap { display: flex; align-items: center; gap: 1rem; height: 60px; }
.lp-brand {
  display: inline-flex; align-items: baseline; gap: .45rem;
  font-size: 1.15rem; font-weight: 800; letter-spacing: -.02em;
  color: #fff; text-decoration: none;
}
.lp-brand .dot {
  width: .34rem; height: .34rem; border-radius: 50%;
  background: var(--accent); box-shadow: 0 0 0 3px rgba(20, 184, 166, .25);
  transform: translateY(-.1rem);
}
.lp-nav-links { margin-left: auto; display: flex; align-items: center; gap: .3rem; }
.lp-nav-links a {
  color: #cbd5e1; text-decoration: none; font-size: .86rem;
  padding: .45rem .7rem; border-radius: 7px;
}
.lp-nav-links a:hover { color: #fff; background: rgba(255, 255, 255, .08); }
@media (max-width: 720px) { .lp-nav-links .lp-hide-sm { display: none; } }

/* ---------------------------------------------------------------- buttons */
.lp-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .45rem;
  padding: .7rem 1.35rem; border-radius: 9px; border: 0; cursor: pointer;
  font-size: .92rem; font-weight: 600; font-family: inherit;
  text-decoration: none; transition: transform .12s, box-shadow .18s, filter .15s;
}
.lp-btn-primary {
  color: #fff; background: linear-gradient(135deg, var(--accent-2), #0e7490);
  box-shadow: 0 6px 18px rgba(13, 148, 136, .3);
}
.lp-btn-primary:hover { filter: brightness(1.08); box-shadow: 0 9px 26px rgba(13, 148, 136, .38); }
.lp-btn-primary:active { transform: translateY(1px); }
.lp-btn-ghost { color: #e2e8f0; border: 1px solid rgba(255, 255, 255, .28); background: transparent; }
.lp-btn-ghost:hover { background: rgba(255, 255, 255, .1); }
.lp-btn-sm { padding: .45rem 1rem; font-size: .85rem; }
.lp-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ---------------------------------------------------------------- hero */
.lp-hero {
  position: relative; overflow: hidden; isolation: isolate;
  background: linear-gradient(150deg, var(--ink) 0%, var(--ink-2) 55%, #0d4f4a 100%);
  color: #e2e8f0;
  padding: clamp(3rem, 8vw, 6rem) 0 clamp(3.5rem, 8vw, 5.5rem);
}
.lp-hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: radial-gradient(ellipse 80% 70% at 30% 35%, #000 40%, transparent 100%);
}
.lp-orb {
  position: absolute; border-radius: 50%; filter: blur(60px);
  opacity: .42; z-index: -2; will-change: transform;
}
.lp-orb.a { width: 30rem; height: 30rem; background: #0d9488; top: -10rem; left: -8rem;
            animation: lp-a 22s ease-in-out infinite; }
.lp-orb.b { width: 24rem; height: 24rem; background: #155e75; bottom: -10rem; left: 30%;
            animation: lp-b 27s ease-in-out infinite; }
.lp-orb.c { width: 22rem; height: 22rem; background: #0d9488; top: 20%; right: -7rem;
            animation: lp-c 19s ease-in-out infinite; }
@keyframes lp-a { 0%,100% { transform: translate3d(0,0,0) scale(1); }
                  50%     { transform: translate3d(4rem,3rem,0) scale(1.12); } }
@keyframes lp-b { 0%,100% { transform: translate3d(0,0,0) scale(1); }
                  50%     { transform: translate3d(-3.5rem,-3rem,0) scale(1.18); } }
@keyframes lp-c { 0%,100% { transform: translate3d(0,0,0) scale(1.05); }
                  50%     { transform: translate3d(-3rem,4rem,0) scale(.9); } }

.lp-eyebrow {
  display: inline-block; font-size: .7rem; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase; color: #5eead4;
  background: rgba(20, 184, 166, .12); border: 1px solid rgba(20, 184, 166, .28);
  padding: .3rem .7rem; border-radius: 99px; margin-bottom: 1.1rem;
}
.lp-hero h1 {
  font-size: clamp(2rem, 5vw, 3.4rem); line-height: 1.1; font-weight: 300;
  margin: 0 0 1rem; max-width: 18ch; color: #f1f5f9; letter-spacing: -.02em;
}
.lp-hero h1 b { font-weight: 800; color: #5eead4; }
.lp-hero .lp-lede { font-size: clamp(1rem, 1.6vw, 1.12rem); max-width: 54ch; color: #cbd5e1; margin: 0 0 2rem; }
.lp-cta { display: flex; flex-wrap: wrap; gap: .7rem; align-items: center; }
.lp-cta .lp-note { font-size: .8rem; color: #94a3b8; width: 100%; margin-top: .4rem; }

/* figures strip */
.lp-figures {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1px; margin-top: clamp(2.5rem, 6vw, 4rem);
  background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 12px; overflow: hidden;
}
.lp-figure { background: rgba(11, 31, 51, .55); padding: 1.1rem 1rem; text-align: center; }
.lp-figure b { display: block; font-size: 1.5rem; font-weight: 800; color: #fff; letter-spacing: -.02em; }
.lp-figure span { font-size: .76rem; color: #94a3b8; }

/* ---------------------------------------------------------------- sections */
.lp-section { padding: clamp(3rem, 7vw, 5rem) 0; }
.lp-section.tint { background: var(--tint); border-block: 1px solid var(--line); }
.lp-h2 {
  font-size: clamp(1.4rem, 3vw, 2rem); line-height: 1.2; letter-spacing: -.02em;
  margin: 0 0 .6rem; font-weight: 700;
}
.lp-sub { color: var(--muted); max-width: 62ch; margin: 0 0 2.2rem; }

.lp-grid { display: grid; gap: 1.1rem; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); }
.lp-card {
  background: var(--paper); border: 1px solid var(--line); border-radius: 12px;
  padding: 1.3rem 1.25rem; transition: border-color .15s, box-shadow .15s, transform .15s;
}
.lp-card:hover { border-color: #cbd5e1; box-shadow: 0 8px 24px rgba(15, 23, 42, .07); transform: translateY(-2px); }
.lp-card h3 { margin: 0 0 .4rem; font-size: 1rem; font-weight: 700; }
.lp-card p { margin: 0; font-size: .89rem; color: var(--muted); }
.lp-card .lp-ico {
  display: grid; place-items: center; width: 2.2rem; height: 2.2rem; margin-bottom: .8rem;
  border-radius: 9px; background: rgba(20, 184, 166, .12); color: var(--accent-2); font-size: 1.05rem;
}

/* two-column feature band */
.lp-split { display: grid; gap: clamp(1.5rem, 4vw, 3rem); grid-template-columns: 1fr 1fr; align-items: center; }
@media (max-width: 820px) { .lp-split { grid-template-columns: 1fr; } }
.lp-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .85rem; }
.lp-list li { display: flex; gap: .7rem; align-items: flex-start; font-size: .92rem; }
.lp-list .tick {
  flex: 0 0 1.2rem; height: 1.2rem; margin-top: .15rem; border-radius: 50%;
  background: rgba(20, 184, 166, .15); color: var(--accent-2);
  display: grid; place-items: center; font-size: .7rem; font-weight: 700;
}
.lp-list b { font-weight: 700; }
.lp-list span.txt { color: var(--muted); }

/* the specification table */
.lp-spec { width: 100%; border-collapse: collapse; font-size: .9rem; }
.lp-spec th, .lp-spec td { text-align: left; padding: .7rem .5rem; border-bottom: 1px solid var(--line); }
.lp-spec th { width: 38%; font-weight: 600; color: var(--text); }
.lp-spec td { color: var(--muted); }
.lp-spec tr:last-child th, .lp-spec tr:last-child td { border-bottom: 0; }

/* ---------------------------------------------------------------- closing call */
.lp-close {
  background: linear-gradient(135deg, var(--ink) 0%, #0d4f4a 100%);
  color: #e2e8f0; text-align: center; padding: clamp(3rem, 7vw, 4.5rem) 0;
}
.lp-close h2 { font-size: clamp(1.5rem, 3.4vw, 2.2rem); margin: 0 0 .6rem; font-weight: 700; color: #fff; }
.lp-close p { color: #cbd5e1; max-width: 48ch; margin: 0 auto 1.8rem; }

/* ---------------------------------------------------------------- footer */
.lp-foot {
  background: var(--ink); color: #64748b; font-size: .8rem;
  padding: 1.6rem 0; border-top: 1px solid rgba(255, 255, 255, .07);
}
.lp-foot .lp-wrap { display: flex; flex-wrap: wrap; gap: .8rem; align-items: center; }
.lp-foot a { color: #94a3b8; text-decoration: none; }
.lp-foot a:hover { color: #e2e8f0; }
.lp-foot .lp-right { margin-left: auto; }

/* ---------------------------------------------------------------- motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .lp-orb { animation: none; }
  .lp-card, .lp-btn { transition: none; }
}

/* ---------------------------------------------------------------- language switcher */
.lp-langs { display: inline-flex; gap: .15rem; margin-inline-end: .35rem; }
.lp-langs a {
  padding: .35rem .55rem; border-radius: 7px;
  font-size: .82rem; color: #94a3b8; text-decoration: none;
}
.lp-langs a:hover { color: #fff; background: rgba(255, 255, 255, .08); }
.lp-langs a.on { color: #5eead4; background: rgba(20, 184, 166, .14); font-weight: 700; }

/* ---------------------------------------------------------------- right to left
   Only what genuinely has a side is flipped. The brand stays "Journally" in
   Latin script, and the figures keep Western digits, which is how Lebanese
   accounting writes numbers whatever the language of the page. */
html[dir="rtl"] .lp { text-align: right; }
html[dir="rtl"] .lp-nav-links { margin-left: 0; margin-right: auto; }
html[dir="rtl"] .lp-foot .lp-right { margin-left: 0; margin-right: auto; }
html[dir="rtl"] .lp-hero h1,
html[dir="rtl"] .lp-hero .lp-lede,
html[dir="rtl"] .lp-sub { margin-inline: 0 auto; }
html[dir="rtl"] .lp-list li { flex-direction: row-reverse; }
html[dir="rtl"] .lp-spec th,
html[dir="rtl"] .lp-spec td { text-align: right; }
html[dir="rtl"] .lp-close { text-align: center; }

/* the arrow on a button points the way the text runs */
html[dir="rtl"] .lp-arrow { display: inline-block; transform: scaleX(-1); }

/* Arabic needs more room between lines, and a face that has the glyphs */
html[dir="rtl"] .lp {
  font-family: "Segoe UI", Tahoma, "Noto Naskh Arabic", "Traditional Arabic",
               Arial, Helvetica, sans-serif;
  line-height: 1.85;
}
html[dir="rtl"] .lp-hero h1 { line-height: 1.35; font-weight: 400; }
html[dir="rtl"] .lp-eyebrow { letter-spacing: normal; }
html[dir="rtl"] .lp-figure span { line-height: 1.5; }

/* names and codes that stay Latin read left-to-right inside Arabic text */
html[dir="rtl"] .lp-brand,
html[dir="rtl"] .lp-figure b,
html[dir="rtl"] .lp-spec td { unicode-bidi: plaintext; }

/* ---------------------------------------------------------------- contact
   Anchors here are styled from the element up, not only from their class, so
   that a stylesheet that arrives late or not at all still never shows a row
   of default blue underlined links across a dark panel. */
.lp-close a { color: inherit; text-decoration: none; }
/* ---------------------------------------------------------------- contact */
.lp-contact {
  margin-top: clamp(2.2rem, 5vw, 3rem);
  padding-top: clamp(1.8rem, 4vw, 2.4rem);
  border-top: 1px solid rgba(255, 255, 255, .14);
}
.lp-contact h3 { margin: 0 0 .3rem; font-size: 1.05rem; font-weight: 700; color: #fff; }
.lp-contact-lede { color: #94a3b8; font-size: .88rem; margin: 0 0 1.4rem; }

.lp-contact-rows {
  display: flex; flex-wrap: wrap; justify-content: center; gap: .8rem;
}
.lp-contact-row {
  display: inline-flex; align-items: center; gap: .8rem;
  padding: .85rem 1.35rem; border-radius: 12px; text-decoration: none;
  background: rgba(255, 255, 255, .055);
  border: 1px solid rgba(255, 255, 255, .13);
  min-width: 15rem;
  transition: background .15s, border-color .15s, transform .12s;
}
.lp-contact-row:hover {
  background: rgba(20, 184, 166, .14); border-color: rgba(20, 184, 166, .45);
  transform: translateY(-1px);
}
.lp-contact-row:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.lp-contact-row .lp-ico {
  flex: 0 0 2rem; width: 2rem; height: 2rem; margin: 0;
  background: rgba(20, 184, 166, .16); color: #5eead4; font-size: .95rem;
}
.lp-contact-text { display: flex; flex-direction: column; line-height: 1.35; text-align: left; }
.lp-contact-label { font-size: .72rem; color: #8ea3b8; letter-spacing: .06em; text-transform: uppercase; }
.lp-contact-row b { color: #fff; font-size: 1rem; font-weight: 600; letter-spacing: .01em; }

/* the label follows the page, the address or number stays left-to-right */
html[dir="rtl"] .lp-contact-text { text-align: right; }
html[dir="rtl"] .lp-contact-row b { text-align: right; }

@media (max-width: 560px) {
  .lp-contact-rows { flex-direction: column; }
  .lp-contact-row { justify-content: flex-start; }
}

/* ---------------------------------------------------------------- WhatsApp
   Fixed to the bottom-right corner in both directions: it is reached with the
   same thumb whichever way the page reads. */
.lp-wa {
  position: fixed; right: 1.25rem; bottom: 1.25rem; z-index: 60;
  display: inline-flex; align-items: center; gap: .55rem;
  /* pinned both ways so the collapsed button is a true circle, never an
     oval squeezed by the label it is hiding */
  width: 3.5rem; min-width: 3.5rem; height: 3.5rem; padding: 0;
  flex: none; box-sizing: border-box;
  border-radius: 999px; text-decoration: none;
  background: #25d366; color: #fff;
  box-shadow: 0 6px 20px rgba(37, 211, 102, .42), 0 2px 6px rgba(15, 23, 42, .2);
  justify-content: center;
  transition: width .22s ease, padding .22s ease, box-shadow .18s, transform .12s;
}
.lp-wa:hover, .lp-wa:focus-visible {
  box-shadow: 0 10px 28px rgba(37, 211, 102, .5), 0 3px 8px rgba(15, 23, 42, .25);
  transform: translateY(-2px);
}
.lp-wa:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
.lp-wa svg { flex: 0 0 28px; }

/* the label unrolls on hover, and is simply there for a keyboard or reader */
.lp-wa-tip {
  max-width: 0; overflow: hidden; white-space: nowrap;
  font-size: .86rem; font-weight: 600; opacity: 0;
  transition: max-width .22s ease, opacity .18s ease;
}
.lp-wa:hover, .lp-wa:focus-visible { width: auto; min-width: 3.5rem; padding: 0 1.15rem 0 .95rem; }
.lp-wa:hover .lp-wa-tip, .lp-wa:focus-visible .lp-wa-tip { max-width: 14rem; opacity: 1; }

/* a slow ring, so it is noticed once without nagging */
.lp-wa::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit;
  box-shadow: 0 0 0 0 rgba(37, 211, 102, .55);
  animation: lp-wa-ring 2.8s ease-out infinite;
}
@keyframes lp-wa-ring {
  0%   { box-shadow: 0 0 0 0 rgba(37, 211, 102, .5); }
  70%  { box-shadow: 0 0 0 14px rgba(37, 211, 102, 0); }
  100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

@media (max-width: 560px) {
  .lp-wa { right: 1rem; bottom: 1rem; width: 3.25rem; min-width: 3.25rem; height: 3.25rem; }
  /* no room to unroll a label on a phone, and a tap is not a hover */
  .lp-wa:hover { width: 3.25rem; min-width: 3.25rem; padding: 0; }
  .lp-wa:hover .lp-wa-tip { max-width: 0; opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .lp-wa, .lp-wa-tip { transition: none; }
  .lp-wa::before { animation: none; }
}

/* ---------------------------------------------------------------- questions
   <details> so a question opens with no JavaScript, and so the answer is in
   the page for a crawler whether or not it is expanded. */
.lp-faq { max-width: 52rem; }
.lp-faq-item { border-bottom: 1px solid var(--line); }
.lp-faq-item summary {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1.05rem .25rem; cursor: pointer; list-style: none;
  font-weight: 600; font-size: 1rem; color: var(--text);
}
.lp-faq-item summary::-webkit-details-marker { display: none; }
.lp-faq-item summary:hover { color: var(--accent-2); }
.lp-faq-item summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
.lp-faq-mark {
  flex: 0 0 1.6rem; height: 1.6rem; border-radius: 50%;
  background: rgba(20, 184, 166, .12); color: var(--accent-2);
  display: grid; place-items: center; font-size: 1.05rem; line-height: 1;
  transition: transform .18s ease, background .15s;
}
.lp-faq-item[open] .lp-faq-mark { transform: rotate(45deg); background: rgba(20, 184, 166, .2); }
.lp-faq-item p {
  margin: 0; padding: 0 .25rem 1.15rem; max-width: 68ch;
  color: var(--muted); font-size: .93rem;
}
html[dir="rtl"] .lp-faq-item p,
html[dir="rtl"] .lp-faq-item summary { text-align: right; }
@media (prefers-reduced-motion: reduce) { .lp-faq-mark { transition: none; } }
