/* Safe AI Commerce — Catalog-Readiness Workshop
   © 2026 M. A. Shaiye. All rights reserved.
   Deliberately single-theme: a dark, engineering-facing surface. */

:root {
  --void:      #080d0c;
  --ground:    #0c1211;
  --panel:     #111917;
  --panel-2:   #16201e;
  --rule:      #223029;
  --rule-soft: #1a2422;

  --text:      #d3ded9;
  --bright:    #f2f7f5;
  --dim:       #879792;
  --faint:     #5f6d69;

  --green:     #4fc39c;
  --green-dim: #2e7d63;
  --green-bg:  #10241d;

  --amber:     #d8a544;
  --amber-bg:  #241d0f;
  --red:       #e0736a;
  --red-bg:    #2a1614;
  --blue:      #6ba7de;

  --f-mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --f-sans: "IBM Plex Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, sans-serif;

  --maxw: 50rem;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--ground);
  color: var(--text);
  font-family: var(--f-sans);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

a { color: var(--green); text-decoration: none; border-bottom: 1px solid transparent; }
a:hover { border-bottom-color: var(--green); }
a:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; border-radius: 2px; }

.skip { position: absolute; left: -9999px; }
.skip:focus { left: 1rem; top: 1rem; z-index: 99; background: var(--green); color: var(--void); padding: .6rem 1rem; border-radius: 3px; }

/* ---------- shell ---------- */
.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}

/* ---------- nav ---------- */
.nav {
  border-bottom: 1px solid var(--rule-soft);
  background: var(--void);
}
.nav .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; flex-wrap: wrap;
  padding-block: .85rem;
}
.brand {
  font-family: var(--f-mono);
  font-size: .82rem;
  font-weight: 500;
  letter-spacing: .02em;
  color: var(--bright);
  border-bottom: none;
}
.brand:hover { border-bottom: none; color: var(--green); }
.brand .dot { color: var(--green); }
.nav-links { display: flex; gap: 1.4rem; font-family: var(--f-mono); font-size: .78rem; }
.nav-links a { color: var(--dim); }
.nav-links a:hover { color: var(--green); }

/* ---------- hero ---------- */
.hero {
  background: var(--void);
  border-bottom: 1px solid var(--rule-soft);
  padding-block: 4rem 4.5rem;
}
.tag {
  display: inline-block;
  font-family: var(--f-mono);
  font-size: .7rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--green);
  border: 1px solid var(--green-dim);
  border-radius: 2px;
  padding: .3rem .65rem;
  margin-bottom: 1.5rem;
}
h1 {
  font-family: var(--f-mono);
  font-weight: 500;
  font-size: clamp(1.75rem, 5.2vw, 2.7rem);
  line-height: 1.18;
  letter-spacing: -.025em;
  color: var(--bright);
  margin: 0 0 1.4rem;
  text-wrap: balance;
}
.lede {
  font-size: 1.12rem;
  color: var(--text);
  margin: 0 0 1.2rem;
  max-width: 60ch;
}
.lede.sub { font-size: 1rem; color: var(--dim); margin-bottom: 0; }
.hero-actions { display: flex; gap: .8rem; flex-wrap: wrap; margin-top: 2.2rem; }
.cta {
  font-family: var(--f-mono);
  font-size: .85rem;
  font-weight: 500;
  padding: .75rem 1.35rem;
  border-radius: 3px;
  border: 1px solid var(--green-dim);
  background: var(--green);
  color: var(--void);
  border-bottom: 1px solid var(--green-dim);
}
.cta:hover { background: var(--bright); border-color: var(--bright); border-bottom-color: var(--bright); }
.cta.ghost { background: transparent; color: var(--green); }
.cta.ghost:hover { background: var(--green-bg); color: var(--green); border-color: var(--green); }

/* ---------- sections ---------- */
section { padding-block: 3.5rem; border-bottom: 1px solid var(--rule-soft); }
section:last-of-type { border-bottom: none; }

.kicker {
  font-family: var(--f-mono);
  font-size: .7rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--faint);
  margin: 0 0 .9rem;
}
h2 {
  font-family: var(--f-mono);
  font-weight: 500;
  font-size: 1.45rem;
  line-height: 1.3;
  letter-spacing: -.015em;
  color: var(--bright);
  margin: 0 0 1.1rem;
  text-wrap: balance;
}
h3 {
  font-family: var(--f-mono);
  font-weight: 500;
  font-size: 1rem;
  color: var(--bright);
  margin: 0 0 .5rem;
  letter-spacing: -.005em;
}
p { margin: 0 0 1.1rem; max-width: 68ch; }
p:last-child { margin-bottom: 0; }
strong { color: var(--bright); font-weight: 600; }
em { color: var(--bright); font-style: italic; }

/* ---------- code ---------- */
code {
  font-family: var(--f-mono);
  font-size: .86em;
  background: var(--panel-2);
  border: 1px solid var(--rule-soft);
  border-radius: 2px;
  padding: .06em .35em;
  color: var(--green);
}
pre {
  font-family: var(--f-mono);
  font-size: .8rem;
  line-height: 1.6;
  background: var(--void);
  border: 1px solid var(--rule);
  border-radius: 4px;
  padding: 1.1rem 1.25rem;
  overflow-x: auto;
  margin: 0 0 1.4rem;
  color: var(--text);
}
pre code { background: none; border: none; padding: 0; color: inherit; font-size: 1em; }
pre .c { color: var(--faint); }
pre .k { color: var(--blue); }
pre .s { color: var(--green); }
pre .w { color: var(--amber); }
pre .x { color: var(--red); }

/* ---------- units ---------- */
.units { display: flex; flex-direction: column; gap: 0; margin-top: 1.5rem; }
.unit {
  display: grid;
  grid-template-columns: 4.5rem 1fr;
  gap: 0 1.25rem;
  padding-block: 1.5rem;
  border-top: 1px solid var(--rule-soft);
}
.unit:last-child { border-bottom: 1px solid var(--rule-soft); }
.unit-id {
  font-family: var(--f-mono);
  font-size: .72rem;
  letter-spacing: .06em;
  color: var(--green);
  padding-top: .25rem;
}
.unit-body p { font-size: .95rem; color: var(--dim); margin: 0; }
.unit-body p strong { color: var(--text); }

/* ---------- callouts ---------- */
.box {
  border: 1px solid var(--rule);
  border-left-width: 3px;
  border-radius: 3px;
  background: var(--panel);
  padding: 1.35rem 1.5rem;
  margin: 1.6rem 0;
}
.box.green { border-left-color: var(--green); }
.box.amber { border-left-color: var(--amber); }
.box.red   { border-left-color: var(--red); }
.box .label {
  font-family: var(--f-mono);
  font-size: .68rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  margin: 0 0 .6rem;
}
.box.green .label { color: var(--green); }
.box.amber .label { color: var(--amber); }
.box.red   .label { color: var(--red); }
.box p { font-size: .95rem; }

/* ---------- table ---------- */
.scroller { overflow-x: auto; border: 1px solid var(--rule); border-radius: 4px; margin: 1.5rem 0; }
table { border-collapse: collapse; width: 100%; font-size: .86rem; }
th, td { text-align: left; padding: .6rem .9rem; border-bottom: 1px solid var(--rule-soft); }
th {
  font-family: var(--f-mono);
  font-size: .68rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--faint);
  font-weight: 400;
  background: var(--void);
  white-space: nowrap;
}
tbody tr:last-child td { border-bottom: none; }
td { color: var(--dim); }
td:first-child { color: var(--text); }
td.num { font-family: var(--f-mono); text-align: right; font-variant-numeric: tabular-nums; color: var(--green); white-space: nowrap; }

/* ---------- list ---------- */
ul.ticks { list-style: none; padding: 0; margin: 0 0 1.1rem; display: flex; flex-direction: column; gap: .6rem; }
ul.ticks li { padding-left: 1.6rem; position: relative; font-size: .96rem; max-width: 66ch; }
ul.ticks li::before {
  content: "▸"; position: absolute; left: 0; color: var(--green); font-size: .9em;
}
ul.plain { padding-left: 1.2rem; margin: 0 0 1.1rem; display: flex; flex-direction: column; gap: .5rem; font-size: .96rem; max-width: 66ch; }
ul.plain::marker, ul.plain li::marker { color: var(--faint); }

/* ---------- form ---------- */
.form-panel {
  background: var(--panel);
  border: 1px solid var(--rule);
  border-radius: 5px;
  padding: 2rem 1.75rem;
  margin-top: 1.8rem;
}
.field { margin-bottom: 1.25rem; }
.field label {
  display: block;
  font-family: var(--f-mono);
  font-size: .73rem;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--dim);
  margin-bottom: .45rem;
}
.field input, .field select, .field textarea {
  width: 100%;
  font-family: var(--f-sans);
  font-size: .96rem;
  padding: .7rem .8rem;
  background: var(--void);
  border: 1px solid var(--rule);
  border-radius: 3px;
  color: var(--bright);
}
.field textarea { min-height: 100px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--green); box-shadow: 0 0 0 3px var(--green-bg);
}
.field input::placeholder, .field textarea::placeholder { color: var(--faint); }
.hp { position: absolute; left: -9999px; height: 0; overflow: hidden; }
button.submit {
  width: 100%;
  font-family: var(--f-mono);
  font-size: .88rem;
  font-weight: 500;
  padding: .85rem;
  background: var(--green);
  color: var(--void);
  border: none;
  border-radius: 3px;
  cursor: pointer;
  transition: background .15s;
}
button.submit:hover { background: var(--bright); }
button.submit:focus-visible { outline: 2px solid var(--bright); outline-offset: 2px; }
.form-note { font-size: .82rem; color: var(--faint); margin: .9rem 0 0; }

/* ---------- faq ---------- */
.faq { display: flex; flex-direction: column; gap: 1.4rem; margin-top: 1.5rem; }
.faq h3 { margin-bottom: .35rem; }
.faq p { font-size: .95rem; color: var(--dim); }

/* ---------- footer ---------- */
footer {
  background: var(--void);
  border-top: 1px solid var(--rule-soft);
  padding-block: 2.5rem;
  font-size: .84rem;
  color: var(--faint);
}
footer .wrap { display: flex; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; }
footer a { color: var(--dim); }
footer a:hover { color: var(--green); }
footer .cols { display: flex; gap: 2.5rem; flex-wrap: wrap; }
footer ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: .3rem; }
footer .h {
  font-family: var(--f-mono);
  font-size: .66rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--faint);
  margin-bottom: .55rem;
}
.legal { border-top: 1px solid var(--rule-soft); margin-top: 2rem; padding-top: 1.25rem; font-size: .78rem; }

@media (max-width: 560px) {
  .unit { grid-template-columns: 1fr; gap: .4rem; }
  .hero { padding-block: 2.75rem 3rem; }
  section { padding-block: 2.5rem; }
  .form-panel { padding: 1.5rem 1.25rem; }
}
