/* ISO 22333 Revision Checker: process spine.
   Petrol ink on cool paper, squared corners, hairline grid, amber action.
   Layout: full-bleed masthead, numbered process spine, 12-column reading grid,
   process sheets with a numbered section rhythm. No serif, no fixed rail.
   Body 17px, data 16px, labels 14px, nothing below 12px. */

:root {
  --ink: #10211f;
  --paper: #f3f6f5;
  --card: #ffffff;
  --petrol: #0d3238;
  --petrol-2: #14464c;
  --amber: #a85a00;
  --amber-dark: #7f4400;
  --teal: #b6c7c4;
  --teal-soft: #d9e4e2;
  --mute: #4c5f5c;
  --wash: #e7eeec;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: "SFMono-Regular", Menlo, Consolas, "Liberation Mono", monospace;
  --max: 1200px;
}

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 17px/1.62 var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: var(--amber-dark); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--amber); }
a:focus-visible, button:focus-visible, select:focus-visible, input:focus-visible, summary:focus-visible {
  outline: 3px solid var(--amber);
  outline-offset: 3px;
  border-radius: 2px;
}

h1, h2, h3, h4 {
  font-family: var(--sans);
  font-weight: 700;
  letter-spacing: -.02em;
  color: var(--ink);
  margin: 0 0 .5em;
}
h1 { font-size: clamp(2.1rem, 4.6vw, 3.5rem); line-height: 1.06; }
h2 { font-size: clamp(1.45rem, 2.4vw, 2rem); line-height: 1.18; margin-top: 2em; }
h3 { font-size: 1.2rem; line-height: 1.3; margin-top: 1.6em; }
p { margin: 0 0 1.05em; max-width: 66ch; }
ul, ol { margin: 0 0 1.2em; padding-left: 1.3em; max-width: 66ch; }
li { margin-bottom: .45em; }
strong, b { font-weight: 650; }
small, .small { font-size: .9rem; }

.skip { position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--ink); color: var(--card); padding: 12px 18px; }
.skip:focus { left: 12px; top: 12px; }

.lab, .kicker, .tag, .n, .code, .meta, .eyebrow, .statuschip, th {
  font-family: var(--mono);
  text-transform: uppercase;
  letter-spacing: .07em;
  font-size: 14px;
  font-weight: 600;
}
.kicker { color: var(--amber-dark); display: block; margin-bottom: 12px; }

/* masthead */
.mast { background: var(--petrol); color: #eaf2f0; }
.mast a { color: #eaf2f0; }
.mast .wrap { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 14px 24px; }
.brand { display: flex; align-items: baseline; gap: 12px; text-decoration: none; }
.brand b { font-size: 1.05rem; letter-spacing: -.01em; }
.brand span { font-family: var(--mono); font-size: 14px; letter-spacing: .06em; color: #b9cfcb; }
.mast nav { display: flex; flex-wrap: wrap; gap: 4px 16px; }
.mast nav a { font-size: 16px; text-decoration: none; padding: 6px 0; }
.mast nav a:hover { text-decoration: underline; }

/* position strip */
.position { background: var(--petrol-2); color: #eaf2f0; }
.position .wrap { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; padding: 0 24px; }
.position div { padding: 12px 18px 12px 0; border-right: 1px solid #2c5d62; }
.position div:last-child { border-right: 0; }
.position dt { font-family: var(--mono); font-size: 14px; letter-spacing: .08em; text-transform: uppercase; color: #a9c6c2; margin: 0 0 3px; }
.position dd { margin: 0; font-size: 16px; line-height: 1.35; }

.postmini { display: none; }

/* process spine */
.spine { background: var(--wash); border-bottom: 1px solid var(--teal); }
.spine .wrap { padding: 0 24px; display: flex; gap: 0; overflow-x: auto; }
.spine a { flex: 0 0 auto; display: flex; align-items: center; gap: 8px; padding: 13px 18px 13px 0;
  margin-right: 18px; font-size: 16px; text-decoration: none; color: var(--ink); border-bottom: 3px solid transparent; }
.spine a:hover { border-bottom-color: var(--amber); }
.spine .no { font-family: var(--mono); font-size: 14px; color: var(--amber-dark); }

/* layout */
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
main { display: block; }
.shell { display: grid; grid-template-columns: repeat(12, 1fr); gap: 36px; padding: 44px 0 20px; }
.main { grid-column: 1 / span 8; min-width: 0; }
.side { grid-column: 9 / span 4; min-width: 0; }
.full { grid-column: 1 / -1; }
.lede { font-size: 1.2rem; line-height: 1.55; color: #263b38; max-width: 62ch; }
.hint { font-size: 16px; color: var(--mute); }
.note { background: var(--card); border: 1px solid var(--teal); border-left: 4px solid var(--petrol-2);
  padding: 16px 18px; margin: 18px 0; font-size: 16px; }
.note b { display: block; margin-bottom: 4px; }
.warn { background: #fff8ec; border: 1px solid #e2c79a; border-left: 4px solid var(--amber); padding: 16px 18px; margin: 18px 0; }
.warn b { display: block; margin-bottom: 4px; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px;
  padding: 12px 20px; background: var(--petrol); color: #fff; text-decoration: none;
  font-weight: 650; font-size: 16px; border: 2px solid var(--petrol); border-radius: 2px; }
.btn:hover { background: var(--petrol-2); color: #fff; }
.btn.amber { background: var(--amber); border-color: var(--amber); }
.btn.amber:hover { background: var(--amber-dark); border-color: var(--amber-dark); }
.btn.ghost { background: transparent; color: var(--petrol); }
.btn.ghost:hover { background: var(--wash); color: var(--petrol); }
.btnrow { display: flex; flex-wrap: wrap; gap: 12px; margin: 18px 0 8px; }

/* badge bar */
.badgebar { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 16px; }
.badgebar span { font-family: var(--mono); font-size: 14px; letter-spacing: .04em; text-transform: uppercase;
  border: 1px solid var(--teal); background: var(--card); padding: 5px 9px; color: #243b38; }

/* hero */
.hero { padding: 46px 0 10px; }
.hero h1 { max-width: 20ch; }
.hero .lede { margin-top: 8px; }
.compare { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border: 1px solid var(--teal);
  background: var(--card); margin: 30px 0 10px; }
.compare > div { padding: 20px 20px 22px; border-right: 1px solid var(--teal-soft); }
.compare > div:last-child { border-right: 0; }
.compare .lab { color: var(--amber-dark); }
.compare h3 { margin: 6px 0 8px; font-size: 1.05rem; }
.compare p { font-size: 16px; margin-bottom: 0; color: #2b403d; }
.compare .state { font-family: var(--mono); font-size: 14px; color: var(--mute); margin-top: 10px; display: block; }

/* cards and tables */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin: 18px 0; }
.card { background: var(--card); border: 1px solid var(--teal); padding: 18px 18px 20px; }
.card h3 { margin-top: 0; }
.card p { font-size: 16px; margin-bottom: 8px; }
.card a { font-size: 16px; }

.tablewrap { overflow-x: auto; border: 1px solid var(--teal); background: var(--card); margin: 16px 0 24px; }
table { width: 100%; border-collapse: collapse; font-size: 16px; }
th, td { text-align: left; padding: 11px 14px; border-bottom: 1px solid var(--teal-soft); vertical-align: top; }
th { background: var(--wash); color: #243b38; font-size: 14px; }
tr:last-child td { border-bottom: 0; }
td.code { font-family: var(--mono); white-space: nowrap; color: var(--petrol); font-size: 16px; }
td.st { white-space: nowrap; font-family: var(--mono); font-size: 14px; text-transform: uppercase; color: var(--mute); }

/* unit sheet */
.ident { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-bottom: 10px; }
.ident .code { background: var(--petrol); color: #fff; padding: 4px 9px; }
.statuschip { padding: 4px 9px; border: 1px solid var(--teal); color: var(--mute); }
.statuschip.req { border-color: var(--amber); color: var(--amber-dark); }
.answer { font-size: 1.32rem; line-height: 1.45; font-weight: 600; letter-spacing: -.01em;
  border-left: 4px solid var(--amber); padding-left: 16px; margin: 16px 0 26px; max-width: 38ch; }
.sheet section { padding: 6px 0 4px; border-top: 1px solid var(--teal-soft); margin-top: 26px; }
.sheet h2 { font-size: 1.15rem; margin: 0 0 10px; letter-spacing: 0; }
.sheet h2 .n { color: var(--amber-dark); margin-right: 8px; }
.sheet p { max-width: 64ch; }
.evtable { font-size: 16px; }
.evtable td { padding: 10px 12px; }
.evtable .cat { font-family: var(--mono); font-size: 14px; white-space: nowrap; color: var(--petrol); }
.pager { display: flex; justify-content: space-between; gap: 18px; border-top: 1px solid var(--teal); margin-top: 34px; padding-top: 16px; font-size: 16px; }
.pager a { max-width: 45%; }

/* side cards */
.sidecard { background: var(--card); border: 1px solid var(--teal); padding: 16px 18px; margin-bottom: 18px; }
.sidecard h2 { font-size: 1rem; margin: 0 0 10px; letter-spacing: 0; }
.sidecard dl { margin: 0; }
.sidecard dt { font-family: var(--mono); font-size: 14px; letter-spacing: .07em; text-transform: uppercase; color: var(--mute); margin-top: 10px; }
.sidecard dd { margin: 2px 0 0; font-size: 16px; line-height: 1.4; }
.sidecard ul { padding-left: 1.1em; font-size: 16px; }

/* check */
fieldset { border: 1px solid var(--teal); background: var(--card); padding: 18px; margin: 0 0 14px; }
legend { font-weight: 700; font-size: 17px; padding: 0 6px; }
.field { margin: 0 0 16px; }
.field:last-child { margin-bottom: 0; }
.field label.grp { display: block; font-weight: 650; margin-bottom: 8px; }
.field .hint { margin-bottom: 8px; }
.opts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.opts label { display: flex; gap: 9px; align-items: flex-start; min-height: 44px; padding: 9px 11px;
  border: 1px solid var(--teal-soft); background: #fbfdfc; font-size: 16px; line-height: 1.4; cursor: pointer; }
.opts label:hover { border-color: var(--teal); }
.opts input { width: 24px; height: 24px; margin-top: 0; flex: 0 0 auto; accent-color: #a85a00; }
.opts label:has(input:checked) { border-color: var(--amber); background: #fff8ec; }
#result { margin-top: 22px; }
.resultcard { border: 2px solid var(--petrol); background: var(--card); padding: 22px; }
.resultcard .band { font-family: var(--mono); text-transform: uppercase; letter-spacing: .08em; font-size: 14px; color: var(--amber-dark); }
.resultcard h2 { margin: 6px 0 8px; }
.resultcard ol { padding-left: 1.25em; }
.resultcard .facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 16px 0; }
.resultcard .facts div { border-top: 1px solid var(--teal); padding-top: 8px; }
.resultcard .facts b { display: block; font-size: 1.5rem; }
.resultcard .facts span { font-size: 14px; color: var(--mute); }

/* pricing */
.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin: 22px 0; }
.plan { background: var(--card); border: 1px solid var(--teal); padding: 22px; }
.plan.feature { border: 2px solid var(--petrol); }
.plan .amount { font-size: 2.1rem; font-weight: 750; margin: 8px 0 2px; letter-spacing: -.03em; }
.plan .amount small { font-size: 1rem; font-weight: 400; color: var(--mute); letter-spacing: 0; }
.plan ul { margin-top: 10px; }
.plan li { font-size: 16px; }

/* answers */
.qa { border-top: 1px solid var(--teal-soft); padding: 18px 0; }
.qa h2 { font-size: 1.15rem; margin: 0 0 8px; }
.qa p { margin-bottom: 8px; }

/* footer */
footer { background: var(--petrol); color: #cfe0dd; margin-top: 50px; }
footer .wrap { padding: 30px 24px 34px; display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 26px; }
footer a { color: #eaf2f0; }
footer p { font-size: 16px; max-width: 52ch; }
footer .lab { color: #9dbab6; margin-bottom: 8px; display: block; }
footer ul { list-style: none; padding: 0; margin: 0; }
footer li { margin-bottom: 6px; font-size: 16px; }
.footnote { border-top: 1px solid #2c5d62; padding: 14px 24px; font-size: 14px; color: #a9c6c2; }
.footnote .wrap { display: block; padding: 0; max-width: var(--max); margin: 0 auto; }

/* responsive */
@media (max-width: 900px) {
  .shell { grid-template-columns: 1fr; gap: 24px; padding-top: 30px; }
  .main, .side, .full { grid-column: 1 / -1; }
  .position .wrap { display: none; }
  .postmini { display: block; margin: 0; padding: 10px 16px; font-size: 16px; line-height: 1.35; color: #eaf2f0; max-width: none; }
  .position div:nth-child(2) { border-right: 0; }
  .position div:nth-child(1), .position div:nth-child(2) { border-bottom: 1px solid #2c5d62; }
  .compare { grid-template-columns: 1fr; }
  .compare > div { border-right: 0; border-bottom: 1px solid var(--teal-soft); }
  figure[style*="grid-template-columns:1.15fr"] { grid-template-columns: 1fr !important; }
  .cards { grid-template-columns: 1fr; }
  .plans { grid-template-columns: 1fr; }
  .opts { grid-template-columns: 1fr; }
  .resultcard .facts { grid-template-columns: 1fr; }
  .mast .wrap { flex-direction: column; align-items: flex-start; gap: 6px; }
  footer .wrap { grid-template-columns: 1fr; }
}
@media (max-width: 700px) {
  table.clauseTable, table.clauseTable thead, table.clauseTable tbody, table.clauseTable tr, table.clauseTable td { display: block; }
  table.clauseTable thead { display: none; }
  table.clauseTable tr { padding: 12px 14px; border-bottom: 1px solid var(--teal); background: var(--card); }
  table.clauseTable tr:last-child { border-bottom: 0; }
  table.clauseTable td { border: 0; padding: 2px 0; }
  table.clauseTable td.code { font-size: 14px; color: var(--amber-dark); }
}
@media (max-width: 480px) {
  .wrap, .mast .wrap, .position .wrap, .spine .wrap, footer .wrap { padding-left: 16px; padding-right: 16px; }
  .mast .wrap { flex-direction: row; align-items: center; gap: 10px; padding-top: 10px; padding-bottom: 10px; }
  .brand { flex: 0 0 auto; }
  .brand b { font-size: .95rem; }
  .brand span { display: none; }
  .mast nav { flex-wrap: nowrap; overflow-x: auto; gap: 14px; -webkit-overflow-scrolling: touch; }
  .mast nav a { white-space: nowrap; font-size: 15px; }
  .position .wrap { display: none; }
  .postmini { display: block; margin: 0; padding: 10px 16px; font-size: 16px; line-height: 1.35; color: #eaf2f0; max-width: none; }
  .position div:nth-child(2n) { border-right: 0; }
  .position div { border-bottom: 1px solid #2c5d62; padding: 8px 10px 8px 0; }
  .position dt { margin-bottom: 1px; }
  .position dd { font-size: 16px; line-height: 1.25; }
  .spine { display: none; }
  .hero { padding-top: 22px; }
  .hero h1 { font-size: 2rem; }
  .answer { font-size: 1.2rem; }
}
