/* canada-payroll shared stylesheet — the ONE source of design truth (design pass 2026-07-25).
   Tokens: LIGHT financial-trust palette. Deep green anchors the brand (payroll's own
   identity, sister-site to FT's navy/gold); same craft bar as freelancertax styles.css.
   All four pages link this file INSTEAD of carrying their own <style> block.
   Styling only — no figure, no copy, no math lives here. */

:root {
  --bg: #f4f7f6;
  --card: #ffffff;
  --surface-2: #eef4f1;
  --ink: #14252e;
  --heading: #0e1f27;
  --mut: #52646f;
  --faint: #75858f;
  --line: #d8e2de;
  --line-strong: #b9cdc5;
  --acc: #0b6e4f;
  --acc-deep: #084c37;
  --acc2: #e7f3ee;
  --acc2-line: #c6e0d4;
  --gold: #e9b949;
  --warn: #8a6d1a;
  --warnbg: #fdf6e3;
  --err: #a3272f;
  --shadow: 0 1px 2px rgba(14, 37, 46, 0.05), 0 4px 14px rgba(14, 37, 46, 0.06);
  --shadow-lift: 0 2px 4px rgba(14, 37, 46, 0.06), 0 10px 28px rgba(14, 37, 46, 0.10);
  --radius: 12px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font: 16px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
.wrap { max-width: 880px; margin: 0 auto; padding: 24px 20px 64px; }

/* ---------- site header ---------- */
header.site {
  padding: 0;
  border-bottom: 1px solid var(--line);
  background: var(--card);
  box-shadow: 0 1px 0 rgba(14, 37, 46, 0.03);
}
header.site .wrap { padding: 14px 20px; display: flex; justify-content: space-between; align-items: center; gap: 10px; }
header.site a { color: var(--heading); text-decoration: none; font-weight: 800; font-size: 17px; letter-spacing: -0.01em; }
header.site a::before {
  content: "";
  display: inline-block; width: 10px; height: 10px; border-radius: 3px;
  background: linear-gradient(135deg, var(--acc) 0%, var(--acc-deep) 100%);
  margin-right: 8px;
}
header.site .tag { color: var(--mut); font-size: 12.5px; text-align: right; }
header.site .tag::before { content: "✓ "; color: var(--acc); font-weight: 700; }

/* ---------- type ---------- */
h1 { font-size: 30px; line-height: 1.22; letter-spacing: -0.015em; margin: 30px 0 8px; color: var(--heading); font-weight: 800; }
h2 { font-size: 21px; line-height: 1.3; letter-spacing: -0.01em; margin: 34px 0 10px; color: var(--heading); font-weight: 750; }
h3 { font-size: 16px; margin: 20px 0 6px; color: var(--heading); font-weight: 700; }
.sub { color: var(--mut); margin: 0 0 18px; max-width: 68ch; font-size: 16.5px; }
p { margin: 0 0 1em; }
ul { padding-left: 22px; }
li { margin: 5px 0; }
a { color: var(--acc); text-decoration-color: var(--acc2-line); text-underline-offset: 2px; }
a:hover { color: var(--acc-deep); }
strong { color: var(--heading); }

/* ---------- trust bar (verified stamp + source links) ---------- */
.trust {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px;
  background: var(--card); border: 1px solid var(--line); border-left: 4px solid var(--acc);
  border-radius: 10px; padding: 10px 14px; margin: 0 0 20px;
  font-size: 13.5px; color: var(--mut); box-shadow: var(--shadow);
}
.trust .stamp { color: var(--acc-deep); font-weight: 750; white-space: nowrap; }
.trust .stamp::before { content: "✓"; display: inline-block; margin-right: 6px; color: #fff; background: var(--acc); border-radius: 50%; width: 17px; height: 17px; line-height: 17px; text-align: center; font-size: 11px; }
.trust a { color: var(--mut); text-decoration-color: var(--line-strong); white-space: nowrap; }
.trust a:hover { color: var(--acc-deep); }

/* ---------- hero worked-example card (content generated by gen-static-examples.mjs) ---------- */
.heroCard {
  background: linear-gradient(180deg, var(--card) 0%, var(--acc2) 140%);
  border: 1px solid var(--acc2-line); border-radius: var(--radius);
  padding: 18px 20px 16px; margin: 0 0 22px; box-shadow: var(--shadow);
}
.heroCard .hc-title { font-size: 12.5px; font-weight: 750; color: var(--acc-deep); text-transform: uppercase; letter-spacing: 0.06em; margin: 0 0 12px; }
.heroCard .hc-flow { display: flex; align-items: stretch; gap: 10px; flex-wrap: wrap; }
.heroCard .hc-step { flex: 1 1 150px; min-width: 140px; background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; position: relative; }
.heroCard .hc-step .hc-n { font-size: 22px; font-weight: 800; color: var(--acc-deep); font-variant-numeric: tabular-nums; letter-spacing: -0.01em; }
.heroCard .hc-step .hc-l { font-size: 12.5px; color: var(--mut); margin-top: 2px; line-height: 1.4; }
.heroCard .hc-step.hc-final { background: var(--acc); border-color: var(--acc-deep); }
.heroCard .hc-step.hc-final .hc-n { color: #fff; }
.heroCard .hc-step.hc-final .hc-l { color: rgba(255, 255, 255, 0.85); }
.heroCard .hc-arrow { align-self: center; color: var(--acc); font-size: 18px; font-weight: 800; flex: 0 0 auto; }
.heroCard .hc-note { font-size: 12.5px; color: var(--faint); margin: 10px 0 0; }

/* ---------- cards / tool ---------- */
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px; margin: 0 0 18px; box-shadow: var(--shadow);
}
#tool { border-top: 4px solid var(--acc); }
label { display: block; font-weight: 650; font-size: 13.5px; margin: 0 0 5px; color: var(--heading); }
.row { display: flex; gap: 14px; flex-wrap: wrap; }
.row > div { flex: 1 1 160px; }
input[type=text], select {
  width: 100%; padding: 11px 12px; border: 1px solid var(--line-strong); border-radius: 9px;
  font-size: 17px; background: #fff; color: var(--ink);
}
input[type=text]:focus, select:focus { outline: 2px solid var(--acc); outline-offset: 1px; border-color: var(--acc); }
button#calc {
  margin-top: 16px; padding: 12px 26px; font-size: 16px; font-weight: 750; color: #fff;
  background: linear-gradient(180deg, var(--acc) 0%, var(--acc-deep) 100%);
  border: 0; border-radius: 9px; cursor: pointer; box-shadow: var(--shadow);
}
button#calc:hover { filter: brightness(1.08); box-shadow: var(--shadow-lift); }
button#calc:active { transform: translateY(1px); }
.err { color: var(--err); font-weight: 650; margin-top: 10px; display: none; }
#results { display: none; }

/* ---------- result stat cards ---------- */
.big { display: flex; gap: 12px; flex-wrap: wrap; margin: 16px 0 16px; }
.big .stat {
  flex: 1 1 170px; background: var(--acc2); border: 1px solid var(--acc2-line);
  border-radius: 10px; padding: 14px 16px;
}
.big .stat:first-child { background: var(--acc); border-color: var(--acc-deep); }
.big .stat:first-child .n { color: #fff; }
.big .stat:first-child .l { color: rgba(255, 255, 255, 0.85); }
.big .stat .n { font-size: 24px; font-weight: 800; color: var(--acc-deep); font-variant-numeric: tabular-nums; letter-spacing: -0.01em; }
.big .stat .l { font-size: 12.5px; color: var(--mut); margin-top: 2px; line-height: 1.4; }

/* ---------- tables as result cards ---------- */
table {
  width: 100%; border-collapse: separate; border-spacing: 0; font-size: 14.5px; margin: 8px 0 14px;
  background: var(--card); border: 1px solid var(--line); border-radius: 10px; overflow: hidden;
}
th {
  text-align: left; padding: 9px 12px; color: var(--acc-deep); font-size: 12px;
  text-transform: uppercase; letter-spacing: 0.05em; background: var(--surface-2);
  border-bottom: 1px solid var(--line);
}
td { text-align: left; padding: 8px 12px; border-bottom: 1px solid var(--line); }
tr:last-child td { border-bottom: 0; }
tbody tr:nth-child(even) td { background: rgba(238, 244, 241, 0.45); }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }
tr.total td { font-weight: 750; color: var(--heading); border-top: 2px solid var(--acc); background: var(--acc2); }

/* ---------- notes / pills / disclaimers ---------- */
.note { background: var(--warnbg); border: 1px solid #efe3b3; color: var(--warn); border-radius: 10px; padding: 12px 14px; font-size: 14px; margin: 12px 0; }
.disc { color: var(--faint); font-size: 13px; margin-top: 16px; }
.fine { color: var(--mut); font-size: 14px; }
.pill {
  display: inline-block; background: var(--acc2); border: 1px solid var(--acc2-line); color: var(--acc-deep);
  font-size: 12px; font-weight: 750; border-radius: 999px; padding: 2px 11px; margin-left: 8px; vertical-align: middle;
}
pre { font: 0.82rem/1.6 ui-monospace, SFMono-Regular, Menlo, monospace; background: var(--surface-2); border: 1px solid var(--line); border-radius: 9px; padding: 14px; overflow-x: auto; white-space: pre; }
code { color: var(--acc-deep); }

/* ---------- home hub cards ---------- */
a.card { display: block; text-decoration: none; color: var(--ink); transition: box-shadow 0.15s ease, border-color 0.15s ease; }
a.card:hover { border-color: var(--acc); box-shadow: var(--shadow-lift); }
a.card h2 { margin: 0 0 6px; font-size: 19px; color: var(--acc-deep); }
a.card p { margin: 0; color: var(--mut); font-size: 15px; }
.soon { opacity: 0.65; }
.soon .pill { background: var(--surface-2); border: 1px solid var(--line); color: var(--mut); }

/* ---------- reminder opt-in ($0 interest test, 2026-07-25) ---------- */
.optin {
  background: var(--acc2);
  border: 1.5px solid var(--acc2-line);
  border-radius: 10px;
  padding: 14px 16px;
  margin: 14px 0;
  font-size: 14.5px;
}
.optin strong { color: var(--heading); }
.optin p { color: var(--mut); font-size: 13.5px; margin: 6px 0 10px; }
.optin form { display: flex; gap: 8px; flex-wrap: wrap; }
.optin input[type=email] {
  flex: 1 1 220px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  padding: 9px 12px;
  font: inherit;
  font-size: 14.5px;
  background: var(--card);
  color: var(--ink);
}
.optin input[type=email]:focus { outline: 2px solid var(--acc); outline-offset: 1px; border-color: var(--acc); }
.optin input[name=website] { position: absolute; left: -9999px; height: 1px; width: 1px; opacity: 0; }
.optin button {
  background: linear-gradient(135deg, var(--acc) 0%, var(--acc-deep) 100%);
  color: #fff;
  border: 0;
  border-radius: 8px;
  padding: 9px 18px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  box-shadow: var(--shadow);
}
.optin button:hover { filter: brightness(1.08); box-shadow: var(--shadow-lift); }
#optinMsg { font-size: 13.5px; font-weight: 650; color: var(--acc-deep); margin-top: 8px; }

/* ---------- footer ---------- */
footer { color: var(--mut); font-size: 13px; border-top: 1px solid var(--line); margin-top: 48px; padding-top: 18px; }

/* ---------- mobile pass ---------- */
@media (max-width: 640px) {
  .wrap { padding: 18px 14px 48px; }
  h1 { font-size: 24px; margin-top: 22px; }
  h2 { font-size: 19px; }
  .sub { font-size: 15.5px; }
  header.site .wrap { padding: 12px 14px; }
  header.site .tag { font-size: 11.5px; }
  .card { padding: 16px; }
  .heroCard { padding: 14px 14px 12px; }
  .heroCard .hc-flow { flex-direction: column; gap: 6px; }
  .heroCard .hc-arrow { transform: rotate(90deg); align-self: flex-start; margin-left: 18px; font-size: 15px; }
  .heroCard .hc-step .hc-n { font-size: 19px; }
  .big .stat .n { font-size: 20px; }
  table { font-size: 13px; display: block; overflow-x: auto; }
  .trust { font-size: 12.5px; }
}
