:root {
  --ink: #241019;
  --ink-soft: #3c1b28;
  --wine: #681b39;
  --pink: #df1f67;
  --pink-bright: #f52a78;
  --blush: #f5dce4;
  --gold: #d9aa58;
  --gold-soft: #f1d89f;
  --paper: #fff9f4;
  --paper-deep: #f2e9df;
  --line: #e7d9cf;
  --muted: #735f65;
  --display: 'Fraunces', Georgia, serif;
  --body: 'Inter', Arial, sans-serif;
  --script: 'Caveat', cursive;
  --container: 1180px;
  --ease: cubic-bezier(.16, 1, .3, 1);
}

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

html { scroll-behavior: smooth; }

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  -webkit-font-smoothing: antialiased;
}

body *::selection { background: var(--pink); color: #fff; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
img { display: block; max-width: 100%; }

:focus-visible { outline: 3px solid var(--gold); outline-offset: 4px; }

.page-container {
  width: min(100%, var(--container));
  margin-inline: auto;
  padding-inline: 30px;
}

.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 10000;
  padding: 10px 14px;
  background: #fff;
  color: var(--ink);
  font-size: .78rem;
  font-weight: 800;
  transform: translateY(-160%);
}

.skip-link:focus { transform: translateY(0); }

.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.grain {
  position: fixed;
  inset: 0;
  z-index: 9990;
  pointer-events: none;
  opacity: .055;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.75'/%3E%3C/svg%3E");
  mix-blend-mode: multiply;
}

/* Topo */
.urgency-bar {
  min-height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 8px 20px;
  background: var(--pink);
  color: #fff;
  font-size: .67rem;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
}

.urgency-bar strong { font-weight: 800; }
.urgency-bar small { opacity: .75; font-size: inherit; }

.urgency-pulse {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 0 4px rgba(255,255,255,.18);
  animation: barPulse 1.6s ease-in-out infinite;
}

@keyframes barPulse { 50% { box-shadow: 0 0 0 7px rgba(255,255,255,0); } }

.compact-header {
  position: relative;
  z-index: 5;
  min-height: 78px;
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--line);
  background: rgba(255,249,244,.92);
  backdrop-filter: blur(12px);
}

.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 12px; }
.brand-icon { width: 37px; height: 37px; color: var(--pink); }
.brand > span { display: flex; flex-direction: column; }
.brand strong { font-family: var(--display); font-size: 1.12rem; font-weight: 600; letter-spacing: -.02em; }
.brand small { margin-top: 1px; color: var(--muted); font-size: .56rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 0 8px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: .7rem;
  font-weight: 700;
  transition: color .2s ease, border-color .2s ease;
}

.back-link span { color: var(--pink); }
.back-link:hover { border-color: var(--pink); color: var(--ink); }

/* Contador */
.countdown-hero {
  position: relative;
  min-height: 680px;
  overflow: hidden;
  isolation: isolate;
}

.notebook-lines {
  position: absolute;
  inset: 0;
  z-index: -2;
  background: repeating-linear-gradient(to bottom, transparent 0 66px, rgba(104,27,57,.058) 66px 67px);
}

.margin-line {
  position: absolute;
  top: 0;
  bottom: 0;
  left: max(18px, calc((100vw - var(--container)) / 2 + 6px));
  z-index: -1;
  width: 1px;
  background: rgba(223,31,103,.23);
}

.countdown-hero::after {
  content: '2026';
  position: absolute;
  right: -35px;
  bottom: -61px;
  z-index: -1;
  color: rgba(104,27,57,.035);
  font-family: var(--display);
  font-size: clamp(9rem, 21vw, 20rem);
  font-weight: 600;
  letter-spacing: -.08em;
  line-height: 1;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(310px, .82fr) minmax(550px, 1.18fr);
  grid-template-areas:
    'intro panel'
    'times panel'
    'share share';
  gap: 28px 62px;
  align-items: center;
  padding-top: 58px;
  padding-bottom: 42px;
}

.countdown-intro { grid-area: intro; padding-left: 12px; }

.phase-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 24px;
  color: var(--pink);
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .11em;
  text-transform: uppercase;
}

.phase-dot { position: relative; width: 7px; height: 7px; border-radius: 50%; background: var(--pink); }
.phase-dot::after { content: ''; position: absolute; inset: -5px; border: 1px solid var(--pink); border-radius: 50%; animation: phasePulse 1.7s ease-out infinite; }
@keyframes phasePulse { from { transform: scale(.45); opacity: .9; } to { transform: scale(1.65); opacity: 0; } }

.countdown-intro h1 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(3.5rem, 5vw, 5.1rem);
  font-weight: 500;
  line-height: .91;
  letter-spacing: -.055em;
}

.countdown-intro h1 span, .countdown-intro h1 em { display: block; }
.countdown-intro h1 em { margin-top: 8px; color: var(--pink); font-weight: 500; }
.countdown-intro > p { max-width: 400px; margin: 23px 0 0; color: var(--muted); font-size: .9rem; line-height: 1.7; }

.exam-date {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  margin-top: 25px;
  padding-top: 17px;
  padding-right: 35px;
  border-top: 1px solid var(--line);
}

.exam-date > strong { color: var(--pink); font-family: var(--display); font-size: 2.9rem; font-weight: 600; line-height: .85; }
.exam-date > span { display: flex; flex-direction: column; }
.exam-date b { font-family: var(--display); font-size: 1.04rem; font-weight: 600; }
.exam-date small { margin-top: 3px; color: var(--muted); font-size: .58rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; }

.countdown-panel {
  grid-area: panel;
  position: relative;
  align-self: stretch;
  min-height: 380px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(31px, 3.7vw, 48px);
  overflow: hidden;
  background:
    radial-gradient(circle at 88% 5%, rgba(223,31,103,.22), transparent 32%),
    var(--ink);
  color: var(--paper);
  box-shadow: 0 35px 90px -48px rgba(36,16,25,.92);
}

.countdown-panel::before { content: ''; position: absolute; inset: 0 auto 0 0; width: 6px; background: var(--pink); }
.panel-number { position: absolute; right: -5px; top: -33px; color: rgba(255,255,255,.035); font-family: var(--display); font-size: 10rem; font-weight: 600; line-height: 1; }
.panel-header { position: relative; display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; padding-bottom: 22px; border-bottom: 1px solid rgba(255,255,255,.12); }
.panel-header > div > span { display: block; margin-bottom: 6px; color: var(--gold-soft); font-size: .61rem; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
.panel-header h2 { margin: 0; font-family: var(--display); font-size: clamp(1.3rem, 2vw, 1.72rem); font-weight: 500; }
.live-label { display: inline-flex; align-items: center; gap: 7px; padding-top: 4px; color: rgba(255,255,255,.52); font-size: .57rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.live-label i { width: 6px; height: 6px; border-radius: 50%; background: var(--pink-bright); box-shadow: 0 0 0 5px rgba(245,42,120,.12); }

.timer { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr; align-items: start; gap: clamp(6px, 1.1vw, 14px); padding: 33px 0 26px; }
.timer[hidden], .phase-message[hidden] { display: none; }
.timer > div { min-width: 0; text-align: center; }
.timer strong { display: block; color: var(--paper); font-family: var(--display); font-size: clamp(2.8rem, 4.25vw, 4.4rem); font-variant-numeric: tabular-nums lining-nums; font-weight: 500; letter-spacing: -.055em; line-height: 1; }
.timer .seconds strong { color: var(--gold-soft); }
.timer div span { display: block; margin-top: 9px; color: rgba(255,255,255,.43); font-size: .54rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.timer > i { padding-top: 6px; color: rgba(255,255,255,.19); font-family: var(--display); font-size: clamp(2rem, 3vw, 3.25rem); font-style: normal; line-height: 1; }
.timer-date { margin: 0; color: rgba(255,255,255,.62); font-size: .66rem; font-weight: 600; line-height: 1.5; }

.deadline-note { display: flex; align-items: center; gap: 10px; margin-top: 18px; padding-top: 17px; border-top: 1px solid rgba(255,255,255,.12); }
.deadline-note svg { flex: 0 0 24px; width: 24px; fill: none; stroke: var(--pink-bright); stroke-width: 1.6; stroke-linecap: round; }
.deadline-note p, .noscript-note { margin: 0; color: rgba(255,255,255,.55); font-size: .65rem; line-height: 1.5; }
.noscript-note { margin-top: 12px; color: var(--gold-soft); }
.phase-message { margin: 0; padding: 36px 0 31px; color: var(--gold-soft); font-family: var(--display); font-size: clamp(3rem, 5vw, 5rem); font-style: italic; font-weight: 500; letter-spacing: -.05em; line-height: .95; }

.exam-essentials { grid-area: times; align-self: end; display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--line); background: rgba(255,255,255,.62); }
.exam-essentials > div { padding: 14px 15px; border-right: 1px solid var(--line); }
.exam-essentials > div:last-child { border-right: 0; }
.exam-essentials time, .exam-essentials span { display: block; }
.exam-essentials time { font-family: var(--display); font-size: 1.18rem; font-weight: 600; }
.exam-essentials span { margin-top: 3px; color: var(--muted); font-size: .5rem; font-weight: 800; text-transform: uppercase; }
.exam-essentials .time-critical { background: var(--pink); }
.exam-essentials .time-critical time, .exam-essentials .time-critical span { color: #fff; }

.share-row { grid-area: share; display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-top: 4px; padding-top: 22px; border-top: 1px solid var(--line); }
.share-row > p { margin: 0; color: var(--muted); font-family: var(--display); font-size: .92rem; font-style: italic; }
.share-row > p span { margin-right: 7px; color: var(--pink); }
.quick-actions { position: relative; display: flex; gap: 8px; }
.quick-actions button { min-height: 40px; padding: 10px 17px; border: 1px solid transparent; cursor: pointer; font-size: .64rem; font-weight: 800; transition: transform .2s var(--ease), background .2s ease, border-color .2s ease; }
.quick-actions button:hover { transform: translateY(-2px); }
.action-primary { background: var(--pink); color: #fff; }
.action-primary:hover { background: var(--wine); }
.action-secondary { border-color: var(--line) !important; background: rgba(255,255,255,.45); color: var(--ink); }
.action-secondary:hover { border-color: var(--pink) !important; }
.quick-actions > p { position: absolute; top: 100%; right: 0; min-width: 280px; margin: 6px 0 0; color: var(--pink); font-size: .57rem; text-align: right; }

/* CTA de preparação */
.preparation-cta { position: relative; overflow: hidden; background: var(--ink); color: #fff; }
.preparation-cta::before { content: ''; position: absolute; inset: 0; background: linear-gradient(115deg, rgba(223,31,103,.16), transparent 42%), repeating-linear-gradient(135deg, transparent 0 18px, rgba(255,255,255,.018) 18px 19px); }
.cta-mark { position: absolute; right: -30px; bottom: -125px; color: rgba(255,255,255,.025); font-family: var(--display); font-size: 30rem; font-weight: 600; line-height: 1; transform: rotate(-6deg); }
.cta-grid { position: relative; display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(360px, .92fr); gap: clamp(60px, 9vw, 120px); align-items: center; padding-top: 96px; padding-bottom: 96px; }
.cta-copy { max-width: 610px; }
.cta-eyebrow { display: inline-flex; align-items: center; gap: 10px; color: var(--gold-soft); font-size: .66rem; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
.cta-eyebrow::before { content: ''; width: 30px; height: 1px; background: var(--gold); }
.cta-copy h2 { margin: 18px 0 0; font-family: var(--display); font-size: clamp(2.9rem, 5vw, 5rem); font-weight: 500; line-height: .98; letter-spacing: -.052em; }
.cta-copy h2 em { color: #ff6398; font-weight: 500; }
.cta-copy > p { max-width: 570px; margin: 24px 0 0; color: rgba(255,255,255,.67); font-size: .91rem; line-height: 1.75; }
.cta-copy ul { display: flex; flex-wrap: wrap; gap: 12px 22px; margin: 28px 0; padding: 0; list-style: none; }
.cta-copy li { display: flex; align-items: center; gap: 7px; color: rgba(255,255,255,.83); font-size: .67rem; font-weight: 700; }
.cta-copy li span { color: var(--gold-soft); }
.cta-button { display: inline-flex; align-items: center; justify-content: space-between; gap: 30px; min-height: 58px; padding: 15px 20px 15px 23px; background: var(--pink); color: #fff; font-size: .74rem; font-weight: 800; box-shadow: 0 15px 40px rgba(223,31,103,.24); transition: transform .25s var(--ease), background .2s ease; }
.cta-button svg { width: 21px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.cta-button {
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 999px;
  background: linear-gradient(115deg, #ff286f 0%, #e51e76 43%, #8f238f 100%);
  background-size: 170% 100%;
  transition: transform .25s var(--ease), background-position .4s ease, box-shadow .25s ease;
  box-shadow:
    0 0 0 4px rgba(245,42,120,.08),
    0 0 26px rgba(245,42,120,.28),
    0 16px 42px rgba(104,27,57,.34);
}
.cta-button:hover {
  transform: translateY(-3px);
  background-position: 100% 0;
  box-shadow:
    0 0 0 5px rgba(245,42,120,.1),
    0 0 34px rgba(245,42,120,.38),
    0 18px 46px rgba(104,27,57,.38);
}
.cta-copy > small { display: block; margin-top: 12px; color: rgba(255,255,255,.39); font-size: .57rem; }

.teacher-note {
  position: relative;
  justify-self: end;
  width: min(100%, 430px);
  padding: 58px 50px 46px;
  border: 1px solid rgba(241,216,159,.38);
  background:
    repeating-linear-gradient(to bottom, transparent 0 45px, rgba(104,27,57,.09) 45px 46px),
    var(--paper);
  color: var(--ink);
  box-shadow: 18px 20px 0 rgba(223,31,103,.14), 0 30px 70px rgba(0,0,0,.2);
  transform: rotate(1.5deg);
}
.teacher-note::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 27px;
  width: 1px;
  background: rgba(223,31,103,.25);
}
.quote-mark { position: absolute; top: 15px; left: 47px; color: var(--pink); font-family: var(--display); font-size: 4.8rem; line-height: 1; opacity: .22; }
.teacher-note blockquote { position: relative; margin: 0; }
.teacher-note blockquote p { margin: 0; font-family: var(--display); font-size: clamp(1.7rem, 3vw, 2.45rem); font-style: italic; font-weight: 500; line-height: 1.2; letter-spacing: -.025em; }
.teacher-note blockquote footer { display: flex; align-items: flex-start; flex-direction: column; margin-top: 28px; }
.teacher-note blockquote footer span { color: var(--muted); font-family: var(--script); font-size: 1.15rem; transform: rotate(-3deg); }
.teacher-note blockquote footer strong { color: var(--pink); font-family: var(--script); font-size: 2rem; line-height: 1; transform: rotate(-3deg); }
.teacher-note blockquote footer small { margin-top: 9px; color: var(--muted); font-size: .55rem; font-style: normal; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }

/* Informação e rodapé */
.official-info { border-bottom: 1px solid var(--line); background: var(--paper-deep); }
.official-inner { min-height: 88px; display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.official-inner p { margin: 0; color: var(--muted); font-size: .7rem; line-height: 1.5; }
.official-inner > div { display: flex; gap: 22px; }
.official-inner a { padding-bottom: 3px; border-bottom: 1px solid rgba(223,31,103,.35); color: var(--wine); font-size: .63rem; font-weight: 800; }
.official-inner a span { color: var(--pink); }

.compact-footer { padding: 22px 0; background: var(--paper); color: var(--muted); }
.compact-footer > div { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.footer-brand { color: var(--ink); font-family: var(--display); font-size: 1rem; font-weight: 600; }
.compact-footer span, .compact-footer a, .compact-footer button { font-size: .57rem; font-weight: 600; }
.compact-footer > div > div { display: flex; gap: 15px; }
.compact-footer button { appearance: none; border: 0; padding: 0; background: transparent; color: var(--wine); cursor: pointer; }

body[data-phase='completed'] .phase-dot,
body[data-phase='secondLive'] .phase-dot { background: var(--gold); }
body[data-phase='completed'] .phase-dot::after,
body[data-phase='secondLive'] .phase-dot::after { border-color: var(--gold); }

@media (max-width: 1020px) {
  .hero-grid { grid-template-columns: minmax(270px,.72fr) minmax(480px,1.28fr); gap: 26px 35px; }
  .cta-grid { gap: 60px; }
}

@media (max-width: 860px) {
  .countdown-hero { min-height: auto; }
  .hero-grid { grid-template-columns: 1fr; grid-template-areas: 'intro' 'panel' 'times' 'share'; max-width: 720px; gap: 30px; padding-top: 50px; padding-bottom: 45px; }
  .countdown-intro { padding-left: 0; }
  .countdown-intro > p { max-width: 560px; }
  .countdown-panel { min-height: 0; }
  .cta-grid { grid-template-columns: 1fr; gap: 75px; }
  .cta-copy { max-width: 650px; }
  .teacher-note { justify-self: center; width: min(100%, 460px); }
}

@media (max-width: 600px) {
  .page-container { padding-inline: 20px; }
  .urgency-bar { gap: 8px; padding-inline: 10px; font-size: .56rem; }
  .urgency-bar small { display: none; }
  .compact-header { min-height: 68px; }
  .brand-icon { width: 33px; height: 33px; }
  .brand strong { font-size: 1rem; }
  .brand small { display: none; }
  .back-link { font-size: .6rem; }
  .margin-line { left: 9px; }
  .hero-grid { gap: 27px; padding-top: 38px; padding-bottom: 34px; }
  .phase-label { margin-bottom: 19px; font-size: .61rem; }
  .countdown-intro h1 { font-size: clamp(3.2rem, 15vw, 4.45rem); }
  .countdown-intro > p { margin-top: 19px; font-size: .83rem; }
  .exam-date { margin-top: 21px; }
  .exam-date > strong { font-size: 2.55rem; }
  .countdown-panel { margin-inline: -20px; padding: 28px 25px 30px; }
  .panel-header h2 { font-size: 1.23rem; }
  .live-label { display: none; }
  .timer { grid-template-columns: repeat(2, 1fr); gap: 22px 12px; padding: 29px 0 25px; }
  .timer > i { display: none; }
  .timer strong { font-size: clamp(3.4rem, 18vw, 4.35rem); }
  .timer-date { font-size: .61rem; }
  .exam-essentials > div { padding: 12px 8px; }
  .exam-essentials time { font-size: 1.06rem; }
  .exam-essentials span { font-size: .45rem; }
  .share-row { align-items: flex-start; flex-direction: column; gap: 15px; }
  .quick-actions { width: 100%; }
  .quick-actions button { flex: 1; }
  .quick-actions > p { right: auto; left: 0; text-align: left; }
  .cta-grid { gap: 66px; padding-top: 72px; padding-bottom: 75px; }
  .cta-copy h2 { font-size: clamp(2.75rem, 13vw, 3.7rem); }
  .cta-copy > p { font-size: .84rem; }
  .cta-copy ul { display: grid; gap: 10px; }
  .cta-button { width: 100%; gap: 16px; padding-inline: 18px; font-size: .69rem; }
  .teacher-note { width: calc(100% - 12px); padding: 52px 36px 40px 45px; }
  .teacher-note blockquote p { font-size: 1.8rem; }
  .official-inner { align-items: flex-start; flex-direction: column; padding-top: 24px; padding-bottom: 24px; }
  .official-inner > div { gap: 13px; flex-direction: column; }
  .compact-footer > div { align-items: flex-start; flex-direction: column; gap: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
