:root {
  --ink: #1a1f24;
  --paper: #f4f0e8;
  --paper-raised: #fffcf7;
  --ledger: #2c3640;
  --ledger-deep: #1a1f24;
  --brass: #b08a4f;
  --deduct: #8a3b2e;
  --line: rgba(26, 31, 36, 0.12);
  --muted: rgba(26, 31, 36, 0.62);
  --ink-faint: #8a9199;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "IBM Plex Sans", "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

.wrap {
  width: min(calc(100% - 80px), 1520px);
  margin: 0 auto;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -48px;
  z-index: 100;
  padding: 8px 14px;
  background: var(--ink);
  color: var(--paper-raised);
}

.skip-link:focus { top: 16px; }

.header {
  position: relative;
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

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

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}

.brand-text small {
  font-family: "IBM Plex Mono", monospace;
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ledger);
}

.brand-text strong {
  font-family: "IBM Plex Serif", serif;
  font-size: 16px;
  font-weight: 600;
}

.nav {
  display: flex;
  align-items: center;
  gap: 26px;
  font-size: 14px;
}

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

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 0.86rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
}

.btn-dark,
.btn-whatsapp {
  background: var(--ledger);
  color: var(--paper-raised);
}

.btn-dark:hover,
.btn-whatsapp:hover {
  background: var(--ledger-deep);
  color: var(--paper-raised);
}

.btn-ghost {
  border-color: var(--line);
  background: transparent;
  color: var(--ink);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  display: block;
  width: 18px;
  height: 1.5px;
  margin: 0 auto;
  background: var(--ink);
}

.nav-toggle span { position: relative; }
.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
}

.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }

.trust-strip {
  background: var(--ledger-deep);
  color: var(--paper-raised);
  font-family: "IBM Plex Mono", monospace;
  font-size: 12px;
  letter-spacing: 0.02em;
}

.trust-strip .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  padding: 9px 0;
  opacity: 0.92;
}

.trust-strip .dot { opacity: 0.5; }

.hero { padding: 56px 0 28px; }

.eyebrow {
  margin: 0 0 14px;
  color: var(--ledger);
  font-family: "IBM Plex Mono", monospace;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1 {
  max-width: 14ch;
  margin: 0 0 16px;
  font-family: "IBM Plex Serif", serif;
  font-size: clamp(30px, 4.4vw, 46px);
  font-weight: 600;
  line-height: 1.1;
}

.hero-sub {
  max-width: 46ch;
  margin: 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.55;
}

.grid {
  max-width: 560px;
  padding: 12px 0 70px;
}

.panel .payslip-preview { margin-top: 18px; }

.panel,
.stub {
  background: var(--paper-raised);
  border: 1px solid var(--line);
}

.panel {
  overflow: visible;
  padding: 32px;
}

.contact-person {
  display: flex;
  gap: 14px;
  align-items: center;
  margin-bottom: 18px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  flex: none;
  border-radius: 50%;
  background: var(--ledger);
  color: var(--paper-raised);
  font-family: "IBM Plex Serif", serif;
  font-size: 18px;
  font-weight: 600;
}

.contact-person .name { font-size: 15px; font-weight: 600; }
.contact-person .role { color: var(--muted); font-size: 13px; }

.contact-lines {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 14px;
}

.contact-lines a { text-decoration: none; }
.contact-lines a:hover { text-decoration: underline; }

.field { margin: 16px 0 0; }

.field label {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-family: "IBM Plex Mono", monospace;
  font-size: 12px;
  letter-spacing: 0.02em;
}

.field input,
.field textarea {
  width: 100%;
  padding: 8px 2px;
  border: none;
  border-bottom: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  font: 15px/1.4 "IBM Plex Sans", sans-serif;
}

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

.field input:focus,
.field textarea:focus {
  outline: none;
  border-bottom-color: var(--ledger);
}

.hp { position: absolute; left: -9999px; }

.form-actions { margin-top: 26px; }

.submit {
  width: 100%;
  padding: 14px 20px;
  border: none;
  background: var(--ink);
  color: var(--paper-raised);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
}

.submit:hover { background: var(--ledger-deep); }

.form-note {
  margin-top: 12px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.form-success,
.form-error {
  display: none;
  margin-bottom: 16px;
  padding: 12px 0;
  font-size: 14px;
}

.form.is-sent .form-success { display: block; }
.form.is-sent .form-fields { display: none; }
.form.is-error .form-error { display: block; color: var(--deduct); }

.stub-wrap { position: sticky; top: 24px; min-width: 0; }

.footer {
  padding: 36px 0;
  border-top: 1px solid var(--line);
}

.foot-grid {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
  color: var(--muted);
  font-size: 13px;
}

.foot-col { max-width: 360px; }

.foot-legal {
  font-family: "IBM Plex Mono", monospace;
  font-size: 11px;
  line-height: 1.7;
}

.foot-legal a { text-decoration: none; }
.foot-legal a:hover { text-decoration: underline; }

.whatsapp-float {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 60;
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  padding: 0;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  line-height: 0;
  text-decoration: none;
  box-shadow: 0 12px 28px rgba(18, 140, 70, 0.38);
}

.whatsapp-float svg {
  display: block;
  width: 28px;
  height: 28px;
  margin: 0;
}

@media (max-width: 820px) {
  .grid { grid-template-columns: 1fr; }
  .stub-wrap { position: static; }
}

@media (max-width: 720px) {
  .nav-toggle { display: block; }

  .nav {
    position: absolute;
    top: 73px;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    gap: 0;
    padding: 12px 20px 20px;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
  }

  .nav.is-open { display: flex; }
  .nav a,
  .nav .btn { padding: 10px 0; width: 100%; justify-content: flex-start; }
}


/* WhatsApp-first contact pattern */
.contact-primary {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 18px 0 8px;
}
.contact-primary .btn {
  text-decoration: none;
}
.contact-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 18px 0 8px;
  color: var(--ink-faint);
  font-size: 0.9rem;
}
.contact-divider::before,
.contact-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}
