:root {
  --ink: #172022;
  --ink-soft: #334246;
  --muted: #637377;
  --paper: #ffffff;
  --surface: #f5f7f5;
  --surface-strong: #e9efeb;
  --teal: #0f5b5f;
  --teal-dark: #093f42;
  --brass: #b08a43;
  --brass-soft: #efe6d4;
  --line: #dce4df;
  --danger: #9a3434;
  --shadow: 0 22px 60px rgba(14, 31, 34, 0.13);
  --radius: 8px;
  --container: min(1120px, calc(100% - 40px));
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
}

body.nav-open {
  overflow: hidden;
}

img,
svg {
  display: block;
}

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

button,
input,
select,
textarea {
  font: inherit;
}

.container {
  width: var(--container);
  margin-inline: auto;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 72px;
  padding: 12px max(20px, calc((100vw - 1120px) / 2));
  color: var(--ink);
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid rgba(220, 228, 223, 0.86);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand-mark {
  display: grid;
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
  place-items: center;
  color: #fff;
  background: var(--teal);
  border-radius: var(--radius);
  font-weight: 800;
}

.brand-copy {
  display: grid;
  min-width: 0;
}

.brand-copy strong {
  font-size: 0.96rem;
  line-height: 1.1;
}

.brand-copy span {
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.2;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.main-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 12px;
  border-radius: var(--radius);
  color: var(--ink-soft);
  font-size: 0.93rem;
  font-weight: 650;
}

.main-nav a:hover,
.main-nav a:focus-visible {
  color: var(--teal-dark);
  background: var(--surface);
  outline: none;
}

.main-nav .nav-cta {
  margin-left: 4px;
  color: #fff;
  background: var(--teal);
}

.main-nav .nav-cta:hover,
.main-nav .nav-cta:focus-visible {
  color: #fff;
  background: var(--teal-dark);
}

.nav-toggle {
  display: none;
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  padding: 0;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  cursor: pointer;
}

.nav-toggle span:not(.sr-only) {
  display: block;
  width: 20px;
  height: 2px;
  margin: 3px auto;
  background: var(--ink);
  border-radius: 99px;
}

.hero {
  position: relative;
  min-height: clamp(540px, 78svh, 720px);
  display: grid;
  align-items: center;
  overflow: hidden;
  color: #fff;
  background:
    linear-gradient(90deg, rgba(8, 28, 31, 0.84), rgba(8, 28, 31, 0.58) 42%, rgba(8, 28, 31, 0.2)),
    url("assets/hero-accounting-office.png") center / cover no-repeat;
}

.hero-overlay {
  position: absolute;
  inset: auto 0 0;
  height: 38%;
  background: linear-gradient(180deg, rgba(8, 28, 31, 0), rgba(8, 28, 31, 0.72));
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 1120px;
  padding-block: 56px 52px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--brass);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: #f3d890;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.08;
}

h1 {
  max-width: 760px;
  font-size: clamp(2.35rem, 5vw, 4.7rem);
  letter-spacing: 0;
}

h2 {
  font-size: clamp(1.9rem, 3vw, 3rem);
  letter-spacing: 0;
}

h3 {
  font-size: 1.12rem;
}

.hero-lead {
  max-width: 660px;
  margin: 20px 0 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(1.02rem, 1.4vw, 1.22rem);
}

.hero-actions,
.button {
  display: flex;
  align-items: center;
}

.hero-actions {
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.button {
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-weight: 800;
  cursor: pointer;
  transition:
    transform 160ms ease,
    background 160ms ease,
    border-color 160ms ease,
    color 160ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-1px);
  outline: none;
}

.button.primary {
  color: #fff;
  background: var(--teal);
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.18);
}

.button.primary:hover,
.button.primary:focus-visible {
  background: var(--teal-dark);
}

.button.secondary {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.46);
  background: rgba(255, 255, 255, 0.12);
}

.button.secondary:hover,
.button.secondary:focus-visible {
  background: rgba(255, 255, 255, 0.2);
}

.button-icon {
  font-size: 1.08rem;
  line-height: 1;
}

.hero-signals {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  max-width: 820px;
  margin: 44px 0 0;
  padding: 1px;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius);
  overflow: hidden;
}

.hero-signals div {
  padding: 18px;
  background: rgba(8, 28, 31, 0.44);
}

.hero-signals dt {
  font-weight: 850;
}

.hero-signals dd {
  margin: 4px 0 0;
  color: rgba(255, 255, 255, 0.76);
  font-size: 0.92rem;
}

.intro-band {
  background: var(--surface);
  border-block: 1px solid var(--line);
}

.intro-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  padding-block: 28px;
}

.intro-grid article {
  min-height: 158px;
  padding: 26px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.mini-icon {
  display: inline-grid;
  width: 36px;
  height: 28px;
  place-items: center;
  margin-bottom: 18px;
  color: var(--teal);
  background: var(--surface-strong);
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 850;
}

.intro-grid h2 {
  font-size: 1.15rem;
}

.intro-grid p,
.service-card p,
.reason-list p,
.process-steps p,
.body-copy p,
.section-heading p,
.faq-layout p,
.contact-copy p,
.site-footer p {
  color: var(--muted);
}

.section {
  padding-block: clamp(70px, 9vw, 112px);
}

.split-layout,
.why-grid,
.faq-layout,
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.84fr) minmax(0, 1.16fr);
  gap: clamp(34px, 6vw, 76px);
  align-items: start;
}

.section-copy h2,
.section-heading h2,
.contact-copy h2 {
  max-width: 720px;
}

.body-copy p {
  margin: 0 0 18px;
  font-size: 1.04rem;
}

.text-link {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  color: var(--teal);
  font-weight: 800;
  border-bottom: 2px solid var(--brass);
}

.services-section,
.faq-section {
  background: var(--surface);
}

.section-heading {
  max-width: 780px;
  margin-bottom: 34px;
}

.section-heading p {
  margin: 16px 0 0;
  font-size: 1.04rem;
}

.section-heading.compact {
  max-width: 680px;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.service-card {
  min-height: 276px;
  padding: 26px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 1px 0 rgba(17, 32, 34, 0.03);
}

.service-icon {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  margin-bottom: 22px;
  color: var(--teal);
  background: var(--surface-strong);
  border-radius: var(--radius);
}

.service-icon svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.service-card p {
  margin: 12px 0 0;
}

.why-section {
  background:
    linear-gradient(180deg, rgba(233, 239, 235, 0.58), rgba(255, 255, 255, 0)),
    var(--paper);
}

.reason-list {
  display: grid;
  gap: 14px;
}

.reason-list article {
  padding: 24px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-left: 4px solid var(--teal);
  border-radius: var(--radius);
  box-shadow: 0 10px 34px rgba(14, 31, 34, 0.06);
}

.reason-list p {
  margin: 10px 0 0;
}

.process-band {
  padding-block: clamp(54px, 8vw, 86px);
  color: #fff;
  background: var(--teal-dark);
}

.process-band .eyebrow {
  color: #f3d890;
}

.process-band .section-heading p {
  color: rgba(255, 255, 255, 0.72);
}

.process-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.process-steps li {
  min-height: 188px;
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.08);
}

.process-steps span {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  margin-bottom: 18px;
  color: var(--teal-dark);
  background: #fff;
  border-radius: 50%;
  font-weight: 850;
}

.process-steps strong {
  display: block;
  font-size: 1.08rem;
}

.process-steps p {
  margin: 10px 0 0;
  color: rgba(255, 255, 255, 0.74);
}

.verifier-section {
  background: var(--paper);
}

.verifier-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(34px, 6vw, 76px);
  align-items: start;
}

.verifier-grid .section-copy p {
  max-width: 590px;
  color: var(--muted);
}

.integration-note {
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-left: 4px solid var(--brass);
  border-radius: var(--radius);
  background: var(--surface);
}

.checker-panel {
  display: grid;
  gap: 16px;
}

.company-checker,
.checker-result {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 10px 34px rgba(14, 31, 34, 0.06);
}

.checker-controls {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  margin-top: 8px;
}

.checker-controls .button {
  min-width: 138px;
}

.checker-help,
.result-help,
.result-source {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.checker-result {
  min-height: 250px;
  background: var(--paper);
}

.result-kicker {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  margin-bottom: 14px;
  color: var(--teal);
  background: var(--surface-strong);
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 850;
  text-transform: uppercase;
}

.checker-result h3 {
  margin-bottom: 10px;
}

.result-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 18px 0 0;
}

.result-grid div {
  min-height: 76px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.result-grid dt {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.result-grid dd {
  margin: 6px 0 0;
  color: var(--ink);
  font-weight: 800;
}

.result-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.button.outline {
  color: var(--teal);
  border-color: var(--teal);
  background: transparent;
}

.button.outline:hover,
.button.outline:focus-visible {
  color: #fff;
  background: var(--teal);
}

.checker-result.is-error {
  border-color: rgba(154, 52, 52, 0.35);
}

.checker-result.is-error .result-kicker {
  color: var(--danger);
  background: #f7e8e8;
}

.faq-list {
  display: grid;
  gap: 12px;
}

.faq-item {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.faq-item button {
  display: flex;
  width: 100%;
  min-height: 66px;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 16px 20px;
  color: var(--ink);
  background: transparent;
  border: 0;
  text-align: left;
  cursor: pointer;
}

.faq-item button span:first-child {
  font-weight: 800;
}

.faq-item button span:last-child {
  display: grid;
  flex: 0 0 30px;
  width: 30px;
  height: 30px;
  place-items: center;
  color: var(--teal);
  background: var(--surface);
  border-radius: 50%;
  font-weight: 850;
}

.faq-item button:focus-visible {
  outline: 3px solid rgba(15, 91, 95, 0.24);
  outline-offset: -3px;
}

.faq-panel {
  display: none;
  padding: 0 20px 20px;
}

.faq-item.is-open .faq-panel {
  display: block;
}

.faq-item.is-open button span:last-child {
  color: #fff;
  background: var(--teal);
}

.contact-section {
  background: var(--paper);
}

.contact-copy p {
  max-width: 560px;
  margin-top: 16px;
  font-size: 1.04rem;
}

.contact-details {
  display: grid;
  gap: 10px;
  margin-top: 30px;
}

.contact-details a,
.contact-details p {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 46px;
  margin: 0;
  color: var(--ink);
}

.contact-details span:first-child {
  display: grid;
  flex: 0 0 34px;
  width: 34px;
  height: 34px;
  place-items: center;
  color: var(--teal);
  background: var(--surface-strong);
  border-radius: var(--radius);
  font-size: 0.8rem;
  font-weight: 900;
}

.offer-form {
  padding: 28px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

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

.form-row {
  display: grid;
  gap: 8px;
  margin-bottom: 16px;
}

label,
.consent-row {
  color: var(--ink-soft);
  font-size: 0.92rem;
  font-weight: 750;
}

input,
select,
textarea {
  width: 100%;
  min-height: 48px;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid #cfdad4;
  border-radius: var(--radius);
  padding: 12px 13px;
  outline: none;
}

textarea {
  min-height: 124px;
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 4px rgba(15, 91, 95, 0.12);
}

.field-error {
  border-color: var(--danger);
}

.consent-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 4px 0 20px;
}

.consent-row input {
  width: 18px;
  min-width: 18px;
  height: 18px;
  min-height: 18px;
  margin-top: 3px;
  accent-color: var(--teal);
}

.form-submit {
  width: 100%;
}

.form-note {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.form-note.error {
  color: var(--danger);
}

.site-footer {
  padding-block: 34px;
  color: rgba(255, 255, 255, 0.8);
  background: #11191b;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr auto 1fr;
  gap: 24px;
  align-items: center;
}

.site-footer strong {
  display: block;
  color: #fff;
}

.site-footer p {
  margin: 6px 0 0;
  color: rgba(255, 255, 255, 0.68);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.86);
  font-weight: 700;
}

.copyright {
  text-align: right;
}

@media (max-width: 940px) {
  .site-header {
    min-height: 68px;
  }

  .nav-toggle {
    display: block;
  }

  .main-nav {
    position: fixed;
    inset: 68px 14px auto;
    display: none;
    grid-template-columns: 1fr;
    gap: 4px;
    padding: 12px;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
  }

  .main-nav.is-open {
    display: grid;
  }

  .main-nav a {
    width: 100%;
    justify-content: flex-start;
  }

  .main-nav .nav-cta {
    margin-left: 0;
    justify-content: center;
  }

  .hero {
    min-height: clamp(548px, 78svh, 680px);
    background-position: 58% center;
  }

  .hero-signals,
  .intro-grid,
  .service-grid,
  .process-steps,
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .split-layout,
  .why-grid,
  .faq-layout,
  .verifier-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    align-items: start;
  }

  .footer-links {
    justify-content: flex-start;
  }

  .copyright {
    text-align: left;
  }
}

@media (max-width: 640px) {
  :root {
    --container: min(100% - 28px, 1120px);
  }

  .site-header {
    padding-inline: 14px;
  }

  .brand-copy span {
    display: none;
  }

  .hero {
    min-height: 560px;
    background:
      linear-gradient(90deg, rgba(8, 28, 31, 0.9), rgba(8, 28, 31, 0.68)),
      url("assets/hero-accounting-office.png") 62% center / cover no-repeat;
  }

  .hero-content {
    padding-block: 44px;
  }

  h1 {
    font-size: clamp(2.2rem, 10vw, 3.2rem);
  }

  h2 {
    font-size: clamp(1.75rem, 8vw, 2.35rem);
  }

  .hero-actions,
  .hero-actions .button {
    width: 100%;
  }

  .hero-signals,
  .intro-grid,
  .service-grid,
  .process-steps,
  .checker-controls,
  .result-grid,
  .form-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero-signals div,
  .intro-grid article,
  .service-card,
  .reason-list article,
  .company-checker,
  .checker-result,
  .offer-form {
    padding: 20px;
  }

  .checker-controls .button {
    width: 100%;
  }

  .section {
    padding-block: 58px;
  }

  .process-steps li {
    min-height: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
