/* www.hopla.care — one page, no framework. The app's palette and type (Archivo, green #0b6b57), light only.
   Type scale: 13 · 15 · 17 · 21 · 30 · 44 · 72, plus the hours figure. Every animation stops under
   prefers-reduced-motion, and the page reads complete without JavaScript (site.js only adds the calculator). */
@font-face {
  font-family: "Archivo";
  /* The app's Archivo cut to Latin (145 → 75 KB): a character outside it falls back to Arial. */
  src: url("/fonts/archivo-latin-v1.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-style: normal;
  font-display: swap;
}
:root {
  color-scheme: light;
  --paper: #f4f6f5;
  --surface: #ffffff;
  --soft: #ecefee;
  --line: #dce2e4;
  --line-soft: #ecefee;
  --ink: #15202b;
  --ink-2: #4b5864;
  --ink-3: #5a6671;
  --accent: #0b6b57;
  --accent-hover: #095a49;
  --accent-soft: #e1f1eb;
  --accent-ink: #07513f;
  --font: "Archivo", "Helvetica Neue", Arial, sans-serif;
}
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
}
a {
  color: inherit;
}
:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
.wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding-inline: 40px;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1,
h2 {
  font-weight: 780;
  font-stretch: 112%;
  text-wrap: balance;
}

/* ---------- Header ---------- */
.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-block: 22px;
}
.logo {
  font-weight: 800;
  font-stretch: 118%;
  font-size: 24px;
  letter-spacing: -0.01em;
  text-decoration: none;
}
/* The « ! » leans like an italic. The font ships no italic, and a browser's made-up one slants differently in each
   engine: the skew is the same everywhere, as in the app's `.brand b`. Leaning, its foot meets the « a »: the margin
   (measured) parts them. */
.logo span {
  display: inline-block;
  margin-left: 0.06em;
  color: var(--accent);
  transform: skewX(-12deg);
}
.top nav {
  display: flex;
  align-items: center;
  gap: 8px;
}
.link {
  padding: 12px 14px;
  border-radius: 8px;
  font-weight: 540;
  font-size: 15px;
  text-decoration: none;
}
.link:hover {
  background: var(--soft);
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 8px;
  background: var(--accent);
  color: #ffffff;
  font-weight: 620;
  font-size: 15px;
  text-decoration: none;
}
.btn:hover {
  background: var(--accent-hover);
}
.btn-lg {
  min-height: 52px;
  padding: 0 24px;
  font-size: 17px;
}

/* ---------- Hero ---------- */
.hero {
  display: grid;
  gap: 22px;
  max-width: 1000px;
  padding-block: 64px 48px;
}
h1 {
  font-size: 72px;
  line-height: 1;
  letter-spacing: -0.025em;
}
.lead {
  max-width: 34em;
  font-size: 21px;
  line-height: 1.5;
  color: var(--ink-2);
}
/* The department that uses it, under the call to action: its logo, in its own colours, and one fact. The sentence
   names the hospital in words too: a crawler does not read a logo. */
.proof {
  display: flex;
  align-items: center;
  gap: 24px;
  max-width: 44em;
  margin-top: 18px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
}
.proof img {
  flex: none;
  width: auto;
  height: 64px;
}
.proof p {
  font-size: 17px;
  line-height: 1.5;
  color: var(--ink-2);
}
.proof b {
  font-weight: 700;
  color: var(--ink);
}

/* ---------- The board: a week as Hopla! publishes it (invented names) ---------- */
.board {
  margin: 0 0 104px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
  box-shadow:
    0 40px 80px -40px rgba(21, 32, 43, 0.28),
    0 2px 6px rgba(21, 32, 43, 0.05);
}
.board-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 24px;
}
.board-week {
  display: flex;
  align-items: baseline;
  gap: 14px;
}
.board-wk {
  font-weight: 800;
  font-stretch: 118%;
  font-size: 24px;
  letter-spacing: -0.01em;
}
.board-dates {
  font-size: 15px;
  color: var(--ink-3);
}
.board-status {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 15px;
  color: var(--ink-2);
  font-variant-numeric: tabular-nums;
}
.board-status b {
  color: var(--ink);
}
.board-pill {
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-ink);
  font-weight: 620;
  font-size: 13px;
  animation: pop 0.4s ease-out 1.9s both;
}
.board-bar {
  height: 3px;
  background: var(--line-soft);
}
.board-bar i {
  display: block;
  height: 100%;
  background: var(--accent);
  transform-origin: left;
  animation: fill 1.6s cubic-bezier(0.4, 0, 0.2, 1) 0.3s both;
}
.board-scroll {
  overflow-x: auto;
}
.board-grid {
  display: grid;
  grid-template-columns: 150px repeat(5, minmax(0, 1fr));
}
.bg-corner,
.bg-row {
  position: sticky;
  left: 0;
  z-index: 1;
  background: var(--surface);
}
.bg-corner {
  border-bottom: 1px solid var(--line);
}
.bg-day {
  padding: 12px 10px 8px;
  border-left: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line);
  font-size: 15px;
  color: var(--ink-3);
}
.bg-day b {
  color: var(--ink);
}
.bg-halves {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  margin-top: 6px;
  font-size: 13px;
}
.bg-row {
  display: flex;
  align-items: center;
  padding: 12px 16px 12px 24px;
  border-top: 1px solid var(--line-soft);
  font-weight: 620;
  font-size: 15px;
}
.bg-cell {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  padding: 9px 8px;
  border-left: 1px solid var(--line-soft);
  border-top: 1px solid var(--line-soft);
}
.bg-oncall,
.bg-oncall.bg-row {
  background: #f7f9f8;
}
.bg-oncall .mag {
  grid-column: 1 / -1;
  text-align: center;
  border-style: dashed;
}
/* A magnet drops in by day, then by row: the delay comes from its cell's d0–d4 and r0–r5. */
.mag {
  display: block;
  min-width: 0;
  padding: 7px 7px 6px;
  border: 1.5px solid;
  border-radius: 5px;
  font-stretch: 78%;
  font-weight: 620;
  font-size: 14px;
  line-height: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  animation: drop 0.42s cubic-bezier(0.2, 0.9, 0.25, 1.15) both;
  animation-delay: calc(300ms + (var(--d) * 6 + var(--r)) * 42ms + var(--h, 0) * 22ms);
}
.mag + .mag {
  --h: 1;
}
.d0 { --d: 0; }
.d1 { --d: 1; }
.d2 { --d: 2; }
.d3 { --d: 3; }
.d4 { --d: 4; }
.r0 { --r: 0; }
.r1 { --r: 1; }
.r2 { --r: 2; }
.r3 { --r: 3; }
.r4 { --r: 4; }
.r5 { --r: 5; }
/* Ten people, ten tints: fill, border, ink (≥ 4.5:1 on the fill). */
.t0 { background: #dff3ea; border-color: #7cc3a2; color: #0f4a35; }
.t1 { background: #ebe6fa; border-color: #a594e0; color: #3b2c7d; }
.t2 { background: #ddeefa; border-color: #78b3de; color: #12476e; }
.t3 { background: #f7eecf; border-color: #d0ae4b; color: #5a470c; }
.t4 { background: #f9e2e6; border-color: #dc93a2; color: #6e2435; }
.t5 { background: #fce8da; border-color: #e5a477; color: #6c3516; }
.t6 { background: #d9f1f2; border-color: #6fbcc0; color: #0f4a4d; }
.t7 { background: #edf1d8; border-color: #a9b65a; color: #434a12; }
.t8 { background: #e3e7fb; border-color: #8c9be6; color: #25307a; }
.t9 { background: #fde3dc; border-color: #e8957f; color: #6e2a18; }

/* ---------- Hours and what changes: one white band ---------- */
.band {
  background: var(--surface);
  border-block: 1px solid var(--line);
}
.hours {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  align-items: start;
  gap: 64px;
  padding-block: 96px 88px;
}
.hours-q {
  display: grid;
  gap: 36px;
}
.hours h2 {
  font-size: 56px;
  line-height: 1.02;
  font-stretch: 100%;
  letter-spacing: -0.025em;
}
.stepper {
  display: flex;
  align-items: center;
  gap: 20px;
}
.step {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border: 1.5px solid #c3ccd1;
  border-radius: 50%;
  background: var(--surface);
  color: var(--ink);
  font: 600 26px/1 var(--font);
  cursor: pointer;
}
.step:hover {
  border-color: var(--ink);
}
.step:disabled {
  opacity: 0.35;
  cursor: default;
}
.step[hidden] {
  display: none;
}
.step-val {
  min-width: 120px;
  text-align: center;
  font-weight: 800;
  font-stretch: 70%;
  font-size: 72px;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.step-val small {
  margin-left: 4px;
  font-size: 30px;
  font-weight: 700;
}
.step-cap {
  margin-top: 8px;
  font-size: 17px;
  line-height: 1.4;
  color: var(--ink-3);
}
.result {
  display: grid;
  gap: 10px;
  padding-left: 56px;
  border-left: 1.5px solid var(--line);
}
.result-num {
  font-weight: 800;
  font-stretch: 62%;
  font-size: 220px;
  line-height: 0.82;
  letter-spacing: -0.02em;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}
.result-unit {
  font-weight: 700;
  font-stretch: 90%;
  font-size: 30px;
  line-height: 1.1;
}
.result-eq {
  font-size: 21px;
  color: var(--ink-2);
}
.result-eq b {
  font-weight: 700;
  color: var(--ink);
}
.year {
  display: grid;
  grid-template-columns: repeat(26, minmax(0, 1fr));
  gap: 4px;
  margin-top: 22px;
}
.year i {
  display: block;
  aspect-ratio: 1;
  border-radius: 3px;
  background: var(--ink);
}
.year.is-waiting i {
  opacity: 0;
}
.year.is-on i {
  animation: cell 0.3s ease-out both;
  animation-delay: calc(var(--i) * 22ms);
}
.months {
  display: flex;
  justify-content: space-between;
  margin-top: 4px;
  font-size: 13px;
  color: var(--ink-3);
}

.changes {
  padding-block: 0 104px;
}
.changes h2 {
  margin-bottom: 28px;
  font-size: 44px;
  line-height: 1.05;
  letter-spacing: -0.02em;
}
.ledger {
  width: 100%;
  border-collapse: collapse;
  font-size: 17px;
  line-height: 1.45;
}
.ledger th {
  width: 50%;
  padding: 0 0 12px;
  border-bottom: 2px solid var(--ink);
  text-align: left;
  font-size: 15px;
  font-weight: 700;
  color: var(--ink-3);
}
.ledger th + th {
  color: var(--accent);
}
.ledger td {
  padding: 16px 24px 16px 0;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.ledger td:first-child {
  color: var(--ink-3);
}
.ledger td + td {
  position: relative;
  padding-left: 34px;
  font-weight: 540;
}
.ledger td + td::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 22px;
  width: 14px;
  height: 8px;
  border-left: 2.5px solid var(--accent);
  border-bottom: 2.5px solid var(--accent);
  transform: rotate(-45deg);
}
/* The closing sentence and its button: side by side, as in .demo, the button on the table's right edge. Below
   1180 px the button goes under it: beside it, the sentence keeps 2 lines only down to 1168 px (measured in Chrome
   and WebKit), then squeezes to 3, and 4 on an upright tablet. */
.close-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 48px;
  margin-top: 48px;
}
.close-row .btn {
  flex: none;
}
@media (max-width: 1180px) {
  .close-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 28px;
  }
}
.close {
  max-width: 30em;
  font-size: 30px;
  line-height: 1.25;
  font-weight: 700;
  font-stretch: 100%;
  letter-spacing: -0.01em;
  text-wrap: balance;
}
.close span {
  color: var(--ink-2);
  font-weight: 540;
}

/* ---------- Trust, demo, footer ---------- */
.trust {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 48px;
  padding-block: 56px;
  font-size: 17px;
  font-weight: 540;
}
.trust li {
  display: flex;
  align-items: center;
  gap: 10px;
}
.trust ul {
  display: contents;
  list-style: none;
}
.trust svg {
  flex: none;
  color: var(--accent);
}
.faq {
  padding-block: 16px 88px;
}
.faq h2 {
  margin-bottom: 8px;
  font-size: 44px;
  line-height: 1.05;
  letter-spacing: -0.02em;
}
.faq-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 64px;
}
.faq-list > div {
  padding-block: 24px;
  border-bottom: 1px solid var(--line);
}
.faq h3 {
  margin-bottom: 8px;
  font-size: 21px;
  font-weight: 700;
  line-height: 1.3;
}
.faq p {
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink-2);
}
.demo {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 32px;
  margin-bottom: 72px;
  padding: 56px;
  border-radius: 20px;
  background: var(--accent-soft);
}
.demo h2 {
  margin-bottom: 12px;
  font-size: 44px;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--accent-ink);
}
.demo p {
  max-width: 32em;
  font-size: 19px;
  line-height: 1.5;
  color: var(--accent-ink);
}
.demo-act {
  display: grid;
  justify-items: end;
  gap: 12px;
}
.mail {
  font-size: 15px;
  color: var(--accent-ink);
  user-select: all;
}
.foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
  padding-block: 28px 40px;
  border-top: 1px solid var(--line);
  font-size: 15px;
  color: var(--ink-3);
}
.foot nav {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}
.foot a {
  color: var(--ink-2);
  text-decoration: none;
}
.foot a:hover {
  color: var(--ink);
  text-decoration: underline;
}

/* ---------- Legal page ---------- */
.legal {
  max-width: 44em;
  padding-block: 48px 96px;
}
.legal h1 {
  margin-bottom: 40px;
  font-size: 44px;
}
.legal h2 {
  margin: 40px 0 12px;
  font-size: 21px;
  font-stretch: 100%;
  font-weight: 700;
}
.legal p {
  margin-bottom: 12px;
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink-2);
}

@keyframes drop {
  from {
    opacity: 0;
    transform: translateY(-10px) scale(0.94);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@keyframes fill {
  from {
    transform: scaleX(0);
  }
  to {
    transform: scaleX(1);
  }
}
@keyframes pop {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@keyframes cell {
  from {
    opacity: 0;
    transform: scale(0.4);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  .mag,
  .board-pill,
  .board-bar i,
  .year.is-on i {
    animation: none;
  }
}

/* ---------- Phone ---------- */
@media (max-width: 760px) {
  .wrap {
    padding-inline: 16px;
  }
  .top {
    padding-block: 14px;
  }
  .logo {
    font-size: 21px;
  }
  .top .btn {
    display: none;
  }
  .hero {
    gap: 16px;
    padding-block: 28px;
  }
  h1 {
    font-size: 40px;
    font-stretch: 104%;
  }
  .lead {
    font-size: 17px;
  }
  .proof {
    gap: 16px;
    margin-top: 8px;
    padding-top: 20px;
  }
  .proof img {
    height: 48px;
  }
  .proof p {
    font-size: 15px;
  }
  .board {
    margin-bottom: 56px;
  }
  .board-head {
    padding: 14px 16px;
  }
  .board-wk {
    font-size: 21px;
  }
  .board-dates,
  .board-count {
    display: none;
  }
  /* 120 px: « Mammographie », the longest label, fits at 13 px. */
  .board-grid {
    grid-template-columns: 120px repeat(5, 150px);
  }
  .bg-row {
    padding: 10px 8px 10px 14px;
    font-size: 13px;
  }
  .hours {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
    padding-block: 56px 48px;
  }
  .hours-q {
    gap: 20px;
  }
  .hours h2 {
    font-size: 34px;
  }
  .step {
    width: 48px;
    height: 48px;
  }
  .step-val {
    min-width: 96px;
    font-size: 56px;
  }
  .result {
    padding: 24px 0 0;
    border-left: 0;
    border-top: 1.5px solid var(--line);
  }
  .result-num {
    font-size: 150px;
  }
  .result-unit {
    font-size: 24px;
  }
  .result-eq {
    font-size: 17px;
  }
  .changes {
    padding-bottom: 64px;
  }
  .changes h2,
  .demo h2 {
    font-size: 30px;
  }
  /* Each row stacks: today's chore, small, above what Hopla! does instead. */
  .ledger thead {
    display: none;
  }
  .ledger tr {
    display: grid;
    border-bottom: 1px solid var(--line);
  }
  .ledger td {
    padding: 0;
    border-bottom: 0;
  }
  .ledger td:first-child {
    padding-top: 14px;
    font-size: 14px;
  }
  .ledger td + td {
    padding: 4px 0 14px 30px;
    font-size: 16px;
  }
  .ledger td + td::before {
    top: 10px;
  }
  .close-row {
    gap: 20px;
    margin-top: 32px;
  }
  .close {
    font-size: 21px;
  }
  .trust {
    flex-direction: column;
    padding-block: 40px;
  }
  .faq {
    padding-bottom: 56px;
  }
  .faq h2 {
    font-size: 30px;
  }
  .faq-list {
    grid-template-columns: minmax(0, 1fr);
  }
  .faq-list > div {
    padding-block: 18px;
  }
  .faq h3 {
    font-size: 17px;
  }
  .faq p {
    font-size: 16px;
  }
  .demo {
    grid-template-columns: minmax(0, 1fr);
    margin-bottom: 48px;
    padding: 28px 20px;
  }
  .demo-act {
    justify-items: start;
  }
  .legal h1 {
    font-size: 30px;
  }
}
