/* grepped.ai/buyside: the Buyside launch page, in the homepage's palette and type (Erik, 8 Nov: same header
   as the homepage, body text like the homepage). Light only (Erik, 8 Nov: "lets keep it light"), whatever
   theme.js sets on <html>. Inter for text, Inter Tight for headings. */
:root, html[data-theme] {
  color-scheme: light !important;
  --sans: "Inter", -apple-system, system-ui, sans-serif; --head: "Inter Tight", "Inter", -apple-system, system-ui, sans-serif;
  --pad: clamp(16px, 4.5vw, 64px);
  --bg: #f7f6f2; --bg-2: #efede7; --ink: #141011; --ink-2: #4a4744; --mute: #8a8680; --line: #e0dcd4;
  --btn: #141011; --btn-ink: #fbfaf7; --accent: #2747d6; --field: #ffffff;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body.bs { margin: 0; background: var(--bg); color: var(--ink); font: 400 16px/1.55 var(--sans); -webkit-font-smoothing: antialiased; }
a { color: inherit; }
[hidden] { display: none !important; }
.bs-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.bs-top { position: sticky; top: 0; z-index: 40; height: 64px; padding: 0 var(--pad); display: flex; align-items: center; justify-content: space-between; background: var(--bg); }
.bs-brand { display: flex; align-items: center; gap: 10px; height: 34px; color: var(--ink); text-decoration: none; }
.bs-cube { width: 22px; height: 22px; flex: none; }
.bs-word { display: block; width: 112px; height: 16px; }
.bs-right { display: flex; align-items: center; gap: 8px; }
.bs-navpill { display: inline-flex; align-items: center; height: 34px; padding: 0 14px; font-size: 15px; white-space: nowrap; text-decoration: none; border: 1px solid var(--line); border-radius: 10px; background: var(--bg); }
.bs-navpill:hover { background: var(--bg-2); }
.bs-toplink { font-size: 14px; color: var(--ink-2); text-decoration: none; }
.bs-toplink:hover { color: #000; }

.bs-hero, .bs-end { max-width: 1080px; margin: 0 auto; padding: 40px 24px 56px; text-align: center; }
.bs-kick { margin: 0 0 14px; font-size: 13px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); }
.bs-hero h1 { margin: 0 auto 16px; max-width: 760px; font: 500 clamp(30px, 3.6vw, 48px)/1.15 var(--head); letter-spacing: -.025em; }
.bs-end h2 { margin: 0 0 12px; font-size: clamp(28px, 4vw, 40px); line-height: 1.1; font-weight: 600; letter-spacing: -.02em; }
.bs-lede { margin: 0 auto 24px; max-width: 620px; font-size: 18px; color: var(--ink-2); }
.bs-video { margin: 36px auto 0; max-width: 760px; border-radius: 14px; overflow: hidden; border: 1px solid var(--line); background: #000; aspect-ratio: 1920 / 1248; } /* the buyer console film's own shape, 9 Nov */
.bs-video video { display: block; width: 100%; height: 100%; object-fit: cover; }

.bs-form { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; max-width: 480px; margin: 0 auto; }
.bs-form input { flex: 1 1 240px; min-width: 0; height: 48px; padding: 0 16px; font: inherit; font-size: 16px; color: var(--ink); background: var(--field); border: 1px solid var(--line); border-radius: 10px; outline: none; }
.bs-form input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 25%, transparent); }
.bs-form button[type="submit"] { height: 48px; padding: 0 20px; font: inherit; font-size: 15px; font-weight: 500; color: var(--btn-ink); background: var(--btn); border: 0; border-radius: 10px; cursor: pointer; white-space: nowrap; }
.bs-form button[disabled] { opacity: .6; cursor: default; }
.bs-note { flex-basis: 100%; margin: 6px 0 0; font-size: 13px; color: var(--ink-2); }
.bs-note:empty { display: none; } /* trimmed hero, 8 Nov: status line only when it has something to say */
.bs-hero h1 { margin-bottom: 28px; }
.bs-note.bs-err { color: #b91c1c; }
.bs-link { padding: 0; font: inherit; color: inherit; background: none; border: 0; text-decoration: underline; text-underline-offset: 2px; cursor: pointer; } /* the code step's links, 9 Nov */
.bs-note b { font-weight: 600; }
.bs-done { max-width: 480px; margin: 0 auto; padding: 16px 18px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg-2); font-size: 15px; }
.bs-done b { display: block; margin-bottom: 2px; }
.bs-down { display: inline-block; margin-top: 40px; font-size: 14px; color: var(--ink-2); text-decoration: none; }
.bs-down:hover { color: #000; }

.bs-essay { max-width: 680px; margin: 0 auto; padding: 40px 24px 24px; scroll-margin-top: 72px; }
.bs-title { margin: 0 0 10px; font: 500 clamp(32px, 4.6vw, 44px)/1.12 "Newsreader", Georgia, serif; letter-spacing: -.01em; }
.bs-by { margin: 0 0 36px; font-size: 14px; color: var(--ink-2); }
.bs-essay p, .bs-essay li { margin: 0 0 1.1em; font: 400 17px/1.7 var(--sans); color: #000; }
.bs-essay .bs-kick, .bs-essay .bs-by { font-family: "Geist", system-ui, sans-serif; font-size: 13px; line-height: 1.5; }
.bs-essay .bs-by { font-size: 14px; }
.bs-essay h2:not(.bs-title) { margin: 40px 0 10px; font: 500 22px/1.25 var(--head); letter-spacing: -.015em; color: #000; }
.bs-essay blockquote { margin: 28px 0; padding-left: 20px; border-left: 2px solid var(--accent); color: var(--ink-2); }
.bs-placeholder { padding: 20px 22px; border: 2px dashed #f59e0b; border-radius: 12px; background: rgba(245, 158, 11, .08); }
.bs-placeholder b { color: #f59e0b; }
.bs-placeholder p, .bs-placeholder li { font-family: "Geist", system-ui, sans-serif; font-size: 16px; }
.bs-end { padding-top: 72px; padding-bottom: 96px; }

.bs-sticky { position: fixed; right: 20px; bottom: 20px; z-index: 50; }
.bs-pill { height: 44px; padding: 0 18px; font: inherit; font-size: 14px; font-weight: 500; color: var(--btn-ink); background: var(--btn); border: 0; border-radius: 999px; cursor: pointer; box-shadow: 0 8px 24px rgba(0, 0, 0, .35); }
.bs-form-mini { width: min(420px, calc(100vw - 40px)); padding: 12px; background: var(--bg-2); border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 12px 32px rgba(0, 0, 0, .4); flex-wrap: nowrap; }
.bs-form-mini input, .bs-form-mini button[type="submit"] { height: 42px; }
.bs-form-mini input { flex: 1 1 auto; }
.bs-form-mini .bs-note:empty { display: none; }
.bs-form-mini:has(.bs-note:not(:empty)) { flex-wrap: wrap; }
.bs-x { width: 32px; flex: none; font-size: 22px; line-height: 1; color: var(--ink-2); background: none; border: 0; cursor: pointer; }
.bs-sticky .bs-done { width: min(420px, calc(100vw - 40px)); box-shadow: 0 12px 32px rgba(0, 0, 0, .4); }

.gx-theme-btn { padding: 0; font: inherit; color: inherit; background: none; border: 0; text-decoration: underline; cursor: pointer; }

@media (max-width: 600px) {
  .bs-hero { padding-top: 20px; }
  .bs-lede { font-size: 16px; }
  .bs-form:not(.bs-form-mini) button[type="submit"] { flex: 1 1 100%; }
  .bs-essay p, .bs-essay li { font-size: 16px; }
  .bs-sticky { left: 12px; right: 12px; bottom: 12px; display: flex; justify-content: center; }
  .bs-form-mini, .bs-sticky .bs-done { width: 100%; }
}

/* Essay figures (8 Nov): side images sit in the left margin on wide screens, wide figures break out of the
   column, bleed figures run edge to edge. Captions are small sans, like a magazine. */
body.bs { overflow-x: clip; }
.bs-fig { margin: 40px 0; }
.bs-fig img { display: block; width: 100%; height: auto; }
.bs-fig figcaption { margin-top: 10px; font: 13px/1.5 "Geist", system-ui, sans-serif; color: var(--ink-2); }
.bs-fig-wide { width: min(980px, calc(100vw - 48px)); margin-left: 50%; transform: translateX(-50%); }
.bs-fig-bleed { width: 100vw; margin: 56px 0 56px 50%; transform: translateX(-50%); }
.bs-fig-bleed figcaption { max-width: 680px; margin: 10px auto 0; padding: 0 24px; }
.bs-fig-side img { border-radius: 2px; }
@media (min-width: 1180px) {
  .bs-fig-side { float: left; width: 340px; margin: 6px 36px 20px -240px; }
}
@media (max-width: 1179px) { .bs-fig-side { max-width: 420px; } }
.bs-fig-last { margin-bottom: 0; }

.bs-essay p.bs-sign { margin-top: 0; }
.bs-essay a { text-decoration-color: color-mix(in srgb, currentColor 40%, transparent); text-underline-offset: 3px; }
.bs-essay h2:not(.bs-title) { clear: both; }

@media (max-width: 480px) { .bs-navpill + .bs-navpill { display: none; } }
/* The end of the essay, 9 Nov: the waitlist box (the hero's panel), then a small author card, both centred. */
.bs-essay .bs-form-end { width: min(520px, 100%); max-width: none; margin: 48px auto 0; }
.bs-essay .bs-form-end .bs-note { margin: 0; font-size: 13px; line-height: 1.5; }
.bs-essay .bs-done { max-width: 520px; margin: 48px auto 0; }
.bs-credit-tag { display: inline-block; margin: 0 0 16px; padding: 6px 12px; border-radius: 999px; background: #383838; font: 500 13px/1.2 var(--sans); color: #fbfaf7; }
.ff-credit .bs-credit-label { font: 400 13px/1.4 var(--sans); color: #a3a09b; }
.ff-credit .bs-credit-name { margin-top: 4px; font: 500 15px/1.4 var(--head); color: #fbfaf7; }

/* The ring hero (Erik, 9 Nov 2026): the app's Join the Buyside waitlist screen at the top of the page. Its height
   leaves the first lines of the essay on the first screen. ring.js moves the cards. */
.bs-ringhero { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 26px;
  max-width: none; min-height: clamp(420px, calc(100vh - 64px - 150px), 640px); padding: 24px 20px 32px; overflow: hidden;
  background: radial-gradient(closest-side, rgba(37, 99, 235, .07), transparent) center / min(1100px, 140vw) min(700px, 100%) no-repeat; }
@supports (height: 100svh) { .bs-ringhero { min-height: clamp(420px, calc(100svh - 64px - 150px), 640px); } }
.bs-ringhero h1 { position: relative; z-index: 1; margin: 0; font: 600 clamp(32px, 3.6vw, 46px)/1.06 var(--head); letter-spacing: -.035em; text-wrap: balance; }
.bs-ring { position: absolute; left: 50%; top: 50%; width: 0; height: 0; z-index: 0; pointer-events: none; }
.bs-wrap { position: relative; z-index: 1; width: min(520px, 100%); }
.bs-panel { max-width: none; margin: 0; padding: 10px; flex-wrap: nowrap; border: 1px solid #dedee2; border-radius: 18px; background: #fff;
  box-shadow: 0 14px 40px -12px rgba(20, 20, 30, .16), 0 2px 6px rgba(20, 20, 30, .05); }
.bs-panel:has(.bs-note:not(:empty)) { flex-wrap: wrap; }
.bs-panel input { height: 46px; border: 0; background: transparent; }
.bs-panel input:focus { box-shadow: none; }
.bs-panel button[type="submit"] { height: 46px; border-radius: 12px; }
.bs-panel .bs-note { padding: 0 8px 4px; text-align: left; }
.bs-ringhero .bs-done { position: relative; z-index: 1; max-width: none; text-align: left; background: #fff; }
.bs-deck { position: absolute; left: 22px; right: 22px; top: 16px; bottom: -13px; z-index: -1; border: 1px solid #e7e7e9; border-radius: 16px;
  background: #fff; box-shadow: 0 10px 26px -10px rgba(20, 20, 30, .18), 0 1px 3px rgba(20, 20, 30, .06); opacity: 0; overflow: hidden; }
.bs-deck em, .bs-card em { position: absolute; left: 14px; right: 14px; bottom: 5px; height: 3px; border-radius: 3px; opacity: 0;
  background: linear-gradient(90deg, #3a63c8 0 30%, #2e9a62 30% 52%, #f2c23c 52% 68%, #e07a5f 68% 80%, #7b61c9 80% 92%, #8cc4c8 92%); }
.bs-ringhero.is-settled .bs-deck, .bs-ringhero.is-settled .bs-deck em { opacity: 1; }
.bs-card { position: absolute; left: 0; top: 0; width: 150px; box-sizing: border-box; padding: 11px 12px 12px; border: 1px solid #e7e7e9; border-radius: 14px; text-align: left;
  background: #fff; box-shadow: 0 10px 26px -10px rgba(20, 20, 30, .18), 0 1px 3px rgba(20, 20, 30, .06); opacity: 0; overflow: hidden; will-change: transform, opacity; --k: 1; }
.bs-mix { display: flex; gap: 2px; height: 6px; margin-bottom: 9px; opacity: var(--k); }
.bs-mix i { display: block; min-width: 4px; border-radius: 3px; }
.bs-card b, .bs-card small { display: block; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; opacity: var(--k); }
.bs-card b { font-size: 12.5px; font-weight: 600; letter-spacing: -.01em; color: var(--ink); }
.bs-card small { margin-top: 3px; font-size: 11px; color: var(--mute); }
.bs-card .is-sk { height: 9px; border-radius: 5px; background: #ececef; }
.bs-card small.is-sk { width: 60%; margin-top: 7px; }
.bs-film { margin: 44px 0 44px 50%; }
.bs-film .bs-video { margin: 0; max-width: none; }
@media (max-width: 640px) {
  .bs-ringhero { gap: 20px; min-height: clamp(380px, calc(100svh - 64px - 130px), 560px); }
  .bs-ringhero h1 { font-size: 32px; }
  .bs-panel { flex-wrap: wrap; }
  .bs-panel button[type="submit"] { flex: 1 1 100%; }
  .bs-card { width: 116px; padding: 9px 10px 10px; border-radius: 12px; }
  .bs-mix { height: 5px; margin-bottom: 7px; }
  .bs-card b { font-size: 11px; }
  .bs-card small { font-size: 10px; }
}
/* The film plays on its own like an overlay (Erik, 9 Nov 2026): no controls, and a mouse can't pause or touch it.
   On a touch screen a tap opens it full screen (buyside.js). */
.bs-film video { pointer-events: none; }
@media (hover: none) { .bs-film video { pointer-events: auto; cursor: pointer; } }
/* The foot of the page (Erik, 9 Nov 2026): the home page's footer, edge to edge, with the essay's date and author on top. */
.ff { margin-top: 64px; background: #141313; color: #b9b4ad; padding: clamp(48px, 7vh, 80px) var(--pad) 32px; }
.ff-credit { padding-bottom: clamp(40px, 6vh, 64px); margin-bottom: clamp(40px, 6vh, 64px); border-bottom: 1px solid #2a2827; }
.ff-credit p { margin: 0; }
.ff-inner { display: flex; justify-content: space-between; gap: 48px; flex-wrap: wrap; }
.ff-logo { color: #f4f2ee; }
.ff-logo svg { display: block; width: 32px; height: 32px; }
.ff-cols { display: grid; grid-template-columns: repeat(3, minmax(140px, auto)); gap: 32px 64px; }
.ff-cols h4 { font: 400 14px/1 var(--sans); color: #77726c; margin: 0 0 18px; }
.ff-cols a { display: block; padding: 5px 0; font-size: 16px; color: inherit; text-decoration: none; transition: color .2s; }
.ff-cols a:hover { color: #fbfaf7; }
.ff-bar { margin-top: clamp(64px, 12vh, 140px); display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.ff-word { width: min(480px, 70vw); height: auto; aspect-ratio: 1683 / 234; color: #f4f2ee; }
.ff-bar p { margin: 0; font-size: 14px; color: #77726c; }
@media (max-width: 640px) { .ff-cols { grid-template-columns: 1fr 1fr; gap: 28px 40px; } }
