:root {
    --brand: #1dbf73;
    --accent: #138a5b;
    --ink: #202124;
    --muted: #667085;
    --line: #dfe3e8;
    --soft: #f4f6f8;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: hidden; }
body { margin: 0; color: var(--ink); background: #fff; font-family: Inter, "Segoe UI", Arial, sans-serif; line-height: 1.55; }
a { color: inherit; }
button, input, select, textarea { font: inherit; }
.public-header {
    position: sticky; top: 0; z-index: 40; min-height: 70px;
    display: flex; align-items: center; justify-content: space-between; gap: 24px;
    padding: 10px max(24px, calc((100vw - 1180px) / 2));
    background: rgba(255,255,255,.96); border-bottom: 1px solid var(--line); backdrop-filter: blur(10px);
}
.public-brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.public-brand span {
    width: 38px; height: 38px; display: grid; place-items: center;
    color: #fff; background: var(--brand); border-radius: 6px; font-weight: 800; font-size: 12px;
}
.public-brand img { width: 38px; height: 38px; object-fit: contain; border-radius: 6px; }
.public-brand strong { font-size: 17px; }
.public-header nav { display: flex; align-items: center; gap: 22px; }
.public-header nav a { color: #475467; text-decoration: none; font-size: 14px; font-weight: 650; }
.public-header nav a:hover { color: var(--brand); }
.nav-cta {
    min-height: 38px; display: inline-flex; align-items: center; justify-content: center;
    padding: 0 15px; color: #fff !important; background: var(--brand); border-radius: 5px;
}
.landing-hero {
    position: relative; min-height: min(78vh, 720px); display: flex; align-items: center;
    background-image: url("../images/dashboard-preview.png");
    background-size: cover; background-position: center right; overflow: hidden;
}
.landing-hero::before { content: ""; position: absolute; inset: 0; background: rgba(247,250,252,.84); }
.hero-inner { position: relative; width: min(1180px, calc(100% - 40px)); margin: 0 auto; padding: 70px 0 90px; }
.hero-copy { width: min(650px, 75%); }
.hero-badge {
    display: inline-flex; align-items: center; min-height: 30px; padding: 0 10px;
    color: #087443; background: #ecfdf3; border: 1px solid #abefc6; border-radius: 4px;
    font-size: 12px; font-weight: 800;
}
.hero-copy h1 { max-width: 760px; margin: 22px 0 18px; font-size: clamp(42px, 5vw, 72px); line-height: 1.02; letter-spacing: 0; overflow-wrap: anywhere; }
.hero-copy p { max-width: 650px; margin: 0; color: #475467; font-size: 18px; }
.hero-actions { display: flex; gap: 10px; margin-top: 28px; }
.hero-actions a, .section-cta {
    min-height: 44px; display: inline-flex; align-items: center; justify-content: center;
    padding: 0 18px; border: 1px solid transparent; border-radius: 5px; text-decoration: none; font-weight: 750;
}
.hero-actions .primary, .section-cta { color: #fff; background: var(--brand); }
.hero-actions .secondary { color: var(--ink); background: #fff; border-color: #cfd5dc; }
.stats-band { background: #173229; color: #fff; }
.stats-inner { width: min(1180px, calc(100% - 40px)); margin: 0 auto; display: grid; grid-template-columns: repeat(4,1fr); }
.stat-item { padding: 25px 22px; border-right: 1px solid rgba(255,255,255,.1); }
.stat-item:last-child { border-right: 0; }
.stat-item strong { display: block; font-size: 27px; }
.stat-item span { color: #a9b5c0; font-size: 13px; }
.section { padding: 80px 20px; }
.section.soft { background: var(--soft); }
.section-inner { width: min(1180px, 100%); margin: 0 auto; }
.section-heading { max-width: 740px; margin-bottom: 34px; }
.section-heading .eyebrow { color: var(--accent); font-size: 12px; font-weight: 800; text-transform: uppercase; }
.section-heading h2 { margin: 8px 0 12px; font-size: clamp(30px, 3vw, 44px); line-height: 1.1; }
.section-heading p { margin: 0; color: var(--muted); font-size: 17px; }
.feature-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 14px; }
.feature-card, .price-card, .quote-card {
    padding: 22px; background: #fff; border: 1px solid var(--line); border-radius: 7px;
    box-shadow: 0 1px 2px rgba(16,24,40,.04);
}
.feature-card, .price-card, .quote-card, .about-check { transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.feature-card:hover, .price-card:hover, .quote-card:hover, .about-check:hover { transform: translateY(-3px); border-color: #b7ddca; box-shadow: 0 14px 34px rgba(18,85,61,.09); }
.feature-number { width: 34px; height: 34px; display: grid; place-items: center; color: #fff; background: var(--brand); border-radius: 5px; font-weight: 800; }
.feature-card h3 { margin: 18px 0 8px; font-size: 17px; }
.feature-card p, .quote-card p { margin: 0; color: var(--muted); }
.about-layout { display: grid; grid-template-columns: .9fr 1.1fr; gap: 50px; align-items: center; }
.about-layout h2 { margin: 0 0 16px; font-size: 40px; line-height: 1.1; }
.about-layout p { color: var(--muted); font-size: 17px; }
.about-checks { display: grid; gap: 12px; }
.about-check { display: flex; gap: 12px; padding: 14px; background: #fff; border: 1px solid var(--line); border-radius: 6px; }
.about-check b { color: var(--accent); }
.pricing-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 14px; }
.price-card { display: flex; flex-direction: column; }
.price-card h3 { margin: 0; font-size: 20px; }
.price { margin: 18px 0 6px; font-size: 34px; font-weight: 800; }
.price small { color: var(--muted); font-size: 13px; font-weight: 500; }
.price-card p { color: var(--muted); }
.price-card ul { flex: 1; padding-left: 20px; color: #475467; }
.price-card .section-cta { margin-top: 14px; }
.quotes-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 14px; }
.quote-card strong { display: block; margin-top: 18px; }
.quote-card small { color: var(--muted); }
.faq-list { display: grid; gap: 10px; max-width: 900px; }
.faq-list details { padding: 16px 18px; background: #fff; border: 1px solid var(--line); border-radius: 6px; }
.faq-list summary { cursor: pointer; font-weight: 750; }
.faq-list p { margin: 12px 0 0; color: var(--muted); }
.contact-layout { display: grid; grid-template-columns: .8fr 1.2fr; gap: 38px; }
.contact-meta { display: grid; gap: 14px; align-content: start; }
.contact-meta div { padding: 14px 0; border-bottom: 1px solid var(--line); }
.contact-form, .auth-card {
    padding: 26px; background: #fff; border: 1px solid var(--line); border-radius: 7px;
    box-shadow: 0 10px 30px rgba(16,24,40,.08);
}
.form-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 15px; }
.field.full { grid-column: 1 / -1; }
label { display: block; margin-bottom: 6px; font-size: 12px; font-weight: 800; }
input, select, textarea {
    width: 100%; min-height: 42px; border: 1px solid #cfd5dc; border-radius: 5px;
    padding: 9px 11px; color: var(--ink); background: #fff; outline: none;
}
select {
    appearance: none;
    padding-right: 34px;
    background-image:
        linear-gradient(45deg, transparent 50%, #667085 50%),
        linear-gradient(135deg, #667085 50%, transparent 50%);
    background-position:
        calc(100% - 16px) calc(50% - 2px),
        calc(100% - 11px) calc(50% - 2px);
    background-size: 5px 5px, 5px 5px;
    background-repeat: no-repeat;
}
textarea { min-height: 118px; resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(37,99,235,.12); }
.form-button {
    min-height: 42px; border: 0; border-radius: 5px; color: #fff; background: var(--brand);
    padding: 0 16px; font-weight: 750; cursor: pointer;
}
.public-footer { min-height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 15px max(24px, calc((100vw - 1180px) / 2)); color: #a9b5c0; background: #173229; font-size: 13px; }
.auth-page { background: var(--soft); }
.auth-main { min-height: calc(100vh - 134px); display: grid; place-items: center; padding: 42px 20px; }
.auth-card { width: min(500px, 100%); }
.auth-card.wide { width: min(760px, 100%); }
.auth-card h1 { margin: 0 0 6px; font-size: 28px; }
.auth-card > p { margin: 0 0 24px; color: var(--muted); }
.auth-actions { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 20px; }
.auth-link { color: var(--brand); font-weight: 650; text-decoration: none; }
.alert { margin-bottom: 16px; padding: 11px 13px; border-radius: 5px; }
.alert.success { color: #067647; background: #ecfdf3; border: 1px solid #abefc6; }
.alert.error { color: #b42318; background: #fef3f2; border: 1px solid #fecdca; }
.quick-logins { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 14px; }
.quick-logins button { min-height: 38px; border: 1px solid var(--line); border-radius: 5px; color: #344054; background: #f8fafb; cursor: pointer; }

.workflow-section { overflow: hidden; background: #fff; }
.workflow-heading { margin-inline: auto; text-align: center; }
.workflow-heading p { margin-inline: auto; }
.workflow { position: relative; width: min(1080px, 100%); margin: 52px auto 0; display: grid; gap: 64px; }
.workflow::before {
    content: "";
    position: absolute;
    top: 34px;
    bottom: 34px;
    left: 50%;
    width: 2px;
    background: repeating-linear-gradient(to bottom, #9bd8b8 0 8px, transparent 8px 16px);
    transform: translateX(-50%);
}
.workflow-step { position: relative; display: grid; grid-template-columns: minmax(0,.82fr) minmax(0,1.18fr); gap: 76px; align-items: center; }
.workflow-step:nth-child(even) .workflow-copy { order: 2; }
.workflow-step:nth-child(even) .workflow-visual { order: 1; }
.workflow-step::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    width: 14px;
    height: 14px;
    border: 4px solid #fff;
    border-radius: 50%;
    background: var(--brand);
    box-shadow: 0 0 0 1px #86d7ae;
    transform: translate(-50%,-50%);
    z-index: 2;
}
.workflow-copy { min-width: 0; }
.workflow-number { display: block; color: #b7c0bb; font-size: 12px; font-weight: 850; }
.workflow-icon { width: 42px; height: 42px; display: grid; place-items: center; margin: 12px 0 18px; color: #087443; background: #dcfae6; border-radius: 8px; }
.workflow-icon svg { width: 20px; height: 20px; }
.workflow-copy h3 { margin: 0 0 11px; font-size: 27px; line-height: 1.15; }
.workflow-copy p { margin: 0; color: var(--muted); font-size: 16px; }
.workflow-copy ul { display: flex; flex-wrap: wrap; gap: 7px; margin: 18px 0 0; padding: 0; list-style: none; }
.workflow-copy li { padding: 5px 9px; color: #344054; background: #f2f4f7; border: 1px solid #e4e7ec; border-radius: 999px; font-size: 11px; font-weight: 700; }
.workflow-visual {
    min-width: 0;
    min-height: 270px;
    padding: 18px;
    background: #f8faf9;
    border: 1px solid #dce7e1;
    border-radius: 8px;
    box-shadow: 0 20px 50px rgba(18,85,61,.1);
}
.screenshot-visual { padding: 10px; overflow: hidden; }
.screenshot-visual img { width: 100%; height: 300px; object-fit: cover; object-position: top left; border-radius: 6px; }
.mock-window { background: #fff; }
.mock-bar { height: 38px; display: flex; align-items: center; gap: 6px; padding: 0 11px; color: #475467; background: #f2f4f7; border-radius: 6px 6px 0 0; }
.mock-bar > span { width: 7px; height: 7px; border-radius: 50%; background: #d0d5dd; }
.mock-bar > span:first-child { background: #f97066; }
.mock-bar > span:nth-child(2) { background: #fdb022; }
.mock-bar > span:nth-child(3) { background: #32d583; }
.mock-bar b { margin-left: 6px; font-size: 11px; }
.mock-toolbar { display: grid; grid-template-columns: 1fr 120px auto; gap: 7px; padding: 13px 0; }
.mock-toolbar span { min-height: 34px; display: flex; align-items: center; padding: 0 9px; color: #98a2b3; border: 1px solid #e4e7ec; border-radius: 5px; font-size: 10px; }
.mock-toolbar button { border: 0; border-radius: 5px; color: #fff; background: var(--brand); padding: 0 10px; font-size: 10px; font-weight: 800; }
.mock-table { border: 1px solid #e4e7ec; border-radius: 6px; overflow: hidden; }
.mock-row { min-height: 46px; display: grid; grid-template-columns: 1.4fr .8fr .7fr; align-items: center; gap: 8px; padding: 0 11px; border-bottom: 1px solid #eef1f0; font-size: 11px; }
.mock-row:last-child { border-bottom: 0; }
.mock-row.head { min-height: 34px; color: #667085; background: #f8faf9; font-size: 9px; font-weight: 800; text-transform: uppercase; }
.mock-row > span:first-child { display: flex; align-items: center; gap: 7px; }
.mock-row svg { width: 14px; height: 14px; color: var(--accent); }
.mock-row strong { text-align: right; }
.sale-flow { display: grid; grid-template-columns: 1fr auto 1.15fr auto 1fr; align-items: center; gap: 9px; background: #f7fbf8; }
.flow-node { min-height: 92px; display: grid; place-items: center; align-content: center; gap: 8px; padding: 12px; text-align: center; background: #fff; border: 1px solid #dce7e1; border-radius: 7px; font-size: 11px; font-weight: 800; }
.flow-node.active { color: #fff; background: #173229; border-color: #173229; }
.flow-node svg { width: 23px; height: 23px; color: var(--accent); }
.flow-node.active svg { color: var(--brand); }
.flow-arrow { width: 18px; color: #98a2b3; }
.flow-stack { display: grid; gap: 6px; }
.flow-stack span { display: flex; align-items: center; gap: 5px; padding: 8px; background: #fff; border: 1px solid #e4e7ec; border-radius: 5px; font-size: 10px; }
.flow-stack svg { width: 13px; height: 13px; color: var(--accent); }
.flow-total { grid-column: 1 / -1; display: flex; align-items: center; gap: 12px; margin-top: 8px; padding: 13px; background: #fff; border-top: 2px solid var(--brand); }
.flow-total small { color: var(--muted); }
.flow-total strong { font-size: 21px; }
.flow-total span { margin-left: auto; color: var(--accent); font-size: 10px; font-weight: 800; }
.journal-visual { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 15px; background: #f7fbf8; }
.journal-account { min-height: 150px; display: grid; align-content: center; gap: 9px; padding: 18px; background: #fff; border: 1px solid #dce7e1; border-radius: 7px; }
.journal-account > span { color: var(--muted); font-size: 9px; font-weight: 850; }
.journal-account strong { display: flex; align-items: center; gap: 7px; font-size: 13px; }
.journal-account svg { width: 16px; color: var(--accent); }
.journal-account small { color: var(--muted); }
.journal-account.credit { border-top: 3px solid #f79009; }
.journal-account.debit { border-top: 3px solid var(--brand); }
.journal-amount { display: grid; place-items: center; gap: 6px; text-align: center; }
.journal-amount svg { width: 26px; height: 26px; color: var(--brand); }
.journal-amount strong { font-size: 22px; }
.journal-amount span { color: var(--muted); font-size: 10px; }
.reports-visual { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; background: #f7fbf8; }
.report-chip { min-height: 108px; display: grid; grid-template-columns: 30px 1fr; align-content: center; gap: 5px 9px; padding: 15px; background: #fff; border: 1px solid #dce7e1; border-radius: 7px; }
.report-chip svg { grid-row: 1 / 3; width: 24px; height: 24px; color: var(--accent); }
.report-chip span { color: var(--muted); font-size: 10px; }
.report-chip strong { font-size: 14px; }
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .55s ease, transform .55s ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

@media (max-width: 820px) {
    .public-header { align-items: flex-start; flex-direction: column; }
    .public-header nav { width: 100%; display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 6px 10px; overflow: visible; padding-bottom: 2px; }
    .public-header nav a { min-height: 34px; display: flex; align-items: center; justify-content: center; text-align: center; }
    .landing-hero { background-position: 62% center; }
    .hero-inner { width: calc(100% - 40px); }
    .hero-copy { width: 100%; max-width: 100%; min-width: 0; }
    .hero-copy h1 { max-width: 100%; font-size: 36px; line-height: 1.06; }
    .hero-copy p { width: 100%; max-width: 100%; font-size: 16px; overflow-wrap: break-word; }
    .hero-actions { flex-wrap: wrap; }
    .stats-inner, .feature-grid, .pricing-grid, .quotes-grid, .about-layout, .contact-layout { grid-template-columns: 1fr; }
    .stat-item { border-right: 0; border-bottom: 1px solid rgba(255,255,255,.1); }
    .form-grid { grid-template-columns: 1fr; }
    .field.full { grid-column: auto; }
    .workflow { gap: 44px; }
    .workflow::before { left: 15px; }
    .workflow-step { grid-template-columns: 1fr; gap: 20px; padding-left: 38px; }
    .workflow-step:nth-child(even) .workflow-copy,
    .workflow-step:nth-child(even) .workflow-visual { order: initial; }
    .workflow-step::before { left: 15px; top: 21px; }
    .workflow-visual { min-height: 240px; padding: 12px; }
    .screenshot-visual img { height: 240px; }
    .sale-flow { grid-template-columns: 1fr auto 1fr; }
    .sale-flow > .flow-arrow:nth-of-type(2), .sale-flow > .flow-stack { display: none; }
    .journal-visual { grid-template-columns: 1fr; }
    .journal-amount { padding: 6px 0; }
    .journal-amount svg { transform: rotate(90deg); }
    .reports-visual { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
    .reveal { opacity: 1; transform: none; }
}
