*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --cream: #F5F0E8;
  --ink: #1C1A14;
  --ink-muted: #6B6456;
  --ink-faint: #B5AFA5;
  --paper: #FDFAF4;
  --rule: #E2DACE;
  --quimica: #1D6E4E; --quimica-bg: #E8F5EE; --quimica-pill: #C2E8D4;
  --portugues: #1A4A8A; --portugues-bg: #E8EFF9; --portugues-pill: #C2D5F0;
  --matematica: #8A4D00; --matematica-bg: #FDF3E3; --matematica-pill: #F5DFB0;
  --geo: #2D6B1A; --geo-bg: #EBF5E6; --geo-pill: #C8E8BE;
  --historia: #7A2D00; --historia-bg: #FDF0E8; --historia-pill: #F5CDB0;
  --fuvest: #4A1A7A; --fuvest-bg: #F0EAF8;
  --leitura: #8A3A00; --leitura-bg: #FDF3E8; --leitura-pill: #F5D5B0;
}

html { font-size: 16px; }
body { background: var(--cream); color: var(--ink); font-family: 'Instrument Sans', sans-serif; min-height: 100vh; line-height: 1.6; }
body::before { content: ''; position: fixed; inset: 0; background-image: repeating-linear-gradient(0deg, transparent, transparent 27px, #D8D2C822 28px); pointer-events: none; z-index: 0; }
.container { max-width: 760px; margin: 0 auto; padding: 3rem 1.5rem 5rem; position: relative; z-index: 1; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }

/* HERO */
.hero { margin-bottom: 3rem; padding-bottom: 2rem; border-bottom: 2px solid var(--ink); animation: fadeUp 0.5s ease both; }
.hero-eyebrow { font-size: 11px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-muted); margin-bottom: 0.75rem; display: flex; align-items: center; gap: 8px; }
.hero-eyebrow::before { content: ''; display: inline-block; width: 20px; height: 2px; background: var(--ink-muted); }
.hero-title { font-family: 'Fraunces', serif; font-size: clamp(2.2rem, 6vw, 3.6rem); font-weight: 700; line-height: 1.05; color: var(--ink); margin-bottom: 1.2rem; }
.hero-title em { font-style: italic; font-weight: 400; }
.hero-desc { font-size: 15px; color: var(--ink-muted); max-width: 500px; line-height: 1.7; }

/* COUNTDOWN */
.countdown-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 2.5rem; }
@media (max-width: 480px) { .countdown-row { grid-template-columns: 1fr; } }
.countdown-card { background: var(--paper); border: 1px solid var(--rule); border-radius: 14px; padding: 16px 18px; }
.countdown-card.fuvest-cd { border-left: 3px solid var(--fuvest); }
.countdown-card.enem-cd { border-left: 3px solid #0F6E56; }
.cd-label { font-size: 10px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-muted); margin-bottom: 10px; display: flex; align-items: center; gap: 6px; }
.cd-label-dot { width: 7px; height: 7px; border-radius: 50%; }
.fuvest-cd .cd-label-dot { background: var(--fuvest); }
.enem-cd .cd-label-dot { background: #0F6E56; }
.cd-units { display: flex; gap: 6px; align-items: flex-end; }
.cd-unit { text-align: center; }
.cd-num { font-family: 'Fraunces', serif; font-size: 28px; font-weight: 700; line-height: 1; display: block; min-width: 36px; }
.fuvest-cd .cd-num { color: var(--fuvest); }
.enem-cd .cd-num { color: #0F6E56; }
.cd-unit-label { font-size: 9px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-faint); display: block; margin-top: 3px; }
.cd-sep { font-family: 'Fraunces', serif; font-size: 22px; color: var(--ink-faint); line-height: 1; padding-bottom: 14px; }
.cd-date { font-size: 11px; color: var(--ink-faint); margin-top: 10px; }

/* COMO USAR */
.como-usar { background: var(--ink); color: var(--cream); border-radius: 16px; padding: 1.75rem 2rem; margin-bottom: 2.5rem; display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; animation: fadeUp 0.5s 0.1s ease both; }
@media (max-width: 540px) { .como-usar { grid-template-columns: 1fr; } }
.como-usar-title { font-family: 'Fraunces', serif; font-size: 13px; font-weight: 400; font-style: italic; color: #B5AFA5; margin-bottom: 1rem; letter-spacing: 0.04em; grid-column: 1 / -1; }
.steps { display: flex; flex-direction: column; gap: 10px; }
.step { display: flex; align-items: flex-start; gap: 12px; }
.step-num { width: 24px; height: 24px; border-radius: 50%; background: #3A3830; color: #F5F0E8; font-size: 12px; font-weight: 600; display: flex; align-items: center; justify-content: center; flex-shrink: 0; margin-top: 1px; }
.step-text { font-size: 14px; color: #E8E0D4; line-height: 1.5; }
.step-text strong { color: #F5F0E8; font-weight: 500; }
.dica-box { background: #2A2820; border-radius: 10px; padding: 1rem 1.2rem; border-left: 3px solid #8B7355; }
.dica-label { font-size: 10px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: #8B7355; margin-bottom: 8px; }
.dica-text { font-size: 13.5px; color: #C8BFB0; line-height: 1.6; }
.dica-text strong { color: #F5F0E8; }
.dica-link { display: inline-flex; align-items: center; gap: 4px; margin-top: 10px; font-size: 12.5px; color: #D4B896; text-decoration: none; border-bottom: 1px solid #8B735566; padding-bottom: 1px; transition: color 0.15s; }
.dica-link:hover { color: #F5F0E8; }

/* MATÉRIAS */
.materias-title { font-family: 'Fraunces', serif; font-size: 13px; font-style: italic; color: var(--ink-muted); margin-bottom: 1rem; letter-spacing: 0.04em; }
.materia-card { background: var(--paper); border: 1px solid var(--rule); border-radius: 14px; margin-bottom: 10px; overflow: hidden; transition: box-shadow 0.2s; }
.materia-card:hover { box-shadow: 0 2px 16px rgba(28,26,20,0.07); }
.materia-card:nth-child(1) { animation: fadeUp 0.5s 0.15s ease both; }
.materia-card:nth-child(2) { animation: fadeUp 0.5s 0.20s ease both; }
.materia-card:nth-child(3) { animation: fadeUp 0.5s 0.25s ease both; }
.materia-card:nth-child(4) { animation: fadeUp 0.5s 0.30s ease both; }
.materia-card:nth-child(5) { animation: fadeUp 0.5s 0.35s ease both; }
.materia-header { display: flex; align-items: center; gap: 12px; padding: 14px 18px; cursor: pointer; user-select: none; transition: background 0.15s; }
.materia-header:hover { background: var(--cream); }
.m-icon { font-size: 20px; width: 36px; height: 36px; border-radius: 10px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.m-info { flex: 1; }
.m-name { font-weight: 600; font-size: 15px; color: var(--ink); display: block; }
.m-badge { display: inline-block; font-size: 11px; font-weight: 500; padding: 2px 9px; border-radius: 20px; margin-top: 3px; }
.m-count { font-size: 12px; color: var(--ink-faint); white-space: nowrap; }
.m-chevron { width: 18px; height: 18px; color: var(--ink-faint); transition: transform 0.25s ease; flex-shrink: 0; }
.materia-card.open .m-chevron { transform: rotate(180deg); }
.materia-body { display: none; padding: 0 18px 16px; border-top: 1px solid var(--rule); }
.materia-card.open .materia-body { display: block; }
.section-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; padding-top: 14px; }
@media (max-width: 500px) { .section-row { grid-template-columns: 1fr; } }
.col-label { font-size: 10.5px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.1em; color: var(--ink-faint); margin-bottom: 8px; }
.link-list { list-style: none; display: flex; flex-direction: column; gap: 5px; }
.link-list a { display: inline-flex; align-items: center; gap: 5px; font-size: 13px; font-weight: 500; text-decoration: none; padding: 5px 11px; border-radius: 8px; transition: all 0.15s; border: 1px solid transparent; }
.link-list a:hover { border-color: currentColor; opacity: 0.8; }
.link-list a .arr { font-size: 11px; opacity: 0.6; }
.q .m-icon { background: var(--quimica-bg); } .q .m-badge { background: var(--quimica-pill); color: var(--quimica); } .q .link-list a { color: var(--quimica); background: var(--quimica-bg); }
.p .m-icon { background: var(--portugues-bg); } .p .m-badge { background: var(--portugues-pill); color: var(--portugues); } .p .link-list a { color: var(--portugues); background: var(--portugues-bg); }
.m .m-icon { background: var(--matematica-bg); } .m .m-badge { background: var(--matematica-pill); color: var(--matematica); } .m .link-list a { color: var(--matematica); background: var(--matematica-bg); }
.g .m-icon { background: var(--geo-bg); } .g .m-badge { background: var(--geo-pill); color: var(--geo); } .g .link-list a { color: var(--geo); background: var(--geo-bg); }
.h .m-icon { background: var(--historia-bg); } .h .m-badge { background: var(--historia-pill); color: var(--historia); } .h .link-list a { color: var(--historia); background: var(--historia-bg); }

/* CRONOGRAMA */
.cronograma-section { margin-top: 2.5rem; margin-bottom: 2rem; }
.cronograma-title { font-family: 'Fraunces', serif; font-size: 13px; font-style: italic; color: var(--ink-muted); margin-bottom: 1rem; letter-spacing: 0.04em; }
.semana-nav { display: flex; align-items: center; gap: 10px; margin-bottom: 1rem; flex-wrap: wrap; }
.semana-label { font-size: 11px; font-weight: 600; color: var(--ink-faint); letter-spacing: 0.08em; text-transform: uppercase; }
.semana-select { font-family: 'Instrument Sans', sans-serif; font-size: 12px; font-weight: 600; padding: 6px 30px 6px 14px; border-radius: 20px; border: 1.5px solid var(--rule); background: var(--paper); color: var(--ink-muted); cursor: pointer; transition: all 0.15s; letter-spacing: 0.04em; appearance: none; -webkit-appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236B6456' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 10px center; background-color: var(--paper); }
.semana-select:focus { outline: none; border-color: var(--ink); color: var(--ink); }
.semana-atual-badge { font-size: 10px; font-weight: 600; background: var(--ink); color: var(--cream); padding: 3px 9px; border-radius: 20px; letter-spacing: 0.05em; }
.cronograma-tabs { display: flex; gap: 6px; margin-bottom: 1rem; flex-wrap: wrap; }
.crono-tab { font-family: 'Instrument Sans', sans-serif; font-size: 12px; font-weight: 600; padding: 6px 14px; border-radius: 20px; border: 1.5px solid var(--rule); background: var(--paper); color: var(--ink-muted); cursor: pointer; transition: all 0.15s; letter-spacing: 0.04em; }
.crono-tab:hover { border-color: var(--ink-muted); color: var(--ink); }
.crono-tab.active { background: var(--ink); color: var(--cream); border-color: var(--ink); }
.crono-day { display: none; }
.crono-day.active { display: flex; flex-direction: column; gap: 10px; }
.crono-slot { background: var(--paper); border: 1px solid var(--rule); border-radius: 14px; overflow: hidden; }
.crono-slot-header { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--rule); }
.crono-slot-icon { font-size: 18px; width: 34px; height: 34px; border-radius: 9px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.crono-slot-info { flex: 1; }
.crono-slot-materia { font-size: 14px; font-weight: 600; display: block; }
.crono-slot-tipo { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.1em; color: var(--ink-faint); margin-top: 2px; display: block; }
.crono-slot-tempo { font-size: 12px; color: var(--ink-faint); white-space: nowrap; background: var(--cream); border: 1px solid var(--rule); padding: 4px 10px; border-radius: 20px; }
.crono-tema { font-size: 12.5px; color: var(--ink-muted); padding: 8px 16px 10px; border-bottom: 1px solid var(--rule); display: flex; gap: 6px; align-items: baseline; }
.crono-tema-label { font-size: 10px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.1em; color: var(--ink-faint); white-space: nowrap; }
.crono-slot-body { padding: 12px 16px; display: flex; flex-direction: column; gap: 7px; }
.crono-aula-item { display: flex; align-items: center; gap: 10px; }
.crono-aula-num { font-size: 10px; font-weight: 600; color: var(--ink-faint); width: 18px; text-align: right; flex-shrink: 0; }
.crono-aula-link { display: inline-flex; align-items: center; gap: 5px; font-size: 13px; font-weight: 500; text-decoration: none; padding: 5px 11px; border-radius: 8px; border: 1px solid transparent; transition: all 0.15s; flex: 1; }
.crono-aula-link:hover { border-color: currentColor; opacity: 0.8; }
.crono-aula-link.placeholder { opacity: 0.45; cursor: default; font-style: italic; }
.crono-aula-link.placeholder:hover { border-color: transparent; opacity: 0.45; }
.crono-aula-link .arr { font-size: 11px; opacity: 0.6; }
.crono-slot.sq .crono-slot-icon { background: var(--quimica-bg); } .crono-slot.sq .crono-aula-link { color: var(--quimica); background: var(--quimica-bg); } .crono-slot.sq .crono-slot-materia { color: var(--quimica); }
.crono-slot.sp .crono-slot-icon { background: var(--portugues-bg); } .crono-slot.sp .crono-aula-link { color: var(--portugues); background: var(--portugues-bg); } .crono-slot.sp .crono-slot-materia { color: var(--portugues); }
.crono-slot.sm .crono-slot-icon { background: var(--matematica-bg); } .crono-slot.sm .crono-aula-link { color: var(--matematica); background: var(--matematica-bg); } .crono-slot.sm .crono-slot-materia { color: var(--matematica); }
.crono-slot.sg .crono-slot-icon { background: var(--geo-bg); } .crono-slot.sg .crono-aula-link { color: var(--geo); background: var(--geo-bg); } .crono-slot.sg .crono-slot-materia { color: var(--geo); }
.crono-slot.sh .crono-slot-icon { background: var(--historia-bg); } .crono-slot.sh .crono-aula-link { color: var(--historia); background: var(--historia-bg); } .crono-slot.sh .crono-slot-materia { color: var(--historia); }
.crono-slot.sr { border-left: 3px solid var(--fuvest); } .crono-slot.sr .crono-slot-icon { background: var(--fuvest-bg); } .crono-slot.sr .crono-aula-link { color: var(--fuvest); background: var(--fuvest-bg); } .crono-slot.sr .crono-slot-materia { color: var(--fuvest); }

/* CHECKLIST */
.checklist-section { margin-top: 2.5rem; margin-bottom: 2rem; }
.checklist-section-title { font-family: 'Fraunces', serif; font-size: 13px; font-style: italic; color: var(--ink-muted); margin-bottom: 1rem; letter-spacing: 0.04em; }
.checklist-day-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 0.75rem; }
.checklist-day-title { font-family: 'Fraunces', serif; font-size: 16px; font-weight: 700; color: var(--ink); }
.checklist-count { font-size: 12px; color: var(--ink-faint); }
.checklist-progress-bar { height: 4px; background: var(--rule); border-radius: 4px; margin-bottom: 1rem; overflow: hidden; }
.checklist-progress-fill { height: 100%; background: var(--ink); border-radius: 4px; transition: width 0.3s ease; }
.checklist-list { display: flex; flex-direction: column; gap: 6px; }
.cl-item { display: flex; align-items: center; gap: 10px; padding: 9px 12px; background: var(--paper); border: 1px solid var(--rule); border-radius: 10px; cursor: pointer; user-select: none; transition: all 0.15s; }
.cl-item:hover { background: var(--cream); }
.cl-item.done { opacity: 0.5; }
.cl-check { width: 18px; height: 18px; border-radius: 5px; border: 1.5px solid var(--ink-faint); flex-shrink: 0; display: flex; align-items: center; justify-content: center; transition: all 0.15s; background: transparent; }
.cl-item.done .cl-check { background: var(--ink); border-color: var(--ink); }
.cl-check-svg { width: 10px; height: 10px; display: none; }
.cl-item.done .cl-check-svg { display: block; }
.cl-item.done .cl-label { text-decoration: line-through; color: var(--ink-faint); }
.cl-dot { width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0; }
.cl-dot.q { background: var(--quimica); } .cl-dot.p { background: var(--portugues); } .cl-dot.m { background: var(--matematica); } .cl-dot.g { background: var(--geo); } .cl-dot.h { background: var(--historia); } .cl-dot.r { background: var(--fuvest); }
.cl-label { font-size: 13.5px; color: var(--ink); flex: 1; }
.cl-tempo { font-size: 11px; color: var(--ink-faint); white-space: nowrap; }
.reset-btn { font-size: 12px; color: var(--ink-muted); background: none; border: none; cursor: pointer; padding: 4px 8px; border-radius: 6px; transition: background 0.15s; font-family: 'Instrument Sans', sans-serif; }
.reset-btn:hover { background: var(--rule); }

/* LEITURAS */
.leituras-section { margin-top: 2.5rem; margin-bottom: 2rem; }
.leituras-title { font-family: 'Fraunces', serif; font-size: 13px; font-style: italic; color: var(--ink-muted); margin-bottom: 1rem; letter-spacing: 0.04em; }
.leituras-card { background: var(--paper); border: 1px solid var(--rule); border-left: 3px solid var(--leitura); border-radius: 14px; padding: 1.25rem 1.5rem; }
.leituras-header { display: flex; align-items: center; gap: 10px; margin-bottom: 1rem; padding-bottom: 0.75rem; border-bottom: 1px solid var(--rule); }
.leituras-icon { font-size: 20px; }
.leituras-heading { font-family: 'Fraunces', serif; font-size: 16px; font-weight: 700; color: var(--leitura); }
.leituras-badge { margin-left: auto; font-size: 11px; font-weight: 600; padding: 3px 10px; border-radius: 20px; background: var(--leitura-pill); color: var(--leitura); }
.leituras-desc { font-size: 13px; color: var(--ink-muted); margin-bottom: 1rem; line-height: 1.6; }
.livro-list { list-style: none; display: flex; flex-direction: column; gap: 6px; }
.livro-item { display: flex; align-items: baseline; gap: 10px; padding: 7px 10px; border-radius: 9px; transition: background 0.15s; }
.livro-item:hover { background: var(--leitura-bg); }
.livro-num { font-size: 10px; font-weight: 600; color: var(--ink-faint); width: 16px; text-align: right; flex-shrink: 0; }
.livro-titulo { font-size: 13.5px; font-weight: 600; color: var(--ink); }
.livro-ano { font-size: 11px; color: var(--ink-faint); margin-left: 2px; }
.livro-autor { font-size: 12.5px; color: var(--ink-muted); margin-left: auto; white-space: nowrap; }
@media (max-width: 560px) { .livro-autor { display: none; } }

/* FUVEST BANNER */
.fuvest-banner { margin-top: 2rem; background: var(--fuvest-bg); border: 1px solid #C8A8E8; border-radius: 14px; padding: 1.5rem 1.75rem; animation: fadeUp 0.5s 0.4s ease both; }
.fuvest-header { display: flex; align-items: center; gap: 10px; margin-bottom: 0.75rem; }
.fuvest-icon { font-size: 22px; }
.fuvest-title { font-family: 'Fraunces', serif; font-size: 18px; font-weight: 700; color: var(--fuvest); }
.fuvest-desc { font-size: 14px; color: #5A3A8A; line-height: 1.65; margin-bottom: 1rem; }
.fuvest-desc strong { color: var(--fuvest); font-weight: 600; }
.fuvest-cta { display: inline-flex; align-items: center; gap: 7px; background: var(--fuvest); color: #F0EAF8; font-size: 13.5px; font-weight: 600; padding: 10px 20px; border-radius: 10px; text-decoration: none; transition: opacity 0.15s; }
.fuvest-cta:hover { opacity: 0.85; }

/* FOOTER */
.footer { margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid var(--rule); display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; }
.footer-text { font-size: 12px; color: var(--ink-faint); }
.footer-tag { font-size: 12px; font-weight: 600; color: var(--ink-muted); letter-spacing: 0.05em; }