/* Landing page — minimal, centered, with a slow aurora and scroll-in motion. Builds on style.css. */
body.lp { overflow-x: hidden; overflow-y: auto; background: var(--page); }
.lp main { display: block; }

/* nav */
.lpnav { position: sticky; top: 0; z-index: 40; display: flex; align-items: center; gap: 10px; height: 64px; padding: 0 max(20px, calc((100vw - 1160px) / 2)); background: color-mix(in srgb, var(--page) 72%, transparent); backdrop-filter: saturate(180%) blur(18px); -webkit-backdrop-filter: saturate(180%) blur(18px); border-bottom: 1px solid transparent; transition: border-color .3s; }
body.scrolled .lpnav { border-bottom-color: var(--line); }
.lplogo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 700; font-size: 18px; letter-spacing: -.02em; }
.mark { width: 28px; height: 28px; flex: none; }
.mark.big { width: 52px; height: 52px; margin: 0 auto 6px; display: block; filter: drop-shadow(0 10px 24px rgba(91, 92, 255, .35)); }
.lplinks { display: flex; gap: 26px; margin-inline-start: 34px; }
.lplinks a { text-decoration: none; color: var(--ink-mute); font-size: 14px; transition: color .2s; }
.lplinks a:hover { color: var(--ink); }

/* hero */
.hero { position: relative; padding: 92px 20px 40px; text-align: center; overflow: hidden; }
.aurora { position: absolute; inset: -20% -10% auto; height: 760px; pointer-events: none; filter: blur(70px); opacity: .55; z-index: 0; }
.aurora i { position: absolute; border-radius: 50%; mix-blend-mode: multiply; animation: drift 18s ease-in-out infinite alternate; }
.aurora i:nth-child(1) { width: 520px; height: 520px; left: 18%; top: 4%; background: #b9abff; }
.aurora i:nth-child(2) { width: 460px; height: 460px; right: 16%; top: 12%; background: #9fc5ff; animation-duration: 22s; animation-delay: -6s; }
.aurora i:nth-child(3) { width: 420px; height: 420px; left: 40%; top: 32%; background: #a6f0dd; animation-duration: 26s; animation-delay: -12s; }
:root[data-theme="dark"] .aurora { opacity: .32; }
:root[data-theme="dark"] .aurora i { mix-blend-mode: screen; }
@keyframes drift { 0% { transform: translate(0, 0) scale(1); } 50% { transform: translate(40px, -30px) scale(1.08); } 100% { transform: translate(-30px, 30px) scale(.95); } }
.heroin { position: relative; z-index: 1; max-width: 860px; margin: 0 auto; display: flex; flex-direction: column; align-items: center; }
.pill { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px 6px 10px; border-radius: 999px; background: color-mix(in srgb, var(--paper) 80%, transparent); border: 1px solid var(--line-card); font-size: 13px; color: var(--ink-soft); text-decoration: none; backdrop-filter: blur(8px); transition: border-color .2s, transform .2s; }
.pill:hover { border-color: var(--ink-faint); transform: translateY(-1px); }
.dotlive { width: 8px; height: 8px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0 0 rgba(34, 197, 94, .5); animation: ping 2s infinite; }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(34, 197, 94, .45); } 80%, 100% { box-shadow: 0 0 0 10px rgba(34, 197, 94, 0); } }
.hero h1 { margin: 26px 0 0; font-size: clamp(44px, 7.6vw, 92px); line-height: 1.02; letter-spacing: -.045em; font-weight: 600; }
:root[dir="rtl"] .hero h1 { letter-spacing: -.01em; line-height: 1.2; font-weight: 800; }
.grad { background: var(--brand); -webkit-background-clip: text; background-clip: text; color: transparent; background-size: 200% 100%; animation: sheen 8s ease-in-out infinite alternate; }
@keyframes sheen { to { background-position: 100% 0; } }
.lead { margin: 24px auto 0; max-width: 620px; font-size: clamp(16px, 2vw, 19px); line-height: 1.6; color: var(--ink-mute); }
.lpprompt { margin-top: 36px; width: min(620px, 100%); display: flex; align-items: center; gap: 8px; padding: 8px; background: var(--paper); border: 1px solid var(--line-card); border-radius: 999px; box-shadow: 0 24px 60px -24px rgba(60, 60, 140, .35), 0 2px 6px rgba(0, 0, 0, .04); transition: box-shadow .3s, border-color .3s; }
.lpprompt:focus-within { border-color: color-mix(in srgb, #5b5cff 45%, var(--line-card)); box-shadow: 0 0 0 5px rgba(91, 92, 255, .12), 0 24px 60px -24px rgba(60, 60, 140, .4); }
.lpprompt input { flex: 1; height: 46px; border: 0 !important; background: transparent; font-size: 16px; padding: 0 16px; }
.lpprompt .btn-ink { height: 46px; padding: 0 22px; }
.note { margin: 16px 0 0; font-size: 13px; color: var(--ink-faint); }

/* product shot */
.shot { position: relative; z-index: 1; width: min(1000px, 100%); margin: 70px auto 0; height: 440px; }
.win { position: absolute; inset: 0 90px 30px 0; border-radius: 16px; background: var(--paper); border: 1px solid var(--line-card); box-shadow: 0 40px 80px -40px rgba(20, 20, 60, .35); overflow: hidden; animation: float 9s ease-in-out infinite; }
.winbar { height: 38px; display: flex; align-items: center; gap: 7px; padding: 0 14px; border-bottom: 1px solid var(--line); background: var(--panel); }
.winbar i { width: 10px; height: 10px; border-radius: 50%; background: var(--line-btn); }
.winbar span { margin-inline-start: 14px; font-size: 11.5px; color: var(--ink-faint); font-family: var(--mono); direction: ltr; }
.winbody { display: grid; grid-template-columns: 170px 1fr; height: calc(100% - 38px); }
.winbody aside { border-inline-end: 1px solid var(--line); padding: 18px 14px; display: flex; flex-direction: column; gap: 10px; }
.winbody aside b { height: 22px; width: 70%; border-radius: 6px; background: var(--brand); margin-bottom: 10px; opacity: .9; }
.winbody aside span { height: 12px; border-radius: 6px; background: var(--fill); }
.winbody aside span.on { background: color-mix(in srgb, #5b5cff 28%, var(--fill)); }
.wmain { padding: 22px; display: flex; flex-direction: column; gap: 16px; }
.wh { height: 22px; width: 38%; border-radius: 6px; background: var(--fill); }
.wcards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.wcards div { height: 92px; border-radius: 12px; }
.wcards .c1 { background: linear-gradient(135deg, #ede9ff, #dfe8ff); }
.wcards .c2 { background: linear-gradient(135deg, #e0f2ff, #d9fbf1); }
.wcards .c3 { background: linear-gradient(135deg, #fdf0e1, #fde7ef); }
:root[data-theme="dark"] .wcards div { filter: brightness(.3) saturate(1.4); }
.wlist { display: flex; flex-direction: column; gap: 10px; }
.wlist span { height: 38px; border-radius: 10px; border: 1px solid var(--line); background: linear-gradient(90deg, var(--fill) 0 30px, transparent 30px); }
.phone { position: absolute; inset-inline-end: 0; bottom: 0; width: 210px; height: 410px; border-radius: 34px; background: var(--paper); border: 1px solid var(--line-card); box-shadow: 0 40px 80px -30px rgba(20, 20, 60, .45); overflow: hidden; animation: float 9s ease-in-out infinite; animation-delay: -4.5s; }
.pnotch { width: 70px; height: 18px; border-radius: 0 0 12px 12px; background: var(--ink); margin: 0 auto; opacity: .9; }
.pbody { padding: 16px 14px; display: flex; flex-direction: column; gap: 12px; height: calc(100% - 18px); }
.ph { height: 18px; width: 55%; border-radius: 6px; background: var(--fill); }
.pcard { height: 110px; border-radius: 16px; background: var(--brand); opacity: .9; }
.prow { display: flex; gap: 10px; }
.prow span { flex: 1; height: 62px; border-radius: 12px; background: var(--fill); }
.ptabs { margin-top: auto; display: flex; justify-content: space-around; padding: 10px 6px 4px; border-top: 1px solid var(--line); }
.ptabs i { width: 20px; height: 20px; border-radius: 6px; background: var(--fill); }
.ptabs i.on { background: #5b5cff; }
@keyframes float { 50% { transform: translateY(-10px); } }

/* sections */
.sect { max-width: 1100px; margin: 0 auto; padding: 110px 20px 0; }
.sh { margin: 0 auto; text-align: center; font-size: clamp(30px, 4.4vw, 48px); letter-spacing: -.035em; line-height: 1.1; font-weight: 600; max-width: 760px; }
:root[dir="rtl"] .sh { letter-spacing: 0; line-height: 1.35; font-weight: 800; }
.grid6 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.feat { padding: 28px 26px; border-radius: 22px; background: var(--panel); border: 1px solid transparent; transition: transform .35s cubic-bezier(.2, .8, .2, 1), border-color .3s, background .3s; }
.feat:hover { transform: translateY(-4px); border-color: var(--line-card); background: var(--paper); }
.feat .i { width: 26px; height: 26px; stroke: url(#hg); stroke-width: 1.8; }
.feat h3 { margin: 18px 0 8px; font-size: 18px; font-weight: 600; letter-spacing: -.01em; }
.feat p { margin: 0; color: var(--ink-mute); line-height: 1.6; font-size: 14.5px; }
.steps { list-style: none; padding: 0; margin: 54px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; counter-reset: s; }
.steps li { padding: 28px 26px; border-radius: 22px; border: 1px solid var(--line-card); background: var(--paper); text-align: start; }
.num { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--brand); color: #fff; font-weight: 600; }
.steps h3 { margin: 18px 0 8px; font-size: 18px; font-weight: 600; }
.steps p { margin: 0; color: var(--ink-mute); line-height: 1.6; font-size: 14.5px; }

.agent { display: grid; grid-template-columns: 1.1fr 1fr; gap: 50px; align-items: center; }
.agent .sh, .agent .lead { text-align: start; margin-inline: 0; }
.msgr { display: flex; gap: 10px; margin-top: 26px; flex-wrap: wrap; }
.msgr span { padding: 8px 16px; border-radius: 999px; font-size: 14px; font-weight: 500; color: #fff; }
.msgr .tg { background: #2aabee; } .msgr .bl { background: #19a17a; }
.chatmock { padding: 18px; border-radius: 26px; background: var(--panel); border: 1px solid var(--line-card); display: flex; flex-direction: column; gap: 10px; box-shadow: 0 30px 60px -36px rgba(20, 20, 60, .35); }
.cm-head { display: flex; align-items: center; gap: 10px; padding: 2px 4px 10px; border-bottom: 1px solid var(--line); }
.cm-head .mark { width: 30px; height: 30px; }
.cm-head small { color: var(--ink-faint); }
.cm-b { max-width: 82%; padding: 10px 14px; border-radius: 18px; font-size: 14px; line-height: 1.5; opacity: 0; transform: translateY(8px); transition: opacity .5s, transform .5s; }
.chatmock.in .cm-b { opacity: 1; transform: none; }
.chatmock.in .cm-b:nth-child(3) { transition-delay: .6s; } .chatmock.in .cm-b:nth-child(4) { transition-delay: 1.4s; }
.cm-b.me { align-self: flex-end; background: #2aabee; color: #fff; border-end-end-radius: 6px; }
.cm-b.bot { align-self: flex-start; background: var(--paper); border: 1px solid var(--line); border-end-start-radius: 6px; }
.cm-b.ok a { display: block; margin-top: 6px; color: #2563eb; font-weight: 500; }

.cta { max-width: 1100px; margin: 110px auto 0; padding: 70px 20px; text-align: center; border-radius: 32px; position: relative; overflow: hidden; background: radial-gradient(120% 140% at 50% 0%, color-mix(in srgb, #7c5cff 14%, var(--panel)), var(--panel) 60%); }
.cta h2 { margin: 0 auto 28px; font-size: clamp(28px, 4vw, 44px); letter-spacing: -.03em; font-weight: 600; max-width: 700px; }
:root[dir="rtl"] .cta h2 { letter-spacing: 0; font-weight: 800; line-height: 1.4; }
.lpfoot { max-width: 1100px; margin: 0 auto; padding: 40px 20px 50px; display: flex; align-items: center; gap: 10px; color: var(--ink-faint); font-size: 13px; }
.lpfoot .mark { width: 22px; height: 22px; }

/* scroll-in motion */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .8s cubic-bezier(.2, .8, .2, 1) var(--d, 0ms), transform .8s cubic-bezier(.2, .8, .2, 1) var(--d, 0ms); }
.reveal.in { opacity: 1; transform: none; }
/* the hero animates on load by itself (no waiting for script or scroll) */
.hero .reveal { opacity: 1; transform: none; transition: none; animation: rise .8s var(--ease) both; animation-delay: var(--d, 0ms); }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } .aurora i, .win, .phone, .grad { animation: none; } }

/* sign-in sheet */
.sheet { position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; padding: 16px; }
.sheetbg { position: absolute; inset: 0; background: rgba(10, 10, 20, .36); backdrop-filter: blur(6px); opacity: 0; transition: opacity .22s; }
.sheet.open .sheetbg { opacity: 1; }
.sheetcard { position: relative; width: min(420px, 100%); background: var(--paper); border-radius: 28px; padding: 34px 30px 22px; box-shadow: 0 40px 100px -30px rgba(0, 0, 0, .45); text-align: center; transform: translateY(16px) scale(.98); opacity: 0; transition: transform .32s cubic-bezier(.2, .9, .25, 1.05), opacity .22s; }
.sheet.open .sheetcard { transform: none; opacity: 1; }
.sheetcard.done { transform: scale(.97); opacity: 0; }
.sheetx { position: absolute; top: 14px; inset-inline-end: 14px; }
.sheetcard h2 { margin: 6px 0 4px; font-size: 24px; font-weight: 600; letter-spacing: -.02em; }
.sheetcard > p.muted { margin: 0 0 22px; font-size: 14px; }
.authstep { display: flex; flex-direction: column; gap: 14px; }
.googlewrap { display: flex; justify-content: center; min-height: 44px; }
.orline { display: flex; align-items: center; gap: 12px; color: var(--ink-faint); font-size: 12px; }
.orline::before, .orline::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.seg.wide { display: flex; width: 100%; }
.seg.wide button { flex: 1; height: 34px; font-size: 13.5px; }
.authform { display: flex; flex-direction: column; gap: 10px; }
.authform input { height: 50px; border-radius: 14px; font-size: 16px; padding: 0 16px; text-align: center; }
.codein { letter-spacing: .5em; font-size: 24px !important; font-weight: 600; font-family: var(--mono); padding-inline-start: calc(16px + .5em) !important; }
.codeto { margin: 0; font-size: 14px; color: var(--ink-soft); }
.linkbtn { color: var(--ink); font-size: 13px; text-decoration: underline; text-underline-offset: 3px; }
.linkbtn:disabled { color: var(--ink-faint); text-decoration: none; opacity: 1; }
.row.center { justify-content: center; }
.autherr { min-height: 1.2em; margin: 12px 0 0; color: var(--danger); font-size: 13px; }
.terms { margin: 6px 0 0; }

/* small screens */
@media (max-width: 900px) {
  .lplinks { display: none; }
  .grid6, .steps { grid-template-columns: 1fr 1fr; }
  .agent { grid-template-columns: 1fr; }
  .shot { height: 360px; }
  .win { inset: 0 60px 40px 0; }
  .winbody { grid-template-columns: 110px 1fr; }
  .phone { width: 170px; height: 330px; }
}
@media (max-width: 600px) {
  .lpnav { padding: 0 14px; gap: 6px; }
  .lpnav .btn-line { display: none; }
  .hero { padding-top: 56px; }
  .lpprompt { flex-direction: column; border-radius: 24px; padding: 10px; }
  .lpprompt input, .lpprompt .btn-ink { width: 100%; }
  .grid6, .steps { grid-template-columns: 1fr; }
  .sect { padding-top: 80px; }
  .shot { height: 300px; margin-top: 50px; }
  .win { inset: 0 40px 50px 0; }
  .winbody aside { display: none; } .winbody { grid-template-columns: 1fr; }
  .wcards { grid-template-columns: 1fr 1fr; } .wcards .c3 { display: none; }
  .phone { width: 140px; height: 270px; border-radius: 26px; }
  .cta { border-radius: 24px; margin-inline: 14px; }
}
