@font-face {
  font-family: "Young Serif";
  src: url("fonts/young-serif-400.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Hanken Grotesk";
  src: url("fonts/hanken-grotesk-400.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Hanken Grotesk";
  src: url("fonts/hanken-grotesk-500.woff2") format("woff2");
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: "Hanken Grotesk";
  src: url("fonts/hanken-grotesk-700.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}

:root {
  --paper: #e9edf1;
  --sheet: #f8fafb;
  --ink: #13203a;
  --ink-soft: #4a5873;
  --rule: #c7d0db;
  --rule-soft: #dbe2e9;
  --stamp: #d8401f;
  --stamp-dark: #b4321a;
  --ok: #1f6b4f;
  --display: "Young Serif", Georgia, serif;
  --body: "Hanken Grotesk", "Helvetica Neue", Arial, sans-serif;
  --wrap: 1120px;
  --gutter: clamp(16px, 4vw, 40px);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background-color: var(--paper);
  /* faint ledger grid */
  background-image:
    linear-gradient(var(--rule-soft) 1px, transparent 1px),
    linear-gradient(90deg, var(--rule-soft) 1px, transparent 1px);
  background-size: 32px 32px;
  background-position: -1px -1px;
  color: var(--ink);
  font-family: var(--body);
  font-size: 18px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 400;
  line-height: 1.1;
  margin: 0;
  overflow-wrap: break-word;
  hyphens: manual;
}

h2 { font-size: clamp(30px, 4.2vw, 46px); }
h3 { font-size: 22px; }

.btn {
  display: inline-block;
  background: var(--stamp);
  color: #fff;
  border: 0;
  border-radius: 4px;
  padding: 15px 24px;
  font: 700 17px/1 var(--body);
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 2px 0 var(--stamp-dark);
  transition: transform .12s ease, box-shadow .12s ease, background .12s ease;
}
.btn:hover { background: var(--stamp-dark); }
.btn:active { transform: translateY(2px); box-shadow: 0 0 0 var(--stamp-dark); }
.btn:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, summary:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 3px;
}
.btn-ghost {
  background: transparent;
  color: var(--ink);
  box-shadow: inset 0 0 0 2px var(--ink);
}
.btn-ghost:hover { background: var(--ink); color: #fff; }

/* header */
.top {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 22px var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 19px;
  letter-spacing: -0.01em;
  text-decoration: none;
}
.brand-mark {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 2px solid var(--stamp);
  color: var(--stamp);
  border-radius: 50%;
  font-family: var(--display);
  font-size: 18px;
  transform: rotate(-8deg);
}
.top-cta {
  font-weight: 500;
  font-size: 16px;
  text-decoration: none;
  border-bottom: 2px solid var(--stamp);
  padding-bottom: 2px;
}

main > section {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: clamp(56px, 9vw, 104px) var(--gutter);
}

/* hero */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 470px);
  gap: clamp(32px, 6vw, 80px);
  align-items: center;
  padding-top: clamp(32px, 6vw, 72px) !important;
}
.kicker {
  margin: 0 0 18px;
  font-weight: 500;
  font-size: 15px;
  color: var(--stamp-dark);
  letter-spacing: 0.02em;
}
.hero h1 {
  font-size: clamp(36px, 5vw, 60px);
  letter-spacing: -0.015em;
}
.lede {
  font-size: clamp(18px, 2vw, 21px);
  color: var(--ink-soft);
  max-width: 34em;
  margin: 24px 0 32px;
}
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; }
.hero-note { margin: 0; font-size: 15px; color: var(--ink-soft); max-width: 16em; }

/* the tax slip */
.slip {
  position: relative;
  margin: 0;
  background: var(--sheet);
  padding: 26px 26px 20px;
  border-radius: 3px;
  box-shadow: 0 1px 0 var(--rule), 0 24px 48px -24px rgba(19, 32, 58, .35);
  font-variant-numeric: tabular-nums;
  transform: rotate(1.2deg);
  animation: slip-in .8s cubic-bezier(.2, .8, .2, 1) both .15s;
}
/* torn top edge */
.slip::before {
  content: "";
  position: absolute;
  left: 0; right: 0; top: -8px;
  height: 8px;
  background: radial-gradient(circle at 6px 8px, var(--sheet) 6px, transparent 6.5px) 0 0 / 12px 8px repeat-x;
}
.slip-head {
  display: flex;
  justify-content: space-between;
  font-weight: 700;
  font-size: 15px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--ink);
}
.slip-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
}
.slip-table th { text-align: left; font-weight: 400; }
.slip-table td { text-align: right; white-space: nowrap; }
.slip-table td:nth-child(2) { color: var(--ink-soft); font-size: 13px; padding-right: 12px; }
.slip-table th, .slip-table td {
  padding: 9px 0;
  border-bottom: 1px dashed var(--rule);
}
.slip-table .pick th, .slip-table .pick td:last-child {
  font-weight: 700;
}
.slip-table .pick th, .slip-table .pick td { background: rgba(216, 64, 31, .09); }
.slip-table .pick th { padding-left: 8px; }
.slip-table .pick td:last-child { padding-right: 8px; }
.slip-table tfoot th, .slip-table tfoot td {
  font-weight: 700;
  border-bottom: 0;
  padding-top: 12px;
  font-size: 16px;
}
.slip-sum {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 2px solid var(--ink);
  font-size: 14px;
  color: var(--ink-soft);
}
.slip-sum div { display: flex; justify-content: space-between; padding: 3px 0; }
.slip-sum .due {
  margin-top: 8px;
  padding-top: 10px;
  border-top: 1px solid var(--rule);
  color: var(--ink);
  font-size: 19px;
  font-weight: 700;
}
.slip-sum .due span:last-child { font-family: var(--display); font-weight: 400; font-size: 26px; }
.slip figcaption {
  margin-top: 14px;
  font-size: 12px;
  color: var(--ink-soft);
}
.stamp {
  position: absolute;
  right: 22px;
  bottom: 14px;
  padding: 6px 12px;
  border: 3px solid var(--stamp);
  border-radius: 4px;
  color: var(--stamp);
  font: 700 15px/1 var(--body);
  letter-spacing: .14em;
  text-transform: uppercase;
  opacity: .72;
  transform: rotate(-14deg);
  mix-blend-mode: multiply;
  animation: stamp 0.35s cubic-bezier(.3, 1.6, .5, 1) both 1s;
  pointer-events: none;
}
@keyframes slip-in {
  from { opacity: 0; transform: translateY(24px) rotate(3deg); }
  to { opacity: 1; transform: translateY(0) rotate(1.2deg); }
}
@keyframes stamp {
  from { opacity: 0; transform: rotate(-14deg) scale(1.8); }
  to { opacity: .72; transform: rotate(-14deg) scale(1); }
}
.hero-text > * { animation: rise .6s ease both; }
.hero-text > :nth-child(2) { animation-delay: .06s; }
.hero-text > :nth-child(3) { animation-delay: .12s; }
.hero-text > :nth-child(4) { animation-delay: .18s; }
@keyframes rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

/* steps */
.steps h2 { margin-bottom: 40px; }
.steps ol {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  counter-reset: step;
  border-top: 2px solid var(--ink);
}
.steps li {
  counter-increment: step;
  padding: 26px 28px 8px 0;
  position: relative;
}
.steps li + li { padding-left: 28px; border-left: 1px solid var(--rule); }
.steps li::before {
  content: "Stap " counter(step);
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: var(--stamp-dark);
  margin-bottom: 10px;
}
.steps p { color: var(--ink-soft); margin: 10px 0 0; }

/* facts: dark band */
.facts {
  max-width: none !important;
  background: var(--ink);
  color: #e8edf4;
  padding-left: max(var(--gutter), calc((100% - var(--wrap)) / 2 + var(--gutter))) !important;
  padding-right: max(var(--gutter), calc((100% - var(--wrap)) / 2 + var(--gutter))) !important;
}
.facts-intro { max-width: 40em; }
.facts-intro p { color: #b8c3d6; font-size: 19px; margin: 18px 0 0; }
.facts-grid {
  margin: 48px 0 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: #2c3b5a;
  border: 1px solid #2c3b5a;
}
.facts-grid div { background: var(--ink); padding: 24px 24px 26px; }
.facts-grid dt {
  font-family: var(--display);
  font-size: 34px;
  color: #fff;
  font-variant-numeric: tabular-nums;
}
.facts-grid dd { margin: 8px 0 0; color: #b8c3d6; font-size: 16px; }
.facts-note { margin: 22px 0 0; font-size: 14px; color: #8d9ab2; }

/* why */
.why-lede { font-size: 20px; color: var(--ink-soft); max-width: 36em; margin: 18px 0 40px; }
.why-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}
.why-list li {
  background: var(--sheet);
  padding: 22px 24px;
  border-left: 4px solid var(--stamp);
  border-radius: 2px;
}
.why-list h3 { font-size: 21px; }
.why-list p { margin: 8px 0 0; color: var(--ink-soft); font-size: 17px; }

.why-list li:last-child:nth-child(odd) { grid-column: 1 / -1; }

/* year-end section */
.yearend-intro { max-width: 40em; }
.yearend-intro p { font-size: 20px; color: var(--ink-soft); margin: 18px 0 0; }
.yearend-cases {
  margin-top: 40px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}
.case {
  background: var(--sheet);
  padding: 28px;
  border-radius: 3px;
  border-top: 4px solid var(--ink);
  box-shadow: 0 24px 48px -28px rgba(19, 32, 58, .4);
  display: flex;
  flex-direction: column;
}
.case p { color: var(--ink-soft); margin: 12px 0 0; }
.case .case-result {
  margin-top: auto;
  padding-top: 22px;
  font-family: var(--display);
  font-size: 44px;
  line-height: 1;
  color: var(--ok);
}
.case-result s { font-size: 28px; color: var(--ink-soft); text-decoration-color: var(--stamp); text-decoration-thickness: 3px; margin-right: 6px; }
.case-result small { font-family: var(--body); font-size: 16px; color: var(--ink-soft); margin-left: 6px; }
.yearend-cost { margin: 32px 0 0; font-size: 18px; max-width: 40em; }
.yearend-note { margin: 10px 0 0; font-size: 15px; color: var(--ink-soft); }

/* price */
.price { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.price-text p { color: var(--ink-soft); font-size: 19px; margin: 18px 0 0; max-width: 26em; }
.price-card {
  background: var(--sheet);
  padding: 32px;
  border-radius: 3px;
  box-shadow: 0 24px 48px -28px rgba(19, 32, 58, .4);
}
.price-amount { margin: 0; font-family: var(--display); font-size: 72px; line-height: 1; }
.price-amount s { font-size: 34px; color: var(--ink-soft); text-decoration-color: var(--stamp); text-decoration-thickness: 3px; }
.price-amount span { color: var(--stamp); }
.price-what { font-size: 19px; margin: 14px 0 0; }
.price-small { color: var(--ink-soft); font-size: 16px; margin: 12px 0 0; }

/* signup */
.signup {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 6vw, 72px);
  align-items: start;
  border-top: 2px solid var(--ink);
}
.signup-text p { color: var(--ink-soft); margin: 18px 0 0; }
.form {
  background: var(--sheet);
  padding: 30px;
  border-radius: 3px;
  box-shadow: 0 24px 48px -28px rgba(19, 32, 58, .4);
}
.form { display: grid; gap: 8px; }
.form label { font-weight: 500; font-size: 16px; margin-top: 10px; }
.form input[type="email"], .form select {
  width: 100%;
  font: 400 17px/1.3 var(--body);
  color: var(--ink);
  padding: 13px 14px;
  background: #fff;
  border: 1.5px solid var(--rule);
  border-radius: 4px;
  appearance: none;
}
.form select {
  background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(135deg, var(--ink) 50%, transparent 50%);
  background-position: calc(100% - 20px) 55%, calc(100% - 14px) 55%;
  background-size: 6px 6px;
  background-repeat: no-repeat;
  padding-right: 40px;
}
.form input:focus, .form select:focus { border-color: var(--ink); }
.form [aria-invalid="true"] { border-color: var(--stamp); }
.check {
  display: flex !important;
  gap: 10px;
  align-items: flex-start;
  font-weight: 400 !important;
  font-size: 15px !important;
  color: var(--ink-soft);
  margin-top: 16px !important;
}
.check input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--stamp); flex: none; }
.form .btn { margin-top: 18px; width: 100%; }
.form .btn[disabled] { opacity: .6; cursor: wait; }
.form-msg { margin: 6px 0 0; min-height: 1.4em; font-size: 15px; color: var(--stamp-dark); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.preorder { margin: 28px 0; padding: 22px 0; border-top: 1px dashed var(--rule); border-bottom: 1px dashed var(--rule); }
.thanks-page h1 { color: var(--ok); }
.maker {
  margin-top: 36px;
  padding-top: 26px;
  border-top: 1px solid var(--rule);
  display: flex;
  gap: 18px;
  align-items: flex-start;
}
.maker-mark {
  flex: none;
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  font: 400 20px/1 var(--display);
}
.maker h3 { font-size: 20px; }
.maker p { margin: 8px 0 0; font-size: 16px; }

/* faq */
.faq h2 { margin-bottom: 28px; }
.faq details { border-top: 1px solid var(--rule); max-width: 48em; }
.faq details:last-child { border-bottom: 1px solid var(--rule); }
.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 20px 40px 20px 0;
  font-weight: 500;
  font-size: 19px;
  position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  position: absolute;
  right: 6px;
  top: 14px;
  font-family: var(--display);
  font-size: 28px;
  color: var(--stamp);
  transition: transform .2s ease;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0 0 22px; color: var(--ink-soft); max-width: 40em; }

/* footer */
.foot {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 32px var(--gutter) 48px;
  border-top: 2px solid var(--ink);
  font-size: 14px;
  color: var(--ink-soft);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
}
.foot p { margin: 0; }

/* privacy page */
.doc { max-width: 44em; margin: 0 auto; padding: 40px var(--gutter) 80px; }
.doc h1 { font-size: clamp(36px, 5vw, 52px); margin-bottom: 24px; }
.doc h2 { font-size: 26px; margin: 36px 0 10px; }
.doc p, .doc li { color: var(--ink-soft); }

@media (max-width: 860px) {
  .hero, .price, .signup { grid-template-columns: minmax(0, 1fr); }
  .slip { transform: none; animation-name: rise; }
  .steps ol { grid-template-columns: 1fr; }
  .steps li, .steps li + li { padding: 22px 0 18px; border-left: 0; border-bottom: 1px solid var(--rule); }
  .facts-grid { grid-template-columns: 1fr 1fr; }
  .why-list { grid-template-columns: 1fr; }
  .yearend-cases { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 520px) {
  body { font-size: 17px; }
  .facts-grid { grid-template-columns: 1fr; }
  .slip { padding: 22px 16px 18px; }
  .slip-table td:nth-child(2) { display: none; }
  .slip figcaption { padding-right: 150px; }
  .form, .price-card { padding: 22px 18px; }
  .top-cta { font-size: 15px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}
