:root {
  --font-manrope: "Manrope";
  --ink: #102a2f;
  --ink-soft: #173b41;
  --muted: #496168;
  --paper: #fbfcf7;
  --white: #ffffff;
  --aqua: #20c6b7;
  --aqua-dark: #0b6f69;
  --sky: #dff4ff;
  --sky-strong: #b9e9ff;
  --mint: #dff8ef;
  --coral: #ff725e;
  --coral-soft: #ffe4df;
  --yellow: #ffda68;
  --lilac: #e8e3ff;
  --line: #dce7e4;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-manrope), Arial, sans-serif;
  font-size: 18px;
  line-height: 1.6;
}

a {
  color: inherit;
}

h1,
h2,
h3,
h4 {
  text-wrap: balance;
}

a:focus-visible,
summary:focus-visible {
  outline: 4px solid var(--coral);
  outline-offset: 4px;
}

.site-header {
  position: relative;
  z-index: 10;
  width: min(1220px, calc(100% - 48px));
  min-height: 88px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 21px;
  font-weight: 800;
  letter-spacing: -0.045em;
  text-decoration: none;
}

.brand-mark {
  position: relative;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border: 2px solid var(--ink);
  border-radius: 13px;
  background: var(--coral);
  box-shadow: 3px 3px 0 var(--yellow);
  transform: rotate(-6deg);
}

.accounting-glyph {
  width: 25px;
  height: 29px;
  padding: 3px;
  display: grid;
  grid-template-rows: 7px 1fr;
  gap: 3px;
  border: 2px solid var(--ink);
  border-radius: 5px;
  background: var(--paper);
}

.glyph-display {
  display: block;
  border-radius: 2px;
  background: var(--ink);
}

.glyph-keys {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
}

.glyph-keys i {
  display: block;
  border-radius: 1px;
  background: var(--ink);
}

nav {
  display: flex;
  align-items: center;
  gap: 30px;
}

nav a {
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
}

nav a:not(.nav-cta):hover,
.footer-links a:hover {
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
}

.nav-cta {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  gap: 18px;
  padding: 12px 20px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: var(--white);
  box-shadow: 3px 3px 0 var(--ink);
  white-space: nowrap;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.nav-cta:hover,
.button:hover {
  transform: translate(2px, 2px);
  box-shadow: 1px 1px 0 var(--ink);
}

.hero {
  width: min(1220px, calc(100% - 48px));
  min-height: 690px;
  margin: 0 auto;
  padding: 64px 0 92px;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(420px, 0.8fr);
  align-items: center;
  gap: 72px;
}

.hero h1 {
  max-width: 780px;
  margin: 0;
  font-size: clamp(56px, 6.1vw, 90px);
  font-weight: 800;
  letter-spacing: -0.067em;
  line-height: 0.99;
}

.hero-copy > p {
  max-width: 700px;
  margin: 34px 0 0;
  color: var(--muted);
  font-size: clamp(20px, 2vw, 25px);
  line-height: 1.45;
}

.hero-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 28px;
  margin-top: 38px;
}

.button {
  min-height: 58px;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px 24px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  font-size: 17px;
  font-weight: 800;
  text-decoration: none;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.button-primary {
  background: var(--aqua);
  box-shadow: 4px 4px 0 var(--ink);
}

.hero-cta {
  background: var(--ink);
  color: var(--white);
  box-shadow: none;
}

.hero-cta:hover {
  background: var(--ink-soft);
  box-shadow: none;
  transform: none;
}

.button-ink {
  background: var(--ink);
  color: var(--white);
  box-shadow: 4px 4px 0 var(--aqua);
}

.button.full {
  width: 100%;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-weight: 800;
  text-underline-offset: 5px;
}

.hero-documents {
  position: relative;
  min-height: 540px;
}

.document-card {
  position: absolute;
  width: 330px;
  min-height: 275px;
  padding: 28px;
  border: 2px solid var(--ink);
  border-radius: 30px;
  box-shadow: 8px 10px 0 rgba(16, 42, 47, 0.14);
  transform-origin: 50% 70%;
  transition: transform 820ms cubic-bezier(0.22, 1, 0.36, 1);
}

.document-card h3 {
  max-width: 250px;
  margin: 38px 0 28px;
  font-size: 30px;
  letter-spacing: -0.05em;
  line-height: 1.05;
}

.document-code {
  display: inline-flex;
  min-width: 44px;
  min-height: 38px;
  align-items: center;
  justify-content: center;
  padding: 5px 10px;
  border-radius: 12px;
  background: var(--ink);
  color: var(--white);
  font-size: 16px;
  font-weight: 800;
}

.quarterly-card {
  top: 4px;
  right: 2px;
  z-index: 1;
  background: var(--mint);
  transform: rotate(4deg);
}

.self-assessment-card {
  bottom: 12px;
  left: 0;
  z-index: 2;
  background: var(--sky);
  transform: rotate(-5deg);
}

.company-card {
  right: -12px;
  bottom: -8px;
  z-index: 3;
  width: 275px;
  min-height: 250px;
  background: var(--yellow);
  transform: rotate(6deg);
}

.hero-documents.motion-ready:not(.fan-open) .quarterly-card {
  transform: translate(-26px, 28px) rotate(0deg);
}

.hero-documents.motion-ready:not(.fan-open) .self-assessment-card {
  transform: translate(28px, -24px) rotate(0deg);
}

.hero-documents.motion-ready:not(.fan-open) .company-card {
  transform: translate(-22px, -18px) rotate(1deg);
}

.hero-documents.motion-ready .self-assessment-card {
  transition-delay: 70ms;
}

.hero-documents.motion-ready .company-card {
  transition-delay: 140ms;
}

.document-lines {
  display: grid;
  gap: 13px;
}

.document-lines span {
  height: 12px;
  border-radius: 999px;
  background: rgba(11, 111, 105, 0.22);
}

.document-lines span:nth-child(2) {
  width: 72%;
}

.document-lines span:nth-child(3) {
  width: 88%;
}

.document-lines span:nth-child(4) {
  width: 58%;
}

.document-checks {
  display: grid;
  grid-template-columns: 28px 1fr;
  align-items: center;
  gap: 13px 10px;
}

.document-checks span {
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: var(--white);
  font-size: 16px;
  font-weight: 800;
}

.document-checks i {
  height: 11px;
  border-radius: 999px;
  background: rgba(16, 42, 47, 0.15);
}

.document-chart {
  height: 92px;
  display: flex;
  align-items: flex-end;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.72);
}

.document-chart span {
  width: 25%;
  border-radius: 7px 7px 3px 3px;
  background: var(--coral);
}

.document-chart span:nth-child(1) { height: 38%; background: #9bcfff; }
.document-chart span:nth-child(2) { height: 62%; background: #70d9bc; }
.document-chart span:nth-child(3) { height: 92%; background: var(--aqua); }
.document-chart span:nth-child(4) { height: 72%; }

.credential-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 2px solid var(--ink);
  border-bottom: 2px solid var(--ink);
  background: var(--yellow);
}

.credential-strip div {
  min-height: 130px;
  padding: 26px 28px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-right: 2px solid var(--ink);
}

.credential-strip div:last-child {
  border-right: 0;
}

.credential-strip strong {
  font-size: 25px;
  line-height: 1.2;
}

.credential-strip span {
  margin-top: 5px;
  font-size: 16px;
}

.section {
  padding: 120px max(24px, calc((100% - 1220px) / 2));
}

.section-heading {
  max-width: 840px;
  margin-bottom: 58px;
}

.section-heading h2,
.mtd-copy h2,
.about-copy h2,
.contact-section h2 {
  margin: 0;
  font-size: clamp(42px, 5.3vw, 74px);
  font-weight: 800;
  letter-spacing: -0.06em;
  line-height: 1.03;
}

.section-heading p,
.pricing-heading p {
  max-width: 710px;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: 21px;
  line-height: 1.5;
}

.services {
  background: var(--paper);
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}

.service-card {
  min-height: 430px;
  padding: 38px;
  display: flex;
  flex-direction: column;
  border: 2px solid var(--ink);
  border-radius: 32px;
}

.service-card.personal {
  background: var(--mint);
  box-shadow: 8px 8px 0 var(--aqua);
}

.service-card.company {
  background: var(--lilac);
  box-shadow: 8px 8px 0 #b7a9ff;
}

.card-number {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border: 2px solid var(--ink);
  border-radius: 50%;
  background: var(--ink);
  color: var(--white);
  font-weight: 800;
}

.service-card h3 {
  max-width: 530px;
  margin: 34px 0 16px;
  font-size: clamp(32px, 3.2vw, 48px);
  letter-spacing: -0.05em;
  line-height: 1.08;
}

.service-card p {
  max-width: 590px;
  margin: 0 0 34px;
  font-size: 19px;
}

.service-card a {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin-top: auto;
  font-weight: 800;
  text-underline-offset: 5px;
}

.pricing {
  background: var(--sky);
}

.pricing-heading {
  max-width: 930px;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  align-items: start;
  gap: 30px;
}

.pricing-card {
  overflow: hidden;
  border: 2px solid var(--ink);
  border-radius: 34px;
  background: var(--white);
  box-shadow: 8px 8px 0 var(--ink);
}

.pricing-card.featured {
  transform: translateY(38px);
}

.price-card-head {
  min-height: 300px;
  padding: 36px;
  border-bottom: 2px solid var(--ink);
  background: var(--mint);
}

.featured .price-card-head {
  background: var(--lilac);
}

.price-card-head h3 {
  margin: 0 0 28px;
  font-size: 28px;
  letter-spacing: -0.04em;
}

.price {
  display: flex;
  align-items: baseline;
  gap: 14px;
}

.price strong {
  font-size: clamp(66px, 7vw, 96px);
  letter-spacing: -0.08em;
  line-height: 0.9;
}

.price span {
  color: var(--muted);
  font-weight: 700;
}

.price-card-head p {
  max-width: 510px;
  margin: 24px 0 0;
  font-size: 18px;
}

.price-card-body {
  padding: 36px;
}

.price-card-body h4 {
  margin: 0 0 20px;
  font-size: 20px;
}

.price-card-body ul {
  margin: 0;
  padding: 0;
  display: grid;
  gap: 15px;
  list-style: none;
}

.price-card-body li {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 11px;
  font-size: 17px;
}

.check {
  width: 25px;
  height: 25px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--mint);
  color: var(--aqua-dark);
  font-size: 16px;
  font-weight: 800;
}

.add-on {
  margin: 30px 0 0;
  padding: 24px;
  border-radius: 22px;
  background: var(--coral-soft);
}

.add-on.sky {
  background: var(--sky);
}

.add-on h4 {
  margin-bottom: 8px;
}

.add-on p {
  margin: 10px 0 0;
  font-size: 16px;
  line-height: 1.55;
}

.worked-example {
  margin: 24px 0;
  padding: 18px 0;
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  font-size: 16px;
}

.worked-example span {
  color: var(--muted);
}

.mtd-section {
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(550px, 1.22fr);
  align-items: center;
  gap: 72px;
  background: var(--paper);
}

.mtd-copy h2 {
  font-size: clamp(42px, 4.7vw, 68px);
}

.mtd-copy p {
  margin: 26px 0 0;
  color: var(--muted);
  font-size: 19px;
}

.mtd-copy .text-link {
  margin-top: 30px;
}

.thresholds {
  display: grid;
  gap: 16px;
}

.threshold {
  min-height: 150px;
  padding: 28px 32px;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  border: 2px solid var(--ink);
  border-radius: 26px;
  background: var(--white);
}

.threshold.current {
  background: var(--yellow);
  box-shadow: 6px 6px 0 var(--ink);
}

.threshold > span {
  font-weight: 800;
}

.threshold strong {
  grid-row: 1 / span 2;
  grid-column: 2;
  font-size: clamp(34px, 4vw, 54px);
  letter-spacing: -0.055em;
}

.threshold p {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
}

.process {
  display: grid;
  grid-template-columns: minmax(300px, 0.72fr) minmax(540px, 1.28fr);
  align-items: start;
  gap: 90px;
  background: var(--mint);
}

.process .section-heading {
  position: sticky;
  top: 36px;
  margin: 0;
}

.process-list {
  margin: 0;
  padding: 0;
  border-top: 2px solid var(--ink);
  list-style: none;
}

.process-list li {
  min-height: 170px;
  padding: 26px 0;
  display: grid;
  grid-template-columns: 66px 1fr;
  align-items: start;
  gap: 26px;
  border-bottom: 2px solid var(--ink);
}

.process-list > li > span {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--ink);
  color: var(--white);
  font-size: 20px;
  font-weight: 800;
}

.process-list h3 {
  margin: 2px 0 10px;
  font-size: 27px;
  letter-spacing: -0.04em;
  line-height: 1.15;
}

.process-list p {
  max-width: 620px;
  margin: 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.55;
}

.about {
  display: grid;
  grid-template-columns: minmax(320px, 0.8fr) 1.2fr;
  align-items: center;
  gap: 90px;
  background: var(--paper);
}

.about-stat {
  width: min(480px, 100%);
  aspect-ratio: 1 / 0.96;
  padding: 58px;
  display: grid;
  place-items: center;
  border: 2px solid var(--ink);
  border-radius: 47% 53% 43% 57% / 48% 40% 60% 52%;
  background: var(--coral);
  box-shadow: 14px 15px 0 var(--yellow);
  transform: rotate(-4deg);
}

.about-stat-content {
  width: 100%;
  transform: rotate(4deg);
}

.about-stat-lockup {
  display: flex;
  align-items: flex-end;
  gap: 20px;
}

.about-stat strong {
  font-size: clamp(108px, 12vw, 158px);
  letter-spacing: -0.1em;
  line-height: 0.72;
}

.about-stat span {
  display: block;
  max-width: 150px;
  padding-bottom: 3px;
  font-size: 25px;
  font-weight: 800;
  line-height: 1.08;
}

.about-stat-points {
  margin: 28px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: nowrap;
  gap: 10px 16px;
  font-size: 17px;
  font-weight: 800;
  line-height: 1.3;
  list-style: none;
}

.about-stat-points li {
  display: flex;
  align-items: center;
  gap: 7px;
}

.about-stat-points li::before {
  content: "✓";
  width: 19px;
  height: 19px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--ink);
  color: var(--white);
  font-size: 12px;
}

.about-copy p {
  max-width: 690px;
  margin: 28px 0 0;
  color: var(--muted);
  font-size: 20px;
}

.registration {
  margin-top: 34px;
  padding: 22px 24px;
  display: flex;
  flex-direction: column;
  border-left: 7px solid var(--aqua);
  background: var(--white);
}

.registration strong {
  font-size: 20px;
}

.registration span {
  color: var(--muted);
}

.faq {
  background: var(--lilac);
}

.faq .section-heading {
  margin-bottom: 42px;
}

.faq-list {
  border-top: 2px solid var(--ink);
}

details {
  border-bottom: 2px solid var(--ink);
}

summary {
  min-height: 96px;
  display: grid;
  grid-template-columns: 1fr 52px;
  align-items: center;
  gap: 20px;
  cursor: pointer;
  font-size: clamp(20px, 2.5vw, 30px);
  font-weight: 800;
  letter-spacing: -0.03em;
  list-style: none;
}

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

summary span {
  position: relative;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border: 2px solid var(--ink);
  border-radius: 50%;
  background: var(--white);
  font-size: 0;
  transition: transform 180ms ease;
}

summary span::before,
summary span::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 18px;
  height: 4px;
  border-radius: 999px;
  background: var(--ink);
  transform: translate(-50%, -50%);
}

summary span::after {
  transform: translate(-50%, -50%) rotate(90deg);
}

details[open] summary span {
  transform: rotate(45deg);
}

details p {
  max-width: 900px;
  margin: -8px 0 32px;
  color: var(--muted);
  font-size: 18px;
}

.contact-section {
  padding: 100px max(24px, calc((100% - 1220px) / 2));
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  align-items: start;
  gap: 80px;
  border-bottom: 2px solid var(--ink);
  background: var(--yellow);
}

.contact-section h2 {
  max-width: 780px;
}

.contact-section p {
  max-width: 760px;
  margin: 26px 0 0;
  font-size: 20px;
}

.contact-intro {
  position: sticky;
  top: 36px;
}

.phone-link {
  display: inline-block;
  margin-top: 32px;
  font-size: 27px;
  font-weight: 800;
  letter-spacing: -0.04em;
  text-underline-offset: 6px;
}

.contact-form {
  position: relative;
  padding: 36px;
  display: grid;
  gap: 24px;
  border: 2px solid var(--ink);
  border-radius: 32px;
  background: var(--white);
  box-shadow: 9px 9px 0 var(--ink);
}

.form-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.field {
  display: grid;
  gap: 8px;
}

.field label {
  font-size: 17px;
  font-weight: 800;
}

.field label span {
  color: var(--muted);
  font-weight: 600;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 58px;
  padding: 14px 16px;
  border: 2px solid var(--ink);
  border-radius: 14px;
  background: var(--paper);
  color: var(--ink);
  font: inherit;
  font-size: 17px;
}

.field textarea {
  min-height: 150px;
  resize: vertical;
}

.select-field {
  position: relative;
}

.select-field select {
  padding-right: 56px;
  appearance: none;
}

.select-field::after {
  content: "";
  position: absolute;
  right: 22px;
  bottom: 25px;
  width: 10px;
  height: 10px;
  border-right: 2px solid var(--ink);
  border-bottom: 2px solid var(--ink);
  pointer-events: none;
  transform: rotate(45deg);
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: 4px solid var(--sky-strong);
  outline-offset: 2px;
}

.honeypot {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.consent {
  display: grid;
  grid-template-columns: 24px 1fr;
  align-items: start;
  gap: 12px;
  font-size: 16px;
  line-height: 1.5;
}

.consent input {
  width: 22px;
  height: 22px;
  margin: 2px 0 0;
  accent-color: var(--ink);
}

.consent a {
  font-weight: 800;
  text-underline-offset: 4px;
}

.form-submit {
  width: 100%;
  cursor: pointer;
}

.form-submit:disabled {
  cursor: wait;
  opacity: 0.7;
}

.form-status {
  margin: 0;
  padding: 14px 16px;
  border-radius: 14px;
  font-size: 16px;
  font-weight: 700;
}

.form-status.success {
  background: var(--mint);
  color: var(--aqua-dark);
}

.form-status.error {
  background: var(--coral-soft);
}

.legal-page {
  min-height: 100vh;
  background: var(--paper);
}

.legal-header {
  background: var(--paper);
}

.legal-hero {
  padding: 92px max(24px, calc((100% - 1220px) / 2));
  border-top: 2px solid var(--ink);
  border-bottom: 2px solid var(--ink);
  background: var(--sky);
}

.legal-hero-inner {
  max-width: 940px;
}

.legal-hero h1 {
  margin: 0;
  font-size: clamp(62px, 8vw, 108px);
  font-weight: 800;
  letter-spacing: -0.067em;
  line-height: 0.96;
}

.legal-hero p {
  max-width: 730px;
  margin: 30px 0 0;
  color: var(--muted);
  font-size: clamp(20px, 2vw, 25px);
  line-height: 1.45;
}

.legal-hero strong {
  width: fit-content;
  margin-top: 34px;
  padding: 11px 17px;
  display: block;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: var(--yellow);
  font-size: 16px;
}

.legal-layout {
  width: min(1220px, calc(100% - 48px));
  margin: 0 auto;
  padding: 100px 0 120px;
  display: grid;
  grid-template-columns: 240px minmax(0, 820px);
  align-items: start;
  justify-content: space-between;
  gap: 90px;
}

.legal-index {
  position: sticky;
  top: 28px;
  padding: 26px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  border: 2px solid var(--ink);
  border-radius: 24px;
  background: var(--mint);
  box-shadow: 6px 6px 0 var(--aqua);
  font-size: 16px;
}

.legal-index strong {
  margin-bottom: 6px;
  font-size: 20px;
}

.legal-index a {
  text-underline-offset: 4px;
}

.legal-content {
  min-width: 0;
}

.legal-introduction {
  margin: 0 0 72px;
  padding: 30px 34px;
  border: 2px solid var(--ink);
  border-radius: 24px;
  background: var(--yellow);
  box-shadow: 7px 7px 0 var(--coral);
  font-size: 22px;
  font-weight: 700;
  line-height: 1.55;
}

.legal-section {
  padding: 0 0 64px;
  margin: 0 0 64px;
  border-bottom: 2px solid var(--line);
  scroll-margin-top: 36px;
}

.legal-section:last-child {
  padding-bottom: 0;
  margin-bottom: 0;
  border-bottom: 0;
}

.legal-section h2 {
  margin: 0 0 24px;
  font-size: clamp(34px, 4vw, 52px);
  font-weight: 800;
  letter-spacing: -0.055em;
  line-height: 1.04;
}

.legal-section h3 {
  margin: 38px 0 16px;
  font-size: 25px;
  letter-spacing: -0.035em;
  line-height: 1.2;
}

.legal-section p,
.legal-section li {
  color: var(--muted);
  font-size: 18px;
  line-height: 1.7;
}

.legal-section p {
  margin: 0 0 20px;
}

.legal-section ul {
  margin: 20px 0 26px;
  padding: 0;
  display: grid;
  gap: 14px;
  list-style: none;
}

.legal-section li {
  position: relative;
  padding-left: 28px;
}

.legal-section li::before {
  content: "";
  position: absolute;
  top: 0.72em;
  left: 0;
  width: 11px;
  height: 11px;
  border: 2px solid var(--ink);
  border-radius: 3px;
  background: var(--coral);
  transform: rotate(-5deg) translateY(-50%);
}

.legal-section a {
  color: var(--ink);
  font-weight: 800;
  text-underline-offset: 4px;
}

.legal-contact-card {
  margin-top: 30px;
  padding: 24px 26px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 7px;
  border-left: 7px solid var(--aqua);
  background: var(--white);
  font-size: 18px;
}

footer {
  min-height: 260px;
  padding: 56px max(24px, calc((100% - 1220px) / 2));
  display: grid;
  grid-template-columns: 1fr 1.2fr auto;
  align-items: start;
  gap: 48px;
  background: var(--paper);
}

.footer-details p {
  margin: 0 0 6px;
  color: var(--muted);
  font-size: 16px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 16px;
  font-weight: 700;
}

@media (max-width: 1040px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 68px;
  }

  .hero-documents {
    width: 100%;
    max-width: 660px;
  }

  .credential-strip {
    grid-template-columns: repeat(2, 1fr);
  }

  .credential-strip div:nth-child(2) {
    border-right: 0;
  }

  .credential-strip div:nth-child(-n + 2) {
    border-bottom: 2px solid var(--ink);
  }

  .mtd-section {
    grid-template-columns: 1fr;
  }

  .thresholds {
    max-width: 760px;
  }

}

@media (max-width: 900px) {
  nav > a:not(.nav-cta) {
    display: none;
  }

  .service-grid,
  .pricing-grid,
  .process,
  .about,
  .contact-section {
    grid-template-columns: 1fr;
  }

  .process {
    gap: 54px;
  }

  .process .section-heading,
  .contact-intro {
    position: static;
  }

  .pricing-card.featured {
    transform: none;
  }

  .about-stat {
    width: min(520px, 100%);
  }

  footer {
    grid-template-columns: 1fr 1fr;
  }

  .footer-links {
    grid-column: 2;
  }

  .legal-layout {
    grid-template-columns: 1fr;
    gap: 58px;
  }

  .legal-index {
    position: static;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .legal-index strong {
    grid-column: 1 / -1;
  }
}

@media (max-width: 620px) {
  body {
    font-size: 17px;
  }

  .site-header,
  .hero {
    width: min(100% - 32px, 1220px);
  }

  .site-header {
    min-height: 76px;
    gap: 12px;
  }

  .brand {
    font-size: 18px;
  }

  .brand-mark {
    width: 40px;
    height: 40px;
  }

  .nav-cta {
    padding: 10px 15px;
    box-shadow: none;
  }

  .nav-cta span {
    display: none;
  }

  .hero {
    min-height: auto;
    padding: 44px 0 68px;
  }

  .hero h1 {
    font-size: clamp(47px, 14.5vw, 66px);
  }

  .hero-copy > p {
    font-size: 19px;
  }

  .hero-documents {
    min-height: 500px;
  }

  .document-card {
    width: 72%;
    min-height: 255px;
    padding: 22px;
  }

  .document-card h3 {
    margin-top: 26px;
    font-size: 25px;
  }

  .quarterly-card {
    right: 1%;
  }

  .self-assessment-card {
    left: 1%;
  }

  .company-card {
    right: 0;
    width: 62%;
    min-height: 225px;
  }

  .credential-strip {
    grid-template-columns: 1fr;
  }

  .credential-strip div,
  .credential-strip div:nth-child(2) {
    min-height: 112px;
    border-right: 0;
    border-bottom: 2px solid var(--ink);
  }

  .credential-strip div:last-child {
    border-bottom: 0;
  }

  .section {
    padding-top: 82px;
    padding-bottom: 82px;
  }

  .section-heading {
    margin-bottom: 40px;
  }

  .service-card,
  .price-card-head,
  .price-card-body {
    padding: 26px;
  }

  .service-card {
    min-height: 400px;
  }

  .price-card-head {
    min-height: 270px;
  }

  .price strong {
    font-size: 68px;
  }

  .mtd-section {
    gap: 50px;
  }

  .threshold {
    min-height: 175px;
    grid-template-columns: 1fr;
  }

  .threshold strong {
    grid-row: auto;
    grid-column: auto;
    margin-top: 16px;
  }

  .process-list li {
    grid-template-columns: 56px 1fr;
    gap: 18px;
  }

  .process-list > li > span {
    width: 50px;
    height: 50px;
  }

  .about {
    gap: 64px;
  }

  .about-stat {
    padding: 42px 34px;
  }

  .about-stat-lockup {
    gap: 14px;
  }

  .about-stat strong {
    font-size: clamp(88px, 31vw, 120px);
  }

  .about-stat span {
    max-width: 115px;
    font-size: 20px;
  }

  .about-stat-points {
    flex-wrap: wrap;
  }

  summary {
    min-height: 88px;
    grid-template-columns: 1fr 46px;
  }

  .contact-section {
    padding-top: 78px;
    padding-bottom: 78px;
    gap: 62px;
  }

  .contact-form {
    padding: 24px;
    box-shadow: 6px 6px 0 var(--ink);
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .legal-hero {
    padding-top: 68px;
    padding-bottom: 70px;
  }

  .legal-hero h1 {
    font-size: clamp(54px, 17vw, 78px);
  }

  .legal-layout {
    width: min(100% - 32px, 1220px);
    padding-top: 70px;
    padding-bottom: 86px;
  }

  .legal-index {
    display: none;
  }

  .legal-introduction {
    margin-bottom: 58px;
    padding: 24px;
    font-size: 20px;
  }

  .legal-section {
    padding-bottom: 48px;
    margin-bottom: 48px;
  }

  footer {
    grid-template-columns: 1fr;
  }

  .footer-links {
    grid-column: auto;
  }
}

@media (max-width: 390px) {
  .site-header {
    width: calc(100% - 24px);
    gap: 8px;
  }

  .brand {
    gap: 8px;
    font-size: 16px;
  }

  .brand-mark {
    width: 36px;
    height: 36px;
  }

  .nav-cta {
    padding: 9px 11px;
    font-size: 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }

  .hero-documents.motion-ready:not(.fan-open) .quarterly-card {
    transform: rotate(4deg);
  }

  .hero-documents.motion-ready:not(.fan-open) .self-assessment-card {
    transform: rotate(-5deg);
  }

  .hero-documents.motion-ready:not(.fan-open) .company-card {
    transform: rotate(6deg);
  }
}
