:root {
    color-scheme: light;
    --bg: #f6f7f2;
    --surface: #ffffff;
    --ink: #17211b;
    --muted: #5f6d65;
    --line: #dfe6dd;
    --green: #1f8f54;
    --green-dark: #136b3d;
    --yellow: #f7c948;
    --blue: #2b6cb0;
    --coral: #e85d4f;
    --violet: #6d5dfc;
    --shadow: 0 18px 48px rgba(27, 49, 35, 0.12);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

body {
    margin: 0;
    min-height: 100vh;
    overflow-x: hidden;
    color: var(--ink);
    background:
        radial-gradient(circle at 10% 0%, rgba(247, 201, 72, 0.24), transparent 28rem),
        radial-gradient(circle at 95% 12%, rgba(31, 143, 84, 0.16), transparent 26rem),
        var(--bg);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
textarea,
select {
    font: inherit;
    font-size: 16px;
}

button {
    cursor: pointer;
    touch-action: manipulation;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    border-bottom: 1px solid rgba(223, 230, 221, 0.88);
    background: rgba(246, 247, 242, 0.9);
    backdrop-filter: blur(18px);
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    width: min(1120px, calc(100% - 2rem));
    height: 4.25rem;
    margin: 0 auto;
    padding-left: env(safe-area-inset-left);
    padding-right: env(safe-area-inset-right);
}

.brand {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    min-width: max-content;
    font-weight: 900;
    letter-spacing: 0;
}

.brand-mark {
    display: grid;
    width: 2.25rem;
    height: 2.25rem;
    place-items: center;
    border: 2px solid var(--ink);
    border-radius: 0.55rem;
    background: linear-gradient(135deg, var(--yellow), #fff3b0);
    box-shadow: 4px 4px 0 var(--ink);
}

.nav-links {
    display: flex;
    gap: 0.35rem;
    overflow-x: auto;
    padding: 0.4rem 0;
    scrollbar-width: none;
}

.nav-links::-webkit-scrollbar {
    display: none;
}

.nav-link {
    display: inline-flex;
    align-items: center;
    min-height: 2.75rem;
    padding: 0.5rem 0.85rem;
    border: 1px solid transparent;
    border-radius: 0.5rem;
    color: var(--muted);
    font-size: 0.94rem;
    font-weight: 800;
    white-space: nowrap;
}

.nav-link:hover,
.nav-link.active {
    border-color: var(--line);
    color: var(--ink);
    background: var(--surface);
}

.wrap {
    width: min(1120px, calc(100% - 2rem));
    margin: 0 auto;
}

.section {
    padding: 3rem 0;
}

.intro {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
    gap: 2rem;
    align-items: end;
    padding: 3.5rem 0 2rem;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    margin: 0 0 1rem;
    padding: 0.45rem 0.75rem;
    border: 1px solid var(--line);
    border-radius: 0.5rem;
    color: var(--green-dark);
    background: rgba(255, 255, 255, 0.75);
    font-size: 0.86rem;
    font-weight: 900;
}

h1,
h2,
h3 {
    margin: 0;
    letter-spacing: 0;
    line-height: 1.05;
}

h1 {
    max-width: 12ch;
    font-size: clamp(2.5rem, 8vw, 5.8rem);
    font-weight: 950;
    overflow-wrap: anywhere;
}

h2 {
    font-size: clamp(1.8rem, 4vw, 3rem);
    font-weight: 930;
}

h3 {
    font-size: 1.25rem;
    font-weight: 900;
}

p {
    color: var(--muted);
    line-height: 1.65;
}

.lead {
    max-width: 38rem;
    margin: 1.25rem 0 0;
    font-size: 1.08rem;
    overflow-wrap: anywhere;
}

.hero-panel,
.panel,
.tool-panel {
    border: 1px solid var(--line);
    border-radius: 0.5rem;
    background: rgba(255, 255, 255, 0.88);
    box-shadow: var(--shadow);
}

.hero-panel {
    padding: 1.25rem;
}

.mini-phone {
    position: relative;
    min-height: 27rem;
    overflow: hidden;
    border: 2px solid var(--ink);
    border-radius: 1.75rem;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(244, 250, 246, 0.96)),
        repeating-linear-gradient(135deg, rgba(31, 143, 84, 0.08) 0 12px, rgba(247, 201, 72, 0.1) 12px 24px);
}

.mini-phone::before {
    content: "";
    position: absolute;
    top: 0.75rem;
    left: 50%;
    width: 5.75rem;
    height: 0.42rem;
    border-radius: 999px;
    background: var(--ink);
    transform: translateX(-50%);
}

.chat-stack {
    display: grid;
    gap: 0.8rem;
    padding: 3.4rem 1rem 1rem;
}

.bubble {
    width: fit-content;
    max-width: 84%;
    padding: 0.75rem 0.9rem;
    border-radius: 0.5rem;
    color: var(--ink);
    background: #dcf8c6;
    font-weight: 800;
    line-height: 1.35;
}

.bubble.alt {
    justify-self: end;
    background: #fff2bf;
}

.bubble.pix {
    background: #d9f3ff;
}

.tool-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
    margin: 2rem 0 0;
}

.tool-card {
    display: grid;
    min-height: 17rem;
    padding: 1.35rem;
    border: 1px solid var(--line);
    border-radius: 0.5rem;
    background: var(--surface);
    box-shadow: 0 10px 28px rgba(27, 49, 35, 0.08);
    transition: transform 160ms ease, box-shadow 160ms ease;
}

.tool-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

.tool-icon {
    display: grid;
    width: 3rem;
    height: 3rem;
    place-items: center;
    margin-bottom: 1.25rem;
    border-radius: 0.5rem;
    color: var(--ink);
    background: #eff8f2;
}

.tool-icon svg,
.icon-button svg,
.btn svg {
    width: 1.2rem;
    height: 1.2rem;
}

.card-title {
    margin-bottom: 0.65rem;
}

.card-copy {
    margin: 0;
    font-size: 0.96rem;
}

.stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
    margin-top: 1rem;
}

.stat {
    padding: 0.9rem;
    border: 1px solid var(--line);
    border-radius: 0.5rem;
    background: rgba(255, 255, 255, 0.72);
}

.stat strong {
    display: block;
    font-size: 1.3rem;
    font-weight: 950;
}

.stat span {
    color: var(--muted);
    font-size: 0.82rem;
    font-weight: 800;
}

.toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    align-items: center;
    margin: 1.25rem 0;
}

.chip {
    min-height: 2.75rem;
    padding: 0.5rem 0.8rem;
    border: 1px solid var(--line);
    border-radius: 0.5rem;
    color: var(--muted);
    background: var(--surface);
    font-weight: 850;
}

.chip.active {
    border-color: var(--green);
    color: var(--green-dark);
    background: #e9f8ee;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-height: 2.85rem;
    padding: 0.65rem 0.95rem;
    border: 1px solid transparent;
    border-radius: 0.5rem;
    color: #fff;
    background: var(--green);
    font-weight: 900;
}

.btn:hover {
    background: var(--green-dark);
}

.btn.secondary {
    border-color: var(--line);
    color: var(--ink);
    background: var(--surface);
}

.btn.secondary:hover {
    background: #f3f6f1;
}

.btn.coral {
    background: var(--coral);
}

.btn.coral:hover {
    background: #c74338;
}

.btn.blue {
    background: var(--blue);
}

.btn.blue:hover {
    background: #1f5287;
}

.icon-button {
    display: inline-grid;
    width: 2.85rem;
    height: 2.85rem;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: 0.5rem;
    color: var(--ink);
    background: var(--surface);
}

.field {
    display: grid;
    gap: 0.45rem;
}

.field label {
    color: var(--muted);
    font-size: 0.86rem;
    font-weight: 900;
}

.field input,
.field textarea,
.field select {
    width: 100%;
    min-height: 3rem;
    padding: 0.7rem 0.78rem;
    border: 1px solid var(--line);
    border-radius: 0.5rem;
    color: var(--ink);
    background: #fbfcfa;
    outline: none;
}

.field textarea {
    min-height: 8rem;
    resize: vertical;
}

.field input:focus,
.field textarea:focus,
.field select:focus {
    border-color: var(--green);
    box-shadow: 0 0 0 3px rgba(31, 143, 84, 0.14);
}

.tool-layout {
    display: grid;
    grid-template-columns: 320px minmax(0, 1fr);
    gap: 1rem;
    align-items: start;
}

.tool-panel {
    padding: 1rem;
}

.panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
}

.phrase-list {
    display: grid;
    gap: 0.9rem;
}

.phrase-card {
    display: grid;
    gap: 0.85rem;
    padding: 1rem;
    border: 1px solid var(--line);
    border-radius: 0.5rem;
    background: var(--surface);
}

.phrase-text {
    margin: 0;
    color: var(--ink);
    font-size: 1.06rem;
    font-weight: 780;
    line-height: 1.55;
}

.phrase-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
}

.phrase-actions .btn {
    flex: 1 1 9rem;
}

.ad-slot {
    display: grid;
    min-height: 5.5rem;
    place-items: center;
    border: 1px dashed #b8c5bd;
    border-radius: 0.5rem;
    color: #6b7b71;
    background: rgba(255, 255, 255, 0.55);
    font-size: 0.82rem;
    font-weight: 850;
    text-align: center;
}

.seo-content {
    display: grid;
    gap: 1rem;
    margin-top: 2rem;
    padding: 1.25rem;
    border: 1px solid var(--line);
    border-radius: 0.5rem;
    background: rgba(255, 255, 255, 0.72);
}

.seo-content h2 {
    font-size: clamp(1.35rem, 3vw, 2rem);
}

.seo-content h3 {
    margin-top: 0.25rem;
    font-size: 1rem;
}

.seo-content p {
    margin: 0;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: var(--green-dark);
    font-weight: 850;
}

.drop-zone {
    display: grid;
    min-height: 18rem;
    place-items: center;
    padding: 1.25rem;
    border: 2px dashed #b8c5bd;
    border-radius: 0.5rem;
    background: rgba(255, 255, 255, 0.68);
    text-align: center;
}

.drop-zone.dragover {
    border-color: var(--green);
    background: #ebf8ef;
}

.canvas-shell {
    display: grid;
    place-items: center;
    min-height: 23rem;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 0.5rem;
    background:
        linear-gradient(45deg, #eef3ef 25%, transparent 25%),
        linear-gradient(-45deg, #eef3ef 25%, transparent 25%),
        linear-gradient(45deg, transparent 75%, #eef3ef 75%),
        linear-gradient(-45deg, transparent 75%, #eef3ef 75%);
    background-color: #fbfcfa;
    background-position: 0 0, 0 10px, 10px -10px, -10px 0;
    background-size: 20px 20px;
}

canvas {
    max-width: 100%;
    height: auto;
    display: block;
}

.result-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 0.75rem;
}

.tile {
    display: grid;
    gap: 0.55rem;
    padding: 0.7rem;
    border: 1px solid var(--line);
    border-radius: 0.5rem;
    background: var(--surface);
}

.tile img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 0.4rem;
    background: #eef3ef;
}

.table {
    width: 100%;
    border-collapse: collapse;
}

.table th,
.table td {
    padding: 0.75rem;
    border-bottom: 1px solid var(--line);
    text-align: left;
    vertical-align: top;
}

.table th {
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 950;
    text-transform: uppercase;
}

.settlement {
    display: grid;
    gap: 0.8rem;
}

.settlement-card {
    display: grid;
    gap: 0.65rem;
    padding: 1rem;
    border: 1px solid var(--line);
    border-radius: 0.5rem;
    background: #fbfcfa;
}

.money {
    color: var(--green-dark);
    font-weight: 950;
}

.footer {
    padding: 2.5rem 0;
    border-top: 1px solid var(--line);
    color: var(--muted);
    font-size: 0.9rem;
    text-align: center;
}

.hidden {
    display: none !important;
}

@media (max-width: 860px) {
    .nav {
        align-items: start;
        height: auto;
        padding-top: calc(0.8rem + env(safe-area-inset-top));
        padding-bottom: 0.8rem;
        flex-direction: column;
    }

    .nav-links {
        width: 100%;
        scroll-snap-type: x proximity;
        -webkit-overflow-scrolling: touch;
    }

    .nav-link {
        scroll-snap-align: start;
    }

    .intro,
    .tool-layout {
        grid-template-columns: 1fr;
    }

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

    .stats {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .tool-card {
        min-height: 13rem;
    }

    .hero-panel {
        display: none;
    }
}

@media (max-width: 520px) {
    .wrap {
        width: min(100% - 1rem, 1120px);
    }

    .section {
        padding: 1.25rem 0 2rem;
    }

    .intro {
        padding-top: 1.8rem;
    }

    h1 {
        max-width: 100%;
        font-size: clamp(2.05rem, 11vw, 3rem);
    }

    h2 {
        font-size: clamp(1.35rem, 7vw, 2rem);
    }

    .lead {
        font-size: 1rem;
    }

    .tool-panel {
        padding: 0.8rem;
        box-shadow: 0 10px 26px rgba(27, 49, 35, 0.08);
    }

    .panel-header {
        align-items: start;
        flex-direction: column;
    }

    .table {
        table-layout: fixed;
        overflow-x: visible;
        white-space: nowrap;
    }

    .table th,
    .table td {
        padding: 0.6rem 0.45rem;
        white-space: normal;
        overflow-wrap: anywhere;
    }

    .toolbar {
        gap: 0.5rem;
    }

    .toolbar .chip {
        flex: 1 1 calc(50% - 0.5rem);
    }

    .btn {
        width: 100%;
    }

    .panel-header > .btn,
    .panel-header > a.btn {
        width: 100%;
    }

    .drop-zone {
        min-height: 12rem;
    }

    .canvas-shell {
        min-height: 16rem;
    }

    .result-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .stat {
        padding: 0.65rem;
    }

    .stat strong {
        font-size: 1rem;
        overflow-wrap: anywhere;
    }

    .stat span {
        font-size: 0.72rem;
    }

    .seo-content {
        padding: 1rem;
    }
}

@media (max-width: 380px) {
    .wrap {
        width: min(100% - 0.75rem, 1120px);
    }

    .brand {
        gap: 0.5rem;
    }

    .brand-mark {
        width: 2rem;
        height: 2rem;
        box-shadow: 3px 3px 0 var(--ink);
    }

    .nav-link {
        min-height: 2.65rem;
        padding: 0.45rem 0.7rem;
        font-size: 0.88rem;
    }

    .tool-panel {
        padding: 0.65rem;
    }

    .stats {
        gap: 0.45rem;
    }

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