/* SOUZASSEG — proposta em HTML.
   Modo escuro do design system (tokens/theme-dark.css).
   Página ink-950, card ink-900, texto ink-50, secundário prata, detalhe ouro.
   Fundos chapados. Sem transparência. Barlow / Barlow Condensed / JetBrains Mono. */

:root {
  --black: #000000;       /* ink-1000 */
  --bg: #0E0E0E;          /* ink-950 · surface-page */
  --bg-deep: #000000;     /* ink-1000 · faixa recuada */
  --surface: #1C1C1C;     /* ink-900 · surface-card */
  --field: #0E0E0E;       /* surface-field */
  --hover: #2A2A2A;       /* ink-800 · surface-hover */
  --line: #383838;        /* ink-700 · border-1 */
  --line-strong: #4D4D4D; /* ink-600 · border-2 */

  --text: #F7F7F7;        /* ink-50 · text-1 */
  --text-2: #C0C0C0;      /* prata-500 · text-2 */
  --text-3: #8C8C8C;      /* ink-400 · text-3 */

  --bordo: #800020;       /* bordo-700 · action-primary */
  --bordo-hi: #5C0017;    /* bordo-800 · hover escurece */
  --gold: #D4AF37;        /* ouro-500 */
  --gold-soft: #2A2A2A;   /* chip chapado, filete em --gold */

  --ok-bg: #1A3328;       /* badge-ok-bg */
  --ok-text: #D5E6DC;     /* badge-ok-fg */
  --warn-bg: #2C2614;     /* badge-alerta-bg */
  --warn-text: #F2E6BC;   /* ouro-200 */
  --error: #F6E1DF;       /* perigo-100 · text-danger */
  --danger-bg: #3A1714;   /* badge-perigo-bg */

  --font-sans: "Barlow", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-head: "Barlow Condensed", "Arial Narrow", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  --r: 8px;
  --r-sm: 4px;

  --gutter: 16px;
  --section: 80px;
  --header: 64px;

  --dur-fast: 160ms;
  --dur-base: 220ms;
  --dur-slow: 420ms;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.645, 0.045, 0.355, 1);
}

@media (min-width: 768px) {
  :root { --gutter: 32px; --section: 112px; --header: 72px; }
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: calc(var(--header) + 16px); -webkit-text-size-adjust: 100%; color-scheme: dark; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 1.0625rem/1.6 var(--font-sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body.nav-open { overflow: hidden; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
::selection { background: var(--bordo); color: #fff; }
[hidden] { display: none !important; }
abbr { text-decoration: none; }

.container { width: 100%; max-width: 1180px; margin-inline: auto; padding-inline: var(--gutter); }
.mono { font-family: var(--font-mono); font-feature-settings: "tnum"; letter-spacing: -0.02em; }
.i { width: 1.25em; height: 1.25em; flex-shrink: 0; fill: currentColor; }

.skip {
  position: fixed; left: 16px; top: 16px; z-index: 100; transform: translateY(-200%);
  padding: 12px 16px; border-radius: var(--r-sm);
  background: var(--text); color: var(--bg); font-weight: 600; text-decoration: none;
}
.skip:focus { transform: none; }

.h2, .hero__title {
  font-family: var(--font-head);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  line-height: 0.92;
  text-wrap: balance;
}
.h2 { font-size: clamp(2.15rem, 4.4vw, 3.35rem); }
.h3 { font-size: 1.5rem; font-weight: 600; line-height: 1.2; letter-spacing: -0.015em; }
.lead { color: var(--text-2); font-size: 1.125rem; line-height: 1.55; max-width: 62ch; text-wrap: pretty; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 18px;
  border: 1px solid transparent; border-radius: var(--r-sm);
  font-weight: 600; font-size: 1rem; line-height: 1.2; text-align: center;
  text-decoration: none; cursor: pointer; flex-shrink: 0;
}
.btn--sm { min-height: 44px; padding: 0 14px; font-size: 0.9375rem; }
.btn--block { width: 100%; }
.btn--primary { background: var(--bordo); color: #fff; }
.btn--ghost { background: transparent; border-color: var(--line-strong); color: var(--text); }
.btn .i { width: 20px; height: 20px; }
@media (hover: hover) and (pointer: fine) {
  .btn--primary:hover { background: var(--bordo-hi); }
  .btn--ghost:hover { background: var(--hover); border-color: var(--text-3); }
}
.btn:disabled { opacity: 0.45; cursor: not-allowed; }

.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r);
}
.chip-icon, .chip-icon--lg {
  display: inline-grid; place-items: center;
  width: 22px; height: 22px; padding: 0;
  background: none; border: 0; border-radius: 0; color: var(--gold);
}
.chip-icon .i, .chip-icon--lg .i { width: 22px; height: 22px; }
.badge {
  display: inline-flex; align-items: center;
  padding: 2px 8px; border-radius: var(--r-sm);
  background: var(--gold-soft); color: var(--gold);
  font-size: 0.75rem; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; white-space: nowrap;
}

.header {
  position: fixed; inset: 0 0 auto; z-index: 50;
  height: var(--header);
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}
.header__bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 100%; }
.header__right { display: flex; align-items: center; gap: 8px; }
.brand { display: flex; align-items: center; min-height: 44px; text-decoration: none; }
.nav ul { display: flex; align-items: center; gap: 2px; }
.nav a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 10px;
  color: var(--text-2); text-decoration: none; font-size: 0.9375rem; font-weight: 500;
}
.nav__cta { display: none; }
@media (hover: hover) and (pointer: fine) {
  .nav a:hover { color: var(--text); }
}
.nav a[aria-current="true"] { color: var(--text); box-shadow: inset 0 -2px 0 var(--gold); }
.menu-btn {
  display: none; width: 44px; height: 44px; place-items: center; padding: 0;
  border: 1px solid var(--line-strong); border-radius: var(--r-sm);
  background: transparent; color: var(--text); cursor: pointer;
}
.menu-btn .i { width: 22px; height: 22px; }

@media (max-width: 1023px) {
  .menu-btn { display: inline-grid; }
  .header__cta { display: none; }
  .nav {
    position: fixed; inset: var(--header) 0 0 0; display: none; overflow: auto;
    padding: 8px var(--gutter) 32px;
    background: var(--bg); border-top: 1px solid var(--line);
  }
  .header.is-open .nav { display: block; }
  .nav ul { flex-direction: column; align-items: stretch; gap: 0; }
  .nav a {
    width: 100%; min-height: 52px; padding: 0 2px;
    border-bottom: 1px solid var(--line); font-size: 1.0625rem; color: var(--text);
  }
  .nav a[aria-current="true"] { box-shadow: inset 3px 0 0 var(--gold); }
  .nav__cta { display: block; margin-top: 20px; }
  .nav__cta a.btn {
    width: 100%; min-height: 48px; padding: 0 18px;
    border-bottom: 0; border-radius: var(--r-sm);
    justify-content: center; color: #fff; background: var(--bordo);
    box-shadow: none;
  }
}
@media (min-width: 1024px) {
  .header__right { gap: 20px; }
}

.hero { position: relative; overflow: hidden; padding: 0 0 48px; }
.hero__stage { position: relative; }
.hero__inner { position: relative; z-index: 1; padding-top: calc(var(--header) + 36px); }
.hero__copy { display: flex; flex-direction: column; align-items: flex-start; gap: 20px; }
.hero__title { font-size: clamp(2.7rem, 8vw, 5.6rem); max-width: 9em; }
.hero__lead { color: var(--text-2); font-size: 1.125rem; line-height: 1.55; max-width: 36rem; text-wrap: pretty; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 10px; }

.hero__media { position: relative; margin: 0; }
.hero__photo {
  position: relative; height: 320px; margin-top: 28px;
  --fade-y: linear-gradient(to bottom,
    rgb(14 14 14 / 0) 0%, rgb(14 14 14 / 0.35) 10%, #0E0E0E 22%,
    #0E0E0E 72%, rgb(14 14 14 / 0.45) 88%, rgb(14 14 14 / 0) 100%);
  -webkit-mask-image: var(--fade-y);
  mask-image: var(--fade-y);
}
.hero__photo img {
  width: 100%; height: 100%; object-fit: cover; object-position: 18% 50%;
  transform: scaleX(-1);
}

.log {
  position: relative; z-index: 1;
  margin: -88px var(--gutter) 0;
  display: flex; flex-direction: column; gap: 12px;
  padding: 14px 16px 16px;
  border-radius: var(--r);
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-top: 2px solid var(--gold);
}
.log__head { display: flex; align-items: center; gap: 8px; font-size: 0.8125rem; font-weight: 600; }
.log__dot { width: 7px; height: 7px; border-radius: 50%; background: var(--gold); }
.log__rows { display: grid; gap: 8px; }
.log__rows li { display: grid; grid-template-columns: 52px 1fr; align-items: baseline; gap: 12px; font-size: 0.9375rem; color: var(--text-2); }
.log__rows time { font-family: var(--font-mono); font-size: 0.8125rem; font-weight: 600; color: var(--gold); }

.facts { display: grid; margin-top: 36px; border-top: 1px solid var(--line); }
.fact { display: flex; flex-direction: column; gap: 4px; padding: 18px 0; }
.fact + .fact { border-top: 1px solid var(--line); }
.fact dt { font-size: 1.25rem; font-weight: 600; line-height: 1.2; }
.fact dt .mono { font-size: 1.75rem; font-weight: 600; color: var(--gold); }
.fact dd { color: var(--text-3); font-size: 0.9375rem; max-width: 28ch; }

@media (max-width: 380px) {
  .hero__title { font-size: 2.45rem; }
  .hero__actions, .hero__actions .btn { width: 100%; }
  .hero__photo { height: 260px; }
}

@media (min-width: 768px) {
  .facts { grid-template-columns: 1.2fr 1fr 1fr; }
  .fact { padding: 24px 28px 8px 0; }
  .fact + .fact { border-top: 0; padding-left: 28px; }
  .log { margin-left: auto; margin-right: var(--gutter); width: min(360px, 70%); }
}

@media (min-width: 1024px) {
  .hero { padding-bottom: 28px; }
  .hero__stage { display: flex; align-items: center; min-height: clamp(640px, 88svh, 820px); }
  .hero__inner { padding-top: 28px; padding-bottom: 24px; }
  .hero__copy { max-width: 34rem; }
  .hero__media { position: absolute; inset: 0 0 0 auto; width: 58%; }
  .hero__photo {
    position: absolute; inset: 0; height: auto; margin: 0;
    --fade-x: linear-gradient(to right,
      rgb(14 14 14 / 0) 0%, rgb(14 14 14 / 0.12) 14%, rgb(14 14 14 / 0.45) 28%, rgb(14 14 14 / 0.82) 42%, #0E0E0E 54%);
    --fade-y: linear-gradient(to bottom,
      rgb(14 14 14 / 0) 0%, #0E0E0E 16%, #0E0E0E 78%, rgb(14 14 14 / 0) 100%);
    -webkit-mask-image: var(--fade-x), var(--fade-y);
    -webkit-mask-composite: source-in;
    mask-image: var(--fade-x), var(--fade-y);
    mask-composite: intersect;
  }
  .log { position: absolute; left: auto; right: 7%; bottom: 16%; margin: 0; width: 300px; }
  .facts { margin-top: 8px; }
}

.section { padding-block: var(--section); position: relative; }
.section--deep { background: var(--bg-deep); border-block: 1px solid var(--line); }
.head { display: flex; flex-direction: column; gap: 12px; max-width: 40rem; margin-bottom: 40px; }
@media (min-width: 768px) { .head { margin-bottom: 56px; } }
.head--split { max-width: none; display: grid; gap: 28px; }
.head--split > div:first-child { display: flex; flex-direction: column; gap: 12px; }
@media (min-width: 1024px) {
  .head--split { grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr); align-items: end; gap: 48px; }
}

.exp { display: grid; gap: 36px; }
.exp__intro { display: flex; flex-direction: column; gap: 16px; }
.exp__figure { display: flex; align-items: flex-end; gap: 14px; margin-top: 12px; }
.exp__num {
  font-family: var(--font-mono); font-weight: 600; letter-spacing: -0.06em;
  font-size: clamp(5.5rem, 16vw, 9.5rem); line-height: 0.8; color: var(--gold);
}
.exp__unit { padding-bottom: 8px; color: var(--text-2); font-size: 1.0625rem; font-weight: 500; line-height: 1.3; }
.skills { display: grid; border-top: 1px solid var(--line); }
.skill { display: grid; grid-template-columns: 40px 1fr; gap: 12px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.skill__n { padding-top: 4px; color: var(--gold); font-size: 0.8125rem; font-weight: 600; }
.skill h3 { font-size: 1.2rem; font-weight: 600; line-height: 1.3; }
.skill p { color: var(--text-3); margin-top: 4px; }
@media (min-width: 1024px) {
  .exp { grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: 80px; align-items: start; }
  .exp__intro { position: sticky; top: calc(var(--header) + 28px); }
  .skill { padding: 26px 0; }
}

.bento { display: grid; gap: 16px; }
.svc {
  display: flex; flex-direction: column; overflow: hidden;
  border-radius: 16px; background: var(--surface); border: 1px solid var(--line);
}
.svc img { width: 100%; aspect-ratio: 16 / 11; object-fit: cover; }
.svc__body { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; padding: 24px; }
.svc .chip-icon {
  width: 40px; height: 40px; border-radius: var(--r-sm);
  background: var(--gold-soft); border: 1px solid var(--line);
}
.svc .chip-icon .i { width: 22px; height: 22px; }
.svc h3 { font-size: 1.375rem; font-weight: 600; line-height: 1.2; letter-spacing: -0.01em; }
.svc p { color: var(--text-2); }
.ticks { display: grid; gap: 8px; margin-top: 4px; padding-top: 16px; border-top: 1px solid var(--line); width: 100%; }
.ticks li { position: relative; padding-left: 22px; color: var(--text); font-size: 0.9375rem; }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: 0.45em; width: 12px; height: 7px;
  border-left: 2px solid var(--gold); border-bottom: 2px solid var(--gold); transform: rotate(-45deg);
}
@media (min-width: 640px) {
  .bento { grid-template-columns: 1fr 1fr; gap: 20px; }
}
@media (min-width: 1024px) {
  .bento { grid-template-columns: repeat(3, minmax(0, 1fr)); grid-template-rows: auto auto; }
  .svc--wide { grid-column: 1 / 3; flex-direction: row; }
  .svc--wide img { width: 46%; aspect-ratio: auto; height: 100%; min-height: 380px; }
  .svc--wide .svc__body { flex: 1; justify-content: center; padding: 32px; }
  .svc--tall { grid-column: 3; grid-row: 1 / 3; }
  .svc--tall img { flex: 1; aspect-ratio: auto; min-height: 320px; }
  .svc img { aspect-ratio: 16 / 10; }
}

.track { display: grid; position: relative; }
.step { position: relative; display: flex; flex-direction: column; gap: 6px; padding: 0 0 32px 56px; }
.step::before { content: ""; position: absolute; left: 15px; top: 36px; bottom: 0; width: 1px; background: var(--line-strong); }
.step:last-child { padding-bottom: 0; }
.step:last-child::before { display: none; }
.step__node {
  position: absolute; left: 0; top: 0;
  display: grid; place-items: center; width: 32px; height: 32px; border-radius: var(--r-sm);
  background: var(--bg); border: 1px solid var(--gold);
  color: var(--gold); font-size: 0.75rem; font-weight: 600;
}
.step h3 { font-size: 1.2rem; font-weight: 600; line-height: 1.25; }
.step p { color: var(--text-2); max-width: 36ch; }
@media (min-width: 1024px) {
  .track { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; }
  .track::before { content: ""; position: absolute; left: 0; right: 0; top: 15px; height: 1px; background: var(--line-strong); }
  .step { padding: 52px 12px 0 0; }
  .step::before { display: none; }
}
.note {
  display: flex; align-items: flex-start; gap: 10px; margin-top: 36px;
  max-width: 46rem; color: var(--text); font-weight: 500;
}
.note .i { width: 20px; height: 20px; margin-top: 2px; color: var(--gold); }

.consult { display: grid; gap: 32px; padding-top: 8px; border-top: 1px solid var(--line); }
.consult__intro { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.consult__intro p { color: var(--text-2); font-size: 1.0625rem; max-width: 42ch; }
.consult__audit h4 { font-size: 1rem; font-weight: 600; margin-bottom: 4px; }
.audit { display: grid; }
.audit li { display: flex; gap: 12px; padding: 14px 0; border-top: 1px solid var(--line); }
.audit .i { width: 20px; height: 20px; color: var(--gold); margin-top: 2px; }
.audit div { display: flex; flex-direction: column; gap: 2px; }
.audit strong { font-weight: 600; }
.audit span { color: var(--text-3); }
.events {
  display: flex; flex-direction: column; align-items: flex-start; gap: 16px;
  margin-top: 8px; padding-top: 28px; border-top: 1px solid var(--line);
}
.events__text { display: flex; flex-direction: column; gap: 8px; }
.events__text p { color: var(--text-2); }
@media (min-width: 720px) {
  .audit { grid-template-columns: 1fr 1fr; column-gap: 36px; }
  .events { flex-direction: row; align-items: center; gap: 20px; }
  .events__text { flex: 1; }
}
@media (min-width: 1024px) {
  .consult { grid-template-columns: minmax(0, 0.78fr) minmax(0, 1.22fr); gap: 64px; align-items: start; padding-top: 8px; }
}

.field { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
label, legend { font-size: 0.9375rem; font-weight: 600; color: var(--text); }
.opt { color: var(--text-3); font-weight: 400; }
input:not([type="checkbox"]), select, textarea {
  width: 100%; min-height: 48px; padding: 12px 14px;
  border-radius: var(--r-sm); border: 1px solid var(--line-strong);
  background: var(--field); color: var(--text); font-size: 1rem;
}
textarea { resize: vertical; min-height: 104px; }
@supports (field-sizing: content) {
  textarea { field-sizing: content; max-height: 16lh; overflow-y: auto; }
}
input::placeholder, textarea::placeholder { color: var(--text-3); }
select {
  appearance: none; -webkit-appearance: none; padding-right: 40px; cursor: pointer;
  background-color: var(--field);
  background-image: linear-gradient(45deg, transparent 50%, var(--text-2) 50%), linear-gradient(135deg, var(--text-2) 50%, transparent 50%);
  background-position: calc(100% - 20px) 50%, calc(100% - 14px) 50%;
  background-size: 6px 6px; background-repeat: no-repeat;
}
select option { background: var(--surface); color: var(--text); }
input:not([type="checkbox"]):focus-visible, select:focus-visible, textarea:focus-visible {
  outline: none; border-color: var(--gold); box-shadow: 0 0 0 2px var(--gold); border-radius: var(--r-sm);
}
input[type="date"] { color-scheme: dark; }
[aria-invalid="true"] { border-color: var(--error) !important; }
.error { color: var(--error); font-size: 0.875rem; }
.error:empty { display: none; }
.hint { color: var(--text-3); font-size: 0.875rem; }
.hint a { color: var(--text); text-underline-offset: 3px; }
fieldset { margin: 0; padding: 0; border: 0; min-width: 0; }
legend { padding: 0; }
.status { border-radius: var(--r-sm); font-size: 0.9375rem; }
.status:empty { display: none; }
.status.is-ok { padding: 12px 14px; background: var(--ok-bg); color: var(--ok-text); }
.status.is-warn { padding: 12px 14px; background: var(--warn-bg); color: var(--warn-text); }
.summary {
  display: grid; gap: 8px; padding: 14px 16px;
  border: 1px solid var(--error); border-radius: var(--r-sm);
  background: var(--danger-bg); color: var(--error);
}
.summary p { font-weight: 600; }
.summary ul { display: grid; gap: 4px; }
.summary a { color: inherit; text-underline-offset: 3px; }

.check { display: flex; align-items: center; gap: 12px; min-height: 44px; padding: 4px 0; cursor: pointer; font-weight: 400; color: var(--text-2); }
.check input {
  appearance: none; -webkit-appearance: none; flex-shrink: 0;
  width: 22px; height: 22px; margin: 0; border-radius: 4px; cursor: pointer;
  border: 1.5px solid var(--text-3); background: var(--field);
  display: grid; place-items: center;
}
.check input::after {
  content: ""; width: 10px; height: 6px; margin-top: -3px;
  border-left: 2px solid #fff; border-bottom: 2px solid #fff; transform: rotate(-45deg) scale(0);
}
.check input:checked { background: var(--bordo); border-color: var(--bordo-hi); }
.check input:checked::after { transform: rotate(-45deg) scale(1); }
.check input:checked + span { color: var(--text); }
.check input:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

.assumptions { display: flex; flex-direction: column; gap: 10px; }
.assumptions h3 { font-size: 0.9375rem; font-weight: 600; }
.assumptions ul { display: grid; gap: 6px; color: var(--text-2); font-size: 0.9375rem; }
.assumptions li { position: relative; padding-left: 14px; }
.assumptions li::before { content: ""; position: absolute; left: 0; top: 0.62em; width: 6px; height: 1px; background: var(--gold); }

.calc { display: grid; gap: 16px; align-items: start; }
.calc__inputs, .calc__result { display: flex; flex-direction: column; gap: 22px; padding: 20px; }
.posts { display: flex; flex-direction: column; gap: 4px; }
.posts legend { margin-bottom: 4px; }
.posts__list { display: flex; flex-direction: column; }
.post {
  display: grid; gap: 12px;
  padding: 14px 0 16px;
  border: 0; border-bottom: 1px solid var(--line); border-radius: 0;
  background: transparent;
}
.post__n { font-family: var(--font-mono); font-size: 0.75rem; color: var(--gold); font-weight: 600; letter-spacing: 0.04em; }
.post__remove {
  display: inline-grid; place-items: center; width: 44px; height: 44px; justify-self: end;
  border-radius: var(--r-sm); border: 1px solid var(--line-strong); background: transparent; color: var(--text-2); cursor: pointer;
}
.post__remove:disabled { opacity: 0.35; cursor: not-allowed; }
@media (hover: hover) and (pointer: fine) {
  .post__remove:not(:disabled):hover { color: var(--text); background: var(--hover); }
}
.posts__add { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; padding-top: 12px; }
.event-fields { display: grid; gap: 16px; }
.result__label { color: var(--text-3); font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; }
.result__total { display: flex; align-items: baseline; gap: 10px; margin-top: 4px; }
.result__total .mono { font-size: clamp(3.5rem, 8vw, 4.75rem); font-weight: 600; line-height: 0.9; color: var(--text); }
.result__total span:last-child { color: var(--text-2); font-size: 1.125rem; }
.result__note { margin-top: 8px; color: var(--text-3); font-size: 0.9375rem; }
.result__lines { display: grid; gap: 8px; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); font-size: 0.9375rem; color: var(--text-2); }
.result__lines li { display: flex; justify-content: space-between; gap: 12px; }
.result__lines li span:last-child { font-family: var(--font-mono); font-size: 0.8125rem; color: var(--text); white-space: nowrap; }
.result__event { margin-top: 8px; font-size: 1.2rem; font-weight: 500; line-height: 1.4; text-wrap: pretty; }
@media (min-width: 720px) {
  .post { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.3fr) auto; align-items: end; }
  .post__n { grid-column: 1 / -1; }
  .event-fields { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .calc__inputs, .calc__result { padding: 24px; }
}
@media (min-width: 1024px) {
  .calc { grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.75fr); gap: 20px; }
  .calc__result { position: sticky; top: calc(var(--header) + 16px); }
}

.area { display: grid; gap: 36px; align-items: start; }
.area__copy { display: flex; flex-direction: column; gap: 16px; }
.area__statement { font-size: clamp(1.45rem, 2.6vw, 1.85rem); font-weight: 500; line-height: 1.25; letter-spacing: -0.015em; max-width: 22ch; text-wrap: balance; }
.markets { display: grid; margin-top: 8px; border-top: 1px solid var(--line); }
.market {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  min-height: 48px; padding: 10px 0;
  border-bottom: 1px solid var(--line); font-weight: 500;
}
.place {
  display: flex; flex-direction: column;
  min-height: 480px; padding: 0;
  border: 0; border-top: 2px solid var(--gold);
  background: var(--bg);
  overflow: hidden;
}
.place__map { width: 100%; height: 480px; background: var(--bg); }
.place__fallback { margin: 0; padding: 8px 16px; list-style: none; }
.place__fallback li { padding: 10px 0; border-bottom: 1px solid var(--line); color: var(--text-2); font-weight: 500; }
.pin {
  width: 12px; height: 12px; padding: 0;
  background: var(--bordo);
  border: 2px solid var(--gold);
  border-radius: 50%;
  cursor: pointer;
}
.pin--base { width: 16px; height: 16px; background: var(--gold); border-color: var(--bordo); }
.pin:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.pin-pop .maplibregl-popup-content {
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--line-strong);
  border-radius: 0;
  box-shadow: none;
  font-family: inherit;
  font-size: 0.8125rem;
  font-weight: 600;
  padding: 4px 8px;
}
.pin-pop--base .maplibregl-popup-content { color: var(--gold); }
.pin-pop .maplibregl-popup-tip { display: none; }
.maplibregl-map { font-family: inherit; }
.maplibregl-ctrl-group {
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: 0;
  box-shadow: none;
}
.maplibregl-ctrl-group button { width: 32px; height: 32px; background-color: var(--surface); }
.maplibregl-ctrl-group button + button { border-top: 1px solid var(--line-strong); }
.maplibregl-ctrl-group button:hover { background-color: var(--hover); }
.maplibregl-ctrl-group button .maplibregl-ctrl-icon { filter: invert(1); }
.maplibregl-ctrl-attrib {
  background: var(--bg);
  color: var(--text-3);
  font-size: 10px;
}
.maplibregl-ctrl-attrib a { color: var(--text-2); }
@media (min-width: 1024px) {
  .area { grid-template-columns: minmax(0, 1.15fr) minmax(300px, 0.85fr); gap: 64px; align-items: stretch; }
  .place { min-height: 100%; height: 100%; }
  .place__map { height: 100%; min-height: 480px; }
}

.faq { display: grid; gap: 32px; }
.faq__aside { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.faq__list { border-top: 1px solid var(--line); }
details { border-bottom: 1px solid var(--line); }
summary {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  min-height: 64px; padding: 14px 0; cursor: pointer; list-style: none;
  font-size: 1.0625rem; font-weight: 600; line-height: 1.35;
}
summary::-webkit-details-marker { display: none; }
.plus { position: relative; flex-shrink: 0; width: 28px; height: 28px; border-radius: var(--r-sm); border: 1px solid var(--line-strong); }
.plus::before, .plus::after {
  content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 1.5px;
  margin: -1px 0 0 -6px; background: var(--text);
}
.plus::after { transform: rotate(90deg); }
details[open] .plus { border-color: var(--gold); }
details[open] .plus::after { transform: rotate(0deg); }
details p { padding: 0 40px 18px 0; color: var(--text-2); max-width: 68ch; }
@media (hover: hover) and (pointer: fine) { summary:hover { color: var(--text); } }
@media (min-width: 1024px) {
  .faq { grid-template-columns: minmax(0, 0.7fr) minmax(0, 1.3fr); gap: 72px; align-items: start; }
  .faq__aside { position: sticky; top: calc(var(--header) + 28px); }
}

.contact { display: grid; gap: 32px; }
.contact__copy { display: flex; flex-direction: column; gap: 14px; }
.channels { display: grid; gap: 10px; margin-top: 4px; }
.channels li { display: flex; align-items: flex-start; gap: 10px; color: var(--text-2); }
.channels .i { color: var(--gold); width: 20px; height: 20px; margin-top: 3px; }
.channels a { color: var(--text); text-underline-offset: 3px; }
.tally { padding: 8px 8px 16px; }
.tally iframe { display: block; width: 100%; border: 0; color-scheme: dark; }
.tally__note { margin: 4px 12px 0; }
@media (min-width: 1024px) {
  .contact { grid-template-columns: minmax(0, 0.72fr) minmax(0, 1.28fr); gap: 64px; align-items: start; }
  .contact__copy { position: sticky; top: calc(var(--header) + 28px); }
}

body:has(.thanks) { min-height: 100vh; display: flex; flex-direction: column; }
.thanks {
  flex: 1;
  display: flex;
  align-items: center;
  padding: calc(var(--header) + 32px) 0 48px;
}
.thanks__inner { display: flex; flex-direction: column; align-items: flex-start; gap: 20px; max-width: 40rem; }
.thanks__steps { width: 100%; margin-top: 4px; border-top: 1px solid var(--line); }
.thanks__steps li {
  display: grid; grid-template-columns: 40px 1fr; gap: 12px;
  padding: 18px 0; border-bottom: 1px solid var(--line);
}
.thanks__steps .mono { padding-top: 4px; color: var(--gold); font-size: 0.8125rem; font-weight: 600; }
.thanks__steps h2 { font-size: 1.15rem; font-weight: 600; line-height: 1.3; }
.thanks__steps p { margin-top: 4px; color: var(--text-2); }

body:has(.legal) { min-height: 100vh; display: flex; flex-direction: column; }
.legal { flex: 1; padding: calc(var(--header) + 40px) 0 64px; }
.legal__inner { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; max-width: 40rem; }
.legal__date { color: var(--text-3); font-family: var(--font-mono); font-size: 0.8125rem; font-weight: 500; }
.legal .lead { max-width: 42rem; }
.legal section { display: flex; flex-direction: column; gap: 10px; width: 100%; margin-top: 8px; padding-top: 22px; border-top: 1px solid var(--line); }
.legal h2 { font-size: 1.2rem; font-weight: 600; line-height: 1.3; }
.legal p, .legal li { color: var(--text-2); }
.legal ul { display: grid; gap: 8px; margin: 0; padding-left: 1.15rem; }
.legal a { color: var(--text); text-underline-offset: 3px; }

.footer { padding: 56px 0 36px; background: var(--black); border-top: 1px solid var(--line); }
.footer__grid { display: grid; gap: 36px; }
.footer__brand img { width: 200px; }
.slogan {
  margin-top: 14px;
  font-family: var(--font-head); font-size: 1.15rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.06em; color: var(--gold);
}
.footer__h { margin-bottom: 6px; font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-3); }
.footer ul a {
  display: inline-flex; align-items: center; min-height: 40px; color: var(--text-2); text-decoration: none;
}
@media (hover: hover) and (pointer: fine) { .footer ul a:hover { color: var(--text); } }
.footer__legal {
  display: flex; flex-direction: column; gap: 10px;
  margin-top: 36px; padding-top: 20px; border-top: 1px solid var(--line);
  color: var(--text-3); font-size: 0.875rem;
}
.footer__legal p:first-child { max-width: 72ch; }
@media (min-width: 768px) {
  .footer__grid { grid-template-columns: 1.4fr 1fr 1fr; }
  .footer__legal { flex-direction: row; justify-content: space-between; align-items: start; gap: 24px; }
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }

  .btn { transition: background-color var(--dur-fast) ease, border-color var(--dur-fast) ease, color var(--dur-fast) ease; }
  .btn .i--go { transition: translate var(--dur-base) var(--ease-out); }
  .nav a, .footer ul a { transition: color var(--dur-fast) ease; }
  .header { transition: background-color var(--dur-base) ease, border-color var(--dur-base) ease; }
  .menu-btn, .post__remove { transition: background-color var(--dur-fast) ease, color var(--dur-fast) ease; }
  input:not([type="checkbox"]), select, textarea { transition: border-color var(--dur-fast) ease, box-shadow var(--dur-fast) ease; }
  .check input { transition: background-color var(--dur-fast) ease, border-color var(--dur-fast) ease; }
  .check input::after { transition: transform var(--dur-fast) var(--ease-out); }
  .plus { transition: border-color var(--dur-fast) ease; }
  .plus::after { transition: transform var(--dur-base) var(--ease-out); }

  @media (hover: hover) and (pointer: fine) {
    .btn:hover .i--go { translate: 3px 0; }
  }

  .hero__title .w { display: inline-block; animation: word-in 520ms var(--ease-out) both; }
  .hero__title .w:nth-child(2) { animation-delay: 50ms; }
  .hero__title .w:nth-child(3) { animation-delay: 100ms; }
  .hero__title .w:nth-child(4) { animation-delay: 150ms; }
  .hero__photo img { animation: photo-in 900ms var(--ease-out) both; }
  .log { animation: rise-in 420ms var(--ease-out) 280ms both; }

  @media (max-width: 1023px) {
    .nav { opacity: 0; transition: opacity 120ms ease, display 120ms allow-discrete; }
    .header.is-open .nav {
      opacity: 1;
      transition: opacity var(--dur-base) var(--ease-out), display var(--dur-base) allow-discrete;
    }
    @starting-style { .header.is-open .nav { opacity: 0; } }
  }

  .post.is-new { animation: rise-in var(--dur-base) var(--ease-out) both; }
  .result__total .mono.is-changed { animation: tick var(--dur-base) var(--ease-out); }
  .error:not(:empty), .status:not(:empty), .summary:not([hidden]) { animation: nudge-in var(--dur-base) var(--ease-out); }

  :root { interpolate-size: allow-keywords; }
  details::details-content {
    block-size: 0; overflow: clip;
    transition: block-size var(--dur-slow) var(--ease-out), content-visibility var(--dur-slow) allow-discrete;
  }
  details[open]::details-content { block-size: auto; }
}

@keyframes word-in { from { opacity: 0; translate: 0 0.28em; } to { opacity: 1; translate: 0 0; } }
@keyframes rise-in { from { opacity: 0; translate: 0 10px; } to { opacity: 1; translate: 0 0; } }
@keyframes photo-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes tick { from { opacity: 0.4; translate: 0 4px; } to { opacity: 1; translate: 0 0; } }
@keyframes nudge-in { from { opacity: 0; translate: 0 -4px; } to { opacity: 1; translate: 0 0; } }

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