/* =========================================================
   REZGA · Diagnóstico REZ (página /diagnostico/)
   Usa os tokens e componentes de style.css e o cabeçalho de portfolio.css.
   ========================================================= */

.dg { background: var(--preto); }

/* Revelação ao rolar (só quando há motion) */
.reveal-on [data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease-out), transform 1.1s var(--ease-out); }
.reveal-on [data-reveal].is-in { opacity: 1; transform: none; }

/* Abertura */
.dg-hero { position: relative; overflow: hidden; min-height: 100vh; min-height: 100svh; display: flex; align-items: flex-end; padding: calc(var(--nav-h) + 10vh) 0 clamp(56px, 8vh, 96px); background: var(--roxo-profundo); }
.dg-hero__bg { position: absolute; inset: 0; }
.dg-hero__bg img { width: 100%; height: 100%; object-fit: cover; object-position: 70% 50%; opacity: .85; }
.dg-hero__bg::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, rgba(23, 0, 42, .92) 10%, rgba(23, 0, 42, .55) 55%, rgba(23, 0, 42, .2)); }
.dg-hero__grid { position: relative; z-index: 3; display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(260px, .7fr); gap: 40px clamp(40px, 6vw, 104px); align-items: end; }
.dg-hero .display { max-width: 15ch; }
.dg-hero .lead { margin-top: 26px; color: var(--fg-2); max-width: 46ch; }
.dg-hero__ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }
.dg-price { position: relative; overflow: hidden; padding: 28px; border-radius: var(--r); background: rgba(12, 12, 12, .62); border: 1px solid rgba(126, 92, 255, .35); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.dg-price .legend { color: var(--lilas); }
.dg-price__value { font-family: var(--ff-gs); font-weight: 300; font-size: clamp(48px, 4vw, 64px); line-height: 1; letter-spacing: -.03em; margin: 12px 0 14px; }
.dg-price__rule { font-size: 14px; line-height: 1.55; color: var(--fg-2); }
.dg-price__mark { position: absolute; right: -18px; top: -14px; width: 96px; fill: var(--lilas); opacity: .14; }

/* Por que começar */
.dg-why { background: var(--cinza); }
.dg-why__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px clamp(40px, 7vw, 120px); align-items: start; }
.dg-why__text { display: grid; gap: 20px; }
.dg-gains { margin-top: 12px; }
.dg-gains li { display: grid; grid-template-columns: 48px 1fr; gap: 12px; padding: 20px 0; border-top: 1px solid var(--line-2); font-family: var(--ff-gs); font-size: clamp(18px, .5vw + 14px, 22px); line-height: 1.35; letter-spacing: -.01em; text-wrap: balance; }
.dg-gains .legend { color: var(--accent); padding-top: 5px; }

/* O que analisamos */
.dg-system { background: var(--preto); }
.dg-areas { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.dg-areas li { display: grid; gap: 10px; align-content: start; padding: 28px; border-radius: var(--r); background: #141218; border: 1px solid var(--line); transition: border-color .4s, transform .6s var(--ease-out); }
.dg-areas li:hover { border-color: rgba(126, 92, 255, .55); transform: translateY(-4px); }
.dg-areas .ico { width: 40px; height: 40px; color: var(--lilas); margin-bottom: 8px; }
.dg-areas b { font-family: var(--ff-gs); font-weight: 500; font-size: 20px; letter-spacing: -.01em; }
.dg-areas p { color: var(--fg-2); font-size: 15px; text-wrap: pretty; }

/* Como funciona */
.dg-steps { background: var(--cinza); }
.dg-timeline { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; }
.dg-timeline::before { content: ""; position: absolute; left: 0; right: 0; top: 28px; height: 1px; background: var(--line-2); }
.dg-timeline li { position: relative; display: grid; gap: 10px; align-content: start; }
.dg-timeline__n { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: var(--cinza); border: 1.5px solid var(--accent); font-family: var(--ff-gs); font-weight: 500; font-size: 15px; color: var(--accent); margin-bottom: 12px; position: relative; }
.dg-timeline li:last-child .dg-timeline__n { background: var(--accent); color: var(--cinza); }
.dg-timeline h3 { font-family: var(--ff-gs); font-weight: 500; font-size: clamp(19px, .5vw + 15px, 23px); letter-spacing: -.01em; line-height: 1.2; text-wrap: balance; }
.dg-timeline p { color: var(--fg-2); font-size: 15px; text-wrap: pretty; }

/* O que você recebe */
.dg-result { background: var(--roxo-profundo); overflow: hidden; }
.dg-result::before { content: ""; position: absolute; right: -14%; top: -40%; width: 60%; aspect-ratio: 1; border-radius: 50%; background: linear-gradient(220deg, #6c52e6 0%, #2a1f72 30%, transparent 62%); opacity: .55; }
.dg-result__grid { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px clamp(40px, 7vw, 120px); align-items: start; }
.dg-result .body { margin-top: 22px; }
.dg-rez { display: flex; gap: 18px; align-items: flex-start; margin-top: 36px; padding-top: 24px; border-top: 1px solid var(--line); color: var(--fg-2); max-width: 46ch; }
.dg-rez__r { font-family: var(--ff-gs); font-weight: 300; font-size: 64px; line-height: .8; color: var(--lilas); }
.dg-rez b { color: var(--fg); font-weight: 600; }
.dg-rez .link { margin-top: 12px; }
.dg-deliver li { display: grid; gap: 6px; padding: 22px 0 22px 28px; border-top: 1px solid var(--line-2); position: relative; }
.dg-deliver li:last-child { border-bottom: 1px solid var(--line-2); }
.dg-deliver li::before { content: ""; position: absolute; left: 0; top: 31px; width: 10px; height: 10px; border-radius: 1px 5px 1px 5px; background: var(--lilas); }
.dg-deliver b { font-family: var(--ff-gs); font-weight: 500; font-size: clamp(19px, .5vw + 15px, 23px); letter-spacing: -.01em; }
.dg-deliver p { color: var(--fg-2); font-size: 15px; }

/* Investimento e depois */
.dg-invest { background: var(--cinza); }
.dg-invest__grid { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 40px clamp(40px, 7vw, 120px); align-items: start; }
.dg-card { position: sticky; top: calc(var(--nav-h) + 32px); padding: clamp(28px, 3.4vw, 48px); border-radius: var(--r); background: var(--preto); --fg: #F2F2F2; --fg-2: rgba(242, 242, 242, .72); --btn-bg: var(--lilas); --btn-fg: var(--roxo-profundo); color: var(--fg); overflow: hidden; }
.dg-card::before { content: ""; position: absolute; right: -30%; bottom: -50%; width: 90%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle at 40% 40%, rgba(105, 37, 233, .4), transparent 62%); }
.dg-card > * { position: relative; }
.dg-card .legend { color: var(--lilas); }
.dg-card__value { font-family: var(--ff-gs); font-weight: 300; font-size: clamp(56px, 5vw, 80px); line-height: 1; letter-spacing: -.03em; margin: 14px 0 16px; }
.dg-card__rule { color: var(--fg-2); margin-bottom: 28px; max-width: 36ch; }
.dg-after .h2 { margin-bottom: 20px; }
.dg-faq { margin-top: 36px; }
.dg-faq details { border-top: 1px solid var(--line-2); }
.dg-faq details:last-child { border-bottom: 1px solid var(--line-2); }
.dg-faq summary { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 22px 0; cursor: pointer; list-style: none; font-family: var(--ff-gs); font-weight: 500; font-size: clamp(17px, .4vw + 14px, 20px); letter-spacing: -.01em; }
.dg-faq summary::-webkit-details-marker { display: none; }
.dg-faq summary i { position: relative; flex: none; width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--line-2); }
.dg-faq summary i::before, .dg-faq summary i::after { content: ""; position: absolute; left: 10px; right: 10px; top: 15px; height: 1.5px; background: currentColor; transition: transform .4s var(--ease-out); }
.dg-faq summary i::after { transform: rotate(90deg); }
.dg-faq details[open] summary { color: var(--accent); }
.dg-faq details[open] summary i::after { transform: rotate(0); }
.dg-faq details p { padding: 0 48px 22px 0; color: var(--fg-2); text-wrap: pretty; }

/* Convite */
.dg-cta { position: relative; overflow: hidden; padding: var(--sec-y) 0; background: var(--roxo-profundo); }
.dg-cta__bg { position: absolute; inset: 0; }
.dg-cta__bg img { width: 100%; height: 100%; object-fit: cover; opacity: .7; }
.dg-cta__bg::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, var(--roxo-profundo), rgba(23, 0, 42, .55)); }
.dg-cta__inner { position: relative; z-index: 3; display: grid; justify-items: center; text-align: center; }
.dg-cta__mark { width: 64px; margin-bottom: 30px; }
.dg-cta__mark svg { width: 100%; height: auto; fill: var(--lilas); overflow: visible; }
.dg-cta .h2 { max-width: 18ch; }
.dg-cta .lead { margin-top: 20px; color: var(--fg-2); }
.dg-cta .btn { margin-top: 34px; }
.dg-cta__note { margin-top: 16px; font-size: 14px; color: var(--fg-3); }

@media (max-width: 1024px) {
  .dg-hero__grid, .dg-why__grid, .dg-result__grid, .dg-invest__grid { grid-template-columns: 1fr; }
  .dg-areas { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dg-timeline { grid-template-columns: 1fr 1fr; row-gap: 40px; }
  .dg-timeline::before { display: none; }
  .dg-card { position: relative; top: 0; }
}
@media (max-width: 640px) {
  .dg-areas, .dg-timeline { grid-template-columns: 1fr; }
  .dg-hero__ctas .btn, .dg-card .btn, .dg-cta .btn { width: 100%; }
  .dg-faq details p { padding-right: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .reveal-on [data-reveal] { opacity: 1; transform: none; }
}
