:root {
    --primary: #5a30f0;
    --primary-strong: #7b4dff;
    --primary-soft: rgba(90, 48, 240, 0.12);
    --primary-soft-strong: rgba(90, 48, 240, 0.18);
    --primary-glow: rgba(90, 48, 240, 0.3);
    --secondary: #00b894;
    --secondary-soft: rgba(0, 184, 148, 0.15);
    --dark: #1f1f2e;
    --light: #f5f7fb;
    --text: #353553;
    --text-light: #6b6b8a;
    --radius: 18px;
    --shadow: 0 30px 60px rgba(31, 31, 46, 0.12);
    font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

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

body {
    margin: 0;
    background: var(--light);
    color: var(--text);
    font-family: inherit;
}

.offline-notice {
    background: #fff4d6;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    color: #8a6100;
    padding: 12px 5vw;
    text-align: center;
    font-size: 0.95rem;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

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

a.button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, var(--primary), var(--primary-strong, var(--secondary)));
    color: white;
    padding: 14px 26px;
    border-radius: 999px;
    font-weight: 600;
    box-shadow: var(--shadow);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

a.button:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 40px var(--primary-glow, rgba(90, 48, 240, 0.3));
}

.container {
    width: min(1100px, 92vw);
    margin: 0 auto;
}

body > header {
    position: sticky;
    top: 0;
    z-index: 10;
    background: rgba(245, 247, 251, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(53, 53, 83, 0.08);
}

body > header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 0;
}

.logo {
    font-size: 22px;
    font-weight: 800;
    color: var(--dark);
}

.hero {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    align-items: center;
    gap: 40px;
    padding: 120px 0 80px;
}

.hero-text span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    border-radius: 999px;
    background: var(--primary-soft, rgba(90, 48, 240, 0.12));
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 18px;
}

.hero-text h1 {
    font-size: clamp(2.4rem, 4vw, 3.6rem);
    color: var(--dark);
    margin-bottom: 18px;
}

.hero-text p {
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--text-light);
    margin-bottom: 32px;
}

.hero img {
    width: 100%;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.section {
    padding: 96px 0;
}

.section .section-header {
    text-align: center;
    max-width: 720px;
    margin: 0 auto 48px;
}

.section .section-header h2 {
    font-size: clamp(2rem, 3vw, 2.6rem);
    color: var(--dark);
    margin-bottom: 12px;
}

.section .section-header p {
    color: var(--text-light);
    font-size: 1rem;
}

.steps {
    display: grid;
    gap: 24px;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.step-card {
    background: #fff;
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: var(--shadow);
}

.step-card strong {
    font-size: 34px;
    display: block;
    color: var(--primary);
    margin-bottom: 16px;
}

.step-card h3 {
    margin: 0 0 12px;
    font-size: 1.3rem;
    color: var(--dark);
}

.features-grid {
    display: grid;
    gap: 24px;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.feature-card {
    background: #fff;
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: var(--shadow);
    position: relative;
}

.feature-card span {
    font-size: 32px;
    display: block;
    margin-bottom: 12px;
}

.feature-card h3 {
    margin: 0 0 12px;
    color: var(--dark);
}

.feature-card p {
    color: var(--text-light);
}

.testimonials {
    display: grid;
    gap: 24px;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}

.testimonial {
    background: #fff;
    border-radius: var(--radius);
    padding: 28px;
    box-shadow: var(--shadow);
}

.testimonial blockquote {
    margin: 0 0 18px;
    color: var(--text);
    font-size: 1.05rem;
    line-height: 1.6;
}

.testimonial .author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.testimonial img {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    object-fit: cover;
}

.faq {
    max-width: 780px;
    margin: 0 auto;
}

.faq details {
    background: #fff;
    border-radius: var(--radius);
    padding: 20px 24px;
    box-shadow: var(--shadow);
    margin-bottom: 18px;
}

.faq summary {
    cursor: pointer;
    font-weight: 600;
    color: var(--dark);
}

.contact-grid {
    display: grid;
    gap: 20px;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.contact-card {
    background: #fff;
    border-radius: var(--radius);
    padding: 20px 24px;
    box-shadow: var(--shadow);
}

.contact-card strong {
    font-size: 1.2rem;
    color: var(--dark);
}

footer {
    background: #10101a;
    color: rgba(255, 255, 255, 0.8);
    padding: 48px 0;
    text-align: center;
}

footer p {
    margin: 8px 0;
    font-size: 0.95rem;
}

.hero::before,
.cta::before {
    content: "";
    position: absolute;
    inset: -60px;
    background: radial-gradient(circle at top left, var(--primary-soft-strong, rgba(90, 48, 240, 0.18)), transparent 65%);
    z-index: -1;
}

.cta {
    position: relative;
    background: #fff;
    border-radius: var(--radius);
    padding: 56px;
    box-shadow: var(--shadow);
    text-align: center;
}

.cta h2 {
    margin: 0 0 18px;
    font-size: clamp(2rem, 4vw, 2.8rem);
    color: var(--dark);
}

.cta p {
    color: var(--text-light);
    margin-bottom: 24px;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    border-radius: 999px;
    background: var(--secondary-soft, rgba(0, 184, 148, 0.15));
    color: var(--secondary);
    font-weight: 600;
}

@media (max-width: 768px) {
    body > header .container {
        flex-direction: column;
        gap: 12px;
    }

    .hero {
        padding-top: 80px;
    }

    .cta {
        padding: 36px;
    }
}

html.has-modal,
body.has-modal {
    overflow: hidden;
}

.schedule-modal,
.schedule-modal__dialog {
    overscroll-behavior: contain;
}

.schedule-modal {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(17, 24, 39, 0.55);
    backdrop-filter: blur(4px);
    z-index: 60;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    touch-action: none;
}

.schedule-modal.is-open {
    opacity: 1;
    visibility: visible;
}

.schedule-modal__backdrop {
    position: absolute;
    inset: 0;
}

.schedule-modal__dialog {
    position: relative;
    background: #fff;
    border-radius: 18px;
    width: min(520px, 100%);
    max-height: 90vh;
    overflow-y: auto;
    padding: 36px;
    box-shadow: 0 35px 60px rgba(17, 24, 39, 0.25);
    z-index: 1;
    touch-action: pan-y;
}

.schedule-modal__close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: none;
    border: none;
    font-size: 28px;
    color: var(--text-light);
    cursor: pointer;
    transition: color 0.2s ease;
}

.schedule-modal__close:hover {
    color: var(--primary);
}

.schedule-modal__header {
    margin-bottom: 18px;
}

.schedule-modal__header h3 {
    margin: 0 0 12px;
    font-size: 1.8rem;
    color: var(--primary);
}

.schedule-modal__header p {
    margin: 0;
    color: var(--text-light);
    line-height: 1.5;
    font-size: 0.98rem;
}

.schedule-form {
    display: grid;
    gap: 18px;
}

.schedule-form__row {
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.schedule-form__field label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 6px;
    color: var(--text);
}

.schedule-form__field input,
.schedule-form__field select,
.schedule-form__field textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid rgba(53, 53, 83, 0.16);
    border-radius: 12px;
    font-size: 1rem;
    background: #fdfdff;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.schedule-form__field input:focus,
.schedule-form__field select:focus,
.schedule-form__field textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(90, 48, 240, 0.16);
}

.schedule-form__field input[readonly] {
    background: rgba(245, 247, 251, 0.8);
}

.schedule-form__field--small {
    max-width: 140px;
}

.schedule-form__field--tiny {
    max-width: 100px;
}

.schedule-form__info {
    font-size: 0.9rem;
    color: var(--primary);
    cursor: help;
}

.schedule-form__note {
    margin: 6px 0 0;
    font-size: 0.85rem;
    color: var(--text-light);
}

.schedule-form__callout {
    font-size: 0.9rem;
    background: rgba(90, 48, 240, 0.08);
    border-left: 4px solid var(--primary);
    padding: 12px 16px;
    border-radius: 12px;
    color: var(--text);
}

.schedule-form__feedback {
    font-size: 0.92rem;
    padding: 12px 14px;
    border-radius: 12px;
    border: 1px solid transparent;
}

.schedule-form__feedback--success {
    background: rgba(0, 184, 148, 0.12);
    border-color: rgba(0, 184, 148, 0.35);
    color: #047857;
}

.schedule-form__feedback:not(.schedule-form__feedback--success) {
    background: rgba(239, 68, 68, 0.1);
    border-color: rgba(239, 68, 68, 0.4);
    color: #b91c1c;
}

.schedule-form__submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 22px;
    border-radius: 999px;
    border: none;
    cursor: pointer;
    background: linear-gradient(135deg, var(--primary), var(--primary-strong));
    color: white;
    font-weight: 600;
    font-size: 1rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.schedule-form__submit:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 16px 30px rgba(90, 48, 240, 0.25);
}

.schedule-form__submit:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.schedule-form__spinner {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.4);
    border-top-color: #fff;
    animation: schedule-spin 0.8s linear infinite;
    visibility: hidden;
}

.schedule-form__submit.is-loading .schedule-form__spinner {
    visibility: visible;
}

@keyframes schedule-spin {
    to {
        transform: rotate(360deg);
    }
}

.pix-payment {
    background: #fff;
    border-radius: 18px;
    padding: 20px;
    box-shadow: var(--shadow);
    display: grid;
    gap: 14px;
}

.pix-payment__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.pix-payment__header h4 {
    margin: 0;
}

.pix-payment__amount {
    font-weight: 700;
    color: var(--primary);
}

.pix-payment__body {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 16px;
    align-items: start;
}

.pix-payment__qr {
    background: #fff;
    border: 1px solid rgba(53, 53, 83, 0.12);
    border-radius: 14px;
    padding: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: clamp(140px, 30vw, 180px);
}

.pix-payment__qr img {
    display: block;
    width: clamp(120px, 42vw, 170px);
    max-width: 100%;
    max-height: clamp(120px, 42vw, 170px);
    image-rendering: -moz-crisp-edges;
    image-rendering: pixelated;
    background: #fff;
}

@media (max-width: 480px) {
    .pix-payment__qr {
        padding: 6px;
        min-height: 130px;
    }

    .pix-payment__qr img {
        width: clamp(100px, 60vw, 150px);
        max-height: clamp(100px, 60vw, 150px);
    }
}

.pix-payment__modal {
    position: fixed;
    inset: 0;
    background: rgba(14, 14, 33, 0.5);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 16px;
    z-index: 9999;
}

.pix-payment__modal.is-visible {
    display: flex;
}

.pix-payment__modal-content {
    background: #fff;
    border-radius: 16px;
    padding: 14px;
    max-width: min(480px, 96vw);
    box-shadow: 0 18px 36px rgba(17, 24, 39, 0.25);
    position: relative;
}

.pix-payment__modal-close {
    position: absolute;
    top: 10px;
    right: 10px;
    background: transparent;
    border: none;
    color: #111;
    font-size: 22px;
    cursor: pointer;
}

.pix-payment__modal img {
    display: block;
    width: min(360px, 84vw);
    max-width: 100%;
    height: auto;
    image-rendering: -moz-crisp-edges;
    image-rendering: pixelated;
}

.pix-payment__details textarea {
    width: 100%;
    min-height: 160px;
    padding: 12px;
    border: 1px solid rgba(53, 53, 83, 0.16);
    border-radius: 12px;
    font-family: 'JetBrains Mono', 'Fira Code', 'SFMono-Regular', Consolas, monospace;
    font-size: 0.95rem;
    background: #fdfdff;
}

.pix-payment__actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 10px;
}

.pix-payment__status[data-state='success'] {
    color: #047857;
}

.pix-payment__status[data-state='error'] {
    color: #b91c1c;
}

.pix-payment__status[data-state='warning'] {
    color: #92400e;
}
