/* TDM Landing — tema verde igual ao painel master */
:root {
  --primary-hover: color-mix(in srgb, var(--primary) 78%, black);
  --primary-light: color-mix(in srgb, var(--primary) 65%, white);
  --primary-faint: color-mix(in srgb, var(--primary) 5%, transparent);
  --primary-muted: color-mix(in srgb, var(--primary) 15%, transparent);
  --primary-soft: color-mix(in srgb, var(--primary) 18%, transparent);
  --primary-medium: color-mix(in srgb, var(--primary) 25%, transparent);
  --primary-strong: color-mix(in srgb, var(--primary) 40%, transparent);
  --primary-glow: color-mix(in srgb, var(--primary) 30%, transparent);
  --primary-glow-strong: color-mix(in srgb, var(--primary) 50%, transparent);
  --primary-glow-intense: color-mix(in srgb, var(--primary) 70%, transparent);
  --surface-base: color-mix(in srgb, var(--secondary) 6%, black);
  --surface-card: color-mix(in srgb, var(--secondary) 88%, #0a0a0a);
  --surface-elevated: color-mix(in srgb, var(--secondary) 78%, #111);
  --lp-bg: var(--surface-base);
  --lp-surface: var(--surface-card);
  --lp-surface-2: var(--surface-elevated);
  --lp-border: rgba(255,255,255,0.06);
  --lp-text: #e6edf3;
  --lp-muted: #8b949e;
  --lp-accent: #3fb950;
  --lp-radius: 12px;
  --lp-shadow: 0 16px 48px rgba(0,0,0,0.5);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body.landing-body {
  margin: 0;
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--lp-bg);
  color: var(--lp-text);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
}

/* Background — igual login/painel master */
.lp-bg-layer {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}
.lp-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.35;
  background: var(--primary);
}
.lp-orb-tl {
  width: 420px;
  height: 420px;
  top: -20%;
  left: -18%;
  animation: lpOrbTL 12s ease-in-out infinite;
}
.lp-orb-br {
  width: 420px;
  height: 420px;
  bottom: -20%;
  right: -18%;
  animation: lpOrbBR 15s ease-in-out infinite;
}
@keyframes lpOrbTL {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(30px, 30px) scale(1.08); }
}
@keyframes lpOrbBR {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-30px, -30px) scale(1.08); }
}
.lp-scanline {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(0,0,0,0.03) 2px, rgba(0,0,0,0.03) 4px);
  animation: lpScan 8s linear infinite;
}
@keyframes lpScan {
  0% { transform: translateY(0); }
  100% { transform: translateY(4px); }
}
.lp-grid-wrap {
  position: fixed;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 1;
}
.lp-grid {
  position: absolute;
  inset: 0;
  display: grid;
  gap: 1px;
  opacity: 0.3;
  pointer-events: auto;
}
.lp-cell {
  border: 1px solid rgba(255,255,255,0.06);
  background: transparent;
  border-radius: 1px;
  transition: background 0.4s ease, box-shadow 0.4s ease, border-color 0.4s ease;
}
.lp-cell.active {
  background: var(--primary);
  border-color: var(--primary);
  box-shadow: 0 0 24px var(--primary), 0 0 48px var(--primary-glow-strong);
  animation: lpCellPulse 1.2s ease-in-out infinite;
}
.lp-cell.trail {
  background: var(--primary-medium);
  border-color: var(--primary-strong);
  box-shadow: 0 0 12px var(--primary-glow);
}
@keyframes lpCellPulse {
  0%, 100% { box-shadow: 0 0 24px var(--primary), 0 0 48px var(--primary-glow-strong); }
  50% { box-shadow: 0 0 36px var(--primary), 0 0 64px var(--primary-glow-intense); }
}
.lp-particles {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 2;
  overflow: hidden;
}
.lp-particle {
  position: absolute;
  background: var(--primary);
  border-radius: 50%;
  animation: lpParticleFloat linear infinite;
}
@keyframes lpParticleFloat {
  0% { transform: translateY(100vh) scale(0); opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% { transform: translateY(-20px) scale(1); opacity: 0; }
}

.lp-container { max-width: 1180px; margin: 0 auto; padding: 0 24px; position: relative; z-index: 10; }

/* Nav */
.lp-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: color-mix(in srgb, var(--surface-base) 85%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--lp-border);
  transition: box-shadow 0.3s;
}
.lp-nav.scrolled { box-shadow: var(--lp-shadow); }
.lp-nav-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.lp-brand { display: flex; align-items: center; gap: 10px; color: var(--lp-text); text-decoration: none; font-weight: 700; font-size: 1.05rem; }
.lp-brand-icon { color: var(--primary); display: flex; }
.lp-brand-logo { height: 36px; width: auto; border-radius: 8px; }
.lp-brand-logo.sm { height: 28px; }
.lp-nav-links { display: flex; align-items: center; gap: 28px; }
.lp-nav-links a:not(.lp-btn) { color: var(--lp-muted); text-decoration: none; font-size: 0.92rem; font-weight: 500; transition: color 0.2s; }
.lp-nav-links a:not(.lp-btn):hover { color: var(--lp-text); }
.lp-menu-toggle { display: none; background: none; border: none; color: var(--lp-text); cursor: pointer; padding: 8px; }

/* Buttons */
.lp-btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 10px 20px; border-radius: 10px; font-weight: 600; font-size: 0.92rem;
  text-decoration: none; border: 2px solid transparent; cursor: pointer; transition: all 0.25s;
}
.lp-btn-primary { background: var(--primary); color: #fff; box-shadow: 0 4px 20px var(--primary-glow); }
.lp-btn-primary:hover { background: var(--primary-hover); transform: translateY(-1px); box-shadow: 0 6px 28px var(--primary-glow-strong); }
.lp-btn-outline { border-color: var(--lp-border); color: var(--lp-text); background: transparent; }
.lp-btn-outline:hover { border-color: var(--primary); color: var(--primary); }
.lp-btn-ghost { color: var(--lp-muted); background: transparent; }
.lp-btn-ghost:hover { color: var(--lp-text); }
.lp-btn-lg { padding: 14px 28px; font-size: 1rem; border-radius: 12px; }
.lp-btn-block { width: 100%; }

/* Hero */
.lp-hero { position: relative; padding: 140px 0 100px; overflow: hidden; z-index: 10; }
.lp-hero-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.lp-badge {
  display: inline-block; padding: 6px 14px; border-radius: 999px;
  background: var(--primary-muted); color: var(--primary-light); font-size: 0.82rem; font-weight: 600;
  margin-bottom: 20px; border: 1px solid var(--primary-soft);
}
.lp-hero h1 { font-size: clamp(2rem, 3.6vw, 3.1rem); line-height: 1.18; margin: 0 0 20px; font-weight: 800; letter-spacing: -0.02em; }
.lp-hero p { color: var(--lp-muted); font-size: 1.08rem; max-width: 560px; margin-bottom: 32px; line-height: 1.65; }
.lp-hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 40px; }
.lp-hero-stats { display: flex; gap: 28px; flex-wrap: wrap; }
.lp-hero-stat {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--lp-text);
}
.lp-hero-stat-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--primary-muted);
  border: 1px solid var(--primary-soft);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* Mockup */
.lp-mockup {
  background: var(--lp-surface); border: 1px solid var(--lp-border);
  border-radius: var(--lp-radius); box-shadow: var(--lp-shadow); overflow: hidden;
  animation: lpFloat 6s ease-in-out infinite;
}
@keyframes lpFloat { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
.lp-mockup-bar { display: flex; gap: 6px; padding: 12px 16px; background: var(--lp-surface-2); }
.lp-mockup-bar span { width: 10px; height: 10px; border-radius: 50%; }
.lp-mockup-bar span:first-child { background: #ed4245; }
.lp-mockup-bar span:nth-child(2) { background: #fee75c; }
.lp-mockup-bar span:nth-child(3) { background: var(--primary); }
.lp-mockup-body { display: flex; min-height: 280px; }
.lp-mockup-sidebar {
  width: 64px; background: rgba(0,0,0,0.25); border-right: 1px solid var(--lp-border);
  padding: 16px 10px; display: flex; flex-direction: column; gap: 10px;
}
.lp-mockup-nav-item { height: 8px; border-radius: 4px; background: var(--lp-border); }
.lp-mockup-nav-item.active { background: var(--primary); box-shadow: 0 0 12px var(--primary-glow); }
.lp-mockup-main { flex: 1; padding: 14px; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.lp-mockup-terminal {
  flex: 1; min-height: 0; display: flex; flex-direction: column;
  border-radius: 10px; background: rgba(0,0,0,0.35); border: 1px solid var(--lp-border);
  overflow: hidden;
}
.lp-mockup-terminal-tab {
  display: flex; align-items: center; gap: 8px; padding: 8px 12px;
  font-size: 0.68rem; font-weight: 600; color: var(--lp-muted);
  background: rgba(0,0,0,0.25); border-bottom: 1px solid var(--lp-border);
  font-family: 'Consolas', 'Fira Code', monospace;
}
.lp-mockup-terminal-dot {
  width: 7px; height: 7px; border-radius: 50%; background: var(--primary);
  box-shadow: 0 0 8px var(--primary-glow); flex-shrink: 0;
}
.lp-mockup-terminal-body {
  flex: 1; padding: 10px 12px; overflow: hidden; position: relative;
}
.lp-mockup-code {
  margin: 0; font-family: 'Consolas', 'Fira Code', 'Courier New', monospace;
  font-size: 0.62rem; line-height: 1.55; color: #c8d0d8; white-space: pre-wrap;
  word-break: break-word;
  overflow-wrap: anywhere;
}
.lp-mockup-code .lp-code-line { min-height: 1.55em; }
.lp-mockup-code .tok-keyword { color: #7ee8a0; }
.lp-mockup-code .tok-string { color: #f0c674; }
.lp-mockup-code .tok-comment { color: #5a6a5a; font-style: italic; }
.lp-mockup-code .tok-fn { color: #6ec1ff; }
.lp-mockup-code .tok-number { color: #d19a66; }
.lp-mockup-cursor {
  display: inline-block; width: 7px; height: 1.1em; vertical-align: text-bottom;
  background: var(--primary); margin-left: 1px;
  animation: lpCursorBlink 1s step-end infinite;
}
@keyframes lpCursorBlink { 0%,100% { opacity: 1; } 50% { opacity: 0; } }
.lp-mockup-status-row { display: flex; gap: 8px; flex-shrink: 0; }
.lp-mockup-status {
  flex: 1; display: flex; align-items: center; gap: 7px; padding: 8px 10px;
  border-radius: 8px; background: var(--lp-surface-2); border: 1px solid var(--lp-border);
  font-size: 0.65rem; color: var(--lp-muted); overflow: hidden;
}
.lp-mockup-status-dot {
  width: 6px; height: 6px; border-radius: 50%; background: var(--lp-border); flex-shrink: 0;
  transition: background 0.4s, box-shadow 0.4s;
}
.lp-mockup-status.ok .lp-mockup-status-dot {
  background: var(--primary); box-shadow: 0 0 8px var(--primary-glow);
}
.lp-mockup-status.ok { color: color-mix(in srgb, var(--primary) 70%, #fff); }
.lp-mockup-status-text { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Sections */
.lp-section { padding: 100px 0; position: relative; z-index: 10; }
.lp-section-dark { background: color-mix(in srgb, var(--surface-card) 50%, transparent); }
.lp-section-head { text-align: center; max-width: 600px; margin: 0 auto 56px; }
.lp-section-head h2 { font-size: 2.2rem; margin: 0 0 12px; font-weight: 800; }
.lp-section-head p { color: var(--lp-muted); margin: 0; }

/* Features */
.lp-features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.lp-feature {
  background: var(--lp-surface); border: 1px solid var(--lp-border);
  border-radius: var(--lp-radius); padding: 28px; transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
}
.lp-feature:hover { transform: translateY(-4px); border-color: var(--primary-soft); box-shadow: 0 8px 32px var(--primary-faint); }
.lp-feature-icon {
  width: 48px; height: 48px; border-radius: 12px;
  background: var(--primary-muted); color: var(--primary);
  display: flex; align-items: center; justify-content: center; margin-bottom: 16px;
  border: 1px solid var(--primary-soft);
}
.lp-feature h3 { margin: 0 0 10px; font-size: 1.05rem; }
.lp-feature p { margin: 0; color: var(--lp-muted); font-size: 0.88rem; line-height: 1.6; }

/* Plans */
.lp-plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; align-items: stretch; }
.lp-plan {
  position: relative; background: var(--lp-bg); border: 1px solid var(--lp-border);
  border-radius: var(--lp-radius); padding: 32px; display: flex; flex-direction: column;
  transition: transform 0.3s, border-color 0.3s;
}
.lp-plan.featured { border-color: var(--primary); box-shadow: 0 0 0 1px var(--primary), var(--lp-shadow); transform: scale(1.03); }
.lp-plan-tag {
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  background: var(--primary); color: #fff; font-size: 0.75rem; font-weight: 700;
  padding: 4px 14px; border-radius: 999px;
}
.lp-plan h3 { margin: 0 0 8px; font-size: 1.3rem; }
.lp-plan-price { margin-bottom: 16px; }
.lp-plan-price .currency { font-size: 1rem; color: var(--lp-muted); vertical-align: top; }
.lp-plan-price .amount { font-size: 2.8rem; font-weight: 800; color: var(--primary); }
.lp-plan-price .period { color: var(--lp-muted); font-size: 0.9rem; }
.lp-plan-desc { color: var(--lp-muted); font-size: 0.9rem; margin-bottom: 20px; }
.lp-plan-benefits { list-style: none; padding: 0; margin: 0 0 28px; flex: 1; }
.lp-plan-benefits li { padding: 6px 0; font-size: 0.9rem; color: var(--lp-muted); display: flex; align-items: flex-start; gap: 8px; }
.lp-check { flex-shrink: 0; color: var(--primary); margin-top: 2px; }

/* FAQ */
.lp-faq-wrap { max-width: 1180px; }
.lp-faq {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  align-items: start;
}
.lp-faq-item {
  background: var(--lp-surface); border: 1px solid var(--lp-border);
  border-radius: 12px; overflow: hidden;
  transition: border-color 0.2s;
  align-self: start;
}
.lp-faq-item[open] { border-color: var(--primary-soft); }
.lp-faq-item summary {
  padding: 16px 18px;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.9rem;
  line-height: 1.45;
  list-style: none;
}
.lp-faq-item summary::-webkit-details-marker { display: none; }
.lp-faq-item p { padding: 0 18px 16px; margin: 0; color: var(--lp-muted); font-size: 0.85rem; line-height: 1.55; }
.lp-faq-steps {
  margin: 0 18px 16px;
  padding-left: 18px;
  color: var(--lp-muted);
  font-size: 0.85rem;
  line-height: 1.55;
}
.lp-faq-steps li { margin-bottom: 4px; }

@media (max-width: 960px) {
  .lp-faq { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .lp-faq { grid-template-columns: 1fr; }
}

/* CTA */
.lp-cta { background: linear-gradient(180deg, transparent, var(--primary-faint)); }
.lp-cta-inner { text-align: center; }
.lp-cta h2 { font-size: 2rem; margin-bottom: 12px; }
.lp-cta p { color: var(--lp-muted); margin-bottom: 28px; }
.lp-cta-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* Footer */
.lp-footer { border-top: 1px solid var(--lp-border); padding: 40px 0; position: relative; z-index: 10; }
.lp-footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; }
.lp-footer-brand { display: flex; align-items: center; gap: 8px; font-weight: 700; }
.lp-footer-links { display: flex; gap: 20px; }
.lp-footer-links a { color: var(--lp-muted); text-decoration: none; font-size: 0.9rem; transition: color 0.2s; }
.lp-footer-links a:hover { color: var(--primary); }
.lp-footer-copy { width: 100%; text-align: center; color: var(--lp-muted); font-size: 0.82rem; margin: 16px 0 0; }

.co-footer { margin-top: 48px; }
.co-footer-grid {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
  flex-wrap: wrap;
}
.co-footer-left {
  display: flex;
  flex-direction: column;
  gap: 14px;
  flex: 1;
  min-width: 200px;
}
.co-footer-copy {
  width: auto !important;
  text-align: left !important;
  margin: 4px 0 0 !important;
}
.co-trust-seals {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 10px;
  width: 180px;
  flex-shrink: 0;
  margin-left: auto;
}
.co-seal {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--lp-border);
  background: #fff;
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s, box-shadow 0.2s;
}
.co-seal:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
}
.co-seal-trust {
  background: color-mix(in srgb, #1a7f37 12%, var(--lp-surface));
  border-color: color-mix(in srgb, #1a7f37 40%, var(--lp-border));
}
.co-seal-icon { flex-shrink: 0; border-radius: 8px; }
.co-seal-text {
  display: flex;
  flex-direction: column;
  gap: 1px;
  line-height: 1.2;
}
.co-seal-text strong {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--lp-text);
}
.co-seal-text span {
  font-size: 0.72rem;
  color: var(--lp-muted);
}
.co-seal-brand {
  justify-content: center;
  min-height: 56px;
  padding: 8px 12px;
}
.co-seal-img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 44px;
  object-fit: contain;
}
.co-seal-mp-img { max-height: 48px; }
.co-seal-ps-img { max-height: 34px; }
.co-seal-mp { border-color: color-mix(in srgb, #009EE3 40%, #ddd); }
.co-seal-ps { border-color: color-mix(in srgb, #32BCAD 40%, #ddd); }


/* Scroll animations */
[data-animate] { opacity: 0; transform: translateY(24px); transition: opacity 0.6s ease, transform 0.6s ease; }
[data-animate].visible { opacity: 1; transform: translateY(0); }

/* Responsive */
@media (max-width: 960px) {
  .lp-hero { padding: 112px 0 64px; }
  .lp-hero-grid { grid-template-columns: 1fr; gap: 36px; }
  .lp-hero-visual { order: -1; max-width: 520px; margin: 0 auto; width: 100%; }
  .lp-hero h1 { font-size: clamp(1.65rem, 5vw, 2.1rem); }
  .lp-hero p { font-size: 1rem; max-width: none; margin-bottom: 24px; }
  .lp-hero-actions { gap: 10px; }
  .lp-hero-actions .lp-btn-lg { flex: 1 1 auto; min-width: 140px; justify-content: center; }
  .lp-hero-stats { gap: 14px 20px; justify-content: flex-start; }
  .lp-mockup { animation: none; }
  .lp-mockup-body { min-height: 240px; }
  .lp-section { padding: 72px 0; }
  .lp-section-head { margin-bottom: 40px; }
  .lp-section-head h2 { font-size: 1.75rem; }
  .lp-features { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .lp-plans { grid-template-columns: 1fr; }
  .lp-feature { padding: 18px 14px; }
  .lp-feature-icon { width: 40px; height: 40px; border-radius: 10px; margin-bottom: 12px; }
  .lp-feature-icon svg { width: 20px; height: 20px; }
  .lp-feature h3 { font-size: 0.92rem; margin-bottom: 6px; }
  .lp-feature p { font-size: 0.78rem; line-height: 1.5; }
  .lp-plan.featured { transform: none; }
  .lp-cta h2 { font-size: 1.65rem; }
  .lp-footer-inner { gap: 16px; }
  .lp-nav-links {
    display: none; position: absolute; top: 72px; left: 0; right: 0; flex-direction: column;
    background: var(--lp-bg); padding: 20px; border-bottom: 1px solid var(--lp-border);
    align-items: stretch; gap: 12px;
  }
  .lp-nav-links.open { display: flex; }
  .lp-menu-toggle { display: flex; }
}

@media (max-width: 640px) {
  .lp-container { padding: 0 16px; }
  .lp-hero { padding: 96px 0 48px; }
  .lp-hero-grid { gap: 28px; }
  .lp-hero-visual { max-width: 100%; }
  .lp-hero h1 { font-size: 1.55rem; line-height: 1.22; margin-bottom: 14px; }
  .lp-hero p { font-size: 0.94rem; line-height: 1.6; }
  .lp-hero-actions { flex-direction: column; margin-bottom: 28px; }
  .lp-hero-actions .lp-btn { width: 100%; }
  .lp-hero-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    width: 100%;
  }
  .lp-hero-stat { font-size: 0.82rem; gap: 8px; }
  .lp-hero-stat-icon { width: 32px; height: 32px; border-radius: 8px; }
  .lp-hero-stat-icon svg { width: 16px; height: 16px; }
  .lp-mockup { border-radius: 10px; }
  .lp-mockup-bar { padding: 10px 12px; }
  .lp-mockup-sidebar { display: none; }
  .lp-mockup-body { min-height: 210px; }
  .lp-mockup-main { padding: 10px; gap: 8px; }
  .lp-mockup-terminal { border-radius: 8px; }
  .lp-mockup-terminal-tab { padding: 7px 10px; font-size: 0.62rem; }
  .lp-mockup-terminal-body {
    padding: 8px 10px;
    max-height: 148px;
    overflow: hidden;
  }
  .lp-mockup-code {
    font-size: 0.56rem;
    line-height: 1.5;
    white-space: pre;
    word-break: normal;
    overflow: hidden;
  }
  .lp-mockup-code .lp-code-line {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 100%;
  }
  .lp-mockup-status-row { flex-direction: column; gap: 6px; }
  .lp-mockup-status { padding: 7px 10px; font-size: 0.62rem; }
  .lp-section { padding: 56px 0; }
  .lp-section-head { margin-bottom: 32px; }
  .lp-section-head h2 { font-size: 1.45rem; }
  .lp-section-head p { font-size: 0.9rem; }
  .lp-features { gap: 10px; }
  .lp-feature { padding: 14px 12px; }
  .lp-feature:hover { transform: none; }
  .lp-feature-icon { width: 34px; height: 34px; border-radius: 8px; margin-bottom: 10px; }
  .lp-feature-icon svg { width: 18px; height: 18px; }
  .lp-feature h3 { font-size: 0.82rem; margin-bottom: 4px; line-height: 1.3; }
  .lp-feature p { font-size: 0.72rem; line-height: 1.45; }
  .lp-plan { padding: 24px 20px; }
  .lp-plan-price .amount { font-size: 2.2rem; }
  .lp-cta-actions { flex-direction: column; align-items: stretch; }
  .lp-cta-actions .lp-btn { width: 100%; }
  .lp-cta h2 { font-size: 1.4rem; }
  .lp-footer-inner { flex-direction: column; text-align: center; }
  .lp-footer-links { justify-content: center; flex-wrap: wrap; gap: 14px; }
  .co-footer-grid {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .co-footer-left { align-items: center; }
  .co-footer-copy { text-align: center !important; }
  .co-trust-seals {
    margin-left: 0;
    width: min(200px, 100%);
  }
  .lp-nav-inner { height: 64px; }
  .lp-brand { font-size: 0.92rem; min-width: 0; }
  .lp-brand > span:last-child {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 42vw;
  }
  .lp-brand-logo { height: 30px; }
  .lp-nav-links { top: 64px; padding: 16px; }
}

@media (max-width: 380px) {
  .lp-hero-stats { grid-template-columns: 1fr; }
  .lp-mockup-code { font-size: 0.52rem; }
  .lp-mockup-terminal-body { max-height: 132px; }
}

/* Checkout */
.co-page {
  min-height: 100vh;
  padding: 100px 0 80px;
  position: relative;
  z-index: 10;
}
.co-page-center .lp-container { max-width: 560px; }
.co-header { margin-bottom: 32px; }
.co-header .lp-badge { margin-bottom: 16px; }
.co-title {
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 800;
  margin: 0 0 10px;
  letter-spacing: -0.02em;
}
.co-subtitle {
  color: var(--lp-muted);
  margin: 0;
  font-size: 1rem;
  max-width: 640px;
  line-height: 1.65;
}
.co-layout { max-width: 1100px; }

.co-form-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 28px;
  align-items: start;
}
.co-form-main { display: flex; flex-direction: column; gap: 20px; }

.co-card {
  background: var(--lp-surface);
  border: 1px solid var(--lp-border);
  border-radius: 16px;
  padding: 28px;
  transition: border-color 0.3s, box-shadow 0.3s;
}
.co-card:hover {
  border-color: color-mix(in srgb, var(--primary) 25%, var(--lp-border));
  box-shadow: 0 8px 32px rgba(0,0,0,0.25);
}
.co-card-head {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 22px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--lp-border);
}
.co-card-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--primary-muted);
  border: 1px solid var(--primary-soft);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.co-card-head h3 {
  margin: 0 0 4px;
  font-size: 1.05rem;
  font-weight: 700;
}
.co-card-head p {
  margin: 0;
  font-size: 0.85rem;
  color: var(--lp-muted);
}

.co-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.co-field { display: flex; flex-direction: column; gap: 6px; }
.co-field.full { grid-column: 1 / -1; }
.co-field.co-field-action { justify-content: flex-end; }
.co-guild-row {
  display: flex;
  align-items: stretch;
  gap: 10px;
}
.co-guild-row input {
  flex: 1;
  min-width: 0;
}
.co-guild-row .co-btn-icon {
  flex-shrink: 0;
  white-space: nowrap;
  align-self: stretch;
  height: auto;
}
.co-field label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--lp-muted);
}
.co-optional { font-weight: 400; opacity: 0.75; }
.co-hint {
  font-size: 0.78rem;
  color: var(--lp-muted);
}
.co-hint span, #slugPreview { color: var(--primary-light); }
.co-guild-status {
  min-height: 18px;
  font-size: 0.8rem;
  line-height: 1.4;
}
.co-guild-status.is-pending { color: #e3b341; }
.co-guild-status.is-success { color: var(--primary-light); }
.co-guild-status.is-error { color: #f85149; }
.co-guild-invite {
  display: inline-block;
  margin-top: 6px;
  color: var(--primary-light);
  font-weight: 600;
  text-decoration: underline;
}
.co-field input, .co-field select, .co-field textarea {
  background: var(--lp-bg);
  border: 1px solid var(--lp-border);
  border-radius: 10px;
  padding: 12px 14px;
  color: var(--lp-text);
  font-size: 0.95rem;
  font-family: inherit;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.co-field input::placeholder { color: color-mix(in srgb, var(--lp-muted) 70%, transparent); }
.co-field input:focus, .co-field select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-muted);
}
.co-field select { cursor: pointer; }

.co-alert {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
  border-radius: 12px;
  margin-bottom: 24px;
  font-size: 0.9rem;
}
.co-alert-error {
  background: rgba(248,81,73,0.12);
  border: 1px solid rgba(248,81,73,0.3);
  color: #faa;
}
.co-alert-success {
  background: var(--primary-muted);
  border: 1px solid var(--primary-soft);
  color: var(--primary-light);
}

.co-sidebar { position: sticky; top: 96px; display: flex; flex-direction: column; gap: 16px; }
.co-summary-card {
  background: var(--lp-surface);
  border: 1px solid var(--lp-border);
  border-radius: 16px;
  padding: 24px;
}
.co-summary-card h3 {
  margin: 0 0 20px;
  font-size: 1rem;
  font-weight: 700;
}
.co-summary-plan {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--lp-border);
}
.co-summary-label { font-size: 0.78rem; color: var(--lp-muted); text-transform: uppercase; letter-spacing: 0.04em; }
.co-summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.92rem;
  color: var(--lp-muted);
  margin-bottom: 10px;
}
.co-summary-total {
  margin: 8px 0 0;
  padding-top: 14px;
  border-top: 1px solid var(--lp-border);
  font-size: 1rem;
  color: var(--lp-text);
}
.co-summary-total strong {
  font-size: 1.35rem;
  color: var(--primary-light);
}
.co-summary-note {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 0.78rem;
  color: var(--lp-muted);
  line-height: 1.5;
  margin: 16px 0 20px;
}
.co-summary-note svg { flex-shrink: 0; margin-top: 2px; color: var(--primary); }
.co-submit-btn { gap: 10px; margin-bottom: 12px; }
.co-back-link {
  display: block;
  text-align: center;
  font-size: 0.85rem;
  color: var(--lp-muted);
  text-decoration: none;
  transition: color 0.2s;
}
.co-back-link:hover { color: var(--primary); }

.co-steps {
  list-style: none;
  margin: 0;
  padding: 18px 20px;
  background: var(--lp-surface);
  border: 1px solid var(--lp-border);
  border-radius: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.co-steps li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.85rem;
  color: var(--lp-muted);
}
.co-steps li span {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 1px solid var(--lp-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  flex-shrink: 0;
}
.co-steps li.active {
  color: var(--lp-text);
}
.co-steps li.active span {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
  box-shadow: 0 0 16px var(--primary-glow);
}

.co-btn-icon { gap: 8px; }
.co-btn-icon svg { flex-shrink: 0; }
.co-btn-icon.is-loading { opacity: 0.7; pointer-events: none; }
.co-btn-icon.is-loading svg { animation: coSpin 0.8s linear infinite; }
.co-btn-icon.co-validated { border-color: var(--primary); color: var(--primary); }
@keyframes coSpin { to { transform: rotate(360deg); } }

.co-card-mobile-plan { display: none; }

/* Status pages */
.co-status-card {
  text-align: center;
  background: var(--lp-surface);
  border: 1px solid var(--lp-border);
  border-radius: 20px;
  padding: 48px 36px;
}
.co-status-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  margin: 0 auto 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.co-status-pending {
  background: color-mix(in srgb, #d29922 15%, transparent);
  border: 1px solid color-mix(in srgb, #d29922 35%, transparent);
  color: #e3b341;
}
.co-status-success {
  background: var(--primary-muted);
  border: 1px solid var(--primary-soft);
  color: var(--primary);
}
.co-status-error {
  background: rgba(248,81,73,0.12);
  border: 1px solid rgba(248,81,73,0.3);
  color: #f85149;
}
.co-status-card .co-title { margin-bottom: 8px; }
.co-status-card .co-subtitle { margin-bottom: 28px; }
.co-status-card code {
  background: var(--lp-bg);
  padding: 2px 8px;
  border-radius: 6px;
  font-size: 0.9em;
  color: var(--primary-light);
}
.co-summary-inline { text-align: left; margin: 0 auto 24px; max-width: 360px; }
.co-status-text { color: var(--lp-muted); font-size: 0.92rem; margin-bottom: 24px; line-height: 1.6; }
.co-footer-hint { margin-top: 20px; font-size: 0.85rem; color: var(--lp-muted); }
.co-footer-hint a { color: var(--primary); }

/* Bot invite gate (landing modal + checkout step) */
body.lp-modal-open { overflow: hidden; }
.lp-bot-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.lp-bot-modal[hidden] { display: none; }
.lp-bot-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(4px);
}
.lp-bot-modal-dialog {
  position: relative;
  width: min(440px, 100%);
  background: var(--lp-surface);
  border: 1px solid var(--lp-border);
  border-radius: 18px;
  padding: 32px 28px 28px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.45);
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.lp-bot-modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  background: transparent;
  border: none;
  color: var(--lp-muted);
  cursor: pointer;
  padding: 6px;
  border-radius: 8px;
}
.lp-bot-modal-close:hover { color: var(--lp-text); background: var(--lp-bg); }
.lp-bot-modal-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: #5865F2;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lp-bot-modal-dialog h2 {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 700;
}
.lp-bot-modal-desc {
  margin: 0;
  color: var(--lp-muted);
  font-size: 0.95rem;
  line-height: 1.55;
}
.lp-bot-modal-steps {
  margin: 4px 0 8px;
  padding-left: 20px;
  color: var(--lp-muted);
  font-size: 0.88rem;
  line-height: 1.7;
}
.lp-bot-modal-steps strong { color: var(--lp-text); }
.lp-bot-modal-hint {
  margin: 0;
  font-size: 0.8rem;
  color: var(--lp-muted);
  text-align: center;
}
.lp-bot-modal-skip {
  background: none;
  border: none;
  color: var(--primary-light);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  padding: 4px;
  text-decoration: underline;
  font-family: inherit;
}
.lp-bot-modal-skip:hover { color: var(--lp-text); }
.lp-bot-modal-warn {
  margin: 0;
  padding: 12px 14px;
  border-radius: 10px;
  background: rgba(248, 81, 73, 0.12);
  border: 1px solid rgba(248, 81, 73, 0.3);
  color: #f85149;
  font-size: 0.88rem;
}
#botInviteContinueBtn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}
#botInviteContinueBtn.is-shake {
  animation: lp-shake 0.35s ease;
}
@keyframes lp-shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-6px); }
  75% { transform: translateX(6px); }
}

.co-bot-step {
  border-color: color-mix(in srgb, #5865F2 35%, var(--lp-border));
  background: linear-gradient(145deg, color-mix(in srgb, #5865F2 8%, var(--lp-surface)), var(--lp-surface));
}
.co-bot-step .co-card-icon {
  background: rgba(88, 101, 242, 0.15);
  border-color: rgba(88, 101, 242, 0.35);
  color: #7289da;
}
.co-bot-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 8px;
}
.co-bot-actions .lp-btn { flex: 1; min-width: 180px; justify-content: center; }
.co-submit-btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}
.co-submit-hint {
  margin: 0 0 10px;
  font-size: 0.8rem;
  color: #e3b341;
  text-align: center;
  line-height: 1.4;
}
.co-submit-hint.is-ok { color: var(--primary-light); }

@media (max-width: 960px) {
  .co-form-layout { grid-template-columns: 1fr; }
  .co-sidebar { position: static; order: -1; }
  .co-card-mobile-plan { display: block; }
  .co-sidebar .co-summary-card select,
  .co-sidebar .co-summary-card .co-field { display: none; }
  .co-steps { flex-direction: row; flex-wrap: wrap; justify-content: center; }
}
@media (max-width: 640px) {
  .co-grid { grid-template-columns: 1fr; }
  .co-card { padding: 20px; }
  .co-status-card { padding: 36px 24px; }
  .co-guild-row { flex-direction: column; }
  .co-guild-row .co-btn-icon { width: 100%; justify-content: center; }
}
