/* Layout novo no WordPress: o que o build estático não cobre.
   Formulários CF7, texto de posts e páginas, CTAs dos posts, busca e 404. Escopo: body.rd */

/* ---------- CF7 (popup e página de contato) ---------- */
.rd .rd-cf7 fieldset{display:none}
.rd .rd-cf7 p{margin:0;display:flex;flex-direction:column;gap:10px}
.rd .rd-cf7 br{display:none}
.rd .rd-cf7 .wpcf7-form-control-wrap{display:block}
.rd .rd-cf7 input:not([type=submit]):not([type=hidden]){width:100%;height:48px;padding:0 14px;border-radius:6px;border:1px solid transparent;background:var(--paper);color:var(--ink);font:inherit;font-size:16px}
.rd .rd-cf7 input::placeholder{color:var(--mut)}
.rd .rd-cf7 input:focus{outline:none;border-color:var(--accent)}
.rd .rd-cf7 .wpcf7-not-valid{border-color:#d4513f!important}
.rd .rd-cf7 .wpcf7-not-valid-tip{display:block;margin-top:6px;font-size:13px;line-height:18px;color:#c2412f}
.rd .rd-cf7 .wpcf7-submit{margin-top:8px;width:100%;height:48px;border:0;border-radius:6px;background:var(--ink);color:#fff;font:inherit;font-size:18px;cursor:pointer;transition:background-color .2s var(--ease-ui)}
.rd .rd-cf7 .wpcf7-submit:hover{background:#2f2c2b}
.rd .rd-cf7 .wpcf7-submit:disabled{opacity:.6;cursor:wait}
.rd .rd-cf7 .wpcf7-spinner{display:none;margin:10px auto 0;background:var(--accent)}
.rd .rd-cf7.submitting .wpcf7-spinner{display:block}
.rd .rd-cf7 .wpcf7-response-output{margin:14px 0 0;padding:12px 14px;border:0!important;border-radius:6px;background:var(--paper);font-size:14px;line-height:20px}
.rd .rd-cf7.sent .wpcf7-response-output{background:var(--mint);color:var(--accent)}
.rd .rd-cf7.invalid .wpcf7-response-output,.rd .rd-cf7.failed .wpcf7-response-output,.rd .rd-cf7.spam .wpcf7-response-output{background:#fdeeeb;color:#a5321f}
.rd .rd-cf7 .wpcf7-response-output:empty,.rd .rd-cf7.init .wpcf7-response-output{display:none}
body.lp-open{overflow:hidden}

/* página de contato: o cartão é a div, não o form */
.rd .pg-form .pg-f-cf7{display:flex;flex-direction:column;gap:20px;padding:40px;border-radius:4px;background:var(--paper)}
.rd .pg-form .pg-f-cf7 form{display:block;padding:0;background:none}
.rd .pg-form .pg-f-cf7 input:not([type=submit]):not([type=hidden]){height:52px;background:#fff;border-color:#dcd9d6}
.rd .bg-mint .pg-f-cf7,.rd .pg-form.bg-mint .pg-f-cf7{background:#fff}
.rd .pg-form.bg-mint .pg-f-cf7 input:not([type=submit]):not([type=hidden]){background:var(--paper);border-color:transparent}

/* ---------- topo de post, página e listagens ---------- */
.rd .pg-meta{font-size:12px;letter-spacing:1px;text-transform:uppercase;color:rgba(255,255,255,.75)}
.rd .pg-hero-wp .h1{overflow-wrap:break-word}
.rd .pg-date{font-size:11px;letter-spacing:1px;text-transform:uppercase;color:var(--mut);margin-top:-8px}
.rd .pg-search{display:flex;gap:10px;max-width:520px;margin-top:72px}
.rd .pg-search input{flex:1;min-width:0;height:44px;padding:0 14px;border-radius:6px;border:1px solid #dcd9d6;background:#fff;font:inherit;font-size:16px;color:var(--ink)}
.rd .pg-search .btn{height:44px;background:var(--ink);color:#fff}
.rd .pg-404-links{display:flex;flex-wrap:wrap;gap:12px 40px}
.rd .pg-404-links .ulink{border-bottom:1px solid currentColor}
.rd #postsNext.busy{opacity:.6;pointer-events:none}

/* ---------- texto de post e página (conteúdo do editor) ---------- */
.rd .wp-prose{display:block}
.rd .wp-prose > *{margin:0 0 20px}
.rd .wp-prose > *:last-child{margin-bottom:0}
.rd .wp-prose h2{margin:56px 0 16px;font-size:32px;line-height:40px;letter-spacing:-.25px;font-weight:500;color:var(--ink)}
.rd .wp-prose h3{margin:40px 0 12px;font-size:24px;line-height:32px;font-weight:500;color:var(--ink)}
.rd .wp-prose h4{margin:32px 0 10px;font-size:20px;line-height:28px;font-weight:600;color:var(--ink)}
.rd .wp-prose h2:first-child,.rd .wp-prose h3:first-child{margin-top:0}
.rd .wp-prose p,.rd .wp-prose li{font-size:18px;line-height:30px;color:#3d3b3a}
.rd .wp-prose strong,.rd .wp-prose b{color:var(--ink);font-weight:600}
.rd .wp-prose ul,.rd .wp-prose ol{padding-left:24px}
.rd .wp-prose li{margin-bottom:8px}
.rd .wp-prose li::marker{color:var(--accent)}
.rd .wp-prose a{color:var(--accent);text-decoration:underline;text-underline-offset:3px}
.rd .wp-prose img,.rd .wp-prose video,.rd .wp-prose iframe{max-width:100%;height:auto;border-radius:4px}
.rd .wp-prose figure{margin:32px 0}
.rd .wp-prose figcaption{margin-top:8px;font-size:14px;color:var(--mut)}
.rd .wp-prose blockquote{margin:32px 0;padding:8px 0 8px 24px;border-left:3px solid var(--green);font-size:22px;line-height:32px;color:var(--ink)}
.rd .wp-prose blockquote p{font-size:inherit;line-height:inherit;color:inherit}
.rd .wp-prose hr{border:0;border-top:1px solid #e4e1de;margin:48px 0}
.rd .wp-prose table{width:100%;border-collapse:collapse;font-size:16px;line-height:24px;display:block;overflow-x:auto}
.rd .wp-prose th,.rd .wp-prose td{padding:12px 14px;border-bottom:1px solid #e4e1de;text-align:left;vertical-align:top}
.rd .wp-prose th{background:var(--paper);color:var(--ink);font-weight:600}
.rd .wp-prose details{margin:0 0 10px;padding:18px 20px;border-radius:4px;background:var(--paper)}
.rd .wp-prose summary{cursor:pointer;font-weight:600;color:var(--ink)}
.rd .wp-prose pre,.rd .wp-prose code{font-family:var(--mono);font-size:14px}
.rd .wp-prose pre{padding:16px;border-radius:4px;background:var(--paper);overflow-x:auto}
.rd .pg-article{padding-top:96px}

/* ---------- CTAs dentro dos posts (functions.php: vibe_post_cta_mid/end) ---------- */
.rd .wp-prose .pill{display:inline-flex;align-items:center;justify-content:center;gap:10px;min-height:44px;padding:10px 18px;border-radius:6px;background:var(--green);color:var(--ink)!important;text-decoration:none!important;font-size:16px;line-height:22px;transition:background-color .2s var(--ease-ui)}
.rd .wp-prose .pill:hover{background:var(--green-h)}
.rd .wp-prose .post-cta-mid{display:flex;align-items:center;justify-content:space-between;gap:24px;margin:40px 0;padding:24px 28px;border-radius:4px;background:var(--mint)}
.rd .wp-prose .post-cta-mid p{margin:0;display:flex;flex-direction:column;gap:2px;font-size:16px;line-height:24px}
.rd .wp-prose .post-cta-mid p span{color:var(--mut)}
.rd .wp-prose .post-cta{margin:56px 0 0;padding:40px;border-radius:4px;background:var(--deep);color:#fff}
.rd .wp-prose .post-cta .eb{display:block;font-family:var(--mono);font-size:12px;letter-spacing:1px;text-transform:uppercase;color:var(--green)}
.rd .wp-prose .post-cta .eb i{font-style:normal}
.rd .wp-prose .post-cta-h{margin:16px 0 12px;font-size:28px;line-height:34px;color:#fff}
.rd .wp-prose .post-cta p{margin:0 0 24px;color:rgba(255,255,255,.8)}

/* título de post costuma ser longo */
.rd.single-post .pg-hero .h1{font-size:52px;line-height:58px;max-width:980px}

@media (max-width:1199px){
  .rd.single-post .pg-hero .h1{font-size:30px;line-height:36px}
  .rd .wp-prose blockquote{font-size:19px;line-height:28px;padding-left:18px}
  .rd .pg-form .pg-f-cf7{padding:24px 20px}
  .rd .wp-prose h2{font-size:26px;line-height:34px}
  .rd .wp-prose h3{font-size:21px;line-height:29px}
  .rd .wp-prose p,.rd .wp-prose li{font-size:17px;line-height:28px}
  .rd .wp-prose .post-cta-mid{flex-direction:column;align-items:flex-start;padding:20px}
  .rd .wp-prose .post-cta{padding:28px 20px}
  .rd .pg-article{padding-top:56px}
  .rd .pg-search{margin-top:48px}
}
@media (max-width:380px){.rd.single-post .pg-hero .h1{font-size:26px;line-height:31px}}
/* forms das LPs no popup: selects de qualificação (onde vende, faturamento, segmento...) */
.rd .rd-cf7 select{width:100%;height:48px;padding:0 40px 0 14px;border-radius:6px;border:1px solid transparent;background:var(--paper) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12'%3E%3Cpath d='M2 4l4 4 4-4' fill='none' stroke='%23686664' stroke-width='1.5'/%3E%3C/svg%3E") no-repeat right 14px center;color:var(--ink);font:inherit;font-size:16px;-webkit-appearance:none;appearance:none}
.rd .rd-cf7 select:focus{outline:none;border-color:var(--accent)}
.rd .rd-cf7 select:invalid,.rd .rd-cf7 select option[value=""]{color:var(--mut)}
.lpx-page .lp-card{max-height:calc(100dvh - 32px);overflow-y:auto}
/* LP com o form CF7 na primeira dobra */
.rd .lp-hf .rd-cf7 form{display:flex;flex-direction:column;gap:10px}
.rd .lp-hf .rd-cf7 .wpcf7-submit{background:var(--green);color:var(--ink)}
.rd .lp-hf .rd-cf7 .wpcf7-submit:hover{background:var(--green-h)}
