/* ============================================================
   TaraChat landing / sign-in page (public/index.html)
   Owns the marketing shell around the untouched .auth-card forms
   (public/js/auth.js) and the live Services view (public/js/landing.js).
   Palette follows the app's two themes: nord → dark, daylight → light.
   ============================================================ */

.landing {
  --lp-bg: #0b0f16;
  --lp-bg-2: #0f141d;
  --lp-surface: #131925;
  --lp-surface-2: #182030;
  --lp-input: #0f1520;
  --lp-line: rgba(196, 210, 230, .08);
  --lp-line-strong: rgba(196, 210, 230, .15);
  --lp-ink: #eef1f6;
  --lp-ink-2: #b9c2d0;
  --lp-muted: #8792a4;
  --lp-accent: #88c0d0;
  --lp-accent-rgb: 136, 192, 208;
  --lp-accent-2: #b48ead;
  --lp-on-accent: #0b1220;
  --lp-grad: linear-gradient(100deg, #8fbcbb 0%, #88c0d0 40%, #b48ead 100%);
  --lp-btn-grad: linear-gradient(135deg, #8fbcbb, #88c0d0 55%, #81a1c1);
  --lp-shadow: 0 1px 0 rgba(255, 255, 255, .04) inset, 0 30px 80px -30px rgba(0, 0, 0, .75), 0 10px 30px -12px rgba(0, 0, 0, .5);
  --lp-orb-a: rgba(136, 192, 208, .22);
  --lp-orb-b: rgba(180, 142, 173, .18);
  --lp-orb-c: rgba(143, 188, 187, .12);
  --lp-name-mix: 100%;

  --lp-max: 1200px;
  --lp-nav-h: 68px;
  --lp-radius: 20px;
  --lp-font-display: "Plus Jakarta Sans", Inter, system-ui, sans-serif;
  --lp-ease: cubic-bezier(.2, .7, .2, 1);

  /* Re-skin the shared auth form components (style.css) to the landing palette */
  --bg-card: var(--lp-surface);
  --bg-input: var(--lp-input);
  --bg-secondary: var(--lp-surface-2);
  --border: var(--lp-line-strong);
  --border-light: var(--lp-line);
  --text-primary: var(--lp-ink);
  --text-secondary: var(--lp-ink-2);
  --text-muted: var(--lp-muted);
  --accent: var(--lp-accent);
  --accent-rgb: var(--lp-accent-rgb);
  --auth-accent: #88c0d0;
  --auth-accent-2: #81a1c1;
}

[data-theme=daylight] .landing {
  --lp-bg: #f7f4ee;
  --lp-bg-2: #f1ece3;
  --lp-surface: #fffdf9;
  --lp-surface-2: #f3efe8;
  --lp-input: #fbf9f5;
  --lp-line: rgba(60, 50, 35, .09);
  --lp-line-strong: rgba(60, 50, 35, .17);
  --lp-ink: #1f1d1a;
  --lp-ink-2: #4d4940;
  --lp-muted: #776f62;
  --lp-accent: #8a501f;
  --lp-accent-rgb: 138, 80, 31;
  --lp-accent-2: #c27a2c;
  --lp-on-accent: #fff;
  --lp-grad: linear-gradient(100deg, #8a501f 0%, #c27a2c 55%, #b5562f 100%);
  --lp-btn-grad: linear-gradient(135deg, #9a5a24, #8a501f 60%, #74421a);
  --lp-shadow: 0 1px 0 rgba(255, 255, 255, .7) inset, 0 30px 70px -32px rgba(70, 50, 25, .35), 0 8px 24px -12px rgba(70, 50, 25, .18);
  --lp-orb-a: rgba(194, 122, 44, .16);
  --lp-orb-b: rgba(181, 86, 47, .1);
  --lp-orb-c: rgba(138, 80, 31, .08);
  --lp-name-mix: 72%;
  --auth-accent: #9a5a24;
  --auth-accent-2: #74421a;
}

/* ── Page canvas (undo the centered single-card .auth-page layout) ── */
body.landing {
  display: block;
  min-height: 100dvh;
  overflow-x: clip;
  overflow-y: auto;
  background: var(--lp-bg);
  color: var(--lp-ink);
  font-family: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
.landing *, .landing *::before, .landing *::after { box-sizing: border-box; }
:where(.landing svg:not([width])) { width: 1em; height: 1em; } /* zero specificity: style.css auth icons keep their sizes */
.lp-tier-icon svg, .lp-badge-icon svg { width: 24px; height: 24px; fill: none; stroke: var(--tc, var(--lp-accent)); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.landing svg use { pointer-events: none; }
.landing [hidden] { display: none !important; }
html:has(body.landing) { scroll-behavior: smooth; scroll-padding-top: calc(var(--lp-nav-h) + 16px); }
.landing ::selection { background: rgba(var(--lp-accent-rgb), .3); }

.lp-wrap { width: min(100% - 32px, var(--lp-max)); margin-inline: auto; }

.lp-skip {
  position: fixed; left: 16px; top: -60px; z-index: 200;
  padding: 10px 14px; border-radius: 10px;
  background: var(--lp-accent); color: var(--lp-on-accent); font-weight: 600; text-decoration: none;
}
.lp-skip:focus { top: 12px; }

/* ── Ambient background ── */
.lp-bg { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.lp-orb { position: absolute; border-radius: 50%; filter: blur(80px); }
.lp-orb--a { width: 620px; height: 620px; top: -220px; left: -160px; background: var(--lp-orb-a); animation: lpDrift 22s ease-in-out infinite alternate; }
.lp-orb--b { width: 560px; height: 560px; top: 10%; right: -200px; background: var(--lp-orb-b); animation: lpDrift 26s ease-in-out infinite alternate-reverse; }
.lp-orb--c { width: 700px; height: 500px; bottom: -260px; left: 30%; background: var(--lp-orb-c); animation: lpDrift 30s ease-in-out infinite alternate; }
.lp-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(var(--lp-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--lp-line) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 70% 55% at 50% 0%, #000 0%, transparent 75%);
  opacity: .7;
}
@keyframes lpDrift { to { transform: translate3d(60px, 40px, 0) scale(1.08); } }

#lp-main, .lp-footer { position: relative; z-index: 1; }

/* ── Navigation ── */
.lp-nav {
  position: fixed; inset: 0 0 auto; z-index: 50;
  height: var(--lp-nav-h);
  border-bottom: 1px solid transparent;
  transition: background .3s, border-color .3s, box-shadow .3s;
}
.lp-nav.is-scrolled, .lp-nav.is-open {
  background: color-mix(in oklab, var(--lp-bg) 82%, transparent);
  backdrop-filter: blur(14px) saturate(1.3);
  -webkit-backdrop-filter: blur(14px) saturate(1.3);
  border-bottom-color: var(--lp-line);
}
.lp-nav-inner {
  width: min(100% - 32px, var(--lp-max)); height: 100%; margin-inline: auto;
  display: flex; align-items: center; gap: 24px;
}
.lp-logo {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--lp-ink); text-decoration: none;
  font-family: var(--lp-font-display); font-weight: 800; letter-spacing: .14em; font-size: 15px;
}
.lp-logo img { width: 34px; height: 34px; object-fit: contain; filter: drop-shadow(0 4px 14px rgba(var(--lp-accent-rgb), .35)); }
.lp-links { display: flex; align-items: center; gap: 4px; margin-left: 12px; }
.lp-links a {
  position: relative; display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 14px; border-radius: 999px;
  color: var(--lp-ink-2); text-decoration: none; font-size: 14px; font-weight: 500;
  transition: color .2s, background .2s;
}
.lp-links a:hover { color: var(--lp-ink); background: var(--lp-line); }
.lp-links a[aria-current=page] { color: var(--lp-ink); background: var(--lp-line-strong); }
.lp-nav-actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }

.lp-icon-btn {
  display: inline-grid; place-items: center; width: 40px; height: 40px;
  border-radius: 12px; border: 1px solid var(--lp-line-strong);
  background: transparent; color: var(--lp-ink-2); cursor: pointer;
  transition: color .2s, background .2s, border-color .2s;
}
.lp-icon-btn:hover { color: var(--lp-ink); background: var(--lp-line); }
.lp-icon-btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.lp-theme-moon, [data-theme=daylight] .lp-theme-sun { display: none; }
[data-theme=daylight] .lp-theme-moon { display: block; }
.lp-menu-btn, .lp-menu-close { display: none; }
.lp-nav.is-open .lp-menu-open { display: none; }
.lp-nav.is-open .lp-menu-close { display: block; }

.lp-live-dot {
  display: inline-block; width: 7px; height: 7px; border-radius: 50%;
  background: #4ade80; box-shadow: 0 0 0 0 rgba(74, 222, 128, .6);
  animation: lpPing 2.2s infinite;
}
@keyframes lpPing { 0% { box-shadow: 0 0 0 0 rgba(74, 222, 128, .55); } 70%, 100% { box-shadow: 0 0 0 7px rgba(74, 222, 128, 0); } }

/* ── Buttons ── */
.lp-btn {
  --b-pad: 10px 18px;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: var(--b-pad); border-radius: 12px; border: 1px solid transparent;
  font: 600 14px/1.2 Inter, system-ui, sans-serif; text-decoration: none; white-space: nowrap;
  cursor: pointer; transition: transform .2s var(--lp-ease), box-shadow .2s, background .2s, color .2s, border-color .2s;
}
.lp-btn svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.lp-btn:active { transform: translateY(1px) scale(.99); }
.lp-btn--lg { --b-pad: 14px 22px; font-size: 15px; border-radius: 14px; }
.lp-btn--accent { background: var(--lp-btn-grad); color: var(--lp-on-accent); box-shadow: 0 8px 24px -10px rgba(var(--lp-accent-rgb), .7); }
.lp-btn--accent:hover { transform: translateY(-1px); box-shadow: 0 14px 32px -12px rgba(var(--lp-accent-rgb), .85); }
.lp-btn--accent:hover svg { transform: translateX(2px); transition: transform .2s; }
.lp-btn--soft { background: var(--lp-surface); color: var(--lp-ink); border-color: var(--lp-line-strong); }
.lp-btn--soft:hover { border-color: rgba(var(--lp-accent-rgb), .5); transform: translateY(-1px); }
.lp-btn--ghost { background: transparent; color: var(--lp-ink-2); }
.lp-btn--ghost:hover { color: var(--lp-ink); background: var(--lp-line); }
.lp-btn:focus-visible, .lp-icon-btn:focus-visible, .lp-links a:focus-visible, .lp-tab:focus-visible {
  outline: 2px solid var(--lp-accent); outline-offset: 2px;
}

/* ── Type ── */
.lp-eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 6px 14px 6px 10px; border-radius: 999px;
  border: 1px solid var(--lp-line-strong); background: color-mix(in oklab, var(--lp-surface) 70%, transparent);
  color: var(--lp-ink-2); font-size: 13px; font-weight: 500;
}
.lp-pulse { position: relative; width: 8px; height: 8px; border-radius: 50%; background: #4ade80; }
.lp-pulse::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 2px solid #4ade80; opacity: 0; animation: lpPulse 2s infinite; }
@keyframes lpPulse { 0% { transform: scale(.5); opacity: .8; } 100% { transform: scale(1.6); opacity: 0; } }

.lp-h1 {
  margin: 22px 0 18px;
  font-family: var(--lp-font-display); font-weight: 800;
  font-size: clamp(2.4rem, 1.4rem + 3.6vw, 4.3rem); line-height: 1.04; letter-spacing: -.035em;
  color: var(--lp-ink); text-wrap: balance;
}
.lp-h1--sm { font-size: clamp(2.2rem, 1.4rem + 2.8vw, 3.6rem); }
.lp-grad { background: var(--lp-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lp-lead { margin: 0; max-width: 58ch; font-size: clamp(1rem, .95rem + .3vw, 1.15rem); line-height: 1.65; color: var(--lp-ink-2); text-wrap: pretty; }
.lp-h2 {
  margin: 10px 0 12px;
  font-family: var(--lp-font-display); font-weight: 800;
  font-size: clamp(1.7rem, 1.2rem + 1.8vw, 2.6rem); line-height: 1.12; letter-spacing: -.025em;
  color: var(--lp-ink); text-wrap: balance;
}
.lp-sub { margin: 0; max-width: 60ch; color: var(--lp-ink-2); line-height: 1.65; font-size: 1rem; text-wrap: pretty; }
.lp-kicker {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--lp-accent); font-size: 12.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
}
.lp-fine { margin: 14px 0 0; font-size: 13px; color: var(--lp-muted); }
.lp-center { display: flex; justify-content: center; margin-top: 36px; }

/* ── View switching ── */
.lp-view[data-view=services] { display: none; }
[data-lp-view=services] .lp-view[data-view=services] { display: block; }
[data-lp-view=services] .lp-view[data-view=home] { display: none; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .28s; }

/* ── Hero ── */
.lp-hero {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(360px, 440px);
  align-items: center; gap: clamp(32px, 5vw, 72px);
  min-height: min(100dvh, 920px);
  padding-block: calc(var(--lp-nav-h) + 40px) 64px;
}
.lp-cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.lp-trust { display: flex; flex-wrap: wrap; gap: 10px 22px; margin: 32px 0 0; padding: 0; list-style: none; }
.lp-trust li { display: inline-flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--lp-muted); }
.lp-trust svg { width: 16px; height: 16px; fill: none; stroke: var(--lp-accent); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ── Auth card (wraps the existing auth.js forms) ── */
.lp-hero-auth { position: relative; }
.lp-hero-auth::before {
  content: ""; position: absolute; inset: -1px; border-radius: 25px; z-index: 0;
  background: linear-gradient(160deg, rgba(var(--lp-accent-rgb), .55), transparent 35%, transparent 65%, color-mix(in oklab, var(--lp-accent-2) 50%, transparent));
  opacity: .55;
}
.landing .auth-card.lp-card {
  display: block; position: relative; z-index: 1;
  width: 100%; padding: 0; overflow: visible;
  border-radius: 24px; border: 1px solid var(--lp-line-strong);
  background: var(--lp-surface); box-shadow: var(--lp-shadow);
}
.landing .lp-card .auth-main { padding: 30px 30px 22px; }
.lp-card-head { margin-bottom: 20px; }
.lp-card-head h2 { margin: 0 0 6px; font-family: var(--lp-font-display); font-size: 1.5rem; font-weight: 800; letter-spacing: -.02em; color: var(--lp-ink); }
.lp-card-head p { margin: 0; font-size: 14px; color: var(--lp-muted); }
.lp-card.is-hl { animation: lpCardHl 1.1s var(--lp-ease); }
@keyframes lpCardHl { 0% { box-shadow: 0 0 0 0 rgba(var(--lp-accent-rgb), .6), var(--lp-shadow); } 100% { box-shadow: 0 0 0 14px rgba(var(--lp-accent-rgb), 0), var(--lp-shadow); } }

.landing .auth-toggle { background: var(--lp-surface-2); border-color: var(--lp-line); margin-bottom: 20px; }
.landing .toggle-btn { color: var(--lp-muted); }
.landing .toggle-btn.active, .landing .btn-primary, .landing .mic-allow-btn { color: var(--lp-on-accent); }
.landing .btn-primary { background: var(--lp-btn-grad); }
.landing .toggle-slider { background: var(--lp-btn-grad); box-shadow: 0 2px 12px rgba(var(--lp-accent-rgb), .35); }
/* single column inside the narrow hero card (style.css goes 2-col above 900px) */
.landing #register-form.active { display: flex; }
.landing .auth-footer:empty, .landing .auth-theme-bar:empty, .landing .auth-lang-bar:empty { display: none; }
.landing .auth-footer { margin-top: 18px; }

/* ── Showcase (CSS-built product preview) ── */
.lp-showcase { position: relative; padding-bottom: 40px; }
.lp-window {
  position: relative; border-radius: 22px; overflow: hidden;
  border: 1px solid var(--lp-line-strong); background: var(--lp-surface);
  box-shadow: var(--lp-shadow), 0 0 0 8px color-mix(in oklab, var(--lp-surface) 40%, transparent);
}
.lp-window-bar {
  display: flex; align-items: center; gap: 14px; padding: 12px 16px;
  border-bottom: 1px solid var(--lp-line); background: var(--lp-surface-2);
  font-size: 13.5px; color: var(--lp-ink-2);
}
.lp-dots { display: inline-flex; gap: 6px; }
.lp-dots i { width: 11px; height: 11px; border-radius: 50%; background: #ef6b5e; }
.lp-dots i:nth-child(2) { background: #f2bf4f; }
.lp-dots i:nth-child(3) { background: #5ac85a; }
.lp-window-title { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: var(--lp-ink); }
.lp-room-crown { filter: drop-shadow(0 0 6px rgba(255, 200, 60, .6)); }
.lp-live-chip { padding: 2px 7px; border-radius: 6px; background: #ef4444; color: #fff; font-size: 10px; font-weight: 800; letter-spacing: .08em; }
.lp-window-meta { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; color: var(--lp-muted); }
.lp-window-meta svg { fill: none; stroke: currentColor; stroke-width: 2; }
.lp-window-body { display: grid; grid-template-columns: minmax(0, 1fr) 240px; min-height: 380px; }
.lp-chat { display: flex; flex-direction: column; gap: 14px; padding: 22px; }
.lp-msg { display: flex; gap: 12px; align-items: flex-start; }
.lp-msg b { font-size: 14px; display: inline-flex; align-items: center; gap: 6px; }
.lp-msg small { margin-left: 8px; font-size: 11.5px; color: var(--lp-muted); }
.lp-msg p { margin: 3px 0 0; font-size: 14.5px; color: var(--lp-ink); line-height: 1.5; }
.lp-msg--hl { margin: -6px -10px; padding: 8px 10px; border-radius: 12px; border-left: 3px solid #e0a640; background: linear-gradient(90deg, rgba(224, 166, 64, .14), transparent 80%); }
.lp-tag { padding: 1px 6px; border-radius: 6px; background: rgba(224, 166, 64, .18); color: #e0a640; font-size: 10px; font-weight: 800; letter-spacing: .06em; }
.lp-rt-b { font-weight: 800; }
.lp-av {
  flex-shrink: 0; display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 50%;
  background: linear-gradient(135deg, hsl(var(--h) 65% 62%), hsl(calc(var(--h) + 40) 60% 48%));
  color: #fff; font-weight: 700; font-size: 14px;
}
.lp-sys {
  align-self: center; display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 14px; border-radius: 999px; font-size: 13px; color: var(--lp-ink-2);
  background: color-mix(in oklab, #f472b6 12%, transparent); border: 1px solid color-mix(in oklab, #f472b6 30%, transparent);
}
.lp-sys svg { fill: none; stroke: #f472b6; stroke-width: 2; }
.lp-composer {
  margin-top: auto; display: flex; align-items: center; gap: 12px; padding: 10px 10px 10px 14px;
  border-radius: 14px; border: 1px solid var(--lp-line-strong); background: var(--lp-input);
  font-size: 14px; color: var(--lp-muted);
}
.lp-aa { font-weight: 800; color: var(--lp-ink-2); }
.lp-send { margin-left: auto; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 10px; background: var(--lp-btn-grad); color: var(--lp-on-accent); }
.lp-send svg { fill: none; stroke: currentColor; stroke-width: 2.4; }
.lp-roster { border-left: 1px solid var(--lp-line); padding: 18px 14px; background: color-mix(in oklab, var(--lp-surface-2) 50%, transparent); }
.lp-roster-h { margin: 12px 6px 8px; font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--lp-muted); }
.lp-roster-h:first-child { margin-top: 0; }
.lp-person { display: flex; align-items: center; gap: 10px; padding: 6px; border-radius: 10px; font-size: 13.5px; color: var(--lp-ink); }
.lp-person .lp-av { width: 28px; height: 28px; font-size: 12px; }
.lp-person.is-speaking { background: rgba(74, 222, 128, .08); }
.lp-person.is-speaking .lp-av { box-shadow: 0 0 0 2px var(--lp-surface), 0 0 0 4px #4ade80; animation: lpSpeak 1.4s ease-in-out infinite; }
@keyframes lpSpeak { 50% { box-shadow: 0 0 0 2px var(--lp-surface), 0 0 0 6px rgba(74, 222, 128, .45); } }
.lp-mini { margin-left: auto; width: 15px !important; height: 15px !important; fill: none; stroke: #4ade80; stroke-width: 2; }
.lp-hand { stroke: #f2bf4f; }
.lp-crown-s { margin-left: auto; font-size: 13px; }

.lp-float {
  position: absolute; z-index: 2; display: inline-flex; align-items: center; gap: 9px;
  padding: 10px 14px; border-radius: 14px; font-size: 13px; font-weight: 600; color: var(--lp-ink);
  background: var(--lp-surface); border: 1px solid var(--lp-line-strong); box-shadow: var(--lp-shadow);
  animation: lpBob 6s ease-in-out infinite;
}
.lp-float svg { width: 16px; height: 16px; fill: none; stroke: var(--lp-accent); stroke-width: 2; }
.lp-float--a { left: 28px; bottom: 14px; }
.lp-float--b { right: -14px; top: -18px; animation-delay: -3s; }
@keyframes lpBob { 50% { transform: translateY(-8px); } }
.lp-eq { display: inline-flex; align-items: flex-end; gap: 2px; height: 14px; }
.lp-eq i { width: 3px; border-radius: 2px; background: #4ade80; animation: lpEq 1s ease-in-out infinite; }
.lp-eq i:nth-child(2) { animation-delay: -.3s; }
.lp-eq i:nth-child(3) { animation-delay: -.6s; }
.lp-eq i:nth-child(4) { animation-delay: -.15s; }
@keyframes lpEq { 0%, 100% { height: 4px; } 50% { height: 14px; } }

/* ── Sections ── */
.lp-section { padding-block: clamp(64px, 9vw, 120px) 0; }
.lp-section-head { max-width: 720px; margin-bottom: 40px; }
.lp-section-head--row { max-width: none; display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; }

/* Bento features */
.lp-bento { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-flow: dense; gap: 16px; }
.lp-tile {
  position: relative; overflow: hidden; padding: 26px;
  border-radius: var(--lp-radius); border: 1px solid var(--lp-line-strong);
  background: linear-gradient(180deg, color-mix(in oklab, var(--lp-surface) 100%, transparent), color-mix(in oklab, var(--lp-surface) 70%, transparent));
  transition: transform .3s var(--lp-ease), border-color .3s;
}
.lp-tile:hover { transform: translateY(-3px); border-color: rgba(var(--lp-accent-rgb), .4); }
.lp-tile::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .3s;
  background: radial-gradient(400px circle at var(--mx, 50%) var(--my, 0%), rgba(var(--lp-accent-rgb), .12), transparent 60%);
}
.lp-tile:hover::after { opacity: 1; }
.lp-tile--wide { grid-column: span 2; }
.lp-tile-icon {
  display: grid; place-items: center; width: 44px; height: 44px; margin-bottom: 18px; border-radius: 13px;
  background: rgba(var(--lp-accent-rgb), .12); border: 1px solid rgba(var(--lp-accent-rgb), .25); color: var(--lp-accent);
}
.lp-tile-icon svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.lp-tile h3 { margin: 0 0 8px; font-family: var(--lp-font-display); font-size: 1.12rem; font-weight: 700; color: var(--lp-ink); letter-spacing: -.01em; }
.lp-tile p { margin: 0; color: var(--lp-ink-2); line-height: 1.6; font-size: 14.5px; }
.lp-wave { display: flex; align-items: center; gap: 4px; height: 44px; margin-top: 22px; }
.lp-wave i { flex: 1; max-width: 8px; border-radius: 4px; background: var(--lp-grad); animation: lpWave 1.3s ease-in-out infinite; }
.lp-wave i:nth-child(3n) { animation-delay: -.4s; }
.lp-wave i:nth-child(3n+1) { animation-delay: -.8s; }
.lp-wave i:nth-child(4n) { animation-duration: 1.7s; }
@keyframes lpWave { 0%, 100% { height: 8px; } 50% { height: 40px; } }
.lp-style-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.lp-style-chips span { padding: 6px 12px; border-radius: 999px; border: 1px solid var(--lp-line-strong); background: var(--lp-surface-2); font-size: 13px; color: var(--lp-ink); }
.lp-chip-b { font-weight: 800; }
.lp-chip-i { font-style: italic; }
.lp-chip-c { color: #e879f9 !important; font-weight: 700; }
.lp-chip-hl { border-color: rgba(224, 166, 64, .5) !important; background: rgba(224, 166, 64, .12) !important; }

/* Download band */
.lp-band {
  position: relative; overflow: hidden; display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 32px; align-items: center;
  padding: clamp(28px, 5vw, 56px); border-radius: 28px; border: 1px solid var(--lp-line-strong);
  background:
    radial-gradient(600px 300px at 100% 0%, rgba(var(--lp-accent-rgb), .18), transparent 70%),
    radial-gradient(500px 300px at 0% 100%, color-mix(in oklab, var(--lp-accent-2) 18%, transparent), transparent 70%),
    var(--lp-surface);
}
.lp-band-art { position: relative; height: 220px; }
.lp-band-art img { position: absolute; right: 18%; top: 50%; width: 96px; height: 96px; transform: translateY(-50%); object-fit: contain; filter: drop-shadow(0 16px 40px rgba(var(--lp-accent-rgb), .5)); z-index: 2; }
.lp-mini-win {
  position: absolute; right: 0; top: 10px; width: 78%; height: 150px; border-radius: 16px;
  border: 1px solid var(--lp-line-strong); background: var(--lp-surface-2); box-shadow: var(--lp-shadow);
  display: flex; gap: 6px; padding: 12px; transform: rotate(4deg);
}
.lp-mini-win span { width: 9px; height: 9px; border-radius: 50%; background: var(--lp-line-strong); }
.lp-mini-win--2 { right: 22%; top: 70px; width: 70%; transform: rotate(-5deg); background: var(--lp-surface); }

/* ── Services view ── */
.lp-svc-hero { padding-top: calc(var(--lp-nav-h) + 56px); padding-bottom: 36px; }
.lp-svc-notice {
  margin-top: 22px; display: inline-flex; align-items: center; gap: 10px; padding: 12px 16px; border-radius: 14px;
  border: 1px solid rgba(242, 191, 79, .4); background: rgba(242, 191, 79, .1); color: var(--lp-ink); font-size: 14px;
}
.lp-tabs {
  position: sticky; top: calc(var(--lp-nav-h) + 8px); z-index: 10;
  display: flex; gap: 6px; padding: 6px; margin-bottom: 28px; width: fit-content; max-width: 100%;
  overflow-x: auto; scrollbar-width: none;
  border-radius: 16px; border: 1px solid var(--lp-line-strong);
  background: color-mix(in oklab, var(--lp-surface) 88%, transparent);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
}
.lp-tabs::-webkit-scrollbar { display: none; }
.lp-tab {
  flex-shrink: 0; display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 11px; border: 0;
  background: transparent; color: var(--lp-ink-2); font: 600 14px Inter, system-ui, sans-serif; cursor: pointer;
  transition: background .2s, color .2s;
}
.lp-tab svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.lp-tab:hover { color: var(--lp-ink); background: var(--lp-line); }
.lp-tab[aria-selected=true] { background: var(--lp-btn-grad); color: var(--lp-on-accent); }
.lp-tab-count { min-width: 20px; padding: 1px 6px; border-radius: 999px; background: var(--lp-line-strong); font-size: 11.5px; text-align: center; }
.lp-tab[aria-selected=true] .lp-tab-count { background: rgba(0, 0, 0, .15); }

.lp-panel { animation: lpFade .35s var(--lp-ease); }
@keyframes lpFade { from { opacity: 0; transform: translateY(8px); } }
.lp-panel-head { display: flex; align-items: flex-start; gap: 16px; margin-bottom: 24px; }
.lp-panel-icon { flex-shrink: 0; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: rgba(var(--lp-accent-rgb), .12); color: var(--lp-accent); border: 1px solid rgba(var(--lp-accent-rgb), .25); }
.lp-panel-icon svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.lp-panel-head h2 { margin: 0 0 4px; font-family: var(--lp-font-display); font-size: 1.45rem; font-weight: 800; letter-spacing: -.02em; }
.lp-panel-head p { margin: 0; color: var(--lp-ink-2); line-height: 1.6; max-width: 70ch; }
.lp-group-label { margin: 28px 0 14px; display: flex; align-items: center; gap: 12px; font-size: 12.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--lp-muted); }
.lp-group-label::after { content: ""; flex: 1; height: 1px; background: var(--lp-line-strong); }
.lp-empty { padding: 48px 24px; border-radius: var(--lp-radius); border: 1px dashed var(--lp-line-strong); text-align: center; color: var(--lp-muted); }

/* Tier cards (user / room / id) */
.lp-tier-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 270px), 1fr)); gap: 16px; }
.lp-tier {
  --tc: var(--lp-accent);
  position: relative; overflow: hidden; display: flex; flex-direction: column; gap: 16px;
  padding: 24px; border-radius: var(--lp-radius);
  border: 1px solid color-mix(in oklab, var(--tc) 28%, var(--lp-line-strong));
  background:
    radial-gradient(420px 180px at 50% -40px, color-mix(in oklab, var(--tc) 20%, transparent), transparent 70%),
    var(--lp-surface);
  transition: transform .3s var(--lp-ease), border-color .3s, box-shadow .3s;
}
.lp-tier:hover { transform: translateY(-4px); border-color: color-mix(in oklab, var(--tc) 60%, transparent); box-shadow: 0 24px 50px -28px color-mix(in oklab, var(--tc) 70%, transparent); }
.lp-tier--top { border-width: 1.5px; }
.lp-ribbon {
  position: absolute; top: 16px; right: 16px; padding: 4px 10px; border-radius: 999px;
  background: var(--tc); color: #fff; font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase;
  text-shadow: 0 1px 2px rgba(0, 0, 0, .25);
}
.lp-tier-top { display: flex; align-items: center; gap: 14px; }
.lp-tier-icon {
  flex-shrink: 0; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 15px; font-size: 26px; line-height: 1;
  background: color-mix(in oklab, var(--tc) 16%, var(--lp-surface-2)); border: 1px solid color-mix(in oklab, var(--tc) 35%, transparent);
}
.lp-tier-icon img { max-width: 34px; max-height: 34px; object-fit: contain; }
.lp-tier-name { margin: 0; font-family: var(--lp-font-display); font-size: 1.2rem; font-weight: 800; letter-spacing: -.01em; color: color-mix(in oklab, var(--tc) var(--lp-name-mix), var(--lp-ink)); }
.lp-tier-meta { display: inline-flex; align-items: center; gap: 6px; margin-top: 4px; font-size: 12.5px; font-weight: 600; color: var(--lp-ink-2); }
.lp-tier-meta i { width: 8px; height: 8px; border-radius: 50%; background: var(--tc); box-shadow: 0 0 8px var(--tc); }
.lp-tier-desc { margin: 0; color: var(--lp-ink-2); font-size: 14px; line-height: 1.55; }
.lp-price { display: flex; align-items: baseline; gap: 6px; }
.lp-price strong { font-family: var(--lp-font-display); font-size: 2rem; font-weight: 800; letter-spacing: -.03em; color: var(--lp-ink); }
.lp-price span { font-size: 13.5px; color: var(--lp-muted); font-weight: 500; }
.lp-price--free strong { font-size: 1.5rem; }
.lp-perks { list-style: none; margin: 0; padding: 16px 0 0; border-top: 1px solid var(--lp-line); display: grid; gap: 10px; }
.lp-perks li { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; line-height: 1.45; color: var(--lp-ink); }
.lp-perks svg { flex-shrink: 0; width: 17px; height: 17px; margin-top: 1px; padding: 2px; border-radius: 50%; fill: none; stroke: var(--tc); stroke-width: 3; background: color-mix(in oklab, var(--tc) 16%, transparent); }
.lp-tier-foot { margin-top: auto; }
.lp-tier .lp-btn { width: 100%; }
.lp-btn--tier { background: color-mix(in oklab, var(--tc) 14%, var(--lp-surface-2)); color: var(--lp-ink); border-color: color-mix(in oklab, var(--tc) 40%, transparent); }
.lp-btn--tier:hover { background: var(--tc); color: #fff; border-color: var(--tc); }

/* Crowns */
.lp-crown-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); gap: 16px; }
.lp-crown {
  --tc: #ffd700;
  position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px;
  padding: 28px 20px 22px; border-radius: var(--lp-radius); border: 1px solid color-mix(in oklab, var(--tc) 30%, var(--lp-line-strong));
  background: radial-gradient(260px 160px at 50% 0%, color-mix(in oklab, var(--tc) 22%, transparent), transparent 75%), var(--lp-surface);
  transition: transform .3s var(--lp-ease);
}
.lp-crown:hover { transform: translateY(-4px); }
.lp-crown-rank { position: absolute; top: 12px; left: 14px; font-size: 12px; font-weight: 800; color: var(--lp-muted); }
.lp-crown-art { display: grid; place-items: center; height: 72px; font-size: 52px; line-height: 1; filter: drop-shadow(0 6px 18px color-mix(in oklab, var(--tc) 70%, transparent)); animation: lpBob 5s ease-in-out infinite; }
.lp-crown-art img { max-height: 64px; max-width: 96px; object-fit: contain; }
.lp-crown .lp-tier-name { font-size: 1.1rem; }
.lp-crown .lp-tier-desc { font-size: 13.5px; }
.lp-crown .lp-price strong { font-size: 1.5rem; }

/* Badges */
.lp-badge-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); gap: 12px; }
.lp-badge {
  --tc: var(--lp-accent);
  display: flex; align-items: center; gap: 14px; padding: 14px; border-radius: 16px;
  border: 1px solid var(--lp-line-strong); background: var(--lp-surface);
  transition: transform .25s var(--lp-ease), border-color .25s;
}
.lp-badge:hover { transform: translateY(-2px); border-color: rgba(var(--lp-accent-rgb), .45); }
.lp-badge-icon { flex-shrink: 0; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: var(--lp-surface-2); font-size: 26px; }
.lp-badge-icon img { max-width: 36px; max-height: 36px; object-fit: contain; }
.lp-badge b { display: block; font-size: 14.5px; color: var(--lp-ink); }
.lp-badge small { display: block; margin-top: 2px; font-size: 12.5px; line-height: 1.4; color: var(--lp-muted); }

/* Highlights */
.lp-hl-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 16px; }
.lp-hl { --tc: #f5b301; padding: 20px; border-radius: var(--lp-radius); border: 1px solid var(--lp-line-strong); background: var(--lp-surface); display: flex; flex-direction: column; gap: 16px; }
.lp-hl-preview {
  display: flex; gap: 12px; padding: 12px 14px; border-radius: 12px;
  border-left: 3px solid var(--tc);
  background: linear-gradient(90deg, color-mix(in oklab, var(--tc) 18%, transparent), transparent 85%);
}
.lp-hl-preview b { font-size: 14px; color: color-mix(in oklab, var(--tc) var(--lp-name-mix), var(--lp-ink)); }
.lp-hl-preview small { margin-left: 8px; font-size: 11.5px; color: var(--lp-muted); }
.lp-hl-preview p { margin: 3px 0 0; font-size: 14px; color: var(--lp-ink); }
.lp-hl-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.lp-hl-row .lp-tier-name { font-size: 1.05rem; }
.lp-hl-row .lp-price strong { font-size: 1.3rem; }

/* Steps */
.lp-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; counter-reset: s; }
.lp-steps li { display: flex; gap: 16px; padding: 24px; border-radius: var(--lp-radius); border: 1px solid var(--lp-line-strong); background: var(--lp-surface); }
.lp-step-n { flex-shrink: 0; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--lp-btn-grad); color: var(--lp-on-accent); font-family: var(--lp-font-display); font-weight: 800; }
.lp-steps h3 { margin: 0 0 6px; font-family: var(--lp-font-display); font-size: 1.05rem; font-weight: 700; color: var(--lp-ink); }
.lp-steps p { margin: 0; font-size: 14px; line-height: 1.55; color: var(--lp-ink-2); }

/* Skeletons */
.lp-skel { height: 300px; border-radius: var(--lp-radius); border: 1px solid var(--lp-line); background: linear-gradient(100deg, var(--lp-surface) 30%, var(--lp-surface-2) 50%, var(--lp-surface) 70%) 0 0 / 300% 100%; animation: lpShimmer 1.4s linear infinite; }
@keyframes lpShimmer { to { background-position: -150% 0; } }

/* ── Footer ── */
.lp-footer { margin-top: clamp(72px, 10vw, 128px); border-top: 1px solid var(--lp-line); background: color-mix(in oklab, var(--lp-bg-2) 80%, transparent); }
.lp-footer-inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 20px 40px; padding-block: 36px; }
.lp-footer-brand p { margin: 8px 0 0; font-size: 13.5px; color: var(--lp-muted); }
.lp-footer-links { display: flex; flex-wrap: wrap; gap: 6px 22px; }
.lp-footer-links a { color: var(--lp-ink-2); text-decoration: none; font-size: 14px; }
.lp-footer-links a:hover { color: var(--lp-accent); }
.lp-copy { margin: 0; font-size: 13px; color: var(--lp-muted); }

/* ── Scroll reveal (progressive enhancement) ── */
@supports (animation-timeline: view()) {
  .lp-reveal { animation: lpReveal linear both; animation-timeline: view(); animation-range: entry 0% cover 20%; }
  @keyframes lpReveal { from { opacity: 0; transform: translateY(28px) scale(.985); } }
}

/* ── Responsive ── */
@media (max-width: 1080px) {
  .lp-bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 960px) {
  .lp-hero { grid-template-columns: 1fr; min-height: 0; padding-top: calc(var(--lp-nav-h) + 32px); }
  .lp-hero-copy { text-align: center; }
  .lp-hero-copy .lp-lead { margin-inline: auto; }
  .lp-cta-row, .lp-trust { justify-content: center; }
  .lp-hero-auth { width: 100%; max-width: 460px; margin-inline: auto; }
  .lp-band { grid-template-columns: 1fr; }
  .lp-band-art { display: none; }
  .lp-steps { grid-template-columns: 1fr; }

  .lp-menu-btn { display: inline-grid; }
  .lp-links {
    position: absolute; top: var(--lp-nav-h); left: 0; right: 0; margin: 0;
    flex-direction: column; align-items: stretch; gap: 2px; padding: 10px 16px 16px;
    background: color-mix(in oklab, var(--lp-bg) 96%, transparent); border-bottom: 1px solid var(--lp-line);
    backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
    opacity: 0; visibility: hidden; transform: translateY(-8px); transition: opacity .2s, transform .2s, visibility .2s;
  }
  .lp-links a { padding: 12px 14px; border-radius: 12px; font-size: 15px; }
  .lp-nav.is-open .lp-links { opacity: 1; visibility: visible; transform: none; }
}
@media (max-width: 720px) {
  .lp-window-body { grid-template-columns: 1fr; min-height: 0; }
  .lp-roster { display: none; }
  .lp-bento { grid-template-columns: 1fr; }
  .lp-tile--wide { grid-column: auto; }
  .lp-section-head--row { align-items: flex-start; }
  .lp-tabs { width: 100%; }
  .lp-float { display: none; }
}
@media (max-width: 520px) {
  .lp-hide-sm { display: none; }
  .lp-logo span { display: none; }
  .lp-nav-actions .lp-btn { --b-pad: 9px 14px; }
  .landing .lp-card .auth-main { padding: 24px 18px 18px; }
  .lp-cta-row .lp-btn { flex: 1 1 100%; }
  .lp-chat { padding: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  .landing *, .landing *::before, .landing *::after { animation: none !important; transition: none !important; }
  html:has(body.landing) { scroll-behavior: auto; }
}
