:root {
  --ink: #101820;
  --ink-2: #44525f;
  --paper: #f2f4f6;
  --card: #ffffff;
  --line: #dde2e7;
  --blue: #1f6feb;
  --blue-deep: #1558c0;
  --green: #12805c;
  --amber: #b86e00;
  --red: #c4302b;
  --radius: 10px;
  --shadow: 0 1px 0 rgba(16, 24, 32, .04), 0 12px 32px -18px rgba(16, 24, 32, .28);
  font-family: 'Bricolage Grotesque', 'Segoe UI', system-ui, -apple-system, sans-serif;
  color: var(--ink);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); line-height: 1.55; font-size: 17px; }
a { color: var(--blue-deep); }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; border-radius: 4px; }
.wrap { width: min(1080px, 100% - 40px); margin-inline: auto; }
.narrow { width: min(640px, 100% - 40px); margin-inline: auto; }

/* header */
.top { display: flex; align-items: center; justify-content: space-between; padding: 18px 0; }
.logo { font-weight: 800; font-size: 21px; letter-spacing: -.02em; color: var(--ink); text-decoration: none; display: inline-flex; align-items: center; gap: 10px; }
.logo i { width: 22px; height: 22px; border-radius: 50%; border: 3px solid var(--ink); position: relative; display: inline-block; }
.logo i::before, .logo i::after { content: ''; position: absolute; left: 50%; top: 50%; width: 2px; background: var(--ink); transform-origin: top; }
.logo i::before { height: 6px; transform: translate(-50%, 0) rotate(180deg); }
.logo i::after { height: 5px; transform: translate(-50%, 0) rotate(-90deg); }
nav { display: flex; gap: 22px; align-items: center; }
nav a { color: var(--ink-2); text-decoration: none; font-weight: 600; font-size: 15px; }
nav a:hover { color: var(--ink); }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 22px; border-radius: 9px; border: 1px solid var(--ink); background: var(--ink); color: #fff; font: inherit; font-weight: 700; font-size: 16px; text-decoration: none; cursor: pointer; }
.btn:hover { background: #1d2a35; }
.btn.blue { background: var(--blue); border-color: var(--blue); }
.btn.blue:hover { background: var(--blue-deep); }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn.ghost:hover { border-color: var(--ink); background: transparent; }
.btn.small { min-height: 40px; padding: 0 16px; font-size: 15px; }
.btn[disabled] { opacity: .55; cursor: default; }

/* hero */
.hero { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; padding: 56px 0 84px; }
h1 { font-size: clamp(38px, 5.4vw, 62px); line-height: 1.02; letter-spacing: -.035em; margin: 0 0 22px; font-weight: 800; }
.lede { font-size: 20px; color: var(--ink-2); max-width: 34em; margin: 0 0 30px; }
.cta-row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.fine { font-size: 14px; color: var(--ink-2); margin-top: 14px; }

/* the timecard: rostered vs actual */
.card-sheet { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px 20px 14px; }
.card-sheet h2 { font-size: 15px; margin: 0 0 2px; letter-spacing: 0; }
.card-sheet .sub { font-size: 13px; color: var(--ink-2); margin: 0 0 14px; }
.axis { display: grid; grid-template-columns: 92px 1fr; font-size: 12px; color: var(--ink-2); margin-bottom: 4px; }
.axis span { display: flex; justify-content: space-between; }
.row { display: grid; grid-template-columns: 92px 1fr; align-items: center; padding: 9px 0; border-top: 1px solid var(--line); font-size: 14px; }
.row b { font-weight: 700; }
.track { position: relative; height: 34px; }
.bar { position: absolute; height: 10px; border-radius: 3px; }
.bar.b-plan { top: 3px; background: repeating-linear-gradient(135deg, #cfd6dd 0 4px, #e6eaee 4px 8px); }
.bar.b-did { top: 17px; background: var(--green); }
.bar.b-did.late { background: var(--amber); }
.bar.b-did.off { background: var(--red); }
.tag { position: absolute; top: -2px; font-size: 11px; font-weight: 700; padding: 1px 6px; border-radius: 4px; background: #fbeed8; color: var(--amber); white-space: nowrap; }
.tag.red { background: #fbe3e1; color: var(--red); }
.legend { display: flex; gap: 16px; font-size: 12px; color: var(--ink-2); padding-top: 10px; border-top: 1px solid var(--line); flex-wrap: wrap; }
.legend i { display: inline-block; width: 14px; height: 8px; border-radius: 2px; margin-right: 6px; vertical-align: 0; }

/* sections */
section { padding: 76px 0; }
section.alt { background: var(--card); border-block: 1px solid var(--line); }
h2.big { font-size: clamp(28px, 3.6vw, 40px); letter-spacing: -.03em; line-height: 1.1; margin: 0 0 14px; max-width: 18em; }
.intro { color: var(--ink-2); max-width: 38em; margin: 0 0 40px; }
.feature { display: grid; grid-template-columns: 1fr 1.2fr; gap: 48px; padding: 34px 0; border-top: 1px solid var(--line); align-items: start; }
.feature:first-of-type { border-top: 0; padding-top: 0; }
.feature h3 { margin: 0 0 8px; font-size: 22px; letter-spacing: -.02em; }
.feature p { margin: 0; color: var(--ink-2); }
.feature ul { margin: 0; padding-left: 20px; color: var(--ink); }
.feature li { margin-bottom: 8px; }

/* pricing */
.plans { display: grid; grid-template-columns: 1fr 1.25fr; gap: 20px; align-items: stretch; }
.plan { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; display: flex; flex-direction: column; }
.plan.pro { background: var(--ink); color: #fff; border-color: var(--ink); box-shadow: var(--shadow); }
.plan h3 { margin: 0 0 4px; font-size: 22px; }
.price { font-size: 44px; font-weight: 800; letter-spacing: -.03em; line-height: 1.1; margin: 10px 0 2px; }
.price small { font-size: 16px; font-weight: 600; opacity: .75; letter-spacing: 0; }
.plan ul { padding-left: 20px; margin: 18px 0 26px; flex: 1; }
.plan li { margin-bottom: 8px; }
.plan .btn { align-self: flex-start; }
.plan.pro .btn { background: #fff; color: var(--ink); border-color: #fff; }
.plan.pro .muted { color: #c3ccd5; }
.muted { color: var(--ink-2); }
.addon { display: grid; grid-template-columns: 1.6fr 1fr; gap: 24px; align-items: center; margin-top: 20px; background: var(--card); border: 1px dashed #9aa7b3; border-radius: var(--radius); padding: 24px 28px; }
.addon h3 { margin: 0 0 4px; font-size: 22px; }
.addon h3 small { font-size: 14px; font-weight: 600; color: var(--ink-2); margin-left: 6px; }
.addon ul { padding-left: 20px; margin: 12px 0 0; }
.addon li { margin-bottom: 6px; }
.addon-price { text-align: left; }
.addon-price .price { font-size: 38px; }
.opt { display: flex; gap: 10px; align-items: flex-start; margin: 14px 0 4px; font-weight: 600; }
.opt input { width: 20px; height: 20px; margin-top: 3px; flex: none; }
.opt small { display: block; font-weight: 400; color: var(--ink-2); }

details { border-top: 1px solid var(--line); padding: 18px 0; }
details:last-of-type { border-bottom: 1px solid var(--line); }
summary { cursor: pointer; font-weight: 700; font-size: 18px; list-style-position: outside; }
details p { margin: 12px 0 0; color: var(--ink-2); max-width: 44em; }

footer { padding: 40px 0 56px; color: var(--ink-2); font-size: 14px; }
footer .wrap { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
footer a { color: var(--ink-2); margin-right: 18px; }

/* forms and account */
.panel { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); }
.panel + .panel { margin-top: 18px; }
.panel h1, .panel h2 { margin: 0 0 6px; }
.panel h1 { font-size: 30px; letter-spacing: -.02em; }
.panel h2 { font-size: 20px; }
label { display: block; font-weight: 700; font-size: 14px; margin: 16px 0 6px; }
input, select { width: 100%; min-height: 48px; padding: 0 14px; border: 1px solid #b8c1ca; border-radius: 9px; font: inherit; background: #fff; color: var(--ink); }
input:focus, select:focus { border-color: var(--blue); }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; margin-top: 18px; }
.check input { width: 20px; min-height: 20px; margin-top: 3px; }
.msg { padding: 12px 14px; border-radius: 9px; margin: 16px 0 0; font-size: 15px; }
.msg.err { background: #fbe3e1; color: #7d1f1b; }
.msg.ok { background: #dff3ea; color: #0b5a40; }
.msg.warn { background: #fbeed8; color: #6b4000; }
.stack > * + * { margin-top: 14px; }
.kv { display: grid; grid-template-columns: 170px 1fr; gap: 8px 16px; margin: 14px 0 0; }
.kv dt { color: var(--ink-2); }
.kv dd { margin: 0; font-weight: 700; }
.code { font-size: 30px; font-weight: 800; letter-spacing: .12em; }
.actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 20px; }
.hidden { display: none !important; }
.legal h1 { font-size: 34px; letter-spacing: -.02em; }
.legal h2 { font-size: 20px; margin: 30px 0 6px; }
.legal p, .legal li { color: var(--ink-2); }
.draft { background: #fbeed8; color: #6b4000; padding: 12px 14px; border-radius: 9px; font-weight: 600; }

@media (max-width: 860px) {
  .hero, .feature, .plans, .addon { grid-template-columns: 1fr; gap: 32px; }
  .hero { padding-top: 24px; }
  nav a.hide-sm { display: none; }
  .kv { grid-template-columns: 1fr; gap: 2px 0; }
  .kv dd { margin-bottom: 10px; }
}
@media (prefers-reduced-motion: no-preference) {
  .bar.b-did { transform-origin: left; animation: grow .9s .15s cubic-bezier(.2,.7,.2,1) both; }
  @keyframes grow { from { transform: scaleX(0); } }
}
