/* Página pública de apresentação (Components/Pages/Landing.razor).
   Implementa o design "ResolvIA Landing" (claude.ai/design). Paleta própria, sem app.css:
   a apresentação da AutonomIA não depende dos tokens do painel.
   Ponto de quebra único em 760px, o mesmo do design: abaixo dele o topo vira menu, os ramos
   viram carrossel e os painéis da demonstração ganham rótulos. */

:root {
    --lp-bg: oklch(0.975 0.004 250);
    --lp-ink: oklch(0.22 0.03 260);
    --lp-paper: oklch(0.99 0.003 250);
    --lp-acc: oklch(0.76 0.13 84);
    --lp-acc-soft: oklch(0.84 0.11 88);
    --lp-acc-deep: oklch(0.6 0.12 78);
    --lp-line: oklch(0.91 0.008 255);
    --lp-line-2: oklch(0.88 0.01 255);
    --lp-line-3: oklch(0.92 0.008 255);
    --lp-muted: oklch(0.45 0.02 260);
    --lp-muted-2: oklch(0.5 0.02 260);
    --lp-shadow-acc: oklch(0.4 0.1 78 / 0.45);
    --lp-ease: cubic-bezier(.2, .7, .2, 1);
}

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

html { -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    background: var(--lp-bg);
    color: var(--lp-ink);
    font-family: 'Geist', system-ui, sans-serif;
    -webkit-font-smoothing: antialiased;
}

.lp { font-size: 16px; line-height: 1.55; }
.lp a { color: var(--lp-ink); }
.lp a:hover { color: var(--lp-acc-deep); }
.lp h1, .lp h2, .lp h3, .lp p { margin: 0; }

.lp-shell { max-width: 1200px; margin: 0 auto; padding-left: 24px; padding-right: 24px; }
.lp-mono { font-family: 'Geist Mono', ui-monospace, monospace; }
.lp-serif { font-family: 'Instrument Serif', serif; font-style: italic; font-weight: 400; }
.lp-accent { color: var(--lp-acc-deep); }
.lp-accent-deep { color: var(--lp-acc-deep); }

/* ── Botões ─────────────────────────────────────────────────────────────── */
.lp .lp-btn {
    display: inline-block;
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    padding: 9px 16px;
    border-radius: 8px;
    transition: background .15s, color .15s;
}
.lp .lp-btn--lg { font-size: 16px; padding: 14px 24px; }
.lp .lp-btn--ink { background: var(--lp-ink); color: var(--lp-paper); }
.lp .lp-btn--ink:hover { background: var(--lp-acc); color: var(--lp-ink); }
.lp .lp-btn--accent { background: var(--lp-acc); color: var(--lp-ink); }
.lp .lp-btn--accent:hover { background: var(--lp-acc-soft); color: var(--lp-ink); }
.lp .lp-btn--ghost { background: var(--lp-paper); border: 1px solid var(--lp-line-2); color: var(--lp-ink); padding: 13px 22px; }
.lp .lp-btn--paper { background: var(--lp-paper); color: var(--lp-ink); font-size: 16px; padding: 13px 22px; }

/* ── Topo ───────────────────────────────────────────────────────────────── */
.lp-top {
    position: sticky;
    top: 0;
    z-index: 10;
    background: oklch(0.975 0.004 250 / 0.88);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--lp-line);
}
.lp-top__inner { display: flex; align-items: center; gap: 32px; padding-top: 12px; padding-bottom: 12px; }
.lp .lp-brand {
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 600;
    font-size: 22px;
    letter-spacing: -0.045em;
    text-decoration: none;
    color: var(--lp-ink);
}
.lp-nav { display: flex; gap: 22px; font-size: 14px; flex: 1; white-space: nowrap; }
.lp .lp-nav a { text-decoration: none; color: var(--lp-muted); }
.lp .lp-nav a:hover { color: var(--lp-acc-deep); }
.lp .lp-nav a.is-current { color: var(--lp-ink); font-weight: 600; }
.lp .lp-signin { text-decoration: none; font-size: 14px; }

.lp-burger {
    display: none;
    margin-left: auto;
    width: 44px;
    height: 44px;
    border-radius: 10px;
    border: 1px solid var(--lp-line-2);
    background: var(--lp-paper);
    cursor: pointer;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 0;
}
.lp-burger span { display: block; width: 20px; height: 2px; border-radius: 2px; background: var(--lp-ink); transition: transform .25s, opacity .2s; }
.lp-burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.lp-burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.lp-burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.lp-menu {
    border-top: 1px solid var(--lp-line);
    background: var(--lp-paper);
    padding: 8px 24px 20px;
    display: flex;
    flex-direction: column;
}
.lp-menu[hidden] { display: none; }
.lp .lp-menu a {
    text-decoration: none;
    font-size: 18px;
    font-weight: 500;
    padding: 14px 0;
    border-bottom: 1px solid var(--lp-line-3);
    display: flex;
    justify-content: space-between;
}
.lp .lp-menu a.is-current { font-weight: 600; color: var(--lp-acc-deep); }
.lp .lp-menu .lp-menu__signin { font-size: 16px; font-weight: 400; border-bottom: 0; }
.lp .lp-menu .lp-menu__cta { justify-content: center; font-size: 16px; font-weight: 600; padding: 14px; border-radius: 10px; border-bottom: 0; }

/* ── Herói ──────────────────────────────────────────────────────────────── */
.lp-hero {
    background-image:
        linear-gradient(oklch(0.93 0.008 255) 1px, transparent 1px),
        linear-gradient(90deg, oklch(0.93 0.008 255) 1px, transparent 1px);
    background-size: 56px 56px;
    border-bottom: 1px solid var(--lp-line);
}
.lp-hero__inner { padding-top: 80px; display: flex; flex-direction: column; gap: 40px; }
.lp-hero__copy { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 24px; }
.lp-pill {
    font-family: 'Geist Mono', ui-monospace, monospace;
    font-size: 12px;
    padding: 6px 12px;
    border-radius: 999px;
    background: var(--lp-paper);
    border: 1px solid oklch(0.9 0.01 255);
    display: flex;
    gap: 8px;
    align-items: center;
}
.lp-pill__dot { width: 6px; height: 6px; border-radius: 50%; background: oklch(0.62 0.15 150); }
.lp-hero h1 {
    font-size: clamp(38px, 5.2vw, 68px);
    line-height: 1.03;
    letter-spacing: -0.042em;
    font-weight: 500;
    max-width: 14em;
    text-wrap: balance;
}
.lp-hero h1 em { letter-spacing: -0.02em; }
.lp-lead { font-size: 19px; color: oklch(0.42 0.02 260); max-width: 36em; text-wrap: pretty; }
.lp-actions { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.lp-hero__note { font-size: 18px; font-weight: 500; color: oklch(0.35 0.02 260); max-width: 34em; text-wrap: pretty; }

/* ── Ramos ──────────────────────────────────────────────────────────────── */
.lp-ramos { display: flex; flex-direction: column; gap: 16px; scroll-margin-top: 80px; }
.lp-ramos__title { display: flex; align-items: center; justify-content: center; gap: 8px; font-size: 15px; font-weight: 600; }
.lp-ramos__arrow { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--lp-acc); font-size: 12px; }
.lp-ramos__list { display: flex; flex-wrap: wrap; gap: 12px; }

.lp-ramo {
    flex: 1 1 170px;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    border-radius: 14px;
    padding: 18px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-height: 210px;
    border: 1.5px solid var(--lp-line-2);
    background: var(--lp-paper);
    color: var(--lp-ink);
    transition: transform .2s, box-shadow .2s, border-color .2s, background .2s, color .2s;
}
.lp-ramo:hover { transform: translateY(-4px); box-shadow: 0 18px 36px -18px var(--lp-shadow-acc); border-color: var(--lp-acc); }
.lp-ramo.is-active { background: var(--lp-ink); color: var(--lp-paper); border-color: var(--lp-ink); }
.lp-ramo.is-active:hover { border-color: var(--lp-acc); }
.lp-ramo__n { font-size: 11px; opacity: 0.7; }
.lp-ramo__label { font-size: 20px; font-weight: 500; letter-spacing: -0.02em; line-height: 1.25; }
.lp-ramo__does { font-size: 14px; opacity: 0.8; text-wrap: pretty; }
.lp-ramo__watch {
    margin-top: auto;
    font: inherit;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    border: 0;
    padding: 10px 14px;
    border-radius: 9px;
    background: oklch(0.94 0.02 78);
    color: oklch(0.4 0.13 78);
}
.lp-ramo__watch:hover { filter: brightness(1.08); }
.lp-ramo.is-active .lp-ramo__watch { background: var(--lp-acc); color: var(--lp-ink); }
.lp .lp-ramo__page {
    text-align: center;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    padding: 8px 12px;
    border-radius: 9px;
    border: 1.5px solid oklch(0.85 0.01 255);
    color: inherit;
}
.lp .lp-ramo.is-active .lp-ramo__page { border-color: oklch(0.45 0.03 260); }
.lp .lp-ramo__page:hover { border-color: var(--lp-acc); color: inherit; }
.lp-ramo__progress { position: absolute; left: 0; bottom: 0; height: 3px; width: 0; background: oklch(0.75 0.12 78); transition: width 1.4s linear; }

.lp-dots, .lp-swipe-hint { display: none; }
.lp-dots { justify-content: center; align-items: center; gap: 8px; }
.lp-dot { border: 0; padding: 0; cursor: pointer; height: 8px; width: 8px; border-radius: 999px; background: oklch(0.85 0.01 255); transition: width .25s, background .25s; }
.lp-dot.is-active { width: 24px; background: var(--lp-acc-deep); }
.lp-swipe-hint { text-align: center; font-size: 13px; color: var(--lp-muted-2); }

.lp-ramos__foot { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 13px; color: var(--lp-muted-2); }
.lp .lp-ramos__foot a { font-weight: 500; }

/* ── Demonstração ───────────────────────────────────────────────────────── */
.lp-demo {
    scroll-margin-top: 72px;
    border: 1px solid var(--lp-line-2);
    border-bottom: 0;
    border-radius: 14px 14px 0 0;
    box-shadow: 0 -20px 60px -30px oklch(0.4 0.1 78 / 0.3);
    overflow: hidden;
}
.lp-demo__bar {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    border-bottom: 1px solid var(--lp-line-3);
    background: var(--lp-paper);
    font-size: 12px;
    color: var(--lp-muted-2);
}
.lp-demo__light { width: 10px; height: 10px; border-radius: 50%; background: var(--lp-line-2); }
.lp-demo__path { margin-left: 12px; flex: 1; }
.lp-demo__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); row-gap: 14px; }

.lp-pane-label { display: none; flex-direction: column; gap: 2px; }
.lp-pane-label .lp-mono { font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; font-weight: 500; }
.lp-pane-label span + span { font-size: 13px; }
.lp-pane-label--chat { color: #54656F; margin-bottom: 4px; }
.lp-pane-label--board { margin: 14px 0 8px; }
.lp-pane-label--board .lp-mono { color: var(--lp-acc-deep); }
.lp-pane-label--board span + span { color: oklch(0.48 0.02 260); }

/* Conversa: cores do próprio WhatsApp — é o que o cliente vê. */
.lp-chat {
    padding: 22px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    border-right: 1px solid var(--lp-line-3);
    background: #EFEAE2;
    height: 500px;
    overflow: hidden;
}
.lp-chat__head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; gap: 12px; }
.lp-chat__who { display: flex; align-items: center; gap: 10px; font-size: 14px; }
.lp-chat__who strong { font-weight: 600; }
.lp-chat__avatar { width: 32px; height: 32px; border-radius: 50%; background: oklch(0.92 0.03 78); display: grid; place-items: center; font-size: 12px; font-weight: 600; }
.lp-chat__badge { font-size: 11px; padding: 3px 8px; border-radius: 6px; background: oklch(0.93 0.05 78); color: oklch(0.4 0.13 78); }
.lp-chat__body { flex: 1; min-height: 0; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; gap: 10px; }

.lp-bubble {
    max-width: 85%;
    color: #111B21;
    padding: 8px 12px;
    font-size: 14px;
    box-shadow: 0 1px 0.5px rgba(11, 20, 26, .13);
}
.lp-bubble--in { align-self: flex-start; background: #FFFFFF; border-radius: 2px 10px 10px 10px; }
.lp-bubble--out { align-self: flex-end; background: #D9FDD3; border-radius: 10px 2px 10px 10px; }
.lp-bubble__audio { display: block; font-size: 10px; color: #008069; }
.lp-bubble.is-new { animation: lp-pop .35s var(--lp-ease); }
.lp-typing { align-self: flex-start; font-family: 'Geist Mono', ui-monospace, monospace; font-size: 12px; color: oklch(0.55 0.02 260); padding: 4px 2px; }

@keyframes lp-pop {
    from { opacity: 0; transform: translateY(8px) scale(0.98); }
    to { opacity: 1; transform: none; }
}

/* Quadro do painel */
.lp-board { padding: 22px; display: flex; flex-direction: column; gap: 14px; height: 500px; overflow: hidden; background: var(--lp-paper); }
.lp-col {
    background: oklch(0.955 0.01 80);
    border: 1px solid oklch(0.9 0.012 80);
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    min-height: 340px;
}
.lp-col__head { background: oklch(0.87 0.15 90); padding: 12px 14px; display: flex; flex-direction: column; gap: 2px; }
.lp-col__head strong { font-size: 15px; font-weight: 600; color: oklch(0.25 0.02 70); }
.lp-col__head span { font-size: 13px; color: oklch(0.4 0.03 70); }
.lp-col__body { padding: 14px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.lp-col__waiting { border: 1.5px dashed oklch(0.82 0.02 80); border-radius: 10px; padding: 28px 16px; text-align: center; font-size: 14px; color: oklch(0.45 0.02 70); }
.lp-col__waiting[hidden], .lp-card[hidden], .lp-card__paid[hidden] { display: none; }

.lp-card {
    background: oklch(0.995 0.002 80);
    border-radius: 10px;
    box-shadow: 0 2px 6px oklch(0.3 0.02 70 / 0.18);
    padding: 14px 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    color: oklch(0.25 0.02 70);
}
.lp-card.is-new { animation: lp-pop .45s var(--lp-ease); }
.lp-card svg { flex: none; }
.lp-card__row { display: flex; align-items: center; gap: 10px; }
.lp-card__row--split { justify-content: space-between; gap: 12px; }
.lp-card__user { color: oklch(0.45 0.15 10); }
.lp-card__name { font-size: 15px; font-weight: 600; flex: 1; }
.lp-card__id { font-size: 12px; font-weight: 500; padding: 4px 9px; border-radius: 999px; background: oklch(0.94 0.008 80); }
.lp-card__items { display: flex; flex-direction: column; gap: 6px; }
.lp-card__items-label { font-size: 12px; font-weight: 600; letter-spacing: 0.03em; color: oklch(0.45 0.02 70); }
.lp-card__item { border-left: 2px solid oklch(0.45 0.15 10); padding: 1px 0 1px 10px; font-size: 15px; margin-top: 6px; }
.lp-card__item:first-child { margin-top: 0; }
.lp-card__paid {
    align-self: flex-start;
    font-size: 13px;
    font-weight: 600;
    color: oklch(0.42 0.12 150);
    background: oklch(0.95 0.04 150);
    border-radius: 7px;
    padding: 6px 10px;
}
.lp-card__time { display: flex; align-items: center; gap: 6px; font-size: 13px; color: oklch(0.45 0.02 70); }
.lp-card__total { font-size: 15px; font-weight: 600; color: oklch(0.5 0.13 150); }
.lp-card__select {
    flex: 1;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 9px 12px;
    border-radius: 8px;
    background: oklch(0.94 0.012 80);
    border: 1px solid oklch(0.85 0.03 80);
    font-size: 14px;
    font-weight: 500;
}
.lp-board__foot { margin-top: auto; display: flex; justify-content: flex-end; }
.lp-takeover { font-size: 13px; font-weight: 500; padding: 7px 12px; border-radius: 7px; border: 1px solid var(--lp-line-2); }

/* ── Seções ─────────────────────────────────────────────────────────────── */
.lp-section .lp-shell { padding-top: 112px; padding-bottom: 112px; }
.lp-section--ruled { border-top: 1px solid var(--lp-line); }
.lp-stack { display: flex; flex-direction: column; gap: 40px; }
.lp-stack--tight { gap: 32px; }
.lp-section__head { display: flex; flex-direction: column; gap: 14px; max-width: 640px; }
.lp-eyebrow { font-size: 12px; color: var(--lp-acc-deep); }
.lp-eyebrow--light { color: oklch(0.75 0.12 78); }
.lp-section h2 {
    font-size: clamp(34px, 4.2vw, 52px);
    line-height: 1.05;
    letter-spacing: -0.035em;
    font-weight: 500;
    text-wrap: balance;
}

.lp-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 14px; }
.lp-step {
    background: var(--lp-paper);
    border: 1px solid var(--lp-line);
    border-radius: 14px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    min-height: 220px;
}
.lp-step__n { font-size: 12px; color: var(--lp-muted-2); }
.lp-step h3 { font-size: 22px; font-weight: 500; letter-spacing: -0.02em; }
.lp-step p { font-size: 15px; color: var(--lp-muted); text-wrap: pretty; }

/* Regras: bloco escuro */
.lp-dark { background: var(--lp-ink); color: oklch(0.96 0.005 250); }
.lp-rules { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); gap: 56px; }
.lp-rules__copy { display: flex; flex-direction: column; gap: 18px; }
.lp-rules__copy p { font-size: 17px; color: oklch(0.78 0.015 255); text-wrap: pretty; }
.lp-rules__tabs { display: flex; gap: 6px; flex-wrap: wrap; }
.lp-rules__tab {
    font: inherit;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    padding: 10px 16px;
    border-radius: 10px;
    border: 1.5px solid oklch(0.5 0.04 260);
    background: oklch(0.28 0.03 260);
    color: oklch(0.95 0.01 255);
    transition: transform .15s, border-color .15s;
}
.lp-rules__tab:hover { transform: translateY(-2px); border-color: oklch(0.85 0.08 78); }
.lp-rules__tab.is-active { background: var(--lp-paper); color: var(--lp-ink); }
.lp-rules__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(50% - 1px, 220px), 1fr));
    gap: 1px;
    background: oklch(0.34 0.03 260);
    border: 1px solid oklch(0.34 0.03 260);
    border-radius: 12px;
    overflow: hidden;
    align-self: start;
}
.lp-rule { background: oklch(0.25 0.03 260); padding: 20px; display: flex; flex-direction: column; gap: 4px; }
.lp-rule strong { font-weight: 500; font-size: 15px; }
.lp-rule span { font-size: 13px; color: oklch(0.75 0.015 255); }

/* Depoimentos */
.lp-quotes { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 14px; }
.lp-quote {
    margin: 0;
    background: var(--lp-paper);
    border: 1px solid var(--lp-line);
    border-radius: 14px;
    padding: 28px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}
.lp-quote blockquote { margin: 0; font-style: normal; font-size: 25px; line-height: 1.25; text-wrap: pretty; }
.lp-quote figcaption { font-size: 13px; margin-top: auto; display: flex; flex-direction: column; }
.lp-quote figcaption strong { font-weight: 600; }
.lp-quote figcaption span { color: var(--lp-muted-2); }

/* Chamada final */
.lp-final-wrap { padding: 0 24px 24px; }
.lp-final {
    max-width: 1200px;
    margin: 0 auto;
    border-radius: 20px;
    background: var(--lp-acc);
    color: var(--lp-ink);
    padding: clamp(48px, 7vw, 88px);
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 360px), 1fr));
    gap: 32px;
    align-items: end;
}
.lp-final h2 { font-size: clamp(36px, 4.8vw, 60px); line-height: 1; letter-spacing: -0.04em; font-weight: 500; text-wrap: balance; }
.lp-final__side { display: flex; flex-direction: column; gap: 20px; align-items: flex-start; }
.lp-final__side p { font-size: 17px; }

/* Rodapé */
.lp-footer {
    padding-top: 28px;
    padding-bottom: 40px;
    display: flex;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    font-size: 13px;
    color: var(--lp-muted-2);
}
.lp-footer__brand { display: flex; align-items: center; gap: 6px; }
.lp-footer__links { display: flex; gap: 20px; }
.lp .lp-footer__links a { color: inherit; }

/* ── Celular ────────────────────────────────────────────────────────────── */
/* O topo vira hambúrguer antes do resto (1080px, como no design): com "Página inicial" e
   "Restaurantes" a navegação completa não cabe entre 760 e 1080. */
@media (max-width: 1079.98px) {
    .lp .lp-nav, .lp .lp-signin, .lp .lp-top__cta { display: none; }
    .lp-burger { display: flex; }
}

@media (max-width: 759.98px) {

    .lp-ramos__list {
        flex-wrap: nowrap;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        scrollbar-width: none;
        margin: 0 -24px;
        padding: 4px 24px 8px;
        scroll-padding: 0 24px;
    }
    .lp-ramos__list::-webkit-scrollbar { display: none; }
    .lp-ramo { flex: 0 0 82%; scroll-snap-align: center; }
    .lp-dots { display: flex; }
    .lp-swipe-hint { display: block; }

    .lp-pane-label { display: flex; }
    .lp-chat { border-right: 0; }
    .lp-rule { padding: 16px 14px; }
}

/* Sem o menu no desktop, mesmo se ficou aberto ao girar a tela. */
@media (min-width: 1080px) {
    .lp-menu { display: none !important; }
}

@media (prefers-reduced-motion: reduce) {
    .lp *, .lp *::before, .lp *::after { animation: none !important; transition: none !important; }
}
