/* =========================================================
   FORMATO CONTÁBIL — Relatório de Abertura de Empresa
   Identidade: bordô, branco-papel e dourado do logo · Cormorant Garamond + Jost
   Direção: uma sala escura em tom de vinho; as folhas do dossiê são as peças iluminadas.
   ========================================================= */

@font-face { font-family: 'Cormorant Garamond'; font-style: italic; font-weight: 500; font-display: swap; src: url("../fonts/cormorant-garamond-italic-latin-ext-500.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Cormorant Garamond'; font-style: italic; font-weight: 500; font-display: swap; src: url("../fonts/cormorant-garamond-italic-latin-500.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Cormorant Garamond'; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/cormorant-garamond-normal-latin-ext-500.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Cormorant Garamond'; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/cormorant-garamond-normal-latin-500.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Jost'; font-style: normal; font-weight: 400 600; font-display: swap; src: url("../fonts/jost-normal-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Jost'; font-style: normal; font-weight: 400 600; font-display: swap; src: url("../fonts/jost-normal-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  /* a sala */
  --bg: #170A0C;
  --bg-2: #241114;
  --bg-3: #321A1E;
  --ink: #F4EBE4;
  --muted: #CFBEB6;
  /* o papel */
  --paper: #FBF8F4;
  --paper-2: #F1E9DE;
  --paper-3: #E3D6C5;
  --p-ink: #2B2324;
  --p-muted: #62575A;
  /* a marca */
  --vinho: #7A2B34;
  --vinho-d: #5E2029;
  --ouro: #C8A580;
  --ouro-l: #DDBF9E;
  --erro: #B3261E;
  --erro-l: #FFB4A9;

  --serif: "Cormorant Garamond", "Times New Roman", serif;
  --sans: "Jost", "Segoe UI", system-ui, sans-serif;

  /* cinco tamanhos */
  --t-display: clamp(46px, 7.2vw, 108px);
  --t-h2: clamp(34px, 4.4vw, 68px);
  --t-h3: clamp(27px, 2.5vw, 38px);
  --t-lead: clamp(19px, 1.5vw, 23px);
  --t-body: 17px;
  --t-small: 14px;

  --m: clamp(16px, 3vw, 44px);
  --bar-h: 76px;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --spring: cubic-bezier(.34, 1.56, .64, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--bar-h) + 16px); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: var(--t-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3, h4, p, ol, ul, figure, fieldset { margin: 0; padding: 0; }
ol, ul { list-style: none; }
fieldset { border: 0; min-width: 0; }
a { color: inherit; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
::selection { background: var(--ouro); color: var(--bg); }
:focus-visible { outline: 3px solid var(--ouro); outline-offset: 3px; }
.sheet :focus-visible { outline-color: var(--vinho); }
[hidden] { display: none !important; }

h1, h2, h3 { font-family: var(--serif); font-weight: 500; letter-spacing: -.02em; line-height: .98; text-wrap: balance; }
.statement { font-size: var(--t-lead); line-height: 1.45; max-width: 34ch; }
.link { background: none; border: 0; padding: 4px 0; text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 2px; transition: color .25s, text-underline-offset .25s var(--ease); }
.link:hover { text-underline-offset: 8px; color: var(--vinho); }

/* ---------- Linha de progresso e barra do topo ---------- */
.progress-line { position: fixed; inset: 0 0 auto 0; height: 4px; z-index: 60; }
.progress-line span { display: block; height: 100%; background: var(--ouro); transform: scaleX(0); transform-origin: left; transition: transform .7s var(--ease); }

.bar { position: fixed; inset: 0 0 auto 0; z-index: 50; height: var(--bar-h); padding: 0 var(--m); display: flex; align-items: center; justify-content: space-between; gap: 16px; transition: background-color .4s, transform .5s var(--ease); }
.bar.is-solid { background: var(--bg); }
.bar-logo { display: block; color: var(--ink); height: 46px; }
.bar-logo svg { height: 100%; width: auto; fill: currentColor; }
.bar-progress { font-size: var(--t-body); color: var(--ink); font-variant-numeric: tabular-nums; }
.bar-progress span { font-weight: 600; }

/* ---------- Botões ---------- */
.btn { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 14px; min-height: 60px; padding: 14px 30px; border: 0; border-radius: 0; font-weight: 500; font-size: var(--t-body); text-decoration: none; transition: background-color .3s, color .3s, transform .25s var(--ease); will-change: transform; }
.btn svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform .4s var(--ease); flex: none; }
.btn:hover svg { transform: translateX(6px); }
.btn:active { transform: scale(.975); }
.btn-primary { background: var(--vinho); color: #fff; }
.btn-primary:hover { background: var(--vinho-d); }
.btn-ghost { background: var(--paper-2); color: var(--vinho); min-height: 54px; padding: 10px 22px; font-size: var(--t-body); }
.btn-ghost:hover { background: var(--paper-3); }
.btn-ghost:hover svg { transform: rotate(90deg); }
.btn[disabled] { opacity: .55; cursor: not-allowed; }

/* ---------- Início: cabeçalho curto sobre a foto da sede ---------- */
.hero { position: relative; display: grid; align-items: end; min-height: clamp(320px, 44svh, 480px); padding: calc(var(--bar-h) + 32px) var(--m) clamp(28px, 3.4vw, 48px); overflow: clip; }
.hero-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; filter: brightness(.34) saturate(.7); transform: scale(1.06); will-change: transform; }
.hero-inner { position: relative; display: grid; gap: 16px; max-width: 1000px; }
.hero-title { font-size: var(--t-display); color: var(--ink); letter-spacing: -.03em; line-height: .92; }
.hero-title .line { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .08em; }
.hero-title .line > span { display: inline-block; }
.hero-lead { font-size: var(--t-lead); line-height: 1.45; max-width: 46ch; }
.hero-privacy { font-size: var(--t-small); line-height: 1.55; color: var(--muted); max-width: 78ch; }

/* a folha em foco fica clara, as outras recuam */
.js .sheet { filter: brightness(.66); }
.js .sheet.is-lit, .js .sheet:focus-within { filter: none; }
.sheet { transition: filter .7s var(--ease); }

/* ---------- O dossiê ---------- */
.dossie { padding: clamp(28px, 3.4vw, 48px) var(--m) 0; }
.dossie-grid { display: grid; grid-template-columns: 250px minmax(0, 1fr) 330px; gap: clamp(24px, 3vw, 52px); align-items: start; }

/* índice */
.index { position: sticky; top: calc(var(--bar-h) + 12px); display: grid; gap: 10px; }
.index-ink { display: flex; align-items: center; gap: 16px; margin-bottom: 14px; }
.index-ink p { font-size: var(--t-body); color: var(--muted); line-height: 1.2; }
.index-ink strong { display: block; font: 500 var(--t-h3)/1 var(--serif); color: var(--ink); font-variant-numeric: tabular-nums; }
.ink { width: 84px; height: auto; overflow: visible; flex: none; }
.ink .ink-line { fill: none; stroke: var(--ouro); stroke-width: 10; stroke-linejoin: round; }
.ink .ink-fill { fill: var(--ouro); }
.index-title { color: var(--muted); font-size: var(--t-body); }
.index-position { font: 500 var(--t-h3)/1.1 var(--serif); margin-bottom: 8px; }
.index-select { display: none; }
#index-list { display: grid; gap: 2px; }
.stage { display: grid; grid-template-columns: 26px 1fr; gap: 12px; align-items: start; width: 100%; padding: 10px 8px 10px 0; background: none; border: 0; text-align: left; color: var(--muted); transition: color .3s, transform .4s var(--ease); }
.stage:hover { color: var(--ink); transform: translateX(6px); }
.stage-dot { width: 22px; height: 22px; margin-top: 3px; border-radius: 50%; background: var(--bg-3); display: grid; place-items: center; transition: background-color .4s, transform .5s var(--spring); }
.stage-dot::after { opacity: 0; content: ""; width: 9px; height: 5px; border-left: 2px solid var(--bg); border-bottom: 2px solid var(--bg); transform: rotate(-45deg) translate(1px, -1px) scale(.4); transition: transform .4s var(--spring) .1s, opacity .2s; }
.stage-label { font-size: var(--t-body); line-height: 1.3; }
.stage-label small { display: block; font-size: var(--t-small); color: var(--muted); opacity: .85; }
.stage[data-status="current"] { color: var(--ink); }
.stage[data-status="current"] .stage-dot { background: var(--ink); transform: scale(.6); }
.stage[data-status="done"] .stage-dot { background: var(--ouro); }
.stage[data-status="done"] .stage-dot::after { opacity: 1; transform: rotate(-45deg) translate(1px, -1px) scale(1); }
.stage[data-status="done"] .stage-label { color: var(--ink); }
.index-saved { font-size: var(--t-small); color: var(--muted); margin-top: 8px; }

/* folhas */
.sheets { min-width: 0; }
#campos { display: grid; gap: clamp(18px, 2vw, 28px); }
.sheet { background: var(--paper); color: var(--p-ink); padding: clamp(24px, 3.4vw, 56px); display: grid; gap: 22px; scroll-margin-top: calc(var(--bar-h) + 16px); }
.sheet:focus { outline: none; }
.sheet-head { display: grid; gap: 8px; }
.sheet-head h3 { font-size: var(--t-h3); color: var(--vinho); }
.sheet-head p { color: var(--p-muted); }
.sheet-copy { max-width: 68ch; }
.restored { background: var(--bg-2); padding: 18px 22px; margin-bottom: 20px; display: flex; flex-wrap: wrap; gap: 8px 24px; align-items: center; justify-content: space-between; }
.restored .link:hover { color: var(--ouro); }

.grid { display: grid; gap: 14px; }
.g-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g-6 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.c-1 { grid-column: span 1; } .c-2 { grid-column: span 2; } .c-3 { grid-column: span 3; } .c-4 { grid-column: span 4; }

/* campos */
.field { position: relative; }
.field input, .field textarea { width: 100%; min-height: 62px; padding: 24px 42px 6px 14px; background: var(--paper-2); border: 2px solid var(--paper-2); border-bottom-color: var(--paper-3); border-radius: 0; color: var(--p-ink); font-size: var(--t-body); transition: border-color .25s, background-color .25s; }
.field textarea { min-height: 150px; padding-top: 30px; resize: vertical; line-height: 1.5; display: block; }
.field input::placeholder, .field textarea::placeholder { color: #8A7D7D; opacity: 1; }
.field input:hover, .field textarea:hover { background: #ECE2D5; border-color: #ECE2D5; border-bottom-color: var(--paper-3); }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--vinho); background: #fff; }
.field label { position: absolute; left: 16px; top: 19px; right: 44px; color: var(--p-muted); pointer-events: none; transform-origin: left top; transition: transform .3s var(--ease), color .3s; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.field input:focus + label, .field input:not(:placeholder-shown) + label,
.field textarea + label, .field.fixed label { transform: translateY(-12px) scale(.8); }
.field input:focus + label, .field textarea:focus + label { color: var(--vinho); }
.field .ok { position: absolute; right: 16px; top: 22px; width: 20px; height: 20px; border-radius: 50%; background: var(--vinho); opacity: 0; transform: scale(.4); transition: transform .45s var(--spring), opacity .2s; }
.field .ok::after { content: ""; position: absolute; left: 5px; top: 6px; width: 9px; height: 5px; border-left: 2px solid #fff; border-bottom: 2px solid #fff; transform: rotate(-45deg); }
.field.valid .ok { transform: scale(1); opacity: 1; }
.field.invalid input, .field.invalid textarea { border-color: var(--erro); }
.err { color: var(--erro); font-size: var(--t-small); line-height: 1.4; padding-top: 6px; }
.err:empty { display: none; }
.hint { font-size: var(--t-small); color: var(--p-muted); padding-top: 6px; line-height: 1.4; }
.upper { text-transform: uppercase; }
.c-1 input { padding-right: 8px; }
.c-1 label { right: 6px; }
.c-1 .ok { display: none; }

/* marcações */
.checks { display: grid; gap: 8px; }
.check { position: relative; display: grid; grid-template-columns: 24px 1fr; gap: 14px; align-items: start; padding: 16px 18px; background: var(--paper-2); cursor: pointer; overflow: hidden; isolation: isolate; transition: color .3s, transform .2s var(--ease); }
.check::before { content: ""; position: absolute; inset: 0; background: var(--vinho); transform: scaleX(0); transform-origin: left; transition: transform .5s var(--ease); z-index: -1; }
.check:hover { background: #ECE2D5; }
.check:active { transform: scale(.99); }
.check input { position: absolute; opacity: 0; width: 100%; height: 100%; inset: 0; margin: 0; cursor: pointer; }
.check .box { width: 24px; height: 24px; background: #fff; border: 2px solid var(--vinho); display: grid; place-items: center; transition: background-color .3s, border-color .3s; }
.check .box::after { content: ""; width: 11px; height: 6px; border-left: 2.5px solid var(--vinho-d); border-bottom: 2.5px solid var(--vinho-d); opacity: 0; transform: rotate(-45deg) translate(1px, -1px) scale(.4); transition: transform .4s var(--spring), opacity .2s; }
.check:has(input:checked) { color: #fff; }
.check:has(input:checked)::before { transform: scaleX(1); }
.check:has(input:checked) .box { background: var(--ouro); border-color: var(--ouro); }
.check:has(input:checked) .box::after { opacity: 1; transform: rotate(-45deg) translate(1px, -1px) scale(1); }
.check:has(input:focus-visible) { outline: 3px solid var(--vinho); outline-offset: 2px; }
.check.radio .box, .check.radio .box::after { border-radius: 50%; }
.check.radio .box::after { width: 10px; height: 10px; border: 0; background: var(--vinho-d); transform: scale(.4); }
.check.radio:has(input:checked) .box::after { transform: scale(1); opacity: 1; }
.err-block { padding: 0; }

.info { background: var(--paper-2); padding: 20px 24px; border-left: 5px solid var(--vinho); }
.info p { font-size: var(--t-body); line-height: 1.6; max-width: 78ch; }

/* sócios */
.partner { display: grid; gap: 14px; padding-top: 8px; }
.partner + .partner { margin-top: 30px; }
.partner-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.partner-head h4 { font: 500 var(--t-h3)/1 var(--serif); color: var(--vinho); }
.partner-remove { display: inline-flex; align-items: center; gap: 8px; background: none; border: 0; padding: 8px 4px; color: var(--erro); font-size: var(--t-body); }
.partner-remove svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.partner-remove:hover { text-decoration: underline; text-underline-offset: 4px; }
.docs-label { font-weight: 500; padding-top: 6px; }
.upload { background: var(--paper-2); padding: 26px 20px; display: grid; justify-items: center; gap: 6px; text-align: center; transition: background-color .3s, transform .4s var(--ease); }
.upload.dragging { background: #E9D6D2; transform: scale(1.01); }
.upload svg { width: 28px; height: 28px; fill: none; stroke: var(--vinho); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.upload p { font-weight: 500; }
.upload span { font-size: var(--t-small); color: var(--p-muted); }
.upload .btn { margin-top: 10px; background: var(--paper); }
.upload .btn:hover { background: #fff; }
.sr-only { position: absolute; width: 2px; height: 2px; margin: -2px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.files { display: grid; gap: 6px; }
.files li { display: grid; grid-template-columns: 44px 1fr auto auto; gap: 12px; align-items: center; background: var(--paper-2); padding: 8px 8px 8px 10px; animation: file-in .5s var(--ease) both; }
@keyframes file-in { from { opacity: 0; transform: translateY(10px); } }
.files .thumb { width: 44px; height: 44px; object-fit: cover; background: var(--paper-3); display: grid; place-items: center; }
.files .thumb svg { width: 20px; height: 20px; fill: none; stroke: var(--vinho); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.files .name { min-width: 0; line-height: 1.3; }
.files .name span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.files .name small { font-size: var(--t-small); color: var(--p-muted); }
.files .tick { width: 20px; height: 20px; border-radius: 50%; background: var(--vinho); position: relative; }
.files .tick::after { content: ""; position: absolute; left: 5px; top: 6px; width: 9px; height: 5px; border-left: 2px solid #fff; border-bottom: 2px solid #fff; transform: rotate(-45deg); }
.files button { width: 44px; height: 44px; background: none; border: 0; display: grid; place-items: center; color: var(--p-muted); }
.files button:hover { color: var(--erro); }
.files button svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.total { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; background: var(--paper-2); padding: 16px 20px; margin-top: 8px; }
.total strong { font: 500 var(--t-h3)/1 var(--serif); color: var(--erro); font-variant-numeric: tabular-nums; transition: color .3s; }
.total.ok strong { color: var(--vinho); }
#add-socio { justify-self: start; }

/* envio */
.send { display: grid; gap: 20px; padding: clamp(28px, 4vw, 56px) 0 8px; scroll-margin-top: calc(var(--bar-h) + 16px); }
.send h3 { font-size: var(--t-h3); }
.pending p { color: var(--ink); margin-bottom: 12px; }
.pending ul { display: flex; flex-wrap: wrap; gap: 8px; }
.pending button { background: var(--bg-3); border: 0; padding: 10px 16px; color: var(--ink); font-size: var(--t-body); transition: background-color .3s, transform .3s var(--ease); }
.pending button:hover { background: var(--vinho); transform: translateY(-2px); }
.consent { background: var(--bg-2); color: var(--ink); line-height: 1.55; }
.consent:hover { background: var(--bg-3); }
.errors { background: #45141A; padding: 18px 22px; color: #FFE9E5; }
.errors p { font-weight: 600; margin-bottom: 6px; }
.errors ul { list-style: disc; padding-left: 22px; }
.trap { position: absolute; left: -9999px; width: 2px; height: 2px; opacity: 0; }
.btn-send { width: 100%; min-height: 78px; margin-top: 18px; background: var(--ouro); color: var(--bg); font-size: var(--t-lead); font-weight: 600; }
.btn-send:hover { background: var(--ouro-l); }
.upload-progress { display: flex; align-items: center; gap: 16px; padding-top: 14px; color: var(--ink); font-variant-numeric: tabular-nums; }
.upload-progress progress { flex: 1; height: 8px; appearance: none; border: 0; background: var(--bg-3); }
.upload-progress progress::-webkit-progress-bar { background: var(--bg-3); }
.upload-progress progress::-webkit-progress-value { background: var(--ouro); transition: width .3s; }
.upload-progress progress::-moz-progress-bar { background: var(--ouro); }

/* resumo ao vivo */
.summary { position: sticky; top: calc(var(--bar-h) + 12px); background: var(--bg-2); max-height: calc(100svh - var(--bar-h) - 24px); overflow: auto; overscroll-behavior: contain; }
.summary summary { font: 500 var(--t-h3)/1.1 var(--serif); padding: 26px 26px 0; cursor: pointer; list-style: none; }
.summary summary::-webkit-details-marker { display: none; }
.summary-body { padding: 10px 26px 28px; display: grid; gap: 22px; }
.summary-state { color: var(--ouro); font-size: var(--t-body); }
.summary-group h4 { font: 400 var(--t-small)/1.3 var(--sans); color: var(--muted); margin-bottom: 6px; }
.summary-group p, .summary-group li { overflow-wrap: anywhere; }
#res-nomes { counter-reset: n; display: grid; gap: 4px; }
#res-nomes li { counter-increment: n; display: grid; grid-template-columns: 22px 1fr; gap: 8px; color: var(--muted); }
#res-nomes li::before { content: counter(n) "."; color: var(--muted); }
#res-nomes li.set { color: var(--ink); }
#res-nomes li:first-child.set { font: 500 var(--t-h3)/1.05 var(--serif); align-items: baseline; }
#res-atividades { display: -webkit-box; -webkit-line-clamp: 5; -webkit-box-orient: vertical; overflow: hidden; }
.summary-capital { font: 500 var(--t-h3)/1 var(--serif); font-variant-numeric: tabular-nums; text-align: right; }
.summary-row { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; }
.summary-row h4 { margin: 0; }
.res-partner { display: grid; gap: 6px; margin-bottom: 12px; }
.res-partner p { display: flex; justify-content: space-between; gap: 12px; }
.res-partner strong { font-weight: 600; font-variant-numeric: tabular-nums; }
.res-bar { height: 8px; background: var(--bg-3); }
.res-bar i { display: block; height: 100%; background: var(--ouro); transform-origin: left; transition: transform .7s var(--ease); }
.flash { animation: flash .9s var(--ease); }
@keyframes flash { from { color: var(--ouro); transform: translateY(4px); } }

/* ---------- Conclusão ---------- */
.done { min-height: 100svh; padding: calc(var(--bar-h) + 6vh) var(--m) 8vh; display: grid; grid-template-columns: auto minmax(0, 1fr) minmax(0, 380px); gap: clamp(28px, 5vw, 80px); align-items: center; }
.done:focus { outline: none; }
.done-mark .ink { width: clamp(120px, 16vw, 230px); }
.done-text { display: grid; gap: 16px; }
.done-text h2 { font-size: var(--t-h2); }
.done-text h3 { font-size: var(--t-h3); color: var(--ouro); margin-top: 14px; }
.done-list { display: grid; gap: 8px; margin-top: 6px; }
.done-list li { position: relative; padding-left: 30px; }
.done-list li::before { content: ""; position: absolute; left: 2px; top: .55em; width: 13px; height: 7px; border-left: 2.5px solid var(--ouro); border-bottom: 2.5px solid var(--ouro); transform: rotate(-45deg); }
.done-protocol { color: var(--muted); }
.done-protocol strong { color: var(--ink); font-weight: 600; letter-spacing: .02em; }
.done-notice { background: var(--bg-2); padding: 16px 20px; }
.done-figure img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; filter: brightness(.84) contrast(1.04); }

/* ---------- Rodapé: uma linha ---------- */
.foot { display: grid; grid-template-columns: 1fr auto 1fr; gap: 12px 24px; align-items: baseline; padding: 16svh var(--m) 30px; font-size: var(--t-body); color: var(--muted); }
.foot-links { display: flex; gap: 24px; }
.foot-links a { color: var(--ink); text-underline-offset: 5px; }
.foot-links a:hover { color: var(--ouro); }
.foot-right { text-align: right; }

/* ---------- Entradas (só com animação ligada) ---------- */
.js.motion [data-rise] { opacity: 0; transform: translateY(30px); }
.js.motion .hero-title .line > span { transform: translateY(110%); }
.js.motion .hero-lead, .js.motion .hero-privacy { opacity: 0; transform: translateY(22px); }

/* ---------- Tablet e celular ---------- */
@media (max-width: 1180px) {
  .dossie-grid { grid-template-columns: 220px minmax(0, 1fr); }
  .summary { grid-column: 2; position: static; max-height: none; }
}
@media (max-width: 860px) {
  :root { --bar-h: 64px; }
  .bar-logo { height: 38px; }
  .dossie-grid { grid-template-columns: 1fr; }
  .index { top: var(--bar-h); z-index: 20; background: var(--bg); margin: 0 calc(var(--m) * -1); padding: 10px var(--m) 12px; grid-template-columns: auto 1fr; align-items: center; gap: 4px 14px; }
  .index-ink { margin: 0; grid-row: span 2; }
  .index-ink .ink { width: 46px; }
  .index-ink p, .index-title, .index nav, .index-saved { display: none; }
  .index-position { margin: 0; }
  .index-select { display: block; }
  .index-select label { position: absolute; width: 2px; height: 2px; overflow: hidden; clip-path: inset(50%); }
  .index-select select { width: 100%; min-height: 44px; background: var(--bg-2); color: var(--ink); border: 0; border-radius: 0; padding: 8px 12px; font-size: var(--t-body); }
  .summary { grid-column: 1; }
  .g-2 { grid-template-columns: 1fr; }
  .g-6 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .c-1, .c-2, .c-3 { grid-column: span 1; }
  .c-4, .m-2 { grid-column: span 2; }
  .files li { grid-template-columns: 44px 1fr auto; }
  .files .tick { display: none; }
  .done { grid-template-columns: 1fr; align-content: start; }
  .done-figure { width: 70%; }
  .foot { grid-template-columns: 1fr; padding-top: 12svh; }
  .foot-links { flex-wrap: wrap; gap: 8px 20px; }
  .foot-right { text-align: left; }
}

/* ---------- Rolagem suave (Lenis) ---------- */
html.lenis, html.lenis body { height: auto; }
html.lenis { scroll-behavior: auto !important; }
.lenis [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: clip; }
