:root {
    --bg: #e8ebe6;
    --card: #ffffff;
    --text: #0e0f0c;
    --muted: #4b5047;
    --cta: #9fe870;
    --line: #d8ddd4;
    --danger: #a5352d;
    --radius-xl: 24px;
    --radius-lg: 16px;
    --shadow: 0 18px 38px rgba(14, 15, 12, 0.08);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: "Sora", "Segoe UI", system-ui, -apple-system, sans-serif;
    color: var(--text);
    background:
        radial-gradient(circle at 15% 10%, rgba(159, 232, 112, 0.35), transparent 38%),
        radial-gradient(circle at 85% 0%, rgba(255, 255, 255, 0.8), transparent 32%),
        var(--bg);
}

.page {
    max-width: 1220px;
    margin: 0 auto;
    padding: 28px 20px 56px;
}

.hero {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 28px;
    align-items: start;
}

.hero__left,
.hero__right {
    animation: rise 420ms ease both;
}

@keyframes rise {
    from {
        opacity: 0;
        transform: translateY(14px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin: 0 0 16px;
}

.brand__icon {
    width: 50px;
    height: 50px;
    color: #57b9b3;
    flex-shrink: 0;
}

.brand__text {
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 0.14em;
    color: #182117;
}

h1 {
    margin: 0;
    font-size: clamp(32px, 4vw, 54px);
    line-height: 1.05;
}

.subtitle {
    margin-top: 16px;
    max-width: 46ch;
    color: var(--muted);
    font-size: 17px;
}

.hero-points {
    margin: 20px 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.hero-points li {
    background: #dff8cd;
    color: #20311b;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    padding: 8px 12px;
}

.benefits {
    margin: 18px 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 10px;
}

.benefits li {
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid #ecf0ea;
    border-radius: 14px;
    padding: 12px 14px;
    font-weight: 600;
}

.warning {
    margin-top: 18px;
    max-width: 50ch;
    font-size: 14px;
    line-height: 1.55;
    border-left: 4px solid var(--cta);
    padding: 10px 0 10px 14px;
}

.card {
    background: var(--card);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow);
    padding: 24px;
    border: 1px solid #edf0eb;
}

.form-card {
    margin-bottom: 18px;
}

h2 {
    margin: 0 0 14px;
    font-size: 24px;
    line-height: 1.2;
}

h3 {
    margin: 14px 0 10px;
    font-size: 17px;
}

p {
    margin: 0 0 10px;
    line-height: 1.6;
}

code {
    font-family: "JetBrains Mono", "SFMono-Regular", Consolas, monospace;
    font-size: 0.92em;
    background: #f3f6f2;
    border: 1px solid #e2e8df;
    border-radius: 8px;
    padding: 2px 6px;
}

label,
legend {
    display: block;
    margin-top: 14px;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 700;
}

input,
select,
textarea {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 12px 14px;
    font-size: 15px;
    font-family: inherit;
    color: var(--text);
    background: #fff;
    outline: none;
    transition: border-color 160ms ease, box-shadow 160ms ease;
}

input:focus,
select:focus,
textarea:focus {
    border-color: #7ec954;
    box-shadow: 0 0 0 4px rgba(159, 232, 112, 0.35);
}

textarea {
    min-height: 112px;
    resize: vertical;
}

.field-helper {
    display: block;
    margin-top: 6px;
    color: var(--muted);
    font-size: 12px;
}

.field-error {
    display: block;
    margin-top: 6px;
    color: var(--danger);
    font-size: 12px;
    font-weight: 600;
}

.output-options {
    margin: 16px 0 0;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 14px;
}

.output-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin-top: 8px;
}

.output-card {
    position: relative;
    margin: 0;
    cursor: pointer;
}

.output-card input[type="radio"] {
    position: absolute;
    opacity: 0;
    inset: 0;
    pointer-events: none;
}

.output-card__box {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 12px 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    background: #fafcf8;
    transition: border-color 140ms ease, background 140ms ease, transform 120ms ease, box-shadow 140ms ease;
}

.output-card:hover .output-card__box {
    transform: translateY(-1px);
}

.output-card__icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: #eef7e8;
    color: #2d4b1e;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.output-card__icon svg {
    width: 22px;
    height: 22px;
}

.output-card__text {
    text-align: center;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.2;
}

.output-card input[type="radio"]:checked + .output-card__box {
    border-color: #6cbf3a;
    background: #effbe6;
    box-shadow: 0 0 0 3px rgba(159, 232, 112, 0.35);
}

.output-card input[type="radio"]:checked + .output-card__box .output-card__icon {
    background: #d7f4bf;
}

.output-card input[type="radio"]:focus-visible + .output-card__box {
    outline: 2px solid #6cbf3a;
    outline-offset: 2px;
}

.actions {
    margin-top: 18px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.btn {
    appearance: none;
    border: 0;
    border-radius: 24px;
    padding: 12px 18px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: transform 100ms ease, filter 150ms ease;
}

.btn:hover {
    filter: brightness(0.97);
}

.btn:active {
    transform: translateY(1px);
}

.btn--primary {
    background: var(--cta);
    color: #12230a;
}

.btn--secondary {
    background: #12140f;
    color: #eff3ea;
    margin-top: 12px;
}

.btn--ghost {
    background: #eef2ec;
    color: #263026;
}

.btn--copy {
    background: #1b2a16;
    color: #eef4ea;
    padding: 9px 14px;
    font-size: 13px;
    border-radius: 14px;
    gap: 6px;
}

.btn--copy svg {
    width: 16px;
    height: 16px;
}

.btn--download {
    width: 100%;
    margin-top: 12px;
    background: var(--cta);
    color: #162510;
    gap: 8px;
}

.btn--download svg {
    width: 18px;
    height: 18px;
}

.btn--new-code {
    width: 100%;
    margin-top: 10px;
    background: #ecf2e8;
    color: #1d2a1a;
}

.alert {
    border-radius: 14px;
    padding: 12px 14px;
    margin-bottom: 14px;
    font-size: 14px;
    line-height: 1.4;
}

.alert--error {
    background: #fff3f2;
    border: 1px solid #ffc8c2;
    color: #862a23;
}

.result-card {
    padding: 0;
    overflow: hidden;
}

.result-card__header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 18px 22px;
    background: #f1f5ed;
    border-bottom: 1px solid #e4eae1;
}

.result-card__header h2 {
    margin: 0;
    font-size: 25px;
}

.result-card__header p {
    margin: 4px 0 0;
    color: #4b5047;
    font-size: 14px;
}

.result-card__body {
    padding: 16px;
}

.result-copy-box {
    border: 1px solid #dbe3d7;
    border-radius: 16px;
    background: #fbfdf9;
    padding: 12px;
}

.result-copy-box__top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.result-copy-label {
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #465046;
    font-size: 12px;
    font-weight: 800;
}

.pix-payload {
    min-height: 94px;
    margin: 0;
    background: transparent;
    border: 0;
    padding: 0;
    border-radius: 0;
    box-shadow: none;
    color: #1d261f;
    font-family: "JetBrains Mono", "SFMono-Regular", Consolas, monospace;
    font-size: 14px;
    line-height: 1.5;
}

.pix-payload:focus {
    box-shadow: none;
}

.qr-preview {
    display: flex;
    justify-content: center;
    margin-top: 12px;
    padding: 12px;
    background: #f9fbf8;
    border-radius: 16px;
    border: 1px solid #edf1ea;
}

.qr-preview img {
    width: min(100%, 280px);
    height: auto;
    display: block;
}

.result-qr-panel {
    margin-top: 14px;
    padding: 16px;
    background:
        radial-gradient(circle at 20% 10%, rgba(159, 232, 112, 0.2), transparent 40%),
        #f6faf2;
    border: 1px solid #dbe5d5;
    border-radius: 16px;
}

.result-qr-panel img {
    border: 8px solid #ffffff;
    border-radius: 12px;
    box-shadow: 0 14px 30px rgba(14, 15, 12, 0.12);
}

.copy-feedback {
    min-height: 22px;
    margin: 8px 0 0;
    color: #1f5e2f;
    font-size: 13px;
    font-weight: 700;
}

.content-grid {
    margin-top: 24px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.content-card ul,
.content-card ol {
    margin: 0;
    padding-left: 18px;
    color: #232722;
    line-height: 1.6;
}

.content-card li {
    margin-bottom: 6px;
}

.section-wide {
    margin-top: 24px;
}

.bank-list {
    margin: 12px 0 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.bank-list li {
    border: 1px solid var(--line);
    background: #f6faf4;
    border-radius: 999px;
    padding: 8px 12px;
    font-size: 13px;
    font-weight: 700;
}

.faq p {
    color: var(--muted);
}

.faq-grid {
    margin-top: 10px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.faq-item {
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 10px 12px;
    background: #fcfdfb;
}

.faq-item summary {
    cursor: pointer;
    font-weight: 700;
    line-height: 1.45;
}

.faq-item p {
    margin-top: 8px;
    color: #2f342d;
    line-height: 1.55;
}

.final-cta {
    text-align: center;
}

.final-cta p {
    max-width: 70ch;
    margin: 0 auto 14px;
}

body.has-result .form-card {
    display: none;
}

body.has-result .result-card {
    margin-top: 0;
    border-color: #cfe6c1;
    box-shadow: 0 22px 46px rgba(38, 64, 24, 0.16);
}

@media (max-width: 980px) {
    .hero,
    .content-grid,
    .faq-grid {
        grid-template-columns: 1fr;
    }

    .page {
        padding: 16px;
    }

    .card {
        padding: 18px;
    }

    h2 {
        font-size: 21px;
    }

    .output-grid {
        grid-template-columns: 1fr;
    }

    body.has-result .hero__right {
        order: 1;
    }

    body.has-result .hero__left {
        order: 2;
    }
}

.site-footer {
    margin-top: 26px;
    border-top: 1px solid #d7dcd4;
    background: rgba(255, 255, 255, 0.55);
}

.site-footer__inner {
    max-width: 1220px;
    margin: 0 auto;
    padding: 18px 20px 26px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.site-footer p {
    margin: 0;
    color: #374036;
    font-size: 13px;
}

.site-footer nav {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

.site-footer a {
    color: #1f3020;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
}

.site-footer a:hover {
    text-decoration: underline;
}

.legal-page {
    max-width: 920px;
}

.legal-card h1 {
    margin: 0 0 8px;
    font-size: 34px;
}

.legal-card h2 {
    margin-top: 18px;
    font-size: 21px;
}

.legal-card p {
    margin-bottom: 10px;
}

@media (max-width: 980px) {
    .site-footer__inner {
        padding: 18px 16px 24px;
    }
}
