:root {
  --ink: #16201b;
  --muted: #55635b;
  --line: #dfe5e1;
  --line-strong: #c3cec7;
  --soft: #f4f7f5;
  --green: #0d6b4a;
  --green-dark: #09513a;
  --green-soft: #e6f2ec;
  --amber: #8a5300;
  --amber-soft: #fdf3e1;
  --radius: 6px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  color-scheme: light;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: #fff;
}

h1,
h2,
h3 {
  line-height: 1.25;
  letter-spacing: -0.01em;
  margin: 2rem 0 0.75rem;
}

h1 {
  font-size: clamp(1.85rem, 1.35rem + 2vw, 2.6rem);
  margin-top: 0.5rem;
}

h2 {
  font-size: 1.45rem;
}

h3 {
  font-size: 1.125rem;
  margin-top: 1.5rem;
}

p,
ul,
ol,
dl {
  margin: 0 0 1rem;
}

ul,
ol {
  padding-left: 1.35rem;
}

li + li {
  margin-top: 0.3rem;
}

a {
  color: var(--green);
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--green-dark);
}

:focus-visible {
  outline: 2px solid var(--green-dark);
  outline-offset: 2px;
}

code {
  font-family: var(--mono);
  font-size: 0.9em;
  background: var(--soft);
  padding: 0.1em 0.35em;
  border-radius: 4px;
}

strong {
  font-weight: 650;
}

.wrap {
  max-width: 70rem;
  margin: 0 auto;
  padding: 0 1.25rem;
}

.skip {
  position: absolute;
  left: -999px;
  top: 0.75rem;
  background: #fff;
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  z-index: 10;
}

.skip:focus {
  left: 1rem;
}

/* Header */

.site-header {
  border-bottom: 1px solid var(--line);
  background: #fff;
}

.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4rem;
  position: relative;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--ink);
  text-decoration: none;
}

.brand:hover {
  color: var(--ink);
}

.brand-mark {
  width: 1.6rem;
  height: 1.6rem;
}

.brand-mark rect {
  fill: var(--green);
}

.brand-mark path {
  fill: none;
  stroke: #fff;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.nav {
  display: flex;
  gap: 1.35rem;
  font-size: 0.95rem;
}

.nav a {
  color: var(--muted);
  text-decoration: none;
}

.nav a:hover,
.nav a[aria-current="page"] {
  color: var(--ink);
}

.nav a[aria-current="page"] {
  font-weight: 600;
}

.menu {
  display: none;
}

.menu summary {
  list-style: none;
  cursor: pointer;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  padding: 0.4rem 0.8rem;
  font-size: 0.95rem;
}

.menu summary::-webkit-details-marker {
  display: none;
}

.menu nav {
  position: absolute;
  right: 1.25rem;
  top: 3.6rem;
  display: flex;
  flex-direction: column;
  min-width: 14rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 8px 24px rgba(22, 32, 27, 0.08);
  padding: 0.5rem 0;
  z-index: 5;
}

.menu nav a {
  padding: 0.55rem 1rem;
  color: var(--ink);
  text-decoration: none;
}

.menu nav a:hover {
  background: var(--soft);
}

.menu nav a[aria-current="page"] {
  font-weight: 600;
}

@media (max-width: 56rem) {
  .nav {
    display: none;
  }

  .menu {
    display: block;
  }
}

/* Page */

.crumbs {
  font-size: 0.875rem;
  color: var(--muted);
  margin: 1.25rem 0 0;
}

.crumbs ol {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
}

.crumbs li + li {
  margin-top: 0;
}

.crumbs li + li::before {
  content: "/";
  margin: 0 0.5rem;
  color: var(--line-strong);
}

.crumbs a {
  color: var(--muted);
}

.article {
  max-width: 46rem;
  padding: 0.75rem 0 4rem;
}

.lead {
  font-size: 1.15rem;
  color: var(--muted);
}

.updated {
  font-size: 0.9rem;
  color: var(--muted);
}

.summary {
  background: var(--green-soft);
  border-radius: var(--radius);
  padding: 1rem 1.25rem 0.25rem;
  margin: 1.5rem 0;
}

.summary h2 {
  font-size: 1.05rem;
  margin: 0 0 0.5rem;
}

.notice {
  background: var(--amber-soft);
  border-radius: var(--radius);
  padding: 0.85rem 1rem;
}

.notice strong {
  color: var(--amber);
}

.placeholder {
  background: var(--amber-soft);
  color: var(--amber);
  font-weight: 600;
  padding: 0 0.25em;
  border-radius: 3px;
}

.table-wrap {
  overflow-x: auto;
  margin: 1.25rem 0;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
  font-variant-numeric: tabular-nums;
}

th,
td {
  text-align: left;
  vertical-align: top;
  padding: 0.55rem 0.75rem;
  border-bottom: 1px solid var(--line);
}

thead th,
thead td {
  border-bottom: 2px solid var(--line-strong);
  font-weight: 650;
}

tbody th {
  font-weight: 600;
}

th:first-child,
td:first-child {
  padding-left: 0;
}

.plans td {
  min-width: 8rem;
}

.cta {
  margin: 1.5rem 0;
}

.button {
  display: inline-block;
  background: var(--green);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  padding: 0.8rem 1.25rem;
  border-radius: var(--radius);
  line-height: 1.3;
}

.button:hover {
  background: var(--green-dark);
  color: #fff;
}

.button.is-soon {
  background: var(--soft);
  color: var(--muted);
  border: 1px solid var(--line-strong);
  cursor: default;
}

.cards {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 0.75rem;
}

.cards li {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  margin: 0;
}

.cards a {
  font-weight: 650;
}

.cards p {
  margin: 0.35rem 0 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.app-box {
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem 0.5rem;
  margin: 2.5rem 0;
}

.app-box h2 {
  font-size: 1.15rem;
  margin-top: 0;
}

.faq h3 {
  margin-top: 1.25rem;
}

.sources {
  font-size: 0.9rem;
  color: var(--muted);
  border-top: 1px solid var(--line);
  margin-top: 3rem;
  padding-top: 0.5rem;
}

.sources h2 {
  font-size: 1.05rem;
}

sup.ref {
  line-height: 0;
}

sup.ref a {
  text-decoration: none;
  font-size: 0.8em;
  padding: 0 0.1em;
}

.legal h2 {
  margin-top: 2.25rem;
}

.legal table {
  font-size: 0.9rem;
}

/* Home */

.hero {
  padding: 3.5rem 0 2.5rem;
}

.hero h1 {
  max-width: 24ch;
}

.hero .lead {
  max-width: 42rem;
}

.hero .fit {
  font-size: 0.95rem;
  color: var(--muted);
  max-width: 42rem;
}

.section {
  padding: 3rem 0;
}

.section.soft {
  background: var(--soft);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section h2 {
  margin-top: 0;
}

.section > .wrap > p {
  max-width: 46rem;
}

.grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  margin: 1.5rem 0 0;
}

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.25rem 1.25rem 0.5rem;
}

.card h3 {
  margin-top: 0;
}

.card p {
  color: var(--muted);
  font-size: 0.975rem;
}

.steps {
  counter-reset: step;
  list-style: none;
  padding: 0;
}

.steps li {
  counter-increment: step;
  margin: 0;
}

.steps li::before {
  content: counter(step);
  display: inline-grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border-radius: var(--radius);
  background: var(--green-soft);
  color: var(--green);
  font-weight: 700;
  margin-bottom: 0.75rem;
}

/* Footer */

.site-footer {
  background: var(--soft);
  border-top: 1px solid var(--line);
  padding: 2.5rem 0 1.5rem;
  font-size: 0.9rem;
  color: var(--muted);
}

.footer-columns {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr));
  margin-bottom: 1.5rem;
}

.site-footer h2 {
  font-size: 0.9rem;
  color: var(--ink);
  margin: 0 0 0.5rem;
}

.site-footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.site-footer a {
  color: var(--muted);
}

.site-footer a:hover {
  color: var(--ink);
}

@media (max-width: 40rem) {
  body {
    font-size: 1rem;
  }

  .hero {
    padding-top: 2.25rem;
  }

  table {
    font-size: 0.875rem;
  }

  th,
  td {
    padding: 0.5rem 0.5rem;
  }

  /* A table of at most three columns hyphenates its long words to fit; a wider one scrolls inside its wrapper */
  table:not(:has(tr > :nth-child(4))) :is(th, td) {
    hyphens: auto;
    hyphenate-limit-chars: 10 4 4;
  }

  /* On a phone each row of the plans lists all three plans, so every price shows at once */
  .plans thead {
    display: none;
  }

  .plans,
  .plans tbody,
  .plans tr,
  .plans th,
  .plans td {
    display: block;
  }

  .plans tr {
    padding: 0.7rem 0;
    border-bottom: 1px solid var(--line);
  }

  .plans th,
  .plans td {
    border: 0;
    padding: 0;
  }

  .plans th {
    margin-bottom: 0.3rem;
  }

  .plans td {
    display: flex;
    gap: 0.75rem;
    min-width: 0;
    padding: 0.1rem 0;
  }

  .plans td::before {
    content: attr(data-plan);
    flex: 0 0 6.5rem;
    color: var(--muted);
  }
}

/* Print: the one-page summary for bookkeepers, and any page printed from a browser */

@page {
  size: A4;
  margin: 13mm 14mm;
}

@media print {
  .site-header,
  .site-footer,
  .crumbs,
  .skip,
  .no-print {
    display: none;
  }

  body {
    font-size: 10pt;
    line-height: 1.45;
    color: #000;
  }

  a {
    color: inherit;
    text-decoration: none;
  }

  .wrap,
  .article {
    max-width: none;
    padding: 0;
  }

  h1 {
    font-size: 17pt;
  }

  h2 {
    font-size: 12pt;
    margin: 0.9rem 0 0.3rem;
  }

  table {
    font-size: 9pt;
  }

  .sheet p,
  .sheet ul {
    margin-bottom: 0.4rem;
  }

  .sheet li + li {
    margin-top: 0.1rem;
  }

  .sheet th,
  .sheet td {
    padding: 0.2rem 0.4rem;
  }

  .sheet .sources {
    margin-top: 0.6rem;
    font-size: 8.5pt;
  }

  .sheet .sources h2 {
    font-size: 10pt;
    margin: 0 0 0.2rem;
  }

  .sheet .sources ol,
  .sheet .sheet-foot {
    margin-bottom: 0;
  }

  .sheet .sheet-foot {
    margin-top: 0.4rem;
  }
}

.sheet-foot {
  font-size: 0.85rem;
  color: var(--muted);
  border-top: 1px solid var(--line);
  padding-top: 0.5rem;
  margin-top: 1rem;
}
