/* Public landing page. Kept apart from site.css so the marketing page and the
   application's own screens cannot drift into each other. */

:root {
    --lp-brand: #20a461;
    --lp-brand-deep: #17804b;
    --lp-ink: #2a363f;
    --lp-muted: #727272;
    --lp-line: #e4e4e4;
    --lp-tint: #f3f3f3;
}

* { box-sizing: border-box; }

.lp {
    margin: 0;
    font-family: "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, sans-serif;
    color: var(--lp-ink);
    background: #fff;
    -webkit-font-smoothing: antialiased;
    line-height: 1.55;
}

.lp h1, .lp h2, .lp h3 { line-height: 1.2; letter-spacing: -0.02em; margin: 0; }
.lp p { margin: 0; }

/* ---------- nav ---------- */

.lp-nav {
    position: sticky;
    top: 0;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 14px 32px;
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--lp-line);
}

.lp-nav__brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    font-size: 1.02rem;
    color: var(--lp-ink);
    text-decoration: none;
}

/* The wordmark is 500x90; height-constrained so it scales on its own aspect. */
.lp-nav__logo {
    height: 34px;
    width: auto;
    display: block;
}

/* Names the product next to the company wordmark, without competing with it. */
.lp-nav__product {
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--lp-muted);
    padding-left: 12px;
    margin-left: 2px;
    border-left: 1px solid var(--lp-line);
}

.lp-foot__logo {
    height: 26px;
    width: auto;
    display: block;
    opacity: 0.75;
}

.lp-nav__links { display: flex; align-items: center; gap: 20px; font-size: 0.92rem; }
.lp-nav__links a { color: var(--lp-ink); text-decoration: none; font-weight: 600; }
.lp-nav__links a:hover { color: var(--lp-brand); }

/* ---------- buttons ---------- */

.lp-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 9px 18px;
    border-radius: 999px;
    font-weight: 700;
    font-size: 0.92rem;
    text-decoration: none;
    transition: filter 0.16s ease, background 0.16s ease;
}

.lp-btn--solid { background: var(--lp-brand); color: #fff !important; }
.lp-btn--solid:hover { filter: brightness(1.08); }

.lp-btn--ghost {
    background: #fff;
    color: var(--lp-ink) !important;
    border: 1px solid var(--lp-line);
}

.lp-btn--ghost:hover { border-color: var(--lp-brand); }
.lp-btn--lg { padding: 13px 26px; font-size: 1rem; }

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

.lp-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    align-items: center;
    gap: 56px;
    max-width: 1160px;
    margin: 0 auto;
    padding: 76px 32px 64px;
}

.lp-eyebrow {
    display: inline-block;
    margin-bottom: 14px;
    padding: 5px 12px;
    border-radius: 999px;
    background: color-mix(in srgb, var(--lp-brand) 10%, transparent);
    color: var(--lp-brand-deep);
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.lp-hero h1 { font-size: clamp(2.1rem, 4.4vw, 3.2rem); margin-bottom: 18px; }
.lp-lead { font-size: 1.06rem; color: var(--lp-muted); max-width: 33em; }

.lp-cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 20px; }

.lp-ticks { margin: 0; padding: 0; list-style: none; display: grid; gap: 7px; }

.lp-ticks li {
    position: relative;
    padding-left: 24px;
    color: var(--lp-muted);
    font-size: 0.9rem;
}

/* Drawn rather than an emoji, so it keeps the brand colour and never renders as a box. */
.lp-ticks li::before {
    content: "";
    position: absolute;
    left: 3px;
    top: 7px;
    width: 9px;
    height: 5px;
    border-left: 2px solid var(--lp-brand);
    border-bottom: 2px solid var(--lp-brand);
    transform: rotate(-45deg);
}

/* the live widget, framed */
.lp-hero__demo { display: grid; justify-items: center; gap: 12px; }

.lp-phone {
    width: 100%;
    max-width: 380px;
    height: 560px;
    padding: 10px;
    border-radius: 26px;
    background: #fff;
    border: 1px solid var(--lp-line);
    box-shadow: 0 28px 70px rgba(42, 54, 63, 0.16);
}

.lp-phone iframe { width: 100%; height: 100%; border: 0; border-radius: 18px; }
.lp-demo-note { font-size: 0.83rem; color: var(--lp-muted); }

/* ---------- stat strip ---------- */

.lp-strip {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
    max-width: 1160px;
    margin: 0 auto;
    padding: 26px 32px;
    border-top: 1px solid var(--lp-line);
    border-bottom: 1px solid var(--lp-line);
}

.lp-strip div { display: grid; gap: 2px; }
.lp-strip strong { font-size: 1.15rem; }
.lp-strip span { color: var(--lp-muted); font-size: 0.88rem; }

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

.lp-section { max-width: 1160px; margin: 0 auto; padding: 76px 32px; }
.lp-section h2 { font-size: clamp(1.6rem, 2.8vw, 2.2rem); }
.lp-section__lead { margin-top: 10px; color: var(--lp-muted); font-size: 1rem; }

.lp-section--tint {
    max-width: none;
    background: var(--lp-tint);
    border-top: 1px solid var(--lp-line);
    border-bottom: 1px solid var(--lp-line);
}

.lp-section--tint > * { max-width: 1160px; margin-left: auto; margin-right: auto; }

.lp-grid {
    margin-top: 36px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
    gap: 20px;
}

.lp-card {
    padding: 26px;
    border-radius: 16px;
    border: 1px solid var(--lp-line);
    background: #fff;
    transition: box-shadow 0.18s ease, transform 0.18s ease;
}

.lp-card:hover { box-shadow: 0 16px 40px rgba(42, 54, 63, 0.09); transform: translateY(-2px); }
.lp-card h3 { font-size: 1.05rem; margin-bottom: 9px; }
.lp-card p { color: var(--lp-muted); font-size: 0.93rem; }

/* ---------- steps ---------- */

.lp-steps {
    margin: 36px 0 0;
    padding: 0;
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
}

.lp-steps__n {
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    margin-bottom: 12px;
    border-radius: 50%;
    background: var(--lp-brand);
    color: #fff;
    font-weight: 800;
    font-size: 0.9rem;
}

.lp-steps h3 { font-size: 1.02rem; margin-bottom: 6px; }
.lp-steps p { color: var(--lp-muted); font-size: 0.92rem; }
.lp-steps code { background: #fff; padding: 1px 5px; border-radius: 5px; font-size: 0.86em; }

.lp-snippet {
    margin-top: 40px;
    padding: 20px 22px;
    border-radius: 14px;
    background: #2a363f;
    color: #dedede;
    display: grid;
    gap: 10px;
    /* A long snippet scrolls inside its own box rather than widening the page. */
    overflow-x: auto;
}

.lp-snippet__label { font-size: 0.76rem; text-transform: uppercase; letter-spacing: 0.08em; opacity: 0.65; }
.lp-snippet code { font-family: Consolas, "Courier New", monospace; font-size: 0.88rem; white-space: pre; }

/* ---------- closing ---------- */

.lp-final {
    text-align: center;
    display: grid;
    justify-items: center;
    gap: 14px;
    padding: 84px 32px;
}

.lp-final h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); }
.lp-final p { color: var(--lp-muted); }
.lp-final .lp-btn { margin-top: 10px; }

.lp-foot {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    max-width: 1160px;
    margin: 0 auto;
    padding: 24px 32px 40px;
    border-top: 1px solid var(--lp-line);
    color: var(--lp-muted);
    font-size: 0.85rem;
}

/* The demo drops below the copy before either becomes too cramped to read. */
@media (max-width: 940px) {
    .lp-hero { grid-template-columns: minmax(0, 1fr); gap: 40px; padding-top: 52px; }
    .lp-strip { grid-template-columns: minmax(0, 1fr); gap: 14px; }
    .lp-nav { padding: 12px 20px; }
    .lp-section, .lp-final, .lp-foot { padding-left: 20px; padding-right: 20px; }
}

@media (prefers-reduced-motion: reduce) {
    .lp-card { transition: none; }
    .lp-card:hover { transform: none; }
}

/* The company wordmark is 5.6:1, so at 34px tall it is 189px wide. On a narrow
   phone that plus the sign-in links overran the viewport by 108px, so the header
   scales the mark down and drops the product tag the hero states anyway. */
@media (max-width: 560px) {
    .lp-nav { padding: 12px 14px; gap: 10px; }
    .lp-nav__logo { height: 26px; }
    .lp-nav__product { display: none; }
    .lp-nav__links { gap: 12px; font-size: 0.86rem; }
    .lp-nav__links .lp-btn { padding: 8px 12px; }
    .lp-foot { padding-left: 16px; padding-right: 16px; }
}

@media (max-width: 380px) {
    .lp-nav__logo { height: 22px; }
    .lp-nav__links { gap: 9px; font-size: 0.82rem; }
}
