:root {
  /* Znaxis brand: navy #0E1A2B, accent #17B897, deep teal #1F6F62 (text-safe accent) */
  --primary: #1F6F62;
  --primary-dark: #17544A;
  --primary-soft: #E8F6F2;
  --accent: #17B897;
  --ink: #0E1A2B;
  --navy: #0E1A2B;
  --muted: #4A5868;
  --line: #DDE4EA;
  --bg: #FFFFFF;
  --bg-alt: #F4F6F8;
  --radius: 12px;
  --wrap: 1080px;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-head: "Space Grotesk", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
}

img, svg { max-width: 100%; display: block; }

a { color: var(--primary); text-underline-offset: 3px; }
a:hover { color: var(--primary-dark); }

h1, h2, h3 { font-family: var(--font-head); line-height: 1.2; margin: 0 0 .6em; color: var(--ink); font-weight: 700; }
h1 { font-size: clamp(2rem, 4.5vw, 2.9rem); letter-spacing: -.02em; }
h2 { font-size: clamp(1.45rem, 3vw, 1.9rem); letter-spacing: -.01em; }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }

.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 12px; background: #fff; padding: 8px 12px; z-index: 10; }

/* Header */
.site-header { border-bottom: 1px solid var(--line); background: #fff; position: sticky; top: 0; z-index: 5; }
.bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand-mark { width: 40px; height: 40px; flex-shrink: 0; }
.brand-mark polygon { fill: var(--accent); }
.brand-name { display: flex; flex-direction: column; gap: 4px; line-height: 1; }
.brand-word { font-family: var(--font-head); font-weight: 700; font-size: 1.45rem; letter-spacing: -.03em; color: var(--navy); }
.brand-sub { font-family: var(--font-body); font-weight: 500; font-size: .6rem; letter-spacing: .34em; text-transform: uppercase; color: var(--primary); padding-left: 2px; }

.nav-toggle { display: none; }
.nav-btn { display: none; }
.nav ul { list-style: none; display: flex; gap: 4px; margin: 0; padding: 0; flex-wrap: wrap; }
.nav a {
  display: block; padding: 8px 11px; border-radius: 8px; text-decoration: none; color: var(--muted);
  font-size: .93rem; font-weight: 500;
}
.nav a:hover { background: var(--primary-soft); color: var(--primary-dark); }
.nav a[aria-current="page"] { color: var(--primary-dark); background: var(--primary-soft); }

@media (max-width: 900px) {
  .nav-btn {
    display: inline-flex; align-items: center; gap: 8px; cursor: pointer; padding: 8px 12px;
    border: 1px solid var(--line); border-radius: 8px; font-size: .95rem; font-weight: 600; color: var(--ink);
  }
  .nav { position: absolute; left: 0; right: 0; top: 68px; background: #fff; border-bottom: 1px solid var(--line); display: none; }
  .nav ul { flex-direction: column; padding: 8px 16px 16px; }
  .nav a { padding: 12px; font-size: 1rem; }
  .nav-toggle:checked ~ .nav { display: block; }
}

/* Buttons */
.btn {
  display: inline-block; padding: 13px 22px; border-radius: 10px; font-weight: 600; text-decoration: none;
  background: var(--primary); color: #fff; border: 1px solid var(--primary);
}
.btn:hover { background: var(--primary-dark); color: #fff; }
.btn-ghost { background: transparent; color: var(--primary); }
.btn-ghost:hover { background: var(--primary-soft); color: var(--primary-dark); }

/* Sections */
section { padding: 64px 0; }
.alt { background: var(--bg-alt); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.eyebrow { text-transform: uppercase; letter-spacing: .08em; font-size: .78rem; font-weight: 700; color: var(--primary); margin-bottom: .6em; }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 660px; }

.hero { padding: 76px 0 64px; background: linear-gradient(180deg, var(--primary-soft) 0%, #fff 100%); }
.hero .actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 26px; }

.grid { display: grid; gap: 20px; }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 900px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .grid-4, .grid-2 { grid-template-columns: 1fr; } }

.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.card p { color: var(--muted); margin: 0; font-size: .97rem; }
.step-num {
  width: 34px; height: 34px; border-radius: 50%; background: var(--accent); color: var(--navy); font-weight: 700; font-family: var(--font-head);
  display: grid; place-items: center; margin-bottom: 12px;
}
.icon { width: 36px; height: 36px; color: var(--primary); margin-bottom: 12px; }

.cta { text-align: center; }
.cta .lead { margin: 0 auto 24px; }

/* Content pages */
.page-head { padding: 56px 0 28px; background: var(--bg-alt); border-bottom: 1px solid var(--line); }
.page-head p { color: var(--muted); margin: 0; }
.prose { max-width: 760px; padding: 40px 20px 72px; }
.prose h2 { font-size: 1.35rem; margin-top: 1.8em; }
.prose h3 { margin-top: 1.4em; }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1em; }
.prose li { margin-bottom: .45em; }
.updated { font-size: .92rem; color: var(--muted); }
.note { background: var(--primary-soft); border-left: 4px solid var(--primary); border-radius: 8px; padding: 14px 18px; margin: 1.4em 0; }

table { width: 100%; border-collapse: collapse; margin: 1em 0 1.6em; font-size: .97rem; }
th, td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { background: var(--bg-alt); font-weight: 600; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }
.table-wrap table { margin: 0; }

dl.contact { display: grid; grid-template-columns: 170px 1fr; gap: 10px 20px; margin: 0; }
dl.contact dt { font-weight: 600; }
dl.contact dd { margin: 0; color: var(--muted); }
@media (max-width: 600px) { dl.contact { grid-template-columns: 1fr; gap: 2px; } dl.contact dd { margin-bottom: 12px; } }

/* Footer */
.site-footer { background: var(--navy); color: #C3CEDA; padding: 44px 0 28px; font-size: .95rem; }
.foot-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.foot-brand svg { width: 34px; height: 34px; }
.foot-brand polygon { fill: var(--accent); }
.foot-brand .brand-word { color: #fff; font-size: 1.3rem; }
.foot-brand:hover { text-decoration: none !important; }
.site-footer a { color: #e3eef3; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; color: #fff; }
.foot { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.foot-links { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 22px; }
.foot-legal { border-top: 1px solid rgba(255,255,255,.12); margin-top: 28px; padding-top: 18px; font-size: .88rem; color: #9fb2bc; }

.notfound { text-align: center; padding: 110px 20px; }
.notfound .code { font-size: 4.5rem; font-weight: 800; color: var(--primary); line-height: 1; margin-bottom: 10px; }
