:root {
    --forest: #17634b;
    --deep: #173f34;
    --ink: #20342e;
    --muted: #52665e;
    --line: #d7e4db;
    --surface: #f7faf7;
    --blush: #f7e9df;
    --gold: #bd9450;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    color: var(--ink);
    background: #fff;
    font-family: "Plus Jakarta Sans", Arial, sans-serif;
    line-height: 1.5;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
p, h1, h2, h3, ol, dl, blockquote { margin: 0; }
.page-width { width: min(1120px, calc(100% - 40px)); margin-inline: auto; }

.site-header { background: var(--surface); }
.site-header .page-width { min-height: 72px; display: flex; align-items: center; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--deep); font-size: 1.2rem; font-weight: 800; }
.brand img { width: 36px; height: 36px; }
.brand:focus-visible, .download-button:focus-visible, .chat-control:focus-visible, .chat-viewport:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }

.hero { background: var(--surface); }
.hero-layout { display: grid; align-items: center; gap: 48px; padding-block: 42px 78px; }
.hero-copy { display: grid; justify-items: start; gap: 18px; }
.eyebrow { color: var(--forest); font-size: .75rem; font-weight: 800; text-transform: uppercase; }
h1, h2 { color: var(--deep); font-weight: 800; letter-spacing: 0; overflow-wrap: break-word; }
h1 { max-width: 11ch; font-size: 4rem; line-height: 1.09; }
h2 { font-size: 2.3rem; line-height: 1.16; }
.hero-lead { max-width: 43ch; color: var(--ink); font-size: 1.05rem; font-weight: 500; }
.download-button {
    display: inline-flex;
    min-height: 52px;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--forest);
    border-radius: 6px;
    background: var(--forest);
    color: #fff;
    padding: 12px 23px;
    font: inherit;
    font-size: .94rem;
    font-weight: 800;
    text-align: center;
    transition: background-color .16s ease, transform .16s ease;
}
.download-button:hover { background: var(--deep); transform: translateY(-1px); }
.download-button-secondary { width: 100%; background: #fff; color: var(--deep); }
.download-button-secondary:hover { color: #fff; }

.demo-wrap { position: relative; min-width: 0; max-width: 560px; width: 100%; justify-self: end; }
.growth-mark { position: absolute; z-index: 1; top: 14px; right: 130px; width: 76px; height: 76px; overflow: visible; border-radius: 50%; background: #e8f1e8; }
.growth-ground { fill: none; stroke: #95b79f; stroke-linecap: round; stroke-width: 2; }
.growth-seed { fill: #bd9450; }
.growth-stem { fill: none; stroke: var(--forest); stroke-linecap: round; stroke-width: 5; stroke-dasharray: 100; animation: stem-rise 1.2s ease-out .2s both; }
.growth-leaf { fill: #2e8661; animation: leaf-open .68s cubic-bezier(.2,.85,.3,1.2) both; }
.growth-leaf-left { transform-box: fill-box; transform-origin: right bottom; animation-delay: .85s; }
.growth-leaf-right { transform-box: fill-box; transform-origin: left bottom; animation-delay: 1.15s; }
.demo-mascot { position: relative; z-index: 1; width: 112px; height: 112px; object-fit: contain; margin: 0 17px -17px auto; }
.chat-demo { overflow: hidden; border: 1px solid var(--line); border-radius: 8px; background: #fff; box-shadow: 0 18px 44px rgb(23 63 52 / 10%); }
.chat-header { display: flex; min-height: 70px; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--line); background: #fff; }
.chat-identity { display: flex; align-items: center; gap: 10px; min-width: 0; }
.chat-identity > div { display: grid; gap: 2px; min-width: 0; }
.chat-identity strong { color: var(--deep); font-size: .85rem; line-height: 1.2; }
.chat-identity span:last-child { color: var(--muted); font-size: .7rem; }
.chat-status-dot { flex: 0 0 9px; height: 9px; border-radius: 50%; background: #4eac6a; box-shadow: 0 0 0 4px #e3f2e6; }
.chat-controls { display: flex; gap: 4px; }
.chat-control { min-width: 44px; min-height: 44px; border: 0; border-radius: 4px; background: transparent; color: var(--forest); padding: 6px; font: inherit; font-size: .72rem; font-weight: 800; cursor: pointer; }
.chat-control:hover { background: var(--surface); }
.chat-viewport { height: 520px; overflow-y: auto; overscroll-behavior: contain; padding: 18px 16px 22px; background: #f7faf8; scrollbar-color: #b9cdbf transparent; }
.chat-thread { display: grid; gap: 16px; padding: 0; list-style: none; }
.chat-message { display: grid; justify-items: start; gap: 4px; max-width: 94%; }
.chat-message-user { justify-self: end; justify-items: end; }
.chat-sender { color: var(--muted); font-size: .66rem; font-weight: 800; }
.chat-bubble { max-width: 100%; border: 1px solid var(--line); border-radius: 13px 13px 13px 4px; background: #fff; padding: 10px 12px; color: var(--ink); font-size: .81rem; line-height: 1.56; overflow-wrap: anywhere; }
.chat-message-user .chat-bubble { border-color: #f0d9c9; border-radius: 13px 13px 4px 13px; background: var(--blush); }
.chat-bubble strong { display: block; margin-bottom: 6px; color: var(--deep); font-size: .82rem; }
.chat-message time { color: var(--muted); font-size: .65rem; }
.signal-values { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 5px 16px; }
.signal-values div { display: flex; gap: 5px; align-items: baseline; }
.signal-values dt { color: var(--muted); font-size: .72rem; }
.signal-values dd { margin: 0; color: var(--ink); font-size: .76rem; font-weight: 800; }
.chat-message.is-new { animation: bubble-in .28s ease-out both; }
.typing-indicator { width: 54px; display: flex; gap: 5px; margin-top: 16px; border: 1px solid var(--line); border-radius: 13px 13px 13px 4px; background: #fff; padding: 11px 12px; }
.typing-indicator span { width: 6px; height: 6px; border-radius: 50%; background: #83a790; animation: typing 1s ease-in-out infinite; }
.typing-indicator span:nth-child(2) { animation-delay: .15s; }
.typing-indicator span:nth-child(3) { animation-delay: .3s; }
.demo-disclaimer { margin: 13px 0; color: var(--muted); font-size: .68rem; font-weight: 800; text-align: center; }

.pain-section, .benefit-section, .stories-section, .faq-section { padding-block: 78px; }
.pain-section { background: #fff; }
.section-intro { display: grid; gap: 14px; max-width: 690px; margin-bottom: 32px; }
.section-intro > p:last-child { color: var(--muted); font-size: 1rem; }
.pain-grid, .benefit-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.pain-card, .benefit-card { min-width: 0; border-radius: 10px; padding: 26px 24px; }
.pain-card { display: grid; align-content: start; gap: 14px; border: 1px solid #eadfd4; background: #fbf5f0; }
.pain-mark { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: #f1ded1; color: var(--deep); font-weight: 800; }
.pain-card h3, .benefit-card h3 { color: var(--deep); font-size: 1.08rem; line-height: 1.3; }
.pain-card p, .benefit-card p { color: var(--muted); font-size: .9rem; line-height: 1.65; }
.benefit-section { background: #edf5ef; }
.benefit-card { display: grid; align-content: start; gap: 14px; border: 1px solid #d6e4d9; background: #fff; }
.benefit-number { color: var(--forest); font-size: .79rem; font-weight: 800; letter-spacing: .08em; }
.benefit-cta { margin-top: 28px; }
.stories-section { background: #faf7f1; }
.stories-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.story-card { display: flex; min-width: 0; min-height: 238px; flex-direction: column; gap: 16px; border: 1px solid #e6e0d5; border-radius: 10px; background: #fff; padding: 24px; }
.story-quote-mark { color: #8bb49c; font-family: Georgia, serif; font-size: 3rem; line-height: .7; }
.story-card p { flex: 1; color: var(--ink); font-size: .95rem; font-weight: 600; line-height: 1.65; }
.story-card footer { display: flex; align-items: center; gap: 10px; color: var(--deep); font-size: .84rem; }
.story-avatar { display: grid; flex: 0 0 36px; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: #e0efe5; color: var(--forest); font-weight: 800; }
.story-card:nth-child(2) .story-avatar { background: #f2e7d8; color: #805f3b; }
.story-card:nth-child(3) .story-avatar { background: #e4e7f0; color: #4e627f; }
.faq-section { background: #fff; }
.faq-layout { display: grid; grid-template-columns: minmax(0, .72fr) minmax(0, 1fr); gap: 48px; }
.faq-heading { display: grid; align-content: start; gap: 14px; }
.faq-list { border-top: 1px solid var(--line); }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary { position: relative; padding: 20px 34px 20px 0; color: var(--deep); font-size: .96rem; font-weight: 800; cursor: pointer; list-style: none; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { position: absolute; right: 2px; top: 20px; content: '+'; color: var(--forest); font-size: 1.3rem; line-height: 1; }
.faq-list details[open] summary::after { content: '−'; }
.faq-list summary:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
.faq-list details p { padding: 0 32px 20px 0; color: var(--muted); font-size: .91rem; line-height: 1.65; }
.final-section { padding-block: 72px; background: var(--deep); }
.final-inner { display: grid; justify-items: start; gap: 16px; }
.final-inner .eyebrow, .final-inner h2 { color: #fff; }
.final-inner h2 { max-width: 17ch; }
.final-inner > p:not(.eyebrow) { max-width: 48ch; color: #dbe8df; }
.download-button-light { border-color: #fff; background: #fff; color: var(--deep); }
.download-button-light:hover { border-color: #fff; background: transparent; color: #fff; }
.site-footer { padding-block: 24px; border-top: 1px solid var(--line); background: #f4f7f2; }
.site-footer p { color: var(--muted); font-size: .77rem; text-align: center; }

@keyframes bubble-in { from { opacity: 0; transform: translateY(7px); } to { opacity: 1; transform: translateY(0); } }
@keyframes typing { 0%, 60%, 100% { opacity: .4; } 30% { opacity: 1; } }
@keyframes stem-rise { from { stroke-dashoffset: 100; } to { stroke-dashoffset: 0; } }
@keyframes leaf-open { from { opacity: 0; transform: scale(.15) rotate(-15deg); } to { opacity: 1; transform: scale(1) rotate(0); } }

@media (min-width: 820px) {
    .hero-layout { grid-template-columns: minmax(0, .85fr) minmax(0, 1fr); }
}

@media (max-width: 819px) {
    .page-width { width: min(100% - 32px, 600px); }
    .site-header .page-width { min-height: 62px; }
    .brand { font-size: 1.08rem; }
    .brand img { width: 32px; height: 32px; }
    .hero-layout { gap: 24px; padding-block: 16px 52px; }
    .hero-copy { gap: 15px; }
    h1 { font-size: 2.65rem; }
    h2 { font-size: 1.9rem; }
    .hero-lead { font-size: .98rem; }
    .download-button { width: 100%; }
    .growth-mark { top: 10px; right: 108px; width: 66px; height: 66px; }
    .demo-mascot { width: 92px; height: 92px; margin-bottom: -14px; }
    .pain-section, .benefit-section, .stories-section, .faq-section { padding-block: 54px; }
    .section-intro { gap: 12px; margin-bottom: 24px; }
    .section-intro > p:last-child { font-size: .94rem; }
    .pain-grid, .benefit-grid { grid-template-columns: 1fr; gap: 12px; }
    .pain-card, .benefit-card { padding: 20px; }
    .pain-card { gap: 10px; }
    .benefit-card { gap: 10px; }
    .benefit-cta { margin-top: 22px; }
    .stories-grid { grid-template-columns: 1fr; gap: 12px; }
    .story-card { min-height: 0; padding: 20px; }
    .faq-layout { grid-template-columns: 1fr; gap: 20px; }
    .final-section { padding-block: 56px; }
}

@media (max-width: 359px) {
    h1 { font-size: 2.35rem; }
    .chat-header { padding-inline: 10px; }
    .chat-viewport { padding-inline: 10px; }
    .chat-control { font-size: .66rem; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .download-button { transition: none; }
    .chat-message.is-new, .typing-indicator span, .growth-stem, .growth-leaf { animation: none; }
}
