/* LotPilot — Ardeur Enterprises LLC
   Design tokens */
:root {
  --bg: #0a0d0b;
  --surface: #10140f;
  --surface-raised: #141a13;
  --border: #212b20;
  --border-strong: #2c3a2a;
  --text: #e9ece7;
  --text-dim: #a7b1a2;
  --text-faint: #6c766a;
  --green: #3a7350;
  --green-bright: #4f9268;
  --green-wash: rgba(58, 115, 80, 0.12);
  --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --sans: "IBM Plex Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --serif: "Fraunces", Georgia, serif;
  --max-w: 1120px;
  --radius: 4px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation: none !important; transition: none !important; }
}

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

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

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--green-bright);
  outline-offset: 3px;
}

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.15;
  margin: 0;
  color: #fff;
}

p { margin: 0; }

img, svg { max-width: 100%; display: block; }

.wrap {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 28px;
}

/* ---------- Header ---------- */
.site-header {
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  background: rgba(10, 13, 11, 0.88);
  backdrop-filter: blur(8px);
  z-index: 20;
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.wordmark {
  font-family: var(--serif);
  font-size: 1.25rem;
  color: #fff;
  letter-spacing: 0.01em;
  display: flex;
  align-items: baseline;
  gap: 8px;
}
.wordmark .dot { color: var(--green-bright); }
.wordmark:hover { text-decoration: none; }

.main-nav {
  display: flex;
  gap: 32px;
}
.main-nav a {
  color: var(--text-dim);
  font-size: 0.95rem;
}
.main-nav a:hover { color: var(--text); text-decoration: none; }

.nav-toggle { display: none; }

/* ---------- Hero ---------- */
.hero {
  padding: 84px 0 96px;
  border-bottom: 1px solid var(--border);
}
.hero .wrap {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 64px;
  align-items: center;
}
.hero h1 {
  font-size: clamp(2.1rem, 4vw, 3.15rem);
  max-width: 12ch;
}
.hero .lede {
  margin-top: 22px;
  color: var(--text-dim);
  font-size: 1.08rem;
  max-width: 46ch;
}
.hero .actions {
  margin-top: 34px;
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  padding: 12px 22px;
  border-radius: var(--radius);
  font-size: 0.95rem;
  font-weight: 500;
  border: 1px solid transparent;
}
.btn:hover { text-decoration: none; }
.btn-primary {
  background: var(--green);
  color: #f3f7f3;
}
.btn-primary:hover { background: var(--green-bright); }
.btn-secondary {
  border-color: var(--border-strong);
  color: var(--text);
}
.btn-secondary:hover { border-color: var(--green-bright); color: #fff; }

/* ---------- Ledger illustration ---------- */
.ledger-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
}
.ledger-card .lc-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--text-faint);
  letter-spacing: 0.02em;
}
.lc-status {
  color: var(--green-bright);
}
.lc-row {
  display: grid;
  grid-template-columns: 76px 1fr 90px 88px;
  gap: 10px;
  padding: 13px 18px;
  border-bottom: 1px solid var(--border);
  font-size: 0.85rem;
  align-items: center;
}
.lc-row:last-child { border-bottom: none; }
.lc-date { font-family: var(--mono); color: var(--text-faint); font-size: 0.78rem; }
.lc-desc { color: var(--text); }
.lc-cat {
  font-size: 0.72rem;
  color: var(--text-dim);
  border: 1px solid var(--border-strong);
  border-radius: 3px;
  padding: 3px 7px;
  text-align: center;
  white-space: nowrap;
}
.lc-amt { font-family: var(--mono); text-align: right; color: var(--text); }
.lc-row.is-matched .lc-cat { border-color: var(--green); color: var(--green-bright); background: var(--green-wash); }
.lc-caption {
  margin-top: 12px;
  font-size: 0.78rem;
  color: var(--text-faint);
  text-align: right;
}

/* ---------- Section rhythm ---------- */
.section {
  padding: 88px 0;
  border-bottom: 1px solid var(--border);
}
.section:last-of-type { border-bottom: none; }
.section-head {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 48px;
  margin-bottom: 48px;
}
.section-head h2 {
  font-size: clamp(1.6rem, 2.6vw, 2.1rem);
}
.section-head .section-copy {
  color: var(--text-dim);
  max-width: 56ch;
}

/* ---------- About ---------- */
.about-facts {
  margin-top: 28px;
  display: grid;
  gap: 14px;
}
.about-facts div {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 16px;
  padding: 14px 0;
  border-top: 1px solid var(--border);
  font-size: 0.92rem;
}
.about-facts dt {
  color: var(--text-faint);
  font-family: var(--mono);
  font-size: 0.78rem;
  padding-top: 2px;
}
.about-facts dd { margin: 0; color: var(--text); }

/* ---------- Features grid ---------- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
}
.feature {
  background: var(--bg);
  padding: 30px 26px;
}
.feature svg {
  width: 26px;
  height: 26px;
  color: var(--green-bright);
  margin-bottom: 18px;
}
.feature h3 {
  font-family: var(--sans);
  font-size: 1.02rem;
  font-weight: 600;
  color: var(--text);
}
.feature p {
  margin-top: 8px;
  color: var(--text-dim);
  font-size: 0.92rem;
}

/* ---------- Security section ---------- */
.security-flow {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 44px;
}
.flow-step {
  border-top: 1px solid var(--border-strong);
  padding-top: 16px;
}
.flow-step .num {
  font-family: var(--mono);
  color: var(--green-bright);
  font-size: 0.82rem;
}
.flow-step h3 {
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 600;
  margin-top: 8px;
  color: var(--text);
}
.flow-step p {
  margin-top: 8px;
  color: var(--text-dim);
  font-size: 0.9rem;
}

.policy-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
}
.policy-list li {
  background: var(--surface);
  padding: 16px 20px;
  font-size: 0.94rem;
  color: var(--text-dim);
  display: flex;
  gap: 12px;
}
.policy-list li::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green-bright);
  margin-top: 8px;
  flex-shrink: 0;
}
.policy-list strong { color: var(--text); font-weight: 600; }

.note {
  margin-top: 28px;
  font-size: 0.85rem;
  color: var(--text-faint);
  border-left: 2px solid var(--border-strong);
  padding-left: 16px;
}

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}
.contact-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 28px;
}
.contact-card h3 {
  font-family: var(--sans);
  font-size: 0.95rem;
  color: var(--text-faint);
  font-weight: 500;
  margin-bottom: 10px;
}
.contact-card .val {
  font-size: 1.05rem;
  color: var(--text);
}
.contact-card .val a { color: var(--green-bright); }

/* ---------- Footer ---------- */
.site-footer {
  padding: 36px 0;
}
.site-footer .wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
.site-footer, .site-footer a {
  color: var(--text-faint);
  font-size: 0.85rem;
}
.footer-links {
  display: flex;
  gap: 22px;
}

/* ---------- Privacy policy page ---------- */
.policy-doc {
  padding: 64px 0 100px;
  max-width: 760px;
}
.policy-doc .updated {
  color: var(--text-faint);
  font-family: var(--mono);
  font-size: 0.8rem;
  margin-bottom: 8px;
  display: block;
}
.policy-doc h1 {
  font-size: clamp(1.9rem, 3.4vw, 2.5rem);
}
.policy-doc h2 {
  font-size: 1.25rem;
  margin-top: 46px;
  margin-bottom: 14px;
  color: #fff;
}
.policy-doc p, .policy-doc li {
  color: var(--text-dim);
  font-size: 0.98rem;
  margin-top: 12px;
}
.policy-doc ul {
  padding-left: 20px;
}
.policy-doc a { color: var(--green-bright); }
.back-link {
  display: inline-block;
  margin-bottom: 36px;
  font-size: 0.88rem;
  color: var(--text-dim);
}

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .hero .wrap { grid-template-columns: 1fr; gap: 44px; }
  .section-head { grid-template-columns: 1fr; gap: 18px; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .security-flow { grid-template-columns: 1fr; gap: 28px; }
  .contact-grid { grid-template-columns: 1fr; gap: 20px; }
  .about-facts div { grid-template-columns: 1fr; gap: 4px; }
}

@media (max-width: 600px) {
  .wrap { padding: 0 20px; }
  .main-nav { display: none; }
  .feature-grid { grid-template-columns: 1fr; }
  .lc-row { grid-template-columns: 1fr 70px; grid-template-areas: "desc amt" "meta meta"; }
  .lc-date { display: none; }
  .lc-desc { grid-area: desc; }
  .lc-amt { grid-area: amt; }
  .lc-cat { grid-area: meta; text-align: left; width: fit-content; }
  .site-footer .wrap { flex-direction: column; align-items: flex-start; }
}
