/* =========================================================================
   VMS landing page (landing.php). Loaded after style.css, whose tokens,
   buttons, fields and app components it reuses — the hero's dashboard crop
   is drawn with the app's own .kpi / .meter / .class-card / .tt-now.

   design.md rules hold here too: one accent, tone steps instead of lines,
   flat, sentence case, nothing under 13px.
   ========================================================================= */

.lp { background: var(--canvas); }

.lp-wrap {
    width: 100%;
    max-width: 1200px;
    margin-inline: auto;
    padding-inline: 16px;
}
@media (min-width: 640px) { .lp-wrap { padding-inline: 24px; } }
@media (min-width: 1024px) { .lp-wrap { padding-inline: 32px; } }

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

/* ---------------- header ---------------- */

.lp-bar {
    position: sticky;
    top: 0;
    z-index: 40;
    background: var(--canvas);
    transition: box-shadow .2s;
}
.lp-bar[data-scrolled] { box-shadow: var(--shadow-bar); } /* taste-skill-ignore: sticky bar, only once scrolled */
.lp-bar-in { display: flex; align-items: center; gap: 24px; height: 64px; }
.lp-brand { display: block; flex: none; border-radius: var(--radius); }
.lp-logo { width: 200px; }
.lp-nav { display: none; gap: 4px; margin-left: auto; }
.lp-nav a {
    padding: 8px 12px;
    border-radius: var(--radius);
    color: var(--text-2);
    font-size: 15px;
    font-weight: 500;
    text-decoration: none;
    transition: background-color .2s, color .2s;
}
.lp-nav a:hover { background: var(--tint-soft); color: var(--text); }
.lp-nav a[aria-current="page"], .lp-subnav a[aria-current="page"] { color: var(--brand-ink); font-weight: 600; }

/* The calculators, in a scrollable row under the bar on narrow screens. */
.lp-subnav { background: var(--canvas); }
.lp-subnav-in { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 10px; scrollbar-width: none; }
.lp-subnav-in::-webkit-scrollbar { display: none; }
.lp-subnav a {
    flex: none;
    padding: 6px 12px;
    border-radius: 999px;
    background: var(--surface);
    color: var(--text-2);
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
}
@media (min-width: 1100px) { .lp-subnav { display: none; } }
.lp-bar-actions { display: flex; align-items: center; gap: 6px; margin-left: auto; }
@media (min-width: 1100px) {
    .lp-nav { display: flex; }
    .lp-bar-actions { margin-left: 8px; }
}
@media (max-width: 380px) { .lp-logo { width: 168px; } }

/* ---------------- type ---------------- */

.lp-h1 { margin: 0; font-weight: 800; }
.lp-line { display: block; overflow: hidden; padding-bottom: .06em; }
.lp-line > span { display: block; animation: lineUp .9s var(--ease-out) both; }
.lp-line + .lp-line > span { animation-delay: .11s; }
.lp-kicker {
    font-size: clamp(20px, 2.2vw, 28px);
    font-weight: 700;
    letter-spacing: -.02em;
    color: var(--brand-ink);
}
.lp-h1 .lp-line + .lp-line {
    /* Two lines at every width: "Your UMS record," then "in any browser". */
    font-size: clamp(34px, 4.4vw + 8px, 64px);
    letter-spacing: -.04em;
    line-height: 1;
}
.lp-h2 {
    margin: 0;
    font-size: clamp(30px, 3.4vw, 44px);
    font-weight: 800;
    letter-spacing: -.035em;
    line-height: 1.05;
}
.lp-lead {
    margin-top: 24px;
    max-width: 46ch;
    font-size: clamp(18px, 1.6vw, 21px);
    line-height: 1.5;
    color: var(--text-2);
}
.lp-body { margin-top: 14px; max-width: 52ch; font-size: 17px; line-height: 1.6; color: var(--text-2); }
.lp-measure { max-width: 60ch; }
.lp-small { margin-top: 18px; font-size: 14px; color: var(--text-3); }
.lp-link {
    font-weight: 600;
    color: var(--text);
    text-decoration: underline;
    text-decoration-color: var(--brand);
    text-decoration-thickness: 2px;
    text-underline-offset: 6px;
    transition: color .2s;
}
.lp-link:hover { color: var(--brand-ink); }


/* ---------------- hero ---------------- */

.lp-hero {
    display: grid;
    gap: 48px;
    padding-top: 40px;
    padding-bottom: 96px;
}
.lp-hero-text > :not(h1) { animation: rise .7s var(--ease-out) .4s both; }
.lp-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; margin-top: 32px; }

@media (min-width: 1024px) {
    .lp-hero {
        grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
        align-items: center;
        gap: 56px;
        padding-top: 56px;
        min-height: calc(100vh - 64px);
        min-height: calc(100dvh - 64px);
        max-height: 900px;
    }
}

/* The dashboard crop. The app's own components on the sidebar's tone, so it
   reads as a piece of the product rather than an illustration of one. */
.lp-shot { margin: 0; animation: rise .8s var(--ease-out) .25s both; }
.lp-shot-frame {
    display: grid;
    gap: 8px;
    padding: 20px;
    border-radius: 8px;
    background: var(--surface-2);
}
:root[data-theme="dark"] .lp-shot-frame { background: #141414; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .lp-shot-frame { background: #141414; } }
.lp-shot-head { display: flex; flex-direction: column; padding: 4px 4px 10px; }
.lp-shot-kicker { font-size: 15px; font-weight: 700; color: var(--brand-ink); }
.lp-shot-name { font-size: 28px; font-weight: 800; letter-spacing: -.035em; line-height: 1.1; }
.lp-shot .tt-now { margin: 0; }
.lp-shot-figs { display: grid; grid-template-columns: 1.4fr 1fr; gap: 8px; }
.lp-shot .meter { margin-top: 8px; }
.lp-shot-classes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.lp-shot .class-card { width: auto; padding: 14px; }
.lp-shot .class-time { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.lp-caption { margin-top: 12px; font-size: 14px; color: var(--text-3); }

@media (max-width: 520px) {
    .lp-shot-frame { padding: 14px; }
    .lp-shot-classes { grid-template-columns: 1fr 1fr; }
    .lp-shot-classes .class-card:last-child { display: none; }
}

/* ---------------- calculator band ---------------- */

.lp-band { background: var(--surface-2); padding-block: 96px; }
:root[data-theme="dark"] .lp-band { background: #111; }
.lp-calc { display: grid; gap: 40px; align-items: center; }
.lp-calc-box {
    display: grid;
    gap: 20px;
    padding: 24px;
    border-radius: 8px;
    background: var(--surface);
}
.lp-calc-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.lp-calc-fields .field { margin: 0; }
.lp-calc-fields input[type="text"] { background: var(--field-in); font-size: 20px; font-weight: 600; font-variant-numeric: tabular-nums; }
.lp-calc-out { padding: 20px; border-radius: var(--radius); background: var(--tint); transition: background-color .3s; }
.lp-calc-out.is-under { background: var(--risk-bg); }
.lp-calc-out.is-empty { background: var(--surface-2); }
.lp-calc-pct {
    font-size: clamp(48px, 6vw, 72px);
    font-weight: 800;
    letter-spacing: -.045em;
    line-height: 1;
    font-variant-numeric: tabular-nums;
}
.lp-calc-pct .unit { font-size: .4em; font-weight: 600; letter-spacing: 0; color: var(--text-3); margin-left: 2px; }
.lp-calc-out.is-under .lp-calc-pct { color: var(--risk); }
.lp-calc-say { margin-top: 10px; font-size: 17px; font-weight: 500; line-height: 1.45; }

@media (min-width: 900px) {
    .lp-calc { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; }
    .lp-calc-box { padding: 32px; }
}

/* ---------------- sections ---------------- */

.lp-section { padding-top: 128px; }

.lp-split { display: grid; gap: 32px; }
@media (min-width: 1024px) {
    .lp-split { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 64px; align-items: start; }
    .lp-split-head { position: sticky; top: 96px; }
}

/* Planner tools: two tiles side by side from 900px, each with what the tool
   does and a crop of it built from the app's own components. */
.lp-tools { display: grid; gap: 8px; margin-top: 40px; }
.lp-tool {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 28px 24px;
    border-radius: var(--radius);
    background: var(--surface);
}
.lp-tool:nth-child(2) { background: var(--surface-2); }
:root[data-theme="dark"] .lp-tool:nth-child(2) { background: #111; }
.lp-h3 { font-size: 24px; font-weight: 800; letter-spacing: -.03em; line-height: 1.15; }
.lp-ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.lp-ticks li {
    position: relative;
    padding-left: 22px;
    font-size: 16px;
    line-height: 1.5;
    color: var(--text-2);
}
.lp-ticks li::before {
    content: '';
    position: absolute;
    left: 2px;
    top: .55em;
    width: 8px;
    height: 8px;
    border-radius: 2px;
    background: var(--brand);
    transform: rotate(45deg);
}
.lp-tools-note { margin-top: 16px; }

.lp-mini { margin: auto 0 0; padding-top: 10px; }
.lp-mini-frame {
    display: grid;
    gap: 10px;
    padding: 20px;
    border-radius: 8px;
    background: var(--canvas);
}
.lp-mini .figure-hero .big { font-size: 56px; }
.lp-mini .pl-line { margin-top: 0; font-size: 15px; }
.lp-mini .pl-facts { margin-top: 2px; }
.lp-mini-status { display: grid; gap: 6px; padding-top: 10px; border-top: 2px solid var(--surface-2); }
.lp-mini-status p { font-size: 14px; font-weight: 600; }
.lp-mini-kpis { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.lp-mini-kpis .kpi { background: var(--surface); }
.lp-mini-course {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 16px;
    border-radius: var(--radius);
    background: var(--surface);
}
.lp-mini-name { font-size: 16px; font-weight: 700; letter-spacing: -.02em; line-height: 1.3; margin-top: 2px; }
.lp-mini-need { font-size: 13px; color: var(--text-3); margin-top: 6px; }
.lp-mini-grade { display: flex; flex-direction: column; align-items: flex-end; flex: none; }
.lp-mini-est { font-size: 11px; font-weight: 600; color: var(--text-3); text-transform: uppercase; letter-spacing: .04em; }
.lp-mini-letter { font-size: 32px; font-weight: 700; line-height: 1.1; color: var(--safe); }
.lp-mini-total { font-size: 13px; color: var(--text-3); font-variant-numeric: tabular-nums; }
@media (min-width: 900px) {
    .lp-tools { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .lp-tool { padding: 32px; }
}

/* Feature rows: name left, sentence right, alternating tone. */
.lp-rows { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.lp-rows li {
    display: grid;
    gap: 4px 24px;
    padding: 18px 20px;
    border-radius: var(--radius);
    background: var(--surface);
    font-size: 17px;
    line-height: 1.5;
}
.lp-rows li:nth-child(even) { background: var(--surface-2); }
:root[data-theme="dark"] .lp-rows li:nth-child(even) { background: #111; }
.lp-rows strong { font-weight: 700; }
.lp-rows span { color: var(--text-2); }
@media (min-width: 640px) {
    .lp-rows li { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: baseline; }
}

/* Password: three steps in order, on tone tiles. */
.lp-steps {
    list-style: none;
    margin: 40px 0 0;
    padding: 0;
    display: grid;
    gap: 8px;
}
.lp-steps li {
    padding: 24px;
    border-radius: var(--radius);
    background: var(--surface);
}
.lp-steps li:nth-child(2) { background: var(--tint); }
.lp-steps h3 { font-size: 21px; font-weight: 700; letter-spacing: -.02em; }
.lp-steps p { margin-top: 8px; font-size: 16px; line-height: 1.55; color: var(--text-2); }
@media (min-width: 900px) {
    .lp-steps { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* FAQ as reading text: the question as a bold run-in. */
.lp-faq { margin-top: 32px; display: grid; gap: 24px 56px; }
.lp-faq p { font-size: 17px; line-height: 1.6; color: var(--text-2); max-width: 58ch; }
.lp-faq strong { color: var(--text); font-weight: 700; margin-right: .3em; }
@media (min-width: 900px) { .lp-faq { grid-template-columns: 1fr 1fr; } }

/* Closing band on the emphasis tint. */
.lp-close {
    display: grid;
    gap: 24px;
    align-items: center;
    margin: 128px 0 96px;
    padding: 40px 28px;
    border-radius: 8px;
    background: var(--tint);
}
.lp-close .btn:focus-visible { outline-offset: 3px; }
@media (min-width: 900px) {
    .lp-close { grid-template-columns: 1fr auto; padding: 56px; }
}

/* ---------------- footer ---------------- */

.lp-foot { background: var(--surface-2); overflow: hidden; padding-top: 56px; }
:root[data-theme="dark"] .lp-foot { background: #111; }
.lp-foot-cols { display: grid; gap: 32px; }
.lp-foot-h { font-size: 15px; font-weight: 700; letter-spacing: 0; }
.lp-foot ul { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 4px; }
.lp-foot a {
    display: inline-block;
    padding: 6px 0;
    color: var(--text-2);
    font-size: 15px;
    text-decoration: none;
    transition: color .2s;
}
.lp-foot a:hover { color: var(--brand-ink); }
.lp-foot-note { font-size: 14px; line-height: 1.55; color: var(--text-3); max-width: 46ch; }
@media (min-width: 900px) {
    .lp-foot-cols { grid-template-columns: 1fr 1fr 1fr 1.5fr; }
    .lp-foot-note { justify-self: end; }
}
/* The name set edge to edge, faint, cropped by the page's bottom edge. */
.lp-foot-name {
    margin: 40px 0 -.22em;
    padding-inline: 12px;
    font-size: 7.8vw;   /* measured: the name spans the width at ~7.9vw */
    font-weight: 800;
    letter-spacing: -.05em;
    line-height: 1;
    white-space: nowrap;
    color: var(--surface-3);
    user-select: none;
}
:root[data-theme="dark"] .lp-foot-name { color: #1f1f1f; }
@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) .lp-band,
    :root:not([data-theme="light"]) .lp-rows li:nth-child(even),
    :root:not([data-theme="light"]) .lp-foot { background: #111; }
    :root:not([data-theme="light"]) .lp-foot-name { color: #1f1f1f; }
}
/* Narrow tiles: let the example figure labels wrap rather than clip. */
.lp-mini-kpis .kpi-label { white-space: normal; overflow: visible; text-overflow: clip; }
