/* SettlementBooks website. One stylesheet for every page. */
:root {
  --green: #0b5a2e;
  --green-deep: #004827;
  --green-soft: #e7f2ec;
  --ink: #14211a;
  --muted: #55645b;
  --line: #d9e3dc;
  --bg: #ffffff;
  --bg-alt: #f5f8f6;
  --card: #ffffff;
  --accent: #1565c0;
  --radius: 14px;
  --max: 1080px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --green: #4cc27e;
    --green-deep: #0f3d26;
    --green-soft: #13261c;
    --ink: #e8f0eb;
    --muted: #a6b5ac;
    --line: #2a3a31;
    --bg: #0d1511;
    --bg-alt: #111c16;
    --card: #142019;
    --accent: #7fb3f0;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font: 17px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
}
img { max-width: 100%; height: auto; }
a { color: var(--green); }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; }
h1 { font-size: clamp(2rem, 5vw, 3.1rem); letter-spacing: -.02em; }
h2 { font-size: clamp(1.5rem, 3.4vw, 2.1rem); letter-spacing: -.01em; }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 760px; }
.muted { color: var(--muted); }
.center { text-align: center; }

/* header */
.site-header { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-weight: 800; font-size: 1.15rem; }
.brand img { width: 36px; height: 36px; }
.nav { display: flex; align-items: center; gap: 18px; }
.nav a { text-decoration: none; color: var(--ink); font-weight: 600; font-size: .95rem; }
.nav a:hover { color: var(--green); }
.nav .btn { color: #fff; }
@media (max-width: 720px) {
  .nav a:not(.btn) { display: none; }
}

/* buttons */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 22px; border-radius: 999px; font-weight: 700;
  text-decoration: none; background: var(--green); color: #fff; border: 2px solid var(--green); min-height: 48px;
  max-width: 100%; justify-content: center; text-align: center; }
.btn:hover { filter: brightness(1.08); }
.btn.ghost { background: transparent; color: var(--green); }
.btn.small { padding: 8px 16px; min-height: 40px; font-size: .95rem; }
@media (prefers-color-scheme: dark) { .btn { color: #07130c; } .nav .btn { color: #07130c; } .btn.ghost { color: var(--green); } }

/* hero */
.hero { padding: 72px 0 56px; background: linear-gradient(180deg, var(--green-soft), var(--bg)); }
.hero .wrap { display: grid; grid-template-columns: 1.3fr .7fr; gap: 40px; align-items: center; }
.hero p.lead { font-size: 1.2rem; color: var(--muted); max-width: 34em; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.hero .note { margin-top: 14px; font-size: .9rem; color: var(--muted); }
.hero-logo { justify-self: center; width: min(280px, 70vw); filter: drop-shadow(0 10px 30px rgba(0, 72, 39, .25)); }
@media (max-width: 820px) {
  .hero { padding: 40px 0 32px; }
  .hero .wrap { grid-template-columns: 1fr; }
  .hero-logo { order: -1; width: 140px; }
}

/* sections */
section { padding: 64px 0; }
section.alt { background: var(--bg-alt); }
.section-head { max-width: 680px; margin-bottom: 32px; }
.section-head p { color: var(--muted); font-size: 1.08rem; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: step; }
.step { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.step::before { counter-increment: step; content: counter(step); display: grid; place-items: center; width: 36px; height: 36px;
  border-radius: 50%; background: var(--green); color: #fff; font-weight: 800; margin-bottom: 12px; }
@media (prefers-color-scheme: dark) { .step::before { color: #07130c; } }

.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.card h3 { display: flex; align-items: center; gap: 10px; }
.card .ico { flex: none; width: 34px; height: 34px; border-radius: 10px; background: var(--green-soft); color: var(--green);
  display: grid; place-items: center; }
.card .ico svg { width: 20px; height: 20px; }
.card p { color: var(--muted); margin: 0; font-size: .98rem; }
@media (max-width: 900px) { .grid, .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .grid, .steps { grid-template-columns: 1fr; } section { padding: 44px 0; } }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 36px; align-items: start; }
@media (max-width: 820px) { .split { grid-template-columns: 1fr; } }
ul.checks { list-style: none; padding: 0; margin: 0; }
ul.checks li { position: relative; padding-left: 30px; margin-bottom: 10px; }
ul.checks li::before { content: ""; position: absolute; left: 0; top: .35em; width: 18px; height: 18px; border-radius: 50%;
  background: var(--green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='white' stroke-width='3' d='M5 12l5 5 9-10'/%3E%3C/svg%3E") center/12px no-repeat; }

/* pricing */
.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; max-width: 820px; }
.plan { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.plan.featured { border: 2px solid var(--green); }
.plan .price { font-size: 2.4rem; font-weight: 800; margin: 6px 0; }
.plan .price small { font-size: 1rem; font-weight: 600; color: var(--muted); }
.badge { display: inline-block; padding: 4px 10px; border-radius: 999px; background: var(--green-soft); color: var(--green);
  font-weight: 700; font-size: .82rem; }
@media (max-width: 680px) { .plans { grid-template-columns: 1fr; } }

/* faq */
details { border: 1px solid var(--line); border-radius: 12px; padding: 14px 18px; margin-bottom: 10px; background: var(--card); }
details summary { cursor: pointer; font-weight: 700; list-style: none; }
details summary::-webkit-details-marker { display: none; }
details summary::after { content: "+"; float: right; font-weight: 800; color: var(--green); }
details[open] summary::after { content: "–"; }
details p { margin: 10px 0 0; color: var(--muted); }

/* callout */
.callout { border-left: 4px solid var(--green); background: var(--green-soft); padding: 14px 18px; border-radius: 0 12px 12px 0; margin: 18px 0; }
.download-box { background: var(--card); border: 2px solid var(--green); border-radius: var(--radius); padding: 26px; text-align: center; margin: 24px 0; }
ol.big { padding-left: 1.3em; }
ol.big li { margin-bottom: 10px; }

/* docs pages (help, privacy, terms) */
.doc { padding: 48px 0 64px; }
.doc h1 { margin-bottom: .3em; }
.doc h2 { margin-top: 1.8em; font-size: 1.45rem; }
.doc h3 { margin-top: 1.3em; }
.toc { display: flex; flex-wrap: wrap; gap: 8px; margin: 22px 0 8px; }
.toc a { text-decoration: none; padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px; font-size: .9rem; color: var(--ink); background: var(--card); }
.toc a:hover { border-color: var(--green); color: var(--green); }
.topic { border-top: 1px solid var(--line); padding-top: 8px; scroll-margin-top: 80px; }
.topic .summary { color: var(--muted); }

/* footer */
.site-footer { border-top: 1px solid var(--line); padding: 32px 0; background: var(--bg-alt); font-size: .92rem; color: var(--muted); }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; }
.site-footer a { color: var(--muted); margin-right: 16px; }
.site-footer .wrap > div { flex: 1 1 280px; min-width: 0; }
.site-footer a { display: inline-block; margin-bottom: 6px; }
.nav .btn { white-space: nowrap; }
@media (max-width: 400px) { .brand { font-size: 1rem; gap: 8px; } .brand img { width: 30px; height: 30px; } .nav .btn { padding: 8px 14px; } }
.nav .short { display: none; }
@media (max-width: 420px) { .nav .long { display: none; } .nav .short { display: inline; } }

/* screenshots: a row that scrolls sideways */
.shots { --edge: max(20px, calc((100vw - var(--max)) / 2 + 20px)); display: flex; gap: 20px; overflow-x: auto;
  scroll-snap-type: x mandatory; padding: 6px var(--edge) 22px; scroll-padding-inline: var(--edge); scrollbar-width: thin; }
.shot { flex: 0 0 230px; margin: 0; scroll-snap-align: start; }
.shot img { display: block; width: 100%; height: auto; border-radius: 18px; border: 1px solid var(--line); background: #fff;
  box-shadow: 0 10px 28px rgba(0, 0, 0, .12); }
.shot figcaption { margin-top: 10px; font-size: .9rem; color: var(--muted); line-height: 1.4; }
.swipe { display: none; }
@media (max-width: 700px) { .shot { flex-basis: 72vw; } .swipe { display: inline; } }

/* beta sign-up form */
.signup { display: grid; gap: 12px; max-width: 420px; margin: 12px auto 0; text-align: left; }
.signup input[type=email] { font: inherit; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--bg);
  color: var(--ink); min-height: 50px; width: 100%; }
.signup input[type=email]:focus { outline: 2px solid var(--green); outline-offset: 1px; }
.signup .check { display: flex; gap: 10px; align-items: center; font-size: .95rem; color: var(--muted); }
.signup .check input { width: 20px; height: 20px; accent-color: var(--green); }
.signup .btn { width: 100%; cursor: pointer; font: inherit; font-weight: 700; }
.signup .btn:disabled { opacity: .6; cursor: wait; }
.form-msg { margin: 0; min-height: 1.4em; font-size: .95rem; color: var(--muted); }
.download-box .small { font-size: .85rem; margin: 16px 0 0; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
[hidden] { display: none !important; }
