/* LawServices.ai design system — matched to the client's reference design
   (tigrangareginyan.bubbleapps.io): Plus Jakarta Sans, navy ink #0D1747,
   blue gradient buttons, lavender section washes, soft cards. */

:root {
  --font: "Plus Jakarta Sans", "Manrope", "Noto Sans Armenian", system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", "Noto Sans Armenian", ui-monospace, monospace;
  --bg: #ffffff;
  --bg-soft: #f4f5fd;
  --bg-soft-2: #fafaff;
  --surface: #ffffff;
  --card-soft: #f8f8fa;
  --ink: #0d1747;
  --ink-dark: #0d1747;
  --ink-muted: #858a9e;
  --body: #4b5168;
  --border: #e6e8f0;
  --accent: #2845d6;
  --accent-dark: #1d3d94;
  --accent-soft: #eef1fd;
  --purple: #8b5cf6;
  --lavender: #efe6fd;
  --success: #22c38e;
  --danger: #dc2828;
  --danger-bg: #fdeceb;
  --danger-border: #f6c9c5;
  --grad: linear-gradient(90deg, #1d3d94 0%, #4c86f7 100%);
  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-sm: 8px;
  --shadow-soft: 0 20px 60px rgba(13, 23, 71, 0.08);
  --shadow-card: 0 8px 24px rgba(13, 23, 71, 0.08);
  --navbar-bg: rgba(255, 255, 255, 0.9);
  --hero-gradient: linear-gradient(180deg, #fdfcff 0%, #f9f8fe 100%);
  --section-wash: #faf9fe;
  --tools-wash: linear-gradient(180deg, #faf9fe 0%, #eef0fc 55%, #ffffff 100%);
  color-scheme: light;
}

/* Dark theme: follows system preference by default, or the explicit
   data-theme attribute set by the theme toggle (base.html inline script,
   persisted in localStorage). */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0b1130;
    --bg-soft: #141b44;
    --bg-soft-2: #10173a;
    --surface: #131a3f;
    --card-soft: #161e47;
    --ink: #f2f4ff;
    --ink-dark: #070b22;
    --ink-muted: #9aa1bc;
    --body: #c3c8dc;
    --border: #252f5e;
    --accent: #5b7bff;
    --accent-dark: #3d5fe0;
    --accent-soft: #1b2458;
    --lavender: #2a2356;
    --danger: #ff7a70;
    --danger-bg: rgba(255, 122, 112, 0.12);
    --danger-border: rgba(255, 122, 112, 0.32);
    --shadow-soft: 0 20px 60px rgba(0, 0, 0, 0.45);
    --shadow-card: 0 8px 24px rgba(0, 0, 0, 0.4);
    --navbar-bg: rgba(11, 17, 48, 0.9);
    --hero-gradient: linear-gradient(180deg, #0b1130 0%, #0e1538 100%);
    --section-wash: #0e1538;
    --tools-wash: linear-gradient(180deg, #0b1130 0%, #141b48 45%, #0b1130 100%);
    color-scheme: dark;
  }
}

:root[data-theme="dark"] {
  --bg: #0b1130;
  --bg-soft: #141b44;
  --bg-soft-2: #10173a;
  --surface: #131a3f;
  --card-soft: #161e47;
  --ink: #f2f4ff;
  --ink-dark: #070b22;
  --ink-muted: #9aa1bc;
  --body: #c3c8dc;
  --border: #252f5e;
  --accent: #5b7bff;
  --accent-dark: #3d5fe0;
  --accent-soft: #1b2458;
  --lavender: #2a2356;
  --danger: #ff7a70;
  --danger-bg: rgba(255, 122, 112, 0.12);
  --danger-border: rgba(255, 122, 112, 0.32);
  --shadow-soft: 0 20px 60px rgba(0, 0, 0, 0.45);
  --shadow-card: 0 8px 24px rgba(0, 0, 0, 0.4);
  --navbar-bg: rgba(11, 17, 48, 0.9);
  --hero-gradient: linear-gradient(180deg, #0b1130 0%, #0e1538 100%);
  --section-wash: #0e1538;
  --tools-wash: linear-gradient(180deg, #0b1130 0%, #141b48 45%, #0b1130 100%);
  color-scheme: dark;
}

body {
  transition: background-color 0.15s ease, color 0.15s ease;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font);
  color: var(--body);
  background: var(--bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
.heading {
  font-family: var(--font);
  color: var(--ink);
  letter-spacing: -0.02em;
  margin: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Navbar */

.navbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--navbar-bg);
  backdrop-filter: blur(10px);
}

.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px 56px;
  max-width: 1440px;
  margin: 0 auto;
}

.brand {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  color: var(--ink);
}

/* Interactive logo (<ls-logo>, static/js/lawservices-logo.js). theme="auto"
   instances read their ink colour from this variable. Before the script
   defines the element, reserve its box so the header doesn't jump. */
:root {
  --ls-logo-ink: #0e2a3b;
}

:root[data-theme="dark"] {
  --ls-logo-ink: #ffffff;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ls-logo-ink: #ffffff;
  }
}

ls-logo:not(:defined) {
  display: inline-block;
  width: 190px;
  height: 36px;
}

ls-logo[icon-only]:not(:defined) {
  width: 28px;
  height: 28px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  font-size: 15px;
  font-weight: 400;
  color: var(--ink);
}

.nav-links a:hover {
  color: var(--accent);
}

.navbar-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.lang-menu {
  position: relative;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
}

.lang-menu summary {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  padding: 8px 4px;
  font-size: 15px;
  font-weight: 400;
}

.lang-menu summary::-webkit-details-marker {
  display: none;
}

.lang-menu summary svg {
  width: 14px;
  height: 14px;
  color: var(--ink-muted);
}

.lang-menu-list {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  min-width: 150px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: var(--shadow-card);
  padding: 6px;
  z-index: 60;
}

.lang-menu-list a {
  display: block;
  padding: 8px 12px;
  border-radius: 8px;
}

.lang-menu-list a:hover,
.lang-menu-list a.active {
  background: var(--accent-soft);
  color: var(--accent);
}

.theme-toggle {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--ink-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.theme-toggle:hover {
  color: var(--ink);
}

.theme-toggle svg {
  width: 17px;
  height: 17px;
}

.theme-toggle .icon-sun {
  display: none;
}

:root[data-theme="dark"] .theme-toggle .icon-sun {
  display: block;
}

:root[data-theme="dark"] .theme-toggle .icon-moon {
  display: none;
}

@media (max-width: 980px) {
  .nav-links {
    display: none;
  }
  .navbar-inner {
    padding: 12px 20px;
  }
}

@media (max-width: 560px) {
  .navbar-actions .nav-login {
    display: none;
  }
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: var(--radius-sm);
  font-family: var(--font);
  font-weight: 600;
  font-size: 14px;
  line-height: 1.2;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--grad);
  color: #fff;
  box-shadow: 0 8px 20px rgba(40, 69, 214, 0.25);
}

.btn-primary:hover {
  filter: brightness(1.05);
}

.btn-secondary {
  background: var(--surface);
  color: var(--accent);
  border-color: #c9d2f5;
}

:root[data-theme="dark"] .btn-secondary {
  border-color: var(--border);
}

.btn-sm {
  padding: 9px 14px;
  font-size: 15px;
  font-weight: 500;
}

.btn-ghost {
  background: var(--surface);
  color: var(--ink);
  border-color: var(--border);
}

.btn-block {
  width: 100%;
}

.card {
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-soft);
}

.card h3 {
  font-size: 18px;
  margin-top: 20px;
}

.card p {
  font-size: 14px;
  margin-top: 12px;
}

/* Landing (reference design) */

.lp-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.lp-h2 {
  font-size: clamp(30px, 3.7vw, 52px);
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  max-width: 540px;
  margin: 0 auto;
}

.lp-sub {
  text-align: center;
  color: var(--ink-muted);
  font-size: 16px;
  max-width: 560px;
  margin: 18px auto 0;
}

.lp-hero {
  position: relative;
  overflow: hidden;
  background: var(--hero-gradient);
  padding: 110px 0 150px;
  text-align: center;
}

.lp-hero-inner {
  position: relative;
  z-index: 1;
}



.lp-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--accent);
}

.lp-eyebrow svg {
  width: 20px;
  height: 20px;
}

.lp-h1 {
  font-size: clamp(36px, 5vw, 72px);
  font-weight: 700;
  line-height: 1.32;
  letter-spacing: -0.015em;
  max-width: 960px;
  margin: 18px auto 0;
}

.lp-lead {
  color: var(--ink-muted);
  font-size: 20px;
  max-width: 640px;
  margin: 20px auto 0;
}

.lp-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 50px;
}

.lp-actions .btn {
  min-width: 176px;
  padding: 15px 24px;
  font-size: 15px;
}

.lp-trust {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 52px auto 0;
  font-size: 15px;
  color: var(--ink-muted);
}

.lp-trust svg {
  width: 16px;
  height: 16px;
}












.sk {
  display: block;
  height: 8px;
  border-radius: 999px;
  background: var(--border);
}

.lp-risks {
  background: var(--section-wash);
  padding: 104px 0 120px;
}

.lp-risk-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  max-width: 900px;
  margin: 72px auto 0;
}

.lp-risk-card {
  background: var(--card-soft);
  border-radius: 14px;
  padding: 26px 24px 28px;
}

.lp-risk-icon {
  display: block;
  width: 22px;
  height: 22px;
  color: var(--danger);
}

.lp-risk-card h3 {
  font-size: 19px;
  font-weight: 600;
  margin-top: 70px;
}

.lp-risk-card p {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 14px 0 0;
  font-size: 16px;
  color: var(--body);
}

.lp-risk-card p svg {
  width: 14px;
  height: 14px;
  color: var(--ink-muted);
  flex-shrink: 0;
}

.lp-banner {
  display: flex;
  align-items: center;
  gap: 14px;
  max-width: 900px;
  margin: 16px auto 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 24px 24px;
  font-size: 16px;
  color: var(--body);
}

.lp-banner > svg {
  width: 22px;
  height: 22px;
  color: var(--accent);
  flex-shrink: 0;
}

.lp-banner p {
  flex: 1;
  margin: 0;
}

.lp-banner strong {
  color: var(--ink);
}

.lp-link {
  color: var(--accent);
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
}

.lp-link:hover {
  text-decoration: underline;
}

.lp-tools {
  background: var(--tools-wash);
  padding: 120px 0;
}

.lp-tool-list {
  display: grid;
  gap: 16px;
  max-width: 730px;
  margin: 72px auto 0;
}

.lp-tool {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--surface);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-card);
  scroll-margin-top: 90px;
}

.lp-tool-body {
  padding: 28px 24px 24px;
}

.lp-tool-body h3 {
  font-size: 25px;
  font-weight: 600;
}

.lp-tool-desc {
  margin: 8px 0 0;
  font-size: 16px;
  color: var(--ink-muted);
}

.lp-checks {
  list-style: none;
  padding: 0;
  margin: 26px 0 30px;
  display: grid;
  gap: 10px;
  font-size: 16px;
  color: var(--ink);
}

.lp-checks li {
  display: flex;
  align-items: center;
  gap: 10px;
}

.lp-checks svg {
  width: 16px;
  height: 16px;
  color: var(--ink);
  flex-shrink: 0;
}

.lp-tool-body .btn {
  width: 100%;
  max-width: 326px;
  padding: 12px 20px;
  font-size: 15px;
}










.lp-how {
  padding: 120px 0 80px;
}

.lp-tabs {
  display: flex;
  width: fit-content;
  margin: 24px auto 0;
  padding: 4px;
  gap: 4px;
  background: var(--bg-soft);
  border-radius: 999px;
}

.lp-tabs button {
  border: 0;
  background: transparent;
  font-family: var(--font);
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  padding: 8px 16px;
  border-radius: 999px;
  cursor: pointer;
}

.lp-tabs button.active {
  background: var(--surface);
  box-shadow: 0 2px 8px rgba(13, 23, 71, 0.08);
}
























.lp-split {
  padding: 120px 0;
  scroll-margin-top: 60px;
}

.lp-split-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 64px;
}

.lp-split-text .lp-h2 {
  text-align: left;
  margin: 0;
  max-width: 480px;
}

.lp-split-text > p {
  color: var(--ink-muted);
  font-size: 16px;
  max-width: 470px;
  margin: 18px 0 0;
}

.lp-mini-features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin: 44px 0 36px;
}

.lp-mini-features svg {
  width: 24px;
  height: 24px;
  color: var(--accent);
}

.lp-mini-features h4 {
  margin: 16px 0 0;
  font-size: 16px;
  font-weight: 500;
  color: var(--ink);
}

.lp-mini-features p {
  margin: 6px 0 0;
  font-size: 15px;
  line-height: 1.5;
  color: var(--ink-muted);
}

.lp-shot {
  border-radius: 12px;
  padding: 52px 36px;
  background:
    radial-gradient(90% 70% at 85% 10%, rgba(255, 255, 255, 0.75) 0%, rgba(255, 255, 255, 0) 60%),
    linear-gradient(135deg, #5a35e8 0%, #8b73f5 40%, #d9cff9 75%, #a58cf7 100%);
}

.lp-app {
  display: grid;
  grid-template-columns: 110px 1fr;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 20px 50px rgba(40, 20, 120, 0.3);
  overflow: hidden;
  min-height: 300px;
  color: #0d1747;
}

.lp-app-side {
  background: #f7f8fc;
  padding: 16px 12px;
  display: grid;
  align-content: start;
  gap: 12px;
}

.lp-app-logo {
  display: flex;
  gap: 0;
  margin-bottom: 10px;
}

.lp-app-logo i {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #2ec4d6;
}

.lp-app-logo i + i {
  margin-left: -5px;
  background: #2845d6;
}

.lp-app-side .sk {
  background: #e3e6f2;
  height: 6px;
}

.lp-app-side .sk.active {
  background: #c9d4ff;
}

.lp-app-main {
  padding: 16px 18px;
}

.lp-app-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 14px;
}

.lp-app-head strong {
  display: block;
  font-size: 12px;
}

.lp-app-head .sk {
  margin-top: 6px;
  width: 120px;
  height: 5px;
  background: #e3e6f2;
}

.lp-app-btn {
  font-size: 9px;
  font-weight: 600;
  color: #fff;
  background: #2845d6;
  border-radius: 4px;
  padding: 4px 8px;
  white-space: nowrap;
}

.lp-app-row {
  display: grid;
  grid-template-columns: 2fr 1.5fr 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 7px 0;
  border-top: 1px solid #eef0f6;
}

.lp-app-row .sk {
  height: 5px;
  background: #e3e6f2;
}

.lp-app-status {
  font-size: 8px;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 4px;
  background: #e3f8ec;
  color: #1f9d5b;
  white-space: nowrap;
}

.lp-app-status.risk {
  background: #fdeceb;
  color: #dc2828;
}

.lp-doc-line {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 8px;
  border-radius: 6px;
}

.lp-doc-line .sk {
  flex: 1;
  height: 5px;
  background: #e3e6f2;
}

.lp-doc-line.flag {
  background: #fff1f0;
}

.lp-doc-line.flag .sk {
  background: #f6c3bf;
}

.lp-doc-line.ok {
  background: #effaf4;
}

.lp-doc-line.ok .sk {
  background: #bfe8d0;
}

@media (max-width: 900px) {
  .lp-risk-grid,
  .lp-split-inner,
  .lp-tool {
    grid-template-columns: 1fr;
  }
  .lp-split-inner {
    gap: 40px;
  }
  .lp-split-text {
    order: -1;
  }
}

@media (max-width: 560px) {
  .lp-mini-features {
    grid-template-columns: 1fr;
  }
  .lp-banner {
    flex-wrap: wrap;
  }
  .lp-shot {
    padding: 28px 14px;
  }
  .lp-app {
    grid-template-columns: 1fr;
  }
  .lp-app-side {
    display: none;
  }
}

/* Footer */

.footer {
  border-top: 1px solid var(--border);
  padding: 40px 24px;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  font-size: 14px;
  color: var(--ink-muted);
}

.footer-links {
  display: flex;
  gap: 20px;
}

/* Auth forms */

.auth-wrap {
  display: flex;
  justify-content: center;
  padding: 64px 24px;
  background: var(--hero-gradient);
  min-height: calc(100vh - 65px);
}

.auth-card {
  width: 100%;
  max-width: 420px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-soft);
  height: fit-content;
}

.auth-card h1 {
  font-size: 20px;
}

.auth-card .subtitle {
  font-size: 14px;
  color: var(--ink-muted);
  margin-top: 8px;
}

.field {
  margin-top: 16px;
}

.field label {
  display: block;
  font-size: 12px;
  font-weight: 500;
  color: var(--ink-muted);
  margin-bottom: 6px;
}

.field input,
.field select {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-family: inherit;
  color: var(--ink);
}

.field input:focus,
.field select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(20, 110, 232, 0.15);
}

.divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 24px 0;
  font-size: 12px;
  color: rgba(77, 84, 100, 0.7);
}

.divider::before,
.divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--border);
}

.alert {
  margin-top: 16px;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  font-size: 13px;
}

.alert-error {
  background: var(--danger-bg);
  color: var(--danger);
  border: 1px solid var(--danger-border);
}

.pill-danger {
  background: var(--danger-bg);
  color: var(--danger);
}

.alert-info {
  background: var(--bg-soft);
  color: var(--ink);
  border: 1px solid var(--border);
}

.foot-note {
  margin-top: 20px;
  text-align: center;
  font-size: 13px;
  color: var(--ink-muted);
}

.foot-note a {
  font-weight: 600;
  color: var(--accent);
}

/* Dashboard */

.dashboard {
  padding: 48px 24px;
  max-width: 900px;
  margin: 0 auto;
}

.dashboard h1 {
  font-size: 24px;
}

.dashboard-section {
  margin-top: 32px;
}

.dashboard-section h2 {
  font-size: 16px;
  margin-bottom: 16px;
}

table.members {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

table.members th,
table.members td {
  text-align: left;
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
}

.pill {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  background: var(--bg-soft);
  color: var(--accent);
}

.invite-form {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: flex-end;
}

.invite-form .field {
  margin-top: 0;
  flex: 1;
  min-width: 200px;
}

.invite-link-box {
  margin-top: 16px;
  padding: 12px 14px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 13px;
  word-break: break-all;
}

.qr-box {
  display: flex;
  justify-content: center;
  margin: 20px 0;
}

.qr-box img {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px;
}

.secret-code {
  font-family: ui-monospace, monospace;
  background: var(--bg-soft);
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  text-align: center;
  letter-spacing: 0.05em;
  font-size: 14px;
  word-break: break-all;
}

/* Home: platform tiles */

.home {
  padding: 40px 24px 24px;
  max-width: 1000px;
  margin: 0 auto;
}

.home h1 {
  font-size: 24px;
}

.tile-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-top: 24px;
}

.tile {
  display: block;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-soft);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.tile:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 32px rgba(26, 37, 81, 0.12);
}

.tile-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  background: var(--bg-soft);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
}

.tile-icon svg {
  width: 26px;
  height: 26px;
}

.tile h3 {
  font-size: 18px;
  margin-top: 18px;
}

.tile p {
  font-size: 13px;
  color: var(--ink-muted);
  margin-top: 8px;
}

.tile-soon {
  display: inline-block;
  margin-top: 12px;
  font-size: 11px;
  font-weight: 600;
  color: var(--ink-muted);
  background: var(--bg-soft);
  padding: 3px 10px;
  border-radius: 999px;
}

/* Home: news */

.news-section {
  margin-top: 40px;
}

.news-section h2 {
  font-size: 18px;
  margin-bottom: 16px;
}

.topic-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.topic-filter a {
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-muted);
  background: var(--bg-soft);
  border: 1px solid var(--border);
}

.topic-filter a.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.news-grid {
  display: grid;
  gap: 14px;
}

.news-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 18px 20px;
  background: var(--surface);
}

.news-card-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.news-topic-pill {
  font-size: 11px;
}

.news-date {
  font-size: 12px;
  color: var(--ink-muted);
}

.news-card h3 {
  font-size: 15px;
  margin-top: 6px;
}

.news-card p {
  font-size: 13px;
  color: var(--ink-muted);
  margin-top: 6px;
}

.news-empty {
  font-size: 13px;
  color: var(--ink-muted);
  border: 1px dashed var(--border);
  border-radius: var(--radius-md);
  padding: 20px;
  text-align: center;
}

/* App shell: sidebar layout for platform sections (Legal / HR) */

/* App shell: full-height dark sidebar, like the aline.co reference — a
   permanent vertical rail from the very top of the viewport, not a light
   column sitting under a separate top navbar (navbar/footer are disabled
   entirely for these pages, see app_shell.html). */

.app-shell {
  min-height: 100vh;
}

.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  width: 240px;
  height: 100vh;
  background: var(--ink-dark);
  color: rgba(255, 255, 255, 0.75);
  display: flex;
  flex-direction: column;
  padding: 18px 14px;
  overflow-y: auto;
  z-index: 40;
  transition: width 0.15s ease;
}

.sidebar-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 16px;
  padding: 0 6px;
}

.sidebar-brand {
  display: flex;
  align-items: center;
  overflow: hidden;
}

.sidebar-brand-logo {
  display: inline-block;
}

.sidebar-brand-icon {
  display: none;
}

.app-shell.sidebar-collapsed .sidebar-brand-logo {
  display: none;
}

.app-shell.sidebar-collapsed .sidebar-brand-icon {
  display: block;
}

#sidebar-toggle {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-sm);
  background: transparent;
  color: rgba(255, 255, 255, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

#sidebar-toggle:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

#sidebar-toggle svg {
  width: 15px;
  height: 15px;
}

.sidebar-locale-switch {
  display: flex;
  gap: 4px;
  padding: 0 6px;
  margin-bottom: 16px;
}

.sidebar-locale-switch a {
  flex: 1;
  text-align: center;
  padding: 5px 0;
  border-radius: var(--radius-sm);
  font-size: 11px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.55);
  background: rgba(255, 255, 255, 0.06);
}

.sidebar-locale-switch a.active {
  background: var(--accent);
  color: #fff;
}

.sidebar-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.12);
  margin: 14px 6px;
}

.sidebar-sub-title {
  font-family: var(--font);
  font-weight: 600;
  color: rgba(255, 255, 255, 0.4);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 8px;
  padding: 0 10px;
  white-space: nowrap;
  overflow: hidden;
}

.sidebar-nav a, .sidebar-item, .sidebar-support-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 2px;
  white-space: nowrap;
}

.sidebar-support-link {
  width: 100%;
  border: none;
  background: none;
  cursor: pointer;
  font-family: inherit;
  text-align: left;
}

.sidebar-support-link:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.sidebar-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.55);
}

.sidebar-icon svg {
  width: 18px;
  height: 18px;
}

.sidebar-label {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sidebar-nav a:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.sidebar-nav a.active {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  font-weight: 600;
}

.sidebar-nav a.active .sidebar-icon {
  color: #5ea0ff;
}

.badge-soon {
  font-size: 10px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.08);
  padding: 2px 7px;
  border-radius: 999px;
  flex-shrink: 0;
}

.sidebar-spacer {
  flex: 1;
}

.sidebar-user {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  margin-bottom: 4px;
}

.sidebar-avatar {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.sidebar-user-email {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.6);
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Collapsed sidebar: icons only */

.app-shell.sidebar-collapsed .sidebar {
  width: 64px;
}

.app-shell.sidebar-collapsed .sidebar-sub-title,
.app-shell.sidebar-collapsed .sidebar-label,
.app-shell.sidebar-collapsed .badge-soon,
.app-shell.sidebar-collapsed .sidebar-locale-switch,
.app-shell.sidebar-collapsed .sidebar-user-email {
  display: none;
}

.app-shell.sidebar-collapsed .sidebar-top {
  flex-direction: column;
  gap: 12px;
}

.app-shell.sidebar-collapsed .sidebar-nav a,
.app-shell.sidebar-collapsed .sidebar-item,
.app-shell.sidebar-collapsed .sidebar-support-link,
.app-shell.sidebar-collapsed .sidebar-user {
  justify-content: center;
}

.app-shell.sidebar-collapsed .app-main {
  margin-left: 64px;
}

.app-main {
  margin-left: 240px;
  padding: 32px 24px;
  min-height: 100vh;
  transition: margin-left 0.15s ease;
}

.app-main h1 {
  font-size: 22px;
}

@media (max-width: 760px) {
  .sidebar {
    width: 64px;
  }
  .sidebar-brand-logo,
  .sidebar-sub-title,
  .sidebar-label,
  .badge-soon,
  .sidebar-locale-switch,
  .sidebar-user-email {
    display: none;
  }
  .sidebar-brand-icon {
    display: inline-block;
  }
  .sidebar-top {
    flex-direction: column;
    gap: 12px;
  }
  .sidebar-nav a, .sidebar-item, .sidebar-support-link, .sidebar-user {
    justify-content: center;
  }
  .app-main {
    margin-left: 64px;
  }
}

/* Support widget */

#support-widget {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 100;
}

#support-toggle {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: none;
  background: var(--accent);
  color: #fff;
  box-shadow: 0 10px 24px rgba(20, 110, 232, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.15s ease;
}

#support-toggle:hover {
  transform: scale(1.05);
}

#support-toggle svg {
  width: 26px;
  height: 26px;
}

#support-panel {
  position: absolute;
  bottom: 68px;
  right: 0;
  width: 300px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}

#support-panel-header {
  background: var(--ink-dark);
  color: #fff;
  font-weight: 600;
  font-size: 14px;
  padding: 16px 18px;
}

#support-panel-body {
  padding: 16px 18px;
}

#support-intro {
  font-size: 12px;
  color: var(--ink-muted);
  margin: 0 0 10px;
}

#support-message, #support-email {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  font-size: 13px;
  font-family: inherit;
  margin-bottom: 10px;
  resize: vertical;
}

#support-message:focus, #support-email:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(20, 110, 232, 0.15);
}

#support-status {
  margin: 10px 0 0;
  font-size: 12px;
  color: var(--ink-muted);
  text-align: center;
}

@media (max-width: 480px) {
  #support-panel {
    width: calc(100vw - 40px);
  }
}

html[lang="hy"] .lp-h1 {
  font-size: clamp(32px, 4.2vw, 58px);
}

/* ── Landing: interactive blocks (ported from the reference widgets) ── */

.lp-hero {
  background-color: #fdfcff;
  background-image: url("../img/landing/hero-ribbon.23f011109f62.webp");
  background-repeat: no-repeat;
  background-position: left top;
  background-size: 1920px auto;
}

:root[data-theme="dark"] .lp-hero {
  background-color: var(--bg);
  background-image: radial-gradient(55% 45% at 100% 100%, rgba(76, 134, 247, 0.35) 0%, rgba(76, 134, 247, 0) 70%);
  background-size: auto;
}

:root[data-theme="dark"] .dp-box {
  background: rgba(255, 255, 255, 0.04);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.35);
}

:root[data-theme="dark"] .dp-status {
  background: rgba(255, 255, 255, 0.08);
}

.lp-eyebrow img {
  width: 24px;
  height: 28px;
}

/* Hero demo: alternates Contract Analysis / Hiring Pack */
.dp {
  position: relative;
  width: 100%;
  max-width: 600px;
  margin: 64px auto 0;
}

.dp-box {
  position: relative;
  height: 380px;
  overflow: hidden;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.1);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
  backdrop-filter: blur(40px);
  -webkit-backdrop-filter: blur(40px);
}

.dp-status {
  position: absolute;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  padding: 10px 24px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.2);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  color: #1a1a1a;
  font-size: 1.12rem;
  font-weight: 700;
  white-space: nowrap;
  transition: opacity 0.5s ease;
}

:root[data-theme="dark"] .dp-status {
  color: var(--ink);
}

.dp-doc {
  position: absolute;
  z-index: 2;
  width: 220px;
  height: 280px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  opacity: 0;
  transition: all 0.8s ease;
}

.dp-doc-contract {
  top: -120px;
  left: 50%;
  transform: translateX(-50%);
}

.dp-doc-hiring {
  top: 52%;
  left: -140px;
  transform: translateY(-50%);
}

.dp-doc-inner {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: 2.9rem;
  line-height: 1;
}

.dp-doc-inner img {
  width: 80px;
  height: 80px;
}

.dp-lines {
  width: 80%;
  margin-top: 18px;
}

.dp-doc-hiring .dp-lines {
  width: 72%;
  margin-top: 14px;
}

.dp-lines i {
  display: block;
  height: 4px;
  margin: 12px 0;
  border-radius: 2px;
  background: #2845d6;
  opacity: 0.22;
}

.dp-doc-hiring .dp-lines i {
  background: #8762cc;
  opacity: 0.28;
}

.dp-scan {
  position: absolute;
  left: 0;
  z-index: 1;
  width: 100%;
  height: 6px;
  opacity: 0;
  transition: all 0.5s ease;
}

.dp-scan-contract {
  top: 0;
  background: linear-gradient(90deg, transparent, #2845d6, #2845d6, transparent);
  box-shadow: 0 0 28px rgba(40, 69, 214, 0.6);
}

.dp-scan-hiring {
  top: 52%;
  transform: translateY(-50%);
  background: linear-gradient(90deg, transparent, #8762cc, #8762cc, transparent);
  box-shadow: 0 0 28px rgba(135, 98, 204, 0.6);
}

.dp-marks {
  position: absolute;
  bottom: 34px;
  left: 50%;
  z-index: 2;
  display: flex;
  gap: 16px;
  opacity: 0;
  transform: translateX(-50%) scale(0);
  transition: all 0.5s ease;
}

.dp-marks span {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.45rem;
  font-weight: 900;
  background: #2845d6;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.16);
}

.dp-marks-hiring span {
  background: #8762cc;
}

/* Tool cards: client's orb artwork + diagonal background */
.lp-tool-art {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 200px;
  background: url("../img/landing/tool-card-bg.2ba03ede3a8a.webp") no-repeat center / cover;
}

.lp-tool-art img {
  width: 150px;
  height: 150px;
}

/* How it works: auto-advancing 3-stage workflows (click a step to take over) */
.lp-how .lp-tabs {
  margin-bottom: 0;
}

.wf {
  max-width: 1100px;
  margin: 16px auto 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Noto Sans Armenian", sans-serif;
}

.wf-box {
  position: relative;
  min-height: 600px;
  overflow: hidden;
  padding: 40px 0;
  border-radius: 28px;
  background: linear-gradient(145deg, #f8fafc, #ffffff);
  box-shadow: inset 0 6px 24px rgba(0, 0, 0, 0.03), 0 15px 60px rgba(0, 0, 0, 0.08);
}

.wf-progress {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  width: 100%;
  max-width: 700px;
  margin: 0 auto 60px;
  padding: 0 16px;
}

.wf-step {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 140px;
}

.wf-circle {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  border: 3px solid transparent;
  background: #f1f5f9;
  color: #64748b;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  font-weight: 700;
  cursor: pointer;
  user-select: none;
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.wf-circle:hover {
  transform: scale(1.08);
}

.wf-circle.active {
  background: linear-gradient(135deg, #3b82f6, #6366f1);
  color: #fff;
  border-color: #fff;
  box-shadow: 0 15px 40px rgba(59, 130, 246, 0.4);
  transform: scale(1.05);
  animation: wfPulseGlow 2s ease-in-out infinite;
}

.wf-circle.completed {
  background: linear-gradient(135deg, #10b981, #34d399);
  color: #fff;
  box-shadow: 0 10px 30px rgba(16, 185, 129, 0.3);
}

.wf-line {
  position: absolute;
  z-index: 1;
  top: 35px;
  height: 4px;
  background: #e2e8f0;
  background-size: 200% 100%;
}

.wf-line-1 {
  left: calc(16px + 105px);
  right: calc(50% + 35px);
}

.wf-line-2 {
  left: calc(50% + 35px);
  right: calc(16px + 105px);
}

.wf-line.active {
  background-image: linear-gradient(90deg, #3b82f6, #6366f1, #3b82f6);
  animation: wfLineFlow 2s ease-in-out infinite;
}

.wf-title {
  margin-top: 15px;
  max-width: 140px;
  color: #475569;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.3;
  text-align: center;
  opacity: 0.6;
  transition: all 0.5s ease;
}

.wf-title.active {
  color: #1e40af;
  font-weight: 700;
  opacity: 1;
  transform: translateY(-2px);
}

.wf-stages {
  position: relative;
  width: 100%;
  min-height: 540px;
  overflow: hidden;
}

.wf-stage {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  padding: 20px;
  opacity: 0;
  transform: translateY(30px);
  pointer-events: none;
  transition: all 1s cubic-bezier(0.4, 0, 0.2, 1);
}

.wf-stage[data-stage="1"] {
  min-height: 340px;
}

.wf-stage.active {
  opacity: 1;
  transform: translateY(0);
  pointer-events: all;
}

.wf-upload {
  position: relative;
  width: 100%;
  max-width: 700px;
  height: 300px;
  margin: 0 auto;
  border: 4px dashed #cbd5e1;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.7);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: all 0.5s ease;
}

.wf-upload:hover {
  border-color: #3b82f6;
  background: rgba(59, 130, 246, 0.02);
}

.wf-upload-icon {
  margin-bottom: 25px;
  font-size: 4.5rem;
  line-height: 1;
  animation: wfFloat 4s ease-in-out infinite;
}

.wf-upload-title {
  margin-bottom: 12px;
  padding: 0 14px;
  color: #334155;
  font-size: 1.4rem;
  font-weight: 700;
  text-align: center;
}

.wf-upload-text {
  max-width: 520px;
  margin-bottom: 30px;
  padding: 0 16px;
  color: #64748b;
  font-size: 1rem;
  line-height: 1.6;
  text-align: center;
}

.wf-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  margin-bottom: 30px;
}

.wf-badges span {
  padding: 10px 20px;
  border: 2px solid #e2e8f0;
  border-radius: 25px;
  background: #fff;
  color: #475569;
  font-size: 0.95rem;
  font-weight: 500;
  white-space: nowrap;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

.wf-badges span:hover {
  border-color: #3b82f6;
  transform: translateY(-2px);
}

.wf-bar {
  display: none;
  width: 420px;
  max-width: 80%;
  height: 8px;
  overflow: hidden;
  position: relative;
  border-radius: 4px;
  background: #e2e8f0;
}

.wf-bar i {
  position: absolute;
  inset: 0 auto 0 0;
  width: 0;
  border-radius: 4px;
  background: linear-gradient(90deg, #3b82f6, #6366f1);
  transition: width 3s ease;
}

.wf-files {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  gap: 40px;
  opacity: 0;
}

.wf-file {
  width: 160px;
  height: 220px;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.wf-file-icon {
  margin-bottom: 20px;
  font-size: 3rem;
  line-height: 1;
}

.wf-file-name {
  padding: 0 15px;
  color: #334155;
  font-size: 0.9rem;
  font-weight: 500;
  text-align: center;
  word-break: break-word;
}

.wf-analysis {
  position: relative;
  width: 100%;
  max-width: 800px;
  height: 420px;
  margin: 0 auto;
}

.wf-core {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 10;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3.5rem;
  color: #fff;
  background: linear-gradient(135deg, #8b5cf6, #a78bfa);
  box-shadow: 0 25px 80px rgba(139, 92, 246, 0.5);
  transform: translate(-50%, -50%);
  animation: wfCorePulse 3s ease-in-out infinite;
}

.wf-flow {
  position: absolute;
  inset: 0;
}

.wf-dot {
  position: absolute;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: linear-gradient(135deg, #6366f1, #3b82f6);
  box-shadow: 0 0 25px rgba(99, 102, 241, 0.8);
  animation: wfDataFlow 4s linear infinite;
}

.wf-grid {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
  width: 600px;
  max-width: 100%;
  opacity: 0;
}

.wf-card {
  padding: 25px;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.wf-card-head {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 15px;
  color: #1e293b;
  font-size: 1.1rem;
  font-weight: 700;
}

.wf-card-icon {
  flex-shrink: 0;
  width: 50px;
  height: 50px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.2rem;
  background: rgba(59, 130, 246, 0.1);
}

.wf-stats {
  display: flex;
  gap: 15px;
}

.wf-stats b {
  display: block;
  color: #1e40af;
  font-size: 1.3rem;
  font-weight: 800;
}

.wf-stats span {
  display: block;
  color: #64748b;
  font-size: 0.85rem;
}

.wf-report {
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  overflow: hidden;
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.15);
}

.wf-report-head {
  padding: 24px 32px;
  color: #fff;
  background: linear-gradient(135deg, #1e293b, #334155);
}

.wf-report-title {
  margin-bottom: 5px;
  font-size: 1.5rem;
  font-weight: 800;
}

.wf-report-sub {
  font-size: 0.95rem;
  opacity: 0.8;
}

.wf-report-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  padding: 26px 32px 30px;
}

.wf-col {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.wf-col-title {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #1e293b;
  font-size: 1.1rem;
  font-weight: 700;
}

.wf-col-title::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--wf-dot, #10b981);
}

.wf-item {
  padding: 14px 18px;
  border-radius: 16px;
  border-left: 4px solid var(--wf-item, #10b981);
  background: #f8fafc;
  opacity: 0;
  transform: translateX(-20px);
  transition: all 0.5s ease;
}

.wf-item.medium {
  border-left-color: var(--wf-item-medium, #3b82f6);
}

.wf-item-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  color: #1e293b;
  font-size: 1rem;
  font-weight: 600;
}

.wf-item-head b {
  color: var(--wf-score, #10b981);
  font-size: 1.3rem;
  font-weight: 800;
}

.wf-item-desc {
  margin-bottom: 10px;
  color: #64748b;
  font-size: 0.9rem;
  line-height: 1.5;
}

.wf-tag {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--wf-tag, #059669);
  background: var(--wf-tag-bg, rgba(16, 185, 129, 0.12));
}

.wf-rec {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 11px 14px;
  border-radius: 12px;
  border-left: 4px solid #3b82f6;
  background: #f0f9ff;
  color: #475569;
  font-size: 0.95rem;
  line-height: 1.5;
  opacity: 0;
  transform: translateX(20px);
  transition: all 0.5s ease;
}

.wf-rec::before {
  content: "✓";
  flex-shrink: 0;
  color: #3b82f6;
  font-size: 1.3rem;
  line-height: 1.1;
}

.wf-contract {
  --wf-dot: #ef4444;
  --wf-item: #ef4444;
  --wf-item-medium: #f59e0b;
  --wf-score: #ef4444;
  --wf-tag: #dc2626;
  --wf-tag-bg: rgba(239, 68, 68, 0.1);
}

.wf-desc {
  width: 100%;
  max-width: 700px;
  margin: 40px auto 0;
  padding: 25px;
  border-radius: 20px;
  text-align: center;
  background: rgba(255, 255, 255, 0.8);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
}

.wf-desc-title {
  margin-bottom: 10px;
  color: #1e40af;
  font-size: 1.2rem;
  font-weight: 800;
}

.wf-desc-text {
  color: #475569;
  font-size: 1.05rem;
  line-height: 1.6;
}

@keyframes wfFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-15px); }
}

@keyframes wfPulseGlow {
  0%, 100% { box-shadow: 0 15px 40px rgba(59, 130, 246, 0.4); }
  50% { box-shadow: 0 20px 50px rgba(59, 130, 246, 0.6); }
}

@keyframes wfLineFlow {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

@keyframes wfCorePulse {
  0%, 100% { transform: translate(-50%, -50%) scale(1); box-shadow: 0 25px 80px rgba(139, 92, 246, 0.5); }
  50% { transform: translate(-50%, -50%) scale(1.05); box-shadow: 0 30px 90px rgba(139, 92, 246, 0.6); }
}

@keyframes wfDataFlow {
  0% { transform: translate(0, 0) scale(0.5); opacity: 0; }
  20% { opacity: 1; }
  80% { opacity: 1; }
  100% { transform: translate(var(--tx), var(--ty)) scale(1.2); opacity: 0; }
}

@media (max-width: 900px) {
  .wf-box {
    min-height: 0;
    padding: 24px 0;
  }
  .wf-circle {
    width: 44px;
    height: 44px;
    font-size: 1rem;
  }
  .wf-line {
    top: 22px;
  }
  .wf-line-1 {
    left: calc(16px + 92px);
    right: calc(50% + 22px);
  }
  .wf-line-2 {
    left: calc(50% + 22px);
    right: calc(16px + 92px);
  }
  .wf-step {
    width: 120px;
  }
  .wf-title {
    font-size: 0.8rem;
  }
  .wf-progress {
    margin-bottom: 24px;
  }
  .wf-stages {
    min-height: 740px;
  }
  .wf-files {
    flex-direction: column;
    gap: 12px;
  }
  .wf-file {
    width: 220px;
    height: 70px;
    flex-direction: row;
    gap: 12px;
  }
  .wf-file-icon {
    margin: 0;
    font-size: 1.8rem;
  }
  .wf-analysis {
    height: 680px;
  }
  .wf-core {
    top: 48px;
    width: 90px;
    height: 90px;
    font-size: 2.6rem;
  }
  .wf-grid {
    grid-template-columns: 1fr;
    gap: 12px;
    bottom: 0;
  }
  .wf-card {
    padding: 16px;
  }
  .wf-report-body {
    grid-template-columns: 1fr;
    padding: 20px;
  }
  .wf-report-head {
    padding: 20px;
  }
  .wf-upload {
    height: 360px;
  }
  .wf-badges {
    gap: 8px;
  }
  .wf-badges span {
    padding: 6px 12px;
    font-size: 0.8rem;
  }
  .dp-doc {
    width: 170px;
    height: 220px;
  }
  .dp-box {
    height: 320px;
  }
  .dp-marks span {
    width: 44px;
    height: 44px;
    font-size: 1.25rem;
  }
}

/* FAQ */
.lp-faq {
  padding: 120px 0;
}

.lp-faq-inner {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 56px;
  max-width: 1040px;
  margin: 0 auto;
}

.lp-faq-side {
  display: flex;
  flex-direction: column;
}

.lp-faq-side .lp-h2 {
  text-align: left;
  margin: 0;
  max-width: 480px;
}

.lp-faq-side > p {
  max-width: 400px;
  margin: 18px 0 0;
  color: var(--ink-muted);
  font-size: 16px;
}

.lp-faq-still {
  margin-top: auto;
  padding-top: 40px;
  color: var(--ink-muted);
  font-size: 16px;
}

.lp-faq-list {
  display: grid;
  gap: 16px;
  align-content: start;
}

.lp-faq-item {
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
}

.lp-faq-item summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 16px;
  cursor: pointer;
  color: var(--ink);
  font-size: 17px;
  font-weight: 600;
}

.lp-faq-item summary::-webkit-details-marker {
  display: none;
}

.lp-faq-item summary svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  color: var(--ink-muted);
  transition: transform 0.25s ease;
}

.lp-faq-item[open] summary svg {
  transform: rotate(180deg);
}

.lp-faq-item p {
  margin: -6px 0 0;
  padding: 0 16px 18px;
  color: var(--ink-muted);
  font-size: 16px;
  line-height: 1.55;
}

/* CTA band + landing footer */
.lp-cta {
  position: relative;
  overflow: hidden;
  background: #2845d6 url("../img/landing/cta-circles.d4aa3d612e43.webp") no-repeat left 150px / 1440px auto;
  color: #fff;
  padding: 120px 0 0;
  text-align: center;
}

.lp-cta .lp-h2 {
  color: #fff;
  max-width: 620px;
}

.lp-cta > .lp-container > p {
  max-width: 520px;
  margin: 18px auto 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 17px;
}

.lp-cta .lp-actions .btn-light {
  background: #fff;
  color: var(--accent-dark);
}

.lp-cta .lp-actions .btn-primary {
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.18);
}

.lp-footer {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
  gap: 32px;
  max-width: 1000px;
  margin: 110px auto 0;
  padding: 0 24px 110px;
  text-align: left;
  font-size: 15px;
}

.lp-footer-brand ls-logo {
  display: inline-block;
}

.lp-footer-brand p {
  margin: 14px 0 0;
  color: rgba(255, 255, 255, 0.6);
  font-size: 13px;
}

.lp-footer nav {
  display: grid;
  gap: 14px;
  align-content: start;
}

.lp-footer a,
.lp-footer button {
  color: #fff;
  opacity: 0.92;
}

.lp-footer button {
  border: 0;
  padding: 0;
  background: none;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.lp-footer a:hover,
.lp-footer button:hover {
  opacity: 1;
  text-decoration: underline;
}

@media (max-width: 900px) {
  .lp-faq-inner,
  .lp-footer {
    grid-template-columns: 1fr;
  }
  .lp-faq-still {
    padding-top: 20px;
  }
}

:root[data-theme="dark"] .wf-box {
  background: linear-gradient(145deg, #141b44, #10173a);
  box-shadow: 0 15px 60px rgba(0, 0, 0, 0.45);
}

:root[data-theme="dark"] .wf-circle:not(.active):not(.completed) {
  background: #1d2657;
  color: #9aa1bc;
}

:root[data-theme="dark"] .wf-line:not(.active) {
  background: #252f5e;
}

:root[data-theme="dark"] .wf-title {
  color: #c3c8dc;
}

:root[data-theme="dark"] .wf-title.active,
:root[data-theme="dark"] .wf-desc-title {
  color: #8fa8ff;
}

:root[data-theme="dark"] .wf-upload {
  background: rgba(255, 255, 255, 0.03);
  border-color: #2b3766;
}

:root[data-theme="dark"] .wf-upload-title,
:root[data-theme="dark"] .wf-card-head,
:root[data-theme="dark"] .wf-col-title,
:root[data-theme="dark"] .wf-item-head,
:root[data-theme="dark"] .wf-file-name {
  color: #f2f4ff;
}

:root[data-theme="dark"] .wf-upload-text,
:root[data-theme="dark"] .wf-stats span,
:root[data-theme="dark"] .wf-item-desc,
:root[data-theme="dark"] .wf-desc-text,
:root[data-theme="dark"] .wf-rec {
  color: #b7bdd4;
}

:root[data-theme="dark"] .wf-badges span,
:root[data-theme="dark"] .wf-file,
:root[data-theme="dark"] .wf-card,
:root[data-theme="dark"] .wf-report,
:root[data-theme="dark"] .wf-desc {
  background: #131a3f;
  border-color: #2b3766;
  color: #c3c8dc;
}

:root[data-theme="dark"] .wf-stats b {
  color: #8fa8ff;
}

:root[data-theme="dark"] .wf-item {
  background: #182052;
}

:root[data-theme="dark"] .wf-rec {
  background: rgba(59, 130, 246, 0.12);
}
