/* =============================================================================
   Public landing page — the marketing surface in front of /login.
   Structure follows the MedProcure suite house style (invoice.mdpr.in,
   healthymenus.com); the palette is HealthyAssets' own. Loaded AFTER app.css,
   so it consumes the same design tokens the app does — including the
   [data-mode="dark"] set — and a visitor's dark preference carries into the app.
   ============================================================================= */

:root {
    --lp-shell: min(72rem, 100% - 3rem);
    --lp-brand: 159 78% 36%;        /* Vital  #14A372 — actions, links, accents */
    --lp-brand-hover: 159 78% 29%;
    --lp-brand-fg: 0 0% 100%;       /* text on a Vital fill */
    --lp-ink: 167 66% 14%;          /* Evergreen #0C3A30 — headings */
    --lp-accent: 155 68% 63%;       /* Spring #5FE0AB — accents on evergreen */
    --lp-panel: 0 0% 100%;
    --lp-row: 152 46% 96%;          /* Mint wash — panel rows */
    --lp-deep: 167 66% 14%;         /* the dark panel: Evergreen */
    --lp-deep-line: 167 40% 22%;
    --lp-deep-rule: 167 45% 18%;
    --lp-deep-text: 150 22% 82%;
    --lp-deep-muted: 152 14% 66%;
    --lp-body: 165 12% 34%;
    --lp-faint: 165 10% 52%;
}

[data-mode="dark"] {
    --lp-brand: 159 68% 45%;
    --lp-brand-hover: 159 68% 54%;
    --lp-brand-fg: 165 45% 7%;
    --lp-ink: 150 14% 95%;
    --lp-accent: 155 68% 63%;
    --lp-panel: 166 28% 10%;
    --lp-row: 167 30% 8%;
    --lp-deep: 167 40% 13%;
    --lp-deep-line: 167 22% 20%;
    --lp-deep-rule: 167 24% 16%;
    --lp-deep-text: 150 14% 82%;
    --lp-deep-muted: 150 9% 62%;
    --lp-body: 150 10% 68%;
    --lp-faint: 150 8% 54%;
}

/* The landing page sets its own rhythm — app.css sizes for dense UI, not prose. */
body.lp-body {
    font-size: 16.5px;
    line-height: 1.65;
    color: hsl(var(--lp-body));
}

.lp-shell { width: var(--lp-shell); margin-inline: auto; }

.lp-eyebrow {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: hsl(var(--lp-brand));
    margin: 0;
}

/* ---------- masthead ---------- */

.lp-masthead { padding: 1.6rem 0 0; }
.lp-masthead-in {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}
.lp-lockup { display: block; height: 34px; width: auto; }
.lp-lockup--reverse { display: none; }
[data-mode="dark"] .lp-lockup--color { display: none; }
[data-mode="dark"] .lp-lockup--reverse { display: block; }

.lp-mast-links { display: flex; align-items: center; gap: 1.1rem; }

.lp-uplink {
    white-space: nowrap;
    font-size: 0.83rem;
    font-weight: 600;
    color: hsl(var(--lp-body));
    transition: color 0.2s;
}
.lp-uplink:hover { color: hsl(var(--lp-brand)); }

.lp-mode {
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 0.5rem;
    background: transparent;
    color: hsl(var(--lp-faint));
    cursor: pointer;
    transition: color 0.15s, background 0.15s;
}
.lp-mode:hover { color: hsl(var(--lp-ink)); background: hsl(var(--muted)); }
.lp-mode svg { width: 17px; height: 17px; }
.lp-mode__dark { display: none; }
[data-mode="dark"] .lp-mode__light { display: none; }
[data-mode="dark"] .lp-mode__dark { display: block; }

.lp-login {
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    background: hsl(var(--lp-brand));
    color: hsl(var(--lp-brand-fg));
    font-size: 0.85rem;
    font-weight: 600;
    border-radius: 0.5rem;
    padding: 0.5rem 1.05rem;
    box-shadow: 0 1px 2px hsl(167 25% 14% / 0.1);
    transition: background 0.15s;
}
.lp-login:hover { background: hsl(var(--lp-brand-hover)); }

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

.lp-hero { padding: 4.2rem 0 4.5rem; }

.lp-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    color: hsl(var(--lp-brand));
    background: hsl(var(--lp-brand) / 0.1);
    border-radius: 9999px;
    padding: 0.4rem 0.85rem;
    margin: 0 0 1.5rem;
}
.lp-tag::before {
    content: "";
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: hsl(var(--lp-brand));
}

.lp-h1 {
    font-size: clamp(2.3rem, 5.5vw, 3.6rem);
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: -0.025em;
    color: hsl(var(--lp-ink));
    margin: 0 0 1.3rem;
    max-width: 24ch;
}
.lp-h1 em { font-style: normal; color: hsl(var(--lp-brand)); }

.lp-lede {
    font-size: 1.1rem;
    line-height: 1.7;
    max-width: 58ch;
    margin: 0;
}

.lp-ctas {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem;
    margin-top: 2rem;
}

.lp-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    border-radius: 0.5rem;
    padding: 0.7rem 1.4rem;
    font-size: 0.92rem;
    font-weight: 600;
    transition: background 0.15s, color 0.15s, box-shadow 0.15s;
}
.lp-btn-primary {
    background: hsl(var(--lp-brand));
    color: hsl(var(--lp-brand-fg));
    box-shadow: 0 1px 2px hsl(167 25% 14% / 0.1);
}
.lp-btn-primary:hover { background: hsl(var(--lp-brand-hover)); }
.lp-btn-ghost {
    box-shadow: inset 0 0 0 1px hsl(var(--input));
    color: hsl(var(--lp-ink));
}
.lp-btn-ghost:hover { background: hsl(var(--lp-panel)); }

/* ---------- the rounds panel (illustration, deliberately not a screenshot) ---------- */

.lp-board { margin-top: 3.2rem; max-width: 46rem; }

.lp-panel {
    background: hsl(var(--lp-panel));
    border-radius: 1rem;
    padding: 0.75rem;
    box-shadow: inset 0 0 0 1px hsl(var(--card-border)), 0 1px 3px hsl(167 25% 14% / 0.06);
}
.lp-panel-top {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.5rem;
    padding: 0.4rem 0.5rem 0.75rem;
}
.lp-panel-top strong { font-size: 0.9rem; font-weight: 600; color: hsl(var(--lp-ink)); }
.lp-panel-top span {
    font-size: 0.66rem;
    font-weight: 600;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    color: hsl(var(--lp-faint));
}

.lp-rows { display: flex; flex-direction: column; gap: 0.375rem; }
.lp-row {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.62rem 0.75rem;
    border-radius: 0.6rem;
    background: hsl(var(--lp-row));
}
.lp-task {
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 0.88rem;
    color: hsl(var(--lp-ink));
}

/* Citation and status sit in fixed-width cells so they line up down the panel
   however long the task name is. */
.lp-cell { flex: 0 0 auto; display: flex; justify-content: flex-end; }
.lp-cell--cite { flex-basis: 4.75rem; }
.lp-cell--stat { flex-basis: 11rem; }

/* Citation tag — the axis the survey binder groups on. Outlined, not tinted:
   the three status colors below own the color axis in this panel. */
.lp-cite {
    padding: 0.15rem 0.55rem;
    border-radius: 9999px;
    white-space: nowrap;
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 0.7rem;
    font-weight: 600;
    box-shadow: inset 0 0 0 1px hsl(var(--border));
    color: hsl(var(--lp-faint));
}

/* Outcome chips — the app's own status colors: green signed off, amber
   deficiency raised, rose missed in the window. */
.lp-chip {
    padding: 0.15rem 0.6rem;
    border-radius: 9999px;
    white-space: nowrap;
    font-size: 0.7rem;
    font-weight: 600;
}
.lp-chip--done { background: hsl(var(--teal-50)); color: hsl(var(--teal-700)); }
.lp-chip--flag { background: hsl(var(--amber-50)); color: hsl(var(--amber-700)); }
.lp-chip--miss { background: hsl(var(--rose-50)); color: hsl(var(--rose-700)); }

.lp-caption {
    margin: 0.7rem 0.2rem 0;
    font-size: 0.78rem;
    color: hsl(var(--lp-faint));
}

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

.lp-section { padding: 4.2rem 0; }
.lp-hairline { border-top: 1px solid hsl(var(--card-border)); }
.lp-h2 {
    font-size: clamp(1.6rem, 3vw, 2.1rem);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.02em;
    color: hsl(var(--lp-ink));
    margin: 0.7rem 0 0.2rem;
}

.lp-cols {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.4rem;
    margin-top: 2.6rem;
}
.lp-rule {
    width: 34px;
    height: 3px;
    border-radius: 2px;
    background: var(--brand-gradient);
    margin-bottom: 1.05rem;
}
.lp-col h3 {
    font-size: 1rem;
    font-weight: 700;
    color: hsl(var(--lp-ink));
    margin: 0 0 0.5rem;
    letter-spacing: -0.01em;
}
.lp-col p { margin: 0; font-size: 0.93rem; line-height: 1.65; }

/* ---------- evergreen CTA panel ---------- */

.lp-talk {
    background: hsl(var(--lp-deep));
    color: hsl(var(--lp-deep-text));
    border-radius: 1.25rem;
    padding: 3rem;
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 3rem;
    align-items: start;
}
.lp-talk .lp-eyebrow { color: hsl(var(--lp-accent)); }
.lp-talk .lp-h2 { color: #fff; max-width: 22ch; }
.lp-talk-copy { max-width: 52ch; color: hsl(var(--lp-deep-muted)); font-size: 0.98rem; margin: 0.9rem 0 0; }
.lp-talk-ctas {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1.2rem;
    margin-top: 1.6rem;
}
.lp-btn-inverse { background: #fff; color: hsl(var(--lp-deep)); box-shadow: none; }
.lp-btn-inverse:hover { background: hsl(150 26% 90%); }
.lp-signin { font-size: 0.9rem; font-weight: 600; color: hsl(var(--lp-accent)); }
.lp-signin:hover { text-decoration: underline; }

.lp-who {
    border-left: 1px solid hsl(var(--lp-deep-line));
    padding-left: 1.6rem;
    margin-top: 0.4rem;
}
.lp-who p {
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: hsl(var(--lp-accent));
    margin: 0 0 0.9rem;
}
.lp-who ul { list-style: none; margin: 0; padding: 0; }
.lp-who li {
    padding: 0.6rem 0;
    border-bottom: 1px solid hsl(var(--lp-deep-rule));
    font-size: 0.92rem;
    color: hsl(var(--lp-deep-text));
}
.lp-who li:last-child { border-bottom: 0; }

/* ---------- suite cards ---------- */

.lp-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-top: 2.2rem;
}
.lp-card {
    display: block;
    background: hsl(var(--lp-panel));
    border-radius: 1rem;
    padding: 1.4rem 1.5rem;
    box-shadow: inset 0 0 0 1px hsl(var(--card-border)), 0 1px 3px hsl(167 25% 14% / 0.05);
    transition: box-shadow 0.2s, transform 0.2s;
}
.lp-card:hover {
    transform: translateY(-2px);
    box-shadow: inset 0 0 0 1px hsl(var(--lp-brand)), 0 12px 24px -18px hsl(167 40% 10% / 0.5);
}
.lp-card h3 {
    margin: 0 0 0.35rem;
    font-size: 1.02rem;
    font-weight: 700;
    color: hsl(var(--lp-ink));
    letter-spacing: -0.01em;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}
.lp-arw { color: hsl(var(--lp-brand)); transition: transform 0.2s; }
.lp-card:hover .lp-arw { transform: translate(3px, -3px); }
.lp-card p { margin: 0; font-size: 0.88rem; line-height: 1.6; color: hsl(var(--lp-faint)); }

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

.lp-foot { padding: 2rem 0 2.5rem; }
.lp-foot-in { text-align: center; font-size: 0.75rem; color: hsl(var(--lp-faint)); }
.lp-foot-links {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.25rem 0.9rem;
}
.lp-foot-links a { transition: color 0.15s; }
.lp-foot-links a:hover { color: hsl(var(--lp-brand)); text-decoration: underline; }
.lp-foot-in p { margin: 0.5rem 0 0; }

/* ---------- load motion ---------- */

.lp-rise {
    opacity: 0;
    transform: translateY(14px);
    animation: lp-rise 0.7s cubic-bezier(0.2, 0.7, 0.3, 1) forwards;
}
.lp-hero .lp-tag { animation-delay: 0.05s; }
.lp-hero .lp-h1 { animation-delay: 0.12s; }
.lp-hero .lp-lede { animation-delay: 0.2s; }
.lp-hero .lp-ctas { animation-delay: 0.28s; }
.lp-hero .lp-board { animation-delay: 0.36s; }
@keyframes lp-rise { to { opacity: 1; transform: none; } }

@media (max-width: 900px) {
    .lp-cols { grid-template-columns: 1fr; gap: 2rem; }
}
@media (max-width: 640px) {
    .lp-masthead { padding-top: 1.2rem; }
    .lp-mast-links { gap: 0.6rem; }
    .lp-uplink { font-size: 0.76rem; }
    .lp-lockup { height: 28px; }
    .lp-hero { padding: 3rem 0 3.5rem; }
    .lp-cards { grid-template-columns: 1fr; }
    .lp-talk { padding: 2.2rem 1.5rem; border-radius: 1rem; grid-template-columns: 1fr; gap: 2rem; }
    .lp-who { border-left: 0; border-top: 1px solid hsl(var(--lp-deep-line)); padding-left: 0; padding-top: 1.4rem; }
    /* Give the task name its own line rather than ellipsing it down to nothing
       to make room for the two chips. */
    .lp-row { flex-wrap: wrap; }
    .lp-task { flex-basis: 100%; }
    .lp-cell { flex-basis: auto; }
    .lp-cell--cite { order: 1; }
    .lp-cell--stat { order: 2; margin-left: auto; }
}

/* The masthead's logo and its three nowrap controls cannot both fit a narrow
   phone; unshrinkable, they widen the whole document and clip every section.
   Drop the controls onto their own row instead of losing any of them. */
@media (max-width: 540px) {
    .lp-masthead-in { flex-wrap: wrap; row-gap: 0.85rem; }
    .lp-mast-links { width: 100%; justify-content: space-between; }
}
@media (prefers-reduced-motion: reduce) {
    .lp-rise { opacity: 1; transform: none; animation: none; }
}
