:root {
 --blue:#075af5; --orange:#f97316; --ink:#142239; --muted:#526174; --line:#dce5f1; --paper:#f7f9fc;
 font-family:"Segoe UI",Arial,sans-serif; color:var(--ink); background:var(--paper); font-synthesis:none; text-rendering:optimizeLegibility;
}
* { box-sizing:border-box; }
body { margin:0; }
button { font:inherit; -webkit-tap-highlight-color:transparent; }
[hidden] { display:none!important; }
.page-shell,.header-inner { width:min(1240px,calc(100% - 96px)); margin:auto; }
.masthead { background:var(--blue); color:#fff; border-bottom:3px solid var(--orange); }
.header-inner { min-height:116px; display:flex; align-items:center; gap:44px; padding:24px 0; }
.brand-logo { display:block; width:164px; height:auto; flex:none; }
.header-slogan { margin:0; font-size:clamp(1rem,1.35vw,1.1875rem); font-weight:600; line-height:1.55; letter-spacing:-.015em; }
.header-slogan span { color:var(--orange); }
.opening { padding:44px 0 40px; max-width:900px; }
.opening h1 { margin:0; font-size:clamp(1.8rem,2.6vw,2.5rem); font-weight:600; letter-spacing:-.035em; line-height:1.2; }
.introduction { max-width:780px; margin:16px 0 0; color:var(--muted); font-size:1.0625rem; line-height:1.7; }
.journey { display:grid; grid-template-columns:240px minmax(0,1fr); align-items:start; gap:40px; padding:0 0 56px; }
.journey-intro { background:var(--orange); border-radius:18px; padding:28px 26px; border:1px solid #e8680d; }
.eyebrow { display:block; margin:0 0 12px; font-size:.8125rem; line-height:1.5; font-weight:650; letter-spacing:.07em; text-transform:uppercase; color:var(--blue); }
.journey-intro .eyebrow { color:#172239; opacity:.85; }
.journey-intro h2 { margin:0; color:#142239; font-size:1.875rem; line-height:1.2; font-weight:600; letter-spacing:-.035em; }
.chapter-list { position:relative; list-style:none; margin:0; padding:0; border:1px solid var(--line); border-radius:20px; background:#fff; box-shadow:0 8px 30px #14223906; }
.chapter-list::before { content:""; position:absolute; left:49px; top:55px; bottom:55px; width:2px; background:#d4e1fb; }
.chapter-list li { position:relative; }
.chapter { position:relative; width:100%; display:grid; grid-template-columns:54px minmax(0,1fr) auto; align-items:center; gap:22px; padding:23px 26px 23px 22px; min-height:112px; background:transparent; color:var(--ink); border:0; border-bottom:1px solid #e8edf5; text-align:left; cursor:pointer; }
.chapter-list li:first-child .chapter { border-radius:19px 19px 0 0; }
.chapter-list li:last-child .chapter { border-bottom:0; border-radius:0 0 19px 19px; }
.chapter-number { position:relative; display:grid; place-items:center; width:54px; height:54px; background:#f0f5ff; border:1px solid #cfddfa; border-radius:50%; color:var(--blue); font-size:1.5rem; font-weight:600; font-variant-numeric:tabular-nums; }
.chapter-copy { display:block; }
.chapter-title { display:block; font-size:1.1875rem; line-height:1.35; font-weight:600; letter-spacing:-.015em; }
.chapter-description { display:block; max-width:550px; margin-top:6px; font-size:1rem; line-height:1.55; color:var(--muted); }
.chapter-action { color:var(--blue); font-size:.875rem; white-space:nowrap; }
.chapter-action::after { content:" ↗"; font-size:1rem; }
.chapter:hover { background:#f5f8ff; }
.chapter:hover .chapter-number { border-color:var(--blue); }
.chapter:hover .chapter-title { color:var(--blue); }
:focus-visible { outline:3px solid var(--blue); outline-offset:4px; }
.chapter:focus-visible { outline-offset:-4px; border-radius:12px; }
h2:focus { outline:none; }
.skip-link { position:fixed; top:-120px; left:12px; z-index:10; background:#fff; padding:12px 18px; color:var(--blue); }
.skip-link:focus { top:12px; }
.chapter-view { padding:0 0 56px; scroll-margin-top:28px; }
.return-button { min-height:46px; padding:12px 16px; border:1px solid #c8d9f5; border-radius:10px; background:#fff; color:var(--blue); cursor:pointer; font-size:.9375rem; }
.return-button:hover { background:#edf3ff; }
.chapter-content { display:grid; grid-template-columns:140px minmax(0,1fr); gap:40px; margin-top:26px; padding:44px; border:1px solid var(--line); border-top:3px solid var(--blue); border-radius:20px; background:#fff; box-shadow:0 8px 30px #14223906; }
.chapter-index { padding-right:24px; border-right:1px solid var(--line); }
.view-number { display:block; color:var(--blue); font-size:4rem; font-weight:450; letter-spacing:-.05em; line-height:1; font-variant-numeric:tabular-nums; }
.chapter-body h2 { margin:0; font-size:clamp(1.8rem,3vw,2.625rem); line-height:1.2; font-weight:600; letter-spacing:-.035em; }
.view-description { margin:18px 0 0; max-width:650px; color:var(--muted); font-size:1.125rem; line-height:1.7; }
.preparation-status { margin:36px 0 0; padding:14px 18px; background:#fff5eb; border-left:3px solid var(--orange); border-radius:0 10px 10px 0; color:var(--muted); font-size:.9375rem; line-height:1.55; }
.footer { display:flex; justify-content:space-between; gap:20px; padding:24px 0 32px; border-top:1px solid var(--line); color:var(--muted); font-size:.875rem; line-height:1.5; }
.footer-brand { font-size:1rem; color:var(--ink); font-weight:650; }
.footer-brand span { color:var(--blue); }
.script-notice { grid-column:1/-1; }
@media(max-width:1020px) {
 .page-shell,.header-inner { width:calc(100% - 64px); }
 .header-inner { gap:28px; }
 .brand-logo { width:140px; }
 .journey { grid-template-columns:190px minmax(0,1fr); gap:26px; }
 .journey-intro { padding:24px 20px; }
 .journey-intro h2 { font-size:1.625rem; }
 .chapter { grid-template-columns:48px minmax(0,1fr); gap:16px; padding:22px 20px; }
 .chapter-action { grid-column:2; }
 .chapter-number { width:48px; height:48px; font-size:1.375rem; }
 .chapter-list::before { left:44px; }
 .chapter-content { grid-template-columns:100px minmax(0,1fr); padding:36px 28px; gap:28px; }
}
@media(max-width:700px) {
 .page-shell,.header-inner { width:calc(100% - 40px); }
 .header-inner { flex-direction:column; align-items:flex-start; gap:18px; padding:24px 0; }
 .brand-logo { width:136px; }
 .header-slogan { font-size:1rem; line-height:1.55; }
 .opening { padding:30px 0; }
 .opening h1 { font-size:1.875rem; }
 .introduction { font-size:1rem; margin-top:14px; }
 .journey { grid-template-columns:minmax(0,1fr); gap:18px; padding-bottom:36px; }
 .journey-intro { padding:20px 22px; border-radius:14px; }
 .journey-intro .eyebrow { margin-bottom:6px; }
 .journey-intro h2 { font-size:1.5rem; }
 .journey-intro br { display:none; }
 .chapter-list { border-radius:16px; }
 .chapter { grid-template-columns:40px minmax(0,1fr); padding:22px 14px; column-gap:14px; row-gap:10px; }
 .chapter-number { width:40px; height:40px; font-size:1.25rem; }
 .chapter-list::before { left:34px; top:42px; bottom:85px; width:1px; }
 .chapter-title { font-size:1.125rem; }
 .chapter-description { font-size:1rem; }
 .chapter-content { grid-template-columns:minmax(0,1fr); gap:24px; padding:28px 22px; margin-top:22px; border-radius:16px; }
 .chapter-index { display:flex; align-items:baseline; gap:16px; border-right:0; border-bottom:1px solid var(--line); padding:0 0 20px; }
 .chapter-index .eyebrow { margin:0; }
 .view-number { font-size:2.75rem; }
 .view-description { font-size:1rem; }
 .preparation-status { margin-top:28px; padding:14px; }
 .chapter-view { padding-bottom:36px; }
}

/* R4 : estrutura editorial comum, direção visual R3 preservada. */
.introduction { max-width:780px; }
.view-callout { margin:20px 0 0; color:var(--blue); font-size:1.125rem; font-weight:600; line-height:1.5; }
.view-description { margin-top:12px; max-width:680px; }
.audiovisual-area { margin-top:30px; min-height:280px; aspect-ratio:16/9; display:flex; flex-direction:column; justify-content:center; align-items:center; text-align:center; padding:32px; background:#f2f6fc; border:1px solid #dce5f1; border-radius:14px; }
.audiovisual-area h3 { margin:0; color:var(--ink); font-size:1.25rem; line-height:1.4; font-weight:600; }
.audiovisual-area p { max-width:380px; margin:12px 0 0; color:var(--muted); line-height:1.65; font-size:1rem; }
.chapter-navigation { display:flex; justify-content:space-between; align-items:stretch; flex-wrap:wrap; gap:16px; margin-top:26px; padding-top:22px; border-top:1px solid var(--line); }
.sequence-button { max-width:48%; min-height:48px; padding:12px 16px; font-size:.9375rem; line-height:1.5; text-align:left; background:#fff; color:var(--blue); border:1px solid #c8d9f5; border-radius:10px; cursor:pointer; }
.sequence-button:hover { background:#edf3ff; }
#next-chapter { margin-left:auto; text-align:right; }
@media(max-width:700px) {
 .audiovisual-area { min-height:220px; aspect-ratio:auto; padding:24px 18px; }
 .audiovisual-area h3 { font-size:1.125rem; }
 .audiovisual-area p { font-size:.9375rem; }
 .view-callout { font-size:1.0625rem; }
 .chapter-navigation { flex-direction:column; gap:12px; }
 .sequence-button { max-width:100%; width:100%; }
 #next-chapter { margin-left:0; text-align:left; }
}


/* Contato institucional: extensão da sala, sem alteração da jornada existente. */
.contact-section { display:grid; grid-template-columns:240px minmax(0,1fr); gap:40px; padding:12px 0 56px; }
.contact-intro h2 { margin:0; font-size:1.875rem; font-weight:600; letter-spacing:-.035em; }
.contact-intro p:last-child { color:var(--muted); line-height:1.7; }
.contact-form { padding:28px; border:1px solid var(--line); border-radius:20px; background:#fff; box-shadow:0 8px 30px #14223906; }
.contact-fields { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:20px; }
.contact-fields label { display:block; font-size:.9375rem; font-weight:600; line-height:1.5; }
.contact-fields label span { font-weight:400; color:var(--muted); }
.contact-wide { grid-column:1/-1; }
.contact-fields input,.contact-fields textarea { display:block; width:100%; margin-top:8px; padding:12px; font:inherit; font-weight:400; color:var(--ink); border:1px solid #c8d9f5; border-radius:10px; background:#f7f9fc; }
.contact-fields textarea { resize:vertical; min-height:130px; }
.contact-submit { padding:12px 20px; min-height:48px; background:var(--blue); color:#fff; border:0; border-radius:10px; cursor:pointer; }
.contact-submit:disabled { opacity:.65; cursor:wait; }
.contact-note,.contact-alternative,.contact-status { font-size:.9375rem; line-height:1.6; color:var(--muted); }
.contact-status:empty { display:none; }
.contact-status[data-state="error"] { color:#8b3610; }
.contact-status[data-state="success"] { color:#176245; }
.contact-alternative a { color:var(--blue); overflow-wrap:anywhere; }
@media(max-width:1020px) { .contact-section { grid-template-columns:190px minmax(0,1fr); gap:26px; } }
@media(max-width:700px) { .contact-section { grid-template-columns:minmax(0,1fr); gap:18px; padding-bottom:36px; } .contact-form { padding:22px; border-radius:16px; } .contact-fields { grid-template-columns:minmax(0,1fr); } }

/* Vídeos reais: a arquitetura editorial da sala permanece preservada. */
.audiovisual-area[data-status="disponivel"] { aspect-ratio:auto; min-height:0; align-items:stretch; gap:14px; padding:0; background:transparent; border:0; text-align:left; }
.audiovisual-area[data-status="disponivel"] h3 { font-size:1.0625rem; }
.audiovisual-area[data-status="disponivel"] p { margin:0; }
.youtube-frame { position:relative; width:100%; aspect-ratio:16/9; min-height:200px; background:#142239; border-radius:14px; overflow:hidden; }
.youtube-frame iframe { position:absolute; inset:0; width:100%; height:100%; border:0; }
.youtube-link { align-self:flex-start; display:inline-block; color:var(--blue); font-size:.9375rem; line-height:1.5; padding:10px 0; text-underline-offset:3px; }

.youtube-poster { position:absolute; inset:0; display:flex; align-items:center; justify-content:center; width:100%; height:100%; padding:0; border:0; border-radius:14px; overflow:hidden; background:linear-gradient(135deg,#075af5,#142239); color:#fff; text-decoration:none; cursor:pointer; }
.youtube-poster img { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; background:#142239; }
.youtube-play { position:relative; display:grid; place-items:center; width:76px; height:54px; padding-left:4px; border-radius:14px; background:var(--blue); box-shadow:0 6px 24px #0006; font-size:26px; transition:background .18s ease,transform .18s ease; }
.youtube-poster:hover .youtube-play,.youtube-poster:focus-visible .youtube-play { background:var(--orange); transform:scale(1.06); }
.youtube-poster-caption { position:absolute; bottom:0; left:0; right:0; padding:26px 16px 14px; background:linear-gradient(transparent,#000b); text-align:left; font-size:.9375rem; font-weight:600; }
@media(prefers-reduced-motion:reduce) { .youtube-play { transition:none; } }

.chapter-summary{margin-top:1.8rem;padding-top:1.25rem;border-top:1px solid rgba(7,90,245,.14);max-width:74ch}.chapter-summary h3{font-size:1rem;color:#075af5;margin:0 0 .65rem}.chapter-summary p{font-size:1rem;line-height:1.7;margin:0;color:#344054}
