/* DIGI117 service sites. One system for all four domains; each page sets --accent in its <html style>.
   Plain white paper, ink text, IBM Plex Sans. The one memorable thing per page is the hero "artifact":
   the actual deliverable (a call summary, an inventory, a proposal), shown as a document. */
@font-face { font-family: "Plex"; src: url(/fonts/ibm-plex-sans-latin-400-normal.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Plex"; src: url(/fonts/ibm-plex-sans-latin-500-normal.woff2) format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Plex"; src: url(/fonts/ibm-plex-sans-latin-600-normal.woff2) format("woff2"); font-weight: 600; font-display: swap; }

:root {
  --paper: #ffffff; --mist: #f3f5f8; --ink: #121a26; --slate: #4a5565; --rule: #dde2e9; --brand: #d9363e;
  --accent: #1e3a5f; --accent-ink: #ffffff; --accent-soft: color-mix(in srgb, var(--accent) 9%, white);
  --font: "Plex", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --wrap: 1160px; --gutter: 32px; --section: 104px; --radius: 10px;
}
@media (max-width: 760px) { :root { --gutter: 16px; --section: 64px; } }

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 80px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 1.0625rem/1.65 var(--font); }
h1, h2, h3 { font-weight: 600; margin: 0; color: var(--ink); }
h1 { font-size: clamp(2.375rem, 4.6vw, 3.5rem); line-height: 1.06; letter-spacing: -0.028em; }
h2 { font-size: clamp(1.75rem, 3vw, 2.375rem); line-height: 1.12; letter-spacing: -0.022em; }
h3 { font-size: 1.1875rem; line-height: 1.35; letter-spacing: -0.01em; }
p { margin: 0 0 1em; max-width: 64ch; }
a { color: var(--accent); text-underline-offset: 3px; }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; border-radius: 2px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* header: a thin ink bar keeps the DIGI117 mark on the dark ground it was drawn for */
.top { background: var(--ink); position: sticky; top: 0; z-index: 10; }
.top .wrap { display: flex; align-items: center; gap: 28px; min-height: 64px; }
.top .logo { line-height: 0; margin-right: auto; }
.top nav { display: flex; gap: 24px; }
.top nav a { color: #c9d1dc; text-decoration: none; font-size: .9375rem; }
.top nav a:hover { color: #fff; }
.top .btn { padding: 9px 16px; font-size: .9375rem; }
@media (max-width: 760px) { .top nav { display: none; } }

.btn { display: inline-block; background: var(--accent); color: var(--accent-ink); text-decoration: none; font: 500 1rem/1.2 var(--font); padding: 15px 22px; border-radius: 6px; border: 0; cursor: pointer; }
.btn:hover { background: color-mix(in srgb, var(--accent) 86%, black); }
.btn-line { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--rule); }
.btn-line:hover { background: var(--mist); }

/* hero */
.hero { padding: 88px 0 72px; }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 64px; align-items: center; }
.hero .lead { font-size: 1.25rem; line-height: 1.55; color: var(--slate); margin: 24px 0 0; max-width: 34em; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.hero .note { font-size: .9375rem; color: var(--slate); margin-top: 18px; }
@media (max-width: 960px) { .hero { padding: 56px 0 48px; } .hero .wrap { grid-template-columns: 1fr; gap: 48px; } }

/* the artifact: a document, not a card kit. Paper on paper with a header rule and a stamp. */
.doc { background: var(--paper); border: 1px solid var(--rule); border-radius: var(--radius); box-shadow: 0 1px 0 var(--rule), 0 24px 48px -28px rgba(18, 26, 38, .35); font-size: .9375rem; position: relative; }
.doc-head { display: flex; justify-content: space-between; gap: 12px; padding: 14px 20px; border-bottom: 1px solid var(--rule); color: var(--slate); font-size: .8125rem; }
.doc-head b { color: var(--ink); font-weight: 500; }
.doc-body { padding: 20px; }
.doc-body h3 { font-size: 1.0625rem; margin-bottom: 4px; }
.doc dl { display: grid; grid-template-columns: max-content 1fr; gap: 8px 18px; margin: 16px 0 0; }
.doc dt { color: var(--slate); }
.doc dd { margin: 0; font-weight: 500; }
.doc .flag { display: inline-block; font-size: .8125rem; font-weight: 500; padding: 2px 9px; border-radius: 99px; background: var(--accent-soft); color: var(--accent); }
.doc .flag.warn { background: #fdecec; color: #a12a2f; }
.doc-foot { padding: 12px 20px; border-top: 1px dashed var(--rule); color: var(--slate); font-size: .8125rem; }
.doc .lines { margin: 14px 0 0; padding: 0; list-style: none; border-left: 2px solid var(--accent-soft); }
.doc .lines li { padding: 3px 0 3px 12px; color: var(--slate); }
.doc .lines li b { color: var(--ink); font-weight: 500; }
.example { position: absolute; top: -11px; right: 16px; background: var(--ink); color: #fff; font-size: .75rem; padding: 2px 10px; border-radius: 99px; }

/* the one moving moment: the artifact's lines arrive in order, once */
@media (prefers-reduced-motion: no-preference) {
  .doc .lines li { opacity: 0; animation: arrive .5s ease-out forwards; }
  .doc .lines li:nth-child(1) { animation-delay: .4s; } .doc .lines li:nth-child(2) { animation-delay: 1s; }
  .doc .lines li:nth-child(3) { animation-delay: 1.6s; } .doc .lines li:nth-child(4) { animation-delay: 2.2s; }
  .doc .lines li:nth-child(5) { animation-delay: 2.8s; } .doc .lines li:nth-child(6) { animation-delay: 3.4s; }
  @keyframes arrive { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
}

/* company facts under the hero: plain statements, separated by rules */
.facts { border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.facts ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); }
.facts li { padding: 22px 24px 22px 0; color: var(--slate); font-size: .9375rem; }
.facts li + li { padding-left: 24px; border-left: 1px solid var(--rule); }
.facts strong { display: block; color: var(--ink); font-weight: 600; font-size: 1.0625rem; }
@media (max-width: 860px) { .facts ul { grid-template-columns: 1fr 1fr; } .facts li:nth-child(3) { border-left: 0; padding-left: 0; } .facts li:nth-child(n+3) { border-top: 1px solid var(--rule); } }

section.block { padding: var(--section) 0; }
section.tint { background: var(--mist); }
.intro { max-width: 46rem; margin-bottom: 48px; }
.intro p { color: var(--slate); font-size: 1.125rem; margin-top: 16px; }

/* steps: a real sequence, so numbered */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; counter-reset: s; }
.steps li { counter-increment: s; border-top: 2px solid var(--ink); padding-top: 18px; }
.steps li::before { content: counter(s); display: block; font-weight: 600; color: var(--accent); margin-bottom: 10px; }
.steps h3 { margin-bottom: 8px; }
.steps p { color: var(--slate); font-size: .9875rem; margin: 0; }
@media (max-width: 960px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }

.two { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; }
@media (max-width: 860px) { .two { grid-template-columns: 1fr; gap: 40px; } }
.ticks { list-style: none; padding: 0; margin: 20px 0 0; }
.ticks li { padding: 11px 0 11px 30px; border-bottom: 1px solid var(--rule); position: relative; }
.ticks li::before { content: ""; position: absolute; left: 2px; top: 1.05em; width: 11px; height: 6px; border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(-45deg); }
.ticks.no li::before { width: 12px; height: 0; border-left: 0; border-bottom: 2px solid var(--slate); transform: none; top: 1.2em; }

/* price: one panel, numbers large, no humour */
.price { display: grid; grid-template-columns: 1.1fr 1fr; border: 1px solid var(--rule); border-radius: var(--radius); background: var(--paper); overflow: hidden; }
.price > div { padding: 40px; }
.price > div + div { border-left: 1px solid var(--rule); background: var(--mist); }
.price .amount { font-size: clamp(2.5rem, 5vw, 3.5rem); font-weight: 600; letter-spacing: -0.03em; line-height: 1; margin: 18px 0 6px; }
.price .per { color: var(--slate); }
.price .lines { margin: 0; }
.price .row { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--rule); }
.price .row:last-child { border-bottom: 0; }
.price .row span:last-child { font-weight: 600; white-space: nowrap; }
@media (max-width: 860px) { .price { grid-template-columns: 1fr; } .price > div { padding: 28px 22px; } .price > div + div { border-left: 0; border-top: 1px solid var(--rule); } }

.table-wrap { overflow-x: auto; border: 1px solid var(--rule); border-radius: var(--radius); background: var(--paper); }
table { border-collapse: collapse; width: 100%; min-width: 560px; }
th, td { text-align: left; padding: 14px 18px; border-bottom: 1px solid var(--rule); vertical-align: top; font-size: .9875rem; }
thead th { color: var(--slate); font-weight: 500; background: var(--mist); }
tbody tr:last-child > * { border-bottom: 0; }
td .past { color: #a12a2f; font-weight: 500; }

/* FAQ */
.faq { max-width: 52rem; }
.faq details { border-bottom: 1px solid var(--rule); }
.faq summary { cursor: pointer; list-style: none; padding: 20px 40px 20px 0; font-weight: 500; font-size: 1.0625rem; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 6px; top: 50%; width: 10px; height: 10px; border-right: 2px solid var(--slate); border-bottom: 2px solid var(--slate); transform: translateY(-70%) rotate(45deg); transition: transform .2s; }
.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq details p { color: var(--slate); padding-bottom: 20px; margin: 0; }
@media (prefers-reduced-motion: reduce) { .faq summary::after { transition: none; } }

/* contact */
.contact .wrap { display: grid; grid-template-columns: .9fr 1.1fr; gap: 64px; align-items: start; }
@media (max-width: 960px) { .contact .wrap { grid-template-columns: 1fr; gap: 40px; } }
.contact .side p { color: var(--slate); }
.contact dl { margin: 28px 0 0; display: grid; gap: 14px; }
.contact dt { font-size: .875rem; color: var(--slate); }
.contact dd { margin: 0; font-weight: 500; }
form.lead { background: var(--paper); border: 1px solid var(--rule); border-radius: var(--radius); padding: 32px; }
@media (max-width: 560px) { form.lead { padding: 22px 18px; } }
.field { display: grid; gap: 6px; margin-bottom: 18px; }
.field label { font-size: .9375rem; font-weight: 500; }
.field .opt { color: var(--slate); font-weight: 400; }
.field input, .field textarea, .field select { font: inherit; font-size: 1rem; color: var(--ink); background: var(--paper); border: 1px solid #c4ccd7; border-radius: 6px; padding: 12px 14px; width: 100%; }
.field input:focus, .field textarea:focus, .field select:focus { outline: 2px solid var(--accent); outline-offset: 0; border-color: var(--accent); }
.field textarea { min-height: 120px; resize: vertical; }
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
@media (max-width: 560px) { .pair { grid-template-columns: 1fr; } }
.hp { position: absolute; left: -9999px; }
form.lead .btn { width: 100%; padding: 16px; }
.form-note { font-size: .875rem; color: var(--slate); margin: 14px 0 0; }
.form-status { margin: 14px 0 0; font-weight: 500; }
.form-status.ok { color: #067647; } .form-status.err { color: #a12a2f; }

.foot { background: var(--ink); color: #aab4c2; padding: 48px 0; font-size: .9375rem; }
.foot .wrap { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
.foot p { margin: 0 0 6px; }
.foot a { color: #fff; }
.foot strong { color: #fff; font-weight: 500; display: block; margin-bottom: 8px; }
@media (max-width: 760px) { .foot .wrap { grid-template-columns: 1fr; } }

/* contact sits on paper with a rule above it; the form is the tinted surface */
section.contact { border-top: 1px solid var(--rule); }
section.contact form.lead { background: var(--mist); border-color: transparent; }
section.contact .field input, section.contact .field textarea, section.contact .field select { background: var(--paper); }
