/* ══════════════════════════════════════════════════════════════════════════
   Public landing page.

   Reuses the palette tokens from theme.css so the marketing page and the
   application look like one product — a prospect who signs up should not feel
   they have landed somewhere else. Everything here is prefixed `lp-` so it can
   never collide with the Bootstrap-based application styles.
   ══════════════════════════════════════════════════════════════════════════ */

body.landing {
    margin: 0;
    background: var(--c-surface);
    color: var(--c-text);
    font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
    font-size: 1.0625rem;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    -webkit-text-size-adjust: 100%;   /* Android Chrome otherwise inflates text on some pages */
    text-size-adjust: 100%;
    overflow-x: clip;                 /* a stray wide element must never make the page pan sideways */
}

.lp-container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 24px;          /* the 16px+ gutter phones need */
}

/* ── Typography ─────────────────────────────────────────────────────────── */
.lp-eyebrow {
    font-size: .8125rem;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--c-gold-deep);
    font-weight: 600;
    margin: 0 0 12px;
}
.lp-eyebrow--light { color: var(--c-gold); }

.lp-h2 {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: clamp(1.9rem, 4vw, 2.75rem);
    line-height: 1.15;
    font-weight: 600;
    color: var(--c-graphite);
    margin: 0 0 20px;
    letter-spacing: -.01em;
}
.lp-h2--light { color: #fff; }

.lp-h3 {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--c-graphite);
    margin: 0 0 12px;
}

.lp-body { margin: 0 0 16px; color: var(--c-text-muted); }
.lp-body--wide { max-width: 68ch; }
.lp-body--light { color: rgba(255, 255, 255, .78); }
.lp-note { font-size: .9375rem; }
.lp-accent { color: var(--c-gold-deep); }

/* ── Buttons ────────────────────────────────────────────────────────────── */
.lp-btn {
    display: inline-block;
    padding: 11px 22px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: .9375rem;
    text-decoration: none;
    border: 1px solid transparent;
    cursor: pointer;
    transition: background .15s ease, border-color .15s ease, color .15s ease;
}
.lp-btn--gold {
    background: var(--c-gold);
    color: var(--c-graphite);       /* graphite on gold: 8.2:1 */
    border-color: var(--c-gold);
}
.lp-btn--gold:hover { background: var(--c-gold-dark); color: #fff; border-color: var(--c-gold-dark); }
.lp-btn--ghost {
    background: transparent;
    color: var(--c-graphite);
    border-color: var(--c-hairline);
}
.lp-btn--ghost:hover { border-color: var(--c-graphite); }
.lp-btn--lg { padding: 14px 28px; font-size: 1rem; }
.lp-btn--block { display: block; width: 100%; text-align: center; }

/* ── Nav ────────────────────────────────────────────────────────────────── */
.lp-nav {
    background: var(--c-graphite);
    position: sticky; top: 0; z-index: 40;
}
.lp-nav__inner {
    display: flex; align-items: center; justify-content: space-between;
    min-height: 68px; gap: 24px;
}
.lp-nav__brand {
    color: #fff; text-decoration: none; font-weight: 600;
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.375rem; display: flex; align-items: center; gap: 12px;
}
.lp-nav__rule { width: 28px; height: 2px; background: var(--c-gold); display: inline-block; }
.lp-nav__links { display: flex; align-items: center; gap: 22px; }
.lp-nav__brand { min-width: 0; }
.lp-nav__links { flex-shrink: 0; }
.lp-nav__links a { color: rgba(255,255,255,.82); text-decoration: none; font-size: .9375rem; }
.lp-nav__links a:hover { color: #fff; }
.lp-nav__links .lp-btn--ghost { color: #fff; border-color: rgba(255,255,255,.28); }
.lp-nav__links .lp-btn--ghost:hover { border-color: #fff; }
.lp-nav__short { display: none; }

/* ── Hero ───────────────────────────────────────────────────────────────── */
.lp-hero {
    background:
        radial-gradient(1200px 400px at 50% -160px, rgba(198,167,94,.16), transparent 70%),
        var(--c-surface);
    padding: 88px 0 72px;
    border-bottom: 1px solid var(--c-hairline);
}
.lp-hero__inner { text-align: center; }
.lp-hero__title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: clamp(2.25rem, 5.5vw, 3.75rem);
    line-height: 1.1;
    font-weight: 600;
    color: var(--c-graphite);
    margin: 0 0 22px;
    letter-spacing: -.015em;
}
.lp-hero__lead {
    font-size: 1.1875rem; color: var(--c-text-muted);
    max-width: 62ch; margin: 0 auto 32px;
}
.lp-hero__lead strong { color: var(--c-text); font-weight: 600; }
.lp-hero__actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.lp-hero__meta { margin: 20px 0 0; font-size: .875rem; color: var(--c-text-muted); }

/* ── Stat strip ─────────────────────────────────────────────────────────── */
.lp-strip { background: var(--c-card); border-bottom: 1px solid var(--c-hairline); }
.lp-strip__inner {
    display: grid; grid-template-columns: repeat(4, 1fr);
    gap: 24px; padding: 34px 24px; text-align: center;
}
.lp-stat__num {
    display: block;
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 2.25rem; font-weight: 600; color: var(--c-gold-deep); line-height: 1.1;
}
.lp-stat__label { display: block; font-size: .875rem; color: var(--c-text-muted); margin-top: 6px; }

/* ── Sections ───────────────────────────────────────────────────────────── */
.lp-section { padding: 76px 0; }
.lp-section--tint { background: var(--c-card); border-top: 1px solid var(--c-hairline); border-bottom: 1px solid var(--c-hairline); }
.lp-section--dark { background: var(--c-graphite); }

.lp-two-col { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: start; }

.lp-checklist { list-style: none; padding: 0; margin: 0; }
.lp-checklist li {
    position: relative; padding: 10px 0 10px 30px;
    border-bottom: 1px solid var(--c-hairline); color: var(--c-text);
}
.lp-checklist li:last-child { border-bottom: 0; }
.lp-checklist li::before {
    content: ''; position: absolute; left: 4px; top: 19px;
    width: 8px; height: 8px; border-radius: 50%; background: var(--c-gold);
}
.lp-checklist--light li { color: rgba(255,255,255,.86); border-color: rgba(255,255,255,.12); }

/* ── Cards ──────────────────────────────────────────────────────────────── */
.lp-cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin-top: 36px; }
.lp-cards--3 { grid-template-columns: repeat(3, 1fr); }
.lp-card {
    background: var(--c-surface);
    border: 1px solid var(--c-hairline);
    border-radius: var(--radius);
    padding: 26px;
}
.lp-section--tint .lp-card { background: var(--c-surface); }
.lp-card h3 {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.3125rem; font-weight: 600; color: var(--c-graphite); margin: 0 0 10px;
}
.lp-card p { margin: 0; color: var(--c-text-muted); font-size: .9375rem; }

/* ── Callout: the honesty pitch ─────────────────────────────────────────── */
.lp-callout {
    background: var(--c-gold-tint);
    border: 1px solid #E3D6B4;
    border-left: 4px solid var(--c-gold);
    border-radius: var(--radius);
    padding: 30px 32px;
    margin: 36px 0 48px;
}
.lp-callout__title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.5rem; font-weight: 600; color: var(--c-graphite); margin: 0 0 14px;
}
.lp-callout p { color: #4A4636; margin: 0 0 14px; }
.lp-callout__quote {
    font-style: italic; color: var(--c-graphite);
    border-left: 2px solid var(--c-gold-dark);
    padding-left: 18px; margin: 18px 0 8px !important;
}
.lp-callout__note { font-size: .8125rem; color: #6F6852; margin: 0 !important; }

/* ── Feature grid ───────────────────────────────────────────────────────── */
.lp-features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px 28px; }
.lp-feature h3 {
    font-size: 1.0625rem; font-weight: 600; color: var(--c-graphite);
    margin: 0 0 8px; padding-top: 14px; border-top: 2px solid var(--c-gold);
    display: inline-block;
}
.lp-feature p { margin: 0; color: var(--c-text-muted); font-size: .9375rem; }

/* ── Demo form ──────────────────────────────────────────────────────────── */
.lp-demo__form { scroll-margin-top: 84px; }   /* clear of the sticky 68px nav */
.lp-demo { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.lp-demo__form {
    background: var(--c-surface);
    border: 1px solid var(--c-hairline);
    border-radius: var(--radius);
    padding: 30px;
    box-shadow: var(--shadow);
}
.lp-field { margin-bottom: 16px; }
.lp-field label {
    display: block; font-size: .875rem; font-weight: 600;
    color: var(--c-text); margin-bottom: 6px;
}
.lp-req { color: var(--c-brick); margin-left: 3px; }
.lp-field input,
.lp-field textarea {
    width: 100%; padding: 11px 13px;
    border: 1px solid var(--c-hairline); border-radius: var(--radius-sm);
    background: #fff; color: var(--c-text); font: inherit; font-size: .9375rem;
    box-sizing: border-box;
}
.lp-field input:focus,
.lp-field textarea:focus {
    outline: none; border-color: var(--c-gold);
    box-shadow: 0 0 0 3px rgba(198,167,94,.22);
}
.lp-field__error { color: var(--c-brick); font-size: .8125rem; margin: 6px 0 0; }
.lp-form__note { font-size: .8125rem; color: var(--c-text-muted); margin: 14px 0 0; text-align: center; }

/* The honeypot. Off-screen rather than display:none — some bots skip hidden
   fields, fewer skip ones that are merely positioned away. */
.demo-hp {
    position: absolute !important;
    left: -9999px !important;
    width: 1px; height: 1px; opacity: 0;
}

/* ── Alerts ─────────────────────────────────────────────────────────────── */
.lp-alert { padding: 14px 16px; border-radius: var(--radius-sm); margin-bottom: 18px; font-size: .9375rem; }
.lp-alert--warn  { background: var(--c-gold-tint); border: 1px solid #E3D6B4; color: #4A4636; }
.lp-alert--ok    { background: #EAF2EA; border: 1px solid #C9DDC9; color: #2F4A2F; }
.lp-alert--error { background: var(--c-brick-tint); border: 1px solid #E5C9C9; color: var(--c-brick); }

/* ── Credentials page ───────────────────────────────────────────────────── */
.lp-creds-wrap { background: var(--c-surface); min-height: 70vh; }
.lp-creds { max-width: 760px; }
.lp-creds__warning { margin: 22px 0 26px; }
.lp-creds__box {
    background: var(--c-graphite); border-radius: var(--radius);
    padding: 22px 26px; margin-bottom: 22px;
}
.lp-creds__row { display: flex; align-items: center; gap: 16px; padding: 12px 0; flex-wrap: wrap; }
.lp-creds__row + .lp-creds__row { border-top: 1px solid rgba(255,255,255,.12); }
.lp-creds__label { color: rgba(255,255,255,.62); font-size: .8125rem; min-width: 110px; text-transform: uppercase; letter-spacing: .08em; }
.lp-creds__value {
    color: var(--c-gold); font-family: ui-monospace, 'SF Mono', Menlo, monospace;
    font-size: 1.125rem; letter-spacing: .02em; flex: 1; word-break: break-all;
}
.lp-copy {
    background: transparent; border: 1px solid rgba(255,255,255,.3);
    color: #fff; border-radius: var(--radius-sm); padding: 6px 14px;
    font-size: .8125rem; cursor: pointer;
}
.lp-copy:hover { border-color: var(--c-gold); color: var(--c-gold); }
.lp-copy.is-done { border-color: var(--c-sage); color: #A8D6B4; }
.lp-creds__next { margin-top: 48px; padding-top: 34px; border-top: 1px solid var(--c-hairline); }
.lp-steps { padding-left: 20px; margin: 0; }
.lp-steps li { margin-bottom: 14px; color: var(--c-text-muted); }
.lp-steps strong { color: var(--c-text); }

/* ── Footer ─────────────────────────────────────────────────────────────── */
.lp-footer { background: var(--c-graphite-deep); color: rgba(255,255,255,.62); padding: 40px 0; }
.lp-footer__inner { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.lp-footer__brand { font-family: 'Playfair Display', Georgia, serif; font-size: 1.25rem; color: #fff; }
.lp-footer__note { margin: 6px 0 0; font-size: .875rem; }
.lp-footer__links { display: flex; gap: 8px 22px; align-items: center; flex-wrap: wrap; }
.lp-footer__links a { white-space: nowrap; color: rgba(255,255,255,.72); text-decoration: none; font-size: .9375rem; }
.lp-footer__links a:hover { color: var(--c-gold); }

/* ── Narrow screens ─────────────────────────────────────────────────────── */
@media (max-width: 900px) {
    .lp-two-col,
    .lp-demo        { grid-template-columns: 1fr; gap: 32px; }
    .lp-cards,
    .lp-cards--3,
    .lp-features    { grid-template-columns: 1fr; }
    .lp-strip__inner { grid-template-columns: repeat(2, 1fr); gap: 20px; }
    .lp-nav__links a:not(.lp-btn) { display: none; }   /* keep the two CTAs, drop the anchors */
    .lp-section     { padding: 56px 0; }
    .lp-hero        { padding: 60px 0 52px; }
}

@media (max-width: 640px) {
    /* Both actions stay: a returning user on a phone must find the login
       without scrolling to the footer. The full labels need ~560px next to the
       brand, more than any phone has (a large iPhone is 430px, where they ran
       over the brand), so phones get the short ones. The login drops its border
       to a plain text link so the demo button keeps its weight, and the brand
       truncates rather than slide under the actions. */
    .lp-nav__brand { font-size: 1.125rem; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .lp-nav__inner { gap: 12px; }
    .lp-nav__links { gap: 12px; }
    .lp-nav__links .lp-btn { padding: 9px 16px; font-size: .875rem; white-space: nowrap; }
    .lp-nav__links .lp-btn--ghost { border-color: transparent; padding-left: 4px; padding-right: 4px; }
    .lp-nav__long  { display: none; }
    .lp-nav__short { display: inline; }
}

/* A 360px phone has 324px after the gutters: the brand gives more ground (its
   gold rule is decoration) so neither action is pushed off the edge. */
@media (max-width: 420px) {
    .lp-nav__rule { display: none; }
    .lp-nav__brand { font-size: 1.0625rem; }
    .lp-nav__links .lp-btn { padding: 9px 12px; font-size: .8125rem; }
    .lp-nav__links { gap: 8px; }
}

@media (max-width: 520px) {
    .lp-strip__inner { grid-template-columns: 1fr; }
    .lp-hero__actions .lp-btn { width: 100%; }
    /* Label on its own line; the value gets the row's full width instead of the
       sliver left beside the label, where an identifier broke every three letters. */
    .lp-creds__label { min-width: auto; flex: 0 0 100%; }
    .lp-creds__row { gap: 6px 10px; }
    .lp-creds__value { min-width: 0; overflow-wrap: anywhere; word-break: normal; }
    .lp-container { padding: 0 18px; }
}

/* Respect a reduced-motion preference: nothing here animates meaningfully, but
   the button transitions are still motion. */
@media (prefers-reduced-motion: reduce) {
    .lp-btn, .lp-copy { transition: none; }
}
