/* ---------------------------------------------------------------------------
   Moab Business Solutions — site styles
   ---------------------------------------------------------------------------
   Built to the professional-services reference: a utility bar carrying the
   phone number, a horizontal nav, a hero that is a headline and two buttons,
   then alternating bands of cards and service boxes down to a contact call to
   action.

   This deliberately supersedes the editorial treatment that was here before.
   The buyer is handing their books to a vendor they have never heard of, and
   familiar and professional is the answer to a trust problem.

   No webfonts and no external requests — the site must load fast on a phone in
   a shop office and must not depend on a CDN staying up.
--------------------------------------------------------------------------- */

:root {
  --paper:       #FFFFFF;
  --band:        #F4F7F9;
  --band-line:   #E4EBF0;
  --deep:        #123A56;
  --deep-2:      #0D2C42;

  --ink:         #1B2A35;
  --ink-soft:    #3C4E5C;
  --ink-muted:   #647683;
  --line:        #DBE3E9;

  --primary:     #1C6EA8;
  --primary-dark:#14547F;
  --primary-tint:#E8F1F7;

  --gold:        #B8892B;
  --good:        #2E7D5B;

  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;

  --measure: 38rem;
  --radius: 4px;
  --shadow: 0 1px 3px rgba(20, 40, 60, 0.08), 0 1px 2px rgba(20, 40, 60, 0.04);
  --shadow-lift: 0 4px 14px rgba(20, 40, 60, 0.10);
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper:       #10181E;
    --band:        #16212A;
    --band-line:   #22303B;
    --deep:        #0B2233;
    --deep-2:      #081A28;

    --ink:         #EAF0F4;
    --ink-soft:    #C4D0D9;
    --ink-muted:   #90A0AC;
    --line:        #263440;

    --primary:     #62A8DA;
    --primary-dark:#4990C4;
    --primary-tint:#172936;

    --gold:        #D6A845;
    --good:        #6FB48F;

    --shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
    --shadow-lift: 0 4px 14px rgba(0, 0, 0, 0.55);
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  font-variant-numeric: tabular-nums;
}

.wrap { max-width: 68rem; margin: 0 auto; padding: 0 1.5rem; }
.narrow { max-width: var(--measure); }

a { color: var(--primary); text-underline-offset: 2px; }
a:hover { color: var(--primary-dark); }
:focus-visible { outline: 3px solid var(--primary); outline-offset: 2px; }

/* ── Utility bar ─────────────────────────────────────────────────────────── */

.topbar { background: var(--deep); color: #DCE8F0; font-size: 0.85rem; }
.topbar .wrap {
  display: flex; flex-wrap: wrap; align-items: center;
  gap: 0.35rem 1.5rem; padding-top: 0.55rem; padding-bottom: 0.55rem;
}
.topbar a { color: #FFFFFF; text-decoration: none; font-weight: 600; }
.topbar a:hover { text-decoration: underline; color: #FFFFFF; }
.topbar .spacer { margin-left: auto; }
.topbar .tel { font-size: 0.95rem; }

/* ── Masthead ────────────────────────────────────────────────────────────── */

.masthead {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 20;
}
.masthead .wrap {
  display: flex; flex-wrap: wrap; align-items: center;
  gap: 0.5rem 2rem; padding-top: 1rem; padding-bottom: 1rem;
}

.wordmark { display: flex; flex-direction: column; text-decoration: none; color: var(--ink); line-height: 1.15; }
.wordmark .name { font-size: 1.25rem; font-weight: 700; letter-spacing: -0.01em; }
.wordmark .tag {
  font-size: 0.7rem; letter-spacing: 0.13em; text-transform: uppercase;
  color: var(--ink-muted); font-weight: 600;
}

nav.primary {
  margin-left: auto; display: flex; flex-wrap: wrap; align-items: center;
  gap: 0.25rem; font-size: 0.92rem;
}
nav.primary a {
  color: var(--ink-soft); text-decoration: none; font-weight: 600;
  padding: 0.5rem 0.85rem; border-radius: var(--radius);
}
nav.primary a:hover { background: var(--primary-tint); color: var(--primary-dark); }
nav.primary a[aria-current="page"] { color: var(--primary-dark); background: var(--primary-tint); }
nav.primary .nav-cta { background: var(--primary); color: #fff; margin-left: 0.5rem; }
nav.primary .nav-cta:hover { background: var(--primary-dark); color: #fff; }

/* ── Type ────────────────────────────────────────────────────────────────── */

h1, h2, h3 { font-weight: 700; line-height: 1.2; text-wrap: balance; margin: 0 0 0.6em; }
h1 { font-size: clamp(1.95rem, 4.5vw, 2.9rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.45rem, 3vw, 2rem); letter-spacing: -0.015em; }
h3 { font-size: 1.12rem; letter-spacing: -0.005em; }

p { margin: 0 0 1.1em; }
.lede { font-size: clamp(1.08rem, 2vw, 1.25rem); line-height: 1.55; color: var(--ink-soft); }

.eyebrow {
  font-size: 0.74rem; letter-spacing: 0.15em; text-transform: uppercase;
  color: var(--primary); font-weight: 700; margin: 0 0 0.75rem;
}

.centered { text-align: center; }
.centered p { margin-left: auto; margin-right: auto; }
.centered .lede { max-width: 44rem; }

/* ── Sections & bands ────────────────────────────────────────────────────── */

section { padding: 4rem 0; }
.band { background: var(--band); border-top: 1px solid var(--band-line); border-bottom: 1px solid var(--band-line); }
.band-deep { background: var(--deep); color: #E6EFF5; }
.band-deep h2, .band-deep h3 { color: #fff; }
.band-deep p { color: #C6D8E4; }
.band-deep .eyebrow { color: #8FC4E6; }
.band-deep a { color: #A8D2EE; }

/* ── Hero ────────────────────────────────────────────────────────────────── */

.hero {
  background: var(--deep);
  color: #fff;
  padding: 4.5rem 0 4rem;
  border-bottom: 4px solid var(--primary);
}
.hero h1 { color: #fff; max-width: 22ch; }
.hero .lede { color: #C9DCE9; max-width: 40rem; }
.hero .actions { margin-top: 2rem; }

.hero-figure {
  margin-top: 2.5rem;
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: var(--radius);
  background: rgba(255,255,255,0.05);
  min-height: 15rem;
  display: flex; align-items: center; justify-content: center;
  text-align: center; padding: 2rem;
  color: #A9C4D6;
}
.hero-figure img { max-width: 100%; height: auto; display: block; border-radius: var(--radius); }

/* ── Buttons ─────────────────────────────────────────────────────────────── */

.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.6rem; }
.centered .actions { justify-content: center; }

.btn {
  display: inline-block; padding: 0.8rem 1.6rem;
  font: inherit; font-size: 0.95rem; font-weight: 700;
  text-decoration: none; border-radius: var(--radius);
  border: 2px solid var(--primary); background: var(--primary);
  color: #fff; cursor: pointer; box-shadow: var(--shadow);
}
.btn:hover { background: var(--primary-dark); border-color: var(--primary-dark); color: #fff; box-shadow: var(--shadow-lift); }
.btn.secondary { background: transparent; color: var(--primary); }
.btn.secondary:hover { background: var(--primary-tint); color: var(--primary-dark); }

.hero .btn.secondary { color: #fff; border-color: rgba(255,255,255,0.6); }
.hero .btn.secondary:hover { background: rgba(255,255,255,0.12); color: #fff; border-color: #fff; }

/* ── Card grids ──────────────────────────────────────────────────────────── */

.quickgrid { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); }

.card {
  background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1.6rem 1.4rem;
  box-shadow: var(--shadow); display: flex; flex-direction: column;
}
.card:hover { box-shadow: var(--shadow-lift); }
.card h3 { margin-bottom: 0.4rem; }

/* Marks a card whose subject is built but not yet licensed. Small, quiet, and
   impossible to read as part of the feature name. */
.soon {
  display: inline-block; vertical-align: middle;
  margin-left: 0.5rem; padding: 0.1rem 0.45rem;
  font-size: 0.62rem; font-weight: 700; letter-spacing: 0.08em;
  text-transform: uppercase; white-space: nowrap;
  color: var(--gold); border: 1px solid var(--gold); border-radius: 999px;
}
.card p { color: var(--ink-muted); font-size: 0.95rem; margin-bottom: 1rem; }
.card .card-link { margin-top: auto; font-weight: 700; font-size: 0.92rem; text-decoration: none; }

.icon { width: 2.4rem; height: 2.4rem; margin-bottom: 1rem; color: var(--primary); flex: none; }
.icon svg { width: 100%; height: 100%; display: block; }

.cols { display: grid; gap: 2rem; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); }

/* ── Benefits ────────────────────────────────────────────────────────────── */

/* Columns are declared per count rather than left to auto-fit.
   auto-fit packed four items into three columns at middling widths and dropped
   the fourth onto a row of its own — where it kept the left border and 2rem
   indent that only make sense beside a neighbour, so it read as misaligned
   rather than merely alone. Only :first-child cleared the divider, and the item
   starting the SECOND row is not the first child. */
.benefits { display: grid; gap: 0; }
.benefits-3 { grid-template-columns: repeat(3, 1fr); }
.benefits-4 { grid-template-columns: repeat(4, 1fr); }

.benefit { padding: 0 2rem; border-left: 1px solid var(--line); }
.benefit:first-child { padding-left: 0; border-left: 0; }
.benefit p { color: var(--ink-muted); margin-bottom: 0; }
.band-deep .benefit { border-left-color: rgba(255,255,255,0.18); }

/* Four items go two-by-two rather than three-plus-one, and the item opening
   each row loses the divider. */
@media (max-width: 64rem) {
  .benefits-4 { grid-template-columns: repeat(2, 1fr); row-gap: 2.5rem; }
  .benefits-4 .benefit:nth-child(odd) { padding-left: 0; border-left: 0; }
}

/* Three items stack a little earlier than four do, because each column is wider. */
@media (max-width: 52rem) {
  .benefits-3 { grid-template-columns: 1fr; }
}

@media (max-width: 46rem) {
  .benefits-3, .benefits-4 { grid-template-columns: 1fr; row-gap: 0; }
  .benefit { padding: 1.5rem 0; border-left: 0; border-top: 1px solid var(--line); }
  .benefit:first-child { padding-top: 0; border-top: 0; }
}

/* ── Feature index ───────────────────────────────────────────────────────── */

.index-group { padding: 2.5rem 0 0; }
.index-group h2 { font-size: 1.3rem; margin-bottom: 0.75rem; }
.index-list { border-top: 2px solid var(--primary); }
.index-row {
  display: grid; grid-template-columns: minmax(11rem, 17rem) 1fr;
  gap: 0.35rem 2.5rem; padding: 1.15rem 0;
  border-bottom: 1px solid var(--line); align-items: baseline;
}
.index-row h3 { margin: 0; font-size: 1.02rem; }
.index-row h3 a { color: var(--primary); text-decoration: none; }
.index-row h3 a:hover { color: var(--primary-dark); text-decoration: underline; }
.index-row p { margin: 0; color: var(--ink-muted); font-size: 0.95rem; line-height: 1.55; }
@media (max-width: 44rem) { .index-row { grid-template-columns: 1fr; gap: 0.3rem; } }

/* ── Feature page: content column + sidebar ──────────────────────────────── */
/*
   The prose was set at 38rem inside a 68rem page, which left a dead margin
   down the right. The column is now wider and the space is used for getting
   between the fifteen pages rather than left blank.
*/

.doc-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 16rem;
  gap: 3.5rem;
  align-items: start;
}

.doc-body { max-width: 50rem; }
.doc-body h2 { margin-top: 2.25rem; }
.doc-body h2:first-child { margin-top: 0; }
.doc-body p, .doc-body li { font-size: 1.02rem; }
.doc-body h3 {
  margin-top: 1.9rem;
  margin-bottom: 0.5rem;
  color: var(--primary-dark);
  font-size: 1.05rem;
}
.doc-body ul { padding-left: 1.15rem; }
.doc-body li { margin-bottom: 0.5rem; }

.doc-side {
  position: sticky;
  top: 6.5rem;
  border-top: 2px solid var(--primary);
  padding-top: 1rem;
  font-size: 0.92rem;
}
.doc-side h2 {
  font-size: 0.74rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 0.75rem;
}
.doc-side ul { list-style: none; margin: 0 0 1.25rem; padding: 0; }
.doc-side li { margin-bottom: 0.15rem; }
.doc-side a {
  display: block;
  padding: 0.4rem 0.6rem;
  border-radius: var(--radius);
  text-decoration: none;
  color: var(--ink-soft);
  font-weight: 600;
}
.doc-side a:hover { background: var(--primary-tint); color: var(--primary-dark); }
.doc-side a[aria-current="page"] {
  background: var(--primary-tint);
  color: var(--primary-dark);
  box-shadow: inset 3px 0 0 var(--primary);
}
.doc-side .all-features { font-weight: 700; padding-left: 0.6rem; }

@media (max-width: 60rem) {
  .doc-layout { grid-template-columns: 1fr; gap: 2.5rem; }
  .doc-side { position: static; order: 2; }
  .doc-body { max-width: none; }
}

.pager {
  padding-top: 1.5rem; border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; gap: 0.5rem 2rem;
  justify-content: space-between; font-size: 0.92rem; font-weight: 600;
}
.pager a { text-decoration: none; }
.pager a:hover { text-decoration: underline; }

/* ── Tables ──────────────────────────────────────────────────────────────── */

.table-scroll { overflow-x: auto; margin: 2rem 0; }
table { width: 100%; border-collapse: collapse; font-size: 0.95rem; min-width: 32rem; }
caption { text-align: left; font-weight: 700; font-size: 1.1rem; padding-bottom: 0.75rem; }
th, td { text-align: left; padding: 0.9rem 1rem 0.9rem 0; border-bottom: 1px solid var(--line); vertical-align: baseline; }
thead th {
  font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--ink-muted); border-bottom: 2px solid var(--primary); font-weight: 700;
}
td.amount, th.amount { text-align: right; padding-right: 0; white-space: nowrap; font-variant-numeric: tabular-nums; }
.row-note { font-size: 0.86rem; color: var(--ink-muted); display: block; margin-top: 0.15rem; }

/* ── Callouts, notices ───────────────────────────────────────────────────── */

.callout {
  border-left: 4px solid var(--primary); background: var(--primary-tint);
  padding: 1.1rem 1.25rem; border-radius: 0 var(--radius) var(--radius) 0;
  margin: 1.75rem 0;
}
.callout p:last-child { margin-bottom: 0; }

.notice {
  border: 1px solid var(--line); background: var(--band);
  border-radius: var(--radius); padding: 1.1rem 1.25rem;
  margin: 1.75rem 0; font-size: 0.95rem;
}
.notice p:last-child { margin-bottom: 0; }

/* ── Mission page ────────────────────────────────────────────────────────── */

.scripture {
  border-left: 4px solid var(--line); padding-left: 1.5rem;
  margin: 2rem 0; font-style: italic; color: var(--ink-soft);
}
.scripture cite {
  display: block; font-style: normal; font-size: 0.78rem;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--ink-muted); margin-top: 0.75rem;
}
.sc { font-variant: small-caps; }

.memorial { max-width: 40rem; }
.memorial p { font-size: 1.08rem; color: var(--ink-soft); }

.dedication {
  margin: 3rem 0 1rem; padding: 2rem;
  border: 1px solid var(--line); border-top: 4px solid var(--primary);
  border-radius: var(--radius); background: var(--band); max-width: 30rem;
}
.dedication .in-memory {
  font-size: 0.72rem; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--ink-muted); margin: 0 0 0.75rem; font-weight: 700;
}
.dedication .name { font-size: clamp(1.5rem, 4vw, 1.95rem); font-weight: 700; margin: 0 0 0.25rem; }
.dedication .years { color: var(--ink-muted); margin: 0; }

/* ── Footer ──────────────────────────────────────────────────────────────── */

footer { background: var(--deep-2); color: #B9CDDB; padding: 3rem 0 2.5rem; font-size: 0.92rem; }
footer h3 {
  font-size: 0.74rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: #FFFFFF; margin-bottom: 0.7rem;
}
footer ul { list-style: none; margin: 0; padding: 0; }
footer li { margin-bottom: 0.4rem; }
footer a { color: #CFE0EB; text-decoration: none; }
footer a:hover { color: #fff; text-decoration: underline; }
.colophon {
  margin-top: 2.5rem; padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.14);
  font-size: 0.85rem; color: #93AABB;
}

/* ── TODO markers ────────────────────────────────────────────────────────── */

.todo {
  background: #FFE9A8; color: #4A3B00; border: 1px dashed #B08900;
  padding: 0.05em 0.4em; font-family: var(--mono);
  font-size: 0.85em; font-weight: 700; border-radius: 2px;
}
@media (prefers-color-scheme: dark) { .todo { background: #4A3B00; color: #FFE9A8; } }

/* ── Forms ───────────────────────────────────────────────────────────────── */

.signup { max-width: var(--measure); margin-top: 1.5rem; }

.signup .field { display: block; margin-bottom: 1.1rem; }

.signup label,
.signup legend {
  display: block; margin-bottom: 0.35rem;
  font-size: 0.9rem; font-weight: 700; color: var(--ink-soft);
}

.signup input[type="text"],
.signup input[type="email"] {
  width: 100%; padding: 0.7rem 0.8rem;
  font: inherit; font-size: 1rem; color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line); border-radius: var(--radius);
}

.signup input[type="text"]:focus,
.signup input[type="email"]:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-tint);
}

.signup input::placeholder { color: var(--ink-muted); }

/* A checklist, not a stack of loose boxes: the border groups the answers to one
   question the way the ruled tables group a row. */
.signup fieldset {
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 0.9rem 1rem 0.4rem;
}

.signup fieldset legend { padding: 0 0.4rem; margin-bottom: 0; }

/* Label and box on one line, and the whole label is the target — a checkbox is
   a small thing to hit on a phone in a truck. */
.signup .check {
  display: flex; align-items: center; gap: 0.55rem;
  margin-bottom: 0.6rem;
  font-weight: 400; color: var(--ink); cursor: pointer;
}

.signup .check input { width: 1.05rem; height: 1.05rem; accent-color: var(--primary); }

.signup button { margin-top: 0.4rem; }

@media (prefers-color-scheme: dark) {
  .signup input[type="text"],
  .signup input[type="email"] { background: var(--paper); color: var(--ink); border-color: var(--line); }
}

@media print {
  .topbar, .masthead, nav.primary { position: static; }
  .hero, footer { background: none; color: #000; }
}
