/* ============================================================================
   Wealthsmith — marketing homepage
   Standalone page (does NOT use the app shell). Loads style.css first for the
   design tokens (:root custom properties + dark-mode overrides), then everything
   here is prefixed .lp- to stay clear of the app's own selectors.
   ========================================================================== */

*,
*::before,
*::after { box-sizing: border-box; }

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

body.lp {
    margin: 0;
    font-family: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: var(--text);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    line-height: 1.6;
    overflow-x: hidden;
}

.lp a { color: inherit; text-decoration: none; }
.lp img, .lp svg { display: block; max-width: 100%; }

.lp-wrap {
    width: 100%;
    max-width: 1160px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ---------- scroll progress ------------------------------------------------ */
.lp-progress {
    position: fixed;
    top: 0; left: 0;
    height: 3px;
    width: 0%;
    background: linear-gradient(90deg, var(--accent), var(--accent-secondary));
    z-index: 200;
    transition: width 0.1s linear;
}

/* ---------- live ticker strip ------------------------------------------------ */
.lp-ticker {
    position: relative;
    z-index: 60;
    background: var(--surface);
    color: var(--text);
    border-bottom: 1px solid var(--border);
    overflow: hidden;
    height: 40px;
    display: flex;
    align-items: center;
}
/* keep it dark only in dark mode */
:root[data-theme="dark"] .lp-ticker { background: #0b1220; color: #fff; border-bottom-color: rgba(255, 255, 255, 0.08); }
@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) .lp-ticker { background: #0b1220; color: #fff; border-bottom-color: rgba(255, 255, 255, 0.08); }
}

.lp-ticker__tag {
    flex: none;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    padding: 0 16px;
    height: 100%;
    background: linear-gradient(90deg, var(--accent), var(--accent-secondary));
    z-index: 2;
}
.lp-ticker__dot {
    width: 7px; height: 7px;
    border-radius: 50%;
    background: #34d399;
    box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.6);
    animation: lp-pulse 2s infinite;
}
@keyframes lp-pulse {
    0%   { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.55); }
    70%  { box-shadow: 0 0 0 8px rgba(52, 211, 153, 0); }
    100% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0); }
}

.lp-ticker__viewport {
    flex: 1;
    overflow: hidden;
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 2%, #000 97%, transparent 100%);
            mask-image: linear-gradient(90deg, transparent 0, #000 2%, #000 97%, transparent 100%);
}
.lp-ticker__track {
    display: inline-flex;
    align-items: stretch;
    white-space: nowrap;
    /* duration is set from JS so the scroll speed stays constant (px/sec)
       regardless of how many quotes are shown */
    animation: lp-marquee var(--marquee-dur, 20s) linear infinite;
    will-change: transform;
}
.lp-ticker__viewport:hover .lp-ticker__track { animation-play-state: paused; }
@keyframes lp-marquee {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}
.lp-quote {
    display: inline-flex;
    align-items: baseline;
    gap: 6px;
    padding: 0 18px;
    font-size: 12.5px;
    font-variant-numeric: tabular-nums;
    position: relative;
    border-radius: 5px;
}
.lp-quote::after {
    content: "";
    position: absolute;
    right: 0; top: 50%;
    height: 13px; width: 1px;
    background: currentColor;
    opacity: 0.16;
    transform: translateY(-50%);
}
.lp-quote__name  { font-weight: 600; color: var(--text-muted); letter-spacing: 0.01em; }
.lp-quote__val   { font-weight: 700; }
.lp-quote__chg   { font-weight: 600; font-size: 11px; }
.lp-quote__arrow { font-size: 8px; }
.lp-quote__chg.up   { color: #17b978; }
.lp-quote__chg.down { color: #f0475a; }
:root[data-theme="dark"] .lp-quote__chg.up   { color: #34d399; }
:root[data-theme="dark"] .lp-quote__chg.down { color: #fb7185; }
@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) .lp-quote__chg.up   { color: #34d399; }
    :root:not([data-theme="light"]) .lp-quote__chg.down { color: #fb7185; }
}
/* brief flash when a quote ticks */
.lp-quote.tick-up   { animation: lp-tick-up 0.9s ease-out; }
.lp-quote.tick-down { animation: lp-tick-down 0.9s ease-out; }
@keyframes lp-tick-up   { from { background: rgba(23, 185, 120, 0.20); } to { background: transparent; } }
@keyframes lp-tick-down { from { background: rgba(240, 71, 90, 0.18); }  to { background: transparent; } }

/* ---------- nav --------------------------------------------------------------- */
.lp-nav {
    position: sticky;
    top: 0;
    z-index: 50;
    background: color-mix(in srgb, var(--bg) 82%, transparent);
    -webkit-backdrop-filter: saturate(180%) blur(14px);
            backdrop-filter: saturate(180%) blur(14px);
    border-bottom: 1px solid transparent;
    transition: border-color 0.25s, background 0.25s, box-shadow 0.25s;
}
.lp-nav.is-scrolled {
    border-color: var(--border);
    box-shadow: var(--shadow-sm);
}
.lp-nav__inner {
    display: flex;
    align-items: center;
    gap: 28px;
    height: 66px;
}
.lp-logo {
    display: inline-flex;
    align-items: center;
    gap: 0;
    font-weight: 800;
    font-size: 19px;
    letter-spacing: -0.02em;
    white-space: nowrap;
}
.lp-logo span { color: var(--accent); }
.lp-logo__mark {
    width: 32px; height: 32px;
    border-radius: 9px;
    margin-right: 10px;
    background: linear-gradient(135deg, var(--accent), var(--accent-secondary));
    display: grid;
    place-items: center;
    box-shadow: var(--shadow-blue);
    flex: none;
}
.lp-nav__links {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-left: auto;
}
.lp-nav__links a {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-muted);
    padding: 8px 12px;
    border-radius: var(--radius-sm);
    transition: color 0.15s, background 0.15s;
}
.lp-nav__links a:hover { color: var(--text); background: var(--bg-2); }

.lp-nav__cta { display: flex; align-items: center; gap: 10px; }

.lp-iconbtn {
    width: 42px; height: 42px;
    display: grid; place-items: center;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-2);
    background: var(--surface);
    color: var(--text);
    cursor: pointer;
    flex: none;
    transition: color 0.15s, border-color 0.15s, background 0.15s;
}
.lp-iconbtn svg { width: 22px; height: 22px; }
.lp-iconbtn:hover { color: var(--accent); border-color: var(--accent); background: var(--bg-2); }
.lp-iconbtn .ico-moon { display: none; }
:root[data-theme="dark"] .lp-iconbtn .ico-sun  { display: none; }
:root[data-theme="dark"] .lp-iconbtn .ico-moon { display: block; }
@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) .lp-iconbtn .ico-sun  { display: none; }
    :root:not([data-theme="light"]) .lp-iconbtn .ico-moon { display: block; }
}

.lp-hamburger { display: none; }

/* ---------- buttons --------------------------------------------------------- */
.lp-btn {
    --_bg: var(--accent);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font: inherit;
    font-size: 14px;
    font-weight: 700;
    padding: 11px 20px;
    border-radius: var(--radius-md);
    border: 1px solid transparent;
    cursor: pointer;
    transition: transform 0.12s var(--ease), box-shadow 0.2s, background 0.2s;
    white-space: nowrap;
}
.lp-btn--primary {
    background: linear-gradient(135deg, var(--accent), var(--accent-secondary));
    color: #fff;
    box-shadow: var(--shadow-blue);
}
.lp-btn--primary:hover { transform: translateY(-2px); box-shadow: 0 14px 30px -8px rgba(47, 95, 232, 0.5); }
.lp-btn--ghost {
    background: var(--surface);
    border-color: var(--border-2);
    color: var(--text);
}
.lp-btn--ghost:hover { background: var(--bg-2); transform: translateY(-2px); }
.lp-btn--lg { padding: 15px 28px; font-size: 15px; border-radius: var(--radius-lg); }
.lp-btn--block { width: 100%; }

/* ---------- generic section ------------------------------------------------- */
.lp-section { padding: 96px 0; position: relative; }
.lp-section--tight { padding: 64px 0; }
.lp-section--alt { background: var(--bg-2); }

.lp-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 14px;
}
.lp-eyebrow::before {
    content: "";
    width: 22px; height: 2px;
    background: var(--accent);
    border-radius: 2px;
}
.lp-h2 {
    font-size: clamp(26px, 3.4vw, 40px);
    font-weight: 800;
    letter-spacing: -0.025em;
    line-height: 1.15;
    margin: 0 0 16px;
}
.lp-sub {
    font-size: clamp(15px, 1.6vw, 18px);
    color: var(--text-muted);
    max-width: 60ch;
    margin: 0;
}
.lp-section__head { margin-bottom: 52px; max-width: 720px; }
.lp-section__head--center { margin-inline: auto; text-align: center; }
.lp-section__head--center .lp-sub { margin-inline: auto; }
.lp-section__head--center .lp-eyebrow::before { display: none; }

/* ---------- reveal animation ---------------------------------------------- */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal.is-visible { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: 0.08s; }
.reveal[data-delay="2"] { transition-delay: 0.16s; }
.reveal[data-delay="3"] { transition-delay: 0.24s; }
.reveal[data-delay="4"] { transition-delay: 0.32s; }

/* ---------- hero ---------------------------------------------------------- */
.lp-hero {
    position: relative;
    padding: 72px 0 90px;
    overflow: hidden;
}
.lp-hero__blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.18;           /* light theme: keep it very subtle */
    z-index: 0;
    pointer-events: none;
}
:root[data-theme="dark"] .lp-hero__blob { opacity: 0.5; }
@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) .lp-hero__blob { opacity: 0.5; }
}
.lp-hero__blob--a { width: 460px; height: 460px; background: rgba(47, 95, 232, 0.4);  top: -140px; left: -120px; animation: lp-drift 18s ease-in-out infinite alternate; }
.lp-hero__blob--b { width: 380px; height: 380px; background: rgba(79, 70, 229, 0.34); bottom: -120px; right: -80px; animation: lp-drift 22s ease-in-out infinite alternate-reverse; }
@keyframes lp-drift {
    from { transform: translate(0, 0) scale(1); }
    to   { transform: translate(40px, 30px) scale(1.12); }
}
.lp-hero__grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 56px;
    align-items: center;
}
.lp-hero h1 {
    font-size: clamp(34px, 5vw, 58px);
    line-height: 1.06;
    letter-spacing: -0.03em;
    font-weight: 800;
    margin: 18px 0 20px;
}
.lp-hero h1 .grad {
    background: linear-gradient(120deg, var(--accent), var(--accent-secondary));
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent;
}
.lp-hero__lead { font-size: clamp(16px, 1.9vw, 19px); color: var(--text-muted); max-width: 52ch; }
.lp-hero__ctas { display: flex; gap: 14px; margin: 30px 0 22px; flex-wrap: wrap; }
.lp-hero__chips { display: flex; flex-wrap: wrap; gap: 10px 22px; }
.lp-chip {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-muted);
}
.lp-chip svg { width: 16px; height: 16px; color: var(--success); flex: none; }
.lp-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--accent);
    background: var(--accent-soft);
    border: 1px solid var(--accent-border);
    padding: 5px 10px;
    border-radius: var(--radius-full);
}

/* hero visual — layered product mock */
.lp-hero__visual { position: relative; }
.lp-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}
.lp-mock {
    padding: 18px;
    position: relative;
    z-index: 2;
}
.lp-mock__bar { display: flex; gap: 6px; margin-bottom: 14px; }
.lp-mock__bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--border-2); }
.lp-mock__row { display: flex; justify-content: space-between; align-items: center; padding: 10px 4px; border-top: 1px solid var(--border); font-size: 13px; }
.lp-mock__row:first-of-type { border-top: none; }
.lp-mock__k { color: var(--text-muted); font-weight: 600; }
.lp-mock__v { font-weight: 700; font-variant-numeric: tabular-nums; }
.lp-mock__v.pos { color: var(--success); }

.lp-float {
    position: absolute;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    padding: 12px 14px;
    z-index: 3;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 12.5px;
    font-weight: 600;
}
.lp-float--tl { top: -22px; left: -26px; animation: lp-float 6s ease-in-out infinite; }
.lp-float--br { bottom: -22px; right: -22px; animation: lp-float 7s ease-in-out infinite reverse; }
.lp-float__ic { width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); flex: none; }
.lp-float__ic.g { background: var(--success-soft); color: var(--success); }
@keyframes lp-float {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-12px); }
}

/* ---------- coverage strip ---------------------------------------------- */
.lp-coverage {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 14px 34px;
    padding: 30px 0;
}
.lp-coverage__label { font-size: 12px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-faint); }
.lp-coverage__item { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 14px; color: var(--text-muted); }
.lp-coverage__item svg { width: 18px; height: 18px; color: var(--accent); }

/* ---------- value: time + money --------------------------------------- */
.lp-value { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.lp-value__panel {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 34px;
    box-shadow: var(--shadow-sm);
}
.lp-value__ic {
    width: 46px; height: 46px;
    border-radius: 12px;
    display: grid; place-items: center;
    background: var(--accent-soft); color: var(--accent);
    margin-bottom: 18px;
}
.lp-value__panel h3 { font-size: 20px; font-weight: 800; margin: 0 0 6px; letter-spacing: -0.02em; }
.lp-stat-big {
    font-size: clamp(32px, 4.6vw, 46px);
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--accent);
    line-height: 1.1;
    margin: 18px 0 4px;
    font-variant-numeric: tabular-nums;
}
.lp-value__panel ul { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 10px; }
.lp-value__panel li { display: flex; gap: 10px; font-size: 14px; color: var(--text-muted); }
.lp-value__panel li svg { width: 17px; height: 17px; color: var(--success); flex: none; margin-top: 2px; }

.lp-feebars { display: grid; gap: 12px; margin-top: 20px; }
.lp-feebar__label { display: flex; justify-content: space-between; font-size: 12.5px; font-weight: 600; margin-bottom: 5px; }
.lp-feebar__track { height: 12px; border-radius: var(--radius-full); background: var(--bg-2); overflow: hidden; }
.lp-feebar__fill { height: 100%; width: 0; border-radius: var(--radius-full); transition: width 1.1s var(--ease); }
.lp-feebar__fill.trad { background: linear-gradient(90deg, #fca5a5, var(--danger)); }
.lp-feebar__fill.ws   { background: linear-gradient(90deg, var(--accent), var(--accent-secondary)); }

/* ---------- steps ----------------------------------------------------- */
.lp-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; counter-reset: step; }
.lp-step {
    position: relative;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 30px 26px;
}
.lp-step__n {
    counter-increment: step;
    width: 38px; height: 38px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--accent), var(--accent-secondary));
    color: #fff;
    display: grid; place-items: center;
    font-weight: 800;
    margin-bottom: 16px;
}
.lp-step__n::before { content: counter(step); }
.lp-step h3 { font-size: 17px; font-weight: 800; margin: 0 0 6px; }
.lp-step p { font-size: 14px; color: var(--text-muted); margin: 0; }
.lp-step:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 46px; right: -14px;
    width: 28px; height: 2px;
    background: var(--border-2);
}

/* ---------- Richie ------------------------------------------------------ */
.lp-richie { display: grid; grid-template-columns: 0.92fr 1.08fr; gap: 52px; align-items: center; }
.lp-chat {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}
.lp-chat__top {
    display: flex; align-items: center; gap: 10px;
    padding: 14px 18px;
    border-bottom: 1px solid var(--border);
    background: var(--bg-2);
}
.lp-chat__avatar {
    width: 30px; height: 30px; border-radius: 8px;
    background: linear-gradient(135deg, var(--accent), var(--accent-secondary));
    display: grid; place-items: center; color: #fff;
}
.lp-chat__title { font-weight: 800; font-size: 14px; }
.lp-chat__title small { display: block; font-weight: 600; font-size: 11px; color: var(--text-muted); }
.lp-chat__body { padding: 18px; display: grid; gap: 14px; }
.lp-msg { max-width: 84%; padding: 11px 14px; border-radius: 14px; font-size: 13.5px; }
.lp-msg--user { justify-self: end; background: var(--accent); color: #fff; border-bottom-right-radius: 4px; }
.lp-msg--bot  { justify-self: start; background: var(--bg-2); border: 1px solid var(--border); border-bottom-left-radius: 4px; }
.lp-msg--bot b { color: var(--accent); }
.lp-msg__meta { display: flex; gap: 8px; margin-top: 8px; flex-wrap: wrap; }
.lp-tag {
    font-size: 11px; font-weight: 700;
    padding: 3px 8px; border-radius: var(--radius-full);
    background: var(--accent-soft); color: var(--accent);
}
.lp-tag.warn { background: var(--danger-soft); color: var(--danger-dim); }
.lp-tag.ok   { background: var(--success-soft); color: var(--success); }

.lp-richie__list { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 14px; }
.lp-richie__list li { display: flex; gap: 12px; font-size: 14.5px; }
.lp-richie__list svg { width: 20px; height: 20px; color: var(--accent); flex: none; margin-top: 2px; }
.lp-richie__list b { font-weight: 700; }

.lp-toggle {
    display: inline-flex;
    background: var(--bg-2);
    border: 1px solid var(--border);
    border-radius: var(--radius-full);
    padding: 4px;
    margin-top: 22px;
    gap: 4px;
}
.lp-toggle button {
    font: inherit; font-size: 13px; font-weight: 700;
    border: none; background: none; color: var(--text-muted);
    padding: 8px 16px; border-radius: var(--radius-full); cursor: pointer;
    transition: color 0.15s, background 0.15s;
}
.lp-toggle button.is-active { background: var(--surface); color: var(--text); box-shadow: var(--shadow-xs); }

/* ---------- bento features ------------------------------------------------ */
/* 12-col grid; every row's spans sum to 12 so tiles align edge-to-edge and
   nothing overflows. Rows: 8+4 / 4+4+4 / 4+4+4 / 6+6 */
.lp-bento {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 20px;
}
.lp-tile {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 26px;
    grid-column: span 4;
    display: flex;
    flex-direction: column;
    transition: transform 0.18s var(--ease), box-shadow 0.2s, border-color 0.2s;
}
.lp-tile:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--border-2); }
.lp-tile--wide { grid-column: span 6; }
.lp-tile--hero { grid-column: span 8; }
.lp-tile__ic {
    width: 40px; height: 40px; border-radius: 10px;
    display: grid; place-items: center;
    background: var(--accent-soft); color: var(--accent);
    margin-bottom: 16px;
}
.lp-tile h3 { font-size: 16px; font-weight: 800; margin: 0 0 6px; letter-spacing: -0.01em; }
.lp-tile p { font-size: 13.5px; color: var(--text-muted); margin: 0; }
.lp-tile__viz { margin-top: auto; padding-top: 18px; }
.lp-tile--hero .lp-tile__viz { margin-top: 20px; }
.lp-rrm { max-width: 320px; }

/* mini charts inside tiles */
.lp-linechart { width: 100%; height: auto; }
.lp-linechart .grid { stroke: var(--border); stroke-width: 1; }
.lp-linechart .axis { stroke: var(--text-faint); stroke-width: 1; }
.lp-linechart .series-p {
    fill: none; stroke: var(--accent); stroke-width: 2.5;
    stroke-linecap: round; stroke-linejoin: round;
    stroke-dasharray: var(--len); stroke-dashoffset: var(--len);
}
.lp-linechart .series-b {
    fill: none; stroke: var(--chart-secondary); stroke-width: 2;
    stroke-dasharray: 4 4;
    stroke-dashoffset: var(--len);
}
.lp-linechart .area-p { fill: url(#lpAreaGrad); opacity: 0; transition: opacity 0.9s 0.5s; }
.is-visible .lp-linechart .series-p { animation: lp-draw 1.6s var(--ease) forwards; }
.is-visible .lp-linechart .series-b { animation: lp-draw 1.6s 0.2s var(--ease) forwards; }
.is-visible .lp-linechart .area-p { opacity: 1; }
@keyframes lp-draw { to { stroke-dashoffset: 0; } }

.lp-donut { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.lp-donut svg { width: 112px; height: 112px; flex: none; transform: rotate(-90deg); overflow: visible; }
.lp-donut circle { fill: none; stroke-width: 7; }
.lp-donut .seg { stroke-dasharray: 0 100; transition: stroke-dasharray 1.1s var(--ease); }
.lp-donut__legend { display: grid; gap: 6px; font-size: 12px; }
.lp-donut__legend span { display: inline-flex; align-items: center; gap: 7px; color: var(--text-muted); }
.lp-donut__legend i { width: 9px; height: 9px; border-radius: 3px; flex: none; }

/* rolling-returns matrix */
.lp-rrm__grid {
    display: grid;
    grid-template-columns: 24px repeat(4, 1fr);
    gap: 3px;
    font-variant-numeric: tabular-nums;
}
.lp-rrm__h, .lp-rrm__y {
    font-size: 9px;
    font-weight: 700;
    color: var(--text-faint);
    display: flex;
    align-items: center;
    justify-content: center;
}
.lp-rrm__y { justify-content: flex-end; padding-right: 4px; }
.lp-rrm__cell {
    height: 28px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 9.5px;
    font-weight: 700;
    color: #fff;
    text-shadow: 0 1px 1px rgba(0, 0, 0, 0.3);
    opacity: 0;
    transform: scale(0.7);
    transition: opacity 0.45s var(--ease), transform 0.45s var(--ease);
}
.is-visible .lp-rrm__cell { opacity: 1; transform: none; }
.lp-rrm__cell.na {
    background: var(--bg-2);
    color: var(--text-faint);
    text-shadow: none;
}
.lp-rrm__legend {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 12px;
    margin-top: 10px;
    font-size: 10px;
    color: var(--text-muted);
}
.lp-rrm__legend i {
    width: 10px;
    height: 10px;
    border-radius: 3px;
    display: inline-block;
    margin-right: 5px;
    vertical-align: -1px;
}

.lp-rings { display: flex; gap: 20px; flex-wrap: wrap; }
.lp-ring { width: 76px; height: 76px; transform: rotate(-90deg); overflow: visible; }
.lp-ring circle { fill: none; stroke-width: 3.2; }
.lp-ring .bg { stroke: var(--bg-2); }
.lp-ring .fg { stroke: var(--accent); stroke-linecap: round; stroke-dasharray: var(--c); stroke-dashoffset: var(--c); transition: stroke-dashoffset 1.2s var(--ease); }
.is-visible .lp-ring .fg { stroke-dashoffset: var(--off); }

.lp-scored { display: grid; gap: 6px; font-size: 12px; }
.lp-scored__row { display: grid; grid-template-columns: 1fr auto 46px; gap: 10px; align-items: center; }
.lp-scored__bar { height: 7px; border-radius: 4px; background: var(--bg-2); overflow: hidden; }
.lp-scored__bar span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--accent), var(--accent-secondary)); transition: width 1s var(--ease); }
.is-visible .lp-scored__bar span { width: var(--w); }

/* ---------- data-driven charts row --------------------------------------- */
.lp-charts { display: grid; grid-template-columns: 1.3fr 1fr; gap: 24px; }
.lp-charts__main, .lp-charts__side {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 26px;
    box-shadow: var(--shadow-sm);
}
.lp-charts__side { display: grid; gap: 22px; align-content: start; }
.lp-chart-h { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 16px; }
.lp-chart-h h3 { font-size: 15px; font-weight: 800; margin: 0; }
.lp-chart-h span { font-size: 12px; color: var(--text-muted); }
.lp-legend2 { display: flex; gap: 16px; font-size: 12px; color: var(--text-muted); margin-top: 12px; }
.lp-legend2 i { display: inline-block; width: 18px; height: 3px; border-radius: 2px; vertical-align: middle; margin-right: 6px; }

.lp-gauge { text-align: center; }
.lp-gauge svg { width: 150px; height: 84px; margin: 0 auto; }
.lp-gauge__needle { transform-origin: 75px 75px; transition: transform 1.3s var(--ease); }
.is-visible .lp-gauge__needle { transform: rotate(var(--deg)); }
.lp-gauge__val { font-size: 22px; font-weight: 800; margin-top: 4px; }
.lp-gauge__lbl { font-size: 12px; color: var(--text-muted); }

/* ---------- compounding interactive ------------------------------------ */
.lp-calc {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 32px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 32px;
    box-shadow: var(--shadow-sm);
}
.lp-calc__controls { display: grid; gap: 22px; align-content: start; }
.lp-field label { display: flex; justify-content: space-between; font-size: 13px; font-weight: 700; margin-bottom: 8px; }
.lp-field label b { color: var(--accent); font-variant-numeric: tabular-nums; }
.lp-range {
    -webkit-appearance: none; appearance: none;
    width: 100%; height: 6px; border-radius: 4px;
    background: var(--bg-2);
    outline: none;
}
.lp-range::-webkit-slider-thumb {
    -webkit-appearance: none; appearance: none;
    width: 20px; height: 20px; border-radius: 50%;
    background: var(--accent);
    border: 3px solid var(--surface);
    box-shadow: var(--shadow-md);
    cursor: pointer;
}
.lp-range::-moz-range-thumb {
    width: 18px; height: 18px; border-radius: 50%;
    background: var(--accent); border: 3px solid var(--surface); cursor: pointer;
}
.lp-calc__out { display: flex; flex-direction: column; }
.lp-calc__headline { font-size: 14px; color: var(--text-muted); }
.lp-calc__headline b { color: var(--text); font-weight: 800; }
.lp-calc__save {
    font-size: clamp(24px, 3.6vw, 34px);
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--success);
    font-variant-numeric: tabular-nums;
    margin: 4px 0 12px;
}
.lp-areachart { width: 100%; flex: 1; min-height: 160px; }
.lp-areachart .a-ws   { fill: url(#lpCalcGrad); }
.lp-areachart .l-ws   { fill: none; stroke: var(--accent); stroke-width: 2.5; }
.lp-areachart .l-trad { fill: none; stroke: var(--danger); stroke-width: 2; stroke-dasharray: 5 4; }

/* ---------- products / segments --------------------------------------- */
.lp-prods { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.lp-prod {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 26px;
    display: flex; flex-direction: column;
    transition: transform 0.18s var(--ease), box-shadow 0.2s;
}
.lp-prod:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.lp-prod__ic { width: 42px; height: 42px; border-radius: 11px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); margin-bottom: 14px; }
.lp-prod h3 { font-size: 16px; font-weight: 800; margin: 0 0 6px; }
.lp-prod p { font-size: 13px; color: var(--text-muted); margin: 0 0 14px; }
.lp-prod ul { list-style: none; margin: auto 0 0; padding: 0; display: grid; gap: 7px; }
.lp-prod li { font-size: 12.5px; color: var(--text-muted); padding-left: 18px; position: relative; }
.lp-prod li::before { content: "→"; position: absolute; left: 0; color: var(--accent); font-weight: 700; }

/* ---------- roadmap -------------------------------------------------- */
.lp-roadmap { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.lp-road {
    position: relative;
    background: var(--surface);
    border: 1px dashed var(--border-2);
    border-radius: var(--radius-lg);
    padding: 24px;
}
.lp-road__tbd {
    position: absolute; top: 14px; right: 14px;
    font-size: 10px; font-weight: 800; letter-spacing: 0.08em;
    padding: 3px 8px; border-radius: var(--radius-full);
    background: var(--bg-2); color: var(--text-faint);
}
.lp-road__ic { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; background: var(--bg-2); color: var(--accent); margin-bottom: 14px; }
.lp-road h3 { font-size: 15px; font-weight: 800; margin: 0 0 6px; }
.lp-road p { font-size: 12.5px; color: var(--text-muted); margin: 0; }

/* ---------- value strip ------------------------------------------- */
.lp-valuestrip {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 28px;
    box-shadow: var(--shadow-sm);
}
.lp-valuestrip > div {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 0 14px;
    border-left: 1px solid var(--border);
}
.lp-valuestrip > div:first-child { border-left: none; }
.lp-valuestrip span { font-size: 22px; line-height: 1; }
.lp-valuestrip b { font-size: 14.5px; font-weight: 800; margin-top: 6px; }
.lp-valuestrip small { font-size: 12.5px; color: var(--text-muted); }

/* ---------- pricing ------------------------------------------------ */
.lp-pricing { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; align-items: stretch; max-width: 1080px; margin: 0 auto; }
.lp-plan {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 28px;
    display: flex; flex-direction: column;
    height: 100%;
}
.lp-plan__price { min-height: 38px; }
.lp-plan--featured {
    border-color: var(--accent);
    box-shadow: var(--shadow-blue);
    position: relative;
}
.lp-plan--featured::before {
    content: "Most popular";
    position: absolute; top: -11px; left: 50%; transform: translateX(-50%);
    font-size: 10px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase;
    background: linear-gradient(135deg, var(--accent), var(--accent-secondary));
    color: #fff; padding: 4px 12px; border-radius: var(--radius-full);
    white-space: nowrap;
}
.lp-plan h3 { font-size: 15px; font-weight: 800; margin: 0 0 4px; }
.lp-plan__price { font-size: 30px; font-weight: 800; letter-spacing: -0.03em; margin: 10px 0 2px; }
.lp-plan__price small { font-size: 13px; font-weight: 600; color: var(--text-muted); }
.lp-plan__tbd { font-size: 11px; font-weight: 700; color: var(--accent); background: var(--accent-soft); border: 1px solid var(--accent-border); padding: 3px 8px; border-radius: var(--radius-full); align-self: flex-start; margin-bottom: 14px; }
.lp-plan__desc { font-size: 12.5px; color: var(--text-muted); margin: 0 0 16px; }
.lp-plan ul { list-style: none; margin: 0 0 20px; padding: 0; display: grid; gap: 9px; }
.lp-plan li { display: flex; gap: 9px; font-size: 13px; color: var(--text-muted); }
.lp-plan li svg { width: 16px; height: 16px; color: var(--success); flex: none; margin-top: 2px; }
.lp-plan .lp-btn { margin-top: auto; }

/* ---------- india / trust ---------------------------------------- */
.lp-india { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; align-items: center; }
.lp-india__list { display: grid; gap: 16px; margin-top: 22px; }
.lp-india__list div { display: flex; gap: 12px; font-size: 14px; }
.lp-india__list svg { width: 20px; height: 20px; color: var(--accent); flex: none; }
.lp-trustchips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
.lp-trustchips span {
    font-size: 12px; font-weight: 700;
    padding: 7px 12px; border-radius: var(--radius-full);
    background: var(--bg-2); border: 1px solid var(--border); color: var(--text-muted);
}

/* ---------- FAQ -------------------------------------------------- */
.lp-faq { max-width: 780px; margin: 0 auto; display: grid; gap: 12px; }
.lp-faq__item {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    overflow: hidden;
}
.lp-faq__q {
    width: 100%;
    text-align: left;
    font: inherit; font-size: 15px; font-weight: 700;
    color: var(--text);
    background: none; border: none; cursor: pointer;
    padding: 18px 20px;
    display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.lp-faq__q svg { width: 18px; height: 18px; flex: none; transition: transform 0.25s var(--ease); color: var(--text-muted); }
.lp-faq__item.is-open .lp-faq__q svg { transform: rotate(45deg); }
.lp-faq__a {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s var(--ease);
}
.lp-faq__a p { margin: 0; padding: 0 20px 20px; font-size: 14px; color: var(--text-muted); }

/* ---------- final CTA ------------------------------------------- */
.lp-final {
    text-align: center;
    background:
        radial-gradient(600px 300px at 50% 0%, var(--accent-soft), transparent),
        var(--bg-2);
    border-radius: var(--radius-lg);
    padding: 64px 32px;
}
.lp-final h2 { font-size: clamp(26px, 3.6vw, 40px); font-weight: 800; letter-spacing: -0.03em; margin: 0 0 12px; }
.lp-final p { color: var(--text-muted); max-width: 46ch; margin: 0 auto 28px; }
.lp-emailform { display: flex; gap: 10px; max-width: 440px; margin: 0 auto; }
.lp-emailform input {
    flex: 1;
    font: inherit; font-size: 14px;
    padding: 13px 16px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-2);
    background: var(--surface);
    color: var(--text);
}
.lp-emailform input:focus { outline: 2px solid var(--accent); outline-offset: 1px; }

/* ---------- footer -------------------------------------------- */
.lp-footer {
    background: var(--text);
    color: rgba(255, 255, 255, 0.72);
    padding: 60px 0 34px;
}
:root[data-theme="dark"] .lp-footer,
.lp-footer { background: #0b1220; }
.lp-footer__grid {
    display: grid;
    grid-template-columns: 1.6fr repeat(4, 1fr);
    gap: 34px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.lp-footer__brand .lp-logo { color: #fff; }
.lp-footer__brand p { font-size: 13px; max-width: 34ch; margin: 14px 0 0; }
.lp-footer h4 { font-size: 12px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: rgba(255,255,255,0.5); margin: 0 0 14px; }
.lp-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.lp-footer li a { font-size: 13px; transition: color 0.15s; }
.lp-footer li a:hover { color: #fff; }
.lp-footer__legal {
    display: flex; justify-content: space-between; gap: 20px;
    padding-top: 26px;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
    flex-wrap: wrap;
}
.lp-footer__disclaimer { max-width: 60ch; line-height: 1.7; }

/* mobile-menu-only CTA links (live inside .lp-nav__links, hidden on desktop) */
.lp-nav__mcta { display: none; }

/* ---------- overflow safety --------------------------------------------------
   Grid tracks default to minmax(min-content, 1fr); a wide child (an SVG chart,
   a long ₹ figure, a nowrap string) can then push a track — and the whole page
   — wider than the viewport. Setting min-width:0 on the items makes the tracks
   shrinkable, and clamping the media/cards keeps their contents in bounds. */
.lp-hero__grid > *, .lp-richie > *, .lp-charts > *, .lp-charts__side > *,
.lp-calc > *, .lp-bento > *, .lp-value > *, .lp-steps > *, .lp-prods > *,
.lp-roadmap > *, .lp-pricing > *, .lp-india > *, .lp-valuestrip > *,
.lp-footer__grid > * { min-width: 0; }

.lp-card, .lp-mock, .lp-chat, .lp-hero__visual,
.lp-linechart, .lp-areachart { max-width: 100%; }
.lp-mock { overflow: hidden; }

.lp-mock__head {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    flex-wrap: wrap;
    gap: 4px 12px;
    margin-bottom: 10px;
}
.lp-mock__amt { font-size: 24px; font-weight: 800; letter-spacing: -0.02em; white-space: nowrap; }
@media (max-width: 480px) { .lp-mock__amt { font-size: 20px; } }
.lp-hero__ctas .lp-btn { min-width: 0; }

/* ---------- responsive -------------------------------------- */

/* --- large tablet / small laptop: collapse the multi-column layouts --- */
@media (max-width: 1120px) {
    .lp-hero__grid { grid-template-columns: 1fr; gap: 40px; }
    .lp-hero__visual { max-width: 440px; margin: 0 auto; display: flex; flex-direction: column; }
    .lp-hero h1 { font-size: clamp(32px, 6vw, 52px); }
    /* single-column hero has no side room, so stack the callouts inline */
    .lp-float { position: static; margin: 12px 0 0; animation: none; box-shadow: var(--shadow-sm); align-self: stretch; }
    .lp-float--tl { order: -1; margin: 0 0 12px; }
    .lp-richie { grid-template-columns: 1fr; gap: 36px; }
    .lp-charts { grid-template-columns: 1fr; }
    .lp-calc { grid-template-columns: 1fr; }
    .lp-calc__controls { grid-template-columns: 1fr; }
    .lp-bento { grid-template-columns: repeat(2, 1fr); }
    .lp-tile, .lp-tile--wide, .lp-tile--hero { grid-column: span 1; }
    .lp-prods, .lp-roadmap { grid-template-columns: repeat(2, 1fr); }
    /* three plans: a 2-column grid would strand the third card on the left, so stack them, centred */
    .lp-pricing { grid-template-columns: minmax(0, 520px); justify-content: center; }
    .lp-india { grid-template-columns: 1fr; }
    .lp-valuestrip { grid-template-columns: repeat(2, 1fr); }
    .lp-valuestrip > div:nth-child(3) { border-left: none; }
}

/* --- collapse the nav to a hamburger well before the links would wrap (1080px: the "Start free trial" button is wider than the old "Get started") --- */
@media (max-width: 1080px) {
    .lp-nav__links { display: none; }
    .lp-hamburger { display: grid; }
    .lp-nav__cta .lp-btn { display: none; }   /* Sign in / Get started move into the menu */
    .lp-nav__links.is-open {
        display: flex;
        position: absolute;
        top: 100%; left: 0; right: 0;
        flex-direction: column;
        align-items: stretch;
        gap: 4px;
        padding: 12px;
        background: var(--surface);
        border-top: 1px solid var(--border);
        border-bottom: 1px solid var(--border);
        box-shadow: var(--shadow-lg);
    }
    .lp-nav__links.is-open a {
        padding: 12px 14px;
        border-radius: var(--radius-sm);
        font-size: 15px;
    }
    .lp-nav__links.is-open .lp-nav__mcta {
        display: block;
        text-align: center;
        font-weight: 700;
        border: 1px solid var(--border-2);
        margin-top: 4px;
    }
    .lp-nav__links.is-open .lp-nav__mcta--primary {
        background: linear-gradient(135deg, var(--accent), var(--accent-secondary));
        color: #fff;
        border-color: transparent;
    }
}

/* --- phones: everything to a single column --- */
@media (max-width: 760px) {
    .lp-section { padding: 64px 0; }
    .lp-hero { padding: 44px 0 64px; }
    .lp-value { grid-template-columns: 1fr; }
    .lp-steps { grid-template-columns: 1fr; }
    .lp-step:not(:last-child)::after { display: none; }
    .lp-bento { grid-template-columns: 1fr; }
    .lp-tile, .lp-tile--wide, .lp-tile--hero { grid-column: span 1; }
    .lp-prods, .lp-roadmap, .lp-valuestrip { grid-template-columns: 1fr; }
    .lp-pricing { grid-template-columns: minmax(0, 1fr); }
    .lp-valuestrip > div { border-left: none; border-top: 1px solid var(--border); padding: 12px 0 0; }
    .lp-valuestrip > div:first-child { border-top: none; padding-top: 0; }
    .lp-footer__grid { grid-template-columns: 1fr 1fr; }
    .lp-footer__brand { grid-column: 1 / -1; }
    .lp-footer__legal { flex-direction: column; gap: 10px; }
    .lp-hero__visual { max-width: 100%; }
    .lp-emailform { flex-direction: column; }
    .lp-plan--featured { transform: none; }
    .lp-section__head { margin-bottom: 36px; }
}

@media (max-width: 420px) {
    .lp-wrap { padding: 0 16px; }
    .lp-footer__grid { grid-template-columns: 1fr; }
    .lp-nav__inner { gap: 12px; }
    .lp-hero h1 { font-size: clamp(28px, 8.5vw, 40px); }
    .lp-h2 { font-size: clamp(22px, 6.5vw, 30px); }
    .lp-btn--lg { padding: 13px 20px; font-size: 14px; }
    .lp-hero__ctas .lp-btn { flex: 1 1 100%; }
}

/* ---------- About teaser (hero micro-link) ---------- */
.lp-hero__story { display: inline-flex; gap: 8px; flex-wrap: wrap; margin-top: 18px; font-size: 13.5px; color: var(--text-muted); }
.lp-hero__story span { color: var(--accent); font-weight: 700; transition: transform 0.2s var(--ease); display: inline-block; }
.lp-hero__story:hover span { transform: translateX(3px); }

/* inline links inside FAQ answers and the footer blurb */
.lp-faq__a a { color: var(--accent); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.lp-footer__brand p a { text-decoration: underline; text-underline-offset: 3px; color: rgba(255,255,255,0.85); }
.lp-footer__brand p a:hover { color: #fff; }


/* ---------- 7-day free trial: top strip, hero reassurance, closing note ---------- */
.lp-trialbar {
    display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 4px 14px;
    padding: 9px 16px; font-size: 13.5px; line-height: 1.35; text-align: center;
    color: var(--text); background: linear-gradient(90deg, var(--accent-soft), var(--surface-raised) 50%, var(--accent-soft));
    border-bottom: 1px solid var(--accent-border);
}
.lp-trialbar b { font-weight: 800; }
.lp-trialbar__go { font-weight: 800; color: var(--accent); white-space: nowrap; }
.lp-trialbar__go i { display: inline-block; font-style: normal; transition: transform 0.2s var(--ease); }
.lp-trialbar:hover .lp-trialbar__go i { transform: translateX(3px); }
@media (max-width: 520px) { .lp-trialbar { font-size: 12.5px; padding: 8px 12px; } .lp-trialbar__gift { display: none; } }

.lp-hero__trial { list-style: none; margin: -6px 0 20px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 20px; }
.lp-hero__trial li { display: inline-flex; align-items: center; gap: 7px; font-size: 14px; font-weight: 700; color: var(--text); }
.lp-hero__trial svg { width: 18px; height: 18px; padding: 3px; border-radius: 50%; background: var(--success-soft); color: var(--success); flex: none; }
.lp-final__note { margin: 14px 0 0; font-size: 13.5px; font-weight: 600; opacity: .85; text-align: center; }

/* the longer "Start free trial" nav button must not squeeze the links onto two lines */
.lp-nav__links a { white-space: nowrap; }
@media (min-width: 1081px) and (max-width: 1240px) {
    .lp-nav__links a { padding: 8px 7px; font-size: 13.5px; }
    .lp-nav__cta { gap: 8px; }
    .lp-nav__cta .lp-btn { padding-left: 14px; padding-right: 14px; }
}

/* keep the three plans side by side on laptops/small desktops; only stack when they would get cramped */
@media (min-width: 960px) and (max-width: 1120px) {
    .lp-pricing { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
    .lp-pricing .lp-plan { padding: 22px; }
}
