/* thrubill.com - one stylesheet, no framework. Tokens and the few shared pieces come from the
   app's stylesheet so the two look alike; keep the colours in step with it.
   IBM Plex Sans is served from here (SIL Open Font License; see fonts/IBM-Plex-LICENSE.txt). */
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/ibm-plex-sans-latin-400-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/ibm-plex-sans-latin-500-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/ibm-plex-sans-latin-600-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --font: "IBM Plex Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;

  --text: #121820;
  --text-2: #3a4450;
  --muted: #5d6773;        /* labels, captions: 5.6:1 on white */
  --border: #e2e5e9;
  --border-2: #eef0f2;
  --field-border: #cfd4da;
  --bg: #f4f5f3;           /* page */
  --surface: #ffffff;
  --sunk: #f8f9f7;

  --side: #121820;         /* sidebar and dark bars */
  --side-ink: #c3cad3;
  --side-mute: #8a94a0;
  --side-accent: #8fa2ff;

  --accent: #2340c8;       /* cobalt: actions, links, "your move" */
  --accent-ink: #1a2f96;
  --accent-soft: #ebeefb;
  --accent-text: #ffffff;

  /* Status always means the same thing about money */
  --ok-text: #0d6e4c;   --ok-bg: #e3f2ea;      /* settled */
  --warn-text: #8a5200; --warn-bg: #fbefd9;    /* waiting on someone */
  --danger: #b23118;    --danger-bg: #fbe7e1;  /* overdue, act now */
  --lock: #4b5562;      --lock-bg: #eceef1;    /* locked until the client pays */

  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 1px 2px rgba(18, 24, 32, 0.05);
}

* { box-sizing: border-box; }
body { margin: 0; color: var(--text); font-family: var(--font); -webkit-font-smoothing: antialiased; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-ink); text-decoration: underline; }
strong, b { font-weight: 600; }
[hidden] { display: none !important; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 38px; padding: 6px 14px; border: 1px solid var(--accent); border-radius: var(--radius-sm); background: var(--accent); color: var(--accent-text); font: inherit; font-weight: 500; text-align: center; text-decoration: none; white-space: nowrap; cursor: pointer; box-shadow: var(--shadow); }
.button:hover { background: var(--accent-ink); border-color: var(--accent-ink); color: var(--accent-text); text-decoration: none; }
.button-secondary { background: var(--surface); border-color: var(--border); color: var(--text); }
.button-secondary:hover { background: var(--sunk); border-color: var(--border); color: var(--text); }
.button:focus-visible, a:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.badge { display: inline-flex; align-items: center; gap: 6px; height: 22px; padding: 0 9px; border-radius: 11px; font-size: 12px; font-weight: 500; white-space: nowrap; vertical-align: middle; background: var(--lock-bg); color: var(--lock); letter-spacing: 0; }
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.badge-paid { background: var(--ok-bg); color: var(--ok-text); }
.badge-warn { background: var(--warn-bg); color: var(--warn-text); }
.badge-sent, .badge-ready { background: var(--accent-soft); color: var(--accent-ink); }

/* ---------- Pages ---------- */
.site { background: var(--bg); font-size: 17px; line-height: 1.55; }
.site-wrap { width: 100%; max-width: 1136px; margin: 0 auto; padding: 0 32px; }
html:not(.js) .js-only { display: none; }

.site h1, .site h2, .site h3 { display: block; margin: 0; font-weight: 600; text-wrap: balance; }
.site h1 { font-size: clamp(36px, 5.4vw, 66px); line-height: 1.04; letter-spacing: -0.035em; }
.site h2 { font-size: clamp(26px, 3vw, 36px); line-height: 1.12; letter-spacing: -0.025em; }
.site h3 { font-size: 19px; line-height: 1.3; letter-spacing: -0.01em; }
:where(.site) p { margin: 0; }
.site .lede { font-size: clamp(18px, 1.7vw, 21px); line-height: 1.5; color: var(--text-2); max-width: 36em; }
.site .button-lg { min-height: 50px; padding: 10px 24px; font-size: 17px; }

.site-skip { position: absolute; left: -9999px; }
.site-skip:focus { left: 16px; top: 12px; z-index: 2; padding: 8px 12px; background: var(--surface); border-radius: var(--radius-sm); }

/* Top bar */
.site-top-in { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 76px; }
.site-brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); font-size: 21px; font-weight: 600; letter-spacing: -0.02em; }
.site-brand:hover { color: var(--text); text-decoration: none; }
.site-nav { display: flex; align-items: center; gap: 28px; font-size: 15px; }
.site-nav a:not(.button) { color: var(--text-2); }
.site-nav a:not(.button):hover { color: var(--text); }

/* Hero */
.hero { padding: 56px 0 96px; }
.hero h1 { max-width: 17em; }
.hero .lede { margin-top: 28px; }
.hero-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-top: 32px; color: var(--muted); font-size: 15px; }

/* The worked example: hours on the left, and one line carrying them through to the right */
.thru { position: relative; display: grid; grid-template-columns: 1.15fr 1fr 1fr 1fr; margin-top: 72px; padding-top: 7px; }
.thru::before { content: ""; position: absolute; top: 6px; left: 0; right: 6px; height: 2px; background: var(--accent); }
.thru::after { content: ""; position: absolute; top: 1px; right: 0; width: 10px; height: 10px; border-top: 2px solid var(--accent); border-right: 2px solid var(--accent); transform: rotate(45deg); transform-origin: center; }
.thru-c { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; min-width: 0; padding: 36px 24px 0 0; }
.thru-c::before { content: ""; position: absolute; top: -6px; left: 0; width: 12px; height: 12px; border-radius: 50%; background: var(--bg); border: 2px solid var(--accent); }
.thru-src::before { background: var(--accent); }
.thru-l { font-size: 15px; font-weight: 500; color: var(--text-2); }
.thru-v { font-size: clamp(26px, 2.9vw, 36px); line-height: 1.15; font-weight: 600; letter-spacing: -0.025em; font-variant-numeric: tabular-nums; }
.thru-keep .thru-v { color: var(--accent); }
.thru-m { font-size: 14px; color: var(--muted); font-variant-numeric: tabular-nums; }
.thru-c .badge { margin-top: 8px; }
.thru-input { display: flex; align-items: stretch; max-width: 100%; background: var(--surface); border: 2px solid var(--accent); border-radius: var(--radius); box-shadow: 0 0 0 4px var(--accent-soft); overflow: hidden; }
.thru-input input { width: 4.3em; min-width: 0; padding: 4px 0; border: 0; background: none; color: var(--text); font: 600 clamp(26px, 2.9vw, 36px)/1.15 var(--font); letter-spacing: -0.025em; font-variant-numeric: tabular-nums; text-align: center; -moz-appearance: textfield; appearance: textfield; }
.thru-input input::-webkit-inner-spin-button, .thru-input input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.thru-input input:focus { outline: none; background: var(--accent-soft); }
.thru-input button { width: 44px; border: 0; background: none; color: var(--accent); font: 500 24px/1 var(--font); cursor: pointer; }
.thru-input button:hover { background: var(--accent-soft); }
.thru-input button:focus-visible { outline: 2px solid var(--accent); outline-offset: -4px; }
.thru-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-top: 40px; font-size: 14px; color: var(--muted); }

/* Bands: heading on the left, substance on the right */
.band { padding: 96px 0; }
.band-first { padding-top: 56px; }
.band-white { background: var(--surface); }
.band-ink { background: var(--side); color: var(--side-ink); }
.band-ink h2, .band-ink dt { color: #fff; }
.split { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: 32px 64px; align-items: start; }
.split-h { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }
.split-h p { color: var(--text-2); max-width: 26em; }
.band-ink .split-h p { color: var(--side-ink); }
.band-first .split-h { gap: 24px; }
.split-b { min-width: 0; margin: 0; padding: 0; }
.prose { display: flex; flex-direction: column; gap: 16px; max-width: 38em; color: var(--text-2); }

/* Spreadsheet against thrubill */
.versus { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 40px; padding: 20px 0; border-top: 1px solid var(--border); }
.versus p:first-child { color: var(--muted); }
.versus-head { padding: 0 0 12px; border-top: 0; font-size: 14px; font-weight: 500; }
.versus-head span:first-child { color: var(--muted); }
.versus-head span:last-child { color: var(--accent-ink); }

/* The period, in order */
.steps-list { list-style: none; counter-reset: step; border-left: 2px solid var(--accent); }
.steps-list li { position: relative; counter-increment: step; display: flex; flex-direction: column; gap: 8px; padding: 0 0 40px 40px; max-width: 40em; }
.steps-list li:last-child { padding-bottom: 0; }
.steps-list li::before { content: counter(step); position: absolute; left: -15px; top: -2px; width: 28px; height: 28px; border-radius: 50%; background: var(--accent); color: #fff; font-size: 14px; font-weight: 600; display: flex; align-items: center; justify-content: center; font-variant-numeric: tabular-nums; }
.steps-list p { color: var(--text-2); }

/* Two directions, and the vendor account */
.modes { display: grid; grid-template-columns: 1fr 1fr; gap: 24px 40px; }
.modes div { display: flex; flex-direction: column; gap: 8px; padding-top: 20px; border-top: 2px solid var(--text); }
.modes p, .aside p { color: var(--text-2); }
.aside { display: flex; flex-direction: column; gap: 8px; margin-top: 40px; padding: 24px 28px; background: var(--accent-soft); border-radius: var(--radius); max-width: 44em; }

/* What it leaves alone */
.limits { display: grid; grid-template-columns: 1fr 1fr; gap: 32px 40px; margin: 0; }
.limits dt { font-size: 19px; font-weight: 600; letter-spacing: -0.01em; }
.limits dd { margin: 6px 0 0; }

/* Pricing */
.price-table { border-top: 2px solid var(--text); }
.price-row { display: grid; grid-template-columns: 7em minmax(0, 1fr) auto; gap: 4px 24px; align-items: baseline; padding: 18px 0; border-bottom: 1px solid var(--border); }
.price-head { padding: 10px 0; font-size: 14px; color: var(--muted); }
.price-name { font-size: 19px; font-weight: 600; letter-spacing: -0.01em; }
.price-amt { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.price-row:not(.price-head) .price-amt { font-size: 19px; font-weight: 600; }
.price-notes { margin: 24px 0 0; padding: 0 0 0 1.1em; display: flex; flex-direction: column; gap: 6px; font-size: 15px; color: var(--text-2); }

/* Privacy and terms: one column of plain text */
.legal { padding-top: 56px; padding-bottom: 96px; }
.legal > * { max-width: 42rem; }
.legal h2 { margin-top: 48px; font-size: 22px; letter-spacing: -0.015em; }
.legal p, .legal ul { margin: 14px 0 0; color: var(--text-2); }
.legal ul { padding-left: 1.2em; }
.legal li + li { margin-top: 8px; }
.legal b { color: var(--text); }
.legal .lede { margin-top: 20px; }
.legal .legal-date { margin-top: 12px; font-size: 14px; color: var(--muted); }
.legal a { text-decoration: underline; text-underline-offset: 2px; }

/* Close and footer */
.closer { display: flex; flex-direction: column; align-items: flex-start; gap: 20px; }
.closer h2 { font-size: clamp(30px, 4.2vw, 52px); letter-spacing: -0.03em; }
.closer p { color: var(--text-2); max-width: 34em; }
.site-foot { padding: 40px 0; background: var(--side); color: var(--side-mute); font-size: 14px; }
.site-foot-in { display: flex; flex-wrap: wrap; align-items: baseline; gap: 12px 32px; }
.site-foot-in p:first-child { flex: 1 1 320px; color: var(--side-ink); }
.site-foot-links { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.site-foot a { color: var(--side-ink); }
.site-foot a:hover { color: #fff; }
.site-foot a:focus-visible { outline-color: var(--side-accent); }

@media (max-width: 900px) {
  .split { grid-template-columns: minmax(0, 1fr); }
  .band { padding: 72px 0; }
  .band-first { padding-top: 40px; }
  .site-nav-more { display: none; }

  /* The line turns to run down the left edge */
  .thru { grid-template-columns: minmax(0, 1fr); margin-top: 56px; padding: 0 0 0 7px; }
  .thru::before { top: 6px; bottom: 6px; left: 6px; right: auto; width: 2px; height: auto; }
  .thru::after { top: auto; bottom: 0; left: 2px; right: auto; transform: rotate(135deg); }
  .thru-c { padding: 0 0 36px 32px; }
  .thru-c:last-child { padding-bottom: 20px; }
  .thru-c::before { top: 5px; left: -6px; }
}

@media (max-width: 640px) {
  .site-wrap { padding: 0 16px; }
  .site-top-in { min-height: 64px; }
  .site-nav { gap: 16px; }
  .site-nav .button { min-height: 40px; font-size: 15px; }
  .hero { padding: 32px 0 64px; }
  .band { padding: 56px 0; }
  .versus { grid-template-columns: minmax(0, 1fr); }
  .versus-head { display: none; }
  .modes, .limits { grid-template-columns: minmax(0, 1fr); }
  .steps-list li { padding-left: 28px; }
  .price-row { grid-template-columns: minmax(0, 1fr) auto; }
  .price-row span:nth-child(2) { grid-column: 1 / -1; grid-row: 2; font-size: 15px; color: var(--text-2); }
  .price-head span:nth-child(2) { display: none; }
  .aside { padding: 20px; }
}
