/* LeaseDesk — marketing + recorded demo.
   No webfonts, no CDN, no external assets. System font stack only.
   Everything below is safe to open from file:// with the network unplugged. */

:root {
  --bg: #060a12;
  --bg-soft: #0a1020;
  --panel: #0e1626;
  --panel-2: #121c2e;
  --line: #1e2b42;
  --line-soft: #17233a;
  --ink: #e8eef8;
  --ink-dim: #a7b4c8;
  --ink-mute: #7c8aa1;
  --accent: #2fd6bd;
  --accent-dim: #1aa996;
  --warn: #ff8a5c;
  --bad: #ff5d6c;
  --good: #57d38c;
  --radius: 14px;
  --measure: 68ch;
  --font: -apple-system, "Segoe UI", Roboto, Ubuntu, sans-serif;
  --mono: ui-monospace, "SFMono-Regular", "Cascadia Mono", Consolas, monospace;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.wrap {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 28px;
}

.narrow { max-width: 780px; }

/* ---------- type scale ---------- */

h1, h2, h3, h4 { line-height: 1.15; letter-spacing: -0.02em; margin: 0; }

h1 { font-size: clamp(2.1rem, 4.6vw, 3.5rem); font-weight: 700; }
h2 { font-size: clamp(1.55rem, 2.6vw, 2.15rem); font-weight: 680; }
h3 { font-size: 1.15rem; font-weight: 640; }
h4 { font-size: 1rem; font-weight: 620; }

p { margin: 0 0 1em; }

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

.muted { color: var(--ink-dim); }
.small { font-size: 0.86rem; }
.mono { font-family: var(--mono); font-size: 0.86em; letter-spacing: 0; }
.eyebrow {
  display: inline-block;
  font-size: 0.74rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 650;
  margin-bottom: 14px;
}
.lead { font-size: 1.09rem; color: var(--ink-dim); max-width: var(--measure); }

section { padding: 84px 0; border-top: 1px solid var(--line-soft); }
section:first-of-type { border-top: 0; }
.section-head { max-width: 720px; margin-bottom: 34px; }
.section-head p { margin-top: 12px; }

/* ---------- header ---------- */

header.site {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(6, 10, 18, 0.86);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line-soft);
}
.nav {
  display: flex;
  align-items: center;
  gap: 26px;
  height: 66px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
  font-size: 1.05rem;
}
.brand:hover { text-decoration: none; }
.mark {
  width: 24px;
  height: 24px;
  border-radius: 7px;
  background: linear-gradient(145deg, var(--accent), #1c6f8f);
  box-shadow: 0 0 0 1px rgba(47, 214, 189, 0.35), 0 6px 18px -8px rgba(47, 214, 189, 0.7);
  flex: none;
}
.nav .links { display: flex; gap: 22px; margin-left: auto; }
.nav .links a { color: var(--ink-dim); font-size: 0.9rem; }
.nav .links a:hover { color: var(--ink); text-decoration: none; }
.nav .cta-mini { margin-left: 4px; }

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 18px;
  border-radius: 10px;
  border: 1px solid transparent;
  background: var(--accent);
  color: #04211d;
  font-weight: 650;
  font-size: 0.93rem;
  font-family: inherit;
  cursor: pointer;
  transition: transform 0.12s ease, background 0.12s ease;
}
.btn:hover { background: #49e3ca; text-decoration: none; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { background: var(--panel); border-color: var(--accent-dim); color: var(--ink); }
.btn-sm { padding: 8px 13px; font-size: 0.84rem; border-radius: 9px; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }

/* ---------- hero ---------- */

.hero { padding: 96px 0 78px; }
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 56px;
  align-items: center;
}
.hero h1 span.accent { color: var(--accent); }
.hero .lead { margin-top: 20px; font-size: 1.14rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.offline-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--bg-soft);
  color: var(--ink-dim);
  font-size: 0.8rem;
  margin-bottom: 24px;
}
.dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--good);
  box-shadow: 0 0 0 3px rgba(87, 211, 140, 0.16);
  flex: none;
}

.hero-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
}
.hero-card .row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 11px 0;
  border-bottom: 1px solid var(--line-soft);
  font-size: 0.9rem;
}
.hero-card .row:last-child { border-bottom: 0; }
.hero-card .row b { font-weight: 640; }
.hero-card .row .k { color: var(--ink-mute); }
.price-big { font-size: 2.5rem; font-weight: 720; color: var(--accent); letter-spacing: -0.03em; }

/* ---------- numbers band ---------- */

.band { background: var(--bg-soft); }
.band-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
}
.stat {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  background: var(--panel);
}
.stat .n {
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--ink);
  line-height: 1.1;
}
.stat .n em { font-style: normal; color: var(--accent); }
.stat .l { color: var(--ink-dim); font-size: 0.88rem; margin-top: 8px; }

/* ---------- steps ---------- */

.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.step {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  background: linear-gradient(180deg, var(--panel) 0%, var(--bg-soft) 100%);
}
.step .num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 30px; height: 30px; border-radius: 8px;
  background: rgba(47, 214, 189, 0.12);
  color: var(--accent);
  font-weight: 700; font-size: 0.9rem;
  margin-bottom: 16px;
}
.step h3 { margin-bottom: 8px; }
.step p { color: var(--ink-dim); font-size: 0.93rem; margin: 0; }
.step code { display: block; margin-top: 12px; }

pre.cmd {
  margin: 14px 0 0;
  padding: 13px 15px;
  background: #040810;
  border: 1px solid var(--line);
  border-radius: 10px;
  font-family: var(--mono);
  font-size: 0.8rem;
  color: #cfe6e0;
  overflow-x: auto;
  white-space: pre-wrap;
  word-break: break-word;
}

/* ---------- demo ---------- */

.demo-note {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  border: 1px dashed var(--accent-dim);
  background: rgba(47, 214, 189, 0.06);
  color: var(--ink-dim);
  border-radius: 12px;
  padding: 14px 16px;
  font-size: 0.88rem;
  margin-bottom: 26px;
  max-width: 900px;
}
.demo-note b { color: var(--ink); }

.demo-shell {
  display: grid;
  grid-template-columns: minmax(0, 0.72fr) minmax(0, 1.28fr);
  gap: 22px;
  align-items: start;
}
.pane {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  overflow: hidden;
}
.pane-head {
  display: flex; align-items: center; gap: 12px;
  padding: 13px 16px;
  border-bottom: 1px solid var(--line);
  background: var(--panel-2);
  font-size: 0.86rem;
  color: var(--ink-dim);
  flex-wrap: wrap;
}
.pane-head .title { color: var(--ink); font-weight: 620; }
.tabs { display: flex; gap: 6px; margin-left: auto; }
.tab {
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink-dim);
  font-family: inherit;
  font-size: 0.78rem;
  padding: 5px 11px;
  border-radius: 8px;
  cursor: pointer;
}
.tab[aria-selected="true"] { background: rgba(47, 214, 189, 0.14); border-color: var(--accent-dim); color: var(--accent); }
.doc {
  padding: 18px;
  height: 430px;
  overflow: auto;
  font-family: var(--mono);
  font-size: 0.78rem;
  line-height: 1.75;
  white-space: pre-wrap;
  color: #c4d1e4;
  background: #050a13;
}
.doc mark { background: rgba(47, 214, 189, 0.22); color: #eafffa; padding: 0 2px; border-radius: 3px; }

.meta-strip {
  display: flex; flex-wrap: wrap; gap: 10px 22px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  font-size: 0.8rem;
  color: var(--ink-mute);
  background: #0b1220;
}
.meta-strip b { color: var(--ink); font-weight: 620; }

.table-scroll { overflow-x: auto; }
table.grid { width: 100%; border-collapse: collapse; font-size: 0.86rem; table-layout: fixed; }
table.grid th:nth-child(1) { width: 15%; }
table.grid th:nth-child(2) { width: 24%; }
table.grid th:nth-child(3) { width: 7%; }
table.grid th:nth-child(4) { width: 36%; }
table.grid th:nth-child(5) { width: 18%; }
table.grid th, table.grid td {
  text-align: left;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line-soft);
  vertical-align: top;
}
table.grid td.val, table.grid .ev { overflow-wrap: break-word; }
table.grid th {
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-mute);
  font-weight: 600;
  background: #0b1220;
  position: sticky;
  top: 0;
}
table.grid tr:last-child td { border-bottom: 0; }
table.grid td.f { color: var(--ink-dim); font-weight: 600; }
table.grid td.pg { text-align: center; white-space: nowrap; }
table.grid td.pg span {
  display: inline-block; min-width: 22px;
  padding: 1px 7px; border-radius: 6px;
  background: rgba(47, 214, 189, 0.13);
  color: var(--accent);
  font-family: var(--mono);
  font-size: 0.75rem;
}
.ev { color: var(--ink-mute); font-size: 0.8rem; line-height: 1.5; }
.ev q { quotes: '"' '"'; font-style: italic; }

td.val [contenteditable="true"] {
  outline: none;
  border-radius: 6px;
  padding: 3px 6px;
  margin: -3px -6px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.02);
  box-shadow: inset 0 0 0 1px transparent;
  min-width: 120px;
  display: inline-block;
}
td.val [contenteditable="true"]:hover { box-shadow: inset 0 0 0 1px var(--line); }
td.val [contenteditable="true"]:focus { box-shadow: inset 0 0 0 1px var(--accent); background: #0a1626; }
tr.reviewed td.val [contenteditable="true"] { background: rgba(87, 211, 140, 0.09); }
tr.flagged { background: rgba(255, 93, 108, 0.05); }
tr.absent td.val { color: var(--ink-mute); }

.pill {
  display: inline-block;
  max-width: 100%;
  font-size: 0.72rem; font-weight: 620;
  padding: 3px 9px; border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--ink-dim);
  white-space: normal;
  line-height: 1.45;
}
.pill.ok { color: var(--good); border-color: rgba(87, 211, 140, 0.4); background: rgba(87, 211, 140, 0.08); }
.pill.warn { color: var(--accent); border-color: rgba(47, 214, 189, 0.4); background: rgba(47, 214, 189, 0.08); }
.pill.bad { color: var(--bad); border-color: rgba(255, 93, 108, 0.45); background: rgba(255, 93, 108, 0.09); }
.pill.gone { color: var(--warn); border-color: rgba(255, 138, 92, 0.4); background: rgba(255, 138, 92, 0.08); }

.demo-actions {
  display: flex; flex-wrap: wrap; gap: 10px; align-items: center;
  padding: 14px 16px; border-top: 1px solid var(--line); background: var(--panel-2);
}
.demo-actions .spacer { margin-left: auto; color: var(--ink-mute); font-size: 0.78rem; }
#demo-status { color: var(--accent); font-size: 0.8rem; min-height: 1.2em; }

/* ---------- field list / what you get ---------- */

.field-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}
.fchip {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px 14px;
  background: var(--panel);
  font-size: 0.88rem;
}
.fchip span { display: block; color: var(--ink-mute); font-size: 0.75rem; margin-top: 3px; }

table.plain { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
table.plain th, table.plain td {
  text-align: left; padding: 14px 16px; border-bottom: 1px solid var(--line-soft);
}
table.plain th { color: var(--ink-mute); font-size: 0.74rem; letter-spacing: 0.1em; text-transform: uppercase; }
table.plain td.y { color: var(--accent); font-weight: 620; white-space: nowrap; }
table.plain td.n { color: var(--ink-mute); white-space: nowrap; }
table.plain tbody tr:last-child td { border-bottom: 0; }

/* ---------- limits ---------- */

.limits { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.limit {
  border: 1px solid var(--line);
  border-left: 3px solid var(--warn);
  border-radius: 10px;
  padding: 18px 20px;
  background: var(--panel);
}
.limit h4 { margin-bottom: 6px; }
.limit p { margin: 0; color: var(--ink-dim); font-size: 0.9rem; }

/* ---------- pricing ---------- */

.tiers { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.tier {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  background: var(--panel);
  display: flex;
  flex-direction: column;
}
.tier.featured {
  border-color: var(--accent-dim);
  background: linear-gradient(180deg, rgba(47, 214, 189, 0.08) 0%, var(--panel) 60%);
}
.tier .amount { font-size: 2.1rem; font-weight: 720; letter-spacing: -0.03em; margin: 6px 0 2px; }
.tier .per { color: var(--ink-mute); font-size: 0.84rem; }
.tier ul { list-style: none; padding: 0; margin: 20px 0 24px; }
.tier li { padding: 7px 0 7px 22px; position: relative; font-size: 0.92rem; color: var(--ink-dim); }
.tier li::before {
  content: "";
  position: absolute; left: 0; top: 14px;
  width: 11px; height: 6px;
  border-left: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  transform: rotate(-45deg);
}
.tier .btn { margin-top: auto; justify-content: center; }
.badge {
  align-self: flex-start;
  font-size: 0.7rem; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--accent); font-weight: 700; margin-bottom: 6px;
}
.fineprint { margin-top: 22px; color: var(--ink-mute); font-size: 0.85rem; max-width: var(--measure); }

/* ---------- faq ---------- */

.faq details {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel);
  margin-bottom: 12px;
  overflow: hidden;
}
.faq summary {
  cursor: pointer;
  padding: 17px 20px;
  font-weight: 620;
  list-style: none;
  display: flex;
  gap: 14px;
  align-items: baseline;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before { content: "+"; color: var(--accent); font-family: var(--mono); flex: none; }
.faq details[open] summary::before { content: "-"; }
.faq .a { padding: 0 20px 18px 40px; color: var(--ink-dim); font-size: 0.94rem; }
.faq .a p:last-child { margin-bottom: 0; }

/* ---------- footer ---------- */

footer.site {
  border-top: 1px solid var(--line);
  background: var(--bg-soft);
  padding: 46px 0 34px;
  font-size: 0.88rem;
  color: var(--ink-mute);
}
.foot-grid { display: flex; flex-wrap: wrap; gap: 26px; justify-content: space-between; }
.foot-links { display: flex; flex-direction: column; gap: 8px; }
.foot-links a { color: var(--ink-dim); }
.foot-note { margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--line-soft); max-width: 900px; }

/* ---------- responsive ---------- */

@media (max-width: 900px) {
  section { padding: 62px 0; }
  .hero { padding: 64px 0 56px; }
  .hero-grid { grid-template-columns: 1fr; gap: 34px; }
  .band-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps { grid-template-columns: 1fr; }
  .demo-shell { grid-template-columns: 1fr; }
  .field-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tiers { grid-template-columns: 1fr; }
  .limits { grid-template-columns: 1fr; }
  .nav .links { display: none; }
  .doc { height: 300px; }
}

@media (max-width: 640px) {
  .wrap { padding: 0 18px; }
  body { font-size: 15px; }
  section { padding: 50px 0; }
  .band-grid { grid-template-columns: 1fr; gap: 14px; }
  .field-grid { grid-template-columns: 1fr; }
  .stat .n { font-size: 1.7rem; }
  .hero .lead { font-size: 1.02rem; }
  .btn { width: 100%; justify-content: center; }
  .nav .cta-mini { margin-left: 0; }
  .nav .cta-mini .btn { width: auto; }
  table.plain th, table.plain td { padding: 11px 12px; }
  .demo-actions .spacer { display: none; }
  /* the grid is a data table: let it scroll sideways rather than squeeze 5 columns into 354px */
  table.grid { min-width: 560px; }
  .table-scroll { -webkit-overflow-scrolling: touch; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn:hover { transform: none; }
}
