:root {
    --green: #2f6b4f;
    --dark: #20251f;
    --lime: #d5f36a;
    --muted: #758071;
    --line: #e4e9df;
    --paper: #fafcf7;
    --white: #ffffff;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: var(--paper);
    color: var(--dark);
    font-family: Inter, "Segoe UI", Arial, sans-serif;
}

button,
input,
textarea,
select {
    font: inherit;
}

button,
select {
    cursor: pointer;
}

.navbar {
    min-height: 76px;
    padding: 16px 7%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: white;
    border-bottom: 1px solid var(--line);
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--dark);
    font-weight: 800;
    font-size: 20px;
}

.brand-mark {
    width: 37px;
    height: 37px;
    border-radius: 11px;
    display: grid;
    place-items: center;
    color: var(--lime);
    background: var(--green);
}

.brand-ai {
    color: var(--green);
}

.privacy {
    color: var(--green);
    font-size: 12px;
}

.dot,
.status-dot {
    display: inline-block;
    width: 7px;
    height: 7px;
    margin-right: 5px;
    border-radius: 50%;
    background: #64aa70;
}

main {
    max-width: 1240px;
    margin: auto;
    padding: 0 28px;
}

.hero {
    text-align: center;
    padding: 70px 10px 45px;
}

.eyebrow {
    color: var(--green);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1.8px;
}

.hero h1 {
    margin: 19px 0;
    font-size: clamp(35px, 5vw, 58px);
    line-height: 1.12;
    letter-spacing: -2px;
}

.hero h1 span {
    color: var(--green);
}

.hero>p {
    max-width: 620px;
    margin: auto;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.8;
}

.tags {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 18px;
    margin-top: 24px;
    color: #526650;
    font-size: 11px;
}

.workspace {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 22px;
    align-items: stretch;
}

.panel {
    min-width: 0;
    padding: 28px;
    border: 1px solid var(--line);
    border-radius: 17px;
    background: var(--white);
    box-shadow: 0 12px 35px #2037190c;
}

.panel-heading {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 25px;
}

.number {
    padding: 7px 8px;
    border-radius: 6px;
    color: var(--green);
    background: #edf5e7;
    font-size: 11px;
    font-weight: 800;
}

.panel h2 {
    margin: 0;
    font-size: 16px;
}

.panel-heading p {
    margin: 6px 0 0;
    color: var(--muted);
    font-size: 11px;
}

label {
    display: block;
    margin: 17px 0 8px;
    font-size: 12px;
    font-weight: 700;
}

input,
textarea,
select {
    width: 100%;
    min-width: 0;
    padding: 12px;
    border: 1px solid #dfe5da;
    border-radius: 8px;
    outline: none;
    background: #fcfdfb;
    color: var(--dark);
    font-size: 12px;
}

input:focus,
textarea:focus,
select:focus {
    border-color: #78a787;
    box-shadow: 0 0 0 3px #dcefe0;
}

textarea {
    resize: vertical;
    line-height: 1.6;
}

.field-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 13px;
}

.field-foot {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    margin-top: 7px;
    color: #90998d;
    font-size: 10px;
}

.generate-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
    margin-top: 24px;
    padding: 15px;
    border: 0;
    border-radius: 9px;
    background: var(--green);
    color: white;
    font-size: 13px;
    font-weight: 700;
}

.generate-btn:hover {
    background: #24563e;
}

.generate-btn:disabled {
    cursor: wait;
    opacity: .65;
}

.microcopy {
    color: #929a8e;
    text-align: center;
    font-size: 10px;
    line-height: 1.6;
}

.output-panel {
    display: flex;
    flex-direction: column;
    min-height: 600px;
}

.empty-state {
    flex: 1;
    padding: 30px 10px;
    text-align: center;
}

.empty-icon {
    display: grid;
    place-items: center;
    width: 70px;
    height: 70px;
    margin: 20px auto;
    border-radius: 22px;
    background: #edf5e7;
    color: var(--green);
    font-size: 36px;
}

.empty-state h3,
.loading-state h3 {
    font-size: 16px;
}

.empty-state p,
.loading-state p {
    max-width: 330px;
    margin: 10px auto;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.8;
}

.empty-state ul {
    display: inline-grid;
    gap: 12px;
    margin-top: 20px;
    padding: 0;
    text-align: left;
    list-style: none;
    color: #53664f;
    font-size: 12px;
}

.panel-footer {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    margin-top: auto;
    padding-top: 18px;
    border-top: 1px solid #edf0e9;
    color: #929a8e;
    font-size: 10px;
}

.hidden {
    display: none !important;
}

.loading-state {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.spinner {
    width: 36px;
    height: 36px;
    margin: 20px;
    border: 3px solid #e6eee1;
    border-top-color: var(--green);
    border-radius: 50%;
    animation: spin .8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.error {
    padding: 13px;
    margin: 12px 0;
    border: 1px solid #f0cfc2;
    border-radius: 8px;
    background: #fff3ed;
    color: #874a32;
    font-size: 12px;
    line-height: 1.6;
    overflow-wrap: anywhere;
}

.result-top,
.result-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.result-top {
    padding: 10px 0 15px;
}

.result-section {
    padding: 17px 0;
    border-top: 1px solid #edf0e9;
}

.result-section h3 {
    margin: 0;
    font-size: 12px;
}

.result-section p {
    color: #586255;
    font-size: 12px;
    line-height: 1.8;
    overflow-wrap: anywhere;
}

.preserve-lines {
    white-space: pre-wrap;
}

.copy-btn,
.secondary-btn {
    padding: 7px 10px;
    border: 1px solid #dce6d7;
    border-radius: 6px;
    background: #f8fbf5;
    color: var(--green);
    font-size: 10px;
    font-weight: 700;
}

.notice {
    padding: 10px;
    border-radius: 7px;
    background: #f7f8f3;
    color: var(--muted);
    font-size: 10px;
    line-height: 1.6;
}

.benefits {
    padding: 70px 0 55px;
}

.benefits h2 {
    margin: 13px 0 26px;
    font-size: 29px;
    letter-spacing: -1px;
}

.benefit-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.benefit-grid article {
    padding: 22px;
    border: 1px solid var(--line);
    border-radius: 13px;
    background: white;
}

.benefit-icon {
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: #edf5e7;
    color: var(--green);
}

.benefit-grid h3 {
    font-size: 14px;
}

.benefit-grid p {
    color: var(--muted);
    font-size: 12px;
    line-height: 1.8;
}

footer {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 23px 0;
    border-top: 1px solid var(--line);
    color: #899184;
    font-size: 10px;
}

@media (max-width: 850px) {
    .workspace {
        grid-template-columns: 1fr;
    }

    .benefit-grid {
        grid-template-columns: 1fr;
    }

    .output-panel {
        min-height: 500px;
    }
}

@media (max-width: 520px) {
    main {
        padding: 0 14px;
    }

    .navbar {
        padding: 15px;
    }

    .brand {
        font-size: 17px;
    }

    .hero {
        padding-top: 45px;
    }

    .hero h1 {
        letter-spacing: -1px;
    }

    .tags {
        gap: 10px;
    }

    .panel {
        padding: 19px 16px;
    }

    .field-grid {
        grid-template-columns: 1fr;
        gap: 0;
    }

    footer {
        font-size: 9px;
    }
}