/* ToDoDo's website: one stylesheet for every page (started from Solvent's). */

:root {
  --bg: #f7f6f2;
  --surface: #ffffff;
  --ink: #1d1c19;
  --muted: #6b6a64;
  --border: #e2e0d9;
  --accent: #2f7d6d;
  --accent-deep: #1d5b50;
  --accent-soft: #e3f1ed;
  --pos: #1f7a4d;
  --radius: 10px;
  --wide: 1080px;
  --text: 720px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #161614;
    --surface: #1f1f1c;
    --ink: #ecebe6;
    --muted: #a3a29b;
    --border: #34332f;
    --accent: #5fbfa8;
    --accent-deep: #85d3c0;
    --accent-soft: #173029;
    --pos: #5cc08d;
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 17px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, sans-serif;
}

a { color: var(--accent); }
a:hover { color: var(--accent-deep); }

img { max-width: 100%; height: auto; }

.wrap { max-width: var(--wide); margin: 0 auto; padding: 0 20px; }
.prose { max-width: var(--text); margin: 0 auto; padding: 0 20px; }

/* Header and footer */

.site-head {
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}
.site-head .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 60px;
  flex-wrap: wrap;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 650;
  font-size: 19px;
  color: var(--ink);
  text-decoration: none;
}
.brand img { width: 30px; height: 30px; border-radius: 7px; }
.site-nav { display: flex; gap: 18px; flex-wrap: wrap; font-size: 15px; }
.site-nav a { color: var(--muted); text-decoration: none; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--ink); }

/* On a phone the menu folds behind a button (141): a checkbox the label
   ticks, so it needs no script. */
.nav-open, .nav-button { display: none; }
@media (max-width: 720px) {
  .nav-button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    margin-left: auto;
    cursor: pointer;
  }
  .nav-button::before {
    content: "";
    width: 22px;
    height: 2px;
    background: var(--ink);
    box-shadow: 0 -7px 0 var(--ink), 0 7px 0 var(--ink);
  }
  .site-nav { display: none; flex-basis: 100%; flex-direction: column; gap: 0; padding-bottom: 8px; }
  .site-nav a { padding: 12px 0; font-size: 17px; border-top: 1px solid var(--border); }
  .nav-open:checked ~ .site-nav { display: flex; }
}

.site-foot {
  margin-top: 80px;
  padding: 32px 0 48px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 14px;
}
.site-foot .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.site-foot a { color: var(--muted); }

/* Buttons */

.btn {
  display: inline-block;
  padding: 11px 20px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--ink);
  font-weight: 600;
  font-size: 16px;
  text-decoration: none;
}
.btn:hover { border-color: var(--muted); color: var(--ink); }
.btn.pri { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn.pri:hover { background: var(--accent-deep); border-color: var(--accent-deep); color: #fff; }
.btn-row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.btn-note { color: var(--muted); font-size: 14px; }

/* Home */

.hero { padding: 72px 0 48px; }
.hero h1 {
  margin: 0 0 16px;
  font-size: clamp(34px, 6vw, 52px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  max-width: 14em;
}
.hero .lede { font-size: 20px; color: var(--muted); max-width: 34em; margin: 0 0 28px; }

.shot {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  overflow: hidden;
}
/* Until real screenshots from the demo ledger are in, each shot is a
   labelled box of the right shape. */
.shot.placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 16 / 10;
  color: var(--muted);
  font-size: 15px;
  text-align: center;
  padding: 20px;
  background: repeating-linear-gradient(45deg, var(--surface), var(--surface) 12px, var(--bg) 12px, var(--bg) 24px);
}
.hero .shot { margin-top: 48px; }

section { padding: 40px 0; }
section h2 { font-size: 30px; line-height: 1.2; letter-spacing: -0.01em; margin: 0 0 12px; }
section .sub { color: var(--muted); margin: 0 0 28px; max-width: 40em; }

.grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
}
.card h3 { margin: 0 0 8px; font-size: 18px; }
.card p { margin: 0; color: var(--muted); font-size: 16px; }

.split { display: grid; gap: 32px; grid-template-columns: 1fr 1fr; align-items: center; }
@media (max-width: 800px) { .split { grid-template-columns: 1fr; } }

.callout {
  background: var(--accent-soft);
  border-radius: var(--radius);
  padding: 28px;
}
.callout h2 { margin-top: 0; }

/* Pricing */

.tiers { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); margin-top: 8px; }
.tier { display: flex; flex-direction: column; }
.tier.featured { border-color: var(--accent); border-width: 2px; }
.tier .price { font-size: 44px; font-weight: 700; letter-spacing: -0.02em; margin: 8px 0 0; }
.tier .price small { font-size: 16px; font-weight: 500; color: var(--muted); }
.tier ul { padding-left: 20px; margin: 16px 0 24px; flex: 1; }
.tier li { margin: 6px 0; }
.tier .btn { text-align: center; }

/* Text pages */

.page-head { padding: 56px 0 16px; }
.page-head h1 { font-size: clamp(30px, 5vw, 42px); line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 12px; }
.page-head p { color: var(--muted); font-size: 19px; margin: 0; }

.prose h2 { font-size: 24px; margin: 40px 0 10px; }
.prose h3 { font-size: 19px; margin: 28px 0 8px; }
.prose li { margin: 6px 0; }
.prose ol > li::marker { font-weight: 600; }

.note {
  border-left: 3px solid var(--accent);
  background: var(--surface);
  padding: 12px 16px;
  border-radius: 0 8px 8px 0;
  margin: 20px 0;
}

kbd, .menu {
  font: 600 15px/1 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 5px;
  padding: 2px 6px;
  white-space: nowrap;
}

details {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 18px;
  margin: 12px 0;
}
details summary { cursor: pointer; font-weight: 600; }
details[open] summary { margin-bottom: 8px; }

/* Comparison table */

.table-scroll { overflow-x: auto; margin: 20px 0; }
table { border-collapse: collapse; width: 100%; min-width: 620px; font-size: 15px; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--border); vertical-align: top; }
thead th { font-size: 14px; color: var(--muted); font-weight: 600; }
tbody th { font-weight: 600; }
tr.us { background: var(--accent-soft); }
.yes { color: var(--pos); font-weight: 600; }
.sources { font-size: 14px; color: var(--muted); }

/* Contact */

.contact-form { display: grid; gap: 16px; margin-top: 8px; }
.contact-form label { display: grid; gap: 6px; font-weight: 600; font-size: 15px; }
.contact-form input, .contact-form select, .contact-form textarea {
  font: inherit;
  font-weight: 400;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink);
  width: 100%;
}
.contact-form textarea { resize: vertical; }
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
  border-color: var(--accent);
}
.field-note { margin: 0; color: var(--muted); font-size: 14px; }
.form-status { color: var(--muted); font-size: 15px; }
.btn:disabled { opacity: 0.6; cursor: default; }
button.btn { cursor: pointer; font-family: inherit; }
/* The field only bots fill in. */
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.beta-fields { border: 0; padding: 0; margin: 0; display: grid; gap: 16px; }
.beta-fields[hidden] { display: none; }
.checks { display: grid; gap: 6px; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
.checks-label { grid-column: 1 / -1; font-weight: 600; font-size: 15px; }
.contact-form .checks label, .beta-fields > label:last-child { display: flex; align-items: center; gap: 8px; font-weight: 400; }
.contact-form input[type="checkbox"] { width: auto; margin: 0; }

/* Screenshots from the demo ledger. */
.shot img { display: block; width: 100%; height: auto; }
@media (max-width: 720px) {
  .shot a { text-decoration: none; }
  .shot a::after { content: "Tap to see it full size"; display: block; padding: 6px 10px; font-size: 13px; color: var(--muted); }
}
/* min(…, 100%): a column never wider than the screen, so a phone does not scroll sideways. */
.gallery { display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)); }
.gallery figure, .press-shots li { min-width: 0; }
.gallery figure { margin: 0; }
.gallery figcaption { color: var(--muted); font-size: 14px; margin-top: 8px; text-align: center; }
.press-shots { list-style: none; padding: 0; display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); }
.press-shots li { color: var(--muted); font-size: 14px; }
.press-shots img { display: block; width: 100%; height: auto; border: 1px solid var(--border); border-radius: 8px; margin-bottom: 6px; }
