:root {
  --ink: #080808;
  --navy: #000000;
  --navy-2: #111111;
  --blue: #24a6e0;
  --aqua: #24a6e0;
  --lime: #24a6e0;
  --sand: #f4f4f3;
  --paper: #ffffff;
  --white: #fff;
  --muted: #62676b;
  --line: #dde2e5;
  --danger: #24a6e0;
  --shadow: 0 18px 60px rgba(0, 0, 0, .11);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: "DM Sans", sans-serif; }
button, input { font: inherit; }
button { color: inherit; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; left: 1rem; top: -4rem; z-index: 100; background: var(--lime); padding: .8rem 1rem; color: var(--ink); border-radius: .5rem; font-weight: 700; }
.skip-link:focus { top: 1rem; }

.site-header { position: sticky; top: 0; z-index: 50; height: 78px; display: flex; justify-content: space-between; align-items: center; padding: 0 clamp(1.25rem, 4vw, 4.5rem); color: #000; background: rgba(255, 255, 255, .96); border-bottom: 1px solid #dde2e5; backdrop-filter: blur(14px); }
.brand { display: flex; gap: 1rem; align-items: center; color: inherit; text-decoration: none; }
.brand-logo { display: block; width: auto; height: 58px; object-fit: contain; }
.brand-context { padding-left: 1rem; border-left: 1px solid #d7dde0; color: #4e565a; font-size: .75rem; font-weight: 700; letter-spacing: .08em; line-height: 1.35; text-transform: uppercase; }
.header-meta { display: flex; gap: .65rem; align-items: center; font-size: .78rem; color: #3f464a; }
.status-dot { width: 7px; height: 7px; background: var(--lime); border-radius: 50%; box-shadow: 0 0 0 4px rgba(217,242,122,.12); }
.version { margin-left: .55rem; padding-left: 1.1rem; border-left: 1px solid #d7dde0; color: #6f767a; }

.hero { min-height: 610px; display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(320px, .75fr); gap: clamp(3rem, 8vw, 8rem); align-items: center; padding: clamp(5rem, 9vw, 8rem) clamp(1.25rem, 6vw, 7rem); color: white; background: radial-gradient(circle at 72% 8%, rgba(36,166,224,.26), transparent 30%), linear-gradient(135deg, #000 0%, #080808 62%, #171717 100%); overflow: hidden; }
.hero-copy { max-width: 840px; }
.eyebrow { display: inline-flex; align-items: center; gap: .65rem; font-size: .75rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--lime); }
.eyebrow::before { content: ""; width: 28px; height: 1px; background: currentColor; }
.eyebrow.dark { color: var(--blue); }
.hero h1 { margin: 1.2rem 0 1.5rem; max-width: 760px; font: 700 clamp(3rem, 6.2vw, 6.2rem)/.98 "Manrope", sans-serif; letter-spacing: -.055em; }
.hero h1 em { color: var(--blue); font-style: normal; }
.hero-copy > p { max-width: 670px; margin: 0; color: #d3d5d6; font-size: clamp(1rem, 1.45vw, 1.22rem); line-height: 1.65; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .85rem; margin-top: 2.2rem; }
.hero-actions button { min-height: 52px; padding: 0 1.3rem; border-radius: .4rem; font-weight: 700; cursor: pointer; transition: .2s ease; }
.primary-action { border: 1px solid var(--lime); background: var(--lime); }
.primary-action span { margin-left: 1.4rem; }
.secondary-action { color: white; border: 1px solid rgba(255,255,255,.35); background: transparent; }
.hero-actions button:hover { transform: translateY(-2px); }
.hero-rule { position: relative; align-self: end; margin-bottom: 1rem; padding: 1.8rem; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.15); border-radius: .7rem; backdrop-filter: blur(10px); }
.rule-number { display: block; margin-bottom: 1.5rem; color: var(--lime); font: 700 .75rem "Manrope", sans-serif; letter-spacing: .15em; }
.hero-rule p { margin: 0; font-size: 1.18rem; line-height: 1.55; }
.hero-rule strong { color: #fff; }
.rule-line { display: block; height: 1px; margin: 1.5rem 0 1rem; background: linear-gradient(90deg, var(--lime), transparent); }
.hero-rule small { color: #c1c4c6; line-height: 1.5; }

.workspace { padding: clamp(4rem, 7vw, 7rem) clamp(1.25rem, 6vw, 7rem); }
.workspace-heading { display: flex; justify-content: space-between; align-items: flex-end; gap: 2rem; max-width: 1440px; margin: 0 auto 2.2rem; }
.workspace-heading h2, .essentials h2 { margin: .7rem 0 0; font: 700 clamp(2rem, 3.3vw, 3.25rem)/1.08 "Manrope", sans-serif; letter-spacing: -.04em; }
.view-tabs { display: flex; padding: .35rem; background: #eef0f1; border-radius: .55rem; }
.view-tab { padding: .75rem 1rem; border: 0; background: transparent; border-radius: .38rem; font-weight: 700; font-size: .86rem; cursor: pointer; }
.view-tab span { margin-right: .4rem; color: #777d81; font: 700 .66rem "Manrope", sans-serif; }
.view-tab.active { color: #fff; background: var(--navy); box-shadow: 0 7px 20px rgba(0,0,0,.18); }
.view-tab.active span { color: var(--lime); }
.view-panel { max-width: 1440px; margin: 0 auto; min-height: 700px; padding: clamp(1.5rem, 4vw, 3.2rem); background: #fff; border: 1px solid var(--line); border-radius: .8rem; box-shadow: var(--shadow); }
.intro-row { display: flex; justify-content: space-between; align-items: flex-end; gap: 2rem; padding-bottom: 2rem; border-bottom: 1px solid var(--line); }
.section-kicker { margin: 0 0 .45rem; color: var(--blue); font-size: .75rem; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; }
.intro-row h3 { margin: 0; font: 700 clamp(1.6rem, 2.8vw, 2.65rem)/1.1 "Manrope", sans-serif; letter-spacing: -.035em; }
.intro-row > div > p:last-child { max-width: 670px; margin: .65rem 0 0; color: var(--muted); line-height: 1.55; }
.tip { display: flex; align-items: flex-start; gap: .75rem; max-width: 390px; padding: 1rem; background: #eef8fd; border-radius: .45rem; }
.tip span { flex: 0 0 auto; display: grid; place-content: center; width: 22px; height: 22px; color: #fff; background: var(--blue); border-radius: 50%; font-weight: 700; font-size: .75rem; }
.tip p { margin: 0; color: #42484c; font-size: .82rem; line-height: 1.5; }
.iso-banner { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 1rem; align-items: center; margin-top: 1rem; padding: 1rem 1.15rem; color: #22282b; background: #eef8fd; border: 1px solid #c5e9f9; border-radius: .5rem; }
.iso-banner-mark { display: grid; place-content: center; width: 40px; height: 40px; color: #fff; background: var(--blue); border-radius: 50%; font: 800 .75rem "Manrope", sans-serif; }
.iso-banner strong { display: block; margin-bottom: .22rem; font-size: .9rem; }
.iso-banner p { margin: 0; color: #566065; font-size: .82rem; line-height: 1.5; }

.role-layout, .folder-layout, .process-layout { display: grid; grid-template-columns: minmax(260px, .72fr) minmax(0, 1.35fr); gap: 2rem; margin-top: 2rem; }
.role-list { display: grid; gap: .55rem; align-content: start; }
.role-button { width: 100%; display: grid; grid-template-columns: 42px 1fr 20px; gap: .85rem; align-items: center; padding: .85rem; text-align: left; background: transparent; border: 1px solid transparent; border-bottom-color: var(--line); cursor: pointer; border-radius: .45rem; transition: .18s ease; }
.role-button:hover { background: #f3f6f7; }
.role-button.active { background: var(--navy); color: #fff; border-color: var(--navy); }
.role-initials { display: grid; place-content: center; width: 42px; height: 42px; color: var(--navy); background: #e1f3fb; border-radius: 50%; font: 700 .7rem "Manrope", sans-serif; }
.role-button.active .role-initials { background: var(--lime); }
.role-button strong { display: block; font-size: .91rem; }
.role-button small { display: block; margin-top: .2rem; color: #7a8084; font-size: .72rem; }
.role-button.active small { color: #bdc2c5; }
.role-arrow { color: #81868a; }

.detail-card { min-height: 460px; padding: clamp(1.5rem, 3vw, 2.5rem); background: var(--sand); border-radius: .65rem; }
.detail-topline { display: flex; align-items: center; gap: .6rem; margin-bottom: 1.4rem; color: var(--blue); font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .12em; }
.detail-topline::before { content: ""; width: 22px; height: 2px; background: var(--aqua); }
.detail-card h4 { margin: 0; font: 700 clamp(1.65rem, 3vw, 2.7rem)/1.06 "Manrope", sans-serif; letter-spacing: -.04em; }
.detail-summary { max-width: 760px; margin: .85rem 0 1.8rem; color: #565c60; font-size: 1.02rem; line-height: 1.6; }
.detail-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 1rem; }
.detail-block { padding: 1.15rem; background: rgba(255,255,255,.72); border: 1px solid rgba(13,38,48,.08); border-radius: .45rem; }
.detail-block.wide { grid-column: 1 / -1; }
.detail-block h5 { margin: 0 0 .75rem; color: #292e31; font-size: .75rem; text-transform: uppercase; letter-spacing: .1em; }
.detail-block ul { margin: 0; padding-left: 1.15rem; color: #464c50; }
.detail-block li { margin: .5rem 0; line-height: 1.45; }
.chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.chip, .link-button { display: inline-flex; align-items: center; min-height: 34px; padding: .45rem .7rem; border-radius: 99px; font-size: .76rem; font-weight: 700; }
.chip { color: #050505; background: #dff3fc; }
.link-button { color: #fff; background: var(--navy); border: 0; cursor: pointer; }
.link-button:hover { background: var(--blue); }
.frequency { display: grid; grid-template-columns: auto 1fr; gap: .6rem .8rem; align-items: start; }
.frequency span { color: var(--blue); font-size: .72rem; font-weight: 700; text-transform: uppercase; }
.frequency p { margin: 0; color: #464c50; font-size: .88rem; }

.folder-intro { align-items: center; }
.folder-search { width: min(480px, 100%); height: 50px; display: grid; grid-template-columns: 20px 1fr auto; align-items: center; gap: .65rem; padding: 0 .9rem; background: #f5f6f7; border: 1px solid #d8dde0; border-radius: .45rem; }
.folder-search:focus-within { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(36,126,146,.12); }
.folder-search input { min-width: 0; border: 0; outline: 0; background: transparent; color: var(--ink); }
.folder-search kbd { padding: .2rem .4rem; color: #747a7e; background: #fff; border: 1px solid #d7dcdf; border-radius: .25rem; font: 600 .65rem "DM Sans",sans-serif; }
.search-icon { width: 15px; height: 15px; border: 2px solid #737b80; border-radius: 50%; position: relative; }
.search-icon::after { content: ""; position: absolute; width: 6px; height: 2px; right: -5px; bottom: -2px; background: #737b80; transform: rotate(45deg); }
.search-results { margin-top: 1rem; padding: .8rem; background: #eef8fd; border: 1px solid #c8eafb; border-radius: .5rem; }
.search-results > p { margin: .2rem .3rem .7rem; color: #545b60; font-size: .8rem; }
.result-list { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: .55rem; }
.result-item { padding: .75rem; text-align: left; background: #fff; border: 1px solid #d8e3e9; border-radius: .4rem; cursor: pointer; }
.result-item:hover { border-color: var(--aqua); }
.result-item strong { display: block; font-size: .8rem; }
.result-item small { color: #6b7276; }
.folder-layout { grid-template-columns: minmax(330px, .9fr) minmax(0, 1.15fr); }
.tree-shell { border: 1px solid var(--line); border-radius: .55rem; overflow: hidden; }
.tree-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1rem 1.1rem; background: var(--navy); color: #fff; font-size: .78rem; }
.tree-toolbar button { color: #d4d7d9; background: transparent; border: 0; font-size: .7rem; cursor: pointer; }
.folder-tree { max-height: 700px; overflow: auto; padding: .75rem; background: #fbfcfd; }
.tree-node { margin-left: 1rem; }
.tree-node.root-child { margin-left: 0; }
.tree-row { width: 100%; display: grid; grid-template-columns: 20px 20px 1fr; gap: .35rem; align-items: center; padding: .48rem .35rem; text-align: left; border: 0; background: transparent; border-radius: .3rem; cursor: pointer; }
.tree-row:hover { background: #eaf6fb; }
.tree-row.selected { color: #fff; background: var(--blue); }
.tree-toggle { font-size: .7rem; color: #777e82; transition: transform .15s; }
.tree-row.selected .tree-toggle { color: white; }
.tree-toggle.open { transform: rotate(90deg); }
.folder-icon { width: 16px; height: 12px; display: inline-block; background: var(--blue); border-radius: 2px; position: relative; }
.folder-icon::before { content: ""; position: absolute; left: 1px; top: -4px; width: 8px; height: 5px; background: var(--blue); border-radius: 2px 2px 0 0; }
.document-icon { position: relative; width: 13px; height: 17px; display: inline-block; background: var(--blue); border-radius: 2px; }
.document-icon::after { content: ""; position: absolute; right: 0; top: 0; width: 5px; height: 5px; background: #fbfcfd; border-bottom-left-radius: 2px; }
.tree-row.selected .folder-icon, .tree-row.selected .folder-icon::before, .tree-row.selected .document-icon { background: #fff; }
.tree-label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .81rem; }
.tree-children[hidden] { display: none; }
.folder-path { display: inline-block; margin: 1rem 0 1.5rem; padding: .5rem .7rem; color: #4d555a; background: #fff; border-radius: .3rem; font: 600 .72rem/1.4 monospace; word-break: break-word; }
.key-rule { padding: 1rem 1.1rem; background: #000; color: #fff; border-left: 4px solid var(--blue); border-radius: .35rem; }
.key-rule span { display: block; margin-bottom: .3rem; color: var(--lime); font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .12em; }
.key-rule p { margin: 0; line-height: 1.48; }
.sensitive { color: #000; background: #fff; box-shadow: inset 0 0 0 1px var(--blue); }
.folder-information { padding: 0; overflow: hidden; background: #fff; border-color: #bfe5f7; }
.information-heading { display: flex; gap: .8rem; align-items: flex-start; padding: 1.1rem 1.2rem; background: #eaf7fd; border-bottom: 1px solid #cdeaf7; }
.information-mark { flex: 0 0 auto; display: grid; place-content: center; width: 25px; height: 25px; color: #fff; background: var(--blue); border-radius: 50%; font-weight: 800; font-size: .75rem; }
.information-heading h5 { margin-bottom: .25rem; color: #111719; }
.information-heading p { margin: 0; color: #586267; font-size: .78rem; line-height: 1.45; }
.information-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); }
.information-grid > div { padding: 1.2rem; }
.information-grid > div + div { border-left: 1px solid #dce8ed; }
.information-grid h6 { margin: 0 0 .7rem; color: #111719; font-size: .73rem; letter-spacing: .08em; text-transform: uppercase; }
.information-grid ul { margin: 0; padding-left: 1.1rem; color: #3f494d; }
.information-grid li { margin: .5rem 0; font-size: .82rem; line-height: 1.48; }
.document-checklist li::marker { color: var(--blue); }
.iso-chips { margin-bottom: .75rem; }
.iso-chips .chip { min-height: 31px; padding: .38rem .6rem; font-size: .75rem; }
.iso-reference ul { padding-top: .1rem; }
.reference-links { display: flex; flex-wrap: wrap; gap: .55rem 1rem; margin-top: .9rem; padding-top: .85rem; border-top: 1px solid #dce8ed; }
.reference-links a { color: #075c82; font-size: .75rem; font-weight: 700; text-underline-offset: .2rem; }
.source-action { display: flex; flex-wrap: wrap; gap: .6rem 1rem; align-items: center; padding: 1rem 1.2rem; background: #f8fbfc; border-top: 1px solid #dce8ed; }
.source-action a { display: inline-flex; align-items: center; min-height: 40px; padding: .55rem .8rem; color: #fff; background: #000; border-radius: .35rem; font-size: .82rem; font-weight: 700; text-decoration: none; }
.source-action a:hover, .source-action a:focus-visible { background: var(--blue); }
.source-action small { color: #687176; font-size: .75rem; }

.process-progress { display: flex; align-items: baseline; color: var(--navy); }
.process-progress span { font: 800 3.1rem "Manrope", sans-serif; }
.process-progress small { color: #8a9798; font-size: 1rem; }
.process-layout { grid-template-columns: minmax(250px, .65fr) minmax(0, 1.4fr); }
.process-rail { position: relative; margin: 0; padding: 0; list-style: none; }
.process-rail::before { content: ""; position: absolute; left: 17px; top: 17px; bottom: 17px; width: 1px; background: #ccd1d4; }
.process-step { position: relative; display: grid; grid-template-columns: 35px 1fr; gap: .85rem; align-items: start; padding-bottom: 1.05rem; }
.process-step button { display: contents; cursor: pointer; }
.step-marker { z-index: 1; display: grid; place-content: center; width: 35px; height: 35px; color: #5f676b; background: #eef1f2; border: 1px solid #cdd3d6; border-radius: 50%; font: 700 .72rem "Manrope", sans-serif; transition: .15s; }
.step-copy { padding-top: .42rem; text-align: left; }
.step-copy strong { display: block; font-size: .88rem; }
.step-copy small { display: block; margin-top: .2rem; color: #7b8185; }
.process-step.active .step-marker { color: var(--navy); background: var(--lime); border-color: var(--lime); box-shadow: 0 0 0 5px rgba(217,242,122,.2); }
.process-step.active .step-copy strong { color: var(--blue); }
.process-detail { background: linear-gradient(145deg, #000, #1a1a1a); color: #fff; }
.process-detail .detail-topline { color: var(--lime); }
.process-detail .detail-summary { color: #d0d2d3; }
.process-detail .detail-block { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.12); }
.process-detail .detail-block h5 { color: #b8bdc0; }
.process-detail .detail-block li, .process-detail .frequency p { color: #eceeef; }
.process-detail .chip { color: var(--navy); background: var(--lime); }
.process-detail .link-button { color: var(--navy); background: #fff; }

.essentials { padding: clamp(4rem, 7vw, 7rem) clamp(1.25rem, 6vw, 7rem); color: #fff; background: var(--navy); }
.essentials > div { max-width: 1440px; margin-inline: auto; }
.essentials > div:first-child { display: grid; grid-template-columns: .7fr 1.3fr; gap: 2rem; align-items: end; }
.essentials h2 { max-width: 820px; }
.habit-grid { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 3rem; border-top: 1px solid rgba(255,255,255,.16); border-bottom: 1px solid rgba(255,255,255,.16); }
.habit-grid article { min-height: 220px; padding: 1.8rem; border-right: 1px solid rgba(255,255,255,.16); }
.habit-grid article:last-child { border-right: 0; }
.habit-grid span { color: var(--lime); font: 700 .7rem "Manrope", sans-serif; letter-spacing: .13em; }
.habit-grid h3 { margin: 2.8rem 0 .65rem; font: 700 1.25rem "Manrope", sans-serif; }
.habit-grid p { margin: 0; color: #c1c5c7; font-size: .87rem; line-height: 1.55; }
.footer-note { display: flex; justify-content: space-between; gap: 2rem; padding-top: 1.6rem; color: #aeb3b6; font-size: .72rem; }
.footer-note p { max-width: 650px; margin: 0; }
.footer-note a { color: #d8f2fd; text-underline-offset: .2rem; }

@media (max-width: 1050px) {
  .hero { grid-template-columns: 1fr; }
  .hero-rule { max-width: 600px; align-self: auto; }
  .workspace-heading, .intro-row { align-items: flex-start; flex-direction: column; }
  .view-tabs { width: 100%; }
  .view-tab { flex: 1; }
  .role-layout, .folder-layout, .process-layout { grid-template-columns: 1fr; }
  .role-list { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .folder-search { width: 100%; }
  .iso-banner { grid-template-columns: auto minmax(0, 1fr); }
  .habit-grid { grid-template-columns: repeat(2, 1fr); }
  .habit-grid article:nth-child(2) { border-right: 0; }
  .habit-grid article:nth-child(-n+2) { border-bottom: 1px solid rgba(255,255,255,.16); }
}

@media (max-width: 680px) {
  .site-header { height: 68px; padding-inline: 1rem; }
  .brand-context, .header-meta > span:not(.status-dot) { display: none; }
  .brand-logo { height: 48px; }
  .hero { min-height: auto; padding-top: 4.5rem; }
  .hero h1 { font-size: clamp(2.7rem, 14vw, 4.4rem); }
  .hero-actions button { width: 100%; }
  .workspace { padding-inline: .75rem; }
  .workspace-heading { padding-inline: .5rem; }
  .view-tabs { display: grid; grid-template-columns: 1fr; }
  .view-panel { min-height: auto; padding: 1rem; }
  .role-list { grid-template-columns: 1fr; }
  .detail-grid, .result-list { grid-template-columns: 1fr; }
  .information-grid { grid-template-columns: 1fr; }
  .information-grid > div + div { border-top: 1px solid #dce8ed; border-left: 0; }
  .iso-banner { grid-template-columns: 1fr; }
  .folder-tree { max-height: 500px; }
  .tree-toolbar { align-items: flex-start; flex-direction: column; }
  .tip { max-width: none; }
  .essentials > div:first-child { grid-template-columns: 1fr; }
  .habit-grid { grid-template-columns: 1fr; }
  .habit-grid article { min-height: 175px; border-right: 0; border-bottom: 1px solid rgba(255,255,255,.16); }
  .habit-grid article:last-child { border-bottom: 0; }
  .habit-grid h3 { margin-top: 1.8rem; }
  .footer-note { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
