/* Ledger desk — prefix ld-  |  ivory + navy + brass */
:root {
  --ld-ivory: #f3eee4;
  --ld-paper: #fffdf8;
  --ld-navy: #1b2740;
  --ld-navy-2: #243352;
  --ld-ink: #1b2740;
  --ld-muted: #5c6578;
  --ld-brass: #b0893e;
  --ld-brass-deep: #8c6a28;
  --ld-line: rgba(27, 39, 64, 0.12);
  --ld-danger-bg: #fff1f0;
  --ld-font: "Source Serif 4", Georgia, serif;
  --ld-sans: "Libre Franklin", "Segoe UI", sans-serif;
  --ld-max: 1120px;
}

html { overflow-x: hidden; scroll-behavior: smooth; scroll-padding-top: 108px; }
*, *::before, *::after { box-sizing: border-box; }

body.ld-body {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  margin: 0;
  color: var(--ld-ink);
  font-family: var(--ld-sans);
  font-size: 16px;
  line-height: 1.55;
  background: var(--ld-ivory);
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--ld-brass-deep); text-decoration: none; }
a:hover { color: var(--ld-navy); }
button, input { font: inherit; }
h1, h2, h3 { font-family: var(--ld-font); font-weight: 600; letter-spacing: -0.02em; line-height: 1.18; }
ul, ol { margin: 0; padding: 0; }

.ld-wrap { width: min(var(--ld-max), calc(100% - 32px)); margin: 0 auto; }
.index-page #main-content { margin-top: 0; }
#main-content, main.ld-main { flex: 1 0 auto; }

.ld-skip { position: absolute; left: -999px; }
.ld-skip:focus { left: 8px; top: 8px; z-index: 200; background: #fff; padding: 8px; }

.ld-sticky {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--ld-navy);
  border-bottom: 1px solid rgba(176, 137, 62, 0.35);
}
.ld-header__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 62px;
}
.ld-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-family: var(--ld-font);
  font-size: 1.15rem;
}
.ld-brand img {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  border-radius: 6px;
}
.ld-nav { display: flex; gap: 22px; }
.ld-nav a { color: rgba(255,255,255,0.72); font-size: 0.9rem; font-weight: 600; }
.ld-nav a:hover, .ld-nav a[aria-current="page"] { color: #e8c878; }
.ld-header__cta { display: flex; align-items: center; gap: 10px; }
.ld-burger {
  display: none;
  width: 42px; height: 42px;
  border: 1px solid rgba(255,255,255,0.25);
  background: transparent; color: #fff; cursor: pointer;
}
.ld-btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 44px; padding: 0 18px; border: 0; border-radius: 4px;
  background: var(--ld-brass); color: #1b160c; font-weight: 700; cursor: pointer;
}
.ld-btn:hover { background: #c49a4d; color: #1b160c; }
.ld-btn--ghost { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,0.35); }

.ld-activity { padding: 8px 0 10px; background: #152033; }
.ld-activity .activity-bar {
  background: #eef1f6;
  border-color: rgba(27,39,64,0.12);
}
.ld-activity .activity-bar__name { color: #1b2740; }
.ld-activity .activity-bar__suffix,
.ld-activity .activity-bar__live-text { color: rgba(27,39,64,0.5); }
.ld-activity .activity-bar.activity-bar--dim {
  opacity: 1; background: #e4e8f0;
}
.ld-activity .activity-bar.activity-bar--dim .activity-bar__name { color: #1a2533; }

#mob-menu {
  display: none; position: fixed; inset: 0; z-index: 90;
  background: rgba(18, 24, 36, 0.7);
}
#mob-menu.is-open { display: block; }
.ld-drawer {
  width: min(320px, 88vw); height: 100%; margin-left: auto;
  background: var(--ld-navy); padding: 22px 20px;
  display: flex; flex-direction: column; gap: 14px;
}
.ld-drawer a { color: #fff; font-weight: 600; padding: 6px 0; border-bottom: 1px solid rgba(255,255,255,0.08); }

/* Hero */
.ld-hero, #hero-section { padding: 36px 0 48px; }
.ld-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.95fr);
  gap: 28px;
  align-items: start;
}
.ld-kicker, .ld-label {
  margin: 0 0 10px;
  color: var(--ld-brass-deep);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.ld-hero h1 { margin: 0 0 14px; font-size: clamp(2rem, 4vw, 3.1rem); }
.ld-lead { margin: 0 0 12px; color: var(--ld-muted); max-width: 54ch; }
.ld-pills { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 10px; }
.ld-pill {
  padding: 5px 10px; border: 1px solid var(--ld-line); border-radius: 999px;
  font-size: 0.78rem; color: var(--ld-navy);
}
.ld-disclaimer { margin: 8px 0 16px; font-size: 0.78rem; color: var(--ld-muted); }

/* Form */
.ld-signup, #form-main {
  position: relative;
  padding: 22px;
  background: var(--ld-paper);
  border: 1px solid var(--ld-line);
  border-radius: 8px;
  box-shadow: 0 18px 40px rgba(27,39,64,0.1);
  width: 100%;
  max-width: 440px;
}
#hero-section .ld-signup { max-width: none; }
.ld-contact-grid .ld-signup { margin-left: auto; }
.ld-signup__title { margin: 0 0 4px; font-family: var(--ld-font); font-size: 1.4rem; }
.ld-signup__sub, .ld-signup__foot { color: var(--ld-muted); font-size: 0.88rem; }
.ld-signup__foot a, .ld-terms a { color: var(--ld-brass-deep); font-weight: 600; }
#myform { display: grid; gap: 10px; }
.ld-field input, #form-main input[type="text"], #form-main input[type="email"] {
  width: 100%; min-height: 48px; padding: 0 14px;
  border: 1px solid #c9c1b2; border-radius: 6px; background: #fff;
}
.ld-field input:focus, #form-main input:focus {
  outline: none; border-color: var(--ld-brass); box-shadow: 0 0 0 3px rgba(176,137,62,0.22);
}
#roi_btn_register {
  width: 100%; min-height: 50px; border: 0; border-radius: 6px;
  background: var(--ld-navy); color: #fff; font-weight: 700; cursor: pointer;
}
#roi_btn_register:hover { background: #243352; }
.ld-terms { display: flex; align-items: flex-start; gap: 10px; color: var(--ld-muted); font-size: 0.8rem; }
#roi_terms { width: 1.15em; height: 1.15em; margin-top: 2px; flex-shrink: 0; }

#roi_dropdown_input_group { display: block; width: 100%; position: relative; min-height: 72px; }
#roi_dropdown_input_group .iti, .iti { display: block; width: 100%; }
#roi_dropdown_input_group #phone, #form-main #phone, #phone, input[name="phone"] { padding-left: 90px !important; }
.iti input[name="phone"], .iti input[type="text"], .iti input[type="tel"] {
  height: 48px !important; min-height: 48px !important; color: var(--ld-ink) !important;
}
.iti__flag-container { position: absolute !important; top: 0 !important; height: 48px !important; }
.iti__selected-flag { height: 48px !important; display: flex !important; align-items: center !important; }
.iti__selected-dial-code { color: var(--ld-ink) !important; font-weight: 600; }
#roi_dropdown_content { display: none; }
#roi_error_firstname, #roi_error_lastname, #roi_error_email, #roi_error_phone, #roi_error_terms { display: none !important; }
.preloader {
  display: none; position: absolute; inset: 0; z-index: 20;
  background: rgba(255,253,248,0.82) url(../../preloader.gif) center no-repeat;
}
.roi-form-container { position: relative; }

.ld-head { margin-bottom: 22px; }
.ld-head h2, .ld-platform h2, .ld-markets h2, .ld-tech h2, .ld-smarter h2,
.ld-start h2, .ld-about h2, .ld-team h2, .ld-reviews h2, .ld-faq h2, .ld-hiring h2, .ld-final h2, .ld-banner h2 {
  margin: 0 0 10px; font-size: clamp(1.5rem, 2.6vw, 2.2rem);
}
.ld-head p, .ld-note { color: var(--ld-muted); }
.ld-head--center { text-align: center; max-width: 62ch; margin-left: auto; margin-right: auto; }
.ld-cta-row { margin: 22px 0 0; }
.ld-link { color: var(--ld-brass-deep); font-weight: 700; }

.ld-partners { padding: 16px 0; border-block: 1px solid var(--ld-line); background: #efe8d9; }
.ld-partners__list {
  display: flex; flex-wrap: wrap; justify-content: center; align-items: center;
  gap: 18px 36px; list-style: none;
}
.ld-partners__list li { list-style: none; }
.ld-partners img { height: 34px; width: auto; max-width: 92px; object-fit: contain; opacity: 0.78; filter: grayscale(1); }

.ld-platform, .ld-markets, .ld-tech, .ld-start, .ld-about, .ld-team, .ld-reviews, .ld-faq, .ld-hiring, .ld-final { padding: 64px 0; }

/* Timeline — not a 3x2 card grid */
.ld-timeline { display: grid; gap: 0; border-left: 2px solid var(--ld-brass); margin-left: 8px; }
.ld-timeline__item { position: relative; padding: 0 0 22px 28px; }
.ld-timeline__item:last-child { padding-bottom: 0; }
.ld-timeline__num {
  position: absolute; left: -11px; top: 2px;
  width: 20px; height: 20px; border-radius: 50%;
  background: var(--ld-brass); color: #1b160c;
  font-size: 0.68rem; font-weight: 800; display: grid; place-items: center;
}
.ld-timeline__item h3 { margin: 0 0 6px; font-size: 1.05rem; }
.ld-timeline__item p { margin: 0; color: var(--ld-muted); }

/* Market slabs */
.ld-slab {
  display: grid; grid-template-columns: 160px 1fr; gap: 16px;
  padding: 18px 0; border-top: 1px solid var(--ld-line);
}
.ld-slab:last-of-type { border-bottom: 1px solid var(--ld-line); }
.ld-slab__tag {
  font-family: var(--ld-font); font-size: 1.15rem; color: var(--ld-navy);
}
.ld-slab p { margin: 0; color: var(--ld-muted); }
.ld-markets__visual { margin: 0 0 18px; border-radius: 8px; overflow: hidden; }
.ld-markets__visual img { width: 100%; }

/* Tech facts */
.ld-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 28px; }
.ld-fact { padding: 14px 0; border-top: 1px dashed var(--ld-line); }
.ld-fact h3 { margin: 0 0 6px; font-size: 1rem; }
.ld-fact p { margin: 0; color: var(--ld-muted); font-size: 0.92rem; }

/* Smarter — stacked rows on navy */
.ld-smarter { padding: 56px 0; background: var(--ld-navy); color: #fff; }
.ld-smarter h2 { color: #fff; }
.ld-smarter .ld-head p { color: rgba(255,255,255,0.65); }
.ld-smarter__row {
  display: grid; grid-template-columns: 220px 1fr; gap: 16px;
  padding: 16px 0; border-top: 1px solid rgba(255,255,255,0.1);
}
.ld-smarter__row h3 { margin: 0; color: #e8c878; font-size: 1rem; }
.ld-smarter__row p { margin: 0; color: rgba(255,255,255,0.75); }
.ld-smarter__img { margin-top: 18px; border-radius: 8px; overflow: hidden; }
.ld-smarter__img img { width: 100%; }

.ld-start__grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 28px; }
.ld-steps { list-style: none; display: grid; gap: 12px; }
.ld-step { display: grid; grid-template-columns: 42px 1fr; gap: 12px; }
.ld-step__n {
  font-family: var(--ld-font); color: var(--ld-brass); font-size: 1.2rem; font-weight: 700;
}
.ld-step strong { display: block; }
.ld-step p { margin: 4px 0 0; color: var(--ld-muted); font-size: 0.92rem; }

.ld-banner { padding: 0 0 56px; }
.ld-banner__inner {
  padding: 28px; text-align: center;
  background: var(--ld-navy); color: #fff; border-radius: 8px;
}
.ld-banner__inner h2 { color: #fff; }
.ld-banner__inner p { color: rgba(255,255,255,0.7); max-width: 52ch; margin: 0 auto 16px; }
.ld-banner .ld-btn { background: var(--ld-brass); color: #1b160c; }

.ld-about__grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 28px; align-items: stretch; }
.ld-photo { border-radius: 8px; overflow: hidden; border: 1px solid var(--ld-line); }
.ld-photo img { width: 100%; height: 100%; min-height: 380px; object-fit: cover; }
.ld-pullquote {
  margin: 16px 0; padding: 14px 16px 14px 18px;
  border-left: 3px solid var(--ld-brass); background: var(--ld-paper);
}
.ld-pullquote p { margin: 0 0 8px; }
.ld-pullquote cite { color: var(--ld-brass-deep); font-style: normal; font-weight: 700; }
.ld-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 16px 0; }
.ld-stats__value { display: block; font-family: var(--ld-font); font-size: 1.7rem; color: var(--ld-brass-deep); }
.ld-stats__label { color: var(--ld-muted); font-size: 0.82rem; }

.ld-sheet { border-top: 1px solid var(--ld-line); }
.ld-sheet__row {
  display: grid; grid-template-columns: 110px 160px 1fr;
  gap: 12px; padding: 16px 0; border-bottom: 1px solid var(--ld-line);
  color: inherit;
}
.ld-sheet__row:hover { background: rgba(176,137,62,0.06); }
.ld-sheet__role { font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ld-brass-deep); }
.ld-sheet__name { font-weight: 700; }
.ld-sheet__quote { color: var(--ld-muted); font-size: 0.9rem; }

.ld-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.seo-review {
  margin: 0; padding: 18px;
  background: var(--ld-paper);
  border: 1px solid var(--ld-line);
  border-radius: 8px;
}
.seo-review__body { margin: 0 0 12px; }
.ld-card__meta { display: flex; align-items: center; gap: 10px; }
.ld-card__meta img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; }
.seo-review__author { margin: 0; font-weight: 700; }
.ld-card__loc { margin: 0; font-size: 0.78rem; color: var(--ld-muted); }
.seo-review__rating { margin-left: auto; color: #c4a035; letter-spacing: 1px; }

.seo-faq__item, .ld-faq__list { display: grid; gap: 8px; }
.seo-faq__item { border: 1px solid var(--ld-line); background: var(--ld-paper); }
.seo-faq__question {
  width: 100%; display: flex; justify-content: space-between; gap: 12px;
  padding: 14px 16px; border: 0; background: transparent; text-align: left;
  font-weight: 700; cursor: pointer; color: var(--ld-navy);
}
.ld-faq__icon { color: var(--ld-brass-deep); }
.seo-faq__answer { max-height: 0; overflow: hidden; color: var(--ld-muted); }
.seo-faq__item.is-open .seo-faq__answer { max-height: 280px; }
.ld-faq__inner { padding: 0 16px 16px; }

.ld-hiring__grid, .ld-final__grid {
  display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 24px; align-items: center;
}
.ld-hiring__perks { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 16px; }
.ld-hiring__perks li {
  padding: 5px 10px; border: 1px solid var(--ld-line); font-size: 0.82rem;
}
.ld-hiring__media img, .ld-final__media img { width: 100%; border-radius: 8px; }
.ld-final p { color: var(--ld-muted); }

.ld-footer {
  margin-top: auto; padding: 36px 0 28px;
  background: var(--ld-navy); color: rgba(255,255,255,0.72);
}
.ld-footer a { color: #e8c878; }
.ld-footer__top { display: flex; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.ld-footer .ld-brand { color: #fff; }
.ld-footer__nav { display: flex; flex-wrap: wrap; gap: 16px; }
.ld-footer__risk { font-size: 0.82rem; }
.ld-footer__risk h3 { margin: 0 0 8px; color: #fff; font-size: 0.95rem; }
.ld-footer__bottom { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 16px; font-size: 0.8rem; }
.ld-footer__legal { display: flex; gap: 14px; }

.ld-page { padding: 40px 0 64px; }
.ld-page .ld-wrap {
  padding: 28px 28px 36px; background: var(--ld-paper);
  border: 1px solid var(--ld-line); border-radius: 10px;
}
.ld-page h1 { margin: 0 0 12px; font-size: clamp(1.8rem, 3vw, 2.6rem); }
.ld-page h2 { margin: 28px 0 10px; font-size: 1.35rem; }
.ld-page p { color: var(--ld-muted); max-width: 62ch; }
.ld-page .ld-timeline p, .ld-page .ld-stats__label { max-width: none; }
.ld-page .ld-stats { grid-template-columns: repeat(3, 1fr); }
.ld-page ul { padding-left: 1.2rem; color: var(--ld-muted); }
.ld-legal p, .ld-legal-doc p, .legal-document__intro, .legal-section p { max-width: none; }
.legal-section { margin: 22px 0; }
.ld-legal h2, .legal-section h2 { margin: 22px 0 8px; font-size: 1.2rem; }
.ld-office dt { font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ld-brass-deep); }
.ld-office dd { margin: 4px 0 12px; }
.modal-header { text-align: center; }
.modal-title { margin: 8px 0 0; font-family: var(--ld-font); }
.modal-body { color: var(--ld-muted); }
.modal-footer { margin-top: 16px; }
.modal-icon { color: var(--ld-navy); }
.ld-crumb { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0 0 16px; font-size: 0.82rem; color: var(--ld-muted); }
.ld-crumb li + li::before { content: "/"; margin-right: 8px; opacity: 0.5; }
.ld-contact-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 24px; }
.ld-map { margin-top: 24px; }
.ld-map iframe { width: 100%; min-height: 320px; border: 0; border-radius: 8px; }

.legal-table-wrap { margin: 12px 0 20px; overflow-x: auto; }
.legal-table { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
.legal-table th, .legal-table td { border: 1px solid #d5dde8; padding: 10px 12px; text-align: left; vertical-align: top; }
.legal-table thead th { background: #f3eee4; font-weight: 700; }
.legal-table tbody tr:nth-child(even) td { background: #faf6ee; }

.ld-roster { border-top: 1px solid var(--ld-line); }
.ld-roster__row {
  display: grid; grid-template-columns: 52px 180px 1fr;
  gap: 12px; align-items: start; padding: 16px 0;
  border-bottom: 1px solid var(--ld-line);
}
.ld-roster__avatar { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; }
.ld-roster__name { margin: 0; font-size: 1.05rem; color: var(--ld-navy); }
.ld-roster__role { margin: 4px 0 0; font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ld-brass-deep); }
.ld-roster__bio { margin: 0; color: var(--ld-muted); font-size: 0.9rem; }

.chat-widget { position: fixed; right: 22px; bottom: 22px; z-index: 70; }
.chat-bubble { display: none; }
.chat-button {
  width: 58px; height: 58px; border: 0; border-radius: 50%;
  background: var(--ld-brass); color: #1b160c; display: grid; place-items: center; cursor: pointer;
}
.chat-button .chat-icon { width: 26px; height: 26px; }
.modal-overlay { display: none; position: fixed; inset: 0; z-index: 95; background: rgba(18,24,36,0.65); align-items: center; justify-content: center; padding: 16px; }
.modal-overlay.active { display: flex; }
.modal-content { position: relative; width: min(420px, calc(100% - 24px)); background: #fff; padding: 28px 24px 22px; border-radius: 10px; }
.modal-close { position: absolute; top: 12px; right: 12px; border: 0; background: transparent; cursor: pointer; }
.modal-button { display: inline-flex; gap: 8px; padding: 12px 16px; background: var(--ld-navy); color: #fff; font-weight: 700; }

.ld-reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.45s ease, transform 0.45s ease; }
.ld-reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .ld-reveal { opacity: 1; transform: none; } }

@media (max-width: 960px) {
  .ld-nav { display: none; }
  .ld-burger { display: inline-flex; align-items: center; justify-content: center; }
  .ld-hero__grid, .ld-about__grid, .ld-start__grid, .ld-hiring__grid, .ld-final__grid,
  .ld-contact-grid, .ld-facts, .ld-smarter__row, .ld-slab, .ld-cards {
    grid-template-columns: 1fr;
  }
  .ld-sheet__row { grid-template-columns: 1fr; gap: 6px; }
}
@media (max-width: 640px) {
  .ld-header__cta .ld-btn { display: none; }
  .ld-page .ld-wrap { padding: 18px 16px 24px; }
  .ld-page .ld-stats { grid-template-columns: 1fr; }
  .ld-footer__top, .ld-footer__bottom { flex-direction: column; }
  .ld-roster__row { grid-template-columns: 52px 1fr; }
  .ld-roster__bio { grid-column: 1 / -1; }
}

/* Errors last — beat intlTelInput.min.css */
#first_name-error, #last_name-error, #email-error, #phone-error,
#first_name-1-error, #last_name-1-error, #email-1-error, #phone-1-error { display: none; }

#myform label.error, #form-main label.error, .ld-signup label.error,
.ld-field > label.error, #roi_dropdown_input_group label.error, .iti > label.error,
#first_name-error.error, #last_name-error.error, #email-error.error, #phone-error.error {
  position: static !important;
  float: none !important;
  width: 100% !important;
  box-sizing: border-box;
  white-space: normal !important;
  margin: 8px 0 0 !important;
  padding: 8px 10px !important;
  color: #7a1c1c !important;
  font-size: 0.74rem !important;
  font-weight: 600 !important;
  background: #fff1f0 !important;
  border: 1px solid rgba(122,28,28,0.2) !important;
  border-radius: 6px !important;
  box-shadow: 0 8px 18px rgba(17,17,17,0.12) !important;
}
#first_name-error.error, #last_name-error.error, #email-error.error, #phone-error.error,
#myform label.error:not([for="roi_terms"]):not(#terms-error),
#form-main label.error:not([for="roi_terms"]):not(#terms-error) { display: block !important; }

#first_name-error:empty, #last_name-error:empty, #email-error:empty, #phone-error:empty, label.error:empty {
  display: none !important; margin: 0 !important; padding: 0 !important; border: 0 !important; box-shadow: none !important;
}

.ld-terms label.error, #myform .ld-terms label.error, #form-main .ld-terms label.error,
#myform label.error[for="roi_terms"], #terms-error, #roi_terms-error, #roi_error_terms {
  display: none !important; width: 0 !important; height: 0 !important; overflow: hidden !important;
  position: absolute !important; left: -9999px !important;
}

#myform input.error, #form-main input.error, #phone.error, .iti input.error {
  border-color: #d9534f !important; box-shadow: none !important;
}
