/* Kenzo — shared stylesheet, design v2
   One world, committed: a warm near-black room lit by brass. No light theme, because a
   white page would break it — the restraint is the point and it only reads in the dark.
   Reference is financial print and the private-bank brochure rather than the SaaS page:
   one geometric family across everything, set light and large with tight tracking,
   letterspaced small-caps labels, hairline rules instead of filled cards, and space.
   Claret carries the red-folder lineage without shouting; brass does the marking.
   Anything the software prints stays monospace, which is the one plain voice in the room. */

:root {
  --ground:  #0f0d0c;
  --surface: #171412;
  --raised:  #1f1b18;
  --ink:     #efe9e1;
  --muted:   #c2b9af;
  --faint:   #a89e95;
  --line:    #2a2420;
  --hair:    #3a322c;
  --brass:   #c9a96a;
  --claret:  #a33347;
  --claret-d:#7a2434;  --claret-lt:#c10101;
  /* --claret-lt was #b80101, which gives 2.81:1 on --ground. Large text needs
     3.0 under WCAG AA and the hero headline is the main place this colour is
     set as type, so it failed by one step. #c10101 measures 3.02:1 and is a
     brightness change you cannot see side by side - same hue, same weight.
     Do not darken it again without re-checking the ratio.

     NOT fixed here: --claret (#a33347) as SMALL text is 2.73:1 on a card and
     2.88:1 on the ground, against the 4.5 small text needs. Reaching 4.5 means
     about #cb596d, which is visibly pinker and a brand decision, so it was
     left to the owner on 26 November 2026. It affects the three pricing
     section labels and the "Not allowed" markers on prop-firm-rules. Every
     other colour on the site measures between 7:1 and 16:1. */
  --live:    #7fa88a;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: Jost, "Helvetica Neue", Arial, sans-serif;
  font-size: 18px;
  font-weight: 400;
  line-height: 1.7;
  letter-spacing: 0.005em;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
a:focus-visible, button:focus-visible, summary:focus-visible {
  outline: 1px solid var(--brass); outline-offset: 4px;
}
::selection { background: var(--claret); color: var(--ink); }

/* ---------- shell ---------- */

.wrap {
  width: 100%; max-width: 1060px; margin-inline: auto;
  padding-left:  max(24px, env(safe-area-inset-left, 0px));
  padding-right: max(24px, env(safe-area-inset-right, 0px));
}
.wrap--wide { max-width: 1360px; }
.section { padding-block: 92px; }
.section--tight { padding-block: 56px; }
/* 404 is the only page that opens on a plain .section instead of a hero band,
   so it kept the 92px top gap that every other page lost. Scoped to the first
   child because .section is also the generic mid-page spacing - catalogue uses
   it eight times and those gaps are between sections, not under the header. */
main > .section:first-child { padding-top: 56px; }
.band { border-top: 1px solid var(--line); }
.band--sunk { background: var(--surface); }

/* ---------- header ---------- */

.site-head {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 30;
  background: color-mix(in srgb, var(--ground) 94%, transparent);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
body::before {
  content: ""; position: fixed; inset: 0 0 auto;
  height: env(safe-area-inset-top, 0px); z-index: 31; background: var(--ground);
}
.site-head .wrap {
  display: flex; align-items: center; gap: 14px 30px;
  padding-block: 20px; flex-wrap: wrap;
}

.brand {
  font-family: Jost, sans-serif;
  font-weight: 500; font-size: 1.125rem;
  letter-spacing: 0.34em; text-transform: uppercase;
  text-decoration: none; white-space: nowrap; line-height: 1;
  padding-left: 0.1em;
}
.brand span { color: var(--brass); }
.brand img { display: block; height: 52px; width: auto; }

.nav {
  display: flex; gap: 26px; flex-wrap: wrap;
  font-size: 0.6875rem; letter-spacing: 0.16em; text-transform: uppercase; font-weight: 400;
}
.nav a { color: var(--muted); text-decoration: none; padding-bottom: 3px; }
.nav a:hover { color: var(--ink); }
.nav a[aria-current="page"] { color: var(--ink); border-bottom: 1px solid var(--brass); }

.head-end { display: flex; align-items: center; gap: 14px; margin-left: auto; }

/* ---------- type ---------- */

h1, h2, h3 { margin: 0; text-wrap: balance; font-family: Jost, sans-serif; }

h1 {
  font-size: clamp(2.75rem, 7vw, 5rem);
  font-weight: 300; line-height: 1.05; letter-spacing: -0.035em;
}
h2 {
  font-size: clamp(1.75rem, 4vw, 2.625rem);
  font-weight: 300; line-height: 1.14; letter-spacing: -0.028em;
}
h3 {
  font-family: Jost, sans-serif;
  font-size: 0.8125rem; font-weight: 500;
  letter-spacing: 0.14em; text-transform: uppercase; line-height: 1.5;
  color: var(--ink);
}

p { margin: 0; }
.prose { max-width: 62ch; display: flex; flex-direction: column; gap: 20px; }
/* .prose is a COLUMN CONTAINER for paragraphs. Put directly on a <p> it makes
   that paragraph a flex column, so every inline <a> or <strong> inside becomes
   its own stacked item with a 20px gap - which shatters the sentence around it.
   Keep the measure, drop the flex. */
p.prose { display: block; }
.lede {
  font-size: clamp(1.0625rem, 1.9vw, 1.375rem);
  font-weight: 300;
  color: var(--muted); max-width: 52ch; line-height: 1.55; letter-spacing: -0.005em;
}
/* The lede runs at weight 300, so a default <strong> at 700 lands as a shout.
   These are defined terms - the first expansion of an acronym - and they want
   to read as a definition, which is one step up and the brighter ink. */
.lede strong { font-weight: 500; color: var(--ink); }

.eyebrow {
  font-size: 0.625rem; font-weight: 400;
  letter-spacing: 0.3em; text-transform: uppercase;
  color: var(--brass); margin: 0;
}
/* Colour-only modifiers. Brass is the marking colour, so an eyebrow that labels a
   sub-section inside a band steps back to muted rather than competing with the
   section's own eyebrow above it. --live matches .badge--live and .tag--free. */
.eyebrow--quiet { color: var(--muted); }
.eyebrow--live  { color: var(--live); }

/* A .mono run is often a path or an identifier with no space in it, and one of
   those is wider than a phone. On 26 November 2026 closeout-guard-add-on.html
   pushed the whole document 100px past a 375px viewport on the strength of a
   single span: bin\Custom\AddOns\Kenzo_CloseoutGuardAddOn.xml - 46 characters,
   no break opportunity, so every paragraph on the page scrolled sideways with
   it. The longer .mono strings elsewhere (up to 75 characters) contain spaces
   and had always wrapped, which is why this looked like one page's problem.

   It was fixed with "anywhere" first, and that was the wrong keyword. Both
   break inside a word that cannot fit a line, but "anywhere" ALSO drops
   min-content to a single character, so a container free to size itself to its
   contents shrinks to nothing and takes every word down with it. Within the
   hour the owner photographed the Red Folder Sniper schedule table on a phone:
   the Moment column had collapsed to seven characters and was reading
   "Releas / e" and "Bracke / t". setup-guide.html was doing the same to seven
   parameter names. Both tables sit in .table-scroll, which exists precisely so
   a table may stay wide and scroll - "anywhere" had made it impossible for the
   table ever to be wide enough to need it.

   "break-word" leaves min-content at the longest word, so the column keeps its
   width and the scroll container does its job, while the 46-character path
   still breaks because it alone cannot fit the line. Measured at 320/360/375/
   414 after the change: no page overflows and no word is split mid-character.
   Do not reach for "anywhere" again - if some future token blows out a track,
   give that track an explicit floor (the .grid rules below use
   minmax(min(Npx,100%),1fr) for exactly this) rather than letting every word
   on the page pay for it. It is inert where white-space:nowrap is set
   (.tape__row, td.num, .rf-roll), so those keep their deliberate scroll. */
.mono { font-family: "IBM Plex Mono", ui-monospace, Menlo, monospace; font-variant-numeric: tabular-nums; font-weight: 400;
        overflow-wrap: break-word; }
.muted { color: var(--muted); }
.small { font-size: 0.875rem; }
/* p.small is 14px inside containers capped for 18px text - .prose is 62ch,
   which is 670px at 18px, and 670px of 14px text is 114 characters. The cap
   has to live on the small text itself. 55ch of 14px measures ~80. Span, the
   only other element that takes .small, is inline and ignores max-width. */
p.small { max-width: 55ch; }
.h-accent { color: var(--brass); }
.h-red { color: var(--claret-lt); }
/* "Red Folder Day" is one term and h1 is text-wrap:balance, which was happy to
   leave "Red" alone at the end of a line and carry "Folder Day" to the next.
   Balance still does its job on the rest of the headline; it just cannot break
   inside this span now.

   Safe at every real phone width, measured 26 November 2026: the term is 258px
   at the 44px hero size, which holds from 320 up to 560, and the h1 column at a
   320px viewport is 272 - 14px of headroom, and more at every width above it,
   because the font only grows after the column has grown more. A longer term
   here would need that measured again; the failure mode is a page that scrolls
   sideways on a phone. Scoped to .hero h1 so the "Next red folder" clock label
   is left alone. */
.hero h1 .h-red { white-space: nowrap; }

/* ---------- hero ---------- */

/* 104px of top padding under a 93px sticky header put ~197px of nothing above
   the eyebrow on every page. The bottom stays at 76px: that gap separates the
   hero from the content under it and was not the complaint. */
.hero { display: flex; flex-direction: column; gap: 26px; padding-block: 56px 76px; }
.hero h1 { max-width: 15ch; }
.hero__sub { display: flex; flex-direction: column; gap: 18px; margin-top: 2px; max-width: 58ch; }
.hero__lead {
  font-size: 0.6875rem; font-weight: 500; letter-spacing: 0.22em;
  text-transform: uppercase; color: var(--muted);
}
.hero__list {
  margin: 0; padding: 0; list-style: none;
  display: grid; gap: 10px 36px;
  grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr));
}
.hero__list li {
  position: relative; padding-left: 20px;
  font-family: Jost, sans-serif; font-weight: 300; font-size: 1.0625rem;
  line-height: 1.45; letter-spacing: -0.005em; color: var(--ink);
}
.hero__list li::before {
  content: ""; position: absolute; left: 0; top: 0.72em;
  width: 9px; height: 1px; background: var(--brass);
}
.hero__sub-line {
  font-family: Jost, sans-serif; font-weight: 300;
  font-size: clamp(1.5rem, 3.1vw, 2.125rem);
  line-height: 1.18; letter-spacing: -0.022em;
  color: var(--ink); max-width: 30ch; text-wrap: balance;
}
.hero__sub-note {
  font-family: Jost, sans-serif; font-weight: 300;
  font-size: clamp(1rem, 1.6vw, 1.1875rem);
  line-height: 1.4; letter-spacing: -0.008em;
  color: var(--muted); max-width: 40ch;
}
.actions { display: flex; gap: 28px; flex-wrap: wrap; align-items: center; margin-top: 14px; }

/* A hero note with no cap of its own. Its siblings have one - .hero h1 at
   15ch, .hero__sub at 58ch, .hero__sub-note at 40ch - but a plain .muted
   paragraph dropped straight into .wrap.hero inherits nothing and runs the
   full 1012px, which on setup-guide.html was 123 characters a line. 58ch
   matches .hero__sub, the cap its nearest sibling already uses. Only
   setup-guide.html has one of these today; the rule is written for the
   position, not for that page, so the next one is covered too. */
.hero > .muted { max-width: 58ch; }

/* Once the buttons stack, they must be the same width. Side by side, two
   different widths read as a hierarchy; stacked, they read as a mistake - the
   sales page had "$79 a month" at 158px above "Start with the free toolkit"
   at 273px. The widest pair is 459px of content, so 560px is the last
   viewport that can hold them on one line. Below that, stretch them.
   Every .actions block on the site holds nothing but .btn, checked. */
@media (max-width: 560px) {
  .actions { flex-direction: column; align-items: stretch; gap: 14px; }
  .actions .btn { width: 100%; justify-content: center; text-align: center; }
}

/* ---------- buttons: a rule and a word, not a pill ---------- */

.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 30px; border-radius: 1px;
  border: 1px solid var(--hair); background: transparent; color: var(--ink);
  font-family: Jost, sans-serif; font-size: 0.6875rem; font-weight: 400;
  letter-spacing: 0.2em; text-transform: uppercase;
  text-decoration: none; cursor: pointer;
  transition: border-color 0.25s, color 0.25s, background-color 0.25s;
}
.btn:hover { border-color: var(--brass); color: var(--brass); }
.btn--primary { border-color: var(--brass); color: var(--brass); }
.btn--primary:hover { background: var(--brass); color: var(--ground); }
.btn--sm { padding: 10px 20px; font-size: 0.625rem; letter-spacing: 0.18em; }

/* ---------- marks, not badges ---------- */

.badge {
  display: inline-block; padding: 0;
  background: none; color: var(--brass);
  font-family: "IBM Plex Mono", ui-monospace, Menlo, monospace;
  font-size: 0.6875rem; font-weight: 400; line-height: 1;
  letter-spacing: 0.06em;
}
.badge::before { content: "("; color: var(--faint); }
.badge::after  { content: ")"; color: var(--faint); }
.badge--live { color: var(--live); }
.badge--ghost { color: var(--muted); }

.tag {
  display: inline-block; border: 0; border-radius: 0; padding: 0;
  font-family: Jost, sans-serif;
  font-size: 0.625rem; font-weight: 400; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--faint);
}
.tag--free { color: var(--live); }
.tag--new  { color: var(--brass); }

/* ---------- cards become ruled panels ---------- */

.grid { display: grid; gap: 0; border-top: 1px solid var(--line); }
/* min(Npx, 100%) rather than a bare Npx, because minmax() takes the LARGER of
   the two when the container is narrower than the floor: at a 320px viewport
   the .wrap content box is 272px, and .grid--2 was laying a 300px track in it.
   Measured 26 November 2026 - index, setup-guide and red-folder-sniper each
   scrolled 4px sideways, and contact 6px, which on a phone reads as the page
   wobbling rather than as a layout bug. Everything was clean at 375px, which
   is why it had not been seen. min() clamps the floor to the track's own
   width, so the column shrinks instead of overflowing. */
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(min(250px, 100%), 1fr)); }

.card {
  background: none; border: 0; border-bottom: 1px solid var(--line);
  border-right: 1px solid var(--line);
  border-radius: 0;
  padding: 34px 34px 36px 0;
  display: flex; flex-direction: column; gap: 14px; min-width: 0;
}
.card:nth-child(odd) { padding-right: 34px; }
.grid--2 .card { padding-left: 0; }
.grid--2 .card:nth-child(even) { padding-left: 34px; border-right: 0; }
.grid--3 .card { padding-left: 34px; }
.grid--3 .card:first-child { padding-left: 0; }
.card h3 { color: var(--brass); }
.card p { color: var(--muted); font-size: 1rem; line-height: 1.68; }
.card a:not(.btn) { color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--hair); padding-bottom: 2px; font-size: 0.8125rem; letter-spacing: 0.1em; text-transform: uppercase; }
.card a:not(.btn):hover { border-color: var(--brass); color: var(--brass); }
/* One row of identical buttons across the card feet: margin-top:auto drops each
   one to the bottom of its (equal-height) grid cell, so cards with more copy do
   not carry their button lower than the rest. */
.card__cta { margin-top: auto; margin-bottom: 0; }
/* One identical box for every card button. Stretching them to the cell instead
   would NOT make them match: .grid--3 .card:first-child drops its left padding
   to meet the page margin, so the first card is 34px wider than its neighbours
   and a 100%-width button there comes out 34px longer. 264px clears the longest
   label (255px: "Subscribe - $79 a month").

   min(264px, 100%), not a bare 264px. The max-width below was put here to keep
   the button inside a narrow card and CANNOT do it: min-width beats max-width
   in the cascade, always, so the floor wins and the button simply overflows.
   Measured 26 November 2026 on a tablet sweep - pricing.html pushed the
   document 24px sideways across a 67px band, 814 to 880, which is iPad Air
   portrait (820) and iPad Pro 11in portrait (834). In that band .grid--3 still
   lays three 250px tracks, leaving a 182px content box for a 264px button.
   Below 814 the grid drops to two columns and the cards are wide enough; above
   880 the wrap's own padding absorbs what is left of the overhang, which is why
   it hid between two widths nobody had measured.

   min() clamps the floor to the card instead, and the buttons still match each
   other because every card in the row shrinks by the same amount. max-width is
   kept as belt and braces; it is the min() that does the work. */
.card .btn { min-width: min(264px, 100%); max-width: 100%; justify-content: center; text-align: center; }
/* The first card in a .grid--3 has padding-left:0 so its edge meets the page
   margin, which leaves its content box 34px wider than its neighbours'. While
   there is room for 264px that does not show - every button is 264px. Once the
   clamp above starts biting it does: measured at 834px before this rule, the
   row came out 222 / 188 / 188. Taking the same 34px off this one's cap keeps
   all three identical at every width, which is the whole point of the 264px.
   Bounded at 800px because below that the grid is no longer three across and
   the clamp is not biting on the other two - taking 34px off this one there
   would make it the odd one out instead (255 against 264 at 640). Above about
   1060 the rule is inert: there is room for 264px everywhere, so min() picks
   264 for all three and the subtraction never shows.

   Only pricing.html puts buttons in a card grid today. Swept 600-1400px after
   the change: no overflow at any width, and no two buttons more than 1px
   apart. */
@media (min-width: 800px) {
  .grid--3 .card:first-child .btn { min-width: min(264px, calc(100% - 34px)); max-width: calc(100% - 34px); }
}
.card .price {
  font-size: 2.375rem; font-weight: 300; color: var(--ink);
  letter-spacing: -0.04em; line-height: 1;
}
.card--lead { background: none; }
.card--lead h3 { color: var(--claret); }
.card__n {
  font-family: "IBM Plex Mono", ui-monospace, Menlo, monospace;
  font-size: 0.625rem; letter-spacing: 0.2em; color: var(--faint);
  display: flex; align-items: center; gap: 12px;
}

/* ---------- accordion as a ruled index ---------- */

.acc { display: flex; flex-direction: column; gap: 0; border-top: 1px solid var(--line); }
.acc details {
  background: none; border: 0; border-bottom: 1px solid var(--line); border-radius: 0;
}
.acc summary {
  display: flex; align-items: baseline; gap: 14px;
  padding: 26px 2px; cursor: pointer; list-style: none;
  font-weight: 400; font-size: 1.0625rem; letter-spacing: -0.005em;
  color: var(--ink);
  transition: color 0.2s;
}
.acc summary:hover { color: var(--brass); }
.acc summary::-webkit-details-marker { display: none; }
.acc summary::after {
  content: "+"; margin-left: auto; color: var(--brass);
  font-family: Jost, sans-serif; font-size: 1.125rem; font-weight: 300;
  transition: transform 0.25s;
}
.acc details[open] summary { color: var(--brass); }
.acc details[open] summary::after { transform: rotate(45deg); }
.acc__body {
  padding: 0 0 30px; color: var(--muted); font-size: 1rem;
  display: flex; flex-direction: column; gap: 14px; max-width: 62ch; line-height: 1.72;
}
.acc__body .mono { color: var(--ink); }
.acc__body a { color: var(--brass); }

/* ---------- the tape ---------- */

.tape {
  font-family: "IBM Plex Mono", ui-monospace, Menlo, monospace;
  font-size: 0.8125rem; font-variant-numeric: tabular-nums;
  border: 1px solid var(--line); border-radius: 1px;
  background: var(--surface); overflow: hidden; max-width: 640px;
}
.tape__row {
  display: flex; gap: 16px; align-items: baseline;
  padding: 11px 18px; border-bottom: 1px solid var(--line);
  white-space: nowrap; overflow-x: auto; scrollbar-width: none;
}
.tape__row::-webkit-scrollbar { display: none; }
.tape__row:last-child { border-bottom: 0; }
.tape__t { color: var(--faint); flex: none; }
.tape__msg { color: var(--muted); }
.tape__row--hit { background: color-mix(in srgb, var(--claret) 16%, transparent); }
.tape__row--hit .tape__msg { color: var(--ink); }
.tape__row--hit .tape__t { color: var(--brass); }

/* ---------- forms ---------- */

.form { display: grid; gap: 24px; max-width: 560px; }
/* min-width:0 because a grid item will not shrink below its content's
   min-content width, and an <input> with no size attribute reports a default
   intrinsic width of its own - about 302px with this padding. On a 320px
   phone the column has 272px, so every field sat 30px proud of it and the
   page scrolled sideways. The inputs' own width:100% could not help: they
   were already filling a track that was too wide. */
.field { display: flex; flex-direction: column; gap: 9px; min-width: 0; }
.field > label {
  font-size: 0.625rem; letter-spacing: 0.3em; text-transform: uppercase; color: var(--brass);
}
.field__opt {
  letter-spacing: 0.12em; color: var(--faint); margin-left: 6px;
}
.field input, .field select, .field textarea {
  font-family: Jost, sans-serif; font-size: 1rem; font-weight: 300; line-height: 1.5;
  color: var(--ink); background: var(--surface);
  border: 1px solid var(--line); border-radius: 1px;
  padding: 13px 15px; width: 100%;
}
.field textarea { min-height: 170px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--brass);
}
.field input:disabled, .field select:disabled, .field textarea:disabled {
  opacity: 0.45; cursor: not-allowed;
}
.field input::placeholder, .field textarea::placeholder { color: var(--faint); }
.field__hint { font-size: 0.875rem; color: var(--muted); }
.field__hint a { color: var(--muted); text-decoration: underline;
  text-decoration-color: var(--hair); text-underline-offset: 3px; }
.field__hint a:hover { color: var(--ink); text-decoration-color: var(--brass); }
.form .btn:disabled { opacity: 0.45; cursor: not-allowed; }

/* hCaptcha renders a fixed 302px-wide iframe, which is wider than the form
   column on a 320px phone and is not ours to reflow. Scaling the wrapper is,
   and a transform counts toward scrollable overflow, so this removes the last
   6px of sideways scroll on contact.html. No height is set with it on purpose:
   the box keeps reserving the widget's full height, so a future change to
   hCaptcha's own size can leave a little extra space below but can never clip
   the checkbox. Above 374px nothing is scaled. */
@media (max-width: 374px) {
  .h-captcha { transform: scale(0.88); transform-origin: left top; }
}

/* honeypot: off-screen for people, present for bots */
.hp {
  position: absolute !important; left: -9999px !important;
  width: 1px; height: 1px; opacity: 0; pointer-events: none;
}

/* ---------- catalogue counts ---------- */

.figs {
  display: flex; flex-wrap: wrap; gap: 24px 48px;
  border-top: 1px solid var(--hair); border-bottom: 1px solid var(--hair);
  padding-block: 28px; max-width: 640px; margin: 0;
}
.figs__item { display: flex; flex-direction: column; gap: 7px; margin: 0; }
.figs dt, .figs dd { margin: 0; }
.figs__n {
  font-family: "IBM Plex Mono", ui-monospace, Menlo, monospace;
  font-size: clamp(1.75rem, 5vw, 2.5rem); font-weight: 300;
  font-variant-numeric: tabular-nums; line-height: 1;
  letter-spacing: -0.01em; color: var(--ink); order: 2;
}
.figs__label {
  font-size: 0.625rem; letter-spacing: 0.3em; text-transform: uppercase;
  color: var(--brass); order: 1;
}
.figs__note { font-size: 0.9375rem; color: var(--muted); order: 3; }
.figs__note a { color: var(--muted); text-decoration: underline;
  text-decoration-color: var(--hair); text-underline-offset: 3px; }
.figs__note a:hover { color: var(--ink); text-decoration-color: var(--brass); }

/* ---------- countdown ---------- */

.clock {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px 36px;
  padding: 0; border: 0; border-top: 1px solid var(--hair); border-bottom: 1px solid var(--hair);
  background: none; max-width: 640px;
  padding-block: 30px;
}
.clock__num {
  font-family: "IBM Plex Mono", ui-monospace, Menlo, monospace;
  font-size: clamp(1.875rem, 5.5vw, 3rem); font-weight: 300;
  font-variant-numeric: tabular-nums; line-height: 1;
  letter-spacing: -0.01em; color: var(--ink);
}
.clock__meta { display: flex; flex-direction: column; gap: 5px; }
.clock__label {
  font-size: 0.625rem; letter-spacing: 0.3em; text-transform: uppercase; color: var(--brass);
}
.clock__date {
  font-family: Jost, sans-serif; font-size: 1.0625rem; font-weight: 300;
  line-height: 1.2; letter-spacing: -0.008em; color: var(--ink);
}
.clock__event { font-size: 0.9375rem; color: var(--muted); }

/* ---------- media placeholders ---------- */

.figure { margin: 0; display: flex; flex-direction: column; gap: 14px; align-items: flex-start; }
.figure img {
  display: block; max-width: min(100%, 526px); height: auto;
  border: 1px solid var(--line); border-radius: 1px;
}
figcaption {
  color: var(--faint); font-size: 1rem; font-weight: 300;
  max-width: 52ch; line-height: 1.5;
}

.shot {
  aspect-ratio: 16 / 9; max-width: 100%;
  border: 1px solid var(--line); border-radius: 1px; background: var(--surface);
  display: grid; place-content: center; gap: 12px; text-align: center; padding: 32px;
}
.shot__label {
  font-size: 0.625rem; letter-spacing: 0.3em; text-transform: uppercase; color: var(--brass);
}
.shot__hint { color: var(--faint); font-size: 1rem; max-width: 44ch; font-weight: 300; }

/* ---------- tables ---------- */

.table-scroll { overflow-x: auto; border-top: 1px solid var(--hair); }

/* On a phone, seven of the ten tables here are wider than the screen - the prop
   firm table is 683px against 375. They scroll, and always have, but nothing
   said so: the content was sliced at the right edge, which reads as broken
   rather than swipeable.

   The first attempt at this was a pair of CSS scroll shadows, which are elegant
   and were the wrong tool: a background gradient paints BEHIND the text, so the
   words were still chopped mid-letter and nothing about the slice changed. It
   also said nothing to a screen reader. This is a line of real text instead,
   placed by hand above the tables that actually overflow, so no table that fits
   on a phone carries a hint it does not need. */
.table-hint { display: none; }
@media (max-width: 760px) {
  .table-hint {
    display: block;
    font-family: Jost, sans-serif;
    font-size: 0.625rem; letter-spacing: 0.2em; text-transform: uppercase;
    color: var(--brass);
    margin: 0 0 10px;
  }
}
table { border-collapse: collapse; width: 100%; font-size: 1rem; background: none; }
th, td { text-align: left; padding: 20px 26px 20px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
th {
  font-family: Jost, sans-serif;
  font-size: 0.625rem; font-weight: 400; letter-spacing: 0.22em;
  text-transform: uppercase; color: var(--brass); white-space: nowrap;
  padding-bottom: 16px;
}
td { color: var(--muted); line-height: 1.68; }
tbody tr:last-child td { border-bottom: 0; }
td.num, th.num { font-variant-numeric: tabular-nums; white-space: nowrap; }
td .mono { color: var(--ink); }

/* ---------- the free toolkit's table stops being a table on a phone ----------

   Every other table on this site is WIDER than a phone and scrolls, with a
   .table-hint above it saying so. This one is the opposite case and needed the
   opposite answer: 22 rows in three columns that all FIT inside 327px, which
   bought the description column 155px - three or four words a line, rows up to
   170px tall, and a tall thin wall of a page. Nothing was clipped, so the
   scroll hint would have been a lie, and letting it overflow to earn one would
   have meant swiping sideways to read every description.

   Below 560px each row becomes a block instead: the tool name and its version
   on one line, the description underneath at the full width of the column. No
   swiping, no 155px measure.

   560 and not a rounder number because it is where the table stops being the
   worse of the two. Measured with the stacking suppressed, the description
   column runs 176px at a 420px viewport, 229 at 480, 282 at 540 and 335 at
   600; about 300 is where it holds a readable line. Stacking higher than that
   is not a free win - at 680 the stacked block is 632px wide, a 95-character
   measure, which is harder to read than the 436px column it replaced. So:
   phones stack, everything else keeps the table. The <thead> goes to screen readers only, because
   "Tool / Version / What it does" labels columns that no longer exist - and
   the version is prefixed "v" here so a bare 1.15 beside a name still reads as
   a version with its header gone.

   The category rows are <tr><th colspan=3>, with no <td> in them at all, which
   is why the rules below can hang the row's rule-off line and padding on the
   last cell rather than on the <tr>: it leaves those heading rows alone
   without needing :has(). */
@media (max-width: 560px) {
  .tk-stack, .tk-stack tbody, .tk-stack tr, .tk-stack td, .tk-stack th { display: block; }
  .tk-stack thead {
    position: absolute; width: 1px; height: 1px;
    overflow: hidden; clip-path: inset(50%); white-space: nowrap;
  }
  /* A category heading. White-space normal because the <th> default is nowrap,
     which is right in a real table cell and would run "Momentum and
     volatility" off a 320px screen once it is a block. */
  .tk-stack tbody th[colspan] {
    white-space: normal; padding: 30px 0 4px; border-bottom: 0;
  }
  .tk-stack td { border-bottom: 0; padding: 0; }
  /* The name and the version share a line. Both cells need inline-block AND
     vertical-align:baseline: the global th,td rule is vertical-align:top,
     which is right in a real cell, and here it hung the version from the TOP
     of the name's link box. That box is 48px tall - the link is inline-block
     with 10px of tap padding either side - against the version's 18px, so
     v1.10 rendered as a superscript. Setting baseline on the version alone
     does nothing; the first cell has to stop being top-aligned as well. */
  .tk-stack td:first-child { display: inline-block; vertical-align: baseline; }
  .tk-stack td.num {
    display: inline-block; vertical-align: baseline;
    margin-left: 9px; color: var(--muted); font-size: 0.875rem;
  }
  .tk-stack td.num::before { content: "v"; }
  .tk-stack td:last-child {
    margin-top: 6px; padding-bottom: 20px; border-bottom: 1px solid var(--line);
  }
  .tk-stack tbody tr:last-child td:last-child { border-bottom: 0; }
}

/* ---------- misc ---------- */

.stack { display: flex; flex-direction: column; gap: 40px; }
.stack--sm { gap: 24px; }
.rule { height: 1px; background: var(--line); border: 0; margin: 0; }

ul.prose, ol.prose { padding-left: 1.2em; }
ul.prose li, ol.prose li { color: var(--muted); margin-bottom: 10px; }
ul.prose li::marker, ol.prose li::marker { color: var(--brass); }

.disclosure {
  border: 0; border-top: 1px solid var(--hair);
  border-radius: 0; padding: 22px 0 0; background: none;
  font-size: 0.8125rem; line-height: 1.7; color: var(--faint); max-width: 55ch;
  /* 76ch held 105 characters a line, because Jost's "0" is about 0.6em while
     its average letter is nearer 0.41em - a ch is not a character here, and
     every cap on this site reads about 1.4x wider than its number suggests.
     55ch measures ~80, the top of the comfortable 45-80 band. */
  letter-spacing: 0.01em;
}
.disclosure strong { color: var(--muted); font-weight: 400; }

/* The legal page's review-status banner. Restored 25 November 2026, reversing
   the 9 November decision to leave it off.

   Deliberately NOT .disclosure. That style is the site's fine print - 12px,
   --faint, and <strong> knocked back to --muted at weight 400 - which is right
   for a footnote under a page and wrong for the one line on this page a reader
   needs before they read anything else. A banner nobody notices is worse than
   no banner, because it lets us claim we disclosed something we effectively hid.

   A panel rather than a tinted alert strip: the site is dark-only and
   restrained, and a yellow warning bar would read as browser chrome rather than
   as something we wrote on purpose. Brass is this site's own "read this"
   accent. Claret is reserved for things that are wrong, and an unreviewed page
   is not wrong - it is unfinished. */
.review-note {
  margin: 0; padding: 20px 22px;
  background: var(--raised);
  border: 1px solid var(--line);
  border-left: 2px solid var(--brass);
  border-radius: 1px;
  font-size: 0.9375rem; line-height: 1.65;
  color: var(--muted); max-width: 72ch;
}
.review-note strong {
  display: block; margin-bottom: 7px;
  font-size: 0.625rem; font-weight: 400;
  letter-spacing: 0.3em; text-transform: uppercase;
  color: var(--brass);
}

/* The in-page jump nav, shared by legal.html and glossary.html. It had no base
   rule at all, so the links were separated by one space of markup whitespace and
   ran together as a single underlined sentence. Four short legal headings got
   away with it; seven glossary section names did not. */
.toc { display: flex; flex-wrap: wrap; gap: 8px 26px; }

/* The glossary's definition list. Term and meaning sit side by side on a wide
   screen and stack on a phone. The term carries the same uppercase treatment as
   h3 everywhere else, so an entry reads as the same kind of object as a heading.
   Any <a> in here needs :not(.btn) - see the note above the link rule. */
.gloss {
  margin: 0;
  display: grid;
  grid-template-columns: minmax(150px, 210px) 1fr;
  gap: 20px 34px;
}
.gloss dt {
  font-family: Jost, sans-serif;
  font-size: 0.8125rem; font-weight: 500;
  letter-spacing: 0.1em; text-transform: uppercase; line-height: 1.5;
  color: var(--ink); padding-top: 4px;
}
.gloss dd { margin: 0; color: var(--muted); max-width: 64ch; }

@media (max-width: 760px) {
  .gloss { grid-template-columns: 1fr; gap: 4px 0; }
  .gloss dt { padding-top: 0; }
  .gloss dd { margin-bottom: 22px; }
}

.site-foot {
  border-top: 1px solid var(--line);
  padding-block: 56px 72px; font-size: 0.8125rem; color: var(--faint);
  letter-spacing: 0.06em;
}
.site-foot .wrap { display: flex; gap: 32px; flex-wrap: wrap; justify-content: space-between; }
.site-foot a { color: var(--muted); text-decoration: none; }
.site-foot a:hover { color: var(--brass); }
.foot-links { display: flex; gap: 26px; flex-wrap: wrap; text-transform: uppercase; letter-spacing: 0.16em; font-size: 0.625rem; }

/* Touch targets, phones and tablets only - a mouse is precise enough that the
   desktop spacing is left exactly as designed.
   The footer links are a real navigation list, not links inside a sentence, so
   the inline-text exemption does not cover them. They were 17px tall on two
   rows with a 43px pitch, which is a 10px uppercase word floating in whitespace
   that does nothing when you hit it. Padding makes each one 45px; the row gap
   goes to zero because the padding now does that job, so the footer grows by
   about 30px and nothing moves sideways.
   The prop-firm table's links were 23px tall inside a 91px row - the cell
   already had the room, the anchor just was not claiming it. */
@media (max-width: 760px) {
  .foot-links { gap: 0 26px; }
  .foot-links a { display: inline-block; padding-block: 14px; }
  /* legal.html's on-page nav, same case as the footer: a list of four links,
     not a sentence */
  .toc a { display: inline-block; padding-block: 10px; }
  /* min-width is for the two "Site" cells: 46px tall but only 24px wide, which
     is a target you can miss sideways. Nothing in these columns is narrower
     than "Help centre", so no table gets wider. */
  .table-scroll td a { display: inline-block; padding-block: 10px; min-width: 44px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

/* ---------- mobile nav ---------- */

/* Hidden until nav.js says it works. Every rule that collapses the navigation
   is gated on .site-head[data-nav], which only nav.js sets, so a page whose
   script does not run keeps the wrapping nav it has always had rather than
   losing its navigation to a button that does nothing. */
.nav-toggle { display: none; }

/* 1060px, NOT the 760px the rest of the mobile rules use. The header needs
   963px of room - brand 105 + nav 650 + head-end 148, plus two 30px gaps -
   and .wrap only hands it that from about 1026px up. Folding at 760 left a
   300px band (iPad landscape at 1024, any half-screen laptop window) showing
   the full nav in a header wrapped onto two or three rows: 146px tall at
   900-1024, 182px at 768-820. This block is only the nav; the genuinely
   mobile layout rules stay at 760. nav.js's resize handler uses the same
   number and must be changed with it. */
@media (max-width: 1060px) {
  /* No margin-left: .head-end is already a flex row with gap:14px, and adding
     a margin on top of it made the pair 28px apart. At 375px that put the
     header at 328px of content in 327px of room, and the whole .head-end
     wrapped to its own line - the exact 150px-tall header this was meant to
     fix. The column gap below buys slack so one more pixel cannot do it
     again. */
  .site-head[data-nav] .wrap { column-gap: 20px; }
  .site-head[data-nav] .nav-toggle {
    display: inline-flex; align-items: center; justify-content: center;
    width: 44px; height: 44px; padding: 0;
    border: 1px solid var(--hair); border-radius: 1px;
    background: none; color: var(--ink); cursor: pointer;
    transition: border-color 0.25s, color 0.25s;
  }
  .site-head[data-nav] .nav-toggle:hover { border-color: var(--brass); color: var(--brass); }

  /* three 1px rules: the middle is the element, the others its pseudo halves */
  .nav-toggle__bars, .nav-toggle__bars::before, .nav-toggle__bars::after {
    display: block; width: 18px; height: 1px; background: currentColor;
    transition: transform 0.2s, top 0.2s, background-color 0.2s;
  }
  .nav-toggle__bars { position: relative; }
  .nav-toggle__bars::before, .nav-toggle__bars::after { content: ""; position: absolute; left: 0; }
  .nav-toggle__bars::before { top: -6px; }
  .nav-toggle__bars::after { top: 6px; }
  .nav-toggle[aria-expanded="true"] .nav-toggle__bars { background: transparent; }
  .nav-toggle[aria-expanded="true"] .nav-toggle__bars::before { top: 0; transform: rotate(45deg); }
  .nav-toggle[aria-expanded="true"] .nav-toggle__bars::after { top: 0; transform: rotate(-45deg); }

  .site-head[data-nav] .nav { display: none; }
  .site-head[data-nav] .nav[data-open] {
    display: flex; flex-direction: column; gap: 0;
    order: 3; width: 100%;
    margin-top: 14px; border-top: 1px solid var(--line);
  }
  /* 47px rows: a thumb target, not a 25px text link in a list of six */
  .site-head[data-nav] .nav[data-open] a {
    padding: 15px 0; border-bottom: 1px solid var(--line);
  }
}

@media (max-width: 760px) {
  body { font-size: 17px; }
  .nav { order: 3; width: 100%; gap: 18px; }
  .head-end { margin-left: auto; }
  /* kept below the desktop figure, as it always was (80 against 104) */
  .hero { padding-block: 44px 64px; }
  .section { padding-block: 76px; }
  /* Must come AFTER .section. Both selectors are (0,1,0), so on 404 - the one
     element carrying both classes - the mobile .section rule above was winning
     on source order and a "tight" section was rendering at 76px, looser than
     its own desktop value. Tight is 44 here and 56 there, matching the hero's
     top padding at each width. The eleven .wrap section--tight disclosure
     bands had no conflict but go 56 -> 44 with it, so "tight" means one thing
     per breakpoint rather than two. */
  .section--tight { padding-block: 44px; }
  main > .section:first-child { padding-top: 44px; }
  .grid--2 .card, .grid--3 .card { padding-left: 0; padding-right: 0; border-right: 0; }
  th, td { padding-right: 18px; }
}

/* ---------- red folder days table ---------- */

tr.is-next td { color: var(--ink); }
.rf-tag {
  font-family: Jost, sans-serif; font-size: 0.5625rem; font-weight: 500;
  letter-spacing: 0.26em; text-transform: uppercase; color: var(--brass);
  margin-left: 12px; vertical-align: 0.14em;
}
.rf-rel {
  font-family: "IBM Plex Mono", ui-monospace, Menlo, monospace;
  font-size: 0.875rem; letter-spacing: 0.06em;
}
.rf-rel--nfp { color: var(--claret-lt); }
.rf-rel--cpi { color: var(--brass); }
.rf-roll { color: var(--faint); font-size: 0.875rem; white-space: nowrap; }
tr[hidden] { display: none; }
.rf-foot { display: flex; align-items: baseline; gap: 18px; flex-wrap: wrap; margin-top: 4px; }
.link-btn {
  border: 0; background: none; padding: 0; cursor: pointer;
  font-family: Jost, sans-serif; font-size: 0.875rem; font-weight: 400; color: var(--ink);
  border-bottom: 1px solid var(--hair);
  position: relative;
}
/* "Show the other 18" is a real control - it opens the rest of the release
   table - but as a text link it was a 99x20 target against a 44px floor.
   This extends the TOUCH area to 44px tall without touching the visual: the
   pseudo-element is centred on the button and stays inside its own left and
   right edges, so it cannot swallow taps meant for the note beside it. */
.link-btn::after {
  content: ""; position: absolute;
  left: 0; right: 0; top: 50%;
  height: 44px; transform: translateY(-50%);
}
.link-btn:hover { color: var(--brass); border-bottom-color: var(--brass); }

/* ---------- video ---------- */

.figure--wide { width: 100%; }
.figure--wide img { max-width: 100%; }
.figure video {
  display: block; width: 100%; height: auto;
  border: 1px solid var(--line); border-radius: 1px; background: #000;
}
.disclosure--tight { padding-top: 16px; margin-top: 2px; }

/* Links in body copy. `a { color: inherit }` above makes an unstyled link
   invisible, which is fine for nav and cards (they carry their own styling)
   and wrong everywhere else. */
/* :not(.btn) throughout - this is the underline treatment for a link in a
   sentence, and it was also landing on the buttons inside a .prose block
   (subscribed.html's "Email us your NinjaTrader address"), where it beat .btn
   on specificity and cut the bottom padding from 14px to 1px. */
.prose a:not(.btn), .disclosure a:not(.btn), .lede a:not(.btn),
.review-note a:not(.btn), .gloss a:not(.btn) {
  color: var(--brass);
  text-decoration: none;
  border-bottom: 1px solid var(--hair);
  padding-bottom: 1px;
}
.prose a:not(.btn):hover, .disclosure a:not(.btn):hover, .lede a:not(.btn):hover { border-color: var(--brass); }

/* Two charts that exist to be compared with each other. Side by side on a
   wide screen; stacked below 760px, because two 960px charts squeezed into a
   phone are about 170px each and the thing being compared stops being
   visible at all. The label belongs to the image, so it sits with it rather
   than in the shared caption. */
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 0 28px; align-items: start; width: 100%; }
.pair img { max-width: 100%; width: 100%; }
.pair__label {
  margin: 12px 0 0;
  font-family: Jost, "Helvetica Neue", Arial, sans-serif;
  font-size: 0.8125rem; font-weight: 500;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--muted);
}
@media (max-width: 760px) {
  .pair { grid-template-columns: 1fr; gap: 30px 0; }
}

/* Links inside a data table. A table is not .prose, so without this they take
   `a { color: inherit }` from line 42 and render as plain body text. That is
   how prop-firm-rules.html came to carry 53 anchors - every "Help centre" and
   "Find" in its three tables - that did not look like anchors at all. The
   toolkit table's tool names needed the same rule, which is how it was found.
   The mobile tap-target rule for these already existed; only the colour and
   the hairline were missing. */
.table-scroll td a:not(.btn) {
  color: var(--brass);
  text-decoration: none;
  border-bottom: 1px solid var(--hair);
}
.table-scroll td a:not(.btn):hover { border-color: var(--brass); }

/* A heading that is also a link: the index pages. */
h2 > a {
  text-decoration: none;
  border-bottom: 1px solid var(--line);
  padding-bottom: 4px;
}
h2 > a:hover { color: var(--brass); border-color: var(--brass); }
