/* Landing-page-only styles (index.html). Loaded after styles.css, which the
   docs and development-log pages also use, so nothing here changes them.
   Same Carbon-derived brand as styles.css: IBM Plex, square corners, one blue,
   flat surfaces. Every selector is prefixed lp- to avoid cascade collisions. */

.lp-mono { font-family: var(--mono); }

/* Hero: two columns, headline left, rejected-posting illustration right */
.lp-hero { padding: 80px 0; }
.lp-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 56px;
  align-items: center;
}
.lp-hero h1 { font-weight: 500; }
.lp-hero .lede { margin: 22px 0 30px; }
.lp-hero .btn-primary { border-color: var(--navy); }

.lp-ledger { margin: 0; border: 1px solid #2e3237; background: #1c1f23; }
.lp-ledger header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid #2e3237;
  font: 500 0.72rem/1.3 var(--mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
}
.lp-ledger table {
  width: 100%;
  border-collapse: collapse;
  background: transparent;
  font: 400 0.85rem/1.4 var(--mono);
  font-variant-numeric: tabular-nums;
  color: #f2f4f8;
}
.lp-ledger th {
  background: transparent;
  color: rgba(255, 255, 255, 0.7);
  font: 500 0.7rem/1 var(--mono);
  letter-spacing: 0.08em;
  padding: 10px 16px;
  border-bottom: 1px solid #2e3237;
}
.lp-ledger td { padding: 10px 16px; border-bottom: 1px solid #2e3237; font-size: 0.85rem; }
.lp-ledger .n { text-align: right; }
.lp-ledger tr.t td { font-weight: 500; border-bottom: 0; }
.lp-reject {
  margin: 16px;
  padding: 14px 16px;
  border-left: 3px solid #ff8389;
  background: rgba(255, 131, 137, 0.08);
  font: 400 0.8rem/1.55 var(--mono);
  color: #f2f4f8;
}
.lp-reject b { display: block; color: #ff8389; font-weight: 500; margin-bottom: 4px; }
.lp-ledger footer {
  padding: 10px 16px;
  border-top: 1px solid #2e3237;
  font: 400 0.75rem/1.4 var(--mono);
  color: rgba(255, 255, 255, 0.7);
}

/* Glance strip: three ruled columns */
.lp-glance {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0;
}
.lp-glance > div { padding: 0 28px; border-right: 1px solid var(--border); }
.lp-glance > div:first-child { padding-left: 0; }
.lp-glance > div:last-child { border-right: 0; }
.lp-glance dt {
  font: 500 0.74rem/1 var(--mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--navy);
  margin-bottom: 10px;
}
.lp-glance dd { margin: 0; font-size: 0.97rem; color: var(--ink-soft); }

/* Sections */
.lp-rule { border-top: 1px solid var(--border); }
.lp-label {
  display: block;
  font: 500 0.74rem/1 var(--mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--navy);
  margin-bottom: 16px;
}
.lp-head { margin-bottom: 40px; }
.lp-head h2 { margin-bottom: 14px; }
.lp-head p { max-width: 64ch; font-size: 1.05rem; }
.lp-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: 56px;
  align-items: start;
}
.lp-body { display: grid; gap: 18px; }
.lp-body p { margin: 0; max-width: 64ch; }
.lp-body strong { color: var(--ink); font-weight: 500; }
.lp-fine {
  font-size: 0.85rem;
  color: var(--muted);
  border-top: 1px solid var(--border);
  padding-top: 16px;
  margin: 28px 0 0;
  max-width: none;
}

/* Posting pipeline */
.lp-pipe { border: 1px solid var(--border); margin: 0; padding: 0; list-style: none; background: var(--surface); }
.lp-pipe li {
  display: grid;
  grid-template-columns: minmax(0, 9rem) minmax(0, 1fr);
  gap: 16px;
  padding: 14px 20px;
  border-bottom: 1px dashed var(--border);
  font-size: 0.93rem;
  color: var(--ink-soft);
}
.lp-pipe b { font: 500 0.8rem/1.6 var(--mono); color: var(--muted); }
.lp-pipe li.core {
  background: rgba(15, 98, 254, 0.08);
  border-top: 1px solid var(--navy);
  border-bottom: 0;
  color: var(--ink);
}
.lp-pipe li.core b { color: var(--navy); }

/* Ruled grid (replaces the stack of bordered cards) */
.lp-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--border);
  border-left: 1px solid var(--border);
}
.lp-grid.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.lp-grid article {
  padding: 26px;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}
.lp-grid h3 { margin-bottom: 10px; }
.lp-grid p { margin: 0; font-size: 0.94rem; }

.lp-compose { border: 1px solid var(--border); }
.lp-compose > div { padding: 20px 22px; border-bottom: 1px solid var(--border); background: var(--surface); }
.lp-compose > div:last-child { border-bottom: 0; }
.lp-compose p { font-size: 0.93rem; margin: 8px 0 0; }

/* Regulatory table: min-width so it scrolls inside .table-wrap on phones */
.lp-table { min-width: 520px; }
.lp-table td:first-child { color: var(--ink); font-weight: 500; white-space: nowrap; }

.lp-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 36px 0 0; padding: 0; list-style: none; }
.lp-chips li { font: 400 0.8rem/1 var(--mono); padding: 8px 12px; border: 1px solid var(--border); background: var(--surface); }
.lp-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  border-top: 1px solid var(--border);
  padding-top: 32px;
  margin-top: 40px;
}
.lp-stats b {
  display: block;
  font: 500 2.4rem/1 var(--serif);
  color: var(--navy);
  margin-bottom: 8px;
  font-variant-numeric: tabular-nums;
}
.lp-stats span { color: var(--muted); font-size: 0.9rem; }

/* Contact band + addr */
.lp-contact { background: var(--navy-deep); color: #fff; padding: 72px 0; }
.lp-contact h2 { color: #fff; }
.lp-contact p { color: rgba(255, 255, 255, 0.8); max-width: 64ch; }
.lp-addr {
  margin-top: 28px;
  font: 500 1.15rem/1.3 var(--mono);
  color: #fff;
  user-select: all;
  word-break: break-all;
}
.lp-contact .btn-primary { border-color: var(--navy); }

.lp-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.btn-outline { background: transparent; color: var(--navy); border: 1px solid var(--navy); }
.btn-outline:hover { background: rgba(15, 98, 254, 0.08); }

a:focus-visible, .btn:focus-visible { outline: 2px solid var(--navy); outline-offset: 3px; }
.hero a:focus-visible, .lp-contact a:focus-visible { outline-color: var(--gold); }

@media (max-width: 1000px) {
  .lp-grid.four { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .lp-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .lp-hero { padding: 48px 0; }
  .lp-hero-grid, .lp-split { grid-template-columns: minmax(0, 1fr); gap: 36px; }
}
@media (max-width: 800px) {
  .lp-glance { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .lp-glance > div { border-right: 0; border-bottom: 1px solid var(--border); padding: 20px 0; }
  .lp-glance > div:last-child { border-bottom: 0; }
}
@media (max-width: 600px) {
  .lp-grid, .lp-grid.four { grid-template-columns: minmax(0, 1fr); }
  .lp-pipe li { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .lp-table td:first-child { white-space: normal; }
  .lp-stats { grid-template-columns: minmax(0, 1fr); }
}

/* Worked examples */
.lp-sim { border: 1px solid var(--border); background: var(--surface); }
.lp-tabs { display: flex; overflow-x: auto; border-bottom: 1px solid var(--border); background: var(--surface-alt); }
.lp-tab {
  flex: 0 0 auto;
  padding: 14px 18px;
  font: 500 0.88rem/1.2 var(--sans);
  color: var(--ink-soft);
  background: transparent;
  border: 0;
  border-right: 1px solid var(--border);
  border-bottom: 3px solid transparent;
  cursor: pointer;
  white-space: nowrap;
}
.lp-tab:hover { color: var(--navy); }
.lp-tab[aria-selected="true"] { background: var(--surface); color: var(--ink); border-bottom-color: var(--navy); }
.lp-panel { padding: 32px; }
.lp-panel + .lp-panel { border-top: 1px solid var(--border); }
.lp-js .lp-panel[data-inactive] { display: none; }
.lp-js .lp-panel + .lp-panel { border-top: 0; }
.lp-panel-grid { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: 40px; align-items: start; }
.lp-code { display: inline-block; font: 500 0.74rem/1 var(--mono); letter-spacing: 0.08em; color: var(--navy); background: rgba(15, 98, 254, 0.08); padding: 6px 9px; margin-bottom: 16px; }
.lp-panel-text h3 { font-size: 1.35rem; margin-bottom: 12px; }
.lp-panel-text p { margin: 0 0 22px; font-size: 0.97rem; }
.lp-facts { margin: 0; border-top: 1px solid var(--border); }
.lp-facts > div { display: flex; justify-content: space-between; gap: 16px; padding: 11px 0; border-bottom: 1px solid var(--border); font-size: 0.9rem; }
.lp-facts dt { color: var(--muted); }
.lp-facts dd { margin: 0; color: var(--ink); font-weight: 500; text-align: right; font-variant-numeric: tabular-nums; }

.lp-panel-ledger { min-width: 0; overflow-x: auto; }
.lp-journal, .lp-mini { width: 100%; border-collapse: collapse; background: transparent; font: 400 0.84rem/1.45 var(--mono); font-variant-numeric: tabular-nums; margin: 0 0 16px; min-width: 400px; }
.lp-journal caption, .lp-mini caption { text-align: left; font: 500 0.72rem/1 var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); padding: 0 0 10px; }
.lp-journal th, .lp-mini th { background: transparent; color: var(--muted); font: 500 0.7rem/1 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; padding: 9px 10px; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); text-align: left; }
.lp-journal td, .lp-mini td { padding: 8px 10px; border-bottom: 1px solid var(--border); font-size: 0.84rem; color: var(--ink); }
.lp-journal .n, .lp-mini .n, .lp-journal th.n, .lp-mini th.n { text-align: right; }
.lp-journal td.cr { padding-left: 28px; color: var(--ink-soft); }
.lp-journal tr.lp-note td { font: 400 0.75rem/1.4 var(--sans); color: var(--muted); padding: 10px 10px 4px; border-bottom: 0; }
.lp-journal tfoot td { font-weight: 600; border-top: 2px solid var(--ink); border-bottom: 0; }
.lp-ac { color: var(--navy); margin-right: 6px; }
.lp-mini tr.skip td { color: var(--muted); }
.lp-mini tr.t td { font-weight: 600; border-bottom: 0; }
.lp-ok, .lp-guard { margin: 0 0 10px; padding: 11px 14px; font-size: 0.86rem; max-width: none; background: var(--surface-alt); border-left: 3px solid var(--navy); color: var(--ink-soft); }
.lp-ok b, .lp-guard b { color: var(--ink); font-weight: 600; }

@media (max-width: 860px) {
  .lp-panel { padding: 24px 18px; }
  .lp-panel-grid { grid-template-columns: minmax(0, 1fr); gap: 28px; }
}

/* Simplification notices in the worked examples */
.lp-scope { margin: 0 0 24px; padding: 16px 20px; background: var(--surface-alt); border-left: 4px solid var(--navy); font-size: 0.95rem; color: var(--ink-soft); max-width: none; }
.lp-scope b { color: var(--ink); font-weight: 600; }
.lp-simple { display: inline-block; margin: 0 0 16px 6px; padding: 6px 9px; font: 500 0.72rem/1 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-soft); border: 1px solid var(--border); }

/* Functional areas overview, directly under the hero */
.lp-areas-section { padding-bottom: 72px; }
.lp-areas { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--border); border-left: 1px solid var(--border); }
.lp-area { display: flex; flex-direction: column; gap: 8px; padding: 24px; text-decoration: none; color: inherit; background: var(--surface); border-right: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.lp-area h3 { margin: 0; font-size: 1.05rem; }
.lp-area p { margin: 0; font-size: 0.9rem; color: var(--ink-soft); }
.lp-area:hover { background: var(--surface-alt); }
.lp-area:hover h3 { color: var(--navy); }
.lp-area-tag { margin-top: auto; padding-top: 6px; font: 500 0.7rem/1 var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--navy); }
@media (max-width: 860px) { .lp-areas { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .lp-areas { grid-template-columns: minmax(0, 1fr); } }

/* Header menu: tighten between phone and desktop so it never overflows (styles.css only hides links below 720px) */
@media (max-width: 1000px) {
  .site-nav { gap: 14px; }
  .site-nav a { font-size: 0.86rem; }
  .nav-cta { padding: 8px 12px; }
}
@media (min-width: 721px) and (max-width: 860px) {
  .site-nav a:not(.nav-cta):nth-child(n+4) { display: none; }
}

/* Keep amounts on one line in the hero ledger on narrow screens */
.lp-ledger td.n, .lp-ledger th.n { white-space: nowrap; }
@media (max-width: 480px) {
  .lp-ledger td, .lp-ledger th { padding-left: 12px; padding-right: 12px; }
}

/* Bills of costs section */
.lp-split-bill { grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: 48px; }
.lp-steps { margin: 0; padding: 0; list-style: none; counter-reset: step; border-top: 1px solid var(--border); }
.lp-steps li { counter-increment: step; position: relative; padding: 16px 0 16px 44px; border-bottom: 1px solid var(--border); font-size: 0.96rem; color: var(--ink-soft); }
.lp-steps li::before { content: counter(step); position: absolute; left: 0; top: 16px; width: 26px; height: 26px; display: grid; place-items: center; font: 500 0.78rem/1 var(--mono); color: var(--navy); border: 1px solid var(--navy); }
.lp-steps b { color: var(--ink); font-weight: 600; }
.lp-billfig { margin: 0; align-self: start; border: 1px solid var(--border); background: var(--surface); position: sticky; top: 92px; min-width: 0; overflow-x: auto; }
.lp-billfig header { display: flex; justify-content: space-between; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--border); font: 500 0.72rem/1.3 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.lp-bill { width: 100%; min-width: 0; border-collapse: collapse; background: transparent; font-variant-numeric: tabular-nums; }
.lp-bill th { background: transparent; color: var(--muted); font: 500 0.7rem/1 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; padding: 10px 16px; border-bottom: 1px solid var(--border); text-align: left; }
.lp-bill td { padding: 9px 16px; border-bottom: 1px solid var(--border); font-size: 0.88rem; color: var(--ink); }
.lp-bill .n, .lp-bill th.n { text-align: right; white-space: nowrap; font-family: var(--mono); }
.lp-bill tr.sec td { padding: 12px 16px 4px; border-bottom: 0; font: 500 0.72rem/1.3 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--navy); }
.lp-bill tfoot td { font-weight: 600; border-top: 2px solid var(--ink); border-bottom: 0; }
.lp-billfig footer { padding: 10px 16px; border-top: 1px solid var(--border); font-size: 0.8rem; color: var(--muted); }
@media (max-width: 860px) {
  .lp-split-bill { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .lp-billfig { position: static; }
}

@media (max-width: 480px) {
  .lp-bill { min-width: 0; }
  .lp-bill th, .lp-bill td { padding-left: 10px; padding-right: 10px; }
  .lp-bill td { font-size: 0.82rem; }
  .lp-bill .n { font-size: 0.78rem; }
  .lp-billfig header { flex-direction: column; gap: 2px; }
}

/* Phones: let the journal and allocation tables fit instead of scrolling sideways */
@media (max-width: 480px) {
  .lp-journal, .lp-mini { min-width: 0; }
  .lp-journal th, .lp-journal td, .lp-mini th, .lp-mini td { padding-left: 6px; padding-right: 6px; }
  .lp-journal td, .lp-mini td { font-size: 0.76rem; }
  .lp-journal td.cr { padding-left: 16px; }
  .lp-ac { display: block; margin: 0 0 1px; }
}
@media (max-width: 480px) {
  .lp-mini th { letter-spacing: 0.02em; font-size: 0.62rem; padding-left: 4px; padding-right: 4px; }
  .lp-mini td { font-size: 0.72rem; padding-left: 4px; padding-right: 4px; }
}

/* Two tables stacked inside one figure */
.lp-billfig .lp-bill + .lp-bill { border-top: 1px solid var(--border); margin-top: 8px; }

/* Windows and workspace illustration */
.lp-deskfig { position: static; }
.lp-desk { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; padding: 16px; }
.lp-screen { border: 2px solid var(--ink); background: var(--surface-alt); padding: 8px; min-width: 0; }
.lp-screen-label { display: block; font: 500 0.66rem/1.2 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.lp-panes { display: grid; grid-template-columns: 1fr 2fr; grid-template-rows: 70px 46px; gap: 6px; }
.lp-pane { border: 1px solid var(--border); background: var(--surface); padding: 6px 8px; font: 500 0.7rem/1.2 var(--mono); color: var(--ink-soft); overflow: hidden; }
.lp-pane.side { grid-row: 1 / 3; }
.lp-pane.main { border-top: 3px solid var(--navy); }
.lp-pane.low { grid-column: 2; }
.lp-panes.floats { position: relative; display: block; height: 122px; }
.lp-pane.float { position: absolute; width: 72%; height: 70px; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15); border-top: 3px solid var(--navy); }
.lp-pane.float.a { top: 0; left: 0; }
.lp-pane.float.b { top: 46px; left: 28%; }
@media (max-width: 480px) { .lp-desk { grid-template-columns: minmax(0, 1fr); } }

/* Product screenshots: a real window, framed like the other figures */
.lp-shot { margin: 40px 0 0; border: 1px solid var(--border); background: var(--surface); min-width: 0; }
.lp-shot a { display: block; }
.lp-shot img { display: block; width: 100%; height: auto; }
.lp-shot figcaption { padding: 10px 16px; border-top: 1px solid var(--border); font-size: 0.85rem; color: var(--muted); }
.lp-shot figcaption b { color: var(--ink); font-weight: 600; }
.lp-shot-pair { display: grid; grid-template-columns: minmax(0, 1fr); gap: 40px; margin-top: 40px; }
.lp-shot-pair .lp-shot { margin: 0; }
.lp-shot-inline { margin-top: 32px; }

/* Printed report samples: page one of a PDF, shown from the top in a fixed frame; the link opens the whole page. */
.lp-docs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; margin-top: 40px; }
.lp-docs.one { grid-template-columns: minmax(0, 1fr); max-width: 560px; }
.lp-docs .lp-shot { margin: 0; }
.lp-doc a { background: var(--surface); }
.lp-doc img { aspect-ratio: 4 / 3; object-fit: cover; object-position: top; }
.lp-doc.wide img { aspect-ratio: 1754 / 1241; object-fit: contain; }
@media (max-width: 720px) { .lp-docs { grid-template-columns: minmax(0, 1fr); } }
