
:root{
    --bg:#0b0f14;
    --panel:#0f1520;
    --text:#e9eef7;
    --muted:#a8b3c7;
    --line:rgba(255,255,255,.08);
    --soft:rgba(255,255,255,.06);
    --accent:#7dd3fc; /* azul claro */
    --accent2:#a78bfa; /* roxo */
    --ok:#86efac;
    --warn:#fde68a;
    --danger:#fda4af;
    --shadow: 0 10px 30px rgba(0,0,0,.45);
    --radius: 18px;
    --radius2: 26px;
    --max: 980px;
    --mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    --sans: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji","Segoe UI Emoji";
}

*{ box-sizing: border-box; }
[hidden]{ display: none !important; }
body{
    margin:0;
    background:
            radial-gradient(900px 500px at 20% 10%, rgba(125,211,252,.16), transparent 60%),
            radial-gradient(900px 500px at 80% 0%, rgba(167,139,250,.14), transparent 65%),
            var(--bg);
    color:var(--text);
    font-family:var(--sans);
    line-height:1.55;
}
a{ color:inherit; text-decoration: none; }
:focus-visible{ outline: 2px solid var(--accent); outline-offset: 4px; }
.skip-link{ position: fixed; top: 8px; left: 8px; z-index: 30; padding: 10px 16px; background: var(--panel); transform: translateY(-150%); }
.skip-link:focus{ transform: translateY(0); }
section, main, .standard-card[id]{ scroll-margin-top: 100px; }
.container{ max-width:var(--max); margin:0 auto; padding: 0 20px; }

/* Top bar */
.topbar{
    position: sticky;
    top: 0;
    z-index: 20;
    backdrop-filter: blur(10px);
    background: rgba(11,15,20,.55);
    border-bottom: 1px solid var(--line);
}
.topbar .row{
    display:flex;
    align-items:center;
    justify-content:space-between;
    padding: 14px 0;
    gap:14px;
}
.brand{
    display:flex;
    align-items:center;
    gap:10px;
    font-weight:700;
    letter-spacing:.2px;
}
.brand-logo{ display: block; width: 32px; height: auto; flex-shrink: 0; }
.dot{
    width:10px;height:10px;border-radius:999px;
    background: linear-gradient(90deg, var(--accent), var(--accent2));
    box-shadow: 0 0 0 4px rgba(125,211,252,.08);
}
nav{
    display:flex; gap:14px; align-items:center; flex-wrap:wrap;
    color: var(--muted);
    font-size: 14px;
}
nav a{ padding:8px 10px; border-radius: 999px; }
nav a:hover{ background: var(--soft); color: var(--text); }

.btn{
    display:inline-flex; align-items:center; justify-content:center;
    gap:10px;
    padding: 12px 14px;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: rgba(255,255,255,.03);
    color: var(--text);
    font-weight: 600;
    font-size: 14px;
    cursor:pointer;
    transition: transform .08s ease, background .12s ease, border-color .12s ease;
    user-select:none;
    white-space: nowrap;
}
.btn:hover{ background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.14); }
.btn:active{ transform: translateY(1px); }
.btn.primary{
    border-color: rgba(125,211,252,.35);
    background: rgba(125,211,252,.10);
}
.btn.primary:hover{
    border-color: rgba(125,211,252,.55);
    background: rgba(125,211,252,.14);
}
.btn.ghost{ background: transparent; }
.btn.small{ padding: 10px 12px; font-size: 13px; }
.badge{
    display:inline-flex; align-items:center; gap:8px;
    padding: 7px 12px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(255,255,255,.03);
    color: var(--muted);
    font-size: 13px;
}
.badge strong{ color: var(--text); font-weight:600; }

/* Hero */
.ethics-home{ --max: 1120px; }
.hero{ padding: 56px 0 18px; }
.ethics-home .hero{ padding: clamp(40px, 6vw, 72px) 0 clamp(24px, 3vw, 32px); }
.ethics-home .hero h1{ margin-bottom: 16px; }
.ethics-home .hero .actions{ margin-top: 24px; }
.hero .hero-layout{ max-width: var(--max); display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; align-items: center; }
.hero-copy{ min-width: 0; }
.hero-visual{ display: flex; align-items: center; justify-content: center; pointer-events: none; }
.hero-wireframe{ display: block; width: 100%; max-width: 320px; height: auto; }
@media (min-width: 1000px){
    .hero .hero-layout{ grid-template-columns: minmax(0, 1.65fr) minmax(280px, 1fr); gap: 32px; }
    .hero-wireframe{ max-width: 420px; }
}
@media (max-width: 639px){ .hero-visual{ display: none; } }
.hero h1{
    margin: 14px 0 10px;
    font-size: clamp(28px, 4.2vw, 44px);
    line-height: 1.12;
    letter-spacing: -0.5px;
}
.hero p{
    margin: 0 0 18px;
    color: var(--muted);
    font-size: 16px;
    max-width: 70ch;
}
.hero .actions{ display:flex; gap:12px; flex-wrap:wrap; margin-top: 18px; }
.checks{
    display:flex; gap:10px; flex-wrap:wrap; margin-top: 14px;
    color: var(--muted); font-size: 14px;
}
.check{
    display:flex; align-items:center; gap:8px;
    padding: 8px 10px; border-radius: 999px;
    background: rgba(255,255,255,.03);
    border:1px solid var(--line);
}
.tick{
    width:18px; height:18px; border-radius: 6px;
    background: rgba(134,239,172,.14);
    border: 1px solid rgba(134,239,172,.35);
    display:grid; place-items:center;
    color: var(--ok);
    font-weight:900;
    font-size: 12px;
}

/* Sections */
section{ padding: 28px 0; }
.section-title{
    margin:0 0 10px;
    font-size: 20px;
    letter-spacing: -.2px;
}
.section-sub{
    margin:0 0 18px;
    color: var(--muted);
    max-width: 80ch;
}
.grid{
    display:grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 14px;
}
.card{
    grid-column: span 12;
    border:1px solid var(--line);
    background: rgba(255,255,255,.03);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 18px;
}
.card h3{ margin:0 0 6px; font-size: 16px; }
.card p{ margin:0; color: var(--muted); }
.muted{ color: var(--muted); }

/* Two requirement cards per row on wider screens. */
.standards-grid{ display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.standard-card{ padding: 18px; border: 1px solid var(--line); border-radius: var(--radius); background: rgba(255,255,255,.03); }
.standard-card .standard-reference{ margin: 0 0 8px; color: var(--accent); font-family: var(--mono); font-size: 12px; }
.standard-card h3{ margin: 0 0 10px; font-size: 17px; line-height: 1.3; }
.standard-card p{ margin: 0 0 10px; color: var(--muted); font-size: 14px; }
.standard-card strong{ color: var(--text); }
.standard-card a{ color: var(--accent); font-size: 13px; text-decoration: underline; text-underline-offset: 3px; overflow-wrap: anywhere; }
.standard-card .standard-scope{ font-size: 12px; }
.standard-sources{ display: flex; flex-wrap: wrap; gap: 6px 16px; }
.standards-note{ margin: 16px 0 0; padding-left: 14px; border-left: 2px solid var(--accent); color: var(--muted); font-size: 13px; }
@media (max-width: 650px){
    .standards-grid{ grid-template-columns: minmax(0, 1fr); }
    .topbar .row{ align-items: flex-start; flex-direction: column; gap: 6px; }
    nav{ gap: 2px; font-size: 13px; }
    nav a{ padding: 6px 8px; }
    section, main, .standard-card[id]{ scroll-margin-top: 170px; }
    .badge{ flex-wrap: wrap; border-radius: 14px; }
}

@media (min-width: 860px){
    .card.span4{ grid-column: span 4; }
    .card.span6{ grid-column: span 6; }
    .card.span8{ grid-column: span 8; }
}

/* Context before the steps */
.commitment-context{ background: #f2f5f8; color: #172536; }
.ethics-home .topbar{ background: rgba(11,15,20,.94); }
.commitment-context-layout{ display: grid; gap: 18px 40px; }
.commitment-context .section-title{ margin: 0; font-size: clamp(22px, 2.3vw, 28px); line-height: 1.3; }
.commitment-context-copy{ min-width: 0; color: #4b5a6d; }
.commitment-context-copy p{ margin: 0 0 14px; }
.commitment-context-copy p:last-child{ margin-bottom: 0; }
.commitment-context-copy a{ color: inherit; text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 3px; }
.commitment-choices-title{ grid-column: 1 / -1; margin: 16px 0 12px; text-align: center; font-size: clamp(20px, 2.3vw, 26px); font-weight: 600; line-height: 1.4; text-wrap: balance; }
.commitment-choices{ display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; grid-column: 1 / -1; }
.commitment-choice{ display: flex; flex-direction: column; align-items: flex-start; gap: 12px; padding: 24px; min-width: 0; grid-column: auto; }
.commitment-context .commitment-choice{ background: #171b1e; color: var(--text); }
.commitment-choice h3{ margin: 0; font-size: 20px; }
.commitment-choice p{ margin: 0; color: var(--muted); }
.commitment-choice .commitment-kind{ color: var(--accent); font-size: 13px; }
.commitment-choice .btn{ margin-top: auto; white-space: normal; }
.commitment-complement{ grid-column: 1 / -1; margin: 0; color: var(--muted); font-size: 14px; }
.commitment-context .commitment-complement{ color: #4b5a6d; }
@media (min-width: 640px){
    .commitment-choices{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 640px) and (max-width: 999px){
    .commitment-choices > :last-child{ grid-column: 1 / -1; }
}
@media (min-width: 1000px){
    .commitment-choices{ grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 860px){
    .commitment-context-layout{ grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); }
}

/* Steps */
.process-card{
    padding: 24px;
    background: linear-gradient(135deg, rgba(125,211,252,.13), rgba(167,139,250,.08)), #18212d;
    border-color: rgba(125,211,252,.28);
}
.process-card > .section-sub{ margin: 0 0 24px; }
.process-steps{ display: grid; gap: 24px; }
.process-step .step{ height: 100%; }
.process-step .step > div:last-child{ display: flex; flex-direction: column; min-width: 0; flex: 1; }
.process-step .process-actions{ margin-top: auto; padding-top: 18px; }
.process-step .btn{ white-space: normal; text-align: center; }
.process-card .step .n{ color: var(--accent); border-color: rgba(125,211,252,.35); background: rgba(125,211,252,.12); }
.process-card .step p{ font-size: 14px; }
.process-card .process-note{ margin: 24px 0 0; padding-top: 16px; border-top: 1px solid rgba(125,211,252,.18); font-size: 13px; }
.process-actions{ display: flex; align-items: center; gap: 12px 18px; flex-wrap: wrap; margin-top: 18px; }
.process-actions > span{ font-size: 13px; }
.public-search{ display: flex; align-items: end; gap: 12px; flex-wrap: wrap; }
.public-search .field{ flex: 1 1 260px; }
.public-search > button{ margin-bottom: 0; }
.public-search-actions{ display: flex; gap: 12px; flex-wrap: wrap; margin: 16px 0; }
#public-search-results .standard-card{ display: flex; flex-direction: column; align-items: flex-start; }
#public-search-results .standard-card .btn{ margin-top: auto; }
.sr-only{ position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.scope-options{ border: 0; padding: 0; margin: 0; min-width: 0; }
.scope-extra{ margin-top: 18px; }
.scope-definition textarea{ min-height: 100px; font-family: var(--sans); font-size: 14px; line-height: 1.5; }
.scope-definition textarea::placeholder{ color: var(--muted); opacity: .85; }
.scope-definition .scope-extra textarea{ min-height: 80px; }
.scope-choice{ display: flex; align-items: flex-start; gap: 10px; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); color: var(--text); cursor: pointer; }
.scope-choice input{ width: 18px; height: 18px; padding: 0; flex-shrink: 0; margin: 2px 0 0; accent-color: var(--accent); }
.standard-card.scope-selected{ border-color: rgba(125,211,252,.55); background: rgba(125,211,252,.07); }
.scope-topics{ display: grid; gap: 14px; }
.scope-topics .card{ grid-column: auto; }
.scope-topics a{ color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.scope-summary textarea{ display: block; margin-top: 8px; font-size: 14px; line-height: 1.6; }
.scope-summary #scope-count{ margin-bottom: 16px; color: var(--accent); }
.scope-summary #copy-status{ margin-top: 12px; }
@media (min-width: 860px){ .scope-topics{ grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 860px){
    .process-steps{ grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.step{
    display:flex; gap:14px; align-items:flex-start;
}
.step .n{
    min-width: 34px; height: 34px; border-radius: 999px;
    border:1px solid rgba(255,255,255,.12);
    background: rgba(255,255,255,.04);
    display:grid; place-items:center;
    font-weight: 800;
    color: var(--text);
}

/* Manifesto */
.manifesto{
    border-radius: var(--radius2);
    padding: 22px;
    background:
            radial-gradient(600px 260px at 20% 0%, rgba(125,211,252,.14), transparent 60%),
            radial-gradient(600px 260px at 90% 20%, rgba(167,139,250,.12), transparent 60%),
            rgba(255,255,255,.03);
    border: 1px solid rgba(255,255,255,.10);
}
.manifesto ul{
    margin: 12px 0 0;
    padding-left: 18px;
    color: var(--muted);
}
.manifesto li{ margin: 6px 0; }

/* Form */
form{ display:grid; gap: 12px; }
.field{ display:grid; gap: 6px; }
label{ font-size: 13px; color: var(--muted); }
input, select, textarea{
    width:100%;
    padding: 12px 12px;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,.12);
    background: rgba(0,0,0,.18);
    color: var(--text);
    outline: none;
}
textarea{ min-height: 110px; resize: vertical; }
.hint{ font-size: 12px; color: var(--muted); }
.row2{ display:grid; gap: 12px; }
@media (min-width: 860px){ .row2{ grid-template-columns: 1fr 1fr; } }

/* Table-like list */
.list{
    display:grid; gap: 10px;
}
.item{
    display:flex; align-items:flex-start; justify-content:space-between;
    gap: 14px;
    border:1px solid var(--line);
    background: rgba(255,255,255,.02);
    border-radius: 14px;
    padding: 12px 14px;
}
.item .left{ display:grid; gap: 2px; }
.pill{
    font-family: var(--mono);
    font-size: 12px;
    padding: 4px 8px;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,.12);
    color: var(--muted);
    background: rgba(255,255,255,.02);
    white-space: nowrap;
    align-self:flex-start;
}
.status-ok{ border-color: rgba(134,239,172,.35); background: rgba(134,239,172,.08); color: #c7f9d6; }
.status-mid{ border-color: rgba(253,230,138,.35); background: rgba(253,230,138,.08); color: #fff3c4; }
.status-low{ border-color: rgba(253,164,175,.35); background: rgba(253,164,175,.08); color: #ffe0e6; }

/* Footer */
footer{
    padding: 26px 0 40px;
    border-top: 1px solid var(--line);
    color: var(--muted);
    font-size: 13px;
}
.with-shared-footer{ min-height: 100vh; display: flex; flex-direction: column; }
.with-shared-footer > main{ flex: 1; }
.site-footer{ flex-shrink: 0; }
.footer-grid{ display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr) minmax(0, 1fr); gap: 28px; }
.footer-logo{ display: block; width: 48px; height: auto; flex-shrink: 0; }
.footer-intro p{ color: var(--muted); margin: 12px 0 0; max-width: 30ch; }
.footer-nav{ display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-content: start; gap: 10px 18px; }
.footer-nav a{ padding: 0; border-radius: 0; }
.footer-nav a:hover{ background: transparent; text-decoration: underline; text-underline-offset: 4px; }
.footer-label{ color: var(--text); font-weight: 600; margin: 0 0 10px; }
.footer-channel a{ color: var(--muted); overflow-wrap: anywhere; }
.footer-channel a:hover{ color: var(--text); text-decoration: underline; text-underline-offset: 4px; }
.footer-bottom{ display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; margin-top: 28px; padding-top: 18px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; }
@media (max-width: 700px){ .footer-grid{ grid-template-columns: minmax(0, 1fr); gap: 24px; } .footer-nav{ max-width: 320px; } }
footer .foot{
    display:flex; align-items:flex-start; justify-content:space-between; gap: 14px; flex-wrap:wrap;
}

.success-state{
    position: relative;
    overflow: hidden;
    display: grid;
    gap: 18px;
    align-items: center;
    justify-items: center;
    text-align: center;
    padding: 32px 22px;
    border-radius: var(--radius2);
    border: 1px solid rgba(134,239,172,.22);
    background:
            radial-gradient(700px 240px at 20% 0%, rgba(125,211,252,.10), transparent 60%),
            radial-gradient(700px 240px at 100% 0%, rgba(167,139,250,.08), transparent 60%),
            rgba(255,255,255,.04);
    box-shadow: var(--shadow);
    animation: successEnter .55s cubic-bezier(.2,.8,.2,1);
}

.success-state__glow{
    position: absolute;
    inset: auto -10% -40% -10%;
    height: 180px;
    background: radial-gradient(circle, rgba(134,239,172,.16), transparent 62%);
    filter: blur(18px);
    pointer-events: none;
    animation: successGlow 3.2s ease-in-out infinite;
}

.success-state__icon-wrap{
    position: relative;
    width: 92px;
    height: 92px;
    display: grid;
    place-items: center;
}

.success-state__ring{
    position: absolute;
    inset: 0;
    border-radius: 999px;
    border: 1px solid rgba(134,239,172,.24);
    background: radial-gradient(circle at 50% 35%, rgba(134,239,172,.10), rgba(134,239,172,.03));
    animation: successRing 2.4s ease-in-out infinite;
}

.success-state__icon{
    position: relative;
    z-index: 1;
    width: 62px;
    height: 62px;
    border-radius: 999px;
    display: grid;
    place-items: center;
    color: var(--ok);
    background: rgba(134,239,172,.14);
    border: 1px solid rgba(134,239,172,.34);
    box-shadow: 0 0 0 10px rgba(134,239,172,.05);
    animation: successPop .5s .08s both cubic-bezier(.2,.8,.2,1);
}

.success-state__icon svg{
    width: 28px;
    height: 28px;
    animation: successCheck .45s .28s both ease-out;
}

.success-state__content{
    display: grid;
    gap: 12px;
    max-width: 640px;
    position: relative;
    z-index: 1;
}

.success-state h3{
    margin: 0;
    font-size: clamp(24px, 3.8vw, 34px);
    line-height: 1.12;
    letter-spacing: -.4px;
}

.success-state p{
    margin: 0;
    color: var(--muted);
    font-size: 15px;
}

.success-state__meta{
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 2px;
}

.success-state__actions{
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 6px;
}

@keyframes successEnter{
    from{
        opacity: 0;
        transform: translateY(12px) scale(.985);
    }
    to{
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes successPop{
    from{
        opacity: 0;
        transform: scale(.72);
    }
    70%{
        transform: scale(1.06);
    }
    to{
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes successCheck{
    from{
        opacity: 0;
        transform: scale(.6);
    }
    to{
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes successRing{
    0%,100%{
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(134,239,172,.00);
    }
    50%{
        transform: scale(1.06);
        box-shadow: 0 0 0 14px rgba(134,239,172,.04);
    }
}

@keyframes successGlow{
    0%,100%{
        opacity: .7;
        transform: translateY(0);
    }
    50%{
        opacity: 1;
        transform: translateY(-4px);
    }
}

/* Policy catalog includes the general manifesto and published policies. */
[hidden]{display:none!important;}
.policy-edition-text{white-space:pre-wrap;overflow-wrap:anywhere;max-height:32rem;overflow:auto;}
.policy-hash{display:block;overflow-wrap:anywhere;font-size:.75rem;color:var(--muted);}
.policy-language-note{font-size:.85rem;color:var(--accent);}
#policy-catalog .standard-card{display:grid;gap:12px;}
#policy-proof>.standard-card{margin-block:1rem;}
#language{max-width:240px;}

#policy-catalog input[type="checkbox"]{width:auto;margin-right:.5rem;}
#policy-catalog label{display:flex;align-items:center;gap:.4rem;}
