/* Zybim design tokens */
:root {
  --ink: #0B1F3A;        /* deep navy — hero, headings */
  --steel: #16324F;      /* secondary navy panels */
  --paper: #F7F9FC;      /* light section background */
  --white: #FFFFFF;
  --gold: #F5B700;       /* signature accent — spend sparingly */
  --gold-deep: #B8860B;
  --slate: #33415C;      /* body text */
  --line: #DCE3EE;
  --danger: #B3261E;

  --font-display: "Space Grotesk", "Segoe UI", sans-serif;
  --font-body: "Inter", "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation: none !important; transition: none !important; }
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--slate);
  background: var(--white);
  line-height: 1.6;
}

.mono { font-family: var(--font-mono); }
h1, h2, h3 { font-family: var(--font-display); color: var(--ink); line-height: 1.15; }
a { color: var(--steel); }

/* ---------- Header ---------- */
.site-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 6vw;
  background: var(--ink);
}
.brand, .brand-block {
  font-family: var(--font-display); font-weight: 700; font-size: 22px;
  letter-spacing: 0.14em; color: var(--white); text-decoration: none;
}
.brand-dot { color: var(--gold); }
.brand-block { display: grid; gap: 2px; }
.brand-name { font-size: 19px; letter-spacing: 0.12em; }
.brand-tag {
  font-family: var(--font-display); font-weight: 500; font-size: 12px;
  letter-spacing: 0.06em; color: var(--gold);
}
.brand-badge {
  font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.03em;
  color: #9FB3CC; font-weight: 400;
}
.site-header nav { display: flex; gap: 24px; align-items: center; }
.site-header nav a { color: #C6D2E4; text-decoration: none; font-size: 14px; }
.site-header nav a:hover { color: var(--white); }

/* Dropdown nav */
.nav-group { position: relative; }
.nav-group > button {
  background: none; border: none; color: #C6D2E4; font-size: 14px;
  font-family: var(--font-body); cursor: pointer; padding: 8px 0;
}
.nav-group > button::after { content: " ▾"; font-size: 11px; }
.nav-group > button:hover { color: var(--white); }
.nav-menu {
  position: absolute; top: 100%; left: 50%; transform: translateX(-50%);
  background: var(--white); border-radius: 8px; min-width: 260px;
  box-shadow: 0 14px 40px rgba(0,0,0,0.25); padding: 8px;
  display: none; z-index: 50;
}
.nav-group:hover .nav-menu, .nav-group:focus-within .nav-menu { display: block; }
.nav-menu a {
  display: block; padding: 10px 14px; border-radius: 6px;
  color: var(--ink) !important; font-size: 14px;
}
.nav-menu a:hover { background: var(--paper); }
.nav-menu a small { display: block; color: #67788F; font-size: 12px; margin-top: 1px; }
.nav-cta {
  color: var(--ink) !important; background: var(--gold);
  padding: 8px 16px; border-radius: 4px; font-weight: 600;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; padding: 13px 26px; border-radius: 4px;
  font-family: var(--font-display); font-weight: 600; font-size: 15px;
  text-decoration: none; border: none; cursor: pointer;
}
.btn-gold { background: var(--gold); color: var(--ink); }
.btn-gold:hover { background: #FFCB2E; }
.btn-navy { background: var(--ink); color: var(--white); }
.btn-navy:hover { background: var(--steel); }
.btn:focus-visible, a:focus-visible, button:focus-visible, input:focus-visible {
  outline: 3px solid var(--gold); outline-offset: 2px;
}
.btn-link { background: none; border: none; color: var(--steel); text-decoration: underline; cursor: pointer; font-size: 13px; }

/* ---------- Hero: split copy + live wizard ---------- */
.hero {
  background: var(--ink);
  color: #C6D2E4;
  padding: 7vh 6vw 8vh;
}
.hero-split {
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  gap: 48px; align-items: start; max-width: 1200px; margin: 0 auto;
}
.hero-copy h1 {
  color: var(--white);
  font-size: clamp(28px, 3.6vw, 44px);
  margin: 0 0 18px;
}
.hero-points { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 10px; }
.hero-points li { padding-left: 24px; position: relative; font-size: 15px; }
.hero-points li::before { content: "✓"; position: absolute; left: 0; color: var(--gold); font-weight: 700; }
.hero-widget {
  background: var(--white); border-radius: 10px; padding: 22px;
  box-shadow: 0 18px 50px rgba(0,0,0,0.35);
}
.hero-widget .panel { background: transparent; border: none; padding: 4px 2px; }
.hero-widget .progress { margin-bottom: 18px; }
.hero-eyebrow {
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.08em;
  color: var(--gold); text-transform: lowercase; margin: 0 0 16px;
}
.hero-lede { max-width: 620px; font-size: 16.5px; margin: 0; }
.hero-lede strong { color: var(--white); }

/* ---------- Telemetry strip ---------- */
.strip {
  display: flex; flex-wrap: wrap; gap: 10px 34px; justify-content: center;
  background: var(--steel); color: #9FB3CC;
  font-size: 12px; padding: 12px 6vw; letter-spacing: 0.04em;
}

/* ---------- Sections ---------- */
.section { padding: 70px 6vw; max-width: 1150px; margin: 0 auto; }
.section h2 { font-size: clamp(26px, 4vw, 36px); margin: 0 0 34px; }
.section-alt { background: var(--paper); max-width: none; }
.section-alt > * { max-width: 1150px; margin-left: auto; margin-right: auto; }
.section-alt h2 { margin-bottom: 34px; }

.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 26px; margin-bottom: 36px; }
.step { border-top: 3px solid var(--gold); padding-top: 16px; }
.step-k { color: var(--gold-deep); font-size: 12px; margin: 0 0 6px; letter-spacing: 0.06em; }
.step h3 { font-size: 19px; margin: 0 0 8px; }
.step p { margin: 0; font-size: 15px; }

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 22px; }
.svc { background: var(--white); border: 1px solid var(--line); border-radius: 6px; padding: 26px; }
.svc h3 { margin: 0 0 10px; font-size: 19px; }
.svc p { margin: 0; font-size: 15px; }

details { border-bottom: 1px solid var(--line); padding: 14px 0; }
summary { font-family: var(--font-display); font-weight: 500; color: var(--ink); cursor: pointer; font-size: 17px; }
details p { margin: 12px 0 4px; font-size: 15px; }

.prose-cols { columns: 2 340px; column-gap: 44px; font-size: 15.5px; }
.prose-cols p { margin: 0 0 16px; break-inside: avoid; }
.factbar {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 18px; margin-top: 34px;
}
.factbar > div { border-left: 3px solid var(--gold); padding-left: 16px; }
.fact-num { margin: 0; font-size: 22px; color: var(--ink); font-weight: 500; }
.fact-cap { margin: 2px 0 0; font-size: 13px; color: #67788F; }

/* Real-world example cards */
.examples { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 22px; }
.example-card {
  display: block; background: var(--white); border: 1px solid var(--line);
  border-left: 4px solid var(--gold); border-radius: 6px; padding: 24px;
  text-decoration: none; color: var(--slate);
}
.example-card:hover { box-shadow: 0 8px 24px rgba(11,31,58,0.10); }
.example-card h3 { margin: 0 0 8px; font-size: 18px; }
.example-card p { margin: 0; font-size: 14.5px; }
.example-k { font-family: var(--font-mono); font-size: 11px; color: var(--gold-deep); letter-spacing: 0.05em; }

/* Article / inner page */
.article { max-width: 760px; margin: 0 auto; padding: 56px 6vw 80px; }
.article h1 { font-size: clamp(26px, 4vw, 38px); margin: 0 0 8px; }
.article .byline { font-size: 13px; color: #8494AC; margin: 0 0 30px; }
.article h2 { font-size: 23px; margin: 34px 0 12px; }
.article p, .article li { font-size: 16px; }
.article .cta-inline {
  background: var(--paper); border: 1px solid var(--line); border-left: 4px solid var(--gold);
  border-radius: 6px; padding: 20px 24px; margin: 34px 0;
}
.article .cta-inline p { margin: 0 0 14px; }

/* Cloud upsell card on results */
.upsell {
  margin-top: 20px; background: var(--ink); color: #C6D2E4;
  border-radius: 8px; padding: 20px 22px;
}
.upsell h3 { color: var(--white); margin: 0 0 8px; font-size: 17px; }
.upsell p { font-size: 14px; margin: 0 0 14px; }
.upsell .btn { font-size: 14px; padding: 10px 18px; }
.upsell .btn-link { color: #C6D2E4; margin-left: 12px; }

.cta-band { text-align: center; }
.cta-band h2 { margin-bottom: 26px; }

.site-footer {
  background: var(--ink); color: #8FA3BF; text-align: center;
  padding: 34px 6vw; font-size: 13px;
}
.site-footer p { margin: 4px 0; }
.site-footer strong { color: var(--white); }

/* ---------- Assessment wizard ---------- */
.wizard { max-width: 660px; margin: 0 auto; padding: 56px 6vw 80px; }
.wizard h1 { font-size: clamp(26px, 4vw, 34px); margin: 0 0 8px; }
.wizard-sub { margin: 0 0 30px; font-size: 15px; }

.progress {
  display: flex; gap: 8px; list-style: none; padding: 0; margin: 0 0 30px;
  font-size: 12px; letter-spacing: 0.05em;
}
.progress li {
  flex: 1; text-align: center; padding: 8px 0;
  border-bottom: 3px solid var(--line); color: #9AA7BD;
}
.progress li.active { border-color: var(--gold); color: var(--ink); }

.panel { background: var(--paper); border: 1px solid var(--line); border-radius: 8px; padding: 30px; }
.panel h2 { font-size: 21px; margin: 0 0 18px; }
.panel form { display: grid; gap: 16px; }
.panel label { display: grid; gap: 6px; font-weight: 500; font-size: 14px; color: var(--ink); }
.panel .optional { font-weight: 400; color: #8494AC; }
.panel input {
  padding: 11px 12px; border: 1px solid var(--line); border-radius: 4px;
  font-size: 15px; font-family: var(--font-body); background: var(--white);
}
.perm {
  background: var(--ink); color: var(--gold); padding: 12px 16px;
  border-radius: 4px; font-size: 13px; overflow-wrap: anywhere;
}
.small { font-size: 13px; }
code.mono { overflow-wrap: anywhere; font-size: 12px; }

.error { color: var(--danger); font-size: 14px; min-height: 1em; margin: 6px 0 0; }
.status { font-size: 15px; }

.teaser { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; margin: 20px 0; }
.metric { background: var(--white); border: 1px solid var(--line); border-radius: 6px; padding: 18px; }
.metric-alert { border-color: var(--gold); border-width: 2px; }
.metric-label { margin: 0 0 4px; font-size: 13px; color: #67788F; }
.metric-value { margin: 0; font-size: 30px; color: var(--ink); font-weight: 500; }
.metric-alert .metric-value { color: var(--gold-deep); }

/* ---------- Admin ---------- */
.admin { max-width: 1100px; margin: 0 auto; padding: 40px 4vw; }
.admin table { width: 100%; border-collapse: collapse; font-size: 14px; }
.admin th, .admin td { border: 1px solid var(--line); padding: 8px 10px; text-align: left; }
.admin th { background: var(--ink); color: var(--white); font-family: var(--font-display); font-weight: 500; }
.badge { padding: 2px 10px; border-radius: 999px; font-size: 12px; font-family: var(--font-mono); }
.badge.complete { background: #E4F5EC; color: #0B6B3A; }
.badge.assessing, .badge.consented { background: #FFF4D6; color: #8A6400; }
.badge.new, .badge.consult { background: #E9EEF6; color: var(--steel); }
.req { color: var(--gold-deep); }
.badge.failed { background: #FBE7E6; color: var(--danger); }

@media (max-width: 900px) {
  .hero-split { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .site-header { flex-direction: column; gap: 12px; text-align: center; }
  .brand-block { justify-items: center; }
}

/* Pricing */
.bill-toggle { display: flex; justify-content: center; gap: 0; margin: 18px 0 34px; }
.bill-toggle button {
  border: 1px solid var(--line); background: var(--white); padding: 9px 18px;
  font-size: 13px; cursor: pointer; color: #67788F;
}
.bill-toggle button:first-child { border-radius: 6px 0 0 6px; }
.bill-toggle button:last-child { border-radius: 0 6px 6px 0; }
.bill-toggle button.active { background: var(--ink); color: var(--white); border-color: var(--ink); }
.tiers { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 22px; align-items: stretch; }
.tier {
  background: var(--white); border: 1px solid var(--line); border-radius: 10px;
  padding: 28px; display: flex; flex-direction: column;
}
.tier-featured { border: 2px solid var(--gold); box-shadow: 0 12px 34px rgba(11,31,58,0.10); }
.tier-flag { margin: -8px 0 6px; font-size: 11px; color: var(--gold-deep); letter-spacing: 0.06em; }
.tier h3 { margin: 0 0 6px; font-size: 20px; }
.tier-price { font-size: 26px; color: var(--ink); margin: 0; font-weight: 500; }
.tier-cap { margin: 2px 0 14px; font-size: 13px; color: #8494AC; }
.tier ul { margin: 0 0 22px; padding-left: 18px; flex: 1; }
.tier li { font-size: 14.5px; margin-bottom: 8px; }
/* Solutions strip */
.sol-strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 14px; }
.sol {
  background: var(--white); border: 1px solid var(--line); border-radius: 6px;
  padding: 16px; text-align: center;
}
.sol p { margin: 0; }
.sol .sol-name { font-family: var(--font-display); font-weight: 500; color: var(--ink); font-size: 15px; }
.sol .sol-cap { font-size: 12px; color: #67788F; margin-top: 3px; }

/* ---------- Lead form: Attic-style compact grid ---------- */
.panel select {
  padding: 11px 12px; border: 1px solid var(--line); border-radius: 4px;
  font-size: 15px; font-family: var(--font-body); background: var(--white); color: var(--ink);
}
.panel select:invalid { color: #8494AC; }
.lead-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.lead-grid .full { grid-column: 1 / -1; }
.lead-grid + .btn, .panel form > .btn { justify-self: start; }
@media (max-width: 620px) { .lead-grid { grid-template-columns: 1fr; } }
.hp { position: absolute !important; left: -9999px; top: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-note { font-size: 12.5px; color: #8494AC; margin: 4px 0 0; }

/* ---------- Pricing: billing + currency toggles ---------- */
.toggle-row { display: flex; justify-content: center; align-items: center; gap: 18px; flex-wrap: wrap; margin: 18px 0 34px; }
.toggle-row .bill-toggle, .toggle-row .cur-toggle { margin: 0; }
.cur-toggle { display: flex; gap: 0; }
.cur-toggle button {
  padding: 9px 18px; font-family: var(--font-mono); font-size: 13px;
  background: var(--white); border: 1px solid var(--line); cursor: pointer; color: var(--steel);
}
.cur-toggle button:first-child { border-radius: 6px 0 0 6px; }
.cur-toggle button:last-child { border-radius: 0 6px 6px 0; }
.cur-toggle button.active { background: var(--gold); color: var(--ink); border-color: var(--gold); font-weight: 600; }
.cur-note { font-size: 12px; color: #8494AC; text-align: center; margin-top: -22px; margin-bottom: 30px; }

/* ---------- Partner band (distributors & EduTech) ---------- */
.partner-band { background: var(--steel); padding: 60px 6vw; }
.partner-band h2 { color: var(--white); }
.partner-band > p { color: #C6D2E4; max-width: 680px; }
.partner-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 20px; margin-top: 28px; }
.partner-card { background: var(--white); border-radius: 8px; padding: 26px; display: flex; flex-direction: column; gap: 10px; }
.partner-card h3 { margin: 0; }
.partner-card p { margin: 0; font-size: 14.5px; flex: 1; }
.partner-card .btn { align-self: start; margin-top: 6px; }

/* ---------- Certification paths page ---------- */
.cert-intro { max-width: 720px; }
.cert-paths { display: grid; gap: 26px; margin-top: 30px; }
.cert-path { border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.cert-path-head { background: var(--ink); color: var(--white); padding: 18px 24px; display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; }
.cert-path-head h3 { color: var(--white); margin: 0; font-size: 20px; }
.cert-path-head .mono { color: var(--gold); font-size: 12px; }
.cert-path-body { padding: 22px 24px; display: grid; gap: 14px; }
.cert-row { display: grid; grid-template-columns: 170px 1fr; gap: 6px 18px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.cert-row:last-child { border-bottom: none; }
.cert-row .cert-name { font-weight: 600; color: var(--ink); font-size: 14.5px; }
.cert-row .cert-name small { display: block; font-weight: 400; color: #8494AC; font-family: var(--font-mono); font-size: 11.5px; margin-top: 2px; }
.cert-row p { margin: 0; font-size: 14px; }
@media (max-width: 560px) { .cert-row { grid-template-columns: 1fr; } }
.cert-cta { background: var(--paper); border: 1px solid var(--line); border-radius: 10px; padding: 28px; margin-top: 34px; }

/* Form field alignment fixes: caption on one line, fields fill their column */
.panel label .lbl { display: block; font-weight: 500; }
.lead-grid { min-width: 0; }
.lead-grid label { min-width: 0; }
.lead-grid input, .lead-grid select { width: 100%; min-width: 0; }
