/* TOTxTIC landing — light "sala de control": airy paper background, ink type, one lime accent,
   with two dark moments (the ticker and the closing card) for contrast.
   Self-contained on purpose: the app's main.css is not loaded on this page. */

:root {
  --bg: #f5f6fb;
  --bg-2: #eceef8;
  --paper: #ffffff;
  --ink: #0e1330;
  --dim: #4f5876;
  --faint: #7c86a3;
  --line: rgba(14, 19, 48, 0.11);
  --lime: #c8ff3e;
  --lime-ink: #0b1200;
  --indigo: #5b5bf0;
  --font-display: 'Bricolage Grotesque', 'Plus Jakarta Sans', system-ui, sans-serif;
  --font-body: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, 'SF Mono', Consolas, monospace;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --shadow: 0 24px 50px -24px rgba(35, 40, 120, 0.35);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: clip; }
body.lp {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
.lp a { color: inherit; text-decoration: none; }
.lp :focus-visible { outline: 2px solid var(--indigo); outline-offset: 3px; border-radius: 6px; }

/* Paper grain: keeps the large light areas from looking flat. */
.lp::before {
  content: '';
  position: fixed; inset: 0; z-index: 100; pointer-events: none; opacity: 0.05; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

.wrap { max-width: 1160px; margin: 0 auto; padding: 0 24px; }

/* ── Buttons ─────────────────────────────────────────────── */
.lp-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 12px 22px; border-radius: 999px; text-align: center;
  font: 700 15px/1.25 var(--font-body); cursor: pointer; border: 1.5px solid var(--ink);
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), background 0.2s;
}
.lp-btn--primary { background: var(--lime); color: var(--lime-ink); box-shadow: 3px 3px 0 var(--ink); }
.lp-btn--primary:hover { transform: translate(-2px, -2px); box-shadow: 5px 5px 0 var(--ink); }
.lp-btn--primary:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--ink); }
.lp-btn--ghost { color: var(--ink); border-color: var(--line); background: var(--paper); }
.lp-btn--ghost:hover { border-color: var(--ink); transform: translateY(-2px); }
.lp-btn svg { width: 16px; height: 16px; }

/* ── Nav ─────────────────────────────────────────────────── */
.lp-nav { position: relative; z-index: 20; display: flex; align-items: center; justify-content: space-between; padding: 22px 0; }
.lp-brand { font: 800 22px/1 var(--font-display); letter-spacing: -0.02em; display: inline-flex; align-items: center; gap: 10px; }
.lp-brand img { height: 24px; width: auto; display: block; }
.lp-nav-links { display: flex; align-items: center; gap: 28px; }
.lp-nav-links a:not(.lp-btn) { font-size: 14px; font-weight: 600; color: var(--dim); transition: color 0.2s; }
.lp-nav-links a:not(.lp-btn):hover { color: var(--ink); }
.lp-nav-links .lp-btn { min-height: 40px; padding: 0 18px; font-size: 14px; }

/* ── Hero ────────────────────────────────────────────────── */
.lp-hero { position: relative; padding: 36px 0 90px; isolation: isolate; overflow-x: clip; }
.lp-hero::before {            /* aurora that follows the cursor */
  content: ''; position: absolute; z-index: -1; inset: -20% -10% auto -10%; height: 130%;
  background:
    radial-gradient(540px 440px at var(--mx, 70%) var(--my, 20%), rgba(91, 91, 240, 0.2), transparent 70%),
    radial-gradient(460px 380px at calc(var(--mx, 70%) - 25%) calc(var(--my, 20%) + 30%), rgba(200, 255, 62, 0.42), transparent 70%);
}
.lp-hero::after {             /* faint grid */
  content: ''; position: absolute; z-index: -1; left: 0; right: 0; top: 0; height: 100%;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 20%, transparent 75%);
          mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 20%, transparent 75%);
  opacity: 0.7;
}
.lp-hero-grid { display: grid; grid-template-columns: 1.08fr 0.92fr; gap: 40px; align-items: center; }

.lp-pill {
  display: inline-flex; align-items: center; gap: 10px; padding: 6px 14px 6px 8px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--paper); font-size: 13px; font-weight: 600; color: var(--dim);
}
.lp-pill b { background: var(--ink); color: var(--lime); font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; padding: 3px 9px; border-radius: 999px; }

.lp-h1 {
  font: 800 clamp(44px, 6.6vw, 84px)/1 var(--font-display); letter-spacing: -0.035em; margin: 22px 0 22px;
}
.lp-rot { display: inline-grid; justify-items: start; overflow: hidden; vertical-align: bottom; padding: 0.02em 0.04em 0.12em 0; margin-bottom: -0.12em; }
.lp-rot span {
  grid-area: 1 / 1; opacity: 0; transform: translateY(70%);
  background: var(--lime); color: var(--lime-ink); border-radius: 0.16em; padding: 0 0.12em; margin-left: -0.06em;
  animation: rot 12s var(--ease) infinite;
}
.lp-rot span:nth-child(2) { animation-delay: 3s; }
.lp-rot span:nth-child(3) { animation-delay: 6s; }
.lp-rot span:nth-child(4) { animation-delay: 9s; }
@keyframes rot {
  0% { opacity: 0; transform: translateY(70%); }
  5%, 20% { opacity: 1; transform: none; }
  25%, 100% { opacity: 0; transform: translateY(-70%); }
}
.lp-lead { font-size: clamp(17px, 1.6vw, 20px); color: var(--dim); max-width: 34em; margin: 0 0 30px; }
.lp-cta { display: flex; flex-wrap: wrap; gap: 14px; }

.lp-client {
  margin-top: 30px; display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  font-size: 14px; color: var(--faint);
}
.lp-client form { display: flex; align-items: center; border: 1px solid var(--line); border-radius: 999px; background: var(--paper); padding: 4px 4px 4px 16px; transition: border-color 0.2s, box-shadow 0.2s; }
.lp-client form:focus-within { border-color: var(--indigo); box-shadow: 0 0 0 4px rgba(91, 91, 240, 0.14); }
.lp-client input { background: none; border: 0; outline: 0; color: var(--ink); font: 500 14px var(--font-body); width: 190px; min-height: 36px; }
.lp-client input::placeholder { color: var(--faint); }
.lp-client button { border: 0; cursor: pointer; width: 36px; height: 36px; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center; transition: transform 0.2s var(--ease); }
.lp-client button:hover { transform: translateX(2px); }
.lp-client button svg { width: 16px; height: 16px; }

/* Product stage: decorative, so it may be as lively as it likes. */
.lp-stage { position: relative; height: 470px; }
.lp-ring { position: absolute; left: 50%; top: 50%; width: 420px; height: 420px; transform: translate(-50%, -50%); border-radius: 50%; border: 1px dashed rgba(14, 19, 48, 0.22); animation: spin 60s linear infinite; }
.lp-ring::after { content: ''; position: absolute; top: -6px; left: 50%; width: 12px; height: 12px; border-radius: 50%; background: var(--lime); border: 1.5px solid var(--ink); }
.lp-ring--2 { width: 300px; height: 300px; animation-direction: reverse; animation-duration: 40s; border-color: rgba(91, 91, 240, 0.4); }
.lp-ring--2::after { background: var(--indigo); border-color: var(--indigo); }
@keyframes spin { to { transform: translate(-50%, -50%) rotate(360deg); } }

.lp-float {
  position: absolute; padding: 16px 18px; border-radius: 18px; background: rgba(255, 255, 255, 0.9); border: 1px solid var(--line);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); box-shadow: var(--shadow);
  animation: bob 7s ease-in-out infinite;
}
.lp-float small { display: block; font: 500 11px var(--font-mono); color: var(--faint); letter-spacing: 0.04em; margin-bottom: 6px; }
.lp-float strong { display: block; font: 700 15px/1.3 var(--font-body); }
.lp-float--ticket { top: 14px; left: 0; width: 290px; animation-delay: -1s; }
.lp-float--device { top: 168px; right: 0; width: 270px; animation-delay: -3s; }
.lp-float--license { bottom: 8px; left: 26px; width: 300px; animation-delay: -5s; }
.lp-float--toast { top: 0; right: 6px; width: auto; padding: 10px 14px; border-radius: 999px; display: flex; gap: 10px; align-items: center; font-size: 13px; font-weight: 600; background: var(--ink); color: #fff; border-color: var(--ink); animation: toast 9s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(-14px); } }
@keyframes toast {
  0%, 12% { opacity: 0; transform: translateY(-14px) scale(0.96); }
  18%, 70% { opacity: 1; transform: none; }
  78%, 100% { opacity: 0; transform: translateY(-8px); }
}
.lp-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 12px; }
.lp-chip { font: 600 11px var(--font-body); padding: 4px 10px; border-radius: 999px; }
.lp-chip--hot { background: rgba(220, 38, 38, 0.1); color: #b91c1c; }
.lp-chip--ok { background: rgba(132, 204, 22, 0.25); color: #3f6212; }
.lp-chip--warn { background: rgba(245, 158, 11, 0.2); color: #92400e; }
.lp-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #65a30d; margin-right: 8px; box-shadow: 0 0 0 0 rgba(101, 163, 13, 0.5); animation: pulse 2s infinite; }
.lp-float--toast .lp-dot { background: var(--lime); margin-right: 0; }
@keyframes pulse { 70% { box-shadow: 0 0 0 9px rgba(101, 163, 13, 0); } 100% { box-shadow: 0 0 0 0 rgba(101, 163, 13, 0); } }
.lp-bar { height: 8px; border-radius: 99px; background: rgba(14, 19, 48, 0.09); overflow: hidden; margin-top: 12px; }
.lp-bar i { display: block; height: 100%; width: 92%; border-radius: 99px; background: linear-gradient(90deg, var(--indigo), #9be21c); transform-origin: left; animation: fill 5s var(--ease) infinite; }
@keyframes fill { 0% { transform: scaleX(0.1); } 40%, 85% { transform: scaleX(1); } 100% { transform: scaleX(0.1); } }

/* ── Marquee (dark band): solid, high-contrast words ─────── */
.lp-marquee { position: relative; background: var(--ink); overflow: hidden; padding: 26px 0; border-block: 2px solid var(--ink); }
.lp-marquee::before, .lp-marquee::after { content: ''; position: absolute; top: 0; bottom: 0; width: 90px; z-index: 1; pointer-events: none; }
.lp-marquee::before { left: 0; background: linear-gradient(90deg, var(--ink), transparent); }
.lp-marquee::after { right: 0; background: linear-gradient(270deg, var(--ink), transparent); }
.lp-track { display: flex; width: max-content; gap: 40px; animation: slide 45s linear infinite; }
.lp-marquee:hover .lp-track { animation-play-state: paused; }
.lp-track span { font: 800 clamp(26px, 3.4vw, 40px)/1 var(--font-display); letter-spacing: -0.025em; color: #fff; white-space: nowrap; display: inline-flex; align-items: center; gap: 40px; }
.lp-track span:nth-child(even) { color: var(--lime); }
.lp-track span::after { content: ''; width: 12px; height: 12px; background: var(--indigo); border-radius: 3px; transform: rotate(45deg); flex: none; }
@keyframes slide { to { transform: translateX(-50%); } }

/* ── Features (bento) ───────────────────────────────────── */
.lp-section { padding: 110px 0 30px; }
.lp-kicker { display: inline-block; font: 600 12px var(--font-mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--lime-ink); background: var(--lime); padding: 5px 12px; border-radius: 999px; }
.lp-h2 { font: 800 clamp(34px, 4.6vw, 56px)/1.02 var(--font-display); letter-spacing: -0.03em; margin: 18px 0 50px; max-width: 14em; }
.lp-bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.tile {
  position: relative; overflow: hidden; border-radius: 24px; padding: 28px; background: var(--paper); border: 1px solid var(--line);
  box-shadow: 0 1px 0 rgba(14, 19, 48, 0.03); transition: transform 0.35s var(--ease), border-color 0.3s, box-shadow 0.35s var(--ease);
}
.tile::before {               /* cursor spotlight */
  content: ''; position: absolute; inset: 0; opacity: 0; transition: opacity 0.3s; pointer-events: none;
  background: radial-gradient(360px circle at var(--x, 50%) var(--y, 50%), rgba(200, 255, 62, 0.4), transparent 60%);
}
.tile > * { position: relative; }
.tile:hover { transform: translateY(-4px); border-color: var(--ink); box-shadow: var(--shadow); }
.tile:hover::before { opacity: 1; }
.tile .ico { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: var(--lime); color: var(--lime-ink); border: 1.5px solid var(--ink); margin-bottom: 22px; }
.tile .ico svg { width: 22px; height: 22px; }
.tile h3 { font: 700 22px/1.15 var(--font-display); letter-spacing: -0.02em; margin: 0 0 8px; }
.tile p { margin: 0; color: var(--dim); font-size: 15px; max-width: 30em; }
.t-a { grid-column: span 4; min-height: 300px; }
.t-b { grid-column: span 2; }
.t-c, .t-d, .t-e { grid-column: span 2; }
.t-f, .t-g { grid-column: span 3; }
.t-a { background: linear-gradient(140deg, #e3e5ff, var(--paper) 60%); }
.t-list { margin-top: 26px; display: grid; gap: 8px; max-width: 460px; }
.t-list div { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 11px 14px; border-radius: 12px; background: var(--paper); border: 1px solid var(--line); font: 500 13px var(--font-mono); color: var(--dim); box-shadow: 0 6px 16px -10px rgba(35, 40, 120, 0.3); }
.t-list div:nth-child(2) { transform: translateX(14px); }
.t-list div:nth-child(3) { transform: translateX(28px); opacity: 0.75; }

.lp-more { margin-top: 34px; display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.lp-more > span:first-child { font: 600 13px var(--font-mono); color: var(--faint); text-transform: uppercase; letter-spacing: 0.1em; margin-right: 6px; }
.lp-more span.c { padding: 8px 16px; border-radius: 999px; border: 1px solid var(--line); font-size: 14px; font-weight: 600; color: var(--dim); background: var(--paper); transition: color 0.2s, border-color 0.2s, background 0.2s, transform 0.2s var(--ease); }
.lp-more span.c:hover { color: var(--lime-ink); background: var(--lime); border-color: var(--ink); transform: translateY(-2px); }

/* ── Closing CTA (dark card) ────────────────────────────── */
.lp-final { padding: 110px 0 60px; }
.lp-final-card {
  position: relative; overflow: hidden; border-radius: 36px; padding: clamp(40px, 7vw, 84px); text-align: center; isolation: isolate; color: #fff;
  background: radial-gradient(700px 400px at 50% 125%, rgba(91, 91, 240, 0.7), transparent 70%), var(--ink);
}
.lp-final-card::before { content: ''; position: absolute; z-index: -1; inset: 0; background: repeating-linear-gradient(115deg, transparent 0 22px, rgba(200, 255, 62, 0.06) 22px 23px); }
.lp-final-card h2 { font: 800 clamp(36px, 5.4vw, 68px)/1 var(--font-display); letter-spacing: -0.035em; margin: 0 0 16px; }
.lp-final-card p { color: rgba(255, 255, 255, 0.72); margin: 0 auto 30px; max-width: 32em; }
.lp-prices { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; align-items: stretch; }
.price-card { position: relative; display: flex; flex-direction: column; gap: 6px; padding: 30px 28px; border-radius: 14px; background: var(--paper); border: 1px solid var(--line); }
.price-card h3 { font: 700 24px/1.1 var(--font-display); letter-spacing: -0.02em; margin: 0; }
.price-limit { margin: 0; color: var(--dim); font-size: 15px; }
.price-amount { margin: 18px 0 24px; flex-grow: 1; display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; }
.price-amount b { font: 800 44px/1 var(--font-display); letter-spacing: -0.03em; }
.price-amount span { color: var(--faint); font-size: 14px; font-weight: 600; }
.price-card--featured { background: var(--ink); color: #fff; border-color: var(--ink); }
.price-card--featured .price-limit, .price-card--featured .price-amount span { color: rgba(255, 255, 255, 0.72); }
.price-badge { position: absolute; top: -12px; left: 28px; background: var(--lime); color: var(--lime-ink); font: 700 12px var(--font-body); padding: 4px 10px; border-radius: 999px; }
.lp-prices-note { margin: 24px 0 0; color: var(--dim); font-size: 15px; }
.lp-price { display: inline-flex; align-items: baseline; gap: 10px; margin-bottom: 26px; padding: 8px 20px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, 0.2); background: rgba(255, 255, 255, 0.07); font-weight: 600; color: rgba(255, 255, 255, 0.72); }
.lp-price b { font: 800 26px var(--font-display); color: #fff; }
.lp-final-card .lp-btn--primary { border-color: #fff; box-shadow: 3px 3px 0 #fff; }
.lp-final-card .lp-btn--primary:hover { box-shadow: 5px 5px 0 #fff; }
.lp-final-card .lp-btn--primary:active { box-shadow: 1px 1px 0 #fff; }
.lp-foot { text-align: center; color: var(--faint); font-size: 13px; padding: 30px 0 46px; }

/* ── Reveal on scroll (only hidden when JS can un-hide it) ── */
.js .rv { opacity: 0; transform: translateY(28px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); transition-delay: var(--d, 0s); }
.js .rv.in { opacity: 1; transform: none; }
.hero-in > * { animation: rise 0.9s var(--ease) both; }
.hero-in > *:nth-child(2) { animation-delay: 0.08s; }
.hero-in > *:nth-child(3) { animation-delay: 0.16s; }
.hero-in > *:nth-child(4) { animation-delay: 0.24s; }
.hero-in > *:nth-child(5) { animation-delay: 0.32s; }
@keyframes rise { from { opacity: 0; transform: translateY(26px); } }

/* ── Responsive ─────────────────────────────────────────── */
@media (max-width: 960px) {
  .lp-prices { grid-template-columns: 1fr; max-width: 520px; }
  .lp-hero-grid { grid-template-columns: 1fr; }
  .lp-stage { height: 430px; max-width: 460px; margin: 0 auto; width: 100%; }
  .t-a, .t-b, .t-c, .t-d, .t-e, .t-f, .t-g { grid-column: span 6; }
  .t-c, .t-d, .t-e { grid-column: span 3; }
}
@media (max-width: 640px) {
  .wrap { padding: 0 18px; }
  .lp-nav-links a:not(.lp-btn) { display: none; }
  .lp-hero { padding-top: 14px; }
  .lp-stage { height: 400px; }
  .lp-float--ticket { width: 250px; }
  .lp-float--device { width: 235px; top: 158px; }
  .lp-float--license { width: 260px; left: 0; }
  .lp-float--toast { display: none; }
  .t-c, .t-d, .t-e { grid-column: span 6; }
  .lp-client { flex-direction: column; align-items: stretch; }
  .lp-client input { width: 100%; }
  .lp-client form { flex: 1; }
  .lp-cta .lp-btn { flex: 1 1 100%; }
  .lp-ring { width: 300px; height: 300px; }
  .lp-ring--2 { width: 210px; height: 210px; }
  .tile { padding: 22px; border-radius: 20px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .lp-rot span:first-child { opacity: 1; transform: none; }
  .lp-track { flex-wrap: wrap; width: auto; justify-content: center; }
  .js .rv { opacity: 1; transform: none; }
  .lp-bar i { transform: none; }
}
.price-card--featured .lp-btn--primary { color: var(--lime-ink); box-shadow: none; }

/* Monthly / yearly switch */
.lp-toggle { display: inline-flex; gap: 4px; padding: 4px; margin: 0 0 22px; border-radius: 999px; background: var(--paper); border: 1px solid var(--line); }
.lp-toggle button { font: 700 14px var(--font-body); padding: 8px 18px; border: 0; border-radius: 999px; background: transparent; color: var(--dim); cursor: pointer; }
.lp-toggle button.is-on { background: var(--ink); color: #fff; }
.lp-toggle em { font-style: normal; font-size: 12px; color: var(--lime-ink); background: var(--lime); padding: 2px 7px; border-radius: 999px; margin-left: 4px; }
.lp-prices[data-interval="month"] .only-year, .lp-prices[data-interval="year"] .only-month { display: none; }
.price-feature { margin: 0; color: var(--dim); font-size: 14px; }
.price-card--featured .price-feature { color: rgba(255, 255, 255, 0.72); }
