/* laijo.com
   One stylesheet for the whole site. Each page sets --accent inline in its
   head, so the shared rules below pick up the right brand colour. */

:root {
  --bg: #FDFCFB;
  --surface: #FFFFFF;
  --text: #1A1622;
  --muted: #5F5A6B;
  --border: #E7E3EE;
  --accent: #4F46E5;
  --radius: 14px;
  --measure: 68ch;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #131019;
    --surface: #1C1826;
    --text: #F3F0F8;
    --muted: #A9A2B8;
    --border: #2E2839;
  }
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.65 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  text-rendering: optimizeLegibility;
}

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

/* Keyboard users need to be able to jump the nav. */
.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--accent);
  color: #fff;
  padding: 10px 16px;
  z-index: 10;
}
.skip:focus { left: 0; }

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}

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

.site-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 28px;
  max-width: 1040px;
  margin: 0 auto;
  padding: 22px 24px;
  border-bottom: 1px solid var(--border);
}

.brand {
  font-weight: 800;
  font-size: 20px;
  letter-spacing: -0.02em;
  color: var(--text);
  text-decoration: none;
}

.site-header nav {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 20px;
  margin-left: auto;
}

.site-header nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  padding: 6px 0;
}

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

/* ---------- layout ---------- */

main {
  max-width: 1040px;
  margin: 0 auto;
  padding: 8px 24px 72px;
}

.hero { padding: 56px 0 40px; max-width: var(--measure); }

.hero h1 {
  font-size: clamp(2rem, 5.5vw, 3.1rem);
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin: 0 0 18px;
}

.hero p.lede {
  font-size: clamp(1.05rem, 2.4vw, 1.3rem);
  color: var(--muted);
  margin: 0 0 12px;
}

.eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}

section { margin: 40px 0; }
section h2 { font-size: 1.45rem; letter-spacing: -0.02em; margin: 0 0 14px; }

p, li { max-width: var(--measure); }

/* ---------- cards ---------- */

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
  margin: 28px 0;
}

.card {
  display: block;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  text-decoration: none;
  color: inherit;
}

a.card:hover { border-color: var(--accent); }

.card h3 { margin: 0 0 8px; font-size: 1.15rem; letter-spacing: -0.01em; }
.card p { color: var(--muted); margin: 0; font-size: 15px; }

.pill {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
  color: var(--muted);
  margin-bottom: 12px;
}

/* ---------- feature list ---------- */

.features { list-style: none; padding: 0; margin: 22px 0; }

.features li {
  padding: 12px 0 12px 30px;
  position: relative;
  border-bottom: 1px solid var(--border);
}

.features li:last-child { border-bottom: 0; }

.features li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 21px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
}

/* ---------- callout ---------- */

.callout {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius);
  padding: 20px 24px;
  margin: 28px 0;
}

.callout p:last-child { margin-bottom: 0; }

/* ---------- legal documents ---------- */

.prose { max-width: var(--measure); padding: 40px 0 0; }
.prose h1 { font-size: clamp(1.8rem, 4.5vw, 2.4rem); letter-spacing: -0.03em; margin: 0 0 8px; }
.prose h2 {
  font-size: 1.28rem;
  letter-spacing: -0.01em;
  margin: 38px 0 10px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
}
.prose h2:first-of-type { border-top: 0; padding-top: 0; }
.prose strong { font-weight: 650; }
.prose ul { padding-left: 22px; }
.prose li { margin: 6px 0; }

.prose table {
  border-collapse: collapse;
  width: 100%;
  margin: 20px 0;
  font-size: 15px;
}

.prose th, .prose td {
  border: 1px solid var(--border);
  padding: 10px 12px;
  text-align: left;
  vertical-align: top;
}

.prose th { background: var(--surface); font-weight: 650; }

/* On a phone the three-column data tables get very tight, so claw back
   room from the padding and type rather than let them overflow. */
@media (max-width: 560px) {
  .prose table { font-size: 14px; }
  .prose th, .prose td { padding: 8px 7px; }
  body { font-size: 16px; }
  main { padding-left: 18px; padding-right: 18px; }
  .site-header, .site-footer { padding-left: 18px; padding-right: 18px; }
}

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

.site-footer {
  max-width: 1040px;
  margin: 0 auto;
  padding: 30px 24px 56px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 14px;
}

.site-footer p { margin: 6px 0; }
.legal-identity { line-height: 1.6; }
.copyright { margin-top: 14px; }

@media print {
  .site-header nav, .skip { display: none; }
  body { background: #fff; color: #000; font-size: 11pt; }
  .prose h2 { break-after: avoid; }
}
