/* Shared styles for the job-ledger.app landing page and the legal pages.
   Colors match the app (public/index.html). */
:root {
  --ink: #202124;
  --paper: #eef2f7;
  --panel: #ffffff;
  --line: #dbe1e8;
  --blue: #2f70bc;
  --blue-dark: #23548f;
  --gray-accent: #606060;
  --muted: #4e5761;
  --mono: ui-monospace, "SF Mono", "Cascadia Mono", Menlo, Consolas, "Roboto Mono", monospace;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--paper);
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 28px 28px;
  background-attachment: fixed;
  line-height: 1.55;
}

a { color: var(--blue-dark); }

/* ---------- Top bar ---------- */
.site-header {
  background: var(--gray-accent);
  color: #ffffff;
  padding: 14px 20px;
}
.site-header .inner {
  max-width: 1040px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.brand-group { display: flex; align-items: center; gap: 10px; color: #ffffff; text-decoration: none; }
.brand-logo {
  height: 32px; width: 32px; object-fit: contain; display: block;
  background: #ffffff; border-radius: 6px; padding: 3px;
}
.brand {
  font-family: var(--mono); letter-spacing: 2px; font-size: 15px; text-transform: uppercase;
}
.site-nav { display: flex; align-items: center; gap: 18px; }
.site-nav a {
  color: #ffffff; text-decoration: none; font-family: var(--mono);
  font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px;
}
.site-nav a:hover { text-decoration: underline; }
.site-nav .nav-cta {
  background: var(--blue); padding: 8px 12px; border-radius: 3px;
}
.site-nav .nav-cta:hover { background: var(--blue-dark); text-decoration: none; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; text-decoration: none; text-align: center;
  font-family: var(--mono); font-size: 15px; font-weight: 600; letter-spacing: 0.5px; text-transform: uppercase;
  padding: 14px 22px; border-radius: 3px; border: 1px solid var(--blue);
}
.btn-primary { background: var(--blue); color: #ffffff; }
.btn-primary:hover { background: var(--blue-dark); border-color: var(--blue-dark); }
.btn-secondary { background: #ffffff; color: var(--blue-dark); }
.btn-secondary:hover { background: #f3f7fc; }

/* ---------- Landing sections ---------- */
.wrap { max-width: 1040px; margin: 0 auto; padding: 0 20px; }

.hero { padding: 64px 0 48px; }
.hero-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 40px; align-items: center; }
.eyebrow {
  font-family: var(--mono); font-size: 13px; font-weight: 600; letter-spacing: 1px; text-transform: uppercase;
  color: var(--blue-dark); margin: 0 0 14px;
}
.hero h1 {
  font-size: 46px; line-height: 1.1; margin: 0 0 18px; letter-spacing: -0.5px; text-wrap: balance;
}
.hero .lede { font-size: 19px; color: var(--muted); margin: 0 0 28px; max-width: 34em; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-note { font-size: 14px; color: var(--muted); margin: 14px 0 0; }

/* A small "ledger sheet" illustration made of plain HTML */
.ledger-card {
  background: var(--panel); border: 1px solid var(--line); border-radius: 4px;
  box-shadow: 6px 6px 0 rgba(28, 32, 36, 0.06); padding: 22px;
}
.ledger-card h3 { margin: 0 0 4px; font-size: 18px; }
.ledger-card .sub { margin: 0 0 16px; font-size: 13px; color: var(--muted); }
.ledger-row {
  display: flex; justify-content: space-between; gap: 12px;
  padding: 9px 0; border-bottom: 1px dashed var(--line); font-size: 14px;
}
.ledger-row span:last-child { font-family: var(--mono); white-space: nowrap; }
.ledger-row.total { border-bottom: none; border-top: 2px solid var(--ink); margin-top: 6px; font-weight: 700; }
.ledger-row.profit span:last-child { color: #2f7d5a; }
.meter { height: 8px; background: var(--paper); border-radius: 4px; margin: 14px 0 6px; overflow: hidden; }
.meter div { height: 100%; width: 72%; background: var(--blue); }
.meter-label { font-size: 13px; color: var(--muted); font-family: var(--mono); }

.section { padding: 48px 0; }
.section h2 { font-size: 30px; margin: 0 0 8px; letter-spacing: -0.3px; }
.section .section-lede { color: var(--muted); margin: 0 0 28px; font-size: 17px; }

.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.feature {
  background: var(--panel); border: 1px solid var(--line); border-radius: 4px; padding: 20px;
}
.feature .num {
  font-family: var(--mono); font-size: 13px; font-weight: 600; color: var(--blue-dark); letter-spacing: 0.5px;
}
.feature h3 { margin: 6px 0 6px; font-size: 17px; }
.feature p { margin: 0; color: var(--muted); font-size: 15px; }

.pricing { display: grid; grid-template-columns: repeat(2, minmax(0, 320px)); gap: 16px; }
.price-card {
  background: var(--panel); border: 1px solid var(--line); border-radius: 4px; padding: 24px;
  display: flex; flex-direction: column;
}
.price-card.best { border: 2px solid var(--blue); }
.price-card .plan {
  font-family: var(--mono); font-size: 13px; font-weight: 600; letter-spacing: 1px; text-transform: uppercase; color: var(--muted);
}
.price-card .amount { font-size: 40px; font-weight: 700; margin: 6px 0 2px; }
.price-card .amount small { font-size: 16px; font-weight: 400; color: var(--muted); }
.price-card .save { font-size: 14px; color: #2f7d5a; font-weight: 600; min-height: 1.5em; margin: 0 0 18px; }
.price-card .btn { margin-top: auto; }
.pricing-notes { margin: 20px 0 0; padding: 0; list-style: none; color: var(--muted); font-size: 15px; }
.pricing-notes li { padding: 3px 0; }
.pricing-notes li::before { content: "✓  "; color: var(--blue); font-weight: 700; }

.cta-band {
  background: var(--gray-accent); color: #ffffff; border-radius: 4px; padding: 36px 28px; text-align: center;
}
.cta-band h2 { color: #ffffff; margin: 0 0 8px; }
.cta-band p { margin: 0 0 22px; color: #e6e6e6; }

/* ---------- Legal pages ---------- */
.doc {
  max-width: 760px; margin: 32px auto 60px; background: var(--panel);
  border: 1px solid var(--line); border-radius: 4px; padding: 36px 40px;
}
.doc h1 { margin: 0 0 4px; font-size: 32px; }
.doc .updated { color: var(--muted); font-size: 14px; margin: 0 0 28px; font-family: var(--mono); }
.doc h2 { font-size: 20px; margin: 30px 0 8px; }
.doc p, .doc li { font-size: 16px; }
.doc ul { padding-left: 22px; }
.doc .summary {
  background: var(--paper); border-left: 3px solid var(--blue); padding: 14px 18px; margin: 0 0 8px;
}
.doc .summary p { margin: 0; }

/* ---------- Footer ---------- */
.site-footer { padding: 28px 20px 40px; color: var(--muted); font-size: 14px; }
.site-footer .inner {
  max-width: 1040px; margin: 0 auto; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
}
.site-footer nav { display: flex; gap: 18px; flex-wrap: wrap; }
.site-footer a { color: var(--muted); }

@media (max-width: 820px) {
  .hero { padding: 40px 0 32px; }
  .hero-grid { grid-template-columns: 1fr; gap: 28px; }
  .hero h1 { font-size: 34px; }
  .hero .lede { font-size: 17px; }
  .features { grid-template-columns: 1fr; }
  .pricing { grid-template-columns: 1fr; }
  .site-nav .hide-sm { display: none; }
  .doc { margin: 16px; padding: 24px 20px; }
}

/* ---------- Trade chooser (job-ledger.app) ---------- */
.trade-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin: 28px 0 8px; }
.trade-card {
  display: flex; flex-direction: column; background: var(--panel); border: 1px solid var(--line);
  border-radius: 4px; padding: 24px; color: var(--ink); text-decoration: none;
  box-shadow: 6px 6px 0 rgba(28, 32, 36, 0.06);
}
.trade-card:hover { border-color: var(--blue); }
.trade-card h2 { font-size: 22px; margin: 6px 0 8px; }
.trade-card p { margin: 0 0 16px; color: var(--muted); }
.trade-tag {
  font-family: var(--mono); font-size: 13px; font-weight: 600; letter-spacing: 1px; text-transform: uppercase;
  color: var(--blue-dark);
}
.trade-go { margin-top: auto; font-weight: 600; color: var(--blue-dark); }
@media (max-width: 820px) {
  .trade-grid { grid-template-columns: 1fr; }
}
