/* HRMPro's website: information, guides and downloads. Same font, type scale and colours as the
   app (src/styles.css, docs/design/typography.md); nothing smaller than 12px. No scripts: the
   Content-Security-Policy in _headers allows none. */
@font-face { font-family: Inter; font-weight: 400; font-display: swap; src: url("/assets/fonts/inter-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: Inter; font-weight: 500; font-display: swap; src: url("/assets/fonts/inter-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: Inter; font-weight: 600; font-display: swap; src: url("/assets/fonts/inter-latin-600-normal.woff2") format("woff2"); }

:root {
  --background: oklch(0.97 0.012 245);
  --card: #fff;
  --primary: oklch(0.546 0.215 262);
  --primary-strong: oklch(0.47 0.2 262);
  --primary-soft: oklch(0.95 0.03 262);
  --primary-foreground: #fff;
  --accent: oklch(0.62 0.2 25);
  --border: oklch(0.929 0.013 255.508);
  --text-heading: #1e293b;
  --text-body: #334155;
  --text-secondary: #475569;
  --radius: 12px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-body);
  background: var(--background);
  -webkit-font-smoothing: antialiased;
}
a { color: var(--primary); }
img { max-width: 100%; height: auto; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 12px; z-index: 20; background: #fff; padding: 8px 12px; border-radius: 8px; }
:focus-visible { outline: 3px solid var(--primary); outline-offset: 2px; }

/* Header */
header.site { background: rgba(255, 255, 255, 0.96); border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 10; }
header.site .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; flex-wrap: wrap; }
header.site .logo img { height: 48px; width: auto; display: block; }
nav.main { display: flex; gap: 20px; flex-wrap: wrap; align-items: center; }
nav.main a { color: var(--text-heading); text-decoration: none; font-weight: 500; font-size: 15px; }
nav.main a[aria-current="page"], nav.main a:hover { color: var(--primary); }
nav.main a.button { color: var(--primary-foreground); padding: 9px 16px; }
nav.main a.signin { color: var(--primary); }

/* Buttons */
.button {
  display: inline-block; background: var(--primary); color: var(--primary-foreground); text-decoration: none;
  font-weight: 600; padding: 12px 20px; border-radius: 10px; border: 1px solid var(--primary); line-height: 1.3;
}
.button.secondary { background: #fff; color: var(--text-heading); border-color: var(--border); }
.button.ghost { background: transparent; color: var(--primary-foreground); border-color: rgba(255, 255, 255, 0.6); }
.button:hover { filter: brightness(1.06); }
.button[aria-disabled="true"] { background: #e2e8f0; border-color: #e2e8f0; color: var(--text-secondary); cursor: default; filter: none; }
.actions { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }

/* Hero */
.hero { padding: 64px 0 52px; }
.hero h1 { font-size: 46px; line-height: 1.12; letter-spacing: -0.02em; color: var(--text-heading); margin: 0 0 18px; max-width: 780px; font-weight: 600; }
.hero p.lead { font-size: 19px; color: var(--text-secondary); max-width: 660px; margin: 0 0 28px; }
.hero .fineprint { font-size: 14px; color: var(--text-secondary); margin: 14px 0 0; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr); gap: 40px; align-items: center; }
.hero-grid.wide { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); }
.tagline { font-weight: 600; color: var(--primary); margin: 0 0 12px; letter-spacing: 0.02em; font-size: 15px; }
.hero-logo { height: 84px; width: auto; display: block; margin: 0 0 10px; }

/* Photos of HRMPro's screens */
.shot { margin: 0; }
.shot img { display: block; width: 100%; height: auto; border-radius: 16px; border: 1px solid var(--border); box-shadow: 0 28px 56px -28px rgba(15, 23, 42, 0.4); background: #fff; }
.shot figcaption { font-size: 14px; color: var(--text-secondary); margin-top: 12px; }
.prose .shot { margin: 24px 0 8px; }
.hr-shot { margin-top: 44px; }
.tour { display: grid; gap: 64px; }
.tour-row { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); gap: 44px; align-items: center; }
.tour-row.flip { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); }
.tour-row.flip > .shot { order: 2; }
.stage { font-size: 13px; font-weight: 600; color: var(--primary); text-transform: uppercase; letter-spacing: 0.06em; margin: 0 0 8px; }
.tour-row h3 { font-size: 24px; margin-bottom: 10px; }
.tour-row p { color: var(--text-secondary); margin: 0 0 12px; }
ul.tab-names { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 14px; padding: 0; list-style: none; }
ul.tab-names li { font-size: 13px; font-weight: 500; background: var(--primary-soft); color: var(--primary-strong); border-radius: 999px; padding: 3px 11px; }
ul.tab-names li.on { background: var(--primary); color: #fff; }

/* HRMPro Clock on a phone: the photos are 4:5 */
.phone-shot { justify-self: center; width: 100%; max-width: 400px; }
.phones { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; max-width: 840px; margin: 44px auto 0; }
.steps-shot { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.65fr); gap: 44px; align-items: center; }
.pair { display: grid; grid-template-columns: minmax(0, 2.22fr) minmax(0, 1fr); gap: 20px; align-items: end; margin: 24px 0 8px; }
.prose .pair .shot { margin: 0; }
.after-split { margin-top: 32px; }

/* Sections */
section.band { padding: 60px 0; }
section.band.white { background: #fff; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
section.band.blue { background: var(--primary); color: #fff; }
section.band.blue h2, section.band.blue p { color: #fff; }
h2 { font-size: 32px; line-height: 1.2; color: var(--text-heading); margin: 0 0 12px; letter-spacing: -0.01em; font-weight: 600; }
h3 { font-size: 19px; line-height: 1.35; color: var(--text-heading); margin: 0 0 6px; font-weight: 600; }
p.sub { color: var(--text-secondary); max-width: 740px; margin: 0 0 28px; font-size: 17px; }
.split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px; align-items: start; }

.grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.grid.three { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; }
.card p { margin: 0; color: var(--text-secondary); font-size: 15px; }
.card p + p { margin-top: 10px; }
.card ul { margin: 8px 0 0; padding-left: 18px; color: var(--text-secondary); font-size: 15px; }
.card .icon { width: 40px; height: 40px; border-radius: 10px; background: var(--primary-soft); color: var(--primary); display: grid; place-items: center; margin-bottom: 14px; }
.card .icon svg { width: 22px; height: 22px; }
.card h3.next { margin-top: 18px; }
.card .more { display: inline-block; margin-top: 12px; font-weight: 500; font-size: 15px; }

ul.ticks { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
ul.ticks li { padding-left: 30px; position: relative; }
ul.ticks li::before {
  content: ""; position: absolute; left: 0; top: 4px; width: 18px; height: 18px; border-radius: 50%;
  background: var(--primary-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 10.5l3.2 3L15 7' fill='none' stroke='%232563eb' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px no-repeat;
}

.diagram { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; overflow-x: auto; }
.diagram svg { display: block; width: 100%; min-width: 640px; height: auto; }

ol.steps { counter-reset: step; list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; }
ol.steps > li { counter-increment: step; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 20px 22px 20px 70px; position: relative; }
ol.steps > li::before {
  content: counter(step); position: absolute; left: 20px; top: 20px; width: 32px; height: 32px; border-radius: 50%;
  background: var(--primary-soft); color: var(--primary); font-weight: 600; display: grid; place-items: center;
}
ol.steps p { margin: 4px 0 0; color: var(--text-secondary); }
ol.steps ul { margin: 8px 0 0; padding-left: 18px; color: var(--text-secondary); }

.downloads { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.download h2 { font-size: 24px; margin-bottom: 4px; }
.download .meta { font-size: 14px; color: var(--text-secondary); margin: 0 0 16px; }
.download dl { display: grid; grid-template-columns: max-content 1fr; gap: 4px 14px; font-size: 14px; margin: 16px 0 0; color: var(--text-secondary); }
.download dt { font-weight: 500; color: var(--text-heading); }
.download dd { margin: 0; overflow-wrap: anywhere; }
.badge { display: inline-block; font-size: 13px; font-weight: 600; color: var(--accent); background: oklch(0.96 0.03 25); border-radius: 999px; padding: 2px 10px; margin-left: 6px; vertical-align: middle; }

table.plain { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
table.plain th, table.plain td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--border); font-size: 15px; vertical-align: top; }
table.plain th { color: var(--text-heading); font-weight: 600; background: #f8fafc; }
.table-scroll { overflow-x: auto; }
.note { background: var(--primary-soft); border-radius: var(--radius); padding: 16px 18px; color: var(--text-heading); font-size: 15px; }
.note p { margin: 0; }
.note p + p { margin-top: 8px; }
.prose { max-width: 780px; }
.prose h2 { margin-top: 44px; }
.prose h2:first-child { margin-top: 0; }
.prose p, .prose li { color: var(--text-body); }

/* Breadcrumbs */
nav.crumbs { font-size: 14px; color: var(--text-secondary); padding-top: 22px; }
nav.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; }
nav.crumbs li + li::before { content: "›"; margin-right: 6px; color: var(--text-secondary); }
nav.crumbs a { color: var(--text-secondary); }
nav.crumbs + .hero { padding-top: 28px; }
section.tight { padding: 28px 0 0; }

/* Questions */
.faq { display: grid; gap: 12px; max-width: 860px; }
.faq details { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 16px 20px; }
.faq summary { cursor: pointer; font-weight: 600; color: var(--text-heading); font-size: 17px; }
.faq details[open] summary { margin-bottom: 8px; }
.faq details p { margin: 0; color: var(--text-secondary); }
.faq details p + p { margin-top: 8px; }

/* Mjini Tech */
.maker { display: flex; gap: 20px; align-items: center; }
.maker img { width: 48px; height: auto; flex: none; }
.contact-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.contact-list li { display: grid; gap: 2px; }
.contact-list .label { font-size: 14px; color: var(--text-secondary); }
.contact-list a { font-size: 18px; font-weight: 600; text-decoration: none; }

/* Footer */
footer.site { background: #fff; border-top: 1px solid var(--border); padding: 44px 0 36px; color: var(--text-secondary); font-size: 14px; margin-top: 24px; }
footer.site .cols { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 28px; }
footer.site h2 { font-size: 15px; margin: 0 0 10px; }
footer.site ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
footer.site a { color: var(--text-secondary); text-decoration: none; }
footer.site a:hover { color: var(--primary); text-decoration: underline; }
footer.site .brand img { height: 34px; width: auto; display: block; margin-bottom: 12px; }
footer.site .brand p { margin: 0 0 12px; max-width: 300px; }
footer.site .managed { display: inline-flex; flex-direction: column; align-items: flex-start; gap: 12px; color: var(--text-heading); text-decoration: none; }
footer.site .managed span { font-size: 14px; }
footer.site .managed:hover span { text-decoration: underline; }
footer.site .managed img { height: 96px; width: auto; margin: 0; }
footer.site .legal { border-top: 1px solid var(--border); margin-top: 32px; padding-top: 18px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

@media (max-width: 860px) {
  .hero-grid, .hero-grid.wide, .split, .tour-row, .tour-row.flip { grid-template-columns: 1fr; }
  .tour-row.flip > .shot { order: 0; }
  .phones, .steps-shot, .pair { grid-template-columns: 1fr; }
  .phones .shot, .steps-shot .shot, .pair .phone-shot { justify-self: center; width: 100%; max-width: 360px; }
  footer.site .cols { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .hero { padding: 44px 0 36px; }
  .hero h1 { font-size: 32px; }
  .hero-logo { height: 64px; }
  .tour-row h3 { font-size: 21px; }
  .hero p.lead { font-size: 17px; }
  h2 { font-size: 25px; }
  section.band { padding: 44px 0; }
  ol.steps > li { padding-left: 62px; }
  header.site { position: static; }
  header.site .wrap { padding-top: 10px; padding-bottom: 10px; row-gap: 8px; }
  header.site .logo img { height: 38px; }
  nav.main { gap: 14px; width: 100%; }
  nav.main a { font-size: 14px; }
  nav.main a.button { padding: 7px 14px; margin-left: auto; }
  footer.site .cols { grid-template-columns: 1fr; }
}
