/* Shared styles for pages built on the homepage design system (ink #1E2A2F, yellow #DDB000, Barlow Condensed + IBM Plex Sans). Mirrors index.html. */
:root {
  --ink: #1E2A2F;
  --ink-2: #28363C;
  --logo-white: #F2F2EE;
  --steel: #4B5A61;
  --steel-light: #8A989E;
  --line: #D4DADC;
  --concrete: #EDF0F0;
  --white: #FFFFFF;
  --text: #263439;
  --muted: #5E6C72;
  --yellow: #DDB000;
  --red: #D2453A;
  --green: #2F8A5B;
  --display: "Barlow Condensed", "Arial Narrow", "Roboto Condensed", sans-serif;
  --body: "IBM Plex Sans", -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
  color-scheme: light;
  box-sizing: border-box;
  padding-top: env(safe-area-inset-top, 0px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
*, *::before, *::after { box-sizing: inherit; }
html { scroll-behavior: smooth; scroll-padding-top: calc(env(safe-area-inset-top, 0px) + 72px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; font-family: var(--body); font-size: 17px; line-height: 1.6; color: var(--text); background: var(--white); -webkit-font-smoothing: antialiased; }
h1, h2, h3 { margin: 0; font-family: var(--display); font-weight: 700; line-height: 1.02; color: var(--ink); text-wrap: balance; }
h2 { font-size: clamp(38px, 5vw, 60px); }
h3 { font-size: 28px; font-weight: 700; }
p { margin: 0; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; }
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 24px; }
section { padding: 96px 0; }
.intro { max-width: 640px; margin-bottom: 48px; }
.intro p { margin-top: 16px; font-size: 19px; color: var(--muted); }
.concrete { background: var(--concrete); }

.btn { display: inline-block; font: inherit; font-weight: 600; font-size: 16px; text-decoration: none; padding: 14px 24px; border-radius: 3px; border: 0; cursor: pointer; }
.btn-yellow { background: var(--yellow); color: var(--ink); }
.btn-yellow:hover { background: #E8BA00; }
.btn-ink { background: var(--ink); color: var(--logo-white); }
.btn-ink:hover { background: var(--ink-2); }
.link { font-weight: 600; text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 2px; text-decoration-color: var(--yellow); }

/* Header */
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 10; background: var(--ink); }
header { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 30; background: var(--ink); border-bottom: 1px solid var(--ink-2); }
header .wrap { display: flex; align-items: center; height: 64px; gap: 32px; }
.logo { display: flex; align-items: center; gap: 10px; color: var(--logo-white); text-decoration: none; font-family: var(--display); font-weight: 700; font-size: 24px; }
.logo img { width: 30px; height: 30px; display: block; }
.nav { display: flex; gap: 26px; margin-left: auto; font-size: 15px; }
.nav a { color: #B6C1C5; text-decoration: none; }
.nav a:hover { color: var(--logo-white); }
header .btn { padding: 9px 16px; font-size: 15px; }
@media (max-width: 960px) { .nav { display: none; } header .btn { margin-left: auto; } }

.screen { border: 1px solid var(--line); background: var(--white); font-size: 14px; color: var(--text); }
.hero .screen { border-color: var(--ink-2); box-shadow: 0 24px 60px rgba(0,0,0,.35); }
.screen-top { background: var(--ink); color: var(--logo-white); display: flex; align-items: center; justify-content: space-between; padding: 10px 16px; border-bottom: 1px solid var(--ink-2); }
.screen-top b { font-weight: 600; }
.screen-top span { color: #B6C1C5; font-size: 13px; }
.screen table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.screen th { text-align: left; font-size: 12.5px; color: var(--muted); font-weight: 600; background: #F7F8F8; padding: 9px 12px; border-bottom: 1px solid var(--line); }
.screen td { padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.screen tr:last-child td { border-bottom: 0; }
.area { font-family: var(--display); font-weight: 700; font-size: 15px; color: var(--ink); white-space: nowrap; }
.st { display: inline-flex; align-items: center; gap: 7px; font-weight: 500; white-space: nowrap; }
.st::before { content: ""; width: 8px; height: 8px; border-radius: 50%; }
.st-ok::before { background: var(--green); }
.st-wait::before { background: var(--yellow); }
.st-gap::before { background: var(--red); }
.st-gap { color: var(--red); }
.cap { font-size: 13px; color: var(--steel-light); margin-top: 10px; }
.cta { background: var(--yellow); color: var(--ink); }
.cta .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 24px 48px; }
.cta p { margin-top: 12px; font-size: 18px; max-width: 32em; }

footer { background: var(--ink); color: var(--steel-light); font-size: 14px; padding: 36px 0 44px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 16px 28px; align-items: center; }
footer nav { display: flex; flex-wrap: wrap; gap: 20px; }
footer a { color: #B6C1C5; text-decoration: none; }
footer a:hover { color: var(--logo-white); }
footer .legal { width: 100%; font-size: 13px; }

/* Page head for inner pages */
.page-head { background: var(--ink); color: #C8D0D3; padding: 64px 0 56px; }
.page-head h1 { color: var(--logo-white); font-size: clamp(44px, 5.6vw, 76px); text-transform: uppercase; line-height: .95; max-width: 16em; }
.page-head .sub { margin-top: 20px; font-size: 19px; max-width: 36em; }
.crumb { font-size: 14px; color: var(--steel-light); margin-bottom: 20px; display: flex; flex-wrap: wrap; gap: 8px; }
.crumb a { color: #B6C1C5; text-decoration: none; }
.crumb a:hover { color: var(--logo-white); }
.page-head .link { color: var(--logo-white); }
.cta-alt { margin-top: 12px; font-size: 15px; }
.cta-alt a { font-weight: 600; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--yellow); }


/* Fact lists (case studies, security) */
.facts { display: grid; grid-template-columns: 220px minmax(0, 1fr); margin: 0; border-top: 2px solid var(--ink); }
.facts dt, .facts dd { padding: 16px 0; border-bottom: 1px solid var(--line); margin: 0; }
.facts dt { font-family: var(--display); font-weight: 700; font-size: 21px; color: var(--ink); padding-right: 24px; line-height: 1.2; }
.facts dd { color: var(--text); }
.facts dd p + p { margin-top: 8px; }
@media (max-width: 720px) { .facts { grid-template-columns: 1fr; } .facts dt { border-bottom: 0; padding-bottom: 0; } }

.result-block { border-top: 4px solid var(--yellow); padding-top: 18px; margin-bottom: 48px; }
.result-block b { display: block; font-family: var(--display); font-weight: 700; font-size: clamp(56px, 7vw, 84px); line-height: 1; color: var(--green); }
.result-block .what { margin-top: 6px; font-size: 18px; color: var(--ink); }
.type-label { display: inline-block; margin-top: 12px; font-size: 13px; font-weight: 600; letter-spacing: .02em; color: var(--ink); background: #FBF1CC; border-left: 3px solid var(--yellow); padding: 3px 10px; }
.narrow { max-width: 860px; }
.note { margin-top: 32px; font-size: 15px; color: var(--muted); }

/* Prose blocks (security) */
.prose h2 { font-size: clamp(32px, 4vw, 44px); margin: 56px 0 14px; }
.prose h2:first-child { margin-top: 0; }
.prose p, .prose li { color: var(--text); }
.prose p + p { margin-top: 12px; }
.prose ul { margin: 12px 0 0; padding-left: 22px; }
.prose li + li { margin-top: 6px; }
.prose a { font-weight: 600; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--yellow); }

/* Cards (team, contact) */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.cards > div { border-top: 2px solid var(--yellow); padding-top: 16px; }
.cards h3 { font-size: 26px; }
.cards p { margin-top: 8px; color: var(--muted); }
.cards .role { margin-top: 4px; font-weight: 600; color: var(--ink); font-size: 15px; }
@media (max-width: 860px) { .cards { grid-template-columns: 1fr; gap: 24px; } }
.person { display: grid; grid-template-columns: 160px minmax(0, 1fr); gap: 32px; align-items: start; }
.person img { width: 160px; height: 160px; object-fit: cover; display: block; }
.person .role { margin-top: 6px; font-weight: 600; color: var(--ink); }
.person ul { margin: 14px 0 0; padding-left: 20px; color: var(--text); }
.person li + li { margin-top: 6px; }
@media (max-width: 640px) { .person { grid-template-columns: 1fr; } }
.book { border: 2px solid var(--ink); padding: 32px; display: flex; flex-wrap: wrap; gap: 20px 48px; align-items: center; justify-content: space-between; }
.book h2 { font-size: clamp(32px, 4vw, 44px); }
.book p { margin-top: 8px; color: var(--muted); max-width: 34em; }

/* Inquiry form */
.inq { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 48px; align-items: start; }
.inq h2 { font-size: clamp(32px, 4vw, 44px); }
.inq .lede { margin-top: 12px; font-size: 18px; color: var(--muted); }
.inq-form { border: 2px solid var(--ink); padding: 24px; display: grid; grid-template-columns: 1fr 1fr; gap: 14px 16px; background: var(--white); }
.inq-form .full { grid-column: 1 / -1; }
.inq-form label { display: block; font-size: 14px; font-weight: 600; color: var(--ink); margin-bottom: 6px; }
.inq-form input, .inq-form select, .inq-form textarea { width: 100%; font: inherit; font-size: 16px; padding: 10px 12px; border: 1.5px solid var(--steel-light); border-radius: 3px; background: var(--white); color: var(--text); }
.inq-form textarea { resize: vertical; }
.inq-form :is(input, select, textarea):focus-visible { outline: 3px solid var(--yellow); outline-offset: 1px; border-color: var(--ink); }
.inq-form .btn { justify-self: start; }
.inq-form .btn[disabled] { opacity: .6; cursor: wait; }
.form-msg { grid-column: 1 / -1; padding: 12px 14px; font-size: 15px; border-left: 4px solid; }
.form-msg[hidden] { display: none; }
.form-ok { background: #EAF5EF; border-color: var(--green); color: var(--ink); }
.form-err { background: #FBECEA; border-color: var(--red); color: var(--ink); }
.form-err a { font-weight: 600; }
@media (max-width: 860px) { .inq { grid-template-columns: 1fr; gap: 28px; } }
@media (max-width: 520px) { .inq-form { grid-template-columns: 1fr; } }
