:root {
    --paper: #fbfaf6;
    --sand: #f1efe7;
    --line: #d9dcd3;
    --line-sand: #e2dfd3;
    --ink: #15201a;
    --ink-2: #2c3830;
    --ink-3: #3d4a42;
    --muted: #56635a;
    --green: #1f6b45;
    --green-dark: #134a2f;
    --green-soft: #d6ead9;
    --night: #1d2b23;
    --night-line: #2c3d33;
    --night-text: #c9d4cc;
    --mint: #8fd1a6;
    --serif: 'Newsreader', Georgia, serif;
    --sans: 'Public Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 24px; }

body.lp {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: var(--sans);
    -webkit-font-smoothing: antialiased;
}

.lp ::selection { background: var(--green-soft); color: var(--ink); }
.lp a { color: var(--green); text-underline-offset: 4px; }
.lp a:hover { color: var(--green-dark); }
.lp a:focus-visible,
.lp summary:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; border-radius: 4px; }

.lp-wrap { max-width: 1280px; margin: 0 auto; padding-left: 40px; padding-right: 40px; }
.lp-serif { font-family: var(--serif); }
.lp-num { font-variant-numeric: tabular-nums; }

/* Buttons */
.lp-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    min-height: 56px; padding: 0 28px; border-radius: 999px;
    font-size: 16px; font-weight: 600; text-decoration: none;
    transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}
.lp .lp-btn-primary { background: var(--green); color: #fff; }
.lp .lp-btn-primary:hover { background: var(--green-dark); color: #fff; }
.lp .lp-btn-outline { color: var(--ink); border: 1.5px solid var(--ink); }
.lp .lp-btn-outline:hover { background: var(--ink); color: var(--paper); }
.lp .lp-btn-white { background: #fff; color: var(--green); font-weight: 700; min-height: 54px; }
.lp .lp-btn-white:hover { background: var(--green-soft); color: var(--green-dark); }

/* Nav */
.lp-nav { border-bottom: 2px solid var(--ink); }
.lp-nav .lp-wrap { padding-top: 20px; padding-bottom: 20px; display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; }
.lp-brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.lp-brand img { height: 44px; width: auto; }
.lp-brand-name { display: block; font-family: var(--serif); font-size: 24px; font-weight: 600; line-height: 1.1; color: var(--ink); }
.lp-brand-sub { display: block; font-size: 12px; color: var(--muted); }
.lp-menu { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 28px; font-size: 15px; }
.lp .lp-menu a:not(.lp-btn) { color: var(--ink-3); text-decoration: none; }
.lp .lp-menu a:not(.lp-btn):hover { color: var(--green); }
.lp-menu .lp-btn { min-height: 44px; padding: 0 22px; font-size: 15px; }

/* Hero */
.lp-hero { padding-top: 96px; padding-bottom: 80px; display: flex; flex-wrap: wrap; gap: 56px; align-items: flex-end; }
.lp-hero-main { flex: 999 1 620px; min-width: 0; }
.lp-hero h1 { margin: 0; font-family: var(--serif); font-weight: 500; font-size: clamp(48px, 7vw, 88px); line-height: 1.0; letter-spacing: -0.035em; text-wrap: balance; }
.lp-lead { margin: 32px 0 0; font-family: var(--serif); font-size: clamp(19px, 2vw, 23px); line-height: 1.55; color: var(--ink-2); max-width: 620px; }
.lp-actions { margin-top: 44px; display: flex; flex-wrap: wrap; gap: 14px; }
.lp-hero-card { flex: 1 1 320px; min-width: 0; padding: 28px; border-radius: 6px; background: var(--sand); border: 1px solid var(--line-sand); }

.lp-card-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 18px; }
.lp-card-title { font-size: 15px; font-weight: 700; }
.lp-card-note { font-size: 12px; color: var(--muted); }

.lp-meter + .lp-meter { margin-top: 18px; }
.lp-meter-label { display: flex; justify-content: space-between; font-size: 14px; color: var(--ink-2); }
.lp-meter-label span:last-child { font-weight: 600; }
.lp-meter-track { margin-top: 8px; height: 10px; border-radius: 5px; background: var(--line-sand); overflow: hidden; }
.lp-meter-fill { height: 100%; border-radius: 5px; background: var(--green); transform-origin: left; }
.lp-meter-fill.is-ink { background: var(--ink); }
.lp-hero-card p { margin: 22px 0 0; font-size: 14px; line-height: 1.6; color: var(--ink-3); }

/* Strip */
.lp-strip { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.lp-strip .lp-wrap { padding-top: 26px; padding-bottom: 26px; display: flex; flex-wrap: wrap; gap: 12px 48px; align-items: center; justify-content: space-between; }
.lp-strip-text { font-size: 15px; color: var(--ink-2); max-width: 560px; }
.lp-strip-meta { display: flex; flex-wrap: wrap; gap: 8px 32px; font-size: 14px; color: var(--muted); }

/* Sections */
.lp-section { padding-top: 112px; padding-bottom: 112px; }
.lp-sand { background: var(--sand); }
.lp-dark { background: var(--ink); color: var(--paper); }
.lp-h2 { margin: 0; font-family: var(--serif); font-size: clamp(36px, 4.4vw, 52px); line-height: 1.08; letter-spacing: -0.02em; font-weight: 500; text-wrap: balance; }
.lp-h3 { margin: 0 0 18px; font-family: var(--serif); font-size: clamp(30px, 3.2vw, 38px); line-height: 1.15; letter-spacing: -0.015em; font-weight: 500; text-wrap: balance; }
.lp-intro { margin: 16px 0 56px; max-width: 620px; font-size: 18px; line-height: 1.7; color: var(--ink-3); }
.lp-body { font-size: 17px; line-height: 1.75; color: var(--ink-3); }
.lp-body p { margin: 0 0 20px; }
.lp-body p:last-child { margin-bottom: 0; }
.lp-dark .lp-body { color: var(--night-text); }

.lp-split { display: flex; flex-wrap: wrap; gap: 64px; align-items: center; }
.lp-split > .lp-text { flex: 1 1 420px; min-width: 0; }
.lp-split > .lp-visual { flex: 1.2 1 520px; min-width: 0; }
.lp-split.is-top { align-items: flex-start; }

.lp-problem .lp-h2 { flex: 1 1 420px; }
.lp-problem .lp-body { flex: 1 1 480px; max-width: 640px; font-size: 18px; }

.lp-checks { margin: 28px 0 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 14px; font-size: 16px; color: var(--ink-2); }
.lp-checks li { display: flex; gap: 12px; }
.lp-checks svg { flex: none; margin-top: 2px; }

/* Heatmap */
.lp-figure { margin: 0; padding: 28px; border-radius: 6px; background: var(--sand); }
.lp-scroll { overflow-x: auto; }
.lp-heatmap { min-width: 480px; display: grid; grid-template-columns: 140px repeat(12, minmax(0, 1fr)); gap: 4px; font-size: 11px; color: var(--muted); align-items: center; }
.lp-heatmap .row-label { font-size: 12px; color: var(--ink-2); }
.lp-heatmap .c { height: 22px; border-radius: 3px; }
.c0 { background: #e6e4dc; }
.c1 { background: #eef4ec; }
.c2 { background: #dbeadc; }
.c3 { background: #bcdcc3; }
.c4 { background: #95c6a2; }
.c5 { background: #6aac7f; }
.c6 { background: #43915f; }
.c7 { background: #1f6b45; }
.c8 { background: #134a2f; }
.lp-legend { margin-top: 16px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 12px; color: var(--muted); }
.lp-legend-bar { width: 120px; height: 8px; border-radius: 4px; background: linear-gradient(90deg, #eef4ec, #134a2f); }
.lp-legend-gap { margin-left: 12px; }

/* Forecast */
.lp-dark .lp-split { flex-wrap: wrap-reverse; }
.lp-figure-dark { margin: 0; padding: 28px; border-radius: 6px; background: var(--night); border: 1px solid var(--night-line); }
.lp-figure-dark .lp-card-title { font-weight: 600; }
.lp-figure-dark .lp-card-note { color: #a9b8ad; }
.lp-chart-key { margin-top: 14px; display: flex; flex-wrap: wrap; gap: 24px; font-size: 13px; color: var(--night-text); }
.lp-chart-key span { display: flex; align-items: center; gap: 8px; }
.lp-key-line { width: 18px; height: 3px; background: var(--mint); }
.lp-key-dash { width: 18px; height: 0; border-top: 2px dashed var(--paper); }

/* Workflow */
.lp-steps { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 2px solid var(--ink); }
.lp-steps li { padding: 28px 28px 0; border-right: 1px solid var(--line); }
.lp-steps li:first-child { padding-left: 0; }
.lp-steps li:last-child { border-right: 0; padding-right: 0; }
.lp-step-title { font-family: var(--serif); font-size: 28px; font-weight: 500; color: var(--green); }
.lp-steps p { margin: 12px 0 0; font-size: 15px; line-height: 1.7; color: var(--ink-3); }

/* Chat mock */
.lp-chat { background: var(--paper); border-radius: 6px; border: 1px solid var(--line-sand); padding: 28px; box-shadow: 0 18px 40px rgba(21, 32, 26, .08); display: flex; flex-direction: column; gap: 16px; }
.lp-bubble { max-width: 86%; padding: 14px 18px; font-size: 15px; line-height: 1.6; }
.lp-bubble.me { align-self: flex-end; border-radius: 16px 16px 4px 16px; background: var(--ink); color: var(--paper); }
.lp-bubble.ai { align-self: flex-start; border-radius: 16px 16px 16px 4px; background: var(--sand); color: var(--ink-2); }
.lp-bubble small { display: block; margin-top: 12px; font-size: 13px; color: var(--muted); }
.lp-file { align-self: flex-start; display: flex; align-items: center; gap: 14px; padding: 14px 18px; border-radius: 12px; border: 1px solid var(--line-sand); }
.lp-file-icon { width: 40px; height: 40px; border-radius: 8px; background: var(--green); display: flex; align-items: center; justify-content: center; }
.lp-file strong { display: block; font-size: 14px; }
.lp-file span { font-size: 13px; color: var(--muted); }

/* Roles */
.lp-roles { display: flex; flex-wrap: wrap; gap: 40px 64px; border-top: 1px solid var(--ink); padding-top: 32px; margin-top: 48px; }
.lp-roles > div { flex: 1 1 300px; }
.lp-roles h3 { margin: 0 0 10px; font-size: 20px; font-weight: 700; }
.lp-roles p { margin: 0; font-size: 16px; line-height: 1.7; color: var(--ink-3); }

/* FAQ */
.lp-faq-title { flex: 1 1 340px; }
.lp-faq { flex: 2 1 560px; display: flex; flex-direction: column; }
.lp-faq details { border-top: 1px solid var(--line); padding: 24px 0; }
.lp-faq details:first-child { border-top: 2px solid var(--ink); }
.lp-faq details:last-child { border-bottom: 1px solid var(--line); }
.lp-faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 24px; font-family: var(--serif); font-size: 24px; font-weight: 500; line-height: 1.3; }
.lp-faq summary::-webkit-details-marker { display: none; }
.lp-faq summary::after { content: '+'; font-family: var(--sans); font-weight: 400; color: var(--green); transition: transform .2s ease; }
.lp-faq details[open] summary::after { transform: rotate(45deg); }
.lp-faq p { margin: 14px 0 0; font-size: 16px; line-height: 1.75; color: var(--ink-3); max-width: 640px; }

/* CTA */
.lp-cta { background: var(--green); text-align: center; }
.lp-cta .lp-wrap { padding-top: 96px; padding-bottom: 96px; }
.lp-cta h2 { margin: 0 auto; max-width: 820px; font-family: var(--serif); font-size: clamp(38px, 4.8vw, 56px); line-height: 1.06; letter-spacing: -0.025em; font-weight: 500; color: #fff; text-wrap: balance; }
.lp-cta .lp-actions { justify-content: center; margin-top: 36px; gap: 12px; }

/* Footer */
.lp-footer { border-top: 2px solid var(--ink); }
.lp-footer-top { padding-top: 56px; padding-bottom: 32px; display: flex; flex-wrap: wrap; gap: 48px; justify-content: space-between; }
.lp-footer-about { flex: 1 1 320px; }
.lp-footer-about p { margin: 10px 0 0; font-size: 14px; line-height: 1.7; color: var(--muted); max-width: 360px; }
.lp-footer-cols { display: flex; flex-wrap: wrap; gap: 64px; }
.lp-footer-cols div { display: flex; flex-direction: column; gap: 10px; font-size: 14px; }
.lp-footer-cols strong { font-weight: 700; }
.lp .lp-footer-cols a { color: var(--ink-3); text-decoration: none; }
.lp .lp-footer-cols a:hover { color: var(--green); }
.lp-footer-bottom { padding-top: 20px; padding-bottom: 40px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); }

/* One authored moment: hero meters fill on load */
@media (prefers-reduced-motion: no-preference) {
    .lp-hero-card .lp-meter-fill { animation: lp-fill 1.2s cubic-bezier(.16, 1, .3, 1) .3s both; }
    @keyframes lp-fill { from { transform: scaleX(0); } to { transform: scaleX(1); } }
}

@media (max-width: 900px) {
    .lp-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .lp-steps li { padding: 28px 24px 28px 0; border-right: 0; border-bottom: 1px solid var(--line); }
    .lp-steps li:nth-child(odd) { padding-left: 0; }
    .lp-steps li:nth-child(even) { padding-left: 24px; border-left: 1px solid var(--line); }
}

@media (max-width: 640px) {
    .lp-wrap { padding-left: 20px; padding-right: 20px; }
    .lp-hero { padding-top: 56px; padding-bottom: 56px; gap: 40px; }
    .lp-section { padding-top: 72px; padding-bottom: 72px; }
    .lp-split, .lp-problem { gap: 40px; }
    .lp-intro { margin-bottom: 40px; }
    .lp-menu { gap: 8px 20px; }
    .lp-actions .lp-btn { flex: 1 1 100%; }
    .lp-steps { grid-template-columns: minmax(0, 1fr); }
    .lp-steps li, .lp-steps li:nth-child(even) { padding: 24px 0; border-left: 0; }
    .lp-figure, .lp-figure-dark, .lp-chat, .lp-hero-card { padding: 20px; }
    .lp-faq summary { font-size: 20px; }
    .lp-cta .lp-wrap { padding-top: 72px; padding-bottom: 72px; }
    .lp-footer-cols { gap: 40px; }
}
