/* =========================================================
   Prado & Lacerda — site demonstrativo (dados fictícios)
   Conceito: o site como um documento jurídico.
   ========================================================= */

:root {
  --paper: #f3f3f0;
  --paper-2: #e6e6e1;
  --white: #fdfdfb;
  --ink: #121214;
  --ink-2: #26262b;
  --muted: #64646a;
  --red: #b02f17;
  --red-ink: #b02f17;
  --red-btn: #b02f17;
  --green: #2f9e5b;
  --line: rgba(18, 18, 20, .14);
  --line-light: rgba(243, 243, 240, .16);

  --serif: "Libre Caslon Display", Georgia, serif;
  --sans: "Schibsted Grotesk", system-ui, sans-serif;
  --mono: "Courier Prime", ui-monospace, monospace;

  --ease: cubic-bezier(.77, 0, .175, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --rail: 88px;
  --top: 72px;
  --gutter: clamp(16px, 4vw, 56px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; overflow-x: hidden; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--sans); font-size: 16px; line-height: 1.6;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
body.is-loading { overflow: hidden; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3, p, ol, ul, dl, dd, blockquote { margin: 0; }
ol, ul { padding: 0; list-style: none; }
::selection { background: var(--red); color: var(--white); }
:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }

.wrap { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 var(--gutter); }
.main, .footer { margin-left: var(--rail); }
.main { overflow-x: clip; }

/* ---------- Shared bits ---------- */
.sec-head { margin-bottom: clamp(44px, 6vw, 80px); max-width: 860px; }
.sec-num { font-family: var(--mono); font-size: 13px; color: var(--red); display: inline-flex; align-items: center; gap: 12px; }
.sec-num::after { content: ""; width: 48px; height: 1px; background: currentColor; }
.sec-title { font-family: var(--serif); font-weight: 400; font-size: clamp(42px, 6.2vw, 92px); line-height: 1; letter-spacing: -.02em; margin-top: 18px; }
.sec-lead { margin-top: 22px; font-size: 18px; color: var(--muted); max-width: 560px; }
.sec-head--light .sec-title { color: var(--paper); }
.sec-head--light .sec-lead { color: rgba(243, 243, 240, .66); }

.w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .1em; margin-bottom: -.1em; }
.w > span { display: inline-block; }

.btn {
  position: relative; display: inline-flex; align-items: center; gap: 12px; overflow: hidden; isolation: isolate;
  padding: 17px 28px; border-radius: 4px; font-size: 15px; font-weight: 500;
  transition: color .45s var(--ease-out);
}
.btn::before { content: ""; position: absolute; inset: 0; z-index: -1; transform: scaleX(0); transform-origin: right; transition: transform .6s var(--ease-out); }
.btn:hover::before { transform: scaleX(1); transform-origin: left; }
.btn svg { transition: transform .45s var(--ease-out); }
.btn:hover svg { transform: translateX(4px); }
.btn--red { background: var(--red-btn); color: var(--white); }
.btn--red::before { background: var(--ink); }
.btn--ink { background: var(--ink); color: var(--paper); }
.btn--ink::before { background: var(--red); }
.btn--sm { padding: 11px 18px; font-size: 14px; }

.link { position: relative; font-size: 15px; font-weight: 500; padding: 4px 0; }
.link::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: currentColor; transform-origin: right; transition: transform .5s var(--ease-out); }
.link:hover::after { transform: scaleX(0); }

/* ---------- Stamp ---------- */
.stamp {
  display: inline-flex; padding: 6px; border: 3px solid currentColor; border-radius: 6px;
  color: var(--red); transform: rotate(-11deg); mix-blend-mode: multiply;
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='f'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.75' numOctaves='2'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 -2.4 1.75'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23f)'/%3E%3C/svg%3E");
          mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='f'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.75' numOctaves='2'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 -2.4 1.75'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23f)'/%3E%3C/svg%3E");
}
.stamp span { display: block; padding: 6px 14px; border: 1px solid currentColor; border-radius: 3px; font-family: var(--mono); font-weight: 500; font-size: 15px; letter-spacing: .16em; text-transform: uppercase; white-space: nowrap; }

/* Lighter red for text on dark surfaces */
.ledger, .calc, .petition, .footer, .sheet-menu { --red: #ff7a5c; }
.doc-form { --red: #b02f17; }

/* ---------- Loader ---------- */
.loader { position: fixed; inset: 0; z-index: 1000; background: var(--ink); display: grid; place-items: center; }
html:not(.js) .loader { display: none; }
.loader__doc { position: relative; width: min(340px, 78vw); aspect-ratio: 1 / 1.3; background: var(--white); padding: 28px 26px; box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .6); }
.loader__head { display: flex; flex-direction: column; gap: 4px; font-family: var(--mono); font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.loader__num { color: var(--ink); font-size: 12px; }
.loader__lines { display: grid; gap: 12px; margin-top: 34px; }
.loader__lines i { display: block; height: 7px; border-radius: 2px; background: var(--paper-2); transform-origin: left; }
.loader__lines i:nth-child(2) { width: 86%; }
.loader__lines i:nth-child(4) { width: 72%; }
.loader__lines i:nth-child(5) { width: 54%; }
.loader__stamp { position: absolute; right: 22px; bottom: 34px; }

/* ---------- Top bar ---------- */
.topbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 60; height: var(--top);
  display: flex; align-items: center; gap: 28px; padding: 0 var(--gutter) 0 24px;
  background: rgba(243, 243, 240, .86); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.logo { display: flex; align-items: center; gap: 12px; }
.logo__mark {
  width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%;
  background: var(--ink); color: var(--red); font-family: var(--serif); font-size: 26px; line-height: 1;
}
.logo__name { font-family: var(--serif); font-size: 23px; line-height: 1; letter-spacing: -.01em; }
.logo__name i { color: var(--red); font-style: normal; }
.logo__name small { display: block; font-family: var(--mono); font-size: 11px; letter-spacing: .06em; color: var(--muted); margin-top: 4px; }
.status { margin-left: auto; display: flex; align-items: center; gap: 10px; font-family: var(--mono); font-size: 13px; color: var(--muted); }
.status__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--muted); position: relative; }
.status.is-open .status__dot { background: var(--green); }
.status.is-open .status__dot::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 1px solid var(--green); animation: ping 2s var(--ease-out) infinite; }
@keyframes ping { from { transform: scale(.6); opacity: 1; } to { transform: scale(1.8); opacity: 0; } }

.burger { display: none; width: 44px; height: 44px; position: relative; margin-left: 8px; }
.burger span { position: absolute; left: 11px; right: 11px; height: 1.5px; background: var(--ink); transition: transform .5s var(--ease-out), top .5s var(--ease-out); }
.burger span:first-child { top: 18px; }
.burger span:last-child { top: 26px; }
.menu-open .burger span:first-child { top: 22px; transform: rotate(45deg); }
.menu-open .burger span:last-child { top: 22px; transform: rotate(-45deg); }

/* ---------- Rail ---------- */
.rail {
  position: fixed; left: 0; top: var(--top); bottom: 0; width: var(--rail); z-index: 50;
  border-right: 1px solid var(--line); background: var(--paper);
  display: flex; flex-direction: column; align-items: center; padding: 26px 0;
}
.rail__label { font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); writing-mode: vertical-rl; transform: rotate(180deg); margin-bottom: 22px; }
.rail ol { display: grid; gap: 4px; }
.rail a { position: relative; display: grid; place-items: center; width: 52px; height: 40px; border-radius: 4px; font-family: var(--mono); font-size: 13px; color: var(--muted); transition: color .3s, background .3s; }
.rail a b { font-weight: 500; }
.rail a span {
  position: absolute; left: calc(100% + 14px); top: 50%; transform: translate(-6px, -50%); opacity: 0; pointer-events: none;
  padding: 7px 12px; border-radius: 4px; background: var(--ink); color: var(--paper); white-space: nowrap; font-family: var(--sans); font-size: 13px;
  transition: opacity .3s, transform .4s var(--ease-out);
}
.rail a:hover span, .rail a:focus-visible span { opacity: 1; transform: translate(0, -50%); }
.rail a:hover { color: var(--ink); }
.rail a.is-active { color: var(--white); background: var(--red); }
.rail__progress { flex: 1; width: 1px; background: var(--line); margin-top: 22px; position: relative; }
.rail__progress i { position: absolute; inset: 0; background: var(--red); transform-origin: top; transform: scaleY(0); }

/* ---------- Mobile menu ---------- */
.sheet-menu {
  position: fixed; inset: 0; z-index: 55; background: var(--ink); color: var(--paper);
  padding: calc(var(--top) + 30px) var(--gutter) 40px;
  clip-path: inset(0 0 100% 0); transition: clip-path .8s var(--ease); visibility: hidden;
}
.menu-open .sheet-menu { clip-path: inset(0 0 0 0); visibility: visible; }
.sheet-menu__label { font-family: var(--mono); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--red); margin-bottom: 18px; }
.sheet-menu li { border-top: 1px solid var(--line-light); }
.sheet-menu a { display: flex; align-items: baseline; gap: 16px; padding: 12px 0; font-family: var(--serif); font-size: clamp(30px, 8vw, 44px); line-height: 1.15; opacity: 0; transform: translateY(16px); transition: opacity .5s, transform .7s var(--ease-out); }
.sheet-menu a b { font-family: var(--mono); font-weight: 400; font-size: 13px; color: var(--red); width: 28px; }
.menu-open .sheet-menu a { opacity: 1; transform: none; }
.menu-open .sheet-menu li:nth-child(1) a { transition-delay: 0.24s; }
.menu-open .sheet-menu li:nth-child(2) a { transition-delay: 0.28s; }
.menu-open .sheet-menu li:nth-child(3) a { transition-delay: 0.32s; }
.menu-open .sheet-menu li:nth-child(4) a { transition-delay: 0.36s; }
.menu-open .sheet-menu li:nth-child(5) a { transition-delay: 0.40s; }
.menu-open .sheet-menu li:nth-child(6) a { transition-delay: 0.44s; }
.menu-open .sheet-menu li:nth-child(7) a { transition-delay: 0.48s; }
.menu-open .sheet-menu li:nth-child(8) a { transition-delay: 0.52s; }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh;
  display: grid; grid-template-columns: 1.15fr .85fr; grid-template-rows: 1fr auto; gap: 0 4vw;
  padding: calc(var(--top) + clamp(40px, 6vw, 80px)) var(--gutter) 0;
  max-width: 1400px; margin: 0 auto; overflow: hidden;
}
.hero__text { align-self: center; }
.hero__art { font-family: var(--mono); font-size: 14px; color: var(--red); display: flex; align-items: center; gap: 14px; }
.hero__art::after { content: ""; flex: 0 0 64px; height: 1px; background: currentColor; }
.hero__title { font-family: var(--serif); font-weight: 400; font-size: clamp(54px, 7.4vw, 128px); line-height: .98; letter-spacing: -.03em; margin: 26px 0 30px; }
.hero__title .row { display: block; overflow: hidden; padding-bottom: .06em; }
.hero__title .row > span { display: inline-block; }
.redact { position: relative; background: none; color: var(--red); padding: 0 .04em; }
.redact i { position: absolute; left: -.04em; right: -.04em; top: .14em; bottom: .02em; background: var(--ink); transform-origin: right; }
html:not(.js) .redact i, .no-anim .redact i { display: none; }
.hero__par { max-width: 520px; font-size: 18px; color: var(--muted); }
.hero__par b { color: var(--ink); font-weight: 600; }
.hero__actions { display: flex; align-items: center; gap: 30px; flex-wrap: wrap; margin-top: 40px; }

.dossier { position: relative; align-self: center; height: min(66vh, 600px); min-height: 440px; }
.paper {
  position: absolute; left: 50%; top: 50%; width: min(82%, 400px); aspect-ratio: 1 / 1.32;
  background: var(--white); border: 1px solid var(--line); border-radius: 3px;
  box-shadow: 0 1px 0 rgba(0, 0, 0, .04), 0 30px 60px -30px rgba(18, 18, 20, .35);
  padding: 28px 30px; translate: -50% -50%;
}
.paper--3 { rotate: -8deg; }
.paper--2 { rotate: 5deg; }
.paper--1 { rotate: -1.5deg; }
.paper__top { display: flex; justify-content: space-between; }
.paper__kind { font-family: var(--mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.paper__no { font-family: var(--mono); font-size: 11px; color: var(--muted); }
.paper__to { font-family: var(--serif); font-size: 21px; line-height: 1.3; margin-top: 26px; }
.paper__lines { display: grid; gap: 11px; margin-top: 24px; }
.paper__lines i { display: block; height: 6px; border-radius: 2px; background: var(--paper-2); transform-origin: left; }
.paper__lines i:nth-child(3n) { width: 78%; }
.paper__lines i:nth-child(4n) { width: 90%; }
.paper__lines i:last-child { width: 46%; }
.paper__sign { position: absolute; left: 28px; bottom: 34px; width: 46%; }
.paper__sign path { stroke: var(--ink); stroke-width: 2; stroke-linecap: round; }
.paper__stamp { position: absolute; right: 22px; bottom: 26px; }

.hero__facts { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); margin-top: clamp(40px, 6vw, 70px); }
.hero__facts li { padding: 22px 24px 26px 0; font-size: 15px; color: var(--muted); display: flex; align-items: baseline; gap: 12px; }
.hero__facts li + li { padding-left: 24px; border-left: 1px solid var(--line); }
.hero__facts b { font-family: var(--serif); font-weight: 400; font-size: 34px; color: var(--ink); line-height: 1; }

/* ---------- Ledger ---------- */
.ledger { background: var(--ink); color: var(--paper); padding: clamp(90px, 12vw, 160px) 0; }
.ledger .sec-num { color: var(--red); }
.ledger__row { display: flex; align-items: baseline; gap: 18px; padding: 26px 0; border-top: 1px solid var(--line-light); }
.ledger__row:last-child { border-bottom: 1px solid var(--line-light); }
.ledger__k { font-size: clamp(16px, 1.5vw, 20px); color: rgba(243, 243, 240, .76); flex: 0 1 auto; }
.ledger__dots { flex: 1; min-width: 30px; height: 1px; border-bottom: 2px dotted rgba(243, 243, 240, .3); transform-origin: left; }
.ledger__v { font-family: var(--serif); font-size: clamp(46px, 6.4vw, 100px); line-height: .9; white-space: nowrap; letter-spacing: -.02em; }
.ledger__note { margin-top: 26px; font-family: var(--mono); font-size: 12px; color: rgba(243, 243, 240, .55); }

/* ---------- Areas (horizontal) ---------- */
.areas { background: var(--paper); overflow: hidden; }
.areas__pin { min-height: 100vh; display: flex; flex-direction: column; justify-content: center; padding: calc(var(--top) + 40px) 0 50px; }
.areas__head { padding: 0 var(--gutter); max-width: 1240px; width: 100%; margin: 0 auto 40px; display: grid; grid-template-columns: 1fr 260px; align-items: end; gap: 10px 40px; }
.areas__head .sec-num { grid-column: 1 / -1; }
.areas__head .sec-title { margin-top: 0; }
.areas__bar { height: 2px; background: var(--line); position: relative; margin-bottom: 18px; }
.areas__bar i { position: absolute; inset: 0; background: var(--red); transform-origin: left; transform: scaleX(0); }
.areas__track { display: flex; gap: 28px; padding: 0 var(--gutter); width: max-content; }
.title-card {
  position: relative; overflow: hidden; width: min(560px, 78vw); min-height: 440px;
  background: var(--white); border: 1px solid var(--line); border-radius: 6px;
  padding: 36px 38px; display: flex; flex-direction: column;
}
.title-card__roman {
  position: absolute; right: 22px; top: -10px; font-family: var(--serif); font-size: 220px; line-height: 1;
  color: transparent; -webkit-text-stroke: 1.5px var(--red); opacity: .55; pointer-events: none;
}
.title-card__kicker { font-family: var(--mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--red); }
.title-card h3 { font-family: var(--serif); font-weight: 400; font-size: clamp(34px, 3.2vw, 46px); line-height: 1.05; margin: 14px 0 16px; max-width: 80%; position: relative; }
.title-card p { color: var(--muted); max-width: 440px; position: relative; }
.incisos { margin-top: 24px; border-top: 1px solid var(--line); }
.incisos li { display: flex; gap: 18px; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 15.5px; }
.incisos b { font-family: var(--mono); font-weight: 500; font-size: 13px; color: var(--red); width: 26px; flex: none; padding-top: 2px; }
.title-card__ref { margin-top: auto; padding-top: 22px; font-family: var(--mono); font-size: 12px; color: var(--muted); }

/* ---------- Diagnóstico ---------- */
.diag { padding: clamp(90px, 12vw, 160px) 0; background: var(--paper-2); }
.diag__grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(30px, 5vw, 70px); align-items: start; }
.diag__q { font-family: var(--serif); font-size: 32px; margin-bottom: 18px; }
.diag__opts { display: grid; border-top: 1px solid var(--line); }
.opt {
  position: relative; text-align: left; padding: 18px 16px 18px 46px; border-bottom: 1px solid var(--line);
  font-size: 17px; transition: background .35s, color .35s, padding .5s var(--ease-out);
}
.opt::before { content: ""; position: absolute; left: 14px; top: 50%; width: 16px; height: 16px; margin-top: -8px; border-radius: 50%; border: 1.5px solid currentColor; opacity: .5; transition: all .35s; }
@media (hover: hover) { .opt:hover { background: rgba(18, 18, 20, .04); padding-left: 52px; } }
.opt.is-active { background: var(--ink); color: var(--paper); }
.opt.is-active::before { border-color: var(--red); background: var(--red); box-shadow: inset 0 0 0 3px var(--ink); opacity: 1; }

.opinion { position: relative; overflow: hidden; background: var(--white); border: 1px solid var(--line); border-radius: 6px; box-shadow: 0 30px 60px -40px rgba(18, 18, 20, .45); }
.opinion__head { display: flex; justify-content: space-between; padding: 16px 26px; border-bottom: 1px dashed var(--line); font-family: var(--mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.opinion__id b { color: var(--ink); font-weight: 500; }
.opinion__body { padding: 28px 26px 8px; min-height: 360px; }
.opinion__area { font-family: var(--mono); font-size: 13px; color: var(--red); }
.opinion__title { font-family: var(--serif); font-weight: 400; font-size: clamp(30px, 3vw, 40px); line-height: 1.1; margin: 10px 0 14px; }
.opinion__text { color: var(--muted); }
.opinion__docs-label { margin-top: 24px; font-family: var(--mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; }
.opinion__docs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.opinion__docs li { padding: 7px 12px 7px 30px; position: relative; border: 1px solid var(--line); border-radius: 4px; font-size: 14px; }
.opinion__docs li::before { content: ""; position: absolute; left: 11px; top: 50%; width: 10px; height: 6px; margin-top: -5px; border-left: 1.5px solid var(--red); border-bottom: 1.5px solid var(--red); transform: rotate(-45deg); }
.opinion__foot { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; padding: 20px 26px; border-top: 1px dashed var(--line); margin-top: 24px; }
.opinion__urg { display: flex; align-items: center; gap: 12px; font-family: var(--mono); font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.meter { display: flex; gap: 4px; }
.meter i { width: 18px; height: 8px; border-radius: 2px; background: var(--paper-2); transition: background .4s; }
.meter[data-level="1"] i:nth-child(-n+1), .meter[data-level="2"] i:nth-child(-n+2), .meter[data-level="3"] i { background: var(--red); }
.redaction { position: absolute; inset: 62px 0 auto; padding: 28px 26px; display: grid; gap: 14px; pointer-events: none; }
.redaction i { height: 22px; background: var(--ink); transform: scaleX(0); transform-origin: left; }
.redaction i:nth-child(2) { width: 82%; height: 40px; }
.redaction i:nth-child(3) { width: 94%; }
.redaction i:nth-child(4) { width: 70%; }
.redaction i:nth-child(5) { width: 88%; }
.redaction i:nth-child(6) { width: 52%; }

.calc {
  margin-top: clamp(50px, 6vw, 80px); background: var(--ink); color: var(--paper); border-radius: 6px;
  padding: clamp(28px, 4vw, 48px); display: grid; grid-template-columns: 1.3fr 1fr; gap: 30px 50px; align-items: center;
}
.calc__ref { font-family: var(--mono); font-size: 12px; color: var(--red); }
.calc h3 { font-family: var(--serif); font-weight: 400; font-size: clamp(30px, 3vw, 42px); line-height: 1.1; margin: 10px 0 12px; }
.calc__intro p { color: rgba(243, 243, 240, .7); max-width: 480px; }
.calc__intro p b { color: var(--paper); }
.calc__field { display: grid; gap: 8px; margin-top: 24px; max-width: 300px; }
.calc__field span { font-family: var(--mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: rgba(243, 243, 240, .6); }
.calc__field input {
  font: inherit; font-size: 18px; color: var(--paper); background: transparent; color-scheme: dark;
  border: 0; border-bottom: 1.5px solid rgba(243, 243, 240, .35); padding: 8px 0; border-radius: 0; outline: none;
}
.calc__field input:focus { border-color: var(--red); }
.calc__out { display: flex; align-items: center; gap: 26px; }
.ring { position: relative; width: 150px; height: 150px; flex: none; }
.ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring circle { fill: none; stroke-width: 6; }
.ring__track { stroke: rgba(243, 243, 240, .12); }
.ring__bar { stroke: var(--red); stroke-linecap: round; stroke-dasharray: 326.73; stroke-dashoffset: 326.73; transition: stroke-dashoffset 1.2s var(--ease-out), stroke .4s; }
.ring__txt { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.ring__txt b { font-family: var(--serif); font-weight: 400; font-size: 42px; line-height: 1; }
.ring__txt span { font-family: var(--mono); font-size: 11px; color: rgba(243, 243, 240, .6); margin-top: 4px; }
.calc__msg { font-size: 16px; color: rgba(243, 243, 240, .8); }
.calc__msg b { color: var(--paper); }
.calc.is-urgent .ring__bar { stroke: #ffb020; }
.calc.is-expired .ring__bar { stroke: rgba(243, 243, 240, .35); }
.calc__disc { grid-column: 1 / -1; font-family: var(--mono); font-size: 12px; color: rgba(243, 243, 240, .5); border-top: 1px solid var(--line-light); padding-top: 18px; }

/* ---------- Cases ---------- */
.cases { padding: clamp(90px, 12vw, 160px) 0; overflow: hidden; }
.cases__list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.case {
  position: relative; background: var(--white); border: 1px solid var(--line); border-radius: 0 6px 6px 6px;
  padding: 30px 28px 120px; margin-top: 30px;
}
.case::before {
  content: "Autos"; position: absolute; left: -1px; top: -31px; height: 31px; padding: 0 18px;
  display: flex; align-items: center; background: var(--white); border: 1px solid var(--line); border-bottom: 0; border-radius: 6px 6px 0 0;
  font-family: var(--mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted);
}
.case__meta { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; font-family: var(--mono); font-size: 12.5px; color: var(--muted); padding-bottom: 16px; border-bottom: 1px dashed var(--line); }
.case h3 { font-family: var(--serif); font-weight: 400; font-size: 28px; line-height: 1.12; margin: 20px 0 12px; }
.case h3 em { font-style: normal; color: var(--red); }
.case__ask { font-size: 15px; color: var(--muted); }
.case__ask b { color: var(--ink); font-weight: 600; }
.case blockquote { margin-top: 20px; padding-left: 16px; border-left: 2px solid var(--red); font-size: 15.5px; line-height: 1.55; }
.case__stamp { position: absolute; right: 22px; bottom: 28px; }
.case__stamp--alt { color: var(--ink); transform: rotate(-6deg); }

/* ---------- Team ---------- */
.team { padding: 0 0 clamp(90px, 12vw, 160px); }
.team__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.lawyer__pic {
  position: relative; aspect-ratio: 4 / 4.6; border-radius: 6px; overflow: hidden; background-color: var(--ink);
  background-image: radial-gradient(rgba(243, 243, 240, .14) 1.2px, transparent 1.4px); background-size: 9px 9px;
  display: grid; place-items: center;
}
.lawyer__pic--b { background-color: var(--red); }
.lawyer__pic--c { background-color: #3a3a40; }
.lawyer__pic span { font-family: var(--serif); font-size: clamp(90px, 10vw, 150px); line-height: 1; color: var(--paper); letter-spacing: -.04em; transition: transform 1s var(--ease-out); }
@media (hover: hover) { .lawyer:hover .lawyer__pic span { transform: scale(1.06); } }
.lawyer__info { padding-top: 18px; }
.lawyer__oab { font-family: var(--mono); font-size: 12px; color: var(--red); }
.lawyer h3 { font-family: var(--serif); font-weight: 400; font-size: 32px; line-height: 1.1; margin: 6px 0 4px; }
.lawyer p { color: var(--muted); font-size: 15px; }

/* ---------- FAQ ---------- */
.faq { padding: clamp(90px, 12vw, 160px) 0; background: var(--paper-2); }
.faq__grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(30px, 6vw, 90px); align-items: start; }
.acc { border-bottom: 1px solid var(--line); }
.acc:first-child { border-top: 1px solid var(--line); }
.acc__q { width: 100%; display: flex; align-items: center; gap: 20px; padding: 24px 0; text-align: left; font-family: var(--serif); font-size: clamp(23px, 2.2vw, 30px); line-height: 1.3; }
.acc__q b { font-family: var(--mono); font-weight: 500; font-size: 13px; color: var(--red); width: 34px; flex: none; }
.acc__q span { flex: 1; }
.acc__q i { position: relative; width: 34px; height: 34px; flex: none; border: 1px solid var(--line); border-radius: 50%; transition: background .4s, border-color .4s; }
.acc__q i::before, .acc__q i::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 1.5px; margin: -.75px 0 0 -6px; background: currentColor; transition: transform .5s var(--ease-out); }
.acc__q i::after { transform: rotate(90deg); }
.acc.is-open .acc__q i { background: var(--red); border-color: var(--red); color: var(--white); }
.acc.is-open .acc__q i::after { transform: rotate(0); }
.acc__a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .55s var(--ease-out); }
.acc__a > div { overflow: hidden; }
.acc__a p { padding: 0 54px 26px; color: var(--muted); }
.acc.is-open .acc__a { grid-template-rows: 1fr; }

/* ---------- Petition / contact ---------- */
.petition { background: var(--ink); color: var(--paper); padding: clamp(90px, 12vw, 160px) 0; }
.petition__grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(30px, 6vw, 80px); align-items: start; }
.petition__info { margin-top: 40px; display: grid; }
.petition__info div { display: grid; grid-template-columns: 110px 1fr; gap: 16px; padding: 16px 0; border-top: 1px solid var(--line-light); }
.petition__info dt { font-family: var(--mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--red); padding-top: 3px; }
.petition__info dd { color: rgba(243, 243, 240, .85); }

.doc-form {
  position: relative; background: var(--white); color: var(--ink); border-radius: 4px;
  padding: clamp(28px, 4vw, 52px) clamp(24px, 4vw, 56px);
  box-shadow: 0 40px 90px -30px rgba(0, 0, 0, .7);
  font-family: var(--serif); font-size: clamp(21px, 1.9vw, 26px); line-height: 2.05;
}
.doc-form::before { content: ""; position: absolute; left: clamp(12px, 2vw, 30px); top: 0; bottom: 0; width: 1px; background: rgba(214, 61, 31, .35); }
.doc-form__to { margin-bottom: 8px; }
.blank { display: inline-block; position: relative; vertical-align: baseline; }
.blank input, .blank select, .blank textarea {
  font: inherit; font-family: var(--sans); font-size: max(16px, .72em); line-height: 1.4; color: var(--red-ink);
  background: transparent; border: 0; border-bottom: 1.5px dashed rgba(18, 18, 20, .35); border-radius: 0;
  padding: 2px 4px; outline: none; width: 15em; max-width: 100%; transition: border-color .3s, background .3s;
}
.blank--sm input { width: 10.5em; }
.blank select { width: auto; cursor: pointer; appearance: none; -webkit-appearance: none; padding-right: 22px; }
.blank--select::after { content: "▾"; position: absolute; right: 4px; top: 50%; translate: 0 -50%; font-family: var(--sans); font-size: 14px; color: var(--muted); pointer-events: none; }
.blank input::placeholder, .blank textarea::placeholder { color: #6e6e73; }
.blank input:focus, .blank select:focus, .blank textarea:focus { border-bottom-style: solid; border-color: var(--red); background: rgba(214, 61, 31, .05); }
.blank.is-invalid input { border-color: var(--red); background: rgba(214, 61, 31, .08); }
.blank--area { display: block; margin-top: 6px; }
.blank--area textarea { width: 100%; resize: vertical; min-height: 96px; border: 1.5px dashed rgba(18, 18, 20, .3); padding: 10px 12px; line-height: 1.6; }
.doc-form__end { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; margin-top: 22px; line-height: 1.35; }
.doc-form__end .btn { font-family: var(--sans); }
.doc-form__err { font-family: var(--sans); font-size: 14px; color: var(--red-ink); min-height: 1.4em; margin-top: 10px; line-height: 1.4; }
.doc-form__done {
  position: absolute; inset: 0; z-index: 2; background: var(--white); border-radius: inherit;
  display: grid; place-content: center; justify-items: center; gap: 10px; text-align: center; padding: 30px;
  font-family: var(--sans); font-size: 16px; line-height: 1.5; opacity: 0; visibility: hidden;
}
.doc-form.is-sent .doc-form__done { opacity: 1; visibility: visible; }
.doc-form__stamp { margin-bottom: 18px; }
.doc-form__stamp span { font-size: 22px; padding: 10px 22px; }
.doc-form__proto { font-family: var(--mono); font-size: 14px; color: var(--muted); }
.doc-form__proto b { color: var(--ink); font-weight: 500; }

/* ---------- Footer ---------- */
.footer { background: var(--ink); color: var(--paper); padding: 40px 0 30px; border-top: 1px solid var(--line-light); }
.footer__close { text-align: center; padding: 50px 0 70px; }
.footer__city { font-family: var(--serif); font-size: clamp(24px, 2.6vw, 34px); }
.footer__sign { width: min(520px, 90%); margin: 18px auto 6px; }
.footer__sign path { stroke: var(--paper); stroke-width: 2.4; stroke-linecap: round; }
.footer__sign path:last-child { stroke: rgba(243, 243, 240, .3); stroke-width: 1; }
.footer__sig { font-family: var(--mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: rgba(243, 243, 240, .6); }
.footer__cols { display: grid; grid-template-columns: auto 1fr auto; gap: 30px 50px; align-items: center; padding: 36px 0; border-top: 1px solid var(--line-light); }
.logo--light .logo__mark { background: var(--paper); }
.logo--light .logo__name small { color: rgba(243, 243, 240, .55); }
.footer__cols nav { display: flex; gap: 26px; flex-wrap: wrap; justify-content: center; }
.footer__cols nav a { color: rgba(243, 243, 240, .75); transition: color .3s; }
.footer__cols nav a:hover { color: var(--red); }
.footer__demo { font-family: var(--mono); font-size: 12px; color: rgba(243, 243, 240, .55); max-width: 260px; text-align: right; }
.footer__bottom { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; padding-top: 24px; border-top: 1px solid var(--line-light); font-size: 13px; color: rgba(243, 243, 240, .55); }

/* ---------- Initial states for reveal ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(36px); }
.js.no-anim [data-reveal] { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  :root { --rail: 0px; }
  .rail, .topbar__cta { display: none; }
  .burger { display: block; }
  .topbar { padding-left: var(--gutter); }
  .hero { grid-template-columns: 1fr; }
  .dossier { height: 480px; min-height: 0; margin-top: 30px; }
  .diag__grid, .faq__grid, .petition__grid { grid-template-columns: 1fr; }
  .cases__list, .team__grid { grid-template-columns: 1fr 1fr; }
  .footer__cols { grid-template-columns: 1fr; justify-items: start; }
  .footer__cols nav { justify-content: flex-start; }
  .footer__demo { text-align: left; }
}

@media (max-width: 900px) {
  .areas__pin { min-height: 0; padding: 90px 0; }
  .areas__head { grid-template-columns: 1fr; }
  .areas__bar { display: none; }
  .areas__track { flex-direction: column; width: auto; }
  .title-card { width: 100%; min-height: 0; }
  .calc { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  :root { --top: 64px; }
  body { font-size: 15.5px; }
  .status { display: none; }
  .logo__name { font-size: 20px; }
  .logo__mark { width: 36px; height: 36px; font-size: 23px; }
  .burger { margin-left: auto; }

  .sec-head { margin-bottom: 36px; }
  .sec-title { font-size: clamp(38px, 11vw, 52px); line-height: 1.05; }
  .sec-lead { font-size: 16px; }
  .ledger, .diag, .cases, .faq, .petition { padding: 72px 0; }
  .team { padding-bottom: 72px; }
  .areas__pin { padding: 72px 0; }

  .hero { padding-top: calc(var(--top) + 32px); }
  .hero__title { margin: 18px 0 22px; }
  .hero__par { font-size: 16.5px; }
  .hero__actions { margin-top: 28px; gap: 20px; }
  .hero__actions .btn { width: 100%; justify-content: center; }
  .dossier { height: 330px; margin-top: 36px; }
  .paper { width: 74%; padding: 18px; }
  .paper__to { font-size: 15px; margin-top: 16px; }
  .paper__lines { gap: 9px; margin-top: 16px; }
  .paper__lines i { height: 5px; }
  .paper__sign { left: 18px; bottom: 22px; width: 40%; }
  .paper__stamp { right: 14px; bottom: 18px; }
  .hero__facts { grid-template-columns: 1fr; margin-top: 30px; }
  .hero__facts li, .hero__facts li + li { padding: 14px 0; border-left: 0; }
  .hero__facts li + li { border-top: 1px solid var(--line); }
  .hero__facts b { font-size: 28px; min-width: 64px; }

  .stamp span { font-size: 12px; padding: 5px 10px; letter-spacing: .12em; }

  .ledger__row { flex-wrap: wrap; gap: 4px 14px; padding: 20px 0; }
  .ledger__k { flex-basis: 100%; font-size: 15px; }
  .ledger__v { font-size: 46px; }

  .title-card { padding: 26px 22px; }
  .title-card__roman { font-size: 96px; top: 12px; right: 16px; opacity: .3; }
  .title-card h3 { max-width: 82%; font-size: 30px; }
  .incisos li { font-size: 15px; gap: 12px; }

  .diag__q { font-size: 26px; }
  .opt { padding: 15px 14px 15px 44px; font-size: 16px; }
  .opinion__head, .opinion__body, .opinion__foot { padding-left: 20px; padding-right: 20px; }
  .opinion__body { min-height: 0; }
  .opinion__foot .btn { width: 100%; justify-content: center; }
  .calc { padding: 26px 20px; }
  .calc__out { flex-direction: column; align-items: flex-start; }
  .ring { width: 130px; height: 130px; }

  .cases__list { grid-template-columns: 1fr; gap: 10px; }
  .case { padding: 24px 20px 100px; }
  .case h3 { font-size: 25px; }
  .case__meta { flex-direction: column; gap: 2px; }

  .team__grid { grid-template-columns: 1fr; gap: 16px; }
  .lawyer { display: grid; grid-template-columns: 104px 1fr; gap: 18px; align-items: center; }
  .lawyer__pic { aspect-ratio: 1; }
  .lawyer__pic span { font-size: 44px; }
  .lawyer__info { padding-top: 0; }
  .lawyer h3 { font-size: 26px; }
  .lawyer p { font-size: 14px; }

  .acc__q { gap: 14px; padding: 20px 0; font-size: 21px; }
  .acc__q b { width: 26px; }
  .acc__a p { padding: 0 0 20px 40px; }

  .petition__info { margin-top: 28px; }
  .petition__info div { grid-template-columns: 1fr; gap: 4px; }
  .doc-form { padding: 26px 20px 26px 28px; font-size: 19px; line-height: 1.6; }
  .doc-form::before { left: 14px; }
  .doc-form__body { display: grid; gap: 6px; }
  .blank, .blank input, .blank--sm input { display: block; width: 100%; }
  .blank { margin: 2px 0 8px; }
  .blank input, .blank select { padding: 8px 4px; }
  .blank--select { display: inline-block; width: auto; }
  .doc-form .cm { display: none; }
  .doc-form__end { flex-direction: column; align-items: stretch; }
  .doc-form__end .btn { justify-content: center; }

  .footer__close { padding: 30px 0 50px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
}
