/**
 * Landing page – layout and sections using design system tokens.
 * Depends on: system/colors.css, system/spacing.css, generic-components.css
 */
body { padding-top: 56px; }

/* ========== Navbar ========== */
.landing-navbar {
    background: var(--color-bg-primary);
    box-shadow: var(--shadow-sm, 0 1px 3px rgba(0,0,0,0.08));
}
.landing-navbar .navbar-brand img {
    max-width: 150px;
    height: auto;
}
.landing-navbar .nav-link {
    color: var(--color-text-primary);
    font-weight: 500;
}
.landing-navbar .nav-link:hover {
    color: var(--color-primary);
}
/* Entrar / outline nav button: visible in light and dark */
.landing-navbar .btn-landing-outline-nav {
    border: 1px solid var(--color-primary);
    color: var(--color-primary);
    background: transparent;
    font-weight: 500;
}
.landing-navbar .btn-landing-outline-nav:hover {
    background: var(--color-primary);
    color: var(--color-text-inverse);
    border-color: var(--color-primary);
}
/* Theme toggle in header */
.landing-navbar .btn-theme-toggle {
    color: var(--color-text-primary);
    font-size: 1.1rem;
}
.landing-navbar .btn-theme-toggle:hover {
    color: var(--color-primary);
}

/* Light mode: ensure header is always readable on mobile (dark text/icons on white) */
html[data-theme="light"] .landing-navbar,
[data-theme="light"] .landing-navbar {
    background: #ffffff !important;
}
html[data-theme="light"] .landing-navbar .nav-link,
html[data-theme="light"] .landing-navbar .btn-theme-toggle,
[data-theme="light"] .landing-navbar .nav-link,
[data-theme="light"] .landing-navbar .btn-theme-toggle {
    color: #212529 !important;
}
html[data-theme="light"] .landing-navbar .btn-theme-toggle:hover,
[data-theme="light"] .landing-navbar .btn-theme-toggle:hover {
    color: var(--color-primary) !important;
}
html[data-theme="light"] .landing-navbar .navbar-toggler,
[data-theme="light"] .landing-navbar .navbar-toggler {
    color: #212529;
    border-color: rgba(33, 37, 41, 0.3);
}
html[data-theme="light"] .landing-navbar .navbar-toggler-icon,
[data-theme="light"] .landing-navbar .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(33, 37, 41, 0.85)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Dark mode: white navbar toggler icon */
html[data-theme="dark"] .landing-navbar .navbar-toggler,
:root[data-theme="dark"] .landing-navbar .navbar-toggler {
    color: rgba(255, 255, 255, 0.9);
    border-color: rgba(255, 255, 255, 0.3);
}
html[data-theme="dark"] .landing-navbar .navbar-toggler-icon,
:root[data-theme="dark"] .landing-navbar .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(255, 255, 255, 0.9)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Mobile logos: show dark logo in light theme, light logo in dark theme */
.landing-navbar .landing-logo-mobile-dark { display: none !important; }
.landing-navbar .landing-logo-mobile-light { display: none !important; }
html[data-theme="light"] .landing-navbar .landing-logo-mobile-dark,
:root:not([data-theme="dark"]) .landing-navbar .landing-logo-mobile-dark { display: inline-block !important; }
html[data-theme="dark"] .landing-navbar .landing-logo-mobile-light,
:root[data-theme="dark"] .landing-navbar .landing-logo-mobile-light { display: inline-block !important; }

/* ========== Hero ========== */
.landing-hero {
    background: linear-gradient(135deg, var(--color-secondary-dark) 0%, var(--color-secondary) 100%);
    padding: 4rem 0;
    min-height: 70vh;
    display: flex;
    align-items: center;
}
/* Hero: always light text on dark gradient (good contrast in light and dark mode) */
.landing-hero h1,
.landing-hero .hero-title {
    color: #ffffff !important;
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 0 1px 2px rgba(0,0,0,0.2);
}
[data-theme="dark"] .landing-hero h1,
[data-theme="dark"] .landing-hero .hero-title,
html[data-theme="dark"] .landing-hero h1,
html[data-theme="dark"] .landing-hero .hero-title {
    color: #ffffff !important;
}
.landing-hero .hero-lead {
    color: rgba(255,255,255,0.9);
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}
.landing-hero .hero-note {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.75);
    margin-top: 1rem;
}

/* ========== Thank-you (obrigado) ========== */
.landing-hero--obrigado {
    position: relative;
    padding: 5rem 0 4rem;
    min-height: calc(100vh - 56px);
    background:
        radial-gradient(ellipse 85% 55% at 50% 38%, rgba(255, 255, 255, 0.08) 0%, transparent 55%),
        linear-gradient(145deg, var(--color-secondary-dark) 0%, var(--color-secondary) 48%, #1a2d4a 100%);
}
.landing-obrigado-main {
    min-height: 100vh;
}
.landing-obrigado {
    max-width: 32rem;
    padding: 0 0.5rem;
}
.landing-obrigado__badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 4.25rem;
    height: 4.25rem;
    margin: 0 auto 1.25rem;
    border-radius: 50%;
    background: linear-gradient(145deg, rgba(46, 204, 113, 0.35) 0%, rgba(39, 174, 96, 0.55) 100%);
    border: 1px solid rgba(255, 255, 255, 0.22);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    color: #fff;
    font-size: 1.65rem;
    line-height: 1;
}
.landing-obrigado__eyebrow {
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.72);
    margin-bottom: 0.75rem;
}
.landing-obrigado__title {
    color: #fff !important;
    font-size: clamp(1.5rem, 4.2vw, 2rem);
    font-weight: 700;
    line-height: 1.28;
    margin: 0 0 1rem;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
}
.landing-obrigado__lead {
    color: rgba(255, 255, 255, 0.88);
    font-size: 1.0625rem;
    line-height: 1.55;
    margin: 0 auto 1.75rem;
    max-width: 26rem;
}
.landing-obrigado__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
    align-items: center;
}
.landing-obrigado__cta {
    min-width: 12rem;
    padding: 0.75rem 1.75rem !important;
    border-radius: 10px !important;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18);
    transition: transform 0.15s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}
.landing-obrigado__cta:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.22);
}
.landing-navbar.landing-navbar--obrigado .landing-obrigado-nav-theme {
    color: var(--color-text-primary);
    font-size: 1.1rem;
}
.landing-navbar.landing-navbar--obrigado .landing-obrigado-nav-theme:hover {
    color: var(--color-primary);
}
html[data-theme="light"] .landing-navbar.landing-navbar--obrigado .landing-obrigado-nav-theme,
[data-theme="light"] .landing-navbar.landing-navbar--obrigado .landing-obrigado-nav-theme {
    color: #212529 !important;
}
html[data-theme="light"] .landing-navbar.landing-navbar--obrigado .landing-obrigado-nav-theme:hover,
[data-theme="light"] .landing-navbar.landing-navbar--obrigado .landing-obrigado-nav-theme:hover {
    color: var(--color-primary) !important;
}

/* ========== Buttons ========== */
.btn-landing-primary {
    background: var(--color-success);
    color: var(--color-text-inverse);
    border: none;
    padding: 0.6rem 1.5rem;
    font-weight: 600;
    border-radius: 8px;
}
.btn-landing-primary:hover {
    background: var(--color-success-dark);
    color: var(--color-text-inverse);
}
.btn-landing-outline-light {
    border: 2px solid rgba(255,255,255,0.5);
    color: rgba(255,255,255,0.95);
    background: transparent;
    padding: 0.6rem 1.25rem;
    font-weight: 600;
    border-radius: 8px;
}
.btn-landing-outline-light:hover {
    background: rgba(255,255,255,0.15);
    border-color: rgba(255,255,255,0.7);
    color: #fff;
}
.btn-landing-secondary {
    background: var(--color-primary);
    color: var(--color-text-inverse);
    border: none;
    padding: 0.6rem 1.5rem;
    font-weight: 600;
    border-radius: 8px;
}
.btn-landing-secondary:hover {
    background: var(--color-primary-dark);
    color: var(--color-text-inverse);
}

/* ========== Section spacing ========== */
.landing-section {
    padding: 4rem 0;
}
.landing-section-alt {
    background: var(--color-bg-secondary);
}
.landing-section-heading {
    text-align: center;
    margin-bottom: 2.5rem;
}
.landing-section-heading .subtitle {
    color: var(--color-primary);
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
}
.landing-section-heading h2 {
    color: var(--color-text-primary);
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}
.landing-section-heading p {
    color: var(--color-text-secondary);
    margin-bottom: 0;
}

/* ========== FAQ accordion (Bootstrap defaults are light-only) ========== */
.landing-faq-accordion {
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--color-border-light);
}
.landing-faq-accordion .accordion-item {
    background-color: var(--color-card-bg);
    border-color: var(--color-border-light);
}
.landing-faq-accordion .accordion-button {
    background-color: var(--color-bg-secondary);
    color: var(--color-text-primary);
    font-weight: 600;
    box-shadow: none;
}
.landing-faq-accordion .accordion-button:not(.collapsed) {
    background-color: var(--color-surface-info);
    color: var(--color-surface-info-text);
    box-shadow: none;
}
.landing-faq-accordion .accordion-button:focus {
    box-shadow: 0 0 0 0.2rem rgba(52, 152, 219, 0.25);
    border-color: transparent;
}
.landing-faq-accordion .accordion-body {
    background-color: var(--color-card-bg);
    color: var(--color-text-secondary);
}
.landing-faq-accordion .accordion-body.text-secondary {
    color: var(--color-text-secondary);
}

html[data-theme="dark"] .landing-faq-accordion .accordion-button::after,
:root[data-theme="dark"] .landing-faq-accordion .accordion-button::after,
[data-theme="dark"] .landing-faq-accordion .accordion-button::after {
    filter: brightness(0) invert(1);
    opacity: 0.85;
}

html[data-theme="dark"] .landing-faq-accordion .accordion-button:not(.collapsed)::after,
:root[data-theme="dark"] .landing-faq-accordion .accordion-button:not(.collapsed)::after,
[data-theme="dark"] .landing-faq-accordion .accordion-button:not(.collapsed)::after {
    filter: brightness(0) invert(1);
    opacity: 0.95;
}

/* ========== Social proof bar ========== */
.landing-proof-bar {
    background: var(--color-bg-secondary);
    border-bottom: 1px solid var(--color-border-light);
    padding: 1rem 0;
}
.landing-proof-bar .proof-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--color-text-primary);
}
.landing-proof-bar .proof-item i {
    color: var(--color-success);
}

/* ========== Benefit cards (3 pillars) ========== */
.landing-benefit-card {
    text-align: center;
    padding: 1.5rem 1rem;
    height: 100%;
}
.landing-benefit-card .icon-wrap {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    font-size: 1.5rem;
    color: #fff;
}
.landing-benefit-card .icon-wrap.bg-primary { background: var(--color-primary) !important; }
.landing-benefit-card .icon-wrap.bg-danger { background: var(--color-danger) !important; }
.landing-benefit-card .icon-wrap.bg-warning { background: var(--color-warning) !important; }
.landing-benefit-card .icon-wrap.bg-success { background: var(--color-success) !important; }
.landing-benefit-card .icon-wrap.bg-info { background: var(--color-info) !important; }
.landing-benefit-card h3 {
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--color-text-primary);
}
.landing-benefit-card p {
    font-size: 0.95rem;
    color: var(--color-text-secondary);
    margin-bottom: 0;
}

/* ========== Feature groups ========== */
.landing-feature-group {
    margin-bottom: 2.5rem;
}
.landing-feature-group-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--color-secondary);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 3px solid var(--color-primary);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}
.landing-feature-card {
    background: var(--color-card-bg);
    border: 1px solid var(--color-border-light);
    border-radius: 10px;
    padding: 1rem;
    margin-bottom: 0.75rem;
    transition: box-shadow 0.2s, border-color 0.2s;
}
.landing-feature-card:hover {
    box-shadow: var(--shadow-md, 0 2px 8px rgba(0,0,0,0.1));
    border-color: var(--color-primary-light);
}
.landing-feature-card h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.35rem;
    color: var(--color-text-primary);
}
.landing-feature-card p {
    font-size: 0.875rem;
    color: var(--color-text-secondary);
    margin-bottom: 0;
}

/* ========== Pricing ========== */
.landing-pricing-toggle {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 2rem;
}
.landing-pricing-toggle-pill {
    display: inline-flex;
    align-items: stretch;
    background: var(--color-bg-tertiary);
    border: 1px solid var(--color-border-light);
    border-radius: 999px;
    padding: 4px;
    box-shadow: inset 0 1px 2px rgba(0,0,0,0.06);
}
.landing-pricing-toggle-input {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}
.landing-pricing-toggle-label {
    margin: 0;
    padding: 0.5rem 1.5rem;
    cursor: pointer;
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--color-text-secondary);
    border-radius: 999px;
    transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}
.landing-pricing-toggle-label:hover {
    color: var(--color-text-primary);
}
.landing-pricing-toggle-input:checked + .landing-pricing-toggle-label {
    background: var(--color-primary);
    color: #fff;
    box-shadow: 0 1px 3px rgba(0,0,0,0.15);
}
.landing-pricing-toggle-input:focus-visible + .landing-pricing-toggle-label {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
}
.landing-pricing-toggle-hint {
    font-size: 0.8rem;
    color: var(--color-text-muted);
}
.landing-pricing-card {
    background: var(--color-card-bg);
    border: 1px solid var(--color-border-light);
    border-radius: 12px;
    padding: 1.5rem;
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: box-shadow 0.2s, border-color 0.2s;
}
.landing-pricing-card:hover {
    box-shadow: var(--shadow-lg, 0 4px 16px rgba(0,0,0,0.1));
}
.landing-pricing-card.landing-pricing-free {
    border: 2px solid var(--color-success);
}
/* MAIS POPULAR badge on Small plan */
.landing-pricing-card.landing-pricing-popular {
    position: relative;
    border: 2px solid var(--color-primary);
}
.landing-pricing-card.landing-pricing-popular::before {
    content: 'MAIS POPULAR';
    position: absolute;
    top: 0;
    right: 0;
    left: auto;
    background: var(--color-success);
    color: #fff;
    padding: 0.25rem 1rem;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    border-radius: 0 0 0 8px;
}
.landing-pricing-card .price {
    font-size: 2rem;
    font-weight: 700;
    color: var(--color-success);
}
.landing-pricing-card .price small {
    font-size: 0.9rem;
    font-weight: 400;
    color: var(--color-text-muted);
}
.landing-pricing-card ul {
    list-style: none;
    padding-left: 0;
    margin: 1rem 0;
    flex: 1;
}
.landing-pricing-card ul li {
    padding: 0.35rem 0;
    font-size: 0.9rem;
    color: var(--color-text-secondary);
    border-bottom: 1px solid var(--color-border-light);
}
.landing-pricing-card ul li:last-child {
    border-bottom: none;
}
.landing-pricing-card .btn {
    margin-top: auto;
    width: 100%;
}

/* ========== Comparison table ========== */
.landing-comparison-table {
    width: 100%;
    border-collapse: collapse;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow-sm, 0 1px 3px rgba(0,0,0,0.08));
}
.landing-comparison-table th,
.landing-comparison-table td {
    padding: 0.75rem 1rem;
    text-align: center;
    border-bottom: 1px solid var(--color-border-light);
    font-size: 0.875rem;
}
.landing-comparison-table th {
    background: var(--color-secondary);
    color: var(--color-text-inverse);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}
.landing-comparison-table th:first-child,
.landing-comparison-table td:first-child {
    text-align: left;
}
.landing-comparison-table tbody tr:nth-child(even) {
    background: var(--color-bg-secondary);
}
.landing-comparison-table .check {
    color: var(--color-success);
}
.landing-comparison-table .cross {
    color: var(--color-gray-400);
}

/* ========== Testimonials ========== */
.landing-testimonial-card {
    background: var(--color-card-bg);
    border: 1px solid var(--color-border-light);
    border-radius: 12px;
    padding: 1.5rem;
    height: 100%;
}
.landing-testimonial-card .quote {
    font-size: 1rem;
    color: var(--color-text-primary);
    margin-bottom: 1rem;
    font-style: italic;
}
.landing-testimonial-card .author {
    font-weight: 600;
    color: var(--color-text-primary);
    margin-bottom: 0.25rem;
}
.landing-testimonial-card .role {
    font-size: 0.85rem;
    color: var(--color-text-muted);
}
.landing-testimonial-card .stars {
    color: #f39c12;
    margin-bottom: 0.5rem;
}
#testimonialsCarousel {
    position: relative;
    padding-inline: 2.25rem;
}
#testimonialsCarousel .carousel-control-prev,
#testimonialsCarousel .carousel-control-next {
    width: 2.75rem;
    top: 50%;
    bottom: auto;
    transform: translateY(-50%);
}
#testimonialsCarousel .carousel-control-prev {
    left: 0;
}
#testimonialsCarousel .carousel-control-next {
    right: 0;
}
#testimonialsCarousel .carousel-control-prev-icon,
#testimonialsCarousel .carousel-control-next-icon {
    filter: none;
}
@media (max-width: 575.98px) {
    #testimonialsCarousel {
        padding-inline: 1.75rem;
    }
}

/* ========== CTA banner ========== */
.landing-cta-banner {
    background: linear-gradient(135deg, var(--color-secondary-dark) 0%, var(--color-secondary) 100%);
    padding: 4rem 0;
    text-align: center;
}
.landing-cta-banner h2 {
    color: var(--color-text-inverse);
    font-size: 1.75rem;
    margin-bottom: 0.5rem;
}
.landing-cta-banner p {
    color: rgba(255,255,255,0.8);
    margin-bottom: 1.5rem;
}

/* ========== Contact section ========== */
.landing-contact-section {
    padding: 4.5rem 0;
    background: linear-gradient(160deg, var(--color-bg-secondary) 0%, var(--color-bg-primary) 100%);
}
.landing-contact-subtitle {
    color: var(--color-primary);
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
}
.landing-contact-title {
    color: var(--color-text-primary);
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 700;
    margin-bottom: 0.75rem;
    line-height: 1.25;
}
.landing-contact-lead {
    color: var(--color-text-secondary);
    font-size: 1.05rem;
    margin-bottom: 1.5rem;
    max-width: 28em;
}
.landing-contact-trust {
    color: var(--color-text-secondary);
    font-size: 0.95rem;
}
.landing-contact-trust li {
    padding: 0.25rem 0;
    display: flex;
    align-items: center;
}
.landing-contact-card {
    background: var(--color-card-bg);
    border: 1px solid var(--color-border-light);
    border-radius: 16px;
    padding: 2rem;
    box-shadow: var(--shadow-lg, 0 4px 20px rgba(0,0,0,0.08));
}
@media (min-width: 576px) {
    .landing-contact-card {
        padding: 2.25rem 2.5rem;
    }
}
.landing-contact-form .form-group,
.landing-contact-form .mb-3 {
    margin-bottom: 0;
}
.landing-contact-form .row.g-3 {
    --bs-gutter-y: 1rem;
}
.landing-contact-form .form-label {
    font-weight: 500;
    color: var(--color-text-primary);
    margin-bottom: 0.4rem;
    font-size: 0.9375rem;
}
.landing-contact-form .form-control {
    border: 1px solid var(--color-border-medium);
    border-radius: 10px;
    padding: 0.65rem 1rem;
    color: var(--color-text-primary);
    background-color: var(--color-card-bg);
}
.landing-contact-form .form-control::placeholder {
    color: var(--color-text-secondary);
    opacity: 0.85;
}
.landing-contact-form .form-control:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.15);
}
/* Native selects: one chevron, right-aligned (reinforces dark-mode + avoids repeat from any sheet) */
.landing-contact-form select.form-control,
.landing-contact-form select.form-control-lg {
    appearance: none;
    -webkit-appearance: none;
    background-repeat: no-repeat !important;
    background-position: right 1rem center !important;
    background-size: 12px 8px !important;
    padding-right: 2.75rem !important;
    cursor: pointer;
    line-height: 1.5;
}
html[data-theme="light"] .landing-contact-form select.form-control,
html[data-theme="light"] .landing-contact-form select.form-control-lg {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%235c5c63' d='M6 8L0 2h12L6 8z'/%3E%3C/svg%3E") !important;
}
[data-theme="dark"] .landing-contact-form select.form-control,
[data-theme="dark"] .landing-contact-form select.form-control-lg,
html[data-theme="dark"] .landing-contact-form select.form-control,
html[data-theme="dark"] .landing-contact-form select.form-control-lg {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23aeb4bc' d='M6 8L0 2h12L6 8z'/%3E%3C/svg%3E") !important;
}
.landing-contact-form select.form-control:focus,
.landing-contact-form select.form-control-lg:focus {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%233498db' d='M6 8L0 2h12L6 8z'/%3E%3C/svg%3E") !important;
}
[data-theme="dark"] .landing-contact-form select.form-control:focus,
[data-theme="dark"] .landing-contact-form select.form-control-lg:focus,
html[data-theme="dark"] .landing-contact-form select.form-control:focus,
html[data-theme="dark"] .landing-contact-form select.form-control-lg:focus {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%235dade2' d='M6 8L0 2h12L6 8z'/%3E%3C/svg%3E") !important;
}
.landing-contact-form .invalid-feedback {
    font-size: 0.85rem;
}
.landing-contact-form .btn-landing-primary {
    margin-top: 0.5rem;
    transition: background-color 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
}
.landing-contact-form .btn-landing-primary:active {
    transform: translateY(1px);
}
.landing-contact-form .landing-altcha-wrap {
    margin-top: 0.35rem;
    margin-bottom: 0;
    width: 100%;
    padding: 0;
    background: transparent;
    border: none;
}
.landing-contact-form .landing-altcha-wrap--below-submit {
    margin-top: 0.5rem;
}
.landing-contact-form .landing-altcha-wrap altcha-widget,
.landing-contact-form .landing-altcha-wrap altcha-widget.landing-altcha-widget {
    display: block;
    /* Host shrinks to inner content (logo link); shadow CSS + --altcha-max-width complete the layout */
    width: fit-content;
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
    flex: 0 0 auto;
    --altcha-max-width: fit-content;
    --altcha-border-width: 1px;
    --altcha-border-radius: 6px;
    --altcha-color-base: transparent;
    --altcha-color-border: var(--color-border-medium, rgba(0, 0, 0, 0.12));
    --altcha-color-text: var(--color-text-secondary, #6c757d);
    --altcha-color-border-focus: var(--color-primary, #3498db);
    --altcha-color-active: var(--color-success, #27ae60);
    --altcha-color-error-text: var(--color-danger, #c0392b);
    --altcha-color-footer-bg: transparent;
    transform: scale(0.78);
    transform-origin: top center;
    margin-bottom: -0.35rem;
}
[data-theme="dark"] .landing-contact-form .landing-altcha-wrap altcha-widget,
html[data-theme="dark"] .landing-contact-form .landing-altcha-wrap altcha-widget {
    --altcha-color-border: var(--color-border-light, rgba(255, 255, 255, 0.12));
    --altcha-color-text: var(--color-text-secondary, rgba(255, 255, 255, 0.65));
    --altcha-color-active: #4dab7a;
}

/* ========== Footer ========== */
.landing-footer {
    background: var(--color-secondary);
    color: rgba(255,255,255,0.85);
    padding: 3rem 0 1.5rem;
}
.landing-footer a {
    color: rgba(255,255,255,0.9);
    text-decoration: none;
}
.landing-footer a:hover {
    color: #fff;
    text-decoration: underline;
}
.landing-footer h4 {
    color: #fff;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1rem;
}
.landing-footer-feedback-title {
    margin-bottom: 0.35rem;
}
.landing-footer-feedback-lead {
    color: rgba(255,255,255,0.75);
    font-size: 0.9rem;
    margin-bottom: 0.6rem;
}
.landing-feedback-card {
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 12px;
    padding: 0.6rem 1rem;
    width: 100%;
}
.landing-feedback-form-inline {
    display: flex;
    flex-wrap: nowrap;
    gap: 0.35rem;
    align-items: stretch;
    width: 100%;
    min-height: 44px;
}
.landing-feedback-form-inline .landing-feedback-form-input-wrap {
    flex: 1 1 0%;
    min-width: 0;
    margin: 0 !important;
    padding: 0 !important;
    display: flex;
    align-items: stretch;
}
.landing-feedback-form-inline .landing-feedback-form-input-wrap > * {
    flex: 1;
    min-width: 0;
    width: 100%;
}
.landing-feedback-form-inline .landing-feedback-form-input-wrap .form-control {
    width: 100% !important;
    min-width: 0;
    min-height: 44px;
    height: auto;
    padding: 0.5rem 0.85rem;
    box-sizing: border-box;
    flex: 1;
}
.landing-feedback-form-inline .btn-landing-feedback {
    flex-shrink: 0;
    width: 44px;
    min-width: 44px;
    height: 44px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.landing-feedback-form-inline .btn-landing-feedback i {
    font-size: 1rem;
}
.landing-footer .landing-feedback-form .form-control {
    background: rgba(255,255,255,0.95);
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 10px;
    color: var(--color-text-primary);
    padding: 0.5rem 0.85rem;
    min-height: 44px;
}
.landing-footer .landing-feedback-form .form-control::placeholder {
    color: var(--color-text-muted);
}
.landing-footer .landing-feedback-form .form-control:focus {
    background: #fff;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.2);
    outline: 0;
}
.landing-footer .landing-feedback-form .mb-3,
.landing-footer .landing-feedback-form-inline .landing-feedback-form-input-wrap {
    margin-bottom: 0 !important;
}
.landing-footer .landing-feedback-form .form-group.form-md-line-input.form-md {
    width: 100%;
    margin: 0;
}
.landing-footer .landing-feedback-form .btn-landing-feedback {
    background: rgba(255,255,255,0.2);
    color: #fff;
    border: 1px solid rgba(255,255,255,0.4);
    font-weight: 600;
    border-radius: 10px;
}
.landing-footer .landing-feedback-form .btn-landing-feedback:hover {
    background: rgba(255,255,255,0.3);
    border-color: rgba(255,255,255,0.5);
    color: #fff;
}
.landing-feedback-form--footer {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.45rem;
    width: 100%;
}
.landing-footer .landing-feedback-form .landing-altcha-wrap {
    margin-top: 0.15rem;
    margin-bottom: 0;
    width: 100%;
    padding: 0;
    background: transparent;
    border: none;
}
.landing-footer .landing-feedback-form .landing-altcha-wrap--feedback {
    margin-top: 0.35rem;
}
.landing-footer .landing-feedback-form .landing-altcha-wrap altcha-widget,
.landing-footer .landing-feedback-form .landing-altcha-wrap altcha-widget.landing-altcha-widget {
    display: block;
    width: fit-content;
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
    flex: 0 0 auto;
    --altcha-max-width: fit-content;
    --altcha-border-width: 1px;
    --altcha-border-radius: 6px;
    --altcha-color-base: transparent;
    --altcha-color-border: rgba(255, 255, 255, 0.28);
    --altcha-color-text: rgba(255, 255, 255, 0.75);
    --altcha-color-border-focus: rgba(255, 255, 255, 0.85);
    --altcha-color-active: #7dcea0;
    --altcha-color-error-text: #f5b7b1;
    --altcha-color-footer-bg: transparent;
    transform: scale(0.78);
    transform-origin: top center;
    margin-bottom: -0.35rem;
}
.landing-footer .footer-copy {
    text-align: center;
    padding-top: 1.5rem;
    margin-top: 1.5rem;
    border-top: 1px solid rgba(255,255,255,0.2);
    font-size: 0.875rem;
    color: rgba(255,255,255,0.7);
}

/* ========== Scroll to top ========== */
#scroll-to-top {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--color-primary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-md, 0 2px 8px rgba(0,0,0,0.2));
    z-index: 1000;
    text-decoration: none;
    transition: background 0.2s, transform 0.2s;
}
#scroll-to-top:hover {
    background: var(--color-primary-dark);
    color: #fff;
    transform: translateY(-2px);
}

/* Dark mode: ensure scroll-to-top arrow has sufficient contrast (override dark-mode.css link color) */
html[data-theme="dark"] #scroll-to-top,
[data-theme="dark"] #scroll-to-top,
html[data-theme="dark"] #scroll-to-top i,
html[data-theme="dark"] #scroll-to-top .fa,
[data-theme="dark"] #scroll-to-top i,
[data-theme="dark"] #scroll-to-top .fa {
    color: #ffffff !important;
}
html[data-theme="dark"] #scroll-to-top:hover,
[data-theme="dark"] #scroll-to-top:hover,
html[data-theme="dark"] #scroll-to-top:hover i,
[data-theme="dark"] #scroll-to-top:hover .fa {
    color: #ffffff !important;
}

/* ========== Carousel overrides ========== */
.landing-carousel .carousel-inner {
    min-height: 280px;
    max-height: 420px;
    background: var(--color-bg-secondary);
}
.landing-carousel .carousel-item {
    min-height: 280px;
    max-height: 420px;
    background: var(--color-bg-secondary);
}
.landing-carousel .carousel-item.active {
    display: flex;
    align-items: flex-start;
    justify-content: center;
}
.landing-carousel .carousel-item img {
    width: 100%;
    height: auto;
    min-height: 260px;
    max-height: 420px;
    object-fit: contain;
    object-position: top center;
}
.landing-carousel .carousel-control-prev,
.landing-carousel .carousel-control-next {
    width: 48px;
    opacity: 1;
    background: rgba(0,0,0,0.5);
    border-radius: 8px;
}
.landing-carousel .carousel-control-prev { left: 8px; }
.landing-carousel .carousel-control-next { right: 8px; }
.landing-carousel .carousel-control-prev-icon,
.landing-carousel .carousel-control-next-icon {
    width: 28px;
    height: 28px;
    filter: brightness(0) invert(1);
}
.landing-carousel .carousel-indicators [data-bs-target] {
    background-color: var(--color-secondary);
}

/* Mobile screenshots section: enforce max height so images don't overflow */
.landing-mobile-screenshot-wrap {
    max-height: 420px;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    overflow: hidden;
}
.landing-mobile-screenshot-wrap img {
    max-height: 420px;
    width: auto;
    height: auto;
    object-fit: contain;
    object-position: top center;
    display: block;
}

/* Mobile devices section: ensure screenshot images display */
.landing-section img.img-fluid.rounded-3.shadow[alt="Login"],
.landing-section img.img-fluid.rounded-3.shadow[alt="Dashboard"],
.landing-section img.img-fluid.rounded-3.shadow[alt="Registro de ponto"] {
    min-height: 80px;
    object-fit: contain;
}

/* ========== Form wrappers ========== */
.landing-contact-form .form-control {
    border: 1px solid var(--color-border-medium);
    border-radius: 10px;
}
.landing-feedback-form .form-control {
    border: 1px solid var(--color-border-medium);
    border-radius: 8px;
}
.landing-contact-form .btn,
.landing-feedback-form .btn {
    border-radius: 8px;
    font-weight: 600;
}

/* ========== Legal pages (privacy / terms) ========== */
.landing-legal-page {
    padding-top: 5rem;
    padding-bottom: 3rem;
    min-height: 100vh;
    background: var(--color-bg-primary);
}
.landing-legal {
    max-width: 48rem;
    margin-left: auto;
    margin-right: auto;
}
.landing-legal-meta {
    letter-spacing: 0.02em;
}
.landing-legal h1 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--color-text-primary);
    line-height: 1.25;
}
.landing-legal-lead {
    font-size: 1.05rem;
    line-height: 1.6;
    color: var(--color-text-secondary, var(--color-text-primary));
    margin-bottom: 1.5rem;
}
.landing-legal h2 {
    font-size: 1.15rem;
    font-weight: 600;
    margin-top: 2rem;
    margin-bottom: 0.65rem;
    color: var(--color-text-primary);
    line-height: 1.35;
}
.landing-legal p,
.landing-legal li {
    color: var(--color-text-primary);
    line-height: 1.65;
    margin-bottom: 0.75rem;
}
.landing-legal ul {
    padding-left: 1.25rem;
    margin-bottom: 1rem;
}
.landing-legal a {
    color: var(--color-primary);
    text-decoration: underline;
    text-underline-offset: 2px;
}
.landing-legal a:hover {
    color: var(--color-primary);
    opacity: 0.9;
}
.landing-legal-footer {
    border-top: 1px solid var(--color-border-medium);
    margin-top: 3rem;
    padding-top: 1.5rem;
}
.landing-legal-footer a {
    text-decoration: none;
    font-weight: 500;
}
.landing-legal-footer a:hover {
    text-decoration: underline;
}

/* Trust bar — industry icons section */
.landing-trust-bar {
    padding: 1.5rem 0;
    background: var(--color-bg-secondary);
    border-top: 1px solid var(--color-border-light);
    border-bottom: 1px solid var(--color-border-light);
}
.landing-trust-bar__label {
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-text-secondary);
}
.landing-trust-bar__industries span {
    font-size: 0.9rem;
    color: var(--color-text-secondary);
    font-weight: 500;
}

/* ICP tools hub + calculators */
.landing-tool-hero {
    padding-top: 5rem;
    padding-bottom: 3rem;
}
.landing-tool-breadcrumb {
    --bs-breadcrumb-divider-color: rgba(255, 255, 255, 0.45);
}
.landing-tool-breadcrumb .breadcrumb-item,
.landing-tool-breadcrumb .breadcrumb-item.active {
    color: rgba(255, 255, 255, 0.85);
}
.landing-tool-breadcrumb a {
    color: rgba(255, 255, 255, 0.95);
    text-decoration: underline;
    text-underline-offset: 2px;
}
.landing-tool-card {
    border: 1px solid var(--color-border-light);
    border-radius: 12px;
    padding: 1.5rem;
    background: var(--color-bg-primary);
    box-shadow: var(--shadow-sm, 0 1px 3px rgba(0,0,0,0.06));
}
.landing-tool-card-icon {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    margin-bottom: 1rem;
}
.landing-tool-panel {
    border: 1px solid var(--color-border-light);
    border-radius: 12px;
    padding: 1.5rem;
    background: var(--color-bg-secondary);
}
.landing-tool-result {
    border-left: 4px solid var(--color-primary);
    padding: 1rem 1rem 1rem 1.25rem;
    background: var(--color-bg-primary);
    border-radius: 0 8px 8px 0;
}
html[data-theme="dark"] .landing-tool-panel,
:root[data-theme="dark"] .landing-tool-panel {
    background: rgba(255, 255, 255, 0.04);
}
html[data-theme="dark"] .landing-tool-result,
:root[data-theme="dark"] .landing-tool-result {
    background: rgba(255, 255, 255, 0.06);
}
