/* Nuvtek — light, typographic, grid-led.
   White paper, near-black ink, hairline rules. Petrol is the one accent; orange appears only in the mark
   and as a severity colour, the thread back to SurfaceGuard. */

:root {
    --paper: #fbfbfa;
    --paper-2: #f2f3f1;
    --ink: #111517;
    --ink-2: #3b4447;
    --muted: #677175;
    --rule: #dfe2e0;
    --rule-strong: #c4c9c7;
    --accent: #0b5a69;
    --accent-2: #084652;
    --accent-soft: #e6eff0;
    --signal: #e3742f;
    --crit: #c8372d;
    --high: #d9692b;
    --med: #b8901d;
    --low: #2f8a57;
    --sans: "IBM Plex Sans", "Segoe UI", system-ui, sans-serif;
    --mono: "IBM Plex Mono", ui-monospace, Consolas, monospace;
    --wrap: 1180px;
    color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: var(--paper); scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); font-size: 17px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
a { color: var(--accent); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--accent-2); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
h1, h2, h3, h4 { margin: 0; font-weight: 500; letter-spacing: -0.02em; line-height: 1.12; text-wrap: balance; }
h1 { font-size: clamp(2.3rem, 5.2vw, 4rem); letter-spacing: -0.03em; }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); }
h3 { font-size: 1.15rem; letter-spacing: -0.01em; line-height: 1.3; font-weight: 600; }
p { margin: 0; }
p + p { margin-top: 1em; }
strong { font-weight: 600; }
::selection { background: var(--accent); color: #fff; }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

.skip { position: absolute; left: -9999px; top: 8px; z-index: 20; padding: 10px 14px; background: var(--ink); color: #fff; }
.skip:focus { left: 16px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 max(20px, env(safe-area-inset-left, 0px)); }

.mono { font-family: var(--mono); font-size: 0.8rem; letter-spacing: 0.02em; color: var(--muted); }
.lede { font-size: clamp(1.08rem, 1.6vw, 1.25rem); color: var(--ink-2); line-height: 1.55; max-width: 38em; }

/* Header */

.site-header { border-bottom: 1px solid var(--rule); background: var(--paper); position: sticky; top: 0; z-index: 10; }
.site-header .wrap { display: flex; align-items: center; gap: 32px; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 600; font-size: 1.15rem; letter-spacing: -0.02em; }
.brand:hover { color: var(--ink); }
.brand svg { width: 26px; height: 26px; flex: none; }
.main-nav { display: flex; gap: 28px; margin-left: auto; }
.main-nav a { color: var(--ink-2); text-decoration: none; font-size: 0.95rem; padding: 6px 0; border-bottom: 1px solid transparent; }
.main-nav a:hover { color: var(--ink); border-bottom-color: var(--rule-strong); }
.main-nav a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--ink); }
.menu-toggle { display: none; margin-left: auto; background: none; border: 1px solid var(--rule-strong); padding: 7px 12px; font: inherit; font-size: 0.9rem; color: var(--ink); cursor: pointer; }

/* Buttons */

.btn { display: inline-flex; align-items: center; gap: 10px; padding: 12px 20px; border: 1px solid var(--ink); background: var(--ink); color: #fff; text-decoration: none; font-size: 0.95rem; font-weight: 500; line-height: 1.2; cursor: pointer; font-family: inherit; transition: background .15s, border-color .15s; }
.btn:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn-line { background: transparent; color: var(--ink); border-color: var(--rule-strong); }
.btn-line:hover { background: transparent; border-color: var(--ink); color: var(--ink); }
.btn .arrow { font-family: var(--mono); }
.header-cta { padding: 9px 16px; }

/* Hero */

.hero { padding: clamp(56px, 9vw, 112px) 0 clamp(48px, 7vw, 88px); border-bottom: 1px solid var(--rule); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 88px); align-items: end; }
.hero h1 { margin: 22px 0 26px; max-width: 14em; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }

.facts { margin: 0; border-top: 1px solid var(--ink); }
.facts div { display: grid; grid-template-columns: 8.5em 1fr; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--rule); font-size: 0.95rem; }
.facts dt { font-family: var(--mono); font-size: 0.78rem; color: var(--muted); padding-top: 3px; }
.facts dd { margin: 0; color: var(--ink); }

.page-hero { padding: clamp(48px, 8vw, 96px) 0 clamp(40px, 6vw, 64px); border-bottom: 1px solid var(--rule); }
.page-hero h1 { margin: 18px 0 22px; font-size: clamp(2.1rem, 4.4vw, 3.3rem); max-width: 16em; }

/* Sections: numbered label column + content */

.section { padding: clamp(56px, 8vw, 104px) 0; border-bottom: 1px solid var(--rule); }
.section.alt { background: var(--paper-2); }
.sec-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 3fr); gap: clamp(24px, 5vw, 64px); }
.sec-label { font-family: var(--mono); font-size: 0.8rem; color: var(--muted); padding-top: 10px; }
.sec-label b { color: var(--ink); font-weight: 500; margin-right: 10px; }
.sec-head h2 { max-width: 18em; }
.sec-head p { margin-top: 18px; }

.two-col { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(28px, 5vw, 64px); margin-top: 48px; }

/* SurfaceGuard block */

.product { margin-top: 48px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: clamp(28px, 5vw, 56px); align-items: start; }
.product-name { display: flex; align-items: center; gap: 12px; font-weight: 600; font-size: 1.3rem; letter-spacing: -0.02em; }
.product-name svg { width: 30px; height: 30px; }
.product p { margin-top: 14px; color: var(--ink-2); }
.ticks { list-style: none; padding: 0; margin: 24px 0 0; border-top: 1px solid var(--rule); }
.ticks li { padding: 10px 0 10px 26px; border-bottom: 1px solid var(--rule); position: relative; font-size: 0.97rem; }
.ticks li::before { content: ""; position: absolute; left: 2px; top: 19px; width: 10px; height: 1.5px; background: var(--accent); }
.price-line { margin-top: 22px; font-size: 0.95rem; color: var(--ink-2); }
.price-line b { color: var(--ink); font-weight: 600; }
.product .actions { margin-top: 26px; display: flex; flex-wrap: wrap; gap: 12px; }

/* Inventory extract */

.extract { border: 1px solid var(--rule-strong); background: #fff; overflow-x: auto; min-width: 0; font-family: var(--mono); font-size: 0.8rem; }
.extract-head { display: flex; justify-content: space-between; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--rule-strong); color: var(--muted); font-size: 0.74rem; }
.extract table { width: 100%; border-collapse: collapse; }
.extract th { text-align: left; font-weight: 500; color: var(--muted); font-size: 0.72rem; padding: 10px 16px 8px; border-bottom: 1px solid var(--rule); }
.extract td { padding: 11px 16px; border-bottom: 1px solid var(--rule); vertical-align: top; color: var(--ink); }
.extract tr:last-child td { border-bottom: 0; }
.extract td.note { color: var(--ink-2); font-family: var(--sans); font-size: 0.86rem; }
.sev { display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; }
.sev::before { content: ""; width: 8px; height: 8px; background: currentColor; }
.sev.crit { color: var(--crit); } .sev.high { color: var(--high); } .sev.med { color: var(--med); } .sev.low { color: var(--low); }
.extract-foot { padding: 10px 16px; border-top: 1px solid var(--rule-strong); color: var(--muted); font-size: 0.72rem; }

/* Steps */

.steps { list-style: none; padding: 0; margin: 48px 0 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--ink); }
.steps li { padding: 20px 24px 8px 0; }
.steps li + li { padding-left: 24px; border-left: 1px solid var(--rule); }
.steps .mono { display: block; margin-bottom: 26px; }
.steps p { margin-top: 10px; color: var(--ink-2); font-size: 0.95rem; }

/* Principles */

.rows { margin: 48px 0 0; border-top: 1px solid var(--ink); }
.rows > div { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); gap: clamp(20px, 4vw, 48px); padding: 24px 0; border-bottom: 1px solid var(--rule); }
.rows p { color: var(--ink-2); }

/* Audience */

.audience h3 { margin-bottom: 10px; }
.audience p { color: var(--ink-2); }
.audience > div { border-top: 1px solid var(--ink); padding-top: 20px; }

/* Closing band */

.closing { padding: clamp(56px, 8vw, 96px) 0; background: var(--ink); color: #fff; }
.closing .wrap { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 40px; align-items: end; }
.closing h2 { color: #fff; max-width: 14em; }
.closing p { color: #b9c1c3; margin-top: 16px; max-width: 32em; }
.closing .contact-block { border-top: 1px solid #3a4245; }
.closing .contact-block a { display: flex; justify-content: space-between; align-items: center; padding: 16px 0; border-bottom: 1px solid #3a4245; color: #fff; text-decoration: none; }
.closing .contact-block a:hover { color: #8fd0db; }
.closing .contact-block span { font-family: var(--mono); font-size: 0.78rem; color: #8d979a; }

/* Prose pages */

.prose { max-width: 44em; }
.prose h2 { font-size: 1.5rem; margin: 44px 0 14px; }
.prose h3 { margin: 26px 0 8px; font-size: 1.05rem; }
.prose p, .prose li { color: var(--ink-2); }
.prose ul { padding-left: 1.2em; margin: 12px 0 0; }
.prose li { margin-bottom: 6px; }
.prose .meta { font-family: var(--mono); font-size: 0.8rem; color: var(--muted); }
.placeholder { background: #fdf0d8; color: #7a5300; padding: 0 4px; font-family: var(--mono); font-size: 0.88em; }

/* Contact */

.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: clamp(32px, 6vw, 80px); align-items: start; }
.contact-grid .facts { margin-top: 8px; }
.contact-note { margin-top: 28px; padding: 16px 18px; border-left: 2px solid var(--signal); background: var(--paper-2); font-size: 0.93rem; color: var(--ink-2); }
form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.field { display: grid; gap: 6px; }
.field.full, .check, .submit, .form-status { grid-column: 1 / -1; }
label { font-size: 0.88rem; font-weight: 500; }
input, select, textarea { font: inherit; font-size: 1rem; color: var(--ink); background: #fff; border: 1px solid var(--rule-strong); border-radius: 0; padding: 11px 12px; width: 100%; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
textarea { min-height: 150px; resize: vertical; }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; font-size: 0.92rem; color: var(--ink-2); }
.check input { width: 18px; height: 18px; margin-top: 3px; flex: none; accent-color: var(--accent); }
.submit { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; padding-top: 8px; border-top: 1px solid var(--rule); }
.submit small { color: var(--muted); max-width: 26em; }
.form-status { font-size: 0.95rem; min-height: 1.5em; }
.form-status.ok { color: var(--low); }
.form-status.err { color: var(--crit); }
.hp { position: absolute; left: -9999px; }

/* Footer */

.site-footer { padding: 56px 0 32px; font-size: 0.92rem; }
.footer-grid { display: grid; grid-template-columns: minmax(0, 2fr) repeat(3, minmax(0, 1fr)); gap: 32px; padding-bottom: 40px; border-bottom: 1px solid var(--rule); }
.footer-grid p { color: var(--muted); margin-top: 14px; max-width: 26em; }
.footer-grid h4 { font-family: var(--mono); font-weight: 500; font-size: 0.75rem; letter-spacing: 0.04em; color: var(--muted); margin-bottom: 12px; text-transform: uppercase; }
.footer-grid a:not(.brand) { display: block; color: var(--ink-2); text-decoration: none; padding: 3px 0; }
.footer-grid a:not(.brand):hover { color: var(--accent); }
.legal { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 22px; color: var(--muted); font-size: 0.84rem; }

/* Responsive */

@media (max-width: 1100px) {
    .product { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 980px) {
    .hero-grid, .product, .contact-grid, .closing .wrap { grid-template-columns: minmax(0, 1fr); }
    .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .steps li:nth-child(3) { padding-left: 0; border-left: 0; }
    .steps li:nth-child(n+3) { border-top: 1px solid var(--rule); }
    .footer-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .footer-grid > div:first-child { grid-column: 1 / -1; }
}

@media (max-width: 820px) {
    .menu-toggle { display: block; }
    .header-cta { display: none; }
    .main-nav { display: none; position: absolute; top: 68px; left: 0; right: 0; flex-direction: column; gap: 0; background: var(--paper); border-bottom: 1px solid var(--rule); padding: 8px 20px 16px; }
    .main-nav.open { display: flex; }
    .main-nav a { padding: 12px 0; border-bottom: 1px solid var(--rule); }
    .main-nav a[aria-current="page"] { border-bottom-color: var(--rule); font-weight: 600; }
    .sec-grid, .two-col, .rows > div { grid-template-columns: minmax(0, 1fr); }
    .rows > div { gap: 8px; }
    .sec-label { padding-top: 0; }
}

@media (max-width: 600px) {
    body { font-size: 16px; }
    .steps { grid-template-columns: minmax(0, 1fr); }
    .steps li, .steps li + li { padding: 18px 0 14px; border-left: 0; }
    .steps li + li { border-top: 1px solid var(--rule); }
    .steps .mono { margin-bottom: 10px; }
    .facts div { grid-template-columns: 7em 1fr; }
    form { grid-template-columns: minmax(0, 1fr); }
    .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .extract th.hide-s, .extract td.hide-s { display: none; }
    .extract td, .extract th { padding-left: 12px; padding-right: 12px; }
}
