/* Tensor Legal landing page (index.html). Uses the tokens in base.css and the live logo from app.css. */
body.lp { background: var(--bg); color: var(--text); overflow-x: hidden; }
.lp-wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.lp a { color: inherit; }
.lp .ico { width: 16px; height: 16px; }

/* nav */
.lp-nav { position: sticky; top: 0; z-index: 50; transition: background .2s, border-color .2s; border-bottom: 1px solid transparent; }
.lp-nav.scrolled, .lp-nav.open { background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom-color: var(--line); }
.lp-nav-in { display: flex; align-items: center; gap: 28px; height: 68px; }
.lp-brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; font-size: 17px; letter-spacing: -.01em; text-decoration: none; }
.lp-brand em { font-style: normal; font-weight: 400; color: var(--muted); }
.lp-brand .logo-mark { width: 28px; height: 28px; }
.lp-links { display: flex; gap: 4px; margin-left: 12px; }
.lp-links a { padding: 8px 12px; border-radius: 9px; font-size: 14px; color: var(--muted); text-decoration: none; }
.lp-links a:hover { color: var(--text); background: var(--panel-2); }
.lp-nav-r { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.lp-signin { font-size: 14px; color: var(--muted); text-decoration: none; padding: 8px 10px; }
.lp-signin:hover { color: var(--text); }
.lp-menu { display: none; }

/* buttons */
.lp-btn { background: var(--text); color: var(--bg) !important; border-color: transparent; border-radius: 10px; height: 38px; padding: 0 16px; font-weight: 500; text-decoration: none; gap: 8px; }
.lp-btn:hover { background: var(--accent); color: var(--accent-ink) !important; }
.lp-ghost { background: transparent; border: 1px solid var(--line-2); border-radius: 10px; height: 38px; padding: 0 16px; text-decoration: none; gap: 8px; }
.lp-ghost:hover { background: var(--panel-2); }
.lp-btn-lg { height: 48px; padding: 0 22px; font-size: 15px; border-radius: 12px; }

/* sky gradient shared by hero and CTA */
.lp-sky { position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(70% 55% at 78% 108%, rgba(255,140,80,.38) 0%, rgba(194,65,12,.22) 25%, transparent 60%), radial-gradient(50% 45% at 92% 0%, rgba(139,77,255,.22), transparent 65%), radial-gradient(60% 50% at 10% 0%, rgba(80,110,220,.16), transparent 70%); }
:root[data-theme="light"] .lp-sky { opacity: .6; }

/* hero */
.lp-hero { position: relative; isolation: isolate; padding: 64px 0 72px; margin-top: -68px; padding-top: 140px; overflow: hidden; }
.lp-hero-in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 56px; align-items: center; }
.lp-eyebrow { display: inline-flex; align-items: center; gap: 10px; font-size: 13px; color: var(--muted); border: 1px solid var(--line-2); border-radius: 999px; padding: 6px 14px 6px 10px; background: color-mix(in srgb, var(--panel) 60%, transparent); }
.lp-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px var(--green-soft); }
.lp h1 { font-family: var(--font-serif); font-weight: 400; font-size: clamp(40px, 5.4vw, 66px); line-height: 1.04; letter-spacing: -.025em; margin: 22px 0 20px; }
.lp h1 i { color: var(--accent); }
.lp-lede { font-size: 18px; line-height: 1.6; color: var(--muted); max-width: 540px; }
.lp-ctas { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 30px; }
.lp-note { font-size: 13px; color: var(--faint); margin-top: 16px; }

/* product shot */
.lp-shot { position: relative; padding: 20px 10px 40px 30px; }
.lp-win { border: 1px solid var(--line-2); border-radius: 18px; background: var(--panel); box-shadow: var(--shadow), 0 0 0 6px color-mix(in srgb, var(--panel) 40%, transparent); overflow: hidden; }
.lp-win-bar { display: flex; align-items: center; gap: 7px; padding: 12px 16px; border-bottom: 1px solid var(--line); font-size: 12.5px; color: var(--faint); }
.lp-win-bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--panel-3); }
.lp-win-bar span { margin-left: 10px; }
.lp-win-body { padding: 22px; display: grid; gap: 16px; }
.lp-q { justify-self: end; max-width: 80%; background: var(--panel-3); border-radius: 16px 16px 4px 16px; padding: 10px 14px; font-size: 14px; }
.lp-a { font-size: 14.5px; line-height: 1.65; }
.lp-a p { color: var(--text); }
.lp-a sup { display: inline-grid; place-items: center; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 5px; background: var(--accent-soft); color: var(--accent); font-size: 10.5px; font-weight: 600; vertical-align: 2px; margin-left: 2px; }
.lp-a-head { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.lp-pill { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px; border-radius: 999px; background: var(--green-soft); color: var(--green); font-size: 12.5px; font-weight: 500; }
.lp-pill .ico { width: 13px; height: 13px; }
.lp-faint { font-size: 12px; color: var(--faint); }
.lp-srcs { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.lp-srcs span { display: inline-flex; align-items: center; gap: 7px; font-size: 12px; color: var(--muted); border: 1px solid var(--line); border-radius: 8px; padding: 5px 9px; background: var(--panel-2); }
.lp-srcs b { color: var(--accent); font-weight: 600; }
.lp-typing { display: flex; align-items: center; gap: 8px; border: 1px solid var(--line-2); border-radius: 14px; padding: 12px 14px; font-size: 13.5px; color: var(--faint); }
.lp-caret { width: 2px; height: 16px; background: var(--accent); animation: lp-blink 1.1s steps(1) infinite; }
@keyframes lp-blink { 50% { opacity: 0; } }
.lp-modes { margin-left: auto; display: flex; gap: 4px; font-size: 11.5px; }
.lp-modes b, .lp-modes em { font-style: normal; padding: 3px 8px; border-radius: 999px; }
.lp-modes b { background: var(--panel-3); color: var(--text); font-weight: 500; }
.lp-float { position: absolute; display: flex; gap: 10px; align-items: center; background: var(--panel); border: 1px solid var(--line-2); border-radius: 14px; padding: 12px 14px; box-shadow: var(--shadow); font-size: 13px; animation: lp-bob 6s ease-in-out infinite; }
.lp-float small { display: block; color: var(--faint); font-size: 11.5px; margin-top: 2px; }
.lp-float b { font-weight: 500; }
.lp-f1 { left: -6px; bottom: 6px; }
.lp-f2 { right: -14px; top: -6px; display: block; width: 250px; animation-delay: -3s; }
.lp-f2-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 9px; }
.lp-bar { height: 5px; border-radius: 99px; background: var(--panel-3); overflow: hidden; margin-bottom: 6px; }
.lp-bar i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--green), var(--amber)); }
@keyframes lp-bob { 50% { transform: translateY(-6px); } }
.lp-tile { width: 30px; height: 30px; border-radius: 9px; display: inline-grid; place-items: center; color: #fff; font-weight: 700; font-size: 12px; font-style: normal; flex: none; }
.lp-tile-logo { background: var(--panel-3); }
.lp-tile-logo .logo-mark { width: 20px; height: 20px; }

/* channels strip */
.lp-channels { padding: 26px 0 30px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--bg-2); }
.lp-caps { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--faint); font-weight: 500; }
.lp-channels .lp-caps { text-align: center; margin-bottom: 16px; }
.lp-ch-row { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px 34px; }
.lp-ch-row span { display: inline-flex; align-items: center; gap: 10px; font-size: 14.5px; color: var(--muted); }

/* sections */
.lp-sec { padding: 104px 0; }
.lp-alt { background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.lp-head { text-align: center; max-width: 680px; margin: 0 auto 52px; }
.lp h2 { font-family: var(--font-serif); font-weight: 400; font-size: clamp(30px, 3.6vw, 44px); line-height: 1.1; letter-spacing: -.02em; margin: 12px 0 14px; }
.lp-head p:last-child, .lp-sub { color: var(--muted); font-size: 16.5px; line-height: 1.6; }
.lp h3 { font-size: 16px; font-weight: 600; letter-spacing: -.005em; margin-bottom: 8px; }

.lp-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.lp-card { border: 1px solid var(--line); border-radius: 18px; background: var(--panel); padding: 26px; transition: border-color .2s, transform .2s; }
.lp-card:hover { border-color: var(--line-2); transform: translateY(-2px); }
.lp-card p { color: var(--muted); font-size: 14.5px; line-height: 1.6; }
.lp-card p b { color: var(--text); font-weight: 500; }
.lp-card-big { grid-column: span 2; background: radial-gradient(80% 120% at 100% 0%, var(--violet-soft), transparent 60%), var(--panel); }
.lp-ic { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; margin-bottom: 18px; color: var(--c); background: color-mix(in srgb, var(--c) 14%, transparent); }
.lp-ic .ico { width: 19px; height: 19px; }
.lp-modes-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.lp-modes-row span { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--line-2); border-radius: 999px; padding: 7px 14px; font-size: 13.5px; background: var(--panel-2); }

/* how */
.lp-flow { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; position: relative; }
.lp-step { border: 1px solid var(--line); border-radius: 18px; background: var(--panel); padding: 26px; }
.lp-step p { color: var(--muted); font-size: 14.5px; line-height: 1.6; }
.lp-n { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-family: var(--font-mono); font-size: 13px; background: var(--accent-soft); color: var(--accent); margin-bottom: 16px; }
.lp-routes { display: grid; gap: 8px; margin-top: 6px; }
.lp-route { border-radius: 10px; padding: 9px 12px; border: 1px solid; font-size: 13px; }
.lp-route b { display: block; font-weight: 500; }
.lp-route span { color: var(--muted); font-size: 12.5px; }
.lp-route.g { border-color: color-mix(in srgb, var(--green) 35%, transparent); background: var(--green-soft); } .lp-route.g b { color: var(--green); }
.lp-route.a { border-color: color-mix(in srgb, var(--amber) 35%, transparent); background: var(--amber-soft); } .lp-route.a b { color: var(--amber); }
.lp-route.r { border-color: color-mix(in srgb, var(--red) 35%, transparent); background: var(--red-soft); } .lp-route.r b { color: var(--red); }

.lp-clock { margin-top: 16px; border: 1px solid var(--line); border-radius: 18px; background: var(--panel); padding: 26px; }
.lp-clock-h { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 26px; }
.lp-clock-h p { color: var(--muted); font-size: 14px; }
.lp-track { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; position: relative; }
.lp-track::before { content: ""; position: absolute; left: 14px; right: 14px; top: 13px; height: 2px; background: linear-gradient(90deg, var(--green) 0 50%, var(--line-2) 50%); }
.lp-tk { position: relative; display: grid; gap: 4px; font-size: 13px; }
.lp-tk i { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--panel); border: 2px solid var(--line-2); margin-bottom: 8px; position: relative; }
.lp-tk.done i { background: var(--green); border-color: var(--green); color: #07160e; }
.lp-tk.done i .ico { width: 14px; height: 14px; }
.lp-tk.live i { border-color: var(--blue); }
.lp-tk.live i::after { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--blue); animation: pulse 1.4s infinite; }
.lp-tk b { font-weight: 500; font-size: 14px; }
.lp-tk span { color: var(--faint); }

/* roles */
.lp-roles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.lp-role { border: 1px solid var(--line); border-radius: 18px; background: var(--panel); padding: 24px; }
.lp-role .avatar { width: 40px; height: 40px; font-size: 14px; margin-bottom: 16px; }
.lp-role p { color: var(--muted); font-size: 14px; line-height: 1.6; }

/* trust */
.lp-trust { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 56px; align-items: start; }
.lp-trust .lp-sub { margin-bottom: 24px; max-width: 420px; }
.lp-checks { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.lp-checks li { display: flex; gap: 14px; border: 1px solid var(--line); border-radius: 14px; background: var(--panel); padding: 16px 18px; }
.lp-checks .ico { width: 20px; height: 20px; color: var(--green); flex: none; margin-top: 1px; }
.lp-checks b { display: block; font-weight: 500; font-size: 15px; }
.lp-checks span { color: var(--muted); font-size: 14px; }

/* faq */
.lp-faq-wrap { display: grid; grid-template-columns: minmax(0, .6fr) minmax(0, 1.4fr); gap: 56px; }
.lp-faq { display: grid; gap: 10px; }
.lp-faq details { border: 1px solid var(--line); border-radius: 14px; background: var(--panel); padding: 0 20px; }
.lp-faq summary { cursor: pointer; list-style: none; padding: 18px 0; font-weight: 500; font-size: 15.5px; display: flex; justify-content: space-between; gap: 16px; }
.lp-faq summary::-webkit-details-marker { display: none; }
.lp-faq summary::after { content: "+"; color: var(--faint); font-size: 20px; line-height: 1; transition: transform .2s; }
.lp-faq details[open] summary::after { transform: rotate(45deg); }
.lp-faq details p { color: var(--muted); font-size: 14.5px; line-height: 1.65; padding-bottom: 18px; }

/* cta */
.lp-cta { position: relative; isolation: isolate; overflow: hidden; padding: 110px 0; text-align: center; border-top: 1px solid var(--line); }
.lp-cta-in p { color: var(--muted); font-size: 17px; }
.lp-cta-logo .logo-mark { width: 56px; height: 56px; }

/* footer */
.lp-foot { border-top: 1px solid var(--line); padding: 56px 0 28px; background: var(--bg-2); }
.lp-foot-in { display: grid; grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr)); gap: 28px; }
.lp-foot-in p { color: var(--faint); font-size: 13.5px; margin-top: 12px; }
.lp-foot nav { display: grid; gap: 9px; align-content: start; font-size: 14px; }
.lp-foot nav b { font-weight: 500; font-size: 13px; margin-bottom: 4px; }
.lp-foot nav a { color: var(--muted); text-decoration: none; }
.lp-foot nav a:hover { color: var(--text); }
.lp-legal { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 44px; padding-top: 22px; border-top: 1px solid var(--line); font-size: 12.5px; color: var(--faint); }

/* reveal */
.rv { opacity: 0; transform: translateY(16px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.2,1); }
.rv.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .rv { opacity: 1; transform: none; transition: none; } .lp-float { animation: none; } }

/* responsive */
@media (max-width: 1020px) {
  .lp-hero-in { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .lp-shot { max-width: 640px; }
  .lp-roles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lp-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lp-trust, .lp-faq-wrap { grid-template-columns: minmax(0, 1fr); gap: 32px; }
}
@media (max-width: 860px) {
  .lp-links { display: none; position: absolute; top: 68px; left: 0; right: 0; flex-direction: column; gap: 0; margin: 0; padding: 8px 16px 16px; background: var(--bg); border-bottom: 1px solid var(--line); }
  .lp-nav.open .lp-links { display: flex; }
  .lp-links a { padding: 13px 8px; font-size: 15px; border-bottom: 1px solid var(--line); border-radius: 0; }
  .lp-menu { display: inline-grid; }
  .lp-signin { display: none; }
  .lp-flow { grid-template-columns: minmax(0, 1fr); }
  .lp-track { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .lp-track::before { left: 13px; right: auto; top: 14px; bottom: 14px; width: 2px; height: auto; background: linear-gradient(180deg, var(--green) 0 50%, var(--line-2) 50%); }
  .lp-tk { grid-template-columns: 28px 1fr; column-gap: 14px; }
  .lp-tk i { grid-row: span 2; margin: 0; }
  .lp-foot-in { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .lp-foot-in > div:first-child { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  .lp-wrap { padding: 0 16px; }
  .lp-nav-in { gap: 12px; }
  .lp-nav-r .lp-btn { height: 34px; padding: 0 12px; font-size: 13px; }
  .lp-hero { padding-top: 104px; padding-bottom: 48px; }
  .lp-lede { font-size: 16px; }
  .lp-shot { padding: 30px 0 46px; }
  .lp-f2 { right: 0; top: -4px; width: 220px; }
  .lp-f1 { left: 0; bottom: 0; }
  .lp-win-body { padding: 16px; }
  .lp-modes { display: none; }
  .lp-grid, .lp-roles { grid-template-columns: minmax(0, 1fr); }
  .lp-card-big { grid-column: auto; }
  .lp-sec { padding: 72px 0; }
  .lp-head { margin-bottom: 36px; }
  .lp-clock-h { flex-direction: column; }
  .lp-btn-lg { width: 100%; justify-content: center; }
  .lp-foot-in { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
