/* Frontrun — "Tape" direction.
 *
 * A trading terminal for your career. Amber on near-black, monospaced, dense,
 * with TIME SINCE POSTED as the hero metric — the only number nobody else can
 * print. Chosen over the editorial direction because the people paying for this
 * stare at exactly this aesthetic all day and read it as credible, not as
 * decoration.
 *
 * TYPE SCALE — seven steps, nothing invents an eighth.
 */

:root {
  --bg: #08090A;
  --bg-raised: #0D0F11;
  --bg-row: #101315;
  --ink: #E7E2D6;
  --ink-2: #9AA0A6;
  --ink-3: #6C7378;      /* 5.1:1 on --bg */
  --rule: #1C1F22;
  --rule-2: #14171A;
  --amber: #FFB020;
  --amber-dim: #FFB02022;
  --live: #3FCF8E;
  --on-amber: #08090A;
  --field-border: #3A4045;

  --fs-xs: 10.5px;
  --fs-sm: 12.5px;
  --fs-md: 14px;
  --fs-base: 16px;
  --fs-lg: 21px;
  --fs-xl: 34px;
  --fs-2xl: 60px;

  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
  --sans: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

/* Tape commits to one visual world on purpose — a terminal that turns white in
 * daylight is not a terminal. Single theme, deliberately. */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--sans); font-size: var(--fs-base); line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}
:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; }

/* ---------- status bar: the count, above everything ---------- */

.statusbar {
  border-bottom: 1px solid var(--rule); background: var(--bg-raised);
  font-family: var(--mono); font-size: var(--fs-sm);
}
.statusbar-inner {
  max-width: 1120px; margin: 0 auto; padding: 9px 24px;
  display: flex; align-items: center; gap: 10px 26px; flex-wrap: wrap;
}
.statusbar .label {
  color: var(--ink-3); letter-spacing: 0.14em; text-transform: uppercase;
  font-size: var(--fs-xs);
}
.statusbar .count {
  color: var(--amber); font-weight: 600; font-variant-numeric: tabular-nums;
  font-size: var(--fs-md);
}
.statusbar .pulse { color: var(--live); }
.statusbar .sep { color: var(--rule); }
.statusbar .watching { color: var(--ink-2); }

/* ---------- masthead ---------- */

.masthead {
  max-width: 1120px; margin: 0 auto; padding: 20px 24px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px; flex-wrap: wrap;
}
.wordmark {
  font-family: var(--mono); font-size: var(--fs-lg); font-weight: 600;
  letter-spacing: 0.22em; color: var(--amber); text-decoration: none;
}
.masthead nav { display: flex; gap: 20px; align-items: center; flex-wrap: wrap; }
.masthead nav a {
  color: var(--ink-2); text-decoration: none; font-size: var(--fs-md);
  display: inline-flex; align-items: center; min-height: 44px;
}
.masthead nav a:hover { color: var(--ink); }
.masthead .nav-cta { color: var(--amber); font-weight: 600; }
.masthead .nav-cta:hover { color: var(--amber); text-decoration: underline; text-underline-offset: 4px; }

@media (max-width: 620px) {
  .masthead { padding: 12px 24px; }
  .masthead nav a[href="#proof"] { display: none; }
  .wordmark { font-size: var(--fs-base); }
}

/* ---------- intro ---------- */

main { max-width: 1120px; margin: 0 auto; padding: 0 24px; }

.intro { padding: 40px 0 30px; max-width: 62ch; }

.eyebrow {
  font-family: var(--mono); font-size: var(--fs-xs); letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--ink-3); margin: 0 0 18px;
}

h1 {
  font-size: clamp(30px, 4.2vw, 46px); line-height: 1.1; font-weight: 650;
  letter-spacing: -0.03em; margin: 0; max-width: 20ch; text-wrap: balance;
}
h1 .amber { color: var(--amber); }
.nb { white-space: nowrap; }

.standfirst { font-size: var(--fs-lg); color: var(--ink-2); margin: 20px 0 0; max-width: 52ch; }

.cta {
  display: inline-block; background: var(--amber); color: var(--on-amber);
  font-family: var(--mono); font-weight: 600; font-size: var(--fs-md);
  letter-spacing: 0.06em; text-transform: uppercase; text-decoration: none;
  padding: 14px 26px; border-radius: 2px;
  transition: transform 120ms ease, filter 120ms ease;
}
.cta:hover { filter: brightness(1.08); transform: translateY(-1px); }
.cta-ghost {
  font-family: var(--mono); font-size: var(--fs-md); color: var(--ink-2);
  text-decoration: none; border-bottom: 1px solid var(--rule); padding-bottom: 2px;
}
.cta-ghost:hover { color: var(--ink); border-color: var(--ink-3); }

/* ---------- the vault: real roles, locked ----------
 *
 * The blur is STYLING. The security boundary is that public_teaser_roles never
 * returns r.url, so the application link is not in the payload at all — opening
 * the inspector reveals titles that are already public on the firms' own sites,
 * and nothing else. Never add the URL here to make the blur look convincing.
 */

.vault {
  border: 1px solid var(--rule); background: var(--bg-raised);
  border-radius: 3px; overflow: hidden; margin-bottom: 8px;
}
.vault-head {
  display: flex; justify-content: space-between; align-items: center;
  padding: 11px 18px; border-bottom: 1px solid var(--rule);
  font-family: var(--mono); font-size: var(--fs-xs);
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-3);
}
.vault-head .live { color: var(--live); }

/* One window, fixed height, always full. Rows drift upward continuously so the
 * panel never shows empty space — the earlier stack of clear rows + a blur
 * masked to transparent + a min-height left most of it blank with the card
 * floating in the middle. */
.vault-body {
  position: relative;
  height: 460px;
  overflow: hidden;
}
@media (max-width: 560px) { .vault-body { height: 500px; } }

.vault-scroll {
  /* Blur light enough that the amber firm names stay recognisable — you can
   * tell it says JANE STREET — while the role titles do not resolve. That is
   * more tantalising than an opaque smear, and it shows the feed is real. */
  filter: blur(3.5px);
  animation: vault-drift 42s linear infinite;
  will-change: transform;
  user-select: none; pointer-events: none;
}
@keyframes vault-drift { from { transform: translateY(0); } to { transform: translateY(-50%); } }

@media (prefers-reduced-motion: reduce) {
  .vault-scroll { animation: none; }
  .vault-row[data-dupe] { display: none; }
}

/* Rows enter and leave rather than being cut off at a hard edge. */
.vault-body::before, .vault-body::after {
  content: ""; position: absolute; left: 0; right: 0; height: 60px;
  pointer-events: none; z-index: 1;
}
.vault-body::before { top: 0; background: linear-gradient(var(--bg-raised), transparent); }
.vault-body::after { bottom: 0; background: linear-gradient(transparent, var(--bg-raised)); }

.vault-row {
  display: grid; grid-template-columns: 1fr auto; gap: 2px 16px;
  padding: 10px 18px; border-bottom: 1px solid var(--rule-2); align-items: baseline;
}
.vault-row .firm {
  font-family: var(--mono); font-size: var(--fs-xs); letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--amber);
}
.vault-row .role { font-size: var(--fs-md); line-height: 1.3; margin-top: 2px; }
.vault-row .where { font-family: var(--mono); font-size: var(--fs-xs); color: var(--ink-3); margin-top: 2px; }
.vault-row .age {
  font-family: var(--mono); font-size: var(--fs-sm); color: var(--live);
  font-variant-numeric: tabular-nums; text-align: right; white-space: nowrap;
}
.vault-row .age.old { color: var(--ink-3); }

.vault-lock {
  position: absolute; inset: 0; z-index: 2;
  display: flex; align-items: center; justify-content: center; padding: 20px;
  background: radial-gradient(120% 80% at 50% 50%, #08090AE6 0%, #08090AC4 48%, #08090A70 100%);
}

.lock-card {
  text-align: center; max-width: 44ch;
  background: var(--bg-raised); border: 1px solid var(--rule);
  border-radius: 4px; padding: 24px 30px;
  box-shadow: 0 22px 60px rgba(0,0,0,0.6);
}
.lock-icon { color: var(--amber); display: block; margin: 0 auto 10px; }
.lock-count {
  font-family: var(--mono); font-size: var(--fs-sm); color: var(--ink-2);
  letter-spacing: 0.1em; text-transform: uppercase; margin: 0 0 8px;
}
.lock-count span { color: var(--amber); font-weight: 600; font-variant-numeric: tabular-nums; }
.lock-card h2 {
  font-size: clamp(21px, 2.4vw, 27px); margin: 0 0 6px; max-width: none;
  letter-spacing: -0.022em;
}
.lock-sub { color: var(--ink-2); font-size: var(--fs-md); margin: 0 0 18px; }
.lock-foot {
  font-family: var(--mono); font-size: var(--fs-xs); color: var(--ink-3);
  margin: 12px 0 0;
}
/* Empty until there is a seat count worth showing. min-height reserved space
 * for nothing and left a hole under the button. */
.lock-foot:empty { display: none; }
.lock-foot strong { color: var(--live); }

@media (max-width: 560px) {
  .lock-card { padding: 20px 18px; }
  .vault-lock { padding: 14px; }
  .lock-card .cta { display: block; }
}

/* ---------- metrics ---------- */

.metrics {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px;
  margin: 34px 0 8px; padding: 0;
}
@media (max-width: 720px) { .metrics { grid-template-columns: 1fr; gap: 22px; } }
.metrics > div { border-top: 2px solid var(--rule); padding-top: 12px; }
.metrics dt {
  font-family: var(--mono); font-size: var(--fs-xs); letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--ink-3);
}
.metrics dd {
  margin: 6px 0 4px; font-family: var(--mono); font-size: var(--fs-xl);
  line-height: 1; letter-spacing: -0.03em; font-variant-numeric: tabular-nums;
}
.metrics dd span { font-size: 0.4em; color: var(--ink-3); }
.metrics p { margin: 0; font-size: var(--fs-md); color: var(--ink-2); max-width: 30ch; }
.metrics .hot dd { color: var(--amber); }

/* ---------- sections ---------- */

section { scroll-margin-top: 20px; }
h2 {
  font-size: clamp(23px, 3vw, var(--fs-xl)); line-height: 1.16; font-weight: 650;
  letter-spacing: -0.022em; margin: 0 0 18px; max-width: 26ch; text-wrap: balance;
}
h3 { font-size: var(--fs-lg); font-weight: 650; letter-spacing: -0.015em; margin: 0 0 8px; }
.body { color: var(--ink-2); max-width: 62ch; margin: 0 0 16px; }

.proof { padding: 60px 0; border-top: 1px solid var(--rule); }
.footnote {
  font-size: var(--fs-md); color: var(--ink-3); max-width: 62ch;
  border-left: 2px solid var(--rule); padding-left: 16px; margin: 26px 0 0;
}

.how { padding: 60px 0; border-top: 1px solid var(--rule); }
.steps {
  list-style: none; counter-reset: step; margin: 30px 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 34px;
}
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; gap: 28px; } }
.steps li { counter-increment: step; }
.steps li::before {
  content: counter(step, decimal-leading-zero);
  display: block; font-family: var(--mono); font-size: var(--fs-sm);
  color: var(--amber); letter-spacing: 0.14em; margin-bottom: 10px;
}
.steps p { margin: 0; color: var(--ink-2); font-size: var(--fs-md); }

/* ---------- pricing page ---------- */

.pricing-page { padding: 44px 0 0; }
.pricing-grid {
  display: grid; grid-template-columns: minmax(300px, 1fr) minmax(240px, 0.8fr);
  gap: 44px; align-items: start; margin-top: 28px;
}
@media (max-width: 780px) { .pricing-grid { grid-template-columns: 1fr; gap: 30px; } }

.price-card {
  border: 1px solid var(--rule); background: var(--bg-raised);
  padding: 30px; border-radius: 3px;
}
.price {
  display: inline-flex; align-items: baseline; gap: 2px;
  font-family: var(--mono); font-size: var(--fs-2xl); line-height: 1;
  letter-spacing: -0.04em; margin: 6px 0 4px; font-variant-numeric: tabular-nums;
}
.price .currency { font-size: 0.42em; align-self: flex-start; margin-top: 0.14em; color: var(--ink-2); }
.price .per { font-family: var(--sans); font-size: 0.24em; color: var(--ink-3); letter-spacing: 0; }
.price-note { font-size: var(--fs-md); color: var(--ink-2); margin: 0 0 20px; }
.price-note strong { color: var(--live); }

form { display: flex; gap: 12px; flex-wrap: wrap; margin: 14px 0 0; }
input[type="email"] {
  flex: 1 1 220px; min-width: 0; font: inherit; font-size: var(--fs-md);
  padding: 13px 14px; border: 1px solid var(--field-border); border-radius: 2px;
  background: var(--bg); color: var(--ink);
}
input[type="email"]::placeholder { color: var(--ink-3); }
button {
  font-family: var(--mono); font-size: var(--fs-md); font-weight: 600;
  letter-spacing: 0.06em; text-transform: uppercase;
  padding: 13px 22px; border: 0; border-radius: 2px; cursor: pointer;
  background: var(--amber); color: var(--on-amber);
  transition: filter 120ms ease;
}
button:hover:not(:disabled) { filter: brightness(1.08); }
button:disabled { opacity: 0.5; cursor: progress; }
@media (max-width: 520px) { form button { width: 100%; } }

.form-status { font-size: var(--fs-md); margin: 12px 0 0; min-height: 1.4em; color: var(--ink-2); }
.form-status.ok { color: var(--live); }
.form-status.error { color: #E0736B; }
.reassure { font-size: var(--fs-md); color: var(--ink-3); margin: 14px 0 0; }

.includes { list-style: none; margin: 24px 0 0; padding: 20px 0 0; border-top: 1px solid var(--rule); }
.includes li { position: relative; padding-left: 20px; margin-bottom: 9px; font-size: var(--fs-md); color: var(--ink-2); }
.includes li::before { content: "›"; position: absolute; left: 0; color: var(--amber); }

.honesty { padding-top: 31px; }
.honesty p { color: var(--ink-2); font-size: var(--fs-md); max-width: 40ch; }

/* ---------- welcome ---------- */

.welcome { padding: 72px 0 40px; max-width: 60ch; }
.welcome .status-line {
  font-family: var(--mono); font-size: var(--fs-sm); letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--live); margin: 0 0 16px;
}
.welcome .status-line.working { color: var(--amber); }
.welcome .status-line.failed { color: #E0736B; }

/* ---------- footer ---------- */

footer {
  border-top: 1px solid var(--rule); max-width: 1120px; margin: 64px auto 0;
  padding: 24px 24px 56px;
  display: flex; justify-content: space-between; gap: 16px 26px; flex-wrap: wrap;
}
footer p { margin: 0; font-size: var(--fs-md); color: var(--ink-2); }
footer .muted { font-family: var(--mono); font-size: var(--fs-xs); color: var(--ink-3); }
footer .muted:empty { display: none; }
.footer-links { display: flex; gap: 18px; flex-wrap: wrap; }
.footer-links a { color: var(--ink-2); font-size: var(--fs-md); text-decoration: none; }
.footer-links a:hover { color: var(--ink); }

/* ---------- legal pages ----------
 *
 * Deliberately the plainest thing on the site. Terms that are hard to read are
 * a tell, and these are documents a customer reads when they are already
 * annoyed — narrow measure, generous leading, real headings, no amber shouting.
 */

.legal { max-width: 68ch; padding: 44px 0 0; }

/* The global h1/h2 rules cap headings at 20ch/26ch and balance them — right for
 * a marketing headline, wrong here, where h2 carries the section rule and a
 * capped heading draws a divider that stops a third of the way across. */
.legal h1, .legal h2, .legal h3,
.account h1, .account h2 { max-width: none; text-wrap: initial; }
.legal h1 { font-size: var(--fs-xl); line-height: 1.15; margin: 0 0 6px; letter-spacing: -0.01em; }
.legal .updated {
  font-family: var(--mono); font-size: var(--fs-xs); color: var(--ink-3);
  letter-spacing: 0.08em; text-transform: uppercase; margin: 0 0 28px;
}
.legal .lede { font-size: var(--fs-lg); color: var(--ink-2); margin: 0 0 34px; }
.legal h2 {
  font-size: var(--fs-base); margin: 38px 0 10px; padding-top: 18px;
  border-top: 1px solid var(--rule); letter-spacing: 0.01em;
}
.legal h3 { font-size: var(--fs-md); margin: 22px 0 6px; color: var(--ink); }
.legal p, .legal li { color: var(--ink-2); font-size: var(--fs-md); }
.legal p { margin: 0 0 12px; }
.legal ul, .legal ol { margin: 0 0 12px; padding-left: 20px; }
.legal li { margin-bottom: 7px; }
.legal strong { color: var(--ink); font-weight: 600; }
.legal a { color: var(--amber); text-decoration: underline; text-underline-offset: 3px; }

/* Used where the plain-English summary sits above the formal clause. Nobody
 * reads the clause; everybody reads this. */
.legal .plain {
  border-left: 2px solid var(--amber); background: var(--amber-dim);
  padding: 12px 16px; margin: 0 0 18px; border-radius: 0 4px 4px 0;
}
.legal .plain p { margin: 0; color: var(--ink); }
.legal .plain p + p { margin-top: 8px; }

.legal table { border-collapse: collapse; width: 100%; margin: 0 0 16px; font-size: var(--fs-sm); }
.legal th, .legal td {
  text-align: left; padding: 9px 12px 9px 0; border-bottom: 1px solid var(--rule);
  vertical-align: top; color: var(--ink-2);
}
.legal th { color: var(--ink); font-weight: 600; white-space: nowrap; }
/* Standalone, not scoped to .legal: the subscriber table lives in .account,
 * and scoping this meant its wrapper never became a scroll container, so a
 * 571px table pushed the whole page sideways. */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; max-width: 100%; }

/* Buttons rendered by welcome.js / account.js are joined with no whitespace, so
 * without this they sit flush against each other and read as one control. */
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 26px; }

/* ---------- account ---------- */

.account { padding: 48px 0 0; max-width: 62ch; }
.account h1 { font-size: var(--fs-xl); margin: 0 0 4px; letter-spacing: -0.01em; }
.account .who { font-family: var(--mono); font-size: var(--fs-sm); color: var(--ink-3); margin: 0 0 32px; }

.acct-card {
  background: var(--bg-raised); border: 1px solid var(--rule);
  border-radius: 6px; padding: 22px 24px; margin: 0 0 20px;
}
.acct-row {
  display: flex; justify-content: space-between; align-items: baseline;
  gap: 16px; padding: 11px 0; border-bottom: 1px solid var(--rule-2);
}
.acct-row:last-child { border-bottom: 0; padding-bottom: 0; }
.acct-row:first-child { padding-top: 0; }
.acct-row dt {
  font-family: var(--mono); font-size: var(--fs-xs); letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--ink-3);
}
.acct-row dd { margin: 0; font-size: var(--fs-md); color: var(--ink); text-align: right; }

.badge {
  font-family: var(--mono); font-size: var(--fs-xs); letter-spacing: 0.08em;
  text-transform: uppercase; padding: 3px 8px; border-radius: 3px;
  border: 1px solid currentColor;
}
.badge.live { color: var(--live); }
.badge.trial { color: var(--amber); }
.badge.warn { color: #E0736B; }
.badge.off { color: var(--ink-3); }

.acct-note { font-size: var(--fs-md); color: var(--ink-2); margin: 0 0 8px; }
.acct-note a { color: var(--amber); }
.signout {
  background: none; border: 0; padding: 0; font: inherit; font-size: var(--fs-md);
  color: var(--ink-3); text-decoration: underline; text-underline-offset: 3px;
  cursor: pointer;
}
.signout:hover { color: var(--ink-2); }

/* The subscriber table has short, factual cells — an email, a badge, a date.
 * Letting them wrap crushes five columns into an unreadable block at phone
 * width, so the cells hold their line and the wrapper scrolls instead. */
.data-table table { min-width: 520px; }
.data-table th, .data-table td { white-space: nowrap; padding-right: 18px; }
.data-table td:first-child { max-width: 22ch; overflow: hidden; text-overflow: ellipsis; }

/* The qualifier on a stat belongs under the number, not fighting it for the
 * same line. */
.acct-row dd .qualifier {
  display: block; color: var(--ink-3); font-size: var(--fs-xs);
  font-family: var(--mono); margin-top: 2px;
}
