/* ==========================================================
   Microsoft 365 — Guia de Aprendizagem · Folha de estilos
   ========================================================== */
:root {
  --red: #D90429;
  --red-dark: #9B0016;
  --red-vivid: #FF1B3D;
  --red-soft: #FDE8EC;
  --white: #FFFFFF;
  --grey-50: #F7F7F9;
  --grey-100: #F0F0F3;
  --grey-200: #E3E3E8;
  --grey-400: #9A9AA3;
  --grey-600: #5F5F68;
  --black: #17171C;
  --shadow-sm: 0 1px 2px rgba(23, 23, 28, .06), 0 1px 6px rgba(23, 23, 28, .05);
  --shadow-md: 0 6px 20px rgba(23, 23, 28, .08), 0 2px 6px rgba(23, 23, 28, .05);
  --shadow-lg: 0 20px 50px rgba(217, 4, 41, .12), 0 6px 18px rgba(23, 23, 28, .08);
  --radius: 18px;
  --radius-sm: 12px;
  --header-h: 68px;
  --font: "Segoe UI", -apple-system, BlinkMacSystemFont, Inter, Roboto, "Helvetica Neue", Arial, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body { margin: 0; font-family: var(--font); color: var(--black); background: var(--white); line-height: 1.6; font-size: 17px; -webkit-font-smoothing: antialiased; }
img, svg { max-width: 100%; }
a { color: var(--red); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 5vw, 3.4rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.3rem); font-weight: 800; }
h3 { font-size: 1.25rem; font-weight: 700; }
p { margin: 0 0 1em; }
.container { width: min(1200px, 100% - 40px); margin-inline: auto; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
button { font-family: inherit; }

/* ---------- Botões ---------- */
.btn { display: inline-flex; align-items: center; gap: 10px; padding: 14px 26px; border-radius: 999px; font-weight: 700; font-size: .98rem; border: 2px solid transparent; cursor: pointer; transition: transform .18s ease, box-shadow .18s ease, background .18s ease, color .18s ease; text-decoration: none !important; line-height: 1.2; }
.btn-primary { background: linear-gradient(135deg, var(--red-vivid), var(--red) 55%, var(--red-dark)); color: #fff; box-shadow: 0 8px 22px rgba(217, 4, 41, .28); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(217, 4, 41, .34); }
.btn-outline { background: #fff; color: var(--red); border-color: var(--red); }
.btn-outline:hover { background: var(--red-soft); transform: translateY(-2px); }
.btn-ghost { background: var(--grey-100); color: var(--black); }
.btn-ghost:hover { background: var(--grey-200); }
.btn-light { background: #fff; color: var(--red-dark); }
.btn-light:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-sm { padding: 9px 16px; font-size: .88rem; }
.btn:focus-visible, a:focus-visible, button:focus-visible, input:focus-visible { outline: 3px solid #FFB3C0; outline-offset: 2px; }

/* ---------- Cabeçalho ---------- */
.site-header { position: sticky; top: 0; z-index: 100; background: rgba(255, 255, 255, .92); backdrop-filter: saturate(160%) blur(12px); border-bottom: 1px solid var(--grey-200); }
.header-inner { height: var(--header-h); display: flex; align-items: center; gap: 18px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.12rem; color: var(--black); text-decoration: none !important; white-space: nowrap; }
.brand img { width: 34px; height: 34px; }
.brand small { display: block; font-size: .68rem; font-weight: 600; color: var(--grey-600); letter-spacing: .04em; text-transform: uppercase; line-height: 1; }
.main-nav { display: flex; align-items: center; gap: 2px; margin-left: 6px; flex: 1; min-width: 0; overflow: hidden; }
.main-nav a { display: inline-flex; align-items: center; gap: 6px; padding: 8px 10px; border-radius: 10px; color: var(--grey-600); font-weight: 600; font-size: .86rem; white-space: nowrap; text-decoration: none !important; transition: background .15s, color .15s; }
.main-nav a img { width: 16px; height: 16px; }
.main-nav a:hover { background: var(--grey-100); color: var(--black); }
.main-nav a.active { background: var(--red-soft); color: var(--red-dark); }
.header-actions { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.search-btn { display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 999px; border: 1.5px solid var(--grey-200); background: var(--grey-50); color: var(--grey-600); font-weight: 600; font-size: .86rem; cursor: pointer; transition: .15s; white-space: nowrap; }
.search-btn:hover { border-color: var(--red); color: var(--red); background: #fff; }
.search-btn kbd { font-family: inherit; font-size: .7rem; background: #fff; border: 1px solid var(--grey-200); border-radius: 6px; padding: 1px 6px; color: var(--grey-400); }
.progress-pill { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px 6px 8px; border-radius: 999px; background: var(--grey-50); border: 1.5px solid var(--grey-200); font-size: .8rem; font-weight: 700; color: var(--grey-600); white-space: nowrap; }
.progress-pill .ring { width: 26px; height: 26px; border-radius: 50%; background: conic-gradient(var(--red) calc(var(--p, 0) * 1%), var(--grey-200) 0); display: grid; place-items: center; }
.progress-pill .ring::after { content: ""; width: 16px; height: 16px; border-radius: 50%; background: #fff; }
.menu-toggle { display: none; width: 44px; height: 44px; border-radius: 12px; border: 1.5px solid var(--grey-200); background: #fff; cursor: pointer; place-items: center; }
.menu-toggle span { display: block; width: 20px; height: 2px; background: var(--black); border-radius: 2px; position: relative; }
.menu-toggle span::before, .menu-toggle span::after { content: ""; position: absolute; left: 0; width: 20px; height: 2px; background: var(--black); border-radius: 2px; transition: .2s; }
.menu-toggle span::before { top: -6px; } .menu-toggle span::after { top: 6px; }

/* ---------- Menu lateral (mobile) ---------- */
.drawer { position: fixed; inset: 0; z-index: 200; pointer-events: none; }
.drawer .backdrop { position: absolute; inset: 0; background: rgba(23, 23, 28, .45); opacity: 0; transition: .25s; }
.drawer .panel { position: absolute; top: 0; bottom: 0; left: 0; width: min(320px, 86vw); background: #fff; box-shadow: var(--shadow-lg); transform: translateX(-100%); transition: transform .28s cubic-bezier(.2, .8, .2, 1); display: flex; flex-direction: column; overflow-y: auto; }
.drawer.open { pointer-events: auto; }
.drawer.open .backdrop { opacity: 1; }
.drawer.open .panel { transform: none; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 18px; border-bottom: 1px solid var(--grey-200); }
.drawer-close { width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--grey-200); background: #fff; font-size: 1.2rem; cursor: pointer; }
.drawer nav { padding: 10px; display: flex; flex-direction: column; }
.drawer nav a { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 12px; color: var(--black); font-weight: 600; text-decoration: none !important; }
.drawer nav a img { width: 22px; height: 22px; }
.drawer nav a.active { background: var(--red-soft); color: var(--red-dark); }
.drawer nav a:hover { background: var(--grey-100); }
.drawer nav .sep { height: 1px; background: var(--grey-200); margin: 8px 6px; }

/* ---------- Pesquisa global ---------- */
.search-modal { position: fixed; inset: 0; z-index: 300; display: none; align-items: flex-start; justify-content: center; padding: 8vh 16px; background: rgba(23, 23, 28, .55); backdrop-filter: blur(4px); }
.search-modal.open { display: flex; }
.search-box { width: min(760px, 100%); background: #fff; border-radius: 22px; box-shadow: var(--shadow-lg); overflow: hidden; animation: pop .22s ease; }
@keyframes pop { from { transform: translateY(-10px) scale(.98); opacity: 0; } to { transform: none; opacity: 1; } }
.search-input-wrap { display: flex; align-items: center; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--grey-200); }
.search-input-wrap svg { width: 24px; height: 24px; color: var(--red); flex: none; }
.search-input-wrap input { flex: 1; border: 0; outline: 0; font-size: 1.15rem; font-family: inherit; color: var(--black); background: transparent; }
.search-input-wrap input::placeholder { color: var(--grey-400); }
.search-close { border: 0; background: var(--grey-100); border-radius: 10px; padding: 6px 12px; font-weight: 700; color: var(--grey-600); cursor: pointer; }
.search-results { max-height: 60vh; overflow-y: auto; padding: 10px; }
.search-hint { padding: 12px 14px; color: var(--grey-600); font-size: .92rem; }
.search-hint .chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 999px; background: var(--grey-100); border: 1px solid var(--grey-200); font-size: .84rem; font-weight: 600; color: var(--black); cursor: pointer; transition: .15s; }
.chip:hover { background: var(--red-soft); border-color: var(--red); color: var(--red-dark); }
.result { display: flex; align-items: center; gap: 14px; padding: 12px 14px; border-radius: 14px; text-decoration: none !important; color: var(--black); transition: background .15s; }
.result:hover, .result.focus { background: var(--red-soft); }
.result img { width: 34px; height: 34px; flex: none; }
.result .r-title { font-weight: 700; font-size: 1rem; }
.result .r-meta { font-size: .82rem; color: var(--grey-600); }
.result .r-app { margin-left: auto; font-size: .78rem; font-weight: 700; color: var(--grey-600); background: var(--grey-100); border-radius: 8px; padding: 4px 8px; white-space: nowrap; }
.result mark { background: #FFE1E7; color: var(--red-dark); border-radius: 3px; padding: 0 2px; }
.no-results { padding: 24px; text-align: center; color: var(--grey-600); }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; background: radial-gradient(1200px 600px at 85% -10%, rgba(255, 27, 61, .18), transparent 60%), radial-gradient(800px 500px at -10% 110%, rgba(217, 4, 41, .10), transparent 60%), linear-gradient(180deg, #fff 0%, var(--grey-50) 100%); padding: 72px 0 60px; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px 6px 8px; border-radius: 999px; background: #fff; border: 1px solid var(--grey-200); font-size: .82rem; font-weight: 700; color: var(--red-dark); box-shadow: var(--shadow-sm); margin-bottom: 20px; }
.eyebrow img { width: 20px; height: 20px; }
.hero h1 { text-transform: lowercase; }
.hero h1 span { background: linear-gradient(90deg, var(--red-vivid), var(--red-dark)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .lead { font-size: 1.2rem; color: var(--grey-600); max-width: 560px; margin-bottom: 30px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-stats { display: flex; flex-wrap: wrap; gap: 26px; margin-top: 36px; }
.hero-stats div strong { display: block; font-size: 1.5rem; font-weight: 800; color: var(--red); line-height: 1; }
.hero-stats div span { font-size: .84rem; color: var(--grey-600); font-weight: 600; }
.hero-art { position: relative; }
.hero-art svg { width: 100%; height: auto; filter: drop-shadow(0 30px 60px rgba(217, 4, 41, .18)); animation: float 7s ease-in-out infinite; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

/* ---------- Secções ---------- */
.section { padding: 84px 0; }
.section.alt { background: var(--grey-50); }
.section.dark { background: linear-gradient(135deg, var(--red-dark), var(--red) 60%, var(--red-vivid)); color: #fff; }
.section.dark h2, .section.dark p { color: #fff; }
.section-head { max-width: 760px; margin-bottom: 40px; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head .kicker { display: inline-block; font-size: .8rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--red); margin-bottom: 10px; }
.section.dark .kicker { color: #fff; opacity: .85; }
.section-head p { color: var(--grey-600); font-size: 1.08rem; }
.section-head h2 { text-transform: lowercase; }

/* ---------- Cartões genéricos ---------- */
.card { background: #fff; border: 1px solid var(--grey-200); border-radius: var(--radius); box-shadow: var(--shadow-sm); padding: 26px; transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease; }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: #F5C2CC; }
.grid { display: grid; gap: 22px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* O que é o Microsoft 365 */
.what-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.what-list { display: grid; gap: 14px; }
.what-item { display: flex; gap: 14px; padding: 16px 18px; border-radius: 14px; background: #fff; border: 1px solid var(--grey-200); }
.what-item .ico { width: 44px; height: 44px; flex: none; border-radius: 12px; background: var(--red-soft); display: grid; place-items: center; font-size: 1.3rem; }
.what-item strong { display: block; margin-bottom: 2px; }
.what-item span { color: var(--grey-600); font-size: .95rem; }
.big-quote { background: #fff; border-radius: var(--radius); border: 1px solid var(--grey-200); padding: 30px; box-shadow: var(--shadow-md); position: sticky; top: calc(var(--header-h) + 20px); }
.big-quote h3 { font-size: 1.35rem; }
.big-quote .ex { border-left: 4px solid var(--red); padding: 10px 16px; background: var(--red-soft); border-radius: 0 12px 12px 0; margin: 14px 0; font-size: .98rem; }
.flow { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.flow span { padding: 6px 12px; border-radius: 8px; background: var(--black); color: #fff; font-weight: 700; font-size: .78rem; letter-spacing: .06em; }
.flow span:nth-child(even) { background: var(--red); }

/* Grelha de ferramentas */
.tools-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; }
.tool-card { display: flex; flex-direction: column; gap: 12px; padding: 24px; position: relative; overflow: hidden; }
.tool-card::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 5px; background: var(--accent, var(--red)); opacity: 0; transition: .25s; }
.tool-card:hover::before { opacity: 1; }
.tool-head { display: flex; align-items: center; gap: 14px; }
.tool-head img { width: 46px; height: 46px; }
.tool-head h3 { margin: 0; font-size: 1.2rem; }
.tool-card .desc { color: var(--grey-600); margin: 0; font-size: .96rem; }
.tool-card ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 6px; font-size: .92rem; }
.tool-card ul li { display: flex; gap: 8px; align-items: flex-start; }
.tool-card ul li::before { content: "✓"; color: var(--red); font-weight: 800; flex: none; }
.tool-card .btn { margin-top: auto; align-self: flex-start; }
.tool-card .badge { position: absolute; top: 16px; right: 16px; font-size: .72rem; font-weight: 800; padding: 4px 10px; border-radius: 999px; background: #E8F5EC; color: #107C41; }

/* Aprende por objetivo */
.goals-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 16px; }
.goal { display: flex; align-items: center; gap: 14px; padding: 18px 20px; border-radius: 16px; background: #fff; border: 1.5px solid var(--grey-200); cursor: pointer; text-align: left; font: inherit; font-weight: 700; color: var(--black); transition: .2s; }
.goal .ico { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; font-size: 1.4rem; background: var(--red-soft); flex: none; }
.goal:hover, .goal.active { border-color: var(--red); background: var(--red-soft); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.goal-results { margin-top: 26px; display: none; }
.goal-results.show { display: block; animation: fadeUp .3s ease; }
.goal-results .panel { background: #fff; border-radius: var(--radius); border: 1px solid var(--grey-200); padding: 24px; box-shadow: var(--shadow-md); }
.goal-results h3 { display: flex; align-items: center; gap: 10px; }
.mini-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 10px; margin-top: 14px; }
.mini-link { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 12px; background: var(--grey-50); border: 1px solid var(--grey-200); color: var(--black); font-weight: 600; font-size: .95rem; text-decoration: none !important; transition: .15s; }
.mini-link img { width: 26px; height: 26px; }
.mini-link:hover { background: var(--red-soft); border-color: var(--red); }
.mini-link .done { margin-left: auto; color: #107C41; font-weight: 800; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* Percurso "não sei por onde começar" */
.path-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.path-intro .big { font-size: 1.5rem; font-weight: 800; }
.path { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; counter-reset: p; }
.path li a { display: flex; align-items: center; gap: 16px; padding: 14px 18px; border-radius: 14px; background: #fff; border: 1.5px solid var(--grey-200); color: var(--black); font-weight: 700; text-decoration: none !important; transition: .18s; }
.path li a:hover { border-color: var(--red); transform: translateX(4px); }
.path .num { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--black); color: #fff; font-weight: 800; flex: none; font-size: .9rem; }
.path li.done .num { background: #107C41; }
.path li.done .num::after { content: "✓"; }
.path li.done .num span { display: none; }
.path li a img { width: 24px; height: 24px; }
.path .state { margin-left: auto; font-size: .8rem; font-weight: 700; color: var(--grey-600); }
.path li.done .state { color: #107C41; }
.progress-bar { height: 14px; border-radius: 999px; background: var(--grey-200); overflow: hidden; margin: 14px 0; }
.progress-bar > span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--red-vivid), var(--red-dark)); border-radius: 999px; transition: width .6s cubic-bezier(.2, .8, .2, 1); }
.progress-card { background: #fff; border-radius: var(--radius); border: 1px solid var(--grey-200); padding: 24px; box-shadow: var(--shadow-md); margin-top: 20px; }
.progress-card .pct { font-size: 2.4rem; font-weight: 800; color: var(--red); line-height: 1; }
.progress-card .meta { color: var(--grey-600); font-size: .92rem; }

/* FAQ */
.faq { max-width: 860px; margin-inline: auto; display: grid; gap: 12px; }
.faq details { background: #fff; border: 1px solid var(--grey-200); border-radius: 16px; padding: 0 22px; transition: .2s; }
.faq details[open] { border-color: var(--red); box-shadow: var(--shadow-md); }
.faq summary { list-style: none; cursor: pointer; padding: 18px 0; font-weight: 700; font-size: 1.05rem; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; width: 30px; height: 30px; border-radius: 50%; background: var(--red-soft); color: var(--red); display: grid; place-items: center; font-weight: 800; flex: none; transition: .2s; }
.faq details[open] summary::after { content: "–"; background: var(--red); color: #fff; }
.faq .answer { padding: 0 0 20px; color: var(--grey-600); }

/* Rodapé */
.site-footer { background: var(--black); color: #C9C9D1; padding: 60px 0 30px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 36px; }
.site-footer h4 { color: #fff; font-size: .9rem; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 14px; }
.site-footer a { color: #C9C9D1; display: block; padding: 4px 0; font-size: .95rem; }
.site-footer a:hover { color: #fff; }
.footer-brand { display: flex; align-items: center; gap: 12px; color: #fff; font-weight: 800; font-size: 1.2rem; }
.footer-brand img { width: 40px; height: 40px; }
.footer-tag { font-size: 1.05rem; color: #fff; margin: 12px 0 8px; font-weight: 700; }
.footer-note { margin-top: 40px; padding-top: 20px; border-top: 1px solid #2E2E36; font-size: .86rem; color: #8F8F99; display: flex; flex-wrap: wrap; gap: 10px 30px; justify-content: space-between; }

/* ---------- Página de aplicação ---------- */
.app-hero { padding: 56px 0 40px; background: linear-gradient(180deg, #fff, var(--grey-50)); border-bottom: 1px solid var(--grey-200); position: relative; overflow: hidden; }
.app-hero::after { content: ""; position: absolute; right: -120px; top: -120px; width: 420px; height: 420px; border-radius: 50%; background: radial-gradient(circle, color-mix(in srgb, var(--accent, var(--red)) 18%, transparent), transparent 70%); pointer-events: none; }
.app-hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; }
.app-title { display: flex; align-items: center; gap: 20px; margin-bottom: 14px; }
.app-title img { width: 72px; height: 72px; filter: drop-shadow(0 8px 16px rgba(0, 0, 0, .12)); }
.app-title h1 { margin: 0; font-size: clamp(2rem, 4vw, 3rem); }
.app-title .sub { font-size: .9rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--red); }
.for-what { background: #fff; border: 1px solid var(--grey-200); border-left: 6px solid var(--accent, var(--red)); border-radius: 14px; padding: 18px 22px; box-shadow: var(--shadow-sm); }
.for-what h2 { font-size: 1rem; text-transform: uppercase; letter-spacing: .1em; color: var(--red); margin-bottom: 6px; }
.for-what p { margin: 0; font-size: 1.05rem; }
.app-hero .art svg { width: 100%; height: auto; border-radius: 16px; box-shadow: var(--shadow-lg); border: 1px solid var(--grey-200); }
.breadcrumb { font-size: .86rem; color: var(--grey-600); margin-bottom: 14px; }
.breadcrumb a { color: var(--grey-600); }
.breadcrumb span { margin: 0 6px; }

.layout { display: grid; grid-template-columns: 280px 1fr; gap: 40px; padding: 50px 0 80px; align-items: start; }
.toc { position: sticky; top: calc(var(--header-h) + 20px); background: #fff; border: 1px solid var(--grey-200); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow-sm); max-height: calc(100vh - var(--header-h) - 40px); overflow-y: auto; }
.toc h4 { font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; color: var(--grey-600); margin: 4px 0 10px; }
.toc a { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 10px; color: var(--black); font-size: .9rem; font-weight: 600; text-decoration: none !important; }
.toc a:hover { background: var(--grey-100); }
.toc a.current { background: var(--red-soft); color: var(--red-dark); }
.toc a .n { width: 22px; height: 22px; border-radius: 50%; background: var(--grey-100); color: var(--grey-600); font-size: .72rem; display: grid; place-items: center; font-weight: 800; flex: none; }
.toc a.done .n { background: #107C41; color: #fff; }
.toc a.done .n::after { content: "✓"; } .toc a.done .n span { display: none; }
.toc .toc-progress { margin: 12px 0 4px; font-size: .82rem; font-weight: 700; color: var(--grey-600); }

.features { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 14px; margin-bottom: 60px; }
.feature { display: flex; gap: 12px; align-items: flex-start; padding: 16px; border-radius: 14px; background: #fff; border: 1px solid var(--grey-200); font-size: .95rem; transition: .18s; }
.feature:hover { border-color: var(--accent, var(--red)); transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.feature .ico { width: 40px; height: 40px; border-radius: 10px; background: color-mix(in srgb, var(--accent, var(--red)) 12%, #fff); display: grid; place-items: center; font-size: 1.15rem; flex: none; }
.feature strong { display: block; font-size: .95rem; }
.feature span { color: var(--grey-600); font-size: .86rem; }

.intro-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; margin-bottom: 56px; }
.intro-card { padding: 20px 22px; border-radius: 16px; background: #fff; border: 1px solid var(--grey-200); }
.intro-card h4 { color: var(--red); font-size: .82rem; text-transform: uppercase; letter-spacing: .1em; margin-bottom: 8px; }
.intro-card p { margin: 0; font-size: .98rem; }

/* Tutoriais */
.tutorial { margin-bottom: 70px; scroll-margin-top: calc(var(--header-h) + 20px); }
.tutorial-head { display: flex; align-items: flex-start; gap: 16px; margin-bottom: 20px; flex-wrap: wrap; }
.tutorial-head .tnum { width: 48px; height: 48px; border-radius: 14px; background: linear-gradient(135deg, var(--red-vivid), var(--red-dark)); color: #fff; font-weight: 800; font-size: 1.15rem; display: grid; place-items: center; flex: none; box-shadow: 0 8px 18px rgba(217, 4, 41, .25); }
.tutorial-head h3 { font-size: 1.55rem; margin: 6px 0 4px; }
.tutorial-head .tmeta { color: var(--grey-600); font-size: .92rem; display: flex; gap: 14px; flex-wrap: wrap; }
.tutorial-head .tmeta span::before { content: "•"; margin-right: 6px; color: var(--red); }
.tutorial-head .tmeta span:first-child::before { content: none; }
.tutorial.completed .tnum { background: #107C41; box-shadow: none; }
.tutorial.completed .tnum::before { content: "✓"; }
.tutorial.completed .tnum span { display: none; }
.tutorial .why { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; margin-bottom: 22px; }
.tutorial .why div { background: var(--grey-50); border: 1px solid var(--grey-200); border-radius: 12px; padding: 12px 14px; font-size: .92rem; }
.tutorial .why strong { display: block; color: var(--red); font-size: .74rem; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 3px; }
.steps { display: grid; gap: 18px; }
.step { display: grid; grid-template-columns: 1fr; gap: 0; background: #fff; border: 1px solid var(--grey-200); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); transition: box-shadow .2s, transform .2s; }
.step:hover { box-shadow: var(--shadow-md); }
.step-text { padding: 22px 24px 10px; }
.step-label { display: inline-flex; align-items: center; gap: 8px; font-weight: 800; color: var(--red); font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 6px; }
.step-label b { width: 26px; height: 26px; border-radius: 50%; background: var(--red); color: #fff; display: grid; place-items: center; font-size: .82rem; }
.step-text h4 { font-size: 1.15rem; margin-bottom: 6px; }
.step-text p { margin: 0 0 8px; color: var(--grey-600); font-size: 1rem; }
.step-text .tip { display: flex; gap: 10px; align-items: flex-start; background: #FFF8E6; border: 1px solid #FFE3A3; border-radius: 12px; padding: 10px 14px; font-size: .9rem; color: #6B4E00; margin-top: 8px; }
.step-text .kbd { display: inline-block; font-family: inherit; font-size: .82rem; padding: 2px 8px; border-radius: 6px; background: var(--grey-100); border: 1px solid var(--grey-200); border-bottom-width: 2px; font-weight: 700; color: var(--black); }
.step-figure { padding: 6px 18px 18px; }
.step-figure svg { width: 100%; height: auto; border-radius: 12px; border: 1px solid var(--grey-200); background: #fff; display: block; }
.step-figure figcaption { font-size: .85rem; color: var(--grey-600); margin-top: 8px; display: flex; align-items: center; gap: 8px; }
.step-figure figcaption::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--red); }
.tutorial-foot { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 20px; padding: 18px 20px; border-radius: 16px; background: var(--grey-50); border: 1px solid var(--grey-200); }
.tutorial-foot .result { padding: 0; }
.tutorial-foot .summary { flex: 1; min-width: 200px; font-size: .95rem; }
.tutorial-foot .summary strong { color: var(--red); }
.btn-done { background: #fff; border: 2px solid #107C41; color: #107C41; }
.btn-done.is-done { background: #107C41; color: #fff; }
.btn-done:hover { transform: translateY(-2px); }
.practice { margin-top: 16px; background: linear-gradient(135deg, #fff, var(--red-soft)); border: 1px solid #F5C2CC; border-radius: 16px; padding: 18px 22px; }
.practice h5 { margin: 0 0 6px; font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; color: var(--red-dark); }
.practice p { margin: 0; font-size: .98rem; }

.page-nav { display: grid; grid-template-columns: 1fr auto 1fr; gap: 14px; margin-top: 40px; }
.page-nav a { display: flex; flex-direction: column; gap: 4px; padding: 18px 22px; border-radius: 16px; background: #fff; border: 1.5px solid var(--grey-200); color: var(--black); text-decoration: none !important; transition: .2s; }
.page-nav a:hover { border-color: var(--red); transform: translateY(-3px); box-shadow: var(--shadow-md); }
.page-nav a small { font-size: .78rem; text-transform: uppercase; letter-spacing: .1em; color: var(--grey-600); font-weight: 700; }
.page-nav a strong { display: flex; align-items: center; gap: 8px; font-size: 1.05rem; }
.page-nav a strong img { width: 22px; height: 22px; }
.page-nav .next { text-align: right; align-items: flex-end; }
.page-nav .home { align-items: center; justify-content: center; text-align: center; }

.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); background: var(--black); color: #fff; padding: 12px 20px; border-radius: 12px; box-shadow: var(--shadow-lg); font-weight: 600; opacity: 0; pointer-events: none; transition: .25s; z-index: 400; font-size: .95rem; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }

/* Copilot page */
.prompt-compare { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin: 20px 0 40px; }
.prompt-card { border-radius: var(--radius); padding: 24px; border: 2px solid; background: #fff; }
.prompt-card.weak { border-color: var(--red); }
.prompt-card.strong { border-color: #107C41; }
.prompt-card h4 { display: flex; align-items: center; gap: 10px; font-size: 1.1rem; }
.prompt-card.weak h4 { color: var(--red); } .prompt-card.strong h4 { color: #107C41; }
.prompt-card blockquote { margin: 12px 0; padding: 14px 18px; background: var(--grey-50); border-radius: 12px; font-style: italic; font-size: 1.05rem; }
.prompt-card ul { margin: 0; padding-left: 18px; color: var(--grey-600); font-size: .95rem; }
.formula { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin: 16px 0 40px; }
.formula div { background: #fff; border: 1px solid var(--grey-200); border-radius: 14px; padding: 14px; text-align: center; }
.formula div b { display: block; color: var(--red); font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; }
.formula div span { font-size: .92rem; }

/* ---------- Responsivo ---------- */
@media (max-width: 1180px) {
  .main-nav a span.lbl { display: none; }
  .main-nav a img { width: 20px; height: 20px; }
}
@media (max-width: 1024px) {
  .main-nav { display: none; }
  .menu-toggle { display: grid; }
  .hero-grid, .what-grid, .path-wrap, .app-hero-grid, .prompt-compare { grid-template-columns: 1fr; }
  .layout { grid-template-columns: 1fr; }
  .toc { position: static; max-height: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .big-quote { position: static; }
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .container { width: min(1200px, 100% - 28px); }
  .section { padding: 56px 0; }
  .hero { padding: 44px 0 40px; }
  .search-btn span.lbl, .search-btn kbd { display: none; }
  .progress-pill .txt { display: none; }
  .grid-2, .grid-3, .grid-4, .footer-grid { grid-template-columns: 1fr; }
  .page-nav { grid-template-columns: 1fr; }
  .page-nav .next { text-align: left; align-items: flex-start; }
  .btn { padding: 12px 20px; }
  .app-title img { width: 56px; height: 56px; }
  .step-text { padding: 18px 16px 6px; }
  .step-figure { padding: 4px 10px 12px; }
}
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } .reveal { opacity: 1; transform: none; } }

/* Logótipo Microsoft 365 (horizontal) */
.brand img.wordmark { width: auto; height: 24px; }
.brand { flex-direction: column; align-items: flex-start; gap: 3px; }
.brand small { display: block; border: 0; padding: 0; font-size: .66rem; letter-spacing: .08em; color: var(--grey-600); padding-left: 2px; }
.footer-brand img.wordmark { width: auto; height: 34px; background: #fff; padding: 8px 12px; border-radius: 10px; }
@media (max-width: 640px) { .brand img.wordmark { height: 20px; } .brand small { font-size: .6rem; } }

/* VISION AI · Florindo Silva */
.author { display: flex; align-items: center; gap: 10px; text-decoration: none !important; color: var(--black); white-space: nowrap; padding-left: 14px; border-left: 1px solid var(--grey-200); }
.author img { width: 36px; height: 36px; border-radius: 10px; box-shadow: 0 4px 12px rgba(120, 60, 255, .25); }
.author b { display: block; font-size: .82rem; font-weight: 800; letter-spacing: .1em; background: linear-gradient(90deg, #E040C8, #4F7BFF, #22D3EE); -webkit-background-clip: text; background-clip: text; color: transparent; line-height: 1.1; }
.author small { display: block; font-size: .72rem; font-weight: 600; color: var(--grey-600); line-height: 1.1; }
.drawer-head .author { border: 0; padding: 0; }
.footer-author { display: flex; align-items: center; gap: 12px; margin-top: 18px; padding: 12px 14px; border-radius: 14px; background: #24242C; width: fit-content; }
.footer-author img { width: 44px; height: 44px; border-radius: 12px; }
.footer-author b { display: block; color: #fff; letter-spacing: .12em; font-size: .95rem; }
.footer-author span { font-size: .85rem; color: #C9C9D1; }

/* Barra superior VISION AI */
.topbar { background: #0B0D1A; color: #fff; border-bottom: 1px solid #1E2140; }
.topbar .container { display: flex; align-items: center; justify-content: center; height: 56px; }
.topbar .author { border: 0; padding: 0; gap: 12px; color: #fff; }
.topbar .author img { width: 40px; height: 40px; border-radius: 10px; box-shadow: 0 0 18px rgba(80, 160, 255, .45); }
.topbar .author b { font-size: 1rem; letter-spacing: .18em; }
.topbar .author small { color: #B8BCD6; font-size: .8rem; }

/* Marca empilhada: VISION AI por cima do Microsoft 365 */
:root { --header-h: 84px; }
.brand .author { border: 0; padding: 0; gap: 8px; margin-bottom: 4px; }
.brand .author img { width: 26px; height: 26px; border-radius: 7px; box-shadow: 0 2px 8px rgba(80, 120, 255, .3); }
.brand .author b { font-size: .78rem; letter-spacing: .14em; }
.brand .author small { font-size: .66rem; color: var(--grey-600); letter-spacing: 0; }
.brand img.wordmark { height: 20px; }
.brand > small { font-size: .62rem; }
@media (max-width: 640px) { :root { --header-h: 76px; } .brand .author img { width: 22px; height: 22px; } }

/* Menu completo: todas as 14 ferramentas visíveis */
.header-inner { height: auto; min-height: var(--header-h); padding: 8px 0; gap: 14px; }
.main-nav { flex-wrap: wrap; overflow: visible; gap: 2px 0; row-gap: 2px; justify-content: flex-start; }
.main-nav a { padding: 6px 8px; font-size: .82rem; gap: 5px; }
.main-nav a img { width: 15px; height: 15px; }
@media (max-width: 1180px) { .main-nav a { font-size: .78rem; padding: 5px 7px; } }

/* ===== Fundo apelativo do site ===== */
body {
  background:
    radial-gradient(900px 520px at 100% 0%, rgba(255, 27, 61, .10), transparent 60%),
    radial-gradient(700px 480px at 0% 40%, rgba(217, 4, 41, .07), transparent 60%),
    radial-gradient(800px 600px at 100% 100%, rgba(155, 0, 22, .08), transparent 60%),
    linear-gradient(180deg, #FFFFFF 0%, #FAF7F8 45%, #F6F6F9 100%);
  background-attachment: fixed;
}
body::before {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background-image: radial-gradient(rgba(23, 23, 28, .07) 1px, transparent 1px);
  background-size: 22px 22px;
  mask-image: linear-gradient(180deg, rgba(0,0,0,.9), rgba(0,0,0,.35));
  -webkit-mask-image: linear-gradient(180deg, rgba(0,0,0,.9), rgba(0,0,0,.35));
}
body::after {
  content: ""; position: fixed; z-index: -1; pointer-events: none;
  width: 520px; height: 520px; right: -180px; top: 30%;
  border-radius: 50%;
  background: conic-gradient(from 90deg, rgba(255,27,61,.10), rgba(217,4,41,.02), rgba(155,0,22,.10), rgba(255,27,61,.10));
  filter: blur(40px);
  animation: drift 18s ease-in-out infinite alternate;
}
@keyframes drift { from { transform: translateY(-40px) rotate(0deg); } to { transform: translateY(60px) rotate(40deg); } }

/* Secções alternadas passam a translúcidas para deixar ver o fundo */
.section[style*="background:var(--grey-50)"] { background: rgba(255, 255, 255, .55) !important; backdrop-filter: blur(2px); border-top: 1px solid rgba(23,23,28,.05); border-bottom: 1px solid rgba(23,23,28,.05); }
.hero { background: radial-gradient(1200px 600px at 85% -10%, rgba(255, 27, 61, .20), transparent 60%), radial-gradient(800px 500px at -10% 110%, rgba(217, 4, 41, .12), transparent 60%), linear-gradient(180deg, rgba(255,255,255,.85), rgba(255,255,255,0)); }
.hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 70px; background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 70' preserveAspectRatio='none'><path d='M0 40 C 240 80 480 0 720 30 S 1200 70 1440 20 L1440 70 L0 70 Z' fill='%23D90429' fill-opacity='0.06'/><path d='M0 55 C 300 20 600 75 900 45 S 1300 15 1440 50 L1440 70 L0 70 Z' fill='%23FF1B3D' fill-opacity='0.08'/></svg>") no-repeat center / 100% 100%; pointer-events: none; }
.app-hero { background: linear-gradient(180deg, rgba(255,255,255,.9), rgba(255,255,255,.4)); }
.card, .tool-card, .step, .what-item, .feature, .goal, .intro-card, .faq details, .path li a, .progress-card, .big-quote, .toc, .goal-results .panel { background: rgba(255, 255, 255, .92); }
.site-header { background: rgba(255, 255, 255, .85); }
@media (prefers-reduced-motion: reduce) { body::after { animation: none; } }
