/* Rol de Sócios
   Direção: a vida das coletividades em fotografia real, com a caderneta de quotas carimbada como gesto central.
   Fundo claro com leve tom verde, tinta verde-escura, carimbo carmim. Composição assimétrica, fotos com cantos de 8px. */
/* Tipos de letra alojados no próprio site (sem pedidos ao Google: RGPD). Ficheiros variáveis. */
@font-face { font-family: "Atkinson Hyperlegible Next"; font-style: normal; font-weight: 400 700; font-display: swap; src: url("../fonts/atkinson-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: "Atkinson Hyperlegible Next"; font-style: normal; font-weight: 400 700; font-display: swap; src: url("../fonts/atkinson-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; }
@font-face { font-family: "Schibsted Grotesk"; font-style: normal; font-weight: 700 900; font-display: swap; src: url("../fonts/schibsted-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: "Schibsted Grotesk"; font-style: normal; font-weight: 700 900; font-display: swap; src: url("../fonts/schibsted-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 {
  --ground: #f2f5f1;
  --sheet: #ffffff;
  --tint: #e4ebe3;
  --card: #f6ddd1;
  --ink: #0f1d16;
  --ink-2: #4a5a50;
  --rule: #d2dbd2;
  --brand: #1c5a3b;
  --brand-ink: #ffffff;
  --stamp: #b0153a;
  --ok: #1c6a39;
  --on-ink: #f2f5f1;
  --night: #0d1914;
  --night-ink: #e8f0ea;
  --night-2: #a9bcb0;
  --shadow: 0 1px 2px rgb(15 29 22 / .08), 0 10px 30px -12px rgb(15 29 22 / .28);
  --shadow-lg: 0 2px 4px rgb(15 29 22 / .08), 0 24px 60px -24px rgb(15 29 22 / .45);
  --f-display: "Schibsted Grotesk", "Helvetica Neue", Arial, system-ui, sans-serif;
  --f-body: "Atkinson Hyperlegible Next", "Atkinson Hyperlegible", "Segoe UI", system-ui, -apple-system, sans-serif;
  --ease: cubic-bezier(.23, 1, .32, 1);
  --r: 6px;
  --r-img: 8px;
  --gut: max(20px, env(safe-area-inset-left, 0px));
  --gut-r: max(20px, env(safe-area-inset-right, 0px));
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ground: #0b1510; --sheet: #121f19; --tint: #17271f; --card: #3a2a2c; --ink: #e4ece6; --ink-2: #a6b6ab;
    --rule: #2a3c32; --brand: #7fd3a1; --brand-ink: #0b1510; --stamp: #ff7d90; --ok: #7fd3a1; --on-ink: #0b1510;
    --shadow: 0 1px 2px rgb(0 0 0 / .4), 0 10px 30px -12px rgb(0 0 0 / .7);
    --shadow-lg: 0 2px 4px rgb(0 0 0 / .4), 0 24px 60px -24px rgb(0 0 0 / .8);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --ground: #0b1510; --sheet: #121f19; --tint: #17271f; --card: #3a2a2c; --ink: #e4ece6; --ink-2: #a6b6ab;
  --rule: #2a3c32; --brand: #7fd3a1; --brand-ink: #0b1510; --stamp: #ff7d90; --ok: #7fd3a1; --on-ink: #0b1510;
  --shadow: 0 1px 2px rgb(0 0 0 / .4), 0 10px 30px -12px rgb(0 0 0 / .7);
  --shadow-lg: 0 2px 4px rgb(0 0 0 / .4), 0 24px 60px -24px rgb(0 0 0 / .8);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 90px; }
body {
  margin: 0; background: var(--ground); color: var(--ink);
  font-family: var(--f-body); font-size: 1rem; line-height: 1.55;
  font-variant-numeric: tabular-nums; -webkit-tap-highlight-color: transparent;
  caret-color: var(--stamp); scrollbar-color: var(--rule) var(--ground); overflow-wrap: anywhere;
}
::selection { background: var(--brand); color: var(--brand-ink); }
img { max-width: 100%; display: block; }
[hidden] { display: none !important; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .18em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; border-radius: 2px; }
[tabindex="-1"]:focus:not(:focus-visible), h1[tabindex="-1"]:focus { outline: none; }
h1, h2, h3, h4 { font-family: var(--f-display); font-weight: 800; line-height: 1.04; letter-spacing: -0.025em; text-wrap: balance; margin: 0; hyphens: auto; overflow-wrap: break-word; }
p { margin: 0; text-wrap: pretty; }
.wrap { max-width: 1200px; margin-inline: auto; padding-left: var(--gut); padding-right: var(--gut-r); }
.prose { max-width: 64ch; }
.muted { color: var(--ink-2); }
.sr { position: absolute !important; width: 1px !important; height: 1px !important; min-height: 0 !important; padding: 0 !important; border: 0 !important; margin: -1px !important; overflow: hidden !important; clip: rect(0 0 0 0) !important; white-space: nowrap !important; }
.skip { position: absolute; left: var(--gut); top: -60px; background: var(--ink); color: var(--on-ink); padding: 10px 14px; z-index: 50; border-radius: var(--r); }
.skip:focus { top: calc(8px + env(safe-area-inset-top, 0px)); }
.loading { padding-block: 60px; color: var(--ink-2); }

/* Botões */
.btn {
  font: 700 1rem/1.2 var(--f-body); min-height: 46px; padding: 11px 20px;
  border-radius: var(--r); border: 1.5px solid var(--ink); background: transparent; color: var(--ink);
  cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  text-decoration: none; transition: transform 140ms var(--ease), background-color 160ms ease, color 160ms ease, border-color 160ms ease;
  touch-action: manipulation;
}
.btn:active { transform: scale(.97); }
.btn-main { background: var(--brand); border-color: var(--brand); color: var(--brand-ink); }
.btn-quiet { border-color: transparent; text-decoration: underline; text-underline-offset: .2em; padding-inline: 8px; }
.btn-danger { border-color: var(--stamp); color: var(--stamp); }
.btn-danger.btn-main { background: var(--stamp); border-color: var(--stamp); color: var(--on-ink); }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .45; cursor: not-allowed; transform: none; }
@media (hover: hover) and (pointer: fine) {
  .btn:not(.btn-main):not([disabled]):hover { background: color-mix(in srgb, var(--ink) 7%, transparent); }
  .btn-main:not([disabled]):not([aria-disabled="true"]):hover { background: color-mix(in srgb, var(--brand) 86%, var(--ink)); }
}
.btn svg { width: 18px; height: 18px; flex: none; }
.icon { stroke: currentColor; fill: none; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.link-arrow { font-weight: 700; display: inline-flex; gap: 6px; align-items: center; min-height: 44px; }

/* Campos */
.field { display: grid; gap: 6px; }
.field label, .lbl { font-weight: 700; font-size: .95rem; }
.hint { font-size: .9rem; color: var(--ink-2); }
input[type="text"], input[type="email"], input[type="tel"], input[type="search"], input[type="number"], input[type="date"], select, textarea {
  font: 400 1rem/1.4 var(--f-body); color: var(--ink); background: var(--sheet);
  border: 1.5px solid var(--rule); border-radius: var(--r); padding: 10px 12px; min-height: 46px; width: 100%;
}
input:hover, select:hover, textarea:hover { border-color: var(--ink-2); }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 2px solid var(--brand); outline-offset: 0; border-color: var(--brand); }
input[aria-invalid="true"], select[aria-invalid="true"] { border-color: var(--stamp); }
.err { color: var(--stamp); font-size: .92rem; font-weight: 700; }
.err:empty { display: none; }
input[type="checkbox"], input[type="radio"] { width: 22px; height: 22px; accent-color: var(--brand); margin: 0; flex: none; }
.check { display: flex; gap: 10px; align-items: flex-start; min-height: 44px; padding-block: 8px; cursor: pointer; }
textarea { min-height: 140px; resize: vertical; font-size: 1rem; }
fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
legend { font-weight: 700; padding: 0; margin-bottom: 4px; }

/* Cabeçalho do site */
.top-bar { position: sticky; top: 0; z-index: 30; background: var(--ground); border-bottom: 1px solid transparent; transition: border-color 200ms ease; }
.top-bar.scrolled { border-bottom-color: var(--rule); }
.top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-block: 14px; }
.mark { font-family: var(--f-display); font-weight: 900; font-size: 1.7rem; letter-spacing: -0.04em; text-decoration: none; line-height: 1; display: inline-flex; align-items: center; gap: 9px; white-space: nowrap; }
.mark-stamp { width: 30px; height: 30px; border: 2px solid var(--stamp); border-radius: 5px; display: inline-grid; place-items: center; transform: rotate(-8deg); color: var(--stamp); font-size: .95rem; font-weight: 900; letter-spacing: 0; }
.top nav { display: flex; gap: 2px; align-items: center; }
.navlink { font-weight: 700; text-decoration: none; padding: 10px 12px; border-radius: var(--r); min-height: 44px; display: inline-flex; align-items: center; }
@media (hover: hover) and (pointer: fine) { .navlink:hover { background: color-mix(in srgb, var(--ink) 7%, transparent); } }
@media (max-width: 760px) { .top .navlink { display: none; } }

/* Hero */
.hero { display: grid; gap: 40px; padding-block: 24px 64px; align-items: center; }
.hero h1 { font-size: clamp(2.7rem, 1.4rem + 5.6vw, 5.6rem); font-weight: 900; letter-spacing: -0.045em; line-height: .96; max-width: 9.5ch; }
.hero .lead { font-size: clamp(1.1rem, 1rem + .4vw, 1.3rem); margin-top: 24px; max-width: 36ch; color: var(--ink-2); }
.hero .lead b { color: var(--ink); }
.hero .actions { display: flex; flex-wrap: wrap; gap: 10px 22px; align-items: center; margin-top: 32px; }
.hero .fine { margin-top: 18px; font-size: .95rem; color: var(--ink-2); }
.hero-media { position: relative; }
.photo { border-radius: var(--r-img); overflow: hidden; background: var(--tint); box-shadow: var(--shadow-lg); }
.photo img { width: 100%; height: 100%; object-fit: cover; }
.hero-media .photo { aspect-ratio: 4 / 3.3; }
.hero-media .cad { position: relative; margin: -90px 0 0 auto; width: min(92%, 400px); }
.credit { font-size: .8rem; color: var(--ink-2); margin-top: 10px; }
.credit a { color: inherit; }
@media (min-width: 960px) {
  .hero { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 64px; padding-block: 40px 110px; }
  .hero-media .photo { aspect-ratio: 5 / 5.4; margin-left: 40px; }
  .hero-media .cad { position: absolute; left: -48px; bottom: -56px; margin: 0; width: 390px; }
  .hero-media .credit { text-align: right; }
}

/* Caderneta */
.cad { background: var(--card); border-radius: 6px; box-shadow: var(--shadow-lg); padding: 20px 20px 16px; max-width: 460px; transform: rotate(-1.6deg); }
@media (prefers-reduced-motion: reduce) { .cad { transform: none; } }
.cad-in { border: 1px solid color-mix(in srgb, var(--ink) 28%, transparent); border-radius: 3px; padding: 14px 14px 10px; }
.cad-head { display: grid; gap: 2px; padding-bottom: 10px; border-bottom: 1px dashed color-mix(in srgb, var(--ink) 45%, transparent); }
.cad-kind { font-size: .74rem; letter-spacing: .14em; font-weight: 700; }
.cad-assoc { font-family: var(--f-display); font-weight: 800; font-size: 1.02rem; line-height: 1.2; letter-spacing: -0.01em; }
.cad-who { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; padding-block: 10px; flex-wrap: wrap; }
.cad-name { font-family: var(--f-display); font-size: 1.3rem; font-weight: 800; letter-spacing: -0.02em; }
.cad-no { font-weight: 700; }
.months { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 5px; }
.mcell {
  position: relative; min-height: 50px; border: 1px solid color-mix(in srgb, var(--ink) 32%, transparent);
  border-radius: 3px; background: color-mix(in srgb, var(--card) 65%, #fff 35%);
  font: 700 .8rem/1 var(--f-body); color: var(--ink); text-align: left; padding: 6px; cursor: pointer;
  display: flex; align-items: flex-start; overflow: hidden; touch-action: manipulation; white-space: nowrap;
}
:root[data-theme="dark"] .mcell { background: color-mix(in srgb, var(--card) 85%, #000 15%); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .mcell { background: color-mix(in srgb, var(--card) 85%, #000 15%); } }
.mcell:active { transform: scale(.96); }
.stamp {
  position: absolute; left: 50%; top: 60%; translate: -50% -50%;
  font: 900 .78rem/1 var(--f-display); letter-spacing: .06em; color: var(--stamp);
  border: 2px solid var(--stamp); border-radius: 3px; padding: 4px 5px 3px; white-space: nowrap;
  opacity: 0; transform: rotate(var(--rot, -6deg)) scale(1.35);
  transition: opacity 120ms ease-out, transform 170ms var(--ease); pointer-events: none;
}
[aria-pressed="true"] > .stamp { opacity: .92; transform: rotate(var(--rot, -6deg)) scale(1); }
@media (prefers-reduced-motion: reduce) { .stamp { transition: opacity 120ms ease-out; transform: rotate(var(--rot, -6deg)); } }
@media (max-width: 480px) { .stamp { font-size: .68rem; padding: 3px 4px 2px; top: 66%; } .mcell { min-height: 54px; } }
.cad-foot { display: flex; justify-content: space-between; gap: 10px; padding-top: 10px; font-size: .88rem; flex-wrap: wrap; }
.cad-tip { font-size: .85rem; color: var(--ink-2); margin-top: 12px; padding-left: 4px; }

/* Secções */
.sec { padding-block: 64px; }
@media (min-width: 960px) { .sec { padding-block: 96px; } }
.sec-head { display: grid; gap: 14px; max-width: 760px; margin-bottom: 40px; }
.sec h2 { font-size: clamp(2rem, 1.3rem + 2.6vw, 3.4rem); letter-spacing: -0.035em; }
.sec-head p { font-size: 1.1rem; color: var(--ink-2); max-width: 56ch; }

/* Mosaico de fotos */
.mosaic { display: grid; gap: 14px; grid-template-columns: minmax(0, 1fr); }
.tile { position: relative; border-radius: var(--r-img); overflow: hidden; background: var(--tint); min-height: 260px; isolation: isolate; }
.tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 600ms var(--ease); }
.tile::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgb(6 14 10 / .78) 0%, rgb(6 14 10 / .1) 55%, transparent 100%); z-index: 1; }
.tile figcaption { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; padding: 22px; color: #fff; display: grid; gap: 4px; }
.tile figcaption b { font-family: var(--f-display); font-size: 1.45rem; letter-spacing: -0.02em; font-weight: 800; line-height: 1.1; }
.tile figcaption span { font-size: .95rem; color: rgb(255 255 255 / .86); max-width: 34ch; }
@media (hover: hover) and (pointer: fine) { .tile:hover img { transform: scale(1.03); } }
@media (prefers-reduced-motion: reduce) { .tile img { transition: none; } }
@media (min-width: 820px) {
  .mosaic { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); grid-template-rows: 300px 300px; }
  .mosaic .t1 { grid-row: span 2; }
}

/* Como funciona + pré-visualização da app */
.how { display: grid; gap: 48px; align-items: center; }
@media (min-width: 960px) { .how { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 72px; } }
.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 26px; }
.steps li { display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 16px; align-items: start; }
.steps .n { width: 44px; height: 44px; border: 2px solid var(--stamp); color: var(--stamp); border-radius: 6px; display: grid; place-items: center; font: 900 1.1rem/1 var(--f-display); transform: rotate(-6deg); }
.steps h3 { font-size: 1.3rem; letter-spacing: -0.02em; margin-bottom: 6px; }
.steps p { color: var(--ink-2); }
.window { background: var(--sheet); border-radius: 10px; box-shadow: var(--shadow-lg); overflow: hidden; border: 1px solid var(--rule); }
.window-bar { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 16px; border-bottom: 1px solid var(--rule); font-size: .88rem; }
.window-bar b { font-family: var(--f-display); font-size: 1rem; letter-spacing: -0.01em; }
.window-body { padding: 12px 16px 16px; overflow-x: auto; }
.mini { border-collapse: collapse; width: 100%; min-width: 520px; font-size: .86rem; }
.mini th, .mini td { padding: 7px 4px; border-bottom: 1px solid var(--rule); text-align: center; white-space: nowrap; }
.mini th { color: var(--ink-2); font-weight: 700; }
.mini td { position: relative; } /* prende o texto .sr à célula, senão cria scroll horizontal */
.mini td:first-child, .mini th:first-child { text-align: left; white-space: nowrap; padding-right: 10px; }
.mini .p { display: inline-block; font: 900 .58rem/1 var(--f-display); color: var(--stamp); border: 1.5px solid var(--stamp); border-radius: 2px; padding: 3px 3px 2px; letter-spacing: .04em; }
.mini .d { display: inline-block; width: 30px; height: 18px; border: 1px dashed var(--stamp); border-radius: 2px; vertical-align: middle; }
.mini .e { display: inline-block; width: 30px; height: 18px; border: 1px solid var(--rule); border-radius: 2px; vertical-align: middle; }
.window-foot { display: flex; flex-wrap: wrap; gap: 8px 20px; padding: 12px 16px; border-top: 1px solid var(--rule); font-size: .88rem; background: var(--tint); }

/* Faixa de fotografia (passagem de pasta) */
.band { position: relative; color: var(--night-ink); background: var(--night); overflow: hidden; isolation: isolate; }
.band > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; opacity: .55; }
.band::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgb(8 16 12 / .94) 0%, rgb(8 16 12 / .78) 48%, rgb(8 16 12 / .35) 100%); }
.band .wrap { padding-block: 120px; display: grid; gap: 26px; }
.band h2 { font-size: clamp(2.1rem, 1.3rem + 3vw, 3.8rem); max-width: 15ch; letter-spacing: -0.04em; color: #fff; }
.band p { font-size: 1.15rem; max-width: 52ch; color: var(--night-2); }
.band .credit { color: var(--night-2); }
.band .btn { border-color: #fff; color: #fff; justify-self: start; }
@media (hover: hover) and (pointer: fine) { .band .btn:hover { background: rgb(255 255 255 / .12); } }

/* Assembleia */
.split { display: grid; grid-template-columns: minmax(0, 1fr); gap: 40px; align-items: center; }
@media (min-width: 960px) { .split { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 72px; } }
.split .photo { aspect-ratio: 3 / 2; }
.votes { margin-top: 26px; background: var(--sheet); border: 1px solid var(--rule); border-radius: 10px; padding: 18px 20px; box-shadow: var(--shadow); max-width: 440px; }
.votes-top { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; flex-wrap: wrap; }
.votes-top b { font-family: var(--f-display); font-size: 2rem; letter-spacing: -0.03em; }
.votes ol { margin: 12px 0 0; padding-left: 1.4em; display: grid; gap: 4px; font-size: .95rem; }
.checks { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 10px; }
.checks li { display: flex; gap: 10px; align-items: flex-start; }
.checks svg { width: 22px; height: 22px; color: var(--brand); flex: none; margin-top: 1px; }

/* Planos e lista de espera */
.plans { display: grid; gap: 22px; }
@media (min-width: 960px) { .plans { grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 28px; align-items: start; } }
.plan { border-radius: 12px; padding: 30px; background: var(--sheet); border: 1px solid var(--rule); }
.plan.next { background: var(--tint); border-color: transparent; }
.plan h3 { font-size: 1.6rem; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; letter-spacing: -0.03em; }
.price { font-family: var(--f-display); font-size: 3.2rem; font-weight: 900; letter-spacing: -0.04em; margin-top: 10px; line-height: 1; }
.price small { font-family: var(--f-body); font-size: 1rem; font-weight: 400; letter-spacing: 0; color: var(--ink-2); }
.tag { font: 700 .8rem/1 var(--f-body); border: 1.5px solid currentColor; border-radius: 3px; padding: 5px 7px; letter-spacing: .02em; }
.tag-stamp { color: var(--stamp); transform: rotate(-3deg); display: inline-block; }
.ledger { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 12px; }
.ledger li { display: flex; gap: 10px; align-items: flex-start; }
.ledger svg { width: 20px; height: 20px; flex: none; margin-top: 2px; color: var(--brand); }
.plan .btn-main { margin-top: 26px; width: 100%; }
.wait { margin-top: 20px; display: grid; gap: 16px; }
.wait-msg { font-weight: 700; margin-top: 18px; }
.grid2 { display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 520px) { .grid2 { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }

/* Perguntas */
.faq-wrap { display: grid; gap: 40px; }
@media (min-width: 960px) { .faq-wrap { grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: 72px; } }
.faq details { border-top: 1px solid var(--rule); }
.faq details:last-child { border-bottom: 1px solid var(--rule); }
.faq summary { cursor: pointer; padding-block: 18px; font-weight: 700; font-size: 1.08rem; list-style: none; display: flex; justify-content: space-between; gap: 16px; min-height: 44px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; width: 12px; height: 12px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); margin-top: 4px; flex: none; transition: transform 180ms var(--ease); }
.faq details[open] summary::after { transform: rotate(225deg); margin-top: 10px; }
.faq details p { padding-bottom: 20px; max-width: 64ch; color: var(--ink-2); }
.faq-photo { aspect-ratio: 4 / 5; }
@media (max-width: 959px) { .faq-photo { aspect-ratio: 16 / 9; } }

/* Rodapé */
.foot-band { background: var(--night); color: var(--night-ink); margin-top: 40px; }
.foot { padding-block: 64px calc(48px + env(safe-area-inset-bottom, 0px)); display: grid; gap: 34px; font-size: .95rem; }
@media (min-width: 900px) { .foot { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) minmax(0, 1fr); } }
.foot .mark { color: #fff; }
.foot .muted, .foot p { color: var(--night-2); }
.foot .lbl { color: #fff; }
.foot ul { list-style: none; padding: 0; margin: 10px 0 0; display: grid; gap: 2px; }
.foot a { display: inline-block; padding-block: 6px; color: var(--night-ink); }
.foot-name { color: #fff !important; font-weight: 700; margin-top: 10px; }
.foot-mail { margin-top: 8px; }
.foot .mail { font-weight: 700; overflow-wrap: anywhere; min-height: 44px; display: inline-flex; align-items: center; }
.foot-prefs { display: flex; flex-wrap: wrap; gap: 18px 28px; margin-top: 22px; }
.foot-prefs > div { display: grid; gap: 0; align-content: start; }
#lingua { margin-top: 8px; min-height: 40px; font: 700 1rem/1 var(--f-body); color: var(--night-ink); background: transparent; border: 1.5px solid var(--night-2); border-radius: var(--r); padding: 0 34px 0 12px; }
#lingua option { color: #111; background: #fff; }
.theme-switch { display: inline-flex; border: 1.5px solid var(--night-2); border-radius: var(--r); overflow: hidden; margin-top: 8px; }
.theme-switch button { font: 700 .9rem/1 var(--f-body); background: transparent; color: var(--night-ink); border: 0; min-height: 40px; padding: 0 12px; cursor: pointer; }
.theme-switch button + button { border-left: 1.5px solid var(--night-2); }
.theme-switch button[aria-pressed="true"] { background: var(--night-ink); color: var(--night); }

/* Páginas de documento */
.doc { padding-block: 40px 80px; }
.doc h1 { font-size: clamp(2.2rem, 1.5rem + 2.8vw, 3.6rem); font-weight: 900; letter-spacing: -0.04em; }
.doc h2 { font-size: 1.45rem; margin-top: 36px; margin-bottom: 8px; letter-spacing: -0.02em; }
.doc p, .doc li { max-width: 68ch; }
.doc p + p { margin-top: 12px; }
.doc ul { padding-left: 1.2em; display: grid; gap: 6px; }
.doc .updated { color: var(--ink-2); margin-top: 10px; }
.tablewrap { overflow-x: auto; max-width: 100%; }
.doc table { border-collapse: collapse; min-width: 520px; margin-top: 10px; }
.doc th, .doc td { text-align: left; padding: 10px 12px 10px 0; border-bottom: 1px solid var(--rule); vertical-align: top; }
.credits-list { list-style: none; padding: 0; display: grid; gap: 14px; margin-top: 20px; }
.credits-list li { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 16px; align-items: center; }
.credits-list img { width: 96px; height: 72px; object-fit: cover; border-radius: 6px; background: var(--tint); }
.notfound { padding-block: 72px; display: grid; gap: 22px; justify-items: start; }
.notfound h1 { font-size: clamp(2.4rem, 1.6rem + 3.4vw, 4rem); font-weight: 900; max-width: 14ch; letter-spacing: -0.04em; }
.copyline { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.copyline code { font-family: var(--f-body); font-weight: 700; background: var(--sheet); padding: 8px 10px; border-radius: var(--r); user-select: all; }

/* ===== App ===== */
.app-head { background: var(--sheet); border-bottom: 1px solid var(--rule); }
.app-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px; padding-block: 16px; }
.app-assoc { display: grid; gap: 4px; min-width: 0; }
.app-assoc .mark { font-size: 1.3rem; }
.app-assoc .mark-stamp { width: 24px; height: 24px; font-size: .78rem; }
.app-assoc h1 { font-size: clamp(1.3rem, 1rem + 1.2vw, 1.8rem); letter-spacing: -0.03em; }
.status { font-size: .88rem; color: var(--ink-2); display: inline-flex; gap: 6px; align-items: center; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); flex: none; }
.dot.warn { background: var(--stamp); }
.usage { display: grid; gap: 6px; min-width: 200px; flex: 0 1 260px; }
.usage-line { display: flex; justify-content: space-between; gap: 8px; font-size: .92rem; }
.usage-bar { height: 8px; background: var(--tint); border-radius: 4px; overflow: hidden; }
.usage-bar span { display: block; height: 100%; background: var(--brand); width: 0; border-radius: 4px; transition: width 300ms var(--ease); }
.usage.full .usage-bar span { background: var(--stamp); }
.tabs { display: flex; gap: 4px; }
.tab { font: 700 1rem/1 var(--f-body); color: var(--ink-2); text-decoration: none; padding: 12px 14px 13px; border-bottom: 3px solid transparent; min-height: 46px; display: inline-flex; align-items: center; gap: 8px; }
.tab[aria-current="page"] { color: var(--ink); border-bottom-color: var(--stamp); }
.tab svg { width: 20px; height: 20px; }
@media (max-width: 719px) {
  .tabs {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; background: var(--sheet);
    border-top: 1px solid var(--rule); padding: 0 var(--gut-r) env(safe-area-inset-bottom, 0px) var(--gut);
    justify-content: space-around; max-width: none;
  }
  .tab { flex: 1 1 auto; flex-direction: column; gap: 4px; font-size: clamp(.68rem, 3.1vw, .78rem); white-space: nowrap; min-width: 0; padding: 8px 2px 10px; border-bottom: 0; border-top: 3px solid transparent; justify-content: center; }
  .tab[aria-current="page"] { border-top-color: var(--stamp); }
  .app-on .foot { padding-bottom: calc(110px + env(safe-area-inset-bottom, 0px)); }
}
.banner { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; justify-content: space-between; background: var(--card); padding: 14px 16px; border-radius: 10px; margin-top: 20px; }
.banner p { max-width: 60ch; }
.banner .row { display: flex; gap: 8px; flex-wrap: wrap; }
.panel { padding-block: 24px 48px; }
.toolbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: end; margin-bottom: 16px; }
.toolbar .grow { flex: 1 1 240px; min-width: 0; }
.toolbar .field { min-width: 0; }
.sumline { display: flex; flex-wrap: wrap; gap: 8px 28px; margin-bottom: 18px; align-items: baseline; }
.big { font-family: var(--f-display); font-weight: 800; font-size: 1.8rem; line-height: 1.1; letter-spacing: -0.03em; }
.list { list-style: none; padding: 0; margin: 0; background: var(--sheet); border: 1px solid var(--rule); border-radius: 10px; }
.list-head, .row-s { display: grid; grid-template-columns: 4.5rem minmax(0, 2.4fr) minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.4fr) 96px; gap: 12px; align-items: center; }
.list-head { font-size: .88rem; color: var(--ink-2); padding: 10px 16px; }
.sortbtn { font: inherit; color: inherit; background: none; border: 0; padding: 4px 0; cursor: pointer; text-align: left; min-height: 32px; display: inline-flex; gap: 4px; align-items: center; }
.sortbtn[aria-pressed="true"] { color: var(--ink); font-weight: 700; }
.row-s { padding: 12px 16px; border-bottom: 1px solid var(--rule); }
.row-s:last-child { border-bottom: 0; }
.row-s .nm { font-weight: 700; }
.row-s .sub { display: none; }
.chip { display: inline-flex; align-items: center; gap: 6px; font-size: .9rem; font-weight: 700; }
.chip::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: currentColor; flex: none; }
.chip.ok { color: var(--ok); }
.chip.late { color: var(--stamp); }
.chip.off { color: var(--ink-2); }
.chip.off::before { background: transparent; border: 1.5px solid currentColor; }
@media (max-width: 760px) {
  .list-head { display: none; }
  .row-s { grid-template-columns: minmax(0, 1fr) auto; gap: 4px 12px; }
  .row-s > .c-no, .row-s > .c-cat, .row-s > .c-ent { display: none; }
  .row-s .sub { display: block; font-size: .9rem; color: var(--ink-2); }
  .row-s .c-quota { grid-column: 1; }
  .row-s .c-act { grid-column: 2; grid-row: 1 / span 2; }
}
.empty { padding: 40px 0; display: grid; gap: 14px; justify-items: start; max-width: 52ch; }
.empty h2 { font-size: 1.7rem; letter-spacing: -0.03em; }
.gridwrap { overflow-x: auto; background: var(--sheet); border: 1px solid var(--rule); border-radius: 10px; max-width: 100%; }
.qgrid { border-collapse: separate; border-spacing: 0; width: 100%; min-width: 760px; }
.qgrid th, .qgrid td { padding: 4px; border-bottom: 1px solid var(--rule); text-align: center; }
.qgrid tbody tr:last-child th, .qgrid tbody tr:last-child td { border-bottom: 1px solid var(--rule); }
.qgrid thead th { font-size: .85rem; color: var(--ink-2); font-weight: 700; padding-block: 12px; }
.qgrid .who { text-align: left; position: sticky; left: 0; background: var(--sheet); z-index: 1; min-width: 180px; max-width: 240px; padding-left: 14px; padding-right: 12px; }
.qgrid .who b { display: block; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.qgrid .who span { font-size: .85rem; color: var(--ink-2); }
.qgrid tfoot td { font-size: .85rem; color: var(--ink-2); font-weight: 700; padding-block: 12px; border-bottom: 0; }
.qcell { position: relative; width: 100%; min-width: 46px; height: 44px; border: 1px solid var(--rule); border-radius: 4px; background: var(--ground); cursor: pointer; padding: 0; color: var(--ink); touch-action: manipulation; }
.qcell .stamp { font-size: .62rem; padding: 3px 3px 2px; top: 50%; border-width: 1.5px; }
.stamp.long { font-size: .62rem; letter-spacing: .02em; padding-inline: 3px; }
.qcell .stamp.long { font-size: .5rem; letter-spacing: 0; padding-inline: 2px; }
@media (max-width: 480px) { .stamp.long { font-size: .54rem; } }
.qcell:active { transform: scale(.95); }
.qcell.due:not([aria-pressed="true"]) { border-color: var(--stamp); border-style: dashed; }
.qcell.future:not([aria-pressed="true"]) { background: transparent; }
.qcell[disabled] { cursor: default; background: transparent; border-color: transparent; color: var(--ink-2); }
.qcell[disabled]::after { content: "–"; }
.legend { display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: .9rem; color: var(--ink-2); margin-top: 12px; }
.legend span { display: inline-flex; gap: 8px; align-items: center; }
.lg { width: 18px; height: 18px; border: 1px solid var(--rule); border-radius: 3px; background: var(--ground); display: inline-block; }
.lg.due { border: 1px dashed var(--stamp); }
.lg.paid { border: 1.5px solid var(--stamp); background: transparent; }
.vote-list { columns: 1; margin: 12px 0 0; padding-left: 2.6em; }
@media (min-width: 760px) { .vote-list { columns: 2; column-gap: 48px; } }
.vote-list li { padding-block: 5px; break-inside: avoid; }
.two { display: grid; gap: 28px; }
@media (min-width: 900px) { .two { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; } }
.block { display: grid; gap: 14px; align-content: start; }
.block h2 { font-size: 1.45rem; letter-spacing: -0.02em; }
.rowflex { display: flex; flex-wrap: wrap; gap: 10px; align-items: end; }
.money { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
@media (max-width: 420px) { .money { grid-template-columns: minmax(0, 1fr); } }
.sep { border: 0; border-top: 1px solid var(--rule); margin: 8px 0; }

/* Diálogo */
dialog { border: 0; padding: 0; border-radius: 12px; background: var(--sheet); color: var(--ink); width: min(560px, calc(100vw - 32px)); max-height: min(88dvh, 820px); box-shadow: var(--shadow-lg); }
dialog::backdrop { background: rgb(6 14 10 / .5); }
dialog[open] { animation: dlg-in 200ms var(--ease); }
@keyframes dlg-in { from { opacity: 0; transform: translateY(12px) scale(.98); } }
@media (prefers-reduced-motion: reduce) { dialog[open] { animation: none; } }
.dlg { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; max-height: inherit; }
.dlg-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 18px 20px 12px; border-bottom: 1px solid var(--rule); }
.dlg-head h2 { font-size: 1.45rem; letter-spacing: -0.02em; }
.dlg-body { overflow-y: auto; padding: 16px 20px; display: grid; gap: 16px; }
.dlg-foot { display: flex; flex-wrap: wrap; gap: 10px; justify-content: space-between; padding: 12px 20px 16px; border-top: 1px solid var(--rule); }
.dlg-foot .row { display: flex; gap: 10px; flex-wrap: wrap; }
.iconbtn { width: 44px; height: 44px; display: inline-grid; place-items: center; background: none; border: 0; color: var(--ink); cursor: pointer; border-radius: var(--r); }
.iconbtn svg { width: 22px; height: 22px; }
.discard { background: var(--card); padding: 12px 14px; border-radius: var(--r); display: grid; gap: 10px; }
@media (max-width: 560px) {
  dialog { width: 100vw; max-width: 100vw; margin: auto 0 0; border-radius: 14px 14px 0 0; max-height: 92dvh; }
  dialog[open] { animation-name: sheet-in; }
  @keyframes sheet-in { from { transform: translateY(40px); opacity: 0; } }
  .dlg-foot { padding-bottom: calc(16px + env(safe-area-inset-bottom, 0px)); }
}

/* Avisos */
.toasts { position: fixed; left: var(--gut); bottom: calc(16px + env(safe-area-inset-bottom, 0px)); z-index: 60; display: grid; gap: 8px; max-width: min(440px, calc(100vw - 32px)); pointer-events: none; }
@media (max-width: 719px) { .app-on .toasts { bottom: calc(86px + env(safe-area-inset-bottom, 0px)); } }
.toast { pointer-events: auto; background: var(--ink); color: var(--ground); padding: 12px 14px; border-radius: 8px; display: flex; gap: 14px; align-items: center; justify-content: space-between; box-shadow: var(--shadow); transition: opacity 180ms ease-out, transform 220ms var(--ease); }
@starting-style { .toast { opacity: 0; transform: translateY(10px); } }
.toast.out { opacity: 0; transform: translateY(6px); }
.toast button { font: 700 .95rem/1 var(--f-body); background: none; border: 1.5px solid currentColor; color: inherit; border-radius: var(--r); padding: 8px 12px; min-height: 44px; cursor: pointer; }
.toast.bad { background: var(--stamp); color: var(--on-ink); }
.crash { position: fixed; inset: auto var(--gut-r) calc(16px + env(safe-area-inset-bottom, 0px)) var(--gut); z-index: 70; background: var(--card); color: var(--ink); border: 1.5px solid var(--stamp); padding: 14px 16px; border-radius: 10px; display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; justify-content: space-between; max-width: 680px; }
