/* Bidwell site, in the look of the app and of its sibling RevRun: paper and ink, one loud violet,
   Bricolage Grotesque for words and JetBrains Mono for figures and labels.
   The faces are the app's own, served from this site (no font service, no third-party request). */
@font-face {
  font-family: "Bricolage Grotesque";
  src: url("fonts/bricolage-grotesque.woff2") format("woff2");
  font-weight: 200 800;
  font-display: swap;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("fonts/jetbrains-mono.woff2") format("woff2");
  font-weight: 100 800;
  font-display: swap;
}

:root {
  --ground: #ffffff;
  --ink: #0a0a0f;
  --ink-2: #55556a;
  --tile: #eae5ff;
  --line: #dad8e6;
  --violet: #5a31f4;
  --violet-text: #5a31f4;
  --on-violet: #ffffff;
  --on-violet-2: rgba(255, 255, 255, 0.85);
  --tab-on-violet: rgba(255, 255, 255, 0.14);
  --red: #c8102e;
  --green: #086b40;
  --mark: #fff3b0;
  --sans: "Bricolage Grotesque", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Helvetica, Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ground: #09090d;
    --ink: #ffffff;
    --ink-2: #a6a6ba;
    --tile: #1d1838;
    --line: #2a2836;
    --violet-text: #b3a2ff;
    --red: #ff7a8a;
    --green: #5fd39a;
    --mark: #5c4a00;
  }
}
:root[data-theme="dark"] {
  --ground: #09090d;
  --ink: #ffffff;
  --ink-2: #a6a6ba;
  --tile: #1d1838;
  --line: #2a2836;
  --violet-text: #b3a2ff;
  --red: #ff7a8a;
  --green: #5fd39a;
  --mark: #5c4a00;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font: 17px/1.55 var(--sans);
  font-variant-numeric: tabular-nums;
  -webkit-font-smoothing: antialiased;
}
main { max-width: 680px; margin: 0 auto; padding: 48px 20px 72px; }
main.wide { max-width: 1020px; }
h1 { font-size: 36px; line-height: 1.1; font-weight: 800; letter-spacing: -0.02em; margin: 0 0 10px; }
h2 { font-size: 22px; line-height: 1.25; font-weight: 800; letter-spacing: -0.01em; margin: 44px 0 10px; scroll-margin-top: 72px; }
h3 { font-size: 17px; line-height: 1.35; font-weight: 700; margin: 0 0 4px; }
p, li { margin: 0 0 12px; }
ul { padding-left: 22px; margin: 0 0 12px; }
a { color: var(--violet-text); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
strong { font-weight: 700; }
.date { font: 500 12px/1.4 var(--mono); text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink-2); margin-bottom: 28px; }
.muted { color: var(--ink-2); }
.summary { background: var(--tile); border-radius: 12px; padding: 18px 20px; margin: 24px 0 8px; }
.summary p:last-child { margin-bottom: 0; }
.todo { background: var(--mark); border-radius: 4px; padding: 0 4px; }
table { width: 100%; border-collapse: collapse; margin: 8px 0 16px; font-size: 15px; }
th, td { text-align: left; vertical-align: top; padding: 10px 8px 10px 0; border-top: 1px solid var(--line); }
th { font-weight: 700; width: 34%; }
[id] { scroll-margin-top: 72px; }

/* Capitals in the monospaced face: labels, the nav, small headings */
.label, .site-nav a, .kicker, .pill, .cell .k, .cell .v, .tab .m, .tab .s, .receipt .label {
  font-family: var(--mono); text-transform: uppercase; letter-spacing: 0.08em; font-kerning: normal;
}

/* Header: the name on the left, the pages on the right */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: var(--ground);
  border-bottom: 1px solid var(--line);
}
.site-header .bar {
  max-width: 1020px; margin: 0 auto; padding: 0 20px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  min-height: 56px;
}
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 44px; color: var(--ink); font-weight: 800; font-size: 20px; letter-spacing: -0.01em; text-decoration: none;
}
.brand img { width: 30px; height: 30px; border-radius: 7px; }
.site-nav { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.site-nav li { margin: 0; }
.site-nav a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 10px;
  color: var(--ink); font-size: 12px; font-weight: 600; text-decoration: none;
}
.site-nav a:hover { color: var(--violet-text); }
.site-nav a[aria-current="page"] { color: var(--violet-text); font-weight: 800; }

/* Footer: an ink band, the pages, then the small print */
.site-footer { background: var(--ink); color: var(--ground); }
.site-footer .inner { max-width: 1020px; margin: 0 auto; padding: 28px 20px 44px; font-size: 14px; }
.site-footer a { color: var(--ground); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.site-footer p { margin: 0 0 6px; opacity: 0.75; }
.link-row { display: flex; flex-wrap: wrap; gap: 8px 24px; list-style: none; margin: 0 0 16px; padding: 0; }
.link-row li { margin: 0; }
.link-row a { display: inline-flex; align-items: center; min-height: 44px; font: 600 12px/1 var(--mono); text-transform: uppercase; letter-spacing: 0.08em; }

/* Home: the violet cover, as Money opens in the app */
.cover { background: var(--violet); color: var(--on-violet); }
.cover-inner { max-width: 1020px; margin: 0 auto; padding: 56px 20px 0; }
.cover-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: start; }
.cover .kicker { font-size: 12px; font-weight: 600; color: var(--on-violet-2); margin: 0 0 14px; }
.cover h1 { font-size: 60px; line-height: 1.02; letter-spacing: -0.035em; margin: 0 0 18px; font-variation-settings: "opsz" 96; }
.cover .lead { font-size: 20px; line-height: 1.45; color: var(--on-violet-2); margin: 0 0 28px; max-width: 520px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 16px; }
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 20px; border-radius: 12px;
  background: var(--violet); color: var(--on-violet); font-weight: 700; font-size: 17px; text-decoration: none;
}
.button:hover { text-decoration: none; filter: brightness(1.08); }
.button.secondary { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); }
.cover .button { background: var(--on-violet); color: #5a31f4; }
.cover .button.secondary { background: transparent; color: var(--on-violet); box-shadow: inset 0 0 0 1.5px var(--on-violet-2); }
.button[aria-disabled="true"] { cursor: default; filter: none; }
.platforms { font: 500 12px/1.4 var(--mono); text-transform: uppercase; letter-spacing: 0.08em; color: var(--on-violet-2); margin: 0; }

/* The example payout, a receipt on the cover */
.receipt {
  background: var(--ground); color: var(--ink); border-radius: 12px; padding: 22px 22px 18px;
}
.receipt .label { font-size: 12px; font-weight: 600; color: var(--ink-2); }
.receipt .amount { font-size: 64px; line-height: 1; font-weight: 800; letter-spacing: -0.04em; margin: 6px 0 14px; font-variation-settings: "opsz" 96; }
.cells { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; padding-bottom: 14px; margin-bottom: 8px; border-bottom: 3px solid var(--ink); }
.cell { display: flex; flex-direction: column; gap: 2px; }
.cell .k { font-size: 11px; font-weight: 500; color: var(--ink-2); }
.cell .v { font-size: 11px; font-weight: 700; }
.lead-row { display: flex; align-items: baseline; gap: 8px; min-height: 30px; padding: 4px 0; font-size: 16px; }
.lead-row .dots { flex: 1; min-width: 12px; border-bottom: 2px dotted var(--ink-2); opacity: 0.55; transform: translateY(-3px); }
.lead-row .v { font: 400 15px/1.3 var(--mono); white-space: nowrap; }
.lead-row .v.out { color: var(--red); }
.total-band { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 44px; padding: 0 12px; margin-top: 8px; border-radius: 10px; background: var(--ink); color: var(--ground); font-weight: 800; }
.total-band .v { font: 700 16px/1 var(--mono); }
.example-note { color: var(--ink-2); font-size: 13px; margin: 10px 0 0; }

/* The four months along the cover's foot, October cut out into the page */
.tabs { display: flex; gap: 4px; margin-top: 44px; }
.tab { flex: 1; min-height: 62px; border-radius: 12px 12px 0 0; background: var(--tab-on-violet); color: var(--on-violet); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; padding: 8px 2px; }
.tab.on { background: var(--ground); color: var(--ink); }
.tab .m { font-size: 11px; font-weight: 600; }
.tab .a { font-size: 16px; font-weight: 600; }
.tab.on .a { font-weight: 800; }
.tab .s { font-size: 10px; font-weight: 400; }

/* Sections: a thick ink rule, then a bold heading on the left */
.section-head { max-width: none; margin: 88px 0 28px; border-top: 3px solid var(--ink); padding-top: 14px; display: grid; grid-template-columns: 1fr 1fr; gap: 8px 48px; align-items: baseline; }
.section-head h2 { font-size: 36px; line-height: 1.08; letter-spacing: -0.025em; margin: 0; }
.section-head p { color: var(--ink-2); font-size: 18px; margin: 0; }
main > .section-head:first-child { margin-top: 0; }

/* Features as a spec sheet: names in capitals, two columns, hairlines */
.grid { display: grid; grid-template-columns: 1fr 1fr; column-gap: 48px; }
.card { padding: 16px 0 18px; border-top: 1px solid var(--line); }
.card h3 { display: flex; align-items: center; justify-content: space-between; gap: 8px; font: 700 13px/1.4 var(--mono); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 6px; }
.card p { margin: 0; color: var(--ink-2); font-size: 16px; }
.pill { display: inline-block; font-size: 10px; font-weight: 700; line-height: 1; padding: 4px 6px; border-radius: 4px; border: 1px solid currentColor; vertical-align: 2px; }
.pill.est { color: var(--ink-2); }
.pill.paid { color: var(--green); }
.pill.pro { color: var(--violet-text); }

/* Privacy: three tiles on the tint */
.promise { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.promise > div { background: var(--tile); border-radius: 12px; padding: 18px 18px 20px; }
.promise h3 { margin-bottom: 6px; }
.promise p { color: var(--ink-2); font-size: 15px; margin: 0; }

/* Plans: Free on the tint, Pro on the violet */
.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.plan { background: var(--tile); border-radius: 12px; padding: 24px 22px; }
.plan.pro { background: var(--violet); color: var(--on-violet); }
.plan h3 { font-size: 26px; font-weight: 800; letter-spacing: -0.02em; margin-bottom: 6px; }
.plan .price { margin: 0 0 16px; color: var(--ink-2); }
.plan .price strong { color: var(--ink); font: 800 30px/1.1 var(--mono); }
.plan ul { list-style: none; padding: 0; margin: 0; }
.plan li { position: relative; padding-left: 26px; margin-bottom: 10px; font-size: 15px; }
.plan li::before { content: ""; position: absolute; left: 2px; top: 6px; width: 12px; height: 7px; border-left: 2px solid var(--violet-text); border-bottom: 2px solid var(--violet-text); transform: rotate(-45deg); }
.plan.pro li::before { border-color: var(--on-violet); }
.price-list { list-style: none; padding: 0; margin: 0 0 18px; }
.plan .price-list li { display: flex; align-items: baseline; gap: 8px; padding: 6px 0; margin: 0; font-size: 15px; }
.plan .price-list li::before { display: none; }
.price-list li span:first-child { flex: none; }
.price-list li::after { content: ""; order: 1; flex: 1; border-bottom: 2px dotted currentColor; opacity: 0.5; transform: translateY(-3px); }
.price-list li span:last-child { order: 2; font: 700 15px/1.3 var(--mono); white-space: nowrap; }
.fine { color: var(--ink-2); font-size: 14px; margin: 16px 0 0; max-width: 680px; }

/* Release notes and questions */
.notes { list-style: none; padding: 0; margin: 24px 0 0; }
.notes li { padding: 16px 0; margin: 0; border-top: 1px solid var(--line); }
.notes li p { margin: 0; color: var(--ink-2); }
.notes h3 { display: flex; align-items: center; gap: 10px; }
details { border-top: 1px solid var(--line); }
details:last-of-type { border-bottom: 1px solid var(--line); }
summary { cursor: pointer; list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 52px; padding: 10px 0; font-weight: 700; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; font: 400 22px/1 var(--mono); color: var(--violet-text); }
details[open] summary::after { content: "\2212"; }
details > div { padding: 0 0 12px; }
ol.steps { padding-left: 22px; }

/* Blog: the list of posts, and the posts themselves */
.posts { list-style: none; padding: 0; margin: 24px 0 0; }
.posts li { padding: 22px 0; margin: 0; border-top: 1px solid var(--line); }
.posts li:first-child { border-top: 3px solid var(--ink); }
.posts li:last-child { border-bottom: 1px solid var(--line); }
.posts .date { margin: 0 0 6px; }
.posts h2 { margin: 0 0 6px; font-size: 24px; }
.posts h2 a { color: var(--ink); text-decoration: none; }
.posts h2 a:hover { color: var(--violet-text); }
.posts p:last-child { margin: 0; color: var(--ink-2); }
article .lead { font-size: 20px; line-height: 1.45; color: var(--ink-2); margin: 0 0 28px; }
article h2 { margin-top: 44px; }
article h3 { margin-top: 24px; }
article figure { margin: 24px 0; background: var(--tile); border-radius: 12px; padding: 18px 20px; }
article figure table { margin: 0; font-family: var(--mono); font-size: 14px; }
article figure th, article figure td { padding: 8px 12px 8px 0; border-top-color: var(--line); }
article figure th { font-family: var(--sans); font-size: 15px; }
article figure tr:first-child th, article figure tr:first-child td { border-top: 0; }
article figure th { width: auto; }
article figcaption { color: var(--ink-2); font-size: 14px; margin-top: 10px; }
article .scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
article aside { border-top: 3px solid var(--ink); padding: 12px 0 0; margin: 28px 0; color: var(--ink-2); }
article aside p:last-child { margin: 0; }
.post-end { margin-top: 48px; padding-top: 20px; border-top: 3px solid var(--ink); color: var(--ink-2); font-size: 15px; }
.post-end p:last-child { margin: 0; }

@media (max-width: 900px) {
  .cover-grid { grid-template-columns: 1fr; gap: 32px; }
  .cover h1 { font-size: 48px; }
  .section-head { grid-template-columns: 1fr; }
  .promise { grid-template-columns: 1fr; }
}
@media (max-width: 700px) {
  /* Six pages in the header: closer together, so they fit down to the width where the nav gives way to the footer's list */
  .site-nav a { padding: 0 6px; }
}
@media (max-width: 640px) {
  .site-nav { display: none; }
  .cover-inner { padding-top: 36px; }
  .cover h1 { font-size: 40px; }
  .cover .lead { font-size: 18px; }
  .receipt .amount { font-size: 52px; }
  .tabs { margin-top: 32px; }
  .tab .s { display: none; }
  .section-head { margin-top: 64px; }
  .section-head h2 { font-size: 28px; }
  .grid, .plans { grid-template-columns: 1fr; }
  /* On phones the footer's pages are a stacked list with dividers */
  .link-row { flex-direction: column; gap: 0; }
  .link-row li { border-top: 1px solid rgba(255, 255, 255, 0.2); }
  .link-row li:last-child { border-bottom: 1px solid rgba(255, 255, 255, 0.2); }
  .link-row a { display: flex; justify-content: space-between; width: 100%; }
  .link-row a::after { content: "\203A"; font-size: 20px; }
}
@media (max-width: 520px) {
  h1 { font-size: 30px; }
  .cells { grid-template-columns: 1fr 1fr; }
  table:not(.ledger):not(.data) th, table:not(.ledger):not(.data) td { display: block; width: 100%; padding: 0; border: 0; }
  table:not(.ledger):not(.data) th { padding-top: 12px; border-top: 1px solid var(--line); }
  table:not(.ledger):not(.data) td { padding: 2px 0 12px; }
  table.data { font-size: 14px; }
}
