/* ==========================================================================
   Landing page — marketing-only styles.
   Importar SÓ em pages/landing.html via {% block head_extra %}.
   ========================================================================== */

:root {
    --max-w: 1024px;
}

html { scroll-behavior: smooth; }

::selection { background: var(--color-green); color: var(--color-near-black); }

/* Skip link (a11y) */
.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    background: var(--color-green);
    color: var(--color-near-black);
    padding: 8px 16px;
    z-index: 200;
    font-size: 14px;
    font-weight: 500;
    border-radius: var(--radius-sm);
}
.skip-link:focus { left: 12px; top: 12px; }

button:focus-visible,
a:focus-visible {
    outline: 2px solid var(--color-green);
    outline-offset: 3px;
}

/* HERO */
.landing-hero {
    text-align: center;
    padding: 112px 40px 96px;
    background: var(--bg-hero);
    position: relative;
    overflow: hidden;
}
#hero-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    mask-image: radial-gradient(ellipse 55% 70% at 50% 50%, transparent 20%, black 65%);
    -webkit-mask-image: radial-gradient(ellipse 55% 70% at 50% 50%, transparent 20%, black 65%);
}
.hero-inner {
    position: relative;
    max-width: 880px;
    margin: 0 auto;
}
.hero-label {
    font-family: var(--font-mono);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: var(--section-label-color);
    margin-bottom: 24px;
}
.landing-hero h1 {
    font-family: var(--font-primary);
    font-size: 72px;
    font-weight: 400;
    line-height: 1.0;
    letter-spacing: -0.5px;
    margin-bottom: 24px;
    color: var(--text-primary);
}
.landing-hero p.hero-lead {
    color: var(--text-secondary);
    font-size: 18px;
    line-height: 1.56;
    margin: 0 auto 40px;
    max-width: 580px;
}
.hero-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    align-items: center;
    margin-bottom: 32px;
    flex-wrap: wrap;
}
.hero-meta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--text-muted);
    letter-spacing: 0.4px;
}
.meta-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--color-green);
    box-shadow: 0 0 0 3px var(--color-green-border);
    animation: pulse 2s infinite;
}
@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

/* Pill buttons (landing-only) */
.btn-green-pill,
.btn-outline-pill,
.btn-ghost {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: var(--font-primary);
    font-size: 14px;
    font-weight: 500;
    line-height: 1;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.2s ease, filter 0.2s ease, border-color 0.2s ease, color 0.2s ease;
    text-decoration: none;
}
.btn-green-pill {
    background: rgba(225, 29, 72, 0.88);
    color: var(--color-near-black);
    padding: 8px 22px;
    border: 1px solid rgba(225, 29, 72, 0.55);
    border-radius: var(--radius-lg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}
.btn-green-pill:hover { filter: brightness(1.1); box-shadow: 0 0 0 4px var(--color-green-border); color: var(--color-near-black); }
.btn-green-pill:active { transform: scale(0.97); }
.btn-outline-pill {
    background: rgba(255, 255, 255, 0.07);
    color: var(--text-secondary);
    padding: 8px 22px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: var(--radius-lg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}
.btn-outline-pill:hover { background: rgba(255, 255, 255, 0.12); color: var(--text-primary); }
.btn-outline-pill:active { transform: scale(0.97); }
[data-theme="light"] .btn-outline-pill {
    background: rgba(0, 0, 0, 0.05);
    border-color: rgba(0, 0, 0, 0.10);
}
[data-theme="light"] .btn-outline-pill:hover { background: rgba(0, 0, 0, 0.09); }
.btn-large { padding: 12px 36px; font-size: 15px; }
.btn-xl { padding: 16px 44px; font-size: 16px; }
.btn-ghost {
    background: transparent;
    color: var(--text-primary);
    padding: 10px 16px;
    border: 1px solid transparent;
    border-radius: var(--radius-sm);
}
.btn-ghost:hover { color: var(--color-green); }

/* SECTIONS */
.landing-section {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 96px 40px;
}
.landing-section-title {
    font-family: var(--font-mono);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: var(--section-label-color);
    margin-bottom: 12px;
}
.landing-section-heading {
    font-family: var(--font-primary);
    font-size: 36px;
    font-weight: 400;
    line-height: 1.2;
    margin-bottom: 48px;
    color: var(--text-primary);
    letter-spacing: -0.3px;
}
.landing-divider {
    border: none;
    border-top: 1px solid var(--border-subtle);
    max-width: var(--max-w);
    margin: 0 auto;
}

/* CARDS */
.landing-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}
.landing-card-grid-2 { grid-template-columns: repeat(2, 1fr); }
.landing-card-grid-3 { grid-template-columns: repeat(3, 1fr); }
.landing-card-grid-4 { grid-template-columns: repeat(4, 1fr); }

.landing-card {
    border-radius: var(--radius-xl);
    padding: 28px;
    background: var(--bg-card);
    transition: border-color 0.2s ease, transform 0.2s ease, background-color 0.25s ease;
}
.landing-card-standard { border: 1px solid var(--border-color); }
.landing-card-green-accent { border: 1px solid var(--color-green-border); }
.landing-card-standard:hover { border-color: var(--text-muted); }

.card-label {
    font-family: var(--font-mono);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: var(--text-muted);
    margin-bottom: 16px;
}

.card-badge {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: .5px;
    text-transform: uppercase;
    color: var(--color-green);
    border: 1px solid var(--color-green-border);
    border-radius: 4px;
    padding: 1px 6px;
    margin-left: 8px;
    vertical-align: middle;
}
.card-badge-beta {
    color: var(--text-muted);
    border-color: var(--border-color);
}
.card-label-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

.landing-card h3 {
    font-family: var(--font-primary);
    font-size: 22px;
    font-weight: 400;
    line-height: 1.3;
    letter-spacing: -0.16px;
    margin-bottom: 12px;
    color: var(--text-primary);
}
.landing-card p {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.6;
    font-weight: 400;
}

/* SOLUÇÃO */
.solucao-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
}
.solucao-text .lead {
    font-size: 20px;
    color: var(--text-primary);
    margin-bottom: 16px;
    line-height: 1.4;
    letter-spacing: -0.2px;
}
.solucao-text p {
    color: var(--text-secondary);
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 16px;
}
.solucao-text .btn-green-pill { margin-top: 16px; }

/* ── Section 05 — App Demo Window ───────────────────────── */
.pv-demo {
    display: flex;
    align-items: center;
    justify-content: center;
    user-select: none;
}

.pv-window {
    width: 100%;
    max-width: 460px;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    box-shadow: 0 0 0 1px var(--border-color), 0 20px 56px rgba(0, 0, 0, 0.18);
    background: var(--bg-card);
}

.pv-window-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    height: 28px;
    padding: 0 12px;
    background: var(--bg-page);
    border-bottom: 1px solid var(--border-subtle);
}

.pv-dots { display: flex; gap: 5px; align-items: center; flex-shrink: 0; }

.pv-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.pv-url {
    flex: 1;
    text-align: center;
    font-size: 10px;
    font-family: var(--font-mono);
    color: var(--text-muted);
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 20px;
    padding: 3px 12px;
    max-width: 200px;
    margin: 0 auto;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.pv-app {
    display: flex;
    height: 356px;
}

.pv-sidebar {
    width: 128px;
    flex-shrink: 0;
    border-right: 1px solid var(--border-subtle);
    padding: 10px 6px;
    background: var(--bg-page);
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.pv-sb-brand {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 8px 10px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
    letter-spacing: -0.2px;
    border-bottom: 1px solid var(--border-subtle);
    margin-bottom: 6px;
}

.pv-brand-icon {
    width: 20px;
    height: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    background: var(--color-green);
    border: none;
    border-radius: 5px;
    padding: 3px;
}

.pv-brand-icon svg { width: 100%; height: 100%; display: block; }
.pv-brand-icon svg line { stroke: #fafafa; }
.pv-brand-icon svg circle { fill: #fafafa; }

.pv-sb-label {
    font-size: 9px;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: var(--text-muted);
    font-family: var(--font-mono);
    padding: 4px 8px 2px;
}

.pv-sb-item {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 5px 8px;
    border-radius: 5px;
    font-size: 11px;
    color: var(--text-secondary);
    cursor: default;
}

.pv-sb-active {
    background: var(--accent-wash);
    color: var(--color-green);
}

.pv-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.pv-main-top {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding: 10px 14px;
    border-bottom: 1px solid var(--border-subtle);
    flex-shrink: 0;
}

.pv-main-name {
    font-size: 12px;
    font-weight: 500;
    color: var(--text-primary);
}

.pv-new-btn {
    font-size: 10px;
    font-family: var(--font-mono);
    color: var(--color-green);
    padding: 3px 10px;
    border: 1px solid rgba(225, 29, 72, 0.3);
    border-radius: 8px;
    background: rgba(225, 29, 72, 0.07);
    cursor: default;
}

.pv-list {
    flex: 1;
    overflow: hidden;
    padding: 8px 10px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.pv-item {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 9px 11px;
    opacity: 0;
    transform: translateY(6px);
}

.pv-item-typing {
    border-color: rgba(225, 29, 72, 0.22);
    background: rgba(225, 29, 72, 0.02);
}

.pv-item-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 5px;
}

.pv-badge {
    font-size: 9px;
    font-family: var(--font-mono);
    padding: 2px 7px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    background: transparent;
}

.pv-badge-green {
    color: var(--color-green);
    border-color: rgba(225, 29, 72, 0.3);
    background: rgba(225, 29, 72, 0.08);
}

.pv-pin-icon { flex-shrink: 0; }

.pv-live {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--color-green);
    flex-shrink: 0;
    animation: pvPulse 1.6s ease-in-out infinite;
}

.pv-item-title {
    font-size: 11px;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 3px;
    min-height: 14px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.pv-item-excerpt {
    font-size: 10px;
    color: var(--text-muted);
    font-family: var(--font-mono);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-height: 13px;
}

.pv-cursor {
    display: inline-block;
    width: 1.5px;
    height: 11px;
    background: var(--color-green);
    vertical-align: middle;
    margin-left: 1px;
    animation: pvBlink 1s step-end infinite;
}

.pv-fade-1 { animation: pvSlideIn 0.35s ease forwards 0.2s; }
.pv-fade-2 { animation: pvSlideIn 0.35s ease forwards 0.45s; }
.pv-fade-3 { animation: pvSlideIn 0.35s ease forwards 0.7s; }

@keyframes pvSlideIn {
    to { opacity: 1; transform: translateY(0); }
}

@keyframes pvBlink {
    0%, 100% { opacity: 1; }
    50%       { opacity: 0; }
}

@keyframes pvPulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50%       { opacity: 0.4; transform: scale(0.65); }
}

@media (max-width: 960px) {
    .pv-demo { display: none; }
}

@media (prefers-reduced-motion: reduce) {
    .pv-fade-1, .pv-fade-2, .pv-fade-3 { animation: none; opacity: 1; transform: none; }
    .pv-live, .pv-cursor { animation: none; }
}
/* ─────────────────────────────────────────────────────────── */

.mock {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 18px;
    font-family: var(--font-mono);
    font-size: 13px;
}
.mock-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--border-subtle);
    margin-bottom: 14px;
}
.mock-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--text-muted);
    opacity: 0.5;
}
.mock-dot:nth-child(2) { opacity: 0.7; }
.mock-dot:nth-child(3) { opacity: 0.9; }
.mock-search {
    margin-left: 12px;
    color: var(--text-muted);
    font-size: 12px;
}
.mock-list { list-style: none; display: flex; flex-direction: column; gap: 10px; padding: 0; margin: 0; }
.mock-list li {
    color: var(--text-secondary);
    display: flex;
    align-items: baseline;
    gap: 10px;
    padding: 6px 0;
}
.mock-tag {
    display: inline-block;
    color: var(--section-label-color);
    font-size: 11px;
    letter-spacing: 0.5px;
    min-width: 70px;
}

/* STEPS */
.steps {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    padding: 0;
    margin: 0;
}
.step {
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: 28px;
    background: var(--bg-card);
    transition: border-color 0.2s ease, background-color 0.25s ease;
}
.step:hover { border-color: var(--text-muted); }
.step-num {
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--section-label-color);
    border: 1px solid var(--color-green-border);
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}
.step h3 {
    font-size: 22px;
    font-weight: 400;
    line-height: 1.3;
    margin-bottom: 10px;
    letter-spacing: -0.16px;
    color: var(--text-primary);
}
.step p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* COMPARAÇÃO */
.compare-wrap {
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    overflow: hidden;
    background: var(--bg-card);
}
.compare {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}
.compare th,
.compare td {
    padding: 16px 20px;
    text-align: left;
    border-bottom: 1px solid var(--border-subtle);
    color: var(--text-secondary);
    font-weight: 400;
}
.compare thead th {
    font-family: var(--font-mono);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: var(--text-muted);
    background: var(--surface-subtle, #0a0a0a);
    border-bottom: 1px solid var(--border-color);
}
.compare thead th.compare-us { color: var(--section-label-color); }
.compare tbody th {
    color: var(--text-primary);
    font-weight: 400;
}
.compare tbody tr:last-child th,
.compare tbody tr:last-child td { border-bottom: none; }
.compare td.compare-us {
    color: var(--text-primary);
    background: var(--accent-wash, rgba(225, 29, 72, 0.04));
    font-weight: 500;
}
.compare-note {
    color: var(--text-muted);
    font-size: 14px;
    margin-top: 24px;
    line-height: 1.6;
}

.landing-callout {
    border-left: 3px solid var(--accent, #e11d48);
    padding: 24px 28px;
    margin: 0;
    background: var(--accent-wash, rgba(225, 29, 72, 0.04));
    border-radius: 0 var(--radius-md, 8px) var(--radius-md, 8px) 0;
    font-size: 20px;
    font-weight: 500;
    line-height: 1.5;
    color: var(--text-primary);
    align-self: center;
}

/* URGÊNCIA */
.urgency {
    max-width: 720px;
    margin: 0 auto;
    text-align: center;
    padding: 48px 40px;
}
.urgency-label {
    font-family: var(--font-mono);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: var(--section-label-color);
    margin-bottom: 16px;
}
.urgency-title {
    font-size: 36px;
    font-weight: 400;
    line-height: 1.15;
    letter-spacing: -0.3px;
    margin-bottom: 20px;
    color: var(--text-primary);
}
.urgency p {
    color: var(--text-secondary);
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 24px;
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
}
.urgency-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 380px;
    margin: 0 auto 32px;
    text-align: left;
    font-size: 14px;
    color: var(--text-secondary);
    padding: 0;
}
.urgency-list li {
    padding-left: 24px;
    position: relative;
    line-height: 1.5;
}
.urgency-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 8px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--color-green);
}
.urgency-progress { margin-top: 32px; }
.progress-bar {
    height: 6px;
    background: var(--surface-subtle, #0a0a0a);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-pill);
    overflow: hidden;
    margin-bottom: 10px;
}
.progress-fill {
    height: 100%;
    background: var(--color-green);
    border-radius: var(--radius-pill);
    transition: width 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}
.progress-meta {
    display: flex;
    justify-content: space-between;
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* CTA FINAL */
.cta-final {
    text-align: center;
    padding-bottom: 128px;
}
.cta-final-heading {
    margin-bottom: 20px;
    font-size: 56px;
    line-height: 1.05;
    letter-spacing: -0.5px;
}
.cta-final-sub {
    color: var(--text-secondary);
    font-size: 18px;
    line-height: 1.56;
    max-width: 560px;
    margin: 0 auto 40px;
}
.cta-final-note {
    color: var(--text-muted);
    font-size: 13px;
    font-family: var(--font-mono);
    margin-top: 24px;
    letter-spacing: 0.4px;
}

/* REVEAL ANIMATION */
.reveal {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* RESPONSIVE */
@media (max-width: 960px) {
    .landing-card-grid-2 { grid-template-columns: 1fr; }
    .landing-card-grid-3 { grid-template-columns: repeat(2, 1fr); }
    .landing-card-grid-4 { grid-template-columns: repeat(2, 1fr); }
    .steps { grid-template-columns: 1fr; }
    .solucao-grid { grid-template-columns: 1fr; gap: 32px; }
    .cta-final-heading { font-size: 44px; }
}
@media (max-width: 768px) {
    .landing-hero { padding: 72px 20px 64px; }
    .landing-hero h1 { font-size: 40px; letter-spacing: -0.3px; }
    .landing-hero p.hero-lead { font-size: 16px; }
    .hero-buttons { flex-direction: column; width: 100%; }
    .hero-buttons .btn-green-pill,
    .hero-buttons .btn-ghost { width: 100%; }
    .landing-section { padding: 64px 20px; }
    .landing-section-heading { font-size: 28px; letter-spacing: -0.2px; }
    .landing-card-grid-3 { grid-template-columns: 1fr; }
    .landing-card-grid-4 { grid-template-columns: 1fr; }
    .landing-card { padding: 24px; }
    .landing-card h3 { font-size: 20px; }
    .compare th,
    .compare td { padding: 12px 14px; font-size: 13px; }
    .compare thead th:nth-child(4),
    .compare tbody td:nth-child(4) { display: none; }
    .urgency { padding: 32px 24px; }
    .urgency-title { font-size: 28px; }
    .cta-final { padding-bottom: 96px; }
    .cta-final-heading { font-size: 36px; }
    .cta-final-sub { font-size: 16px; }
}
@media (max-width: 420px) {
    .landing-hero h1 { font-size: 34px; }
    .landing-section-heading { font-size: 24px; }
}
@media (prefers-reduced-motion: reduce) {
    .reveal { opacity: 1; transform: none; transition: none; }
    .meta-dot { animation: none; }
    .progress-fill { transition: none; }
}
