/* KOLLAZ Software — DEMO C "The Firm".
   Stark editorial: pure white, black ink, oversized Noto Sans display
   type at architectural scale, Swiss grid, hairline rules, the product
   ledger as a numbered index, the seal as a printer's colophon.
   No shadows. No gradients (the primary button's mandated hover shine
   sweep is the single exception, and it is a flat white pass).
   Same words as the live home; only the design speaks differently. */

@font-face {
  font-family: "Carlito";
  src: url("assets/carlito-400.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Carlito";
  src: url("assets/carlito-700.woff2") format("woff2");
  font-weight: 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Noto Sans";
  src: url("assets/noto-sans-400.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Noto Sans";
  src: url("assets/noto-sans-500.woff2") format("woff2");
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Noto Sans";
  src: url("assets/noto-sans-600.woff2") format("woff2");
  font-weight: 600; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Noto Sans";
  src: url("assets/noto-sans-700.woff2") format("woff2");
  font-weight: 700; font-style: normal; font-display: swap;
}

:root {
  --paper: #FFFFFF;
  --ink: #0A0A0A;
  --ink-2: #4A4A48;
  --hair: #D8D8D3;
  --btn: #0A0A0A;
  --btn-hover: #262624;
  --btn-active: #000000;
  --focus: #0A0A0A;
  --font-head: "Noto Sans", "Carlito", sans-serif;
  --font-body: "Carlito", "Noto Sans", sans-serif;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--font-body); font-size: 1.125rem; line-height: 1.55;
}
.wrap { max-width: 1240px; margin: 0 auto; padding: 0 32px; }
a { color: var(--ink); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: #000; text-decoration-thickness: 2px; }
:focus-visible {
  outline: 3px solid var(--focus); outline-offset: 3px;
}
h1, h2, h3 { font-family: var(--font-head); line-height: 1.05; margin: 0; }
h1 {
  font-size: clamp(3rem, 9.2vw, 7rem); font-weight: 700;
  letter-spacing: -0.035em; max-width: 10ch;
}
h2 {
  font-size: clamp(1.9rem, 4.6vw, 3.1rem); font-weight: 700;
  letter-spacing: -0.025em; margin-bottom: 28px;
}
h3 { font-size: 1.3rem; font-weight: 700; letter-spacing: -0.01em; }
p { margin: 0; }
.prose { max-width: 62ch; font-size: 1.2rem; }
.prose + .prose { margin-top: 18px; }
.lede {
  font-family: var(--font-head); font-weight: 500;
  font-size: clamp(1.25rem, 2.4vw, 1.6rem); line-height: 1.45;
  max-width: 34ch; margin-top: 36px;
}
.skip-link {
  position: absolute; left: -9999px; top: 0; background: var(--ink);
  color: #fff; padding: 12px 16px; z-index: 10;
}
.skip-link:focus-visible { left: 8px; top: 8px; }

.sec-no {
  font-family: var(--font-head); font-weight: 600; font-size: 0.8125rem;
  letter-spacing: 0.22em; text-transform: uppercase; color: var(--ink-2);
  margin-bottom: 16px;
}

/* Header */
.site-header { border-bottom: 2px solid var(--ink); }
.header-in {
  display: flex; align-items: center; justify-content: space-between;
  gap: 28px; min-height: 88px; flex-wrap: wrap; padding-top: 10px; padding-bottom: 10px;
}
.brand img { display: block; width: 184px; height: auto; }
.site-nav { display: flex; gap: 4px; flex-wrap: wrap; }
.site-nav a {
  font-family: var(--font-head); font-weight: 600; font-size: 0.9375rem;
  letter-spacing: 0.02em; color: var(--ink); text-decoration: none;
  padding: 10px 12px; min-height: 44px; display: inline-flex; align-items: center;
  border-bottom: 2px solid transparent;
}
.site-nav a:hover { border-bottom-color: var(--ink); }
.header-cta { margin-left: auto; }

/* Buttons: square, black, full state set, shine sweep on primaries */
.btn {
  position: relative; overflow: hidden; isolation: isolate;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 52px; padding: 14px 28px; border-radius: 0;
  font-family: var(--font-head); font-weight: 600; font-size: 0.9375rem;
  letter-spacing: 0.03em; line-height: 1.2; text-decoration: none; cursor: pointer;
  border: 2px solid var(--ink); transition: background-color 160ms ease,
  transform 120ms ease, color 160ms ease;
  -webkit-tap-highlight-color: transparent;
}
.btn-primary { background: var(--btn); color: #fff; }
.btn-primary::after {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(115deg, transparent 30%,
    rgba(255, 255, 255, 0.4) 50%, transparent 70%);
  transform: translateX(-120%);
}
@media (hover: hover) and (pointer: fine) {
  .btn-primary:hover { background: var(--btn-hover); color: #fff; }
  .btn-primary:hover::after { transform: translateX(120%); transition: transform 600ms ease; }
  .btn-secondary:hover { background: var(--ink); color: #fff; }
}
.btn-primary:active { background: var(--btn-active); transform: scale(0.98); }
.btn-primary:active::after { transform: translateX(-120%); transition: none; }
.btn-secondary { background: var(--paper); color: var(--ink); }
.btn-secondary:active { transform: scale(0.98); background: var(--ink); color: #fff; }
.btn[aria-disabled="true"] { opacity: 0.4; cursor: not-allowed; pointer-events: none; }
.btn.is-loading { pointer-events: none; }
.btn.is-loading::before {
  content: ""; width: 20px; height: 20px; flex: none; border-radius: 50%;
  border: 3px solid rgba(255, 255, 255, 0.35); border-top-color: #fff;
  animation: btn-spin 800ms linear infinite;
}
.btn-secondary.is-loading::before { border-color: rgba(10, 10, 10, 0.25); border-top-color: var(--ink); }
.btn.is-success { background: var(--ink); color: #fff; pointer-events: none; }
.btn.is-success::before {
  content: ""; width: 20px; height: 20px; flex: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 12.5l5.2 5.2L20 6.5'/%3E%3C/svg%3E") center / contain no-repeat;
}
@keyframes btn-spin { to { transform: rotate(360deg); } }

/* Hero */
.hero { padding: 76px 0 64px; border-bottom: 1px solid var(--hair); }

/* Sections + rows */
.section { padding: 64px 0; border-bottom: 1px solid var(--hair); }
.triage-row {
  display: grid; grid-template-columns: 1fr auto; gap: 6px 40px;
  padding: 30px 0; border-top: 1px solid var(--ink); align-items: center;
}
.triage-row:last-child { border-bottom: 1px solid var(--ink); }
.triage-row h3 { font-size: clamp(1.5rem, 3.4vw, 2.2rem); letter-spacing: -0.02em; }
.triage-row .first-step { color: var(--ink-2); margin-top: 8px; max-width: 54ch; font-size: 1.15rem; }
.triage-row .time-cost {
  font-family: var(--font-head); font-weight: 700; font-size: 1rem;
  text-align: right; white-space: nowrap; line-height: 1.5;
}
.triage-row .row-action { grid-column: 1 / -1; margin-top: 14px; }

.ledger { border-top: 2px solid var(--ink); }
.ledger-row {
  display: grid; grid-template-columns: 110px 1fr auto; gap: 4px 32px;
  padding: 30px 0; border-bottom: 1px solid var(--hair); align-items: start;
}
.ledger-row .idx {
  font-family: var(--font-head); font-weight: 700;
  font-size: clamp(2.4rem, 5vw, 3.6rem); line-height: 0.95;
  letter-spacing: -0.03em; grid-row: 1 / span 3;
}
.ledger-row h3 { font-size: clamp(1.4rem, 3vw, 1.9rem); letter-spacing: -0.02em; }
.ledger-row .what { grid-column: 2; color: var(--ink-2); max-width: 58ch; margin-top: 6px; font-size: 1.15rem; }
.ledger-row .what { color: var(--ink); }
.ledger-row .status {
  grid-column: 2; font-family: var(--font-head); font-size: 0.8125rem;
  font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase;
  margin-top: 12px;
}
.ledger-row .row-action { grid-column: 3; grid-row: 1 / span 3; align-self: center; }

/* Seal as printer's colophon */
.seal {
  border-top: 2px solid var(--ink); border-bottom: 2px solid var(--ink);
  padding: 28px 0 24px; margin: 36px 0 8px; max-width: 860px;
}
.seal-head { margin-bottom: 8px; }
.seal-head h3 { font-size: 1.05rem; letter-spacing: 0.01em; }
.seal-head .seal-meta {
  font-family: var(--font-head); font-size: 0.8125rem; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--ink-2); margin-top: 6px;
}
.seal table { width: 100%; border-collapse: collapse; font-size: 0.875rem; }
.seal th, .seal td {
  text-align: left; padding: 8px 10px 8px 0;
  border-bottom: 1px solid var(--hair); vertical-align: top;
}
.seal th {
  font-family: var(--font-head); font-weight: 600; font-size: 0.72rem;
  letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink-2);
  border-bottom: 1px solid var(--ink);
}
.seal td.hash { font-size: 0.8rem; word-break: break-all; color: var(--ink-2); }
.seal td.state { font-family: var(--font-head); font-weight: 700; white-space: nowrap; font-size: 0.8125rem; letter-spacing: 0.1em; text-transform: uppercase; }
.seal-foot { display: flex; flex-wrap: wrap; gap: 14px 22px; align-items: center; margin-top: 20px; }
.stamp {
  display: none; font-family: var(--font-head); font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink);
  border: 2.5px solid var(--ink); padding: 7px 14px; transform: rotate(-2deg);
}
.stamp.show { display: inline-block; }
.stamp.fail { color: #B3261E; border-color: #B3261E; }
.note-line {
  border-top: 1px solid var(--hair); padding-top: 14px; margin-top: 22px;
  font-size: 0.95rem; color: var(--ink-2); max-width: 68ch;
}

/* Footer */
.site-footer { padding: 48px 0 56px; }
.footer-in { display: grid; gap: 18px; }
.footer-line { color: var(--ink-2); font-size: 0.95rem; }
.footer-nav { display: flex; gap: 8px 26px; flex-wrap: wrap; }
.footer-nav a { min-height: 44px; display: inline-flex; align-items: center; font-family: var(--font-head); font-weight: 600; font-size: 0.9375rem; }

@media (max-width: 720px) {
  .wrap { padding: 0 20px; }
  h1 { font-size: clamp(2.6rem, 13.5vw, 3.4rem); }
  .hero { padding: 48px 0 40px; }
  .section { padding: 44px 0; }
  .triage-row { grid-template-columns: 1fr; }
  .triage-row .time-cost { text-align: left; }
  .triage-row .row-action .btn, .ledger-row .row-action .btn { width: 100%; }
  .ledger-row { grid-template-columns: 64px 1fr; }
  .ledger-row .idx { font-size: 2rem; grid-row: 1; }
  .ledger-row .what, .ledger-row .status { grid-column: 2; }
  .ledger-row .row-action { grid-column: 1 / -1; grid-row: auto; }
  .seal td.hash { font-size: 0.7rem; }
  .seal th, .seal td { padding-right: 4px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .btn-primary::after { transition: none; }
  .btn-primary:hover::after { transform: translateX(-120%); }
  .btn.is-loading::before { animation: none; }
}
@media (forced-colors: active) {
  .btn { border: 2px solid ButtonText; }
}
