/* casevelocity.ai public pages: a dark, glassy surface with electric accents. Shared by the home, register, billing,
   join, welcome and legal pages. The signed-in workspace keeps its own stylesheet (app.css). */
:root {
  --bg: #05070d; --bg-2: #0a0f1c; --ink: #eef2ff; --ink-2: #b7c0d8; --muted: #7f8aa6; --line: rgba(255, 255, 255, 0.09); --line-2: rgba(255, 255, 255, 0.16);
  --glass: rgba(255, 255, 255, 0.04); --glass-2: rgba(255, 255, 255, 0.07);
  --blue: #5b8cff; --violet: #8b5cf6; --cyan: #22d3ee; --mint: #34d399; --amber: #fbbf24; --rose: #fb7185;
  --grad: linear-gradient(135deg, #17b6dc 0%, #5b8cff 50%, #8b5cf6 100%);
  --glow: 0 12px 48px rgba(23, 182, 220, 0.35), 0 2px 8px rgba(245, 166, 35, 0.2);
  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif; --display: 'Space Grotesk', 'Inter', system-ui, sans-serif; --mono: ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
  color-scheme: dark;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }   /* an element marked hidden stays hidden whatever its own display says (as in app.css) */
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font); font-size: 16px; line-height: 1.55; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
h1, h2, h3, h4, p { margin: 0; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 6px; }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }

/* The sky: layered glows and a faint grid that fades out. */
.sky { position: fixed; inset: 0; z-index: -2; background:
  radial-gradient(1200px 600px at 15% -10%, rgba(91, 140, 255, 0.22), transparent 60%),
  radial-gradient(900px 500px at 90% 0%, rgba(139, 92, 246, 0.20), transparent 60%),
  radial-gradient(800px 500px at 50% 110%, rgba(34, 211, 238, 0.10), transparent 60%), var(--bg); }
.grid { position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: 0.55;
  background-image: linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 56px 56px; -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 20%, #000 20%, transparent 75%); mask-image: radial-gradient(ellipse 70% 60% at 50% 20%, #000 20%, transparent 75%); }
.orb { position: absolute; border-radius: 50%; filter: blur(70px); opacity: 0.55; pointer-events: none; animation: drift 18s ease-in-out infinite alternate; }
.orb.a { width: 520px; height: 520px; background: rgba(23, 182, 220, 0.30); top: -120px; left: -140px; }
.orb.b { width: 420px; height: 420px; background: rgba(139, 92, 246, 0.35); top: 120px; right: -120px; animation-delay: -6s; }
.orb.c { width: 360px; height: 360px; background: rgba(245, 166, 35, 0.18); bottom: -140px; left: 35%; animation-delay: -12s; }
@keyframes drift { from { transform: translate3d(0, 0, 0) scale(1); } to { transform: translate3d(40px, 30px, 0) scale(1.08); } }

.wrap { width: min(1160px, calc(100% - 40px)); margin: 0 auto; }
.narrow { width: min(760px, calc(100% - 40px)); margin: 0 auto; }

/* Top bar */
.top { position: sticky; top: 0; z-index: 20; backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); background: rgba(5, 7, 13, 0.55); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-family: var(--display); font-weight: 700; font-size: 19px; letter-spacing: -0.01em; }
/* the Legal Velocity mark: the gavel with its speed lines, on the black of the app icon */
.mark { width: 30px; height: 30px; border-radius: 9px; background: #0b0b0c url('/img/logo.svg') center / 82% no-repeat; position: relative; box-shadow: 0 6px 20px rgba(23, 182, 220, 0.35); border: 1px solid rgba(255, 255, 255, 0.12); }
.brand small { font-family: var(--mono); font-weight: 500; font-size: 11px; color: var(--muted); letter-spacing: 0.08em; text-transform: uppercase; margin-left: 2px; }
.links { display: flex; gap: 26px; color: var(--ink-2); font-size: 14.5px; }
.links a:hover { color: #fff; }
.actions { display: flex; gap: 10px; align-items: center; }
@media (max-width: 820px) { .links { display: none; } }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 22px; border-radius: 13px; border: 1px solid transparent; font-weight: 600; font-size: 15px; cursor: pointer; transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, border-color 0.15s ease; white-space: nowrap; text-decoration: none; }
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn.primary { background: var(--grad); color: #fff; box-shadow: var(--glow); }
.btn.primary:hover { box-shadow: 0 16px 56px rgba(91, 140, 255, 0.45), 0 2px 8px rgba(139, 92, 246, 0.3); }
.btn.ghost { background: var(--glass); border-color: var(--line-2); color: var(--ink); }
.btn.ghost:hover { background: var(--glass-2); border-color: rgba(255, 255, 255, 0.28); }
.btn.lg { min-height: 54px; padding: 0 28px; font-size: 16px; border-radius: 15px; }
.btn.sm { min-height: 38px; padding: 0 14px; font-size: 14px; border-radius: 10px; }
.btn[disabled] { opacity: 0.55; cursor: default; transform: none; box-shadow: none; }
.btn .spin { width: 16px; height: 16px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, 0.35); border-top-color: #fff; animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Type helpers */
.eyebrow { display: inline-flex; align-items: center; gap: 10px; padding: 7px 14px 7px 9px; border-radius: 999px; background: var(--glass); border: 1px solid var(--line-2); font-family: var(--mono); font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-2); }
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 0 4px rgba(52, 211, 153, 0.18); animation: pulse 2.4s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { box-shadow: 0 0 0 4px rgba(52, 211, 153, 0.18); } 50% { box-shadow: 0 0 0 9px rgba(52, 211, 153, 0.06); } }
.display { font-family: var(--display); font-weight: 700; letter-spacing: -0.03em; line-height: 1.02; text-wrap: balance; }
.h-hero { font-size: clamp(42px, 7vw, 84px); }
.h-section { font-size: clamp(30px, 4.2vw, 46px); }
.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lede { font-size: clamp(17px, 1.6vw, 20px); color: var(--ink-2); max-width: 640px; text-wrap: pretty; }
.muted { color: var(--muted); }
.small { font-size: 13.5px; }
.kicker { font-family: var(--mono); font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--cyan); }

/* Sections */
.section { padding: 96px 0; position: relative; }
.section.tight { padding: 56px 0; }
.section-head { display: grid; gap: 14px; max-width: 720px; margin-bottom: 44px; }
.hero { padding: 84px 0 56px; position: relative; overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center; }
.hero-copy { display: grid; gap: 26px; }
.cta-row { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.fineprint { color: var(--muted); font-size: 14px; display: flex; gap: 14px; flex-wrap: wrap; }
.fineprint span::before { content: '·'; margin-right: 14px; color: var(--line-2); }
.fineprint span:first-child::before { content: none; margin: 0; }
@media (max-width: 960px) { .hero .wrap { grid-template-columns: 1fr; } .hero { padding: 56px 0 32px; } }

/* Glass cards */
.card { background: var(--glass); border: 1px solid var(--line); border-radius: 22px; padding: 28px; position: relative; backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.card::before { content: ''; position: absolute; inset: 0 0 auto 0; height: 1px; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.35), transparent); border-radius: 22px 22px 0 0; opacity: 0.6; }
.card.hot { border-color: rgba(91, 140, 255, 0.45); box-shadow: 0 30px 90px rgba(91, 140, 255, 0.18); }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.cards .card { display: grid; gap: 12px; align-content: start; }
.cards h3 { font-family: var(--display); font-size: 19px; font-weight: 600; letter-spacing: -0.01em; }
.cards p { color: var(--ink-2); font-size: 15px; }
.icon { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: linear-gradient(135deg, rgba(91, 140, 255, 0.22), rgba(139, 92, 246, 0.22)); border: 1px solid var(--line-2); color: #cfe0ff; font-family: var(--mono); font-size: 13px; }
@media (max-width: 960px) { .cards { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .cards { grid-template-columns: 1fr; } .card { padding: 22px; } }

/* The product mock in the hero */
.mock { position: relative; border-radius: 24px; padding: 18px; background: linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.03)); border: 1px solid var(--line-2); box-shadow: 0 40px 120px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(255, 255, 255, 0.03) inset; transform: perspective(1400px) rotateY(-6deg) rotateX(2deg); }
.mock-bar { display: flex; gap: 6px; margin-bottom: 14px; }
.mock-bar i { width: 10px; height: 10px; border-radius: 50%; background: rgba(255, 255, 255, 0.14); display: block; }
.mock-grid { display: grid; grid-template-columns: 1fr 1.25fr; gap: 12px; }
.pane { background: rgba(5, 7, 13, 0.55); border: 1px solid var(--line); border-radius: 14px; padding: 14px; display: grid; gap: 10px; align-content: start; }
.pane h4 { font-size: 12.5px; color: var(--ink-2); font-weight: 600; display: flex; justify-content: space-between; }
.pane h4 b { color: #fff; background: rgba(91, 140, 255, 0.25); border-radius: 999px; padding: 0 8px; font-size: 11px; }
.row { background: rgba(255, 255, 255, 0.035); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; display: grid; gap: 6px; }
.row .t { font-size: 13px; color: #fff; font-weight: 500; }
.row .s { font-size: 11.5px; color: var(--muted); }
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chip { font-size: 11px; padding: 4px 9px; border-radius: 999px; border: 1px solid var(--line-2); color: var(--ink-2); }
.chip.ai { border-color: rgba(91, 140, 255, 0.5); color: #cfe0ff; background: rgba(91, 140, 255, 0.15); }
.chip.ok { border-color: rgba(52, 211, 153, 0.4); color: #a7f3d0; background: rgba(52, 211, 153, 0.12); }
.chip.warn { border-color: rgba(251, 191, 36, 0.4); color: #fde68a; background: rgba(251, 191, 36, 0.1); }
.typing::after { content: '▍'; color: var(--cyan); animation: blink 1s steps(2) infinite; margin-left: 2px; }
@keyframes blink { 50% { opacity: 0; } }
.float { position: absolute; right: 24px; bottom: -30px; background: rgba(10, 15, 28, 0.92); border: 1px solid rgba(52, 211, 153, 0.45); border-radius: 14px; padding: 12px 14px; display: grid; gap: 4px; box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5); animation: rise 0.9s ease both 0.6s; }
.float .t { font-size: 13px; font-weight: 600; color: #a7f3d0; }
.float .s { font-size: 12px; color: var(--ink-2); }
@keyframes rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@media (max-width: 960px) { .mock { transform: none; } .float { position: static; margin-top: 12px; } }

/* "Works with" strip */
.strip { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; color: var(--muted); font-size: 14px; }
.strip .tag { padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--glass); color: var(--ink-2); font-weight: 500; font-size: 14px; }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; counter-reset: step; }
.step { position: relative; padding: 28px; border-radius: 22px; background: var(--glass); border: 1px solid var(--line); display: grid; gap: 10px; align-content: start; }
.step .n { font-family: var(--mono); font-size: 12px; color: var(--cyan); letter-spacing: 0.12em; }
.step h3 { font-family: var(--display); font-size: 21px; font-weight: 600; }
.step p { color: var(--ink-2); font-size: 15px; }
@media (max-width: 820px) { .steps { grid-template-columns: 1fr; } }

/* Pricing */
.pricing { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 18px; align-items: stretch; }
.price { font-family: var(--display); font-size: clamp(44px, 6vw, 64px); font-weight: 700; letter-spacing: -0.04em; line-height: 1; }
.price small { font-family: var(--font); font-size: 16px; color: var(--muted); letter-spacing: 0; font-weight: 500; margin-left: 6px; }
.checks { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; color: var(--ink-2); font-size: 15px; }
.checks li { display: flex; gap: 10px; align-items: flex-start; }
.checks li::before { content: '✓'; color: var(--mint); font-weight: 700; flex: none; margin-top: 1px; }
@media (max-width: 820px) { .pricing { grid-template-columns: 1fr; } }

/* FAQ */
.faq { display: grid; gap: 10px; }
.faq details { background: var(--glass); border: 1px solid var(--line); border-radius: 16px; padding: 0 22px; }
.faq summary { cursor: pointer; list-style: none; padding: 18px 0; font-weight: 600; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; color: var(--muted); font-family: var(--mono); }
.faq details[open] summary::after { content: '–'; }
.faq p { color: var(--ink-2); padding: 0 0 18px; font-size: 15px; }

/* Footer */
.foot { border-top: 1px solid var(--line); padding: 36px 0 56px; color: var(--muted); font-size: 14px; }
.foot .wrap { display: flex; flex-wrap: wrap; gap: 18px; justify-content: space-between; align-items: center; }
.foot a:hover { color: #fff; }

/* Forms (register, join, billing) */
.auth { min-height: 100vh; display: grid; grid-template-columns: 1fr 1fr; }
.auth-side { padding: 56px 48px; display: grid; align-content: space-between; gap: 32px; border-right: 1px solid var(--line); background: linear-gradient(180deg, rgba(91, 140, 255, 0.07), transparent 60%); }
.auth-main { display: grid; place-items: center; padding: 40px 20px; }
.form-card { width: min(520px, 100%); display: grid; gap: 18px; }
.field { display: grid; gap: 7px; }
.field label { font-size: 13.5px; color: var(--ink-2); font-weight: 500; }
.input { width: 100%; min-height: 48px; padding: 0 14px; border-radius: 12px; border: 1px solid var(--line-2); background: rgba(5, 7, 13, 0.6); color: var(--ink); transition: border-color 0.15s, box-shadow 0.15s; }
.input:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(91, 140, 255, 0.18); }
.input[readonly] { color: var(--muted); }
.hint { color: var(--muted); font-size: 13px; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--ink-2); }
.check input { margin-top: 3px; accent-color: var(--blue); width: 16px; height: 16px; }
.alert { padding: 12px 14px; border-radius: 12px; font-size: 14px; }
.alert.bad { background: rgba(251, 113, 133, 0.12); border: 1px solid rgba(251, 113, 133, 0.4); color: #fecdd3; }
.alert.good { background: rgba(52, 211, 153, 0.1); border: 1px solid rgba(52, 211, 153, 0.35); color: #a7f3d0; }
.alert.warn { background: rgba(251, 191, 36, 0.1); border: 1px solid rgba(251, 191, 36, 0.35); color: #fde68a; }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 8px 18px; font-size: 15px; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; }
.pill { display: inline-flex; align-items: center; padding: 4px 11px; border-radius: 999px; font-size: 12.5px; font-weight: 600; border: 1px solid var(--line-2); background: var(--glass); }
.pill.good { color: #a7f3d0; border-color: rgba(52, 211, 153, 0.45); }
.pill.warn { color: #fde68a; border-color: rgba(251, 191, 36, 0.45); }
.pill.bad { color: #fecdd3; border-color: rgba(251, 113, 133, 0.45); }
.auth-side ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 14px; color: var(--ink-2); }
.auth-side li { display: flex; gap: 12px; }
.auth-side li::before { content: '→'; color: var(--cyan); font-family: var(--mono); }
@media (max-width: 900px) { .auth { grid-template-columns: 1fr; } .auth-side { border-right: 0; border-bottom: 1px solid var(--line); padding: 28px 20px; } .two { grid-template-columns: 1fr; } }

/* Legal text */
.prose { display: grid; gap: 14px; color: var(--ink-2); font-size: 15.5px; }
.prose h2 { font-family: var(--display); color: var(--ink); font-size: 22px; margin-top: 22px; }
.prose h3 { color: var(--ink); font-size: 17px; margin-top: 8px; }

/* Appear on scroll */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.in { opacity: 1; transform: none; }

/* Welcome page: LVAI Pro, included with Case Velocity (Oct 24, 2026) */
.lv-box { border: 1px solid rgba(92, 207, 234, .45); border-radius: 16px; padding: 16px 18px; background: rgba(92, 207, 234, .07); display: grid; gap: 10px; }
.lv-row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.lv-tag { display: inline-block; vertical-align: middle; font-size: 12px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; padding: 3px 9px; border-radius: 999px; background: rgba(74, 222, 128, .16); color: #86efac; border: 1px solid rgba(74, 222, 128, .4); }
.lv-ok { color: #86efac; font-weight: 600; }
.lv-steps { margin: 0; padding-left: 20px; display: grid; gap: 4px; }
