/* Páginas de portfólio de serviços (Google Ads, Meta Ads, atendimento automatizado).
   Complementa css/style.css; usa os mesmos tokens do tema. */

.sc-note {
  display: flex; gap: .7rem; align-items: flex-start;
  margin-top: 1.4rem; padding: .9rem 1.1rem; max-width: 62ch;
  border: 1px solid var(--border-lit); border-radius: var(--radius-sm);
  background: rgba(59,141,255,.06); color: var(--text-dim); font-size: .92rem;
}
.sc-note strong { color: var(--cyan); }

.sc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; align-items: start; margin-top: 2.2rem; }
.sc-grid > * { min-width: 0; }
.sc-panel { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.5rem 1.4rem; }
.sc-panel h3 { font-family: var(--font-head); font-size: 1.15rem; margin-bottom: .9rem; }
.sc-panel p { color: var(--text-dim); font-size: .95rem; }
.sc-panel p + p { margin-top: .6rem; }

.sc-facts { display: grid; gap: .55rem; }
.sc-facts li { display: grid; grid-template-columns: 9.5rem 1fr; gap: .8rem; padding-bottom: .55rem; border-bottom: 1px dashed var(--border); font-size: .93rem; }
.sc-facts li:last-child { border-bottom: 0; padding-bottom: 0; }
.sc-facts b { color: var(--chrome); font-weight: 600; }
.sc-facts span { color: var(--text-dim); }

.sc-table-wrap { overflow-x: auto; margin-top: .4rem; }
.sc-table { width: 100%; border-collapse: collapse; font-size: .9rem; min-width: 520px; }
.sc-table th, .sc-table td { text-align: left; padding: .65rem .7rem; border-bottom: 1px solid var(--border); vertical-align: top; }
.sc-table th { font-family: var(--font-head); font-weight: 600; color: var(--chrome); font-size: .82rem; letter-spacing: .04em; text-transform: uppercase; }
.sc-table td { color: var(--text-dim); }
.sc-table td:first-child { color: var(--text); font-weight: 600; }
.sc-kw { display: inline-block; margin: 0 .3rem .35rem 0; padding: .2rem .55rem; border-radius: 6px; background: var(--surface-2); border: 1px solid var(--border); font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; font-size: .8rem; color: var(--text); white-space: nowrap; }
.sc-kw.neg { color: #FF9C8F; border-color: rgba(255,120,100,.3); text-decoration: line-through; text-decoration-color: rgba(255,120,100,.6); }

.sc-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin-top: 2rem; counter-reset: sc; }
.sc-steps li { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 1.1rem 1rem; font-size: .92rem; color: var(--text-dim); }
.sc-steps li::before { counter-increment: sc; content: counter(sc); display: grid; place-items: center; width: 30px; height: 30px; margin-bottom: .7rem; border-radius: 50%; border: 1px solid var(--border-lit); color: var(--cyan); font-family: var(--font-head); font-weight: 700; }
.sc-steps b { display: block; color: var(--text); margin-bottom: .25rem; font-family: var(--font-head); font-size: 1rem; }

.sc-label { display: block; margin-bottom: .7rem; font-family: var(--font-head); font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--text-dim); }

/* ---------- Mockup: resultado de pesquisa do Google ---------- */
.g-serp { background: #FFFFFF; color: #202124; border-radius: 14px; padding: 1.2rem 1.2rem 1.3rem; font-family: Arial, "Helvetica Neue", sans-serif; box-shadow: 0 20px 50px rgba(0,0,0,.45); }
.g-search { display: flex; align-items: center; gap: .6rem; padding: .6rem 1rem; border: 1px solid #DFE1E5; border-radius: 999px; font-size: .95rem; color: #202124; margin-bottom: 1.1rem; }
.g-search svg { flex: none; }
.g-ad + .g-ad { margin-top: 1.3rem; padding-top: 1.1rem; border-top: 1px solid #ECEDEF; }
.g-sponsor { font-size: .78rem; font-weight: 700; color: #202124; margin-bottom: .25rem; }
.g-site { display: flex; align-items: center; gap: .55rem; font-size: .82rem; color: #202124; margin-bottom: .2rem; }
.g-fav { width: 26px; height: 26px; border-radius: 50%; background: #F1F3F4; display: grid; place-items: center; font-size: .7rem; font-weight: 700; color: #5F6368; flex: none; }
.g-site small { display: block; color: #4D5156; font-size: .75rem; }
.g-title { display: block; color: #1A0DAB; font-size: 1.15rem; line-height: 1.3; margin: .2rem 0 .25rem; }
.g-desc { font-size: .86rem; line-height: 1.5; color: #4D5156; }
.g-links { display: flex; flex-wrap: wrap; gap: .3rem 1rem; margin-top: .55rem; font-size: .86rem; }
.g-links span { color: #1A0DAB; }
.g-ext { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .7rem; }
.g-ext span { display: inline-flex; align-items: center; gap: .35rem; padding: .35rem .75rem; border: 1px solid #DADCE0; border-radius: 999px; font-size: .8rem; color: #1A73E8; font-weight: 600; }

/* ---------- Mockup: anúncios Instagram ---------- */
.ig-row { display: flex; gap: 1.4rem; flex-wrap: wrap; justify-content: center; align-items: flex-start; margin-top: 2rem; }
.ig-post { width: 300px; max-width: 100%; background: #FFFFFF; color: #262626; border-radius: 14px; overflow: hidden; font-family: -apple-system, "Segoe UI", Roboto, sans-serif; box-shadow: 0 20px 50px rgba(0,0,0,.45); }
.ig-head { display: flex; align-items: center; gap: .55rem; padding: .65rem .8rem; font-size: .82rem; }
.ig-avatar { width: 30px; height: 30px; border-radius: 50%; background: #0B7C7E; display: grid; place-items: center; color: #FFC93C; font-size: .9rem; flex: none; }
.ig-head b { display: block; font-size: .82rem; }
.ig-head small { color: #737373; font-size: .72rem; }
.ig-media { aspect-ratio: 1 / 1; position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; padding: 1.2rem; }
.ig-media h4 { font-family: "Trebuchet MS", sans-serif; font-size: 1.55rem; line-height: 1.1; margin: 0 0 .4rem; }
.ig-media p { font-size: .85rem; font-weight: 600; margin: 0; }
.ig-media .ig-badge { position: absolute; top: 1rem; left: 1rem; padding: .35rem .7rem; border-radius: 999px; font-size: .72rem; font-weight: 800; letter-spacing: .04em; }
.ig-media .ig-art { position: absolute; right: -18px; top: 22px; width: 62%; }
.ig-cta { display: flex; justify-content: space-between; align-items: center; padding: .65rem .8rem; background: #EFF6FF; color: #0064E0; font-size: .82rem; font-weight: 700; }
.ig-cta svg { flex: none; }
.ig-copy { padding: .7rem .8rem .9rem; font-size: .8rem; line-height: 1.45; }
.ig-copy b { margin-right: .3rem; }

.ig-story { width: 220px; max-width: 100%; aspect-ratio: 9 / 16; border-radius: 18px; overflow: hidden; position: relative; display: flex; flex-direction: column; justify-content: space-between; padding: .9rem .9rem 1rem; font-family: -apple-system, "Segoe UI", Roboto, sans-serif; box-shadow: 0 20px 50px rgba(0,0,0,.45); }
.ig-story-bar { height: 3px; border-radius: 3px; background: rgba(255,255,255,.45); position: relative; }
.ig-story-bar::after { content: ""; position: absolute; inset: 0 55% 0 0; border-radius: 3px; background: #fff; }
.ig-story-top { display: flex; align-items: center; gap: .45rem; margin-top: .6rem; font-size: .74rem; font-weight: 700; }
.ig-story h4 { font-family: "Trebuchet MS", sans-serif; font-size: 1.6rem; line-height: 1.08; margin: 0 0 .5rem; }
.ig-story p { font-size: .8rem; font-weight: 600; margin: 0 0 .9rem; }
.ig-story-cta { display: block; text-align: center; padding: .6rem; border-radius: 10px; background: #fff; color: #0B7C7E; font-weight: 800; font-size: .82rem; }

/* ---------- Mockup: conversa de WhatsApp ---------- */
.wa-phone { width: 100%; max-width: 380px; margin: 0 auto; border-radius: 30px; padding: 10px; background: #0B0F19; border: 1px solid var(--border-lit); box-shadow: 0 30px 70px rgba(0,0,0,.55), 0 0 60px rgba(59,141,255,.18); }
.wa-screen { border-radius: 22px; overflow: hidden; background: #0B141A; display: flex; flex-direction: column; height: 600px; }
.wa-top { display: flex; align-items: center; gap: .6rem; padding: .7rem .9rem; background: #1F2C34; color: #E9EDEF; font-family: -apple-system, "Segoe UI", Roboto, sans-serif; }
.wa-top .wa-av { width: 36px; height: 36px; border-radius: 50%; background: linear-gradient(160deg, #EBCFC5, #A9655A); display: grid; place-items: center; font-family: Georgia, serif; font-weight: 700; color: #fff; flex: none; }
.wa-top b { display: block; font-size: .92rem; }
.wa-top small { color: #8696A0; font-size: .72rem; }
.wa-body { flex: 1; overflow-y: auto; padding: 1rem .8rem; display: flex; flex-direction: column; gap: .45rem; font-family: -apple-system, "Segoe UI", Roboto, sans-serif; font-size: .87rem; line-height: 1.45; background: #0B141A radial-gradient(rgba(255,255,255,.025) 1px, transparent 1px) 0 0 / 18px 18px; }
.wa-msg { max-width: 84%; padding: .45rem .65rem .35rem; border-radius: 10px; color: #E9EDEF; white-space: pre-line; animation: wa-in .25s var(--ease); }
.wa-msg.in { align-self: flex-start; background: #202C33; border-top-left-radius: 2px; }
.wa-msg.out { align-self: flex-end; background: #005C4B; border-top-right-radius: 2px; }
.wa-msg time { display: block; text-align: right; font-size: .66rem; color: #8696A0; margin-top: .15rem; }
.wa-sys { align-self: center; max-width: 92%; padding: .4rem .7rem; border-radius: 8px; background: #182229; color: #8696A0; font-size: .74rem; text-align: center; }
.wa-typing { align-self: flex-start; padding: .55rem .75rem; border-radius: 10px; background: #202C33; display: inline-flex; gap: 4px; }
.wa-typing i { width: 6px; height: 6px; border-radius: 50%; background: #8696A0; animation: wa-dot 1s infinite; }
.wa-typing i:nth-child(2) { animation-delay: .15s; } .wa-typing i:nth-child(3) { animation-delay: .3s; }
.wa-opts { display: flex; flex-wrap: wrap; gap: .4rem; padding: .6rem .7rem .8rem; background: #111B21; border-top: 1px solid #1F2C34; min-height: 56px; }
.wa-opts button { padding: .5rem .8rem; border-radius: 999px; border: 1px solid #2A3942; background: #1F2C34; color: #53BDEB; font-size: .8rem; font-weight: 600; }
.wa-opts button:hover { background: #2A3942; }
.wa-opts button:focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; }
@keyframes wa-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@keyframes wa-dot { 0%, 60%, 100% { opacity: .3; } 30% { opacity: 1; } }

.sc-summary { margin-top: 1rem; padding: 1rem 1.1rem; border-radius: var(--radius-sm); background: var(--surface-2); border: 1px solid var(--border-lit); font-size: .9rem; }
.sc-summary[hidden] { display: none; }
.sc-summary h4 { font-family: var(--font-head); font-size: .95rem; color: var(--cyan); margin-bottom: .6rem; }
.sc-summary dl { display: grid; grid-template-columns: 7.5rem 1fr; gap: .35rem .8rem; }
.sc-summary dt { color: var(--text-dim); }
.sc-summary dd { margin: 0; color: var(--text); }

@media (max-width: 900px) {
  .sc-grid { grid-template-columns: 1fr; }
  .sc-steps { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .sc-steps { grid-template-columns: 1fr; }
  .sc-facts li { grid-template-columns: 1fr; gap: .15rem; }
  .wa-screen { height: 540px; }
}
