/* TreeLink home page. Mobile first; logical properties so it works right-to-left and left-to-right unchanged. */
:root {
  --tl-ink: #0b3b38;
  --tl-green: #0f8a73;
  --tl-deep: #0b5f58;
  --tl-darker: #073b38;
  --tl-gold: #f4b63f;
  --tl-cream: #fbf7ee;
  --tl-paper: #ffffff;
  --tl-muted: #52706d;
  --tl-line: #e7dfca;
  --tl-radius: 22px;
  --tl-shadow: 0 10px 34px rgba(11, 59, 56, .10);
}

html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body.lp {
  margin: 0; background: var(--tl-cream); color: var(--tl-ink);
  font-family: 'Poppins', system-ui, -apple-system, 'Segoe UI', sans-serif; font-weight: 400; font-size: 17px; line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
body.lp-rtl { font-family: 'Cairo', 'Poppins', system-ui, sans-serif; line-height: 1.8; }
.lp h1, .lp h2, .lp h3, .lp h4 { font-family: 'Poppins', sans-serif; font-weight: 700; color: var(--tl-ink); letter-spacing: -.02em; line-height: 1.2; }
.lp-rtl h1, .lp-rtl h2, .lp-rtl h3, .lp-rtl h4 { font-family: 'Cairo', sans-serif; font-weight: 800; letter-spacing: 0; line-height: 1.4; }
.lp a { color: var(--tl-green); }
.lp a:hover { color: var(--tl-deep); }
/* the link colour above must never repaint the text of a Bootstrap button (green on red, green on green) */
.lp a.btn-danger, .lp a.btn-success, .lp a.btn-primary, .lp a.btn-dark, .lp a.btn-secondary, .lp a.btn-info,
.lp a.btn-danger:hover, .lp a.btn-success:hover, .lp a.btn-primary:hover, .lp a.btn-dark:hover, .lp a.btn-secondary:hover, .lp a.btn-info:hover { color: #fff; }
.lp a.btn-warning, .lp a.btn-warning:hover, .lp a.btn-light, .lp a.btn-light:hover { color: #1f2937; }
.lp a.btn-outline-danger { color: #dc3545; } .lp a.btn-outline-danger:hover { color: #fff; }
.lp a.btn-outline-success { color: #198754; } .lp a.btn-outline-success:hover { color: #fff; }
.lp a.btn-outline-primary { color: #0d6efd; } .lp a.btn-outline-primary:hover { color: #fff; }
.lp-skip { position: absolute; inset-inline-start: 12px; top: -60px; background: var(--tl-ink); color: #fff !important; padding: 10px 16px; border-radius: 10px; z-index: 2000; }
.lp-skip:focus { top: 10px; }
.lp-icon { width: 1.35em; height: 1.35em; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* ---------- buttons ---------- */
.lp .btn-tl, .lp .btn-tl-ghost, .lp .btn-tl-light {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em; border-radius: 999px; font-weight: 600;
  padding: .85em 1.7em; border: 2px solid transparent; text-decoration: none; cursor: pointer; transition: transform .15s, box-shadow .15s, background .15s;
}
.lp .btn-tl { background: linear-gradient(135deg, #14a085, var(--tl-deep)); color: #fff !important; box-shadow: 0 8px 22px rgba(15, 138, 115, .35); }
.lp .btn-tl:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(15, 138, 115, .45); color: #fff !important; }
.lp .btn-tl-gold { background: var(--tl-gold); color: #3b2a00 !important; box-shadow: 0 8px 22px rgba(244, 182, 63, .4); }
.lp .btn-tl-gold:hover { background: #ffc552; color: #3b2a00 !important; }
.lp .btn-tl-ghost { background: transparent; color: var(--tl-ink) !important; border-color: var(--tl-line); }
.lp .btn-tl-ghost:hover { border-color: var(--tl-green); background: #fff; }
.lp .btn-tl-light { background: rgba(255,255,255,.12); color: #fff !important; border-color: rgba(255,255,255,.4); }
.lp .btn-tl-light:hover { background: rgba(255,255,255,.22); }
.lp .btn-lg-tl { font-size: 1.08rem; padding: 1em 2em; }
.lp-arrow { transition: transform .15s; }
.lp-rtl .lp-arrow { transform: scaleX(-1); }
.btn-tl:hover .lp-arrow { transform: translateX(3px); }
.lp-rtl .btn-tl:hover .lp-arrow { transform: scaleX(-1) translateX(3px); }

/* ---------- header ---------- */
.lp-nav { position: sticky; top: 0; z-index: 1030; background: rgba(251, 247, 238, .92); backdrop-filter: blur(10px); border-bottom: 1px solid transparent; transition: border-color .2s, box-shadow .2s; }
.lp-nav.scrolled { border-color: var(--tl-line); box-shadow: 0 4px 18px rgba(11,59,56,.06); }
.lp-nav .container { display: flex; align-items: center; gap: 22px; min-height: 72px; }
.lp-nav .lp-links { display: none; gap: 26px; margin-inline-start: 18px; }
.lp-nav .lp-links a { color: var(--tl-ink); text-decoration: none; font-weight: 500; font-size: .97rem; }
.lp-nav .lp-links a:hover { color: var(--tl-green); }
.lp-nav .lp-actions { margin-inline-start: auto; display: flex; align-items: center; gap: 10px; }
.lp-lang { font-weight: 600; font-size: .9rem; text-decoration: none; color: var(--tl-muted) !important; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--tl-line); background: #fff; }
.lp-lang:hover { color: var(--tl-ink) !important; border-color: var(--tl-green); }
.lp-nav .btn-login { display: none; }
.lp-burger { background: none; border: 1px solid var(--tl-line); border-radius: 12px; width: 44px; height: 44px; color: var(--tl-ink); display: inline-flex; align-items: center; justify-content: center; }
.lp-drawer { display: none; border-top: 1px solid var(--tl-line); background: var(--tl-cream); padding: 12px 0 18px; }
.lp-drawer.open { display: block; }
.lp-drawer a { display: block; padding: 11px 4px; color: var(--tl-ink); text-decoration: none; font-weight: 500; }
@media (min-width: 992px) {
  .lp-nav .lp-links { display: flex; }
  .lp-nav .btn-login { display: inline-flex; }
  .lp-burger, .lp-drawer { display: none !important; }
}

/* ---------- hero ---------- */
.lp-hero { position: relative; overflow: hidden; padding: 56px 0 84px; background:
    radial-gradient(900px 500px at 85% -10%, rgba(244,182,63,.20), transparent 60%),
    radial-gradient(800px 500px at 0% 0%, rgba(20,160,133,.16), transparent 60%), var(--tl-cream); }
.lp-badge { display: inline-flex; align-items: center; gap: 8px; background: #fff; border: 1px solid var(--tl-line); color: var(--tl-deep); font-weight: 600; font-size: .9rem; padding: 7px 16px; border-radius: 999px; box-shadow: 0 2px 10px rgba(11,59,56,.06); }
.lp-badge::before { content: ''; width: 9px; height: 9px; border-radius: 50%; background: var(--tl-gold); box-shadow: 0 0 0 4px rgba(244,182,63,.25); }
.lp-hero h1 { font-size: clamp(2.2rem, 5.2vw, 3.7rem); margin: 18px 0 18px; }
.lp-hero h1 em { font-style: normal; color: var(--tl-green); }
.lp-hero .lp-sub { font-size: clamp(1.05rem, 1.7vw, 1.22rem); color: var(--tl-muted); max-width: 36em; }
.lp-hero .lp-cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 30px 0 26px; }
.lp-trust { display: flex; flex-wrap: wrap; gap: 8px 22px; color: var(--tl-muted); font-size: .95rem; font-weight: 500; padding: 0; margin: 0; list-style: none; }
.lp-trust li { display: inline-flex; align-items: center; gap: 7px; }
.lp-trust .lp-icon { color: var(--tl-green); width: 1.1em; height: 1.1em; stroke-width: 2.4; }

/* the product preview */
.lp-preview { position: relative; max-width: 520px; margin: 44px auto 0; }
.lp-window { background: var(--tl-paper); border-radius: 26px; box-shadow: 0 30px 70px rgba(11,59,56,.18); border: 1px solid var(--tl-line); overflow: hidden; }
.lp-window .bar { display: flex; align-items: center; gap: 7px; padding: 14px 18px; border-bottom: 1px solid #f0e9d6; background: #fffdf8; }
.lp-window .bar i { width: 11px; height: 11px; border-radius: 50%; background: #e8dfc7; display: block; }
.lp-window .bar span { margin-inline-start: auto; font-size: .78rem; color: var(--tl-muted); font-weight: 600; letter-spacing: .5px; }
.lp-tree { position: relative; padding: 26px 18px 28px; }
.lp-tree svg.lines { position: absolute; inset: 0; width: 100%; height: 100%; }
.lp-tree svg.lines path { fill: none; stroke: #b7d9d1; stroke-width: 2.5; stroke-linecap: round; }
.lp-gen { display: flex; justify-content: center; gap: 14px; position: relative; z-index: 1; }
.lp-gen + .lp-gen { margin-top: 0; }
.lp-couple { display: flex; gap: 26px; position: relative; }
.lp-couple::before { content: ''; position: absolute; top: 27px; inset-inline: 43px; height: 3px; border-radius: 3px; background: #ecc977; }
.lp-vline { width: 3px; height: 30px; margin: 4px auto; border-radius: 3px; background: #b7d9d1; }
.lp-person { display: flex; flex-direction: column; align-items: center; gap: 7px; font-size: .82rem; font-weight: 600; text-align: center; min-width: 86px; }
.lp-avatar { width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-weight: 700; font-size: 1.25rem; box-shadow: 0 6px 14px rgba(11,59,56,.18); border: 3px solid #fff; }
.lp-avatar.a1 { background: linear-gradient(135deg, #14a085, #0b5f58); }
.lp-avatar.a2 { background: linear-gradient(135deg, #e0a53a, #c47f12); }
.lp-avatar.a3 { background: linear-gradient(135deg, #5b8def, #3a5fc0); }
.lp-avatar.a4 { background: linear-gradient(135deg, #d36b8a, #a8405f); }
.lp-avatar.me { background: linear-gradient(135deg, var(--tl-gold), #e69b0f); color: #3b2a00; width: 64px; height: 64px; box-shadow: 0 0 0 5px rgba(244,182,63,.28), 0 6px 14px rgba(11,59,56,.18); }
.lp-float { position: absolute; background: #fff; border-radius: 16px; padding: 10px 14px; box-shadow: 0 14px 34px rgba(11,59,56,.16); border: 1px solid var(--tl-line); font-size: .82rem; font-weight: 600; display: flex; align-items: center; gap: 9px; max-width: 230px; animation: lp-bob 6s ease-in-out infinite; }
.lp-float b { font-size: 1.25rem; }
.lp-float.f1 { top: -16px; inset-inline-end: -10px; }
.lp-float.f2 { top: 34%; inset-inline-start: -28px; animation-delay: -2s; }
.lp-float.f3 { bottom: -22px; inset-inline-end: 24px; animation-delay: -4s; }
.lp-float.f4 { bottom: 24%; inset-inline-end: -34px; animation-delay: -1s; display: none; }
@keyframes lp-bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-7px); } }
@media (prefers-reduced-motion: reduce) { .lp-float { animation: none; } html { scroll-behavior: auto; } }
@media (max-width: 575px) { .lp-float.f2 { inset-inline-start: -8px; } .lp-float.f1 { inset-inline-end: -4px; } .lp-person { min-width: 70px; font-size: .74rem; } .lp-avatar { width: 46px; height: 46px; } }
@media (min-width: 992px) { .lp-hero { padding: 84px 0 110px; } .lp-preview { margin: 0 0 0 auto; } .lp-rtl .lp-preview { margin: 0 auto 0 0; } .lp-float.f4 { display: flex; } }

/* ---------- sections ---------- */
.lp-section { padding: 84px 0; }
.lp-section.alt { background: #fff; border-block: 1px solid var(--tl-line); }
.lp-head { text-align: center; max-width: 720px; margin: 0 auto 48px; }
.lp-head h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); margin: 0 0 12px; }
.lp-head p { color: var(--tl-muted); font-size: 1.12rem; margin: 0; }
.lp-world { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 22px; }
.lp-flags { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.lp-flags img { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; border: 3px solid #fff; box-shadow: 0 6px 16px rgba(11,59,56,.16); }

.lp-card { background: #fff; border: 1px solid var(--tl-line); border-radius: var(--tl-radius); padding: 28px; height: 100%; transition: transform .2s, box-shadow .2s, border-color .2s; }
.lp-card:hover { transform: translateY(-4px); box-shadow: var(--tl-shadow); border-color: #cfe3dd; }
.lp-card .ico { width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center; margin-bottom: 18px; color: #fff; background: linear-gradient(135deg, #14a085, var(--tl-deep)); font-size: 1.1rem; }
.lp-card .ico .lp-icon { width: 26px; height: 26px; }
.lp-card.gold .ico { background: linear-gradient(135deg, #f7c258, #e39a0d); color: #3b2a00; }
.lp-card h3 { font-size: 1.25rem; margin: 0 0 8px; }
.lp-card p { color: var(--tl-muted); margin: 0; font-size: 1rem; }

.lp-steps { display: grid; gap: 22px; counter-reset: s; }
.lp-step { position: relative; background: #fff; border: 1px solid var(--tl-line); border-radius: var(--tl-radius); padding: 30px 26px 26px; text-align: center; }
.lp-step::before { counter-increment: s; content: counter(s); position: absolute; top: -20px; inset-inline-start: 50%; transform: translateX(-50%); width: 42px; height: 42px; border-radius: 50%; background: var(--tl-gold); color: #3b2a00; display: grid; place-items: center; font-weight: 800; font-size: 1.1rem; box-shadow: 0 6px 14px rgba(244,182,63,.45); }
.lp-rtl .lp-step::before { transform: translateX(50%); }
.lp-step h3 { font-size: 1.2rem; margin: 8px 0 6px; }
.lp-step p { margin: 0; color: var(--tl-muted); }
@media (min-width: 768px) { .lp-steps { grid-template-columns: repeat(3, 1fr); } }

.lp-found { position: relative; overflow: hidden; border-radius: 30px; padding: 56px 28px; text-align: center; color: #fff; background: radial-gradient(700px 360px at 85% 0%, rgba(244,182,63,.30), transparent 60%), linear-gradient(135deg, #0f8a73, var(--tl-darker)); }
.lp-found h2 { color: #fff; font-size: clamp(1.7rem, 3.4vw, 2.4rem); margin: 0 0 12px; }
.lp-found p { color: rgba(255,255,255,.86); max-width: 38em; margin: 0 auto 26px; font-size: 1.1rem; }

.lp-faq { max-width: 800px; margin: 0 auto; }
.lp-faq details { background: #fff; border: 1px solid var(--tl-line); border-radius: 18px; margin-bottom: 12px; overflow: hidden; }
.lp-faq summary { cursor: pointer; list-style: none; padding: 20px 24px; font-weight: 600; font-size: 1.08rem; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.lp-faq summary::-webkit-details-marker { display: none; }
.lp-faq summary::after { content: '+'; font-size: 1.6rem; line-height: 1; color: var(--tl-green); transition: transform .2s; }
.lp-faq details[open] summary::after { transform: rotate(45deg); }
.lp-faq details[open] { border-color: #cfe3dd; box-shadow: var(--tl-shadow); }
.lp-faq details p { padding: 0 24px 22px; margin: 0; color: var(--tl-muted); }

.lp-final { text-align: center; padding: 84px 0 96px; }
.lp-final h2 { font-size: clamp(1.8rem, 3.8vw, 2.7rem); margin: 0 0 10px; }
.lp-final p { color: var(--tl-muted); font-size: 1.15rem; margin: 0 0 28px; }

/* ---------- footer ---------- */
.lp-footer { background: var(--tl-darker); color: rgba(255,255,255,.78); padding: 46px 0 30px; }
.lp-footer .row-flex { display: flex; flex-wrap: wrap; gap: 24px; align-items: center; justify-content: space-between; }
.lp-footer a { color: rgba(255,255,255,.82) !important; text-decoration: none; }
.lp-footer a:hover { color: #fff !important; }
.lp-footer nav { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.lp-footer small { display: block; margin-top: 26px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.12); color: rgba(255,255,255,.55); text-align: center; }

/* ---------- modals ---------- */
.lp .modal-content { border: 0; border-radius: 26px; overflow: hidden; box-shadow: 0 30px 80px rgba(7,59,56,.35); }
.lp .modal-header { border: 0; padding: 28px 30px 0; align-items: flex-start; }
.lp .modal-body { padding: 14px 30px 32px; }
.lp .modal-title { font-size: 1.55rem; font-weight: 800; margin: 0; }
.lp .modal-sub { color: var(--tl-muted); margin: 4px 0 18px; font-size: .98rem; }
.lp .form-label { font-weight: 600; font-size: .92rem; margin-bottom: 5px; }
.lp .form-control, .lp .form-select { border-radius: 14px; padding: .72em 1em; border: 1.5px solid var(--tl-line); background-color: #fffdf8; }
.lp .form-control:focus, .lp .form-select:focus { border-color: var(--tl-green); box-shadow: 0 0 0 4px rgba(15,138,115,.15); }
.lp .form-check-input:checked { background-color: var(--tl-green); border-color: var(--tl-green); }
.lp .alert { border-radius: 14px; }
.lp .modal-switch { text-align: center; margin: 18px 0 0; font-size: .95rem; }
.lp-flash { position: fixed; top: 82px; inset-inline: 16px; z-index: 1100; max-width: 520px; margin-inline: auto; }

/* ---------- social sign-in ---------- */
.lp-social { display: grid; gap: 10px; margin-bottom: 18px; }
.lp-social-btn { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 11px 16px; border: 1px solid var(--tl-line); border-radius: 999px; background: #fff; color: var(--tl-ink) !important; font-weight: 600; text-decoration: none; transition: box-shadow .2s, border-color .2s; }
.lp-social-btn:hover { border-color: #cfe3dd; box-shadow: var(--tl-shadow); }
.lp-social-or { display: flex; align-items: center; gap: 12px; color: var(--tl-muted); font-size: .9rem; }
.lp-social-or::before, .lp-social-or::after { content: ""; flex: 1; height: 1px; background: var(--tl-line); }

/* the demo: a clear way to try the app with no account */
.lp .lp-demo { margin-top: 22px; display: flex; flex-wrap: wrap; align-items: center; gap: 14px 18px; padding: 16px 20px; border-radius: 18px; background: linear-gradient(135deg, #fff8e4, #ffefc2); border: 2px solid var(--tl-gold); box-shadow: 0 10px 26px rgba(244, 182, 63, .28); }
.lp .lp-demo-text { flex: 1 1 220px; display: flex; flex-direction: column; gap: 3px; color: #3b2a00; }
.lp .lp-demo-text b { font-size: 1.1rem; }
.lp .lp-demo-text span { font-size: .93rem; opacity: .85; }
.lp .lp-demo-btn { display: inline-flex; align-items: center; gap: 8px; animation: lp-demo-pulse 2.4s ease-in-out infinite; }
.lp .lp-demo-btn .lp-icon, .lp .lp-head-demo .lp-icon { width: 18px; height: 18px; }
.lp .lp-head-demo { display: inline-flex; align-items: center; gap: 6px; padding: 9px 16px; font-size: .9rem; }
.lp .lp-drawer-demo { display: block; width: 100%; text-align: start; background: none; border: 0; padding: 10px 0; font: inherit; font-weight: 700; color: #b7791f; }
@keyframes lp-demo-pulse { 0%, 100% { box-shadow: 0 8px 22px rgba(244, 182, 63, .4); } 50% { box-shadow: 0 8px 30px rgba(244, 182, 63, .85); } }
@media (prefers-reduced-motion: reduce) { .lp .lp-demo-btn { animation: none; } }
