/* ============================================================
   ERP DELMAT — Landing Page
   Design System + Components + Responsive
   ============================================================ */

/* === Reset === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* === Design Tokens === */
:root {
    --bg-white: #ffffff;
    --bg-subtle: #f9fafb;
    --bg-dark: #0a0a0f;

    --text-primary: #0a0a0f;
    --text-secondary: #4b5563;
    --text-muted: #9ca3af;
    --text-inverse: #ffffff;

    --border-subtle: #e5e7eb;
    --border-strong: #d1d5db;

    --accent: #00349A;
    --accent-hover: #1D4ED8;
    --accent-soft: #eaf1fe;

    --success: #059669;
    --warning: #d97706;

    --max-width: 1200px;

    --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
}

/* === Base === */
html { scroll-behavior: smooth; }

body {
    font-family: var(--font-sans);
    color: var(--text-primary);
    line-height: 1.6;
    background: var(--bg-white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
button { font-family: inherit; }

/* === Utilities === */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
}

.section-padding {
    padding: 120px 0;
}

.text-center { text-align: center; }
.text-accent { color: var(--accent); }
.text-secondary { color: var(--text-secondary); }
.text-muted { color: var(--text-muted); }
.fw-600 { font-weight: 600; }
.fw-700 { font-weight: 700; }

/* === Typography === */
.h1 {
    font-size: 64px;
    font-weight: 700;
    line-height: 1.1;
    color: var(--text-primary);
    letter-spacing: -0.02em;
}

.h2 {
    font-size: 44px;
    font-weight: 700;
    line-height: 1.2;
    color: var(--text-primary);
    letter-spacing: -0.01em;
}

.h3 {
    font-size: 28px;
    font-weight: 600;
    line-height: 1.3;
    color: var(--text-primary);
}

.h4 {
    font-size: 20px;
    font-weight: 600;
    line-height: 1.4;
    color: var(--text-primary);
}

.body-lg {
    font-size: 18px;
    line-height: 1.6;
    color: var(--text-secondary);
}

.body {
    font-size: 16px;
    line-height: 1.6;
}

.body-sm {
    font-size: 14px;
    line-height: 1.5;
}

.label {
    font-size: 13px;
    font-weight: 600;
    line-height: 1.4;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-muted);
}

/* === Badge === */
.badge {
    display: inline-block;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 6px 14px;
    border-radius: 99px;
    background: #f3f4f6;
    color: var(--text-secondary);
}

.badge--accent {
    background: var(--accent-soft);
    color: var(--accent);
}

.badge--dark {
    background: rgba(255,255,255,0.08);
    color: rgba(255,255,255,0.7);
}

/* === Buttons === */
.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: var(--accent);
    color: var(--text-inverse);
    font-weight: 600;
    font-size: 16px;
    padding: 16px 32px;
    border-radius: 8px;
    border: none;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.15s ease;
    min-height: 48px;
}

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

.btn-primary--lg {
    font-size: 17px;
    padding: 18px 36px;
}

.btn-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: transparent;
    color: var(--text-primary);
    font-weight: 600;
    font-size: 16px;
    padding: 16px 32px;
    border-radius: 8px;
    border: 1px solid var(--border-subtle);
    text-decoration: none;
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease;
    min-height: 48px;
}

.btn-outline:hover {
    background: var(--bg-subtle);
    border-color: var(--border-strong);
}

/* === Cards === */
.card {
    background: var(--bg-white);
    border: 1px solid var(--border-subtle);
    border-radius: 12px;
    padding: 32px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

.card--accent-top {
    border-top: 4px solid var(--accent);
}

/* ============================================================
   SECTION 0 — Top Bar
   ============================================================ */
.topbar {
    background: var(--bg-dark);
    color: var(--text-inverse);
    text-align: center;
    padding: 12px 24px;
    font-size: 14px;
    line-height: 1.4;
}

.topbar a {
    color: var(--accent);
    text-decoration: none;
    font-weight: 600;
}

.topbar a:hover { text-decoration: underline; }

/* ============================================================
   STICKY HEADER
   ============================================================ */
.site-header {
    position: sticky;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1500;
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-subtle);
    padding: 0 24px;
}

.site-header__inner {
    max-width: var(--max-width);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
    gap: 32px;
}

.site-header__logo img {
    height: 32px;
    width: auto;
}

.site-header__nav {
    display: flex;
    align-items: center;
    gap: 32px;
    list-style: none;
}

.site-header__nav a {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.15s;
}

.site-header__nav a:hover { color: var(--text-primary); }

.site-header__actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.site-header__login {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 6px;
    transition: background 0.15s;
    background: none;
    border: none;
    cursor: pointer;
}

.site-header__login:hover { background: var(--bg-subtle); }

.site-header__cta {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    background: transparent;
    border: 1px solid var(--border-subtle);
    padding: 8px 20px;
    border-radius: 6px;
    text-decoration: none;
    transition: background 0.15s, border-color 0.15s;
}

.site-header__cta:hover { background: var(--bg-subtle); border-color: var(--accent); color: var(--accent); }

.site-header__buy {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-inverse);
    background: var(--accent);
    padding: 8px 20px;
    border-radius: 6px;
    text-decoration: none;
    border: 1px solid var(--accent);
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s;
    font-family: inherit;
}

.site-header__buy:hover { background: var(--accent-hover); border-color: var(--accent-hover); }

/* ============================================================
   SECTION 1 — Hero
   ============================================================ */
.hero {
    background: var(--bg-white);
    padding: 120px 0 80px;
}

.hero__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}

.hero__badge { margin-bottom: 24px; }

.hero__title {
    font-size: 52px;
    font-weight: 700;
    line-height: 1.12;
    color: var(--text-primary);
    letter-spacing: -0.02em;
    margin-bottom: 24px;
}

.hero__subtitle {
    font-size: 18px;
    line-height: 1.6;
    color: var(--text-secondary);
    margin-bottom: 32px;
    max-width: 520px;
}

.hero__ctas {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.hero__whatsapp-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
    color: var(--text-secondary);
    text-decoration: none;
}

.hero__whatsapp-link:hover { color: var(--text-primary); }

.hero__whatsapp-link svg {
    width: 20px;
    height: 20px;
    fill: #25d366;
}

.hero__micro {
    margin-top: 16px;
    font-size: 14px;
    color: var(--text-muted);
}

.hero__media {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border-subtle);
    box-shadow: 0 4px 24px rgba(0,0,0,0.08);
    aspect-ratio: 1440 / 782;
    background: var(--bg-subtle);
}

.hero__media video,
.hero__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.hero__media .video-zoom-badge {
    position: absolute;
    right: 12px;
    bottom: 12px;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 99px;
    background: rgba(0,0,0,0.6);
    color: var(--text-inverse);
    font-size: 12px;
    font-weight: 600;
    pointer-events: none;
    backdrop-filter: blur(4px);
}

/* ============================================================
   SECTION 2 — Social Proof Logos
   ============================================================ */
.logos {
    padding: 48px 0 64px;
    background: var(--bg-white);
}

.logos__label {
    text-align: center;
    margin-bottom: 32px;
}

.logos__strip {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 64px;
    flex-wrap: wrap;
}

.logos__item {
    height: 48px;
    width: auto;
    filter: grayscale(100%) opacity(0.5);
    transition: filter 0.3s ease;
}

.logos__item:hover {
    filter: grayscale(0%) opacity(1);
}

.logos__item--featured {
    height: 56px;
}

/* ============================================================
   SECTION 3 — Pain Points
   ============================================================ */
.pain {
    background: var(--bg-subtle);
}

.pain__header {
    text-align: center;
    margin-bottom: 64px;
}

.pain__header .badge { margin-bottom: 20px; }

.pain__title {
    font-size: 44px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 0;
}

.pain__title span {
    display: block;
    font-size: 40px;
    color: var(--text-secondary);
}

.pain__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.pain__card {
    background: var(--bg-white);
    border: 1px solid var(--border-subtle);
    border-radius: 12px;
    padding: 32px;
    border-top: 4px solid var(--accent);
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

.pain__card h3 {
    font-size: 18px;
    font-weight: 700;
    line-height: 1.3;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.pain__card p {
    font-size: 15px;
    line-height: 1.6;
    color: var(--text-secondary);
}

/* ============================================================
   SECTION 4 — Authority / DELMAT Story
   ============================================================ */
.authority {
    background: var(--bg-white);
}

.authority__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.authority__badge { margin-bottom: 20px; }

.authority__title {
    font-size: 40px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 32px;
}

.authority__text p {
    font-size: 17px;
    line-height: 1.7;
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.authority__text p:last-child { margin-bottom: 0; }

.authority__highlight {
    font-weight: 600;
    color: var(--accent);
}

.authority__photo {
    border-radius: 16px;
    overflow: hidden;
    background: var(--bg-subtle);
    aspect-ratio: 4 / 5;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border-subtle);
}

.authority__photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.authority__photo-placeholder {
    color: var(--text-muted);
    font-size: 14px;
    font-style: italic;
    text-align: center;
    padding: 20px;
}

/* ============================================================
   SECTION 5 — Features (4 alternating blocks)
   ============================================================ */
.features {
    background: var(--bg-white);
}

.features__header {
    text-align: center;
    margin-bottom: 96px;
}

.features__header .h2 { margin-bottom: 16px; }

.features__header .body-lg {
    max-width: 680px;
    margin: 0 auto;
}

.feature-block {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.feature-block + .feature-block {
    margin-top: 96px;
}

.feature-block--reverse .feature-block__text { order: 2; }
.feature-block--reverse .feature-block__media { order: 1; }

.feature-block__badge { margin-bottom: 16px; }

.feature-block__title {
    font-size: 28px;
    font-weight: 700;
    line-height: 1.3;
    color: var(--text-primary);
    margin-bottom: 16px;
}

.feature-block__desc {
    font-size: 16px;
    line-height: 1.7;
    color: var(--text-secondary);
}

.feature-block__media {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border-subtle);
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    aspect-ratio: 1440 / 782;
    background: var(--bg-subtle);
    cursor: zoom-in;
}

.feature-block__media video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.feature-block__media .video-zoom-badge {
    position: absolute;
    right: 12px;
    bottom: 12px;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 99px;
    background: rgba(0,0,0,0.6);
    color: var(--text-inverse);
    font-size: 12px;
    font-weight: 600;
    pointer-events: none;
    backdrop-filter: blur(4px);
}

/* ============================================================
   SECTION 6 — Catalog
   ============================================================ */
.catalog {
    background: var(--bg-subtle);
}

.catalog__header {
    text-align: center;
    margin-bottom: 48px;
}

.catalog__header .badge { margin-bottom: 20px; }
.catalog__header .h2 { margin-bottom: 16px; }

.catalog__header p {
    font-size: 17px;
    line-height: 1.7;
    color: var(--text-secondary);
    max-width: 640px;
    margin: 0 auto;
}

.catalog__number {
    text-align: center;
    margin-bottom: 48px;
}

.catalog__number strong {
    display: block;
    font-size: 72px;
    font-weight: 800;
    color: var(--accent);
    line-height: 1;
    letter-spacing: -0.02em;
}

.catalog__number span {
    display: block;
    margin-top: 8px;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-muted);
}

.catalog__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.catalog__card {
    background: var(--bg-white);
    border: 1px solid var(--border-subtle);
    border-radius: 12px;
    padding: 28px;
}

.catalog__card h4 {
    font-size: 16px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.catalog__card p {
    font-size: 14px;
    line-height: 1.5;
    color: var(--text-secondary);
}

/* ============================================================
   SECTION 7 — Testimonials
   ============================================================ */
.testimonials {
    background: var(--bg-white);
}

.testimonials__header {
    text-align: center;
    margin-bottom: 48px;
}

.testimonials__header .h2 { margin-bottom: 8px; }

.testimonials__vsl {
    max-width: 720px;
    margin: 0 auto 64px;
    border-radius: 12px;
    overflow: hidden;
    background: var(--bg-dark);
    aspect-ratio: 16 / 9;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border-subtle);
}

.testimonials__vsl video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.testimonials__vsl-placeholder {
    color: var(--text-muted);
    font-size: 14px;
    font-style: italic;
}

.testimonials__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    max-width: 900px;
    margin: 0 auto;
}

.testimonial-card {
    background: var(--bg-white);
    border: 1px solid var(--border-subtle);
    border-radius: 16px;
    padding: 40px;
}

.testimonial-card__photo {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--bg-subtle);
    overflow: hidden;
    margin-bottom: 20px;
    border: 2px solid var(--border-subtle);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: var(--text-muted);
}

.testimonial-card__photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.testimonial-card__quote {
    font-size: 18px;
    font-weight: 600;
    line-height: 1.5;
    color: var(--text-primary);
    margin-bottom: 16px;
    font-style: normal;
}

.testimonial-card__name {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 2px;
}

.testimonial-card__role {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 16px;
}

.testimonial-card__body {
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-secondary);
}

/* ============================================================
   SECTION 8 — Comparison Table
   ============================================================ */
.comparison {
    background: var(--bg-white);
}

.comparison__header {
    text-align: center;
    margin-bottom: 64px;
}

.comparison__header .h2 { margin-bottom: 12px; }

.comparison__table-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 0 -24px;
    padding: 0 24px;
}

.comparison__table {
    width: 100%;
    border-collapse: collapse;
    min-width: 700px;
    font-size: 15px;
}

.comparison__table thead th {
    background: var(--bg-dark);
    color: var(--text-inverse);
    font-size: 14px;
    font-weight: 600;
    text-align: left;
    padding: 16px 20px;
}

.comparison__table thead th:first-child {
    border-radius: 8px 0 0 0;
}

.comparison__table thead th:last-child {
    border-radius: 0 8px 0 0;
    background: var(--accent);
}

.comparison__table tbody td {
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-subtle);
    vertical-align: middle;
}

.comparison__table tbody td:first-child {
    font-weight: 600;
    color: var(--text-primary);
}

.comparison__table tbody td:last-child {
    background: var(--accent-soft);
    font-weight: 600;
    border-left: 3px solid var(--accent);
}

.comparison__table .icon-check {
    color: var(--success);
    font-weight: 700;
    font-size: 18px;
}

.comparison__table .icon-x {
    color: var(--text-muted);
    font-size: 18px;
}

/* ============================================================
   SECTION 9 — Pricing
   ============================================================ */
.pricing {
    background: var(--bg-subtle);
}

.pricing__header {
    text-align: center;
    margin-bottom: 48px;
}

.pricing__header .h2 { margin-bottom: 12px; }

.pricing__card {
    max-width: 520px;
    margin: 0 auto;
    background: var(--bg-white);
    border: 2px solid var(--accent);
    border-radius: 20px;
    padding: 48px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.06);
    text-align: center;
}

.pricing__card .badge {
    margin-bottom: 24px;
}

.pricing__amount {
    font-size: 56px;
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1;
    letter-spacing: -0.02em;
}

.pricing__amount span {
    font-size: 20px;
    font-weight: 400;
    color: var(--text-muted);
}

.pricing__amount-label {
    font-size: 14px;
    color: var(--text-muted);
    margin-top: 8px;
    margin-bottom: 24px;
}

.pricing__divider {
    border: none;
    border-top: 1px solid var(--border-subtle);
    margin: 24px 0;
}

.pricing__setup {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.pricing__setup-label {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 24px;
}

.pricing__features {
    list-style: none;
    text-align: left;
    margin-bottom: 32px;
}

.pricing__features li {
    font-size: 15px;
    line-height: 1.5;
    padding: 8px 0;
    color: var(--text-primary);
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.pricing__features li::before {
    content: '✓';
    color: var(--success);
    font-weight: 700;
    flex-shrink: 0;
}

.pricing__card .btn-primary {
    width: 100%;
    margin-bottom: 0;
}

.pricing__anchor {
    text-align: center;
    margin-top: 24px;
    font-size: 14px;
    color: var(--text-muted);
    max-width: 520px;
    margin-left: auto;
    margin-right: auto;
}

/* ============================================================
   SECTION 10 — Onboarding Timeline
   ============================================================ */
.onboarding {
    background: var(--bg-white);
}

.onboarding__header {
    text-align: center;
    margin-bottom: 80px;
}

.onboarding__header .h2 { margin-bottom: 12px; }

.onboarding__timeline {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
    position: relative;
}

.onboarding__timeline::before {
    content: '';
    position: absolute;
    top: 40px;
    left: 60px;
    right: 60px;
    height: 2px;
    background: var(--border-subtle);
}

.onboarding__step {
    text-align: center;
    position: relative;
}

.onboarding__number {
    font-size: 56px;
    font-weight: 800;
    color: var(--accent);
    line-height: 1;
    margin-bottom: 16px;
}

.onboarding__step h4 {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.onboarding__step p {
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-secondary);
}

/* ============================================================
   SECTION 11 — FAQ Accordion
   ============================================================ */
.faq {
    background: var(--bg-white);
}

.faq__header {
    text-align: center;
    margin-bottom: 48px;
}

.faq__list {
    max-width: 800px;
    margin: 0 auto;
}

.faq__item {
    border-bottom: 1px solid var(--border-subtle);
}

.faq__item summary {
    font-size: 17px;
    font-weight: 600;
    color: var(--text-primary);
    padding: 24px 40px 24px 0;
    cursor: pointer;
    list-style: none;
    position: relative;
    -webkit-user-select: none;
    user-select: none;
}

.faq__item summary::-webkit-details-marker { display: none; }

.faq__item summary::after {
    content: '+';
    position: absolute;
    right: 0;
    top: 24px;
    font-size: 22px;
    font-weight: 400;
    color: var(--text-muted);
    transition: transform 0.2s ease;
}

.faq__item[open] summary::after {
    content: '\2212';
}

.faq__item .faq__answer {
    font-size: 15px;
    line-height: 1.7;
    color: var(--text-secondary);
    padding: 0 40px 24px 0;
}

/* ============================================================
   SECTION 12 — CTA Final
   ============================================================ */
.cta-final {
    background: var(--bg-dark);
    color: var(--text-inverse);
}

.cta-final__header {
    text-align: center;
    margin-bottom: 48px;
}

.cta-final__header .h2 {
    color: var(--text-inverse);
    margin-bottom: 12px;
}

.cta-final__header .body-lg {
    color: rgba(255,255,255,0.6);
}

/* Qualification */
.qualification {
    max-width: 560px;
    margin: 0 auto 48px;
}

.qualification__question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 0;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    font-size: 15px;
    color: rgba(255,255,255,0.85);
}

.qualification__options {
    display: flex;
    gap: 12px;
}

.qualification__option {
    padding: 6px 20px;
    border-radius: 99px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    border: 1px solid rgba(255,255,255,0.2);
    background: transparent;
    color: rgba(255,255,255,0.7);
    transition: all 0.15s;
}

.qualification__option.is-selected {
    background: var(--accent);
    border-color: var(--accent);
    color: var(--text-inverse);
}

.qualification__option:hover:not(.is-selected) {
    border-color: rgba(255,255,255,0.4);
}

/* Demo form */
.demo-form {
    max-width: 480px;
    margin: 0 auto;
    display: none;
}

.demo-form.is-visible { display: block; }

.demo-form__field {
    margin-bottom: 16px;
}

.demo-form__label {
    font-size: 13px;
    font-weight: 600;
    color: rgba(255,255,255,0.6);
    display: block;
    margin-bottom: 6px;
}

.demo-form__input {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 8px;
    background: rgba(255,255,255,0.05);
    color: var(--text-inverse);
    font-size: 16px;
    font-family: var(--font-sans);
    transition: border-color 0.15s;
}

.demo-form__input::placeholder { color: rgba(255,255,255,0.3); }
.demo-form__input:focus {
    outline: none;
    border-color: var(--accent);
}

.demo-form .btn-primary {
    width: 100%;
    margin-top: 8px;
}

.demo-form__micro {
    text-align: center;
    margin-top: 16px;
    font-size: 14px;
    color: rgba(255,255,255,0.4);
}

.demo-form__whatsapp {
    text-align: center;
    margin-top: 32px;
    padding-top: 32px;
    border-top: 1px solid rgba(255,255,255,0.1);
    font-size: 15px;
    color: rgba(255,255,255,0.5);
}

.demo-form__whatsapp a {
    color: #25d366;
    text-decoration: none;
    font-weight: 600;
}

/* Rejection message */
.cta-final__reject {
    max-width: 480px;
    margin: 0 auto;
    text-align: center;
    display: none;
}

.cta-final__reject.is-visible { display: block; }

.cta-final__reject p {
    font-size: 15px;
    line-height: 1.6;
    color: rgba(255,255,255,0.6);
    margin-bottom: 24px;
}

.cta-final__reject input {
    width: 100%;
    max-width: 320px;
    padding: 14px 16px;
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 8px;
    background: rgba(255,255,255,0.05);
    color: var(--text-inverse);
    font-size: 16px;
    font-family: var(--font-sans);
    margin-bottom: 12px;
}

.cta-final__reject input::placeholder { color: rgba(255,255,255,0.3); }

/* Success */
.demo-form__success {
    text-align: center;
    display: none;
    padding: 32px 0;
}

.demo-form__success.is-visible { display: block; }

.demo-form__success p {
    font-size: 17px;
    color: rgba(255,255,255,0.7);
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
    background: var(--bg-dark);
    color: rgba(255,255,255,0.5);
    padding: 64px 0 32px;
    border-top: 1px solid rgba(255,255,255,0.08);
}

.site-footer__grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 48px;
}

.site-footer__brand img {
    height: 28px;
    width: auto;
    margin-bottom: 12px;
    filter: brightness(10);
}

.site-footer__brand p {
    font-size: 14px;
    color: rgba(255,255,255,0.4);
    line-height: 1.5;
}

.site-footer__col h4 {
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: rgba(255,255,255,0.6);
    margin-bottom: 16px;
}

.site-footer__col ul {
    list-style: none;
}

.site-footer__col li { margin-bottom: 8px; }

.site-footer__col a {
    font-size: 14px;
    color: rgba(255,255,255,0.4);
    text-decoration: none;
    transition: color 0.15s;
}

.site-footer__col a:hover { color: rgba(255,255,255,0.8); }

.site-footer__bottom {
    border-top: 1px solid rgba(255,255,255,0.08);
    padding-top: 24px;
    font-size: 13px;
    color: rgba(255,255,255,0.3);
    text-align: center;
}

/* ============================================================
   WHATSAPP FLOAT
   ============================================================ */
.whatsapp-float {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 900;
    width: 56px;
    height: 56px;
    background: #25d366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(0,0,0,0.2);
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    opacity: 0;
    pointer-events: none;
}

.whatsapp-float.is-visible {
    opacity: 1;
    pointer-events: auto;
}

.whatsapp-float:hover {
    transform: scale(1.08);
    box-shadow: 0 6px 24px rgba(0,0,0,0.3);
}

.whatsapp-float svg {
    width: 28px;
    height: 28px;
    fill: #fff;
}

/* ============================================================
   VIDEO MODAL
   ============================================================ */
.video-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 1000;
    background: rgba(0,0,0,0.92);
    backdrop-filter: blur(8px);
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.video-modal.is-open {
    display: flex;
}

.video-modal__dialog {
    position: relative;
    width: 100%;
    max-width: 960px;
}

.video-modal__close {
    position: absolute;
    top: -48px;
    right: 0;
    background: none;
    border: none;
    color: rgba(255,255,255,0.7);
    font-size: 32px;
    cursor: pointer;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.video-modal__close:hover { color: #fff; }

.video-modal__player {
    width: 100%;
    border-radius: 12px;
    background: #000;
}

/* ============================================================
   CHECKOUT MODAL
   ============================================================ */
.checkout-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 2000;
    background: rgba(8,15,24,0.92);
    backdrop-filter: blur(6px);
    overflow-y: auto;
    padding: 20px;
}

.checkout-modal.is-open { display: block; }

.checkout-modal__dialog {
    max-width: 520px;
    margin: 40px auto;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 25px 60px rgba(0,0,0,0.3);
    position: relative;
}

.checkout-modal__close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: none;
    border: none;
    font-size: 24px;
    color: var(--text-muted);
    cursor: pointer;
    width: 40px;
    height: 40px;
    line-height: 1;
}

.ck-steps {
    padding: 32px 32px 0;
    display: flex;
    gap: 8px;
}

.ck-step-dot {
    flex: 1;
    height: 4px;
    border-radius: 2px;
    background: var(--border-subtle);
}

.ck-step-dot.is-active {
    background: var(--accent);
}

.ck-step {
    padding: 24px 32px 32px;
}

.ck-step h3 {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.ck-step__subtitle {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 24px;
}

.ck-field {
    margin-bottom: 16px;
}

.ck-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
    display: block;
    margin-bottom: 4px;
}

.ck-input {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-subtle);
    border-radius: 8px;
    font-size: 15px;
    font-family: var(--font-sans);
    color: var(--text-primary);
    transition: border-color 0.15s;
}

.ck-input:focus {
    outline: none;
    border-color: var(--accent);
}

.ck-input-group {
    display: flex;
    align-items: center;
    border: 1px solid var(--border-subtle);
    border-radius: 8px;
    overflow: hidden;
}

.ck-input-group input {
    flex: 1;
    padding: 12px;
    border: none;
    font-size: 15px;
    font-family: var(--font-sans);
    color: var(--text-primary);
    outline: none;
}

.ck-input-group span {
    padding: 12px;
    background: var(--bg-subtle);
    color: var(--text-muted);
    font-size: 13px;
    white-space: nowrap;
}

.ck-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.ck-grid-3 {
    display: grid;
    grid-template-columns: 1fr 80px 1fr;
    gap: 12px;
}

.ck-errors {
    display: none;
    background: #FEF2F2;
    border: 1px solid #FECACA;
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 16px;
    font-size: 13px;
    color: #991B1B;
}

.ck-errors.is-visible { display: block; }

/* Payment tabs */
.ck-payment-tabs {
    display: flex;
    border: 1px solid var(--border-subtle);
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 24px;
}

.ck-payment-tab {
    flex: 1;
    padding: 12px;
    font-size: 14px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    background: var(--bg-subtle);
    color: var(--text-primary);
    transition: all 0.15s;
}

.ck-payment-tab.is-active {
    background: var(--accent);
    color: var(--text-inverse);
}

/* PIX */
.ck-pix-loading {
    text-align: center;
    padding: 40px 0;
}

.ck-pix-qr {
    width: 220px;
    height: 220px;
    margin: 0 auto 16px;
    display: block;
    border: 1px solid var(--border-subtle);
    border-radius: 12px;
}

.ck-pix-copy {
    position: relative;
}

.ck-pix-copy input {
    width: 100%;
    padding: 12px 80px 12px 12px;
    border: 1px solid var(--border-subtle);
    border-radius: 8px;
    font-size: 12px;
    background: var(--bg-subtle);
    color: var(--text-primary);
    font-family: var(--font-sans);
}

.ck-pix-copy button {
    position: absolute;
    right: 4px;
    top: 4px;
    padding: 8px 16px;
    background: var(--accent);
    color: var(--text-inverse);
    border: none;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
}

/* Provisioning */
.ck-provision-progress {
    margin-top: 16px;
    background: var(--accent-soft);
    border-radius: 8px;
    padding: 12px;
    overflow: hidden;
}

.ck-provision-bar-track {
    height: 4px;
    background: var(--border-subtle);
    border-radius: 2px;
    overflow: hidden;
}

.ck-provision-bar {
    height: 100%;
    width: 10%;
    background: var(--accent);
    border-radius: 2px;
    transition: width 2s ease;
}

.ck-success-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--success);
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.ck-spinner {
    border: 3px solid var(--border-subtle);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: ck-spin 0.8s linear infinite;
}

/* ============================================================
   LOGIN MODAL
   ============================================================ */
.login-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 2500;
    background: rgba(8,15,24,0.92);
    backdrop-filter: blur(6px);
    align-items: center;
    justify-content: center;
}

.login-modal.is-open { display: flex; }

.login-modal__dialog {
    background: #fff;
    border-radius: 16px;
    padding: 32px;
    width: 90%;
    max-width: 420px;
    box-shadow: 0 24px 64px rgba(0,0,0,0.3);
    position: relative;
}

.login-modal__close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: var(--text-muted);
    line-height: 1;
    width: 32px;
    height: 32px;
}

.login-modal__header {
    text-align: center;
    margin-bottom: 24px;
}

.login-modal__header h2 {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.login-modal__header p {
    font-size: 14px;
    color: var(--text-muted);
}

.login-modal__input {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid var(--border-subtle);
    border-radius: 10px;
    font-size: 16px;
    font-family: var(--font-sans);
    color: var(--text-primary);
    margin-bottom: 16px;
    transition: border-color 0.2s;
}

.login-modal__input:focus {
    outline: none;
    border-color: var(--accent);
}

.login-modal__error {
    display: none;
    background: #FEF2F2;
    border: 1px solid #FECACA;
    border-radius: 8px;
    padding: 10px 14px;
    margin-bottom: 16px;
    font-size: 13px;
    color: #991B1B;
}

.login-modal__error.is-visible { display: block; }

.login-modal__btn {
    width: 100%;
    padding: 14px;
    background: var(--bg-dark);
    color: var(--text-inverse);
    border: none;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
    font-family: var(--font-sans);
}

.login-modal__btn:hover { background: #1a1a24; }

.login-modal__footer {
    text-align: center;
    margin-top: 16px;
    font-size: 13px;
    color: var(--text-muted);
}

.login-modal__footer a {
    color: var(--accent);
    text-decoration: none;
    font-weight: 500;
}

.login-modal__back {
    width: 100%;
    padding: 10px;
    background: none;
    border: 1px solid var(--border-subtle);
    border-radius: 10px;
    font-size: 14px;
    color: var(--text-muted);
    cursor: pointer;
    margin-top: 12px;
    font-family: var(--font-sans);
}

.login-modal__tenant-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.login-modal__tenant-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border: 1px solid var(--border-subtle);
    border-radius: 10px;
    text-decoration: none;
    color: var(--text-primary);
    transition: all 0.15s;
}

.login-modal__tenant-card:hover {
    border-color: var(--accent);
    background: var(--accent-soft);
}

.login-modal__tenant-icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: var(--bg-subtle);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}

.login-modal__tenant-name {
    font-weight: 600;
    font-size: 15px;
}

.login-modal__tenant-slug {
    font-size: 12px;
    color: var(--text-muted);
}

.login-modal__tenant-arrow {
    margin-left: auto;
    color: var(--text-muted);
}


/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 1023px) {
    .hero__grid { grid-template-columns: 1fr; gap: 48px; }
    .hero__title { font-size: 40px; }
    .authority__grid { grid-template-columns: 1fr; gap: 48px; }
    .authority__photo { order: -1; max-height: 400px; }
    .feature-block { grid-template-columns: 1fr; gap: 32px; }
    .feature-block--reverse .feature-block__text { order: 1; }
    .feature-block--reverse .feature-block__media { order: 2; }
    .catalog__grid { grid-template-columns: repeat(2, 1fr); }
    .testimonials__grid { grid-template-columns: 1fr; }
    .onboarding__timeline { grid-template-columns: repeat(2, 1fr); }
    .onboarding__timeline::before { display: none; }
    .site-footer__grid { grid-template-columns: 1fr 1fr; }
    .site-header__nav { display: none; }
}

@media (max-width: 767px) {
    .section-padding { padding: 80px 0; }
    .container { padding: 0 20px; }

    .h1, .hero__title { font-size: 36px; }
    .h2, .pain__title, .authority__title { font-size: 32px; }
    .h3, .feature-block__title { font-size: 22px; }

    .hero { padding: 80px 0 60px; }
    .hero__ctas { flex-direction: column; align-items: flex-start; }

    .pain__grid { grid-template-columns: 1fr; }
    .pain__title span { font-size: 28px; }

    .catalog__grid { grid-template-columns: 1fr; }
    .catalog__number strong { font-size: 56px; }

    .onboarding__timeline { grid-template-columns: 1fr; gap: 48px; }
    .onboarding__number { font-size: 40px; }

    .pricing__card { padding: 32px 24px; }
    .pricing__amount { font-size: 44px; }

    .site-footer__grid { grid-template-columns: 1fr; gap: 32px; }

    .logos__strip { gap: 32px; }
    .logos__item { height: 36px; }
    .logos__item--featured { height: 44px; }

    .qualification__question { flex-direction: column; gap: 12px; align-items: flex-start; }

    /* Checkout modal responsive */
    .checkout-modal__dialog { margin: 16px auto; max-width: 100%; }
    .ck-step { padding: 20px 16px 24px; }
    .ck-steps { padding: 20px 16px 0; }
    .ck-grid-2 { grid-template-columns: 1fr; }
    .ck-grid-3 { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 374px) {
    .hero__title { font-size: 30px; }
    .h2, .pain__title { font-size: 28px; }
}
