/* Hallmark · shape: Workbook, the product's three screens in the order a week is paid · genre: modern-minimal · theme: custom (brand-locked: CachetProd :root, dealt wayfind 1/3 set aside) · job: sign up · idea: "the paye of a week, shown done and frozen" · vibe: "précis, calme, administratif, chiffres lisibles"
 * paper: #f4f7f6 · accent: #4361ee · display: Inter · body: Inter · hero: Stage, text on five columns, the weekly paye on seven · nav: wordmark, the theme switch and one action, vast space between · footer: a mast, the mark over the legal links · imagery: the product built with invented data · signature: the weekly paye grid with the validated week strip
 * axes: light/grotesk-sans/cool · posture: committed · contrast: pass · fold: pass · v2.0.0 */
/* Hallmark · pre-emit critique: P2 H2 E2 S2 R1 V2 · weakest: R, three built screens in a row risk a gallery; the rules and spaces sections break it with type and rows */
/* Hallmark · waive 1 · Inter declared in the CachetProd :root body font · the CachetProd charte imposes Inter on every screen of the app */
/* Hallmark · dismissed 74 · the slate and indigo values are the CachetProd :root tokens supplied by the user */
/* Hallmark · dismissed 25 · the statement is one display sentence set at section size, not running prose */
/* Hallmark · dismissed F25 · the rebuilt plan and paye grids scroll sideways inside their frame, as the CachetProd tables do */
/* Hallmark · dismissed 58 · the count includes the three rebuilt CachetProd screens, whose table cells are product, not copy */
@import url("./tokens.css");
@import url("./base.css");

@font-face { font-family: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap; src: url("fonts/inter-latin-wght-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap; src: url("fonts/inter-latin-ext-wght-normal.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

body { font-feature-settings: "cv11", "ss01"; }

.skip { position: absolute; left: var(--space-md); top: var(--space-md); z-index: var(--z-modal); padding: var(--space-xs) var(--space-md); background: var(--color-paper-3); color: var(--color-ink); border-radius: var(--radius-sm); transform: translateY(-200%); }
.skip:focus-visible { transform: none; }

.nav { position: sticky; top: 0; z-index: var(--z-sticky-nav); background: color-mix(in oklab, var(--color-paper) 92%, transparent); backdrop-filter: saturate(1.2) blur(8px); border-bottom: var(--rule-hair) solid var(--color-rule); }
.nav__inner { display: flex; align-items: center; justify-content: space-between; gap: var(--space-lg); min-height: 72px; }
.brand { display: inline-flex; align-items: center; gap: var(--space-sm); color: var(--color-ink); text-decoration: none; font-weight: 700; font-size: var(--text-lg); letter-spacing: -0.01em; }
.brand:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 4px; border-radius: var(--radius-sm); }
.mark { display: grid; place-items: center; width: 40px; height: 40px; border-radius: var(--radius-sm); background: var(--color-accent); color: var(--color-accent-ink); flex: none; }
.mark--s { width: 28px; height: 28px; }
.mark svg { width: 60%; height: 60%; }
.nav__end { display: flex; align-items: center; gap: var(--space-sm); }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: var(--space-xs); min-height: 48px; padding: 0 var(--space-lg); border: 1px solid var(--color-accent); border-radius: var(--radius-sm); background: var(--color-accent); color: var(--color-accent-ink); font: 600 var(--text-md)/1 var(--font-body); white-space: nowrap; text-decoration: none; cursor: pointer; transition: background-color var(--dur-short) var(--ease-out), border-color var(--dur-short) var(--ease-out), transform var(--dur-micro) var(--ease-out); }
.btn:hover { background: var(--color-accent-hover); border-color: var(--color-accent-hover); }
.btn:active { transform: translateY(1px); }
.btn:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }
.btn[aria-disabled="true"] { opacity: 0.55; cursor: not-allowed; transform: none; }
.btn--quiet { background: var(--color-paper-3); color: var(--color-ink); border-color: var(--color-rule); }
.btn--quiet:hover { background: var(--color-paper-2); border-color: var(--color-muted); }
.btn--s { min-height: 40px; padding: 0 var(--space-md); font-size: var(--text-sm); }

.icon-btn { display: grid; place-items: center; width: 40px; height: 40px; border: 1px solid transparent; border-radius: var(--radius-sm); background: transparent; color: var(--color-ink); cursor: pointer; transition: background-color var(--dur-short) var(--ease-out); }
.icon-btn:hover { background: var(--color-paper-2); }
.icon-btn:active { transform: translateY(1px); }
.icon-btn:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }
.icon-btn svg { width: 20px; height: 20px; }
.icon-sun { display: none; }
:root[data-theme="dark"] .icon-sun { display: block; }
:root[data-theme="dark"] .icon-moon { display: none; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .icon-sun { display: block; } :root:not([data-theme="light"]) .icon-moon { display: none; } }

.hero { min-height: calc(100svh - 73px); display: grid; align-items: center; padding-block: var(--space-2xl); }
.hero__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 8fr); gap: var(--space-2xl); align-items: center; }
.hero h1 { font-size: var(--text-display); font-weight: 700; line-height: 1.02; letter-spacing: var(--tracking-display); }
.hero__lead { margin-top: var(--space-lg); font-size: var(--text-lead); line-height: 1.45; color: var(--color-ink-2); max-width: 34ch; }
.actions { display: flex; flex-wrap: wrap; gap: var(--space-sm); margin-top: var(--space-xl); }

.screen { margin: 0; border: var(--rule-hair) solid var(--color-rule); border-radius: var(--radius-card); background: var(--color-paper-3); box-shadow: var(--shadow-card); color: var(--color-ink); font-size: var(--text-xs); line-height: 1.35; }
.screen__scroll { overflow-x: auto; overscroll-behavior-x: contain; }
.screen__scroll:focus-visible { outline: 2px solid var(--color-focus); outline-offset: -2px; }
.screen figcaption, .screen-note { font-size: var(--text-sm); color: var(--color-muted); }
.screen-note { margin-top: var(--space-sm); }

.appbar { display: flex; align-items: center; gap: var(--space-md); padding: var(--space-sm) var(--space-md); border-bottom: var(--rule-hair) solid var(--color-rule); }
.tabs { display: flex; gap: var(--space-3xs); padding: var(--space-2xs); background: var(--color-paper-2); border-radius: var(--radius-sm); }
.tabs span { padding: var(--space-2xs) var(--space-sm); border-radius: var(--radius-sm); color: var(--color-ink-2); white-space: nowrap; }
.tabs .is-on { background: var(--color-paper-3); color: var(--color-accent); font-weight: 600; box-shadow: 0 1px 2px color-mix(in oklab, var(--color-ink) 10%, transparent); }
.appbar__title { margin-left: auto; text-align: right; line-height: 1.2; }
.appbar__film { display: block; font-size: var(--text-sm); font-weight: 700; }
.appbar__prod { display: block; color: var(--color-muted); font-size: var(--text-2xs); }

.app-body { padding: var(--space-md); }
.banner { display: flex; gap: var(--space-xs); align-items: center; padding: var(--space-xs) var(--space-sm); border: var(--rule-hair) solid var(--color-warn-rule); border-radius: var(--radius-sm); background: var(--color-warn-bg); color: var(--color-warn-ink); }
.banner b { font-weight: 600; }

.weeks { display: flex; flex-wrap: nowrap; gap: var(--space-2xs); margin-block: var(--space-sm); }
.weeks span { padding: var(--space-2xs) var(--space-xs); border-radius: var(--radius-sm); background: var(--color-week-bg); color: var(--color-ink-2); white-space: nowrap; }
.weeks .is-done { background: var(--color-ok-bg); color: var(--color-ok-ink); }
.weeks .is-now { background: var(--color-warn-strong); color: var(--color-warn-strong-ink); font-weight: 600; }
.weeks .push { margin-left: auto; background: var(--color-ok-strong); color: var(--color-ok-strong-ink); font-weight: 600; }

.grid { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; white-space: nowrap; }
.grid th { font-weight: 600; color: var(--color-ink-2); text-align: left; padding: var(--space-xs); border-bottom: var(--rule-hair) solid var(--color-rule); background: var(--color-surface-2); }
.grid td { padding: var(--space-xs); border-bottom: var(--rule-hair) solid var(--color-rule-soft); }
.hero .grid th, .hero .grid td { padding-inline: var(--space-2xs); }
.grid .r { text-align: right; }
.grid .c { text-align: center; }
.grid .brut { background: var(--color-agent-bg); color: var(--color-agent-ink); text-align: right; font-weight: 600; }
.grid .off { background: var(--color-weekend); color: var(--color-weekend-ink); text-align: center; }
.grid .on { background: var(--color-cell-done); color: var(--color-cell-done-ink); text-align: center; font-weight: 600; }
.grid tfoot td { border-top: var(--rule-hair) solid var(--color-rule); border-bottom: 0; font-weight: 700; }
.grid .day small { display: block; font-weight: 400; color: var(--color-muted); }
.grid .day.off small { color: var(--color-weekend-ink); }

.section { padding-block: var(--section-gap) 0; }
.section--tight { padding-block: var(--section-gap-s) 0; }
.section--band { color: var(--color-ink); margin-top: var(--section-gap); padding-block: var(--section-gap-s); background: var(--color-paper-3); border-block: var(--rule-hair) solid var(--color-rule); }
.head { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: var(--space-2xl); align-items: end; margin-bottom: var(--space-xl); }
.head h2, .split h2, .close h2 { font-size: var(--text-section); font-weight: 700; line-height: 1.05; letter-spacing: var(--tracking-display); }
.head p { font-size: var(--text-lead); line-height: 1.5; color: var(--color-ink-2); }

.plate { display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--space-xs) var(--space-lg); padding: var(--space-sm) var(--space-lg); border-radius: var(--radius-sm); background: var(--color-plate); color: var(--color-plate-ink); }
.plate__name { font-size: var(--text-md); font-weight: 700; margin-right: auto; }
.plate span { color: var(--color-plate-muted); }
.plate span b { color: var(--color-plate-ink); font-weight: 700; }
.plate .plate__total { padding-left: var(--space-lg); border-left: var(--rule-hair) solid var(--color-plate-rule); color: var(--color-plate-figure); font-size: var(--text-md); font-weight: 700; }
.role { display: flex; gap: var(--space-sm); align-items: center; padding: var(--space-sm) var(--space-md); border-bottom: var(--rule-hair) solid var(--color-rule); font-size: var(--text-sm); }
.role b { color: var(--color-accent); font-weight: 600; }
.role span { padding-left: var(--space-sm); border-left: var(--rule-hair) solid var(--color-rule); color: var(--color-ink-2); }
.contract { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: var(--space-2xl); padding: var(--space-lg) var(--space-md); }
.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-md) var(--space-lg); margin: 0; align-content: start; }
.facts dt { color: var(--color-muted); font-size: var(--text-2xs); }
.facts dd { margin: var(--space-3xs) 0 0; font-size: var(--text-sm); }

.rules { list-style: none; margin: 0; padding: 0; border-top: var(--rule-hair) solid var(--color-ink); }
.rules li { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 6fr); gap: var(--space-2xl); padding-block: var(--space-lg); border-bottom: var(--rule-hair) solid var(--color-rule); }
.rules h3 { font-size: var(--text-title); font-weight: 600; letter-spacing: -0.01em; }
.rules p { color: var(--color-ink-2); font-size: var(--text-lg); line-height: 1.5; }

.spaces { width: 100%; border-collapse: collapse; }
.spaces th, .spaces td { text-align: left; padding: var(--space-lg) var(--space-md) var(--space-lg) 0; border-bottom: var(--rule-hair) solid var(--color-rule); vertical-align: baseline; }
.spaces thead th { padding-block: 0 var(--space-sm); font-size: var(--text-sm); font-weight: 600; color: var(--color-muted); }
.spaces tbody th { font-size: var(--text-title); font-weight: 600; letter-spacing: -0.01em; width: 32%; }
.spaces td { color: var(--color-ink-2); font-size: var(--text-lg); }
.spaces td:last-child { text-align: right; padding-right: 0; }
.pill { display: inline-block; padding: var(--space-2xs) var(--space-sm); border-radius: var(--radius-pill); font-size: var(--text-sm); font-weight: 600; white-space: nowrap; }
.pill--ok { background: var(--color-ok-bg); color: var(--color-ok-ink); }
.pill--soon { background: var(--color-warn-bg); color: var(--color-warn-ink); }

.split { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: var(--space-2xl); align-items: start; }
.access { list-style: none; margin: var(--space-xl) 0 0; padding: 0; }
.access li { padding-block: var(--space-md); border-top: var(--rule-hair) solid var(--color-rule); font-size: var(--text-lg); color: var(--color-ink-2); }
.access li b { color: var(--color-ink); font-weight: 600; }
.statement { padding: var(--space-2xl) var(--space-xl); border-radius: var(--radius-card); background: var(--color-plate); color: var(--color-plate-ink); }
.statement p { font-size: var(--text-section); font-weight: 700; line-height: 1.08; letter-spacing: var(--tracking-display); max-width: 18ch; }
.statement small { display: block; margin-top: var(--space-lg); font-size: var(--text-md); color: var(--color-plate-muted); max-width: 40ch; }

.close { margin-top: var(--section-gap); padding-block: var(--section-gap-s); background: var(--color-accent-soft); color: var(--color-ink); text-align: left; }
.close h2 { font-size: var(--text-display-s); }
.close__inner { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--space-2xl); align-items: end; }
.close p { margin-top: var(--space-lg); font-size: var(--text-lead); color: var(--color-ink-2); max-width: 44ch; }
.close .actions { margin-top: 0; justify-content: flex-end; }

.footer { color: var(--color-ink); border-top: var(--rule-hair) solid var(--color-rule); padding-block: var(--space-xl); background: var(--color-paper-3); }
.footer__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-lg); }
.footer__by { color: var(--color-muted); font-size: var(--text-sm); }
.footer nav ul { display: flex; flex-wrap: wrap; gap: var(--space-lg); list-style: none; margin: 0; padding: 0; font-size: var(--text-sm); }
.footer a { color: var(--color-ink-2); text-decoration: none; }
.footer a:hover { color: var(--color-accent); text-decoration: underline; }
.footer a:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; border-radius: var(--radius-sm); }

@media (max-width: 75rem) {
  .hero__grid { grid-template-columns: minmax(0, 1fr); gap: var(--space-xl); }
  .hero { min-height: 0; }
  .contract { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 60rem) {
  .head, .split, .close__inner, .rules li { grid-template-columns: minmax(0, 1fr); gap: var(--space-md); }
  .split { gap: var(--space-xl); }
  .close .actions { justify-content: flex-start; }
  .spaces td:nth-child(2), .spaces thead th:nth-child(2) { display: none; }
  .spaces tbody th { width: auto; }
}
@media (max-width: 40rem) {
  .nav .btn { display: none; }
  .statement { padding: var(--space-xl) var(--space-lg); }
}
