/* lagos-money — neutral functional skin (placeholder edition)
   Skin contract with the design round:
   - Every visual decision lives in the --lm-* variables below.
   - HTML carries stable hooks: lm-* classes + data-page / data-hook attributes.
   - Final skin = replace variable values (and at most this file). No HTML edits
     needed for a pure reskin. No brand colors, gradients or illustrations here. */

:root {
  --lm-bg: #ffffff;
  --lm-fg: #141414;
  --lm-muted: #5a5a5a;
  --lm-line: #dcdcdc;
  --lm-soft: #f6f6f6;
  --lm-accent: #141414;      /* grayscale stand-in; design round replaces */
  --lm-accent-fg: #ffffff;
  --lm-danger: #141414;      /* neutral: errors use weight/border, not color */
  --lm-radius: 8px;
  --lm-maxw: 46rem;
  --lm-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--lm-bg);
  color: var(--lm-fg);
  font-family: var(--lm-font);
  font-size: 1rem;
  line-height: 1.55;
}

h1 { font-size: 1.75rem; line-height: 1.2; margin: 0 0 0.75rem; }
h2 { font-size: 1.25rem; margin: 2rem 0 0.75rem; }
h3 { font-size: 1.05rem; margin: 0 0 0.25rem; }
p  { margin: 0 0 1rem; }
a  { color: var(--lm-accent); }

.lm-skip {
  position: absolute;
  left: -9999px;
}
.lm-skip:focus {
  left: 0.5rem;
  top: 0.5rem;
  background: var(--lm-accent);
  color: var(--lm-accent-fg);
  padding: 0.5rem 0.75rem;
  z-index: 10;
}

/* header / nav */
.lm-header {
  border-bottom: 1px solid var(--lm-line);
  background: var(--lm-bg);
}
.lm-nav {
  max-width: var(--lm-maxw);
  margin: 0 auto;
  padding: 0.75rem 1rem;
}
.lm-brand {
  font-weight: 700;
  text-decoration: none;
  color: var(--lm-fg);
  display: inline-block;
  margin-bottom: 0.5rem;
}
.lm-tag {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border: 1px solid var(--lm-fg);
  border-radius: 999px;
  padding: 0.1rem 0.45rem;
  margin-left: 0.5rem;
  vertical-align: middle;
}
.lm-navlinks {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1rem;
}
.lm-navlinks a {
  color: var(--lm-fg);
  text-decoration: none;
  padding: 0.35rem 0;
  display: inline-block;
}
.lm-navlinks a[aria-current="page"] {
  font-weight: 700;
  border-bottom: 2px solid var(--lm-accent);
}

/* main */
.lm-main {
  max-width: var(--lm-maxw);
  margin: 0 auto;
  padding: 1.25rem 1rem 2.5rem;
}
.lm-lead {
  font-size: 1.05rem;
  color: var(--lm-muted);
}

/* hero */
.lm-hero {
  padding: 1.5rem 0 0.5rem;
}

/* button */
.lm-btn {
  display: inline-block;
  background: var(--lm-accent);
  color: var(--lm-accent-fg);
  text-decoration: none;
  font-weight: 700;
  padding: 0.8rem 1.25rem;
  border-radius: var(--lm-radius);
  min-height: 44px;
}

/* cards */
.lm-cards {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.75rem;
}
.lm-cards a {
  display: block;
  border: 1px solid var(--lm-line);
  border-radius: var(--lm-radius);
  padding: 0.9rem 1rem;
  text-decoration: none;
  color: var(--lm-fg);
  background: var(--lm-bg);
}
.lm-cards a p { margin: 0; color: var(--lm-muted); font-size: 0.95rem; }

/* notices / hints */
.lm-notice {
  border: 1px solid var(--lm-line);
  border-left: 4px solid var(--lm-accent);
  background: var(--lm-soft);
  padding: 0.75rem 1rem;
  border-radius: var(--lm-radius);
}
.lm-hint { color: var(--lm-muted); font-size: 0.9rem; }
.lm-error {
  border: 1px solid var(--lm-fg);
  background: var(--lm-soft);
  padding: 0.75rem 1rem;
  border-radius: var(--lm-radius);
  font-weight: 600;
}

/* form */
.lm-form {
  display: grid;
  gap: 0.9rem;
  margin: 1.25rem 0;
}
.lm-field { display: grid; gap: 0.3rem; }
.lm-field > span { font-weight: 600; }
.lm-field input,
.lm-field select {
  width: 100%;
  font: inherit;
  font-size: 1rem;               /* >=16px: no iOS auto-zoom */
  min-height: 44px;              /* touch target */
  padding: 0.55rem 0.7rem;
  border: 1px solid var(--lm-line);
  border-radius: var(--lm-radius);
  background: var(--lm-bg);
  color: var(--lm-fg);
}
.lm-field input:focus,
.lm-field select:focus {
  outline: 2px solid var(--lm-accent);
  outline-offset: 1px;
}

/* results */
.lm-figures {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  margin: 0 0 1rem;
}
.lm-figures > div {
  border: 1px solid var(--lm-line);
  border-radius: var(--lm-radius);
  padding: 0.75rem;
  background: var(--lm-soft);
}
.lm-figures dt {
  font-size: 0.8rem;
  color: var(--lm-muted);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.lm-figures dd {
  margin: 0.15rem 0 0;
  font-size: 1.15rem;
  font-weight: 700;
  word-break: break-word;
}
.lm-verdict {
  font-weight: 700;
  border: 1px solid var(--lm-line);
  border-radius: var(--lm-radius);
  padding: 0.75rem 1rem;
}
.lm-verdict[data-state="ok"]  { border-left: 4px solid var(--lm-accent); }
.lm-verdict[data-state="bad"] { border-left: 4px solid var(--lm-muted); }

/* comparison table */
.lm-tablewrap { overflow-x: auto; }
.lm-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}
.lm-table th,
.lm-table td {
  text-align: left;
  padding: 0.55rem 0.6rem;
  border-bottom: 1px solid var(--lm-line);
  white-space: nowrap;
}
.lm-table tr[data-selected="true"] td { font-weight: 700; background: var(--lm-soft); }

/* footer */
.lm-footer {
  border-top: 1px solid var(--lm-line);
  max-width: var(--lm-maxw);
  margin: 0 auto;
  padding: 1.25rem 1rem 2.5rem;
  color: var(--lm-muted);
  font-size: 0.9rem;
}

@media (min-width: 40rem) {
  .lm-nav {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
  }
  .lm-brand { margin-bottom: 0; }
  .lm-cards { grid-template-columns: repeat(3, 1fr); }
}
