/* 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:   #9a9088;
  --faint:   #6b635c;
  --line:    #2a2420;
  --hair:    #3a322c;
  --brass:   #c9a96a;
  --claret:  #a33347;
  --claret-d:#7a2434;  --claret-lt:#b80101;
  --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: 17px;
  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; }
.band { border-top: 1px solid var(--line); }
.band--sunk { background: var(--surface); }

/* ---------- the thin top line ---------- */

.promo {
  background: var(--ground);
  border-bottom: 1px solid var(--line);
  font-family: Jost, sans-serif;
  font-size: 0.6875rem; font-weight: 400;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--muted); text-align: center;
}
.promo .wrap { padding-block: 11px; }
.promo a { color: var(--brass); text-decoration: none; border-bottom: 1px solid currentColor; padding-bottom: 1px; }
.promo .flag { color: var(--brass); margin-right: 10px; }
.promo .flag::after { content: " —"; color: var(--faint); }

/* ---------- 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); }

.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; }
.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;
}

.eyebrow {
  font-size: 0.625rem; font-weight: 400;
  letter-spacing: 0.3em; text-transform: uppercase;
  color: var(--brass); margin: 0;
}

.mono { font-family: "IBM Plex Mono", ui-monospace, Menlo, monospace; font-variant-numeric: tabular-nums; font-weight: 400; }
.muted { color: var(--muted); }
.small { font-size: 0.8125rem; }
.h-accent { color: var(--brass); }
.h-red { color: var(--claret-lt); }

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

.hero { display: flex; flex-direction: column; gap: 26px; padding-block: 104px 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(240px, 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; }

/* ---------- 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); }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(250px, 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: 0.9375rem; line-height: 1.68; }
.card a { 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:hover { border-color: var(--brass); color: var(--brass); }
.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: 0.9375rem;
  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.75rem; 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); }

/* ---------- 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.875rem; 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: 0.9375rem; 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: 0.9375rem; max-width: 44ch; font-weight: 300; }

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

.table-scroll { overflow-x: auto; border-top: 1px solid var(--hair); }
table { border-collapse: collapse; width: 100%; font-size: 0.9375rem; 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); }

/* ---------- 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.75rem; line-height: 1.7; color: var(--faint); max-width: 76ch;
  letter-spacing: 0.01em;
}
.disclosure strong { color: var(--muted); font-weight: 400; }

.site-foot {
  border-top: 1px solid var(--line);
  padding-block: 56px 72px; font-size: 0.75rem; 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; }

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

@media (max-width: 760px) {
  body { font-size: 16px; }
  .nav { order: 3; width: 100%; gap: 18px; }
  .head-end { margin-left: auto; }
  .hero { padding-block: 80px 64px; }
  .section { padding-block: 76px; }
  .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.8125rem; 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.8125rem; 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.8125rem; font-weight: 400; color: var(--ink);
  border-bottom: 1px solid var(--hair);
}
.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; }
