/*
 * Landing page. Self-contained on top of Bootstrap's grid and components: the app theme (styles.min.css)
 * is not loaded here. Colours are the AutoSignals palette; everything else is defined below.
 */

@font-face {
  font-family: "Plus Jakarta Sans";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("../fonts/plus-jakarta-sans-latin.woff2") format("woff2");
}

/* ── Tokens ─────────────────────────────────────────────────────────── */

:root {
  /* Palette (unchanged brand colours) */
  --c-primary: 92, 103, 247;
  --c-secondary: 158, 92, 247;
  --c-pink: 254, 84, 155;
  --c-teal: 0, 216, 216;
  --c-warning: 255, 198, 88;
  --c-orange: 254, 124, 88;
  --c-success: 33, 206, 158;
  --c-danger: 251, 66, 66;
  --c-info: 14, 165, 232;

  --grad-brand: linear-gradient(120deg, rgb(var(--c-primary)) 0%, rgb(var(--c-secondary)) 55%, rgb(var(--c-pink)) 100%);
  --grad-text: linear-gradient(100deg, rgb(var(--c-teal)) 0%, rgb(var(--c-primary)) 40%, rgb(var(--c-pink)) 100%);

  --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --radius-lg: 24px;
  --radius: 16px;
  --radius-sm: 12px;
  --ease: cubic-bezier(0.2, 0.7, 0.1, 1);
  --header-h: 68px;

  /* Light surfaces */
  --bg: #f6f7fb;
  --bg-alt: #eef0f8;
  --surface: #ffffff;
  --surface-2: #f8f9fd;
  --line: rgba(17, 20, 45, 0.08);
  --line-strong: rgba(17, 20, 45, 0.14);
  --text: #12142b;
  --text-2: #4a4f6a;
  --text-3: #7b8099;
  --shadow: 0 1px 2px rgba(17, 20, 45, 0.04), 0 8px 24px -12px rgba(17, 20, 45, 0.12);
  --shadow-lg: 0 30px 60px -30px rgba(40, 30, 120, 0.35);
  --glow-alpha: 0.18;
}

[data-theme-mode="dark"] {
  --bg: #0a0b14;
  --bg-alt: #0e0f1b;
  --surface: #12131f;
  --surface-2: #171828;
  --line: rgba(255, 255, 255, 0.07);
  --line-strong: rgba(255, 255, 255, 0.13);
  --text: #f2f3fa;
  --text-2: #a9acc4;
  --text-3: #767a95;
  --shadow: 0 1px 0 rgba(255, 255, 255, 0.04) inset, 0 12px 32px -16px rgba(0, 0, 0, 0.6);
  --shadow-lg: 0 40px 80px -30px rgba(0, 0, 0, 0.8);
  --glow-alpha: 0.32;
  color-scheme: dark;
}

/* ── Base ───────────────────────────────────────────────────────────── */

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }

body.lp {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

.lp a { color: inherit; text-decoration: none; }
.lp h1, .lp h2, .lp h3, .lp h4 { color: var(--text); font-weight: 750; letter-spacing: -0.03em; line-height: 1.12; margin: 0; }
.lp p { margin: 0; }
.lp ::selection { background: rgba(var(--c-primary), 0.35); }

.lp .container { max-width: 1200px; padding-inline: 20px; }

.lp-skip {
  position: absolute; left: 12px; top: -48px; z-index: 2000;
  padding: 8px 14px; border-radius: 10px;
  background: rgb(var(--c-primary)); color: #fff !important;
}
.lp-skip:focus { top: 12px; }

.lp :focus-visible { outline: 2px solid rgb(var(--c-primary)); outline-offset: 3px; border-radius: 8px; }

.grad-text {
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ── Buttons ────────────────────────────────────────────────────────── */

.lp-btn {
  --btn-h: 48px;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: var(--btn-h); padding: 0 22px;
  border-radius: 999px; border: 1px solid transparent;
  font: 600 0.95rem/1 var(--font); letter-spacing: -0.005em;
  cursor: pointer; white-space: nowrap;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), background-color 0.2s var(--ease), border-color 0.2s var(--ease), color 0.2s var(--ease);
}
.lp-btn i { font-size: 1.1em; line-height: 1; }
.lp-btn:hover { transform: translateY(-1px); }
.lp-btn:active { transform: translateY(0); }
.lp-btn--sm { --btn-h: 38px; padding: 0 16px; font-size: 0.875rem; }
.lp-btn--lg { --btn-h: 54px; padding: 0 28px; font-size: 1rem; }

.lp-btn--primary {
  color: #fff !important;
  background: var(--grad-brand);
  background-size: 160% 100%;
  background-position: 0% 0;
  box-shadow: 0 8px 24px -8px rgba(var(--c-secondary), 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}
.lp-btn--primary:hover { background-position: 100% 0; box-shadow: 0 12px 32px -8px rgba(var(--c-pink), 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.2); }

.lp-btn--ghost {
  color: var(--text) !important;
  background: transparent;
  border-color: var(--line-strong);
}
.lp-btn--ghost:hover { background: var(--surface-2); border-color: rgba(var(--c-primary), 0.5); }

.lp-btn--soft {
  color: var(--text) !important;
  background: var(--surface);
  border-color: var(--line);
  box-shadow: var(--shadow);
}
.lp-btn--soft:hover { border-color: rgba(var(--c-primary), 0.45); }

.lp-btn--warm {
  color: #1b1405 !important;
  background: linear-gradient(120deg, rgb(var(--c-warning)), rgb(var(--c-orange)));
  box-shadow: 0 8px 24px -8px rgba(var(--c-orange), 0.6);
}

.lp-icon-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border-radius: 999px;
  border: 1px solid var(--line); background: transparent; color: var(--text-2);
  font-size: 1.1rem; cursor: pointer;
  transition: background-color 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease);
}
.lp-icon-btn:hover { color: var(--text); background: var(--surface-2); border-color: var(--line-strong); }

.lp-when-light { display: none; }
[data-theme-mode="light"] .lp-when-light { display: inline; }
[data-theme-mode="light"] .lp-when-dark { display: none; }

/* ── Brand mark (shared markup with the app) ────────────────────────── */

.as-brand { display: inline-flex; align-items: center; gap: 10px; }
.as-brand__mark { width: 32px; height: 32px; flex-shrink: 0; filter: drop-shadow(0 4px 12px rgba(var(--c-secondary), 0.45)); }
.as-brand__word { font: 800 1.15rem/1 var(--font); letter-spacing: -0.035em; color: var(--text); }
.as-brand__word span { background: var(--grad-brand); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ── Header ─────────────────────────────────────────────────────────── */

.lp-header {
  position: sticky; top: 0; z-index: 1030;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background-color 0.25s var(--ease), border-color 0.25s var(--ease), backdrop-filter 0.25s var(--ease);
}
.lp-header.is-scrolled {
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  -webkit-backdrop-filter: saturate(160%) blur(16px);
  backdrop-filter: saturate(160%) blur(16px);
  border-bottom-color: var(--line);
}
.lp-header__inner { display: flex; align-items: center; gap: 24px; height: var(--header-h); }
.lp-header__brand { display: inline-flex; flex-shrink: 0; }

.lp-nav { display: flex; align-items: center; gap: 4px; margin-inline: auto; }
.lp-nav a {
  padding: 8px 14px; border-radius: 999px;
  font-size: 0.9rem; font-weight: 550; color: var(--text-2);
  transition: color 0.2s var(--ease), background-color 0.2s var(--ease);
}
.lp-nav a:hover { color: var(--text); background: var(--surface-2); }

.lp-header__actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.lp-nav + .lp-header__actions { margin-left: 0; }

.lp-avatar { font-weight: 700; font-size: 0.9rem; color: #fff; background: var(--grad-brand); border: 0; }
.lp-avatar:hover { color: #fff; background: var(--grad-brand); filter: brightness(1.1); }

.lp-burger { display: none; }
.lp-mobile-nav { border-top: 1px solid var(--line); background: var(--bg); }
.lp-mobile-nav nav { display: flex; flex-direction: column; padding-block: 10px 18px; }
.lp-mobile-nav a { padding: 12px 4px; font-weight: 600; color: var(--text-2); border-bottom: 1px solid var(--line); }
.lp-mobile-nav a:last-child { border-bottom: 0; }

@media (max-width: 991.98px) {
  .lp-nav { display: none; }
  .lp-burger { display: inline-flex; }
}
@media (min-width: 992px) {
  .lp-mobile-nav { display: none !important; }
}

/* Dropdown (account menu) */
.lp .dropdown-menu.lp-menu {
  --bs-dropdown-bg: var(--surface);
  --bs-dropdown-color: var(--text);
  --bs-dropdown-link-color: var(--text-2);
  --bs-dropdown-link-hover-color: var(--text);
  --bs-dropdown-link-hover-bg: var(--surface-2);
  --bs-dropdown-link-active-bg: rgba(var(--c-primary), 0.15);
  --bs-dropdown-link-active-color: var(--text);
  --bs-dropdown-divider-bg: var(--line);
  --bs-dropdown-header-color: var(--text-3);
  min-width: 240px; padding: 6px; margin-top: 10px !important;
  border: 1px solid var(--line-strong); border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  max-height: calc(100vh - 100px); overflow-y: auto;
}
.lp-menu .dropdown-item { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 10px; font-size: 0.9rem; font-weight: 500; }
.lp-menu .dropdown-item i { font-size: 1.05rem; color: var(--text-3); }
.lp-menu form { margin: 0; }
.lp-menu form .dropdown-item { width: 100%; }
.lp-menu__who { display: flex; flex-direction: column; padding: 10px 10px 12px; margin-bottom: 4px; border-bottom: 1px solid var(--line); }
.lp-menu__who span { font-weight: 650; font-size: 0.9rem; overflow: hidden; text-overflow: ellipsis; }
.lp-menu__who small { color: var(--text-3); font-size: 0.78rem; }

/* ── Sections ───────────────────────────────────────────────────────── */

.lp-section { position: relative; padding-block: clamp(72px, 10vw, 128px); }
.lp-section--alt { background: var(--bg-alt); }
[data-theme-mode="dark"] .lp-section--alt { background: linear-gradient(180deg, var(--bg) 0%, var(--bg-alt) 18%, var(--bg-alt) 82%, var(--bg) 100%); }

.lp-head { max-width: 680px; margin: 0 auto clamp(40px, 6vw, 64px); text-align: center; }
.lp-head--left { margin-inline: 0; text-align: left; }
.lp-head h2 { font-size: clamp(2rem, 4.2vw, 3rem); margin-bottom: 16px; text-wrap: balance; }
.lp-head p { font-size: 1.075rem; color: var(--text-2); }

.lp-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  margin-bottom: 18px; padding: 6px 14px 6px 10px;
  font-size: 0.78rem; font-weight: 650; letter-spacing: 0.02em;
  color: var(--text-2);
  border: 1px solid var(--line-strong); border-radius: 999px;
  background: color-mix(in srgb, var(--surface) 70%, transparent);
}
.lp-eyebrow i { font-size: 0.95rem; color: rgb(var(--c-primary)); }
.lp-eyebrow--teal i { color: rgb(var(--c-teal)); }
.lp-eyebrow--pink i { color: rgb(var(--c-pink)); }
.lp-eyebrow--warning i { color: rgb(var(--c-warning)); }
.lp-eyebrow--success i { color: rgb(var(--c-success)); }

/* ── Hero ───────────────────────────────────────────────────────────── */

.lp-hero {
  position: relative;
  margin-top: calc(var(--header-h) * -1);
  padding-top: calc(var(--header-h) + clamp(48px, 8vw, 96px));
  padding-bottom: clamp(56px, 8vw, 96px);
  overflow: hidden;
  isolation: isolate;
}

/* Soft colour fields from the palette, plus a faint grid that fades out. */
.lp-hero__bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.lp-hero__bg::before {
  content: ""; position: absolute; inset: -20% -10% auto -10%; height: 120%;
  background:
    radial-gradient(40% 50% at 18% 30%, rgba(var(--c-primary), var(--glow-alpha)), transparent 70%),
    radial-gradient(32% 40% at 80% 20%, rgba(var(--c-pink), calc(var(--glow-alpha) * 0.8)), transparent 70%),
    radial-gradient(30% 36% at 62% 70%, rgba(var(--c-teal), calc(var(--glow-alpha) * 0.55)), transparent 70%),
    radial-gradient(26% 30% at 38% 85%, rgba(var(--c-secondary), calc(var(--glow-alpha) * 0.7)), transparent 70%);
  filter: blur(20px);
  animation: lp-drift 22s ease-in-out infinite alternate;
}
.lp-hero__bg::after {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(to right, var(--line) 1px, transparent 1px),
    linear-gradient(to bottom, var(--line) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(70% 60% at 50% 30%, #000 30%, transparent 75%);
  mask-image: radial-gradient(70% 60% at 50% 30%, #000 30%, transparent 75%);
}
@keyframes lp-drift {
  0% { transform: translate3d(0, 0, 0) scale(1); }
  100% { transform: translate3d(-3%, 2%, 0) scale(1.06); }
}

.lp-hero__grid { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr); gap: clamp(32px, 5vw, 72px); align-items: center; }

.lp-hero h1 {
  font-size: clamp(2.5rem, 5.4vw, 4.25rem);
  text-wrap: balance;
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 1.02;
  margin-bottom: 22px;
}
.lp-hero__lede { font-size: clamp(1.05rem, 1.6vw, 1.2rem); color: var(--text-2); max-width: 560px; margin-bottom: 14px; }
.lp-hero__ticker { font-size: 0.95rem; font-weight: 650; color: var(--text); min-height: 1.6em; margin-bottom: 30px; }
.lp-hero__ticker .typing-cursor::after { content: ""; display: inline-block; width: 2px; height: 1em; margin-left: 3px; vertical-align: -0.12em; background: rgb(var(--c-teal)); animation: lp-blink 0.9s steps(1) infinite; }
@keyframes lp-blink { 50% { opacity: 0; } }

.lp-hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 26px; }

.lp-hero__trust { display: flex; flex-wrap: wrap; gap: 8px 20px; color: var(--text-3); font-size: 0.875rem; font-weight: 500; }
.lp-hero__trust span { display: inline-flex; align-items: center; gap: 6px; }
.lp-hero__trust i { color: rgb(var(--c-success)); font-size: 1rem; }

.pulse-dot { position: relative; width: 8px; height: 8px; border-radius: 50%; background: rgb(var(--c-success)); flex-shrink: 0; }
.pulse-dot::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: inherit; animation: lp-ping 1.8s cubic-bezier(0, 0, 0.2, 1) infinite; }
@keyframes lp-ping { 75%, 100% { transform: scale(2.6); opacity: 0; } }

/* Audit board: the hero visual, built from real tier-list data. */
.lp-board {
  position: relative;
  border-radius: var(--radius-lg);
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  border: 1px solid var(--line-strong);
  box-shadow: var(--shadow-lg);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  overflow: hidden;
  transform: perspective(1400px) rotateY(-6deg) rotateX(3deg);
  transition: transform 0.6s var(--ease);
}
.lp-board:hover { transform: perspective(1400px) rotateY(0) rotateX(0); }
.lp-board::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; pointer-events: none;
  background: linear-gradient(140deg, rgba(var(--c-teal), 0.6), transparent 30%, transparent 70%, rgba(var(--c-pink), 0.6));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
}
.lp-board__top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.lp-board__title { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 0.95rem; }
.lp-board__dots { display: flex; gap: 6px; }
.lp-board__dots span { width: 10px; height: 10px; border-radius: 50%; background: var(--line-strong); }
.lp-board__live { display: inline-flex; align-items: center; gap: 8px; font-size: 0.75rem; font-weight: 650; color: rgb(var(--c-success)); text-transform: uppercase; letter-spacing: 0.06em; }

.lp-board__head, .lp-board__row {
  display: grid; grid-template-columns: 22px minmax(0, 1fr) 40px 92px 64px; gap: 12px; align-items: center;
  padding: 12px 20px;
}
.lp-board__head { font-size: 0.7rem; font-weight: 650; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-3); padding-block: 12px 6px; }
.lp-board__row { border-top: 1px solid var(--line); transition: background-color 0.2s var(--ease); }
.lp-board__row:hover { background: var(--surface-2); }
.lp-board__rank { font-weight: 700; color: var(--text-3); font-variant-numeric: tabular-nums; }
.lp-board__name { font-weight: 650; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lp-board__name small { display: block; font-weight: 500; font-size: 0.75rem; color: var(--text-3); }
.lp-board__num { text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; }
.lp-board__num.is-up { color: rgb(var(--c-success)); }
.lp-board__num.is-down { color: rgb(var(--c-danger)); }
.lp-board__muted { text-align: right; color: var(--text-2); font-variant-numeric: tabular-nums; font-size: 0.9rem; }
.lp-board__foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 20px; border-top: 1px solid var(--line); font-size: 0.8rem; color: var(--text-3); }
.lp-board__foot a { color: rgb(var(--c-primary)); font-weight: 650; white-space: nowrap; }
[data-theme-mode="dark"] .lp-board__foot a { color: rgb(var(--c-teal)); }

.lp-tier {
  display: inline-flex; align-items: center; justify-content: center;
  width: 30px; height: 26px; border-radius: 8px;
  font-weight: 800; font-size: 0.8rem;
}
.lp-tier--S { color: #1b1405; background: linear-gradient(135deg, rgb(var(--c-warning)), rgb(var(--c-orange))); }
.lp-tier--A { color: #fff; background: linear-gradient(135deg, rgb(var(--c-success)), rgb(var(--c-teal))); }
.lp-tier--B { color: #fff; background: linear-gradient(135deg, rgb(var(--c-primary)), rgb(var(--c-info))); }
.lp-tier--C { color: #fff; background: linear-gradient(135deg, rgb(var(--c-secondary)), rgb(var(--c-primary))); }
.lp-tier--D { color: #fff; background: linear-gradient(135deg, rgb(var(--c-danger)), rgb(var(--c-pink))); }

/* Empty board: the tier bands themselves. */
.lp-bands { padding: 8px 20px 16px; }
.lp-bands div { display: flex; align-items: center; gap: 14px; padding: 10px 0; border-top: 1px solid var(--line); font-size: 0.9rem; color: var(--text-2); }
.lp-bands div:first-child { border-top: 0; }

/* Floating chips around the board */
.lp-hero__visual { position: relative; }
.lp-float {
  position: absolute; z-index: 2;
  display: inline-flex; align-items: center; gap: 10px;
  padding: 10px 14px; border-radius: 14px;
  background: var(--surface); border: 1px solid var(--line-strong);
  box-shadow: var(--shadow-lg);
  font-size: 0.8rem; font-weight: 600; color: var(--text-2);
  animation: lp-bob 6s ease-in-out infinite;
}
.lp-float strong { display: block; font-size: 0.95rem; color: var(--text); }
.lp-float__icon { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 10px; font-size: 1.1rem; color: rgb(var(--tone)); background: rgba(var(--tone), 0.13); }
.lp-float--a { left: -28px; bottom: -54px; }
.lp-float--b { right: -12px; top: -66px; animation-delay: -3s; }
@keyframes lp-bob { 50% { transform: translateY(-8px); } }

/* Stats strip */
.lp-stats {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  margin-top: clamp(48px, 7vw, 80px);
  border: 1px solid var(--line); border-radius: var(--radius-lg);
  background: color-mix(in srgb, var(--surface) 70%, transparent);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  overflow: hidden;
}
.lp-stat { padding: 22px 24px; border-left: 1px solid var(--line); }
.lp-stat:first-child { border-left: 0; }
.lp-stat__num { display: block; font-size: clamp(1.7rem, 3vw, 2.25rem); font-weight: 800; letter-spacing: -0.04em; line-height: 1.1; font-variant-numeric: tabular-nums; }
.lp-stat__label { font-size: 0.8rem; font-weight: 550; color: var(--text-3); }

.lp-exchanges { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px 14px; margin-top: 28px; font-size: 0.85rem; color: var(--text-3); }
.lp-chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--text-2); font-weight: 600; font-size: 0.8rem; }

/* ── Principles (bento) ─────────────────────────────────────────────── */

.lp-bento { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px; }
.lp-card {
  position: relative;
  padding: 28px;
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.lp-card:hover { transform: translateY(-3px); border-color: var(--line-strong); }
.lp-card h3 { font-size: 1.25rem; margin-bottom: 10px; }
.lp-card p { color: var(--text-2); font-size: 0.95rem; }
.lp-card p a { color: rgb(var(--c-primary)); font-weight: 600; }
[data-theme-mode="dark"] .lp-card p a { color: rgb(var(--c-teal)); }

.lp-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 48px; height: 48px; margin-bottom: 20px;
  border-radius: 14px; font-size: 1.4rem;
  color: rgb(var(--tone, var(--c-primary)));
  background: rgba(var(--tone, var(--c-primary)), 0.12);
  box-shadow: inset 0 0 0 1px rgba(var(--tone, var(--c-primary)), 0.22);
}
.tone-primary { --tone: var(--c-primary); }
.tone-secondary { --tone: var(--c-secondary); }
.tone-pink { --tone: var(--c-pink); }
.tone-teal { --tone: var(--c-teal); }
.tone-warning { --tone: var(--c-warning); }
.tone-success { --tone: var(--c-success); }
.tone-orange { --tone: var(--c-orange); }
.tone-danger { --tone: var(--c-danger); }

.lp-card--wide { grid-column: span 3; }
.lp-card--third { grid-column: span 2; }
.lp-card--glow::after {
  content: ""; position: absolute; width: 280px; height: 280px; right: -90px; top: -90px; border-radius: 50%;
  background: radial-gradient(circle, rgba(var(--tone, var(--c-primary)), 0.28), transparent 70%);
  pointer-events: none;
}

/* The "audit vs claim" mini visual in the first principle card */
.lp-compare { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 22px; }
.lp-compare > div { padding: 14px 16px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface-2); }
.lp-compare small { display: block; font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.08em; font-weight: 650; color: var(--text-3); margin-bottom: 4px; }
.lp-compare strong { font-size: 1.05rem; font-weight: 750; }
.lp-compare .is-claim strong { color: var(--text-3); text-decoration: line-through; text-decoration-color: rgba(var(--c-danger), 0.7); }
.lp-compare .is-audit { border-color: rgba(var(--c-success), 0.35); background: rgba(var(--c-success), 0.07); }
.lp-compare .is-audit strong { color: rgb(var(--c-success)); }

/* ── Steps ──────────────────────────────────────────────────────────── */

.lp-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; counter-reset: step; position: relative; }
.lp-step { position: relative; padding: 28px; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); }
.lp-step__num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; margin-bottom: 22px;
  border-radius: 12px; font-weight: 800; font-size: 1rem; color: #fff;
  background: var(--grad-brand);
  box-shadow: 0 8px 20px -8px rgba(var(--c-secondary), 0.7);
}
.lp-step h3 { font-size: 1.15rem; margin-bottom: 8px; }
.lp-step p { color: var(--text-2); font-size: 0.95rem; }
.lp-step:not(:last-child)::after {
  content: ""; position: absolute; top: 48px; right: -17px; width: 18px; height: 1px;
  background: var(--line-strong);
}

/* ── Feature showcase ───────────────────────────────────────────────── */

.lp-showcase { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(24px, 4vw, 48px); align-items: start; }
.lp-tabs { display: flex; flex-direction: column; gap: 6px; }
.feature-tab-btn {
  display: flex; align-items: center; gap: 14px; width: 100%;
  padding: 14px 16px; border-radius: var(--radius);
  border: 1px solid transparent; background: transparent;
  color: var(--text); text-align: left; cursor: pointer;
  font-family: var(--font);
  transition: background-color 0.2s var(--ease), border-color 0.2s var(--ease);
}
.feature-tab-btn:hover { background: var(--surface); }
.feature-tab-btn.active { background: var(--surface); border-color: var(--line-strong); box-shadow: var(--shadow); }
.feature-tab-btn .lp-icon { width: 40px; height: 40px; margin: 0; font-size: 1.15rem; border-radius: 12px; flex-shrink: 0; }
.tab-title, .tab-sub { display: block; }
.tab-title { font-weight: 650; font-size: 0.95rem; line-height: 1.3; }
.tab-sub { font-size: 0.82rem; color: var(--text-3); margin-top: 2px; }

.lp-frame {
  position: sticky; top: calc(var(--header-h) + 24px);
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--line-strong);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.lp-frame__bar { display: flex; align-items: center; gap: 6px; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.lp-frame__bar span { width: 10px; height: 10px; border-radius: 50%; background: var(--line-strong); }
.lp-frame__bar span:nth-child(1) { background: rgba(var(--c-danger), 0.7); }
.lp-frame__bar span:nth-child(2) { background: rgba(var(--c-warning), 0.8); }
.lp-frame__bar span:nth-child(3) { background: rgba(var(--c-success), 0.75); }
.lp-frame__bar em { margin-left: 12px; font-style: normal; font-size: 0.78rem; color: var(--text-3); }
.feature-panel { display: none; }
.feature-panel.active { display: block; animation: lp-fade 0.4s var(--ease); }
.feature-panel img { display: block; width: 100%; height: auto; }
@keyframes lp-fade { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* ── Android app ────────────────────────────────────────────────────── */

.lp-app { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 80px); align-items: center; }
.lp-app__copy h2 { font-size: clamp(2rem, 4.2vw, 3rem); margin-bottom: 16px; text-wrap: balance; }
.lp-app__copy > p { color: var(--text-2); font-size: 1.075rem; margin-bottom: 24px; max-width: 520px; }
.lp-app__list { list-style: none; padding: 0; margin: 0 0 32px; display: grid; gap: 10px; }
.lp-app__list li { display: flex; align-items: center; gap: 10px; color: var(--text-2); font-weight: 500; }
.lp-app__list i { display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; border-radius: 8px; font-size: 0.95rem; color: rgb(var(--c-success)); background: rgba(var(--c-success), 0.13); }

/* Google Play button: the old hero badge, redrawn on the brand gradient */
.lp-play {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 10px 22px 10px 16px; border-radius: 16px;
  color: #fff !important;
  background: var(--grad-brand);
  box-shadow: 0 12px 28px -12px rgba(var(--c-secondary), 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.22);
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.lp-play:hover { transform: translateY(-2px); box-shadow: 0 16px 36px -12px rgba(var(--c-pink), 0.65), inset 0 1px 0 rgba(255, 255, 255, 0.22); }
.lp-play > i { font-size: 2rem; line-height: 1; }
.lp-play span { display: flex; flex-direction: column; line-height: 1.15; }
.lp-play small { font-size: 0.66rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.1em; opacity: 0.8; }
.lp-play strong { font-size: 1.15rem; font-weight: 750; letter-spacing: -0.02em; }

.lp-phones { position: relative; height: clamp(420px, 46vw, 560px); }
.lp-phones::before {
  content: ""; position: absolute; inset: 10% 5%; border-radius: 50%; z-index: 0;
  background: radial-gradient(closest-side, rgba(var(--c-primary), var(--glow-alpha)), transparent),
              radial-gradient(closest-side at 70% 60%, rgba(var(--c-pink), calc(var(--glow-alpha) * 0.7)), transparent);
  filter: blur(30px);
}
.lp-phone {
  position: absolute; top: 50%; left: 50%; z-index: 1;
  width: clamp(170px, 18vw, 230px); aspect-ratio: 1 / 2;
  padding: 7px; border-radius: 34px;
  background: linear-gradient(160deg, #2a2c44, #10111c);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08) inset, var(--shadow-lg);
}
.lp-phone img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top; border-radius: 27px; }
.lp-phone--front { z-index: 2; transform: translate(-50%, -50%); }
.lp-phone--back-left { transform: translate(-112%, -46%) rotate(-7deg) scale(0.9); opacity: 0.9; }
.lp-phone--back-right { transform: translate(12%, -46%) rotate(7deg) scale(0.9); opacity: 0.9; }

@media (max-width: 991.98px) {
  .lp-app { grid-template-columns: minmax(0, 1fr); }
  .lp-phones { order: -1; }
}
@media (max-width: 575.98px) {
  .lp-phone { width: 150px; border-radius: 26px; padding: 5px; }
  .lp-phone img { border-radius: 21px; }
  .lp-phones { height: 360px; }
  .lp-phone--back-left { transform: translate(-100%, -46%) rotate(-7deg) scale(0.88); }
  .lp-phone--back-right { transform: translate(0%, -46%) rotate(7deg) scale(0.88); }
}

/* ── Pricing ────────────────────────────────────────────────────────── */

.lp-toggle {
  display: inline-flex; align-items: center; gap: 4px; padding: 4px; margin-top: 24px;
  border-radius: 999px; border: 1px solid var(--line-strong); background: var(--surface);
}
.lp-toggle button {
  display: inline-flex; align-items: center; gap: 8px;
  height: 36px; padding: 0 16px; border: 0; border-radius: 999px;
  background: transparent; color: var(--text-2); font: 600 0.875rem var(--font); cursor: pointer;
  transition: background-color 0.2s var(--ease), color 0.2s var(--ease);
}
.lp-toggle button[aria-pressed="true"] { background: var(--text); color: var(--bg); }
.lp-save { padding: 2px 8px; border-radius: 999px; font-size: 0.72rem; font-weight: 700; color: rgb(var(--c-success)); background: rgba(var(--c-success), 0.14); }

.lp-plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; align-items: stretch; }
.lp-plan {
  position: relative; display: flex; flex-direction: column;
  padding: 32px 28px; border-radius: var(--radius-lg);
  background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow);
}
.lp-plan--featured { border-color: transparent; background: linear-gradient(var(--surface), var(--surface)) padding-box, var(--grad-brand) border-box; border: 1.5px solid transparent; box-shadow: 0 30px 60px -30px rgba(var(--c-secondary), 0.55); }
.lp-plan__badge {
  position: absolute; top: -13px; left: 28px;
  padding: 4px 12px; border-radius: 999px;
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.04em; color: #fff;
  background: var(--grad-brand);
}
.lp-plan__name { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 1.05rem; font-weight: 700; margin-bottom: 14px; }
.lp-plan__tag { font-size: 0.72rem; font-weight: 700; padding: 3px 10px; border-radius: 999px; }
.lp-plan__tag.tone-success { color: rgb(var(--c-success)); background: rgba(var(--c-success), 0.13); }
.lp-plan__tag.tone-warning { color: rgb(var(--c-warning)); background: rgba(var(--c-warning), 0.14); }
[data-theme-mode="light"] .lp-plan__tag.tone-warning { color: #a86a00; }
.lp-plan__price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 6px; margin-bottom: 10px; }
.lp-price-big { font-size: 3rem; font-weight: 800; letter-spacing: -0.05em; line-height: 1; font-variant-numeric: tabular-nums; }
.lp-plan__per { color: var(--text-3); font-size: 0.9rem; font-weight: 500; }
.lp-plan__blurb { color: var(--text-2); font-size: 0.92rem; margin-bottom: 22px !important; min-height: 3em; }
.lp-plan ul { list-style: none; padding: 0; margin: 0 0 28px; display: grid; gap: 10px; flex: 1; align-content: start; }
.lp-plan li { display: flex; gap: 10px; align-items: flex-start; font-size: 0.9rem; color: var(--text-2); }
.lp-plan li i { flex-shrink: 0; margin-top: 1px; font-size: 1.05rem; color: rgb(var(--c-success)); }
.lp-plan li.is-off { color: var(--text-3); }
.lp-plan li.is-off i { color: var(--text-3); }
.lp-plan li.is-off span { text-decoration: line-through; }
.lp-plan .lp-btn { width: 100%; }
.lp-more { display: inline-flex; align-items: center; gap: 6px; margin-top: 28px; font-weight: 650; color: var(--text-2); }
.lp-more:hover { color: var(--text); }

/* ── FAQ ────────────────────────────────────────────────────────────── */

.lp-faq { max-width: 820px; margin-inline: auto; display: grid; gap: 10px; }
.lp-faq details {
  border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line);
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.lp-faq details[open] { border-color: var(--line-strong); box-shadow: var(--shadow); }
.lp-faq summary {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 20px 22px; cursor: pointer; list-style: none;
  font-weight: 650; font-size: 1rem;
}
.lp-faq summary::-webkit-details-marker { display: none; }
.lp-faq summary::after {
  content: "\ea13"; font-family: "remixicon"; font-weight: normal; font-size: 1.2rem; color: var(--text-3);
  transition: transform 0.25s var(--ease);
}
.lp-faq details[open] summary::after { transform: rotate(45deg); color: rgb(var(--c-primary)); }
.lp-faq details > div { padding: 0 22px 22px; color: var(--text-2); font-size: 0.95rem; }

/* ── Community ──────────────────────────────────────────────────────── */

.lp-community { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.lp-community a.lp-card { display: flex; flex-direction: column; }
.lp-community .lp-card h3 { font-size: 1.05rem; }
.lp-community .lp-card p { flex: 1; margin-bottom: 18px; font-size: 0.9rem; }
.lp-community .lp-go { display: inline-flex; align-items: center; gap: 6px; font-weight: 650; font-size: 0.9rem; color: rgb(var(--tone, var(--c-primary))); }
.lp-community .lp-card:hover .lp-go i { transform: translateX(3px); }
.lp-go i { transition: transform 0.2s var(--ease); }

/* ── Final CTA ──────────────────────────────────────────────────────── */

.lp-cta {
  position: relative; overflow: hidden; isolation: isolate;
  padding: clamp(48px, 8vw, 88px) clamp(24px, 5vw, 64px);
  border-radius: 32px; text-align: center; color: #fff;
  background: linear-gradient(135deg, #1b1d4a 0%, #2a1a5e 50%, #4a1640 100%);
}
.lp-cta::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(40% 60% at 15% 20%, rgba(var(--c-primary), 0.55), transparent 70%),
    radial-gradient(40% 60% at 85% 80%, rgba(var(--c-pink), 0.45), transparent 70%),
    radial-gradient(30% 40% at 70% 10%, rgba(var(--c-teal), 0.3), transparent 70%);
}
.lp-cta h2 { color: #fff; font-size: clamp(2rem, 4.5vw, 3.2rem); margin: 0 auto 16px; max-width: 760px; }
.lp-cta p { color: rgba(255, 255, 255, 0.78); max-width: 560px; margin: 0 auto 32px !important; font-size: 1.05rem; }
.lp-cta .lp-eyebrow { color: rgba(255, 255, 255, 0.9); border-color: rgba(255, 255, 255, 0.22); background: rgba(255, 255, 255, 0.08); }
.lp-cta .lp-btn--ghost { color: #fff !important; border-color: rgba(255, 255, 255, 0.3); }
.lp-cta .lp-btn--ghost:hover { background: rgba(255, 255, 255, 0.1); }
.lp-cta__ctas { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }

/* ── Sticky CTA bar ─────────────────────────────────────────────────── */

.sticky-cta-bar {
  position: fixed; left: 50%; bottom: 16px; z-index: 1040;
  display: flex; align-items: center; gap: 16px;
  padding: 8px 8px 8px 20px; border-radius: 999px;
  background: color-mix(in srgb, var(--surface) 86%, transparent);
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  border: 1px solid var(--line-strong);
  box-shadow: var(--shadow-lg);
  transform: translate(-50%, 140%);
  transition: transform 0.4s var(--ease);
  max-width: calc(100% - 24px);
}
.sticky-cta-bar.show { transform: translate(-50%, 0); }
.sticky-cta-bar .sticky-text { font-size: 0.9rem; color: var(--text-2); white-space: nowrap; }
.sticky-cta-bar .sticky-text strong { color: var(--text); }
.sticky-cta-bar .lp-icon-btn { width: 32px; height: 32px; border: 0; }

/* ── Footer ─────────────────────────────────────────────────────────── */

.lp-footer { padding: 72px 0 32px; border-top: 1px solid var(--line); background: var(--bg); }
.lp-footer__grid { display: grid; grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr)); gap: 40px; }
.lp-footer__about p { margin: 18px 0 20px !important; color: var(--text-2); font-size: 0.92rem; max-width: 340px; }
.lp-footer h3 { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-3); font-weight: 700; margin-bottom: 16px; }
.lp-footer__grid > div:not(.lp-footer__about) { display: flex; flex-direction: column; gap: 10px; }
.lp-footer__grid a { font-size: 0.92rem; color: var(--text-2); transition: color 0.2s var(--ease); }
.lp-footer__grid a:hover { color: var(--text); }
.lp-footer__social { display: flex; gap: 8px; }
.lp-footer__social a { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 12px; border: 1px solid var(--line); font-size: 1.1rem; }
.lp-footer__social a:hover { border-color: var(--line-strong); background: var(--surface); }
.lp-footer__base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 32px; margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--line); font-size: 0.8rem; color: var(--text-3); }
.lp-footer__base span:last-child { max-width: 640px; }

/* ── Scroll reveal ──────────────────────────────────────────────────── */

.reveal { opacity: 0; transform: translateY(20px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.visible { opacity: 1; transform: none; }
.reveal-delay-1 { transition-delay: 0.08s; }
.reveal-delay-2 { transition-delay: 0.16s; }
.reveal-delay-3 { transition-delay: 0.24s; }
.reveal-delay-4 { transition-delay: 0.32s; }
.no-js .reveal { opacity: 1; transform: none; }

/* ── Responsive ─────────────────────────────────────────────────────── */

@media (max-width: 1199.98px) {
  .lp-float--a { left: -8px; }
  .lp-float--b { right: -4px; }
}

@media (max-width: 991.98px) {
  .lp-hero__grid { grid-template-columns: minmax(0, 1fr); }
  .lp-board { transform: none; }
  .lp-hero__visual { max-width: 560px; }
  .lp-bento { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .lp-card--wide { grid-column: span 2; }
  .lp-card--third { grid-column: span 1; }
  .lp-card--third:last-child { grid-column: span 2; }
  .lp-steps { grid-template-columns: minmax(0, 1fr); }
  .lp-step:not(:last-child)::after { display: none; }
  .lp-showcase { grid-template-columns: minmax(0, 1fr); }
  .lp-tabs { flex-direction: row; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 6px; scrollbar-width: none; }
  .lp-tabs::-webkit-scrollbar { display: none; }
  .feature-tab-btn { flex: 0 0 auto; width: auto; scroll-snap-align: start; }
  .feature-tab-btn .tab-sub { display: none; }
  .lp-frame { position: relative; top: 0; }
  .lp-plans { grid-template-columns: minmax(0, 1fr); max-width: 520px; margin-inline: auto; }
  .lp-community { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .lp-footer__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .lp-footer__about { grid-column: 1 / -1; }
}

@media (max-width: 575.98px) {
  .lp .container { padding-inline: 16px; }
  .lp-header__inner { gap: 12px; }
  .lp-hero__ctas .lp-btn { flex: 1 1 100%; }
  .lp-float { display: none; }
  .lp-board__head, .lp-board__row { grid-template-columns: 22px minmax(0, 1fr) 36px 72px; padding-inline: 14px; gap: 10px; }
  .lp-board__head > :last-child, .lp-board__row > :last-child { display: none; }
  .lp-stats { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .lp-stat { border-left: 0; border-top: 1px solid var(--line); padding: 18px; }
  .lp-stat:nth-child(-n+2) { border-top: 0; }
  .lp-stat:nth-child(even) { border-left: 1px solid var(--line); }
  .lp-bento, .lp-community { grid-template-columns: minmax(0, 1fr); }
  .lp-card--wide, .lp-card--third, .lp-card--third:last-child { grid-column: auto; }
  .lp-card { padding: 22px; }
  .lp-compare { grid-template-columns: minmax(0, 1fr); }
  .lp-footer__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .sticky-cta-bar .sticky-text { display: none; }
  .sticky-cta-bar { padding-left: 8px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .reveal { opacity: 1; transform: none; }
  .lp-board { transform: none; }
}
