/* ISO 42001 — design system (migrado do mockup iso42001-design.zip, maio/2026) */

:root {
  --ink: #0A1F44;
  --ink-soft: #3A4A63;
  --ink-mute: #4A5A72;
  --link: #0B5CC9;
  --link-hover: #083A7D;
  --action: #0B4A9E;
  --action-dark: #0B2F6B;
  --bg-hero: #EEF5FC;
  --bg-section: #F6F9FC;
  --bg-tool: #F7FAFD;
  --border: #DDE6F1;
  --border-soft: #E3EAF3;
  --plan-bg: #E6F0FC; --plan-fg: #0B4A9E;
  --do-bg: #E3F5EC; --do-fg: #127A4B;
  --check-bg: #FDEEDC; --check-fg: #B45309;
  --act-bg: #EFEAFB; --act-fg: #6B3FC0;
  --success-bg: #DDF3E6; --success-fg: #11643F;
  --anexo-bg: #0A1F44; --anexo-accent: #1B3A6E;
  --radius-btn: 8px;
  --radius-card: 14px;
  --radius-card-lg: 18px;
  --radius-chip: 999px;
  --container: 1440px;
  --gutter: 80px;
}

@media (max-width: 900px) { :root { --gutter: 20px; } }

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: 'IBM Plex Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  background: #ffffff;
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
}

a { color: var(--link); text-decoration: none; }
a:hover { color: var(--link-hover); text-decoration: underline; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--link); outline-offset: 2px; }
[hidden] { display: none !important; }
img { max-width: 100%; }

.site {
  width: 100%;
  display: flex;
  flex-direction: column;
  background: #ffffff;
  min-height: 100vh;
}

/* ---------- Header ---------- */
.site-header {
  height: 72px;
  flex-shrink: 0;
  box-sizing: border-box;
  padding: 0 var(--gutter);
  display: flex;
  align-items: center;
  gap: 40px;
  background: #ffffff;
  border-bottom: 1px solid var(--border-soft);
  position: sticky;
  top: 0;
  z-index: 50;
}
.site-header .logo { display: flex; align-items: center; }
.site-header .logo img { height: 44px; width: auto; display: block; }
.site-nav {
  display: flex;
  gap: 30px;
  flex-grow: 1;
  justify-content: center;
  align-self: stretch;
}
.site-nav a {
  display: flex;
  align-items: center;
  font-size: 15px;
  font-weight: 500;
  color: var(--ink);
  text-decoration: none;
}
.site-nav a:hover { color: var(--action); text-decoration: none; }
.site-nav a[aria-current="page"] {
  font-weight: 600;
  color: var(--action);
  border-bottom: 2px solid var(--action);
  padding-top: 2px;
}
.icon-btn {
  width: 44px; height: 44px; border-radius: 22px; border: 0;
  background: #F1F5FA; color: var(--ink);
  display: flex; align-items: center; justify-content: center; cursor: pointer;
  flex-shrink: 0;
}
.menu-toggle { display: none; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 44px; padding: 0 20px;
  border-radius: var(--radius-btn);
  font-weight: 600; font-size: 15px;
  border: 0; cursor: pointer; font-family: inherit;
  text-decoration: none;
}
.btn:hover { text-decoration: none; filter: brightness(1.08); }
.btn-primary { background: var(--action); color: #ffffff; }
.btn-outline { background: #ffffff; color: var(--action); border: 1px solid #9DB8DC; }
.btn-dark { background: var(--action-dark); color: #ffffff; }
.btn-white { background: #ffffff; color: var(--action-dark); }
.btn-outline-white { background: transparent; color: #ffffff; border: 1px solid #5E86C4; }
.btn-lg { height: 52px; padding: 0 24px; font-size: 16px; }
.btn-xl { height: 62px; padding: 0 40px; font-size: 19px; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  flex-shrink: 0;
  box-sizing: border-box;
  padding: 28px var(--gutter) 0;
  background: var(--bg-hero);
  overflow: hidden;
}
.hero-home { height: 560px; padding-top: 64px; }
.hero-inner { position: relative; z-index: 2; display: flex; flex-direction: column; gap: 16px; max-width: 760px; }
.breadcrumb { display: flex; flex-wrap: wrap; gap: 8px; font-size: 13px; color: var(--ink-mute); margin: 0; }
.breadcrumb a { color: var(--ink-mute); }
.breadcrumb .current { color: var(--ink); font-weight: 500; }
.eyebrow {
  align-self: flex-start; font-size: 12px; font-weight: 600; letter-spacing: 0.06em;
  text-transform: uppercase; padding: 6px 12px; border-radius: var(--radius-chip);
  background: var(--success-bg); color: var(--success-fg); margin-top: 6px;
}
.hero h1 { margin: 0; font-size: 46px; line-height: 1.1; font-weight: 700; letter-spacing: -0.02em; }
.hero-home h1 { font-size: 54px; line-height: 1.08; }
.hero p.lede { margin: 0; font-size: 18px; line-height: 1.65; color: var(--ink-soft); }
.hero-meta { display: flex; flex-wrap: wrap; gap: 22px; align-items: center; font-size: 14px; color: var(--ink-mute); }
.hero-meta .item { display: flex; gap: 8px; align-items: center; }
.avatar {
  width: 28px; height: 28px; border-radius: 14px; background: var(--ink); color: #fff;
  font-size: 11px; font-weight: 600; display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.hero-image {
  position: absolute; right: 40px; bottom: 0; width: 520px; height: auto; z-index: 1;
}

/* ---------- Sections & layout ---------- */
.section { padding: 72px var(--gutter) 0; display: flex; flex-direction: column; gap: 24px; }
.section-lg { padding-top: 88px; gap: 28px; }
.section-tinted { background: var(--bg-section); margin-top: 56px; padding-bottom: 56px; }
.section-head { display: flex; flex-direction: column; gap: 8px; }
.section-head-row { display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; flex-wrap: wrap; }
.kicker { font-size: 13px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--link); }
.section h2 { margin: 0; font-size: 34px; line-height: 1.2; font-weight: 700; letter-spacing: -0.01em; }
.section h2.h2-sm { font-size: 28px; }
.section p.section-lede { margin: 0; font-size: 17px; color: var(--ink-mute); }

.layout-content {
  padding: 48px var(--gutter) 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 64px;
  align-items: start;
}
.layout-content main { display: flex; flex-direction: column; gap: 56px; min-width: 0; }
.layout-content aside { position: sticky; top: 24px; display: flex; flex-direction: column; gap: 20px; }

.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.grid-tight { gap: 16px; }

/* ---------- Cards ---------- */
.card {
  display: flex; flex-direction: column; gap: 12px;
  padding: 26px; border: 1px solid var(--border); border-radius: var(--radius-card-lg);
  background: #ffffff; color: var(--ink);
  transition: border-color .15s, box-shadow .15s;
}
a.card:hover { text-decoration: none; border-color: #9DB8DC; box-shadow: 0 8px 24px rgba(10,31,68,.08); }
.card h3 { margin: 0; font-size: 19px; font-weight: 700; }
.card p { margin: 0; font-size: 15px; line-height: 1.55; color: var(--ink-mute); }
.card .more { margin-top: auto; font-size: 14px; font-weight: 600; color: var(--link); }
.card-icon {
  width: 44px; height: 44px; border-radius: 10px; display: flex; align-items: center; justify-content: center;
  background: var(--plan-bg); color: var(--plan-fg); flex-shrink: 0;
}
.card-dark { background: var(--ink); border-color: var(--ink); color: #fff; }
.card-dark .more { color: #8EC5FF; }

.chip {
  display: inline-flex; align-items: center; font-size: 12px; font-weight: 600;
  padding: 4px 10px; border-radius: 6px; letter-spacing: 0.02em;
}
.chip-pill { border-radius: var(--radius-chip); padding: 4px 10px; }
.chip-plan { background: var(--plan-bg); color: var(--plan-fg); }
.chip-do { background: var(--do-bg); color: var(--do-fg); }
.chip-check { background: var(--check-bg); color: var(--check-fg); }
.chip-act { background: var(--act-bg); color: var(--act-fg); }
.chip-success { background: var(--success-bg); color: var(--success-fg); }

.pdca-band { display: flex; gap: 14px; align-items: center; padding: 18px 20px; border-radius: var(--radius-card); }
.pdca-band strong { font-size: 22px; font-weight: 700; }
.pdca-band span.label { font-size: 14px; line-height: 1.4; color: var(--ink); }
.pdca-plan { background: var(--plan-bg); } .pdca-plan strong { color: var(--plan-fg); }
.pdca-do { background: var(--do-bg); } .pdca-do strong { color: var(--do-fg); }
.pdca-check { background: var(--check-bg); } .pdca-check strong { color: var(--check-fg); }
.pdca-act { background: var(--act-bg); } .pdca-act strong { color: var(--act-fg); }

/* ---------- Tools / CTA banners ---------- */
.cta-banner {
  margin: 56px var(--gutter) 80px; padding: 40px 48px; border-radius: 20px;
  background: var(--action-dark); display: flex; align-items: center; gap: 28px; flex-wrap: wrap;
}
.cta-banner .icon-circle {
  width: 72px; height: 72px; flex-shrink: 0; border-radius: 36px;
  background: #1B4A8F; color: #8EC5FF; display: flex; align-items: center; justify-content: center;
}
.cta-banner h2 { margin: 0; font-size: 28px; font-weight: 700; color: #fff; }
.cta-banner p { margin: 0; font-size: 16px; line-height: 1.55; color: #CFE0F7; }
.cta-banner .cta-actions { display: flex; flex-direction: column; gap: 10px; flex-shrink: 0; }

/* ---------- Tables ---------- */
.table-wrap { border: 1px solid var(--border); border-radius: 12px; overflow: hidden; }
table.data-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.data-table thead th { text-align: left; padding: 14px 20px; background: var(--bg-section); font-size: 14px; font-weight: 700; }
.data-table thead th.hl { background: var(--plan-bg); color: var(--plan-fg); }
.data-table tbody tr { border-top: 1px solid var(--border-soft); }
.data-table tbody th { text-align: left; padding: 13px 20px; font-weight: 600; }
.data-table tbody td { padding: 13px 20px; color: var(--ink-soft); }
.data-table tbody td.hl { background: #F7FAFE; }

/* ---------- Accordion / FAQ ---------- */
.accordion-item { border: 1px solid var(--border); border-radius: 12px; background: #ffffff; }
.accordion-item + .accordion-item { margin-top: 10px; }
.accordion-toggle {
  width: 100%; min-height: 64px; padding: 18px 24px; display: flex; align-items: center;
  justify-content: space-between; gap: 16px; background: transparent; border: 0; cursor: pointer;
  font-family: inherit; font-size: 17px; font-weight: 600; color: var(--ink); text-align: left;
}
.accordion-body { margin: 0; padding: 0 24px 22px; font-size: 15px; line-height: 1.65; color: var(--ink-soft); }
.accordion-cat { border-radius: var(--radius-card); overflow: hidden; }
.accordion-cat .accordion-toggle { min-height: 72px; gap: 18px; }
.accordion-cat-badge {
  width: 58px; height: 40px; flex-shrink: 0; border-radius: 8px; background: var(--plan-bg); color: var(--plan-fg);
  font-size: 15px; font-weight: 700; display: flex; align-items: center; justify-content: center;
}
.accordion-cat-title { flex-grow: 1; display: flex; flex-direction: column; gap: 2px; text-align: left; }
.accordion-cat-title .t { font-size: 17px; font-weight: 700; color: var(--ink); }
.accordion-cat-title .s { font-size: 14px; color: var(--ink-mute); }
.accordion-cat-body { display: flex; flex-direction: column; border-top: 1px solid var(--border-soft); }
.control-item { display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 18px; padding: 22px; border-bottom: 1px solid #EEF2F7; }
.control-item:last-child { border-bottom: 0; }
.control-code { justify-self: start; font-size: 13px; font-weight: 700; padding: 5px 10px; border-radius: 6px; background: var(--anexo-bg); color: #fff; }
.auditor-note {
  display: flex; gap: 12px; align-items: flex-start; padding: 12px 16px; border-radius: 10px; background: #FFF6EA;
  font-size: 14px; line-height: 1.55; color: #5A3A0C;
}

/* ---------- Sidebar / TOC ---------- */
.toc { display: flex; flex-direction: column; gap: 4px; padding: 22px; border: 1px solid var(--border); border-radius: var(--radius-card); background: #fff; }
.toc-title { font-size: 15px; font-weight: 700; margin-bottom: 8px; }
.toc a { font-size: 14px; padding: 7px 0 7px 12px; border-left: 2px solid var(--border-soft); color: var(--ink-soft); }
.toc a.active { border-left-color: var(--action); color: var(--action); font-weight: 600; }
.side-box { display: flex; flex-direction: column; gap: 12px; padding: 22px; border: 1px solid var(--border); border-radius: var(--radius-card); background: #fff; }
.side-box-highlight { border-color: #C6E8D5; background: #F1FAF5; }
.side-box a { font-size: 14px; color: var(--ink-soft); }

/* ---------- Footer ---------- */
.site-footer {
  margin-top: auto; background: var(--bg-section); border-top: 1px solid var(--border-soft);
  padding: 56px var(--gutter) 32px; display: flex; flex-direction: column; gap: 40px;
}
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr 1fr; gap: 40px; }
.footer-col { display: flex; flex-direction: column; gap: 10px; }
.footer-col .brand { display: flex; flex-direction: column; gap: 14px; }
.footer-col .brand img { height: 52px; width: auto; align-self: flex-start; }
.footer-col .brand p { margin: 0; font-size: 15px; line-height: 1.5; color: var(--ink-soft); }
.footer-col span.title { font-size: 14px; font-weight: 700; }
.footer-col a { font-size: 14px; color: var(--ink-mute); }
.footer-social { display: flex; gap: 8px; }
.footer-social a {
  width: 44px; height: 44px; border-radius: 10px; background: #ffffff; border: 1px solid var(--border);
  color: var(--ink); display: flex; align-items: center; justify-content: center;
}
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px;
  padding-top: 24px; border-top: 1px solid var(--border-soft); font-size: 13px; color: var(--ink-mute);
}
.footer-bottom .links { display: flex; gap: 20px; }
.footer-bottom a { color: var(--ink-mute); }

/* ---------- Gap Analysis tool ---------- */
.tool-shell { background: var(--bg-tool); }
.tool-main { padding: 40px var(--gutter) 80px; display: grid; grid-template-columns: 260px minmax(0, 1fr) 340px; gap: 36px; align-items: start; }
.tool-progress { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 4px; }
.tool-progress li { display: flex; gap: 12px; align-items: center; padding: 12px; border-radius: 12px; }
.tool-progress li[aria-current="step"] { background: var(--plan-bg); }
.tool-progress .step-badge {
  width: 34px; height: 34px; flex-shrink: 0; border-radius: 17px; border: 1px solid #C9D6E6; box-sizing: border-box;
  font-size: 14px; font-weight: 600; display: flex; align-items: center; justify-content: center;
}
.tool-progress li[aria-current="step"] .step-badge { background: var(--action); color: #fff; font-weight: 700; border: 0; }
.tool-progress .step-label { flex-grow: 1; display: flex; flex-direction: column; font-size: 14px; font-weight: 500; }
.tool-progress .step-label small { font-size: 13px; font-weight: 400; color: var(--ink-mute); }
.tool-progress .step-count { font-size: 13px; color: var(--ink-mute); }
.tool-card { display: flex; flex-direction: column; gap: 22px; padding: 32px; border: 1px solid var(--border); border-radius: var(--radius-card-lg); background: #fff; box-shadow: 0 10px 30px rgba(10,31,68,.06); }
.tool-progressbar { height: 10px; border-radius: 5px; background: #E0E8F2; overflow: hidden; }
.tool-progressbar > div { height: 100%; border-radius: 5px; background: var(--link); }
.tool-option {
  min-height: 60px; padding: 14px 18px; display: flex; align-items: center; gap: 16px;
  border: 2px solid var(--border); border-radius: 12px; background: #ffffff; cursor: pointer;
  font-family: inherit; font-size: 17px; color: var(--ink); text-align: left; width: 100%;
}
.tool-option:hover { border-color: #9DB8DC; }
.tool-option .dot { width: 22px; height: 22px; flex-shrink: 0; border-radius: 11px; border: 2px solid #9AAAC0; box-sizing: border-box; }
.tool-option[aria-pressed="true"] { border-color: var(--action); background: var(--bg-hero); }
.tool-option[aria-pressed="true"] .dot { border: 6px solid var(--action); background: #fff; }
.tool-gauge-wrap { display: flex; flex-direction: column; gap: 18px; padding: 26px; border: 1px solid var(--border); border-radius: var(--radius-card-lg); background: #fff; box-shadow: 0 16px 40px rgba(10,31,68,.08); }
.tool-legend { display: flex; justify-content: center; gap: 22px; font-size: 13px; color: var(--ink-soft); flex-wrap: wrap; }
.tool-legend .dot-sm { width: 10px; height: 10px; border-radius: 5px; display: inline-block; }

/* ---------- Prose / editorial content ---------- */
.prose h2 { margin: 2rem 0 0.75rem; font-size: 1.5rem; font-weight: 700; color: var(--ink); scroll-margin-top: 90px; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin: 1.5rem 0 0.5rem; font-size: 1.05rem; font-weight: 700; color: var(--ink); }
.prose p { color: var(--ink-soft); line-height: 1.75; margin: 0 0 1rem; font-size: 15.5px; }
.prose ul { margin: 0 0 1rem; padding-left: 0; list-style: none; }
.prose ul li { padding: 0.3rem 0 0.3rem 1.4rem; position: relative; color: var(--ink-soft); font-size: 15px; }
.prose ul li::before { content: "—"; position: absolute; left: 0; color: var(--action); }
.req-card { border-left: 4px solid var(--action); padding: 1rem 1.25rem; background: var(--bg-section); border-radius: 0 10px 10px 0; margin-bottom: 0.75rem; }
.req-num { font-family: monospace; font-weight: 700; color: var(--action); font-size: 0.85rem; }
.callout { border-radius: 10px; padding: 1rem 1.25rem; margin: 1rem 0; font-size: 14.5px; line-height: 1.6; }
.callout-success { background: #F1FAF5; border: 1px solid #C6E8D5; color: #123D25; }
.callout-neutral { background: var(--bg-section); border: 1px solid var(--border); color: var(--ink-soft); }
.callout strong { color: var(--ink); }
.check-list { background: #fff; border: 1px solid var(--border); border-radius: 12px; padding: 1.25rem; }
.check-item { display: flex; gap: 0.5rem; align-items: flex-start; padding: 0.4rem 0; font-size: 14.5px; color: var(--ink-soft); }
.check-icon { width: 18px; height: 18px; flex-shrink: 0; margin-top: 2px; color: var(--do-fg); }
.article-nav { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--border-soft); display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.clause-link { display: flex; align-items: center; justify-content: space-between; font-size: 13.5px; color: var(--ink-soft); padding: 8px 0; }
.clause-link:hover { color: var(--action); text-decoration: none; }
.clause-link.active { color: var(--action); font-weight: 700; }
.clause-link .tag-current { color: #DDF3E6; background: var(--do-fg); font-size: 11px; padding: 2px 8px; border-radius: 999px; }
.tool-side-card { border-radius: var(--radius-card); padding: 20px; background: var(--action-dark); color: #fff; display: flex; flex-direction: column; gap: 12px; }
.tool-side-card p { margin: 0; font-size: 14px; color: #CFE0F7; line-height: 1.55; }

/* ---------- Utilities ---------- */
.text-center { text-align: center; }
.dashed-box {
  display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 22px 28px;
  border: 1px dashed #9DB8DC; border-radius: var(--radius-card); background: var(--bg-section); flex-wrap: wrap;
}
.badge-soon { font-size: 13px; font-weight: 600; padding: 6px 12px; border-radius: var(--radius-chip); background: var(--check-bg); color: var(--check-fg); white-space: nowrap; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-5 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .layout-content { grid-template-columns: 1fr; }
  .layout-content aside { position: static; }
  .tool-main { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .site-nav { display: none; }
  .menu-toggle {
    display: flex; width: 44px; height: 44px; border-radius: 8px; border: 1px solid var(--border);
    background: #fff; align-items: center; justify-content: center; cursor: pointer; order: 2;
  }
  .site-header .icon-btn { order: 3; }
  .site-header .btn-primary { display: none; }
  .site-header { gap: 12px; justify-content: space-between; }
  .site-nav.mobile-open {
    display: flex; flex-direction: column; position: absolute; top: 72px; left: 0; right: 0;
    background: #fff; border-bottom: 1px solid var(--border-soft); padding: 12px var(--gutter) 20px;
    gap: 4px; z-index: 60;
  }
  .site-nav.mobile-open a { padding: 12px 0; }
  .hero-image { display: none; }
  .hero h1, .hero-home h1 { font-size: 34px; }
  .hero p.lede { font-size: 16px; }
  .grid-2, .grid-3, .grid-4, .grid-5 { grid-template-columns: 1fr; }
  .section, .section-lg { padding-left: var(--gutter); padding-right: var(--gutter); }
  .cta-banner { flex-direction: column; align-items: flex-start; margin: 40px var(--gutter); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
  .control-item { grid-template-columns: 1fr; }
  .control-code { justify-self: start; }
}
@media (max-width: 560px) {
  .footer-grid { grid-template-columns: 1fr; }
  .hero, .section, .section-lg { padding-left: 20px; padding-right: 20px; }
  .layout-content, .tool-main { padding-left: 20px; padding-right: 20px; }
  .cta-banner { margin-left: 20px; margin-right: 20px; }
}
