/* FairHour marketing site. Identity: ink, paper, and the dawn gradient of the logo, used once per page. */
@font-face { font-family: 'Bricolage Grotesque'; src: url('/fonts/bricolage.woff2') format('woff2'); font-weight: 200 800; font-display: swap; }
@font-face { font-family: 'Inter'; src: url('/fonts/inter.woff2') format('woff2'); font-weight: 100 900; font-display: swap; }

:root {
  --ink: #1a1a2e;
  --ink-soft: #2b2a45;
  --muted: #5b5a72;
  --line: #e3e1ec;
  --mist: #f4f3f8;
  --paper: #ffffff;
  --rose: #e94e77;
  --rose-deep: #b8245a;
  --coral: #ff8a65;
  --plum: #9c27b0;
  --go: #1f845a;
  --go-bg: #eaf5ee;
  --go-line: #b3dfc1;
  --stop: #c9372c;
  --dawn: linear-gradient(100deg, var(--coral), var(--rose) 50%, var(--plum));
  --display: 'Bricolage Grotesque', 'Inter', system-ui, sans-serif;
  --body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --wrap: 1120px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 17px/1.6 var(--body); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--rose-deep); text-underline-offset: 3px; }
a:hover { color: var(--ink); }
:focus-visible { outline: 3px solid var(--rose); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { font-family: var(--display); font-weight: 700; letter-spacing: -0.03em; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(44px, 7.2vw, 92px); line-height: 0.96; letter-spacing: -0.04em; }
h2 { font-size: clamp(30px, 4vw, 50px); line-height: 1.04; }
h3 { font-size: 24px; line-height: 1.2; letter-spacing: -0.02em; }
p { margin: 0; max-width: 62ch; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.lede { font-size: clamp(18px, 1.6vw, 21px); line-height: 1.55; color: var(--ink-soft); max-width: 46ch; }
.muted { color: var(--muted); }
.small { font-size: 14px; line-height: 1.5; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 16px; background: var(--paper); padding: 8px 12px; z-index: 10; }

/* Header */
.top { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-top: 22px; padding-bottom: 22px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font: 700 23px/1 var(--display); letter-spacing: -0.03em; color: var(--ink); text-decoration: none; }
.brand img { width: 34px; height: 34px; }
.nav { display: flex; align-items: center; gap: 28px; font-size: 15px; font-weight: 500; }
.nav a { color: var(--ink); text-decoration: none; white-space: nowrap; }
.nav a:hover, .nav a[aria-current='page'] { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 6px; }
.btn { display: inline-flex; align-items: center; justify-content: center; height: 52px; padding: 0 26px; border-radius: 999px; background: var(--ink); color: #fff; font: 600 16px/1 var(--body); text-decoration: none; border: 2px solid var(--ink); transition: background-color .15s, border-color .15s; }
.btn:hover { background: var(--rose-deep); border-color: var(--rose-deep); color: #fff; }
.btn--sm { height: 40px; padding: 0 18px; font-size: 14px; }
.nav a.btn, .nav a.btn:hover { color: #fff; text-decoration: none; }
.btn--light { background: #fff; border-color: #fff; color: var(--ink); }
.btn--light:hover { background: var(--ink); border-color: #fff; color: #fff; }
.link { font-weight: 600; color: var(--ink); }

/* Hero */
.hero { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr); gap: 56px; align-items: center; padding-top: 56px; padding-bottom: 96px; }
.hero__text { display: flex; flex-direction: column; gap: 26px; align-items: flex-start; }
.hero__actions { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }

/* The demo: a Trello card with a timer that runs from the moment the page opens. */
.demo { background: var(--mist); border-radius: 28px; padding: 28px; }
.demo__card { background: var(--paper); border-radius: 14px; box-shadow: 0 1px 0 rgba(26,26,46,.06), 0 18px 40px -18px rgba(26,26,46,.35); padding: 20px; font-size: 14px; line-height: 20px; }
.demo__list { color: var(--muted); font-size: 12px; }
.demo__title { font: 600 19px/1.3 var(--body); letter-spacing: -0.01em; margin-bottom: 14px; }
.demo__strip { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; }
.demo__strip.is-running { background: var(--go-bg); border-color: var(--go-line); }
.demo__rec { display: none; align-items: center; gap: 6px; font-size: 11px; font-weight: 700; color: var(--go); }
.demo__rec::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--stop); animation: rec 1.6s ease-in-out infinite; }
.is-running .demo__rec { display: inline-flex; }
.demo__time { font: 700 30px/1 var(--display); letter-spacing: -0.02em; font-variant-numeric: tabular-nums; flex: 1; }
.demo__btn { height: 38px; padding: 0 18px; border: 0; border-radius: 8px; font: 600 14px/1 var(--body); color: #fff; background: var(--go); cursor: pointer; }
.is-running .demo__btn { background: var(--stop); }
.demo__note { width: 100%; height: 38px; margin-top: 10px; padding: 0 12px; border: 1px solid #8590a2; border-radius: 8px; font: 400 14px/1 var(--body); color: var(--ink); }
.demo__note:focus-visible { outline: 2px solid #0c66e4; outline-offset: -1px; border-color: #0c66e4; border-radius: 8px; }
.demo__hint { margin-top: 6px; min-height: 20px; font-size: 12px; color: var(--muted); }
.demo__hint button { border: 0; background: none; padding: 0; font: inherit; font-weight: 600; color: var(--rose-deep); text-decoration: underline; cursor: pointer; }
.demo__rows { list-style: none; margin: 12px 0 0; padding: 0; }
.demo__rows li { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-top: 1px solid var(--line); }
.demo__rows span:last-child, .demo__total b { font-weight: 600; font-variant-numeric: tabular-nums; }
.demo__rows li.is-new { animation: saved .9s ease-out; }
.demo__total { display: flex; justify-content: space-between; padding-top: 10px; border-top: 2px solid var(--ink); color: var(--muted); }
.demo__total b { color: var(--ink); }
.demo__cap { margin-top: 14px; font-size: 13px; color: var(--muted); text-align: center; max-width: none; }
@keyframes rec { 50% { opacity: .25; } }
@keyframes saved { from { background: var(--go-bg); } to { background: transparent; } }

/* Sections */
.band { padding: 96px 0; }
.band--mist { background: var(--mist); }
.band__head { display: flex; flex-direction: column; gap: 16px; margin-bottom: 56px; }

/* A week, as a timeline: the stamps are when each thing happens. */
.week { list-style: none; margin: 0; padding: 0; }
.moment { display: grid; grid-template-columns: 132px minmax(0, 1fr) minmax(0, 1.1fr); gap: 40px; padding: 44px 0; border-top: 1px solid var(--line); align-items: start; }
.moment__when { font: 700 20px/1.15 var(--display); letter-spacing: -0.02em; }
.moment__when span { display: block; color: var(--rose-deep); font-variant-numeric: tabular-nums; }
.moment__text { display: flex; flex-direction: column; gap: 12px; }
.moment--wide { grid-template-columns: 132px minmax(0, 1fr); }
.moment--wide .ui { grid-column: 2; }

/* Pieces of the product, drawn in HTML. One flat panel, no shadow: the border does the work on any background. */
.ui { background: var(--paper); border: 1px solid var(--line); border-radius: 16px; padding: 22px; font-size: 14px; line-height: 20px; color: #172b4d; width: 100%; max-width: 460px; justify-self: end; }
.ui p { margin: 0; max-width: none; }
.ui small { display: block; font-size: 12px; line-height: 16px; color: #626f86; font-weight: 400; }
.ui b { font-weight: 600; }
.ui__num { font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.ui__label { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin: 18px 0 2px; font-size: 12px; font-weight: 600; color: #626f86; }
.ui__label:first-child { margin-top: 0; }
.ui__label b { font-size: 15px; color: #172b4d; font-variant-numeric: tabular-nums; }
.ui__label--plain { margin-top: 12px; }
.ui__rows { list-style: none; margin: 0; padding: 0; }
.ui__rows li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 9px 0; border-top: 1px solid #ebecf0; }
.ui__rows li:first-child { border-top: 0; }
.ui__rows--av li > span:nth-child(2) { flex: 1; min-width: 0; }
.ui__rows--meter li > span:nth-child(2) { flex: 0 0 104px; }
.ui__rows--meter i { flex: 1; height: 6px; border-radius: 3px; background: linear-gradient(90deg, #30a661 var(--w), #ebecf0 var(--w)); }
.ui__av { flex: none; width: 28px; height: 28px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: 10px; font-weight: 700; background: hsl(var(--h) 60% 92%); color: hsl(var(--h) 45% 32%); }
.ui__live::before { content: ''; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--stop); margin-right: 7px; vertical-align: 1px; }
.ui__strip { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid var(--go-line); border-radius: 10px; background: var(--go-bg); }
.ui__rec { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 700; color: var(--go); }
.ui__rec::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--stop); }
.ui__clock { flex: 1; font: 700 26px/1 var(--display); letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.ui__ghost { color: #44546f; font-weight: 500; }
.ui__stop, .ui__save { display: inline-flex; align-items: center; height: 34px; padding: 0 14px; border-radius: 7px; color: #fff; font-weight: 600; background: var(--stop); }
.ui__save { background: var(--go); }
.ui__input { margin-top: 10px; height: 38px; display: flex; align-items: center; padding: 0 12px; border: 1px solid #8590a2; border-radius: 8px; }
.ui__hint { margin-top: 6px !important; font-size: 12px; color: #626f86; }
.ui__bars { display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px; align-items: end; margin-top: 10px; }
.ui__bars div { display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: 12px; color: #626f86; }
.ui__bars em { font-style: normal; font-variant-numeric: tabular-nums; min-height: 16px; }
.ui__bars i { width: 100%; border-radius: 4px 4px 0 0; background: #b3dfc1; }
.ui__bars .is-today i { background: var(--go); }
.ui__bars .is-today span, .ui__bars .is-today em { color: #172b4d; font-weight: 600; }
.ui--long { background: #fff7d6; border-color: #f0d87a; color: #533f04; }
.ui--long > b { font-size: 16px; color: #172b4d; }
.ui--long .ui__label, .ui--long .ui__hint { color: #6b5512; }
.ui__when { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 4px; }
.ui__time { display: inline-flex; align-items: center; height: 36px; padding: 0 14px; border: 2px solid #0c66e4; border-radius: 7px; background: #fff; color: #172b4d; font-variant-numeric: tabular-nums; }
.ui__chip { display: inline-flex; align-items: center; height: 28px; padding: 0 12px; border-radius: 14px; background: #f5e3a0; font-weight: 600; font-size: 13px; }
.ui__when .ui__ghost { margin-left: auto; }
.ui--sheet { max-width: none; padding: 0; overflow: hidden; }
.ui__sheethead { display: flex; align-items: center; gap: 12px 16px; flex-wrap: wrap; padding: 18px 22px; border-bottom: 1px solid var(--line); }
.ui__sheethead > b { font: 700 18px/1 var(--display); letter-spacing: -0.01em; }
.ui__sheethead > span { color: #626f86; }
.ui__seg { display: inline-flex; padding: 3px; border-radius: 8px; background: #f1f2f4; font-size: 13px; font-weight: 500; }
.ui__seg span { padding: 4px 10px; border-radius: 6px; white-space: nowrap; }
.ui__seg .is-on { background: #fff; color: #172b4d; font-weight: 600; box-shadow: 0 0 0 1px #dcdfe4; }
.ui__range { margin-left: auto; font-weight: 500; }
.ui__scroll { overflow-x: auto; }
.ui table { width: 100%; min-width: 560px; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.ui th, .ui td { padding: 12px 22px; text-align: right; border-top: 1px solid #ebecf0; white-space: nowrap; }
.ui thead th { border-top: 0; font-size: 12px; font-weight: 600; color: #626f86; }
.ui th:first-child { text-align: left; font-weight: 600; }
.ui td:last-child, .ui tfoot td, .ui tfoot th { font-weight: 600; }
.ui tfoot tr { background: #f7f8f9; }

/* Who sees what */
.roles { width: 100%; border-collapse: collapse; font-size: 16px; }
.roles th, .roles td { text-align: left; padding: 16px 16px 16px 0; border-top: 1px solid var(--line); vertical-align: top; }
.roles thead th { border-top: 0; font: 700 18px/1.2 var(--display); letter-spacing: -0.01em; }
.roles td:not(:first-child), .roles thead th:not(:first-child) { width: 24%; }
.yes { font-weight: 600; color: var(--go); }
.no { color: var(--muted); }
.split { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 64px; align-items: start; }
.split__text { display: flex; flex-direction: column; gap: 18px; }

/* Price */
.price { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 56px; align-items: center; }
.price__sum { font: 800 clamp(120px, 20vw, 260px)/0.8 var(--display); letter-spacing: -0.06em; }
.price__text { display: flex; flex-direction: column; gap: 18px; align-items: flex-start; }
.ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.ticks li { padding-left: 30px; position: relative; }
.ticks li::before { content: ''; position: absolute; left: 2px; top: 9px; width: 14px; height: 7px; border-left: 3px solid var(--go); border-bottom: 3px solid var(--go); transform: rotate(-45deg); }

/* Closing: the one loud thing. The time this visit has taken, counted like a timer. */
.close { background: var(--ink); color: #fff; padding: 104px 0; }
.close__in { display: flex; flex-direction: column; gap: 28px; align-items: flex-start; }
.close__time { font: 800 clamp(84px, 19vw, 248px)/0.85 var(--display); letter-spacing: -0.05em; font-variant-numeric: tabular-nums; background: var(--dawn); -webkit-background-clip: text; background-clip: text; color: transparent; }
.close p { color: #d9d7e8; font-size: 20px; max-width: 40ch; }
.close h2 { max-width: 16ch; }

/* FAQ */
.faq { display: grid; grid-template-columns: minmax(0, 0.7fr) minmax(0, 1.3fr); gap: 64px; }
.faq dl { margin: 0; }
.faq dt { font: 700 20px/1.3 var(--display); letter-spacing: -0.015em; padding-top: 22px; border-top: 1px solid var(--line); }
.faq dd { margin: 8px 0 22px; color: var(--ink-soft); max-width: 62ch; }

/* Article pages */
.page { padding: 56px 0 96px; }
.page__head { display: flex; flex-direction: column; gap: 22px; align-items: flex-start; margin-bottom: 72px; }
.page__head h1 { font-size: clamp(40px, 6vw, 76px); max-width: 16ch; }
.block { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 56px; padding: 56px 0; border-top: 1px solid var(--line); align-items: start; }
.block__text { display: flex; flex-direction: column; gap: 14px; }
.block ol, .block ul.plain { margin: 0; padding-left: 22px; display: grid; gap: 8px; max-width: 58ch; }
.block--text { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); }

/* Comparison table */
.ui--compare { margin-bottom: 40px; }
.ui--compare th, .ui--compare td { white-space: normal; text-align: left; vertical-align: top; width: 38%; line-height: 1.5; }
.ui--compare th:first-child { width: 24%; }
.ui--compare td:last-child { font-weight: 400; }
.ui--compare thead th { font: 700 18px/1.2 var(--display); color: var(--ink); }

/* Long text */
.prose h2 { font-size: 28px; line-height: 1.15; margin: 44px 0 12px; }
.prose > p, .prose > ul, .prose > ol { max-width: 68ch; margin-bottom: 12px; }
.prose > ul, .prose > ol { padding-left: 22px; display: grid; gap: 8px; }
.prose > dl { max-width: 68ch; }
.prose dt { font: 700 20px/1.3 var(--display); letter-spacing: -0.015em; margin-top: 20px; }
.prose dd { margin: 6px 0 0; color: var(--ink-soft); }
.prose .page__head { margin-bottom: 8px; }

/* Footer */
.foot { border-top: 1px solid var(--line); padding: 40px 0 56px; font-size: 14px; color: var(--muted); }
.foot__in { display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap; align-items: flex-start; }
.foot__cols { display: flex; gap: 48px; flex-wrap: wrap; }
.foot__cols div { display: flex; flex-direction: column; gap: 8px; }
.foot__cols b { color: var(--ink); font-weight: 600; }
.foot a { color: var(--ink); }
.foot p { max-width: 44ch; margin-top: 10px; }

@media (max-width: 900px) {
  .hero, .split, .faq, .block, .block--text { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .hero { padding-top: 28px; padding-bottom: 64px; }
  .moment, .moment--wide { grid-template-columns: minmax(0, 1fr); gap: 18px; padding: 32px 0; }
  .moment--wide .ui { grid-column: auto; }
  .ui { justify-self: stretch; max-width: none; padding: 16px; }
  .ui th, .ui td { padding: 10px 14px; }
  .ui__sheethead { padding: 14px 16px; }
  .ui__range { margin-left: 0; }
  .moment__when span { display: inline; margin-left: 8px; }
  .price { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .band { padding: 64px 0; }
  .close { padding: 72px 0; }
  .nav { gap: 16px; }
  .nav .nav__opt { display: none; }
  .brand { font-size: 20px; }
  .demo { padding: 16px; border-radius: 20px; }
  .roles { font-size: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .demo__rec::before, .demo__rows li.is-new { animation: none; }
}
