/* ═══════════════════════════════════════════════════════════════════════════
   Landing page + new-design auth pages — a hand port of the sahmeeai.com site
   (sahmee-invest-ai/sahmeeai: Astro + Tailwind). Same sizes, spacing and
   animations; colours come from the shared theme (shared/css/brand.css), so the
   page follows Admin → Settings → Branding → Color Palette:

     --primary   → brand-400 (buttons, accents)      --buy  → green glows / badges
     --primary-2 → brand-500 (glows, hover)          --sell → error borders
     --cyan      → brand-300 (light hover text)

   Dark "ink" sections follow the surface style: Sahmee = the original navy,
   Neutral = black, Colorful = dark tinted by the main colour.
   Light sections stay light (as on the original site).
   ═══════════════════════════════════════════════════════════════════════════ */

body.lp {
  --ink-950: color-mix(in srgb, var(--primary) 6%, #05070b);
  --ink-900: color-mix(in srgb, var(--primary) 7%, #090c12);
  --ink-800: color-mix(in srgb, var(--primary) 10%, #10141c);
  --ink-700: color-mix(in srgb, var(--primary) 14%, #161b25);
  --brand-300: var(--cyan);
  --brand-400: var(--primary);
  --brand-500: var(--primary-2);
  --brand-600: color-mix(in srgb, var(--primary-2) 82%, #000);
  --lp-buy: var(--buy);
  --lp-sell: var(--sell);
  --slate-100: #f1f5f9; --slate-200: #e2e8f0; --slate-300: #cbd5e1; --slate-400: #94a3b8;
  --slate-500: #64748b; --slate-600: #475569; --slate-700: #334155; --slate-800: #1e293b; --slate-900: #0f172a;
  --lp-font: 'Poppins', 'Cairo', ui-sans-serif, system-ui, sans-serif;
}
:root[data-tone="sahmee"] body.lp {
  --ink-950: #030e1b; --ink-900: #051628; --ink-800: #0a1f38; --ink-700: #12294a;
}
:root[data-tone="neutral"] body.lp {
  --ink-950: #000000; --ink-900: #0a0a0b; --ink-800: #131315; --ink-700: #1c1c1f;
}

/* ── Base ─────────────────────────────────────────────────────────────── */
html:root body.lp {
  margin: 0;
  background: var(--ink-900);
  color: var(--slate-200);
  font-family: var(--lp-font);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  letter-spacing: normal;
}
html[dir="rtl"] body.lp { --lp-font: 'Cairo', ui-sans-serif, system-ui, sans-serif; }
html:has(body.lp) { scroll-behavior: smooth; scroll-padding-top: 5rem; -webkit-text-size-adjust: 100%; }
.lp *, .lp *::before, .lp *::after { box-sizing: border-box; }
.lp h1, .lp h2, .lp h3, .lp p, .lp dl, .lp dd, .lp ul { margin: 0; }
.lp ul { padding: 0; list-style: none; }
.lp a { color: inherit; text-decoration: none; }
.lp img, .lp svg { display: block; max-width: 100%; }
.lp button, .lp input, .lp textarea { font: inherit; color: inherit; }
.lp ::selection { background: color-mix(in srgb, var(--brand-500) 40%, transparent); color: #fff; }
.lp :focus-visible { outline: 2px solid var(--brand-400); outline-offset: 2px; }
.lp .sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.lp .skip-link:focus { position: fixed; top: .75rem; inset-inline-start: .75rem; z-index: 100; width: auto; height: auto; clip: auto; margin: 0; padding: .5rem 1rem; border-radius: .5rem; background: #fff; color: var(--ink-900); }
.lp .ico { width: 1.5rem; height: 1.5rem; flex-shrink: 0; }

.lp .container-x { width: 100%; max-width: 80rem; margin-inline: auto; padding-inline: 1rem; }
@media (min-width: 640px) { .lp .container-x { padding-inline: 1.5rem; } }
@media (min-width: 1024px) { .lp .container-x { padding-inline: 2rem; } }

/* ── Buttons ──────────────────────────────────────────────────────────── */
.lp .btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem; text-align: center;
  border-radius: .75rem; padding: .75rem 1.5rem; font-size: .875rem; font-weight: 600; line-height: 1.25rem;
  border: 1px solid transparent; cursor: pointer; transition: all .2s cubic-bezier(.4,0,.2,1);
}
@media (min-width: 640px) { .lp .btn { font-size: 1rem; line-height: 1.5rem; white-space: nowrap; } }
.lp .btn-primary { background: var(--brand-400); color: #fff; box-shadow: 0 10px 15px -3px color-mix(in srgb, var(--brand-500) 25%, transparent), 0 4px 6px -4px color-mix(in srgb, var(--brand-500) 25%, transparent); }
.lp .btn-primary:hover { background: var(--brand-500); }
.lp .btn-primary:disabled { opacity: .6; cursor: default; }
.lp .btn-outline { border-color: color-mix(in srgb, var(--brand-400) 70%, transparent); color: #fff; background: transparent; }
.lp .btn-outline:hover { border-color: var(--brand-300); background: rgba(255,255,255,.05); }
.lp .btn-outline-light { border-color: var(--slate-400); color: var(--slate-800); }
.lp .btn-outline-light:hover { background: var(--slate-100); border-color: var(--slate-400); }

/* ── Header ───────────────────────────────────────────────────────────── */
.lp-header { position: sticky; top: 0; z-index: 50; border-bottom: 1px solid rgba(255,255,255,.05); background: color-mix(in srgb, var(--ink-900) 80%, transparent); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.lp-header .bar { display: flex; height: 4rem; align-items: center; justify-content: space-between; gap: 1.5rem; }
.lp-header .logo { flex-shrink: 0; }
.lp-header .logo img { width: 8rem; height: auto; }
.lp-header .actions { display: flex; align-items: center; gap: 1rem; font-size: .875rem; font-weight: 500; color: var(--slate-300); }
.lp-header .icon-link { border-radius: 999px; padding: .5rem; transition: all .15s; }
.lp-header .icon-link:hover { background: rgba(255,255,255,.1); color: #fff; }
.lp-header .lang { border-radius: .5rem; border: 1px solid rgba(255,255,255,.1); padding: .25rem .75rem; font-size: .875rem; font-weight: 600; color: var(--slate-200); transition: all .15s; background: none; cursor: pointer; }
.lp-header .lang:hover { border-color: var(--brand-400); background: rgba(255,255,255,.05); color: #fff; }
@media (min-width: 1024px) {
  .lp-header .bar { height: 5rem; }
  .lp-header .logo img { width: 10rem; }
}

/* ── Sections ─────────────────────────────────────────────────────────── */
.lp .sec { padding-block: 4rem; }
@media (min-width: 1024px) { .lp .sec { padding-block: 6rem; } }
.lp .sec-dark { background: var(--ink-900); color: #fff; }
.lp .sec-light { background: var(--slate-100); }
.lp .glow { position: absolute; pointer-events: none; border-radius: 999px; filter: blur(64px); }
.lp .section-title { font-size: 1.875rem; line-height: 2.25rem; font-weight: 700; letter-spacing: -.025em; color: #fff; }
.lp .title-dark { font-size: 1.875rem; line-height: 2.25rem; font-weight: 800; letter-spacing: -.025em; color: var(--ink-950); }
@media (min-width: 640px) { .lp .section-title, .lp .title-dark { font-size: 2.25rem; line-height: 2.5rem; } }
.lp .center { text-align: center; }

/* Hero */
.lp-hero { position: relative; background: var(--ink-900); overflow-x: clip; }
.lp-hero .glow-a { top: -10rem; right: -10%; width: 42rem; height: 42rem; background: color-mix(in srgb, var(--brand-500) 15%, transparent); }
.lp-hero .glow-b { bottom: -20rem; left: -10rem; width: 32rem; height: 32rem; background: color-mix(in srgb, var(--lp-buy) 10%, transparent); }
.lp-hero .grid { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); align-items: center; gap: 3rem; padding-top: 3rem; padding-bottom: 5rem; }
.lp-hero .copy { max-width: 36rem; }
.lp-hero h1 { font-size: 3rem; line-height: 1; font-weight: 800; letter-spacing: -.025em; color: #fff; }
.lp-hero .tagline { margin-top: 1.25rem; font-size: 1.5rem; line-height: 2rem; font-weight: 600; color: var(--brand-400); }
.lp-hero .tagline .dot { color: #fff; }
.lp-hero .subtitle { margin-top: 1.25rem; font-size: 1.125rem; line-height: 1.625; color: var(--slate-300); }
.lp-hero .visual { position: relative; }
.lp-hero .visual .glow { inset: 12%; background: color-mix(in srgb, var(--brand-500) 25%, transparent); }
.lp-hero .visual img { position: relative; width: 100%; height: auto; filter: drop-shadow(0 30px 60px color-mix(in srgb, var(--brand-500) 25%, transparent)); }
@media (min-width: 640px) {
  .lp-hero h1 { font-size: 3.75rem; }
  .lp-hero .tagline { font-size: 1.875rem; line-height: 2.25rem; }
}
@media (min-width: 1024px) {
  .lp-hero .grid { grid-template-columns: 1fr 1.15fr; gap: 2rem; padding-top: 5rem; padding-bottom: 7rem; }
  .lp-hero h1 { font-size: 4.5rem; }
}

/* Glass form card (hero sign-in + auth pages) */
.lp-card {
  margin-top: 2rem; max-width: 28rem; border-radius: 1.5rem; border: 1px solid rgba(255,255,255,.1);
  background: color-mix(in srgb, var(--ink-800) 50%, transparent); padding: 1.5rem;
  box-shadow: 0 25px 50px -12px rgba(0,0,0,.25); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
}
.lp .lp-card > * + * { margin-top: 1.125rem; }
.lp .lp-card > .hidden:first-child + * { margin-top: 0; }
.lp .lp-card > .foot { margin-top: 1.25rem; line-height: 1.6; }
@media (min-width: 640px) { .lp-card { padding: 1.75rem; } }
.lp-card label { display: block; margin-bottom: .5rem; text-align: start; font-size: .875rem; font-weight: 500; color: var(--slate-300); }
.lp-input {
  width: 100%; border-radius: .75rem; border: 1px solid rgba(255,255,255,.15);
  background: color-mix(in srgb, var(--ink-700) 60%, transparent); padding: .75rem 1rem; color: #fff; text-align: start;
  transition: all .15s; outline: none;
}
.lp-input::placeholder { color: var(--slate-500); }
.lp-input:focus { border-color: var(--brand-400); background: var(--ink-700); }
.lp-input.invalid { border-color: var(--lp-sell); box-shadow: 0 0 0 1px color-mix(in srgb, var(--lp-sell) 30%, transparent); }
.lp-input[readonly] { opacity: .85; cursor: not-allowed; }
.lp-field-error { margin-top: .375rem; text-align: start; font-size: .75rem; font-weight: 500; color: #f87171; }
.lp-pw { position: relative; }
.lp-pw .lp-input { padding-inline-end: 2.75rem; }
.lp-pw .toggle { position: absolute; top: 50%; inset-inline-end: .75rem; transform: translateY(-50%); padding: .375rem; color: var(--slate-400); background: none; border: 0; cursor: pointer; transition: color .15s; }
.lp-pw .toggle:hover { color: #fff; }
.lp-pw .toggle svg { width: 1.125rem; height: 1.125rem; }
.lp-forgot { margin-top: .5rem; text-align: end; }
.lp-link { font-weight: 500; color: var(--brand-400); transition: color .15s; }
.lp-link:hover { color: var(--brand-300); text-decoration: underline; }
.lp-forgot .lp-link { font-size: .75rem; }
.lp-card .submit { width: 100%; padding-block: .875rem; font-size: 1rem; box-shadow: 0 10px 15px -3px color-mix(in srgb, var(--brand-500) 30%, transparent); }
.lp-card .submit:hover { box-shadow: 0 10px 15px -3px color-mix(in srgb, var(--brand-500) 50%, transparent); }
.lp-card .submit svg { width: 1.25rem; height: 1.25rem; }
.lp-card .foot { text-align: center; font-size: .875rem; color: var(--slate-300); }
.lp-card .foot a { font-weight: 600; color: var(--brand-400); transition: color .15s; }
.lp-card .foot a:hover { color: var(--brand-300); text-decoration: underline; }
.lp-alert { border-radius: .75rem; border: 1px solid color-mix(in srgb, var(--lp-sell) 40%, transparent); background: color-mix(in srgb, var(--lp-sell) 10%, transparent); padding: .75rem 1rem; text-align: start; font-size: .875rem; color: #fca5a5; }
.lp-alert.info { border-color: color-mix(in srgb, var(--brand-400) 40%, transparent); background: color-mix(in srgb, var(--brand-400) 10%, transparent); color: var(--slate-200); }
.lp-hint { margin-top: .375rem; font-size: .75rem; color: var(--slate-400); text-align: start; }
.lp-row-2 { display: grid; gap: 1.125rem; }
@media (min-width: 640px) { .lp-row-2 { grid-template-columns: 1fr 1fr; gap: 1rem; } }
.lp-spin { animation: lp-spin 1s linear infinite; }

/* What is */
.lp-what .card { position: relative; overflow: hidden; border-radius: 1.5rem; border: 1px solid color-mix(in srgb, var(--slate-200) 90%, transparent); background: #fff; padding: 2rem; box-shadow: 0 20px 25px -5px rgba(0,0,0,.1), 0 8px 10px -6px rgba(0,0,0,.1); }
.lp-what .card .glow { right: -5rem; bottom: -6rem; width: 18rem; height: 18rem; background: color-mix(in srgb, var(--brand-500) 10%, transparent); }
.lp-what h2 { position: relative; border-inline-start: 4px solid var(--brand-500); padding-inline-start: 1.25rem; }
.lp-what .body { position: relative; margin-top: 1.5rem; max-width: 64rem; font-size: 1rem; line-height: 1.625; color: var(--slate-700); }
.lp-what .body p + p { margin-top: 1rem; }
@media (min-width: 640px) { .lp-what .card { padding: 3rem; } .lp-what .body { font-size: 1.125rem; } }
@media (min-width: 1024px) { .lp-what .card { padding: 4rem; } }

/* Why choose */
.lp .lp-why h2 { color: var(--brand-400); text-align: center; }
@media (min-width: 640px) { .lp .lp-why h2 { text-align: start; } }
.lp-why ul { margin-top: 3rem; display: grid; gap: 1.25rem; }
@media (min-width: 640px) { .lp-why ul { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .lp-why ul { grid-template-columns: repeat(3, 1fr); } }
.lp-why li { display: flex; min-height: 12rem; flex-direction: column; align-items: center; justify-content: center; border-radius: 1rem; border: 1px solid rgba(255,255,255,.1); padding: 1.75rem; text-align: center; transition: all .15s; }
.lp-why li:nth-child(odd) { background: color-mix(in srgb, var(--ink-800) 80%, transparent); }
.lp-why li:nth-child(even) { background: rgba(255,255,255,.04); }
.lp-why li:hover { border-color: color-mix(in srgb, var(--brand-400) 50%, transparent); box-shadow: 0 10px 15px -3px color-mix(in srgb, var(--brand-500) 10%, transparent); }
.lp-why .ic { display: inline-flex; width: 3.5rem; height: 3.5rem; align-items: center; justify-content: center; border-radius: .75rem; background: color-mix(in srgb, var(--brand-500) 15%, transparent); color: var(--brand-400); transition: all .15s; }
.lp-why .ic svg { width: 1.75rem; height: 1.75rem; }
.lp-why li:hover .ic { background: var(--brand-500); color: #fff; }
.lp-why li p { margin-top: 1.25rem; line-height: 1.625; color: var(--slate-200); }

/* Stats */
.lp-stats { background: linear-gradient(to bottom, var(--slate-100), #fff, var(--slate-100)); }
.lp-stats dl { margin-top: 3rem; display: grid; gap: 1rem; }
@media (min-width: 640px) { .lp-stats dl { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .lp-stats dl { grid-template-columns: repeat(4, 1fr); } }
.lp-stats .stat { display: flex; min-height: 9rem; flex-direction: column; align-items: center; justify-content: center; border-radius: 1.5rem; border: 1px solid var(--slate-200); background: #fff; padding: 1.75rem 1.5rem; text-align: center; box-shadow: 0 4px 6px -1px rgba(0,0,0,.1), 0 2px 4px -2px rgba(0,0,0,.1); transition: all .15s; }
.lp-stats .stat:hover { transform: translateY(-.25rem); border-color: var(--brand-400); box-shadow: 0 20px 25px -5px color-mix(in srgb, var(--brand-500) 10%, transparent), 0 8px 10px -6px color-mix(in srgb, var(--brand-500) 10%, transparent); }
.lp-stats dt { font-size: .75rem; font-weight: 600; letter-spacing: .14em; color: var(--brand-600); text-transform: uppercase; }
.lp-stats dd { margin-top: .75rem; font-size: 1.875rem; line-height: 2.25rem; font-weight: 800; color: var(--ink-950); }
.lp-stats dd.long { font-size: 1rem; line-height: 1.375; color: var(--slate-700); }
.lp-stats .stat.reveal.is-visible:hover { transform: translateY(-.25rem); }

/* Guide video */
.lp-video .frame { position: relative; margin: 2.5rem auto 0; aspect-ratio: 16 / 9; max-width: 64rem; overflow: hidden; border-radius: 1.5rem; border: 1px solid rgba(255,255,255,.1); background: var(--ink-950); box-shadow: 0 25px 50px -12px color-mix(in srgb, var(--brand-500) 15%, transparent); }
.lp-video .play { position: absolute; inset: 0; width: 100%; height: 100%; padding: 0; border: 0; background: none; cursor: pointer; }
.lp-video .play:disabled { cursor: default; }
.lp-video .play img { width: 100%; height: 100%; object-fit: cover; }
.lp-video .play .shade { position: absolute; inset: 0; background: color-mix(in srgb, var(--ink-950) 30%, transparent); transition: background .15s; }
.lp-video .play:hover .shade { background: color-mix(in srgb, var(--ink-950) 10%, transparent); }
.lp-video .play .center-btn { position: absolute; top: 50%; left: 50%; display: flex; transform: translate(-50%, -50%); align-items: center; justify-content: center; }
.lp-video .play .ring { position: absolute; width: 6rem; height: 6rem; border-radius: 999px; background: color-mix(in srgb, var(--brand-400) 50%, transparent); animation: lp-pulse-ring 3s ease-out infinite; }
.lp-video .play .disc { position: relative; display: flex; width: 5rem; height: 5rem; align-items: center; justify-content: center; border-radius: 999px; background: var(--brand-400); color: #fff; box-shadow: 0 25px 50px -12px rgba(0,0,0,.25); transition: transform .15s; }
.lp-video .play:hover .disc { transform: scale(1.1); }
.lp-video .play:disabled .disc { background: var(--slate-600); }
.lp-video .play .disc svg { width: 2.25rem; height: 2.25rem; margin-left: .25rem; fill: currentColor; }
.lp-video .soon { position: absolute; bottom: 1rem; left: 50%; transform: translateX(-50%); border-radius: 999px; background: color-mix(in srgb, var(--ink-950) 80%, transparent); padding: .375rem 1rem; font-size: .875rem; color: var(--slate-300); }
.lp-video iframe, .lp-video video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: #000; }
.lp-video .ctas { margin-top: 2.5rem; display: flex; flex-direction: column; justify-content: center; gap: .75rem; }
@media (min-width: 640px) { .lp-video .ctas { flex-direction: row; } .lp-video .ctas .btn { min-width: 13rem; } }

/* CTA banner */
.lp-cta .grid { display: grid; grid-template-columns: minmax(0, 1fr); align-items: center; gap: 3rem; }
@media (min-width: 1024px) { .lp-cta .grid { grid-template-columns: 1.4fr 1fr; gap: 4rem; } }
.lp-cta .banner { position: relative; overflow: hidden; border-radius: 1.5rem; background: linear-gradient(to bottom right, var(--ink-900), var(--ink-800)); padding: 2rem; box-shadow: 0 25px 50px -12px rgba(0,0,0,.25), 0 0 0 1px rgba(0,0,0,.05); }
.lp-cta .banner .glow { right: -4rem; bottom: -5rem; width: 18rem; height: 18rem; background: color-mix(in srgb, var(--brand-500) 25%, transparent); }
.lp-cta h2 { position: relative; font-size: 1.875rem; line-height: 2.25rem; font-weight: 800; color: #fff; }
.lp-cta .banner .btn { position: relative; margin-top: 2rem; padding-inline: 2.5rem; }
.lp-cta .card-img { position: relative; margin-inline: auto; width: 100%; max-width: 24rem; }
.lp-cta .card-img .glow { inset: 2.5rem; background: color-mix(in srgb, var(--lp-buy) 20%, transparent); }
.lp-cta .card-img img { position: relative; width: 100%; height: auto; filter: drop-shadow(0 20px 13px rgba(0,0,0,.03)) drop-shadow(0 8px 5px rgba(0,0,0,.08)); }
@media (min-width: 640px) { .lp-cta .banner { padding: 3rem; } .lp-cta h2 { font-size: 2.25rem; line-height: 2.5rem; } }
@media (min-width: 1024px) { .lp-cta h2 { font-size: 3rem; line-height: 1; } }

/* FAQ */
.lp-faq .wrap { margin-inline: auto; max-width: 48rem; }
.lp-faq .list { margin-top: 2.5rem; border-radius: 1.5rem; border: 1px solid rgba(255,255,255,.1); background: rgba(255,255,255,.03); }
.lp-faq details { padding: 1.25rem 1.5rem; }
.lp-faq details + details { border-top: 1px solid rgba(255,255,255,.1); }
@media (min-width: 640px) { .lp-faq details { padding-inline: 2rem; } }
.lp-faq summary { display: flex; cursor: pointer; list-style: none; align-items: center; justify-content: space-between; gap: 1.5rem; text-align: start; font-size: 1.125rem; line-height: 1.75rem; font-weight: 600; color: #fff; }
.lp-faq summary::-webkit-details-marker { display: none; }
.lp-faq summary h3 { font-size: inherit; font-weight: inherit; }
.lp-faq .plus { display: flex; width: 2rem; height: 2rem; flex-shrink: 0; align-items: center; justify-content: center; border-radius: 999px; background: color-mix(in srgb, var(--brand-500) 15%, transparent); color: var(--brand-400); transition: transform .15s; }
.lp-faq details[open] .plus { transform: rotate(45deg); }
.lp-faq details p { margin-top: 1rem; text-align: start; line-height: 1.625; color: var(--slate-300); }
.lp-faq details p a { font-weight: 500; color: var(--brand-400); text-underline-offset: 4px; }
.lp-faq details p a:hover { text-decoration: underline; }

/* Contact */
.lp-contact .card { position: relative; margin-inline: auto; max-width: 56rem; border-radius: 1.5rem; border: 1px solid color-mix(in srgb, var(--slate-200) 90%, transparent); background: #fff; padding: 1.5rem; box-shadow: 0 25px 50px -12px rgba(0,0,0,.25); }
@media (min-width: 640px) { .lp-contact .card { padding: 2.5rem; } }
@media (min-width: 1024px) { .lp-contact .card { padding: 3rem; } }
.lp-contact h2 { text-align: start; }
.lp-contact form { margin-top: 2rem; display: grid; gap: 1.25rem; position: relative; }
@media (min-width: 640px) { .lp-contact form { grid-template-columns: 1fr 1fr; } .lp-contact .span-2 { grid-column: span 2; } }
.lp-contact label { display: block; margin-bottom: .5rem; text-align: start; font-size: .875rem; font-weight: 600; color: var(--slate-800); }
.lp-input-light { width: 100%; border-radius: .75rem; border: 1px solid var(--slate-300); background: #fff; padding: .75rem 1rem; color: var(--slate-900); text-align: start; box-shadow: 0 1px 2px rgba(0,0,0,.05); transition: all .15s; outline: none; }
.lp-input-light::placeholder { color: var(--slate-400); }
.lp-input-light:focus { border-color: var(--brand-500); box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand-500) 15%, transparent); }
.lp-input-light.invalid { border-color: #ef4444; }
textarea.lp-input-light { resize: vertical; }
.lp-contact .err { margin-top: .375rem; text-align: start; font-size: .875rem; color: #ef4444; }
.lp-contact .form-error { border-radius: .75rem; border: 1px solid rgba(239,68,68,.4); background: rgba(239,68,68,.1); padding: .75rem 1rem; text-align: start; font-size: .875rem; color: #ef4444; }
.lp-contact .send { width: 100%; }
@media (min-width: 640px) { .lp-contact .send { width: auto; min-width: 12rem; } }
.lp-contact .send svg { width: 1.25rem; height: 1.25rem; }
html[dir="rtl"] .lp-contact .send .ic-send { transform: scaleX(-1); }
.lp-contact .disclaimer { margin-top: 2rem; text-align: start; font-size: .75rem; line-height: 1.625; color: var(--slate-500); }
.lp-contact .disclaimer strong { color: var(--slate-700); }
.lp-contact .honeypot { position: absolute; left: -9999px; width: 0; height: 0; overflow: hidden; }
.lp-contact .sent { display: flex; flex-direction: column; align-items: center; border-radius: 1.5rem; border: 1px solid #a7f3d0; background: #ecfdf5; padding: 3.5rem 1.5rem; text-align: center; color: var(--slate-900); margin-top: 2rem; }
.lp-contact .sent svg { width: 3.5rem; height: 3.5rem; color: #059669; }
.lp-contact .sent h3 { margin-top: 1rem; font-size: 1.5rem; font-weight: 700; }
.lp-contact .sent p { margin-top: .5rem; max-width: 28rem; color: var(--slate-600); }
.lp-contact .sent .btn { margin-top: 2rem; }

/* Country select (light) */
.lp-cs { position: relative; width: 100%; }
.lp-cs .trigger { display: flex; width: 100%; align-items: center; justify-content: space-between; gap: .75rem; border-radius: .75rem; border: 1px solid var(--slate-300); background: #fff; padding: .75rem 1rem; text-align: start; box-shadow: 0 1px 2px rgba(0,0,0,.05); cursor: pointer; transition: all .15s; }
.lp-cs .trigger:hover { border-color: var(--slate-400); }
.lp-cs .trigger:focus { outline: none; border-color: var(--brand-500); box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand-500) 15%, transparent); }
.lp-cs .trigger.invalid { border-color: #ef4444; }
.lp-cs .value { display: flex; min-width: 0; align-items: center; gap: .625rem; }
.lp-cs .value .flag { font-size: 1.25rem; line-height: 1; }
.lp-cs .value .name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .875rem; font-weight: 600; color: var(--slate-900); }
.lp-cs .value .ph { font-size: .875rem; color: var(--slate-500); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lp-cs .chev { width: 1rem; height: 1rem; color: var(--slate-500); transition: transform .2s; }
.lp-cs.open .chev { transform: rotate(180deg); }
.lp-cs .panel { position: absolute; z-index: 50; margin-top: .5rem; width: 100%; min-width: 280px; border-radius: 1rem; border: 1px solid var(--slate-200); background: #fff; padding: .5rem; color: var(--slate-900); box-shadow: 0 25px 50px -12px rgba(0,0,0,.25), 0 0 0 1px rgba(0,0,0,.05); }
.lp-cs .search { position: relative; margin-bottom: .5rem; padding-inline: .25rem; }
.lp-cs .search svg { position: absolute; top: 50%; inset-inline-start: .875rem; width: 1rem; height: 1rem; transform: translateY(-50%); color: var(--slate-400); }
.lp-cs .search input { width: 100%; border-radius: .75rem; border: 1px solid var(--slate-300); background: #f8fafc; padding: .5rem 2rem .5rem 2.25rem; font-size: .875rem; color: var(--slate-900); outline: none; }
html[dir="rtl"] .lp-cs .search input { padding: .5rem 2.25rem .5rem 2rem; }
.lp-cs .search input:focus { border-color: var(--brand-500); background: #fff; }
.lp-cs ul { max-height: 15rem; overflow-y: auto; overscroll-behavior: contain; padding: .25rem; font-size: .875rem; }
.lp-cs li button { display: flex; width: 100%; align-items: center; justify-content: space-between; gap: .75rem; border-radius: .5rem; padding: .5rem .75rem; text-align: start; border: 0; background: none; color: var(--slate-800); cursor: pointer; transition: background .15s; }
.lp-cs li button:hover { background: var(--slate-100); color: #020617; }
.lp-cs li button.sel { background: color-mix(in srgb, var(--brand-500) 10%, #fff); color: var(--brand-600); font-weight: 600; }
.lp-cs li .row { display: flex; align-items: center; gap: .625rem; overflow: hidden; }
.lp-cs li .row .flag { font-size: 1.125rem; line-height: 1; }
.lp-cs li .row .en { font-size: 11px; color: var(--slate-500); }
.lp-cs li svg { width: 1rem; height: 1rem; color: var(--brand-600); }
.lp-cs .none { padding: 1.5rem 0; text-align: center; font-size: .75rem; color: var(--slate-400); }

/* Footer */
.lp-footer { margin-top: 2rem; border-top: 1px solid rgba(255,255,255,.1); background: var(--ink-950); }
.lp-footer .bar { display: flex; flex-direction: column; gap: 1rem; padding-block: 2rem; font-size: .75rem; line-height: 1.625; color: var(--slate-500); }
.lp-footer img { width: 7rem; height: auto; }
.lp-footer a:hover { color: var(--slate-300); }
@media (min-width: 640px) { .lp-footer .bar { flex-direction: row; align-items: center; justify-content: space-between; } }

/* Auth pages (signup / forgot / reset): one centred glass card on the hero background */
.lp-auth { position: relative; min-height: calc(100vh - 4rem); background: var(--ink-900); overflow-x: clip; }
.lp-auth .glow-a { top: -10rem; right: -10%; width: 42rem; height: 42rem; background: color-mix(in srgb, var(--brand-500) 15%, transparent); }
.lp-auth .glow-b { bottom: -20rem; left: -10rem; width: 32rem; height: 32rem; background: color-mix(in srgb, var(--lp-buy) 10%, transparent); }
.lp-auth .inner { position: relative; display: flex; flex-direction: column; align-items: center; padding-block: 3rem 5rem; }
.lp-auth h1 { font-size: 2.25rem; line-height: 2.5rem; font-weight: 800; letter-spacing: -.025em; color: #fff; text-align: center; }
.lp-auth .sub { margin-top: .75rem; max-width: 28rem; text-align: center; font-size: 1.0625rem; line-height: 1.625; color: var(--slate-300); }
.lp-auth .lp-card { width: 100%; }
.lp-auth .state { text-align: center; }
.lp-auth .state svg { margin-inline: auto; width: 3.5rem; height: 3.5rem; color: var(--brand-400); }
.lp-auth .state.ok svg { color: var(--lp-buy); }
.lp-auth .state.bad svg { color: #f59e0b; }
.lp-auth .state h2 { margin-top: 1rem; font-size: 1.375rem; font-weight: 700; color: #fff; }
.lp-auth .state p { margin-top: .5rem; color: var(--slate-300); }
.lp-auth .state .btn { margin-top: 1.5rem; }
@media (min-width: 640px) { .lp-auth h1 { font-size: 3rem; line-height: 1.1; } }
@media (min-width: 1024px) { .lp-auth .inner { padding-block: 5rem 7rem; } }
.lp .hidden { display: none !important; }

/* ── Animations ───────────────────────────────────────────────────────── */
@keyframes lp-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }
@keyframes lp-pulse-ring { 0% { transform: scale(.9); opacity: .7; } 100% { transform: scale(1.35); opacity: 0; } }
@keyframes lp-spin { to { transform: rotate(360deg); } }

.lp .reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s cubic-bezier(.16,1,.3,1), transform .8s cubic-bezier(.16,1,.3,1); will-change: opacity, transform; }
.lp .reveal.is-visible { opacity: 1; transform: translateY(0); }
.lp .reveal-delay-1 { transition-delay: .1s; }
.lp .reveal-delay-2 { transition-delay: .2s; }
.lp .reveal-delay-3 { transition-delay: .3s; }
.lp .reveal-delay-4 { transition-delay: .4s; }
.lp .reveal-delay-5 { transition-delay: .5s; }
.lp .reveal-delay-6 { transition-delay: .6s; }

@media (prefers-reduced-motion: reduce) {
  html:has(body.lp) { scroll-behavior: auto; }
  .lp *, .lp *::before, .lp *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* ── Light theme ──────────────────────────────────────────────────────────
   Header switch (#themeSwitch); the choice is shared with the portal via
   localStorage "portal-theme" (dark by default). The dark "ink" sections turn
   white/slate; the light sections and the dark CTA banner stay as they are. */
.lp-header .theme { display: inline-flex; align-items: center; padding: .3rem .5rem; }
.lp-header .theme svg { width: 1.125rem; height: 1.125rem; }

:root[data-bs-theme="light"] body.lp { background: #fff; color: var(--slate-700); }
:root[data-bs-theme="light"] .lp img.brand-logo-white { filter: none; }
:root[data-bs-theme="light"] .lp img.brand-logo-white[src*="landing/img/logo-sahmee-ai"] { filter: brightness(0); }

:root[data-bs-theme="light"] .lp .btn-outline { color: var(--slate-900); }
:root[data-bs-theme="light"] .lp .btn-outline:hover { background: rgba(15,23,42,.04); }

:root[data-bs-theme="light"] .lp-header { background: rgba(255,255,255,.85); border-bottom-color: rgba(15,23,42,.08); }
:root[data-bs-theme="light"] .lp-header .actions { color: var(--slate-600); }
:root[data-bs-theme="light"] .lp-header .icon-link:hover { background: rgba(15,23,42,.06); color: var(--slate-900); }
:root[data-bs-theme="light"] .lp-header .lang { border-color: rgba(15,23,42,.15); color: var(--slate-700); }
:root[data-bs-theme="light"] .lp-header .lang:hover { background: rgba(15,23,42,.04); color: var(--slate-900); }

:root[data-bs-theme="light"] .lp .sec-dark { background: #fff; color: var(--slate-900); }
:root[data-bs-theme="light"] .lp .section-title { color: var(--slate-900); }

:root[data-bs-theme="light"] .lp-hero,
:root[data-bs-theme="light"] .lp-auth { background: #fff; }
:root[data-bs-theme="light"] .lp-hero h1,
:root[data-bs-theme="light"] .lp-hero .tagline .dot,
:root[data-bs-theme="light"] .lp-auth h1,
:root[data-bs-theme="light"] .lp-auth .state h2 { color: var(--slate-900); }
:root[data-bs-theme="light"] .lp-hero .subtitle,
:root[data-bs-theme="light"] .lp-auth .sub,
:root[data-bs-theme="light"] .lp-auth .state p { color: var(--slate-600); }

:root[data-bs-theme="light"] .lp-card { border-color: rgba(15,23,42,.1); background: rgba(255,255,255,.85); box-shadow: 0 25px 50px -12px rgba(15,23,42,.15); }
:root[data-bs-theme="light"] .lp-card label { color: var(--slate-700); }
:root[data-bs-theme="light"] .lp-card .foot { color: var(--slate-600); }
:root[data-bs-theme="light"] .lp-input { border-color: var(--slate-300); background: #fff; color: var(--slate-900); }
:root[data-bs-theme="light"] .lp-input:focus { background: #fff; }
:root[data-bs-theme="light"] .lp-input::placeholder { color: var(--slate-400); }
:root[data-bs-theme="light"] .lp-pw .toggle:hover { color: var(--slate-900); }
:root[data-bs-theme="light"] .lp-field-error { color: #dc2626; }
:root[data-bs-theme="light"] .lp-alert { color: #b91c1c; }
:root[data-bs-theme="light"] .lp-alert.info { color: var(--slate-700); }
:root[data-bs-theme="light"] .lp-hint { color: var(--slate-500); }

:root[data-bs-theme="light"] .lp-why li { border-color: rgba(15,23,42,.08); }
:root[data-bs-theme="light"] .lp-why li:nth-child(odd) { background: #f8fafc; }
:root[data-bs-theme="light"] .lp-why li:nth-child(even) { background: #fff; }
:root[data-bs-theme="light"] .lp-why li p { color: var(--slate-700); }

:root[data-bs-theme="light"] .lp-video .frame { border-color: rgba(15,23,42,.1); }

:root[data-bs-theme="light"] .lp-faq .list { border-color: rgba(15,23,42,.1); background: #f8fafc; }
:root[data-bs-theme="light"] .lp-faq details + details { border-top-color: rgba(15,23,42,.1); }
:root[data-bs-theme="light"] .lp-faq summary { color: var(--slate-900); }
:root[data-bs-theme="light"] .lp-faq details p { color: var(--slate-600); }

:root[data-bs-theme="light"] .lp-footer { background: var(--slate-100); border-top-color: rgba(15,23,42,.08); }
:root[data-bs-theme="light"] .lp-footer a:hover { color: var(--slate-800); }
