/* ComplyLock - single stylesheet */

:root {
  --bg:          #0d0e10;
  --bg-raised:   #131518;
  --bg-sunken:   #0a0b0c;
  --rule:        #222529;
  --rule-strong: #33383d;
  --fg:          #e9ebed;
  --fg-mid:      #b3b9bf;
  --fg-dim:      #8d949b;
  --accent:      #d2a24c;
  --accent-soft: #6b5426;
  --fail:        #e0736d;
  --pass:        #74b98a;

  --sans: "Archivo", ui-sans-serif, system-ui, "Helvetica Neue", Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;

  --nav-h: 57px;
  --gutter: 24px;
  --maxw: 1120px;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--sans);
  font-size: 16.5px;
  line-height: 1.62;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3 {
  font-weight: 600;
  letter-spacing: -0.018em;
  line-height: 1.14;
  margin: 0;
  text-wrap: balance;
}

p { margin: 0 0 1em; max-width: 68ch; }
p:last-child { margin-bottom: 0; }

a { color: var(--fg); text-decoration-color: var(--rule-strong); text-underline-offset: 3px; }
a:hover { text-decoration-color: var(--accent); }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 1px;
}

::selection { background: var(--accent-soft); color: #fff; }

.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.mono {
  font-family: var(--mono);
  font-size: 0.86em;
  letter-spacing: -0.01em;
}

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--accent);
  color: #16110a;
  padding: 10px 16px;
  z-index: 100;
  font-weight: 600;
}
.skip:focus { left: 8px; top: 8px; }

/* ---------- nav ---------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(13, 14, 16, 0.88);
  backdrop-filter: saturate(150%) blur(8px);
  border-bottom: 1px solid var(--rule);
}

.nav-in {
  display: flex;
  align-items: center;
  gap: 28px;
  height: var(--nav-h);
}

.wordmark {
  font-weight: 600;
  font-size: 1.02rem;
  letter-spacing: -0.02em;
  text-decoration: none;
  color: var(--fg);
  white-space: nowrap;
}
.wordmark .tick { color: var(--accent); }

.nav-links {
  display: flex;
  gap: 22px;
  margin: 0 auto 0 0;
  padding: 0;
  list-style: none;
  font-size: 0.93rem;
}
.nav-links a {
  color: var(--fg-mid);
  text-decoration: none;
  padding: 4px 0;
  border-bottom: 1px solid transparent;
}
.nav-links a:hover { color: var(--fg); border-bottom-color: var(--accent); }

.btn {
  display: inline-block;
  background: var(--accent);
  color: #14100a;
  font-weight: 600;
  font-size: 0.93rem;
  line-height: 1;
  padding: 11px 16px;
  border-radius: 2px;
  text-decoration: none;
  white-space: nowrap;
  border: 1px solid var(--accent);
}
.btn:hover { background: #e0b061; border-color: #e0b061; }

.btn-ghost {
  background: transparent;
  color: var(--fg);
  border: 1px solid #4a5058;
}
.btn-ghost:hover { background: transparent; border-color: var(--accent); color: var(--accent); }

.btn-lg { font-size: 1rem; padding: 14px 22px; }

/* ---------- sections ---------- */

section { scroll-margin-top: calc(var(--nav-h) + 8px); }

.band { border-top: 1px solid var(--rule); padding: 68px 0; }

.band-head { margin-bottom: 38px; }
.band-head h2 { font-size: clamp(1.45rem, 2.6vw, 1.85rem); }
.band-head p { color: var(--fg-mid); margin-top: 12px; }

/* ---------- hero ---------- */

.hero { padding: 66px 0 74px; }

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 46px;
  align-items: start;
}

.hero h1 {
  font-size: clamp(2.05rem, 5.1vw, 3.15rem);
  letter-spacing: -0.03em;
  line-height: 1.06;
  max-width: 18ch;
}

.hero-sub {
  margin-top: 20px;
  font-size: 1.1rem;
  color: var(--fg-mid);
  max-width: 54ch;
}

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

.hero-note {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--rule);
  color: var(--fg-dim);
  font-size: 0.92rem;
  max-width: 52ch;
}

/* ---------- evidence artifact ---------- */

.artifact {
  border: 1px solid var(--rule-strong);
  background: var(--bg-raised);
  border-radius: 3px;
  font-family: var(--mono);
  font-size: 12.6px;
  line-height: 1.55;
  overflow: hidden;
}

.artifact-bar {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 14px;
  border-bottom: 1px solid var(--rule);
  background: var(--bg-sunken);
  color: var(--fg-dim);
  font-size: 12px;
}
.artifact-bar b { color: var(--fg-mid); font-weight: 500; }

.artifact-body { padding: 14px 14px 16px; }

.arow {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 10px;
  padding: 5px 0;
  border-bottom: 1px dashed #1c1f23;
}
.arow:last-child { border-bottom: 0; }
.arow dt { color: var(--fg-dim); }
.arow dd { margin: 0; color: var(--fg-mid); overflow-wrap: anywhere; }
.arow dd b { color: var(--fg); font-weight: 500; }

.tag {
  display: inline-block;
  padding: 0 6px;
  border-radius: 2px;
  border: 1px solid currentColor;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.02em;
  vertical-align: 1px;
}
.tag-fail { color: var(--fail); }
.tag-pass { color: var(--pass); }

.artifact-foot {
  border-top: 1px solid var(--rule);
  padding: 9px 14px;
  color: var(--fg-dim);
  font-size: 12px;
  background: var(--bg-sunken);
}

/* one deliberate motion moment on load: an accent rule sweeps under the
   receipt header. Decorative only, so content is never hidden by it. */
.artifact-bar { position: relative; }
.artifact-bar::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 100%;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left center;
}

@media (prefers-reduced-motion: no-preference) {
  .artifact-bar::after {
    animation: sweep 900ms 260ms cubic-bezier(0.22, 0.7, 0.25, 1) forwards;
  }
  @keyframes sweep {
    from { transform: scaleX(0); }
    to   { transform: scaleX(1); }
  }
}

/* ---------- steps ---------- */

.steps {
  border-top: 1px solid var(--rule);
  list-style: none;
  margin: 0;
  padding: 0;
}

.step {
  display: grid;
  grid-template-columns: 1fr;
  gap: 6px 28px;
  padding: 26px 0;
  border-bottom: 1px solid var(--rule);
}
.step-n {
  font-family: var(--mono);
  font-size: 0.82rem;
  color: var(--accent);
  padding-top: 4px;
}
.step h3 { font-size: 1.08rem; }
.step p { color: var(--fg-mid); margin: 6px 0 0; }

/* ---------- controls ---------- */

.controls { border-top: 1px solid var(--rule); }

.control {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4px 28px;
  padding: 18px 0;
  border-bottom: 1px solid var(--rule);
  align-items: baseline;
}
.control-id {
  font-family: var(--mono);
  font-size: 0.95rem;
  color: var(--accent);
  font-weight: 500;
}
.control dd { margin: 0; }
.control-obj { font-size: 1.02rem; }
.control-note { color: var(--fg-dim); font-size: 0.92rem; margin: 2px 0 0; }

/* ---------- table ---------- */

.table-scroll { overflow-x: auto; border: 1px solid var(--rule-strong); border-radius: 3px; }

table {
  border-collapse: collapse;
  width: 100%;
  min-width: 720px;
  font-size: 0.9rem;
  background: var(--bg-raised);
}
caption { text-align: left; color: var(--fg-dim); font-size: 0.88rem; padding: 0 0 10px; }
th, td { text-align: left; padding: 11px 14px; border-bottom: 1px solid var(--rule); vertical-align: top; }
thead th {
  background: var(--bg-sunken);
  color: var(--fg-dim);
  font-weight: 600;
  font-size: 0.82rem;
  white-space: nowrap;
}
tbody tr:last-child td { border-bottom: 0; }
td.id, td.ctrl { font-family: var(--mono); font-size: 0.83rem; white-space: nowrap; }
td.ctrl { color: var(--fg-mid); }
td.state { font-family: var(--mono); font-size: 0.83rem; font-weight: 500; }
td.fail { color: var(--fail); }
td.pass { color: var(--pass); }

.withheld {
  margin-top: 16px;
  color: var(--fg-dim);
  font-size: 0.92rem;
  border-left: 2px solid var(--accent-soft);
  padding-left: 14px;
}

/* ---------- pricing ---------- */

.tiers {
  display: grid;
  grid-template-columns: 1fr;
  border-top: 1px solid var(--rule);
}

.tier {
  padding: 26px 0;
  border-bottom: 1px solid var(--rule);
  display: flex;
  flex-direction: column;
}
.tier h3 { font-size: 1.05rem; }
.tier .price {
  font-family: var(--mono);
  font-size: 1.5rem;
  letter-spacing: -0.02em;
  color: var(--fg);
  margin: 12px 0 2px;
}
.tier .unit { color: var(--fg-dim); font-size: 0.86rem; font-family: var(--mono); }
.tier p { color: var(--fg-mid); font-size: 0.95rem; margin: 14px 0 0; }
.tier .tier-cta { margin-top: 22px; align-self: flex-start; }
.pricing-note { margin-top: 22px; color: var(--fg-dim); font-size: 0.92rem; }

/* ---------- about ---------- */

.about-grid { display: grid; grid-template-columns: 1fr; gap: 40px; align-items: start; }
.about-grid h3 { font-size: 1.05rem; margin-top: 30px; }
.about-grid h3 + p { margin-top: 10px; }

.facts {
  border: 1px solid var(--rule);
  border-radius: 3px;
  background: var(--bg-raised);
  padding: 4px 18px;
}
.facts div {
  padding: 15px 0;
  border-bottom: 1px solid var(--rule);
}
.facts div:last-child { border-bottom: 0; }
.facts dt {
  font-family: var(--mono);
  font-size: 1.28rem;
  color: var(--accent);
  letter-spacing: -0.02em;
}
.facts dd { margin: 4px 0 0; color: var(--fg-mid); font-size: 0.9rem; }

/* ---------- faq ---------- */

.faq-head { font-size: 1.05rem; margin-top: 52px; }
.faq { margin-top: 18px; border-top: 1px solid var(--rule); }
.faq > div { padding: 22px 0; border-bottom: 1px solid var(--rule); }
.faq dt { font-weight: 600; font-size: 1.02rem; }
.faq dd { margin: 8px 0 0; color: var(--fg-mid); max-width: 72ch; }

/* ---------- footer ---------- */

.foot { border-top: 1px solid var(--rule); background: var(--bg-sunken); padding: 54px 0 40px; }
.foot-top {
  display: grid;
  grid-template-columns: 1fr;
  gap: 26px;
  padding-bottom: 30px;
  border-bottom: 1px solid var(--rule);
}
.foot-top h2 { font-size: 1.3rem; }
.foot-top p { color: var(--fg-mid); margin-top: 10px; font-size: 0.96rem; }

.foot-cols {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  padding: 28px 0;
  font-size: 0.93rem;
}
.foot-cols h3 { font-size: 0.86rem; color: var(--fg-dim); font-weight: 600; }
.foot-cols ul { list-style: none; margin: 10px 0 0; padding: 0; }
.foot-cols li { margin-bottom: 7px; color: var(--fg-dim); }
.foot-cols a { color: var(--fg-mid); text-decoration: none; }
.foot-cols a:hover { color: var(--fg); text-decoration: underline; text-decoration-color: var(--accent); }

.legal {
  border-top: 1px solid var(--rule);
  padding-top: 22px;
  color: var(--fg-dim);
  font-size: 0.86rem;
}
.legal p { max-width: 78ch; }
.legal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 20px;
  list-style: none;
  margin: 0 0 16px;
  padding: 0;
}
.legal-links a { color: var(--fg-mid); text-decoration: none; }
.legal-links a:hover { color: var(--fg); text-decoration: underline; text-decoration-color: var(--accent); }
.legal-addr { margin-top: 12px; }

/* ---------- stub pages ---------- */

.doc { padding-block: 58px 72px; }
.doc h1 { font-size: clamp(1.8rem, 4vw, 2.4rem); max-width: 22ch; }
.doc p { margin-top: 18px; color: var(--fg-mid); font-size: 1.04rem; }
.doc .btn { margin-top: 26px; }
.crumb { font-family: var(--mono); font-size: 0.8rem; color: var(--fg-dim); margin-bottom: 20px; }
.crumb a { color: var(--fg-dim); text-decoration: none; }
.crumb a:hover { color: var(--accent); }

/* ---------- responsive ---------- */

@media (max-width: 760px) {
  .nav-links { display: none; }
  .nav-in { justify-content: space-between; }
  .wordmark { margin-right: auto; }
}

@media (min-width: 700px) {
  .step { grid-template-columns: 40px 1fr; }
  .step h3, .step p { grid-column: 2; }
  .control { grid-template-columns: 108px 1fr; }
  .foot-cols { grid-template-columns: repeat(2, 1fr); gap: 30px 32px; }
  .foot-top { grid-template-columns: 1.4fr auto; align-items: center; }
}

@media (min-width: 900px) {
  :root { --gutter: 32px; }
  .hero { padding: 84px 0 92px; }
  .hero-grid { grid-template-columns: minmax(0, 1.02fr) minmax(0, 1fr); gap: 56px; }
  .band { padding: 78px 0; }
  .about-grid { grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 56px; }
  .step { grid-template-columns: 40px 250px minmax(0, 1fr); align-items: start; }
  .step h3 { grid-column: 2; padding-top: 2px; }
  .step p { grid-column: 3; grid-row: 1; margin-top: 0; }
  .tiers { grid-template-columns: repeat(3, 1fr); border-bottom: 1px solid var(--rule); }
  .tier { border-bottom: 0; border-left: 1px solid var(--rule); padding: 30px 28px 32px; }
  .tier:first-child { border-left: 0; padding-left: 0; }
  .tier:last-child { padding-right: 0; }
  .tier .tier-cta { margin-top: auto; padding-top: 0; }
  .tier p { margin-bottom: 24px; }
  .foot-cols { grid-template-columns: repeat(4, 1fr); }
}

/* ---------- blog index ---------- */

.postlist { border-top: 1px solid var(--rule); margin-top: 36px; }

.postlist article {
  display: grid;
  grid-template-columns: 1fr;
  gap: 6px 28px;
  padding: 26px 0;
  border-bottom: 1px solid var(--rule);
}
.pl-date {
  font-family: var(--mono);
  font-size: 0.82rem;
  color: var(--fg-dim);
  padding-top: 4px;
}
.postlist h2 { font-size: 1.1rem; }
.postlist h2 a { text-decoration: none; }
.postlist h2 a:hover { color: var(--accent); }
.postlist p { color: var(--fg-mid); margin: 8px 0 0; font-size: 0.96rem; }
.pl-meta {
  font-family: var(--mono);
  font-size: 0.79rem;
  color: var(--fg-dim);
  margin-top: 12px;
}

/* ---------- blog post ---------- */

.post { padding-block: 50px 74px; }

.post-head { border-bottom: 1px solid var(--rule); padding-bottom: 26px; }
.post-head h1 { font-size: clamp(1.8rem, 4.2vw, 2.45rem); max-width: 24ch; }
.post-dek { color: var(--fg-mid); font-size: 1.05rem; margin-top: 16px; max-width: 62ch; }
.post-meta {
  font-family: var(--mono);
  font-size: 0.79rem;
  color: var(--fg-dim);
  margin-top: 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 20px;
}

.tldr {
  border-left: 2px solid var(--accent);
  padding-left: 16px;
  margin-top: 32px;
  max-width: 70ch;
}
.tldr h2 {
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}
.tldr p { color: var(--fg); margin: 10px 0 0; }

.prose { max-width: 72ch; margin-top: 8px; }
.prose h2 {
  font-size: 1.26rem;
  margin-top: 46px;
  padding-top: 24px;
  border-top: 1px solid var(--rule);
}
.prose h3 { font-size: 1.02rem; margin-top: 30px; }
.prose p { color: var(--fg-mid); margin: 14px 0 0; }
.prose ul, .prose ol { color: var(--fg-mid); margin: 14px 0 0; padding-left: 1.2rem; }
.prose li { margin-bottom: 9px; }
.prose li::marker { color: var(--accent); }
.prose strong { color: var(--fg); font-weight: 600; }
.deflist { margin-top: 20px; }
.prose .mono-term { font-family: var(--mono); color: var(--accent); font-size: 0.9em; }
.prose .note {
  border-left: 2px solid var(--accent-soft);
  padding-left: 14px;
  color: var(--fg-dim);
  font-size: 0.94rem;
  margin-top: 22px;
}

.post .controls, .post .faq, .post .deflist { max-width: 72ch; }
.post .faq-head { margin-top: 46px; }

.post-cta {
  max-width: 72ch;
  margin-top: 52px;
  border-top: 1px solid var(--rule-strong);
  padding-top: 28px;
}
.post-cta h2 { font-size: 1.2rem; }
.post-cta p { color: var(--fg-mid); margin-top: 10px; }
.post-cta .btn { margin-top: 20px; }

.related {
  max-width: 72ch;
  margin-top: 46px;
  border-top: 1px solid var(--rule);
  padding-top: 20px;
}
.related h2 {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--fg-dim);
}
.related ul { list-style: none; margin: 10px 0 0; padding: 0; }
.related li { padding: 10px 0; border-bottom: 1px solid var(--rule); font-size: 0.95rem; }
.related li:last-child { border-bottom: 0; }
.related a { color: var(--fg-mid); text-decoration: none; }
.related a:hover { color: var(--accent); }
.related .rel-note { color: var(--fg-dim); }

/* ---------- method band, and definition rows on legal pages ---------- */

.method, .deflist { border-top: 1px solid var(--rule); }
.method > div, .deflist > div {
  padding: 22px 0;
  border-bottom: 1px solid var(--rule);
  display: grid;
  grid-template-columns: 1fr;
  gap: 6px 28px;
}
.method dt, .deflist dt {
  font-family: var(--mono);
  font-size: 0.85rem;
  color: var(--accent);
  padding-top: 3px;
}
.method dd, .deflist dd { margin: 0; color: var(--fg-mid); }
.method dd b, .deflist dd b { color: var(--fg); font-weight: 600; }

@media (min-width: 700px) {
  .postlist article { grid-template-columns: 124px minmax(0, 1fr); }
  .postlist h2, .postlist p, .pl-meta { grid-column: 2; }
  .method > div, .deflist > div { grid-template-columns: 168px minmax(0, 1fr); }
}
