/* Chuski public landing page.
   Colours come from the theme tokens (admin.css / themes.css): light is the
   café default ("emerald"), dark is "midnight" — landing-pwa-guard.js picks
   one before the first paint and the top-bar button switches (landing.js).
   Motion stays subtle and switches off under prefers-reduced-motion. */

/* ---- Landing tokens (light) ------------------------------------------ */
body.landing {
  --lp-on-brand: #fff;
  --lp-alt: color-mix(in srgb, var(--surface-2) 55%, var(--canvas));
  --lp-glow-a: color-mix(in srgb, var(--accent) 32%, transparent);
  --lp-glow-b: color-mix(in srgb, var(--brand-2) 28%, transparent);
  --lp-shadow-sm: 0 1px 2px rgba(15, 30, 22, .05), 0 4px 14px rgba(15, 30, 22, .04);
  --lp-shadow: 0 1px 2px rgba(15, 30, 22, .05), 0 22px 44px -18px rgba(15, 30, 22, .18);
  --lp-shadow-lg: 0 50px 90px -30px rgba(15, 30, 22, .32);
  --lp-radius: 20px;
  background: var(--canvas); color: var(--ink); overflow-x: hidden;
}
/* ---- Dark ("midnight") --------------------------------------------- */
:root[data-theme="midnight"] body.landing {
  --lp-on-brand: #04170e;
  --lp-alt: color-mix(in srgb, var(--surface) 55%, var(--canvas));
  --lp-glow-a: color-mix(in srgb, var(--accent) 18%, transparent);
  --lp-glow-b: color-mix(in srgb, var(--brand) 24%, transparent);
  --lp-shadow-sm: 0 1px 2px rgba(0, 0, 0, .35);
  --lp-shadow: 0 1px 2px rgba(0, 0, 0, .35), 0 22px 44px -18px rgba(0, 0, 0, .65);
  --lp-shadow-lg: 0 50px 90px -30px rgba(0, 0, 0, .8);
  color-scheme: dark;
}
html:has(body.landing) { scroll-behavior: smooth; }
.lp { position: relative; min-height: 100dvh; overflow-x: clip; }
.lp-wrap { width: min(1180px, 100%); margin-inline: auto; padding-inline: calc(20px + env(safe-area-inset-left)) calc(20px + env(safe-area-inset-right)); }
.lp section[id] { scroll-margin-top: 80px; }
.lp :focus-visible { outline: 2px solid color-mix(in srgb, var(--brand) 70%, transparent); outline-offset: 3px; }

/* Theme switch: the new theme grows as a circle from the button
   (landing.js, View Transitions); no cross-fade on top of it. */
::view-transition-old(root), ::view-transition-new(root) { animation: none; mix-blend-mode: normal; }

/* ---- Buttons ---------------------------------------------------------- */
.lp-btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  min-height: 46px; padding: 0 20px; border: 1px solid transparent; border-radius: 999px;
  font: inherit; font-size: 14.5px; font-weight: 750; letter-spacing: -.005em; text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: transform .18s ease, box-shadow .2s ease, background-color .2s ease, border-color .2s ease, color .2s ease;
}
.lp-btn i { font-size: .95em; }
.lp-btn:hover { transform: translateY(-1px); }
.lp-btn:active { transform: translateY(0); }
.lp-btn-lg { min-height: 54px; padding: 0 26px; font-size: 15.5px; }
.lp-btn-block { width: 100%; }
.lp-btn-primary {
  background: var(--brand); color: var(--lp-on-brand);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .16), 0 12px 26px -10px color-mix(in srgb, var(--brand) 80%, transparent);
}
.lp-btn-primary:hover { background: var(--brand-2); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .16), 0 16px 32px -10px color-mix(in srgb, var(--brand) 85%, transparent); }
.lp-btn-outline, .lp-btn-ghost { border-color: var(--line); background: var(--surface); color: var(--ink); box-shadow: var(--lp-shadow-sm); }
.lp-btn-outline:hover, .lp-btn-ghost:hover { border-color: color-mix(in srgb, var(--brand) 55%, var(--line)); color: var(--brand); }

/* ---- Top bar ---------------------------------------------------------- */
.lp-nav {
  position: sticky; top: 0; z-index: 80;
  background: color-mix(in srgb, var(--canvas) 70%, transparent);
  -webkit-backdrop-filter: blur(18px) saturate(1.5); backdrop-filter: blur(18px) saturate(1.5);
  border-bottom: 1px solid transparent; transition: border-color .25s ease, background-color .25s ease;
}
.lp-nav.is-scrolled { border-bottom-color: var(--line); background: color-mix(in srgb, var(--surface) 84%, transparent); }
.lp-nav-inner { min-height: 70px; display: flex; align-items: center; gap: 18px; transition: min-height .25s ease; }
.lp-nav.is-scrolled .lp-nav-inner { min-height: 62px; }
.lp-logo { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; }
.lp-logo-mark {
  width: 38px; height: 38px; display: grid; place-items: center; border-radius: 12px;
  background: linear-gradient(145deg, color-mix(in srgb, var(--accent) 78%, #fff), var(--accent)); color: #fff; font-size: 16px;
  box-shadow: 0 8px 18px -6px color-mix(in srgb, var(--accent) 70%, transparent); transition: transform .35s cubic-bezier(.3, 1.6, .5, 1);
}
.lp-logo:hover .lp-logo-mark { transform: rotate(-8deg) scale(1.05); }
.lp-logo strong { font-size: 19px; font-weight: 800; letter-spacing: -.03em; }
.lp-nav-links { display: flex; gap: 2px; margin-left: 14px; }
.lp-nav-links a {
  padding: 8px 13px; border-radius: 999px; color: var(--muted); font-size: 14px; font-weight: 650; text-decoration: none;
  transition: color .2s ease, background-color .2s ease;
}
.lp-nav-links a:hover { color: var(--ink); background: color-mix(in srgb, var(--ink) 5%, transparent); }
.lp-nav-links a.is-active { color: var(--brand); background: color-mix(in srgb, var(--brand) 10%, transparent); }
.lp-nav-actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }

/* Theme switch */
.lp-theme-toggle {
  width: 40px; height: 40px; display: grid; place-items: center; padding: 0;
  border: 1px solid var(--line); border-radius: 999px; background: color-mix(in srgb, var(--surface) 70%, transparent);
  color: var(--ink); font-size: 15px; cursor: pointer; transition: border-color .2s ease, color .2s ease, transform .3s ease;
}
.lp-theme-toggle:hover { border-color: color-mix(in srgb, var(--brand) 50%, var(--line)); color: var(--brand); }
.lp-theme-toggle:active { transform: rotate(-20deg) scale(.94); }
.lp-theme-toggle .fa-sun, .lp-menu-theme .fa-sun { display: none; }
:root[data-theme="midnight"] .lp-theme-toggle .fa-moon, :root[data-theme="midnight"] .lp-menu-theme .fa-moon { display: none; }
:root[data-theme="midnight"] .lp-theme-toggle .fa-sun, :root[data-theme="midnight"] .lp-menu-theme .fa-sun { display: inline-block; color: #fbbf24; }

/* Account buttons: a quiet "Sign in" and one solid call to action. Both
   open pop-ups (auth-modal.js), never a new page. */
.lp-nav-signin, .lp-nav-register {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 40px; padding: 0 16px; border: 1px solid transparent; border-radius: 999px;
  font: inherit; font-size: 14px; font-weight: 700; white-space: nowrap; text-decoration: none; cursor: pointer;
  transition: background-color .18s ease, border-color .18s ease, color .18s ease, box-shadow .18s ease, transform .12s ease;
}
.lp-nav-signin i, .lp-nav-register i { font-size: 13px; }
.lp-nav-signin { color: var(--ink); background: transparent; }
.lp-nav-signin:hover { background: color-mix(in srgb, var(--brand) 9%, transparent); color: var(--brand); }
.lp-nav-register { background: var(--brand); color: var(--lp-on-brand); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .16), 0 8px 20px -8px color-mix(in srgb, var(--brand) 80%, transparent); }
.lp-nav-register:hover { background: var(--brand-2); }
.lp-nav-signin:active, .lp-nav-register:active { transform: translateY(1px); }

.lp-menu-toggle { display: none; width: 40px; height: 40px; padding: 0; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); cursor: pointer; }
.lp-menu-toggle span { display: block; width: 17px; height: 2px; margin: 4px auto; border-radius: 2px; background: var(--ink); transition: transform .25s ease, opacity .2s ease; }
.lp-menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.lp-menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.lp-menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
.lp-mobile-menu { display: grid; gap: 2px; padding: 8px 20px 18px; border-top: 1px solid var(--line); background: var(--surface); animation: lp-drop .22s ease; }
.lp-mobile-menu[hidden] { display: none; }
.lp-mobile-menu > a { padding: 13px 4px; border-bottom: 1px solid var(--line); color: var(--ink); font-weight: 700; text-decoration: none; }
.lp-menu-theme {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 13px 4px; border: 0; border-bottom: 1px solid var(--line);
  background: none; color: var(--ink); font: inherit; font-weight: 700; text-align: left; cursor: pointer;
}
.lp-menu-theme > span:first-child { display: inline-flex; align-items: center; gap: 10px; }
.lp-switch { position: relative; width: 44px; height: 26px; flex: 0 0 auto; border-radius: 999px; background: color-mix(in srgb, var(--ink) 18%, var(--surface)); transition: background-color .2s ease; }
.lp-switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 2px 5px rgba(0, 0, 0, .2); transition: transform .22s cubic-bezier(.3, 1.4, .5, 1); }
.lp-menu-theme[aria-pressed="true"] .lp-switch { background: var(--brand); }
.lp-menu-theme[aria-pressed="true"] .lp-switch::after { transform: translateX(18px); }
.lp-mobile-menu-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 14px; }
@keyframes lp-drop { from { opacity: 0; transform: translateY(-6px); } }

/* ---- Hero ------------------------------------------------------------- */
.lp-hero { position: relative; isolation: isolate; padding: clamp(44px, 7vw, 92px) 0 clamp(36px, 5vw, 64px); }
.lp-hero-bg {
  position: absolute; inset: 0; z-index: -1; overflow: hidden;
  /* Fade out at the bottom so the glow never ends in a hard edge. */
  mask-image: linear-gradient(to bottom, #000 55%, transparent);
  -webkit-mask-image: linear-gradient(to bottom, #000 55%, transparent);
}
.lp-blob { position: absolute; border-radius: 50%; filter: blur(70px); animation: lp-drift 26s ease-in-out infinite alternate; }
.lp-blob.b1 { width: 560px; height: 560px; top: -220px; left: -160px; background: var(--lp-glow-a); }
.lp-blob.b2 { width: 620px; height: 620px; top: -60px; right: -220px; background: var(--lp-glow-b); animation-delay: -10s; }
@keyframes lp-drift { to { transform: translate(40px, 50px) scale(1.08); } }
.lp-grid {
  position: absolute; inset: 0;
  background-image: linear-gradient(color-mix(in srgb, var(--ink) 5%, transparent) 1px, transparent 1px), linear-gradient(90deg, color-mix(in srgb, var(--ink) 5%, transparent) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 65% 55% at 50% 20%, #000 15%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 65% 55% at 50% 20%, #000 15%, transparent 75%);
}
.lp-hero-copy, .lp-hero-visual { min-width: 0; }
.lp-hero-inner { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); align-items: center; gap: clamp(32px, 5vw, 72px); }
.lp-pill {
  display: inline-flex; align-items: center; gap: 9px; min-height: 34px; padding: 0 14px 0 12px; border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--brand) 22%, var(--line)); background: color-mix(in srgb, var(--surface) 80%, transparent);
  color: var(--brand); font-size: 13px; font-weight: 750; box-shadow: var(--lp-shadow-sm);
}
.lp-pill-dot { width: 8px; height: 8px; border-radius: 50%; background: #22c55e; animation: lp-ping 2.2s ease-out infinite; }
@keyframes lp-ping { 0% { box-shadow: 0 0 0 0 rgba(34, 197, 94, .55); } 70%, 100% { box-shadow: 0 0 0 8px rgba(34, 197, 94, 0); } }
.lp-hero h1 { margin: 22px 0 18px; font-size: clamp(44px, 6.2vw, 76px); font-weight: 850; line-height: 1; letter-spacing: -.045em; }
.lp-gradient-text {
  background: linear-gradient(95deg, var(--brand) 0%, var(--brand-2) 35%, var(--accent) 70%, var(--brand-2) 100%);
  background-size: 200% 100%; -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: lp-gradient-flow 9s ease-in-out infinite;
}
@keyframes lp-gradient-flow { 50% { background-position: 100% 0; } }
.lp-lead { max-width: 530px; margin: 0; color: var(--muted); font-size: clamp(16px, 1.4vw, 18px); line-height: 1.7; }
.lp-hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.lp-hero-points { display: flex; flex-wrap: wrap; gap: 10px 20px; margin: 26px 0 0; padding: 0; list-style: none; color: var(--muted); font-size: 14px; font-weight: 600; }
.lp-hero-points i { margin-right: 6px; color: var(--success, var(--brand)); }

/* Entrance: each hero part rises in, one after another. */
.lp-enter { animation: lp-rise .8s cubic-bezier(.2, .8, .2, 1) both; animation-delay: var(--d, 0s); }
@keyframes lp-rise { from { opacity: 0; transform: translateY(22px); } }

/* ---- Hero product mock -------------------------------------------------- */
.lp-hero-visual { perspective: 1400px; padding: 10px 0 34px; }
.lp-tilt {
  position: relative; width: min(470px, 100%); margin-inline: auto;
  transform: rotateX(var(--rx, 5deg)) rotateY(var(--ry, -9deg)); transform-style: preserve-3d; transition: transform .5s cubic-bezier(.2, .8, .2, 1);
}
.lp-mock { border: 1px solid var(--line); border-radius: 22px; background: var(--surface); overflow: hidden; box-shadow: var(--lp-shadow-lg); }
.lp-mock-bar { display: flex; align-items: center; gap: 6px; padding: 13px 16px; background: linear-gradient(120deg, var(--sidebar-bg), color-mix(in srgb, var(--brand) 80%, var(--sidebar-bg))); }
.lp-mock-bar span { width: 10px; height: 10px; border-radius: 50%; background: rgba(255, 255, 255, .3); }
.lp-mock-bar span:first-child { background: #ff6b5e; }
.lp-mock-bar span:nth-child(2) { background: #ffbd3e; }
.lp-mock-bar span:nth-child(3) { background: #27c93f; }
.lp-live { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; background: rgba(255, 255, 255, .14); color: #fff; font-size: 11px; font-weight: 800; font-style: normal; letter-spacing: .06em; text-transform: uppercase; }
.lp-live i { width: 7px; height: 7px; border-radius: 50%; background: #4ade80; animation: lp-ping 1.8s ease-out infinite; }
.lp-mock-body { padding: 18px; display: grid; gap: 12px; }
.lp-mock-stats { display: grid; grid-template-columns: 1.1fr .9fr; gap: 12px; }
.lp-mock-stat { position: relative; padding: 14px; border-radius: 15px; background: var(--surface-2); transition: box-shadow .4s ease, transform .4s ease; }
.lp-mock-stat.accent { background: color-mix(in srgb, var(--accent) 12%, var(--surface)); }
.lp-mock-stat small { display: block; color: var(--muted); font-size: 11px; font-weight: 750; letter-spacing: .05em; text-transform: uppercase; }
.lp-mock-stat strong { display: block; margin-top: 6px; font-size: 21px; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.lp-mock-stat.accent strong { color: var(--accent); }
.lp-mock-sub { display: block; margin-top: 6px; color: var(--muted); font-size: 11.5px; }
.lp-spark { display: flex; align-items: flex-end; gap: 4px; height: 26px; margin-top: 8px; }
.lp-spark i { flex: 1; height: var(--h); border-radius: 3px 3px 1px 1px; background: linear-gradient(180deg, var(--brand-2), color-mix(in srgb, var(--brand-2) 25%, transparent)); transform-origin: bottom; animation: lp-grow 1s cubic-bezier(.2, .8, .2, 1) both; }
.lp-spark i:nth-child(2) { animation-delay: .08s; } .lp-spark i:nth-child(3) { animation-delay: .16s; } .lp-spark i:nth-child(4) { animation-delay: .24s; } .lp-spark i:nth-child(5) { animation-delay: .32s; } .lp-spark i:nth-child(6) { animation-delay: .4s; }
@keyframes lp-grow { from { transform: scaleY(0); } }
.lp-mock-kot { display: grid; gap: 8px; }
.lp-mock-kot-row {
  display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid var(--line); border-left: 3px solid var(--accent); border-radius: 12px; background: var(--surface);
  transition: box-shadow .4s ease, border-color .4s ease, transform .4s ease;
}
.lp-mock-kot-row.ready { border-left-color: var(--success, var(--brand)); }
.lp-mock-kot-row i { width: 28px; height: 28px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 9px; background: var(--surface-2); color: var(--brand); font-size: 12px; }
.lp-mock-kot-row span { flex: 1; min-width: 0; overflow: hidden; font-size: 13px; font-weight: 650; text-overflow: ellipsis; white-space: nowrap; }
.lp-mock-kot-row em { font-style: normal; font-size: 11.5px; font-weight: 800; color: var(--accent); }
.lp-mock-kot-row.ready em { color: var(--success, var(--brand)); }
.lp-mock-stat.lp-flash, .lp-mock-kot-row.lp-flash { box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 28%, transparent); transform: scale(1.012); }
.lp-float {
  position: absolute; top: -24px; left: -32px; display: flex; align-items: center; gap: 11px; padding: 11px 15px; border: 1px solid var(--line); border-radius: 16px;
  background: color-mix(in srgb, var(--surface) 90%, transparent); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  box-shadow: var(--lp-shadow); transform: translateZ(60px); animation: lp-bob 6s ease-in-out infinite;
}
.lp-float i { width: 34px; height: 34px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 10px; background: color-mix(in srgb, var(--brand) 13%, var(--surface)); color: var(--brand); font-size: 14px; }
.lp-float strong { display: block; font-size: 13px; }
.lp-float span { display: block; margin-top: 1px; color: var(--muted); font-size: 11.5px; }
@keyframes lp-bob { 50% { transform: translateZ(60px) translateY(-8px); } }
.lp-toast {
  position: absolute; right: -16px; bottom: -22px; display: flex; align-items: center; gap: 10px; padding: 11px 16px; border-radius: 14px;
  background: var(--ink); color: var(--canvas); font-size: 13px; font-weight: 700; white-space: nowrap; box-shadow: var(--lp-shadow);
  opacity: 0; transform: translateY(14px) translateZ(80px) scale(.95); transition: opacity .35s ease, transform .45s cubic-bezier(.3, 1.4, .5, 1); pointer-events: none;
}
.lp-toast i { color: #fbbf24; animation: lp-ring 1s ease-in-out 2; }
.lp-toast.is-shown { opacity: 1; transform: translateZ(80px) scale(1); }
@keyframes lp-ring { 25% { transform: rotate(18deg); } 75% { transform: rotate(-18deg); } }

/* ---- Sections ------------------------------------------------------------ */
.lp-section { padding: clamp(64px, 8vw, 112px) 0; }
.lp-section-alt { background: var(--lp-alt); border-block: 1px solid color-mix(in srgb, var(--line) 70%, transparent); }
.lp-section-head { max-width: 660px; margin: 0 auto clamp(36px, 5vw, 56px); text-align: center; }
.lp-eyebrow {
  display: inline-flex; align-items: center; gap: 8px; color: var(--brand); font-size: 12.5px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase;
}
.lp-eyebrow::before { content: ""; width: 18px; height: 2px; border-radius: 2px; background: currentColor; opacity: .6; }
.lp-section h2 { margin: 12px 0 12px; font-size: clamp(30px, 3.8vw, 44px); font-weight: 850; line-height: 1.1; letter-spacing: -.035em; }
.lp-section-head p, .lp-dash-copy > p { margin: 0; color: var(--muted); font-size: 17px; line-height: 1.7; }

/* Features */
.lp-features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.lp-feature {
  position: relative; padding: 26px; border: 1px solid var(--line); border-radius: var(--lp-radius); background: var(--surface); overflow: hidden; box-shadow: var(--lp-shadow-sm);
  transition: transform .35s cubic-bezier(.2, .8, .2, 1), box-shadow .35s ease, border-color .35s ease;
}
.lp-feature::before {
  content: ""; position: absolute; inset: 0; opacity: 0; transition: opacity .35s ease;
  background: radial-gradient(360px circle at var(--mx, 50%) var(--my, 0%), color-mix(in srgb, var(--brand-2) 11%, transparent), transparent 50%);
}
.lp-feature:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--brand) 32%, var(--line)); box-shadow: var(--lp-shadow); }
.lp-feature:hover::before { opacity: 1; }
.lp-feature > * { position: relative; }
.lp-feature-icon {
  width: 48px; height: 48px; display: grid; place-items: center; border-radius: 14px; margin-bottom: 18px;
  background: color-mix(in srgb, var(--brand) 12%, var(--surface)); color: var(--brand); font-size: 19px;
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--brand) 14%, transparent);
  transition: transform .45s cubic-bezier(.3, 1.6, .5, 1);
}
.lp-feature-icon.accent { background: color-mix(in srgb, var(--accent) 14%, var(--surface)); color: var(--accent); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 16%, transparent); }
.lp-feature:hover .lp-feature-icon { transform: rotate(-6deg) scale(1.08); }
.lp-feature h3 { margin: 0; font-size: 18px; font-weight: 750; letter-spacing: -.015em; }
.lp-feature p { margin: 8px 0 0; color: var(--muted); font-size: 15px; line-height: 1.6; }

/* How it works: a line draws across the steps as they come into view. */
.lp-steps { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; margin: 0; padding: 0; list-style: none; }
.lp-steps::before {
  content: ""; position: absolute; top: 26px; left: 12.5%; right: 12.5%; height: 2px; border-radius: 2px;
  background: linear-gradient(90deg, var(--brand), var(--accent)); transform: scaleX(0); transform-origin: left; transition: transform 1.6s cubic-bezier(.2, .8, .2, 1) .2s;
}
.lp-steps.is-visible::before { transform: scaleX(1); }
.lp-steps li { position: relative; text-align: center; }
.lp-steps b {
  position: relative; z-index: 1; width: 52px; height: 52px; margin: 0 auto 16px; display: grid; place-items: center; border-radius: 50%;
  background: var(--surface); border: 2px solid var(--brand); color: var(--brand); font-size: 19px; font-weight: 850;
  box-shadow: 0 0 0 7px var(--lp-alt);
}
.lp-steps strong { display: block; font-size: 17px; font-weight: 750; letter-spacing: -.01em; }
.lp-steps span { display: block; max-width: 240px; margin: 8px auto 0; color: var(--muted); font-size: 14.5px; line-height: 1.6; }

/* Dashboards */
.lp-dash { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); align-items: center; gap: clamp(32px, 5vw, 64px); }
.lp-dash-tabs { display: grid; gap: 10px; margin-top: 26px; }
.lp-dash-tabs button {
  position: relative; overflow: hidden; display: flex; align-items: center; gap: 14px; padding: 13px 15px; border: 1px solid var(--line); border-radius: 16px;
  background: var(--surface); color: var(--ink); font: inherit; text-align: left; cursor: pointer; transition: border-color .25s ease, box-shadow .25s ease, transform .25s ease;
}
.lp-dash-tabs button:hover { transform: translateX(3px); }
.lp-dash-tabs button > i { width: 40px; height: 40px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 12px; background: var(--surface-2); color: var(--brand); font-size: 16px; transition: background-color .25s ease, color .25s ease; }
.lp-dash-tabs strong, .lp-dash-tabs small { display: block; }
.lp-dash-tabs strong { font-size: 15.5px; }
.lp-dash-tabs small { margin-top: 2px; color: var(--muted); font-size: 13px; }
.lp-dash-tabs button.active { border-color: color-mix(in srgb, var(--brand) 60%, var(--line)); box-shadow: var(--lp-shadow); }
.lp-dash-tabs button.active > i { background: var(--brand); color: var(--lp-on-brand); }
.lp-tab-progress { position: absolute; left: 0; bottom: 0; height: 2px; width: 0; background: linear-gradient(90deg, var(--brand), var(--accent)); }
.lp-dash-tabs button.active .lp-tab-progress { animation: lp-progress var(--tab-time, 5s) linear forwards; }
.lp-dash-tabs.is-paused button.active .lp-tab-progress { animation-play-state: paused; }
@keyframes lp-progress { to { width: 100%; } }
.lp-dash-stage { position: relative; aspect-ratio: 16 / 11; }
.lp-screen {
  --side: var(--sidebar-bg);
  position: absolute; inset: 0; display: grid; grid-template-columns: 58px minmax(0, 1fr); border: 1px solid var(--line); border-radius: 22px; overflow: hidden;
  background: var(--surface); box-shadow: var(--lp-shadow-lg);
  opacity: 0; transform: translateY(16px) scale(.975); transition: opacity .55s ease, transform .6s cubic-bezier(.2, .8, .2, 1); pointer-events: none;
}
.lp-screen.active { opacity: 1; transform: none; }
.lp-screen.theme-cashier { --side: #0f2d42; --tone: #2c7fb0; }
.lp-screen.theme-kitchen { --side: #3a2117; --tone: #d16a3f; }
.lp-screen.theme-waiter { --side: #2c1a35; --tone: #8a4f96; }
.lp-screen.theme-owner { --tone: var(--brand-2); }
.lp-screen-side { display: grid; align-content: start; gap: 12px; padding: 18px 14px; background: var(--side); }
.lp-screen-side i { height: 10px; border-radius: 6px; background: rgba(255, 255, 255, .22); }
.lp-screen-side i:first-child { height: 30px; border-radius: 10px; background: var(--tone); }
.lp-screen-main { padding: 20px; display: grid; gap: 14px; align-content: start; background: var(--canvas); }
.lp-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.lp-kpis span { padding: 12px; border-radius: 13px; background: var(--surface); border: 1px solid var(--line); }
.lp-kpis small { display: block; color: var(--muted); font-size: 11px; font-weight: 700; }
.lp-kpis b { display: block; margin-top: 4px; font-size: 16px; }
.lp-bars { display: flex; align-items: flex-end; gap: 8px; height: 130px; padding: 14px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); }
.lp-bars i { flex: 1; height: var(--h); border-radius: 6px 6px 2px 2px; background: linear-gradient(180deg, var(--tone), color-mix(in srgb, var(--tone) 30%, transparent)); transform-origin: bottom; }
.lp-screen.active .lp-bars i { animation: lp-grow .9s cubic-bezier(.2, .8, .2, 1) both; }
.lp-screen.active .lp-bars i:nth-child(2) { animation-delay: .06s; } .lp-screen.active .lp-bars i:nth-child(3) { animation-delay: .12s; } .lp-screen.active .lp-bars i:nth-child(4) { animation-delay: .18s; } .lp-screen.active .lp-bars i:nth-child(5) { animation-delay: .24s; } .lp-screen.active .lp-bars i:nth-child(6) { animation-delay: .3s; } .lp-screen.active .lp-bars i:nth-child(7) { animation-delay: .36s; }
.lp-lines { display: grid; gap: 8px; }
.lp-lines i { height: 12px; border-radius: 6px; background: color-mix(in srgb, var(--ink) 8%, transparent); }
.lp-lines i:nth-child(2) { width: 80%; } .lp-lines i:nth-child(3) { width: 60%; }
.lp-pos { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); align-items: stretch; }
.lp-pos-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.lp-pos-grid span { display: grid; place-items: end start; min-height: 70px; padding: 10px; border-radius: 13px; background: linear-gradient(160deg, color-mix(in srgb, var(--tone) 18%, var(--surface)), var(--surface)); border: 1px solid var(--line); font-size: 12px; font-weight: 800; }
.lp-screen.active .lp-pos-grid span { animation: lp-pop .5s cubic-bezier(.3, 1.4, .5, 1) both; }
.lp-screen.active .lp-pos-grid span:nth-child(2) { animation-delay: .05s; } .lp-screen.active .lp-pos-grid span:nth-child(3) { animation-delay: .1s; } .lp-screen.active .lp-pos-grid span:nth-child(4) { animation-delay: .15s; } .lp-screen.active .lp-pos-grid span:nth-child(5) { animation-delay: .2s; } .lp-screen.active .lp-pos-grid span:nth-child(6) { animation-delay: .25s; }
@keyframes lp-pop { from { opacity: 0; transform: scale(.85); } }
.lp-pos-cart { display: grid; gap: 8px; align-content: start; padding: 12px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); }
.lp-pos-cart b { font-size: 13px; }
.lp-pos-cart i { height: 10px; border-radius: 5px; background: color-mix(in srgb, var(--ink) 8%, transparent); }
.lp-pos-cart em { margin-top: 6px; padding: 9px; border-radius: 10px; background: var(--tone); color: #fff; font-style: normal; font-weight: 800; font-size: 13px; text-align: center; }
.lp-kot-board { grid-template-columns: repeat(3, 1fr); align-items: start; }
.lp-kot-board > div { display: grid; gap: 8px; padding: 10px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); }
.lp-kot-board b { font-size: 11.5px; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.lp-kot-board span { padding: 10px; border-radius: 10px; border-left: 3px solid var(--tone); background: var(--surface-2); font-size: 12px; font-weight: 700; }
.lp-kot-board span.ok { border-left-color: var(--success, #2f9e63); }
.lp-screen.active .lp-kot-board span { animation: lp-slide .6s cubic-bezier(.2, .8, .2, 1) both; }
@keyframes lp-slide { from { opacity: 0; transform: translateX(-12px); } }
.lp-tables { grid-template-columns: repeat(4, 1fr); }
.lp-tables span { display: grid; place-items: center; aspect-ratio: 1.2; border-radius: 14px; border: 2px solid var(--line); background: var(--surface); font-weight: 850; font-size: 15px; }
.lp-tables span.busy { border-color: color-mix(in srgb, var(--tone) 60%, var(--line)); background: color-mix(in srgb, var(--tone) 12%, var(--surface)); }
.lp-tables span.ready { border-color: #2f9e63; background: color-mix(in srgb, #2f9e63 12%, var(--surface)); animation: lp-glow 1.6s ease-in-out infinite; }
@keyframes lp-glow { 50% { box-shadow: 0 0 0 6px color-mix(in srgb, #2f9e63 20%, transparent); } }

/* Pricing */
.lp-plans { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; align-items: stretch; }
.lp-plan {
  position: relative; display: flex; flex-direction: column; padding: 26px 22px; border: 1px solid var(--line); border-radius: 22px; background: var(--surface); box-shadow: var(--lp-shadow-sm);
  transition: transform .35s cubic-bezier(.2, .8, .2, 1), box-shadow .35s ease;
}
.lp-plan:hover { transform: translateY(-4px); box-shadow: var(--lp-shadow); }
.lp-plan.is-featured {
  border: 2px solid transparent;
  background: linear-gradient(var(--surface), var(--surface)) padding-box, linear-gradient(140deg, var(--brand), var(--accent)) border-box;
  box-shadow: var(--lp-shadow);
}
.lp-plan-badge {
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%); padding: 4px 13px; border-radius: 999px;
  background: linear-gradient(135deg, var(--brand), var(--accent)); color: #fff; font-size: 11.5px; font-weight: 800; letter-spacing: .02em; white-space: nowrap;
}
.lp-plan h3 { margin: 0; font-size: 18px; font-weight: 750; }
.lp-plan-price { margin: 12px 0 4px; color: var(--muted); }
.lp-plan-price strong { color: var(--ink); font-size: 36px; font-weight: 850; letter-spacing: -.04em; }
.lp-plan-meta { margin: 0 0 16px; color: var(--muted); font-size: 13.5px; }
.lp-plan ul { flex: 1; display: grid; gap: 9px; align-content: start; margin: 0 0 22px; padding: 16px 0 0; border-top: 1px solid var(--line); list-style: none; }
.lp-plan li { display: flex; gap: 9px; font-size: 14px; }
.lp-plan li i { margin-top: 3px; color: var(--success, var(--brand)); font-size: 12px; }
.lp-plan li.lp-plan-includes { color: var(--muted); font-weight: 650; }
.lp-plan li.lp-plan-includes i { color: var(--accent); }
.lp-plan-empty { display: grid; justify-items: center; gap: 14px; padding: 34px; border: 1px dashed var(--line); border-radius: 22px; text-align: center; }

/* Contact */
.lp-contact { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1fr); border: 1px solid var(--line); border-radius: 26px; background: var(--surface); overflow: hidden; box-shadow: var(--lp-shadow); }
.lp-contact-copy {
  position: relative; padding: clamp(28px, 4vw, 48px);
  background: radial-gradient(420px 260px at 0% 0%, color-mix(in srgb, var(--brand) 13%, transparent), transparent 70%), color-mix(in srgb, var(--surface-2) 40%, var(--surface));
  border-right: 1px solid var(--line);
}
.lp-contact-copy h2 { margin: 12px 0 10px; font-size: clamp(26px, 3vw, 36px); }
.lp-contact-copy p { margin: 0; color: var(--muted); font-size: 16px; line-height: 1.7; }
.lp-contact-tabs { display: inline-flex; gap: 4px; margin: 24px 0; padding: 4px; border-radius: 999px; background: var(--surface-2); }
.lp-contact-tab { min-height: 38px; padding: 0 16px; border: 0; border-radius: 999px; background: transparent; color: var(--muted); font: inherit; font-size: 14px; font-weight: 750; cursor: pointer; transition: background-color .2s ease, color .2s ease, box-shadow .2s ease; }
.lp-contact-tab.active { background: var(--surface); color: var(--brand); box-shadow: var(--lp-shadow-sm); }
.lp-contact-points { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.lp-contact-points li { display: flex; gap: 10px; color: var(--ink); font-size: 15px; line-height: 1.5; }
.lp-contact-points i { margin-top: 3px; color: var(--success, var(--brand)); }
.lp-contact-form { display: grid; gap: 16px; align-content: start; padding: clamp(28px, 4vw, 48px); }
.lp-contact-form .field, .lp-contact-form .textarea { min-height: 48px; border-radius: 12px; font-size: 15px; }
.lp-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.lp-hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.lp-contact-form .form-alert.success { border-color: color-mix(in srgb, var(--success, #2f9e63) 30%, transparent); background: color-mix(in srgb, var(--success, #2f9e63) 10%, var(--surface)); color: var(--success, #2f9e63); }
.lp-contact.is-flash { animation: lp-contact-flash 1.2s ease; }
@keyframes lp-contact-flash { 30% { box-shadow: 0 0 0 5px color-mix(in srgb, var(--brand) 25%, transparent), var(--lp-shadow); } }

/* Footer */
.lp-footer { border-top: 1px solid var(--line); background: var(--surface); }
.lp-footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 30px; padding-block: 44px 30px; }
.lp-footer-brand { max-width: 340px; }
.lp-footer-brand p { margin: 14px 0 0; color: var(--muted); font-size: 14px; line-height: 1.7; }
.lp-footer-links { display: flex; flex-wrap: wrap; gap: clamp(30px, 6vw, 80px); }
.lp-footer-links div { display: grid; gap: 10px; align-content: start; }
.lp-footer-links strong { font-size: 14px; }
.lp-footer-links a, .lp-footer-links button { padding: 0; border: 0; background: none; color: var(--muted); font: inherit; font-size: 14px; text-align: left; text-decoration: none; cursor: pointer; transition: color .2s ease; }
.lp-footer-links a:hover, .lp-footer-links button:hover { color: var(--brand); }
.lp-footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; padding-block: 18px calc(18px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; }
.lp-footer-bottom a { color: var(--brand); font-weight: 800; }

/* ---- Scroll reveal (only when JS runs, so the page never stays hidden) --- */
.lp-js [data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity .8s ease, transform .9s cubic-bezier(.2, .8, .2, 1); transition-delay: var(--d, 0s); }
.lp-js [data-reveal].is-visible { opacity: 1; transform: none; }

/* ---- Responsive --------------------------------------------------------- */
@media (max-width: 1100px) {
  .lp-plans { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 26px; }
  .lp-float { left: -10px; }
}
@media (max-width: 960px) {
  .lp-nav-links { display: none; }
  .lp-menu-toggle { display: block; }
  .lp-hero-inner, .lp-dash, .lp-contact { grid-template-columns: minmax(0, 1fr); }
  .lp-hero-copy { text-align: center; }
  .lp-lead { margin-inline: auto; }
  .lp-hero-actions, .lp-hero-points { justify-content: center; }
  .lp-hero-visual { margin-top: 12px; padding-inline: 18px; }
  .lp-features { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lp-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 34px; }
  .lp-steps::before { display: none; }
  .lp-contact-copy { border-right: 0; border-bottom: 1px solid var(--line); }
  .lp-dash-stage { width: min(640px, 100%); margin-inline: auto; }
}
@media (min-width: 621px) {
  .lp-menu-theme { display: none; }
}
@media (max-width: 620px) {
  /* Phones: text-only account buttons, the theme switch moves into the menu. */
  .lp-nav-inner { gap: 10px; }
  .lp-nav-actions { gap: 6px; }
  .lp-theme-toggle { display: none; }
  .lp-nav-signin, .lp-nav-register { padding: 0 12px; font-size: 13.5px; }
  .lp-nav-signin i, .lp-nav-register i, .lp-hide-sm { display: none; }
  .lp-hero h1 { margin-top: 18px; }
  .lp-hero-actions .lp-btn { width: 100%; }
  .lp-features, .lp-plans, .lp-steps { grid-template-columns: minmax(0, 1fr); }
  .lp-feature { padding: 22px; }
  .lp-btn-lg { white-space: normal; text-align: center; }
  .lp-form-row { grid-template-columns: minmax(0, 1fr); }
  .lp-hero-visual { padding-inline: 4px; }
  .lp-tilt { transform: none; }
  .lp-float { top: -28px; left: -4px; padding: 9px 12px; }
  .lp-toast { right: -4px; bottom: -34px; }
  .lp-kpis b { font-size: 13px; }
  .lp-dash-stage { aspect-ratio: 4 / 3.4; }
  .lp-screen { grid-template-columns: 38px minmax(0, 1fr); }
  .lp-screen-main { padding: 12px; }
  .lp-pos { grid-template-columns: 1fr; }
  .lp-pos-cart { display: none; }
}
@media (max-width: 380px) {
  .lp-logo strong { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html:has(body.landing) { scroll-behavior: auto; }
  .lp *, .lp *::before, .lp *::after { animation: none !important; transition-duration: .01ms !important; }
  .lp-js [data-reveal] { opacity: 1; transform: none; }
  .lp-tilt { transform: none; }
  .lp-steps::before { transform: scaleX(1); }
}
