/* ACR Packet. Direction: procurement paperwork, ruled forms, criterion numbers in mono. */
:root {
  --bg: #f7f4ee;
  --card: #fdfbf7;
  --raised: #efe9df;
  --line: rgba(31, 27, 22, 0.1);
  --text: #1f1b16;
  --text-2: #5e554a;
  --muted: #736a5e;
  --ink: #2346b8;
  --ink-hover: #1b3a9c;
  --ink-soft: rgba(35, 70, 184, 0.08);
  --fail: #b42318;
  --fail-soft: rgba(180, 35, 24, 0.08);
  --ok: #17663a;
  --ok-soft: rgba(23, 102, 58, 0.09);
  --wait: #8a5a00;
  --wait-soft: rgba(138, 90, 0, 0.09);
  --sans: "IBM Plex Sans", system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 15px/22px var(--sans); }
a { color: var(--ink); text-underline-offset: 3px; }
a:hover { color: var(--ink-hover); }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; border-radius: 4px; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 32px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; background: var(--card); padding: 8px 12px; z-index: 10; }

/* nav */
.nav { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: 17px; color: var(--text); text-decoration: none; }
.brand-mark { width: 20px; height: 20px; border: 1.5px solid var(--text); border-radius: 4px; display: grid; grid-template-rows: repeat(3, 1fr); padding: 3px; gap: 2px; }
.brand-mark span { background: var(--text); border-radius: 1px; }
.brand-mark span:nth-child(2) { background: var(--ink); width: 60%; }
.nav-links { display: flex; align-items: center; gap: 24px; }
.nav-links a { color: var(--text-2); text-decoration: none; font-size: 14px; }
.nav-links a:hover { color: var(--text); }
.nav-links a.btn-primary, .nav-links a.btn-primary:hover { color: #fff; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 44px; padding: 0 20px; border-radius: 8px; font: 500 15px/1 var(--sans); text-decoration: none; border: 1px solid transparent; cursor: pointer; transition: background-color 150ms var(--ease), border-color 150ms var(--ease), transform 120ms var(--ease); }
.btn:active { transform: scale(0.98); }
.btn-primary { background: var(--ink); color: #fff; }
.btn-primary:hover { background: var(--ink-hover); color: #fff; }
.btn-secondary { background: var(--card); color: var(--text); border-color: var(--line); }
.btn-secondary:hover { background: var(--raised); color: var(--text); }
.btn-sm { height: 36px; padding: 0 16px; font-size: 14px; }

/* hero */
.hero { display: grid; grid-template-columns: 1fr 1.05fr; gap: 64px; align-items: center; padding-top: 64px; padding-bottom: 96px; }
.hero h1 { font-size: 52px; line-height: 1.06; letter-spacing: -0.025em; font-weight: 500; margin: 0 0 20px; }
.hero .sub { font-size: 18px; line-height: 28px; color: var(--text-2); margin: 0 0 32px; max-width: 34rem; }
.actions { display: flex; gap: 12px; flex-wrap: wrap; }
.fine { margin-top: 16px; font-size: 13px; color: var(--muted); }

/* the moment: a rendered ACR page */
.sheet { margin: 0; min-width: 0; background: var(--card); border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 1px 2px rgba(0,0,0,.05), 0 12px 32px rgba(60, 45, 20, 0.08); }
.sheet .acr thead th:first-child { border-top-left-radius: 0; }
.sheet-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 16px; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.sheet-title { font-weight: 500; font-size: 14px; }
.sheet-meta { font: 400 12px/16px var(--mono); color: var(--muted); }
.acr { width: 100%; border-collapse: collapse; font-size: 13px; line-height: 18px; }
.acr th { text-align: left; font-weight: 500; color: var(--muted); font-size: 12px; padding: 10px 20px; border-bottom: 1px solid var(--line); background: var(--bg); }
.acr td { padding: 12px 20px; border-bottom: 1px solid var(--line); vertical-align: top; }
.acr tr:last-child td { border-bottom: 0; }
.crit { font: 500 12px/18px var(--mono); color: var(--text); white-space: nowrap; }
.crit-name { display: block; font: 400 12px/16px var(--sans); color: var(--muted); }
.lvl { display: inline-block; font-size: 12px; line-height: 20px; padding: 0 8px; border-radius: 4px; white-space: nowrap; }
.lvl-fail { background: var(--fail-soft); color: var(--fail); }
.lvl-part { background: var(--wait-soft); color: var(--wait); }
.lvl-ok { background: var(--ok-soft); color: var(--ok); }
.remark { color: var(--text-2); }
.remark code { font: 400 12px var(--mono); color: var(--text); }
.swatch { display: inline-block; width: 10px; height: 10px; border-radius: 2px; vertical-align: -1px; margin-right: 4px; border: 1px solid var(--line); }
.sheet-foot { flex-wrap: wrap; gap: 8px; padding: 12px 20px; border-top: 1px solid var(--line); font: 400 12px/16px var(--mono); color: var(--muted); display: flex; justify-content: space-between; }

/* sections */
section { padding: 80px 0; border-top: 1px solid var(--line); }
.label { font: 500 12px/16px var(--mono); color: var(--ink); margin: 0 0 12px; }
h2 { font-size: 34px; line-height: 1.15; letter-spacing: -0.015em; font-weight: 500; margin: 0 0 16px; max-width: 40rem; }
.lead { font-size: 17px; line-height: 26px; color: var(--text-2); max-width: 40rem; margin: 0 0 40px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 24px; }
.card h3 { font-size: 16px; line-height: 22px; font-weight: 500; margin: 0 0 8px; }
.card p { margin: 0; color: var(--text-2); font-size: 14px; line-height: 21px; }
.card .src { display: block; margin-top: 12px; font: 400 12px/16px var(--mono); color: var(--muted); }
.card .src a { color: var(--muted); }
.figure { font: 500 28px/1 var(--sans); font-variant-numeric: tabular-nums; margin-bottom: 12px; }

.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; counter-reset: step; }
.steps li { counter-increment: step; padding-top: 16px; border-top: 2px solid var(--text); }
.steps li::before { content: counter(step, decimal-leading-zero); display: block; font: 500 12px/16px var(--mono); color: var(--muted); margin-bottom: 8px; }
.steps h3 { font-size: 16px; font-weight: 500; margin: 0 0 8px; }
.steps p { margin: 0; color: var(--text-2); font-size: 14px; line-height: 21px; }

.contents { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0; border: 1px solid var(--line); border-radius: 12px; background: var(--card); overflow: hidden; }
.contents div { padding: 24px; border-bottom: 1px solid var(--line); }
.contents div:nth-child(odd) { border-right: 1px solid var(--line); }
.contents div:nth-last-child(-n+2) { border-bottom: 0; }
.contents h3 { font-size: 16px; font-weight: 500; margin: 0 0 8px; }
.contents p { margin: 0; color: var(--text-2); font-size: 14px; line-height: 21px; }
.file { font: 400 12px/16px var(--mono); color: var(--muted); display: block; margin-bottom: 8px; }

.limits { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
.limits ul { margin: 0; padding-left: 20px; color: var(--text-2); }
.limits li { margin-bottom: 8px; }
.limits h3 { font-size: 16px; font-weight: 500; margin: 0 0 12px; }

.price { display: flex; flex-direction: column; }
.price .amount { font: 500 40px/1 var(--sans); font-variant-numeric: tabular-nums; margin: 8px 0 4px; }
.price .per { color: var(--muted); font-size: 13px; margin-bottom: 20px; }
.price ul { margin: 0 0 24px; padding-left: 20px; color: var(--text-2); font-size: 14px; line-height: 21px; flex: 1; }
.price li { margin-bottom: 6px; }

.faq details { border-bottom: 1px solid var(--line); padding: 16px 0; }
.faq summary { cursor: pointer; font-weight: 500; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--mono); color: var(--muted); }
.faq details[open] summary::after { content: "−"; }
.faq p { color: var(--text-2); margin: 12px 0 0; max-width: 46rem; }

footer { border-top: 1px solid var(--line); padding: 32px 0 48px; color: var(--muted); font-size: 13px; }
footer .wrap { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; }

/* forms */
.form { display: grid; gap: 16px; max-width: 560px; }
.field label { display: block; font-weight: 500; font-size: 14px; margin-bottom: 6px; }
.field .hint { display: block; color: var(--muted); font-size: 13px; margin-top: 4px; }
.field input, .field select, .field textarea { width: 100%; font: 400 15px/22px var(--sans); color: var(--text); background: var(--card); border: 1px solid rgba(31, 27, 22, 0.22); border-radius: 8px; padding: 10px 12px; }
.field textarea { min-height: 96px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--ink); outline-offset: 0; border-color: var(--ink); }
.check { display: flex; gap: 8px; align-items: flex-start; font-size: 14px; color: var(--text-2); }
.check input { margin-top: 4px; }
.notice { padding: 16px 20px; border-radius: 10px; background: var(--card); border: 1px solid var(--line); }
.notice[hidden] { display: none; }
.page { padding: 48px 0 96px; }
.page h1 { font-size: 36px; line-height: 1.15; font-weight: 500; letter-spacing: -0.015em; margin: 0 0 12px; }

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; gap: 40px; padding-top: 32px; padding-bottom: 64px; }
  .hero h1 { font-size: 38px; }
  .grid-3, .grid-2, .steps, .limits, .contents { grid-template-columns: 1fr; }
  .contents div { border-right: 0 !important; border-bottom: 1px solid var(--line) !important; }
  .contents div:last-child { border-bottom: 0 !important; }
  .nav-links a:not(.btn) { display: none; }
  .wrap { padding: 0 16px; }
  section { padding: 56px 0; }
  h2 { font-size: 28px; }
  .acr th:nth-child(3), .acr td:nth-child(3) { display: none; }
  .acr th, .acr td { padding-left: 12px; padding-right: 12px; }
  .lvl, .crit { white-space: normal; }
}
@media (prefers-reduced-motion: no-preference) {
  .hero > * { animation: rise 400ms var(--ease) both; }
  .hero > *:nth-child(2) { animation-delay: 60ms; }
}
@keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
