/* The one page with a marketing job.
 *
 * It sells a single idea — one agent, and every capability the company has
 * built sits behind it — so the page is built to look like the product rather
 * than like an advert for it. Same tokens, same hairlines, same type scale as
 * the chat; the hero's centrepiece is the composer itself.
 *
 * Two things here are not the chat's: the hero is a dark band over an animated
 * mesh gradient (static/Gradient.js, the engine the first landing page used),
 * and the nav rides on top of it rather than sticking. Everything below the
 * hero is the chat's own surface, which is why the sections read in tokens —
 * the page follows the theme into dark mode instead of pinning itself light.
 */

:root {
    /* The brandmark's green. It exists nowhere in the chat, which has no use
       for a hue, so it is declared here and lifted in dark mode to stay legible
       against a near-black ground. */
    --brand: #004838;

    /* The hero's ground, in both themes: the gradient is the same four colours
       whatever the page around it is doing. */
    --hero-ink: #0b0b0c;
    --hero-text: #ffffff;
}

@media (prefers-color-scheme: dark) {
    :root { --brand: #5fbfa4; }
}

.lp { display: flex; flex-direction: column; min-height: 100dvh; }
.lp-wrap { width: 100%; max-width: 1020px; margin: 0 auto; padding: 0 32px; }

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

/* Not sticky and not filled. It sits inside the hero's dark band, carried by
   the same scrim, and scrolls away with it — a white bar appearing on scroll
   put a hard edge across the one surface the page is trying to sell. */
.lp-nav { position: relative; z-index: 2; background: transparent; }
.lp-nav .lp-wrap { display: flex; align-items: center; gap: 20px; height: 60px; }

/* The hero's band has to run up behind the nav rather than start below it. The
   offset goes on <main>, a flex item of .lp, because a negative margin on the
   hero itself would be trapped inside <main>'s own formatting context. */
.lp main { margin-top: -60px; }

.lp-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-right: auto;
    font-size: 14px;
    font-weight: 500;
    color: var(--hero-text);
    text-decoration: none;
}

.lp-brand svg { width: 24px; height: 24px; display: block; }

.lp-nav-link {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.72);
    text-decoration: none;
    transition: color 0.12s var(--ease, ease);
}

.lp-nav-link:hover { color: var(--hero-text); }

/* The chat's .btn is a light control on a light page; over the gradient it has
   to invert, so the two the nav carries are restated rather than reused. */
.lp-nav .btn {
    height: 28px;
    padding: 0 10px;
    border-color: rgba(255, 255, 255, 0.45);
    border-radius: var(--radius-sm);
    background: none;
    color: var(--hero-text);
    font-size: 12px;
}

.lp-nav .btn:hover { background: rgba(255, 255, 255, 0.12); }

.lp-nav .btn.primary {
    padding: 0 12px;
    border-color: var(--hero-text);
    background: var(--hero-text);
    color: #18181b;
}

.lp-nav .btn.primary:hover { background: #ededf0; border-color: #ededf0; }

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

/* `isolation` keeps the negative z-index layers below — the canvas and the two
   overlays — from escaping into the rest of the page. The 156px of top padding
   is the nav's 60px plus the hero's own 96px.

   min-height holds the band to at least a full screen, so it reads as a slide
   rather than a banner above the fold; dvh rather than vh so a phone browser's
   collapsing address bar doesn't leave a sliver of the next section showing
   and then hide it again on scroll. Content can still push the band taller
   than that on a short viewport — min-height only sets a floor — and the flex
   centering keeps it looking composed either way rather than pinned to the
   top with a gap growing beneath it. */
.lp-hero {
    position: relative;
    isolation: isolate;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 100dvh;
    padding: 156px 0 88px;
    text-align: center;
    overflow: hidden;

    /* What shows when the canvas does not: no WebGL, or reduced motion, or the
       script blocked. Same four colours, standing still. */
    background: var(--hero-ink) linear-gradient(120deg, #f1000f 0%, #f15715 34%, #e9af43 64%, #5891c5 100%);
}

.lp-gradient {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: block;
    z-index: -2;

    /* Read by Gradient.js off the canvas's own computed style. Sampled from
       favicon.png, which is a still of this same gradient. */
    --gradient-color-1: #f1000f;
    --gradient-color-2: #f15715;
    --gradient-color-3: #e9af43;
    --gradient-color-4: #5891c5;
}

/* The scrim. Light enough that the colour still reads as colour — legibility
   is carried by the text shadows below, not by drowning the gradient. */
.lp-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(180deg,
        rgba(10, 10, 12, 0.34) 0%,
        rgba(10, 10, 12, 0.18) 40%,
        rgba(10, 10, 12, 0.40) 100%);
}

/* A blueprint grid over the gradient: a 24px fine rule with a 120px major one,
   both barely there, faded radially so it never reaches the edges. */
.lp-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px),
        linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    background-size: 120px 120px, 120px 120px, 24px 24px, 24px 24px;
    background-position: center top;
    mask-image: radial-gradient(130% 100% at 50% 40%, rgba(0, 0, 0, 1) 40%, rgba(0, 0, 0, 0.25) 100%);
    -webkit-mask-image: radial-gradient(130% 100% at 50% 40%, rgba(0, 0, 0, 1) 40%, rgba(0, 0, 0, 0.25) 100%);
}

/* Forced onto two lines with a <br> rather than left to a measure: the claim
   ("One agent.") and the payoff ("Countless capabilities.") get a line each
   instead of running together. Neither half is long enough to need a
   max-width of its own — the 956px content column holds each on a single
   line at any width this page supports. */
.lp-hero h1 {
    margin: 0 auto;
    font-size: clamp(34px, 5.4vw, 54px);
    font-weight: 600;
    letter-spacing: -0.035em;
    line-height: 1.1;
    text-wrap: pretty;
    color: var(--hero-text);
    text-shadow: 0 1px 2px rgba(10, 10, 12, 0.45), 0 8px 32px rgba(10, 10, 12, 0.35);
}

/* The one italic on the page: Inter's true italic, not a synthetic slant —
   the family query in index.jinja carries the 600-weight italic cut for it. */
.lp-hero h1 em { font-style: italic; }

/* 42ch, not the 56ch the sections use: it lands the break on the comma after
   "document" and keeps the lede to two lines under the headline. */
.lp-lede {
    margin: 22px auto 0;
    max-width: 42ch;
    font-size: 16px;
    line-height: 1.6;
    text-wrap: pretty;
    color: var(--hero-text);
    text-shadow: 0 1px 3px rgba(10, 10, 12, 0.55);
}

.lp-cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 28px; }
.lp-cta .btn { height: 38px; padding: 0 18px; font-size: 14px; }

.lp-hero .lp-cta .btn {
    border-color: rgba(255, 255, 255, 0.35);
    background: rgba(255, 255, 255, 0.08);
    color: var(--hero-text);
}

.lp-hero .lp-cta .btn:hover { background: rgba(255, 255, 255, 0.18); }

.lp-hero .lp-cta .btn.primary {
    border-color: var(--hero-text);
    background: var(--hero-text);
    color: #18181b;
}

.lp-hero .lp-cta .btn.primary:hover { background: #ededf0; border-color: #ededf0; }

.lp-fineprint {
    margin: 14px 0 0;
    font-size: 12px;
    color: var(--hero-text);
    text-shadow: 0 1px 3px rgba(10, 10, 12, 0.6);
}

/* ---------- the product still ---------- */

/* Not a screenshot and not an illustration: the same composer the chat ships,
   rendered from the same stylesheet, holding one request that needs a tool. It
   is the shortest honest way to say what the product is — and it is the one
   light surface in the band, which is what makes it read as the subject. */
.lp-still {
    max-width: 640px;
    margin: 56px auto 0;
    text-align: left;
}

.lp-composer {
    padding: 14px 12px 10px;
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-lg);
    background: var(--bg-raised);
    color: var(--text);
    box-shadow: var(--shadow);
}

.lp-composer-text { padding: 0 4px; font-size: 15px; line-height: 1.55; }
.lp-composer-actions { display: flex; align-items: center; gap: 8px; margin-top: 12px; }
.lp-composer-actions .icon { width: 16px; height: 16px; color: var(--text-faint); }
.lp-composer-actions .spacer { flex: 1; }

.lp-send {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--accent);
    color: var(--accent-text);
}

.lp-send .icon { width: 16px; height: 16px; color: inherit; }

.lp-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 26px;
    padding: 0 10px;
    border-radius: 999px;
    background: var(--bg-sunken);
    font-size: 12px;
    color: var(--text-muted);
}

.lp-chip .icon { width: 14px; height: 14px; }

/* The steps sit outside the composer, on the gradient, so they take the hero's
   ink rather than the chat's. */
.lp-steps { margin: 12px 6px 0; display: flex; flex-direction: column; gap: 8px; }

.lp-step {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12.5px;
    color: var(--hero-text);
    text-shadow: 0 1px 3px rgba(10, 10, 12, 0.6);
}

.lp-step .icon { width: 14px; height: 14px; flex: none; color: var(--hero-text); }

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

.lp-section { padding: 88px 0; border-top: 1px solid var(--border); }
.lp-section.sunken { background: var(--bg-subtle); }
.lp-section-head { max-width: 56ch; margin-bottom: 44px; }

.lp-section-head h2 {
    margin: 0;
    font-size: clamp(24px, 3vw, 30px);
    font-weight: 600;
    letter-spacing: -0.028em;
    line-height: 1.15;
}

.lp-section-head p { margin: 14px 0 0; font-size: 15px; line-height: 1.6; color: var(--text-muted); }

/* ---------- capability index ---------- */

/* An open grid, not a wall of cards. Twelve boxes would read as twelve
   products, which is the opposite of the claim the page is making; unboxed
   entries read as one list of things the same agent can do. */
.lp-caps {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 32px 40px;
}

.lp-cap-head { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.lp-cap-head .icon { width: 16px; height: 16px; flex: none; color: var(--text-faint); }

.lp-cap-head b {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.07em;
    color: var(--text);
}

.lp-cap p { margin: 0; font-size: 13px; line-height: 1.55; color: var(--text-muted); }

.lp-caps-foot {
    margin: 40px 0 0;
    padding-top: 24px;
    border-top: 1px solid var(--border);
    font-size: 13px;
    color: var(--text-faint);
}

/* ---------- how it works ---------- */

.lp-steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
}

.lp-howto {
    padding: 22px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--bg);
    box-shadow: var(--shadow-sm);
}

.lp-howto-n {
    width: 26px;
    height: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 14px;
    border-radius: 999px;
    background: var(--accent);
    color: var(--accent-text);
    font-size: 12px;
    font-weight: 600;
}

.lp-howto h3 { margin: 0 0 6px; font-size: 14px; font-weight: 600; }
.lp-howto p { margin: 0; font-size: 13px; line-height: 1.55; color: var(--text-muted); }

/* ---------- pricing ---------- */

/* The cards are the chat shell's own .plan-card, rendered from the same Plan
   rows the in-app plans page reads, so a price change lands on both at once.
   All this adds is the highlight on the middle tier. */
.lp-plan.featured {
    border-color: var(--accent);
    box-shadow: var(--shadow-lg);
}

/* The tag is taller than the plan name, so the row is held at the tag's height
   on every card — otherwise the highlighted one's price sits 4px below its
   neighbours' and the three stop lining up. */
.lp-plan-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    min-height: 20px;
}

.lp-note {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-top: 24px;
    padding: 14px 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--bg-subtle);
}

.lp-note .icon { width: 16px; height: 16px; flex: none; margin-top: 1px; color: var(--text-faint); }
.lp-note p { margin: 0; font-size: 13px; line-height: 1.55; color: var(--text-muted); }

/* ---------- testimonials ---------- */

.lp-quotes-head { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin-bottom: 24px; }

.lp-quotes-head h2 {
    margin: 0;
    font-size: clamp(24px, 3vw, 30px);
    font-weight: 600;
    letter-spacing: -0.028em;
    line-height: 1.15;
}

.lp-quotes {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 16px;
}

.lp-quote {
    margin: 0;
    padding: 22px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--bg);
    box-shadow: var(--shadow-sm);
}

.lp-quote blockquote { margin: 0; font-size: 14px; line-height: 1.6; color: var(--text-muted); }
.lp-quote figcaption { display: flex; align-items: center; gap: 10px; margin-top: 18px; font-size: 12px; color: var(--text-faint); }
.lp-quote .avatar-slot { width: 28px; height: 28px; flex: none; border-radius: 999px; background: var(--bg-sunken); }

/* ---------- custom band ---------- */

.lp-custom { text-align: center; }
.lp-custom .lp-section-head { margin-left: auto; margin-right: auto; }
.lp-custom .lp-section-head p { margin-left: auto; margin-right: auto; }
.lp-custom .lp-section-head h2 { max-width: 24ch; margin-left: auto; margin-right: auto; }

.lp-custom-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    margin-bottom: 18px;
    border: 1px solid var(--border);
    border-radius: 999px;
    color: var(--brand);
}

.lp-custom-mark .icon { width: 18px; height: 18px; }

/* ---------- faq ---------- */

.lp-faq h2 {
    margin: 0 0 32px;
    font-size: clamp(24px, 3vw, 30px);
    font-weight: 600;
    letter-spacing: -0.028em;
    line-height: 1.15;
}

.lp-faq details { border-top: 1px solid var(--border); padding: 18px 0; }
.lp-faq details:last-child { border-bottom: 1px solid var(--border); }
.lp-faq summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; font-size: 15px; font-weight: 500; list-style: none; cursor: pointer; }
.lp-faq summary::-webkit-details-marker { display: none; }
.lp-faq p { margin: 12px 0 0; max-width: 68ch; font-size: 14px; line-height: 1.65; color: var(--text-muted); }

.faq-plus {
    flex: none;
    font-size: 18px;
    line-height: 1;
    color: var(--text-faint);
    transition: transform 0.16s var(--ease, ease);
}

.lp-faq details[open] .faq-plus { transform: rotate(45deg); }

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

.lp-close { text-align: center; }
.lp-close h2 { margin: 0 auto; max-width: 24ch; font-size: clamp(24px, 3vw, 30px); font-weight: 600; letter-spacing: -0.028em; line-height: 1.15; }
.lp-close p { margin: 14px auto 0; max-width: 52ch; font-size: 15px; line-height: 1.6; color: var(--text-muted); }
.lp-close .lp-cta { margin-top: 26px; }

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

.lp-footer { margin-top: auto; border-top: 1px solid var(--border); background: var(--bg); }
.lp-footer .lp-wrap { padding-top: 48px; padding-bottom: 48px; }

.lp-footer-cols {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
}

.lp-footer h3 {
    margin: 0 0 14px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: var(--text-faint);
}

.lp-footer ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 8px; }
.lp-footer a { color: var(--text-muted); text-decoration: none; font-size: 13px; }
.lp-footer a:hover { color: var(--brand); }

.lp-contact { display: flex; flex-direction: column; gap: 10px; font-size: 13px; color: var(--text-muted); }
.lp-contact li { display: flex; align-items: flex-start; gap: 10px; }
.lp-contact .icon { width: 15px; height: 15px; margin-top: 2px; flex: none; color: var(--text-faint); }
.lp-contact address { font-style: normal; }

.lp-colophon {
    margin-top: 40px;
    padding-top: 24px;
    border-top: 1px solid var(--border);
    font-size: 12px;
    color: var(--text-faint);
}

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

/* The same two breakpoints the rest of the shell uses: the mid-nav links go
   first, then the wrappers and the footer. */
@media (max-width: 860px) {
    .lp-nav-link { display: none; }
}

@media (max-width: 720px) {
    .lp-wrap { padding: 0 20px; }
    .lp-hero { padding: 120px 0 64px; }
    .lp-section { padding: 64px 0; }
    .lp-caps { gap: 28px; }
    .lp-still { margin-top: 40px; }
    .lp-footer-cols { grid-template-columns: 1fr; gap: 32px; }
}
