/* timepaycentral.com — CMI TimePay Central
   Public Sans (U.S. Web Design System) for everything; Kalam only for handwriting on the paper timecard. */
@font-face { font-family: "Public Sans"; src: url(fonts/public-sans-latin-400-normal.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Public Sans"; src: url(fonts/public-sans-latin-500-normal.woff2) format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Public Sans"; src: url(fonts/public-sans-latin-600-normal.woff2) format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Public Sans"; src: url(fonts/public-sans-latin-700-normal.woff2) format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Public Sans"; src: url(fonts/public-sans-latin-800-normal.woff2) format("woff2"); font-weight: 800; font-display: swap; }
@font-face { font-family: "Kalam"; src: url(fonts/kalam-latin-400-normal.woff2) format("woff2"); font-weight: 400; font-display: swap; }

:root {
  --navy: #132340;       /* ledger navy: the app's own menu colour */
  --navy-2: #1d3157;
  --ink: #1b2433;
  --muted: #556074;
  --line: #dfe4ec;
  --wash: #f3f5f9;
  --green: #0c7a5f;      /* signed off */
  --check: #2fd29b;      /* the check in the mark, on navy */
  --buff: #efe2bf;       /* timecard stock */
  --buff-line: #d8c79b;
  --rule-red: #c4473b;
  --pencil: #24324d;
  --focus: #2b6cd4;
  --wrap: 1160px;
  font-family: "Public Sans", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }
body { margin: 0; font-size: 17px; line-height: 1.6; background: #fff; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--green); text-underline-offset: 3px; }
a:hover { color: #095e49; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3 { margin: 0; color: var(--ink); line-height: 1.15; }
h1 { font-size: clamp(2.3rem, 4.6vw, 3.6rem); font-weight: 800; letter-spacing: -0.025em; }
h2 { font-size: clamp(1.7rem, 3vw, 2.35rem); font-weight: 750; letter-spacing: -0.02em; }
h3 { font-size: 1.15rem; font-weight: 700; letter-spacing: -0.005em; }
p { margin: 0; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 28px; }
.skip { position: absolute; left: -999px; top: 8px; background: #fff; padding: 8px 12px; z-index: 10; }
.skip:focus { left: 8px; }
.lead { font-size: 1.18rem; color: var(--muted); max-width: 38em; }
.measure { max-width: 40em; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 22px; border-radius: 8px; border: 2px solid transparent;
  font-family: inherit; font-weight: 600; font-size: 1rem; line-height: 1; text-decoration: none; cursor: pointer; white-space: nowrap; }
.btn-primary { background: var(--navy); color: #fff; }
.btn-primary:hover { background: var(--navy-2); color: #fff; }
.btn-line { border-color: var(--navy); color: var(--navy); background: #fff; }
.btn-line:hover { background: var(--wash); color: var(--navy); }
.btn-light { background: #fff; color: var(--navy); }
.btn-light:hover { background: #e9eef6; color: var(--navy); }
.btns { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

/* header */
.top { position: sticky; top: 0; z-index: 20; background: rgba(255,255,255,.94); backdrop-filter: saturate(1.4) blur(8px); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; gap: 28px; height: 70px; }
.brand { display: flex; align-items: center; gap: 11px; text-decoration: none; color: var(--ink); margin-right: auto; }
.brand img { width: 38px; height: 38px; }
.brand span { display: grid; line-height: 1.05; }
.brand small { font-size: .7rem; font-weight: 800; color: var(--green); letter-spacing: .14em; }
.brand b { font-size: 1.16rem; font-weight: 750; letter-spacing: -0.01em; }
.nav { display: flex; align-items: center; gap: 26px; }
.nav a { color: var(--ink); text-decoration: none; font-weight: 500; font-size: .98rem; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--green); }
.nav .btn { color: #fff; min-height: 42px; padding: 0 18px; }
.nav .signin { font-weight: 600; }
.menu-btn { display: none; background: none; border: 1px solid var(--line); border-radius: 8px; height: 42px; padding: 0 14px; font-family: inherit; font-weight: 600; font-size: .95rem; color: var(--ink); }

/* hero */
.hero { padding: 72px 0 84px; overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: minmax(0, .92fr) minmax(0, 1.28fr); gap: 48px; align-items: center; }
.hero h1 { max-width: 12em; }
.hero .lead { margin-top: 22px; }
.hero .btns { margin-top: 32px; }
.hero .note { margin-top: 14px; font-size: .92rem; color: var(--muted); }

/* the paper timecard beside the same entries in the app */
.proof { position: relative; margin: 0; padding: 0 0 0 72px; }
.screen { border-radius: 12px; overflow: hidden; border: 1px solid #cfd6e2; box-shadow: 0 30px 60px -30px rgba(19, 35, 64, .45); background: #fff; }
.screen .bar { height: 30px; background: #e9edf3; display: flex; gap: 6px; align-items: center; padding: 0 12px; }
.screen .bar i { width: 10px; height: 10px; border-radius: 50%; background: #c7cfdb; }
.screen .bar span { margin-left: 10px; font-size: .74rem; color: #6b7487; }
.card { position: absolute; left: 0; top: 34%; width: 300px; background: var(--buff); border: 1px solid var(--buff-line); border-radius: 3px; transform: rotate(-3.5deg);
  box-shadow: 0 18px 30px -18px rgba(60, 45, 10, .55); padding: 14px 16px 16px; color: #3b3222; font-size: .78rem; }
.card-head { display: flex; justify-content: space-between; align-items: baseline; border-bottom: 2px solid var(--rule-red); padding-bottom: 6px; }
.card-head b { font-size: .95rem; letter-spacing: .02em; }
.card-row { display: flex; gap: 6px; margin-top: 7px; align-items: baseline; }
.card-row .lbl { color: #6d5f43; }
.hand { font-family: "Kalam", "Segoe Print", cursive; color: var(--pencil); font-size: 1.12rem; line-height: 1.1; }
.card table { width: 100%; border-collapse: collapse; margin-top: 8px; }
.card th { text-align: left; font-weight: 600; color: #6d5f43; border-bottom: 1px solid var(--buff-line); padding: 3px 2px; font-size: .72rem; }
.card td { border-bottom: 1px solid var(--buff-line); padding: 2px; height: 27px; }
.card td.out { color: var(--rule-red); }
.card .mark { background: rgba(47, 210, 155, .28); border-radius: 3px; padding: 0 3px; }
.proof figcaption { margin: 20px 0 0 236px; max-width: 30em; font-size: .92rem; color: var(--muted); }
.proof figcaption b { color: var(--ink); }

/* sections */
.section { padding: 92px 0; }
.section.wash { background: var(--wash); }
.section-head { max-width: 44em; margin-bottom: 48px; }
.section-head p { margin-top: 14px; color: var(--muted); font-size: 1.1rem; }

/* the three hands on every timecard: a real sequence */
.steps { display: grid; gap: 72px; }
.step { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 56px; align-items: center; }
.step:nth-child(even) { grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); }
.step:nth-child(even) .step-text { order: 2; }
.step-num { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--navy); color: #fff; font-weight: 800; font-size: 1.1rem; margin-bottom: 18px; }
.step h3 { font-size: 1.55rem; letter-spacing: -0.015em; }
.step .who { margin-top: 6px; font-weight: 600; color: var(--green); }
.step p { margin-top: 14px; color: var(--muted); }
.step ul { margin: 16px 0 0; padding-left: 1.2em; color: var(--ink); }
.step li { margin: 6px 0; }
.shot { border-radius: 10px; overflow: hidden; border: 1px solid #cfd6e2; box-shadow: 0 24px 48px -28px rgba(19, 35, 64, .4); }

/* details: a plain two-column list, not a card grid */
.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 64px; }
.fact { padding: 26px 0; border-top: 1px solid var(--line); }
.fact p { margin-top: 8px; color: var(--muted); }

/* security band */
.navyband { background: var(--navy); color: #dfe6f3; }
.navyband h2, .navyband h3 { color: #fff; }
.navyband a { color: var(--check); }
.navyband .section-head p { color: #b8c4da; }
.locks { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px 48px; }
.locks p { margin-top: 8px; color: #b8c4da; }
.locks h3::before { content: ""; display: block; width: 28px; height: 3px; background: var(--check); margin-bottom: 14px; }

/* who it's for + FAQ */
.split { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 72px; align-items: start; }
.faq details { border-top: 1px solid var(--line); padding: 18px 0; }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; font-weight: 650; font-size: 1.05rem; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-weight: 500; font-size: 1.4rem; line-height: 1; color: var(--green); }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin-top: 10px; color: var(--muted); }
.who-list { margin: 22px 0 0; padding: 0; list-style: none; }
.who-list li { padding: 12px 0 12px 30px; border-top: 1px solid var(--line); position: relative; }
.who-list li::before { content: ""; position: absolute; left: 4px; top: 19px; width: 12px; height: 7px; border-left: 2.5px solid var(--green); border-bottom: 2.5px solid var(--green); transform: rotate(-45deg); }

/* closing call */
.closing { padding: 84px 0; background: linear-gradient(var(--wash), #fff); }
.closing .wrap { display: flex; justify-content: space-between; align-items: center; gap: 32px; flex-wrap: wrap; }
.closing p { margin-top: 10px; color: var(--muted); }

/* footer */
.foot { background: var(--navy); color: #b8c4da; padding: 48px 0 40px; font-size: .94rem; }
.foot .wrap { display: grid; grid-template-columns: 1.4fr repeat(2, 1fr); gap: 40px; }
.foot a { color: #fff; text-decoration: none; }
.foot a:hover { text-decoration: underline; color: #fff; }
.foot ul { list-style: none; margin: 12px 0 0; padding: 0; }
.foot li { margin: 8px 0; }
.foot h2 { font-size: .95rem; color: #fff; letter-spacing: 0; }
.foot .legal { grid-column: 1 / -1; border-top: 1px solid #2a3d63; padding-top: 22px; font-size: .86rem; }
.foot .brand { color: #fff; }

/* inner pages */
.page-head { padding: 64px 0 24px; }
.page-head .lead { margin-top: 16px; }
.prose { max-width: 42em; }
.prose h2 { font-size: 1.45rem; margin-top: 44px; }
.prose p, .prose ul { margin-top: 14px; color: #36404f; }
.prose li { margin: 8px 0; }

/* forms */
.field { display: grid; gap: 6px; margin-bottom: 18px; }
.field label { font-weight: 600; font-size: .95rem; }
.field .hint { font-size: .86rem; color: var(--muted); }
.field input, .field select, .field textarea { font: inherit; font-size: 1rem; padding: 11px 13px; border: 1.5px solid #c5cdd9; border-radius: 8px; background: #fff; color: var(--ink); width: 100%; }
.field textarea { min-height: 110px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 3px solid rgba(43, 108, 212, .35); border-color: var(--focus); }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }
.trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.msg { margin-top: 14px; padding: 12px 14px; border-radius: 8px; font-size: .96rem; }
.msg.bad { background: #fdecea; color: #8a1c13; }
.msg.ok { background: #e3f4ee; color: #0a5c47; }
.msg[hidden] { display: none; }

/* sign-in portal */
.portal { min-height: calc(100vh - 70px); display: grid; place-items: center; padding: 56px 20px; background: var(--wash); }
.portal-box { width: min(480px, 100%); background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 36px; box-shadow: 0 24px 48px -32px rgba(19, 35, 64, .35); }
.portal-box h1 { font-size: 1.9rem; }
.portal-box > p { margin-top: 10px; color: var(--muted); }
.addr { display: flex; align-items: stretch; border: 1.5px solid #c5cdd9; border-radius: 8px; overflow: hidden; margin-top: 6px; }
.addr:focus-within { outline: 3px solid rgba(43, 108, 212, .35); border-color: var(--focus); }
.addr input { border: 0; padding: 12px 13px; font: inherit; font-size: 1.05rem; min-width: 0; flex: 1; outline: none; }
.addr span { display: grid; place-items: center; padding: 0 13px; background: var(--wash); color: var(--muted); font-size: .95rem; border-left: 1px solid var(--line); white-space: nowrap; }
.portal-box .btn { width: 100%; margin-top: 6px; }
.recent { margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--line); }
.recent[hidden] { display: none; }
.recent a { display: flex; justify-content: space-between; padding: 12px 14px; border: 1px solid var(--line); border-radius: 8px; text-decoration: none; color: var(--ink); font-weight: 600; margin-top: 8px; }
.recent a:hover { border-color: var(--green); }
.recent a small { color: var(--muted); font-weight: 400; }
.check { display: flex; gap: 10px; align-items: center; font-size: .95rem; margin: 4px 0 18px; }
.check input { width: 18px; height: 18px; accent-color: var(--navy); }
.portal-foot { margin-top: 22px; font-size: .92rem; color: var(--muted); }

/* demo page */
.demo-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 48px; align-items: start; padding-bottom: 92px; }
.live { background: var(--navy); color: #dfe6f3; border-radius: 14px; padding: 34px; }
.live h2 { color: #fff; font-size: 1.6rem; }
.live p { margin-top: 12px; color: #b8c4da; }
.roles { margin: 20px 0 26px; padding: 0; list-style: none; }
.roles li { padding: 11px 0; border-top: 1px solid #2a3d63; }
.roles b { color: #fff; }
.formbox { border: 1px solid var(--line); border-radius: 14px; padding: 34px; }
.formbox h2 { font-size: 1.6rem; margin-bottom: 8px; }
.formbox > p { color: var(--muted); margin-bottom: 22px; }

/* responsive */
@media (max-width: 980px) {
  .hero .wrap, .step, .split, .demo-grid { grid-template-columns: 1fr; }
  .step:nth-child(even) { grid-template-columns: 1fr; }
  .step:nth-child(even) .step-text { order: 0; }
  .hero { padding-top: 48px; }
  .proof { padding-left: 40px; }
  .proof figcaption { margin-left: 0; }
  .locks { grid-template-columns: 1fr 1fr; }
  .foot .wrap { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  body { font-size: 16px; }
  .menu-btn { display: inline-flex; align-items: center; }
  .nav { display: none; position: absolute; top: 70px; left: 0; right: 0; background: #fff; border-bottom: 1px solid var(--line); flex-direction: column; align-items: stretch; gap: 0; padding: 8px 20px 18px; }
  .nav.open { display: flex; }
  .nav a { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .nav .btn { margin-top: 12px; border-bottom: 0; }
  .facts, .locks, .two { grid-template-columns: 1fr; }
  .proof { padding: 0; }
  .proof { padding-left: 0; }
  .card { position: relative; top: auto; width: min(300px, 88%); margin: -60px 0 0 10px; transform: rotate(-2deg); }
  .section { padding: 68px 0; }
  .foot .wrap { grid-template-columns: 1fr; }
  .wrap { padding: 0 20px; }
  .portal-box, .live, .formbox { padding: 26px 22px; }
}
.foot .brand small { color: var(--check); }

/* small spacing helpers (no inline styles: the site's CSP blocks them) */
.foot-about { margin-top: 14px; max-width: 30em; }
.gap-top { margin-top: 16px; }
.gap-top-lg { margin-top: 24px; }
.section.tight-top { padding-top: 24px; }
.small-note { font-size: .9rem; }
.form-note { margin-top: 14px; font-size: .88rem; color: var(--muted); }
.small-muted { font-size: .9rem; color: var(--muted); }
.forget { margin-top: 8px; font-size: .86rem; }
