/* ============================================================================
   HUB v3 — Public marketing landing page (GET /)
   Served by src/Views/public/landing.twig (extends layouts/public.twig).
   Loaded after hub-design-tokens.css / public-core.css, so it shares the
   same token structure (and admin-configurable brand-color overrides via
   partials/theme_colors_style.twig) as every other public page.
   ============================================================================ */

.landing-shell {
    min-height: 100vh;
    min-height: calc(100svh - var(--safe-area-top) - var(--safe-area-bottom));
    background:
        radial-gradient(900px 450px at 10% 0% 0%, transparent 60%),
        radial-gradient(800px 400px at 92% 5% 0%, transparent 60%),
        var(--bg-primary);
}

@supports (height: 100dvh) {
    .landing-shell {
        min-height: calc(100dvh - var(--safe-area-top) - var(--safe-area-bottom));
    }
}

.landing-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.125rem 2rem;
    background: var(--bg-surface);
    border-bottom: 1px solid var(--border-color);
    position: sticky; top: var(--safe-area-top); z-index: 40;
}
.landing-nav-logo {
    display: flex; align-items: center; gap: .625rem;
    text-decoration: none;
}
.landing-nav-logo img {
    height: 24px;
    width: auto;
}
.landing-nav-logo span {
    font-size: var(--type-callout-size);
    font-weight: 700;
    color: var(--ink-950);
    letter-spacing: -.01em;
}
.landing-nav-actions {
    display: flex; align-items: center; gap: .5rem;
}
.landing-btn-ghost {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: var(--control-height-sm);
    padding: .4375rem 1rem;
    border: 1px solid var(--border-color-strong);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    background: var(--bg-surface);
    font-size: var(--type-subhead-size);
    font-weight: 600;
    text-decoration: none;
}
.landing-btn-ghost:hover {
    color: var(--text-primary);
    background: var(--bg-secondary);
    text-decoration: none;
}
.landing-btn-solid {
    padding: .4375rem 1rem;
    font-size: var(--type-subhead-size); font-weight: 600;
    color: var(--bg-surface);
    background: var(--text-primary);
    border: none; border-radius: var(--radius-md);
    cursor: pointer; text-decoration: none;
    transition: background var(--transition-fast);
    box-shadow: 0 1px 2px var(--glass-navy-20);
}
.landing-btn-solid:hover {
    color: var(--bg-surface);
    background: var(--gray-700);
    text-decoration: none;
}

.landing-container {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Hero section */
.landing-hero {
    padding: 5rem 0 4rem;
    text-align: center;
}
.landing-hero-badge {
    display: inline-flex; align-items: center; gap: .375rem;
    padding: .3125rem .875rem;
    background: var(--brand-50);
    color: var(--brand-700);
    border: 1px solid var(--brand-100);
    border-radius: var(--radius-full);
    font-size: var(--type-caption-size); font-weight: 600;
    letter-spacing: .04em; text-transform: uppercase;
    margin-bottom: 1.5rem;
}
.landing-hero-badge svg { width: 12px; height: 12px; fill: currentColor; }
.landing-hero-title {
    font-size: clamp(2.25rem, 5.5vw, 3.75rem);
    font-weight: 800;
    color: var(--ink-950);
    letter-spacing: -.04em;
    line-height: 1.1;
    margin-bottom: 1.25rem;
}
.landing-hero-title span {
    background: linear-gradient(135deg, var(--brand-ink, var(--brand-500)), var(--brand-700));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.landing-hero-desc {
    font-size: var(--type-title-4-size);
    color: var(--text-muted);
    max-width: 54ch;
    margin: 0 auto 2.25rem;
    line-height: 1.65;
}
.landing-hero-actions {
    display: flex; align-items: center; justify-content: center;
    gap: .75rem; flex-wrap: wrap;
}
.landing-hero-cta-primary {
    padding: .75rem 1.625rem;
    font-size: var(--type-callout-size); font-weight: 600;
    color: var(--bg-surface);
    background: var(--text-primary);
    border: none; border-radius: var(--radius-md);
    cursor: pointer; text-decoration: none;
    box-shadow: 0 1px 3px var(--glass-navy-25), inset 0 1px 0 var(--glass-white-06);
    transition: background var(--transition-fast);
}
.landing-hero-cta-primary:hover {
    color: var(--bg-surface);
    background: var(--gray-700);
    text-decoration: none;
}
.landing-hero-cta-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: var(--control-height-lg);
    padding: .75rem 1.625rem;
    border: 1px solid var(--border-color-strong);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    background: var(--bg-surface);
    font-size: var(--type-callout-size);
    font-weight: 600;
    text-decoration: none;
    box-shadow: var(--shadow-xs);
    transition: background var(--transition-fast), border-color var(--transition-fast);
}
.landing-hero-cta-secondary:hover {
    color: var(--text-primary);
    background: var(--bg-secondary);
    border-color: var(--text-muted);
    text-decoration: none;
}

/* Modules grid */
.landing-section {
    padding: 3.5rem 0;
}
.landing-section-header {
    margin-bottom: 2.5rem;
}
.landing-section-label {
    font-size: var(--type-caption-size); font-weight: 700;
    letter-spacing: .08em; text-transform: uppercase;
    color: var(--brand-600);
    margin-bottom: .5rem;
}
.landing-section-title {
    font-size: var(--type-title-1-size); font-weight: 700;
    color: var(--ink-950); letter-spacing: -.025em;
    margin-bottom: .5rem;
}
.landing-section-desc {
    font-size: var(--type-callout-size); color: var(--text-muted);
    max-width: 54ch; line-height: 1.6;
}

.landing-modules-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1rem;
}

.landing-module-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 1.375rem;
    box-shadow: var(--shadow-xs);
    display: flex; flex-direction: column;
    transition: box-shadow var(--transition-base), transform var(--transition-base);
}
.landing-module-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-1px);
}
.landing-module-card-meta {
    display: flex; gap: .375rem; flex-wrap: wrap;
    margin-bottom: .75rem;
}
.landing-module-badge {
    display: inline-flex; align-items: center;
    padding: 2px 8px;
    font-size: var(--type-caption-2-size); font-weight: 600;
    border-radius: var(--radius-full);
    letter-spacing: .01em;
}
.landing-module-badge-internal { background: var(--ink-100); color: var(--ink-600); }
.landing-module-badge-public { background: var(--brand-50); color: var(--brand-700); }

.landing-module-icon {
    width: 38px; height: 38px;
    border-radius: var(--radius-md);
    background: var(--ink-50);
    display: flex; align-items: center; justify-content: center;
    margin-bottom: .875rem;
    flex-shrink: 0;
}
.landing-module-icon svg {
    width: 18px; height: 18px;
    stroke: var(--ink-600);
    fill: none; stroke-width: 1.75;
    stroke-linecap: round; stroke-linejoin: round;
}
.landing-module-card.is-public .landing-module-icon {
    background: var(--brand-50);
}
.landing-module-card.is-public .landing-module-icon svg {
    stroke: var(--brand-600);
}

.landing-module-title {
    font-size: var(--type-body-size); font-weight: 600;
    color: var(--ink-950); letter-spacing: -.01em;
    margin-bottom: .3125rem;
}
.landing-module-desc {
    font-size: var(--type-subhead-size); color: var(--text-muted);
    line-height: 1.55; margin-bottom: .875rem;
    flex: 1;
}
.landing-module-bullets {
    list-style: none;
    margin-bottom: 1rem;
    display: flex; flex-direction: column; gap: .3rem;
}
.landing-module-bullets li {
    font-size: var(--type-footnote-size); color: var(--text-secondary);
    display: flex; align-items: center; gap: .5rem;
}
.landing-module-bullets li::before {
    content: '';
    width: 5px; height: 5px;
    border-radius: var(--radius-full);
    background: var(--border-color-strong);
    flex-shrink: 0;
}
.landing-module-card.is-public .landing-module-bullets li::before {
    background: var(--brand-400);
}
.landing-module-action {
    display: inline-flex; align-items: center; gap: .375rem;
    padding: .4375rem .875rem;
    font-size: var(--type-footnote-size); font-weight: 500;
    border-radius: var(--radius-sm);
    text-decoration: none; transition: all var(--transition-fast);
    border: 1px solid var(--border-color-strong);
    background: var(--bg-surface); color: var(--ink-900);
    box-shadow: var(--shadow-xs);
    align-self: flex-start;
}
.landing-module-action:hover { background: var(--bg-secondary); text-decoration: none; }
.landing-module-action svg { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.landing-module-card.is-public .landing-module-action {
    background: var(--brand-fill-500, var(--brand-500));
    color: var(--on-brand, var(--bg-surface)); border-color: var(--brand-600);
    box-shadow: 0 1px 3px var(--glass-brand-25);
}
.landing-module-card.is-public .landing-module-action:hover {
    color: var(--on-brand, var(--bg-surface));
    background: var(--brand-fill-600, var(--brand-600));
}

.landing-hero-subtext {
    font-size: var(--type-subhead-size);
    color: var(--text-muted);
    margin-top: .5rem;
}
.landing-hero-subtext a {
    color: var(--brand-700);
    font-weight: 600;
    text-decoration: underline;
}

/* Channels Ribbon */
.landing-channels-ribbon {
    padding: 2.25rem 0;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    text-align: center;
    margin: 1rem 0 2.5rem;
}
.landing-channels-ribbon-label {
    font-size: var(--type-caption-size);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: var(--text-muted);
    margin-bottom: 1.125rem;
}
.landing-channels-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: .75rem;
}
.landing-channel-pill {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: .5rem .875rem;
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-full);
    box-shadow: var(--shadow-xs);
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}
.landing-channel-pill:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
}
.landing-channel-badge {
    font-size: var(--type-caption-2-size);
    font-weight: 700;
    text-transform: uppercase;
    padding: 2px 7px;
    border-radius: var(--radius-full);
    background: var(--brand-50);
    color: var(--brand-700);
}
.landing-channel-name {
    font-size: var(--type-footnote-size);
    color: var(--ink-950);
    font-weight: 600;
}
.landing-channel-type {
    font-size: var(--type-caption-size);
    color: var(--text-muted);
}

/* Stats Section */
.landing-stats-section {
    padding: 1.5rem 0 3rem;
}
.landing-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.25rem;
}
.landing-stat-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 1.75rem 1.25rem;
    text-align: center;
    box-shadow: var(--shadow-xs);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
.landing-stat-num {
    font-size: clamp(1.75rem, 3.5vw, 2.5rem);
    font-weight: 800;
    color: var(--brand-600);
    letter-spacing: -.03em;
    margin-bottom: .25rem;
}
.landing-stat-label {
    font-size: var(--type-body-size);
    font-weight: 700;
    color: var(--ink-950);
    margin-bottom: .25rem;
}
.landing-stat-helper {
    font-size: var(--type-caption-size);
    color: var(--text-muted);
}

/* Solution Pillars / Features */
.landing-features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.5rem;
}
.landing-feature-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: 2rem;
    box-shadow: var(--shadow-xs);
    display: flex;
    flex-direction: column;
    transition: box-shadow var(--transition-base), transform var(--transition-base);
}
.landing-feature-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}
.landing-feature-tag {
    display: inline-block;
    font-size: var(--type-caption-2-size);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: var(--brand-700);
    margin-bottom: .5rem;
}
.landing-feature-title {
    font-size: var(--type-title-3-size);
    font-weight: 700;
    color: var(--ink-950);
    letter-spacing: -.02em;
    margin-bottom: .75rem;
}
.landing-feature-summary {
    font-size: var(--type-callout-size);
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 1.25rem;
}
.landing-feature-benefits {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: .625rem;
    margin-top: auto;
}
.landing-feature-benefits li {
    font-size: var(--type-footnote-size);
    color: var(--text-secondary);
    display: flex;
    align-items: flex-start;
    gap: .5rem;
    line-height: 1.5;
}
.landing-feature-benefits li i {
    color: var(--brand-500);
    margin-top: 3px;
    flex-shrink: 0;
}

/* Sandbox Callout */
.landing-sandbox-callout {
    padding: 3rem 0;
}
.landing-sandbox-content {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: 2.5rem;
    text-align: center;
    box-shadow: var(--shadow-sm);
    max-width: 820px;
    margin: 0 auto;
}
.landing-sandbox-title {
    font-size: var(--type-title-2-size);
    font-weight: 800;
    color: var(--ink-950);
    letter-spacing: -.02em;
    margin: .5rem 0 .75rem;
}
.landing-sandbox-desc {
    font-size: var(--type-callout-size);
    color: var(--text-muted);
    max-width: 60ch;
    margin: 0 auto 1.5rem;
    line-height: 1.6;
}

/* Lead Capture Form Section */
.landing-demo-section {
    padding: 3.5rem 0;
    scroll-margin-top: 4rem;
}
.landing-demo-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: 2.75rem 2.25rem;
    box-shadow: var(--shadow-md);
    max-width: 820px;
    margin: 0 auto;
}
.landing-demo-header {
    text-align: center;
    margin-bottom: 2rem;
}
.landing-demo-title {
    font-size: var(--type-title-1-size);
    font-weight: 800;
    color: var(--ink-950);
    letter-spacing: -.03em;
    margin: .5rem 0 .75rem;
}
.landing-demo-desc {
    font-size: var(--type-callout-size);
    color: var(--text-muted);
    max-width: 58ch;
    margin: 0 auto;
    line-height: 1.6;
}
.landing-demo-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}
.landing-honeypot {
    display: none;
}
.landing-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}
.landing-form-group {
    display: flex;
    flex-direction: column;
    gap: .375rem;
    text-align: left;
}
.landing-form-label {
    font-size: var(--type-footnote-size);
    font-weight: 600;
    color: var(--ink-900);
}
.landing-form-input,
.landing-form-textarea {
    width: 100%;
    padding: .625rem .875rem;
    font-size: var(--type-callout-size);
    color: var(--ink-950);
    background: var(--bg-surface);
    border: 1px solid var(--border-color-strong);
    border-radius: var(--radius-md);
    font-family: inherit;
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}
.landing-form-input:focus,
.landing-form-textarea:focus {
    outline: none;
    border-color: var(--brand-500);
    box-shadow: 0 0 0 3px var(--brand-100);
}
.landing-checkbox-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: .5rem;
    margin-top: .25rem;
}
.landing-checkbox-label {
    font-size: var(--type-footnote-size);
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: .5rem;
    cursor: pointer;
}
.landing-form-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-top: .75rem;
    flex-wrap: wrap;
}
.landing-submit-btn {
    border: none;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: .5rem;
}
.landing-form-privacy-note {
    font-size: var(--type-caption-size);
    color: var(--text-muted);
    display: inline-flex;
    align-items: center;
    gap: .375rem;
}

/* Alerts */
.landing-alert {
    padding: .875rem 1.25rem;
    border-radius: var(--radius-md);
    margin-bottom: 1.5rem;
    font-size: var(--type-footnote-size);
    display: flex;
    align-items: center;
    gap: .625rem;
}
.landing-alert-success {
    background: var(--brand-50);
    color: var(--brand-700);
    border: 1px solid var(--brand-200);
}
.landing-alert-danger {
    background: var(--ink-50);
    color: var(--ink-950);
    border: 1px solid var(--border-color-strong);
}

/* FAQ Section */
.landing-faqs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.25rem;
}
.landing-faq-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
}
.landing-faq-question {
    font-size: var(--type-title-4-size);
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: .625rem;
    display: flex;
    align-items: flex-start;
    gap: .5rem;
    line-height: 1.4;
}
.landing-faq-question i {
    color: var(--brand-600);
    margin-top: 3px;
    flex-shrink: 0;
}
.landing-faq-answer {
    font-size: var(--type-subhead-size);
    color: var(--text-muted);
    line-height: 1.6;
}

/* Client Portal Mode (Hub / Clientes Dedicados) */
.landing-client-portal {
    padding: 4.5rem 0 3.5rem;
    text-align: center;
}
.landing-client-badge {
    display: inline-flex;
    align-items: center;
    gap: .375rem;
    padding: .3125rem .875rem;
    background: var(--brand-50);
    color: var(--brand-700);
    border: 1px solid var(--brand-100);
    border-radius: var(--radius-full);
    font-size: var(--type-caption-size);
    font-weight: 600;
    letter-spacing: .04em;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
}
.landing-client-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.5rem;
    max-width: 840px;
    margin: 2.5rem auto 1.5rem;
}
.landing-client-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: 2.25rem 2rem;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}
.landing-client-card.is-highlighted {
    border-color: var(--brand-300);
    box-shadow: var(--shadow-md);
}
.landing-client-card-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    background: var(--ink-50);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
    color: var(--brand-600);
}
.landing-client-card-icon svg {
    width: 24px;
    height: 24px;
}
.landing-client-card-title {
    font-size: var(--type-title-3-size);
    font-weight: 700;
    color: var(--ink-950);
    margin-bottom: .75rem;
}
.landing-client-card-desc {
    font-size: var(--type-callout-size);
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 1.75rem;
    flex: 1;
}
.landing-client-store-link {
    font-size: var(--type-subhead-size);
    color: var(--text-muted);
    margin-top: 2rem;
}
.landing-client-store-link a {
    color: var(--brand-700);
    font-weight: 600;
    text-decoration: underline;
}

/* Footer landing */
.landing-footer {
    border-top: 1px solid var(--border-color);
    padding: 1.75rem 0;
    text-align: center;
}
.landing-footer-links {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: .625rem;
}
.landing-footer-links a {
    font-size: var(--type-subhead-size);
    font-weight: 500;
    color: var(--text-secondary);
    text-decoration: none;
}
.landing-footer-links a:hover {
    color: var(--brand-700);
    text-decoration: underline;
}
.landing-footer p {
    font-size: var(--type-footnote-size);
    color: var(--text-muted);
}

@media (max-width: 768px) {
    .landing-btn-solid,
    .landing-btn-ghost,
    .landing-hero-cta-primary,
    .landing-hero-cta-secondary,
    .landing-module-action {
        min-height: 44px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }
}

@media (max-width: 640px) {
    .landing-hero { padding: 3rem 0 2.5rem; }
    .landing-hero-actions { flex-direction: column; }
    .landing-hero-cta-primary,
    .landing-hero-cta-secondary { width: 100%; text-align: center; }
    .landing-modules-grid { grid-template-columns: 1fr; }
    .landing-nav { padding: .875rem max(1rem, var(--safe-area-right)) .875rem max(1rem, var(--safe-area-left)); }
    .landing-nav-logo img { max-width: 132px; }
    .landing-btn-ghost { display: none; }
}
