/* Dokimos landing — brand book v1.2 (palette, type, 2px geometry). */
:root {
  --basalt: #1C2126;
  --basalt-2: #262C32;
  --silver: #B9BFC4;
  --gold: #C9A24A;      /* accent rule only, never text on light */
  --patina: #2D6C62;
  --patina-hover: #245950;
  --patina-pale: #E3EEEB;
  --limestone: #F1F3F1;
  --paper: #FFFFFF;
  --ink: #1C2126;
  --muted: #55606A;
  --hair: #D8DDDA;
  --go: #2E7D5B;
  --cond: #B7791F;
  --nogo: #B3261E;
  --radius: 2px;
  --wrap: 1180px;
  --display: "Jost", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --sans: "IBM Plex Sans", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --mono: "IBM Plex Mono", Consolas, Menlo, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--limestone);
  color: var(--ink);
  font: 400 17px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--patina); }
code, pre { font-family: var(--mono); font-size: .9em; }
h1, h2, h3 { font-family: var(--display); font-weight: 500; letter-spacing: -.01em; line-height: 1.15; margin: 0; }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); max-width: 24ch; }
h3 { font-size: 1.2rem; }
:focus-visible { outline: 3px solid var(--patina); outline-offset: 2px; }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 10; background: var(--paper); padding: 8px 12px; }

.eyebrow {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  font: 500 .78rem/1 var(--sans);
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--patina);
  margin: 0 0 14px;
}

/* Availability tags */
.tag {
  display: inline-block; vertical-align: middle;
  font: 500 .68rem/1 var(--sans); letter-spacing: .08em; text-transform: uppercase;
  padding: 5px 7px; border-radius: var(--radius); white-space: nowrap;
}
.tag-ok { background: var(--patina-pale); color: var(--patina); }
.tag-dev { background: transparent; color: var(--muted); box-shadow: inset 0 0 0 1px #A9B1B6; }

/* Header */
.top { background: var(--basalt); color: var(--limestone); border-top: 4px solid var(--patina); }
.top-row { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 24px; }
.lockup { display: flex; align-items: center; gap: 14px; color: var(--silver); text-decoration: none; flex-shrink: 0; }
.lockup-mark { width: 40px; height: 40px; }
.lockup-word { width: 118px; height: 18px; }
.top nav { display: flex; align-items: center; gap: 26px; }
.top nav a { color: var(--silver); text-decoration: none; font-size: .95rem; }
.top nav a:hover { color: var(--paper); }
.top nav .nav-cta { border: 1px solid var(--silver); padding: 7px 14px; border-radius: var(--radius); white-space: nowrap; }
.top nav .nav-cta:hover { border-color: var(--paper); }

/* Hero */
.hero { background: var(--basalt); color: var(--limestone); border-bottom: 3px solid var(--gold); padding: 64px 0 72px; }
.hero-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.hero .eyebrow { color: var(--silver); }
.hero h1 { font-size: clamp(2.3rem, 4.8vw, 3.5rem); max-width: 15ch; }
.lede { font-size: 1.12rem; color: #D5DAD7; max-width: 52ch; margin: 22px 0 30px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; }
.mantra { list-style: none; margin: 36px 0 0; padding: 18px 0 0; border-top: 1px solid #3A4249; display: grid; grid-template-columns: 1fr 1fr; gap: 6px 24px; color: var(--silver); font-size: .95rem; }
.mantra li::before { content: ""; display: inline-block; width: 10px; height: 2px; background: var(--gold); vertical-align: middle; margin-right: 10px; }

.btn {
  display: inline-block; padding: 12px 22px; border-radius: var(--radius);
  font: 500 1rem/1.2 var(--sans); text-decoration: none; border: 1px solid transparent;
}
.btn-primary { background: var(--patina); color: var(--paper); }
.btn-primary:hover { background: var(--patina-hover); }
.btn-ghost { border-color: var(--silver); color: var(--limestone); }
.btn-ghost:hover { border-color: var(--paper); color: var(--paper); }

/* Product UI fragments (demo data) */
.ui { background: var(--paper); color: var(--ink); border: 1px solid var(--hair); border-radius: var(--radius); font-size: .92rem; overflow: hidden; }
.ui-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 11px 16px; background: var(--basalt-2); color: var(--limestone); font: 500 .86rem/1.3 var(--sans); }
.ui-bar code { color: var(--silver); margin-right: 6px; }
.demo { font: 500 .66rem/1 var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--silver); border: 1px solid #4A535A; padding: 4px 6px; border-radius: var(--radius); white-space: nowrap; }
.ui-hero { box-shadow: 0 0 0 1px #000, 0 -2px 0 var(--gold), 0 24px 60px rgba(0,0,0,.45); border: 0; }
.ui-metrics { display: grid; grid-template-columns: repeat(4, 1fr); border-bottom: 1px solid var(--hair); }
.ui-metrics div { padding: 14px 16px; display: flex; flex-direction: column; gap: 2px; }
.ui-metrics div + div { border-left: 1px solid var(--hair); }
.ui-metrics b { font: 500 1.7rem/1.1 var(--display); }
.ui-metrics span { font-size: .78rem; color: var(--muted); line-height: 1.3; }
.t-warn { color: var(--cond); }
.t-bad { color: var(--nogo); }
.ui-table { width: 100%; border-collapse: collapse; }
.ui-table th { text-align: left; font: 500 .7rem/1.2 var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--patina); padding: 10px 16px; border-bottom: 1.5px solid var(--patina); }
.ui-table td { padding: 10px 16px; border-bottom: 1px solid var(--hair); vertical-align: top; }
.ui-table tr:last-child td { border-bottom: 0; }
.ui-hero .ui-table td:nth-child(2), .ui-hero .ui-table td:nth-child(3) { font-family: var(--mono); }
.ui-foot { margin: 0; padding: 10px 16px; background: var(--limestone); border-top: 1px solid var(--hair); font-size: .8rem; color: var(--muted); }
.ui-dl { display: grid; grid-template-columns: 9.5em 1fr; margin: 0; }
.ui-dl dt, .ui-dl dd { padding: 10px 16px; border-bottom: 1px solid var(--hair); margin: 0; }
.ui-dl dt { font: 500 .72rem/1.5 var(--sans); letter-spacing: .07em; text-transform: uppercase; color: var(--muted); background: #F7F8F7; }
.ui-dl dt:last-of-type, .ui-dl dd:last-of-type { border-bottom: 0; }
.ui-dl-mono dd { font-family: var(--mono); font-size: .86rem; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chips span { border: 1px solid var(--hair); padding: 2px 8px; border-radius: var(--radius); font-size: .82rem; white-space: nowrap; }
.ui-wide { margin-top: 40px; }
.table-scroll { overflow-x: auto; }
.cal { min-width: 760px; }

/* Status chips */
.st { display: inline-block; font: 500 .74rem/1 var(--sans); padding: 5px 8px; border-radius: var(--radius); white-space: nowrap; }
.st-ok { background: #E2F0E8; color: #1F5C42; }
.st-warn { background: #F7EBD6; color: #7A4F12; }
.st-bad { background: #F6DEDC; color: #8E1E17; }
.st-none { background: var(--limestone); color: var(--muted); }
.st-outline { color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); }

/* Screenshot buttons */
.shot { display: block; width: 100%; padding: 0; border: 1px solid var(--hair); background: var(--paper); cursor: zoom-in; border-radius: var(--radius); overflow: hidden; }
.shot img { border-radius: var(--radius); }

/* Sections */
.section { padding: 96px 0; }
.section-alt { background: var(--paper); border-top: 1px solid var(--hair); border-bottom: 1px solid var(--hair); }
.section-lede { color: var(--muted); max-width: 64ch; margin: 18px 0 0; }
.aside { margin: 36px 0 0; max-width: 78ch; color: var(--ink); }
.split { display: grid; grid-template-columns: 1fr 1.2fr; gap: 56px; align-items: start; }
.split-wide { grid-template-columns: 1fr 1fr; align-items: center; }

.problems { list-style: none; margin: 0; padding: 0; counter-reset: p; }
.problems li { counter-increment: p; padding: 15px 0 15px 44px; border-bottom: 1px solid var(--hair); position: relative; }
.problems li:first-child { border-top: 1px solid var(--hair); }
.problems li::before { content: counter(p, decimal-leading-zero); position: absolute; left: 0; top: 17px; font: 500 .85rem/1.4 var(--mono); color: var(--nogo); }

.chain { list-style: none; padding: 0; margin: 48px 0 0; display: grid; grid-template-columns: repeat(7, 1fr); gap: 0; }
.chain li { position: relative; padding: 18px 18px 0 0; border-top: 2px solid var(--basalt); display: flex; flex-direction: column; gap: 8px; }
.chain li::before { content: ""; position: absolute; top: -6px; left: 0; width: 10px; height: 10px; background: var(--paper); border: 2px solid var(--patina); border-radius: 50%; }
.chain li:last-child { border-top-color: var(--gold); }
.chain b { font: 500 1.05rem/1.2 var(--display); }
.chain span { font-size: .88rem; color: var(--muted); line-height: 1.5; }

.ticks { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 8px; }
.ticks li { padding-left: 26px; position: relative; }
.ticks li::before { content: ""; position: absolute; left: 2px; top: .55em; width: 10px; height: 5px; border-left: 2px solid var(--patina); border-bottom: 2px solid var(--patina); transform: rotate(-45deg); }

.sources { display: grid; grid-template-columns: 1fr 1.4fr; gap: 24px; margin-top: 44px; }
.src-group { border: 1px solid var(--hair); border-radius: var(--radius); padding: 24px; background: var(--limestone); }
.src-group h3 { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 16px; }
.src-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.src-list li { background: var(--paper); border: 1px solid var(--hair); border-radius: var(--radius); padding: 6px 10px; font-size: .9rem; }
.src-note { margin: 14px 0 0; font-size: .85rem; color: var(--muted); }
.norm { margin-top: 64px; }
.norm h3 { font-size: 1.5rem; margin-bottom: 12px; }
.norm p { color: var(--muted); margin: 0; max-width: 52ch; }

.map { display: grid; grid-template-columns: 1fr 56px 1fr 56px 1.1fr; align-items: center; margin-top: 48px; }
.map-node { border-radius: var(--radius); padding: 20px 22px; display: flex; flex-direction: column; gap: 4px; }
.map-ev { background: var(--basalt); color: var(--limestone); border-left: 3px solid var(--gold); }
.map-ctl { background: var(--paper); border: 1px solid var(--hair); border-left: 3px solid var(--patina); }
.map-k { font: 500 .7rem/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--silver); }
.map-ctl .map-k { color: var(--patina); }
.map-node b { font: 500 1.15rem/1.25 var(--display); }
.map-s { font: 400 .82rem/1.4 var(--mono); color: var(--silver); }
.map-ctl .map-s { color: var(--muted); }
.map-arrow { height: 2px; background: var(--basalt); position: relative; margin: 0 6px; }
.map-arrow::after { content: ""; position: absolute; right: -1px; top: -5px; border: 6px solid transparent; border-left: 8px solid var(--basalt); border-right: 0; }
.map-fw { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.map-fw li { background: var(--paper); border: 1px solid var(--hair); border-radius: var(--radius); padding: 10px 14px; font-weight: 500; }

.pipeline { list-style: none; margin: 44px 0 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; counter-reset: s; }
.pipeline li { counter-increment: s; position: relative; background: var(--paper); border: 1px solid var(--hair); border-radius: var(--radius); padding: 16px 16px 16px 16px; font: 500 1rem/1.3 var(--display); }
.pipeline li::before { content: counter(s, decimal-leading-zero); display: block; font: 500 .78rem/1 var(--mono); color: var(--patina); margin-bottom: 8px; }
.pipeline li:nth-child(4) { border-color: var(--patina); box-shadow: inset 3px 0 0 var(--patina); }
.pipeline li:last-child { background: var(--basalt); color: var(--limestone); border-color: var(--basalt); }
.pipeline li:last-child::before { color: var(--gold); }

.val-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; margin-top: 40px; align-items: start; }
.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border-top: 1px solid var(--hair); }
.facts div { padding: 20px 20px 20px 0; display: flex; flex-direction: column; gap: 6px; border-bottom: 1px solid var(--hair); }
.facts div:nth-child(even) { padding-left: 20px; border-left: 1px solid var(--hair); }
.facts strong { font: 500 1.05rem/1.2 var(--display); }
.facts span { color: var(--muted); font-size: .93rem; line-height: 1.5; }
.statuses { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 32px; }

.reports { display: grid; grid-template-columns: 1fr 1.15fr; gap: 40px; margin-top: 44px; align-items: start; }
.rep-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--hair); }
.rep-list li { display: grid; grid-template-columns: 1fr auto; gap: 2px 16px; padding: 14px 0; border-bottom: 1px solid var(--hair); }
.rep-list b { font: 500 1.02rem/1.3 var(--display); grid-column: 1; }
.rep-list span:not(.tag) { grid-column: 1; color: var(--muted); font-size: .9rem; }
.rep-list .tag { grid-column: 2; grid-row: 1 / span 2; align-self: center; }
.rep-shots { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.rep-shots figure { margin: 0; }
.rep-shots figure:first-child { grid-column: 1 / -1; }
.rep-shots figure:first-child .shot { height: 300px; }
.rep-shots .shot { height: 220px; }
.rep-shots figcaption { margin-top: 8px; font-size: .86rem; color: var(--muted); }
.rep-shots figcaption strong { color: var(--ink); font-weight: 600; }

.verdicts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 48px; }
.verdict { background: var(--limestone); border: 1px solid var(--hair); border-radius: var(--radius); padding: 18px; }
.verdict p { margin: 10px 0 0; color: var(--muted); font-size: .9rem; }
.v-label { display: inline-block; font: 600 .78rem/1 var(--sans); letter-spacing: .08em; padding: 7px 10px; border-radius: var(--radius); color: var(--paper); }
.v-go .v-label { background: var(--go); }
.v-cond .v-label { background: var(--cond); }
.v-nogo .v-label { background: var(--nogo); }
.v-none .v-label { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); }
.note { margin: 24px 0 0; font-size: .86rem; color: var(--muted); }

.fw-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 44px; }
.fw { background: var(--paper); border: 1px solid var(--hair); border-top: 3px solid var(--patina); border-radius: var(--radius); padding: 22px; }
.fw h3 { font-size: 1.15rem; }
.fw p { margin: 10px 0 0; color: var(--muted); font-size: .93rem; }
.caveat { margin: 24px 0 0; max-width: 78ch; padding-left: 18px; border-left: 3px solid var(--gold); }

.who { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; margin-top: 44px; border-top: 2px solid var(--basalt); }
.who div { padding: 20px 20px 0 0; }
.who div + div { padding-left: 20px; border-left: 1px solid var(--hair); }
.who p { margin: 8px 0 0; color: var(--muted); font-size: .93rem; }

/* Contact */
.contact { background: var(--basalt); color: var(--limestone); padding: 88px 0; border-top: 3px solid var(--gold); }
.contact-inner { display: grid; grid-template-columns: 140px 1fr; gap: 48px; align-items: center; }
.contact-mark { width: 140px; height: 140px; color: var(--silver); }
.contact h2 { max-width: 26ch; }
.contact p { color: #D5DAD7; margin: 14px 0 26px; max-width: 60ch; }
.contact .cta-row { align-items: center; gap: 20px; }
.on-dark, .contact-mail { color: var(--silver); }
.on-dark:hover, .contact-mail:hover { color: var(--paper); }
.contact-mail { font-family: var(--mono); font-size: .95rem; }

.foot { background: var(--basalt); color: var(--silver); border-top: 1px solid #2E353B; font-size: .88rem; }
.foot-row { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 22px; padding-bottom: 22px; }
.foot a { color: var(--silver); }

/* Lightbox */
.lightbox { border: 0; padding: 0; background: transparent; max-width: min(1100px, 94vw); max-height: 94vh; overflow: auto; }
.lightbox::backdrop { background: rgba(28,33,38,.88); }
.lightbox img { border-radius: var(--radius); background: var(--paper); }
.lb-cap { color: var(--limestone); margin: 12px 0 0; font-size: .95rem; }
.lb-close { position: sticky; top: 0; float: right; margin: 0 0 8px; width: 40px; height: 40px; border: 0; border-radius: var(--radius); background: var(--paper); color: var(--ink); font-size: 26px; line-height: 1; cursor: pointer; }

/* Responsive */
@media (max-width: 1100px) {
  .chain { grid-template-columns: repeat(4, 1fr); row-gap: 32px; }
  .who { grid-template-columns: repeat(3, 1fr); row-gap: 28px; }
  .who div:nth-child(4) { padding-left: 0; border-left: 0; }
  .top nav a:not(.nav-cta) { display: none; }
}
@media (max-width: 980px) {
  .hero-grid, .split, .split-wide, .val-grid, .reports, .sources { grid-template-columns: 1fr; gap: 36px; }
  .fw-grid, .verdicts { grid-template-columns: 1fr 1fr; }
  .pipeline { grid-template-columns: repeat(3, 1fr); }
  .map { grid-template-columns: 1fr; gap: 0; }
  .map-arrow { width: 2px; height: 32px; margin: 0 auto; }
  .map-arrow::after { right: auto; left: -5px; top: auto; bottom: -1px; border: 6px solid transparent; border-top: 8px solid var(--basalt); border-bottom: 0; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .wrap { padding: 0 16px; }
  .top-row { height: 64px; }
  .lockup-word { width: 96px; }
  .top nav .nav-cta { padding: 6px 10px; font-size: .85rem; }
  .hero { padding: 40px 0 48px; }
  .section { padding: 64px 0; }
  .mantra { grid-template-columns: 1fr; }
  .ui-metrics { grid-template-columns: 1fr 1fr; }
  .ui-metrics div:nth-child(3) { border-left: 0; }
  .ui-metrics div:nth-child(n+3) { border-top: 1px solid var(--hair); }
  .ui-table th, .ui-table td { padding: 8px 10px; }
  .ui-hero .ui-table { font-size: .82rem; }
  .ui-dl { grid-template-columns: 1fr; }
  .ui-dl dt { border-bottom: 0; padding-bottom: 2px; }
  .chain, .who, .fw-grid, .verdicts, .facts, .pipeline, .rep-shots { grid-template-columns: 1fr; }
  .facts div:nth-child(even), .who div + div { padding-left: 0; border-left: 0; }
  .who div + div { border-top: 1px solid var(--hair); }
  .rep-shots figure:first-child .shot, .rep-shots .shot { height: 260px; }
  .contact-inner { grid-template-columns: 1fr; gap: 24px; }
  .contact-mark { width: 88px; height: 88px; }
}
