:root {
  --diag-yellow: #ffd600;
  --diag-yellow-soft: #ffe86b;
  --diag-black: #050505;
  --diag-ink: #111111;
  --diag-paper: #f4f1e8;
  --diag-white: #f8f8f4;
  --diag-muted: #6b6b66;
  --diag-line: rgba(17, 17, 17, 0.18);
  --diag-sans: "Manrope", Arial, sans-serif;
  --diag-serif: "Playfair Display", Georgia, serif;
  --diag-max: 1120px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--diag-black); color: var(--diag-white); font-family: var(--diag-sans); line-height: 1.6; -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; }
button, input, textarea { border-radius: 0; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible { outline: 3px solid var(--diag-yellow); outline-offset: 3px; }

.diag-container { width: min(100% - 32px, var(--diag-max)); margin-inline: auto; }
.diag-header { position: sticky; top: 0; z-index: 20; background: rgba(5, 5, 5, 0.96); border-bottom: 1px solid rgba(255, 214, 0, 0.28); backdrop-filter: blur(14px); }
.diag-nav { min-height: 78px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.diag-logo { width: 210px; }
.diag-logo img { width: 100%; height: auto; }
.diag-nav-label { color: var(--diag-yellow); font-size: .76rem; font-weight: 800; letter-spacing: .11em; text-transform: uppercase; }

.diag-hero { padding: 82px 0 94px; background: var(--diag-paper); color: var(--diag-ink); overflow: hidden; }
.diag-hero-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(360px, .75fr); align-items: center; gap: clamp(52px, 8vw, 110px); }
.diag-kicker, .diag-section-index { font-size: .75rem; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
.diag-kicker { display: flex; align-items: center; gap: 9px; margin: 0 0 22px; }
.diag-kicker span { width: 9px; height: 9px; background: var(--diag-yellow); border: 1px solid var(--diag-ink); border-radius: 50%; }
.diag-hero h1 { max-width: 760px; margin: 0; font-size: clamp(2.75rem, 5.2vw, 5rem); line-height: 1.01; letter-spacing: -.055em; }
.diag-hero h1 em { position: relative; z-index: 1; font-style: normal; }
.diag-hero h1 em::after { content: ""; position: absolute; z-index: -1; left: -.02em; right: -.04em; bottom: .08em; height: .33em; background: var(--diag-yellow); transform: rotate(-.6deg); }
.diag-lead { max-width: 700px; margin: 28px 0 0; color: #3d3d3a; font-size: clamp(1.02rem, 1.5vw, 1.18rem); }
.diag-benefits { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 24px; margin: 30px 0 0; padding: 0; list-style: none; }
.diag-benefits li { position: relative; padding-left: 22px; font-size: .92rem; font-weight: 700; }
.diag-benefits li::before { content: "✓"; position: absolute; left: 0; color: #766300; }
.diag-disclaimer { margin: 24px 0 0; color: #74746e; font-size: .78rem; }

.diag-preview { position: relative; padding: 28px; background: var(--diag-ink); color: var(--diag-white); border: 2px solid var(--diag-ink); box-shadow: 12px 14px 0 var(--diag-yellow), 14px 16px 0 var(--diag-ink); transform: rotate(1deg); }
.diag-preview-top { display: flex; align-items: center; justify-content: space-between; padding-bottom: 20px; border-bottom: 1px solid rgba(255,255,255,.18); font-size: .78rem; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; }
.diag-preview-top strong { color: var(--diag-yellow); }
.diag-score { display: flex; align-items: baseline; gap: 7px; padding: 26px 0 22px; }
.diag-score span { margin-right: auto; color: #c7c7c1; font-size: .82rem; }
.diag-score strong { color: var(--diag-yellow); font-size: 3.6rem; line-height: 1; }
.diag-score small { color: #aaa; }
.diag-preview-lines { display: grid; gap: 17px; }
.diag-preview-lines div { display: grid; grid-template-columns: 1fr 1.1fr; gap: 12px; align-items: center; font-size: .76rem; }
.diag-preview-lines i { position: relative; display: block; height: 7px; background: #383835; overflow: hidden; }
.diag-preview-lines i::after { content: ""; position: absolute; inset: 0 auto 0 0; width: var(--progress); background: var(--diag-yellow); }
.diag-preview > p { margin: 24px 0 0; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.18); color: #bdbdb7; font-size: .76rem; }

.diag-form-section { padding: 92px 0 110px; background: var(--diag-black); }
.diag-form-grid { display: grid; grid-template-columns: minmax(260px, .72fr) minmax(0, 1.28fr); gap: clamp(42px, 7vw, 92px); align-items: start; }
.diag-form-copy { position: sticky; top: 118px; }
.diag-section-index { margin: 0 0 18px; color: var(--diag-yellow); }
.diag-form-copy h2, .diag-status h2 { margin: 0; font-family: var(--diag-serif); font-size: clamp(2rem, 3.4vw, 3.3rem); line-height: 1.08; }
.diag-form-copy > p:not(.diag-section-index) { color: #c4c4be; }
.diag-security-note { margin-top: 32px; padding: 20px; border: 1px solid rgba(255,214,0,.32); background: rgba(255,214,0,.06); }
.diag-security-note strong { color: var(--diag-yellow); }
.diag-security-note p { margin: 7px 0 0; color: #c7c7c1; font-size: .84rem; }

.diag-form { display: grid; gap: 22px; padding: clamp(24px, 4vw, 42px); background: var(--diag-paper); color: var(--diag-ink); border: 1px solid #d6d1c5; box-shadow: 9px 9px 0 var(--diag-yellow); }
.diag-field-grid, .diag-channel-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 19px; }
.diag-field { display: grid; gap: 8px; }
.diag-field label { font-size: .76rem; font-weight: 800; letter-spacing: .035em; text-transform: uppercase; }
.diag-field label span { color: #777; font-weight: 600; text-transform: none; }
.diag-field input, .diag-field textarea { width: 100%; border: 1px solid #aaa69b; background: #fffefa; color: var(--diag-ink); padding: 13px 14px; transition: border-color .16s ease, box-shadow .16s ease; }
.diag-field textarea { resize: vertical; min-height: 90px; }
.diag-field input:focus, .diag-field textarea:focus { border-color: var(--diag-ink); box-shadow: 4px 4px 0 var(--diag-yellow); outline: none; }
.diag-field-help { margin: -14px 0 0; color: #6c6b64; font-size: .76rem; }
.diag-check { display: grid; grid-template-columns: 20px 1fr; gap: 11px; align-items: start; font-size: .8rem; }
.diag-check input { width: 17px; height: 17px; margin-top: 3px; accent-color: var(--diag-ink); }
.diag-check-optional { color: #5f5e57; }
.diag-button { min-height: 54px; display: inline-flex; align-items: center; justify-content: center; gap: 14px; border: 2px solid var(--diag-ink); background: var(--diag-yellow); color: var(--diag-ink); padding: 13px 22px; font-weight: 800; cursor: pointer; box-shadow: 5px 5px 0 var(--diag-ink); transition: transform .16s ease, box-shadow .16s ease, background .16s ease; }
.diag-button:hover { background: var(--diag-yellow-soft); transform: translate(2px, 2px); box-shadow: 3px 3px 0 var(--diag-ink); }
.diag-button:disabled { opacity: .62; cursor: wait; }
.diag-feedback { min-height: 24px; margin: 0; font-size: .84rem; font-weight: 700; }
.diag-feedback.is-error { color: #9d1f1f; }
.diag-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }

.diag-status { grid-column: 2; padding: clamp(28px, 5vw, 52px); background: var(--diag-paper); color: var(--diag-ink); box-shadow: 10px 10px 0 var(--diag-yellow); }
.diag-status > p:not(.diag-section-index) { color: #55534d; }
.diag-steps { display: grid; gap: 12px; margin: 30px 0; padding: 0; list-style: none; }
.diag-steps li { display: flex; align-items: center; gap: 12px; padding: 13px 0; border-bottom: 1px solid var(--diag-line); font-weight: 700; }
.diag-steps li span { width: 12px; height: 12px; border: 2px solid #777; border-radius: 50%; }
.diag-steps li[data-state="concluido"] span { border-color: #1b7c48; background: #1b7c48; }
.diag-steps li[data-state="processando"] span { border-color: #9b7d00; background: var(--diag-yellow); box-shadow: 0 0 0 4px rgba(255,214,0,.22); }
.diag-steps li[data-state="falhou"] span { border-color: #9d1f1f; background: #9d1f1f; }
.diag-button-secondary { width: fit-content; background: var(--diag-ink); color: var(--diag-white); box-shadow: 5px 5px 0 var(--diag-yellow); }

.diag-footer { padding: 46px 0; border-top: 1px solid rgba(255,214,0,.22); }
.diag-footer .diag-container { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.diag-footer img { width: 180px; height: auto; }
.diag-footer p { margin: 0; color: #a9a9a3; font-size: .82rem; }

@media (max-width: 860px) {
  .diag-hero-grid, .diag-form-grid { grid-template-columns: 1fr; }
  .diag-preview { width: min(100%, 540px); }
  .diag-form-copy { position: static; }
  .diag-status { grid-column: 1; }
}

@media (max-width: 620px) {
  .diag-nav { min-height: 68px; }
  .diag-logo { width: 170px; }
  .diag-nav-label { display: none; }
  .diag-hero { padding: 60px 0 72px; }
  .diag-hero h1 { font-size: clamp(2.5rem, 12vw, 3.35rem); }
  .diag-benefits, .diag-field-grid, .diag-channel-grid { grid-template-columns: 1fr; }
  .diag-preview { padding: 22px; box-shadow: 8px 9px 0 var(--diag-yellow), 10px 11px 0 var(--diag-ink); }
  .diag-form-section { padding: 70px 0 86px; }
  .diag-form { padding: 22px; box-shadow: 6px 6px 0 var(--diag-yellow); }
  .diag-footer .diag-container { align-items: flex-start; flex-direction: column; }
}

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