/* =========================================================
   KFOODY - INSTITUCIONAL
   CSS EXCLUSIVO DA PÁGINA
   ========================================================= */

:root {
    --primary: #ff7a00;
    --primary-hover: #eb6f00;
    --primary-light: #fff3e9;
    --text: #0f172a;
    --text-secondary: #5b677a;
    --border: #e5eaf1;
    --bg: #f7f9fc;
    --white: #ffffff;
    --soft: #fbfcfe;
    --success: #22c55e;
    --success-soft: #dcfce7;
    --shadow-sm: 0 8px 24px rgba(15, 23, 42, 0.06);
    --shadow-md: 0 22px 55px rgba(15, 23, 42, 0.12);
    --radius: 18px;
    --radius-lg: 28px;
    --container: 1220px;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    width: 100%;
    scroll-behavior: smooth;
}

body {
    margin: 0;
    width: 100%;
    min-height: 100vh;
    font-family: Arial, Helvetica, sans-serif;
    color: var(--text);
    background: linear-gradient(180deg, #f9fbfd 0%, #f4f7fb 100%);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

img {
    display: block;
    max-width: 100%;
}

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

.site-page {
    width: 100%;
    min-height: 100vh;
}

.container {
    width: min(var(--container), calc(100% - 32px));
    margin: 0 auto;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(249, 251, 253, 0.88);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(229, 234, 241, 0.9);
}

.site-header-inner {
    min-height: 86px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.site-logo {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-weight: 700;
    font-size: 18px;
}

.site-logo-mark {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: var(--primary);
    color: var(--white);
    font-weight: 700;
    box-shadow: var(--shadow-sm);
}

.site-logo-text {
    font-size: 20px;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 14px;
}

.btn {
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 22px;
    border-radius: 14px;
    border: 1px solid transparent;
    font-size: 15px;
    font-weight: 600;
    line-height: 1;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.08s ease;
    white-space: nowrap;
}

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

.btn-primary {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--white);
}

.btn-primary:hover {
    background: var(--primary-hover);
    border-color: var(--primary-hover);
}

.btn-secondary {
    background: var(--white);
    border-color: #d7deea;
    color: #1f2937;
}

.btn-secondary:hover {
    background: #f8fafc;
}

.btn-block {
    width: 100%;
}

.hero {
    padding: 54px 0 28px;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.02fr 1.08fr;
    gap: 40px;
    align-items: center;
}

.eyebrow {
    margin-bottom: 14px;
    color: #7a879a;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.hero-copy h1,
.section h2,
.cta-card h2,
.pricing-copy h2 {
    margin: 0;
    color: var(--text);
    font-size: clamp(34px, 5vw, 64px);
    line-height: 1.06;
    letter-spacing: -0.03em;
}

.section h2,
.cta-card h2,
.pricing-copy h2 {
    font-size: clamp(30px, 4vw, 48px);
}

.accent {
    color: var(--primary);
}

.hero-text,
.split-copy p,
.pricing-copy p,
.cta-card p {
    margin: 22px 0 0;
    color: var(--text-secondary);
    font-size: 20px;
    line-height: 1.55;
}

.split-copy p,
.pricing-copy p,
.cta-card p {
    font-size: 18px;
}

.hero-actions,
.section-actions,
.cta-actions {
    margin-top: 30px;
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.hero-mini-features {
    margin-top: 28px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px 18px;
}

.mini-feature {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #4a5565;
    font-size: 15px;
    line-height: 1.35;
}

.mini-icon {
    width: 12px;
    height: 12px;
    flex: 0 0 12px;
    border-radius: 999px;
    background: var(--primary);
    box-shadow: 0 0 0 4px rgba(255, 122, 0, 0.12);
}

.hero-visual {
    position: relative;
    min-height: 540px;
}

.dashboard-frame,
.browser-frame {
    position: relative;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 26px;
    box-shadow: var(--shadow-md);
    overflow: hidden;
}

.dashboard-frame {
    position: absolute;
    top: 34px;
    right: 0;
    width: 88%;
}

.dashboard-frame img,
.browser-frame img {
    width: 100%;
    height: auto;
}

.phone-frame {
    position: relative;
    width: 100%;
    max-width: 290px;
    padding: 10px;
    background: #111827;
    border-radius: 38px;
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.22);
}

.phone-frame::before {
    content: "";
    position: absolute;
    top: 8px;
    left: 50%;
    width: 100px;
    height: 18px;
    border-radius: 0 0 14px 14px;
    background: #111827;
    transform: translateX(-50%);
    z-index: 2;
}

.phone-frame img {
    width: 100%;
    height: auto;
    border-radius: 28px;
}

.hero-phone {
    position: absolute;
    left: 10px;
    top: 0;
    z-index: 2;
    width: 36%;
    min-width: 240px;
}

.phone-frame-large {
    max-width: 320px;
}

.feature-strip {
    padding: 18px 0 10px;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

.feature-card {
    background: rgba(255, 255, 255, 0.76);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 22px 20px;
    display: flex;
    align-items: flex-start;
    gap: 16px;
    box-shadow: var(--shadow-sm);
}

.feature-icon {
    width: 48px;
    height: 48px;
    flex: 0 0 48px;
    border-radius: 16px;
    background: var(--primary-light);
    border: 1px solid rgba(255, 122, 0, 0.18);
    position: relative;
}

.feature-icon::after {
    content: "";
    position: absolute;
    inset: 14px;
    border-radius: 6px;
    background: var(--primary);
}

.feature-card h3 {
    margin: 2px 0 8px;
    font-size: 24px;
    line-height: 1.15;
    letter-spacing: -0.02em;
}

.feature-card p {
    margin: 0;
    color: var(--text-secondary);
    font-size: 16px;
    line-height: 1.55;
}

.section {
    padding: 70px 0;
}

.section-soft {
    background: rgba(255, 255, 255, 0.42);
    border-top: 1px solid rgba(229, 234, 241, 0.72);
    border-bottom: 1px solid rgba(229, 234, 241, 0.72);
}

.split-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 56px;
    align-items: center;
}

.split-layout-reverse .split-visual {
    order: 1;
}

.split-layout-reverse .split-copy {
    order: 2;
}

.split-copy h2,
.pricing-copy h2,
.cta-card h2 {
    margin-top: 0;
}

.split-visual {
    display: flex;
    justify-content: center;
}

.split-visual-center {
    justify-content: center;
}

.check-list,
.pricing-list {
    margin: 26px 0 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 14px;
}

.check-list li,
.pricing-list li {
    position: relative;
    padding-left: 34px;
    color: #4b5563;
    font-size: 17px;
    line-height: 1.5;
}

.check-list li::before,
.pricing-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 1px;
    width: 22px;
    height: 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: var(--primary-light);
    color: var(--primary);
    font-size: 13px;
    font-weight: 700;
}

.browser-frame {
    width: 100%;
    overflow: hidden;
}

.payment-card {
    position: relative;
    width: min(100%, 420px);
    padding: 28px 28px 32px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 24px;
    box-shadow: var(--shadow-md);
}

.payment-card-header {
    margin-bottom: 20px;
    color: var(--text);
    font-size: 20px;
    font-weight: 700;
}

.payment-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 0;
    border-bottom: 1px solid var(--border);
    color: #445063;
    font-size: 16px;
}

.payment-row:last-of-type {
    border-bottom: 0;
}

.payment-row strong {
    color: var(--text);
}

.status-paid {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 30px;
    padding: 0 12px;
    border-radius: 999px;
    background: var(--success-soft);
    color: #15803d;
    font-size: 13px;
    font-weight: 700;
}

.payment-card-icon {
    width: 70px;
    height: 70px;
    margin: 24px auto 0;
    border-radius: 22px;
    background:
        radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.45) 0 35%, transparent 36%),
        linear-gradient(135deg, #15b5a6 0%, #0db27c 100%);
    box-shadow: var(--shadow-sm);
}

.pricing-layout {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 42px;
    align-items: start;
}

.pricing-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 24px;
    box-shadow: var(--shadow-md);
    padding: 30px;
}

.pricing-card-title {
    margin-bottom: 8px;
    font-size: 24px;
    font-weight: 700;
}

.pricing-price {
    font-size: clamp(38px, 5vw, 56px);
    line-height: 1;
    font-weight: 800;
    color: var(--primary);
    letter-spacing: -0.04em;
}

.pricing-period {
    margin-top: 8px;
    color: var(--text-secondary);
    font-size: 16px;
}

.cta-section {
    padding: 24px 0 70px;
}

.cta-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 32px;
    background: linear-gradient(180deg, #fff7ef 0%, #fff2e4 100%);
    border: 1px solid rgba(255, 122, 0, 0.12);
    border-radius: 28px;
    box-shadow: var(--shadow-sm);
}

.cta-card p {
    margin-top: 12px;
}

@media (max-width: 1150px) {

    .hero-grid,
    .split-layout,
    .pricing-layout {
        grid-template-columns: 1fr;
        gap: 34px;
    }

    .hero-visual {
        min-height: 500px;
    }

    .dashboard-frame {
        width: 90%;
    }

    .split-layout-reverse .split-visual,
    .split-layout-reverse .split-copy {
        order: initial;
    }

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

    .pricing-card {
        max-width: 520px;
    }
}

@media (max-width: 820px) {
    .site-header-inner {
        min-height: 78px;
    }

    .site-nav {
        gap: 10px;
    }

    .hero {
        padding-top: 34px;
    }

    .hero-copy h1 {
        font-size: 42px;
    }

    .hero-text {
        font-size: 18px;
    }

    .feature-card h3 {
        font-size: 20px;
    }

    .cta-card {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 640px) {
    .container {
        width: min(100% - 24px, var(--container));
    }

    .site-header-inner {
        flex-direction: column;
        align-items: stretch;
        justify-content: center;
        padding: 14px 0;
        gap: 14px;
    }

    .site-logo {
        justify-content: center;
    }

    .site-nav,
    .hero-actions,
    .section-actions,
    .cta-actions {
        width: 100%;
        flex-direction: column;
    }

    .site-nav .btn,
    .hero-actions .btn,
    .section-actions .btn,
    .cta-actions .btn {
        width: 100%;
    }

    .hero-copy h1,
    .section h2,
    .pricing-copy h2,
    .cta-card h2 {
        font-size: 34px;
    }

    .hero-mini-features {
        grid-template-columns: 1fr;
    }

    .hero-visual {
        min-height: 0;
        padding-top: 10px;
        display: flex;
        flex-direction: column;
        gap: 18px;
    }

    .dashboard-frame {
        position: relative;
        top: auto;
        right: auto;
        width: 100%;
        order: 2;
        border-radius: 18px;
    }

    .hero-phone {
        position: relative;
        left: auto;
        top: auto;
        width: 76%;
        min-width: 0;
        max-width: 280px;
        margin: 0 auto;
        order: 1;
    }

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

    .section {
        padding: 56px 0;
    }

    .feature-card,
    .pricing-card,
    .payment-card,
    .cta-card {
        border-radius: 20px;
    }

    .payment-card {
        padding: 22px;
    }

    .phone-frame {
        border-radius: 30px;
        padding: 8px;
    }

    .phone-frame::before {
        width: 84px;
        height: 16px;
    }

    .phone-frame img {
        border-radius: 22px;
    }
}

/* =========================================================
   KFOODY - LANDING: INTEGRAÇÕES, PLANO ÚNICO E WHATSAPP
   ========================================================= */

.btn-whatsapp {
    background: #e8f8ef;
    border-color: #b9e8cd;
    color: #137a43;
}

.btn-whatsapp:hover {
    background: #d7f4e4;
    border-color: #89d9ae;
}

.hero-more-link {
    display: inline-flex;
    align-items: center;
    align-self: center;
    min-height: 48px;
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 600;
}

.hero-more-link:hover {
    color: var(--primary);
}

/* NFC-e: cartão de destaque da funcionalidade */
.fiscal-card {
    width: min(100%, 470px);
    padding: 28px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 24px;
    box-shadow: var(--shadow-md);
}

.fiscal-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}

.fiscal-card-title {
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 600;
}

.fiscal-card-heading {
    margin-top: 18px;
    color: var(--text);
    font-size: 40px;
    line-height: 1.1;
    font-weight: 800;
    letter-spacing: -0.04em;
}

.fiscal-card-description {
    margin: 9px 0 22px;
    color: var(--text-secondary);
    font-size: 15px;
    line-height: 1.5;
}

.fiscal-feature-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 13px 0;
    border-top: 1px solid var(--border);
    color: var(--text);
    font-size: 15px;
}

.fiscal-check {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 25px;
    height: 25px;
    border-radius: 50%;
    background: var(--success-soft);
    color: #15803d;
    font-weight: 700;
}

.marketplace-disclaimer {
    font-size: 14px !important;
    line-height: 1.5;
}

.marketplace-panel {
    width: 100%;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 28px;
    box-shadow: var(--shadow-md);
}

.marketplace-panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.marketplace-panel-title {
    font-size: 21px;
    font-weight: 700;
}

.module-pill {
    background: #e8f8ef;
    color: #137a43;
    border: 1px solid #b9e8cd;
    border-radius: 999px;
    padding: 7px 11px;
    font-size: 12px;
    font-weight: 700;
}

.marketplace-brand-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.marketplace-brand-card {
    display: flex;
    align-items: center;
    flex-direction: column;
    justify-content: center;
    text-align: center;
    gap: 13px;
    min-height: 155px;
    padding: 20px 10px;
    background: #fbfcff;
    border: 1px solid var(--border);
    border-radius: 16px;
}

.marketplace-brand-card strong {
    font-size: clamp(25px, 3vw, 35px);
    letter-spacing: -0.05em;
}

.marketplace-brand-aiqfome {
    color: #8427b8;
}

.marketplace-brand-ifood {
    color: #ea1d2c;
}

/* Situação das integrações */
.integration-status {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 11px;
    border-radius: 999px;
    font-size: 12px !important;
    font-weight: 700;
    line-height: 1.3;
}

.integration-status-ready {
    background: #e8f8ef;
    color: #137a43 !important;
    border: 1px solid #b9e8cd;
}


.marketplace-brand-card span,
.marketplace-panel-footnote {
    color: var(--text-secondary);
    font-size: 13px;
    line-height: 1.5;
}

.marketplace-panel-footnote {
    margin: 18px 0 0;
    text-align: center;
}

.payment-card-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 21px;
    font-weight: 800;
    letter-spacing: -0.04em;
}

.pricing-primary-action {
    margin-top: 26px;
}

.pricing-contact-action {
    margin-top: 10px;
}

.pricing-note {
    margin: 20px 0 0;
    color: var(--text-secondary);
    font-size: 13px;
    line-height: 1.6;
}

.site-footer {
    padding: 38px 0 20px;
    border-top: 1px solid var(--border);
    background: #fff;
}

.site-footer-inner {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1.1fr;
    gap: 24px;
    align-items: start;
}

.site-footer-about p {
    max-width: 310px;
    margin: 14px 0 0;
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.5;
}

.site-footer-links,
.site-footer-contact {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 13px;
    padding-top: 6px;
    color: var(--text-secondary);
    font-size: 14px;
}

.site-footer-links a:hover,
.site-footer-contact a:hover {
    color: var(--primary);
}

.site-footer-contact strong {
    color: var(--text);
}

.site-footer-bottom {
    padding-top: 25px;
    margin-top: 28px;
    border-top: 1px solid var(--border);
    font-size: 12px;
    color: #788395;
}

.whatsapp-float {
    position: fixed;
    z-index: 100;
    bottom: max(22px, env(safe-area-inset-bottom));
    right: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background: #25d366;
    color: var(--white);
    border: 2px solid white;
    border-radius: 999px;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.22);
    transition: background 0.2s ease, transform 0.2s ease;
}

.whatsapp-float:hover {
    background: #1eaf54;
    transform: translateY(-2px);
}

.whatsapp-float:focus-visible,
.btn:focus-visible,
.site-footer a:focus-visible {
    outline: 3px solid #0f172a;
    outline-offset: 3px;
}

@media (max-width: 820px) {
    .site-footer-inner {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {

    /* Evita que o cabeçalho de três botões ocupe a tela enquanto se rola a página */
    .site-header {
        position: relative;
    }

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

    .site-nav .btn {
        width: 100%;
        padding: 0 10px;
        min-height: 44px;
        font-size: 14px;
    }

    .site-nav .btn-primary {
        grid-column: 1 / -1;
    }

    .hero-more-link {
        justify-content: center;
    }

    .marketplace-panel {
        padding: 18px;
    }

    .fiscal-card {
        padding: 20px;
    }

    .marketplace-brand-grid {
        grid-template-columns: 1fr;
    }

    .marketplace-brand-card {
        min-height: 112px;
    }

    .site-footer-inner {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .whatsapp-float {
        right: 16px;
        bottom: max(16px, env(safe-area-inset-bottom));
        width: 54px;
        height: 54px;
    }
}