/* Adlega landing v2 (2026-07) - used by index.html only.
   Legal pages keep the legacy styles.css. */

/* ---------- fonts ---------- */
@font-face {
  font-family: "DM Sans";
  src: url("/fonts/DMSans-var.woff2") format("woff2");
  font-weight: 100 1000;
  font-display: swap;
}
@font-face {
  font-family: "DM Mono";
  src: url("/fonts/DMMono-Regular.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "DM Mono";
  src: url("/fonts/DMMono-Medium.woff2") format("woff2");
  font-weight: 500;
  font-display: swap;
}

/* ---------- tokens / reset ---------- */
:root {
  --ink: #0a0e23;
  --ink-soft: #494f6e;
  --indigo: #4a54f5;
  --indigo-deep: #3239d8;
  --indigo-ghost: #eceefe;
  --mist: #f4f5fb;
  --paper: #ffffff;
  --line: #e4e7f2;
  --line-dark: #262b4a;
  --green: #0e9f6e;
  --sans: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "DM Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --radius: 16px;
  --shadow: 0 24px 60px -24px rgba(10, 14, 35, 0.18);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
}
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img,
svg,
video {
  max-width: 100%;
  height: auto;
  display: block;
}
a {
  color: var(--indigo);
  text-decoration: none;
}
h1,
h2,
h3,
p,
ul,
figure {
  margin: 0;
}
button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 0;
}
:focus-visible {
  outline: 2px solid var(--indigo);
  outline-offset: 3px;
  border-radius: 4px;
}

.ld-container {
  max-width: 1160px;
  margin-inline: auto;
  padding-inline: 24px;
}

/* mono data voice */
.ld-eyebrow {
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--indigo);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.ld-eyebrow::before {
  content: "";
  width: 22px;
  height: 1px;
  background: var(--indigo);
}

.ld-h2 {
  font-size: clamp(1.8rem, 3.6vw, 2.6rem);
  line-height: 1.14;
  font-weight: 700;
  letter-spacing: -0.025em;
  max-width: 700px;
  margin-top: 14px;
}
.ld-lead {
  color: var(--ink-soft);
  max-width: 620px;
  margin-top: 16px;
  font-size: 1.06rem;
}
.ld-section {
  padding: 96px 0;
}
.ld-section--tint {
  background: var(--mist);
}

/* ---------- buttons ---------- */
.ld-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 600;
  font-size: 0.98rem;
  line-height: 1;
  padding: 15px 26px;
  border-radius: 12px;
  transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
  white-space: nowrap;
}
.ld-btn--primary {
  background: var(--indigo);
  color: #fff;
}
.ld-btn--primary:hover {
  background: var(--indigo-deep);
  transform: translateY(-1px);
}
.ld-btn--ghost {
  border: 1px solid var(--line);
  color: var(--ink);
  background: var(--paper);
}
.ld-btn--ghost:hover {
  border-color: var(--indigo);
  color: var(--indigo);
}
.ld-btn--inverse {
  background: #fff;
  color: var(--ink);
}
.ld-btn--inverse:hover {
  background: var(--indigo-ghost);
  transform: translateY(-1px);
}
.ld-note {
  font-family: var(--mono);
  font-size: 0.8rem;
  color: var(--ink-soft);
}

/* ---------- header ---------- */
.ld-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
}
.ld-header.is-scrolled {
  border-bottom-color: var(--line);
}
.ld-header__inner {
  display: flex;
  align-items: center;
  gap: 28px;
  min-height: 66px;
}
.ld-logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}
.ld-logo img {
  height: 30px;
  width: auto;
}
.ld-nav {
  display: flex;
  align-items: center;
  gap: 26px;
  margin-left: 8px;
}
.ld-nav a {
  color: var(--ink);
  font-weight: 500;
  font-size: 0.95rem;
}
.ld-nav a:hover {
  color: var(--indigo);
}
.ld-header__actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 10px;
}
.ld-header__actions .ld-btn {
  padding: 11px 20px;
}
.ld-signin {
  color: var(--ink);
  font-weight: 500;
  font-size: 0.95rem;
  padding: 10px 12px;
}
.ld-signin:hover {
  color: var(--indigo);
}
.ld-burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 10px;
  margin-left: 4px;
}
.ld-burger span {
  width: 22px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.ld-burger[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.ld-burger[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}
.ld-burger[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ---------- hero ---------- */
.ld-hero {
  padding: 72px 0 84px;
  position: relative;
}
.ld-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(720px 380px at 82% -10%, rgba(74, 84, 245, 0.09), transparent 68%),
    radial-gradient(520px 320px at -8% 32%, rgba(74, 84, 245, 0.05), transparent 66%);
  pointer-events: none;
}
.ld-hero__inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.02fr 0.98fr;
  gap: 56px;
  align-items: center;
}
.ld-hero__copy > * {
  min-width: 0;
}
.ld-h1 {
  font-size: clamp(2.45rem, 5.4vw, 3.9rem);
  line-height: 1.05;
  font-weight: 720;
  font-variation-settings: "opsz" 40;
  letter-spacing: -0.032em;
  margin-top: 18px;
  max-width: 620px;
}
.ld-h1 em {
  font-style: normal;
  color: var(--indigo);
}
.ld-hero__text {
  margin-top: 22px;
  font-size: 1.13rem;
  color: var(--ink-soft);
  max-width: 540px;
}
.ld-hero__cta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 32px;
}
.ld-hero__trust {
  margin-top: 18px;
}

/* ---------- live model widget (signature) ---------- */
.ld-model {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: var(--shadow);
  padding: 22px 22px 18px;
  min-width: 0;
}
.ld-model__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}
.ld-model__title {
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.ld-model__live {
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--green);
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.ld-model__live::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  animation: ld-pulse 2.2s ease-in-out infinite;
}
@keyframes ld-pulse {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(14, 159, 110, 0.35);
  }
  50% {
    box-shadow: 0 0 0 5px rgba(14, 159, 110, 0);
  }
}
.ld-model__drivers {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  padding: 16px 0 6px;
}
.ld-driver {
  min-width: 0;
}
.ld-driver__label {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
  font-size: 0.78rem;
  color: var(--ink-soft);
  margin-bottom: 7px;
}
.ld-driver__value {
  font-family: var(--mono);
  font-weight: 500;
  font-size: 0.84rem;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.ld-driver input[type="range"] {
  width: 100%;
  height: 22px;
  margin: 0;
  appearance: none;
  -webkit-appearance: none;
  background: transparent;
  cursor: pointer;
}
.ld-driver input[type="range"]::-webkit-slider-runnable-track {
  height: 4px;
  border-radius: 4px;
  background: linear-gradient(to right, var(--indigo) var(--fill, 50%), var(--line) var(--fill, 50%));
}
.ld-driver input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 16px;
  height: 16px;
  margin-top: -6px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid var(--indigo);
  box-shadow: 0 1px 4px rgba(10, 14, 35, 0.2);
}
.ld-driver input[type="range"]::-moz-range-track {
  height: 4px;
  border-radius: 4px;
  background: var(--line);
}
.ld-driver input[type="range"]::-moz-range-progress {
  height: 4px;
  border-radius: 4px;
  background: var(--indigo);
}
.ld-driver input[type="range"]::-moz-range-thumb {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid var(--indigo);
}
.ld-model__chart {
  margin-top: 4px;
}
.ld-model__chart svg {
  width: 100%;
  height: auto;
}
.ld-chart-axis,
.ld-chart-end {
  font-family: var(--mono);
  font-size: 11px;
  fill: var(--ink-soft);
}
.ld-chart-end {
  font-weight: 500;
  fill: var(--indigo);
}
.ld-model__kpis {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  margin-top: 16px;
}
.ld-kpi {
  background: var(--paper);
  padding: 12px 12px 10px;
  min-width: 0;
}
.ld-kpi__label {
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-soft);
  white-space: nowrap;
}
.ld-kpi__value {
  font-family: var(--mono);
  font-weight: 500;
  font-size: 1.02rem;
  margin-top: 4px;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.ld-kpi__value.is-flash {
  animation: ld-flash 0.5s ease;
}
@keyframes ld-flash {
  0% {
    color: var(--indigo);
    background: var(--indigo-ghost);
  }
  100% {
    color: var(--ink);
    background: transparent;
  }
}
.ld-model__foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 14px;
}
.ld-model__foot a {
  font-weight: 600;
  font-size: 0.85rem;
  white-space: nowrap;
}

/* ---------- fact strip ---------- */
.ld-facts {
  border-block: 1px solid var(--line);
  background: var(--paper);
}
.ld-facts__inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.ld-fact {
  padding: 22px 18px;
  text-align: center;
  border-left: 1px solid var(--line);
  min-width: 0;
}
.ld-fact:first-child {
  border-left: 0;
}
.ld-fact__num {
  font-family: var(--mono);
  font-weight: 500;
  font-size: 1.35rem;
  color: var(--ink);
}
.ld-fact__num span {
  color: var(--indigo);
}
.ld-fact__label {
  font-size: 0.83rem;
  color: var(--ink-soft);
  margin-top: 2px;
}

/* ---------- features ---------- */
.ld-features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-top: 48px;
}
.ld-feature {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 24px 24px;
  min-width: 0;
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}
.ld-feature:hover {
  border-color: rgba(74, 84, 245, 0.45);
  transform: translateY(-3px);
  box-shadow: 0 16px 40px -24px rgba(10, 14, 35, 0.25);
}
.ld-feature__icon {
  width: 42px;
  height: 42px;
  border-radius: 11px;
  background: var(--indigo-ghost);
  color: var(--indigo);
  display: grid;
  place-items: center;
  margin-bottom: 18px;
}
.ld-feature h3 {
  font-size: 1.12rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.ld-feature p {
  color: var(--ink-soft);
  font-size: 0.95rem;
  margin-top: 8px;
}

/* ---------- product tour ---------- */
.ld-tour__tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 40px;
}
.ld-tab {
  font-family: var(--mono);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  padding: 10px 16px;
  border: 1px solid var(--line);
  border-radius: 100px;
  color: var(--ink-soft);
  background: var(--paper);
  transition: all 0.16s ease;
}
.ld-tab:hover {
  border-color: var(--indigo);
  color: var(--indigo);
}
.ld-tab[aria-selected="true"] {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}
.ld-tour__panel {
  margin-top: 22px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: var(--shadow);
  padding: 18px;
}
.ld-tour__panel figure {
  display: none;
}
.ld-tour__panel figure.is-active {
  display: block;
}
.ld-tour__panel img {
  width: 100%;
  max-height: 620px;
  object-fit: contain;
  border-radius: 10px;
}
.ld-tour__more {
  margin-top: 22px;
  font-weight: 600;
}

/* ---------- AI CFO band ---------- */
.ld-ai {
  background: var(--ink);
  color: #fff;
  padding: 104px 0;
}
.ld-ai .ld-eyebrow {
  color: #9ba4ff;
}
.ld-ai .ld-eyebrow::before {
  background: #9ba4ff;
}
.ld-ai__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.ld-ai .ld-h2 {
  color: #fff;
}
.ld-ai__points {
  list-style: none;
  padding: 0;
  margin-top: 28px;
  display: grid;
  gap: 18px;
}
.ld-ai__points li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  color: #c6cadf;
  font-size: 1rem;
}
.ld-ai__points li strong {
  color: #fff;
  display: block;
  font-size: 1.05rem;
}
.ld-ai__points svg {
  flex-shrink: 0;
  margin-top: 4px;
  color: #9ba4ff;
}
.ld-ai__cta {
  margin-top: 34px;
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.ld-ai .ld-note {
  color: #8189ad;
}

/* chat mock */
.ld-chat {
  background: #0f1430;
  border: 1px solid var(--line-dark);
  border-radius: 20px;
  padding: 24px;
  display: grid;
  gap: 16px;
  min-width: 0;
}
.ld-chat__bubble {
  border-radius: 14px;
  padding: 14px 18px;
  font-size: 0.95rem;
  line-height: 1.55;
  max-width: 92%;
}
.ld-chat__bubble--user {
  background: var(--indigo);
  color: #fff;
  justify-self: end;
  border-bottom-right-radius: 4px;
}
.ld-chat__bubble--ai {
  background: #181e42;
  color: #dde0f0;
  border: 1px solid var(--line-dark);
  border-bottom-left-radius: 4px;
}
.ld-chat__bubble--ai b {
  color: #fff;
}
.ld-chat__who {
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #8189ad;
  margin-bottom: 8px;
  display: block;
}
.ld-chat__trace {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}
.ld-chat__chip {
  font-family: var(--mono);
  font-size: 0.72rem;
  color: #9ba4ff;
  background: rgba(74, 84, 245, 0.14);
  border: 1px solid rgba(74, 84, 245, 0.35);
  border-radius: 100px;
  padding: 4px 11px;
  white-space: nowrap;
}

/* ---------- how it works ---------- */
.ld-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-top: 48px;
  counter-reset: step;
}
.ld-step {
  position: relative;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 24px;
  min-width: 0;
}
.ld-step__num {
  font-family: var(--mono);
  font-weight: 500;
  font-size: 0.8rem;
  color: var(--indigo);
}
.ld-step h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-top: 12px;
}
.ld-step p {
  color: var(--ink-soft);
  font-size: 0.95rem;
  margin-top: 8px;
}

/* ---------- stages ---------- */
.ld-stages {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-top: 48px;
}
.ld-stage {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 24px;
  min-width: 0;
}
.ld-stage__tag {
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--indigo);
  background: var(--indigo-ghost);
  border-radius: 100px;
  padding: 5px 12px;
  display: inline-block;
}
.ld-stage h3 {
  font-size: 1.12rem;
  font-weight: 700;
  margin-top: 16px;
}
.ld-stage p {
  color: var(--ink-soft);
  font-size: 0.95rem;
  margin-top: 8px;
}

/* ---------- pricing ---------- */
.ld-pricing__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.ld-switch {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.95rem;
  color: var(--ink-soft);
}
.ld-switch__save {
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--green);
  background: rgba(14, 159, 110, 0.1);
  padding: 4px 10px;
  border-radius: 100px;
  white-space: nowrap;
}
.ld-switch label {
  position: relative;
  display: inline-block;
  width: 46px;
  height: 26px;
  flex-shrink: 0;
}
.ld-switch input {
  opacity: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  position: absolute;
  inset: 0;
  cursor: pointer;
}
.ld-switch__slider {
  position: absolute;
  inset: 0;
  background: var(--indigo);
  border-radius: 100px;
  transition: background 0.2s ease;
  pointer-events: none;
}
.ld-switch__slider::before {
  content: "";
  position: absolute;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  top: 3px;
  left: 3px;
  transition: transform 0.2s ease;
  box-shadow: 0 1px 3px rgba(10, 14, 35, 0.3);
}
.ld-switch input:checked + .ld-switch__slider::before {
  transform: translateX(20px);
}
.ld-switch input:focus-visible + .ld-switch__slider {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
}
.ld-switch__opt.is-on {
  color: var(--ink);
  font-weight: 600;
}
.ld-plans {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-top: 44px;
  align-items: stretch;
}
.ld-plan {
  position: relative;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 30px 28px;
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.ld-plan--featured {
  border-color: var(--indigo);
  box-shadow: 0 24px 60px -30px rgba(74, 84, 245, 0.45);
}
.ld-plan__badge {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--indigo);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 5px 14px;
  border-radius: 100px;
  white-space: nowrap;
}
.ld-plan__beta {
  font-family: var(--mono);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--green);
  background: rgba(14, 159, 110, 0.1);
  border-radius: 100px;
  padding: 5px 12px;
  align-self: flex-start;
}
.ld-plan h3 {
  font-size: 1.3rem;
  font-weight: 700;
  margin-top: 16px;
}
.ld-plan__for {
  color: var(--ink-soft);
  font-size: 0.9rem;
  margin-top: 6px;
  min-height: 44px;
}
.ld-plan__price {
  margin-top: 20px;
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
}
.ld-plan__amount {
  font-family: var(--mono);
  font-weight: 500;
  font-size: 2.5rem;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}
.ld-plan__term {
  color: var(--ink-soft);
  font-size: 0.9rem;
}
.ld-plan__after {
  font-size: 0.82rem;
  color: var(--ink-soft);
  margin-top: 4px;
}
.ld-plan__free {
  font-weight: 600;
  color: var(--ink);
  margin-top: 14px;
  font-size: 0.95rem;
}
.ld-plan .ld-btn {
  margin-top: 20px;
  width: 100%;
}
.ld-plan__list {
  list-style: none;
  padding: 0;
  margin-top: 22px;
  border-top: 1px solid var(--line);
  padding-top: 18px;
  display: grid;
  gap: 10px;
}
.ld-plan__list li {
  display: flex;
  gap: 10px;
  font-size: 0.9rem;
  color: var(--ink-soft);
  align-items: flex-start;
}
.ld-plan__list svg {
  flex-shrink: 0;
  color: var(--indigo);
  margin-top: 4px;
}

/* ---------- FAQ ---------- */
.ld-faq {
  max-width: 780px;
  margin: 44px auto 0;
}
.ld-faq details {
  border-bottom: 1px solid var(--line);
}
.ld-faq details:first-child {
  border-top: 1px solid var(--line);
}
.ld-faq summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  padding: 20px 4px;
  font-weight: 600;
  font-size: 1.05rem;
}
.ld-faq summary::-webkit-details-marker {
  display: none;
}
.ld-faq summary::after {
  content: "+";
  font-family: var(--mono);
  font-size: 1.3rem;
  color: var(--indigo);
  flex-shrink: 0;
  transition: transform 0.2s ease;
}
.ld-faq details[open] summary::after {
  transform: rotate(45deg);
}
.ld-faq__a {
  padding: 0 4px 22px;
  color: var(--ink-soft);
  max-width: 660px;
}

/* ---------- resources ---------- */
.ld-resources {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  margin-top: 44px;
}
.ld-resource {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px 22px;
  min-width: 0;
  transition: border-color 0.2s ease, transform 0.2s ease;
  color: var(--ink);
}
.ld-resource:hover {
  border-color: var(--indigo);
  transform: translateY(-3px);
}
.ld-resource__kicker {
  font-family: var(--mono);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--indigo);
}
.ld-resource h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-top: 10px;
}
.ld-resource p {
  color: var(--ink-soft);
  font-size: 0.88rem;
  margin-top: 6px;
}
.ld-resource span {
  display: inline-block;
  margin-top: 14px;
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--indigo);
}

/* ---------- CTA band ---------- */
.ld-cta {
  background: var(--ink);
  color: #fff;
  padding: 96px 0;
  text-align: center;
}
.ld-cta .ld-h2 {
  color: #fff;
  margin-inline: auto;
}
.ld-cta p {
  color: #c6cadf;
  max-width: 520px;
  margin: 16px auto 0;
}
.ld-cta__row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 34px;
}
.ld-cta .ld-note {
  color: #8189ad;
  margin-top: 16px;
  display: block;
}
.ld-cta__ask {
  color: #9ba4ff;
  font-weight: 600;
}
.ld-cta__ask:hover {
  color: #fff;
}

/* ---------- footer ---------- */
.ld-footer {
  background: var(--ink);
  color: #8189ad;
  border-top: 1px solid var(--line-dark);
  padding: 64px 0 40px;
  font-size: 0.9rem;
}
.ld-footer__grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 40px;
}
.ld-footer__brand img {
  height: 28px;
  width: auto;
  filter: brightness(0) invert(1);
}
.ld-footer__brand p {
  margin-top: 14px;
  max-width: 280px;
}
.ld-footer__social {
  display: flex;
  gap: 14px;
  margin-top: 18px;
}
.ld-footer__social a {
  color: #8189ad;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid var(--line-dark);
  border-radius: 9px;
  transition: color 0.18s ease, border-color 0.18s ease;
}
.ld-footer__social a:hover {
  color: #fff;
  border-color: #9ba4ff;
}
.ld-footer h3 {
  font-family: var(--mono);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #c6cadf;
  margin-bottom: 16px;
}
.ld-footer ul {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 10px;
}
.ld-footer a {
  color: #8189ad;
}
.ld-footer a:hover {
  color: #fff;
}
.ld-footer__bottom {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--line-dark);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 0.84rem;
}

/* ---------- contact dialog ---------- */
.ld-dialog {
  border: 0;
  padding: 0;
  width: min(92vw, 480px);
  border-radius: 20px;
  background: #fff;
  color: var(--ink);
  box-shadow: 0 30px 80px -20px rgba(10, 14, 35, 0.4);
}
.ld-dialog::backdrop {
  background: rgba(10, 14, 35, 0.5);
  backdrop-filter: blur(2px);
}
.ld-dialog form {
  position: relative;
  padding: 32px;
  margin: 0;
}
.ld-dialog h3 {
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  padding-right: 30px;
}
.ld-dialog__sub {
  color: var(--ink-soft);
  font-size: 0.92rem;
  margin-top: 8px;
}
.ld-dialog__close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  line-height: 1;
  color: var(--ink-soft);
  background: var(--mist);
}
.ld-dialog__close:hover {
  color: var(--ink);
}
.ld-dialog__fields {
  display: grid;
  gap: 14px;
  margin-top: 22px;
}
.ld-field span {
  display: block;
  font-size: 0.84rem;
  font-weight: 600;
  margin-bottom: 6px;
}
.ld-field input,
.ld-field textarea {
  width: 100%;
  font: inherit;
  font-size: 0.95rem;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px 14px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.ld-field textarea {
  resize: vertical;
  min-height: 110px;
}
.ld-field input:focus,
.ld-field textarea:focus {
  outline: none;
  border-color: var(--indigo);
  box-shadow: 0 0 0 3px rgba(74, 84, 245, 0.15);
}
.ld-field input.is-invalid,
.ld-field textarea.is-invalid {
  border-color: #d84a5f;
}
.ld-hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
}
.ld-dialog__submit {
  width: 100%;
  margin-top: 20px;
}
.ld-dialog__submit[disabled] {
  opacity: 0.6;
  cursor: default;
}
.ld-dialog__status {
  font-size: 0.88rem;
  margin-top: 12px;
  min-height: 1.3em;
  color: var(--ink-soft);
  text-align: center;
}
.ld-dialog__status.is-error {
  color: #c43b50;
}
.ld-dialog__status.is-ok {
  color: var(--green);
  font-weight: 600;
}

/* ---------- reveal on scroll (JS-gated: without JS everything stays visible) ---------- */
html.js .rv {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
html.js .rv.in {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  html.js .rv {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .ld-model__live::before {
    animation: none;
  }
  * {
    transition-duration: 0.01ms !important;
  }
}

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .ld-nav {
    display: none;
  }
  .ld-nav.is-open {
    display: flex;
    position: absolute;
    top: 66px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: #fff;
    border-bottom: 1px solid var(--line);
    padding: 8px 24px 16px;
    margin: 0;
    box-shadow: 0 20px 40px -20px rgba(10, 14, 35, 0.15);
  }
  .ld-nav.is-open a {
    padding: 13px 0;
    border-bottom: 1px solid var(--mist);
    font-size: 1rem;
  }
  .ld-nav.is-open a:last-child {
    border-bottom: 0;
  }
  .ld-burger {
    display: flex;
  }
  .ld-signin {
    display: none;
  }
  .ld-hero__inner,
  .ld-ai__inner {
    grid-template-columns: 1fr;
    gap: 44px;
  }
  .ld-hero {
    padding: 48px 0 64px;
  }
  .ld-features,
  .ld-steps,
  .ld-stages,
  .ld-plans {
    grid-template-columns: repeat(2, 1fr);
  }
  .ld-resources {
    grid-template-columns: repeat(2, 1fr);
  }
  .ld-footer__grid {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 700px) {
  .ld-header__inner {
    gap: 12px;
  }
  .ld-logo img {
    height: 26px;
  }
  .ld-header__actions {
    gap: 4px;
  }
  .ld-header__actions .ld-btn {
    padding: 10px 14px;
    font-size: 0.9rem;
  }
  .ld-burger {
    padding: 10px 6px 10px 8px;
    margin-left: 0;
  }
  .ld-section {
    padding: 68px 0;
  }
  .ld-ai {
    padding: 72px 0;
  }
  .ld-model__drivers {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .ld-model__kpis {
    grid-template-columns: repeat(2, 1fr);
  }
  .ld-facts__inner {
    grid-template-columns: 1fr 1fr;
  }
  .ld-fact:nth-child(3) {
    border-left: 0;
  }
  .ld-fact:nth-child(n + 3) {
    border-top: 1px solid var(--line);
  }
  .ld-features,
  .ld-steps,
  .ld-stages,
  .ld-plans,
  .ld-resources {
    grid-template-columns: 1fr;
  }
  .ld-hero__cta .ld-btn {
    width: 100%;
  }
  .ld-plan__for {
    min-height: 0;
  }
  .ld-footer__grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .ld-model {
    padding: 16px 14px 14px;
  }
  .ld-tour__panel {
    padding: 10px;
  }
}
