@font-face { font-family: "SP Atkinson"; font-weight: 400; font-style: normal; font-display: swap; src: url("assets/fonts/AtkinsonHyperlegible-Regular.ttf") format("truetype"); }
@font-face { font-family: "SP Atkinson"; font-weight: 700; font-style: normal; font-display: swap; src: url("assets/fonts/AtkinsonHyperlegible-Bold.ttf") format("truetype"); }
@font-face { font-family: "SP Open Sans"; font-weight: 300 800; font-style: normal; font-display: swap; src: url("assets/fonts/OpenSans-Variable.ttf") format("truetype"); }

:root {
  --creme: #F8F9FA;
  --grafite: #121212;
  --cobalto: #084B96;
  --cobalto-deep: #063A75;
  --cobalto-60: #6891BE;
  --cobalto-40: #98B3D2;
  --cobalto-20: #C8D6E6;
  --fg-2: #4A5568;
  --hair: #D5D9DF;
  --soft: #E1EAF5;
  --no: #B42318;
  --ok: #1E7B34;
  --font-display: "SP Atkinson", "Atkinson Hyperlegible", system-ui, sans-serif;
  --font-body: "SP Open Sans", "Open Sans", system-ui, sans-serif;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --focus: var(--cobalto);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; color: var(--grafite); font-family: var(--font-body); font-size: 1.1875rem; line-height: 1.75; overflow-x: clip; background: linear-gradient(180deg, var(--cobalto-40) 0, var(--cobalto-20) 900px, #DDE6F0 100%); background-attachment: scroll; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 700; line-height: 1.12; margin: 0; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; list-style: none; }
a { color: var(--cobalto); text-underline-offset: .2em; }
img { max-width: 100%; display: block; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }
.on-cobalto :focus-visible { --focus: var(--creme); }
.on-cobalto a:not(.btn) { color: var(--creme); }
.skip { position: absolute; left: 16px; top: -80px; background: var(--grafite); color: var(--creme); padding: 12px 16px; z-index: 60; font-family: var(--font-display); font-weight: 700; }
.skip:focus { top: 16px; }

/* nuvens do ceu atras da folha */
.clouds { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.clouds i { position: absolute; border-radius: 50%; filter: blur(70px); }
.clouds .c1 { width: 620px; height: 380px; left: -160px; top: 80px; background: rgba(255, 255, 255, .65); }
.clouds .c2 { width: 720px; height: 420px; right: -200px; top: 360px; background: rgba(255, 255, 255, .5); }
.clouds .c3 { width: 560px; height: 340px; left: 30%; bottom: -100px; background: rgba(104, 145, 190, .4); }
@keyframes drift { from { transform: translate3d(-3%, 0, 0); } to { transform: translate3d(5%, 4%, 0); } }

/* a folha */
.page { padding: clamp(16px, 4vw, 56px) clamp(12px, 3vw, 24px) 120px; }
.sheet { position: relative; max-width: 800px; margin: 0 auto; background: var(--creme); border-radius: 6px 6px 28px 28px; box-shadow: 0 1px 0 #fff inset, 0 50px 90px rgba(8, 75, 150, .28), 0 12px 24px rgba(18, 18, 18, .1); padding: 0 clamp(22px, 6vw, 72px) clamp(40px, 6vw, 72px); }
.sheet::before { content: ""; display: block; height: 22px; margin: 0 clamp(-72px, -6vw, -22px); background: var(--cobalto); border-radius: 6px 6px 0 0; box-shadow: 0 8px 16px rgba(8, 75, 150, .25); transform-origin: left; animation: draw .9s var(--ease) both; }
@keyframes draw { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.sheet::after { content: ""; position: absolute; left: 6%; right: 6%; top: 34px; height: 12px; background: var(--cobalto); box-shadow: 0 6px 12px rgba(8, 75, 150, .22); transform-origin: left; animation: draw .9s .15s var(--ease) both; }

.letterhead { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; padding-block: 56px 28px; border-bottom: 1px solid var(--hair); }
.letterhead img { width: clamp(150px, 30vw, 220px); height: auto; }
.letterhead .meta { font-family: var(--font-display); font-size: 1rem; color: var(--fg-2); text-align: right; line-height: 1.4; }

.tag { display: inline-block; margin-top: 40px; font-family: var(--font-display); font-weight: 700; font-size: 1rem; color: var(--cobalto); background: var(--soft); border-radius: 999px; padding: 6px 16px; }
h1 { margin-top: 18px; font-size: clamp(2.125rem, 6.2vw, 3.5rem); line-height: 1.06; letter-spacing: -.015em; }
h1 .soft { font-weight: 400; color: var(--cobalto); }
.deck { margin-top: 22px; font-family: var(--font-display); font-size: clamp(1.25rem, 3vw, 1.625rem); line-height: 1.4; color: #1d2330; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-height: 60px; padding: 0 32px; border-radius: 999px; border: 2px solid var(--cobalto); background: var(--cobalto); color: var(--creme); font-family: var(--font-display); font-weight: 700; font-size: 1.1875rem; line-height: 1.2; text-decoration: none; cursor: pointer; box-shadow: 0 12px 26px rgba(8, 75, 150, .32), 0 2px 4px rgba(8, 75, 150, .3); transition: background-color .25s var(--ease), transform .25s var(--ease), box-shadow .25s var(--ease); }
.btn:hover { background: var(--cobalto-deep); border-color: var(--cobalto-deep); transform: translateY(-2px); }
.btn:active { transform: none; }
.btn .ico, .ico { width: 24px; height: 24px; flex: none; fill: currentColor; }
.btn.ghost { background: transparent; color: var(--cobalto); box-shadow: none; }
.btn.ghost:hover { background: var(--soft); color: var(--cobalto); }
.btn.light { background: var(--creme); color: var(--cobalto); border-color: var(--creme); box-shadow: 0 14px 30px rgba(3, 25, 56, .35); }
.btn.light:hover { background: #fff; border-color: #fff; }
.cta-row { margin-top: 32px; display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; }
.cta-row small { font-size: 1rem; color: var(--fg-2); max-width: 28ch; line-height: 1.4; }

/* texto da carta */
.letter { margin-top: 48px; display: grid; gap: 1.35em; }
.letter .salute { font-family: var(--font-display); font-weight: 700; font-size: 1.375rem; }
.letter h2 { font-size: clamp(1.625rem, 4vw, 2.25rem); margin-top: 1.1em; letter-spacing: -.01em; }
.letter h2 .soft { font-weight: 400; }
.letter strong { font-weight: 700; }
mark { background: linear-gradient(180deg, transparent 58%, var(--cobalto-20) 58%); color: inherit; padding: 0 .08em; }
.letter ul.lista { display: grid; gap: .7em; }
.letter ul.lista li { display: flex; gap: 14px; align-items: baseline; }
.letter ul.lista li::before { content: ""; flex: none; width: 11px; height: 11px; border-radius: 3px; background: var(--cobalto); transform: translateY(-1px); }
.letter ul.lista.nao li::before { content: none; }
.letter ul.lista.nao .ico { fill: #8C1C13; transform: translateY(5px); }
.pull { font-family: var(--font-display); font-size: clamp(1.625rem, 4.4vw, 2.375rem); line-height: 1.2; color: var(--cobalto); padding-block: .4em; margin-block: .4em; text-wrap: balance; }
.pull .soft { font-weight: 400; }

/* a historia (moldura portico) */
.story { position: relative; margin-block: .8em; padding: 72px clamp(22px, 5vw, 48px) 40px; border-radius: 6px 6px 24px 24px; background: linear-gradient(180deg, #fff 0%, var(--soft) 100%); box-shadow: 0 1px 0 #fff inset, 0 24px 48px rgba(8, 75, 150, .16), 0 3px 8px rgba(18, 18, 18, .06); display: grid; gap: 1.2em; }
.story::before { content: ""; position: absolute; left: -1.5%; right: -1.5%; top: 0; height: 16px; border-radius: 4px; background: var(--cobalto); box-shadow: 0 8px 16px rgba(8, 75, 150, .28); }
.story::after { content: ""; position: absolute; left: 4%; right: 4%; top: 28px; height: 10px; border-radius: 3px; background: var(--cobalto); box-shadow: 0 5px 12px rgba(8, 75, 150, .22); }
.story .label { font-family: var(--font-display); font-weight: 700; font-size: 1.0625rem; color: var(--cobalto); }
.story h3 { font-size: clamp(1.5rem, 3.6vw, 2rem); }
.story .when { font-family: var(--font-display); font-weight: 700; color: var(--cobalto); margin-top: .6em; }
.story .quote { font-family: var(--font-display); font-size: 1.25rem; line-height: 1.45; padding: 18px 22px; background: #fff; border-radius: 6px 20px 20px 20px; box-shadow: 0 8px 18px rgba(8, 75, 150, .12); }
.story .quote.me { background: #DCF8C6; border-radius: 20px 6px 20px 20px; }
.story .fine { font-size: 1rem; color: var(--fg-2); border-top: 1px solid rgba(8, 75, 150, .2); padding-top: 18px; margin-top: .4em; }

/* chamadas para o WhatsApp no meio da carta */
.cta-card { margin-block: .8em; padding: clamp(28px, 5vw, 44px); border-radius: 28px; color: var(--creme); background: radial-gradient(700px 360px at 90% -10%, #0D52A0 0%, rgba(13, 82, 160, 0) 65%), linear-gradient(160deg, var(--cobalto) 0%, var(--cobalto-deep) 100%); box-shadow: 0 30px 60px rgba(8, 75, 150, .3), 0 6px 12px rgba(8, 75, 150, .2); display: grid; gap: 14px; }
.cta-card h3 { font-size: clamp(1.625rem, 4vw, 2.25rem); }
.cta-card p { color: var(--creme); }
.cta-card .btn { justify-self: start; margin-top: 8px; }

/* conferidor */
.checker { margin-block: .6em; padding: clamp(22px, 4vw, 32px); border-radius: 24px; background: #fff; border: 1px solid var(--hair); box-shadow: 0 18px 40px rgba(8, 75, 150, .12), 0 2px 6px rgba(18, 18, 18, .06); display: grid; gap: 14px; }
.checker h3 { font-size: 1.5rem; }
.checker label { font-family: var(--font-display); font-weight: 700; font-size: 1.0625rem; }
.checker .row { display: grid; gap: 10px; grid-template-columns: minmax(0, 1fr) auto; }
.checker input { width: 100%; min-width: 0; min-height: 58px; padding: 0 16px; font: 600 1.375rem var(--font-body); font-variant-numeric: tabular-nums; color: var(--grafite); background: var(--creme); border: 2px solid var(--grafite); border-radius: 14px; }
.checker input::placeholder { color: var(--fg-2); font-weight: 400; }
.checker .btn { min-height: 58px; border-radius: 14px; padding: 0 28px; }
.result { border-radius: 14px; padding: 14px 16px; background: #EEF1F4; color: var(--fg-2); font-size: 1.0625rem; line-height: 1.45; display: grid; gap: 4px; }
.result b { font-family: var(--font-display); font-size: 1.1875rem; color: var(--grafite); }
.result[data-state="ok"] { background: #E3F1E6; color: var(--grafite); }
.result[data-state="ok"] b { color: #125A27; }
.result[data-state="no"] { background: #FBE9E7; color: var(--grafite); }
.result[data-state="no"] b { color: #8C1C13; }
.result[data-state="hint"] { background: var(--soft); color: var(--grafite); }

.numeros { font-size: 1.0625rem; line-height: 1.45; }
.numeros [data-numeros] { font-weight: 700; font-variant-numeric: tabular-nums; }

/* golpe do falso advogado */
.alerta { margin-block: .6em; padding: clamp(24px, 4vw, 36px); border-radius: 24px; background: #fff; border: 1px solid var(--hair); box-shadow: 0 18px 40px rgba(8, 75, 150, .12); display: grid; gap: 1em; }
.alerta h3 { font-size: 1.5rem; }
.alerta .passos { display: grid; gap: .9em; counter-reset: passo; }
.alerta .passos li { counter-increment: passo; display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 14px; align-items: start; }
.alerta .passos li::before { content: counter(passo); width: 40px; height: 40px; border-radius: 50%; background: var(--grafite); color: var(--creme); display: grid; place-items: center; font-family: var(--font-display); font-weight: 700; }
.alerta .regra { display: flex; gap: 14px; align-items: flex-start; padding: 20px 22px; border-radius: 18px; background: #FBE9E7; border: 2px solid #8C1C13; font-weight: 700; }
.alerta .regra .ico { width: 32px; height: 32px; fill: #8C1C13; }
.alerta a { font-weight: 700; }

/* documentos do Meu INSS */
.aviso { display: flex; gap: 14px; align-items: flex-start; padding: 20px 22px; border-radius: 18px; background: var(--grafite); color: var(--creme); }
.aviso .ico { width: 30px; height: 30px; fill: #8DB6EE; transform: translateY(3px); }
.letter ol.docs { display: grid; gap: .9em; counter-reset: passo; }
.letter ol.docs li { counter-increment: passo; display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 14px; align-items: start; }
.letter ol.docs li::before { content: counter(passo); width: 40px; height: 40px; border-radius: 50%; background: var(--cobalto); color: var(--creme); display: grid; place-items: center; font-family: var(--font-display); font-weight: 700; }
.letter > .fine { font-size: 1rem; color: var(--fg-2); }

/* perguntas */
.faq details { border-top: 1px solid var(--hair); }
.faq details:last-child { border-bottom: 1px solid var(--hair); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 20px; min-height: 68px; padding-block: 14px; font-family: var(--font-display); font-weight: 700; font-size: 1.25rem; line-height: 1.25; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--cobalto); }
.faq .pm { flex: none; width: 38px; height: 38px; border-radius: 50%; background: var(--cobalto); position: relative; }
.faq .pm::before, .faq .pm::after { content: ""; position: absolute; background: var(--creme); left: 50%; top: 50%; transition: transform .35s var(--ease); }
.faq .pm::before { width: 16px; height: 3px; transform: translate(-50%, -50%); }
.faq .pm::after { width: 3px; height: 16px; transform: translate(-50%, -50%); }
.faq details[open] .pm::after { transform: translate(-50%, -50%) scaleY(0); }
.faq .resp { padding: 0 0 24px; }

/* assinatura e P.S. */
.sign { margin-top: .6em; display: grid; gap: 4px; }
.sign .close { font-family: var(--font-display); font-size: 1.25rem; }
.sign .who { font-family: var(--font-display); font-weight: 700; font-size: 1.5rem; margin-top: 18px; }
.sign .role { color: var(--fg-2); font-size: 1.0625rem; }
.ps { display: grid; gap: .9em; padding-top: 28px; margin-top: .6em; border-top: 1px solid var(--hair); }
.ps p b:first-child { font-family: var(--font-display); color: var(--cobalto); margin-right: .3em; }

.todo { background: var(--soft); color: var(--grafite); padding: 1px 8px; border-radius: 6px; outline: 1px dashed var(--cobalto); outline-offset: 1px; font-variant-numeric: tabular-nums; }
.legal { margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--hair); font-size: 1rem; line-height: 1.6; color: var(--fg-2); display: grid; gap: 14px; }
.legal img { width: 170px; height: auto; }

.sticky-cta { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px)); background: rgba(248, 249, 250, .88); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); border-top: 1px solid var(--hair); transform: translateY(110%); transition: transform .35s var(--ease); display: none; }
.sticky-cta .btn { width: 100%; }
.sticky-cta.show { transform: translateY(0); }
@media (max-width: 760px) { .sticky-cta { display: block; } }

.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity .5s var(--ease), transform .5s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }

@media (max-width: 560px) {
  body { font-size: 1.125rem; }
  .letterhead { padding-top: 48px; }
  .letterhead .meta { text-align: left; }
  .cta-row .btn, .cta-card .btn { width: 100%; justify-self: stretch; }
  .checker .row { grid-template-columns: minmax(0, 1fr); }
  .checker .btn { width: 100%; }
  .faq summary { font-size: 1.1875rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}
