/* css/landing.css — landing page pública focada em SEO (CRM Agro / revenda / RTV / cooperativa).
   Reutiliza os tokens de marca (tokens.css, via app.css) e os componentes de form (.field/.btn/
   .auth-error do app.css) no modal de login. Só estilos específicos da landing moram aqui. */

:root { --lp-max: 1140px; }

body { height: auto; min-height: 100%; overflow-x: hidden; }

.lp-wrap { max-width: var(--lp-max); margin: 0 auto; padding: 0 22px; }

/* ---------------- header ---------------- */
.lp-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(243, 246, 238, .97);
  border-bottom: 1px solid var(--border);
}
.lp-header .lp-wrap { display: flex; align-items: center; gap: 20px; height: 66px; }
.lp-brand { display: flex; align-items: center; gap: 11px; }
.lp-brand .mark {
  width: 40px; height: 40px; border-radius: 12px;
  background: linear-gradient(140deg, var(--primary), var(--secondary));
  display: flex; align-items: center; justify-content: center; box-shadow: var(--shadow-btn-primary);
}
.lp-brand .name { display: block; font-family: var(--font-title); font-weight: 800; font-size: 20px; color: var(--text-title); line-height: 1; }
.lp-brand .tag { display: block; font-size: 11px; color: var(--text-faint); margin-top: 2px; }
.lp-nav { display: flex; align-items: center; gap: 26px; margin-left: auto; }
.lp-nav a { font-size: 14px; font-weight: 600; color: var(--text-muted); }
.lp-nav a:hover { color: var(--primary); }
.lp-header .btn { flex: none; }

/* ---------------- buttons ---------------- */
.lp-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font-body); font-weight: 700; font-size: 15px; cursor: pointer;
  border-radius: var(--radius-btn); padding: 13px 22px; border: 1px solid transparent; transition: .16s;
}
.lp-btn-primary { background: var(--primary); color: #fff; box-shadow: var(--shadow-btn-primary); }
.lp-btn-primary:hover { background: var(--primary-darker); transform: translateY(-1px); }
.lp-btn-ghost { background: var(--surface); color: var(--primary); border-color: #d3e0c8; }
.lp-btn-ghost:hover { border-color: var(--primary); }
.lp-btn-lg { padding: 15px 28px; font-size: 16px; }
.lp-btn-white { background: #fff; color: var(--primary); }
.lp-btn-white:hover { background: #f3f6ee; }

/* ---------------- hero ---------------- */
.lp-hero { padding: 62px 0 30px; position: relative; }
.lp-hero-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 46px; align-items: center; }
.lp-eyebrow {
  display: inline-flex; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 700;
  color: var(--primary); background: var(--success-bg); border: 1px solid #cfe4c2;
  padding: 6px 13px; border-radius: var(--radius-pill); margin-bottom: 18px;
}
.lp-hero h1 {
  font-family: var(--font-title); font-weight: 800; font-size: clamp(34px, 4.6vw, 52px);
  line-height: 1.05; letter-spacing: -0.02em; color: var(--text-title);
}
.lp-hero h1 em { font-style: normal; color: var(--primary); }
.lp-hero .sub { font-size: 18px; line-height: 1.6; color: var(--text-muted); margin: 20px 0 28px; max-width: 540px; }
.lp-hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }
.lp-hero-trust { margin-top: 20px; font-size: 13px; color: var(--text-faint); display: flex; align-items: center; gap: 8px; }
.lp-hero-trust b { color: var(--primary); }

/* strip de segmentos (keywords) */
.lp-strip { border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); background: var(--surface-alt-2); }
.lp-strip .lp-wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px 30px; padding: 20px 22px; }
.lp-strip span { font-size: 14.5px; font-weight: 700; color: var(--text-muted); display: inline-flex; align-items: center; gap: 8px; }
.lp-strip .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--secondary); }

/* ---------------- browser frame / mockups ---------------- */
.lp-frame { border-radius: 16px; overflow: hidden; box-shadow: 0 26px 60px rgba(31,42,30,.22); border: 1px solid var(--border); background: var(--surface); }
.lp-frame.floaty { transform: perspective(1400px) rotateY(-4deg) rotateX(2deg); }
.lp-frame-bar { display: flex; align-items: center; gap: 7px; padding: 11px 14px; background: #e9efe3; border-bottom: 1px solid var(--border); }
.lp-frame-bar i { width: 11px; height: 11px; border-radius: 50%; display: inline-block; }
.lp-frame-bar i:nth-child(1) { background: #e06a5b; }
.lp-frame-bar i:nth-child(2) { background: #e8b53f; }
.lp-frame-bar i:nth-child(3) { background: #5aa02a; }
.lp-frame-url { margin-left: 10px; flex: 1; background: #fff; border-radius: 7px; padding: 5px 12px; font-size: 11.5px; color: var(--text-faint); }

/* mock: dashboard */
.mock-dash { display: grid; grid-template-columns: 118px 1fr; background: var(--bg); min-height: 340px; }
.mock-side { background: var(--primary); padding: 16px 12px; display: flex; flex-direction: column; gap: 5px; }
.mock-side .grp { font-size: 8px; letter-spacing: .1em; color: rgba(255,255,255,.55); font-weight: 700; margin: 8px 4px 3px; text-transform: uppercase; }
.mock-side .it { font-size: 11px; color: rgba(255,255,255,.82); padding: 7px 9px; border-radius: 8px; display: flex; align-items: center; gap: 7px; }
.mock-side .it.on { background: rgba(255,255,255,.16); color: #fff; font-weight: 700; }
.mock-side .it .b { width: 12px; height: 12px; border-radius: 3px; background: currentColor; opacity: .55; }
.mock-main { padding: 18px; }
.mock-h { font-family: var(--font-title); font-weight: 800; font-size: 17px; color: var(--text-title); }
.mock-hsub { font-size: 10.5px; color: var(--text-faint); margin-top: 2px; }
.mock-kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin: 14px 0; }
.mock-kpi { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 12px; }
.mock-kpi .lbl { font-size: 8.5px; color: var(--text-faint); font-weight: 700; }
.mock-kpi .val { font-family: var(--font-title); font-weight: 800; font-size: 20px; color: var(--text); margin-top: 6px; }
.mock-kpi .hint { font-size: 8px; color: var(--success-text); margin-top: 3px; }
.mock-panels { display: grid; grid-template-columns: 1.5fr 1fr; gap: 10px; }
.mock-panel { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 13px; }
.mock-panel .t { font-family: var(--font-title); font-weight: 800; font-size: 12px; color: var(--text-title); margin-bottom: 12px; }
.mock-bars { display: flex; align-items: flex-end; gap: 10px; height: 92px; }
.mock-bars .bar { flex: 1; background: linear-gradient(var(--secondary), var(--primary)); border-radius: 5px 5px 0 0; position: relative; }
.mock-bars .bar span { position: absolute; top: -14px; left: 0; right: 0; text-align: center; font-size: 9px; font-weight: 800; color: var(--primary); }
.mock-list .row { display: flex; align-items: center; gap: 8px; padding: 7px 0; border-top: 1px solid var(--divider); font-size: 10.5px; }
.mock-list .row:first-child { border-top: 0; }
.mock-av { width: 20px; height: 20px; border-radius: 50%; color: #fff; font-size: 8px; font-weight: 800; display: flex; align-items: center; justify-content: center; }
.mock-list .row .km { margin-left: auto; font-weight: 800; color: var(--primary); font-size: 10px; }

/* mock: mapa de talhões */
.mock-map { position: relative; min-height: 320px; background:
  radial-gradient(circle at 22% 30%, #6f8f52 0 8%, transparent 8%),
  radial-gradient(circle at 62% 22%, #7a9a5b 0 6%, transparent 6%),
  linear-gradient(135deg, #46603a, #38502f 45%, #2e4429); overflow: hidden; }
.mock-map .fieldrow { position: absolute; inset: 0; opacity: .5;
  background-image:
    repeating-linear-gradient(48deg, rgba(255,255,255,.04) 0 2px, transparent 2px 22px),
    repeating-linear-gradient(-42deg, rgba(0,0,0,.06) 0 3px, transparent 3px 26px); }
.mock-map svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.mock-map .m-badge { position: absolute; left: 14px; top: 14px; background: rgba(255,255,255,.94); border-radius: 9px; padding: 8px 11px; font-size: 11px; font-weight: 700; color: var(--text-title); box-shadow: var(--shadow-highlight); }
.mock-map .m-badge small { display: block; font-weight: 500; color: var(--text-faint); font-size: 9.5px; }
.mock-chip-irr { position: absolute; padding: 3px 9px; border-radius: 20px; font-size: 9.5px; font-weight: 800; box-shadow: 0 2px 6px rgba(0,0,0,.25); }

/* mock: pós-venda / funil */
.mock-flow { padding: 18px; background: var(--bg); min-height: 320px; }
.mock-stepper { display: flex; gap: 8px; margin-bottom: 14px; }
.mock-step { flex: 1; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 12px; text-align: center; }
.mock-step .dot { width: 26px; height: 26px; border-radius: 50%; margin: 0 auto 7px; display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 800; }
.mock-step.done .dot { background: var(--primary); color: #fff; }
.mock-step.todo .dot { background: var(--surface-alt-2); color: var(--text-faint); border: 1.5px solid var(--border); }
.mock-step .nm { font-size: 10.5px; font-weight: 700; color: var(--text-title); }
.mock-step .mt { font-size: 8.5px; color: var(--text-faint); margin-top: 2px; }
.mock-kanban { display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; }
.mock-col { background: var(--surface-alt-2); border-radius: 11px; padding: 9px; }
.mock-col .ch { font-size: 9px; font-weight: 800; color: var(--text-muted); text-transform: uppercase; letter-spacing: .04em; margin-bottom: 8px; display: flex; align-items: center; gap: 6px; }
.mock-col .ch i { width: 7px; height: 7px; border-radius: 50%; }
.mock-deal { background: var(--surface); border: 1px solid var(--border); border-radius: 9px; padding: 9px; margin-bottom: 7px; }
.mock-deal .p { font-size: 10px; font-weight: 700; color: var(--text-title); }
.mock-deal .v { font-size: 11px; font-weight: 800; color: var(--primary); margin-top: 3px; }

/* ---------------- sections ---------------- */
.lp-section { padding: 74px 0; }
.lp-section.alt { background: var(--surface-alt-2); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.lp-shead { text-align: center; max-width: 680px; margin: 0 auto 46px; }
.lp-shead .kick { font-size: 13px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--primary); }
.lp-shead h2 { font-family: var(--font-title); font-weight: 800; font-size: clamp(27px, 3.4vw, 38px); color: var(--text-title); margin-top: 10px; letter-spacing: -0.02em; }
.lp-shead p { font-size: 16.5px; line-height: 1.6; color: var(--text-muted); margin-top: 14px; }

/* features grid */
.lp-features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.lp-feat { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-card); padding: 24px; box-shadow: var(--shadow-card); transition: .16s; }
.lp-feat:hover { box-shadow: var(--shadow-highlight); transform: translateY(-2px); }
.lp-feat .ic { width: 46px; height: 46px; border-radius: 13px; background: var(--success-bg); color: var(--primary); display: flex; align-items: center; justify-content: center; margin-bottom: 16px; }
.lp-feat h3 { font-family: var(--font-title); font-weight: 800; font-size: 17px; color: var(--text-title); }
.lp-feat p { font-size: 14px; line-height: 1.6; color: var(--text-muted); margin-top: 8px; }

/* showcase (screenshot + text alternado) */
.lp-show { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; margin-bottom: 70px; }
.lp-show:last-child { margin-bottom: 0; }
.lp-show.rev .lp-show-txt { order: 2; }
.lp-show .tagline { font-size: 13px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--secondary); }
.lp-show h3 { font-family: var(--font-title); font-weight: 800; font-size: 26px; color: var(--text-title); margin: 10px 0 14px; letter-spacing: -0.01em; }
.lp-show p { font-size: 15.5px; line-height: 1.65; color: var(--text-muted); }
.lp-check { list-style: none; padding: 0; margin: 18px 0 0; display: flex; flex-direction: column; gap: 10px; }
.lp-check li { display: flex; align-items: flex-start; gap: 10px; font-size: 14.5px; color: var(--text); font-weight: 600; }
.lp-check li svg { flex: none; margin-top: 1px; color: var(--primary); }

/* público-alvo */
.lp-aud { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.lp-audc { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-card); padding: 22px; }
.lp-audc .ic { width: 42px; height: 42px; border-radius: 12px; display: flex; align-items: center; justify-content: center; color: #fff; margin-bottom: 14px; }
.lp-audc h3 { font-family: var(--font-title); font-weight: 800; font-size: 16px; color: var(--text-title); }
.lp-audc p { font-size: 13.5px; line-height: 1.55; color: var(--text-muted); margin-top: 7px; }

/* stats */
.lp-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; text-align: center; }
.lp-stat .n { font-family: var(--font-title); font-weight: 800; font-size: 40px; color: var(--primary); line-height: 1; }
.lp-stat .l { font-size: 13.5px; color: var(--text-muted); margin-top: 8px; }

/* FAQ */
.lp-faq { max-width: 780px; margin: 0 auto; }
.lp-faqitem { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 4px 20px; margin-bottom: 12px; }
.lp-faqitem summary { list-style: none; cursor: pointer; padding: 18px 0; font-family: var(--font-title); font-weight: 700; font-size: 16.5px; color: var(--text-title); display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.lp-faqitem summary::-webkit-details-marker { display: none; }
.lp-faqitem summary::after { content: "+"; font-size: 22px; color: var(--primary); font-weight: 400; flex: none; }
.lp-faqitem[open] summary::after { content: "–"; }
.lp-faqitem p { font-size: 14.5px; line-height: 1.65; color: var(--text-muted); margin: 0 0 18px; }

/* CTA final */
.lp-cta {
  background: linear-gradient(140deg, var(--primary-dark), var(--primary) 60%, var(--secondary));
  border-radius: 26px; padding: 56px 40px; text-align: center; color: #fff; box-shadow: var(--shadow-card-green);
}
.lp-cta h2 { font-family: var(--font-title); font-weight: 800; font-size: clamp(26px, 3.4vw, 38px); letter-spacing: -0.02em; }
.lp-cta p { font-size: 17px; opacity: .92; margin: 14px auto 26px; max-width: 560px; line-height: 1.55; }
.lp-cta .lp-hero-cta { justify-content: center; }

/* footer */
.lp-footer { background: var(--text); color: rgba(255,255,255,.72); padding: 52px 0 30px; }
.lp-foot-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 34px; }
.lp-footer .lp-brand .name { color: #fff; }
.lp-footer .lp-brand .tag { color: rgba(255,255,255,.5); }
.lp-footer .fdesc { font-size: 13.5px; line-height: 1.6; margin-top: 16px; max-width: 340px; }
.lp-footer h4 { color: #fff; font-family: var(--font-title); font-size: 14px; font-weight: 700; margin-bottom: 14px; }
.lp-footer ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 9px; }
.lp-footer li { font-size: 13.5px; }
.lp-footer a { color: rgba(255,255,255,.72); }
.lp-footer a:hover { color: #fff; }
.lp-foot-bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: 38px; padding-top: 20px; font-size: 12.5px; color: rgba(255,255,255,.5); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }

/* keyword-rich seo footnote (natural) */
.lp-seo-note { font-size: 12.5px; line-height: 1.7; color: rgba(255,255,255,.45); margin-top: 18px; max-width: 900px; }

/* ---------------- modal de login ---------------- */
.lp-modal { position: fixed; inset: 0; z-index: 100; display: none; align-items: center; justify-content: center; padding: 20px; background: rgba(31,42,30,.5); backdrop-filter: blur(3px); }
.lp-modal.open { display: flex; }
.lp-modal-card { background: var(--surface); border-radius: 20px; width: 100%; max-width: 410px; padding: 28px 26px; box-shadow: var(--shadow-highlight); position: relative; animation: lppop .18s ease; }
@keyframes lppop { from { transform: translateY(10px) scale(.98); opacity: 0; } to { transform: none; opacity: 1; } }
.lp-modal-close { position: absolute; top: 14px; right: 16px; background: none; border: none; font-size: 24px; line-height: 1; color: var(--text-faint); cursor: pointer; }
.lp-modal-close:hover { color: var(--text); }
.lp-modal .auth-logo { display: flex; align-items: center; gap: 11px; margin-bottom: 22px; }
.lp-modal .auth-logo .mark { width: 40px; height: 40px; border-radius: 12px; background: linear-gradient(140deg, var(--primary), var(--secondary)); display: flex; align-items: center; justify-content: center; }
.lp-modal .auth-logo .name { display: block; font-family: var(--font-title); font-weight: 800; font-size: 18px; color: var(--text-title); line-height: 1; }
.lp-modal .auth-logo .tag { display: block; font-size: 11px; color: var(--text-faint); margin-top: 2px; }
.lp-modal .auth-title { font-size: 20px; font-weight: 800; color: var(--text-title); margin-bottom: 4px; font-family: var(--font-title); }
.lp-modal .auth-subtitle { font-size: 13px; color: var(--text-muted); margin-bottom: 18px; }
.lp-modal .auth-switch { text-align: center; margin-top: 16px; font-size: 12.5px; color: var(--text-muted); }
.lp-modal .auth-switch button { background: none; border: none; color: var(--primary); font-weight: 700; cursor: pointer; font-size: 12.5px; padding: 0; }

/* ---------------- responsivo ---------------- */
@media (max-width: 900px) {
  .lp-hero-grid, .lp-show, .lp-show.rev .lp-show-txt { grid-template-columns: 1fr; order: 0; }
  .lp-hero { padding-top: 40px; }
  .lp-hero-visual { margin-top: 8px; }
  .lp-frame.floaty { transform: none; }
  .lp-features { grid-template-columns: 1fr 1fr; }
  .lp-aud, .lp-stats { grid-template-columns: 1fr 1fr; }
  .lp-foot-grid { grid-template-columns: 1fr 1fr; }
  .lp-nav { display: none; }
}
@media (max-width: 560px) {
  .lp-features, .lp-aud, .lp-stats, .lp-foot-grid { grid-template-columns: 1fr; }
  .lp-hero h1 { font-size: 32px; }
  .lp-section { padding: 52px 0; }
  .lp-cta { padding: 40px 22px; }
  .mock-kpis { grid-template-columns: 1fr 1fr; }
}
